diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-20 23:07:42 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-09 15:38:42 +0100 |
commit | 714c83b2736d7e308bc33c49057952490eb98be2 (patch) | |
tree | 1d9ba7035798368569cd49056f4d596efc908cd8 /pkg/runner/testdata/actions/node12/node_modules/@vercel | |
parent | Initial commit. (diff) | |
download | forgejo-act-debian.tar.xz forgejo-act-debian.zip |
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/actions/node12/node_modules/@vercel')
74 files changed, 57683 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/LICENSE b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/LICENSE new file mode 100644 index 0000000..1a69ac8 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/LICENSE @@ -0,0 +1,7 @@ +Copyright 2018 ZEIT, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/@@notfound.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/@@notfound.js new file mode 100644 index 0000000..6fdcb57 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/@@notfound.js @@ -0,0 +1 @@ +module.exports = __non_webpack_require__('UNKNOWN'); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/buildin/readme.md b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/buildin/readme.md new file mode 100644 index 0000000..9100d39 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/buildin/readme.md @@ -0,0 +1,7 @@ +# About this directory + +This directory will contain the webpack built-ins, like +`module.js`, so that they can be accessed by webpack when +it's being executeed inside the bundled ncc file. + +These files are published to npm. diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js new file mode 100755 index 0000000..6fdddc0 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js @@ -0,0 +1,9 @@ +#!/usr/bin/env node +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/cli.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache Binary files differnew file mode 100644 index 0000000..0c5deb7 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js new file mode 100644 index 0000000..baf9f96 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js @@ -0,0 +1 @@ +module.exports=(()=>{var __webpack_modules__={306:t=>{"use strict";t.exports=JSON.parse('{"name":"@vercel/ncc","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","version":"0.24.1","repository":"vercel/ncc","license":"MIT","main":"./dist/ncc/index.js","bin":{"ncc":"./dist/ncc/cli.js"},"scripts":{"build":"node scripts/build","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node","codecov":"codecov","test":"node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest","test-coverage":"node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals \\"{\\\\\\"coverage\\\\\\":true}\\" && codecov","prepublish":"yarn build"},"devDependencies":{"@azure/cosmos":"^2.0.5","@bugsnag/js":"^5.0.1","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^2.0.1","@google-cloud/firestore":"^2.2.0","@sentry/node":"^4.3.0","@tensorflow/tfjs-node":"^0.3.0","@zeit/webpack-asset-relocator-loader":"0.8.0","analytics-node":"^3.3.0","apollo-server-express":"^2.2.2","arg":"^4.1.0","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.18.1","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1","bytes":"^3.0.0","canvas":"^2.2.0","chromeless":"^1.5.2","codecov":"^3.6.5","consolidate":"^0.15.1","copy":"^0.3.2","core-js":"^2.5.7","cowsay":"^1.3.1","esm":"^3.2.22","express":"^4.16.4","fetch-h2":"^1.0.2","firebase":"^6.1.1","firebase-admin":"^6.3.0","fluent-ffmpeg":"^2.1.2","fontkit":"^1.7.7","get-folder-size":"^2.0.0","glob":"^7.1.3","got":"^9.3.2","graceful-fs":"^4.1.15","graphql":"^14.0.2","highlights":"^3.1.1","hot-shots":"^5.9.2","in-publish":"^2.0.0","ioredis":"^4.2.0","isomorphic-unfetch":"^3.0.0","jest":"^26.3.0","jimp":"^0.5.6","jugglingdb":"2.0.1","koa":"^2.6.2","leveldown":"^5.6.0","license-webpack-plugin":"^2.3.0","lighthouse":"^5.0.0","loopback":"^3.24.0","mailgun":"^0.5.0","mariadb":"^2.0.1-beta","memcached":"^2.2.2","mkdirp":"^0.5.1","mongoose":"^5.3.12","mysql":"^2.16.0","node-gyp":"^3.8.0","npm":"^6.13.4","oracledb":"^4.2.0","passport":"^0.4.0","passport-google-oauth":"^1.0.0","path-platform":"^0.11.15","pdf2json":"^1.1.8","pdfkit":"^0.8.3","pg":"^7.6.1","pug":"^2.0.3","react":"^16.6.3","react-dom":"^16.6.3","redis":"^2.8.0","request":"^2.88.0","rxjs":"^6.3.3","saslprep":"^1.0.2","sequelize":"^5.8.6","sharp":"^0.25.2","shebang-loader":"^0.0.1","socket.io":"^2.2.0","source-map-support":"^0.5.9","stripe":"^6.15.0","swig":"^1.4.2","terser":"^3.11.0","the-answer":"^1.0.0","tiny-json-http":"^7.0.2","ts-loader":"^5.3.1","tsconfig-paths":"^3.7.0","tsconfig-paths-webpack-plugin":"^3.2.0","twilio":"^3.23.2","typescript":"^3.2.2","vm2":"^3.6.6","vue":"^2.5.17","vue-server-renderer":"^2.5.17","webpack":"5.0.0-beta.28","when":"^3.7.8"}}')},832:t=>{const e=Symbol("arg flag");function arg(t,{argv:r,permissive:n=false,stopAtPositional:i=false}={}){if(!t){throw new Error("Argument specification object is required")}const o={_:[]};r=r||process.argv.slice(2);const s={};const a={};for(const r of Object.keys(t)){if(!r){throw new TypeError("Argument key cannot be an empty string")}if(r[0]!=="-"){throw new TypeError(`Argument key must start with '-' but found: '${r}'`)}if(r.length===1){throw new TypeError(`Argument key must have a name; singular '-' keys are not allowed: ${r}`)}if(typeof t[r]==="string"){s[r]=t[r];continue}let n=t[r];let i=false;if(Array.isArray(n)&&n.length===1&&typeof n[0]==="function"){const[t]=n;n=((e,r,n=[])=>{n.push(t(e,r,n[n.length-1]));return n});i=t===Boolean||t[e]===true}else if(typeof n==="function"){i=n===Boolean||n[e]===true}else{throw new TypeError(`Type missing or not a function or valid array type: ${r}`)}if(r[1]!=="-"&&r.length>2){throw new TypeError(`Short argument keys (with a single hyphen) must have only one character: ${r}`)}a[r]=[n,i]}for(let t=0,e=r.length;t<e;t++){const e=r[t];if(i&&o._.length>0){o._=o._.concat(r.slice(t));break}if(e==="--"){o._=o._.concat(r.slice(t+1));break}if(e.length>1&&e[0]==="-"){const i=e[1]==="-"||e.length===2?[e]:e.slice(1).split("").map(t=>`-${t}`);for(let e=0;e<i.length;e++){const c=i[e];const[u,f]=c[1]==="-"?c.split("=",2):[c,undefined];let h=u;while(h in s){h=s[h]}if(!(h in a)){if(n){o._.push(c);continue}else{const t=new Error(`Unknown or unexpected option: ${u}`);t.code="ARG_UNKNOWN_OPTION";throw t}}const[l,p]=a[h];if(!p&&e+1<i.length){throw new TypeError(`Option requires argument (but was followed by another short argument): ${u}`)}if(p){o[h]=l(true,h,o[h])}else if(f===undefined){if(r.length<t+2||r[t+1].length>1&&r[t+1][0]==="-"){const t=u===h?"":` (alias for ${h})`;throw new Error(`Option requires argument: ${u}${t}`)}o[h]=l(r[t+1],h,o[h]);++t}else{o[h]=l(f,h,o[h])}}}else{o._.push(e)}}return o}arg.flag=(t=>{t[e]=true;return t});arg.COUNT=arg.flag((t,e,r)=>(r||0)+1);t.exports=arg},835:t=>{"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var n=range(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var n,i,o,s,a;var c=r.indexOf(t);var u=r.indexOf(e,c+1);var f=c;if(c>=0&&u>0){n=[];o=r.length;while(f>=0&&!a){if(f==c){n.push(f);c=r.indexOf(t,f+1)}else if(n.length==1){a=[n.pop(),u]}else{i=n.pop();if(i<o){o=i;s=u}u=r.indexOf(e,f+1)}f=c<u&&c>=0?c:u}if(n.length){a=[o,s]}}return a}},215:(t,e,r)=>{var n=r(551);var i=r(835);t.exports=expandTop;var o="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(t){return t.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=i("{","}",t);if(!r)return t.split(",");var n=r.pre;var o=r.body;var s=r.post;var a=n.split(",");a[a.length-1]+="{"+o+"}";var c=parseCommaParts(s);if(s.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}e.push.apply(e,a);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var o=i("{","}",t);if(!o||/\$$/.test(o.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body);var u=s||c;var f=o.body.indexOf(",")>=0;if(!u&&!f){if(o.post.match(/,.*\}/)){t=o.pre+"{"+o.body+a+o.post;return expand(t)}return[t]}var h;if(u){h=o.body.split(/\.\./)}else{h=parseCommaParts(o.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var l=o.post.length?expand(o.post,false):[""];return l.map(function(t){return o.pre+h[0]+t})}}}var p=o.pre;var l=o.post.length?expand(o.post,false):[""];var d;if(u){var v=numeric(h[0]);var m=numeric(h[1]);var y=Math.max(h[0].length,h[1].length);var b=h.length==3?Math.abs(numeric(h[2])):1;var _=lte;var g=m<v;if(g){b*=-1;_=gte}var w=h.some(isPadded);d=[];for(var k=v;_(k,m);k+=b){var E;if(c){E=String.fromCharCode(k);if(E==="\\")E=""}else{E=String(k);if(w){var S=y-E.length;if(S>0){var O=new Array(S+1).join("0");if(k<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=n(h,function(t){return expand(t,false)})}for(var j=0;j<d.length;j++){for(var x=0;x<l.length;x++){var T=p+d[j]+l[x];if(!e||u||T)r.push(T)}}return r}},551:t=>{t.exports=function(t,r){var n=[];for(var i=0;i<t.length;i++){var o=r(t[i],i);if(e(o))n.push.apply(n,o);else n.push(o)}return n};var e=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}},909:(t,e,r)=>{t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(747);var i=n.realpath;var o=n.realpathSync;var s=process.version;var a=/^v[0-5]\./.test(s);var c=r(411);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(a){return i(t,e,r)}if(typeof e==="function"){r=e;e=null}i(t,e,function(n,i){if(newError(n)){c.realpath(t,e,r)}else{r(n,i)}})}function realpathSync(t,e){if(a){return o(t,e)}try{return o(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=o}},411:(t,e,r)=>{var n=r(622);var i=process.platform==="win32";var o=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=n.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},a={};var f;var h;var l;var p;start();function start(){var e=u.exec(t);f=e[0].length;h=e[0];l=e[0];p="";if(i&&!a[l]){o.lstatSync(l);a[l]=true}}while(f<t.length){c.lastIndex=f;var d=c.exec(t);p=h;h+=d[0];l=p+d[1];f=c.lastIndex;if(a[l]||e&&e[l]===l){continue}var v;if(e&&Object.prototype.hasOwnProperty.call(e,l)){v=e[l]}else{var m=o.lstatSync(l);if(!m.isSymbolicLink()){a[l]=true;if(e)e[l]=l;continue}var y=null;if(!i){var b=m.dev.toString(32)+":"+m.ino.toString(32);if(s.hasOwnProperty(b)){y=s[b]}}if(y===null){o.statSync(l);y=o.readlinkSync(l)}v=n.resolve(p,y);if(e)e[l]=v;if(!i)s[b]=y}t=n.resolve(v,t.slice(f));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=n.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var s=t,a={},f={};var h;var l;var p;var d;start();function start(){var e=u.exec(t);h=e[0].length;l=e[0];p=e[0];d="";if(i&&!f[p]){o.lstat(p,function(t){if(t)return r(t);f[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(h>=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=h;var n=c.exec(t);d=l;l+=n[0];p=d+n[1];h=c.lastIndex;if(f[p]||e&&e[p]===p){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,p)){return gotResolvedLink(e[p])}return o.lstat(p,gotStat)}function gotStat(t,n){if(t)return r(t);if(!n.isSymbolicLink()){f[p]=true;if(e)e[p]=p;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(s)){return gotTarget(null,a[s],p)}}o.stat(p,function(t){if(t)return r(t);o.readlink(p,function(t,e){if(!i)a[s]=e;gotTarget(t,e)})})}function gotTarget(t,i,o){if(t)return r(t);var s=n.resolve(d,i);if(e)e[o]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=n.resolve(e,t.slice(h));start()}}},74:(t,e,r)=>{"use strict";const n=r(747);const i=r(622);const o=r(833);function readSizeRecursive(t,e,r,s){let a;let c;if(!s){a=r;c=null}else{a=s;c=r}n.lstat(e,function lstat(r,s){let u=!r?s.size||0:0;if(s){if(t.has(s.ino)){return a(null,0)}t.add(s.ino)}if(!r&&s.isDirectory()){n.readdir(e,(r,n)=>{if(r){return a(r)}o(n,(r,n)=>{readSizeRecursive(t,i.join(e,r),c,(t,e)=>{if(!t){u+=e}n(t)})},t=>{a(t,u)})})}else{if(c&&c.test(e)){u=0}a(r,u)}})}t.exports=((...t)=>{t.unshift(new Set);return readSizeRecursive(...t)})},744:(t,e,r)=>{e.alphasort=alphasort;e.alphasorti=alphasorti;e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var n=r(622);var i=r(642);var o=r(963);var s=i.Minimatch;function alphasorti(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function alphasort(t,e){return t.localeCompare(e)}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new s(r,{dot:true})}return{matcher:new s(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var i=process.cwd();if(!ownProp(r,"cwd"))t.cwd=i;else{t.cwd=n.resolve(r.cwd);t.changedCwd=t.cwd!==i}t.root=r.root||n.resolve(t.cwd,"/");t.root=n.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=o(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new s(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var n=0,i=t.matches.length;n<i;n++){var o=t.matches[n];if(!o||Object.keys(o).length===0){if(t.nonull){var s=t.minimatch.globSet[n];if(e)r.push(s);else r[s]=true}}else{var a=Object.keys(o);if(e)r.push.apply(r,a);else a.forEach(function(t){r[t]=true})}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(t.nocase?alphasorti:alphasort);if(t.mark){for(var n=0;n<r.length;n++){r[n]=t._mark(r[n])}if(t.nodir){r=r.filter(function(e){var r=!/\/$/.test(e);var n=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r})}}if(t.ignore.length)r=r.filter(function(e){return!isIgnored(t,e)});t.found=r}function mark(t,e){var r=makeAbs(t,e);var n=t.cache[r];var i=e;if(n){var o=n==="DIR"||Array.isArray(n);var s=e.slice(-1)==="/";if(o&&!s)i+="/";else if(!o&&s)i=i.slice(0,-1);if(i!==e){var a=makeAbs(t,i);t.statCache[a]=t.statCache[r];t.cache[a]=t.cache[r]}}return i}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=n.join(t.root,e)}else if(o(e)||e===""){r=e}else if(t.changedCwd){r=n.resolve(t.cwd,e)}else{r=n.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some(function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))})}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some(function(t){return!!(t.gmatcher&&t.gmatcher.match(e))})}},750:(t,e,r)=>{t.exports=glob;var n=r(747);var i=r(909);var o=r(642);var s=o.Minimatch;var a=r(309);var c=r(614).EventEmitter;var u=r(622);var f=r(357);var h=r(963);var l=r(381);var p=r(744);var d=p.alphasort;var v=p.alphasorti;var m=p.setopts;var y=p.ownProp;var b=r(753);var _=r(669);var g=p.childrenIgnored;var w=p.isIgnored;var k=r(481);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return l(t,e)}return new Glob(t,e,r)}glob.sync=l;var E=glob.GlobSync=l.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var n=r.length;while(n--){t[r[n]]=e[r[n]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var n=new Glob(t,r);var i=n.minimatch.set;if(!t)return false;if(i.length>1)return true;for(var o=0;o<i[0].length;o++){if(typeof i[0][o]!=="string")return true}return false};glob.Glob=Glob;a(Glob,c);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);m(this,t,e);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=k(r);this.on("error",r);this.on("end",function(t){r(null,t)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var o=true;for(var s=0;s<n;s++){this._process(this.minimatch.set[s],s,false,done)}o=false;function done(){--i._processing;if(i._processing<=0){if(o){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){f(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r);var o=this;var s=n.length;if(s===0)return e();var a=this.matches[t]=Object.create(null);n.forEach(function(r,n){r=o._makeAbs(r);i.realpath(r,o.realpathCache,function(n,i){if(!n)a[i]=true;else if(n.syscall==="stat")a[r]=true;else o.emit("error",n);if(--s===0){o.matches[t]=a;e()}})})};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var i=n[e];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(t,e,r,n){f(this instanceof Glob);f(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,n]);return}var i=0;while(typeof t[i]==="string"){i++}var s;switch(i){case t.length:this._processSimple(t.join("/"),e,n);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var a=t.slice(i);var c;if(s===null)c=".";else if(h(s)||h(t.join("/"))){if(!s||!h(s))s="/"+s;c=s}else c=s;var u=this._makeAbs(c);if(g(this,c))return n();var l=a[0]===o.GLOBSTAR;if(l)this._processGlobStar(s,c,u,a,e,r,n);else this._processReaddir(s,c,u,a,e,r,n)};Glob.prototype._processReaddir=function(t,e,r,n,i,o,s){var a=this;this._readdir(r,o,function(c,u){return a._processReaddir2(t,e,r,n,i,o,u,s)})};Glob.prototype._processReaddir2=function(t,e,r,n,i,o,s,a){if(!s)return a();var c=n[0];var f=!!this.minimatch.negate;var h=c._glob;var l=this.dot||h.charAt(0)===".";var p=[];for(var d=0;d<s.length;d++){var v=s[d];if(v.charAt(0)!=="."||l){var m;if(f&&!t){m=!v.match(c)}else{m=v.match(c)}if(m)p.push(v)}}var y=p.length;if(y===0)return a();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<y;d++){var v=p[d];if(t){if(t!=="/")v=t+"/"+v;else v=t+v}if(v.charAt(0)==="/"&&!this.nomount){v=u.join(this.root,v)}this._emitMatch(i,v)}return a()}n.shift();for(var d=0;d<y;d++){var v=p[d];var b;if(t){if(t!=="/")v=t+"/"+v;else v=t+v}this._process([v].concat(n),i,o,a)}a()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(w(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=h(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=true;var i=this.statCache[r];if(i)this.emit("stat",e,i);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var o=b(r,lstatcb_);if(o)n.lstat(t,o);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return e();var o=n&&n.isSymbolicLink();i.symlinks[t]=o;if(!o&&n&&!n.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=b("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!y(this.symlinks,t))return this._readdirInGlobStar(t,r);if(y(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var o=this;n.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(n,i){if(n)t._readdirError(e,n,r);else t._readdirEntries(e,i,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<e.length;n++){var i=e[n];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,n,i,o,s){var a=this;this._readdir(r,o,function(c,u){a._processGlobStar2(t,e,r,n,i,o,u,s)})};Glob.prototype._processGlobStar2=function(t,e,r,n,i,o,s,a){if(!s)return a();var c=n.slice(1);var u=t?[t]:[];var f=u.concat(c);this._process(f,i,false,a);var h=this.symlinks[r];var l=s.length;if(h&&o)return a();for(var p=0;p<l;p++){var d=s[p];if(d.charAt(0)==="."&&!this.dot)continue;var v=u.concat(s[p],c);this._process(v,i,true,a);var m=u.concat(s[p],n);this._process(m,i,true,a)}a()};Glob.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,function(i,o){n._processSimple2(t,e,i,o,r)})};Glob.prototype._processSimple2=function(t,e,r,n,i){if(!this.matches[e])this.matches[e]=Object.create(null);if(!n)return i();if(t&&h(t)&&!this.nomount){var o=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=u.join(this.root,t)}else{t=u.resolve(this.root,t);if(o)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);i()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&y(this.cache,r)){var o=this.cache[r];if(Array.isArray(o))o="DIR";if(!i||o==="DIR")return e(null,o);if(i&&o==="FILE")return e()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return e(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return e();else return e(null,c,a)}}var u=this;var f=b("stat\0"+r,lstatcb_);if(f)n.lstat(r,f);function lstatcb_(i,o){if(o&&o.isSymbolicLink()){return n.stat(r,function(n,i){if(n)u._stat2(t,r,null,o,e);else u._stat2(t,r,n,i,e)})}else{u._stat2(t,r,i,o,e)}}};Glob.prototype._stat2=function(t,e,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return i()}var o=t.slice(-1)==="/";this.statCache[e]=n;if(e.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(o&&s==="FILE")return i();return i(null,s,n)}},381:(t,e,r)=>{t.exports=globSync;globSync.GlobSync=GlobSync;var n=r(747);var i=r(909);var o=r(642);var s=o.Minimatch;var a=r(750).Glob;var c=r(669);var u=r(622);var f=r(357);var h=r(963);var l=r(744);var p=l.alphasort;var d=l.alphasorti;var v=l.setopts;var m=l.ownProp;var y=l.childrenIgnored;var b=l.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);v(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){f(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach(function(e,r){var n=t.matches[r]=Object.create(null);for(var o in e){try{o=t._makeAbs(o);var s=i.realpathSync(o,t.realpathCache);n[s]=true}catch(e){if(e.syscall==="stat")n[t._makeAbs(o)]=true;else throw e}}})}l.finish(this)};GlobSync.prototype._process=function(t,e,r){f(this instanceof GlobSync);var n=0;while(typeof t[n]==="string"){n++}var i;switch(n){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,n).join("/");break}var s=t.slice(n);var a;if(i===null)a=".";else if(h(i)||h(t.join("/"))){if(!i||!h(i))i="/"+i;a=i}else a=i;var c=this._makeAbs(a);if(y(this,a))return;var u=s[0]===o.GLOBSTAR;if(u)this._processGlobStar(i,a,c,s,e,r);else this._processReaddir(i,a,c,s,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,n,i,o){var s=this._readdir(r,o);if(!s)return;var a=n[0];var c=!!this.minimatch.negate;var f=a._glob;var h=this.dot||f.charAt(0)===".";var l=[];for(var p=0;p<s.length;p++){var d=s[p];if(d.charAt(0)!=="."||h){var v;if(c&&!t){v=!d.match(a)}else{v=d.match(a)}if(v)l.push(d)}}var m=l.length;if(m===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var p=0;p<m;p++){var d=l[p];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=u.join(this.root,d)}this._emitMatch(i,d)}return}n.shift();for(var p=0;p<m;p++){var d=l[p];var y;if(t)y=[t,d];else y=[d];this._process(y.concat(n),i,o)}};GlobSync.prototype._emitMatch=function(t,e){if(b(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=n.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var o=r&&r.isSymbolicLink();this.symlinks[t]=o;if(!o&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!m(this.symlinks,t))return this._readdirInGlobStar(t);if(m(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,n.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var n=e[r];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,n,i,o){var s=this._readdir(r,o);if(!s)return;var a=n.slice(1);var c=t?[t]:[];var u=c.concat(a);this._process(u,i,false);var f=s.length;var h=this.symlinks[r];if(h&&o)return;for(var l=0;l<f;l++){var p=s[l];if(p.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[l],a);this._process(d,i,true);var v=c.concat(s[l],n);this._process(v,i,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&h(t)&&!this.nomount){var n=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=u.join(this.root,t)}else{t=u.resolve(this.root,t);if(n)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&m(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var o;var s=this.statCache[e];if(!s){var a;try{a=n.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{s=n.statSync(e)}catch(t){s=a}}else{s=a}}this.statCache[e]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return l.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return l.makeAbs(this,t)}},753:(t,e,r)=>{var n=r(687);var i=Object.create(null);var o=r(481);t.exports=n(inflight);function inflight(t,e){if(i[t]){i[t].push(e);return null}else{i[t]=[e];return makeres(t)}}function makeres(t){return o(function RES(){var e=i[t];var r=e.length;var n=slice(arguments);try{for(var o=0;o<r;o++){e[o].apply(null,n)}}finally{if(e.length>r){e.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[t]}}})}function slice(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n]=t[n];return r}},309:(t,e,r)=>{try{var n=r(669);if(typeof n.inherits!=="function")throw"";t.exports=n.inherits}catch(e){t.exports=r(474)}},474:t=>{if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype;t.prototype=new r;t.prototype.constructor=t}}}},642:(t,e,r)=>{t.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(622)}catch(t){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(215);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var f="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce(function(t,e){t[e]=true;return t},{})}var l=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,n,i){return minimatch(r,t,e)}}function ext(t,e){t=t||{};e=e||{};var r={};Object.keys(e).forEach(function(t){r[t]=e[t]});Object.keys(t).forEach(function(e){r[e]=t[e]});return r}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var r=function minimatch(r,n,i){return e.minimatch(r,n,ext(t,i))};r.Minimatch=function Minimatch(r,n){return new e.Minimatch(r,ext(t,n))};return r};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(n.sep!=="/"){t=t.split(n.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map(function(t){return t.split(l)});this.debug(this.pattern,r);r=r.map(function(t,e,r){return t.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(t){return t.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,o=t.length;i<o&&t.charAt(i)==="!";i++){e=!e;n++}if(n)this.pattern=t.substr(n);this.negate=e}minimatch.braceExpand=function(t,e){return braceExpand(t,e)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(t,e){if(!e){if(this instanceof Minimatch){e=this.options}else{e={}}}t=typeof t==="undefined"?this.pattern:t;if(typeof t==="undefined"){throw new TypeError("undefined pattern")}if(e.nobrace||!t.match(/\{.*\}/)){return[t]}return o(t)}Minimatch.prototype.parse=parse;var p={};function parse(t,e){if(t.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&t==="**")return i;if(t==="")return"";var n="";var o=!!r.nocase;var u=false;var f=[];var l=[];var d;var v=false;var m=-1;var y=-1;var b=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;o=true;break;case"?":n+=a;o=true;break;default:n+="\\"+d;break}_.debug("clearStateChar %j %j",d,n);d=false}}for(var g=0,w=t.length,k;g<w&&(k=t.charAt(g));g++){this.debug("%s\t%s %s %j",t,g,n,k);if(u&&h[k]){n+="\\"+k;u=false;continue}switch(k){case"/":return false;case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,g,n,k);if(v){this.debug(" in class");if(k==="!"&&g===y+1)k="^";n+=k;continue}_.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(v){n+="(";continue}if(!d){n+="\\(";continue}f.push({type:d,start:g-1,reStart:n.length,open:s[d].open,close:s[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(v||!f.length){n+="\\)";continue}clearStateChar();o=true;var E=f.pop();n+=E.close;if(E.type==="!"){l.push(E)}E.reEnd=n.length;continue;case"|":if(v||!f.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(v){n+="\\"+k;continue}v=true;y=g;m=n.length;n+=k;continue;case"]":if(g===y+1||!v){n+="\\"+k;u=false;continue}if(v){var S=t.substring(y+1,g);try{RegExp("["+S+"]")}catch(t){var O=this.parse(S,p);n=n.substr(0,m)+"\\["+O[0]+"\\]";o=o||O[1];v=false;continue}}o=true;v=false;n+=k;continue;default:clearStateChar();if(u){u=false}else if(h[k]&&!(k==="^"&&v)){n+="\\"}n+=k}}if(v){S=t.substr(y+1);O=this.parse(S,p);n=n.substr(0,m)+"\\["+O[0];o=o||O[1]}for(E=f.pop();E;E=f.pop()){var j=n.slice(E.reStart+E.open.length);this.debug("setting tail",n,E);j=j.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(t,e,r){if(!r){r="\\"}return e+e+r+"|"});this.debug("tail=%j\n %s",j,j,E,n);var x=E.type==="*"?c:E.type==="?"?a:"\\"+E.type;o=true;n=n.slice(0,E.reStart)+x+"\\("+j}clearStateChar();if(u){n+="\\\\"}var T=false;switch(n.charAt(0)){case".":case"[":case"(":T=true}for(var G=l.length-1;G>-1;G--){var M=l[G];var I=n.slice(0,M.reStart);var C=n.slice(M.reStart,M.reEnd-8);var D=n.slice(M.reEnd-8,M.reEnd);var R=n.slice(M.reEnd);D+=R;var P=I.split("(").length-1;var $=R;for(g=0;g<P;g++){$=$.replace(/\)[+*?]?/,"")}R=$;var q="";if(R===""&&e!==p){q="$"}var A=I+C+R+q+D;n=A}if(n!==""&&o){n="(?=.)"+n}if(T){n=b+n}if(e===p){return[n,o]}if(!o){return globUnescape(t)}var L=r.nocase?"i":"";try{var B=new RegExp("^"+n+"$",L)}catch(t){return new RegExp("$.")}B._glob=t;B._src=n;return B}minimatch.makeRe=function(t,e){return new Minimatch(t,e||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var t=this.set;if(!t.length){this.regexp=false;return this.regexp}var e=this.options;var r=e.noglobstar?c:e.dot?u:f;var n=e.nocase?"i":"";var o=t.map(function(t){return t.map(function(t){return t===i?r:typeof t==="string"?regExpEscape(t):t._src}).join("\\/")}).join("|");o="^(?:"+o+")$";if(this.negate)o="^(?!"+o+").*$";try{this.regexp=new RegExp(o,n)}catch(t){this.regexp=false}return this.regexp}minimatch.match=function(t,e,r){r=r||{};var n=new Minimatch(e,r);t=t.filter(function(t){return n.match(t)});if(n.options.nonull&&!t.length){t.push(e)}return t};Minimatch.prototype.match=match;function match(t,e){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;var r=this.options;if(n.sep!=="/"){t=t.split(n.sep).join("/")}t=t.split(l);this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var o;var s;for(s=t.length-1;s>=0;s--){o=t[s];if(o)break}for(s=0;s<i.length;s++){var a=i[s];var c=t;if(r.matchBase&&a.length===1){c=[o]}var u=this.matchOne(c,a,e);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s];var f=t[o];this.debug(e,u,f);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[e,u,f]);var h=o;var l=s+1;if(l===c){this.debug("** at the end");for(;o<a;o++){if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return false}return true}while(h<a){var p=t[h];this.debug("\nglobstar while",t,h,e,l,p);if(this.matchOne(t.slice(h),e.slice(l),r)){this.debug("globstar found match!",h,a,p);return true}else{if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,h,e,l);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",t,h,e,l);if(h===a)return true}return false}var d;if(typeof u==="string"){if(n.nocase){d=f.toLowerCase()===u.toLowerCase()}else{d=f===u}this.debug("string match",u,f,d)}else{d=f.match(u);this.debug("pattern match",u,f,d)}if(!d)return false}if(o===a&&s===c){return true}else if(o===a){return r}else if(s===c){var v=o===a-1&&t[o]==="";return v}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},485:(t,e,r)=>{var n=r(622);var i=r(747);var o=parseInt("0777",8);t.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(t,e,r,s){if(typeof e==="function"){r=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var a=e.mode;var c=e.fs||i;if(a===undefined){a=o}if(!s)s=null;var u=r||function(){};t=n.resolve(t);c.mkdir(t,a,function(r){if(!r){s=s||t;return u(null,s)}switch(r.code){case"ENOENT":if(n.dirname(t)===t)return u(r);mkdirP(n.dirname(t),e,function(r,n){if(r)u(r,n);else mkdirP(t,e,u,n)});break;default:c.stat(t,function(t,e){if(t||!e.isDirectory())u(r,s);else u(null,s)});break}})}mkdirP.sync=function sync(t,e,r){if(!e||typeof e!=="object"){e={mode:e}}var s=e.mode;var a=e.fs||i;if(s===undefined){s=o}if(!r)r=null;t=n.resolve(t);try{a.mkdirSync(t,s);r=r||t}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(t),e,r);sync(t,e,r);break;default:var c;try{c=a.statSync(t)}catch(t){throw i}if(!c.isDirectory())throw i;break}}return r}},481:(t,e,r)=>{var n=r(687);t.exports=n(once);t.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(t){var e=function(){if(e.called)return e.value;e.called=true;return e.value=t.apply(this,arguments)};e.called=false;return e}function onceStrict(t){var e=function(){if(e.called)throw new Error(e.onceError);e.called=true;return e.value=t.apply(this,arguments)};var r=t.name||"Function wrapped with `once`";e.onceError=r+" shouldn't be called more than once";e.called=false;return e}},963:t=>{"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},8:(t,e,r)=>{t.exports=rimraf;rimraf.sync=rimrafSync;var n=r(357);var i=r(622);var o=r(747);var s=undefined;try{s=r(750)}catch(t){}var a=parseInt("666",8);var c={nosort:true,silent:true};var u=0;var f=process.platform==="win32";function defaults(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach(function(e){t[e]=t[e]||o[e];e=e+"Sync";t[e]=t[e]||o[e]});t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||c}function rimraf(t,e,r){if(typeof e==="function"){r=e;e={}}n(t,"rimraf: missing path");n.equal(typeof t,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(e,"rimraf: invalid options argument provided");n.equal(typeof e,"object","rimraf: options should be object");defaults(e);var i=0;var o=null;var a=0;if(e.disableGlob||!s.hasMagic(t))return afterGlob(null,[t]);e.lstat(t,function(r,n){if(!r)return afterGlob(null,[t]);s(t,e.glob,afterGlob)});function next(t){o=o||t;if(--a===0)r(o)}function afterGlob(t,n){if(t)return r(t);a=n.length;if(a===0)return r();n.forEach(function(t){rimraf_(t,e,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&i<e.maxBusyTries){i++;var n=i*100;return setTimeout(function(){rimraf_(t,e,CB)},n)}if(r.code==="EMFILE"&&u<e.emfileWait){return setTimeout(function(){rimraf_(t,e,CB)},u++)}if(r.code==="ENOENT")r=null}u=0;next(r)})})}}function rimraf_(t,e,r){n(t);n(e);n(typeof r==="function");e.lstat(t,function(n,i){if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&f)fixWinEPERM(t,e,n,r);if(i&&i.isDirectory())return rmdir(t,e,n,r);e.unlink(t,function(n){if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return f?fixWinEPERM(t,e,n,r):rmdir(t,e,n,r);if(n.code==="EISDIR")return rmdir(t,e,n,r)}return r(n)})})}function fixWinEPERM(t,e,r,i){n(t);n(e);n(typeof i==="function");if(r)n(r instanceof Error);e.chmod(t,a,function(n){if(n)i(n.code==="ENOENT"?null:r);else e.stat(t,function(n,o){if(n)i(n.code==="ENOENT"?null:r);else if(o.isDirectory())rmdir(t,e,r,i);else e.unlink(t,i)})})}function fixWinEPERMSync(t,e,r){n(t);n(e);if(r)n(r instanceof Error);try{e.chmodSync(t,a)}catch(t){if(t.code==="ENOENT")return;else throw r}try{var i=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw r}if(i.isDirectory())rmdirSync(t,e,r);else e.unlinkSync(t)}function rmdir(t,e,r,i){n(t);n(e);if(r)n(r instanceof Error);n(typeof i==="function");e.rmdir(t,function(n){if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(t,e,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)})}function rmkids(t,e,r){n(t);n(e);n(typeof r==="function");e.readdir(t,function(n,o){if(n)return r(n);var s=o.length;if(s===0)return e.rmdir(t,r);var a;o.forEach(function(n){rimraf(i.join(t,n),e,function(n){if(a)return;if(n)return r(a=n);if(--s===0)e.rmdir(t,r)})})})}function rimrafSync(t,e){e=e||{};defaults(e);n(t,"rimraf: missing path");n.equal(typeof t,"string","rimraf: path should be a string");n(e,"rimraf: missing options");n.equal(typeof e,"object","rimraf: options should be object");var r;if(e.disableGlob||!s.hasMagic(t)){r=[t]}else{try{e.lstatSync(t);r=[t]}catch(n){r=s.sync(t,e.glob)}}if(!r.length)return;for(var i=0;i<r.length;i++){var t=r[i];try{var o=e.lstatSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&f)fixWinEPERMSync(t,e,r)}try{if(o&&o.isDirectory())rmdirSync(t,e,null);else e.unlinkSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return f?fixWinEPERMSync(t,e,r):rmdirSync(t,e,r);if(r.code!=="EISDIR")throw r;rmdirSync(t,e,r)}}}function rmdirSync(t,e,r){n(t);n(e);if(r)n(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(t,e)}}function rmkidsSync(t,e){n(t);n(e);e.readdirSync(t).forEach(function(r){rimrafSync(i.join(t,r),e)});var r=f?100:1;var o=0;do{var s=true;try{var a=e.rmdirSync(t,e);s=false;return a}finally{if(++o<r&&s)continue}}while(true)}},833:t=>{"use strict";t.exports=function eachAsync(t,e,r,n){var i=0;var o=0;var s=t.length-1;var a=false;var c;var u;var f;if(typeof e==="number"){c=e;f=r;u=n||function noop(){}}else{f=e;u=r||function noop(){};c=t.length}if(!t.length){return u()}var h=f.length;var l=function shouldCallNextIterator(){return!a&&i<c&&o<s};var p=function iteratorCallback(t){if(a){return}i--;if(t||o===s&&!i){a=true;u(t)}else if(l()){d(++o)}};var d=function processIterator(){i++;var e=h===2?[t[o],p]:[t[o],o,p];f.apply(null,e);if(l()){processIterator(++o)}};d()}},687:t=>{t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){wrapper[e]=t[e]});return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var n=t.apply(this,e);var i=e[e.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach(function(t){n[t]=i[t]})}return n}}},819:(module,__unused_webpack_exports,__webpack_require__)=>{const{resolve:resolve,relative:relative,dirname:dirname,sep:sep,extname:extname}=__webpack_require__(622);const glob=__webpack_require__(750);const shebangRegEx=__webpack_require__(681);const rimraf=__webpack_require__(8);const crypto=__webpack_require__(417);const{writeFileSync:writeFileSync,unlink:unlink,existsSync:existsSync,symlinkSync:symlinkSync}=__webpack_require__(747);const mkdirp=__webpack_require__(485);const{version:nccVersion}=__webpack_require__(306);process.noDeprecation=true;const usage=`Usage: ncc <cmd> <opts>\n\nCommands:\n build <input-file> [opts]\n run <input-file> [opts]\n cache clean|dir|size\n help\n version\n\nOptions:\n -o, --out [file] Output directory for build (defaults to dist)\n -m, --minify Minify output\n -C, --no-cache Skip build cache population\n -s, --source-map Generate source map\n --no-source-map-register Skip source-map-register source map support\n -e, --external [mod] Skip bundling 'mod'. Can be used many times\n -q, --quiet Disable build summaries / non-error outputs\n -w, --watch Start a watched build\n -t, --transpile-only Use transpileOnly option with the ts-loader\n --v8-cache Emit a build using the v8 compile cache\n --license [file] Adds a file containing licensing information to the output\n --stats-out [file] Emit webpack stats as json to the specified output file\n`;let api=false;if(require.main===require.cache[eval("__filename")]){runCmd(process.argv.slice(2),process.stdout,process.stderr).then(t=>{if(!t)process.exit()}).catch(t=>{if(!t.silent)console.error(t.nccError?t.message:t);process.exit(t.exitCode||1)})}else{module.exports=runCmd;api=true}function renderSummary(t,e,r,n,i,o){if(i&&!i.endsWith(sep))i+=sep;const s=Math.round(Buffer.byteLength(t,"utf8")/1024);const a=e?Math.round(Buffer.byteLength(e,"utf8")/1024):0;const c=Object.create(null);let u=s;let f=8+(e?4:0);for(const t of Object.keys(r)){const e=r[t].source;const n=Math.round((e.byteLength||Buffer.byteLength(e,"utf8"))/1024);c[t]=n;u+=n;if(t.length>f)f=t.length}const h=Object.keys(r).sort((t,e)=>c[t]>c[e]?1:-1);const l=u.toString().length;let p=`${s.toString().padStart(l," ")}kB ${i}index${n}`;let d=e?`${a.toString().padStart(l," ")}kB ${i}index${n}.map`:"";let v="",m=true;for(const t of h){if(m)m=false;else v+="\n";if(s<c[t]&&p){v+=p+"\n";p=null}if(a&&a<c[t]&&d){v+=d+"\n";d=null}v+=`${c[t].toString().padStart(l," ")}kB ${i}${t}`}if(p){v+=(m?"":"\n")+p;m=false}if(d)v+=(m?"":"\n")+d;v+=`\n${u}kB [${o}ms] - ncc ${nccVersion}`;return v}function nccError(t,e=1){const r=new Error(t);r.nccError=true;r.exitCode=e;throw r}async function runCmd(argv,stdout,stderr){let args;try{args=__webpack_require__(832)({"--debug":Boolean,"-d":"--debug","--external":[String],"-e":"--external","--out":String,"-o":"--out","--minify":Boolean,"-m":"--minify","--source-map":Boolean,"-s":"--source-map","--no-cache":Boolean,"-C":"--no-cache","--no-source-map-register":Boolean,"--quiet":Boolean,"-q":"--quiet","--watch":Boolean,"-w":"--watch","--v8-cache":Boolean,"--transpile-only":Boolean,"-t":"--transpile-only","--license":String,"--stats-out":String},{permissive:false,argv:argv})}catch(t){if(t.message.indexOf("Unknown or unexpected option")===-1)throw t;nccError(t.message+`\n${usage}`,2)}if(args._.length===0)nccError(`Error: No command specified\n${usage}`,2);let run=false;let outDir=args["--out"];const quiet=args["--quiet"];const statsOutFile=args["--stats-out"];switch(args._[0]){case"cache":if(args._.length>2)errTooManyArguments("cache");const flags=Object.keys(args).filter(t=>t.startsWith("--"));if(flags.length)errFlagNotCompatible(flags[0],"cache");const cacheDir=__webpack_require__(946);switch(args._[1]){case"clean":rimraf.sync(cacheDir);break;case"dir":stdout.write(cacheDir+"\n");break;case"size":__webpack_require__(74)(cacheDir,(t,e)=>{if(t){if(t.code==="ENOENT"){stdout.write("0MB\n");return}throw t}stdout.write(`${(e/1024/1024).toFixed(2)}MB\n`)});break;default:errInvalidCommand("cache "+args._[1])}break;case"run":if(args._.length>2)errTooManyArguments("run");if(args["--out"])errFlagNotCompatible("--out","run");if(args["--watch"])errFlagNotCompatible("--watch","run");outDir=resolve(__webpack_require__(87).tmpdir(),crypto.createHash("md5").update(resolve(args._[1]||".")).digest("hex"));if(existsSync(outDir))rimraf.sync(outDir);run=true;case"build":if(args._.length>2)errTooManyArguments("build");let startTime=Date.now();let ps;const buildFile=eval("require.resolve")(resolve(args._[1]||"."));const ext=buildFile.endsWith(".cjs")?".cjs":".js";const ncc=__webpack_require__(612)(buildFile,{debugLog:args["--debug"],minify:args["--minify"],externals:args["--external"],sourceMap:args["--source-map"]||run,sourceMapRegister:args["--no-source-map-register"]?false:undefined,cache:args["--no-cache"]?false:undefined,watch:args["--watch"],v8cache:args["--v8-cache"],transpileOnly:args["--transpile-only"],license:args["--license"],quiet:quiet});async function handler({err:err,code:code,map:map,assets:assets,symlinks:symlinks,stats:stats}){if(err){stderr.write(err+"\n");stdout.write("Watching for changes...\n");return}outDir=outDir||resolve(eval("'dist'"));mkdirp.sync(outDir);await Promise.all((await new Promise((t,e)=>glob(outDir+"/**/*.(js|cjs)",(r,n)=>r?e(r):t(n)))).map(t=>new Promise((e,r)=>unlink(t,t=>t?r(t):e()))));writeFileSync(`${outDir}/index${ext}`,code,{mode:code.match(shebangRegEx)?511:438});if(map)writeFileSync(`${outDir}/index${ext}.map`,map);for(const t of Object.keys(assets)){const e=outDir+"/"+t;mkdirp.sync(dirname(e));writeFileSync(e,assets[t].source,{mode:assets[t].permissions})}for(const t of Object.keys(symlinks)){const e=outDir+"/"+t;symlinkSync(symlinks[t],e)}if(!quiet){stdout.write(renderSummary(code,map,assets,ext,run?"":relative(process.cwd(),outDir),Date.now()-startTime)+"\n");if(args["--watch"])stdout.write("Watching for changes...\n")}if(statsOutFile)writeFileSync(statsOutFile,JSON.stringify(stats.toJson()));if(run){const t=resolve("/node_modules");let e=dirname(buildFile)+"/node_modules";do{if(e===t){e=undefined;break}if(existsSync(e))break}while(e=resolve(e,"../../node_modules"));if(e)symlinkSync(e,outDir+"/node_modules","junction");ps=__webpack_require__(129).fork(`${outDir}/index${ext}`,{stdio:api?"pipe":"inherit"});if(api){ps.stdout.pipe(stdout);ps.stderr.pipe(stderr)}return new Promise((t,e)=>{function exit(r){__webpack_require__(8).sync(outDir);if(r===0)t();else e({silent:true,exitCode:r});process.off("SIGTERM",exit);process.off("SIGINT",exit)}ps.on("exit",exit);process.on("SIGTERM",exit);process.on("SIGINT",exit)})}}if(args["--watch"]){ncc.handler(handler);ncc.rebuild(()=>{if(ps)ps.kill();startTime=Date.now();stdout.write("File change, rebuilding...\n")});return true}else{return ncc.then(handler)}break;case"help":nccError(usage,2);case"version":stdout.write(__webpack_require__(306).version+"\n");break;default:errInvalidCommand(args._[0],2)}function errTooManyArguments(t){nccError(`Error: Too many ${t} arguments provided\n${usage}`,2)}function errFlagNotCompatible(t,e){nccError(`Error: ${t} flag is not compatible with ncc ${e}\n${usage}`,2)}function errInvalidCommand(t){nccError(`Error: Invalid command "${t}"\n${usage}`,2)}process.on("unhandledRejection",t=>{throw t})}},946:(t,e,r)=>{t.exports=r(87).tmpdir()+"/ncc-cache"},681:t=>{t.exports=/^#![^\n\r]*[\r\n]/},612:t=>{"use strict";t.exports=require("./index.js")},357:t=>{"use strict";t.exports=require("assert")},129:t=>{"use strict";t.exports=require("child_process")},417:t=>{"use strict";t.exports=require("crypto")},614:t=>{"use strict";t.exports=require("events")},747:t=>{"use strict";t.exports=require("fs")},87:t=>{"use strict";t.exports=require("os")},622:t=>{"use strict";t.exports=require("path")},669:t=>{"use strict";t.exports=require("util")}};var __webpack_module_cache__={};function __webpack_require__(t){if(__webpack_module_cache__[t]){return __webpack_module_cache__[t].exports}var e=__webpack_module_cache__[t]={exports:{}};var r=true;try{__webpack_modules__[t](e,e.exports,__webpack_require__);r=false}finally{if(r)delete __webpack_module_cache__[t]}return e.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(819)})();
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js new file mode 100644 index 0000000..a4e5922 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js @@ -0,0 +1,8 @@ +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/index.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache Binary files differnew file mode 100644 index 0000000..1109b8f --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js new file mode 100644 index 0000000..568b2dd --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js @@ -0,0 +1 @@ +module.exports=(()=>{var __webpack_modules__={66835:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},40038:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},42245:e=>{"use strict";e.exports={i8:"5.1.0"}},18492:e=>{"use strict";e.exports={version:"4.2.1"}},82788:e=>{"use strict";e.exports={i8:"4.2.0"}},5537:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debugger":"< 8","dgram":true,"dns":true,"domain":true,"events":true,"freelist":"< 6","fs":true,"fs/promises":">= 10 && < 10.1","_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"string_decoder":true,"sys":true,"timers":true,"_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"worker_threads":">= 11.7","zlib":true}')},26068:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"Rule":{"description":"Filtering rule as regex or string.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","minLength":1}]},"Rules":{"description":"Filtering rules.","anyOf":[{"type":"array","items":{"description":"A rule condition.","oneOf":[{"$ref":"#/definitions/Rule"}]}},{"$ref":"#/definitions/Rule"}]}},"title":"TerserPluginOptions","type":"object","additionalProperties":false,"properties":{"test":{"description":"Include all modules that pass test assertion.","oneOf":[{"$ref":"#/definitions/Rules"}]},"include":{"description":"Include all modules matching any of these conditions.","oneOf":[{"$ref":"#/definitions/Rules"}]},"exclude":{"description":"Exclude all modules matching any of these conditions.","oneOf":[{"$ref":"#/definitions/Rules"}]},"cache":{"description":"Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.","anyOf":[{"type":"boolean"},{"type":"string"}]},"cacheKeys":{"description":"Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.","instanceof":"Function"},"parallel":{"description":"Use multi-process parallel running to improve the build speed.","anyOf":[{"type":"boolean"},{"type":"integer"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","type":"boolean"},"minify":{"description":"Allows you to override default minify function.","instanceof":"Function"},"terserOptions":{"description":"Options for `terser`.","additionalProperties":true,"type":"object"},"extractComments":{"description":"Whether comments shall be extracted to a separate file.","anyOf":[{"type":"boolean"},{"type":"string"},{"instanceof":"RegExp"},{"instanceof":"Function"},{"additionalProperties":false,"properties":{"condition":{"anyOf":[{"type":"boolean"},{"type":"string"},{"instanceof":"RegExp"},{"instanceof":"Function"}]},"filename":{"anyOf":[{"type":"string"},{"instanceof":"Function"}]},"banner":{"anyOf":[{"type":"boolean"},{"type":"string"},{"instanceof":"Function"}]}},"type":"object"}]}}}')},16705:e=>{"use strict";e.exports=JSON.parse('{"Jw":{"k":"2","K":"5"}}')},47667:e=>{"use strict";e.exports=JSON.parse('{"name":"terser","description":"JavaScript parser, mangler/compressor and beautifier toolkit for ES6+","homepage":"https://terser.org","author":"Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)","license":"BSD-2-Clause","version":"5.2.1","engines":{"node":">=6.0.0"},"maintainers":["Fábio Santos <fabiosantosart@gmail.com>"],"repository":"https://github.com/terser/terser","main":"dist/bundle.min.js","type":"module","module":"./main.js","exports":{".":{"import":"./main.js","require":"./dist/bundle.min.js"},"./package":{"default":"./package.json"},"./package.json":{"default":"./package.json"}},"types":"tools/terser.d.ts","bin":{"terser":"bin/terser"},"files":["bin","dist","lib","tools","LICENSE","README.md","CHANGELOG.md","PATRONS.md","main.js"],"dependencies":{"commander":"^2.20.0","source-map":"~0.6.1","source-map-support":"~0.5.12"},"devDependencies":{"@ls-lint/ls-lint":"^1.9.2","acorn":"^7.4.0","astring":"^1.4.1","eslint":"^7.0.0","eslump":"^2.0.0","esm":"^3.2.25","mocha":"^8.0.0","pre-commit":"^1.2.2","rimraf":"^3.0.0","rollup":"2.0.6","semver":"^7.1.3"},"scripts":{"test":"node test/compress.js && mocha test/mocha","test:compress":"node test/compress.js","test:mocha":"mocha test/mocha","lint":"eslint lib","lint-fix":"eslint --fix lib","ls-lint":"ls-lint","build":"rimraf dist/bundle* && rollup --config --silent","prepare":"npm run build","postversion":"echo \'Remember to update the changelog!\'"},"keywords":["uglify","terser","uglify-es","uglify-js","minify","minifier","javascript","ecmascript","es5","es6","es7","es8","es2015","es2016","es2017","async","await"],"eslintConfig":{"parserOptions":{"sourceType":"module","ecmaVersion":"2020"},"env":{"node":true,"browser":true,"es2020":true},"globals":{"describe":false,"it":false,"require":false,"global":false,"process":false},"rules":{"brace-style":["error","1tbs",{"allowSingleLine":true}],"quotes":["error","double","avoid-escape"],"no-debugger":"error","no-undef":"error","no-unused-vars":["error",{"varsIgnorePattern":"^_$"}],"no-tabs":"error","semi":["error","always"],"no-extra-semi":"error","no-irregular-whitespace":"error","space-before-blocks":["error","always"]}},"pre-commit":["lint-fix","ls-lint","test"]}')},48574:e=>{"use strict";e.exports={i8:"4.1.0"}},43201:e=>{"use strict";e.exports=JSON.parse('["$&","$\'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALT_MASK","ALWAYS","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AddSearchProvider","AnalyserNode","AnimationEvent","AnonXMLHttpRequest","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioProcessingEvent","AudioStreamTrack","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BarProp","BaseHref","BatteryManager","BeforeLoadEvent","BeforeUnloadEvent","BiquadFilterNode","Blob","BlobEvent","Boolean","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR_ATTACHMENT0","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSPageRule","CSSPrimitiveValue","CSSRule","CSSRuleList","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSSupportsRule","CSSUnknownRule","CSSValue","CSSValueList","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","CloseEvent","Collator","CommandEvent","Comment","CompositionEvent","Console","Controllers","ConvolverNode","Counter","Crypto","CryptoKey","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DST_ALPHA","DST_COLOR","DYNAMIC_DRAW","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DelayNode","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Document","DocumentFragment","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementQuery","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_MAT2","FLOAT_MAT3","FLOAT_MAT4","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","Feed","FeedEntry","File","FileError","FileList","FileReader","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FormData","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadButton","GamepadEvent","GestureEvent","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","Image","ImageBitmap","ImageData","Infinity","InputEvent","InputMethodContext","InstallTrigger","Int16Array","Int32Array","Int8Array","Intent","InternalError","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","KeyboardEvent","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LocalMediaStream","Location","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_VALUE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MediaController","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackEvent","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBSOLETE","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","Option","OscillatorNode","OverflowEvent","PACK_ALIGNMENT","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","Path2D","Performance","PerformanceEntry","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceResourceTiming","PerformanceTiming","PeriodicWave","Plugin","PluginArray","PopStateEvent","PopupBlockedEvent","ProcessingInstruction","ProgressEvent","Promise","PropertyNodeList","Proxy","PushManager","PushSubscription","Q","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED_BITS","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RGB","RGB565","RGB5_A1","RGBA","RGBA4","RGBColor","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCDataChannelEvent","RTCIceCandidate","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCSessionDescription","RTCStatsReport","RadioNodeList","Range","RangeError","RangeException","RecordErrorEvent","Rect","ReferenceError","RegExp","Request","Response","SAMPLER_2D","SAMPLER_CUBE","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","START_TO_END","START_TO_START","STATIC_DRAW","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_DRAW","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedWorker","SimpleGestureEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","StopIteration","Storage","StorageEvent","String","StyleSheet","StyleSheetList","SubtleCrypto","Symbol","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_BINDING_2D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MIN_FILTER","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Text","TextDecoder","TextEncoder","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransitionEvent","TreeWalker","TypeError","UIEvent","UNCACHED","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNSCHEDULED_STATE","UNSENT","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VTTCue","VTTRegion","ValidityState","VideoStreamTrack","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WaveShaperNode","WeakMap","WeakSet","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLRenderingContext","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArray","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WheelEvent","Window","Worker","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","add","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addWakeLockListener","addedNodes","additionalName","additiveSymbols","addons","adoptNode","adr","advance","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allowFullscreen","allowedDirections","alpha","alt","altGraphKey","altHtml","altKey","altLeft","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","angle","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","apply","applyElement","arc","arcTo","archive","areas","arguments","arrayBuffer","asin","asinh","assert","assign","async","atEnd","atan","atan2","atanh","atob","attachEvent","attachShader","attachments","attack","attrChange","attrName","attributeName","attributeNamespace","attributes","audioTracks","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","axes","axis","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","balance","baseFrequencyX","baseFrequencyY","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","beginElement","beginElementAt","beginPath","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","binaryType","bind","bindAttribLocation","bindBuffer","bindFramebuffer","bindRenderbuffer","bindTexture","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blob","blockDirection","blue","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderColorDark","borderColorLight","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","c","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canPlayType","cancel","cancelAnimationFrame","cancelBubble","cancelScheduledValues","cancelable","candidate","canvas","caption","caption-side","captionSide","captureEvents","captureStackTrace","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","characterSet","charging","chargingTime","charset","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childNodes","children","chrome","ciphertext","cite","classList","className","classid","clear","clearAttributes","clearColor","clearData","clearDepth","clearImmediate","clearInterval","clearMarks","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-interpolation","color-interpolation-filters","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commitPreferences","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareNode","comparePoint","compatMode","compatible","compile","compileShader","complete","componentFromPoint","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexSubImage2D","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectStart","connected","connection","connectionSpeed","console","consolidate","constrictionActive","constructor","contactID","contains","containsNode","content","contentDocument","contentEditable","contentOverflow","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuous","control","controller","controls","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","cos","cosh","count","counter-increment","counter-reset","counterIncrement","counterReset","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTMLDocument","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPopup","createProcessingInstruction","createProgram","createRadialGradient","createRange","createRangeCollection","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createScriptProcessor","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTreeWalker","createWaveShaper","creationTime","crossOrigin","crypto","csi","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentNode","currentPage","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customError","cx","cy","d","data","dataFld","dataFormatAs","dataPageSize","dataSrc","dataTransfer","database","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPrevented","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","delayTime","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteRenderbuffer","deleteRow","deleteRule","deleteShader","deleteTFoot","deleteTHead","deleteTexture","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","depthFunc","depthMask","depthRange","deriveBits","deriveKey","description","deselectAll","designMode","destination","destinationURL","detach","detachEvent","detachShader","detail","detune","devicePixelRatio","deviceXDPI","deviceYDPI","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disableVertexAttribArray","disabled","dischargingTime","disconnect","dispatchEvent","display","distanceModel","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","download","dragDrop","draggable","drawArrays","drawArraysInstancedANGLE","drawCustomFocusRing","drawElements","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dump","duplicate","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effectAllowed","elapsedTime","elementFromPoint","elements","elevation","ellipse","email","embeds","empty","empty-cells","emptyCells","enable","enableBackground","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeURI","encodeURIComponent","encoding","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endTime","ended","endsWith","entities","entries","entryType","enumerate","enumerateEditable","error","errorCode","escape","eval","evaluate","event","eventPhase","every","exception","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPointerLock","exp","expand","expandEntityReferences","expando","expansion","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","f","face","factoryReset","fallback","familyName","farthestViewportElement","fastSeek","fatal","fetch","fetchStart","fftSize","fgColor","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","fill","fill-opacity","fill-rule","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","find","findIndex","findRule","findText","finish","fireEvent","firstChild","firstElementChild","firstPage","fixed","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","fontcolor","fonts","fontsize","for","forEach","forceRedraw","form","formAction","formEnctype","formMethod","formNoValidate","formTarget","format","forms","forward","fr","frame","frameBorder","frameElement","frameSpacing","framebufferRenderbuffer","framebufferTexture2D","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","frontFace","fround","fullScreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","genderIdentity","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getAdjacentText","getAll","getAllResponseHeaders","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNode","getAttributeNodeNS","getAudioTracks","getBBox","getBattery","getBlob","getBookmark","getBoundingClientRect","getBufferParameter","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getChannelData","getCharNumAtPosition","getClientRect","getClientRects","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getConfiguration","getContext","getContextAttributes","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDestinationInsertionPoints","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getFeature","getFile","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHours","getImageData","getInt16","getInt32","getInt8","getIntersectionList","getItem","getItems","getKey","getLineDash","getLocalStreams","getMarks","getMatchedCSSRules","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNotifier","getNumberOfChars","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getPathSegAtLength","getPointAtLength","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyValue","getPrototypeOf","getRGBColorValue","getRandomValues","getRangeAt","getReceivers","getRectValue","getRegistration","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRotationOfChar","getSVGDocument","getScreenCTM","getSeconds","getSelection","getSenders","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getStats","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedExtensions","getTexParameter","getTime","getTimezoneOffset","getTotalLength","getTrackById","getTracks","getTransformToElement","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformLocation","getUserMedia","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getWakeLockState","getYear","givenName","global","globalAlpha","globalCompositeOperation","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","gradientTransform","gradientUnits","grammars","green","group","groupCollapsed","groupEnd","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasChildNodes","hasComposition","hasExtension","hasFeature","hasFocus","hasLayout","hasOwnProperty","hash","head","headers","heading","height","hidden","hide","hideFocus","high","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostname","href","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","hwTimestamp","hypot","iccId","iceConnectionState","iceGatheringState","icon","id","identifier","identity","ignoreBOM","ignoreCase","image-orientation","image-rendering","imageOrientation","imageRendering","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertData","insertItemBefore","insertNode","insertRow","insertRule","instanceRoot","intercept","interimResults","internalSubset","intersectsNode","interval","invalidIteratorState","inverse","invertSelf","is","is2D","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isFinite","isFramebuffer","isFrozen","isGenerator","isId","isInjected","isInteger","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isRenderbuffer","isSafeInteger","isSameNode","isSealed","isShader","isSupported","isTextEdit","isTexture","isTrusted","isTypeSupported","isView","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","iterateNext","iterator","javaEnabled","jobTitle","join","json","justify-content","justifyContent","k1","k2","k3","k4","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keySystem","keyText","keyUsage","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftMargin","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearRampToValueAtTime","lineno","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTimes","loaded","localDescription","localName","localStorage","locale","localeCompare","location","locationbar","lock","lockedFile","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","manifest","map","mapping","margin","margin-bottom","margin-left","margin-right","margin-top","marginBottom","marginHeight","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-type","maskContentUnits","maskType","maskUnits","match","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-height","max-width","maxAlternatives","maxChannelCount","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxLength","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","metaKey","method","mimeType","mimeTypes","min","min-height","min-width","minDecibels","minHeight","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationStart","navigator","near","nearestViewportElement","negative","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextNode","nextPage","nextSibling","nickname","noHref","noResize","noShade","noValidate","noWrap","nodeName","nodeType","nodeValue","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","observe","of","offscreenBuffering","offset","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onactivate","onactive","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onblocked","onblur","onbounce","onboundary","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","oncellchange","onchange","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","oncompassneedscalibration","oncomplete","oncontextmenu","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceproximity","ondischargingtimechange","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onfullscreenchange","onfullscreenerror","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","oniceconnectionstatechange","oninactive","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onlayoutcomplete","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerup","onpopstate","onprogress","onpropertychange","onratechange","onreadystatechange","onremovestream","onremovetrack","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onseeked","onseeking","onselect","onselectionchange","onselectstart","onshow","onsignalingstatechange","onsoundend","onsoundstart","onspeechend","onspeechstart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","ontextinput","ontimeout","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onunload","onupdateready","onupgradeneeded","onuserproximity","onversionchange","onvoiceschanged","onvolumechange","onwaiting","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opener","opera","operationType","operator","opr","optimum","options","order","orderX","orderY","ordered","org","orient","orientAngle","orientType","orientation","origin","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","overflow","overflow-x","overflow-y","overflowX","overflowY","overrideMimeType","oversample","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","pad","padding","padding-bottom","padding-left","padding-right","padding-top","paddingBottom","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","palette","panningModel","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseFloat","parseFromString","parseInt","participants","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","paused","pending","performance","permission","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phoneticFamilyName","phoneticGivenName","photo","ping","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","placeholder","platform","play","playbackRate","playbackState","playbackTime","played","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","position","positionAlign","postError","postMessage","poster","pow","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","previousElementSibling","previousNode","previousPage","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","privateKey","probablySupportsContext","process","processIceMessage","product","productSub","profile","profileEnd","profiles","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","pseudoClass","pseudoElement","publicId","publicKey","published","push","pushNotification","pushState","put","putImageData","quadraticCurveTo","qualifier","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","quote","quotes","r","r1","r2","race","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readOnly","readPixels","readReportRequested","readyState","reason","reboot","receiver","receivers","recordNumber","recordset","rect","red","redirectCount","redirectEnd","redirectStart","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referrer","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProtocolHandler","reject","rel","relList","relatedNode","relatedTarget","release","releaseCapture","releaseEvents","releasePointerCapture","releaseShaderCompiler","reliable","reload","remainingSpace","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removedNodes","renderbufferStorage","renderedBuffer","renderingMode","repeat","replace","replaceAdjacentText","replaceChild","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceTrack","replaceWholeText","reportValidity","requestAnimationFrame","requestAutocomplete","requestData","requestFullscreen","requestMediaKeySystemAccess","requestPermission","requestPointerLock","requestStart","requestingWindow","required","requiredExtensions","requiredFeatures","reset","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseStart","responseText","responseType","responseURL","responseXML","restore","result","resultType","resume","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightMargin","rolloffFactor","root","rootElement","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationRate","round","rowIndex","rowSpan","rows","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","safari","sampleCoverage","sampleRate","sandbox","save","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scripts","scroll","scroll-behavior","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMaxX","scrollMaxY","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbars","scrolling","sdp","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekable","seeking","select","selectAllChildren","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentTimestamp","separator","serializeToString","serviceWorker","sessionId","sessionStorage","set","setActive","setAlpha","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBingCurrentSearchDefault","setCapture","setColor","setCompositeOperation","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFullYear","setHours","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setLineCap","setLineDash","setLineJoin","setLineWidth","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setPeriodicWave","setPointerCapture","setPosition","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-rendering","shapeRendering","sheet","shift","shiftKey","shiftLeft","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signalingState","sin","singleNodeValue","sinh","size","sizeToContent","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","small","smil","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","source","sourceBuffer","sourceBuffers","sourceIndex","spacing","span","speakAs","speaking","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","standalone","standby","start","startContainer","startIce","startOffset","startRendering","startTime","startsWith","state","status","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopOpacity","stopPropagation","storageArea","storageName","storageStatus","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","strike","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","subscribe","substr","substring","substringData","subtle","suffix","suffixes","summary","sup","supports","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takeRecords","tan","tanh","target","targetElement","targetTouches","targetX","targetY","tel","terminate","test","texImage2D","texParameterf","texParameteri","texSubImage2D","text","text-align","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationStyle","textDecorationUnderline","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlinePosition","then","threadId","threshold","tiltX","tiltY","time","timeEnd","timeStamp","timeout","timestamp","timestampOffset","timing","title","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMethod","toPrecision","toSdp","toSource","toStaticHTML","toString","toStringTag","toTimeString","toUTCString","toUpperCase","toggle","toggleLongPressEnabled","tooLong","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touchAction","touches","trace","track","transaction","transactions","transform","transform-origin","transform-style","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","trim","trimLeft","trimRight","trueSpeed","trunc","truncate","type","typeDetail","typeMismatch","typeMustMatch","types","ubound","undefined","unescape","uneval","unicode-bidi","unicodeBidi","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniformMatrix2fv","uniformMatrix3fv","uniformMatrix4fv","unique","uniqueID","uniqueNumber","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","update","updateCommands","updateIce","updateInterval","updateSettings","updated","updating","upload","upper","upperBound","upperOpen","uri","url","urn","urns","usages","useCurrentView","useMap","useProgram","usedSpace","userAgent","userLanguage","username","v8BreakIterator","vAlign","vLink","valid","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisorANGLE","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vibrate","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","visibility","visibilityState","visible","vlinkColor","voice","volume","vrml","vspace","w","wand","warn","wasClean","watch","watchPosition","webdriver","webkitAddKey","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitKeys","webkitLineDashOffset","webkitLockOrientation","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextSizeAdjust","webkitTransform","webkitTransformOrigin","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","wrap","wrapKey","write","writeln","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"]')},95890:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["ecma","es"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/mrb-publish+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["keynote"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana"},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana"},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana"},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana"},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shex":{"extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana"},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},61733:e=>{"use strict";e.exports=JSON.parse('{"i8":"5.0.0-beta.28"}')},76518:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"Amd":{"description":"Set the value of `require.amd` and `define.amd`. Or disable AMD support.","anyOf":[{"description":"You can pass `false` to disable AMD support.","enum":[false]},{"description":"You can pass an object to set the value of `require.amd` and `define.amd`.","type":"object"}]},"AssetModuleFilename":{"description":"The filename of asset modules as relative path inside the `output.path` directory.","anyOf":[{"type":"string","absolutePath":false},{"instanceof":"Function","tsType":"((pathData: import(\\"../lib/Compilation\\").PathData, assetInfo?: import(\\"../lib/Compilation\\").AssetInfo) => string)"}]},"AuxiliaryComment":{"description":"Add a comment in the UMD wrapper.","anyOf":[{"description":"Append the same comment above each import style.","type":"string"},{"$ref":"#/definitions/LibraryCustomUmdCommentObject"}]},"Bail":{"description":"Report the first error as a hard error instead of tolerating it.","type":"boolean"},"CacheOptions":{"description":"Cache generated modules and chunks to improve performance for multiple incremental builds.","anyOf":[{"description":"Enable in memory caching.","enum":[true]},{"$ref":"#/definitions/CacheOptionsNormalized"}]},"CacheOptionsNormalized":{"description":"Cache generated modules and chunks to improve performance for multiple incremental builds.","anyOf":[{"description":"Disable caching.","enum":[false]},{"$ref":"#/definitions/MemoryCacheOptions"},{"$ref":"#/definitions/FileCacheOptions"}]},"Charset":{"description":"Add charset attribute for script tag.","type":"boolean"},"ChunkCallbackName":{"description":"The callback function name used by webpack for loading of chunks in WebWorkers.","type":"string"},"ChunkFilename":{"description":"The filename of non-entry chunks as relative path inside the `output.path` directory.","type":"string","absolutePath":false},"ChunkLoadTimeout":{"description":"Number of milliseconds before chunk request expires.","type":"number"},"CompareBeforeEmit":{"description":"Check if to be emitted file already exists and have the same content before writing to output filesystem.","type":"boolean"},"Context":{"description":"The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.","type":"string","absolutePath":true},"CrossOriginLoading":{"description":"This option enables cross-origin loading of chunks.","enum":[false,"anonymous","use-credentials"]},"Dependencies":{"description":"References to other configurations to depend on.","type":"array","items":{"description":"References to another configuration to depend on.","type":"string"}},"DevServer":{"description":"Options for the webpack-dev-server.","type":"object"},"DevTool":{"description":"A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).","anyOf":[{"enum":[false,"eval"]},{"type":"string","pattern":"^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"}]},"DevtoolFallbackModuleFilenameTemplate":{"description":"Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.","anyOf":[{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"DevtoolModuleFilenameTemplate":{"description":"Filename template string of function for the sources array in a generated SourceMap.","anyOf":[{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"DevtoolNamespace":{"description":"Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It\'s useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.","type":"string"},"EcmaVersion":{"description":"The maximum EcmaScript version of the webpack generated code (doesn\'t include input source code from modules).","anyOf":[{"enum":[2009]},{"type":"number","minimum":5,"maximum":11},{"type":"number","minimum":2015,"maximum":2020}]},"EnabledLibraryTypes":{"description":"List of library types enabled for use by entry points.","type":"array","items":{"$ref":"#/definitions/LibraryType"}},"Entry":{"description":"The entry point(s) of the compilation.","anyOf":[{"$ref":"#/definitions/EntryDynamic"},{"$ref":"#/definitions/EntryStatic"}]},"EntryDescription":{"description":"An object with entry point description.","type":"object","additionalProperties":false,"properties":{"dependOn":{"description":"The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.","anyOf":[{"description":"The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.","type":"array","items":{"description":"An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.","type":"string","minLength":1},"minItems":1,"uniqueItems":true},{"description":"An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.","type":"string","minLength":1}]},"filename":{"$ref":"#/definitions/Filename"},"import":{"$ref":"#/definitions/EntryItem"},"library":{"$ref":"#/definitions/LibraryOptions"},"runtime":{"$ref":"#/definitions/EntryRuntime"}},"required":["import"]},"EntryDescriptionNormalized":{"description":"An object with entry point description.","type":"object","additionalProperties":false,"properties":{"dependOn":{"description":"The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.","type":"array","items":{"description":"An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.","type":"string","minLength":1},"minItems":1,"uniqueItems":true},"filename":{"$ref":"#/definitions/Filename"},"import":{"description":"Module(s) that are loaded upon startup. The last one is exported.","type":"array","items":{"description":"Module that is loaded upon startup. Only the last one is exported.","type":"string","minLength":1},"minItems":1,"uniqueItems":true},"library":{"$ref":"#/definitions/LibraryOptions"},"runtime":{"$ref":"#/definitions/EntryRuntime"}}},"EntryDynamic":{"description":"A Function returning an entry object, an entry string, an entry array or a promise to these things.","instanceof":"Function","tsType":"(() => EntryStatic | Promise<EntryStatic>)"},"EntryDynamicNormalized":{"description":"A Function returning a Promise resolving to a normalized entry.","instanceof":"Function","tsType":"(() => Promise<EntryStaticNormalized>)"},"EntryItem":{"description":"Module(s) that are loaded upon startup.","anyOf":[{"description":"All modules are loaded upon startup. The last one is exported.","type":"array","items":{"description":"A module that is loaded upon startup. Only the last one is exported.","type":"string","minLength":1},"minItems":1,"uniqueItems":true},{"description":"The string is resolved to a module which is loaded upon startup.","type":"string","minLength":1}]},"EntryNormalized":{"description":"The entry point(s) of the compilation.","anyOf":[{"$ref":"#/definitions/EntryDynamicNormalized"},{"$ref":"#/definitions/EntryStaticNormalized"}]},"EntryObject":{"description":"Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.","type":"object","additionalProperties":{"description":"An entry point with name.","anyOf":[{"$ref":"#/definitions/EntryItem"},{"$ref":"#/definitions/EntryDescription"}]}},"EntryRuntime":{"description":"The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.","type":"string","minLength":1},"EntryStatic":{"description":"A static entry description.","anyOf":[{"$ref":"#/definitions/EntryObject"},{"$ref":"#/definitions/EntryUnnamed"}]},"EntryStaticNormalized":{"description":"Multiple entry bundles are created. The key is the entry name. The value is an entry description object.","type":"object","additionalProperties":{"description":"An object with entry point description.","oneOf":[{"$ref":"#/definitions/EntryDescriptionNormalized"}]}},"EntryUnnamed":{"description":"An entry point without name.","oneOf":[{"$ref":"#/definitions/EntryItem"}]},"Experiments":{"description":"Enables/Disables experiments (experimental features with relax SemVer compatibility).","type":"object","additionalProperties":false,"properties":{"asset":{"description":"Allow module type \'asset\' to generate assets.","type":"boolean"},"asyncWebAssembly":{"description":"Support WebAssembly as asynchronous EcmaScript Module.","type":"boolean"},"mjs":{"description":"Support .mjs files as way to define strict ESM file (node.js).","type":"boolean"},"outputModule":{"description":"Allow output javascript files as module source type.","type":"boolean"},"syncWebAssembly":{"description":"Support WebAssembly as synchronous EcmaScript Module (outdated).","type":"boolean"},"topLevelAwait":{"description":"Allow using top-level-await in EcmaScript Modules.","type":"boolean"}}},"ExternalItem":{"description":"Specify dependency that shouldn\'t be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.","anyOf":[{"description":"Every matched dependency becomes external.","instanceof":"RegExp","tsType":"RegExp"},{"description":"An exact matched dependency becomes external. The same string is used as external dependency.","type":"string"},{"description":"If an dependency matches exactly a property of the object, the property value is used as dependency.","type":"object","additionalProperties":{"description":"The dependency used for the external.","anyOf":[{"type":"array","items":{"description":"A part of the target of the external.","type":"string","minLength":1}},{"description":"`true`: The dependency name is used as target of the external.","type":"boolean"},{"description":"The target of the external.","type":"string"},{"type":"object"}]}},{"description":"The function is called on each dependency (`function(context, request, callback(err, result))`).","instanceof":"Function","tsType":"((data: { context: string, request: string }, callback: (err?: Error, result?: string) => void) => void)"}]},"Externals":{"description":"Specify dependencies that shouldn\'t be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.","anyOf":[{"type":"array","items":{"$ref":"#/definitions/ExternalItem"}},{"$ref":"#/definitions/ExternalItem"}]},"ExternalsType":{"description":"Specifies the default type of externals (\'amd*\', \'umd*\', \'system\' and \'jsonp\' depend on output.libraryTarget set to the same value).","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system","promise","import","script"]},"FileCacheOptions":{"description":"Options object for persistent file-based caching.","type":"object","additionalProperties":false,"properties":{"buildDependencies":{"description":"Dependencies the build depends on (in multiple categories, default categories: \'defaultWebpack\').","type":"object","additionalProperties":{"description":"List of dependencies the build depends on.","type":"array","items":{"description":"Request to a dependency (resolved as directory relative to the context directory).","type":"string","minLength":1}}},"cacheDirectory":{"description":"Base directory for the cache (defaults to node_modules/.cache/webpack).","type":"string","absolutePath":true},"cacheLocation":{"description":"Locations for the cache (defaults to cacheDirectory / name).","type":"string","absolutePath":true},"hashAlgorithm":{"description":"Algorithm used for generation the hash (see node.js crypto package).","type":"string"},"idleTimeout":{"description":"Time in ms after which idle period the cache storing should happen (only for store: \'pack\' or \'idle\').","type":"number","minimum":0},"idleTimeoutForInitialStore":{"description":"Time in ms after which idle period the initial cache storing should happen (only for store: \'pack\' or \'idle\').","type":"number","minimum":0},"immutablePaths":{"description":"List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.","type":"array","items":{"description":"A path to a immutable directory (usually a package manager cache directory).","type":"string","absolutePath":true,"minLength":1}},"managedPaths":{"description":"List of paths that are managed by a package manager and can be trusted to not be modified otherwise.","type":"array","items":{"description":"A path to a managed directory (usually a node_modules directory).","type":"string","absolutePath":true,"minLength":1}},"name":{"description":"Name for the cache. Different names will lead to different coexisting caches.","type":"string"},"store":{"description":"When to store data to the filesystem. (pack: Store data when compiler is idle in a single file).","enum":["pack"]},"type":{"description":"Filesystem caching.","enum":["filesystem"]},"version":{"description":"Version of the cache data. Different versions won\'t allow to reuse the cache and override existing content. Update the version when config changed in a way which doesn\'t allow to reuse cache. This will invalidate the cache.","type":"string"}},"required":["type"]},"Filename":{"description":"Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.","anyOf":[{"type":"string","absolutePath":false,"minLength":1},{"instanceof":"Function","tsType":"((pathData: import(\\"../lib/Compilation\\").PathData, assetInfo?: import(\\"../lib/Compilation\\").AssetInfo) => string)"}]},"FilterItemTypes":{"description":"Filtering value, regexp or function.","cli":{"helper":true},"anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","absolutePath":false},{"instanceof":"Function","tsType":"((value: string) => boolean)"}]},"FilterTypes":{"description":"Filtering values.","cli":{"helper":true},"anyOf":[{"type":"array","items":{"description":"Rule to filter.","cli":{"helper":true},"oneOf":[{"$ref":"#/definitions/FilterItemTypes"}]}},{"$ref":"#/definitions/FilterItemTypes"}]},"GlobalObject":{"description":"An expression which is used to address the global object/scope in runtime code.","type":"string","minLength":1},"HashDigest":{"description":"Digest type used for the hash.","type":"string"},"HashDigestLength":{"description":"Number of chars which are used for the hash.","type":"number","minimum":1},"HashFunction":{"description":"Algorithm used for generation the hash (see node.js crypto package).","anyOf":[{"type":"string","minLength":1},{"instanceof":"Function","tsType":"typeof import(\'../lib/util/Hash\')"}]},"HashSalt":{"description":"Any string which is added to the hash to salt it.","type":"string","minLength":1},"HotUpdateChunkFilename":{"description":"The filename of the Hot Update Chunks. They are inside the output.path directory.","type":"string","absolutePath":false},"HotUpdateFunction":{"description":"The JSONP function used by webpack for async loading of hot update chunks.","type":"string"},"HotUpdateMainFilename":{"description":"The filename of the Hot Update Main File. It is inside the `output.path` directory.","type":"string","absolutePath":false},"Iife":{"description":"Wrap javascript code into IIFE\'s to avoid leaking into global scope.","type":"boolean"},"ImportFunctionName":{"description":"The name of the native import() function (can be exchanged for a polyfill).","type":"string"},"InfrastructureLogging":{"description":"Options for infrastructure level logging.","type":"object","additionalProperties":false,"properties":{"debug":{"description":"Enable debug logging for specific loggers.","anyOf":[{"description":"Enable/Disable debug logging for all loggers.","type":"boolean"},{"$ref":"#/definitions/FilterTypes"}]},"level":{"description":"Log level.","enum":["none","error","warn","info","log","verbose"]}}},"JsonpFunction":{"description":"The JSONP function used by webpack for async loading of chunks.","type":"string"},"Library":{"description":"Make the output files a library, exporting the exports of the entry point.","anyOf":[{"$ref":"#/definitions/LibraryName"},{"$ref":"#/definitions/LibraryOptions"}]},"LibraryCustomUmdCommentObject":{"description":"Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Set comment for `amd` section in UMD.","type":"string"},"commonjs":{"description":"Set comment for `commonjs` (exports) section in UMD.","type":"string"},"commonjs2":{"description":"Set comment for `commonjs2` (module.exports) section in UMD.","type":"string"},"root":{"description":"Set comment for `root` (global variable) section in UMD.","type":"string"}}},"LibraryCustomUmdObject":{"description":"Description object for all UMD variants of the library name.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Name of the exposed AMD library in the UMD.","type":"string","minLength":1},"commonjs":{"description":"Name of the exposed commonjs export in the UMD.","type":"string","minLength":1},"root":{"description":"Name of the property exposed globally by a UMD library.","anyOf":[{"type":"array","items":{"description":"Part of the name of the property exposed globally by a UMD library.","type":"string","minLength":1}},{"type":"string","minLength":1}]}}},"LibraryExport":{"description":"Specify which export should be exposed as library.","anyOf":[{"type":"array","items":{"description":"Part of the export that should be exposed as library.","type":"string","minLength":1}},{"type":"string","minLength":1}]},"LibraryName":{"description":"The name of the library (some types allow unnamed libraries too).","anyOf":[{"type":"array","items":{"description":"A part of the library name.","type":"string","minLength":1}},{"type":"string","minLength":1},{"$ref":"#/definitions/LibraryCustomUmdObject"}]},"LibraryOptions":{"description":"Options for library.","type":"object","additionalProperties":false,"properties":{"auxiliaryComment":{"$ref":"#/definitions/AuxiliaryComment"},"export":{"$ref":"#/definitions/LibraryExport"},"name":{"$ref":"#/definitions/LibraryName"},"type":{"$ref":"#/definitions/LibraryType"},"umdNamedDefine":{"$ref":"#/definitions/UmdNamedDefine"}},"required":["type"]},"LibraryType":{"description":"Type of library.","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]},"Loader":{"description":"Custom values available in the loader context.","type":"object"},"MemoryCacheOptions":{"description":"Options object for in-memory caching.","type":"object","additionalProperties":false,"properties":{"immutablePaths":{"description":"List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.","type":"array","items":{"description":"A path to a immutable directory (usually a package manager cache directory).","type":"string","absolutePath":true,"minLength":1}},"managedPaths":{"description":"List of paths that are managed by a package manager and can be trusted to not be modified otherwise.","type":"array","items":{"description":"A path to a managed directory (usually a node_modules directory).","type":"string","absolutePath":true,"minLength":1}},"type":{"description":"In memory caching.","enum":["memory"]}},"required":["type"]},"Mode":{"description":"Enable production optimizations or development hints.","enum":["development","production","none"]},"ModuleOptions":{"description":"Options affecting the normal modules (`NormalModuleFactory`).","type":"object","additionalProperties":false,"properties":{"defaultRules":{"description":"An array of rules applied by default for modules.","cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/RuleSetRules"}]},"exprContextCritical":{"description":"Enable warnings for full dynamic dependencies.","type":"boolean"},"exprContextRecursive":{"description":"Enable recursive directory lookup for full dynamic dependencies.","type":"boolean"},"exprContextRegExp":{"description":"Sets the default regular expression for full dynamic dependencies.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"boolean"}]},"exprContextRequest":{"description":"Set the default request for full dynamic dependencies.","type":"string"},"noParse":{"description":"Don\'t parse files matching. It\'s matched against the full resolved request.","anyOf":[{"type":"array","items":{"description":"Don\'t parse files matching. It\'s matched against the full resolved request.","anyOf":[{"description":"A regular expression, when matched the module is not parsed.","instanceof":"RegExp","tsType":"RegExp"},{"description":"An absolute path, when the module starts with this path it is not parsed.","type":"string","absolutePath":true},{"instanceof":"Function","tsType":"Function"}]},"minItems":1},{"description":"A regular expression, when matched the module is not parsed.","instanceof":"RegExp","tsType":"RegExp"},{"description":"An absolute path, when the module starts with this path it is not parsed.","type":"string","absolutePath":true},{"instanceof":"Function","tsType":"Function"}]},"rules":{"description":"An array of rules applied for modules.","oneOf":[{"$ref":"#/definitions/RuleSetRules"}]},"strictExportPresence":{"description":"Emit errors instead of warnings when imported names don\'t exist in imported module.","type":"boolean"},"strictThisContextOnImports":{"description":"Handle the this context correctly according to the spec for namespace objects.","type":"boolean"},"unknownContextCritical":{"description":"Enable warnings when using the require function in a not statically analyse-able way.","type":"boolean"},"unknownContextRecursive":{"description":"Enable recursive directory lookup when using the require function in a not statically analyse-able way.","type":"boolean"},"unknownContextRegExp":{"description":"Sets the regular expression when using the require function in a not statically analyse-able way.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"boolean"}]},"unknownContextRequest":{"description":"Sets the request when using the require function in a not statically analyse-able way.","type":"string"},"unsafeCache":{"description":"Cache the resolving of module requests.","anyOf":[{"type":"boolean"},{"instanceof":"Function","tsType":"Function"}]},"wrappedContextCritical":{"description":"Enable warnings for partial dynamic dependencies.","type":"boolean"},"wrappedContextRecursive":{"description":"Enable recursive directory lookup for partial dynamic dependencies.","type":"boolean"},"wrappedContextRegExp":{"description":"Set the inner regular expression for partial dynamic dependencies.","instanceof":"RegExp","tsType":"RegExp"}}},"Name":{"description":"Name of the configuration. Used when loading multiple configurations.","type":"string"},"Node":{"description":"Include polyfills or mocks for various node stuff.","anyOf":[{"enum":[false]},{"$ref":"#/definitions/NodeOptions"}]},"NodeOptions":{"description":"Options object for node compatibility features.","type":"object","additionalProperties":false,"properties":{"__dirname":{"description":"Include a polyfill for the \'__dirname\' variable.","enum":[false,true,"mock"]},"__filename":{"description":"Include a polyfill for the \'__filename\' variable.","enum":[false,true,"mock"]},"global":{"description":"Include a polyfill for the \'global\' variable.","type":"boolean"}}},"Optimization":{"description":"Enables/Disables integrated optimizations.","type":"object","additionalProperties":false,"properties":{"checkWasmTypes":{"description":"Check for incompatible wasm types when importing/exporting from/to ESM.","type":"boolean"},"chunkIds":{"description":"Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).","enum":["natural","named","deterministic","size","total-size",false]},"concatenateModules":{"description":"Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.","type":"boolean"},"emitOnErrors":{"description":"Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.","type":"boolean"},"flagIncludedChunks":{"description":"Also flag chunks as loaded which contain a subset of the modules.","type":"boolean"},"innerGraph":{"description":"Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.","type":"boolean"},"mangleExports":{"description":"Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports, true/\\"deterministic\\": generate short deterministic names optimized for caching, \\"size\\": generate the shortest possible names).","anyOf":[{"enum":["size","deterministic"]},{"type":"boolean"}]},"mangleWasmImports":{"description":"Reduce size of WASM by changing imports to shorter strings.","type":"boolean"},"mergeDuplicateChunks":{"description":"Merge chunks which contain the same modules.","type":"boolean"},"minimize":{"description":"Enable minimizing the output. Uses optimization.minimizer.","type":"boolean"},"minimizer":{"description":"Minimizer(s) to use for minimizing the output.","type":"array","cli":{"exclude":true},"items":{"description":"Plugin of type object or instanceof Function.","anyOf":[{"enum":["..."]},{"$ref":"#/definitions/WebpackPluginInstance"},{"$ref":"#/definitions/WebpackPluginFunction"}]}},"moduleIds":{"description":"Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).","enum":["natural","named","hashed","deterministic","size",false]},"noEmitOnErrors":{"description":"Avoid emitting assets when errors occur (deprecated: use \'emitOnErrors\' instead).","type":"boolean","cli":{"exclude":true}},"nodeEnv":{"description":"Set process.env.NODE_ENV to a specific value.","anyOf":[{"enum":[false]},{"type":"string"}]},"portableRecords":{"description":"Generate records with relative paths to be able to move the context folder.","type":"boolean"},"providedExports":{"description":"Figure out which exports are provided by modules to generate more efficient code.","type":"boolean"},"realContentHash":{"description":"Use real [contenthash] based on final content of the assets.","type":"boolean"},"removeAvailableModules":{"description":"Removes modules from chunks when these modules are already included in all parents.","type":"boolean"},"removeEmptyChunks":{"description":"Remove chunks which are empty.","type":"boolean"},"runtimeChunk":{"$ref":"#/definitions/OptimizationRuntimeChunk"},"sideEffects":{"description":"Skip over modules which are flagged to contain no side effects when exports are not used.","type":"boolean"},"splitChunks":{"description":"Optimize duplication and caching by splitting chunks by shared modules and cache group.","anyOf":[{"enum":[false]},{"$ref":"#/definitions/OptimizationSplitChunksOptions"}]},"usedExports":{"description":"Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code (true: analyse used exports for each runtime, \\"global\\": analyse exports globally for all runtimes combined).","anyOf":[{"enum":["global"]},{"type":"boolean"}]}}},"OptimizationRuntimeChunk":{"description":"Create an additional chunk which contains only the webpack runtime and chunk hash maps.","anyOf":[{"enum":["single","multiple"]},{"type":"boolean"},{"type":"object","additionalProperties":false,"properties":{"name":{"description":"The name or name factory for the runtime chunks.","anyOf":[{"type":"string"},{"instanceof":"Function","tsType":"Function"}]}}}]},"OptimizationRuntimeChunkNormalized":{"description":"Create an additional chunk which contains only the webpack runtime and chunk hash maps.","anyOf":[{"enum":[false]},{"type":"object","additionalProperties":false,"properties":{"name":{"description":"The name factory for the runtime chunks.","instanceof":"Function","tsType":"Function"}}}]},"OptimizationSplitChunksCacheGroup":{"description":"Options object for describing behavior of a cache group selecting modules that should be cached together.","type":"object","additionalProperties":false,"properties":{"automaticNameDelimiter":{"description":"Sets the name delimiter for created chunks.","type":"string","minLength":1},"chunks":{"description":"Select chunks for determining cache group content (defaults to \\"initial\\", \\"initial\\" and \\"all\\" requires adding these chunks to the HTML).","anyOf":[{"enum":["initial","async","all"]},{"instanceof":"Function","tsType":"((chunk: import(\'../lib/Chunk\')) => boolean)"}]},"enforce":{"description":"Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group.","type":"boolean"},"enforceSizeThreshold":{"description":"Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"filename":{"description":"Sets the template for the filename for created chunks.","anyOf":[{"type":"string","absolutePath":false,"minLength":1},{"instanceof":"Function","tsType":"((pathData: import(\\"../lib/Compilation\\").PathData, assetInfo?: import(\\"../lib/Compilation\\").AssetInfo) => string)"}]},"idHint":{"description":"Sets the hint for chunk id.","type":"string"},"maxAsyncRequests":{"description":"Maximum number of requests which are accepted for on-demand loading.","type":"number","minimum":1},"maxAsyncSize":{"description":"Maximal size hint for the on-demand chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxInitialRequests":{"description":"Maximum number of initial chunks which are accepted for an entry point.","type":"number","minimum":1},"maxInitialSize":{"description":"Maximal size hint for the initial chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxSize":{"description":"Maximal size hint for the created chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"minChunks":{"description":"Minimum number of times a module has to be duplicated until it\'s considered for splitting.","type":"number","minimum":1},"minRemainingSize":{"description":"Minimal size for the chunks the stay after moving the modules to a new chunk.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"minSize":{"description":"Minimal size for the created chunk.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"name":{"description":"Give chunks for this cache group a name (chunks with equal name are merged).","anyOf":[{"enum":[false]},{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"priority":{"description":"Priority of this cache group.","type":"number"},"reuseExistingChunk":{"description":"Try to reuse existing chunk (with name) when it has matching modules.","type":"boolean"},"test":{"description":"Assign modules to a cache group by module name.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"type":{"description":"Assign modules to a cache group by module type.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"usedExports":{"description":"Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.","type":"boolean"}}},"OptimizationSplitChunksGetCacheGroups":{"description":"A function returning cache groups.","instanceof":"Function","tsType":"((module: import(\'../lib/Module\')) => OptimizationSplitChunksCacheGroup | OptimizationSplitChunksCacheGroup[] | void)"},"OptimizationSplitChunksOptions":{"description":"Options object for splitting chunks into smaller chunks.","type":"object","additionalProperties":false,"properties":{"automaticNameDelimiter":{"description":"Sets the name delimiter for created chunks.","type":"string","minLength":1},"cacheGroups":{"description":"Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: \'default\', \'defaultVendors\').","type":"object","additionalProperties":{"description":"Configuration for a cache group.","anyOf":[{"enum":[false]},{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string"},{"instanceof":"Function","tsType":"Function"},{"$ref":"#/definitions/OptimizationSplitChunksCacheGroup"}]},"not":{"description":"Using the cacheGroup shorthand syntax with a cache group named \'test\' is a potential config error\\nDid you intent to define a cache group with a test instead?\\ncacheGroups: {\\n <name>: {\\n test: ...\\n }\\n}.","type":"object","additionalProperties":true,"properties":{"test":{"description":"The test property is a cache group name, but using the test option of the cache group could be intended instead.","anyOf":[{"instanceof":"Function","tsType":"Function"},{"type":"string"},{"instanceof":"RegExp","tsType":"RegExp"}]}},"required":["test"]}},"chunks":{"description":"Select chunks for determining shared modules (defaults to \\"async\\", \\"initial\\" and \\"all\\" requires adding these chunks to the HTML).","anyOf":[{"enum":["initial","async","all"]},{"instanceof":"Function","tsType":"((chunk: import(\'../lib/Chunk\')) => boolean)"}]},"enforceSizeThreshold":{"description":"Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"fallbackCacheGroup":{"description":"Options for modules not selected by any other cache group.","type":"object","additionalProperties":false,"properties":{"automaticNameDelimiter":{"description":"Sets the name delimiter for created chunks.","type":"string","minLength":1},"maxAsyncSize":{"description":"Maximal size hint for the on-demand chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxInitialSize":{"description":"Maximal size hint for the initial chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxSize":{"description":"Maximal size hint for the created chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"minSize":{"description":"Minimal size for the created chunk.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]}}},"filename":{"description":"Sets the template for the filename for created chunks.","anyOf":[{"type":"string","absolutePath":false,"minLength":1},{"instanceof":"Function","tsType":"((pathData: import(\\"../lib/Compilation\\").PathData, assetInfo?: import(\\"../lib/Compilation\\").AssetInfo) => string)"}]},"hidePathInfo":{"description":"Prevents exposing path info when creating names for parts splitted by maxSize.","type":"boolean"},"maxAsyncRequests":{"description":"Maximum number of requests which are accepted for on-demand loading.","type":"number","minimum":1},"maxAsyncSize":{"description":"Maximal size hint for the on-demand chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxInitialRequests":{"description":"Maximum number of initial chunks which are accepted for an entry point.","type":"number","minimum":1},"maxInitialSize":{"description":"Maximal size hint for the initial chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"maxSize":{"description":"Maximal size hint for the created chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"minChunks":{"description":"Minimum number of times a module has to be duplicated until it\'s considered for splitting.","type":"number","minimum":1},"minRemainingSize":{"description":"Minimal size for the chunks the stay after moving the modules to a new chunk.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"minSize":{"description":"Minimal size for the created chunks.","oneOf":[{"$ref":"#/definitions/OptimizationSplitChunksSizes"}]},"name":{"description":"Give chunks created a name (chunks with equal name are merged).","anyOf":[{"enum":[false]},{"type":"string"},{"instanceof":"Function","tsType":"Function"}]},"usedExports":{"description":"Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.","type":"boolean"}}},"OptimizationSplitChunksSizes":{"description":"Size description for limits.","anyOf":[{"description":"Size of the javascript part of the chunk.","type":"number","minimum":0},{"description":"Specify size limits per size type.","type":"object","additionalProperties":{"description":"Size of the part of the chunk with the type of the key.","type":"number"}}]},"Output":{"description":"Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.","type":"object","additionalProperties":false,"properties":{"assetModuleFilename":{"$ref":"#/definitions/AssetModuleFilename"},"auxiliaryComment":{"cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/AuxiliaryComment"}]},"charset":{"$ref":"#/definitions/Charset"},"chunkCallbackName":{"$ref":"#/definitions/ChunkCallbackName"},"chunkFilename":{"$ref":"#/definitions/ChunkFilename"},"chunkLoadTimeout":{"$ref":"#/definitions/ChunkLoadTimeout"},"compareBeforeEmit":{"$ref":"#/definitions/CompareBeforeEmit"},"crossOriginLoading":{"$ref":"#/definitions/CrossOriginLoading"},"devtoolFallbackModuleFilenameTemplate":{"$ref":"#/definitions/DevtoolFallbackModuleFilenameTemplate"},"devtoolModuleFilenameTemplate":{"$ref":"#/definitions/DevtoolModuleFilenameTemplate"},"devtoolNamespace":{"$ref":"#/definitions/DevtoolNamespace"},"ecmaVersion":{"$ref":"#/definitions/EcmaVersion"},"enabledLibraryTypes":{"$ref":"#/definitions/EnabledLibraryTypes"},"filename":{"$ref":"#/definitions/Filename"},"globalObject":{"$ref":"#/definitions/GlobalObject"},"hashDigest":{"$ref":"#/definitions/HashDigest"},"hashDigestLength":{"$ref":"#/definitions/HashDigestLength"},"hashFunction":{"$ref":"#/definitions/HashFunction"},"hashSalt":{"$ref":"#/definitions/HashSalt"},"hotUpdateChunkFilename":{"$ref":"#/definitions/HotUpdateChunkFilename"},"hotUpdateFunction":{"$ref":"#/definitions/HotUpdateFunction"},"hotUpdateMainFilename":{"$ref":"#/definitions/HotUpdateMainFilename"},"iife":{"$ref":"#/definitions/Iife"},"importFunctionName":{"$ref":"#/definitions/ImportFunctionName"},"jsonpFunction":{"$ref":"#/definitions/JsonpFunction"},"library":{"$ref":"#/definitions/Library"},"libraryExport":{"cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/LibraryExport"}]},"libraryTarget":{"cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/LibraryType"}]},"module":{"$ref":"#/definitions/OutputModule"},"path":{"$ref":"#/definitions/Path"},"pathinfo":{"$ref":"#/definitions/Pathinfo"},"publicPath":{"$ref":"#/definitions/PublicPath"},"scriptType":{"$ref":"#/definitions/ScriptType"},"sourceMapFilename":{"$ref":"#/definitions/SourceMapFilename"},"sourcePrefix":{"$ref":"#/definitions/SourcePrefix"},"strictModuleExceptionHandling":{"$ref":"#/definitions/StrictModuleExceptionHandling"},"umdNamedDefine":{"cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/UmdNamedDefine"}]},"uniqueName":{"$ref":"#/definitions/UniqueName"},"webassemblyModuleFilename":{"$ref":"#/definitions/WebassemblyModuleFilename"}}},"OutputModule":{"description":"Output javascript files as module source type.","type":"boolean"},"OutputNormalized":{"description":"Normalized options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.","type":"object","additionalProperties":false,"properties":{"assetModuleFilename":{"$ref":"#/definitions/AssetModuleFilename"},"charset":{"$ref":"#/definitions/Charset"},"chunkCallbackName":{"$ref":"#/definitions/ChunkCallbackName"},"chunkFilename":{"$ref":"#/definitions/ChunkFilename"},"chunkLoadTimeout":{"$ref":"#/definitions/ChunkLoadTimeout"},"compareBeforeEmit":{"$ref":"#/definitions/CompareBeforeEmit"},"crossOriginLoading":{"$ref":"#/definitions/CrossOriginLoading"},"devtoolFallbackModuleFilenameTemplate":{"$ref":"#/definitions/DevtoolFallbackModuleFilenameTemplate"},"devtoolModuleFilenameTemplate":{"$ref":"#/definitions/DevtoolModuleFilenameTemplate"},"devtoolNamespace":{"$ref":"#/definitions/DevtoolNamespace"},"ecmaVersion":{"$ref":"#/definitions/EcmaVersion"},"enabledLibraryTypes":{"$ref":"#/definitions/EnabledLibraryTypes"},"filename":{"$ref":"#/definitions/Filename"},"globalObject":{"$ref":"#/definitions/GlobalObject"},"hashDigest":{"$ref":"#/definitions/HashDigest"},"hashDigestLength":{"$ref":"#/definitions/HashDigestLength"},"hashFunction":{"$ref":"#/definitions/HashFunction"},"hashSalt":{"$ref":"#/definitions/HashSalt"},"hotUpdateChunkFilename":{"$ref":"#/definitions/HotUpdateChunkFilename"},"hotUpdateFunction":{"$ref":"#/definitions/HotUpdateFunction"},"hotUpdateMainFilename":{"$ref":"#/definitions/HotUpdateMainFilename"},"iife":{"$ref":"#/definitions/Iife"},"importFunctionName":{"$ref":"#/definitions/ImportFunctionName"},"jsonpFunction":{"$ref":"#/definitions/JsonpFunction"},"library":{"$ref":"#/definitions/LibraryOptions"},"module":{"$ref":"#/definitions/OutputModule"},"path":{"$ref":"#/definitions/Path"},"pathinfo":{"$ref":"#/definitions/Pathinfo"},"publicPath":{"$ref":"#/definitions/PublicPath"},"scriptType":{"$ref":"#/definitions/ScriptType"},"sourceMapFilename":{"$ref":"#/definitions/SourceMapFilename"},"sourcePrefix":{"$ref":"#/definitions/SourcePrefix"},"strictModuleExceptionHandling":{"$ref":"#/definitions/StrictModuleExceptionHandling"},"uniqueName":{"$ref":"#/definitions/UniqueName"},"webassemblyModuleFilename":{"$ref":"#/definitions/WebassemblyModuleFilename"}}},"Parallelism":{"description":"The number of parallel processed modules in the compilation.","type":"number","minimum":1},"Path":{"description":"The output directory as **absolute path** (required).","type":"string","absolutePath":true},"Pathinfo":{"description":"Include comments with information about the modules.","type":"boolean"},"Performance":{"description":"Configuration for web performance recommendations.","anyOf":[{"enum":[false]},{"$ref":"#/definitions/PerformanceOptions"}]},"PerformanceOptions":{"description":"Configuration object for web performance recommendations.","type":"object","additionalProperties":false,"properties":{"assetFilter":{"description":"Filter function to select assets that are checked.","instanceof":"Function","tsType":"Function"},"hints":{"description":"Sets the format of the hints: warnings, errors or nothing at all.","enum":[false,"warning","error"]},"maxAssetSize":{"description":"File size limit (in bytes) when exceeded, that webpack will provide performance hints.","type":"number"},"maxEntrypointSize":{"description":"Total size of an entry point (in bytes).","type":"number"}}},"Plugins":{"description":"Add additional plugins to the compiler.","type":"array","items":{"description":"Plugin of type object or instanceof Function.","anyOf":[{"$ref":"#/definitions/WebpackPluginInstance"},{"$ref":"#/definitions/WebpackPluginFunction"}]}},"Profile":{"description":"Capture timing information for each module.","type":"boolean"},"PublicPath":{"description":"The `publicPath` specifies the public URL address of the output files when referenced in a browser.","anyOf":[{"type":"string"},{"instanceof":"Function","tsType":"((pathData: import(\\"../lib/Compilation\\").PathData, assetInfo?: import(\\"../lib/Compilation\\").AssetInfo) => string)"}]},"RecordsInputPath":{"description":"Store compiler state to a json file.","anyOf":[{"enum":[false]},{"type":"string","absolutePath":true}]},"RecordsOutputPath":{"description":"Load compiler state from a json file.","anyOf":[{"enum":[false]},{"type":"string","absolutePath":true}]},"RecordsPath":{"description":"Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.","anyOf":[{"enum":[false]},{"type":"string","absolutePath":true}]},"Resolve":{"description":"Options for the resolver.","oneOf":[{"$ref":"#/definitions/ResolveOptions"}]},"ResolveLoader":{"description":"Options for the resolver when resolving loaders.","oneOf":[{"$ref":"#/definitions/ResolveOptions"}]},"ResolveOptions":{"description":"Options object for resolving requests.","type":"object","additionalProperties":false,"properties":{"alias":{"description":"Redirect module requests.","anyOf":[{"type":"array","items":{"description":"Alias configuration.","type":"object","additionalProperties":false,"properties":{"alias":{"description":"New request.","anyOf":[{"description":"Multiple alternative requests.","type":"array","items":{"description":"One choice of request.","type":"string","minLength":1}},{"description":"Ignore request (replace with empty module).","enum":[false]},{"description":"New request.","type":"string","minLength":1}]},"name":{"description":"Request to be redirected.","type":"string"},"onlyModule":{"description":"Redirect only exact matching request.","type":"boolean"}},"required":["alias","name"]}},{"type":"object","additionalProperties":{"description":"New request.","anyOf":[{"description":"Multiple alternative requests.","type":"array","items":{"description":"One choice of request.","type":"string","minLength":1}},{"description":"Ignore request (replace with empty module).","enum":[false]},{"description":"New request.","type":"string","minLength":1}]}}]},"aliasFields":{"description":"Fields in the description file (usually package.json) which are used to redirect requests inside the module.","type":"array","items":{"description":"Field in the description file (usually package.json) which are used to redirect requests inside the module.","anyOf":[{"type":"array","items":{"description":"Part of the field path in the description file (usually package.json) which are used to redirect requests inside the module.","type":"string","minLength":1}},{"type":"string","minLength":1}]}},"byDependency":{"description":"Extra resolve options per dependency category. Typical categories are \\"commonjs\\", \\"amd\\", \\"esm\\".","type":"object","additionalProperties":{"description":"Options object for resolving requests.","oneOf":[{"$ref":"#/definitions/ResolveOptions"}]}},"cache":{"description":"Enable caching of successfully resolved requests (cache entries are revalidated).","type":"boolean"},"cachePredicate":{"description":"Predicate function to decide which requests should be cached.","instanceof":"Function","tsType":"((request: import(\'enhanced-resolve\').ResolveRequest) => boolean)"},"cacheWithContext":{"description":"Include the context information in the cache identifier when caching.","type":"boolean"},"conditionNames":{"description":"Condition names for exports field entry point.","type":"array","items":{"description":"Condition names for exports field entry point.","type":"string"}},"descriptionFiles":{"description":"Filenames used to find a description file (like a package.json).","type":"array","items":{"description":"Filename used to find a description file (like a package.json).","type":"string","minLength":1}},"enforceExtension":{"description":"Enforce the resolver to use one of the extensions from the extensions option (User must specify requests without extension).","type":"boolean"},"exportsFields":{"description":"Field names from the description file (usually package.json) which are used to provide entry points of a package.","type":"array","items":{"description":"Field name from the description file (usually package.json) which is used to provide entry points of a package.","type":"string"}},"extensions":{"description":"Extensions added to the request when trying to find the file.","type":"array","items":{"description":"Extension added to the request when trying to find the file.","type":"string","minLength":1}},"fileSystem":{"description":"Filesystem for the resolver.","tsType":"(import(\'../lib/util/fs\').InputFileSystem)"},"fullySpecified":{"description":"Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn\'t affect requests from mainFields, aliasFields or aliases).","type":"boolean"},"mainFields":{"description":"Field names from the description file (package.json) which are used to find the default entry point.","type":"array","items":{"description":"Field name from the description file (package.json) which are used to find the default entry point.","anyOf":[{"type":"array","items":{"description":"Part of the field path from the description file (package.json) which are used to find the default entry point.","type":"string","minLength":1}},{"type":"string","minLength":1}]}},"mainFiles":{"description":"Filenames used to find the default entry point if there is no description file or main field.","type":"array","items":{"description":"Filename used to find the default entry point if there is no description file or main field.","type":"string","minLength":1}},"modules":{"description":"Folder names or directory paths where to find modules.","type":"array","items":{"description":"Folder name or directory path where to find modules.","type":"string","minLength":1}},"plugins":{"description":"Plugins for the resolver.","type":"array","cli":{"exclude":true},"items":{"description":"Plugin of type object or instanceof Function.","anyOf":[{"enum":["..."]},{"$ref":"#/definitions/ResolvePluginInstance"}]}},"resolver":{"description":"Custom resolver.","tsType":"(import(\'enhanced-resolve\').Resolver)"},"restrictions":{"description":"A list of resolve restrictions. Resolve results must fulfill all of these restrictions to resolve successfully. Other resolve paths are taken when restrictions are not met.","type":"array","items":{"description":"Resolve restriction. Resolve result must fulfill this restriction.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","absolutePath":true,"minLength":1}]}},"roots":{"description":"A list of directories in which requests that are server-relative URLs (starting with \'/\') are resolved. On non-windows system these requests are tried to resolve as absolute path first.","type":"array","items":{"description":"Directory in which requests that are server-relative URLs (starting with \'/\') are resolved.","type":"string"}},"symlinks":{"description":"Enable resolving symlinks to the original location.","type":"boolean"},"unsafeCache":{"description":"Enable caching of successfully resolved requests (cache entries are not revalidated).","anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]},"useSyncFileSystemCalls":{"description":"Use synchronous filesystem calls for the resolver.","type":"boolean"}}},"ResolvePluginInstance":{"description":"Plugin instance.","type":"object","additionalProperties":true,"properties":{"apply":{"description":"The run point of the plugin, required method.","instanceof":"Function","tsType":"(resolver: import(\'enhanced-resolve/lib/Resolver\')) => void"}},"required":["apply"]},"RuleSetCondition":{"description":"A condition matcher.","cli":{"helper":true},"anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","minLength":1},{"type":"object","additionalProperties":false,"properties":{"and":{"description":"Logical AND.","oneOf":[{"$ref":"#/definitions/RuleSetConditions"}]},"not":{"description":"Logical NOT.","oneOf":[{"$ref":"#/definitions/RuleSetConditions"}]},"or":{"description":"Logical OR.","oneOf":[{"$ref":"#/definitions/RuleSetConditions"}]}}},{"instanceof":"Function","tsType":"((value: string) => boolean)"},{"$ref":"#/definitions/RuleSetConditions"}]},"RuleSetConditionAbsolute":{"description":"A condition matcher matching an absolute path.","cli":{"helper":true},"anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","absolutePath":true},{"type":"object","additionalProperties":false,"properties":{"and":{"description":"Logical AND.","oneOf":[{"$ref":"#/definitions/RuleSetConditionsAbsolute"}]},"not":{"description":"Logical NOT.","oneOf":[{"$ref":"#/definitions/RuleSetConditionsAbsolute"}]},"or":{"description":"Logical OR.","oneOf":[{"$ref":"#/definitions/RuleSetConditionsAbsolute"}]}}},{"instanceof":"Function","tsType":"((value: string) => boolean)"},{"$ref":"#/definitions/RuleSetConditionsAbsolute"}]},"RuleSetConditionOrConditions":{"description":"One or multiple rule conditions.","cli":{"helper":true},"anyOf":[{"$ref":"#/definitions/RuleSetCondition"},{"$ref":"#/definitions/RuleSetConditions"}]},"RuleSetConditionOrConditionsAbsolute":{"description":"One or multiple rule conditions matching an absolute path.","cli":{"helper":true},"anyOf":[{"$ref":"#/definitions/RuleSetConditionAbsolute"},{"$ref":"#/definitions/RuleSetConditionsAbsolute"}]},"RuleSetConditions":{"description":"A list of rule conditions.","type":"array","items":{"description":"A rule condition.","oneOf":[{"$ref":"#/definitions/RuleSetCondition"}]}},"RuleSetConditionsAbsolute":{"description":"A list of rule conditions matching an absolute path.","type":"array","items":{"description":"A rule condition matching an absolute path.","oneOf":[{"$ref":"#/definitions/RuleSetConditionAbsolute"}]}},"RuleSetLoader":{"description":"A loader request.","type":"string","minLength":1},"RuleSetLoaderOptions":{"description":"Options passed to a loader.","anyOf":[{"type":"string"},{"type":"object"}]},"RuleSetRule":{"description":"A rule description with conditions and effects for modules.","type":"object","additionalProperties":false,"properties":{"compiler":{"description":"Match the child compiler name.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditions"}]},"descriptionData":{"description":"Match values of properties in the description file (usually package.json).","type":"object","additionalProperties":{"$ref":"#/definitions/RuleSetConditionOrConditions"}},"enforce":{"description":"Enforce this rule as pre or post step.","enum":["pre","post"]},"exclude":{"description":"Shortcut for resource.exclude.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"generator":{"description":"The options for the module generator.","type":"object"},"include":{"description":"Shortcut for resource.include.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"issuer":{"description":"Match the issuer of the module (The module pointing to this module).","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"loader":{"description":"Shortcut for use.loader.","oneOf":[{"$ref":"#/definitions/RuleSetLoader"}]},"mimetype":{"description":"Match module mimetype when load from Data URI.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditions"}]},"oneOf":{"description":"Only execute the first matching rule in this array.","type":"array","items":{"description":"A rule.","oneOf":[{"$ref":"#/definitions/RuleSetRule"}]}},"options":{"description":"Shortcut for use.options.","cli":{"exclude":true},"oneOf":[{"$ref":"#/definitions/RuleSetLoaderOptions"}]},"parser":{"description":"Options for parsing.","type":"object","additionalProperties":true},"realResource":{"description":"Match the real resource path of the module.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"resolve":{"description":"Options for the resolver.","type":"object","oneOf":[{"$ref":"#/definitions/ResolveOptions"}]},"resource":{"description":"Match the resource path of the module.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"resourceFragment":{"description":"Match the resource fragment of the module.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditions"}]},"resourceQuery":{"description":"Match the resource query of the module.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditions"}]},"rules":{"description":"Match and execute these rules when this rule is matched.","type":"array","items":{"description":"A rule.","oneOf":[{"$ref":"#/definitions/RuleSetRule"}]}},"sideEffects":{"description":"Flags a module as with or without side effects.","type":"boolean"},"test":{"description":"Shortcut for resource.test.","oneOf":[{"$ref":"#/definitions/RuleSetConditionOrConditionsAbsolute"}]},"type":{"description":"Module type to use for the module.","type":"string"},"use":{"description":"Modifiers applied to the module when rule is matched.","oneOf":[{"$ref":"#/definitions/RuleSetUse"}]}}},"RuleSetRules":{"description":"A list of rules.","type":"array","items":{"description":"A rule.","anyOf":[{"cli":{"exclude":true},"enum":["..."]},{"$ref":"#/definitions/RuleSetRule"}]}},"RuleSetUse":{"description":"A list of descriptions of loaders applied.","anyOf":[{"type":"array","items":{"description":"An use item.","oneOf":[{"$ref":"#/definitions/RuleSetUseItem"}]}},{"instanceof":"Function","tsType":"((data: { resource: string, realResource: string, resourceQuery: string, issuer: string, compiler: string }) => RuleSetUseItem[])"},{"$ref":"#/definitions/RuleSetUseItem"}]},"RuleSetUseItem":{"description":"A description of an applied loader.","anyOf":[{"type":"object","additionalProperties":false,"properties":{"ident":{"description":"Unique loader options identifier.","type":"string"},"loader":{"description":"Loader name.","oneOf":[{"$ref":"#/definitions/RuleSetLoader"}]},"options":{"description":"Loader options.","oneOf":[{"$ref":"#/definitions/RuleSetLoaderOptions"}]}}},{"instanceof":"Function","tsType":"((data: object) => RuleSetUseItem|RuleSetUseItem[])"},{"$ref":"#/definitions/RuleSetLoader"}]},"ScriptType":{"description":"This option enables loading async chunks via a custom script type, such as script type=\\"module\\".","enum":[false,"text/javascript","module"]},"SourceMapFilename":{"description":"The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.","type":"string","absolutePath":false},"SourcePrefix":{"description":"Prefixes every line of the source in the bundle with this string.","type":"string"},"StatsOptions":{"description":"Stats options object.","type":"object","additionalProperties":false,"properties":{"all":{"description":"Fallback value for stats options when an option is not defined (has precedence over local webpack defaults).","type":"boolean"},"assets":{"description":"Add assets information.","type":"boolean"},"assetsSort":{"description":"Sort the assets by that field.","type":"string"},"builtAt":{"description":"Add built at time information.","type":"boolean"},"cached":{"description":"Add information about cached (not built) modules.","type":"boolean"},"cachedAssets":{"description":"Show cached assets (setting this to `false` only shows emitted files).","type":"boolean"},"children":{"description":"Add children information.","type":"boolean"},"chunkGroups":{"description":"Display all chunk groups with the corresponding bundles.","type":"boolean"},"chunkModules":{"description":"Add built modules information to chunk information.","type":"boolean"},"chunkOrigins":{"description":"Add the origins of chunks and chunk merging info.","type":"boolean"},"chunkRelations":{"description":"Add information about parent, children and sibling chunks to chunk information.","type":"boolean"},"chunkRootModules":{"description":"Add root modules information to chunk information.","type":"boolean"},"chunks":{"description":"Add chunk information.","type":"boolean"},"chunksSort":{"description":"Sort the chunks by that field.","type":"string"},"colors":{"description":"Enables/Disables colorful output.","anyOf":[{"description":"Enables/Disables colorful output.","type":"boolean"},{"type":"object","additionalProperties":false,"properties":{"bold":{"description":"Custom color for bold text.","type":"string"},"cyan":{"description":"Custom color for cyan text.","type":"string"},"green":{"description":"Custom color for green text.","type":"string"},"magenta":{"description":"Custom color for magenta text.","type":"string"},"red":{"description":"Custom color for red text.","type":"string"},"yellow":{"description":"Custom color for yellow text.","type":"string"}}}]},"context":{"description":"Context directory for request shortening.","type":"string","absolutePath":true},"depth":{"description":"Add module depth in module graph.","type":"boolean"},"entrypoints":{"description":"Display the entry points with the corresponding bundles.","type":"boolean"},"env":{"description":"Add --env information.","type":"boolean"},"errorDetails":{"description":"Add details to errors (like resolving log).","type":"boolean"},"errorStack":{"description":"Add internal stack trace to errors.","type":"boolean"},"errors":{"description":"Add errors.","type":"boolean"},"exclude":{"description":"Please use excludeModules instead.","cli":{"exclude":true},"anyOf":[{"type":"boolean"},{"$ref":"#/definitions/FilterTypes"}]},"excludeAssets":{"description":"Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions.","oneOf":[{"$ref":"#/definitions/FilterTypes"}]},"excludeModules":{"description":"Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions.","anyOf":[{"type":"boolean"},{"$ref":"#/definitions/FilterTypes"}]},"hash":{"description":"Add the hash of the compilation.","type":"boolean"},"ids":{"description":"Add ids.","type":"boolean"},"logging":{"description":"Add logging output.","anyOf":[{"description":"Specify log level of logging output.","enum":["none","error","warn","info","log","verbose"]},{"description":"Enable/disable logging output (`true`: shows normal logging output, loglevel: log).","type":"boolean"}]},"loggingDebug":{"description":"Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.","anyOf":[{"description":"Enable/Disable debug logging for all loggers.","type":"boolean"},{"$ref":"#/definitions/FilterTypes"}]},"loggingTrace":{"description":"Add stack traces to logging output.","type":"boolean"},"maxModules":{"description":"Set the maximum number of modules to be shown.","type":"number"},"moduleAssets":{"description":"Add information about assets inside modules.","type":"boolean"},"moduleTrace":{"description":"Add dependencies and origin of warnings/errors.","type":"boolean"},"modules":{"description":"Add built modules information.","type":"boolean"},"modulesSort":{"description":"Sort the modules by that field.","type":"string"},"nestedModules":{"description":"Add information about modules nested in other modules (like with module concatenation).","type":"boolean"},"optimizationBailout":{"description":"Show reasons why optimization bailed out for modules.","type":"boolean"},"orphanModules":{"description":"Add information about orphan modules.","type":"boolean"},"outputPath":{"description":"Add output path information.","type":"boolean"},"performance":{"description":"Add performance hint flags.","type":"boolean"},"preset":{"description":"Preset for the default values.","anyOf":[{"type":"boolean"},{"type":"string"}]},"providedExports":{"description":"Show exports provided by modules.","type":"boolean"},"publicPath":{"description":"Add public path information.","type":"boolean"},"reasons":{"description":"Add information about the reasons why modules are included.","type":"boolean"},"relatedAssets":{"description":"Add information about assets that are related to other assets (like SourceMaps for assets).","type":"boolean"},"runtime":{"description":"Add information about runtime modules.","type":"boolean"},"source":{"description":"Add the source code of modules.","type":"boolean"},"timings":{"description":"Add timing information.","type":"boolean"},"usedExports":{"description":"Show exports used by modules.","type":"boolean"},"version":{"description":"Add webpack version information.","type":"boolean"},"warnings":{"description":"Add warnings.","type":"boolean"},"warningsFilter":{"description":"Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions.","oneOf":[{"$ref":"#/definitions/FilterTypes"}]}}},"StatsValue":{"description":"Stats options object or preset name.","anyOf":[{"enum":["none","errors-only","minimal","normal","detailed","verbose","errors-warnings"]},{"type":"boolean"},{"$ref":"#/definitions/StatsOptions"}]},"StrictModuleExceptionHandling":{"description":"Handles exceptions in module loading correctly at a performance cost.","type":"boolean"},"Target":{"description":"Environment to build for.","anyOf":[{"enum":["web","webworker","node","async-node","node-webkit","electron-main","electron-renderer","electron-preload"]},{"instanceof":"Function","tsType":"((compiler: import(\'../lib/Compiler\')) => void)"}]},"UmdNamedDefine":{"description":"If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.","type":"boolean"},"UniqueName":{"description":"A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals.","type":"string","minLength":1},"Watch":{"description":"Enter watch mode, which rebuilds on file change.","type":"boolean"},"WatchOptions":{"description":"Options for the watcher.","type":"object","additionalProperties":false,"properties":{"aggregateTimeout":{"description":"Delay the rebuilt after the first change. Value is a time in ms.","type":"number"},"ignored":{"description":"Ignore some files from watching (glob pattern).","anyOf":[{"type":"array","items":{"description":"A glob pattern for files that should be ignored from watching.","type":"string","minLength":1}},{"description":"A single glob pattern for files that should be ignored from watching.","type":"string","minLength":1}]},"poll":{"description":"Enable polling mode for watching.","anyOf":[{"description":"`number`: use polling with specified interval.","type":"number"},{"description":"`true`: use polling.","type":"boolean"}]},"stdin":{"description":"Stop watching when stdin stream has ended.","type":"boolean"}}},"WebassemblyModuleFilename":{"description":"The filename of WebAssembly modules as relative path inside the `output.path` directory.","type":"string","absolutePath":false},"WebpackOptionsNormalized":{"description":"Normalized webpack options object.","type":"object","additionalProperties":false,"properties":{"amd":{"$ref":"#/definitions/Amd"},"bail":{"$ref":"#/definitions/Bail"},"cache":{"$ref":"#/definitions/CacheOptionsNormalized"},"context":{"$ref":"#/definitions/Context"},"dependencies":{"$ref":"#/definitions/Dependencies"},"devServer":{"$ref":"#/definitions/DevServer"},"devtool":{"$ref":"#/definitions/DevTool"},"entry":{"$ref":"#/definitions/EntryNormalized"},"experiments":{"$ref":"#/definitions/Experiments"},"externals":{"$ref":"#/definitions/Externals"},"externalsType":{"$ref":"#/definitions/ExternalsType"},"infrastructureLogging":{"$ref":"#/definitions/InfrastructureLogging"},"loader":{"$ref":"#/definitions/Loader"},"mode":{"$ref":"#/definitions/Mode"},"module":{"$ref":"#/definitions/ModuleOptions"},"name":{"$ref":"#/definitions/Name"},"node":{"$ref":"#/definitions/Node"},"optimization":{"$ref":"#/definitions/Optimization"},"output":{"$ref":"#/definitions/OutputNormalized"},"parallelism":{"$ref":"#/definitions/Parallelism"},"performance":{"$ref":"#/definitions/Performance"},"plugins":{"$ref":"#/definitions/Plugins"},"profile":{"$ref":"#/definitions/Profile"},"recordsInputPath":{"$ref":"#/definitions/RecordsInputPath"},"recordsOutputPath":{"$ref":"#/definitions/RecordsOutputPath"},"resolve":{"$ref":"#/definitions/Resolve"},"resolveLoader":{"$ref":"#/definitions/ResolveLoader"},"stats":{"$ref":"#/definitions/StatsValue"},"target":{"$ref":"#/definitions/Target"},"watch":{"$ref":"#/definitions/Watch"},"watchOptions":{"$ref":"#/definitions/WatchOptions"}},"required":["cache","entry","experiments","externals","infrastructureLogging","module","node","optimization","output","plugins","resolve","resolveLoader","stats","watchOptions"]},"WebpackPluginFunction":{"description":"Function acting as plugin.","instanceof":"Function","tsType":"(this: import(\'../lib/Compiler\'), compiler: import(\'../lib/Compiler\')) => void"},"WebpackPluginInstance":{"description":"Plugin instance.","type":"object","additionalProperties":true,"properties":{"apply":{"description":"The run point of the plugin, required method.","instanceof":"Function","tsType":"(compiler: import(\'../lib/Compiler\')) => void"}},"required":["apply"]}},"description":"Options object as provided by the user.","type":"object","additionalProperties":false,"properties":{"amd":{"$ref":"#/definitions/Amd"},"bail":{"$ref":"#/definitions/Bail"},"cache":{"$ref":"#/definitions/CacheOptions"},"context":{"$ref":"#/definitions/Context"},"dependencies":{"$ref":"#/definitions/Dependencies"},"devServer":{"$ref":"#/definitions/DevServer"},"devtool":{"$ref":"#/definitions/DevTool"},"entry":{"$ref":"#/definitions/Entry"},"experiments":{"$ref":"#/definitions/Experiments"},"externals":{"$ref":"#/definitions/Externals"},"externalsType":{"$ref":"#/definitions/ExternalsType"},"infrastructureLogging":{"$ref":"#/definitions/InfrastructureLogging"},"loader":{"$ref":"#/definitions/Loader"},"mode":{"$ref":"#/definitions/Mode"},"module":{"$ref":"#/definitions/ModuleOptions"},"name":{"$ref":"#/definitions/Name"},"node":{"$ref":"#/definitions/Node"},"optimization":{"$ref":"#/definitions/Optimization"},"output":{"$ref":"#/definitions/Output"},"parallelism":{"$ref":"#/definitions/Parallelism"},"performance":{"$ref":"#/definitions/Performance"},"plugins":{"$ref":"#/definitions/Plugins"},"profile":{"$ref":"#/definitions/Profile"},"recordsInputPath":{"$ref":"#/definitions/RecordsInputPath"},"recordsOutputPath":{"$ref":"#/definitions/RecordsOutputPath"},"recordsPath":{"$ref":"#/definitions/RecordsPath"},"resolve":{"$ref":"#/definitions/Resolve"},"resolveLoader":{"$ref":"#/definitions/ResolveLoader"},"stats":{"$ref":"#/definitions/StatsValue"},"target":{"$ref":"#/definitions/Target"},"watch":{"$ref":"#/definitions/Watch"},"watchOptions":{"$ref":"#/definitions/WatchOptions"}}}')},23208:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"DataUrlFunction":{"description":"Function that executes for module and should return an DataUrl string.","instanceof":"Function","tsType":"((source: string | Buffer, context: { filename: string, module: import(\'../../lib/Module\') }) => string)"},"DataUrlOptions":{"description":"Options object for data url generation.","type":"object","additionalProperties":false,"properties":{"encoding":{"description":"Asset encoding (defaults to base64).","enum":[false,"base64"]},"mimetype":{"description":"Asset mimetype (getting from file extension by default).","type":"string"}}}},"title":"AssetModulesPluginGeneratorOptions","type":"object","additionalProperties":false,"properties":{"dataUrl":{"description":"The options for data url generator.","anyOf":[{"$ref":"#/definitions/DataUrlOptions"},{"$ref":"#/definitions/DataUrlFunction"}]},"filename":{"description":"Template for asset filename.","anyOf":[{"type":"string","absolutePath":false},{"instanceof":"Function","tsType":"((pathData: import(\\"../../lib/Compilation\\").PathData, assetInfo?: import(\\"../../lib/Compilation\\").AssetInfo) => string)"}]}}}')},81821:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"DataUrlFunction":{"description":"Function that executes for module and should return whenever asset should be inlined as DataUrl.","instanceof":"Function","tsType":"((source: string | Buffer, context: { filename: string, module: import(\'../../lib/Module\') }) => boolean)"},"DataUrlOptions":{"description":"Options object for DataUrl condition.","type":"object","additionalProperties":false,"properties":{"maxSize":{"description":"Maximum size of asset that should be inline as modules. Default: 8kb.","type":"number"}}}},"title":"AssetModulesPluginParserOptions","type":"object","additionalProperties":false,"properties":{"dataUrlCondition":{"description":"The condition for inlining the asset as DataUrl.","anyOf":[{"$ref":"#/definitions/DataUrlOptions"},{"$ref":"#/definitions/DataUrlFunction"}]}}}')},4837:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"BannerFunction":{"description":"The banner as function, it will be wrapped in a comment.","instanceof":"Function","tsType":"(data: { hash: string, chunk: import(\'../../lib/Chunk\'), filename: string }) => string"},"Rule":{"description":"Filtering rule as regex or string.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","minLength":1}]},"Rules":{"description":"Filtering rules.","anyOf":[{"type":"array","items":{"description":"A rule condition.","oneOf":[{"$ref":"#/definitions/Rule"}]}},{"$ref":"#/definitions/Rule"}]}},"title":"BannerPluginArgument","anyOf":[{"description":"The banner as string, it will be wrapped in a comment.","type":"string","minLength":1},{"title":"BannerPluginOptions","type":"object","additionalProperties":false,"properties":{"banner":{"description":"Specifies the banner.","anyOf":[{"type":"string"},{"$ref":"#/definitions/BannerFunction"}]},"entryOnly":{"description":"If true, the banner will only be added to the entry chunks.","type":"boolean"},"exclude":{"description":"Exclude all modules matching any of these conditions.","oneOf":[{"$ref":"#/definitions/Rules"}]},"include":{"description":"Include all modules matching any of these conditions.","oneOf":[{"$ref":"#/definitions/Rules"}]},"raw":{"description":"If true, banner will not be wrapped in a comment.","type":"boolean"},"test":{"description":"Include all modules that pass test assertion.","oneOf":[{"$ref":"#/definitions/Rules"}]}},"required":["banner"]},{"$ref":"#/definitions/BannerFunction"}]}')},39670:e=>{"use strict";e.exports=JSON.parse('{"title":"DllPluginOptions","type":"object","additionalProperties":false,"properties":{"context":{"description":"Context of requests in the manifest file (defaults to the webpack context).","type":"string","minLength":1},"entryOnly":{"description":"If true, only entry points will be exposed (default: true).","type":"boolean"},"format":{"description":"If true, manifest json file (output) will be formatted.","type":"boolean"},"name":{"description":"Name of the exposed dll function (external name, use value of \'output.library\').","type":"string","minLength":1},"path":{"description":"Absolute path to the manifest json file (output).","type":"string","minLength":1},"type":{"description":"Type of the dll bundle (external type, use value of \'output.libraryTarget\').","type":"string","minLength":1}},"required":["path"]}')},53670:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"DllReferencePluginOptionsContent":{"description":"The mappings from request to module info.","type":"object","additionalProperties":{"description":"Module info.","type":"object","additionalProperties":false,"properties":{"buildMeta":{"description":"Meta information about the module.","type":"object"},"exports":{"description":"Information about the provided exports of the module.","anyOf":[{"description":"List of provided exports of the module.","type":"array","items":{"description":"Name of the export.","type":"string","minLength":1}},{"description":"Exports unknown/dynamic.","enum":[true]}]},"id":{"description":"Module ID.","anyOf":[{"type":"number"},{"type":"string","minLength":1}]}},"required":["id"]},"minProperties":1},"DllReferencePluginOptionsManifest":{"description":"An object containing content, name and type.","type":"object","additionalProperties":false,"properties":{"content":{"description":"The mappings from request to module info.","oneOf":[{"$ref":"#/definitions/DllReferencePluginOptionsContent"}]},"name":{"description":"The name where the dll is exposed (external name).","type":"string","minLength":1},"type":{"description":"The type how the dll is exposed (external type).","oneOf":[{"$ref":"#/definitions/DllReferencePluginOptionsSourceType"}]}},"required":["content"]},"DllReferencePluginOptionsSourceType":{"description":"The type how the dll is exposed (external type).","enum":["var","assign","this","window","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]}},"title":"DllReferencePluginOptions","anyOf":[{"type":"object","additionalProperties":false,"properties":{"context":{"description":"Context of requests in the manifest (or content property) as absolute path.","type":"string","absolutePath":true},"extensions":{"description":"Extensions used to resolve modules in the dll bundle (only used when using \'scope\').","type":"array","items":{"description":"An extension.","type":"string"}},"manifest":{"description":"An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation.","anyOf":[{"type":"string","absolutePath":true},{"$ref":"#/definitions/DllReferencePluginOptionsManifest"}]},"name":{"description":"The name where the dll is exposed (external name, defaults to manifest.name).","type":"string","minLength":1},"scope":{"description":"Prefix which is used for accessing the content of the dll.","type":"string","minLength":1},"sourceType":{"description":"How the dll is exposed (libraryTarget, defaults to manifest.type).","oneOf":[{"$ref":"#/definitions/DllReferencePluginOptionsSourceType"}]},"type":{"description":"The way how the export of the dll bundle is used.","enum":["require","object"]}},"required":["manifest"]},{"type":"object","additionalProperties":false,"properties":{"content":{"description":"The mappings from request to module info.","oneOf":[{"$ref":"#/definitions/DllReferencePluginOptionsContent"}]},"context":{"description":"Context of requests in the manifest (or content property) as absolute path.","type":"string","absolutePath":true},"extensions":{"description":"Extensions used to resolve modules in the dll bundle (only used when using \'scope\').","type":"array","items":{"description":"An extension.","type":"string"}},"name":{"description":"The name where the dll is exposed (external name).","type":"string","minLength":1},"scope":{"description":"Prefix which is used for accessing the content of the dll.","type":"string","minLength":1},"sourceType":{"description":"How the dll is exposed (libraryTarget).","oneOf":[{"$ref":"#/definitions/DllReferencePluginOptionsSourceType"}]},"type":{"description":"The way how the export of the dll bundle is used.","enum":["require","object"]}},"required":["content","name"]}]}')},1842:e=>{"use strict";e.exports=JSON.parse('{"title":"HashedModuleIdsPluginOptions","type":"object","additionalProperties":false,"properties":{"context":{"description":"The context directory for creating names.","type":"string","absolutePath":true},"hashDigest":{"description":"The encoding to use when generating the hash, defaults to \'base64\'. All encodings from Node.JS\' hash.digest are supported.","enum":["hex","latin1","base64"]},"hashDigestLength":{"description":"The prefix length of the hash digest to use, defaults to 4.","type":"number","minimum":1},"hashFunction":{"description":"The hashing algorithm to use, defaults to \'md4\'. All functions from Node.JS\' crypto.createHash are supported.","type":"string","minLength":1}}}')},24019:e=>{"use strict";e.exports=JSON.parse('{"title":"IgnorePluginOptions","anyOf":[{"type":"object","additionalProperties":false,"properties":{"contextRegExp":{"description":"A RegExp to test the context (directory) against.","instanceof":"RegExp","tsType":"RegExp"},"resourceRegExp":{"description":"A RegExp to test the request against.","instanceof":"RegExp","tsType":"RegExp"}}},{"type":"object","additionalProperties":false,"properties":{"checkResource":{"description":"A filter function for resource and context.","instanceof":"Function","tsType":"((resource: string, context: string) => boolean)"}}}]}')},18496:e=>{"use strict";e.exports=JSON.parse('{"title":"JsonModulesPluginParserOptions","type":"object","additionalProperties":false,"properties":{"parse":{"description":"Function that executes for a module source string and should return json-compatible data.","instanceof":"Function","tsType":"((input: string) => any)"}}}')},6087:e=>{"use strict";e.exports=JSON.parse('{"title":"LoaderOptionsPluginOptions","type":"object","additionalProperties":true,"properties":{"debug":{"description":"Whether loaders should be in debug mode or not. debug will be removed as of webpack 3.","type":"boolean"},"minimize":{"description":"Where loaders can be switched to minimize mode.","type":"boolean"},"options":{"description":"A configuration object that can be used to configure older loaders.","type":"object","additionalProperties":true,"properties":{"context":{"description":"The context that can be used to configure older loaders.","type":"string","absolutePath":true}}}}}')},78760:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"HandlerFunction":{"description":"Function that executes for every progress step.","instanceof":"Function","tsType":"((percentage: number, msg: string, ...args: string[]) => void)"},"ProgressPluginOptions":{"description":"Options object for the ProgressPlugin.","type":"object","additionalProperties":false,"properties":{"activeModules":{"description":"Show active modules count and one active module in progress message.","type":"boolean"},"dependencies":{"description":"Show dependencies count in progress message.","type":"boolean"},"dependenciesCount":{"description":"Minimum dependencies count to start with. For better progress calculation. Default: 10000.","type":"number"},"entries":{"description":"Show entries count in progress message.","type":"boolean"},"handler":{"description":"Function that executes for every progress step.","oneOf":[{"$ref":"#/definitions/HandlerFunction"}]},"modules":{"description":"Show modules count in progress message.","type":"boolean"},"modulesCount":{"description":"Minimum modules count to start with. For better progress calculation. Default: 5000.","type":"number"},"percentBy":{"description":"Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.","enum":["entries","modules","dependencies",null]},"profile":{"description":"Collect profile data for progress steps. Default: false.","enum":[true,false,null]}}}},"title":"ProgressPluginArgument","anyOf":[{"$ref":"#/definitions/ProgressPluginOptions"},{"$ref":"#/definitions/HandlerFunction"}]}')},82037:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"rule":{"description":"Include source maps for modules based on their extension (defaults to .js and .css).","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string","minLength":1}]},"rules":{"description":"Include source maps for modules based on their extension (defaults to .js and .css).","anyOf":[{"type":"array","items":{"description":"A rule condition.","oneOf":[{"$ref":"#/definitions/rule"}]}},{"$ref":"#/definitions/rule"}]}},"title":"SourceMapDevToolPluginOptions","type":"object","additionalProperties":false,"properties":{"append":{"description":"Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.","anyOf":[{"description":"Append no SourceMap comment to the bundle, but still generate SourceMaps.","enum":[false,null]},{"type":"string","minLength":1}]},"columns":{"description":"Indicates whether column mappings should be used (defaults to true).","type":"boolean"},"exclude":{"description":"Exclude modules that match the given value from source map generation.","oneOf":[{"$ref":"#/definitions/rules"}]},"fallbackModuleFilenameTemplate":{"description":"Generator string or function to create identifiers of modules for the \'sources\' array in the SourceMap used only if \'moduleFilenameTemplate\' would result in a conflict.","anyOf":[{"type":"string","minLength":1},{"description":"Custom function generating the identifier.","instanceof":"Function","tsType":"Function"}]},"fileContext":{"description":"Path prefix to which the [file] placeholder is relative to.","type":"string"},"filename":{"description":"Defines the output filename of the SourceMap (will be inlined if no value is provided).","anyOf":[{"description":"Disable separate SourceMap file and inline SourceMap as DataUrl.","enum":[false,null]},{"type":"string","absolutePath":false,"minLength":1}]},"include":{"description":"Include source maps for module paths that match the given value.","oneOf":[{"$ref":"#/definitions/rules"}]},"module":{"description":"Indicates whether SourceMaps from loaders should be used (defaults to true).","type":"boolean"},"moduleFilenameTemplate":{"description":"Generator string or function to create identifiers of modules for the \'sources\' array in the SourceMap.","anyOf":[{"type":"string","minLength":1},{"description":"Custom function generating the identifier.","instanceof":"Function","tsType":"Function"}]},"namespace":{"description":"Namespace prefix to allow multiple webpack roots in the devtools.","type":"string"},"noSources":{"description":"Omit the \'sourceContents\' array from the SourceMap.","type":"boolean"},"publicPath":{"description":"Provide a custom public path for the SourceMapping comment.","type":"string"},"sourceRoot":{"description":"Provide a custom value for the \'sourceRoot\' property in the SourceMap.","type":"string"},"test":{"$ref":"#/definitions/rules"}}}')},82997:e=>{"use strict";e.exports=JSON.parse('{"title":"WatchIgnorePluginOptions","type":"object","additionalProperties":false,"properties":{"paths":{"description":"A list of RegExps or absolute paths to directories or files that should be ignored.","type":"array","items":{"description":"RegExp or absolute path to directories or files that should be ignored.","anyOf":[{"instanceof":"RegExp","tsType":"RegExp"},{"type":"string"}]},"minItems":1}},"required":["paths"]}')},19593:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"AuxiliaryComment":{"description":"Add a comment in the UMD wrapper.","anyOf":[{"description":"Append the same comment above each import style.","type":"string"},{"$ref":"#/definitions/LibraryCustomUmdCommentObject"}]},"Exposes":{"description":"Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.","anyOf":[{"type":"array","items":{"description":"Modules that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesObject"}]}},{"$ref":"#/definitions/ExposesObject"}]},"ExposesConfig":{"description":"Advanced configuration for modules that should be exposed by this container.","type":"object","additionalProperties":false,"properties":{"import":{"description":"Request to a module that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesItems"}]}},"required":["import"]},"ExposesItem":{"description":"Module that should be exposed by this container.","type":"string","minLength":1},"ExposesItems":{"description":"Modules that should be exposed by this container.","type":"array","items":{"$ref":"#/definitions/ExposesItem"}},"ExposesObject":{"description":"Modules that should be exposed by this container. Property names are used as public paths.","type":"object","additionalProperties":{"description":"Modules that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesConfig"},{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesItems"}]}},"LibraryCustomUmdCommentObject":{"description":"Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Set comment for `amd` section in UMD.","type":"string"},"commonjs":{"description":"Set comment for `commonjs` (exports) section in UMD.","type":"string"},"commonjs2":{"description":"Set comment for `commonjs2` (module.exports) section in UMD.","type":"string"},"root":{"description":"Set comment for `root` (global variable) section in UMD.","type":"string"}}},"LibraryCustomUmdObject":{"description":"Description object for all UMD variants of the library name.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Name of the exposed AMD library in the UMD.","type":"string","minLength":1},"commonjs":{"description":"Name of the exposed commonjs export in the UMD.","type":"string","minLength":1},"root":{"description":"Name of the property exposed globally by a UMD library.","anyOf":[{"type":"array","items":{"description":"Part of the name of the property exposed globally by a UMD library.","type":"string","minLength":1}},{"type":"string","minLength":1}]}}},"LibraryExport":{"description":"Specify which export should be exposed as library.","anyOf":[{"type":"array","items":{"description":"Part of the export that should be exposed as library.","type":"string","minLength":1}},{"type":"string","minLength":1}]},"LibraryName":{"description":"The name of the library (some types allow unnamed libraries too).","anyOf":[{"type":"array","items":{"description":"A part of the library name.","type":"string","minLength":1}},{"type":"string","minLength":1},{"$ref":"#/definitions/LibraryCustomUmdObject"}]},"LibraryOptions":{"description":"Options for library.","type":"object","additionalProperties":false,"properties":{"auxiliaryComment":{"$ref":"#/definitions/AuxiliaryComment"},"export":{"$ref":"#/definitions/LibraryExport"},"name":{"$ref":"#/definitions/LibraryName"},"type":{"$ref":"#/definitions/LibraryType"},"umdNamedDefine":{"$ref":"#/definitions/UmdNamedDefine"}},"required":["type"]},"LibraryType":{"description":"Type of library.","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]},"UmdNamedDefine":{"description":"If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.","type":"boolean"}},"title":"ContainerPluginOptions","type":"object","additionalProperties":false,"properties":{"exposes":{"$ref":"#/definitions/Exposes"},"filename":{"description":"The filename for this container relative path inside the `output.path` directory.","type":"string","absolutePath":false,"minLength":1},"library":{"$ref":"#/definitions/LibraryOptions"},"name":{"description":"The name for this container.","type":"string","minLength":1},"shareScope":{"description":"The name of the share scope which is shared with the host (defaults to \'default\').","type":"string","minLength":1}},"required":["name","exposes"]}')},39101:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"ExternalsType":{"description":"Specifies the default type of externals (\'amd*\', \'umd*\', \'system\' and \'jsonp\' depend on output.libraryTarget set to the same value).","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system","promise","import","script"]},"Remotes":{"description":"Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.","anyOf":[{"type":"array","items":{"description":"Container locations and request scopes from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesObject"}]}},{"$ref":"#/definitions/RemotesObject"}]},"RemotesConfig":{"description":"Advanced configuration for container locations from which modules should be resolved and loaded at runtime.","type":"object","additionalProperties":false,"properties":{"external":{"description":"Container locations from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesItems"}]},"shareScope":{"description":"The name of the share scope shared with this remote.","type":"string","minLength":1}},"required":["external"]},"RemotesItem":{"description":"Container location from which modules should be resolved and loaded at runtime.","type":"string","minLength":1},"RemotesItems":{"description":"Container locations from which modules should be resolved and loaded at runtime.","type":"array","items":{"$ref":"#/definitions/RemotesItem"}},"RemotesObject":{"description":"Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.","type":"object","additionalProperties":{"description":"Container locations from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesConfig"},{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesItems"}]}}},"title":"ContainerReferencePluginOptions","type":"object","additionalProperties":false,"properties":{"remoteType":{"description":"The external type of the remote containers.","oneOf":[{"$ref":"#/definitions/ExternalsType"}]},"remotes":{"$ref":"#/definitions/Remotes"},"shareScope":{"description":"The name of the share scope shared with all remotes (defaults to \'default\').","type":"string","minLength":1}},"required":["remoteType","remotes"]}')},7265:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"AuxiliaryComment":{"description":"Add a comment in the UMD wrapper.","anyOf":[{"description":"Append the same comment above each import style.","type":"string"},{"$ref":"#/definitions/LibraryCustomUmdCommentObject"}]},"Exposes":{"description":"Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.","anyOf":[{"type":"array","items":{"description":"Modules that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesObject"}]}},{"$ref":"#/definitions/ExposesObject"}]},"ExposesConfig":{"description":"Advanced configuration for modules that should be exposed by this container.","type":"object","additionalProperties":false,"properties":{"import":{"description":"Request to a module that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesItems"}]}},"required":["import"]},"ExposesItem":{"description":"Module that should be exposed by this container.","type":"string","minLength":1},"ExposesItems":{"description":"Modules that should be exposed by this container.","type":"array","items":{"$ref":"#/definitions/ExposesItem"}},"ExposesObject":{"description":"Modules that should be exposed by this container. Property names are used as public paths.","type":"object","additionalProperties":{"description":"Modules that should be exposed by this container.","anyOf":[{"$ref":"#/definitions/ExposesConfig"},{"$ref":"#/definitions/ExposesItem"},{"$ref":"#/definitions/ExposesItems"}]}},"ExternalsType":{"description":"Specifies the default type of externals (\'amd*\', \'umd*\', \'system\' and \'jsonp\' depend on output.libraryTarget set to the same value).","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system","promise","import","script"]},"LibraryCustomUmdCommentObject":{"description":"Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Set comment for `amd` section in UMD.","type":"string"},"commonjs":{"description":"Set comment for `commonjs` (exports) section in UMD.","type":"string"},"commonjs2":{"description":"Set comment for `commonjs2` (module.exports) section in UMD.","type":"string"},"root":{"description":"Set comment for `root` (global variable) section in UMD.","type":"string"}}},"LibraryCustomUmdObject":{"description":"Description object for all UMD variants of the library name.","type":"object","additionalProperties":false,"properties":{"amd":{"description":"Name of the exposed AMD library in the UMD.","type":"string","minLength":1},"commonjs":{"description":"Name of the exposed commonjs export in the UMD.","type":"string","minLength":1},"root":{"description":"Name of the property exposed globally by a UMD library.","anyOf":[{"type":"array","items":{"description":"Part of the name of the property exposed globally by a UMD library.","type":"string","minLength":1}},{"type":"string","minLength":1}]}}},"LibraryExport":{"description":"Specify which export should be exposed as library.","anyOf":[{"type":"array","items":{"description":"Part of the export that should be exposed as library.","type":"string","minLength":1}},{"type":"string","minLength":1}]},"LibraryName":{"description":"The name of the library (some types allow unnamed libraries too).","anyOf":[{"type":"array","items":{"description":"A part of the library name.","type":"string","minLength":1}},{"type":"string","minLength":1},{"$ref":"#/definitions/LibraryCustomUmdObject"}]},"LibraryOptions":{"description":"Options for library.","type":"object","additionalProperties":false,"properties":{"auxiliaryComment":{"$ref":"#/definitions/AuxiliaryComment"},"export":{"$ref":"#/definitions/LibraryExport"},"name":{"$ref":"#/definitions/LibraryName"},"type":{"$ref":"#/definitions/LibraryType"},"umdNamedDefine":{"$ref":"#/definitions/UmdNamedDefine"}},"required":["type"]},"LibraryType":{"description":"Type of library.","enum":["var","module","assign","this","window","self","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]},"Remotes":{"description":"Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.","anyOf":[{"type":"array","items":{"description":"Container locations and request scopes from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesObject"}]}},{"$ref":"#/definitions/RemotesObject"}]},"RemotesConfig":{"description":"Advanced configuration for container locations from which modules should be resolved and loaded at runtime.","type":"object","additionalProperties":false,"properties":{"external":{"description":"Container locations from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesItems"}]},"shareScope":{"description":"The name of the share scope shared with this remote.","type":"string","minLength":1}},"required":["external"]},"RemotesItem":{"description":"Container location from which modules should be resolved and loaded at runtime.","type":"string","minLength":1},"RemotesItems":{"description":"Container locations from which modules should be resolved and loaded at runtime.","type":"array","items":{"$ref":"#/definitions/RemotesItem"}},"RemotesObject":{"description":"Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.","type":"object","additionalProperties":{"description":"Container locations from which modules should be resolved and loaded at runtime.","anyOf":[{"$ref":"#/definitions/RemotesConfig"},{"$ref":"#/definitions/RemotesItem"},{"$ref":"#/definitions/RemotesItems"}]}},"Shared":{"description":"Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.","anyOf":[{"type":"array","items":{"description":"Modules that should be shared in the share scope.","anyOf":[{"$ref":"#/definitions/SharedItem"},{"$ref":"#/definitions/SharedObject"}]}},{"$ref":"#/definitions/SharedObject"}]},"SharedConfig":{"description":"Advanced configuration for modules that should be shared in the share scope.","type":"object","additionalProperties":false,"properties":{"eager":{"description":"Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.","type":"boolean"},"import":{"description":"Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn\'t valid. Defaults to the property name.","anyOf":[{"description":"No provided or fallback module.","enum":[false]},{"$ref":"#/definitions/SharedItem"}]},"packageName":{"description":"Package name to determine required version from description file. This is only needed when package name can\'t be automatically determined from request.","type":"string","minLength":1},"requiredVersion":{"description":"Version requirement from module in share scope.","anyOf":[{"description":"No version requirement check.","enum":[false]},{"description":"Version as string. Can be prefixed with \'^\' or \'~\' for minimum matches. Each part of the version should be separated by a dot \'.\'.","type":"string"}]},"shareKey":{"description":"Module is looked up under this key from the share scope.","type":"string","minLength":1},"shareScope":{"description":"Share scope name.","type":"string","minLength":1},"singleton":{"description":"Allow only a single version of the shared module in share scope (disabled by default).","type":"boolean"},"strictVersion":{"description":"Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).","type":"boolean"},"version":{"description":"Version of the provided module. Will replace lower matching versions, but not higher.","anyOf":[{"description":"Don\'t provide a version.","enum":[false]},{"description":"Version as string. Each part of the version should be separated by a dot \'.\'.","type":"string"}]}}},"SharedItem":{"description":"A module that should be shared in the share scope.","type":"string","minLength":1},"SharedObject":{"description":"Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.","type":"object","additionalProperties":{"description":"Modules that should be shared in the share scope.","anyOf":[{"$ref":"#/definitions/SharedConfig"},{"$ref":"#/definitions/SharedItem"}]}},"UmdNamedDefine":{"description":"If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.","type":"boolean"}},"title":"ModuleFederationPluginOptions","type":"object","additionalProperties":false,"properties":{"exposes":{"$ref":"#/definitions/Exposes"},"filename":{"description":"The filename of the container as relative path inside the `output.path` directory.","type":"string","absolutePath":false},"library":{"$ref":"#/definitions/LibraryOptions"},"name":{"description":"The name of the container.","type":"string"},"remoteType":{"description":"The external type of the remote containers.","oneOf":[{"$ref":"#/definitions/ExternalsType"}]},"remotes":{"$ref":"#/definitions/Remotes"},"shareScope":{"description":"Share scope name used for all shared modules (defaults to \'default\').","type":"string","minLength":1},"shared":{"$ref":"#/definitions/Shared"}}}')},8462:e=>{"use strict";e.exports=JSON.parse('{"title":"ProfilingPluginOptions","type":"object","additionalProperties":false,"properties":{"outputPath":{"description":"Path to the output file e.g. `path.resolve(__dirname, \'profiling/events.json\')`. Defaults to `events.json`.","type":"string","absolutePath":true}}}')},66451:e=>{"use strict";e.exports=JSON.parse('{"title":"OccurrenceChunkIdsPluginOptions","type":"object","additionalProperties":false,"properties":{"prioritiseInitial":{"description":"Prioritise initial size over total size.","type":"boolean"}}}')},25049:e=>{"use strict";e.exports=JSON.parse('{"title":"OccurrenceModuleIdsPluginOptions","type":"object","additionalProperties":false,"properties":{"prioritiseInitial":{"description":"Prioritise initial size over total size.","type":"boolean"}}}')},69127:e=>{"use strict";e.exports=JSON.parse('{"title":"AggressiveSplittingPluginOptions","type":"object","additionalProperties":false,"properties":{"chunkOverhead":{"description":"Extra cost for each chunk (Default: 9.8kiB).","type":"number"},"entryChunkMultiplicator":{"description":"Extra cost multiplicator for entry chunks (Default: 10).","type":"number"},"maxSize":{"description":"Byte, max size of per file (Default: 50kiB).","type":"number"},"minSize":{"description":"Byte, split point. (Default: 30kiB).","type":"number"}}}')},97350:e=>{"use strict";e.exports=JSON.parse('{"title":"LimitChunkCountPluginOptions","type":"object","additionalProperties":false,"properties":{"chunkOverhead":{"description":"Constant overhead for a chunk.","type":"number"},"entryChunkMultiplicator":{"description":"Multiplicator for initial chunks.","type":"number"},"maxChunks":{"description":"Limit the maximum number of chunks using a value greater greater than or equal to 1.","type":"number","minimum":1}},"required":["maxChunks"]}')},84796:e=>{"use strict";e.exports=JSON.parse('{"title":"MinChunkSizePluginOptions","type":"object","additionalProperties":false,"properties":{"chunkOverhead":{"description":"Constant overhead for a chunk.","type":"number"},"entryChunkMultiplicator":{"description":"Multiplicator for initial chunks.","type":"number"},"minChunkSize":{"description":"Minimum number of characters.","type":"number"}},"required":["minChunkSize"]}')},16308:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"Consumes":{"description":"Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.","anyOf":[{"type":"array","items":{"description":"Modules that should be consumed from share scope.","anyOf":[{"$ref":"#/definitions/ConsumesItem"},{"$ref":"#/definitions/ConsumesObject"}]}},{"$ref":"#/definitions/ConsumesObject"}]},"ConsumesConfig":{"description":"Advanced configuration for modules that should be consumed from share scope.","type":"object","additionalProperties":false,"properties":{"eager":{"description":"Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.","type":"boolean"},"import":{"description":"Fallback module if no shared module is found in share scope. Defaults to the property name.","anyOf":[{"description":"No fallback module.","enum":[false]},{"$ref":"#/definitions/ConsumesItem"}]},"packageName":{"description":"Package name to determine required version from description file. This is only needed when package name can\'t be automatically determined from request.","type":"string","minLength":1},"requiredVersion":{"description":"Version requirement from module in share scope.","anyOf":[{"description":"No version requirement check.","enum":[false]},{"description":"Version as string. Can be prefixed with \'^\' or \'~\' for minimum matches. Each part of the version should be separated by a dot \'.\'.","type":"string"}]},"shareKey":{"description":"Module is looked up under this key from the share scope.","type":"string","minLength":1},"shareScope":{"description":"Share scope name.","type":"string","minLength":1},"singleton":{"description":"Allow only a single version of the shared module in share scope (disabled by default).","type":"boolean"},"strictVersion":{"description":"Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).","type":"boolean"}}},"ConsumesItem":{"description":"A module that should be consumed from share scope.","type":"string","minLength":1},"ConsumesObject":{"description":"Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.","type":"object","additionalProperties":{"description":"Modules that should be consumed from share scope.","anyOf":[{"$ref":"#/definitions/ConsumesConfig"},{"$ref":"#/definitions/ConsumesItem"}]}}},"title":"ConsumeSharedPluginOptions","description":"Options for consuming shared modules.","type":"object","additionalProperties":false,"properties":{"consumes":{"$ref":"#/definitions/Consumes"},"shareScope":{"description":"Share scope name used for all consumed modules (defaults to \'default\').","type":"string","minLength":1}},"required":["consumes"]}')},23288:e=>{"use strict";e.exports=JSON.parse('{"definitions":{"Provides":{"description":"Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.","anyOf":[{"type":"array","items":{"description":"Modules that should be provided as shared modules to the share scope.","anyOf":[{"$ref":"#/definitions/ProvidesItem"},{"$ref":"#/definitions/ProvidesObject"}]}},{"$ref":"#/definitions/ProvidesObject"}]},"ProvidesConfig":{"description":"Advanced configuration for modules that should be provided as shared modules to the share scope.","type":"object","additionalProperties":false,"properties":{"eager":{"description":"Include the provided module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.","type":"boolean"},"shareKey":{"description":"Key in the share scope under which the shared modules should be stored.","type":"string","minLength":1},"shareScope":{"description":"Share scope name.","type":"string","minLength":1},"version":{"description":"Version of the provided module. Will replace lower matching versions, but not higher.","anyOf":[{"description":"Don\'t provide a version.","enum":[false]},{"description":"Version as string. Each part of the version should be separated by a dot \'.\'.","type":"string"}]}}},"ProvidesItem":{"description":"Request to a module that should be provided as shared module to the share scope (will be resolved when relative).","type":"string","minLength":1},"ProvidesObject":{"description":"Modules that should be provided as shared modules to the share scope. Property names are used as share keys.","type":"object","additionalProperties":{"description":"Modules that should be provided as shared modules to the share scope.","anyOf":[{"$ref":"#/definitions/ProvidesConfig"},{"$ref":"#/definitions/ProvidesItem"}]}}},"title":"ProvideSharedPluginOptions","type":"object","additionalProperties":false,"properties":{"provides":{"$ref":"#/definitions/Provides"},"shareScope":{"description":"Share scope name used for all provided modules (defaults to \'default\').","type":"string","minLength":1}},"required":["provides"]}')},60306:e=>{"use strict";e.exports=JSON.parse('{"name":"@vercel/ncc","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","version":"0.24.1","repository":"vercel/ncc","license":"MIT","main":"./dist/ncc/index.js","bin":{"ncc":"./dist/ncc/cli.js"},"scripts":{"build":"node scripts/build","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node","codecov":"codecov","test":"node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest","test-coverage":"node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals \\"{\\\\\\"coverage\\\\\\":true}\\" && codecov","prepublish":"yarn build"},"devDependencies":{"@azure/cosmos":"^2.0.5","@bugsnag/js":"^5.0.1","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^2.0.1","@google-cloud/firestore":"^2.2.0","@sentry/node":"^4.3.0","@tensorflow/tfjs-node":"^0.3.0","@zeit/webpack-asset-relocator-loader":"0.8.0","analytics-node":"^3.3.0","apollo-server-express":"^2.2.2","arg":"^4.1.0","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.18.1","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1","bytes":"^3.0.0","canvas":"^2.2.0","chromeless":"^1.5.2","codecov":"^3.6.5","consolidate":"^0.15.1","copy":"^0.3.2","core-js":"^2.5.7","cowsay":"^1.3.1","esm":"^3.2.22","express":"^4.16.4","fetch-h2":"^1.0.2","firebase":"^6.1.1","firebase-admin":"^6.3.0","fluent-ffmpeg":"^2.1.2","fontkit":"^1.7.7","get-folder-size":"^2.0.0","glob":"^7.1.3","got":"^9.3.2","graceful-fs":"^4.1.15","graphql":"^14.0.2","highlights":"^3.1.1","hot-shots":"^5.9.2","in-publish":"^2.0.0","ioredis":"^4.2.0","isomorphic-unfetch":"^3.0.0","jest":"^26.3.0","jimp":"^0.5.6","jugglingdb":"2.0.1","koa":"^2.6.2","leveldown":"^5.6.0","license-webpack-plugin":"^2.3.0","lighthouse":"^5.0.0","loopback":"^3.24.0","mailgun":"^0.5.0","mariadb":"^2.0.1-beta","memcached":"^2.2.2","mkdirp":"^0.5.1","mongoose":"^5.3.12","mysql":"^2.16.0","node-gyp":"^3.8.0","npm":"^6.13.4","oracledb":"^4.2.0","passport":"^0.4.0","passport-google-oauth":"^1.0.0","path-platform":"^0.11.15","pdf2json":"^1.1.8","pdfkit":"^0.8.3","pg":"^7.6.1","pug":"^2.0.3","react":"^16.6.3","react-dom":"^16.6.3","redis":"^2.8.0","request":"^2.88.0","rxjs":"^6.3.3","saslprep":"^1.0.2","sequelize":"^5.8.6","sharp":"^0.25.2","shebang-loader":"^0.0.1","socket.io":"^2.2.0","source-map-support":"^0.5.9","stripe":"^6.15.0","swig":"^1.4.2","terser":"^3.11.0","the-answer":"^1.0.0","tiny-json-http":"^7.0.2","ts-loader":"^5.3.1","tsconfig-paths":"^3.7.0","tsconfig-paths-webpack-plugin":"^3.2.0","twilio":"^3.23.2","typescript":"^3.2.2","vm2":"^3.6.6","vue":"^2.5.17","vue-server-renderer":"^2.5.17","webpack":"5.0.0-beta.28","when":"^3.7.8"}}')},93414:(e,t,n)=>{const{dirname:r}=n(85622);const{promisify:i}=n(31669);const{access:s,accessSync:o,copyFile:a,copyFileSync:c,unlink:u,unlinkSync:l,rename:f,renameSync:p}=n(35747);const d=i(s);const h=i(a);const m=i(u);const g=i(f);const y=n(16593);const v=async e=>{try{await d(e);return true}catch(e){return e.code!=="ENOENT"}};const _=e=>{try{o(e);return true}catch(e){return e.code!=="ENOENT"}};e.exports=(async(e,t,n={})=>{if(!e||!t){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&await v(t)){throw new Error(`The destination file exists: ${t}`)}await y(r(t));try{await g(e,t)}catch(n){if(n.code==="EXDEV"){await h(e,t);await m(e)}else{throw n}}});e.exports.sync=((e,t,n={})=>{if(!e||!t){throw new TypeError("`source` and `destination` file required")}n={overwrite:true,...n};if(!n.overwrite&&_(t)){throw new Error(`The destination file exists: ${t}`)}y.sync(r(t));try{p(e,t)}catch(n){if(n.code==="EXDEV"){c(e,t);l(e)}else{throw n}}})},16593:(e,t,n)=>{const r=n(39629);const i=n(27112);const{mkdirpNative:s,mkdirpNativeSync:o}=n(74503);const{mkdirpManual:a,mkdirpManualSync:c}=n(40325);const{useNative:u,useNativeSync:l}=n(79407);const f=(e,t)=>{e=i(e);t=r(t);return u(t)?s(e,t):a(e,t)};const p=(e,t)=>{e=i(e);t=r(t);return l(t)?o(e,t):c(e,t)};f.sync=p;f.native=((e,t)=>s(i(e),r(t)));f.manual=((e,t)=>a(i(e),r(t)));f.nativeSync=((e,t)=>o(i(e),r(t)));f.manualSync=((e,t)=>c(i(e),r(t)));e.exports=f},92804:(e,t,n)=>{const{dirname:r}=n(85622);const i=(e,t,n=undefined)=>{if(n===t)return Promise.resolve();return e.statAsync(t).then(e=>e.isDirectory()?n:undefined,n=>n.code==="ENOENT"?i(e,r(t),t):undefined)};const s=(e,t,n=undefined)=>{if(n===t)return undefined;try{return e.statSync(t).isDirectory()?n:undefined}catch(n){return n.code==="ENOENT"?s(e,r(t),t):undefined}};e.exports={findMade:i,findMadeSync:s}},40325:(e,t,n)=>{const{dirname:r}=n(85622);const i=(e,t,n)=>{t.recursive=false;const s=r(e);if(s===e){return t.mkdirAsync(e,t).catch(e=>{if(e.code!=="EISDIR")throw e})}return t.mkdirAsync(e,t).then(()=>n||e,r=>{if(r.code==="ENOENT")return i(s,t).then(n=>i(e,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;else throw r},()=>{throw r})})};const s=(e,t,n)=>{const i=r(e);t.recursive=false;if(i===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return n||e}catch(r){if(r.code==="ENOENT")return s(e,t,s(i,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!t.statSync(e).isDirectory())throw r}catch(e){throw r}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},74503:(e,t,n)=>{const{dirname:r}=n(85622);const{findMade:i,findMadeSync:s}=n(92804);const{mkdirpManual:o,mkdirpManualSync:a}=n(40325);const c=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirAsync(e,t);return i(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if(n.code==="ENOENT")return o(e,t);else throw n}))};const u=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirSync(e,t);const i=s(t,e);try{t.mkdirSync(e,t);return i}catch(n){if(n.code==="ENOENT")return a(e,t);else throw n}};e.exports={mkdirpNative:c,mkdirpNativeSync:u}},39629:(e,t,n)=>{const{promisify:r}=n(31669);const i=n(35747);const s=e=>{if(!e)e={mode:511,fs:i};else if(typeof e==="object")e={mode:511,fs:i,...e};else if(typeof e==="number")e={mode:e,fs:i};else if(typeof e==="string")e={mode:parseInt(e,8),fs:i};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir;e.mkdirAsync=r(e.mkdir);e.stat=e.stat||e.fs.stat||i.stat;e.statAsync=r(e.stat);e.statSync=e.statSync||e.fs.statSync||i.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync;return e};e.exports=s},27112:(e,t,n)=>{const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=n(85622);const o=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=i(e);if(r==="win32"){const t=/[*|"<>?:]/;const{root:n}=s(e);if(t.test(e.substr(n.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=o},79407:(e,t,n)=>{const r=n(35747);const i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=i.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===r.mkdir;const c=!o?()=>false:e=>e.mkdirSync===r.mkdirSync;e.exports={useNative:a,useNativeSync:c}},70797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneNode=cloneNode;function cloneNode(e){var t={};for(var n in e){t[n]=e[n]}return t}},98093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r={numberLiteralFromRaw:true,withLoc:true,withRaw:true,funcParam:true,indexLiteral:true,memIndexLiteral:true,instruction:true,objectInstruction:true,traverse:true,signatures:true,cloneNode:true};Object.defineProperty(t,"numberLiteralFromRaw",{enumerable:true,get:function get(){return s.numberLiteralFromRaw}});Object.defineProperty(t,"withLoc",{enumerable:true,get:function get(){return s.withLoc}});Object.defineProperty(t,"withRaw",{enumerable:true,get:function get(){return s.withRaw}});Object.defineProperty(t,"funcParam",{enumerable:true,get:function get(){return s.funcParam}});Object.defineProperty(t,"indexLiteral",{enumerable:true,get:function get(){return s.indexLiteral}});Object.defineProperty(t,"memIndexLiteral",{enumerable:true,get:function get(){return s.memIndexLiteral}});Object.defineProperty(t,"instruction",{enumerable:true,get:function get(){return s.instruction}});Object.defineProperty(t,"objectInstruction",{enumerable:true,get:function get(){return s.objectInstruction}});Object.defineProperty(t,"traverse",{enumerable:true,get:function get(){return o.traverse}});Object.defineProperty(t,"signatures",{enumerable:true,get:function get(){return a.signatures}});Object.defineProperty(t,"cloneNode",{enumerable:true,get:function get(){return u.cloneNode}});var i=n(52696);Object.keys(i).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,e))return;Object.defineProperty(t,e,{enumerable:true,get:function get(){return i[e]}})});var s=n(11891);var o=n(22056);var a=n(75769);var c=n(91764);Object.keys(c).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,e))return;Object.defineProperty(t,e,{enumerable:true,get:function get(){return c[e]}})});var u=n(70797)},11891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.numberLiteralFromRaw=numberLiteralFromRaw;t.instruction=instruction;t.objectInstruction=objectInstruction;t.withLoc=withLoc;t.withRaw=withRaw;t.funcParam=funcParam;t.indexLiteral=indexLiteral;t.memIndexLiteral=memIndexLiteral;var r=n(81684);var i=n(52696);function numberLiteralFromRaw(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"i32";var n=e;if(typeof e==="string"){e=e.replace(/_/g,"")}if(typeof e==="number"){return(0,i.numberLiteral)(e,String(n))}else{switch(t){case"i32":{return(0,i.numberLiteral)((0,r.parse32I)(e),String(n))}case"u32":{return(0,i.numberLiteral)((0,r.parseU32)(e),String(n))}case"i64":{return(0,i.longNumberLiteral)((0,r.parse64I)(e),String(n))}case"f32":{return(0,i.floatLiteral)((0,r.parse32F)(e),(0,r.isNanLiteral)(e),(0,r.isInfLiteral)(e),String(n))}default:{return(0,i.floatLiteral)((0,r.parse64F)(e),(0,r.isNanLiteral)(e),(0,r.isInfLiteral)(e),String(n))}}}}function instruction(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return(0,i.instr)(e,undefined,t,n)}function objectInstruction(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return(0,i.instr)(e,t,n,r)}function withLoc(e,t,n){var r={start:n,end:t};e.loc=r;return e}function withRaw(e,t){e.raw=t;return e}function funcParam(e,t){return{id:t,valtype:e}}function indexLiteral(e){var t=numberLiteralFromRaw(e,"u32");return t}function memIndexLiteral(e){var t=numberLiteralFromRaw(e,"u32");return t}},46166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPath=createPath;function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return _extends.apply(this,arguments)}function findParent(e,t){var n=e.parentPath;if(n==null){throw new Error("node is root")}var r=n;while(t(r)!==false){if(r.parentPath==null){return null}r=r.parentPath}return r.node}function insertBefore(e,t){return insert(e,t)}function insertAfter(e,t){return insert(e,t,1)}function insert(e,t){var n=e.node,r=e.inList,i=e.parentPath,s=e.parentKey;var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(!r){throw new Error("inList"+" error: "+("insert can only be used for nodes that are within lists"||0))}if(!(i!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var a=i.node[s];var c=a.findIndex(function(e){return e===n});a.splice(c+o,0,t)}function remove(e){var t=e.node,n=e.parentKey,r=e.parentPath;if(!(r!=null)){throw new Error("parentPath != null"+" error: "+("Can not remove root node"||0))}var i=r.node;var s=i[n];if(Array.isArray(s)){i[n]=s.filter(function(e){return e!==t})}else{delete i[n]}t._deleted=true}function stop(e){e.shouldStop=true}function replaceWith(e,t){var n=e.parentPath.node;var r=n[e.parentKey];if(Array.isArray(r)){var i=r.findIndex(function(t){return t===e.node});r.splice(i,1,t)}else{n[e.parentKey]=t}e.node._deleted=true;e.node=t}function bindNodeOperations(e,t){var n=Object.keys(e);var r={};n.forEach(function(n){r[n]=e[n].bind(null,t)});return r}function createPathOperations(e){return bindNodeOperations({findParent:findParent,replaceWith:replaceWith,remove:remove,insertBefore:insertBefore,insertAfter:insertAfter,stop:stop},e)}function createPath(e){var t=_extends({},e);Object.assign(t,createPathOperations(t));return t}},52696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.module=_module;t.moduleMetadata=moduleMetadata;t.moduleNameMetadata=moduleNameMetadata;t.functionNameMetadata=functionNameMetadata;t.localNameMetadata=localNameMetadata;t.binaryModule=binaryModule;t.quoteModule=quoteModule;t.sectionMetadata=sectionMetadata;t.producersSectionMetadata=producersSectionMetadata;t.producerMetadata=producerMetadata;t.producerMetadataVersionedName=producerMetadataVersionedName;t.loopInstruction=loopInstruction;t.instr=instr;t.ifInstruction=ifInstruction;t.stringLiteral=stringLiteral;t.numberLiteral=numberLiteral;t.longNumberLiteral=longNumberLiteral;t.floatLiteral=floatLiteral;t.elem=elem;t.indexInFuncSection=indexInFuncSection;t.valtypeLiteral=valtypeLiteral;t.typeInstruction=typeInstruction;t.start=start;t.globalType=globalType;t.leadingComment=leadingComment;t.blockComment=blockComment;t.data=data;t.global=global;t.table=table;t.memory=memory;t.funcImportDescr=funcImportDescr;t.moduleImport=moduleImport;t.moduleExportDescr=moduleExportDescr;t.moduleExport=moduleExport;t.limit=limit;t.signature=signature;t.program=program;t.identifier=identifier;t.blockInstruction=blockInstruction;t.callInstruction=callInstruction;t.callIndirectInstruction=callIndirectInstruction;t.byteArray=byteArray;t.func=func;t.internalBrUnless=internalBrUnless;t.internalGoto=internalGoto;t.internalCallExtern=internalCallExtern;t.internalEndAndReturn=internalEndAndReturn;t.assertInternalCallExtern=t.assertInternalGoto=t.assertInternalBrUnless=t.assertFunc=t.assertByteArray=t.assertCallIndirectInstruction=t.assertCallInstruction=t.assertBlockInstruction=t.assertIdentifier=t.assertProgram=t.assertSignature=t.assertLimit=t.assertModuleExport=t.assertModuleExportDescr=t.assertModuleImport=t.assertFuncImportDescr=t.assertMemory=t.assertTable=t.assertGlobal=t.assertData=t.assertBlockComment=t.assertLeadingComment=t.assertGlobalType=t.assertStart=t.assertTypeInstruction=t.assertValtypeLiteral=t.assertIndexInFuncSection=t.assertElem=t.assertFloatLiteral=t.assertLongNumberLiteral=t.assertNumberLiteral=t.assertStringLiteral=t.assertIfInstruction=t.assertInstr=t.assertLoopInstruction=t.assertProducerMetadataVersionedName=t.assertProducerMetadata=t.assertProducersSectionMetadata=t.assertSectionMetadata=t.assertQuoteModule=t.assertBinaryModule=t.assertLocalNameMetadata=t.assertFunctionNameMetadata=t.assertModuleNameMetadata=t.assertModuleMetadata=t.assertModule=t.isIntrinsic=t.isImportDescr=t.isNumericLiteral=t.isExpression=t.isInstruction=t.isBlock=t.isNode=t.isInternalEndAndReturn=t.isInternalCallExtern=t.isInternalGoto=t.isInternalBrUnless=t.isFunc=t.isByteArray=t.isCallIndirectInstruction=t.isCallInstruction=t.isBlockInstruction=t.isIdentifier=t.isProgram=t.isSignature=t.isLimit=t.isModuleExport=t.isModuleExportDescr=t.isModuleImport=t.isFuncImportDescr=t.isMemory=t.isTable=t.isGlobal=t.isData=t.isBlockComment=t.isLeadingComment=t.isGlobalType=t.isStart=t.isTypeInstruction=t.isValtypeLiteral=t.isIndexInFuncSection=t.isElem=t.isFloatLiteral=t.isLongNumberLiteral=t.isNumberLiteral=t.isStringLiteral=t.isIfInstruction=t.isInstr=t.isLoopInstruction=t.isProducerMetadataVersionedName=t.isProducerMetadata=t.isProducersSectionMetadata=t.isSectionMetadata=t.isQuoteModule=t.isBinaryModule=t.isLocalNameMetadata=t.isFunctionNameMetadata=t.isModuleNameMetadata=t.isModuleMetadata=t.isModule=void 0;t.nodeAndUnionTypes=t.unionTypesMap=t.assertInternalEndAndReturn=void 0;function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function isTypeOf(e){return function(t){return t.type===e}}function assertTypeOf(e){return function(t){return function(){if(!(t.type===e)){throw new Error("n.type === t"+" error: "+(undefined||"unknown"))}}()}}function _module(e,t,n){if(e!==null&&e!==undefined){if(!(typeof e==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(e)||0))}}if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof fields === "object" && typeof fields.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"Module",id:e,fields:t};if(typeof n!=="undefined"){r.metadata=n}return r}function moduleMetadata(e,t,n,r){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof sections === "object" && typeof sections.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(t!==null&&t!==undefined){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof functionNames === "object" && typeof functionNames.length !== "undefined"'+" error: "+(undefined||"unknown"))}}if(n!==null&&n!==undefined){if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof localNames === "object" && typeof localNames.length !== "undefined"'+" error: "+(undefined||"unknown"))}}if(r!==null&&r!==undefined){if(!(_typeof(r)==="object"&&typeof r.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var i={type:"ModuleMetadata",sections:e};if(typeof t!=="undefined"&&t.length>0){i.functionNames=t}if(typeof n!=="undefined"&&n.length>0){i.localNames=n}if(typeof r!=="undefined"&&r.length>0){i.producers=r}return i}function moduleNameMetadata(e){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}var t={type:"ModuleNameMetadata",value:e};return t}function functionNameMetadata(e,t){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}if(!(typeof t==="number")){throw new Error('typeof index === "number"'+" error: "+("Argument index must be of type number, given: "+_typeof(t)||0))}var n={type:"FunctionNameMetadata",value:e,index:t};return n}function localNameMetadata(e,t,n){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}if(!(typeof t==="number")){throw new Error('typeof localIndex === "number"'+" error: "+("Argument localIndex must be of type number, given: "+_typeof(t)||0))}if(!(typeof n==="number")){throw new Error('typeof functionIndex === "number"'+" error: "+("Argument functionIndex must be of type number, given: "+_typeof(n)||0))}var r={type:"LocalNameMetadata",value:e,localIndex:t,functionIndex:n};return r}function binaryModule(e,t){if(e!==null&&e!==undefined){if(!(typeof e==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(e)||0))}}if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof blob === "object" && typeof blob.length !== "undefined"'+" error: "+(undefined||"unknown"))}var n={type:"BinaryModule",id:e,blob:t};return n}function quoteModule(e,t){if(e!==null&&e!==undefined){if(!(typeof e==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(e)||0))}}if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof string === "object" && typeof string.length !== "undefined"'+" error: "+(undefined||"unknown"))}var n={type:"QuoteModule",id:e,string:t};return n}function sectionMetadata(e,t,n,r){if(!(typeof t==="number")){throw new Error('typeof startOffset === "number"'+" error: "+("Argument startOffset must be of type number, given: "+_typeof(t)||0))}var i={type:"SectionMetadata",section:e,startOffset:t,size:n,vectorOfSize:r};return i}function producersSectionMetadata(e){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof producers === "object" && typeof producers.length !== "undefined"'+" error: "+(undefined||"unknown"))}var t={type:"ProducersSectionMetadata",producers:e};return t}function producerMetadata(e,t,n){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof language === "object" && typeof language.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof processedBy === "object" && typeof processedBy.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof sdk === "object" && typeof sdk.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"ProducerMetadata",language:e,processedBy:t,sdk:n};return r}function producerMetadataVersionedName(e,t){if(!(typeof e==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(e)||0))}if(!(typeof t==="string")){throw new Error('typeof version === "string"'+" error: "+("Argument version must be of type string, given: "+_typeof(t)||0))}var n={type:"ProducerMetadataVersionedName",name:e,version:t};return n}function loopInstruction(e,t,n){if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"LoopInstruction",id:"loop",label:e,resulttype:t,instr:n};return r}function instr(e,t,n,r){if(!(typeof e==="string")){throw new Error('typeof id === "string"'+" error: "+("Argument id must be of type string, given: "+_typeof(e)||0))}if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof args === "object" && typeof args.length !== "undefined"'+" error: "+(undefined||"unknown"))}var i={type:"Instr",id:e,args:n};if(typeof t!=="undefined"){i.object=t}if(typeof r!=="undefined"&&Object.keys(r).length!==0){i.namedArgs=r}return i}function ifInstruction(e,t,n,r,i){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof test === "object" && typeof test.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(r)==="object"&&typeof r.length!=="undefined")){throw new Error('typeof consequent === "object" && typeof consequent.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(i)==="object"&&typeof i.length!=="undefined")){throw new Error('typeof alternate === "object" && typeof alternate.length !== "undefined"'+" error: "+(undefined||"unknown"))}var s={type:"IfInstruction",id:"if",testLabel:e,test:t,result:n,consequent:r,alternate:i};return s}function stringLiteral(e){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}var t={type:"StringLiteral",value:e};return t}function numberLiteral(e,t){if(!(typeof e==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(e)||0))}if(!(typeof t==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(t)||0))}var n={type:"NumberLiteral",value:e,raw:t};return n}function longNumberLiteral(e,t){if(!(typeof t==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(t)||0))}var n={type:"LongNumberLiteral",value:e,raw:t};return n}function floatLiteral(e,t,n,r){if(!(typeof e==="number")){throw new Error('typeof value === "number"'+" error: "+("Argument value must be of type number, given: "+_typeof(e)||0))}if(t!==null&&t!==undefined){if(!(typeof t==="boolean")){throw new Error('typeof nan === "boolean"'+" error: "+("Argument nan must be of type boolean, given: "+_typeof(t)||0))}}if(n!==null&&n!==undefined){if(!(typeof n==="boolean")){throw new Error('typeof inf === "boolean"'+" error: "+("Argument inf must be of type boolean, given: "+_typeof(n)||0))}}if(!(typeof r==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(r)||0))}var i={type:"FloatLiteral",value:e,raw:r};if(t===true){i.nan=true}if(n===true){i.inf=true}return i}function elem(e,t,n){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof offset === "object" && typeof offset.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof funcs === "object" && typeof funcs.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"Elem",table:e,offset:t,funcs:n};return r}function indexInFuncSection(e){var t={type:"IndexInFuncSection",index:e};return t}function valtypeLiteral(e){var t={type:"ValtypeLiteral",name:e};return t}function typeInstruction(e,t){var n={type:"TypeInstruction",id:e,functype:t};return n}function start(e){var t={type:"Start",index:e};return t}function globalType(e,t){var n={type:"GlobalType",valtype:e,mutability:t};return n}function leadingComment(e){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}var t={type:"LeadingComment",value:e};return t}function blockComment(e){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}var t={type:"BlockComment",value:e};return t}function data(e,t,n){var r={type:"Data",memoryIndex:e,offset:t,init:n};return r}function global(e,t,n){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof init === "object" && typeof init.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"Global",globalType:e,init:t,name:n};return r}function table(e,t,n,r){if(!(t.type==="Limit")){throw new Error('limits.type === "Limit"'+" error: "+("Argument limits must be of type Limit, given: "+t.type||0))}if(r!==null&&r!==undefined){if(!(_typeof(r)==="object"&&typeof r.length!=="undefined")){throw new Error('typeof elements === "object" && typeof elements.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var i={type:"Table",elementType:e,limits:t,name:n};if(typeof r!=="undefined"&&r.length>0){i.elements=r}return i}function memory(e,t){var n={type:"Memory",limits:e,id:t};return n}function funcImportDescr(e,t){var n={type:"FuncImportDescr",id:e,signature:t};return n}function moduleImport(e,t,n){if(!(typeof e==="string")){throw new Error('typeof module === "string"'+" error: "+("Argument module must be of type string, given: "+_typeof(e)||0))}if(!(typeof t==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(t)||0))}var r={type:"ModuleImport",module:e,name:t,descr:n};return r}function moduleExportDescr(e,t){var n={type:"ModuleExportDescr",exportType:e,id:t};return n}function moduleExport(e,t){if(!(typeof e==="string")){throw new Error('typeof name === "string"'+" error: "+("Argument name must be of type string, given: "+_typeof(e)||0))}var n={type:"ModuleExport",name:e,descr:t};return n}function limit(e,t){if(!(typeof e==="number")){throw new Error('typeof min === "number"'+" error: "+("Argument min must be of type number, given: "+_typeof(e)||0))}if(t!==null&&t!==undefined){if(!(typeof t==="number")){throw new Error('typeof max === "number"'+" error: "+("Argument max must be of type number, given: "+_typeof(t)||0))}}var n={type:"Limit",min:e};if(typeof t!=="undefined"){n.max=t}return n}function signature(e,t){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof params === "object" && typeof params.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof results === "object" && typeof results.length !== "undefined"'+" error: "+(undefined||"unknown"))}var n={type:"Signature",params:e,results:t};return n}function program(e){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(undefined||"unknown"))}var t={type:"Program",body:e};return t}function identifier(e,t){if(!(typeof e==="string")){throw new Error('typeof value === "string"'+" error: "+("Argument value must be of type string, given: "+_typeof(e)||0))}if(t!==null&&t!==undefined){if(!(typeof t==="string")){throw new Error('typeof raw === "string"'+" error: "+("Argument raw must be of type string, given: "+_typeof(t)||0))}}var n={type:"Identifier",value:e};if(typeof t!=="undefined"){n.raw=t}return n}function blockInstruction(e,t,n){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof instr === "object" && typeof instr.length !== "undefined"'+" error: "+(undefined||"unknown"))}var r={type:"BlockInstruction",id:"block",label:e,instr:t,result:n};return r}function callInstruction(e,t,n){if(t!==null&&t!==undefined){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof instrArgs === "object" && typeof instrArgs.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var r={type:"CallInstruction",id:"call",index:e};if(typeof t!=="undefined"&&t.length>0){r.instrArgs=t}if(typeof n!=="undefined"){r.numeric=n}return r}function callIndirectInstruction(e,t){if(t!==null&&t!==undefined){if(!(_typeof(t)==="object"&&typeof t.length!=="undefined")){throw new Error('typeof intrs === "object" && typeof intrs.length !== "undefined"'+" error: "+(undefined||"unknown"))}}var n={type:"CallIndirectInstruction",id:"call_indirect",signature:e};if(typeof t!=="undefined"&&t.length>0){n.intrs=t}return n}function byteArray(e){if(!(_typeof(e)==="object"&&typeof e.length!=="undefined")){throw new Error('typeof values === "object" && typeof values.length !== "undefined"'+" error: "+(undefined||"unknown"))}var t={type:"ByteArray",values:e};return t}function func(e,t,n,r,i){if(!(_typeof(n)==="object"&&typeof n.length!=="undefined")){throw new Error('typeof body === "object" && typeof body.length !== "undefined"'+" error: "+(undefined||"unknown"))}if(r!==null&&r!==undefined){if(!(typeof r==="boolean")){throw new Error('typeof isExternal === "boolean"'+" error: "+("Argument isExternal must be of type boolean, given: "+_typeof(r)||0))}}var s={type:"Func",name:e,signature:t,body:n};if(r===true){s.isExternal=true}if(typeof i!=="undefined"){s.metadata=i}return s}function internalBrUnless(e){if(!(typeof e==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(e)||0))}var t={type:"InternalBrUnless",target:e};return t}function internalGoto(e){if(!(typeof e==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(e)||0))}var t={type:"InternalGoto",target:e};return t}function internalCallExtern(e){if(!(typeof e==="number")){throw new Error('typeof target === "number"'+" error: "+("Argument target must be of type number, given: "+_typeof(e)||0))}var t={type:"InternalCallExtern",target:e};return t}function internalEndAndReturn(){var e={type:"InternalEndAndReturn"};return e}var n=isTypeOf("Module");t.isModule=n;var r=isTypeOf("ModuleMetadata");t.isModuleMetadata=r;var i=isTypeOf("ModuleNameMetadata");t.isModuleNameMetadata=i;var s=isTypeOf("FunctionNameMetadata");t.isFunctionNameMetadata=s;var o=isTypeOf("LocalNameMetadata");t.isLocalNameMetadata=o;var a=isTypeOf("BinaryModule");t.isBinaryModule=a;var c=isTypeOf("QuoteModule");t.isQuoteModule=c;var u=isTypeOf("SectionMetadata");t.isSectionMetadata=u;var l=isTypeOf("ProducersSectionMetadata");t.isProducersSectionMetadata=l;var f=isTypeOf("ProducerMetadata");t.isProducerMetadata=f;var p=isTypeOf("ProducerMetadataVersionedName");t.isProducerMetadataVersionedName=p;var d=isTypeOf("LoopInstruction");t.isLoopInstruction=d;var h=isTypeOf("Instr");t.isInstr=h;var m=isTypeOf("IfInstruction");t.isIfInstruction=m;var g=isTypeOf("StringLiteral");t.isStringLiteral=g;var y=isTypeOf("NumberLiteral");t.isNumberLiteral=y;var v=isTypeOf("LongNumberLiteral");t.isLongNumberLiteral=v;var _=isTypeOf("FloatLiteral");t.isFloatLiteral=_;var b=isTypeOf("Elem");t.isElem=b;var E=isTypeOf("IndexInFuncSection");t.isIndexInFuncSection=E;var w=isTypeOf("ValtypeLiteral");t.isValtypeLiteral=w;var S=isTypeOf("TypeInstruction");t.isTypeInstruction=S;var k=isTypeOf("Start");t.isStart=k;var D=isTypeOf("GlobalType");t.isGlobalType=D;var x=isTypeOf("LeadingComment");t.isLeadingComment=x;var C=isTypeOf("BlockComment");t.isBlockComment=C;var A=isTypeOf("Data");t.isData=A;var T=isTypeOf("Global");t.isGlobal=T;var M=isTypeOf("Table");t.isTable=M;var O=isTypeOf("Memory");t.isMemory=O;var F=isTypeOf("FuncImportDescr");t.isFuncImportDescr=F;var I=isTypeOf("ModuleImport");t.isModuleImport=I;var R=isTypeOf("ModuleExportDescr");t.isModuleExportDescr=R;var P=isTypeOf("ModuleExport");t.isModuleExport=P;var N=isTypeOf("Limit");t.isLimit=N;var L=isTypeOf("Signature");t.isSignature=L;var B=isTypeOf("Program");t.isProgram=B;var j=isTypeOf("Identifier");t.isIdentifier=j;var U=isTypeOf("BlockInstruction");t.isBlockInstruction=U;var z=isTypeOf("CallInstruction");t.isCallInstruction=z;var H=isTypeOf("CallIndirectInstruction");t.isCallIndirectInstruction=H;var V=isTypeOf("ByteArray");t.isByteArray=V;var G=isTypeOf("Func");t.isFunc=G;var q=isTypeOf("InternalBrUnless");t.isInternalBrUnless=q;var W=isTypeOf("InternalGoto");t.isInternalGoto=W;var K=isTypeOf("InternalCallExtern");t.isInternalCallExtern=K;var X=isTypeOf("InternalEndAndReturn");t.isInternalEndAndReturn=X;var J=function isNode(e){return n(e)||r(e)||i(e)||s(e)||o(e)||a(e)||c(e)||u(e)||l(e)||f(e)||p(e)||d(e)||h(e)||m(e)||g(e)||y(e)||v(e)||_(e)||b(e)||E(e)||w(e)||S(e)||k(e)||D(e)||x(e)||C(e)||A(e)||T(e)||M(e)||O(e)||F(e)||I(e)||R(e)||P(e)||N(e)||L(e)||B(e)||j(e)||U(e)||z(e)||H(e)||V(e)||G(e)||q(e)||W(e)||K(e)||X(e)};t.isNode=J;var Y=function isBlock(e){return d(e)||U(e)||G(e)};t.isBlock=Y;var Q=function isInstruction(e){return d(e)||h(e)||m(e)||S(e)||U(e)||z(e)||H(e)};t.isInstruction=Q;var Z=function isExpression(e){return h(e)||g(e)||y(e)||v(e)||_(e)||w(e)||j(e)};t.isExpression=Z;var $=function isNumericLiteral(e){return y(e)||v(e)||_(e)};t.isNumericLiteral=$;var ee=function isImportDescr(e){return D(e)||M(e)||O(e)||F(e)};t.isImportDescr=ee;var te=function isIntrinsic(e){return q(e)||W(e)||K(e)||X(e)};t.isIntrinsic=te;var ne=assertTypeOf("Module");t.assertModule=ne;var re=assertTypeOf("ModuleMetadata");t.assertModuleMetadata=re;var ie=assertTypeOf("ModuleNameMetadata");t.assertModuleNameMetadata=ie;var se=assertTypeOf("FunctionNameMetadata");t.assertFunctionNameMetadata=se;var oe=assertTypeOf("LocalNameMetadata");t.assertLocalNameMetadata=oe;var ae=assertTypeOf("BinaryModule");t.assertBinaryModule=ae;var ce=assertTypeOf("QuoteModule");t.assertQuoteModule=ce;var ue=assertTypeOf("SectionMetadata");t.assertSectionMetadata=ue;var le=assertTypeOf("ProducersSectionMetadata");t.assertProducersSectionMetadata=le;var fe=assertTypeOf("ProducerMetadata");t.assertProducerMetadata=fe;var pe=assertTypeOf("ProducerMetadataVersionedName");t.assertProducerMetadataVersionedName=pe;var de=assertTypeOf("LoopInstruction");t.assertLoopInstruction=de;var he=assertTypeOf("Instr");t.assertInstr=he;var me=assertTypeOf("IfInstruction");t.assertIfInstruction=me;var ge=assertTypeOf("StringLiteral");t.assertStringLiteral=ge;var ye=assertTypeOf("NumberLiteral");t.assertNumberLiteral=ye;var ve=assertTypeOf("LongNumberLiteral");t.assertLongNumberLiteral=ve;var _e=assertTypeOf("FloatLiteral");t.assertFloatLiteral=_e;var be=assertTypeOf("Elem");t.assertElem=be;var Ee=assertTypeOf("IndexInFuncSection");t.assertIndexInFuncSection=Ee;var we=assertTypeOf("ValtypeLiteral");t.assertValtypeLiteral=we;var Se=assertTypeOf("TypeInstruction");t.assertTypeInstruction=Se;var ke=assertTypeOf("Start");t.assertStart=ke;var De=assertTypeOf("GlobalType");t.assertGlobalType=De;var xe=assertTypeOf("LeadingComment");t.assertLeadingComment=xe;var Ce=assertTypeOf("BlockComment");t.assertBlockComment=Ce;var Ae=assertTypeOf("Data");t.assertData=Ae;var Te=assertTypeOf("Global");t.assertGlobal=Te;var Me=assertTypeOf("Table");t.assertTable=Me;var Oe=assertTypeOf("Memory");t.assertMemory=Oe;var Fe=assertTypeOf("FuncImportDescr");t.assertFuncImportDescr=Fe;var Ie=assertTypeOf("ModuleImport");t.assertModuleImport=Ie;var Re=assertTypeOf("ModuleExportDescr");t.assertModuleExportDescr=Re;var Pe=assertTypeOf("ModuleExport");t.assertModuleExport=Pe;var Ne=assertTypeOf("Limit");t.assertLimit=Ne;var Le=assertTypeOf("Signature");t.assertSignature=Le;var Be=assertTypeOf("Program");t.assertProgram=Be;var je=assertTypeOf("Identifier");t.assertIdentifier=je;var Ue=assertTypeOf("BlockInstruction");t.assertBlockInstruction=Ue;var ze=assertTypeOf("CallInstruction");t.assertCallInstruction=ze;var He=assertTypeOf("CallIndirectInstruction");t.assertCallIndirectInstruction=He;var Ve=assertTypeOf("ByteArray");t.assertByteArray=Ve;var Ge=assertTypeOf("Func");t.assertFunc=Ge;var qe=assertTypeOf("InternalBrUnless");t.assertInternalBrUnless=qe;var We=assertTypeOf("InternalGoto");t.assertInternalGoto=We;var Ke=assertTypeOf("InternalCallExtern");t.assertInternalCallExtern=Ke;var Xe=assertTypeOf("InternalEndAndReturn");t.assertInternalEndAndReturn=Xe;var Je={Module:["Node"],ModuleMetadata:["Node"],ModuleNameMetadata:["Node"],FunctionNameMetadata:["Node"],LocalNameMetadata:["Node"],BinaryModule:["Node"],QuoteModule:["Node"],SectionMetadata:["Node"],ProducersSectionMetadata:["Node"],ProducerMetadata:["Node"],ProducerMetadataVersionedName:["Node"],LoopInstruction:["Node","Block","Instruction"],Instr:["Node","Expression","Instruction"],IfInstruction:["Node","Instruction"],StringLiteral:["Node","Expression"],NumberLiteral:["Node","NumericLiteral","Expression"],LongNumberLiteral:["Node","NumericLiteral","Expression"],FloatLiteral:["Node","NumericLiteral","Expression"],Elem:["Node"],IndexInFuncSection:["Node"],ValtypeLiteral:["Node","Expression"],TypeInstruction:["Node","Instruction"],Start:["Node"],GlobalType:["Node","ImportDescr"],LeadingComment:["Node"],BlockComment:["Node"],Data:["Node"],Global:["Node"],Table:["Node","ImportDescr"],Memory:["Node","ImportDescr"],FuncImportDescr:["Node","ImportDescr"],ModuleImport:["Node"],ModuleExportDescr:["Node"],ModuleExport:["Node"],Limit:["Node"],Signature:["Node"],Program:["Node"],Identifier:["Node","Expression"],BlockInstruction:["Node","Block","Instruction"],CallInstruction:["Node","Instruction"],CallIndirectInstruction:["Node","Instruction"],ByteArray:["Node"],Func:["Node","Block"],InternalBrUnless:["Node","Intrinsic"],InternalGoto:["Node","Intrinsic"],InternalCallExtern:["Node","Intrinsic"],InternalEndAndReturn:["Node","Intrinsic"]};t.unionTypesMap=Je;var Ye=["Module","ModuleMetadata","ModuleNameMetadata","FunctionNameMetadata","LocalNameMetadata","BinaryModule","QuoteModule","SectionMetadata","ProducersSectionMetadata","ProducerMetadata","ProducerMetadataVersionedName","LoopInstruction","Instr","IfInstruction","StringLiteral","NumberLiteral","LongNumberLiteral","FloatLiteral","Elem","IndexInFuncSection","ValtypeLiteral","TypeInstruction","Start","GlobalType","LeadingComment","BlockComment","Data","Global","Table","Memory","FuncImportDescr","ModuleImport","ModuleExportDescr","ModuleExport","Limit","Signature","Program","Identifier","BlockInstruction","CallInstruction","CallIndirectInstruction","ByteArray","Func","InternalBrUnless","InternalGoto","InternalCallExtern","InternalEndAndReturn","Node","Block","Instruction","Expression","NumericLiteral","ImportDescr","Intrinsic"];t.nodeAndUnionTypes=Ye},75769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signatures=void 0;function sign(e,t){return[e,t]}var n="u32";var r="i32";var i="i64";var s="f32";var o="f64";var a=function vector(e){var t=[e];t.vector=true;return t};var c={unreachable:sign([],[]),nop:sign([],[]),br:sign([n],[]),br_if:sign([n],[]),br_table:sign(a(n),[]),return:sign([],[]),call:sign([n],[]),call_indirect:sign([n],[])};var u={drop:sign([],[]),select:sign([],[])};var l={get_local:sign([n],[]),set_local:sign([n],[]),tee_local:sign([n],[]),get_global:sign([n],[]),set_global:sign([n],[])};var f={"i32.load":sign([n,n],[r]),"i64.load":sign([n,n],[]),"f32.load":sign([n,n],[]),"f64.load":sign([n,n],[]),"i32.load8_s":sign([n,n],[r]),"i32.load8_u":sign([n,n],[r]),"i32.load16_s":sign([n,n],[r]),"i32.load16_u":sign([n,n],[r]),"i64.load8_s":sign([n,n],[i]),"i64.load8_u":sign([n,n],[i]),"i64.load16_s":sign([n,n],[i]),"i64.load16_u":sign([n,n],[i]),"i64.load32_s":sign([n,n],[i]),"i64.load32_u":sign([n,n],[i]),"i32.store":sign([n,n],[]),"i64.store":sign([n,n],[]),"f32.store":sign([n,n],[]),"f64.store":sign([n,n],[]),"i32.store8":sign([n,n],[]),"i32.store16":sign([n,n],[]),"i64.store8":sign([n,n],[]),"i64.store16":sign([n,n],[]),"i64.store32":sign([n,n],[]),current_memory:sign([],[]),grow_memory:sign([],[])};var p={"i32.const":sign([r],[r]),"i64.const":sign([i],[i]),"f32.const":sign([s],[s]),"f64.const":sign([o],[o]),"i32.eqz":sign([r],[r]),"i32.eq":sign([r,r],[r]),"i32.ne":sign([r,r],[r]),"i32.lt_s":sign([r,r],[r]),"i32.lt_u":sign([r,r],[r]),"i32.gt_s":sign([r,r],[r]),"i32.gt_u":sign([r,r],[r]),"i32.le_s":sign([r,r],[r]),"i32.le_u":sign([r,r],[r]),"i32.ge_s":sign([r,r],[r]),"i32.ge_u":sign([r,r],[r]),"i64.eqz":sign([i],[i]),"i64.eq":sign([i,i],[r]),"i64.ne":sign([i,i],[r]),"i64.lt_s":sign([i,i],[r]),"i64.lt_u":sign([i,i],[r]),"i64.gt_s":sign([i,i],[r]),"i64.gt_u":sign([i,i],[r]),"i64.le_s":sign([i,i],[r]),"i64.le_u":sign([i,i],[r]),"i64.ge_s":sign([i,i],[r]),"i64.ge_u":sign([i,i],[r]),"f32.eq":sign([s,s],[r]),"f32.ne":sign([s,s],[r]),"f32.lt":sign([s,s],[r]),"f32.gt":sign([s,s],[r]),"f32.le":sign([s,s],[r]),"f32.ge":sign([s,s],[r]),"f64.eq":sign([o,o],[r]),"f64.ne":sign([o,o],[r]),"f64.lt":sign([o,o],[r]),"f64.gt":sign([o,o],[r]),"f64.le":sign([o,o],[r]),"f64.ge":sign([o,o],[r]),"i32.clz":sign([r],[r]),"i32.ctz":sign([r],[r]),"i32.popcnt":sign([r],[r]),"i32.add":sign([r,r],[r]),"i32.sub":sign([r,r],[r]),"i32.mul":sign([r,r],[r]),"i32.div_s":sign([r,r],[r]),"i32.div_u":sign([r,r],[r]),"i32.rem_s":sign([r,r],[r]),"i32.rem_u":sign([r,r],[r]),"i32.and":sign([r,r],[r]),"i32.or":sign([r,r],[r]),"i32.xor":sign([r,r],[r]),"i32.shl":sign([r,r],[r]),"i32.shr_s":sign([r,r],[r]),"i32.shr_u":sign([r,r],[r]),"i32.rotl":sign([r,r],[r]),"i32.rotr":sign([r,r],[r]),"i64.clz":sign([i],[i]),"i64.ctz":sign([i],[i]),"i64.popcnt":sign([i],[i]),"i64.add":sign([i,i],[i]),"i64.sub":sign([i,i],[i]),"i64.mul":sign([i,i],[i]),"i64.div_s":sign([i,i],[i]),"i64.div_u":sign([i,i],[i]),"i64.rem_s":sign([i,i],[i]),"i64.rem_u":sign([i,i],[i]),"i64.and":sign([i,i],[i]),"i64.or":sign([i,i],[i]),"i64.xor":sign([i,i],[i]),"i64.shl":sign([i,i],[i]),"i64.shr_s":sign([i,i],[i]),"i64.shr_u":sign([i,i],[i]),"i64.rotl":sign([i,i],[i]),"i64.rotr":sign([i,i],[i]),"f32.abs":sign([s],[s]),"f32.neg":sign([s],[s]),"f32.ceil":sign([s],[s]),"f32.floor":sign([s],[s]),"f32.trunc":sign([s],[s]),"f32.nearest":sign([s],[s]),"f32.sqrt":sign([s],[s]),"f32.add":sign([s,s],[s]),"f32.sub":sign([s,s],[s]),"f32.mul":sign([s,s],[s]),"f32.div":sign([s,s],[s]),"f32.min":sign([s,s],[s]),"f32.max":sign([s,s],[s]),"f32.copysign":sign([s,s],[s]),"f64.abs":sign([o],[o]),"f64.neg":sign([o],[o]),"f64.ceil":sign([o],[o]),"f64.floor":sign([o],[o]),"f64.trunc":sign([o],[o]),"f64.nearest":sign([o],[o]),"f64.sqrt":sign([o],[o]),"f64.add":sign([o,o],[o]),"f64.sub":sign([o,o],[o]),"f64.mul":sign([o,o],[o]),"f64.div":sign([o,o],[o]),"f64.min":sign([o,o],[o]),"f64.max":sign([o,o],[o]),"f64.copysign":sign([o,o],[o]),"i32.wrap/i64":sign([i],[r]),"i32.trunc_s/f32":sign([s],[r]),"i32.trunc_u/f32":sign([s],[r]),"i32.trunc_s/f64":sign([s],[r]),"i32.trunc_u/f64":sign([o],[r]),"i64.extend_s/i32":sign([r],[i]),"i64.extend_u/i32":sign([r],[i]),"i64.trunc_s/f32":sign([s],[i]),"i64.trunc_u/f32":sign([s],[i]),"i64.trunc_s/f64":sign([o],[i]),"i64.trunc_u/f64":sign([o],[i]),"f32.convert_s/i32":sign([r],[s]),"f32.convert_u/i32":sign([r],[s]),"f32.convert_s/i64":sign([i],[s]),"f32.convert_u/i64":sign([i],[s]),"f32.demote/f64":sign([o],[s]),"f64.convert_s/i32":sign([r],[o]),"f64.convert_u/i32":sign([r],[o]),"f64.convert_s/i64":sign([i],[o]),"f64.convert_u/i64":sign([i],[o]),"f64.promote/f32":sign([s],[o]),"i32.reinterpret/f32":sign([s],[r]),"i64.reinterpret/f64":sign([o],[i]),"f32.reinterpret/i32":sign([r],[s]),"f64.reinterpret/i64":sign([i],[o])};var d=Object.assign({},c,u,l,f,p);t.signatures=d},22056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.traverse=traverse;var r=n(46166);var i=n(52696);function walk(e,t){var n=false;function innerWalk(e,t){if(n){return}var i=e.node;if(i===undefined){console.warn("traversing with an empty context");return}if(i._deleted===true){return}var s=(0,r.createPath)(e);t(i.type,s);if(s.shouldStop){n=true;return}Object.keys(i).forEach(function(e){var n=i[e];if(n===null||n===undefined){return}var r=Array.isArray(n)?n:[n];r.forEach(function(r){if(typeof r.type==="string"){var i={node:r,parentKey:e,parentPath:s,shouldStop:false,inList:Array.isArray(n)};innerWalk(i,t)}})})}innerWalk(e,t)}var s=function noop(){};function traverse(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:s;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:s;Object.keys(t).forEach(function(e){if(!i.nodeAndUnionTypes.includes(e)){throw new Error("Unexpected visitor ".concat(e))}});var o={node:e,inList:false,shouldStop:false,parentPath:null,parentKey:null};walk(o,function(e,s){if(typeof t[e]==="function"){n(e,s);t[e](s);r(e,s)}var o=i.unionTypesMap[e];if(!o){throw new Error("Unexpected node type ".concat(e))}o.forEach(function(e){if(typeof t[e]==="function"){n(e,s);t[e](s);r(e,s)}})})}},91764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAnonymous=isAnonymous;t.getSectionMetadata=getSectionMetadata;t.getSectionMetadatas=getSectionMetadatas;t.sortSectionMetadata=sortSectionMetadata;t.orderedInsertNode=orderedInsertNode;t.assertHasLoc=assertHasLoc;t.getEndOfSection=getEndOfSection;t.shiftLoc=shiftLoc;t.shiftSection=shiftSection;t.signatureForOpcode=signatureForOpcode;t.getUniqueNameGenerator=getUniqueNameGenerator;t.getStartByteOffset=getStartByteOffset;t.getEndByteOffset=getEndByteOffset;t.getFunctionBeginingByteOffset=getFunctionBeginingByteOffset;t.getEndBlockByteOffset=getEndBlockByteOffset;t.getStartBlockByteOffset=getStartBlockByteOffset;var r=n(75769);var i=n(22056);var s=_interopRequireWildcard(n(3930));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _sliceIterator(e,t){var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done);r=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw s}}return n}function _slicedToArray(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return _sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function isAnonymous(e){return e.raw===""}function getSectionMetadata(e,t){var n;(0,i.traverse)(e,{SectionMetadata:function(e){function SectionMetadata(t){return e.apply(this,arguments)}SectionMetadata.toString=function(){return e.toString()};return SectionMetadata}(function(e){var r=e.node;if(r.section===t){n=r}})});return n}function getSectionMetadatas(e,t){var n=[];(0,i.traverse)(e,{SectionMetadata:function(e){function SectionMetadata(t){return e.apply(this,arguments)}SectionMetadata.toString=function(){return e.toString()};return SectionMetadata}(function(e){var r=e.node;if(r.section===t){n.push(r)}})});return n}function sortSectionMetadata(e){if(e.metadata==null){console.warn("sortSectionMetadata: no metadata to sort");return}e.metadata.sections.sort(function(e,t){var n=s.default.sections[e.section];var r=s.default.sections[t.section];if(typeof n!=="number"||typeof r!=="number"){throw new Error("Section id not found")}return n-r})}function orderedInsertNode(e,t){assertHasLoc(t);var n=false;if(t.type==="ModuleExport"){e.fields.push(t);return}e.fields=e.fields.reduce(function(e,r){var i=Infinity;if(r.loc!=null){i=r.loc.end.column}if(n===false&&t.loc.start.column<i){n=true;e.push(t)}e.push(r);return e},[]);if(n===false){e.fields.push(t)}}function assertHasLoc(e){if(e.loc==null||e.loc.start==null||e.loc.end==null){throw new Error("Internal failure: node (".concat(JSON.stringify(e.type),") has no location information"))}}function getEndOfSection(e){assertHasLoc(e.size);return e.startOffset+e.size.value+(e.size.loc.end.column-e.size.loc.start.column)}function shiftLoc(e,t){e.loc.start.column+=t;e.loc.end.column+=t}function shiftSection(e,t,n){if(t.type!=="SectionMetadata"){throw new Error("Can not shift node "+JSON.stringify(t.type))}t.startOffset+=n;if(_typeof(t.size.loc)==="object"){shiftLoc(t.size,n)}if(_typeof(t.vectorOfSize)==="object"&&_typeof(t.vectorOfSize.loc)==="object"){shiftLoc(t.vectorOfSize,n)}var r=t.section;(0,i.traverse)(e,{Node:function Node(e){var t=e.node;var i=(0,s.getSectionForNode)(t);if(i===r&&_typeof(t.loc)==="object"){shiftLoc(t,n)}}})}function signatureForOpcode(e,t){var n=t;if(e!==undefined&&e!==""){n=e+"."+t}var i=r.signatures[n];if(i==undefined){return[e,e]}return i[0]}function getUniqueNameGenerator(){var e={};return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"temp";if(!(t in e)){e[t]=0}else{e[t]=e[t]+1}return t+"_"+e[t]}}function getStartByteOffset(e){if(typeof e.loc==="undefined"||typeof e.loc.start==="undefined"){throw new Error("Can not get byte offset without loc informations, node: "+String(e.id))}return e.loc.start.column}function getEndByteOffset(e){if(typeof e.loc==="undefined"||typeof e.loc.end==="undefined"){throw new Error("Can not get byte offset without loc informations, node: "+e.type)}return e.loc.end.column}function getFunctionBeginingByteOffset(e){if(!(e.body.length>0)){throw new Error("n.body.length > 0"+" error: "+(undefined||"unknown"))}var t=_slicedToArray(e.body,1),n=t[0];return getStartByteOffset(n)}function getEndBlockByteOffset(e){if(!(e.instr.length>0||e.body.length>0)){throw new Error("n.instr.length > 0 || n.body.length > 0"+" error: "+(undefined||"unknown"))}var t;if(e.instr){t=e.instr[e.instr.length-1]}if(e.body){t=e.body[e.body.length-1]}if(!(_typeof(t)==="object")){throw new Error('typeof lastInstruction === "object"'+" error: "+(undefined||"unknown"))}return getStartByteOffset(t)}function getStartBlockByteOffset(e){if(!(e.instr.length>0||e.body.length>0)){throw new Error("n.instr.length > 0 || n.body.length > 0"+" error: "+(undefined||"unknown"))}var t;if(e.instr){var n=_slicedToArray(e.instr,1);t=n[0]}if(e.body){var r=_slicedToArray(e.body,1);t=r[0]}if(!(_typeof(t)==="object")){throw new Error('typeof fistInstruction === "object"'+" error: "+(undefined||"unknown"))}return getStartByteOffset(t)}},18083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parse;function parse(e){e=e.toUpperCase();var t=e.indexOf("P");var n,r;if(t!==-1){n=e.substring(0,t);r=parseInt(e.substring(t+1))}else{n=e;r=0}var i=n.indexOf(".");if(i!==-1){var s=parseInt(n.substring(0,i),16);var o=Math.sign(s);s=o*s;var a=n.length-i-1;var c=parseInt(n.substring(i+1),16);var u=a>0?c/Math.pow(16,a):0;if(o===0){if(u===0){n=o}else{if(Object.is(o,-0)){n=-u}else{n=u}}}else{n=o*(s+u)}}else{n=parseInt(n,16)}return n*(t!==-1?Math.pow(2,r):1)}},35866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LinkError=t.CompileError=t.RuntimeError=void 0;function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(t&&(_typeof(t)==="object"||typeof t==="function")){return t}if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var n=function(e){_inherits(RuntimeError,e);function RuntimeError(){_classCallCheck(this,RuntimeError);return _possibleConstructorReturn(this,(RuntimeError.__proto__||Object.getPrototypeOf(RuntimeError)).apply(this,arguments))}return RuntimeError}(Error);t.RuntimeError=n;var r=function(e){_inherits(CompileError,e);function CompileError(){_classCallCheck(this,CompileError);return _possibleConstructorReturn(this,(CompileError.__proto__||Object.getPrototypeOf(CompileError)).apply(this,arguments))}return CompileError}(Error);t.CompileError=r;var i=function(e){_inherits(LinkError,e);function LinkError(){_classCallCheck(this,LinkError);return _possibleConstructorReturn(this,(LinkError.__proto__||Object.getPrototypeOf(LinkError)).apply(this,arguments))}return LinkError}(Error);t.LinkError=i},3104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.overrideBytesInBuffer=overrideBytesInBuffer;t.makeBuffer=makeBuffer;t.fromHexdump=fromHexdump;function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function concatUint8Arrays(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=t.reduce(function(e,t){return e+t.length},0);var i=new Uint8Array(r);var s=0;for(var o=0;o<t.length;o++){var a=t[o];if(a instanceof Uint8Array===false){throw new Error("arr must be of type Uint8Array")}i.set(a,s);s+=a.length}return i}function overrideBytesInBuffer(e,t,n,r){var i=e.slice(0,t);var s=e.slice(n,e.length);if(r.length===0){return concatUint8Arrays(i,s)}var o=Uint8Array.from(r);return concatUint8Arrays(i,o,s)}function makeBuffer(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=[].concat.apply([],t);return new Uint8Array(r).buffer}function fromHexdump(e){var t=e.split("\n");t=t.map(function(e){return e.trim()});var n=t.reduce(function(e,t){var n=t.split(" ");n.shift();n=n.filter(function(e){return e!==""});var r=n.map(function(e){return parseInt(e,16)});e.push.apply(e,_toConsumableArray(r));return e},[]);return Buffer.from(n)}},33416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameFromAst=codeFrameFromAst;t.codeFrameFromSource=codeFrameFromSource;var r=n(82925);function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}var i=5;function repeat(e,t){return Array(t).fill(e).join("")}function codeFrameFromAst(e,t){return codeFrameFromSource((0,r.print)(e),t)}function codeFrameFromSource(e,t){var n=t.start,r=t.end;var s=1;if(_typeof(r)==="object"){s=r.column-n.column+1}return e.split("\n").reduce(function(e,t,r){if(Math.abs(n.line-r)<i){e+=t+"\n"}if(r===n.line-1){e+=repeat(" ",n.column-1);e+=repeat("^",s);e+="\n"}return e},"")}},51971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeTransition=makeTransition;t.FSM=void 0;function _sliceIterator(e,t){var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done);r=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw s}}return n}function _slicedToArray(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return _sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}var n=Symbol("STOP");function makeTransition(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=n.n,i=r===void 0?1:r,s=n.allowedSeparator;return function(n){if(s){if(n.input[n.ptr]===s){if(e.test(n.input.substring(n.ptr-1,n.ptr))){return[n.currentState,1]}else{return[n.terminatingState,0]}}}if(e.test(n.input.substring(n.ptr,n.ptr+i))){return[t,i]}return false}}function combineTransitions(e){return function(){var t=false;var n=e[this.currentState]||[];for(var r=0;r<n.length;++r){t=n[r](this);if(t!==false){break}}return t||[this.terminatingState,0]}}var r=function(){function FSM(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:n;_classCallCheck(this,FSM);this.initialState=t;this.terminatingState=r;if(r===n||!e[r]){e[r]=[]}this.transitionFunction=combineTransitions.call(this,e)}_createClass(FSM,[{key:"run",value:function run(e){this.input=e;this.ptr=0;this.currentState=this.initialState;var t="";var n,r;while(this.currentState!==this.terminatingState&&this.ptr<this.input.length){var i=this.transitionFunction();var s=_slicedToArray(i,2);r=s[0];n=s[1];t+=this.input.substring(this.ptr,this.ptr+=n);this.currentState=r}return t}}]);return FSM}();t.FSM=r},67852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moduleContextFromModuleAST=moduleContextFromModuleAST;t.ModuleContext=void 0;var r=n(98093);function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}function moduleContextFromModuleAST(e){var t=new i;if(!(e.type==="Module")){throw new Error('m.type === "Module"'+" error: "+(undefined||"unknown"))}e.fields.forEach(function(e){switch(e.type){case"Start":{t.setStart(e.index);break}case"TypeInstruction":{t.addType(e);break}case"Func":{t.addFunction(e);break}case"Global":{t.defineGlobal(e);break}case"ModuleImport":{switch(e.descr.type){case"GlobalType":{t.importGlobal(e.descr.valtype,e.descr.mutability);break}case"Memory":{t.addMemory(e.descr.limits.min,e.descr.limits.max);break}case"FuncImportDescr":{t.importFunction(e.descr);break}case"Table":{break}default:throw new Error("Unsupported ModuleImport of type "+JSON.stringify(e.descr.type))}break}case"Memory":{t.addMemory(e.limits.min,e.limits.max);break}}});return t}var i=function(){function ModuleContext(){_classCallCheck(this,ModuleContext);this.funcs=[];this.funcsOffsetByIdentifier=[];this.types=[];this.globals=[];this.globalsOffsetByIdentifier=[];this.mems=[];this.locals=[];this.labels=[];this.return=[];this.debugName="unknown";this.start=null}_createClass(ModuleContext,[{key:"setStart",value:function setStart(e){this.start=e.value}},{key:"getStart",value:function getStart(){return this.start}},{key:"newContext",value:function newContext(e,t){this.locals=[];this.labels=[t];this.return=t;this.debugName=e}},{key:"addFunction",value:function addFunction(e){var t=e.signature||{},n=t.params,r=n===void 0?[]:n,i=t.results,s=i===void 0?[]:i;r=r.map(function(e){return e.valtype});this.funcs.push({args:r,result:s});if(typeof e.name!=="undefined"){this.funcsOffsetByIdentifier[e.name.value]=this.funcs.length-1}}},{key:"importFunction",value:function importFunction(e){if((0,r.isSignature)(e.signature)){var t=e.signature,n=t.params,i=t.results;n=n.map(function(e){return e.valtype});this.funcs.push({args:n,result:i})}else{if(!(0,r.isNumberLiteral)(e.signature)){throw new Error("isNumberLiteral(funcimport.signature)"+" error: "+(undefined||"unknown"))}var s=e.signature.value;if(!this.hasType(s)){throw new Error("this.hasType(typeId)"+" error: "+(undefined||"unknown"))}var o=this.getType(s);this.funcs.push({args:o.params.map(function(e){return e.valtype}),result:o.results})}if(typeof e.id!=="undefined"){this.funcsOffsetByIdentifier[e.id.value]=this.funcs.length-1}}},{key:"hasFunction",value:function hasFunction(e){return typeof this.getFunction(e)!=="undefined"}},{key:"getFunction",value:function getFunction(e){if(typeof e!=="number"){throw new Error("getFunction only supported for number index")}return this.funcs[e]}},{key:"getFunctionOffsetByIdentifier",value:function getFunctionOffsetByIdentifier(e){if(!(typeof e==="string")){throw new Error('typeof name === "string"'+" error: "+(undefined||"unknown"))}return this.funcsOffsetByIdentifier[e]}},{key:"addLabel",value:function addLabel(e){this.labels.unshift(e)}},{key:"hasLabel",value:function hasLabel(e){return this.labels.length>e&&e>=0}},{key:"getLabel",value:function getLabel(e){return this.labels[e]}},{key:"popLabel",value:function popLabel(){this.labels.shift()}},{key:"hasLocal",value:function hasLocal(e){return typeof this.getLocal(e)!=="undefined"}},{key:"getLocal",value:function getLocal(e){return this.locals[e]}},{key:"addLocal",value:function addLocal(e){this.locals.push(e)}},{key:"addType",value:function addType(e){if(!(e.functype.type==="Signature")){throw new Error('type.functype.type === "Signature"'+" error: "+(undefined||"unknown"))}this.types.push(e.functype)}},{key:"hasType",value:function hasType(e){return this.types[e]!==undefined}},{key:"getType",value:function getType(e){return this.types[e]}},{key:"hasGlobal",value:function hasGlobal(e){return this.globals.length>e&&e>=0}},{key:"getGlobal",value:function getGlobal(e){return this.globals[e].type}},{key:"getGlobalOffsetByIdentifier",value:function getGlobalOffsetByIdentifier(e){if(!(typeof e==="string")){throw new Error('typeof name === "string"'+" error: "+(undefined||"unknown"))}return this.globalsOffsetByIdentifier[e]}},{key:"defineGlobal",value:function defineGlobal(e){var t=e.globalType.valtype;var n=e.globalType.mutability;this.globals.push({type:t,mutability:n});if(typeof e.name!=="undefined"){this.globalsOffsetByIdentifier[e.name.value]=this.globals.length-1}}},{key:"importGlobal",value:function importGlobal(e,t){this.globals.push({type:e,mutability:t})}},{key:"isMutableGlobal",value:function isMutableGlobal(e){return this.globals[e].mutability==="var"}},{key:"isImmutableGlobal",value:function isImmutableGlobal(e){return this.globals[e].mutability==="const"}},{key:"hasMemory",value:function hasMemory(e){return this.mems.length>e&&e>=0}},{key:"addMemory",value:function addMemory(e,t){this.mems.push({min:e,max:t})}},{key:"getMemory",value:function getMemory(e){return this.mems[e]}}]);return ModuleContext}();t.ModuleContext=i},3930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"getSectionForNode",{enumerable:true,get:function get(){return r.getSectionForNode}});t.default=void 0;var r=n(55474);var i="illegal";var s=[0,97,115,109];var o=[1,0,0,0];function invertMap(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(e){return e};var n={};var r=Object.keys(e);for(var i=0,s=r.length;i<s;i++){n[t(e[r[i]])]=r[i]}return n}function createSymbolObject(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return{name:e,object:t,numberOfArgs:n}}function createSymbol(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return{name:e,numberOfArgs:t}}var a={func:96,result:64};var c={0:"Func",1:"Table",2:"Mem",3:"Global"};var u=invertMap(c);var l={127:"i32",126:"i64",125:"f32",124:"f64",123:"v128"};var f=invertMap(l);var p={112:"anyfunc"};var d=Object.assign({},l,{64:null,127:"i32",126:"i64",125:"f32",124:"f64"});var h={0:"const",1:"var"};var m=invertMap(h);var g={0:"func",1:"table",2:"mem",3:"global"};var y={custom:0,type:1,import:2,func:3,table:4,memory:5,global:6,export:7,start:8,element:9,code:10,data:11};var v={0:createSymbol("unreachable"),1:createSymbol("nop"),2:createSymbol("block"),3:createSymbol("loop"),4:createSymbol("if"),5:createSymbol("else"),6:i,7:i,8:i,9:i,10:i,11:createSymbol("end"),12:createSymbol("br",1),13:createSymbol("br_if",1),14:createSymbol("br_table"),15:createSymbol("return"),16:createSymbol("call",1),17:createSymbol("call_indirect",2),18:i,19:i,20:i,21:i,22:i,23:i,24:i,25:i,26:createSymbol("drop"),27:createSymbol("select"),28:i,29:i,30:i,31:i,32:createSymbol("get_local",1),33:createSymbol("set_local",1),34:createSymbol("tee_local",1),35:createSymbol("get_global",1),36:createSymbol("set_global",1),37:i,38:i,39:i,40:createSymbolObject("load","u32",1),41:createSymbolObject("load","u64",1),42:createSymbolObject("load","f32",1),43:createSymbolObject("load","f64",1),44:createSymbolObject("load8_s","u32",1),45:createSymbolObject("load8_u","u32",1),46:createSymbolObject("load16_s","u32",1),47:createSymbolObject("load16_u","u32",1),48:createSymbolObject("load8_s","u64",1),49:createSymbolObject("load8_u","u64",1),50:createSymbolObject("load16_s","u64",1),51:createSymbolObject("load16_u","u64",1),52:createSymbolObject("load32_s","u64",1),53:createSymbolObject("load32_u","u64",1),54:createSymbolObject("store","u32",1),55:createSymbolObject("store","u64",1),56:createSymbolObject("store","f32",1),57:createSymbolObject("store","f64",1),58:createSymbolObject("store8","u32",1),59:createSymbolObject("store16","u32",1),60:createSymbolObject("store8","u64",1),61:createSymbolObject("store16","u64",1),62:createSymbolObject("store32","u64",1),63:createSymbolObject("current_memory"),64:createSymbolObject("grow_memory"),65:createSymbolObject("const","i32",1),66:createSymbolObject("const","i64",1),67:createSymbolObject("const","f32",1),68:createSymbolObject("const","f64",1),69:createSymbolObject("eqz","i32"),70:createSymbolObject("eq","i32"),71:createSymbolObject("ne","i32"),72:createSymbolObject("lt_s","i32"),73:createSymbolObject("lt_u","i32"),74:createSymbolObject("gt_s","i32"),75:createSymbolObject("gt_u","i32"),76:createSymbolObject("le_s","i32"),77:createSymbolObject("le_u","i32"),78:createSymbolObject("ge_s","i32"),79:createSymbolObject("ge_u","i32"),80:createSymbolObject("eqz","i64"),81:createSymbolObject("eq","i64"),82:createSymbolObject("ne","i64"),83:createSymbolObject("lt_s","i64"),84:createSymbolObject("lt_u","i64"),85:createSymbolObject("gt_s","i64"),86:createSymbolObject("gt_u","i64"),87:createSymbolObject("le_s","i64"),88:createSymbolObject("le_u","i64"),89:createSymbolObject("ge_s","i64"),90:createSymbolObject("ge_u","i64"),91:createSymbolObject("eq","f32"),92:createSymbolObject("ne","f32"),93:createSymbolObject("lt","f32"),94:createSymbolObject("gt","f32"),95:createSymbolObject("le","f32"),96:createSymbolObject("ge","f32"),97:createSymbolObject("eq","f64"),98:createSymbolObject("ne","f64"),99:createSymbolObject("lt","f64"),100:createSymbolObject("gt","f64"),101:createSymbolObject("le","f64"),102:createSymbolObject("ge","f64"),103:createSymbolObject("clz","i32"),104:createSymbolObject("ctz","i32"),105:createSymbolObject("popcnt","i32"),106:createSymbolObject("add","i32"),107:createSymbolObject("sub","i32"),108:createSymbolObject("mul","i32"),109:createSymbolObject("div_s","i32"),110:createSymbolObject("div_u","i32"),111:createSymbolObject("rem_s","i32"),112:createSymbolObject("rem_u","i32"),113:createSymbolObject("and","i32"),114:createSymbolObject("or","i32"),115:createSymbolObject("xor","i32"),116:createSymbolObject("shl","i32"),117:createSymbolObject("shr_s","i32"),118:createSymbolObject("shr_u","i32"),119:createSymbolObject("rotl","i32"),120:createSymbolObject("rotr","i32"),121:createSymbolObject("clz","i64"),122:createSymbolObject("ctz","i64"),123:createSymbolObject("popcnt","i64"),124:createSymbolObject("add","i64"),125:createSymbolObject("sub","i64"),126:createSymbolObject("mul","i64"),127:createSymbolObject("div_s","i64"),128:createSymbolObject("div_u","i64"),129:createSymbolObject("rem_s","i64"),130:createSymbolObject("rem_u","i64"),131:createSymbolObject("and","i64"),132:createSymbolObject("or","i64"),133:createSymbolObject("xor","i64"),134:createSymbolObject("shl","i64"),135:createSymbolObject("shr_s","i64"),136:createSymbolObject("shr_u","i64"),137:createSymbolObject("rotl","i64"),138:createSymbolObject("rotr","i64"),139:createSymbolObject("abs","f32"),140:createSymbolObject("neg","f32"),141:createSymbolObject("ceil","f32"),142:createSymbolObject("floor","f32"),143:createSymbolObject("trunc","f32"),144:createSymbolObject("nearest","f32"),145:createSymbolObject("sqrt","f32"),146:createSymbolObject("add","f32"),147:createSymbolObject("sub","f32"),148:createSymbolObject("mul","f32"),149:createSymbolObject("div","f32"),150:createSymbolObject("min","f32"),151:createSymbolObject("max","f32"),152:createSymbolObject("copysign","f32"),153:createSymbolObject("abs","f64"),154:createSymbolObject("neg","f64"),155:createSymbolObject("ceil","f64"),156:createSymbolObject("floor","f64"),157:createSymbolObject("trunc","f64"),158:createSymbolObject("nearest","f64"),159:createSymbolObject("sqrt","f64"),160:createSymbolObject("add","f64"),161:createSymbolObject("sub","f64"),162:createSymbolObject("mul","f64"),163:createSymbolObject("div","f64"),164:createSymbolObject("min","f64"),165:createSymbolObject("max","f64"),166:createSymbolObject("copysign","f64"),167:createSymbolObject("wrap/i64","i32"),168:createSymbolObject("trunc_s/f32","i32"),169:createSymbolObject("trunc_u/f32","i32"),170:createSymbolObject("trunc_s/f64","i32"),171:createSymbolObject("trunc_u/f64","i32"),172:createSymbolObject("extend_s/i32","i64"),173:createSymbolObject("extend_u/i32","i64"),174:createSymbolObject("trunc_s/f32","i64"),175:createSymbolObject("trunc_u/f32","i64"),176:createSymbolObject("trunc_s/f64","i64"),177:createSymbolObject("trunc_u/f64","i64"),178:createSymbolObject("convert_s/i32","f32"),179:createSymbolObject("convert_u/i32","f32"),180:createSymbolObject("convert_s/i64","f32"),181:createSymbolObject("convert_u/i64","f32"),182:createSymbolObject("demote/f64","f32"),183:createSymbolObject("convert_s/i32","f64"),184:createSymbolObject("convert_u/i32","f64"),185:createSymbolObject("convert_s/i64","f64"),186:createSymbolObject("convert_u/i64","f64"),187:createSymbolObject("promote/f32","f64"),188:createSymbolObject("reinterpret/f32","i32"),189:createSymbolObject("reinterpret/f64","i64"),190:createSymbolObject("reinterpret/i32","f32"),191:createSymbolObject("reinterpret/i64","f64")};var _=invertMap(v,function(e){if(typeof e.object==="string"){return"".concat(e.object,".").concat(e.name)}return e.name});var b={symbolsByByte:v,sections:y,magicModuleHeader:s,moduleVersion:o,types:a,valtypes:l,exportTypes:c,blockTypes:d,tableTypes:p,globalTypes:h,importTypes:g,valtypesByString:f,globalTypesByString:m,exportTypesByName:u,symbolsByName:_};t.default=b},55474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSectionForNode=getSectionForNode;function getSectionForNode(e){switch(e.type){case"ModuleImport":return"import";case"CallInstruction":case"CallIndirectInstruction":case"Func":case"Instr":return"code";case"ModuleExport":return"export";case"Start":return"start";case"TypeInstruction":return"type";case"IndexInFuncSection":return"func";case"Global":return"global";default:return}}},97961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptySection=createEmptySection;var r=n(44166);var i=n(3104);var s=_interopRequireDefault(n(3930));var o=_interopRequireWildcard(n(98093));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function findLastSection(e,t){var n=s.default.sections[t];var r=e.body[0].metadata.sections;var i;var o=0;for(var a=0,c=r.length;a<c;a++){var u=r[a];if(u.section==="custom"){continue}var l=s.default.sections[u.section];if(n>o&&n<l){return i}o=l;i=u}return i}function createEmptySection(e,t,n){var s=findLastSection(e,n);var a,c;if(s==null||s.section==="custom"){a=8;c=a}else{a=s.startOffset+s.size.value+1;c=a}a+=1;var u={line:-1,column:a};var l={line:-1,column:a+1};var f=o.withLoc(o.numberLiteralFromRaw(1),l,u);var p={line:-1,column:l.column};var d={line:-1,column:l.column+1};var h=o.withLoc(o.numberLiteralFromRaw(0),d,p);var m=o.sectionMetadata(n,a,f,h);var g=(0,r.encodeNode)(m);t=(0,i.overrideBytesInBuffer)(t,a-1,c,g);if(_typeof(e.body[0].metadata)==="object"){e.body[0].metadata.sections.push(m);o.sortSectionMetadata(e.body[0])}var y=+g.length;var v=false;o.traverse(e,{SectionMetadata:function SectionMetadata(t){if(t.node.section===n){v=true;return}if(v===true){o.shiftSection(e,t.node,y)}}});return{uint8Buffer:t,sectionMetadata:m}}},77246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"resizeSectionByteSize",{enumerable:true,get:function get(){return r.resizeSectionByteSize}});Object.defineProperty(t,"resizeSectionVecSize",{enumerable:true,get:function get(){return r.resizeSectionVecSize}});Object.defineProperty(t,"createEmptySection",{enumerable:true,get:function get(){return i.createEmptySection}});Object.defineProperty(t,"removeSections",{enumerable:true,get:function get(){return s.removeSections}});var r=n(35369);var i=n(97961);var s=n(96744)},96744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeSections=removeSections;var r=n(98093);var i=n(3104);function removeSections(e,t,n){var s=(0,r.getSectionMetadatas)(e,n);if(s.length===0){throw new Error("Section metadata not found")}return s.reverse().reduce(function(t,s){var o=s.startOffset-1;var a=n==="start"?s.size.loc.end.column+1:s.startOffset+s.size.value+1;var c=-(a-o);var u=false;(0,r.traverse)(e,{SectionMetadata:function SectionMetadata(t){if(t.node.section===n){u=true;return t.remove()}if(u===true){(0,r.shiftSection)(e,t.node,c)}}});var l=[];return(0,i.overrideBytesInBuffer)(t,o,a,l)},t)}},35369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resizeSectionByteSize=resizeSectionByteSize;t.resizeSectionVecSize=resizeSectionVecSize;var r=n(44166);var i=n(98093);var s=n(3104);function resizeSectionByteSize(e,t,n,o){var a=(0,i.getSectionMetadata)(e,n);if(typeof a==="undefined"){throw new Error("Section metadata not found")}if(typeof a.size.loc==="undefined"){throw new Error("SectionMetadata "+n+" has no loc")}var c=a.size.loc.start.column;var u=a.size.loc.end.column;var l=a.size.value+o;var f=(0,r.encodeU32)(l);a.size.value=l;var p=u-c;var d=f.length;if(d!==p){var h=d-p;a.size.loc.end.column=c+d;o+=h;a.vectorOfSize.loc.start.column+=h;a.vectorOfSize.loc.end.column+=h}var m=false;(0,i.traverse)(e,{SectionMetadata:function SectionMetadata(t){if(t.node.section===n){m=true;return}if(m===true){(0,i.shiftSection)(e,t.node,o)}}});return(0,s.overrideBytesInBuffer)(t,c,u,f)}function resizeSectionVecSize(e,t,n,o){var a=(0,i.getSectionMetadata)(e,n);if(typeof a==="undefined"){throw new Error("Section metadata not found")}if(typeof a.vectorOfSize.loc==="undefined"){throw new Error("SectionMetadata "+n+" has no loc")}if(a.vectorOfSize.value===-1){return t}var c=a.vectorOfSize.loc.start.column;var u=a.vectorOfSize.loc.end.column;var l=a.vectorOfSize.value+o;var f=(0,r.encodeU32)(l);a.vectorOfSize.value=l;a.vectorOfSize.loc.end.column=c+f.length;return(0,s.overrideBytesInBuffer)(t,c,u,f)}},48:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeF32=encodeF32;t.encodeF64=encodeF64;t.decodeF32=decodeF32;t.decodeF64=decodeF64;t.DOUBLE_PRECISION_MANTISSA=t.SINGLE_PRECISION_MANTISSA=t.NUMBER_OF_BYTE_F64=t.NUMBER_OF_BYTE_F32=void 0;var r=n(3158);var i=4;t.NUMBER_OF_BYTE_F32=i;var s=8;t.NUMBER_OF_BYTE_F64=s;var o=23;t.SINGLE_PRECISION_MANTISSA=o;var a=52;t.DOUBLE_PRECISION_MANTISSA=a;function encodeF32(e){var t=[];(0,r.write)(t,e,0,true,o,i);return t}function encodeF64(e){var t=[];(0,r.write)(t,e,0,true,a,s);return t}function decodeF32(e){var t=Buffer.from(e);return(0,r.read)(t,0,true,o,i)}function decodeF64(e){var t=Buffer.from(e);return(0,r.read)(t,0,true,a,s)}},90683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extract=extract;t.inject=inject;t.getSign=getSign;t.highOrder=highOrder;function extract(e,t,n,r){if(n<0||n>32){throw new Error("Bad value for bitLength.")}if(r===undefined){r=0}else if(r!==0&&r!==1){throw new Error("Bad value for defaultBit.")}var i=r*255;var s=0;var o=t+n;var a=Math.floor(t/8);var c=t%8;var u=Math.floor(o/8);var l=o%8;if(l!==0){s=get(u)&(1<<l)-1}while(u>a){u--;s=s<<8|get(u)}s>>>=c;return s;function get(t){var n=e[t];return n===undefined?i:n}}function inject(e,t,n,r){if(n<0||n>32){throw new Error("Bad value for bitLength.")}var i=Math.floor((t+n-1)/8);if(t<0||i>=e.length){throw new Error("Index out of range.")}var s=Math.floor(t/8);var o=t%8;while(n>0){if(r&1){e[s]|=1<<o}else{e[s]&=~(1<<o)}r>>=1;n--;o=(o+1)%8;if(o===0){s++}}}function getSign(e){return e[e.length-1]>>>7}function highOrder(e,t){var n=t.length;var r=(e^1)*255;while(n>0&&t[n-1]===r){n--}if(n===0){return-1}var i=t[n-1];var s=n*8-1;for(var o=7;o>0;o--){if((i>>o&1)===e){break}s--}return s}},1779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.alloc=alloc;t.free=free;t.resize=resize;t.readInt=readInt;t.readUInt=readUInt;t.writeInt64=writeInt64;t.writeUInt64=writeUInt64;var n=[];var r=20;var i=-0x8000000000000000;var s=0x7ffffffffffffc00;var o=0xfffffffffffff800;var a=4294967296;var c=0x10000000000000000;function lowestBit(e){return e&-e}function isLossyToAdd(e,t){if(t===0){return false}var n=lowestBit(t);var r=e+n;if(r===e){return true}if(r-n!==e){return true}return false}function alloc(e){var t=n[e];if(t){n[e]=undefined}else{t=new Buffer(e)}t.fill(0);return t}function free(e){var t=e.length;if(t<r){n[t]=e}}function resize(e,t){if(t===e.length){return e}var n=alloc(t);e.copy(n);free(e);return n}function readInt(e){var t=e.length;var n=e[t-1]<128;var r=n?0:-1;var i=false;if(t<7){for(var s=t-1;s>=0;s--){r=r*256+e[s]}}else{for(var o=t-1;o>=0;o--){var a=e[o];r*=256;if(isLossyToAdd(r,a)){i=true}r+=a}}return{value:r,lossy:i}}function readUInt(e){var t=e.length;var n=0;var r=false;if(t<7){for(var i=t-1;i>=0;i--){n=n*256+e[i]}}else{for(var s=t-1;s>=0;s--){var o=e[s];n*=256;if(isLossyToAdd(n,o)){r=true}n+=o}}return{value:n,lossy:r}}function writeInt64(e,t){if(e<i||e>s){throw new Error("Value out of range.")}if(e<0){e+=c}writeUInt64(e,t)}function writeUInt64(e,t){if(e<0||e>o){throw new Error("Value out of range.")}var n=e%a;var r=Math.floor(e/a);t.writeUInt32LE(n,0);t.writeUInt32LE(r,4)}},39784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeInt64=decodeInt64;t.decodeUInt64=decodeUInt64;t.decodeInt32=decodeInt32;t.decodeUInt32=decodeUInt32;t.encodeU32=encodeU32;t.encodeI32=encodeI32;t.encodeI64=encodeI64;t.MAX_NUMBER_OF_BYTE_U64=t.MAX_NUMBER_OF_BYTE_U32=void 0;var r=_interopRequireDefault(n(83082));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=5;t.MAX_NUMBER_OF_BYTE_U32=i;var s=10;t.MAX_NUMBER_OF_BYTE_U64=s;function decodeInt64(e,t){return r.default.decodeInt64(e,t)}function decodeUInt64(e,t){return r.default.decodeUInt64(e,t)}function decodeInt32(e,t){return r.default.decodeInt32(e,t)}function decodeUInt32(e,t){return r.default.decodeUInt32(e,t)}function encodeU32(e){return r.default.encodeUInt32(e)}function encodeI32(e){return r.default.encodeInt32(e)}function encodeI64(e){return r.default.encodeInt64(e)}},83082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(n(11174));var i=_interopRequireWildcard(n(90683));var s=_interopRequireWildcard(n(1779));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=-2147483648;var a=2147483647;var c=4294967295;function signedBitCount(e){return i.highOrder(i.getSign(e)^1,e)+2}function unsignedBitCount(e){var t=i.highOrder(1,e)+1;return t?t:1}function encodeBufferCommon(e,t){var n;var r;if(t){n=i.getSign(e);r=signedBitCount(e)}else{n=0;r=unsignedBitCount(e)}var o=Math.ceil(r/7);var a=s.alloc(o);for(var c=0;c<o;c++){var u=i.extract(e,c*7,7,n);a[c]=u|128}a[o-1]&=127;return a}function encodedLength(e,t){var n=0;while(e[t+n]>=128){n++}n++;if(t+n>e.length){}return n}function decodeBufferCommon(e,t,n){t=t===undefined?0:t;var r=encodedLength(e,t);var o=r*7;var a=Math.ceil(o/8);var c=s.alloc(a);var u=0;while(r>0){i.inject(c,u,7,e[t]);u+=7;t++;r--}var l;var f;if(n){var p=c[a-1];var d=u%8;if(d!==0){var h=32-d;p=c[a-1]=p<<h>>h&255}l=p>>7;f=l*255}else{l=0;f=0}while(a>1&&c[a-1]===f&&(!n||c[a-2]>>7===l)){a--}c=s.resize(c,a);return{value:c,nextIndex:t}}function encodeIntBuffer(e){return encodeBufferCommon(e,true)}function decodeIntBuffer(e,t){return decodeBufferCommon(e,t,true)}function encodeInt32(e){var t=s.alloc(4);t.writeInt32LE(e,0);var n=encodeIntBuffer(t);s.free(t);return n}function decodeInt32(e,t){var n=decodeIntBuffer(e,t);var r=s.readInt(n.value);var i=r.value;s.free(n.value);if(i<o||i>a){throw new Error("integer too large")}return{value:i,nextIndex:n.nextIndex}}function encodeInt64(e){var t=s.alloc(8);s.writeInt64(e,t);var n=encodeIntBuffer(t);s.free(t);return n}function decodeInt64(e,t){var n=decodeIntBuffer(e,t);var i=r.default.fromBytesLE(n.value,false);s.free(n.value);return{value:i,nextIndex:n.nextIndex,lossy:false}}function encodeUIntBuffer(e){return encodeBufferCommon(e,false)}function decodeUIntBuffer(e,t){return decodeBufferCommon(e,t,false)}function encodeUInt32(e){var t=s.alloc(4);t.writeUInt32LE(e,0);var n=encodeUIntBuffer(t);s.free(t);return n}function decodeUInt32(e,t){var n=decodeUIntBuffer(e,t);var r=s.readUInt(n.value);var i=r.value;s.free(n.value);if(i>c){throw new Error("integer too large")}return{value:i,nextIndex:n.nextIndex}}function encodeUInt64(e){var t=s.alloc(8);s.writeUInt64(e,t);var n=encodeUIntBuffer(t);s.free(t);return n}function decodeUInt64(e,t){var n=decodeUIntBuffer(e,t);var i=r.default.fromBytesLE(n.value,true);s.free(n.value);return{value:i,nextIndex:n.nextIndex,lossy:false}}var u={decodeInt32:decodeInt32,decodeInt64:decodeInt64,decodeIntBuffer:decodeIntBuffer,decodeUInt32:decodeUInt32,decodeUInt64:decodeUInt64,decodeUIntBuffer:decodeUIntBuffer,encodeInt32:encodeInt32,encodeInt64:encodeInt64,encodeIntBuffer:encodeIntBuffer,encodeUInt32:encodeUInt32,encodeUInt64:encodeUInt64,encodeUIntBuffer:encodeUIntBuffer};t.default=u},85589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decode=decode;function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function _toArray(e){return Array.isArray(e)?e:Array.from(e)}function con(e){if((e&192)===128){return e&63}else{throw new Error("invalid UTF-8 encoding")}}function code(e,t){if(t<e||55296<=t&&t<57344||t>=65536){throw new Error("invalid UTF-8 encoding")}else{return t}}function decode(e){return _decode(e).map(function(e){return String.fromCharCode(e)}).join("")}function _decode(e){if(e.length===0){return[]}{var t=_toArray(e),n=t[0],r=t.slice(1);if(n<128){return[code(0,n)].concat(_toConsumableArray(_decode(r)))}if(n<192){throw new Error("invalid UTF-8 encoding")}}{var i=_toArray(e),s=i[0],o=i[1],a=i.slice(2);if(s<224){return[code(128,((s&31)<<6)+con(o))].concat(_toConsumableArray(_decode(a)))}}{var c=_toArray(e),u=c[0],l=c[1],f=c[2],p=c.slice(3);if(u<240){return[code(2048,((u&15)<<12)+(con(l)<<6)+con(f))].concat(_toConsumableArray(_decode(p)))}}{var d=_toArray(e),h=d[0],m=d[1],g=d[2],y=d[3],v=d.slice(4);if(h<248){return[code(65536,(((h&7)<<18)+con(m)<<12)+(con(g)<<6)+con(y))].concat(_toConsumableArray(_decode(v)))}}throw new Error("invalid UTF-8 encoding")}},56264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encode=encode;function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function _toArray(e){return Array.isArray(e)?e:Array.from(e)}function con(e){return 128|e&63}function encode(e){var t=e.split("").map(function(e){return e.charCodeAt(0)});return _encode(t)}function _encode(e){if(e.length===0){return[]}var t=_toArray(e),n=t[0],r=t.slice(1);if(n<0){throw new Error("utf8")}if(n<128){return[n].concat(_toConsumableArray(_encode(r)))}if(n<2048){return[192|n>>>6,con(n)].concat(_toConsumableArray(_encode(r)))}if(n<65536){return[224|n>>>12,con(n>>>6),con(n)].concat(_toConsumableArray(_encode(r)))}if(n<1114112){return[240|n>>>18,con(n>>>12),con(n>>>6),con(n)].concat(_toConsumableArray(_encode(r)))}throw new Error("utf8")}},38040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"decode",{enumerable:true,get:function get(){return r.decode}});Object.defineProperty(t,"encode",{enumerable:true,get:function get(){return i.encode}});var r=n(85589);var i=n(56264)},17467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyOperations=applyOperations;var r=n(44166);var i=n(77445);var s=n(98093);var o=n(77246);var a=n(3104);var c=n(3930);function _sliceIterator(e,t){var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done);r=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw s}}return n}function _slicedToArray(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return _sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}function shiftLocNodeByDelta(e,t){(0,s.assertHasLoc)(e);e.loc.start.column+=t;e.loc.end.column+=t}function applyUpdate(e,t,n){var o=_slicedToArray(n,2),u=o[0],l=o[1];var f=0;(0,s.assertHasLoc)(u);var p=(0,c.getSectionForNode)(l);var d=(0,r.encodeNode)(l);t=(0,a.overrideBytesInBuffer)(t,u.loc.start.column,u.loc.end.column,d);if(p==="code"){(0,s.traverse)(e,{Func:function Func(e){var n=e.node;var o=n.body.find(function(e){return e===l})!==undefined;if(o===true){(0,s.assertHasLoc)(n);var c=(0,r.encodeNode)(u).length;var f=d.length-c;if(f!==0){var p=n.metadata.bodySize+f;var h=(0,i.encodeU32)(p);var m=n.loc.start.column;var g=m+1;t=(0,a.overrideBytesInBuffer)(t,m,g,h)}}}})}var h=d.length-(u.loc.end.column-u.loc.start.column);l.loc={start:{line:-1,column:-1},end:{line:-1,column:-1}};l.loc.start.column=u.loc.start.column;l.loc.end.column=u.loc.start.column+d.length;return{uint8Buffer:t,deltaBytes:h,deltaElements:f}}function applyDelete(e,t,n){var r=-1;(0,s.assertHasLoc)(n);var i=(0,c.getSectionForNode)(n);if(i==="start"){var u=(0,s.getSectionMetadata)(e,"start");t=(0,o.removeSections)(e,t,"start");var l=-(u.size.value+1);return{uint8Buffer:t,deltaBytes:l,deltaElements:r}}var f=[];t=(0,a.overrideBytesInBuffer)(t,n.loc.start.column,n.loc.end.column,f);var p=-(n.loc.end.column-n.loc.start.column);return{uint8Buffer:t,deltaBytes:p,deltaElements:r}}function applyAdd(e,t,n){var i=+1;var u=(0,c.getSectionForNode)(n);var l=(0,s.getSectionMetadata)(e,u);if(typeof l==="undefined"){var f=(0,o.createEmptySection)(e,t,u);t=f.uint8Buffer;l=f.sectionMetadata}if((0,s.isFunc)(n)){var p=n.body;if(p.length===0||p[p.length-1].id!=="end"){throw new Error("expressions must be ended")}}if((0,s.isGlobal)(n)){var p=n.init;if(p.length===0||p[p.length-1].id!=="end"){throw new Error("expressions must be ended")}}var d=(0,r.encodeNode)(n);var h=(0,s.getEndOfSection)(l);var m=h;var g=d.length;t=(0,a.overrideBytesInBuffer)(t,h,m,d);n.loc={start:{line:-1,column:h},end:{line:-1,column:h+g}};if(n.type==="Func"){var y=d[0];n.metadata={bodySize:y}}if(n.type!=="IndexInFuncSection"){(0,s.orderedInsertNode)(e.body[0],n)}return{uint8Buffer:t,deltaBytes:g,deltaElements:i}}function applyOperations(e,t,n){n.forEach(function(r){var i;var s;switch(r.kind){case"update":i=applyUpdate(e,t,[r.oldNode,r.node]);s=(0,c.getSectionForNode)(r.node);break;case"delete":i=applyDelete(e,t,r.node);s=(0,c.getSectionForNode)(r.node);break;case"add":i=applyAdd(e,t,r.node);s=(0,c.getSectionForNode)(r.node);break;default:throw new Error("Unknown operation")}if(i.deltaElements!==0&&s!=="start"){var a=i.uint8Buffer.length;i.uint8Buffer=(0,o.resizeSectionVecSize)(e,i.uint8Buffer,s,i.deltaElements);i.deltaBytes+=i.uint8Buffer.length-a}if(i.deltaBytes!==0&&s!=="start"){var u=i.uint8Buffer.length;i.uint8Buffer=(0,o.resizeSectionByteSize)(e,i.uint8Buffer,s,i.deltaBytes);i.deltaBytes+=i.uint8Buffer.length-u}if(i.deltaBytes!==0){n.forEach(function(e){switch(e.kind){case"update":shiftLocNodeByDelta(e.oldNode,i.deltaBytes);break;case"delete":shiftLocNodeByDelta(e.node,i.deltaBytes);break}})}t=i.uint8Buffer});return t}},226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.edit=edit;t.editWithAST=editWithAST;t.add=add;t.addWithAST=addWithAST;var r=n(73432);var i=n(98093);var s=n(70797);var o=n(53620);var a=_interopRequireWildcard(n(3930));var c=n(17467);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function hashNode(e){return JSON.stringify(e)}function preprocess(e){var t=(0,o.shrinkPaddedLEB128)(new Uint8Array(e));return t.buffer}function sortBySectionOrder(e){var t=new Map;var n=true;var r=false;var i=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){var c=o.value;t.set(c,t.size)}}catch(e){r=true;i=e}finally{try{if(!n&&s.return!=null){s.return()}}finally{if(r){throw i}}}e.sort(function(e,n){var r=(0,a.getSectionForNode)(e);var i=(0,a.getSectionForNode)(n);var s=a.default.sections[r];var o=a.default.sections[i];if(typeof s!=="number"||typeof o!=="number"){throw new Error("Section id not found")}if(s===o){return t.get(e)-t.get(n)}return s-o})}function edit(e,t){e=preprocess(e);var n=(0,r.decode)(e);return editWithAST(n,e,t)}function editWithAST(e,t,n){var r=[];var o=new Uint8Array(t);var a;function before(e,t){a=(0,s.cloneNode)(t.node)}function after(e,t){if(t.node._deleted===true){r.push({kind:"delete",node:t.node})}else if(hashNode(a)!==hashNode(t.node)){r.push({kind:"update",oldNode:a,node:t.node})}}(0,i.traverse)(e,n,before,after);o=(0,c.applyOperations)(e,o,r);return o.buffer}function add(e,t){e=preprocess(e);var n=(0,r.decode)(e);return addWithAST(n,e,t)}function addWithAST(e,t,n){sortBySectionOrder(n);var r=new Uint8Array(t);var i=n.map(function(e){return{kind:"add",node:e}});r=(0,c.applyOperations)(e,r,i);return r.buffer}},77445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeVersion=encodeVersion;t.encodeHeader=encodeHeader;t.encodeU32=encodeU32;t.encodeI32=encodeI32;t.encodeI64=encodeI64;t.encodeVec=encodeVec;t.encodeValtype=encodeValtype;t.encodeMutability=encodeMutability;t.encodeUTF8Vec=encodeUTF8Vec;t.encodeLimits=encodeLimits;t.encodeModuleImport=encodeModuleImport;t.encodeSectionMetadata=encodeSectionMetadata;t.encodeCallInstruction=encodeCallInstruction;t.encodeCallIndirectInstruction=encodeCallIndirectInstruction;t.encodeModuleExport=encodeModuleExport;t.encodeTypeInstruction=encodeTypeInstruction;t.encodeInstr=encodeInstr;t.encodeStringLiteral=encodeStringLiteral;t.encodeGlobal=encodeGlobal;t.encodeFuncBody=encodeFuncBody;t.encodeIndexInFuncSection=encodeIndexInFuncSection;t.encodeElem=encodeElem;var r=_interopRequireWildcard(n(39784));var i=_interopRequireWildcard(n(48));var s=_interopRequireWildcard(n(38040));var o=_interopRequireDefault(n(3930));var a=n(44166);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function assertNotIdentifierNode(e){if(e.type==="Identifier"){throw new Error("Unsupported node Identifier")}}function encodeVersion(e){var t=o.default.moduleVersion;t[0]=e;return t}function encodeHeader(){return o.default.magicModuleHeader}function encodeU32(e){var t=new Uint8Array(r.encodeU32(e));var n=_toConsumableArray(t);return n}function encodeI32(e){var t=new Uint8Array(r.encodeI32(e));var n=_toConsumableArray(t);return n}function encodeI64(e){var t=new Uint8Array(r.encodeI64(e));var n=_toConsumableArray(t);return n}function encodeVec(e){var t=encodeU32(e.length);return _toConsumableArray(t).concat(_toConsumableArray(e))}function encodeValtype(e){var t=o.default.valtypesByString[e];if(typeof t==="undefined"){throw new Error("Unknown valtype: "+e)}return parseInt(t,10)}function encodeMutability(e){var t=o.default.globalTypesByString[e];if(typeof t==="undefined"){throw new Error("Unknown mutability: "+e)}return parseInt(t,10)}function encodeUTF8Vec(e){return encodeVec(s.encode(e))}function encodeLimits(e){var t=[];if(typeof e.max==="number"){t.push(1);t.push.apply(t,_toConsumableArray(encodeU32(e.min)));t.push.apply(t,_toConsumableArray(encodeU32(e.max)))}else{t.push(0);t.push.apply(t,_toConsumableArray(encodeU32(e.min)))}return t}function encodeModuleImport(e){var t=[];t.push.apply(t,_toConsumableArray(encodeUTF8Vec(e.module)));t.push.apply(t,_toConsumableArray(encodeUTF8Vec(e.name)));switch(e.descr.type){case"GlobalType":{t.push(3);t.push(encodeValtype(e.descr.valtype));t.push(encodeMutability(e.descr.mutability));break}case"Memory":{t.push(2);t.push.apply(t,_toConsumableArray(encodeLimits(e.descr.limits)));break}case"Table":{t.push(1);t.push(112);t.push.apply(t,_toConsumableArray(encodeLimits(e.descr.limits)));break}case"FuncImportDescr":{t.push(0);assertNotIdentifierNode(e.descr.id);t.push.apply(t,_toConsumableArray(encodeU32(e.descr.id.value)));break}default:throw new Error("Unsupport operation: encode module import of type: "+e.descr.type)}return t}function encodeSectionMetadata(e){var t=[];var n=o.default.sections[e.section];if(typeof n==="undefined"){throw new Error("Unknown section: "+e.section)}if(e.section==="start"){throw new Error("Unsupported section encoding of type start")}t.push(n);t.push.apply(t,_toConsumableArray(encodeU32(e.size.value)));t.push.apply(t,_toConsumableArray(encodeU32(e.vectorOfSize.value)));return t}function encodeCallInstruction(e){var t=[];assertNotIdentifierNode(e.index);t.push(16);t.push.apply(t,_toConsumableArray(encodeU32(e.index.value)));return t}function encodeCallIndirectInstruction(e){var t=[];assertNotIdentifierNode(e.index);t.push(17);t.push.apply(t,_toConsumableArray(encodeU32(e.index.value)));t.push(0);return t}function encodeModuleExport(e){var t=[];assertNotIdentifierNode(e.descr.id);var n=o.default.exportTypesByName[e.descr.exportType];if(typeof n==="undefined"){throw new Error("Unknown export of type: "+e.descr.exportType)}var r=parseInt(n,10);t.push.apply(t,_toConsumableArray(encodeUTF8Vec(e.name)));t.push(r);t.push.apply(t,_toConsumableArray(encodeU32(e.descr.id.value)));return t}function encodeTypeInstruction(e){var t=[96];var n=e.functype.params.map(function(e){return e.valtype}).map(encodeValtype);var r=e.functype.results.map(encodeValtype);t.push.apply(t,_toConsumableArray(encodeVec(n)));t.push.apply(t,_toConsumableArray(encodeVec(r)));return t}function encodeInstr(e){var t=[];var n=e.id;if(typeof e.object==="string"){n="".concat(e.object,".").concat(String(e.id))}var r=o.default.symbolsByName[n];if(typeof r==="undefined"){throw new Error("encodeInstr: unknown instruction "+JSON.stringify(n))}var s=parseInt(r,10);t.push(s);if(e.args){e.args.forEach(function(n){var r=encodeU32;if(e.object==="i32"){r=encodeI32}if(e.object==="i64"){r=encodeI64}if(e.object==="f32"){r=i.encodeF32}if(e.object==="f64"){r=i.encodeF64}if(n.type==="NumberLiteral"||n.type==="FloatLiteral"||n.type==="LongNumberLiteral"){t.push.apply(t,_toConsumableArray(r(n.value)))}else{throw new Error("Unsupported instruction argument encoding "+JSON.stringify(n.type))}})}return t}function encodeExpr(e){var t=[];e.forEach(function(e){var n=(0,a.encodeNode)(e);t.push.apply(t,_toConsumableArray(n))});return t}function encodeStringLiteral(e){return encodeUTF8Vec(e.value)}function encodeGlobal(e){var t=[];var n=e.globalType,r=n.valtype,i=n.mutability;t.push(encodeValtype(r));t.push(encodeMutability(i));t.push.apply(t,_toConsumableArray(encodeExpr(e.init)));return t}function encodeFuncBody(e){var t=[];t.push(-1);var n=encodeVec([]);t.push.apply(t,_toConsumableArray(n));var r=encodeExpr(e.body);t[0]=r.length+n.length;t.push.apply(t,_toConsumableArray(r));return t}function encodeIndexInFuncSection(e){assertNotIdentifierNode(e.index);return encodeU32(e.index.value)}function encodeElem(e){var t=[];assertNotIdentifierNode(e.table);t.push.apply(t,_toConsumableArray(encodeU32(e.table.value)));t.push.apply(t,_toConsumableArray(encodeExpr(e.offset)));var n=e.funcs.reduce(function(e,t){return _toConsumableArray(e).concat(_toConsumableArray(encodeU32(t.value)))},[]);t.push.apply(t,_toConsumableArray(encodeVec(n)));return t}},44166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeNode=encodeNode;t.encodeU32=void 0;var r=_interopRequireWildcard(n(77445));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function encodeNode(e){switch(e.type){case"ModuleImport":return r.encodeModuleImport(e);case"SectionMetadata":return r.encodeSectionMetadata(e);case"CallInstruction":return r.encodeCallInstruction(e);case"CallIndirectInstruction":return r.encodeCallIndirectInstruction(e);case"TypeInstruction":return r.encodeTypeInstruction(e);case"Instr":return r.encodeInstr(e);case"ModuleExport":return r.encodeModuleExport(e);case"Global":return r.encodeGlobal(e);case"Func":return r.encodeFuncBody(e);case"IndexInFuncSection":return r.encodeIndexInFuncSection(e);case"StringLiteral":return r.encodeStringLiteral(e);case"Elem":return r.encodeElem(e);default:throw new Error("Unsupported encoding for node of type: "+JSON.stringify(e.type))}}var i=r.encodeU32;t.encodeU32=i},53620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shrinkPaddedLEB128=shrinkPaddedLEB128;var r=n(73432);var i=n(25688);function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(e,t){if(t&&(_typeof(t)==="object"||typeof t==="function")){return t}if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var s=function(e){_inherits(OptimizerError,e);function OptimizerError(e,t){var n;_classCallCheck(this,OptimizerError);n=_possibleConstructorReturn(this,(OptimizerError.__proto__||Object.getPrototypeOf(OptimizerError)).call(this,"Error while optimizing: "+e+": "+t.message));n.stack=t.stack;return n}return OptimizerError}(Error);var o={ignoreCodeSection:true,ignoreDataSection:true};function shrinkPaddedLEB128(e){try{var t=(0,r.decode)(e.buffer,o);return(0,i.shrinkPaddedLEB128)(t,e)}catch(e){throw new s("shrinkPaddedLEB128",e)}}},25688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shrinkPaddedLEB128=shrinkPaddedLEB128;var r=n(98093);var i=n(77445);var s=n(3104);function shiftFollowingSections(e,t,n){var i=t.section;var s=false;(0,r.traverse)(e,{SectionMetadata:function SectionMetadata(t){if(t.node.section===i){s=true;return}if(s===true){(0,r.shiftSection)(e,t.node,n)}}})}function shrinkPaddedLEB128(e,t){(0,r.traverse)(e,{SectionMetadata:function SectionMetadata(n){var r=n.node;{var o=(0,i.encodeU32)(r.size.value);var a=o.length;var c=r.size.loc.start.column;var u=r.size.loc.end.column;var l=u-c;if(a!==l){var f=l-a;t=(0,s.overrideBytesInBuffer)(t,c,u,o);shiftFollowingSections(e,r,-f)}}}});return t}},13975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decode=decode;var r=n(35866);var i=_interopRequireWildcard(n(48));var s=_interopRequireWildcard(n(38040));var o=_interopRequireWildcard(n(98093));var a=n(39784);var c=_interopRequireDefault(n(3930));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function toHex(e){return"0x"+Number(e).toString(16)}function byteArrayEq(e,t){if(e.length!==t.length){return false}for(var n=0;n<e.length;n++){if(e[n]!==t[n]){return false}}return true}function decode(e,t){var n=new Uint8Array(e);var u=o.getUniqueNameGenerator();var l=0;function getPosition(){return{line:-1,column:l}}function dump(e,n){if(t.dump===false)return;var r="\t\t\t\t\t\t\t\t\t\t";var i="";if(e.length<5){i=e.map(toHex).join(" ")}else{i="..."}console.log(toHex(l)+":\t",i,r,";",n)}function dumpSep(e){if(t.dump===false)return;console.log(";",e)}var f={elementsInFuncSection:[],elementsInExportSection:[],elementsInCodeSection:[],memoriesInModule:[],typesInModule:[],functionsInModule:[],tablesInModule:[],globalsInModule:[]};function isEOF(){return l>=n.length}function eatBytes(e){l=l+e}function readBytesAtOffset(e,t){var r=[];for(var i=0;i<t;i++){r.push(n[e+i])}return r}function readBytes(e){return readBytesAtOffset(l,e)}function readF64(){var e=readBytes(i.NUMBER_OF_BYTE_F64);var t=i.decodeF64(e);if(Math.sign(t)*t===Infinity){return{value:Math.sign(t),inf:true,nextIndex:i.NUMBER_OF_BYTE_F64}}if(isNaN(t)){var n=e[e.length-1]>>7?-1:1;var r=0;for(var s=0;s<e.length-2;++s){r+=e[s]*Math.pow(256,s)}r+=e[e.length-2]%16*Math.pow(256,e.length-2);return{value:n*r,nan:true,nextIndex:i.NUMBER_OF_BYTE_F64}}return{value:t,nextIndex:i.NUMBER_OF_BYTE_F64}}function readF32(){var e=readBytes(i.NUMBER_OF_BYTE_F32);var t=i.decodeF32(e);if(Math.sign(t)*t===Infinity){return{value:Math.sign(t),inf:true,nextIndex:i.NUMBER_OF_BYTE_F32}}if(isNaN(t)){var n=e[e.length-1]>>7?-1:1;var r=0;for(var s=0;s<e.length-2;++s){r+=e[s]*Math.pow(256,s)}r+=e[e.length-2]%128*Math.pow(256,e.length-2);return{value:n*r,nan:true,nextIndex:i.NUMBER_OF_BYTE_F32}}return{value:t,nextIndex:i.NUMBER_OF_BYTE_F32}}function readUTF8String(){var e=readU32();var t=e.value;dump([t],"string length");var n=readBytesAtOffset(l+e.nextIndex,t);var r=s.decode(n);return{value:r,nextIndex:t+e.nextIndex}}function readU32(){var e=readBytes(a.MAX_NUMBER_OF_BYTE_U32);var t=Buffer.from(e);return(0,a.decodeUInt32)(t)}function readVaruint32(){var e=readBytes(4);var t=Buffer.from(e);return(0,a.decodeUInt32)(t)}function readVaruint7(){var e=readBytes(1);var t=Buffer.from(e);return(0,a.decodeUInt32)(t)}function read32(){var e=readBytes(a.MAX_NUMBER_OF_BYTE_U32);var t=Buffer.from(e);return(0,a.decodeInt32)(t)}function read64(){var e=readBytes(a.MAX_NUMBER_OF_BYTE_U64);var t=Buffer.from(e);return(0,a.decodeInt64)(t)}function readU64(){var e=readBytes(a.MAX_NUMBER_OF_BYTE_U64);var t=Buffer.from(e);return(0,a.decodeUInt64)(t)}function readByte(){return readBytes(1)[0]}function parseModuleHeader(){if(isEOF()===true||l+4>n.length){throw new Error("unexpected end")}var e=readBytes(4);if(byteArrayEq(c.default.magicModuleHeader,e)===false){throw new r.CompileError("magic header not detected")}dump(e,"wasm magic header");eatBytes(4)}function parseVersion(){if(isEOF()===true||l+4>n.length){throw new Error("unexpected end")}var e=readBytes(4);if(byteArrayEq(c.default.moduleVersion,e)===false){throw new r.CompileError("unknown binary version")}dump(e,"wasm version");eatBytes(4)}function parseVec(e){var t=readU32();var n=t.value;eatBytes(t.nextIndex);dump([n],"number");if(n===0){return[]}var i=[];for(var s=0;s<n;s++){var o=readByte();eatBytes(1);var a=e(o);dump([o],a);if(typeof a==="undefined"){throw new r.CompileError("Internal failure: parseVec could not cast the value")}i.push(a)}return i}function parseTypeSection(e){var t=[];dump([e],"num types");for(var n=0;n<e;n++){var r=getPosition();dumpSep("type "+n);var i=readByte();eatBytes(1);if(i==c.default.types.func){dump([i],"func");var s=parseVec(function(e){return c.default.valtypes[e]});var a=s.map(function(e){return o.funcParam(e)});var u=parseVec(function(e){return c.default.valtypes[e]});t.push(function(){var e=getPosition();return o.withLoc(o.typeInstruction(undefined,o.signature(a,u)),e,r)}());f.typesInModule.push({params:a,result:u})}else{throw new Error("Unsupported type: "+toHex(i))}}return t}function parseImportSection(e){var t=[];for(var n=0;n<e;n++){dumpSep("import header "+n);var i=getPosition();var s=readUTF8String();eatBytes(s.nextIndex);dump([],"module name (".concat(s.value,")"));var a=readUTF8String();eatBytes(a.nextIndex);dump([],"name (".concat(a.value,")"));var l=readByte();eatBytes(1);var p=c.default.importTypes[l];dump([l],"import kind");if(typeof p==="undefined"){throw new r.CompileError("Unknown import description type: "+toHex(l))}var d=void 0;if(p==="func"){var h=readU32();var m=h.value;eatBytes(h.nextIndex);dump([m],"type index");var g=f.typesInModule[m];if(typeof g==="undefined"){throw new r.CompileError("function signature not found (".concat(m,")"))}var y=u("func");d=o.funcImportDescr(y,o.signature(g.params,g.result));f.functionsInModule.push({id:o.identifier(a.value),signature:g,isExternal:true})}else if(p==="global"){d=parseGlobalType();var v=o.global(d,[]);f.globalsInModule.push(v)}else if(p==="table"){d=parseTableType(n)}else if(p==="mem"){var _=parseMemoryType(0);f.memoriesInModule.push(_);d=_}else{throw new r.CompileError("Unsupported import of type: "+p)}t.push(function(){var e=getPosition();return o.withLoc(o.moduleImport(s.value,a.value,d),e,i)}())}return t}function parseFuncSection(e){dump([e],"num funcs");for(var t=0;t<e;t++){var n=readU32();var i=n.value;eatBytes(n.nextIndex);dump([i],"type index");var s=f.typesInModule[i];if(typeof s==="undefined"){throw new r.CompileError("function signature not found (".concat(i,")"))}var a=o.withRaw(o.identifier(u("func")),"");f.functionsInModule.push({id:a,signature:s,isExternal:false})}}function parseExportSection(e){dump([e],"num exports");for(var t=0;t<e;t++){var n=getPosition();var i=readUTF8String();eatBytes(i.nextIndex);dump([],"export name (".concat(i.value,")"));var s=readByte();eatBytes(1);dump([s],"export kind");var a=readU32();var u=a.value;eatBytes(a.nextIndex);dump([u],"export index");var l=void 0,p=void 0;if(c.default.exportTypes[s]==="Func"){var d=f.functionsInModule[u];if(typeof d==="undefined"){throw new r.CompileError("unknown function (".concat(u,")"))}l=o.numberLiteralFromRaw(u,String(u));p=d.signature}else if(c.default.exportTypes[s]==="Table"){var h=f.tablesInModule[u];if(typeof h==="undefined"){throw new r.CompileError("unknown table ".concat(u))}l=o.numberLiteralFromRaw(u,String(u));p=null}else if(c.default.exportTypes[s]==="Mem"){var m=f.memoriesInModule[u];if(typeof m==="undefined"){throw new r.CompileError("unknown memory ".concat(u))}l=o.numberLiteralFromRaw(u,String(u));p=null}else if(c.default.exportTypes[s]==="Global"){var g=f.globalsInModule[u];if(typeof g==="undefined"){throw new r.CompileError("unknown global ".concat(u))}l=o.numberLiteralFromRaw(u,String(u));p=null}else{console.warn("Unsupported export type: "+toHex(s));return}var y=getPosition();f.elementsInExportSection.push({name:i.value,type:c.default.exportTypes[s],signature:p,id:l,index:u,endLoc:y,startLoc:n})}}function parseCodeSection(e){dump([e],"number functions");for(var t=0;t<e;t++){var n=getPosition();dumpSep("function body "+t);var i=readU32();eatBytes(i.nextIndex);dump([i.value],"function body size");var s=[];var a=readU32();var u=a.value;eatBytes(a.nextIndex);dump([u],"num locals");var l=[];for(var p=0;p<u;p++){var d=getPosition();var h=readU32();var m=h.value;eatBytes(h.nextIndex);dump([m],"num local");var g=readByte();eatBytes(1);var y=c.default.valtypes[g];var v=[];for(var _=0;_<m;_++){v.push(o.valtypeLiteral(y))}var b=function(){var e=getPosition();return o.withLoc(o.instruction("local",v),e,d)}();l.push(b);dump([g],y);if(typeof y==="undefined"){throw new r.CompileError("Unexpected valtype: "+toHex(g))}}s.push.apply(s,l);parseInstructionBlock(s);var E=getPosition();f.elementsInCodeSection.push({code:s,locals:l,endLoc:E,startLoc:n,bodySize:i.value})}}function parseInstructionBlock(e){while(true){var t=getPosition();var n=false;var i=readByte();eatBytes(1);if(i===254){throw new r.CompileError("Atomic instructions are not implemented")}var s=c.default.symbolsByByte[i];if(typeof s==="undefined"){throw new r.CompileError("Unexpected instruction: "+toHex(i))}if(typeof s.object==="string"){dump([i],"".concat(s.object,".").concat(s.name))}else{dump([i],s.name)}if(s.name==="end"){var a=function(){var e=getPosition();return o.withLoc(o.instruction(s.name),e,t)}();e.push(a);break}var l=[];if(s.name==="loop"){var p=getPosition();var d=readByte();eatBytes(1);var h=c.default.blockTypes[d];dump([d],"blocktype");if(typeof h==="undefined"){throw new r.CompileError("Unexpected blocktype: "+toHex(d))}var m=[];parseInstructionBlock(m);var g=o.withRaw(o.identifier(u("loop")),"");var y=function(){var e=getPosition();return o.withLoc(o.loopInstruction(g,h,m),e,p)}();e.push(y);n=true}else if(s.name==="if"){var v=getPosition();var _=readByte();eatBytes(1);var b=c.default.blockTypes[_];dump([_],"blocktype");if(typeof b==="undefined"){throw new r.CompileError("Unexpected blocktype: "+toHex(_))}var E=o.withRaw(o.identifier(u("if")),"");var w=[];parseInstructionBlock(w);var S=0;for(S=0;S<w.length;++S){var k=w[S];if(k.type==="Instr"&&k.id==="else"){break}}var D=w.slice(0,S);var x=w.slice(S+1);var C=[];var A=function(){var e=getPosition();return o.withLoc(o.ifInstruction(E,C,b,D,x),e,v)}();e.push(A);n=true}else if(s.name==="block"){var T=getPosition();var M=readByte();eatBytes(1);var O=c.default.blockTypes[M];dump([M],"blocktype");if(typeof O==="undefined"){throw new r.CompileError("Unexpected blocktype: "+toHex(M))}var F=[];parseInstructionBlock(F);var I=o.withRaw(o.identifier(u("block")),"");var R=function(){var e=getPosition();return o.withLoc(o.blockInstruction(I,F,O),e,T)}();e.push(R);n=true}else if(s.name==="call"){var P=readU32();var N=P.value;eatBytes(P.nextIndex);dump([N],"index");var L=function(){var e=getPosition();return o.withLoc(o.callInstruction(o.indexLiteral(N)),e,t)}();e.push(L);n=true}else if(s.name==="call_indirect"){var B=getPosition();var j=readU32();var U=j.value;eatBytes(j.nextIndex);dump([U],"type index");var z=f.typesInModule[U];if(typeof z==="undefined"){throw new r.CompileError("call_indirect signature not found (".concat(U,")"))}var H=o.callIndirectInstruction(o.signature(z.params,z.result),[]);var V=readU32();var G=V.value;eatBytes(V.nextIndex);if(G!==0){throw new r.CompileError("zero flag expected")}e.push(function(){var e=getPosition();return o.withLoc(H,e,B)}());n=true}else if(s.name==="br_table"){var q=readU32();var W=q.value;eatBytes(q.nextIndex);dump([W],"num indices");for(var K=0;K<=W;K++){var X=readU32();var J=X.value;eatBytes(X.nextIndex);dump([J],"index");l.push(o.numberLiteralFromRaw(X.value.toString(),"u32"))}}else if(i>=40&&i<=64){if(s.name==="grow_memory"||s.name==="current_memory"){var Y=readU32();var Q=Y.value;eatBytes(Y.nextIndex);if(Q!==0){throw new Error("zero flag expected")}dump([Q],"index")}else{var Z=readU32();var $=Z.value;eatBytes(Z.nextIndex);dump([$],"align");var ee=readU32();var te=ee.value;eatBytes(ee.nextIndex);dump([te],"offset")}}else if(i>=65&&i<=68){if(s.object==="i32"){var ne=read32();var re=ne.value;eatBytes(ne.nextIndex);dump([re],"i32 value");l.push(o.numberLiteralFromRaw(re))}if(s.object==="u32"){var ie=readU32();var se=ie.value;eatBytes(ie.nextIndex);dump([se],"u32 value");l.push(o.numberLiteralFromRaw(se))}if(s.object==="i64"){var oe=read64();var ae=oe.value;eatBytes(oe.nextIndex);dump([Number(ae.toString())],"i64 value");var ce=ae.high,ue=ae.low;var le={type:"LongNumberLiteral",value:{high:ce,low:ue}};l.push(le)}if(s.object==="u64"){var fe=readU64();var pe=fe.value;eatBytes(fe.nextIndex);dump([Number(pe.toString())],"u64 value");var de=pe.high,he=pe.low;var me={type:"LongNumberLiteral",value:{high:de,low:he}};l.push(me)}if(s.object==="f32"){var ge=readF32();var ye=ge.value;eatBytes(ge.nextIndex);dump([ye],"f32 value");l.push(o.floatLiteral(ye,ge.nan,ge.inf,String(ye)))}if(s.object==="f64"){var ve=readF64();var _e=ve.value;eatBytes(ve.nextIndex);dump([_e],"f64 value");l.push(o.floatLiteral(_e,ve.nan,ve.inf,String(_e)))}}else{for(var be=0;be<s.numberOfArgs;be++){var Ee=readU32();eatBytes(Ee.nextIndex);dump([Ee.value],"argument "+be);l.push(o.numberLiteralFromRaw(Ee.value))}}if(n===false){if(typeof s.object==="string"){var we=function(){var e=getPosition();return o.withLoc(o.objectInstruction(s.name,s.object,l),e,t)}();e.push(we)}else{var Se=function(){var e=getPosition();return o.withLoc(o.instruction(s.name,l),e,t)}();e.push(Se)}}}}function parseLimits(){var e=readByte();eatBytes(1);dump([e],"limit type");var t,n;if(e===1||e===3){var r=readU32();t=parseInt(r.value);eatBytes(r.nextIndex);dump([t],"min");var i=readU32();n=parseInt(i.value);eatBytes(i.nextIndex);dump([n],"max")}if(e===0){var s=readU32();t=parseInt(s.value);eatBytes(s.nextIndex);dump([t],"min")}return o.limit(t,n)}function parseTableType(e){var t=o.withRaw(o.identifier(u("table")),String(e));var n=readByte();eatBytes(1);dump([n],"element type");var i=c.default.tableTypes[n];if(typeof i==="undefined"){throw new r.CompileError("Unknown element type in table: "+toHex(i))}var s=parseLimits();return o.table(i,s,t)}function parseGlobalType(){var e=readByte();eatBytes(1);var t=c.default.valtypes[e];dump([e],t);if(typeof t==="undefined"){throw new r.CompileError("Unknown valtype: "+toHex(e))}var n=readByte();eatBytes(1);var i=c.default.globalTypes[n];dump([n],"global type (".concat(i,")"));if(typeof i==="undefined"){throw new r.CompileError("Invalid mutability: "+toHex(n))}return o.globalType(t,i)}function parseNameSectionFunctions(){var e=[];var t=readU32();var n=t.value;eatBytes(t.nextIndex);for(var r=0;r<n;r++){var i=readU32();var s=i.value;eatBytes(i.nextIndex);var a=readUTF8String();eatBytes(a.nextIndex);e.push(o.functionNameMetadata(a.value,s))}return e}function parseNameSectionLocals(){var e=[];var t=readU32();var n=t.value;eatBytes(t.nextIndex);for(var r=0;r<n;r++){var i=readU32();var s=i.value;eatBytes(i.nextIndex);var a=readU32();var c=a.value;eatBytes(a.nextIndex);for(var u=0;u<c;u++){var l=readU32();var f=l.value;eatBytes(l.nextIndex);var p=readUTF8String();eatBytes(p.nextIndex);e.push(o.localNameMetadata(p.value,f,s))}}return e}function parseNameSection(e){var t=[];var n=l;while(l-n<e){var r=readVaruint7();eatBytes(r.nextIndex);var i=readVaruint32();eatBytes(i.nextIndex);switch(r.value){case 1:{t.push.apply(t,_toConsumableArray(parseNameSectionFunctions()));break}case 2:{t.push.apply(t,_toConsumableArray(parseNameSectionLocals()));break}default:{eatBytes(i.value)}}}return t}function parseProducersSection(){var e=o.producersSectionMetadata([]);var t=readVaruint32();eatBytes(t.nextIndex);dump([t.value],"num of producers");var n={language:[],"processed-by":[],sdk:[]};for(var r=0;r<t.value;r++){var i=readUTF8String();eatBytes(i.nextIndex);var s=readVaruint32();eatBytes(s.nextIndex);for(var a=0;a<s.value;a++){var c=readUTF8String();eatBytes(c.nextIndex);var u=readUTF8String();eatBytes(u.nextIndex);n[i.value].push(o.producerMetadataVersionedName(c.value,u.value))}e.producers.push(n[i.value])}return e}function parseGlobalSection(e){var t=[];dump([e],"num globals");for(var n=0;n<e;n++){var r=getPosition();var i=parseGlobalType();var s=[];parseInstructionBlock(s);var a=function(){var e=getPosition();return o.withLoc(o.global(i,s),e,r)}();t.push(a);f.globalsInModule.push(a)}return t}function parseElemSection(e){var t=[];dump([e],"num elements");for(var n=0;n<e;n++){var r=getPosition();var i=readU32();var s=i.value;eatBytes(i.nextIndex);dump([s],"table index");var a=[];parseInstructionBlock(a);var c=readU32();var u=c.value;eatBytes(c.nextIndex);dump([u],"num indices");var l=[];for(var f=0;f<u;f++){var p=readU32();var d=p.value;eatBytes(p.nextIndex);dump([d],"index");l.push(o.indexLiteral(d))}var h=function(){var e=getPosition();return o.withLoc(o.elem(o.indexLiteral(s),a,l),e,r)}();t.push(h)}return t}function parseMemoryType(e){var t=parseLimits();return o.memory(t,o.indexLiteral(e))}function parseTableSection(e){var t=[];dump([e],"num elements");for(var n=0;n<e;n++){var r=parseTableType(n);f.tablesInModule.push(r);t.push(r)}return t}function parseMemorySection(e){var t=[];dump([e],"num elements");for(var n=0;n<e;n++){var r=parseMemoryType(n);f.memoriesInModule.push(r);t.push(r)}return t}function parseStartSection(){var e=getPosition();var t=readU32();var n=t.value;eatBytes(t.nextIndex);dump([n],"index");return function(){var t=getPosition();return o.withLoc(o.start(o.indexLiteral(n)),t,e)}()}function parseDataSection(e){var t=[];dump([e],"num elements");for(var n=0;n<e;n++){var i=readU32();var s=i.value;eatBytes(i.nextIndex);dump([s],"memory index");var a=[];parseInstructionBlock(a);var c=a.filter(function(e){return e.id!=="end"}).length!==1;if(c){throw new r.CompileError("data section offset must be a single instruction")}var u=parseVec(function(e){return e});dump([],"init");t.push(o.data(o.memIndexLiteral(s),a[0],o.byteArray(u)))}return t}function parseSection(e){var n=readByte();eatBytes(1);if(n>=e||e===c.default.sections.custom){e=n+1}else{if(n!==c.default.sections.custom)throw new r.CompileError("Unexpected section: "+toHex(n))}var i=e;var s=l;var a=getPosition();var u=readU32();var f=u.value;eatBytes(u.nextIndex);var p=function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(f),e,a)}();switch(n){case c.default.sections.type:{dumpSep("section Type");dump([n],"section code");dump([f],"section size");var d=getPosition();var h=readU32();var m=h.value;eatBytes(h.nextIndex);var g=o.sectionMetadata("type",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(m),e,d)}());var y=parseTypeSection(m);return{nodes:y,metadata:g,nextSectionIndex:i}}case c.default.sections.table:{dumpSep("section Table");dump([n],"section code");dump([f],"section size");var v=getPosition();var _=readU32();var b=_.value;eatBytes(_.nextIndex);dump([b],"num tables");var E=o.sectionMetadata("table",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(b),e,v)}());var w=parseTableSection(b);return{nodes:w,metadata:E,nextSectionIndex:i}}case c.default.sections.import:{dumpSep("section Import");dump([n],"section code");dump([f],"section size");var S=getPosition();var k=readU32();var D=k.value;eatBytes(k.nextIndex);dump([D],"number of imports");var x=o.sectionMetadata("import",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(D),e,S)}());var C=parseImportSection(D);return{nodes:C,metadata:x,nextSectionIndex:i}}case c.default.sections.func:{dumpSep("section Function");dump([n],"section code");dump([f],"section size");var A=getPosition();var T=readU32();var M=T.value;eatBytes(T.nextIndex);var O=o.sectionMetadata("func",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(M),e,A)}());parseFuncSection(M);var F=[];return{nodes:F,metadata:O,nextSectionIndex:i}}case c.default.sections.export:{dumpSep("section Export");dump([n],"section code");dump([f],"section size");var I=getPosition();var R=readU32();var P=R.value;eatBytes(R.nextIndex);var N=o.sectionMetadata("export",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(P),e,I)}());parseExportSection(P);var L=[];return{nodes:L,metadata:N,nextSectionIndex:i}}case c.default.sections.code:{dumpSep("section Code");dump([n],"section code");dump([f],"section size");var B=getPosition();var j=readU32();var U=j.value;eatBytes(j.nextIndex);var z=o.sectionMetadata("code",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(U),e,B)}());if(t.ignoreCodeSection===true){var H=f-j.nextIndex;eatBytes(H)}else{parseCodeSection(U)}var V=[];return{nodes:V,metadata:z,nextSectionIndex:i}}case c.default.sections.start:{dumpSep("section Start");dump([n],"section code");dump([f],"section size");var G=o.sectionMetadata("start",s,p);var q=[parseStartSection()];return{nodes:q,metadata:G,nextSectionIndex:i}}case c.default.sections.element:{dumpSep("section Element");dump([n],"section code");dump([f],"section size");var W=getPosition();var K=readU32();var X=K.value;eatBytes(K.nextIndex);var J=o.sectionMetadata("element",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(X),e,W)}());var Y=parseElemSection(X);return{nodes:Y,metadata:J,nextSectionIndex:i}}case c.default.sections.global:{dumpSep("section Global");dump([n],"section code");dump([f],"section size");var Q=getPosition();var Z=readU32();var $=Z.value;eatBytes(Z.nextIndex);var ee=o.sectionMetadata("global",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw($),e,Q)}());var te=parseGlobalSection($);return{nodes:te,metadata:ee,nextSectionIndex:i}}case c.default.sections.memory:{dumpSep("section Memory");dump([n],"section code");dump([f],"section size");var ne=getPosition();var re=readU32();var ie=re.value;eatBytes(re.nextIndex);var se=o.sectionMetadata("memory",s,p,function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(ie),e,ne)}());var oe=parseMemorySection(ie);return{nodes:oe,metadata:se,nextSectionIndex:i}}case c.default.sections.data:{dumpSep("section Data");dump([n],"section code");dump([f],"section size");var ae=o.sectionMetadata("data",s,p);var ce=getPosition();var ue=readU32();var le=ue.value;eatBytes(ue.nextIndex);ae.vectorOfSize=function(){var e=getPosition();return o.withLoc(o.numberLiteralFromRaw(le),e,ce)}();if(t.ignoreDataSection===true){var fe=f-ue.nextIndex;eatBytes(fe);dumpSep("ignore data ("+f+" bytes)");return{nodes:[],metadata:ae,nextSectionIndex:i}}else{var pe=parseDataSection(le);return{nodes:pe,metadata:ae,nextSectionIndex:i}}}case c.default.sections.custom:{dumpSep("section Custom");dump([n],"section code");dump([f],"section size");var de=[o.sectionMetadata("custom",s,p)];var he=readUTF8String();eatBytes(he.nextIndex);dump([],"section name (".concat(he.value,")"));var me=f-he.nextIndex;if(he.value==="name"){var ge=l;try{de.push.apply(de,_toConsumableArray(parseNameSection(me)))}catch(e){console.warn('Failed to decode custom "name" section @'.concat(l,"; ignoring (").concat(e.message,")."));eatBytes(l-(ge+me))}}else if(he.value==="producers"){var ye=l;try{de.push(parseProducersSection())}catch(e){console.warn('Failed to decode custom "producers" section @'.concat(l,"; ignoring (").concat(e.message,")."));eatBytes(l-(ye+me))}}else{eatBytes(me);dumpSep("ignore custom "+JSON.stringify(he.value)+" section ("+me+" bytes)")}return{nodes:[],metadata:de,nextSectionIndex:i}}}throw new r.CompileError("Unexpected section: "+toHex(n))}parseModuleHeader();parseVersion();var p=[];var d=0;var h={sections:[],functionNames:[],localNames:[],producers:[]};while(l<n.length){var m=parseSection(d),g=m.nodes,y=m.metadata,v=m.nextSectionIndex;p.push.apply(p,_toConsumableArray(g));var _=Array.isArray(y)?y:[y];_.forEach(function(e){if(e.type==="FunctionNameMetadata"){h.functionNames.push(e)}else if(e.type==="LocalNameMetadata"){h.localNames.push(e)}else if(e.type==="ProducersSectionMetadata"){h.producers.push(e)}else{h.sections.push(e)}});if(v){d=v}}var b=0;f.functionsInModule.forEach(function(e){var n=e.signature.params;var i=e.signature.result;var s=[];if(e.isExternal===true){return}var a=f.elementsInCodeSection[b];if(t.ignoreCodeSection===false){if(typeof a==="undefined"){throw new r.CompileError("func "+toHex(b)+" code not found")}s=a.code}b++;var c=o.func(e.id,o.signature(n,i),s);if(e.isExternal===true){c.isExternal=e.isExternal}if(t.ignoreCodeSection===false){var u=a.startLoc,l=a.endLoc,d=a.bodySize;c=o.withLoc(c,l,u);c.metadata={bodySize:d}}p.push(c)});f.elementsInExportSection.forEach(function(e){if(e.id!=null){p.push(o.withLoc(o.moduleExport(e.name,o.moduleExportDescr(e.type,e.id)),e.endLoc,e.startLoc))}});dumpSep("end of program");var E=o.module(null,p,o.moduleMetadata(h.sections,h.functionNames,h.localNames,h.producers));return o.program([E])}},73432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decode=decode;var r=_interopRequireWildcard(n(13975));var i=_interopRequireWildcard(n(98093));function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}var s={dump:false,ignoreCodeSection:false,ignoreDataSection:false,ignoreCustomNameSection:false};function restoreFunctionNames(e){var t=[];i.traverse(e,{FunctionNameMetadata:function FunctionNameMetadata(e){var n=e.node;t.push({name:n.value,index:n.index})}});if(t.length===0){return}i.traverse(e,{Func:function(e){function Func(t){return e.apply(this,arguments)}Func.toString=function(){return e.toString()};return Func}(function(e){var n=e.node;var r=n.name;var i=r.value;var s=Number(i.replace("func_",""));var o=t.find(function(e){return e.index===s});if(o){var a=r.value;r.value=o.name;r.numeric=a;delete r.raw}}),ModuleExport:function(e){function ModuleExport(t){return e.apply(this,arguments)}ModuleExport.toString=function(){return e.toString()};return ModuleExport}(function(e){var n=e.node;if(n.descr.exportType==="Func"){var r=n.descr.id;var s=r.value;var o=t.find(function(e){return e.index===s});if(o){n.descr.id=i.identifier(o.name)}}}),ModuleImport:function(e){function ModuleImport(t){return e.apply(this,arguments)}ModuleImport.toString=function(){return e.toString()};return ModuleImport}(function(e){var n=e.node;if(n.descr.type==="FuncImportDescr"){var r=n.descr.id;var s=Number(r.replace("func_",""));var o=t.find(function(e){return e.index===s});if(o){n.descr.id=i.identifier(o.name)}}}),CallInstruction:function(e){function CallInstruction(t){return e.apply(this,arguments)}CallInstruction.toString=function(){return e.toString()};return CallInstruction}(function(e){var n=e.node;var r=n.index.value;var s=t.find(function(e){return e.index===r});if(s){var o=n.index;n.index=i.identifier(s.name);n.numeric=o;delete n.raw}})})}function restoreLocalNames(e){var t=[];i.traverse(e,{LocalNameMetadata:function LocalNameMetadata(e){var n=e.node;t.push({name:n.value,localIndex:n.localIndex,functionIndex:n.functionIndex})}});if(t.length===0){return}i.traverse(e,{Func:function(e){function Func(t){return e.apply(this,arguments)}Func.toString=function(){return e.toString()};return Func}(function(e){var n=e.node;var r=n.signature;if(r.type!=="Signature"){return}var i=n.name;var s=i.value;var o=Number(s.replace("func_",""));r.params.forEach(function(e,n){var r=t.find(function(e){return e.localIndex===n&&e.functionIndex===o});if(r&&r.name!==""){e.id=r.name}})})})}function restoreModuleName(e){i.traverse(e,{ModuleNameMetadata:function(e){function ModuleNameMetadata(t){return e.apply(this,arguments)}ModuleNameMetadata.toString=function(){return e.toString()};return ModuleNameMetadata}(function(t){i.traverse(e,{Module:function(e){function Module(t){return e.apply(this,arguments)}Module.toString=function(){return e.toString()};return Module}(function(e){var n=e.node;var r=t.node.value;if(r===""){r=null}n.id=r})})})})}function decode(e,t){var n=Object.assign({},s,t);var i=r.decode(e,n);if(n.ignoreCustomNameSection===false){restoreFunctionNames(i);restoreLocalNames(i);restoreModuleName(i)}return i}},9864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parse=parse;var r=n(33416);var i=_interopRequireWildcard(n(98093));var s=n(73933);var o=n(19648);var a=n(67853);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function hasPlugin(e){if(e!=="wast")throw new Error("unknow plugin");return true}function isKeyword(e,t){return e.type===a.tokens.keyword&&e.value===t}function tokenToString(e){if(e.type==="keyword"){return"keyword (".concat(e.value,")")}return e.type}function identifierFromToken(e){var t=e.loc,n=t.end,r=t.start;return i.withLoc(i.identifier(e.value),n,r)}function parse(e,t){var n=0;var c=i.getUniqueNameGenerator();var u={registredExportedElements:[]};function walk(){var l=e[n];function eatToken(){l=e[++n]}function getEndLoc(){var t=l;if(typeof t==="undefined"){var n=e[e.length-1];t=n}return t.loc.end}function getStartLoc(){return l.loc.start}function eatTokenOfType(e){if(l.type!==e){throw new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"Assertion error: expected token of type "+e+", given "+tokenToString(l))}eatToken()}function parseExportIndex(e){if(e.type===a.tokens.identifier){var n=identifierFromToken(e);eatToken();return n}else if(e.type===a.tokens.number){var s=i.numberLiteralFromRaw(e.value);eatToken();return s}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,e.loc)+"\n"+"unknown export index"+", given "+tokenToString(e))}()}}function lookaheadAndCheck(){var t=arguments.length;for(var r=0;r<t;r++){var i=e[n+r];var s=r<0||arguments.length<=r?undefined:arguments[r];if(i.type==="keyword"){if(isKeyword(i,s)===false){return false}}else if(s!==i.type){return false}}return true}function maybeIgnoreComment(){if(typeof l==="undefined"){return}while(l.type===a.tokens.comment){eatToken();if(typeof l==="undefined"){break}}}function parseMemory(){var e=i.identifier(c("memory"));var n=i.limit(0);if(l.type===a.tokens.string||l.type===a.tokens.identifier){e=i.identifier(l.value);eatToken()}else{e=i.withRaw(e,"")}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.data)){eatToken();eatToken();var o=l.value;eatTokenOfType(a.tokens.string);n=i.limit(o.length);eatTokenOfType(a.tokens.closeParen)}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.export)){eatToken();eatToken();if(l.type!==a.tokens.string){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Expected string in export"+", given "+tokenToString(l))}()}var f=l.value;eatToken();u.registredExportedElements.push({exportType:"Memory",name:f,id:e});eatTokenOfType(a.tokens.closeParen)}if(l.type===a.tokens.number){n=i.limit((0,s.parse32I)(l.value));eatToken();if(l.type===a.tokens.number){n.max=(0,s.parse32I)(l.value);eatToken()}}return i.memory(n,e)}function parseData(){var e=0;if(l.type===a.tokens.number){e=l.value;eatTokenOfType(a.tokens.number)}eatTokenOfType(a.tokens.openParen);var t;if(l.type===a.tokens.valtype){eatTokenOfType(a.tokens.valtype);eatTokenOfType(a.tokens.dot);if(l.value!=="const"){throw new Error("constant expression required")}eatTokenOfType(a.tokens.name);var n=i.numberLiteralFromRaw(l.value,"i32");t=i.objectInstruction("const","i32",[n]);eatToken();eatTokenOfType(a.tokens.closeParen)}else{eatTokenOfType(a.tokens.name);var r=i.numberLiteralFromRaw(l.value,"i32");t=i.instruction("get_global",[r]);eatToken();eatTokenOfType(a.tokens.closeParen)}var s=(0,o.parseString)(l.value);eatToken();return i.data(i.memIndexLiteral(e),t,i.byteArray(s))}function parseTable(){var e=i.identifier(c("table"));var n=i.limit(0);var s=[];var o="anyfunc";if(l.type===a.tokens.string||l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else{e=i.withRaw(e,"")}while(l.type!==a.tokens.closeParen){if(lookaheadAndCheck(a.tokens.openParen,a.keywords.elem)){eatToken();eatToken();while(l.type===a.tokens.identifier){s.push(i.identifier(l.value));eatToken()}eatTokenOfType(a.tokens.closeParen)}else if(lookaheadAndCheck(a.tokens.openParen,a.keywords.export)){eatToken();eatToken();if(l.type!==a.tokens.string){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Expected string in export"+", given "+tokenToString(l))}()}var f=l.value;eatToken();u.registredExportedElements.push({exportType:"Table",name:f,id:e});eatTokenOfType(a.tokens.closeParen)}else if(isKeyword(l,a.keywords.anyfunc)){eatToken()}else if(l.type===a.tokens.number){var p=parseInt(l.value);eatToken();if(l.type===a.tokens.number){var d=parseInt(l.value);eatToken();n=i.limit(p,d)}else{n=i.limit(p)}eatToken()}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token"+", given "+tokenToString(l))}()}}if(s.length>0){return i.table(o,n,e,s)}else{return i.table(o,n,e)}}function parseImport(){if(l.type!==a.tokens.string){throw new Error("Expected a string, "+l.type+" given.")}var e=l.value;eatToken();if(l.type!==a.tokens.string){throw new Error("Expected a string, "+l.type+" given.")}var n=l.value;eatToken();eatTokenOfType(a.tokens.openParen);var s;if(isKeyword(l,a.keywords.func)){eatToken();var o=[];var u=[];var f;var p=i.identifier(c("func"));if(l.type===a.tokens.identifier){p=identifierFromToken(l);eatToken()}while(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.keywords.type)===true){eatToken();f=parseTypeReference()}else if(lookaheadAndCheck(a.keywords.param)===true){eatToken();o.push.apply(o,_toConsumableArray(parseFuncParam()))}else if(lookaheadAndCheck(a.keywords.result)===true){eatToken();u.push.apply(u,_toConsumableArray(parseFuncResult()))}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in import of type"+", given "+tokenToString(l))}()}eatTokenOfType(a.tokens.closeParen)}if(typeof p==="undefined"){throw new Error("Imported function must have a name")}s=i.funcImportDescr(p,f!==undefined?f:i.signature(o,u))}else if(isKeyword(l,a.keywords.global)){eatToken();if(l.type===a.tokens.openParen){eatToken();eatTokenOfType(a.tokens.keyword);var d=l.value;eatToken();s=i.globalType(d,"var");eatTokenOfType(a.tokens.closeParen)}else{var h=l.value;eatTokenOfType(a.tokens.valtype);s=i.globalType(h,"const")}}else if(isKeyword(l,a.keywords.memory)===true){eatToken();s=parseMemory()}else if(isKeyword(l,a.keywords.table)===true){eatToken();s=parseTable()}else{throw new Error("Unsupported import type: "+tokenToString(l))}eatTokenOfType(a.tokens.closeParen);return i.moduleImport(e,n,s)}function parseBlock(){var e=i.identifier(c("block"));var n=null;var s=[];if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else{e=i.withRaw(e,"")}while(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.keywords.result)===true){eatToken();n=l.value;eatToken()}else if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){s.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in block body of type"+", given "+tokenToString(l))}()}maybeIgnoreComment();eatTokenOfType(a.tokens.closeParen)}return i.blockInstruction(e,s,n)}function parseIf(){var e=null;var n=i.identifier(c("if"));var s=[];var o=[];var u=[];if(l.type===a.tokens.identifier){n=identifierFromToken(l);eatToken()}else{n=i.withRaw(n,"")}while(l.type===a.tokens.openParen){eatToken();if(isKeyword(l,a.keywords.result)===true){eatToken();e=l.value;eatTokenOfType(a.tokens.valtype);eatTokenOfType(a.tokens.closeParen);continue}if(isKeyword(l,a.keywords.then)===true){eatToken();while(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){o.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in consequent body of type"+", given "+tokenToString(l))}()}eatTokenOfType(a.tokens.closeParen)}eatTokenOfType(a.tokens.closeParen);continue}if(isKeyword(l,a.keywords.else)){eatToken();while(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){u.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in alternate body of type"+", given "+tokenToString(l))}()}eatTokenOfType(a.tokens.closeParen)}eatTokenOfType(a.tokens.closeParen);continue}if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){s.push(parseFuncInstr());eatTokenOfType(a.tokens.closeParen);continue}throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in if body"+", given "+tokenToString(l))}()}return i.ifInstruction(n,s,e,o,u)}function parseLoop(){var e=i.identifier(c("loop"));var n;var s=[];if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else{e=i.withRaw(e,"")}while(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.keywords.result)===true){eatToken();n=l.value;eatToken()}else if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){s.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in loop body"+", given "+tokenToString(l))}()}eatTokenOfType(a.tokens.closeParen)}return i.loopInstruction(e,n,s)}function parseCallIndirect(){var e;var t=[];var n=[];var r=[];while(l.type!==a.tokens.closeParen){if(lookaheadAndCheck(a.tokens.openParen,a.keywords.type)){eatToken();eatToken();e=parseTypeReference()}else if(lookaheadAndCheck(a.tokens.openParen,a.keywords.param)){eatToken();eatToken();if(l.type!==a.tokens.closeParen){t.push.apply(t,_toConsumableArray(parseFuncParam()))}}else if(lookaheadAndCheck(a.tokens.openParen,a.keywords.result)){eatToken();eatToken();if(l.type!==a.tokens.closeParen){n.push.apply(n,_toConsumableArray(parseFuncResult()))}}else{eatTokenOfType(a.tokens.openParen);r.push(parseFuncInstr())}eatTokenOfType(a.tokens.closeParen)}return i.callIndirectInstruction(e!==undefined?e:i.signature(t,n),r)}function parseExport(){if(l.type!==a.tokens.string){throw new Error("Expected string after export, got: "+l.type)}var e=l.value;eatToken();var t=parseModuleExportDescr();return i.moduleExport(e,t)}function parseModuleExportDescr(){var e=getStartLoc();var t="";var n;eatTokenOfType(a.tokens.openParen);while(l.type!==a.tokens.closeParen){if(isKeyword(l,a.keywords.func)){t="Func";eatToken();n=parseExportIndex(l)}else if(isKeyword(l,a.keywords.table)){t="Table";eatToken();n=parseExportIndex(l)}else if(isKeyword(l,a.keywords.global)){t="Global";eatToken();n=parseExportIndex(l)}else if(isKeyword(l,a.keywords.memory)){t="Memory";eatToken();n=parseExportIndex(l)}eatToken()}if(t===""){throw new Error("Unknown export type")}if(n===undefined){throw new Error("Exported function must have a name")}var r=i.moduleExportDescr(t,n);var s=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(r,s,e)}function parseModule(){var t=null;var r=false;var s=false;var o=[];if(l.type===a.tokens.identifier){t=l.value;eatToken()}if(hasPlugin("wast")&&l.type===a.tokens.name&&l.value==="binary"){eatToken();r=true}if(hasPlugin("wast")&&l.type===a.tokens.name&&l.value==="quote"){eatToken();s=true}if(r===true){var c=[];while(l.type===a.tokens.string){c.push(l.value);eatToken();maybeIgnoreComment()}eatTokenOfType(a.tokens.closeParen);return i.binaryModule(t,c)}if(s===true){var f=[];while(l.type===a.tokens.string){f.push(l.value);eatToken()}eatTokenOfType(a.tokens.closeParen);return i.quoteModule(t,f)}while(l.type!==a.tokens.closeParen){o.push(walk());if(u.registredExportedElements.length>0){u.registredExportedElements.forEach(function(e){o.push(i.moduleExport(e.name,i.moduleExportDescr(e.exportType,e.id)))});u.registredExportedElements=[]}l=e[n]}eatTokenOfType(a.tokens.closeParen);return i.module(t,o)}function parseFuncInstrArguments(e){var n=[];var s={};var o=0;while(l.type===a.tokens.name||isKeyword(l,a.keywords.offset)){var c=l.value;eatToken();eatTokenOfType(a.tokens.equal);var u=void 0;if(l.type===a.tokens.number){u=i.numberLiteralFromRaw(l.value)}else{throw new Error("Unexpected type for argument: "+l.type)}s[c]=u;eatToken()}var f=e.vector?Infinity:e.length;while(l.type!==a.tokens.closeParen&&(l.type===a.tokens.openParen||o<f)){if(l.type===a.tokens.identifier){n.push(i.identifier(l.value));eatToken()}else if(l.type===a.tokens.valtype){n.push(i.valtypeLiteral(l.value));eatToken()}else if(l.type===a.tokens.string){n.push(i.stringLiteral(l.value));eatToken()}else if(l.type===a.tokens.number){n.push(i.numberLiteralFromRaw(l.value,e[o]||"f64"));if(!e.vector){++o}eatToken()}else if(l.type===a.tokens.openParen){eatToken();if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){n.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in nested instruction"+", given "+tokenToString(l))}()}if(l.type===a.tokens.closeParen){eatToken()}}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in instruction argument"+", given "+tokenToString(l))}()}}return{args:n,namedArgs:s}}function parseFuncInstr(){var e=getStartLoc();maybeIgnoreComment();if(l.type===a.tokens.name||l.type===a.tokens.valtype){var n=l.value;var s;eatToken();if(l.type===a.tokens.dot){s=n;eatToken();if(l.type!==a.tokens.name){throw new TypeError("Unknown token: "+l.type+", name expected")}n=l.value;eatToken()}if(l.type===a.tokens.closeParen){var o=l.loc.end;if(typeof s==="undefined"){return i.withLoc(i.instruction(n),o,e)}else{return i.withLoc(i.objectInstruction(n,s,[]),o,e)}}var c=i.signatureForOpcode(s||"",n);var u=parseFuncInstrArguments(c),f=u.args,p=u.namedArgs;var d=l.loc.end;if(typeof s==="undefined"){return i.withLoc(i.instruction(n,f,p),d,e)}else{return i.withLoc(i.objectInstruction(n,s,f,p),d,e)}}else if(isKeyword(l,a.keywords.loop)){eatToken();return parseLoop()}else if(isKeyword(l,a.keywords.block)){eatToken();return parseBlock()}else if(isKeyword(l,a.keywords.call_indirect)){eatToken();return parseCallIndirect()}else if(isKeyword(l,a.keywords.call)){eatToken();var h;if(l.type===a.tokens.identifier){h=identifierFromToken(l);eatToken()}else if(l.type===a.tokens.number){h=i.indexLiteral(l.value);eatToken()}var m=[];while(l.type===a.tokens.openParen){eatToken();m.push(parseFuncInstr());eatTokenOfType(a.tokens.closeParen)}if(typeof h==="undefined"){throw new Error("Missing argument in call instruciton")}if(m.length>0){return i.callInstruction(h,m)}else{return i.callInstruction(h)}}else if(isKeyword(l,a.keywords.if)){eatToken();return parseIf()}else if(isKeyword(l,a.keywords.module)&&hasPlugin("wast")){eatToken();var g=parseModule();return g}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected instruction in function body"+", given "+tokenToString(l))}()}}function parseFunc(){var e=i.identifier(c("func"));var n;var s=[];var o=[];var u=[];if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else{e=i.withRaw(e,"")}maybeIgnoreComment();while(l.type===a.tokens.openParen||l.type===a.tokens.name||l.type===a.tokens.valtype){if(l.type===a.tokens.name||l.type===a.tokens.valtype){s.push(parseFuncInstr());continue}eatToken();if(lookaheadAndCheck(a.keywords.param)===true){eatToken();o.push.apply(o,_toConsumableArray(parseFuncParam()))}else if(lookaheadAndCheck(a.keywords.result)===true){eatToken();u.push.apply(u,_toConsumableArray(parseFuncResult()))}else if(lookaheadAndCheck(a.keywords.export)===true){eatToken();parseFuncExport(e)}else if(lookaheadAndCheck(a.keywords.type)===true){eatToken();n=parseTypeReference()}else if(lookaheadAndCheck(a.tokens.name)===true||lookaheadAndCheck(a.tokens.valtype)===true||l.type==="keyword"){s.push(parseFuncInstr())}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in func body"+", given "+tokenToString(l))}()}eatTokenOfType(a.tokens.closeParen)}return i.func(e,n!==undefined?n:i.signature(o,u),s)}function parseFuncExport(e){if(l.type!==a.tokens.string){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Function export expected a string"+", given "+tokenToString(l))}()}var n=l.value;eatToken();var s=i.identifier(e.value);u.registredExportedElements.push({exportType:"Func",name:n,id:s})}function parseType(){var e;var t=[];var n=[];if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.func)){eatToken();eatToken();if(l.type===a.tokens.closeParen){eatToken();return i.typeInstruction(e,i.signature([],[]))}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.param)){eatToken();eatToken();t=parseFuncParam();eatTokenOfType(a.tokens.closeParen)}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.result)){eatToken();eatToken();n=parseFuncResult();eatTokenOfType(a.tokens.closeParen)}eatTokenOfType(a.tokens.closeParen)}return i.typeInstruction(e,i.signature(t,n))}function parseFuncResult(){var e=[];while(l.type!==a.tokens.closeParen){if(l.type!==a.tokens.valtype){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unexpected token in func result"+", given "+tokenToString(l))}()}var n=l.value;eatToken();e.push(n)}return e}function parseTypeReference(){var e;if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else if(l.type===a.tokens.number){e=i.numberLiteralFromRaw(l.value);eatToken()}return e}function parseGlobal(){var e=i.identifier(c("global"));var n;var s=null;maybeIgnoreComment();if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}else{e=i.withRaw(e,"")}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.export)){eatToken();eatToken();var o=l.value;eatTokenOfType(a.tokens.string);u.registredExportedElements.push({exportType:"Global",name:o,id:e});eatTokenOfType(a.tokens.closeParen)}if(lookaheadAndCheck(a.tokens.openParen,a.keywords.import)){eatToken();eatToken();var f=l.value;eatTokenOfType(a.tokens.string);var p=l.value;eatTokenOfType(a.tokens.string);s={module:f,name:p,descr:undefined};eatTokenOfType(a.tokens.closeParen)}if(l.type===a.tokens.valtype){n=i.globalType(l.value,"const");eatToken()}else if(l.type===a.tokens.openParen){eatToken();if(isKeyword(l,a.keywords.mut)===false){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unsupported global type, expected mut"+", given "+tokenToString(l))}()}eatToken();n=i.globalType(l.value,"var");eatToken();eatTokenOfType(a.tokens.closeParen)}if(n===undefined){throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Could not determine global type"+", given "+tokenToString(l))}()}maybeIgnoreComment();var d=[];if(s!=null){s.descr=n;d.push(i.moduleImport(s.module,s.name,s.descr))}while(l.type===a.tokens.openParen){eatToken();d.push(parseFuncInstr());eatTokenOfType(a.tokens.closeParen)}return i.global(n,d,e)}function parseFuncParam(){var e=[];var t;var n;if(l.type===a.tokens.identifier){t=l.value;eatToken()}if(l.type===a.tokens.valtype){n=l.value;eatToken();e.push({id:t,valtype:n});if(t===undefined){while(l.type===a.tokens.valtype){n=l.value;eatToken();e.push({id:undefined,valtype:n})}}}else{}return e}function parseElem(){var e=i.indexLiteral(0);var n=[];var s=[];if(l.type===a.tokens.identifier){e=identifierFromToken(l);eatToken()}if(l.type===a.tokens.number){e=i.indexLiteral(l.value);eatToken()}while(l.type!==a.tokens.closeParen){if(lookaheadAndCheck(a.tokens.openParen,a.keywords.offset)){eatToken();eatToken();while(l.type!==a.tokens.closeParen){eatTokenOfType(a.tokens.openParen);n.push(parseFuncInstr());eatTokenOfType(a.tokens.closeParen)}eatTokenOfType(a.tokens.closeParen)}else if(l.type===a.tokens.identifier){s.push(i.identifier(l.value));eatToken()}else if(l.type===a.tokens.number){s.push(i.indexLiteral(l.value));eatToken()}else if(l.type===a.tokens.openParen){eatToken();n.push(parseFuncInstr());eatTokenOfType(a.tokens.closeParen)}else{throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unsupported token in elem"+", given "+tokenToString(l))}()}}return i.elem(e,n,s)}function parseStart(){if(l.type===a.tokens.identifier){var e=identifierFromToken(l);eatToken();return i.start(e)}if(l.type===a.tokens.number){var t=i.indexLiteral(l.value);eatToken();return i.start(t)}throw new Error("Unknown start, token: "+tokenToString(l))}if(l.type===a.tokens.openParen){eatToken();var f=getStartLoc();if(isKeyword(l,a.keywords.export)){eatToken();var p=parseExport();var d=getEndLoc();return i.withLoc(p,d,f)}if(isKeyword(l,a.keywords.loop)){eatToken();var h=parseLoop();var m=getEndLoc();return i.withLoc(h,m,f)}if(isKeyword(l,a.keywords.func)){eatToken();var g=parseFunc();var y=getEndLoc();maybeIgnoreComment();eatTokenOfType(a.tokens.closeParen);return i.withLoc(g,y,f)}if(isKeyword(l,a.keywords.module)){eatToken();var v=parseModule();var _=getEndLoc();return i.withLoc(v,_,f)}if(isKeyword(l,a.keywords.import)){eatToken();var b=parseImport();var E=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(b,E,f)}if(isKeyword(l,a.keywords.block)){eatToken();var w=parseBlock();var S=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(w,S,f)}if(isKeyword(l,a.keywords.memory)){eatToken();var k=parseMemory();var D=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(k,D,f)}if(isKeyword(l,a.keywords.data)){eatToken();var x=parseData();var C=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(x,C,f)}if(isKeyword(l,a.keywords.table)){eatToken();var A=parseTable();var T=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(A,T,f)}if(isKeyword(l,a.keywords.global)){eatToken();var M=parseGlobal();var O=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(M,O,f)}if(isKeyword(l,a.keywords.type)){eatToken();var F=parseType();var I=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(F,I,f)}if(isKeyword(l,a.keywords.start)){eatToken();var R=parseStart();var P=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(R,P,f)}if(isKeyword(l,a.keywords.elem)){eatToken();var N=parseElem();var L=getEndLoc();eatTokenOfType(a.tokens.closeParen);return i.withLoc(N,L,f)}var B=parseFuncInstr();var j=getEndLoc();maybeIgnoreComment();if(_typeof(B)==="object"){if(typeof l!=="undefined"){eatTokenOfType(a.tokens.closeParen)}return i.withLoc(B,j,f)}}if(l.type===a.tokens.comment){var U=getStartLoc();var z=l.opts.type==="leading"?i.leadingComment:i.blockComment;var H=z(l.value);eatToken();var V=getEndLoc();return i.withLoc(H,V,U)}throw function(){return new Error("\n"+(0,r.codeFrameFromSource)(t,l.loc)+"\n"+"Unknown token"+", given "+tokenToString(l))}()}var l=[];while(n<e.length){l.push(walk())}return i.program(l)}},81684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r={parse:true};t.parse=parse;var i=_interopRequireWildcard(n(9864));var s=n(67853);var o=n(73933);Object.keys(o).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,e))return;Object.defineProperty(t,e,{enumerable:true,get:function get(){return o[e]}})});function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};if(r.get||r.set){Object.defineProperty(t,n,r)}else{t[n]=e[n]}}}}t.default=e;return t}}function parse(e){var t=(0,s.tokenize)(e);var n=i.parse(t,e);return n}},73933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parse32F=parse32F;t.parse64F=parse64F;t.parse32I=parse32I;t.parseU32=parseU32;t.parse64I=parse64I;t.isInfLiteral=isInfLiteral;t.isNanLiteral=isNanLiteral;var r=_interopRequireDefault(n(11174));var i=_interopRequireDefault(n(18083));var s=n(35866);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse32F(e){if(isHexLiteral(e)){return(0,i.default)(e)}if(isInfLiteral(e)){return e[0]==="-"?-1:1}if(isNanLiteral(e)){return(e[0]==="-"?-1:1)*(e.includes(":")?parseInt(e.substring(e.indexOf(":")+1),16):4194304)}return parseFloat(e)}function parse64F(e){if(isHexLiteral(e)){return(0,i.default)(e)}if(isInfLiteral(e)){return e[0]==="-"?-1:1}if(isNanLiteral(e)){return(e[0]==="-"?-1:1)*(e.includes(":")?parseInt(e.substring(e.indexOf(":")+1),16):0x8000000000000)}if(isHexLiteral(e)){return(0,i.default)(e)}return parseFloat(e)}function parse32I(e){var t=0;if(isHexLiteral(e)){t=~~parseInt(e,16)}else if(isDecimalExponentLiteral(e)){throw new Error("This number literal format is yet to be implemented.")}else{t=parseInt(e,10)}return t}function parseU32(e){var t=parse32I(e);if(t<0){throw new s.CompileError("Illegal value for u32: "+e)}return t}function parse64I(e){var t;if(isHexLiteral(e)){t=r.default.fromString(e,false,16)}else if(isDecimalExponentLiteral(e)){throw new Error("This number literal format is yet to be implemented.")}else{t=r.default.fromString(e)}return{high:t.high,low:t.low}}var o=/^\+?-?nan/;var a=/^\+?-?inf/;function isInfLiteral(e){return a.test(e.toLowerCase())}function isNanLiteral(e){return o.test(e.toLowerCase())}function isDecimalExponentLiteral(e){return!isHexLiteral(e)&&e.toUpperCase().includes("E")}function isHexLiteral(e){return e.substring(0,2).toUpperCase()==="0X"||e.substring(0,3).toUpperCase()==="-0X"}},19648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseString=parseString;var n=[0,7,8,9,10,11,12,13,26,27,127];function decodeControlCharacter(e){switch(e){case"t":return 9;case"n":return 10;case"r":return 13;case'"':return 34;case"′":return 39;case"\\":return 92}return-1}var r=92;var i=34;function parseString(e){var t=[];var s=0;while(s<e.length){var o=e.charCodeAt(s);if(n.indexOf(o)!==-1){throw new Error("ASCII control characters are not permitted within string literals")}if(o===i){throw new Error("quotes are not permitted within string literals")}if(o===r){var a=e.substr(s+1,1);var c=decodeControlCharacter(a);if(c!==-1){t.push(c);s+=2}else{var u=e.substr(s+1,2);if(!/^[0-9A-F]{2}$/i.test(u)){throw new Error("invalid character encoding")}t.push(parseInt(u,16));s+=3}}else{t.push(o);s++}}return t}},67853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tokenize=tokenize;t.tokens=t.keywords=void 0;var r=n(51971);var i=n(33416);function getCodeFrame(e,t,n){var r={start:{line:t,column:n}};return"\n"+(0,i.codeFrameFromSource)(e,r)+"\n"}var s=/\s/;var o=/\(|\)/;var a=/[a-z0-9_/]/i;var c=/[a-z0-9!#$%&*+./:<=>?@\\[\]^_`|~-]/i;var u=["i32","i64","f32","f64"];var l=/[0-9|.|_]/;var f=/nan|inf/;function isNewLine(e){return e.charCodeAt(0)===10||e.charCodeAt(0)===13}function Token(e,t,n,r){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var s={type:e,value:t,loc:{start:n,end:r}};if(Object.keys(i).length>0){s["opts"]=i}return s}var p={openParen:"openParen",closeParen:"closeParen",number:"number",string:"string",name:"name",identifier:"identifier",valtype:"valtype",dot:"dot",comment:"comment",equal:"equal",keyword:"keyword"};var d={module:"module",func:"func",param:"param",result:"result",export:"export",loop:"loop",block:"block",if:"if",then:"then",else:"else",call:"call",call_indirect:"call_indirect",import:"import",memory:"memory",table:"table",global:"global",anyfunc:"anyfunc",mut:"mut",data:"data",type:"type",elem:"elem",start:"start",offset:"offset"};t.keywords=d;var h="_";var m=new r.FSM({START:[(0,r.makeTransition)(/-|\+/,"AFTER_SIGN"),(0,r.makeTransition)(/nan:0x/,"NAN_HEX",{n:6}),(0,r.makeTransition)(/nan|inf/,"STOP",{n:3}),(0,r.makeTransition)(/0x/,"HEX",{n:2}),(0,r.makeTransition)(/[0-9]/,"DEC"),(0,r.makeTransition)(/\./,"DEC_FRAC")],AFTER_SIGN:[(0,r.makeTransition)(/nan:0x/,"NAN_HEX",{n:6}),(0,r.makeTransition)(/nan|inf/,"STOP",{n:3}),(0,r.makeTransition)(/0x/,"HEX",{n:2}),(0,r.makeTransition)(/[0-9]/,"DEC"),(0,r.makeTransition)(/\./,"DEC_FRAC")],DEC_FRAC:[(0,r.makeTransition)(/[0-9]/,"DEC_FRAC",{allowedSeparator:h}),(0,r.makeTransition)(/e|E/,"DEC_SIGNED_EXP")],DEC:[(0,r.makeTransition)(/[0-9]/,"DEC",{allowedSeparator:h}),(0,r.makeTransition)(/\./,"DEC_FRAC"),(0,r.makeTransition)(/e|E/,"DEC_SIGNED_EXP")],DEC_SIGNED_EXP:[(0,r.makeTransition)(/\+|-/,"DEC_EXP"),(0,r.makeTransition)(/[0-9]/,"DEC_EXP")],DEC_EXP:[(0,r.makeTransition)(/[0-9]/,"DEC_EXP",{allowedSeparator:h})],HEX:[(0,r.makeTransition)(/[0-9|A-F|a-f]/,"HEX",{allowedSeparator:h}),(0,r.makeTransition)(/\./,"HEX_FRAC"),(0,r.makeTransition)(/p|P/,"HEX_SIGNED_EXP")],HEX_FRAC:[(0,r.makeTransition)(/[0-9|A-F|a-f]/,"HEX_FRAC",{allowedSeparator:h}),(0,r.makeTransition)(/p|P|/,"HEX_SIGNED_EXP")],HEX_SIGNED_EXP:[(0,r.makeTransition)(/[0-9|+|-]/,"HEX_EXP")],HEX_EXP:[(0,r.makeTransition)(/[0-9]/,"HEX_EXP",{allowedSeparator:h})],NAN_HEX:[(0,r.makeTransition)(/[0-9|A-F|a-f]/,"NAN_HEX",{allowedSeparator:h})],STOP:[]},"START","STOP");function tokenize(e){var t=0;var n=e[t];var r=1;var i=1;var h=[];function pushToken(e){return function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=n.startColumn||r-String(t).length;delete n.startColumn;var o=n.endColumn||s+String(t).length-1;delete n.endColumn;var a={line:i,column:s};var c={line:i,column:o};h.push(Token(e,t,a,c,n))}}var g=pushToken(p.closeParen);var y=pushToken(p.openParen);var v=pushToken(p.number);var _=pushToken(p.valtype);var b=pushToken(p.name);var E=pushToken(p.identifier);var w=pushToken(p.keyword);var S=pushToken(p.dot);var k=pushToken(p.string);var D=pushToken(p.comment);var x=pushToken(p.equal);function lookahead(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return e.substring(t+r,t+r+n).toLowerCase()}function eatCharacter(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;r+=i;t+=i;n=e[t]}while(t<e.length){if(n===";"&&lookahead()===";"){var C=r;eatCharacter(2);var A="";while(!isNewLine(n)){A+=n;eatCharacter();if(n===undefined){break}}var T=r;D(A,{type:"leading",startColumn:C,endColumn:T});continue}if(n==="("&&lookahead()===";"){var M=r;eatCharacter(2);var O="";while(true){n=e[t];if(n===";"&&lookahead()===")"){eatCharacter(2);break}O+=n;eatCharacter();if(isNewLine(n)){i++;r=0}}var F=r;D(O,{type:"block",startColumn:M,endColumn:F});continue}if(n==="("){y(n);eatCharacter();continue}if(n==="="){x(n);eatCharacter();continue}if(n===")"){g(n);eatCharacter();continue}if(isNewLine(n)){i++;eatCharacter();r=0;continue}if(s.test(n)){eatCharacter();continue}if(n==="$"){var I=r;eatCharacter();var R="";while(c.test(n)){R+=n;eatCharacter()}var P=r;E(R,{startColumn:I,endColumn:P});continue}if(l.test(n)||f.test(lookahead(3,0))||n==="-"||n==="+"){var N=r;var L=m.run(e.slice(t));if(L===""){throw new Error(getCodeFrame(e,i,r)+"Unexpected character "+JSON.stringify(n))}v(L,{startColumn:N});eatCharacter(L.length);if(n&&!o.test(n)&&!s.test(n)){throw new Error(getCodeFrame(e,i,r)+"Unexpected character "+JSON.stringify(n))}continue}if(n==='"'){var B=r;var j="";eatCharacter();while(n!=='"'){if(isNewLine(n)){throw new Error(getCodeFrame(e,i,r)+"Unexpected character "+JSON.stringify(n))}j+=n;eatCharacter()}eatCharacter();var U=r;k(j,{startColumn:B,endColumn:U});continue}if(a.test(n)){var z="";var H=r;while(n&&a.test(n)){z+=n;eatCharacter()}if(n==="."){var V=r;if(u.indexOf(z)!==-1){_(z,{startColumn:H})}else{b(z)}eatCharacter();z="";var G=r;while(a.test(n)){z+=n;eatCharacter()}S(".",{startColumn:V});b(z,{startColumn:G});continue}if(typeof d[z]==="string"){w(z,{startColumn:H});continue}if(u.indexOf(z)!==-1){_(z,{startColumn:H});continue}b(z,{startColumn:H});continue}throw new Error(getCodeFrame(e,i,r)+"Unexpected character "+JSON.stringify(n))}return h}var g=p;t.tokens=g},82925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.print=print;var r=n(98093);var i=_interopRequireDefault(n(11174));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _sliceIterator(e,t){var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done);r=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw s}}return n}function _slicedToArray(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return _sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}var s=false;var o=" ";var a=function quote(e){return'"'.concat(e,'"')};function indent(e){return Array(e).fill(o+o).join("")}function print(e){if(e.type==="Program"){return printProgram(e,0)}else{throw new Error("Unsupported node in print of type: "+String(e.type))}}function printProgram(e,t){return e.body.reduce(function(e,n){if(n.type==="Module"){e+=printModule(n,t+1)}if(n.type==="Func"){e+=printFunc(n,t+1)}if(n.type==="BlockComment"){e+=printBlockComment(n)}if(n.type==="LeadingComment"){e+=printLeadingComment(n)}if(s===false){e+="\n"}return e},"")}function printTypeInstruction(e){var t="";t+="(";t+="type";t+=o;if(e.id!=null){t+=printIndex(e.id);t+=o}t+="(";t+="func";e.functype.params.forEach(function(e){t+=o;t+="(";t+="param";t+=o;t+=printFuncParam(e);t+=")"});e.functype.results.forEach(function(e){t+=o;t+="(";t+="result";t+=o;t+=e;t+=")"});t+=")";t+=")";return t}function printModule(e,t){var n="(";n+="module";if(typeof e.id==="string"){n+=o;n+=e.id}if(s===false){n+="\n"}else{n+=o}e.fields.forEach(function(e){if(s===false){n+=indent(t)}switch(e.type){case"Func":{n+=printFunc(e,t+1);break}case"TypeInstruction":{n+=printTypeInstruction(e);break}case"Table":{n+=printTable(e);break}case"Global":{n+=printGlobal(e,t+1);break}case"ModuleExport":{n+=printModuleExport(e);break}case"ModuleImport":{n+=printModuleImport(e);break}case"Memory":{n+=printMemory(e);break}case"BlockComment":{n+=printBlockComment(e);break}case"LeadingComment":{n+=printLeadingComment(e);break}case"Start":{n+=printStart(e);break}case"Elem":{n+=printElem(e,t);break}case"Data":{n+=printData(e,t);break}default:throw new Error("Unsupported node in printModule: "+String(e.type))}if(s===false){n+="\n"}});n+=")";return n}function printData(e,t){var n="";n+="(";n+="data";n+=o;n+=printIndex(e.memoryIndex);n+=o;n+=printInstruction(e.offset,t);n+=o;n+='"';e.init.values.forEach(function(e){if(e<=31||e==34||e==92||e>=127){n+="\\";n+=("00"+e.toString(16)).substr(-2)}else if(e>255){throw new Error("Unsupported byte in data segment: "+e)}else{n+=String.fromCharCode(e)}});n+='"';n+=")";return n}function printElem(e,t){var n="";n+="(";n+="elem";n+=o;n+=printIndex(e.table);var r=_slicedToArray(e.offset,1),i=r[0];n+=o;n+="(";n+="offset";n+=o;n+=printInstruction(i,t);n+=")";e.funcs.forEach(function(e){n+=o;n+=printIndex(e)});n+=")";return n}function printStart(e){var t="";t+="(";t+="start";t+=o;t+=printIndex(e.index);t+=")";return t}function printLeadingComment(e){if(s===true){return""}var t="";t+=";;";t+=e.value;t+="\n";return t}function printBlockComment(e){if(s===true){return""}var t="";t+="(;";t+=e.value;t+=";)";t+="\n";return t}function printSignature(e){var t="";e.params.forEach(function(e){t+=o;t+="(";t+="param";t+=o;t+=printFuncParam(e);t+=")"});e.results.forEach(function(e){t+=o;t+="(";t+="result";t+=o;t+=e;t+=")"});return t}function printModuleImportDescr(e){var t="";if(e.type==="FuncImportDescr"){t+="(";t+="func";if((0,r.isAnonymous)(e.id)===false){t+=o;t+=printIdentifier(e.id)}t+=printSignature(e.signature);t+=")"}if(e.type==="GlobalType"){t+="(";t+="global";t+=o;t+=printGlobalType(e);t+=")"}if(e.type==="Table"){t+=printTable(e)}return t}function printModuleImport(e){var t="";t+="(";t+="import";t+=o;t+=a(e.module);t+=o;t+=a(e.name);t+=o;t+=printModuleImportDescr(e.descr);t+=")";return t}function printGlobalType(e){var t="";if(e.mutability==="var"){t+="(";t+="mut";t+=o;t+=e.valtype;t+=")"}else{t+=e.valtype}return t}function printGlobal(e,t){var n="";n+="(";n+="global";n+=o;if(e.name!=null&&(0,r.isAnonymous)(e.name)===false){n+=printIdentifier(e.name);n+=o}n+=printGlobalType(e.globalType);n+=o;e.init.forEach(function(e){n+=printInstruction(e,t+1)});n+=")";return n}function printTable(e){var t="";t+="(";t+="table";t+=o;if(e.name!=null&&(0,r.isAnonymous)(e.name)===false){t+=printIdentifier(e.name);t+=o}t+=printLimit(e.limits);t+=o;t+=e.elementType;t+=")";return t}function printFuncParam(e){var t="";if(typeof e.id==="string"){t+="$"+e.id;t+=o}t+=e.valtype;return t}function printFunc(e,t){var n="";n+="(";n+="func";if(e.name!=null){if(e.name.type==="Identifier"&&(0,r.isAnonymous)(e.name)===false){n+=o;n+=printIdentifier(e.name)}}if(e.signature.type==="Signature"){n+=printSignature(e.signature)}else{var i=e.signature;n+=o;n+="(";n+="type";n+=o;n+=printIndex(i);n+=")"}if(e.body.length>0){if(e.body.length===1&&e.body[0].id==="end"){n+=")";return n}if(s===false){n+="\n"}e.body.forEach(function(e){if(e.id!=="end"){n+=indent(t);n+=printInstruction(e,t);if(s===false){n+="\n"}}});n+=indent(t-1)+")"}else{n+=")"}return n}function printInstruction(e,t){switch(e.type){case"Instr":return printGenericInstruction(e,t+1);case"BlockInstruction":return printBlockInstruction(e,t+1);case"IfInstruction":return printIfInstruction(e,t+1);case"CallInstruction":return printCallInstruction(e,t+1);case"CallIndirectInstruction":return printCallIndirectIntruction(e,t+1);case"LoopInstruction":return printLoopInstruction(e,t+1);default:throw new Error("Unsupported instruction: "+JSON.stringify(e.type))}}function printCallIndirectIntruction(e,t){var n="";n+="(";n+="call_indirect";if(e.signature.type==="Signature"){n+=printSignature(e.signature)}else if(e.signature.type==="Identifier"){n+=o;n+="(";n+="type";n+=o;n+=printIdentifier(e.signature);n+=")"}else{throw new Error("CallIndirectInstruction: unsupported signature "+JSON.stringify(e.signature.type))}n+=o;if(e.intrs!=null){e.intrs.forEach(function(r,i){n+=printInstruction(r,t+1);if(i!==e.intrs.length-1){n+=o}})}n+=")";return n}function printLoopInstruction(e,t){var n="";n+="(";n+="loop";if(e.label!=null&&(0,r.isAnonymous)(e.label)===false){n+=o;n+=printIdentifier(e.label)}if(typeof e.resulttype==="string"){n+=o;n+="(";n+="result";n+=o;n+=e.resulttype;n+=")"}if(e.instr.length>0){e.instr.forEach(function(e){if(s===false){n+="\n"}n+=indent(t);n+=printInstruction(e,t+1)});if(s===false){n+="\n";n+=indent(t-1)}}n+=")";return n}function printCallInstruction(e,t){var n="";n+="(";n+="call";n+=o;n+=printIndex(e.index);if(_typeof(e.instrArgs)==="object"){e.instrArgs.forEach(function(e){n+=o;n+=printFuncInstructionArg(e,t+1)})}n+=")";return n}function printIfInstruction(e,t){var n="";n+="(";n+="if";if(e.testLabel!=null&&(0,r.isAnonymous)(e.testLabel)===false){n+=o;n+=printIdentifier(e.testLabel)}if(typeof e.result==="string"){n+=o;n+="(";n+="result";n+=o;n+=e.result;n+=")"}if(e.test.length>0){n+=o;e.test.forEach(function(e){n+=printInstruction(e,t+1)})}if(e.consequent.length>0){if(s===false){n+="\n"}n+=indent(t);n+="(";n+="then";t++;e.consequent.forEach(function(e){if(s===false){n+="\n"}n+=indent(t);n+=printInstruction(e,t+1)});t--;if(s===false){n+="\n";n+=indent(t)}n+=")"}else{if(s===false){n+="\n";n+=indent(t)}n+="(";n+="then";n+=")"}if(e.alternate.length>0){if(s===false){n+="\n"}n+=indent(t);n+="(";n+="else";t++;e.alternate.forEach(function(e){if(s===false){n+="\n"}n+=indent(t);n+=printInstruction(e,t+1)});t--;if(s===false){n+="\n";n+=indent(t)}n+=")"}else{if(s===false){n+="\n";n+=indent(t)}n+="(";n+="else";n+=")"}if(s===false){n+="\n";n+=indent(t-1)}n+=")";return n}function printBlockInstruction(e,t){var n="";n+="(";n+="block";if(e.label!=null&&(0,r.isAnonymous)(e.label)===false){n+=o;n+=printIdentifier(e.label)}if(typeof e.result==="string"){n+=o;n+="(";n+="result";n+=o;n+=e.result;n+=")"}if(e.instr.length>0){e.instr.forEach(function(e){if(s===false){n+="\n"}n+=indent(t);n+=printInstruction(e,t+1)});if(s===false){n+="\n"}n+=indent(t-1);n+=")"}else{n+=")"}return n}function printGenericInstruction(e,t){var n="";n+="(";if(typeof e.object==="string"){n+=e.object;n+="."}n+=e.id;e.args.forEach(function(e){n+=o;n+=printFuncInstructionArg(e,t+1)});n+=")";return n}function printLongNumberLiteral(e){if(typeof e.raw==="string"){return e.raw}var t=e.value,n=t.low,r=t.high;var s=new i.default(n,r);return s.toString()}function printFloatLiteral(e){if(typeof e.raw==="string"){return e.raw}return String(e.value)}function printFuncInstructionArg(e,t){var n="";if(e.type==="NumberLiteral"){n+=printNumberLiteral(e)}if(e.type==="LongNumberLiteral"){n+=printLongNumberLiteral(e)}if(e.type==="Identifier"&&(0,r.isAnonymous)(e)===false){n+=printIdentifier(e)}if(e.type==="ValtypeLiteral"){n+=e.name}if(e.type==="FloatLiteral"){n+=printFloatLiteral(e)}if((0,r.isInstruction)(e)){n+=printInstruction(e,t+1)}return n}function printNumberLiteral(e){if(typeof e.raw==="string"){return e.raw}return String(e.value)}function printModuleExport(e){var t="";t+="(";t+="export";t+=o;t+=a(e.name);if(e.descr.exportType==="Func"){t+=o;t+="(";t+="func";t+=o;t+=printIndex(e.descr.id);t+=")"}else if(e.descr.exportType==="Global"){t+=o;t+="(";t+="global";t+=o;t+=printIndex(e.descr.id);t+=")"}else if(e.descr.exportType==="Memory"||e.descr.exportType==="Mem"){t+=o;t+="(";t+="memory";t+=o;t+=printIndex(e.descr.id);t+=")"}else if(e.descr.exportType==="Table"){t+=o;t+="(";t+="table";t+=o;t+=printIndex(e.descr.id);t+=")"}else{throw new Error("printModuleExport: unknown type: "+e.descr.exportType)}t+=")";return t}function printIdentifier(e){return"$"+e.value}function printIndex(e){if(e.type==="Identifier"){return printIdentifier(e)}else if(e.type==="NumberLiteral"){return printNumberLiteral(e)}else{throw new Error("Unsupported index: "+e.type)}}function printMemory(e){var t="";t+="(";t+="memory";if(e.id!=null){t+=o;t+=printIndex(e.id);t+=o}t+=printLimit(e.limits);t+=")";return t}function printLimit(e){var t="";t+=e.min+"";if(e.max!=null){t+=o;t+=String(e.max)}return t}},3158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=read;t.write=write;function read(e,t,n,r,i){var s,o;var a=i*8-r-1;var c=(1<<a)-1;var u=c>>1;var l=-7;var f=n?i-1:0;var p=n?-1:1;var d=e[t+f];f+=p;s=d&(1<<-l)-1;d>>=-l;l+=a;for(;l>0;s=s*256+e[t+f],f+=p,l-=8){}o=s&(1<<-l)-1;s>>=-l;l+=r;for(;l>0;o=o*256+e[t+f],f+=p,l-=8){}if(s===0){s=1-u}else if(s===c){return o?NaN:(d?-1:1)*Infinity}else{o=o+Math.pow(2,r);s=s-u}return(d?-1:1)*o*Math.pow(2,s-r)}function write(e,t,n,r,i,s){var o,a,c;var u=s*8-i-1;var l=(1<<u)-1;var f=l>>1;var p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var d=r?0:s-1;var h=r?1:-1;var m=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){a=isNaN(t)?1:0;o=l}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(c=Math.pow(2,-o))<1){o--;c*=2}if(o+f>=1){t+=p/c}else{t+=p*Math.pow(2,1-f)}if(t*c>=2){o++;c/=2}if(o+f>=l){a=0;o=l}else if(o+f>=1){a=(t*c-1)*Math.pow(2,i);o=o+f}else{a=t*Math.pow(2,f-1)*Math.pow(2,i);o=0}}for(;i>=8;e[n+d]=a&255,d+=h,a/=256,i-=8){}o=o<<i|a;u+=i;for(;u>0;e[n+d]=o&255,d+=h,o/=256,u-=8){}e[n+d-h]|=m*128}},11174:e=>{e.exports=Long;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function Long(e,t,n){this.low=e|0;this.high=t|0;this.unsigned=!!n}Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:true});function isLong(e){return(e&&e["__isLong__"])===true}Long.isLong=isLong;var n={};var r={};function fromInt(e,t){var i,s,o;if(t){e>>>=0;if(o=0<=e&&e<256){s=r[e];if(s)return s}i=fromBits(e,(e|0)<0?-1:0,true);if(o)r[e]=i;return i}else{e|=0;if(o=-128<=e&&e<128){s=n[e];if(s)return s}i=fromBits(e,e<0?-1:0,false);if(o)n[e]=i;return i}}Long.fromInt=fromInt;function fromNumber(e,t){if(isNaN(e))return t?p:f;if(t){if(e<0)return p;if(e>=c)return y}else{if(e<=-u)return v;if(e+1>=u)return g}if(e<0)return fromNumber(-e,t).neg();return fromBits(e%a|0,e/a|0,t)}Long.fromNumber=fromNumber;function fromBits(e,t,n){return new Long(e,t,n)}Long.fromBits=fromBits;var i=Math.pow;function fromString(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return f;if(typeof t==="number"){n=t,t=false}else{t=!!t}n=n||10;if(n<2||36<n)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");else if(r===0){return fromString(e.substring(1),t,n).neg()}var s=fromNumber(i(n,8));var o=f;for(var a=0;a<e.length;a+=8){var c=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+c),n);if(c<8){var l=fromNumber(i(n,c));o=o.mul(l).add(fromNumber(u))}else{o=o.mul(s);o=o.add(fromNumber(u))}}o.unsigned=t;return o}Long.fromString=fromString;function fromValue(e,t){if(typeof e==="number")return fromNumber(e,t);if(typeof e==="string")return fromString(e,t);return fromBits(e.low,e.high,typeof t==="boolean"?t:e.unsigned)}Long.fromValue=fromValue;var s=1<<16;var o=1<<24;var a=s*s;var c=a*a;var u=c/2;var l=fromInt(o);var f=fromInt(0);Long.ZERO=f;var p=fromInt(0,true);Long.UZERO=p;var d=fromInt(1);Long.ONE=d;var h=fromInt(1,true);Long.UONE=h;var m=fromInt(-1);Long.NEG_ONE=m;var g=fromBits(4294967295|0,2147483647|0,false);Long.MAX_VALUE=g;var y=fromBits(4294967295|0,4294967295|0,true);Long.MAX_UNSIGNED_VALUE=y;var v=fromBits(0,2147483648|0,false);Long.MIN_VALUE=v;var _=Long.prototype;_.toInt=function toInt(){return this.unsigned?this.low>>>0:this.low};_.toNumber=function toNumber(){if(this.unsigned)return(this.high>>>0)*a+(this.low>>>0);return this.high*a+(this.low>>>0)};_.toString=function toString(e){e=e||10;if(e<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(v)){var t=fromNumber(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}else return"-"+this.neg().toString(e)}var s=fromNumber(i(e,6),this.unsigned),o=this;var a="";while(true){var c=o.div(s),u=o.sub(c.mul(s)).toInt()>>>0,l=u.toString(e);o=c;if(o.isZero())return l+a;else{while(l.length<6)l="0"+l;a=""+l+a}}};_.getHighBits=function getHighBits(){return this.high};_.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0};_.getLowBits=function getLowBits(){return this.low};_.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0};_.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(v)?64:this.neg().getNumBitsAbs();var e=this.high!=0?this.high:this.low;for(var t=31;t>0;t--)if((e&1<<t)!=0)break;return this.high!=0?t+33:t+1};_.isZero=function isZero(){return this.high===0&&this.low===0};_.eqz=_.isZero;_.isNegative=function isNegative(){return!this.unsigned&&this.high<0};_.isPositive=function isPositive(){return this.unsigned||this.high>=0};_.isOdd=function isOdd(){return(this.low&1)===1};_.isEven=function isEven(){return(this.low&1)===0};_.equals=function equals(e){if(!isLong(e))e=fromValue(e);if(this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1)return false;return this.high===e.high&&this.low===e.low};_.eq=_.equals;_.notEquals=function notEquals(e){return!this.eq(e)};_.neq=_.notEquals;_.ne=_.notEquals;_.lessThan=function lessThan(e){return this.comp(e)<0};_.lt=_.lessThan;_.lessThanOrEqual=function lessThanOrEqual(e){return this.comp(e)<=0};_.lte=_.lessThanOrEqual;_.le=_.lessThanOrEqual;_.greaterThan=function greaterThan(e){return this.comp(e)>0};_.gt=_.greaterThan;_.greaterThanOrEqual=function greaterThanOrEqual(e){return this.comp(e)>=0};_.gte=_.greaterThanOrEqual;_.ge=_.greaterThanOrEqual;_.compare=function compare(e){if(!isLong(e))e=fromValue(e);if(this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();if(t&&!n)return-1;if(!t&&n)return 1;if(!this.unsigned)return this.sub(e).isNegative()?-1:1;return e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1};_.comp=_.compare;_.negate=function negate(){if(!this.unsigned&&this.eq(v))return v;return this.not().add(d)};_.neg=_.negate;_.add=function add(e){if(!isLong(e))e=fromValue(e);var t=this.high>>>16;var n=this.high&65535;var r=this.low>>>16;var i=this.low&65535;var s=e.high>>>16;var o=e.high&65535;var a=e.low>>>16;var c=e.low&65535;var u=0,l=0,f=0,p=0;p+=i+c;f+=p>>>16;p&=65535;f+=r+a;l+=f>>>16;f&=65535;l+=n+o;u+=l>>>16;l&=65535;u+=t+s;u&=65535;return fromBits(f<<16|p,u<<16|l,this.unsigned)};_.subtract=function subtract(e){if(!isLong(e))e=fromValue(e);return this.add(e.neg())};_.sub=_.subtract;_.multiply=function multiply(e){if(this.isZero())return f;if(!isLong(e))e=fromValue(e);if(t){var n=t["mul"](this.low,this.high,e.low,e.high);return fromBits(n,t["get_high"](),this.unsigned)}if(e.isZero())return f;if(this.eq(v))return e.isOdd()?v:f;if(e.eq(v))return this.isOdd()?v:f;if(this.isNegative()){if(e.isNegative())return this.neg().mul(e.neg());else return this.neg().mul(e).neg()}else if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(l)&&e.lt(l))return fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16;var i=this.high&65535;var s=this.low>>>16;var o=this.low&65535;var a=e.high>>>16;var c=e.high&65535;var u=e.low>>>16;var p=e.low&65535;var d=0,h=0,m=0,g=0;g+=o*p;m+=g>>>16;g&=65535;m+=s*p;h+=m>>>16;m&=65535;m+=o*u;h+=m>>>16;m&=65535;h+=i*p;d+=h>>>16;h&=65535;h+=s*u;d+=h>>>16;h&=65535;h+=o*c;d+=h>>>16;h&=65535;d+=r*p+i*u+s*c+o*a;d&=65535;return fromBits(m<<16|g,d<<16|h,this.unsigned)};_.mul=_.multiply;_.divide=function divide(e){if(!isLong(e))e=fromValue(e);if(e.isZero())throw Error("division by zero");if(t){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1){return this}var n=(this.unsigned?t["div_u"]:t["div_s"])(this.low,this.high,e.low,e.high);return fromBits(n,t["get_high"](),this.unsigned)}if(this.isZero())return this.unsigned?p:f;var r,s,o;if(!this.unsigned){if(this.eq(v)){if(e.eq(d)||e.eq(m))return v;else if(e.eq(v))return d;else{var a=this.shr(1);r=a.div(e).shl(1);if(r.eq(f)){return e.isNegative()?d:m}else{s=this.sub(e.mul(r));o=r.add(s.div(e));return o}}}else if(e.eq(v))return this.unsigned?p:f;if(this.isNegative()){if(e.isNegative())return this.neg().div(e.neg());return this.neg().div(e).neg()}else if(e.isNegative())return this.div(e.neg()).neg();o=f}else{if(!e.unsigned)e=e.toUnsigned();if(e.gt(this))return p;if(e.gt(this.shru(1)))return h;o=p}s=this;while(s.gte(e)){r=Math.max(1,Math.floor(s.toNumber()/e.toNumber()));var c=Math.ceil(Math.log(r)/Math.LN2),u=c<=48?1:i(2,c-48),l=fromNumber(r),g=l.mul(e);while(g.isNegative()||g.gt(s)){r-=u;l=fromNumber(r,this.unsigned);g=l.mul(e)}if(l.isZero())l=d;o=o.add(l);s=s.sub(g)}return o};_.div=_.divide;_.modulo=function modulo(e){if(!isLong(e))e=fromValue(e);if(t){var n=(this.unsigned?t["rem_u"]:t["rem_s"])(this.low,this.high,e.low,e.high);return fromBits(n,t["get_high"](),this.unsigned)}return this.sub(this.div(e).mul(e))};_.mod=_.modulo;_.rem=_.modulo;_.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)};_.and=function and(e){if(!isLong(e))e=fromValue(e);return fromBits(this.low&e.low,this.high&e.high,this.unsigned)};_.or=function or(e){if(!isLong(e))e=fromValue(e);return fromBits(this.low|e.low,this.high|e.high,this.unsigned)};_.xor=function xor(e){if(!isLong(e))e=fromValue(e);return fromBits(this.low^e.low,this.high^e.high,this.unsigned)};_.shiftLeft=function shiftLeft(e){if(isLong(e))e=e.toInt();if((e&=63)===0)return this;else if(e<32)return fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned);else return fromBits(0,this.low<<e-32,this.unsigned)};_.shl=_.shiftLeft;_.shiftRight=function shiftRight(e){if(isLong(e))e=e.toInt();if((e&=63)===0)return this;else if(e<32)return fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned);else return fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)};_.shr=_.shiftRight;_.shiftRightUnsigned=function shiftRightUnsigned(e){if(isLong(e))e=e.toInt();if((e&=63)===0)return this;if(e<32)return fromBits(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned);if(e===32)return fromBits(this.high,0,this.unsigned);return fromBits(this.high>>>e-32,0,this.unsigned)};_.shru=_.shiftRightUnsigned;_.shr_u=_.shiftRightUnsigned;_.rotateLeft=function rotateLeft(e){var t;if(isLong(e))e=e.toInt();if((e&=63)===0)return this;if(e===32)return fromBits(this.high,this.low,this.unsigned);if(e<32){t=32-e;return fromBits(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)}e-=32;t=32-e;return fromBits(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned)};_.rotl=_.rotateLeft;_.rotateRight=function rotateRight(e){var t;if(isLong(e))e=e.toInt();if((e&=63)===0)return this;if(e===32)return fromBits(this.high,this.low,this.unsigned);if(e<32){t=32-e;return fromBits(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)}e-=32;t=32-e;return fromBits(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned)};_.rotr=_.rotateRight;_.toSigned=function toSigned(){if(!this.unsigned)return this;return fromBits(this.low,this.high,false)};_.toUnsigned=function toUnsigned(){if(this.unsigned)return this;return fromBits(this.low,this.high,true)};_.toBytes=function toBytes(e){return e?this.toBytesLE():this.toBytesBE()};_.toBytesLE=function toBytesLE(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]};_.toBytesBE=function toBytesBE(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]};Long.fromBytes=function fromBytes(e,t,n){return n?Long.fromBytesLE(e,t):Long.fromBytesBE(e,t)};Long.fromBytesLE=function fromBytesLE(e,t){return new Long(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)};Long.fromBytesBE=function fromBytesBE(e,t){return new Long(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},20976:function(e,t){(function(e,n){true?n(t):0})(this,function(e){"use strict";var t={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"};var n="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";var r={5:n,"5module":n+" export import",6:n+" const class extends export import super"};var i=/^in(stanceof)?$/;var s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";var a=new RegExp("["+s+"]");var c=new RegExp("["+s+o+"]");s=o=null;var u=[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,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,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,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,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,85,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,159,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,230,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,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938];var l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){var n=65536;for(var r=0;r<t.length;r+=2){n+=t[r];if(n>e){return false}n+=t[r+1];if(n>=e){return true}}}function isIdentifierStart(e,t){if(e<65){return e===36}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,u)}function isIdentifierChar(e,t){if(e<48){return e===36}if(e<58){return true}if(e<65){return false}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&c.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,u)||isInAstralSet(e,l)}var f=function TokenType(e,t){if(t===void 0)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 f(e,{beforeExpr:true,binop:t})}var p={beforeExpr:true},d={startsExpr:true};var h={};function kw(e,t){if(t===void 0)t={};t.keyword=e;return h[e]=new f(e,t)}var m={num:new f("num",d),regexp:new f("regexp",d),string:new f("string",d),name:new f("name",d),eof:new f("eof"),bracketL:new f("[",{beforeExpr:true,startsExpr:true}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:true,startsExpr:true}),braceR:new f("}"),parenL:new f("(",{beforeExpr:true,startsExpr:true}),parenR:new f(")"),comma:new f(",",p),semi:new f(";",p),colon:new f(":",p),dot:new f("."),question:new f("?",p),questionDot:new f("?."),arrow:new f("=>",p),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",p),backQuote:new f("`",d),dollarBraceL:new f("${",{beforeExpr:true,startsExpr:true}),eq:new f("=",{beforeExpr:true,isAssign:true}),assign:new f("_=",{beforeExpr:true,isAssign:true}),incDec:new f("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new f("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),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 f("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new f("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",p),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",p),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",p),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",d),_if:kw("if"),_return:kw("return",p),_switch:kw("switch"),_throw:kw("throw",p),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",d),_super:kw("super",d),_class:kw("class",d),_extends:kw("extends",p),_export:kw("export"),_import:kw("import",d),_null:kw("null",d),_true:kw("true",d),_false:kw("false",d),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var g=/\r\n?|\n|\u2028|\u2029/;var y=new RegExp(g.source,"g");function isNewLine(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var v=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var _=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var b=Object.prototype;var E=b.hasOwnProperty;var w=b.toString;function has(e,t){return E.call(e,t)}var S=Array.isArray||function(e){return w.call(e)==="[object Array]"};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var k=function Position(e,t){this.line=e;this.column=t};k.prototype.offset=function offset(e){return new k(this.line,this.column+e)};var D=function SourceLocation(e,t,n){this.start=t;this.end=n;if(e.sourceFile!==null){this.source=e.sourceFile}};function getLineInfo(e,t){for(var n=1,r=0;;){y.lastIndex=r;var i=y.exec(e);if(i&&i.index<t){++n;r=i.index+i[0].length}else{return new k(n,t-r)}}}var x={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:false,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};function getOptions(e){var t={};for(var n in x){t[n]=e&&has(e,n)?e[n]:x[n]}if(t.ecmaVersion>=2015){t.ecmaVersion-=2009}if(t.allowReserved==null){t.allowReserved=t.ecmaVersion<5}if(S(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(S(t.onComment)){t.onComment=pushComment(t,t.onComment)}return t}function pushComment(e,t){return function(n,r,i,s,o,a){var c={type:n?"Block":"Line",value:r,start:i,end:s};if(e.locations){c.loc=new D(this,o,a)}if(e.ranges){c.range=[i,s]}t.push(c)}}var C=1,A=2,T=C|A,M=4,O=8,F=16,I=32,R=64,P=128;function functionFlags(e,t){return A|(e?M:0)|(t?O:0)}var N=0,L=1,B=2,j=3,U=4,z=5;var H=function Parser(e,n,i){this.options=e=getOptions(e);this.sourceFile=e.sourceFile;this.keywords=wordsRegexp(r[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var s="";if(e.allowReserved!==true){for(var o=e.ecmaVersion;;o--){if(s=t[o]){break}}if(e.sourceType==="module"){s+=" await"}}this.reservedWords=wordsRegexp(s);var a=(s?s+" ":"")+t.strict;this.reservedWordsStrict=wordsRegexp(a);this.reservedWordsStrictBind=wordsRegexp(a+" "+t.strictBind);this.input=String(n);this.containsEsc=false;if(i){this.pos=i;this.lineStart=this.input.lastIndexOf("\n",i-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(g).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=m.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=true;this.inModule=e.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports={};if(this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(C);this.regexpState=null};var V={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true}};H.prototype.parse=function parse(){var e=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(e)};V.inFunction.get=function(){return(this.currentVarScope().flags&A)>0};V.inGenerator.get=function(){return(this.currentVarScope().flags&O)>0};V.inAsync.get=function(){return(this.currentVarScope().flags&M)>0};V.allowSuper.get=function(){return(this.currentThisScope().flags&R)>0};V.allowDirectSuper.get=function(){return(this.currentThisScope().flags&P)>0};V.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};H.prototype.inNonArrowFunction=function inNonArrowFunction(){return(this.currentThisScope().flags&A)>0};H.extend=function extend(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=this;for(var r=0;r<e.length;r++){n=e[r](n)}return n};H.parse=function parse(e,t){return new this(t,e).parse()};H.parseExpressionAt=function parseExpressionAt(e,t,n){var r=new this(n,e,t);r.nextToken();return r.parseExpression()};H.tokenizer=function tokenizer(e,t){return new this(t,e)};Object.defineProperties(H.prototype,V);var G=H.prototype;var q=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;G.strictDirective=function(e){for(;;){_.lastIndex=e;e+=_.exec(this.input)[0].length;var t=q.exec(this.input.slice(e));if(!t){return false}if((t[1]||t[2])==="use strict"){_.lastIndex=e+t[0].length;var n=_.exec(this.input),r=n.index+n[0].length;var i=this.input.charAt(r);return i===";"||i==="}"||g.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length;_.lastIndex=e;e+=_.exec(this.input)[0].length;if(this.input[e]===";"){e++}}};G.eat=function(e){if(this.type===e){this.next();return true}else{return false}};G.isContextual=function(e){return this.type===m.name&&this.value===e&&!this.containsEsc};G.eatContextual=function(e){if(!this.isContextual(e)){return false}this.next();return true};G.expectContextual=function(e){if(!this.eatContextual(e)){this.unexpected()}};G.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||g.test(this.input.slice(this.lastTokEnd,this.start))};G.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};G.semicolon=function(){if(!this.eat(m.semi)&&!this.insertSemicolon()){this.unexpected()}};G.afterTrailingComma=function(e,t){if(this.type===e){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!t){this.next()}return true}};G.expect=function(e){this.eat(e)||this.unexpected()};G.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}G.checkPatternErrors=function(e,t){if(!e){return}if(e.trailingComma>-1){this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element")}var n=t?e.parenthesizedAssign:e.parenthesizedBind;if(n>-1){this.raiseRecoverable(n,"Parenthesized pattern")}};G.checkExpressionErrors=function(e,t){if(!e){return false}var n=e.shorthandAssign;var r=e.doubleProto;if(!t){return n>=0||r>=0}if(n>=0){this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")}if(r>=0){this.raiseRecoverable(r,"Redefinition of __proto__ property")}};G.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)){this.raise(this.yieldPos,"Yield expression cannot be a default value")}if(this.awaitPos){this.raise(this.awaitPos,"Await expression cannot be a default value")}};G.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression"){return this.isSimpleAssignTarget(e.expression)}return e.type==="Identifier"||e.type==="MemberExpression"};var W=H.prototype;W.parseTopLevel=function(e){var t={};if(!e.body){e.body=[]}while(this.type!==m.eof){var n=this.parseStatement(null,true,t);e.body.push(n)}if(this.inModule){for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}}this.adaptDirectivePrologue(e.body);this.next();e.sourceType=this.options.sourceType;return this.finishNode(e,"Program")};var K={kind:"loop"},X={kind:"switch"};W.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let")){return false}_.lastIndex=this.pos;var t=_.exec(this.input);var n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91){return true}if(e){return false}if(r===123){return true}if(isIdentifierStart(r,true)){var s=n+1;while(isIdentifierChar(this.input.charCodeAt(s),true)){++s}var o=this.input.slice(n,s);if(!i.test(o)){return true}}return false};W.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}_.lastIndex=this.pos;var e=_.exec(this.input);var t=this.pos+e[0].length;return!g.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!isIdentifierChar(this.input.charAt(t+8)))};W.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),s;if(this.isLet(e)){r=m._var;s="let"}switch(r){case m._break:case m._continue:return this.parseBreakContinueStatement(i,r.keyword);case m._debugger:return this.parseDebuggerStatement(i);case m._do:return this.parseDoStatement(i);case m._for:return this.parseForStatement(i);case m._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(i,false,!e);case m._class:if(e){this.unexpected()}return this.parseClass(i,true);case m._if:return this.parseIfStatement(i);case m._return:return this.parseReturnStatement(i);case m._switch:return this.parseSwitchStatement(i);case m._throw:return this.parseThrowStatement(i);case m._try:return this.parseTryStatement(i);case m._const:case m._var:s=s||this.value;if(e&&s!=="var"){this.unexpected()}return this.parseVarStatement(i,s);case m._while:return this.parseWhileStatement(i);case m._with:return this.parseWithStatement(i);case m.braceL:return this.parseBlock(true,i);case m.semi:return this.parseEmptyStatement(i);case m._export:case m._import:if(this.options.ecmaVersion>10&&r===m._import){_.lastIndex=this.pos;var o=_.exec(this.input);var a=this.pos+o[0].length,c=this.input.charCodeAt(a);if(c===40||c===46){return this.parseExpressionStatement(i,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!t){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return r===m._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction()){if(e){this.unexpected()}this.next();return this.parseFunctionStatement(i,true,!e)}var u=this.value,l=this.parseExpression();if(r===m.name&&l.type==="Identifier"&&this.eat(m.colon)){return this.parseLabeledStatement(i,u,l,e)}else{return this.parseExpressionStatement(i,l)}}};W.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next();if(this.eat(m.semi)||this.insertSemicolon()){e.label=null}else if(this.type!==m.name){this.unexpected()}else{e.label=this.parseIdent();this.semicolon()}var r=0;for(;r<this.labels.length;++r){var i=this.labels[r];if(e.label==null||i.name===e.label.name){if(i.kind!=null&&(n||i.kind==="loop")){break}if(e.label&&n){break}}}if(r===this.labels.length){this.raise(e.start,"Unsyntactic "+t)}return this.finishNode(e,n?"BreakStatement":"ContinueStatement")};W.parseDebuggerStatement=function(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")};W.parseDoStatement=function(e){this.next();this.labels.push(K);e.body=this.parseStatement("do");this.labels.pop();this.expect(m._while);e.test=this.parseParenExpression();if(this.options.ecmaVersion>=6){this.eat(m.semi)}else{this.semicolon()}return this.finishNode(e,"DoWhileStatement")};W.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(K);this.enterScope(0);this.expect(m.parenL);if(this.type===m.semi){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}var n=this.isLet();if(this.type===m._var||this.type===m._const||n){var r=this.startNode(),i=n?"let":this.value;this.next();this.parseVar(r,true,i);this.finishNode(r,"VariableDeclaration");if((this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===m._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}return this.parseForIn(e,r)}if(t>-1){this.unexpected(t)}return this.parseFor(e,r)}var s=new DestructuringErrors;var o=this.parseExpression(true,s);if(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of")){if(this.options.ecmaVersion>=9){if(this.type===m._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}this.toAssignable(o,false,s);this.checkLVal(o);return this.parseForIn(e,o)}else{this.checkExpressionErrors(s,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,o)};W.parseFunctionStatement=function(e,t,n){this.next();return this.parseFunction(e,Y|(n?0:Q),false,t)};W.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(m._else)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")};W.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(m.semi)||this.insertSemicolon()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};W.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(m.braceL);this.labels.push(X);this.enterScope(0);var t;for(var n=false;this.type!==m.braceR;){if(this.type===m._case||this.type===m._default){var r=this.type===m._case;if(t){this.finishNode(t,"SwitchCase")}e.cases.push(t=this.startNode());t.consequent=[];this.next();if(r){t.test=this.parseExpression()}else{if(n){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}n=true;t.test=null}this.expect(m.colon)}else{if(!t){this.unexpected()}t.consequent.push(this.parseStatement(null))}}this.exitScope();if(t){this.finishNode(t,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};W.parseThrowStatement=function(e){this.next();if(g.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var J=[];W.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===m._catch){var t=this.startNode();this.next();if(this.eat(m.parenL)){t.param=this.parseBindingAtom();var n=t.param.type==="Identifier";this.enterScope(n?I:0);this.checkLVal(t.param,n?U:B);this.expect(m.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}t.param=null;this.enterScope(0)}t.body=this.parseBlock(false);this.exitScope();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(m._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,"Missing catch or finally clause")}return this.finishNode(e,"TryStatement")};W.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};W.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(K);e.body=this.parseStatement("while");this.labels.pop();return this.finishNode(e,"WhileStatement")};W.parseWithStatement=function(e){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();e.object=this.parseParenExpression();e.body=this.parseStatement("with");return this.finishNode(e,"WithStatement")};W.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};W.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){var o=s[i];if(o.name===t){this.raise(n.start,"Label '"+t+"' is already declared")}}var a=this.type.isLoop?"loop":this.type===m._switch?"switch":null;for(var c=this.labels.length-1;c>=0;c--){var u=this.labels[c];if(u.statementStart===e.start){u.statementStart=this.start;u.kind=a}else{break}}this.labels.push({name:t,kind:a,statementStart:this.start});e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label");this.labels.pop();e.label=n;return this.finishNode(e,"LabeledStatement")};W.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};W.parseBlock=function(e,t,n){if(e===void 0)e=true;if(t===void 0)t=this.startNode();t.body=[];this.expect(m.braceL);if(e){this.enterScope(0)}while(this.type!==m.braceR){var r=this.parseStatement(null);t.body.push(r)}if(n){this.strict=false}this.next();if(e){this.exitScope()}return this.finishNode(t,"BlockStatement")};W.parseFor=function(e,t){e.init=t;this.expect(m.semi);e.test=this.type===m.semi?null:this.parseExpression();this.expect(m.semi);e.update=this.type===m.parenR?null:this.parseExpression();this.expect(m.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,"ForStatement")};W.parseForIn=function(e,t){var n=this.type===m._in;this.next();if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer")}else if(t.type==="AssignmentPattern"){this.raise(t.start,"Invalid left-hand side in for-loop")}e.left=t;e.right=n?this.parseExpression():this.parseMaybeAssign();this.expect(m.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,n?"ForInStatement":"ForOfStatement")};W.parseVar=function(e,t,n){e.declarations=[];e.kind=n;for(;;){var r=this.startNode();this.parseVarId(r,n);if(this.eat(m.eq)){r.init=this.parseMaybeAssign(t)}else if(n==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(r.id.type!=="Identifier"&&!(t&&(this.type===m._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{r.init=null}e.declarations.push(this.finishNode(r,"VariableDeclarator"));if(!this.eat(m.comma)){break}}return e};W.parseVarId=function(e,t){e.id=this.parseBindingAtom();this.checkLVal(e.id,t==="var"?L:B,false)};var Y=1,Q=2,Z=4;W.parseFunction=function(e,t,n,r){this.initFunction(e);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r){if(this.type===m.star&&t&Q){this.unexpected()}e.generator=this.eat(m.star)}if(this.options.ecmaVersion>=8){e.async=!!r}if(t&Y){e.id=t&Z&&this.type!==m.name?null:this.parseIdent();if(e.id&&!(t&Q)){this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?L:B:j)}}var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(e.async,e.generator));if(!(t&Y)){e.id=this.type===m.name?this.parseIdent():null}this.parseFunctionParams(e);this.parseFunctionBody(e,n,false);this.yieldPos=i;this.awaitPos=s;this.awaitIdentPos=o;return this.finishNode(e,t&Y?"FunctionDeclaration":"FunctionExpression")};W.parseFunctionParams=function(e){this.expect(m.parenL);e.params=this.parseBindingList(m.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};W.parseClass=function(e,t){this.next();var n=this.strict;this.strict=true;this.parseClassId(e,t);this.parseClassSuper(e);var r=this.startNode();var i=false;r.body=[];this.expect(m.braceL);while(this.type!==m.braceR){var s=this.parseClassElement(e.superClass!==null);if(s){r.body.push(s);if(s.type==="MethodDefinition"&&s.kind==="constructor"){if(i){this.raise(s.start,"Duplicate constructor in the same class")}i=true}}}this.strict=n;this.next();e.body=this.finishNode(r,"ClassBody");return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};W.parseClassElement=function(e){var t=this;if(this.eat(m.semi)){return null}var n=this.startNode();var r=function(e,r){if(r===void 0)r=false;var i=t.start,s=t.startLoc;if(!t.eatContextual(e)){return false}if(t.type!==m.parenL&&(!r||!t.canInsertSemicolon())){return true}if(n.key){t.unexpected()}n.computed=false;n.key=t.startNodeAt(i,s);n.key.name=e;t.finishNode(n.key,"Identifier");return false};n.kind="method";n.static=r("static");var i=this.eat(m.star);var s=false;if(!i){if(this.options.ecmaVersion>=8&&r("async",true)){s=true;i=this.options.ecmaVersion>=9&&this.eat(m.star)}else if(r("get")){n.kind="get"}else if(r("set")){n.kind="set"}}if(!n.key){this.parsePropertyName(n)}var o=n.key;var a=false;if(!n.computed&&!n.static&&(o.type==="Identifier"&&o.name==="constructor"||o.type==="Literal"&&o.value==="constructor")){if(n.kind!=="method"){this.raise(o.start,"Constructor can't have get/set modifier")}if(i){this.raise(o.start,"Constructor can't be a generator")}if(s){this.raise(o.start,"Constructor can't be an async method")}n.kind="constructor";a=e}else if(n.static&&o.type==="Identifier"&&o.name==="prototype"){this.raise(o.start,"Classes may not have a static property named prototype")}this.parseClassMethod(n,i,s,a);if(n.kind==="get"&&n.value.params.length!==0){this.raiseRecoverable(n.value.start,"getter should have no params")}if(n.kind==="set"&&n.value.params.length!==1){this.raiseRecoverable(n.value.start,"setter should have exactly one param")}if(n.kind==="set"&&n.value.params[0].type==="RestElement"){this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params")}return n};W.parseClassMethod=function(e,t,n,r){e.value=this.parseMethod(t,n,r);return this.finishNode(e,"MethodDefinition")};W.parseClassId=function(e,t){if(this.type===m.name){e.id=this.parseIdent();if(t){this.checkLVal(e.id,B,false)}}else{if(t===true){this.unexpected()}e.id=null}};W.parseClassSuper=function(e){e.superClass=this.eat(m._extends)?this.parseExprSubscripts():null};W.parseExport=function(e,t){this.next();if(this.eat(m.star)){if(this.options.ecmaVersion>=11){if(this.eatContextual("as")){e.exported=this.parseIdent(true);this.checkExport(t,e.exported.name,this.lastTokStart)}else{e.exported=null}}this.expectContextual("from");if(this.type!==m.string){this.unexpected()}e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(m._default)){this.checkExport(t,"default",this.lastTokStart);var n;if(this.type===m._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next();if(n){this.next()}e.declaration=this.parseFunction(r,Y|Z,false,n)}else if(this.type===m._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else{e.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(null);if(e.declaration.type==="VariableDeclaration"){this.checkVariableExport(t,e.declaration.declarations)}else{this.checkExport(t,e.declaration.id.name,e.declaration.id.start)}e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers(t);if(this.eatContextual("from")){if(this.type!==m.string){this.unexpected()}e.source=this.parseExprAtom()}else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local);this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};W.checkExport=function(e,t,n){if(!e){return}if(has(e,t)){this.raiseRecoverable(n,"Duplicate export '"+t+"'")}e[t]=true};W.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier"){this.checkExport(e,t.name,t.start)}else if(n==="ObjectPattern"){for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}}else if(n==="ArrayPattern"){for(var o=0,a=t.elements;o<a.length;o+=1){var c=a[o];if(c){this.checkPatternExport(e,c)}}}else if(n==="Property"){this.checkPatternExport(e,t.value)}else if(n==="AssignmentPattern"){this.checkPatternExport(e,t.left)}else if(n==="RestElement"){this.checkPatternExport(e,t.argument)}else if(n==="ParenthesizedExpression"){this.checkPatternExport(e,t.expression)}};W.checkVariableExport=function(e,t){if(!e){return}for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}};W.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};W.parseExportSpecifiers=function(e){var t=[],n=true;this.expect(m.braceL);while(!this.eat(m.braceR)){if(!n){this.expect(m.comma);if(this.afterTrailingComma(m.braceR)){break}}else{n=false}var r=this.startNode();r.local=this.parseIdent(true);r.exported=this.eatContextual("as")?this.parseIdent(true):r.local;this.checkExport(e,r.exported.name,r.exported.start);t.push(this.finishNode(r,"ExportSpecifier"))}return t};W.parseImport=function(e){this.next();if(this.type===m.string){e.specifiers=J;e.source=this.parseExprAtom()}else{e.specifiers=this.parseImportSpecifiers();this.expectContextual("from");e.source=this.type===m.string?this.parseExprAtom():this.unexpected()}this.semicolon();return this.finishNode(e,"ImportDeclaration")};W.parseImportSpecifiers=function(){var e=[],t=true;if(this.type===m.name){var n=this.startNode();n.local=this.parseIdent();this.checkLVal(n.local,B);e.push(this.finishNode(n,"ImportDefaultSpecifier"));if(!this.eat(m.comma)){return e}}if(this.type===m.star){var r=this.startNode();this.next();this.expectContextual("as");r.local=this.parseIdent();this.checkLVal(r.local,B);e.push(this.finishNode(r,"ImportNamespaceSpecifier"));return e}this.expect(m.braceL);while(!this.eat(m.braceR)){if(!t){this.expect(m.comma);if(this.afterTrailingComma(m.braceR)){break}}else{t=false}var i=this.startNode();i.imported=this.parseIdent(true);if(this.eatContextual("as")){i.local=this.parseIdent()}else{this.checkUnreserved(i.imported);i.local=i.imported}this.checkLVal(i.local,B);e.push(this.finishNode(i,"ImportSpecifier"))}return e};W.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t){e[t].directive=e[t].expression.raw.slice(1,-1)}};W.isDirectiveCandidate=function(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var $=H.prototype;$.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e){switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await"){this.raise(e.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";if(n){this.checkPatternErrors(n,true)}for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t);if(s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")){this.raise(s.argument.start,"Unexpected token")}}break;case"Property":if(e.kind!=="init"){this.raise(e.key.start,"Object pattern can't contain getter or setter")}this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern";if(n){this.checkPatternErrors(n,true)}this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement";this.toAssignable(e.argument,t);if(e.argument.type==="AssignmentPattern"){this.raise(e.argument.start,"Rest elements cannot have a default value")}break;case"AssignmentExpression":if(e.operator!=="="){this.raise(e.left.end,"Only '=' operator can be used for specifying default value.")}e.type="AssignmentPattern";delete e.operator;this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t){break}default:this.raise(e.start,"Assigning to rvalue")}}else if(n){this.checkPatternErrors(n,true)}return e};$.toAssignableList=function(e,t){var n=e.length;for(var r=0;r<n;r++){var i=e[r];if(i){this.toAssignable(i,t)}}if(n){var s=e[n-1];if(this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"){this.unexpected(s.argument.start)}}return e};$.parseSpread=function(e){var t=this.startNode();this.next();t.argument=this.parseMaybeAssign(false,e);return this.finishNode(t,"SpreadElement")};$.parseRestBinding=function(){var e=this.startNode();this.next();if(this.options.ecmaVersion===6&&this.type!==m.name){this.unexpected()}e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")};$.parseBindingAtom=function(){if(this.options.ecmaVersion>=6){switch(this.type){case m.bracketL:var e=this.startNode();this.next();e.elements=this.parseBindingList(m.bracketR,true,true);return this.finishNode(e,"ArrayPattern");case m.braceL:return this.parseObj(true)}}return this.parseIdent()};$.parseBindingList=function(e,t,n){var r=[],i=true;while(!this.eat(e)){if(i){i=false}else{this.expect(m.comma)}if(t&&this.type===m.comma){r.push(null)}else if(n&&this.afterTrailingComma(e)){break}else if(this.type===m.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s);r.push(s);if(this.type===m.comma){this.raise(this.start,"Comma is not permitted after the rest element")}this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o);r.push(o)}}return r};$.parseBindingListItem=function(e){return e};$.parseMaybeDefault=function(e,t,n){n=n||this.parseBindingAtom();if(this.options.ecmaVersion<6||!this.eat(m.eq)){return n}var r=this.startNodeAt(e,t);r.left=n;r.right=this.parseMaybeAssign();return this.finishNode(r,"AssignmentPattern")};$.checkLVal=function(e,t,n){if(t===void 0)t=N;switch(e.type){case"Identifier":if(t===B&&e.name==="let"){this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name")}if(this.strict&&this.reservedWordsStrictBind.test(e.name)){this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode")}if(n){if(has(n,e.name)){this.raiseRecoverable(e.start,"Argument name clash")}n[e.name]=true}if(t!==N&&t!==z){this.declareName(e.name,t,e.start)}break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(t){this.raiseRecoverable(e.start,"Binding member expression")}break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var c=a[o];if(c){this.checkLVal(c,t,n)}}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var ee=H.prototype;ee.checkPropClash=function(e,t,n){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement"){return}if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand)){return}var r=e.key;var i;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){if(i==="__proto__"&&s==="init"){if(t.proto){if(n){if(n.doubleProto<0){n.doubleProto=r.start}}else{this.raiseRecoverable(r.start,"Redefinition of __proto__ property")}}t.proto=true}return}i="$"+i;var o=t[i];if(o){var a;if(s==="init"){a=this.strict&&o.init||o.get||o.set}else{a=o.init||o[s]}if(a){this.raiseRecoverable(r.start,"Redefinition of property")}}else{o=t[i]={init:false,get:false,set:false}}o[s]=true};ee.parseExpression=function(e,t){var n=this.start,r=this.startLoc;var i=this.parseMaybeAssign(e,t);if(this.type===m.comma){var s=this.startNodeAt(n,r);s.expressions=[i];while(this.eat(m.comma)){s.expressions.push(this.parseMaybeAssign(e,t))}return this.finishNode(s,"SequenceExpression")}return i};ee.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator){return this.parseYield(e)}else{this.exprAllowed=false}}var r=false,i=-1,s=-1;if(t){i=t.parenthesizedAssign;s=t.trailingComma;t.parenthesizedAssign=t.trailingComma=-1}else{t=new DestructuringErrors;r=true}var o=this.start,a=this.startLoc;if(this.type===m.parenL||this.type===m.name){this.potentialArrowAt=this.start}var c=this.parseMaybeConditional(e,t);if(n){c=n.call(this,c,o,a)}if(this.type.isAssign){var u=this.startNodeAt(o,a);u.operator=this.value;u.left=this.type===m.eq?this.toAssignable(c,false,t):c;if(!r){t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1}if(t.shorthandAssign>=u.left.start){t.shorthandAssign=-1}this.checkLVal(c);this.next();u.right=this.parseMaybeAssign(e);return this.finishNode(u,"AssignmentExpression")}else{if(r){this.checkExpressionErrors(t,true)}}if(i>-1){t.parenthesizedAssign=i}if(s>-1){t.trailingComma=s}return c};ee.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc;var i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t)){return i}if(this.eat(m.question)){var s=this.startNodeAt(n,r);s.test=i;s.consequent=this.parseMaybeAssign();this.expect(m.colon);s.alternate=this.parseMaybeAssign(e);return this.finishNode(s,"ConditionalExpression")}return i};ee.parseExprOps=function(e,t){var n=this.start,r=this.startLoc;var i=this.parseMaybeUnary(t,false);if(this.checkExpressionErrors(t)){return i}return i.start===n&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,n,r,-1,e)};ee.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==m._in)){if(s>r){var o=this.type===m.logicalOR||this.type===m.logicalAND;var a=this.type===m.coalesce;if(a){s=m.logicalAND.binop}var c=this.value;this.next();var u=this.start,l=this.startLoc;var f=this.parseExprOp(this.parseMaybeUnary(null,false),u,l,s,i);var p=this.buildBinary(t,n,e,f,c,o||a);if(o&&this.type===m.coalesce||a&&(this.type===m.logicalOR||this.type===m.logicalAND)){this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses")}return this.parseExprOp(p,t,n,r,i)}}return e};ee.buildBinary=function(e,t,n,r,i,s){var o=this.startNodeAt(e,t);o.left=n;o.operator=i;o.right=r;return this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};ee.parseMaybeUnary=function(e,t){var n=this.start,r=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)){i=this.parseAwait();t=true}else if(this.type.prefix){var s=this.startNode(),o=this.type===m.incDec;s.operator=this.value;s.prefix=true;this.next();s.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(o){this.checkLVal(s.argument)}else if(this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"){this.raiseRecoverable(s.start,"Deleting local variable in strict mode")}else{t=true}i=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{i=this.parseExprSubscripts(e);if(this.checkExpressionErrors(e)){return i}while(this.type.postfix&&!this.canInsertSemicolon()){var a=this.startNodeAt(n,r);a.operator=this.value;a.prefix=false;a.argument=i;this.checkLVal(i);this.next();i=this.finishNode(a,"UpdateExpression")}}if(!t&&this.eat(m.starstar)){return this.buildBinary(n,r,i,this.parseMaybeUnary(null,false),"**",false)}else{return i}};ee.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc;var r=this.parseExprAtom(e);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")"){return r}var i=this.parseSubscripts(r,t,n);if(e&&i.type==="MemberExpression"){if(e.parenthesizedAssign>=i.start){e.parenthesizedAssign=-1}if(e.parenthesizedBind>=i.start){e.parenthesizedBind=-1}}return i};ee.parseSubscripts=function(e,t,n,r){var i=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start;var s=false;while(true){var o=this.parseSubscript(e,t,n,r,i,s);if(o.optional){s=true}if(o===e||o.type==="ArrowFunctionExpression"){if(s){var a=this.startNodeAt(t,n);a.expression=o;o=this.finishNode(a,"ChainExpression")}return o}e=o}};ee.parseSubscript=function(e,t,n,r,i,s){var o=this.options.ecmaVersion>=11;var a=o&&this.eat(m.questionDot);if(r&&a){this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions")}var c=this.eat(m.bracketL);if(c||a&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var u=this.startNodeAt(t,n);u.object=e;u.property=c?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never");u.computed=!!c;if(c){this.expect(m.bracketR)}if(o){u.optional=a}e=this.finishNode(u,"MemberExpression")}else if(!r&&this.eat(m.parenL)){var l=new DestructuringErrors,f=this.yieldPos,p=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;var h=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,false,l);if(i&&!a&&!this.canInsertSemicolon()&&this.eat(m.arrow)){this.checkPatternErrors(l,false);this.checkYieldAwaitInDefaultParams();if(this.awaitIdentPos>0){this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function")}this.yieldPos=f;this.awaitPos=p;this.awaitIdentPos=d;return this.parseArrowExpression(this.startNodeAt(t,n),h,true)}this.checkExpressionErrors(l,true);this.yieldPos=f||this.yieldPos;this.awaitPos=p||this.awaitPos;this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e;g.arguments=h;if(o){g.optional=a}e=this.finishNode(g,"CallExpression")}else if(this.type===m.backQuote){if(a||s){this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions")}var y=this.startNodeAt(t,n);y.tag=e;y.quasi=this.parseTemplate({isTagged:true});e=this.finishNode(y,"TaggedTemplateExpression")}return e};ee.parseExprAtom=function(e){if(this.type===m.slash){this.readRegexp()}var t,n=this.potentialArrowAt===this.start;switch(this.type){case m._super:if(!this.allowSuper){this.raise(this.start,"'super' keyword outside a method")}t=this.startNode();this.next();if(this.type===m.parenL&&!this.allowDirectSuper){this.raise(t.start,"super() call outside constructor of a subclass")}if(this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL){this.unexpected()}return this.finishNode(t,"Super");case m._this:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case m.name:var r=this.start,i=this.startLoc,s=this.containsEsc;var o=this.parseIdent(false);if(this.options.ecmaVersion>=8&&!s&&o.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function)){return this.parseFunction(this.startNodeAt(r,i),0,false,true)}if(n&&!this.canInsertSemicolon()){if(this.eat(m.arrow)){return this.parseArrowExpression(this.startNodeAt(r,i),[o],false)}if(this.options.ecmaVersion>=8&&o.name==="async"&&this.type===m.name&&!s){o=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(m.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(r,i),[o],true)}}return o;case m.regexp:var a=this.value;t=this.parseLiteral(a.value);t.regex={pattern:a.pattern,flags:a.flags};return t;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:t=this.startNode();t.value=this.type===m._null?null:this.type===m._true;t.raw=this.type.keyword;this.next();return this.finishNode(t,"Literal");case m.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(n);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)){e.parenthesizedAssign=c}if(e.parenthesizedBind<0){e.parenthesizedBind=c}}return u;case m.bracketL:t=this.startNode();this.next();t.elements=this.parseExprList(m.bracketR,true,true,e);return this.finishNode(t,"ArrayExpression");case m.braceL:return this.parseObj(false,e);case m._function:t=this.startNode();this.next();return this.parseFunction(t,0);case m._class:return this.parseClass(this.startNode(),false);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};ee.parseExprImport=function(){var e=this.startNode();if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword import")}var t=this.parseIdent(true);switch(this.type){case m.parenL:return this.parseDynamicImport(e);case m.dot:e.meta=t;return this.parseImportMeta(e);default:this.unexpected()}};ee.parseDynamicImport=function(e){this.next();e.source=this.parseMaybeAssign();if(!this.eat(m.parenR)){var t=this.start;if(this.eat(m.comma)&&this.eat(m.parenR)){this.raiseRecoverable(t,"Trailing comma is not allowed in import()")}else{this.unexpected(t)}}return this.finishNode(e,"ImportExpression")};ee.parseImportMeta=function(e){this.next();var t=this.containsEsc;e.property=this.parseIdent(true);if(e.property.name!=="meta"){this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'")}if(t){this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters")}if(this.options.sourceType!=="module"){this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module")}return this.finishNode(e,"MetaProperty")};ee.parseLiteral=function(e){var t=this.startNode();t.value=e;t.raw=this.input.slice(this.start,this.end);if(t.raw.charCodeAt(t.raw.length-1)===110){t.bigint=t.raw.slice(0,-1).replace(/_/g,"")}this.next();return this.finishNode(t,"Literal")};ee.parseParenExpression=function(){this.expect(m.parenL);var e=this.parseExpression();this.expect(m.parenR);return e};ee.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,r,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,o=this.startLoc;var a=[],c=true,u=false;var l=new DestructuringErrors,f=this.yieldPos,p=this.awaitPos,d;this.yieldPos=0;this.awaitPos=0;while(this.type!==m.parenR){c?c=false:this.expect(m.comma);if(i&&this.afterTrailingComma(m.parenR,true)){u=true;break}else if(this.type===m.ellipsis){d=this.start;a.push(this.parseParenItem(this.parseRestBinding()));if(this.type===m.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{a.push(this.parseMaybeAssign(false,l,this.parseParenItem))}}var h=this.start,g=this.startLoc;this.expect(m.parenR);if(e&&!this.canInsertSemicolon()&&this.eat(m.arrow)){this.checkPatternErrors(l,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=f;this.awaitPos=p;return this.parseParenArrowList(t,n,a)}if(!a.length||u){this.unexpected(this.lastTokStart)}if(d){this.unexpected(d)}this.checkExpressionErrors(l,true);this.yieldPos=f||this.yieldPos;this.awaitPos=p||this.awaitPos;if(a.length>1){r=this.startNodeAt(s,o);r.expressions=a;this.finishNodeAt(r,"SequenceExpression",h,g)}else{r=a[0]}}else{r=this.parseParenExpression()}if(this.options.preserveParens){var y=this.startNodeAt(t,n);y.expression=r;return this.finishNode(y,"ParenthesizedExpression")}else{return r}};ee.parseParenItem=function(e){return e};ee.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var te=[];ee.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var e=this.startNode();var t=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(m.dot)){e.meta=t;var n=this.containsEsc;e.property=this.parseIdent(true);if(e.property.name!=="target"){this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'")}if(n){this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters")}if(!this.inNonArrowFunction()){this.raiseRecoverable(e.start,"'new.target' can only be used in functions")}return this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,s=this.type===m._import;e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,true);if(s&&e.callee.type==="ImportExpression"){this.raise(r,"Cannot use new with import()")}if(this.eat(m.parenL)){e.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,false)}else{e.arguments=te}return this.finishNode(e,"NewExpression")};ee.parseTemplateElement=function(e){var t=e.isTagged;var n=this.startNode();if(this.type===m.invalidTemplate){if(!t){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}n.value={raw:this.value,cooked:null}}else{n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();n.tail=this.type===m.backQuote;return this.finishNode(n,"TemplateElement")};ee.parseTemplate=function(e){if(e===void 0)e={};var t=e.isTagged;if(t===void 0)t=false;var n=this.startNode();this.next();n.expressions=[];var r=this.parseTemplateElement({isTagged:t});n.quasis=[r];while(!r.tail){if(this.type===m.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(m.dollarBraceL);n.expressions.push(this.parseExpression());this.expect(m.braceR);n.quasis.push(r=this.parseTemplateElement({isTagged:t}))}this.next();return this.finishNode(n,"TemplateLiteral")};ee.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!g.test(this.input.slice(this.lastTokEnd,this.start))};ee.parseObj=function(e,t){var n=this.startNode(),r=true,i={};n.properties=[];this.next();while(!this.eat(m.braceR)){if(!r){this.expect(m.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR)){break}}else{r=false}var s=this.parseProperty(e,t);if(!e){this.checkPropClash(s,i,t)}n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};ee.parseProperty=function(e,t){var n=this.startNode(),r,i,s,o;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis)){if(e){n.argument=this.parseIdent(false);if(this.type===m.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(n,"RestElement")}if(this.type===m.parenL&&t){if(t.parenthesizedAssign<0){t.parenthesizedAssign=this.start}if(t.parenthesizedBind<0){t.parenthesizedBind=this.start}}n.argument=this.parseMaybeAssign(false,t);if(this.type===m.comma&&t&&t.trailingComma<0){t.trailingComma=this.start}return this.finishNode(n,"SpreadElement")}if(this.options.ecmaVersion>=6){n.method=false;n.shorthand=false;if(e||t){s=this.start;o=this.startLoc}if(!e){r=this.eat(m.star)}}var a=this.containsEsc;this.parsePropertyName(n);if(!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)){i=true;r=this.options.ecmaVersion>=9&&this.eat(m.star);this.parsePropertyName(n,t)}else{i=false}this.parsePropertyValue(n,e,r,i,s,o,t,a);return this.finishNode(n,"Property")};ee.parsePropertyValue=function(e,t,n,r,i,s,o,a){if((n||r)&&this.type===m.colon){this.unexpected()}if(this.eat(m.colon)){e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,o);e.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===m.parenL){if(t){this.unexpected()}e.kind="init";e.method=true;e.value=this.parseMethod(n,r)}else if(!t&&!a&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq)){if(n||r){this.unexpected()}e.kind=e.key.name;this.parsePropertyName(e);e.value=this.parseMethod(false);var c=e.kind==="get"?0:1;if(e.value.params.length!==c){var u=e.value.start;if(e.kind==="get"){this.raiseRecoverable(u,"getter should have no params")}else{this.raiseRecoverable(u,"setter should have exactly one param")}}else{if(e.kind==="set"&&e.value.params[0].type==="RestElement"){this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(n||r){this.unexpected()}this.checkUnreserved(e.key);if(e.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=i}e.kind="init";if(t){e.value=this.parseMaybeDefault(i,s,e.key)}else if(this.type===m.eq&&o){if(o.shorthandAssign<0){o.shorthandAssign=this.start}e.value=this.parseMaybeDefault(i,s,e.key)}else{e.value=e.key}e.shorthand=true}else{this.unexpected()}};ee.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL)){e.computed=true;e.key=this.parseMaybeAssign();this.expect(m.bracketR);return e.key}else{e.computed=false}}return e.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ee.initFunction=function(e){e.id=null;if(this.options.ecmaVersion>=6){e.generator=e.expression=false}if(this.options.ecmaVersion>=8){e.async=false}};ee.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;this.initFunction(r);if(this.options.ecmaVersion>=6){r.generator=e}if(this.options.ecmaVersion>=8){r.async=!!t}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t,r.generator)|R|(n?P:0));this.expect(m.parenL);r.params=this.parseBindingList(m.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(r,false,true);this.yieldPos=i;this.awaitPos=s;this.awaitIdentPos=o;return this.finishNode(r,"FunctionExpression")};ee.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;this.enterScope(functionFlags(n,false)|F);this.initFunction(e);if(this.options.ecmaVersion>=8){e.async=!!n}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;e.params=this.toAssignableList(t,true);this.parseFunctionBody(e,true,false);this.yieldPos=r;this.awaitPos=i;this.awaitIdentPos=s;return this.finishNode(e,"ArrowFunctionExpression")};ee.parseFunctionBody=function(e,t,n){var r=t&&this.type!==m.braceL;var i=this.strict,s=false;if(r){e.body=this.parseMaybeAssign();e.expression=true;this.checkParams(e,false)}else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!i||o){s=this.strictDirective(this.end);if(s&&o){this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var a=this.labels;this.labels=[];if(s){this.strict=true}this.checkParams(e,!i&&!s&&!t&&!n&&this.isSimpleParamList(e.params));if(this.strict&&e.id){this.checkLVal(e.id,z)}e.body=this.parseBlock(false,undefined,s&&!i);e.expression=false;this.adaptDirectivePrologue(e.body.body);this.labels=a}this.exitScope()};ee.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(r.type!=="Identifier"){return false}}return true};ee.checkParams=function(e,t){var n={};for(var r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,L,t?null:n)}};ee.parseExprList=function(e,t,n,r){var i=[],s=true;while(!this.eat(e)){if(!s){this.expect(m.comma);if(t&&this.afterTrailingComma(e)){break}}else{s=false}var o=void 0;if(n&&this.type===m.comma){o=null}else if(this.type===m.ellipsis){o=this.parseSpread(r);if(r&&this.type===m.comma&&r.trailingComma<0){r.trailingComma=this.start}}else{o=this.parseMaybeAssign(false,r)}i.push(o)}return i};ee.checkUnreserved=function(e){var t=e.start;var n=e.end;var r=e.name;if(this.inGenerator&&r==="yield"){this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator")}if(this.inAsync&&r==="await"){this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function")}if(this.keywords.test(r)){this.raise(t,"Unexpected keyword '"+r+"'")}if(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1){return}var i=this.strict?this.reservedWordsStrict:this.reservedWords;if(i.test(r)){if(!this.inAsync&&r==="await"){this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function")}this.raiseRecoverable(t,"The keyword '"+r+"' is reserved")}};ee.parseIdent=function(e,t){var n=this.startNode();if(this.type===m.name){n.name=this.value}else if(this.type.keyword){n.name=this.type.keyword;if((n.name==="class"||n.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)){this.context.pop()}}else{this.unexpected()}this.next(!!e);this.finishNode(n,"Identifier");if(!e){this.checkUnreserved(n);if(n.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=n.start}}return n};ee.parseYield=function(e){if(!this.yieldPos){this.yieldPos=this.start}var t=this.startNode();this.next();if(this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr){t.delegate=false;t.argument=null}else{t.delegate=this.eat(m.star);t.argument=this.parseMaybeAssign(e)}return this.finishNode(t,"YieldExpression")};ee.parseAwait=function(){if(!this.awaitPos){this.awaitPos=this.start}var e=this.startNode();this.next();e.argument=this.parseMaybeUnary(null,false);return this.finishNode(e,"AwaitExpression")};var ne=H.prototype;ne.raise=function(e,t){var n=getLineInfo(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);r.pos=e;r.loc=n;r.raisedAt=this.pos;throw r};ne.raiseRecoverable=ne.raise;ne.curPosition=function(){if(this.options.locations){return new k(this.curLine,this.pos-this.lineStart)}};var re=H.prototype;var ie=function Scope(e){this.flags=e;this.var=[];this.lexical=[];this.functions=[]};re.enterScope=function(e){this.scopeStack.push(new ie(e))};re.exitScope=function(){this.scopeStack.pop()};re.treatFunctionsAsVarInScope=function(e){return e.flags&A||!this.inModule&&e.flags&C};re.declareName=function(e,t,n){var r=false;if(t===B){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1;i.lexical.push(e);if(this.inModule&&i.flags&C){delete this.undefinedExports[e]}}else if(t===U){var s=this.currentScope();s.lexical.push(e)}else if(t===j){var o=this.currentScope();if(this.treatFunctionsAsVar){r=o.lexical.indexOf(e)>-1}else{r=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1}o.functions.push(e)}else{for(var a=this.scopeStack.length-1;a>=0;--a){var c=this.scopeStack[a];if(c.lexical.indexOf(e)>-1&&!(c.flags&I&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){r=true;break}c.var.push(e);if(this.inModule&&c.flags&C){delete this.undefinedExports[e]}if(c.flags&T){break}}}if(r){this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")}};re.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1){this.undefinedExports[e.name]=e}};re.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};re.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&T){return t}}};re.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&T&&!(t.flags&F)){return t}}};var se=function Node(e,t,n){this.type="";this.start=t;this.end=0;if(e.options.locations){this.loc=new D(e,n)}if(e.options.directSourceFile){this.sourceFile=e.options.directSourceFile}if(e.options.ranges){this.range=[t,0]}};var oe=H.prototype;oe.startNode=function(){return new se(this,this.start,this.startLoc)};oe.startNodeAt=function(e,t){return new se(this,e,t)};function finishNodeAt(e,t,n,r){e.type=t;e.end=n;if(this.options.locations){e.loc.end=r}if(this.options.ranges){e.range[1]=n}return e}oe.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};oe.finishNodeAt=function(e,t,n,r){return finishNodeAt.call(this,e,t,n,r)};var ae=function TokContext(e,t,n,r,i){this.token=e;this.isExpr=!!t;this.preserveSpace=!!n;this.override=r;this.generator=!!i};var ce={b_stat:new ae("{",false),b_expr:new ae("{",true),b_tmpl:new ae("${",false),p_stat:new ae("(",false),p_expr:new ae("(",true),q_tmpl:new ae("`",true,true,function(e){return e.tryReadTemplateToken()}),f_stat:new ae("function",false),f_expr:new ae("function",true),f_expr_gen:new ae("function",true,false,null,true),f_gen:new ae("function",false,false,null,true)};var ue=H.prototype;ue.initialContext=function(){return[ce.b_stat]};ue.braceIsBlock=function(e){var t=this.curContext();if(t===ce.f_expr||t===ce.f_stat){return true}if(e===m.colon&&(t===ce.b_stat||t===ce.b_expr)){return!t.isExpr}if(e===m._return||e===m.name&&this.exprAllowed){return g.test(this.input.slice(this.lastTokEnd,this.start))}if(e===m._else||e===m.semi||e===m.eof||e===m.parenR||e===m.arrow){return true}if(e===m.braceL){return t===ce.b_stat}if(e===m._var||e===m._const||e===m.name){return false}return!this.exprAllowed};ue.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function"){return t.generator}}return false};ue.updateContext=function(e){var t,n=this.type;if(n.keyword&&e===m.dot){this.exprAllowed=false}else if(t=n.updateContext){t.call(this,e)}else{this.exprAllowed=n.beforeExpr}};m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var e=this.context.pop();if(e===ce.b_stat&&this.curContext().token==="function"){e=this.context.pop()}this.exprAllowed=!e.isExpr};m.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ce.b_stat:ce.b_expr);this.exprAllowed=true};m.dollarBraceL.updateContext=function(){this.context.push(ce.b_tmpl);this.exprAllowed=true};m.parenL.updateContext=function(e){var t=e===m._if||e===m._for||e===m._with||e===m._while;this.context.push(t?ce.p_stat:ce.p_expr);this.exprAllowed=true};m.incDec.updateContext=function(){};m._function.updateContext=m._class.updateContext=function(e){if(e.beforeExpr&&e!==m.semi&&e!==m._else&&!(e===m._return&&g.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===m.colon||e===m.braceL)&&this.curContext()===ce.b_stat)){this.context.push(ce.f_expr)}else{this.context.push(ce.f_stat)}this.exprAllowed=false};m.backQuote.updateContext=function(){if(this.curContext()===ce.q_tmpl){this.context.pop()}else{this.context.push(ce.q_tmpl)}this.exprAllowed=false};m.star.updateContext=function(e){if(e===m._function){var t=this.context.length-1;if(this.context[t]===ce.f_expr){this.context[t]=ce.f_expr_gen}else{this.context[t]=ce.f_gen}}this.exprAllowed=true};m.name.updateContext=function(e){var t=false;if(this.options.ecmaVersion>=6&&e!==m.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){t=true}}this.exprAllowed=t};var le="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";var fe=le+" Extended_Pictographic";var pe=fe;var de={9:le,10:fe,11:pe};var he="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";var me="Adlam Adlm Ahom 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 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";var ge=me+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ye=ge+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var ve={9:me,10:ge,11:ye};var _e={};function buildUnicodeData(e){var t=_e[e]={binary:wordsRegexp(de[e]+" "+he),nonBinary:{General_Category:wordsRegexp(he),Script:wordsRegexp(ve[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}buildUnicodeData(9);buildUnicodeData(10);buildUnicodeData(11);var be=H.prototype;var Ee=function RegExpValidationState(e){this.parser=e;this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"");this.unicodeProperties=_e[e.options.ecmaVersion>=11?11:e.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};Ee.prototype.reset=function reset(e,t,n){var r=n.indexOf("u")!==-1;this.start=e|0;this.source=t+"";this.flags=n;this.switchU=r&&this.parser.options.ecmaVersion>=6;this.switchN=r&&this.parser.options.ecmaVersion>=9};Ee.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Ee.prototype.at=function at(e,t){if(t===void 0)t=false;var n=this.source;var 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 s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i};Ee.prototype.nextIndex=function nextIndex(e,t){if(t===void 0)t=false;var n=this.source;var r=n.length;if(e>=r){return r}var i=n.charCodeAt(e),s;if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(s=n.charCodeAt(e+1))<56320||s>57343){return e+1}return e+2};Ee.prototype.current=function current(e){if(e===void 0)e=false;return this.at(this.pos,e)};Ee.prototype.lookahead=function lookahead(e){if(e===void 0)e=false;return this.at(this.nextIndex(this.pos,e),e)};Ee.prototype.advance=function advance(e){if(e===void 0)e=false;this.pos=this.nextIndex(this.pos,e)};Ee.prototype.eat=function eat(e,t){if(t===void 0)t=false;if(this.current(t)===e){this.advance(t);return true}return false};function codePointToString(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}be.validateRegExpFlags=function(e){var t=e.validFlags;var n=e.flags;for(var r=0;r<n.length;r++){var i=n.charAt(r);if(t.indexOf(i)===-1){this.raise(e.start,"Invalid regular expression flag")}if(n.indexOf(i,r+1)>-1){this.raise(e.start,"Duplicate regular expression flag")}}};be.validateRegExpPattern=function(e){this.regexp_pattern(e);if(!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0){e.switchN=true;this.regexp_pattern(e)}};be.regexp_pattern=function(e){e.pos=0;e.lastIntValue=0;e.lastStringValue="";e.lastAssertionIsQuantifiable=false;e.numCapturingParens=0;e.maxBackReference=0;e.groupNames.length=0;e.backReferenceNames.length=0;this.regexp_disjunction(e);if(e.pos!==e.source.length){if(e.eat(41)){e.raise("Unmatched ')'")}if(e.eat(93)||e.eat(125)){e.raise("Lone quantifier brackets")}}if(e.maxBackReference>e.numCapturingParens){e.raise("Invalid escape")}for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];if(e.groupNames.indexOf(r)===-1){e.raise("Invalid named capture referenced")}}};be.regexp_disjunction=function(e){this.regexp_alternative(e);while(e.eat(124)){this.regexp_alternative(e)}if(this.regexp_eatQuantifier(e,true)){e.raise("Nothing to repeat")}if(e.eat(123)){e.raise("Lone quantifier brackets")}};be.regexp_alternative=function(e){while(e.pos<e.source.length&&this.regexp_eatTerm(e)){}};be.regexp_eatTerm=function(e){if(this.regexp_eatAssertion(e)){if(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)){if(e.switchU){e.raise("Invalid quantifier")}}return true}if(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e)){this.regexp_eatQuantifier(e);return true}return false};be.regexp_eatAssertion=function(e){var t=e.pos;e.lastAssertionIsQuantifiable=false;if(e.eat(94)||e.eat(36)){return true}if(e.eat(92)){if(e.eat(66)||e.eat(98)){return true}e.pos=t}if(e.eat(40)&&e.eat(63)){var n=false;if(this.options.ecmaVersion>=9){n=e.eat(60)}if(e.eat(61)||e.eat(33)){this.regexp_disjunction(e);if(!e.eat(41)){e.raise("Unterminated group")}e.lastAssertionIsQuantifiable=!n;return true}}e.pos=t;return false};be.regexp_eatQuantifier=function(e,t){if(t===void 0)t=false;if(this.regexp_eatQuantifierPrefix(e,t)){e.eat(63);return true}return false};be.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};be.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;if(e.eat(44)&&this.regexp_eatDecimalDigits(e)){i=e.lastIntValue}if(e.eat(125)){if(i!==-1&&i<r&&!t){e.raise("numbers out of order in {} quantifier")}return true}}if(e.switchU&&!t){e.raise("Incomplete quantifier")}e.pos=n}return false};be.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};be.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e)){return true}e.pos=t}return false};be.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){this.regexp_disjunction(e);if(e.eat(41)){return true}e.raise("Unterminated group")}e.pos=t}return false};be.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9){this.regexp_groupSpecifier(e)}else if(e.current()===63){e.raise("Invalid group")}this.regexp_disjunction(e);if(e.eat(41)){e.numCapturingParens+=1;return true}e.raise("Unterminated group")}return false};be.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)};be.regexp_eatInvalidBracedQuantifier=function(e){if(this.regexp_eatBracedQuantifier(e,true)){e.raise("Nothing to repeat")}return false};be.regexp_eatSyntaxCharacter=function(e){var t=e.current();if(isSyntaxCharacter(t)){e.lastIntValue=t;e.advance();return true}return false};function isSyntaxCharacter(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}be.regexp_eatPatternCharacters=function(e){var t=e.pos;var n=0;while((n=e.current())!==-1&&!isSyntaxCharacter(n)){e.advance()}return e.pos!==t};be.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();if(t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124){e.advance();return true}return false};be.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){if(e.groupNames.indexOf(e.lastStringValue)!==-1){e.raise("Duplicate capture group name")}e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};be.regexp_eatGroupName=function(e){e.lastStringValue="";if(e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62)){return true}e.raise("Invalid capture group name")}return false};be.regexp_eatRegExpIdentifierName=function(e){e.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(e)){e.lastStringValue+=codePointToString(e.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(e)){e.lastStringValue+=codePointToString(e.lastIntValue)}return true}return false};be.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos;var n=this.options.ecmaVersion>=11;var r=e.current(n);e.advance(n);if(r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)){r=e.lastIntValue}if(isRegExpIdentifierStart(r)){e.lastIntValue=r;return true}e.pos=t;return false};function isRegExpIdentifierStart(e){return isIdentifierStart(e,true)||e===36||e===95}be.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos;var n=this.options.ecmaVersion>=11;var r=e.current(n);e.advance(n);if(r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)){r=e.lastIntValue}if(isRegExpIdentifierPart(r)){e.lastIntValue=r;return true}e.pos=t;return false};function isRegExpIdentifierPart(e){return isIdentifierChar(e,true)||e===36||e===95||e===8204||e===8205}be.regexp_eatAtomEscape=function(e){if(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)){return true}if(e.switchU){if(e.current()===99){e.raise("Invalid unicode escape")}e.raise("Invalid escape")}return false};be.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU){if(n>e.maxBackReference){e.maxBackReference=n}return true}if(n<=e.numCapturingParens){return true}e.pos=t}return false};be.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e)){e.backReferenceNames.push(e.lastStringValue);return true}e.raise("Invalid named reference")}return false};be.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,false)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};be.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e)){return true}e.pos=t}return false};be.regexp_eatZero=function(e){if(e.current()===48&&!isDecimalDigit(e.lookahead())){e.lastIntValue=0;e.advance();return true}return false};be.regexp_eatControlEscape=function(e){var t=e.current();if(t===116){e.lastIntValue=9;e.advance();return true}if(t===110){e.lastIntValue=10;e.advance();return true}if(t===118){e.lastIntValue=11;e.advance();return true}if(t===102){e.lastIntValue=12;e.advance();return true}if(t===114){e.lastIntValue=13;e.advance();return true}return false};be.regexp_eatControlLetter=function(e){var t=e.current();if(isControlLetter(t)){e.lastIntValue=t%32;e.advance();return true}return false};function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}be.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){if(t===void 0)t=false;var n=e.pos;var 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 s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343){e.lastIntValue=(i-55296)*1024+(o-56320)+65536;return true}}e.pos=s;e.lastIntValue=i}return true}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue)){return true}if(r){e.raise("Invalid unicode escape")}e.pos=n}return false};function isValidUnicode(e){return e>=0&&e<=1114111}be.regexp_eatIdentityEscape=function(e){if(e.switchU){if(this.regexp_eatSyntaxCharacter(e)){return true}if(e.eat(47)){e.lastIntValue=47;return true}return false}var t=e.current();if(t!==99&&(!e.switchN||t!==107)){e.lastIntValue=t;e.advance();return true}return false};be.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 true}return false};be.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t)){e.lastIntValue=-1;e.advance();return true}if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){e.lastIntValue=-1;e.advance();if(e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125)){return true}e.raise("Invalid property name")}return false};function isCharacterClassEscape(e){return e===100||e===68||e===115||e===83||e===119||e===87}be.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;this.regexp_validateUnicodePropertyNameAndValue(e,n,r);return true}}e.pos=t;if(this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(e,i);return true}return false};be.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){if(!has(e.unicodeProperties.nonBinary,t)){e.raise("Invalid property name")}if(!e.unicodeProperties.nonBinary[t].test(n)){e.raise("Invalid property value")}};be.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(!e.unicodeProperties.binary.test(t)){e.raise("Invalid property name")}};be.regexp_eatUnicodePropertyName=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyNameCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||e===95}be.regexp_eatUnicodePropertyValue=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyValueCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}be.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};be.regexp_eatCharacterClass=function(e){if(e.eat(91)){e.eat(94);this.regexp_classRanges(e);if(e.eat(93)){return true}e.raise("Unterminated character class")}return false};be.regexp_classRanges=function(e){while(this.regexp_eatClassAtom(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;if(e.switchU&&(t===-1||n===-1)){e.raise("Invalid character class")}if(t!==-1&&n!==-1&&t>n){e.raise("Range out of order in character class")}}}};be.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e)){return true}if(e.switchU){var n=e.current();if(n===99||isOctalDigit(n)){e.raise("Invalid class escape")}e.raise("Invalid escape")}e.pos=t}var r=e.current();if(r!==93){e.lastIntValue=r;e.advance();return true}return false};be.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98)){e.lastIntValue=8;return true}if(e.switchU&&e.eat(45)){e.lastIntValue=45;return true}if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e)){return true}e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};be.regexp_eatClassControlLetter=function(e){var t=e.current();if(isDecimalDigit(t)||t===95){e.lastIntValue=t%32;e.advance();return true}return false};be.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2)){return true}if(e.switchU){e.raise("Invalid escape")}e.pos=t}return false};be.regexp_eatDecimalDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isDecimalDigit(n=e.current())){e.lastIntValue=10*e.lastIntValue+(n-48);e.advance()}return e.pos!==t};function isDecimalDigit(e){return e>=48&&e<=57}be.regexp_eatHexDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isHexDigit(n=e.current())){e.lastIntValue=16*e.lastIntValue+hexToInt(n);e.advance()}return e.pos!==t};function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){if(e>=65&&e<=70){return 10+(e-65)}if(e>=97&&e<=102){return 10+(e-97)}return e-48}be.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;if(t<=3&&this.regexp_eatOctalDigit(e)){e.lastIntValue=t*64+n*8+e.lastIntValue}else{e.lastIntValue=t*8+n}}else{e.lastIntValue=t}return true}return false};be.regexp_eatOctalDigit=function(e){var t=e.current();if(isOctalDigit(t)){e.lastIntValue=t-48;e.advance();return true}e.lastIntValue=0;return false};function isOctalDigit(e){return e>=48&&e<=55}be.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!isHexDigit(i)){e.pos=n;return false}e.lastIntValue=16*e.lastIntValue+hexToInt(i);e.advance()}return true};var we=function Token(e){this.type=e.type;this.value=e.value;this.start=e.start;this.end=e.end;if(e.options.locations){this.loc=new D(e,e.startLoc,e.endLoc)}if(e.options.ranges){this.range=[e.start,e.end]}};var Se=H.prototype;Se.next=function(e){if(!e&&this.type.keyword&&this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword)}if(this.options.onToken){this.options.onToken(new we(this))}this.lastTokEnd=this.end;this.lastTokStart=this.start;this.lastTokEndLoc=this.endLoc;this.lastTokStartLoc=this.startLoc;this.nextToken()};Se.getToken=function(){this.next();return new we(this)};if(typeof Symbol!=="undefined"){Se[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===m.eof,value:t}}}}}Se.curContext=function(){return this.context[this.context.length-1]};Se.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace){this.skipSpace()}this.start=this.pos;if(this.options.locations){this.startLoc=this.curPosition()}if(this.pos>=this.input.length){return this.finishToken(m.eof)}if(e.override){return e.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};Se.readToken=function(e){if(isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92){return this.readWord()}return this.getTokenFromCode(e)};Se.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344){return e}var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};Se.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition();var t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=n+2;if(this.options.locations){y.lastIndex=t;var r;while((r=y.exec(this.input))&&r.index<this.pos){++this.curLine;this.lineStart=r.index+r[0].length}}if(this.options.onComment){this.options.onComment(true,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())}};Se.skipLineComment=function(e){var t=this.pos;var n=this.options.onComment&&this.curPosition();var r=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!isNewLine(r)){r=this.input.charCodeAt(++this.pos)}if(this.options.onComment){this.options.onComment(false,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())}};Se.skipSpace=function(){e:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10){++this.pos}case 10:case 8232:case 8233:++this.pos;if(this.options.locations){++this.curLine;this.lineStart=this.pos}break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&v.test(String.fromCharCode(e))){++this.pos}else{break e}}}};Se.finishToken=function(e,t){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var n=this.type;this.type=e;this.value=t;this.updateContext(n)};Se.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57){return this.readNumber(true)}var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46){this.pos+=3;return this.finishToken(m.ellipsis)}else{++this.pos;return this.finishToken(m.dot)}};Se.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(e===61){return this.finishOp(m.assign,2)}return this.finishOp(m.slash,1)};Se.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;var r=e===42?m.star:m.modulo;if(this.options.ecmaVersion>=7&&e===42&&t===42){++n;r=m.starstar;t=this.input.charCodeAt(this.pos+2)}if(t===61){return this.finishOp(m.assign,n+1)}return this.finishOp(r,n)};Se.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61){return this.finishOp(m.assign,3)}}return this.finishOp(e===124?m.logicalOR:m.logicalAND,2)}if(t===61){return this.finishOp(m.assign,2)}return this.finishOp(e===124?m.bitwiseOR:m.bitwiseAND,1)};Se.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61){return this.finishOp(m.assign,2)}return this.finishOp(m.bitwiseXOR,1)};Se.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||g.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(m.incDec,2)}if(t===61){return this.finishOp(m.assign,2)}return this.finishOp(m.plusMin,1)};Se.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;if(t===e){n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+n)===61){return this.finishOp(m.assign,n+1)}return this.finishOp(m.bitShift,n)}if(t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(t===61){n=2}return this.finishOp(m.relational,n)};Se.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(e===61&&t===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(m.arrow)}return this.finishOp(e===61?m.eq:m.prefix,1)};Se.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57){return this.finishOp(m.questionDot,2)}}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61){return this.finishOp(m.assign,3)}}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)};Se.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(m.parenL);case 41:++this.pos;return this.finishToken(m.parenR);case 59:++this.pos;return this.finishToken(m.semi);case 44:++this.pos;return this.finishToken(m.comma);case 91:++this.pos;return this.finishToken(m.bracketL);case 93:++this.pos;return this.finishToken(m.bracketR);case 123:++this.pos;return this.finishToken(m.braceL);case 125:++this.pos;return this.finishToken(m.braceR);case 58:++this.pos;return this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(m.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(t===111||t===79){return this.readRadixNumber(8)}if(t===98||t===66){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(false);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(m.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(e)+"'")};Se.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);this.pos+=t;return this.finishToken(e,n)};Se.readRegexp=function(){var e,t,n=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(n,"Unterminated regular expression")}var r=this.input.charAt(this.pos);if(g.test(r)){this.raise(n,"Unterminated regular expression")}if(!e){if(r==="["){t=true}else if(r==="]"&&t){t=false}else if(r==="/"&&!t){break}e=r==="\\"}else{e=false}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos;var o=this.readWord1();if(this.containsEsc){this.unexpected(s)}var a=this.regexpState||(this.regexpState=new Ee(this));a.reset(n,i,o);this.validateRegExpFlags(a);this.validateRegExpPattern(a);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(m.regexp,{pattern:i,flags:o,value:c})};Se.readInt=function(e,t,n){var r=this.options.ecmaVersion>=12&&t===undefined;var i=n&&this.input.charCodeAt(this.pos)===48;var s=this.pos,o=0,a=0;for(var c=0,u=t==null?Infinity:t;c<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),f=void 0;if(r&&l===95){if(i){this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals")}if(a===95){this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore")}if(c===0){this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits")}a=l;continue}if(l>=97){f=l-97+10}else if(l>=65){f=l-65+10}else if(l>=48&&l<=57){f=l-48}else{f=Infinity}if(f>=e){break}a=l;o=o*e+f}if(r&&a===95){this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits")}if(this.pos===s||t!=null&&this.pos-s!==t){return null}return o};function stringToNumber(e,t){if(t){return parseInt(e,8)}return parseFloat(e.replace(/_/g,""))}function stringToBigInt(e){if(typeof BigInt!=="function"){return null}return BigInt(e.replace(/_/g,""))}Se.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);if(n==null){this.raise(this.start+2,"Expected number in radix "+e)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){n=stringToBigInt(this.input.slice(t,this.pos));++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(m.num,n)};Se.readNumber=function(e){var t=this.pos;if(!e&&this.readInt(10,undefined,true)===null){this.raise(t,"Invalid number")}var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;if(n&&this.strict){this.raise(t,"Invalid number")}var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=stringToBigInt(this.input.slice(t,this.pos));++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(m.num,i)}if(n&&/[89]/.test(this.input.slice(t,this.pos))){n=false}if(r===46&&!n){++this.pos;this.readInt(10);r=this.input.charCodeAt(this.pos)}if((r===69||r===101)&&!n){r=this.input.charCodeAt(++this.pos);if(r===43||r===45){++this.pos}if(this.readInt(10)===null){this.raise(t,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var s=stringToNumber(this.input.slice(t,this.pos),n);return this.finishToken(m.num,s)};Se.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){if(this.options.ecmaVersion<6){this.unexpected()}var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(t>1114111){this.invalidStringToken(n,"Code point out of bounds")}}else{t=this.readHexChar(4)}return t};function codePointToString$1(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}Se.readString=function(e){var t="",n=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var r=this.input.charCodeAt(this.pos);if(r===e){break}if(r===92){t+=this.input.slice(n,this.pos);t+=this.readEscapedChar(false);n=this.pos}else{if(isNewLine(r,this.options.ecmaVersion>=10)){this.raise(this.start,"Unterminated string constant")}++this.pos}}t+=this.input.slice(n,this.pos++);return this.finishToken(m.string,t)};var ke={};Se.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(e){if(e===ke){this.readInvalidTemplateToken()}else{throw e}}this.inTemplateElement=false};Se.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw ke}else{this.raise(e,t)}};Se.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)){if(n===36){this.pos+=2;return this.finishToken(m.dollarBraceL)}else{++this.pos;return this.finishToken(m.backQuote)}}e+=this.input.slice(t,this.pos);return this.finishToken(m.template,e)}if(n===92){e+=this.input.slice(t,this.pos);e+=this.readEscapedChar(true);t=this.pos}else if(isNewLine(n)){e+=this.input.slice(t,this.pos);++this.pos;switch(n){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:e+="\n";break;default:e+=String.fromCharCode(n);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}t=this.pos}else{++this.pos}}};Se.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++){switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{"){break}case"`":return this.finishToken(m.invalidTemplate,this.input.slice(this.start,this.pos))}}this.raise(this.start,"Unterminated template")};Se.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);++this.pos;switch(t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString$1(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:if(this.options.locations){this.lineStart=this.pos;++this.curLine}return"";case 56:case 57:if(e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string");return null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var i=parseInt(r,8);if(i>255){r=r.slice(0,-1);i=parseInt(r,8)}this.pos+=r.length-1;t=this.input.charCodeAt(this.pos);if((r!=="0"||t===56||t===57)&&(this.strict||e)){this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(i)}if(isNewLine(t)){return""}return String.fromCharCode(t)}};Se.readHexChar=function(e){var t=this.pos;var n=this.readInt(16,e);if(n===null){this.invalidStringToken(t,"Bad character escape sequence")}return n};Se.readWord1=function(){this.containsEsc=false;var e="",t=true,n=this.pos;var r=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var i=this.fullCharCodeAtPos();if(isIdentifierChar(i,r)){this.pos+=i<=65535?1:2}else if(i===92){this.containsEsc=true;e+=this.input.slice(n,this.pos);var s=this.pos;if(this.input.charCodeAt(++this.pos)!==117){this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX")}++this.pos;var o=this.readCodePoint();if(!(t?isIdentifierStart:isIdentifierChar)(o,r)){this.invalidStringToken(s,"Invalid Unicode escape")}e+=codePointToString$1(o);n=this.pos}else{break}t=false}return e+this.input.slice(n,this.pos)};Se.readWord=function(){var e=this.readWord1();var t=m.name;if(this.keywords.test(e)){t=h[e]}return this.finishToken(t,e)};var De="7.4.0";H.acorn={Parser:H,version:De,defaultOptions:x,Position:k,SourceLocation:D,getLineInfo:getLineInfo,Node:se,TokenType:f,tokTypes:m,keywordTypes:h,TokContext:ae,tokContexts:ce,isIdentifierChar:isIdentifierChar,isIdentifierStart:isIdentifierStart,Token:we,isNewLine:isNewLine,lineBreak:g,lineBreakG:y,nonASCIIwhitespace:v};function parse(e,t){return H.parse(e,t)}function parseExpressionAt(e,t,n){return H.parseExpressionAt(e,t,n)}function tokenizer(e,t){return H.tokenizer(e,t)}e.Node=se;e.Parser=H;e.Position=k;e.SourceLocation=D;e.TokContext=ae;e.Token=we;e.TokenType=f;e.defaultOptions=x;e.getLineInfo=getLineInfo;e.isIdentifierChar=isIdentifierChar;e.isIdentifierStart=isIdentifierStart;e.isNewLine=isNewLine;e.keywordTypes=h;e.lineBreak=g;e.lineBreakG=y;e.nonASCIIwhitespace=v;e.parse=parse;e.parseExpressionAt=parseExpressionAt;e.tokContexts=ce;e.tokTypes=m;e.tokenizer=tokenizer;e.version=De;Object.defineProperty(e,"__esModule",{value:true})})},67229:(e,t,n)=>{"use strict";const r=n(31417);const i=n(71130);const s=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(e){if(!Array.isArray(e)){throw new TypeError(`Expected input to be an Array, got ${typeof e}`)}e=[...e].map(e=>{if(e instanceof Error){return e}if(e!==null&&typeof e==="object"){return Object.assign(new Error(e.message),e)}return new Error(e)});let t=e.map(e=>{return typeof e.stack==="string"?s(i(e.stack)):String(e)}).join("\n");t="\n"+r(t,4);super(t);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors){yield e}}}e.exports=AggregateError},35525:(e,t,n)=>{"use strict";var r=n(62310);e.exports=defineKeywords;function defineKeywords(e,t){if(Array.isArray(t)){for(var n=0;n<t.length;n++)get(t[n])(e);return e}if(t){get(t)(e);return e}for(t in r)get(t)(e);return e}defineKeywords.get=get;function get(e){var t=r[e];if(!t)throw new Error("Unknown keyword "+e);return t}},87113:(e,t,n)=>{"use strict";var r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i;var i=/t|\s/i;var s={date:compareDate,time:compareTime,"date-time":compareDateTime};var o={type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false};e.exports=function(e){var t="format"+e;return function defFunc(r){defFunc.definition={type:"string",inline:n(2543),statements:true,errors:"full",dependencies:["format"],metaSchema:{anyOf:[{type:"string"},o]}};r.addKeyword(t,defFunc.definition);r.addKeyword("formatExclusive"+e,{dependencies:["format"+e],metaSchema:{anyOf:[{type:"boolean"},o]}});extendFormats(r);return r}};function extendFormats(e){var t=e._formats;for(var n in s){var r=t[n];if(typeof r!="object"||r instanceof RegExp||!r.validate)r=t[n]={validate:r};if(!r.compare)r.compare=s[n]}}function compareDate(e,t){if(!(e&&t))return;if(e>t)return 1;if(e<t)return-1;if(e===t)return 0}function compareTime(e,t){if(!(e&&t))return;e=e.match(r);t=t.match(r);if(!(e&&t))return;e=e[1]+e[2]+e[3]+(e[4]||"");t=t[1]+t[2]+t[3]+(t[4]||"");if(e>t)return 1;if(e<t)return-1;if(e===t)return 0}function compareDateTime(e,t){if(!(e&&t))return;e=e.split(i);t=t.split(i);var n=compareDate(e[0],t[0]);if(n===undefined)return;return n||compareTime(e[1],t[1])}},54630:e=>{"use strict";e.exports={metaSchemaRef:metaSchemaRef};var t="http://json-schema.org/draft-07/schema";function metaSchemaRef(e){var n=e._opts.defaultMeta;if(typeof n=="string")return{$ref:n};if(e.getSchema(t))return{$ref:t};console.warn("meta schema not defined");return{}}},96216:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e,t){if(!e)return true;var n=Object.keys(t.properties);if(n.length==0)return true;return{required:n}},metaSchema:{type:"boolean"},dependencies:["properties"]};e.addKeyword("allRequired",defFunc.definition);return e}},1611:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{required:e};var t=e.map(function(e){return{required:[e]}});return{anyOf:t}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("anyRequired",defFunc.definition);return e}},49494:(e,t,n)=>{"use strict";var r=n(54630);e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){var t=[];for(var n in e)t.push(getSchema(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:r.metaSchemaRef(e)}};e.addKeyword("deepProperties",defFunc.definition);return e};function getSchema(e,t){var n=e.split("/");var r={};var i=r;for(var s=1;s<n.length;s++){var o=n[s];var a=s==n.length-1;o=unescapeJsonPointer(o);var c=i.properties={};var u=undefined;if(/[0-9]+/.test(o)){var l=+o;u=i.items=[];while(l--)u.push({})}i=a?t:{};c[o]=i;if(u)u.push(i)}return r}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},23023:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",inline:function(e,t,n){var r="";for(var i=0;i<n.length;i++){if(i)r+=" && ";r+="("+getData(n[i],e.dataLevel)+" !== undefined)"}return r},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}};e.addKeyword("deepRequired",defFunc.definition);return e};function getData(e,t){var n="data"+(t||"");if(!e)return n;var r=n;var i=e.split("/");for(var s=1;s<i.length;s++){var o=i[s];n+=getProperty(unescapeJsonPointer(o));r+=" && "+n}return r}var t=/^[a-z$_][a-z$_0-9]*$/i;var n=/^[0-9]+$/;var r=/'|\\/g;function getProperty(e){return n.test(e)?"["+e+"]":t.test(e)?"."+e:"['"+e.replace(r,"\\$&")+"']"}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},2543:e=>{"use strict";e.exports=function generate__formatLimit(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p="valid"+i;r+="var "+p+" = undefined;";if(e.opts.format===false){r+=" "+p+" = true; ";return r}var d=e.schema.format,h=e.opts.$data&&d.$data,m="";if(h){var g=e.util.getData(d.$data,s,e.dataPathArr),y="format"+i,v="compare"+i;r+=" var "+y+" = formats["+g+"] , "+v+" = "+y+" && "+y+".compare;"}else{var y=e.formats[d];if(!(y&&y.compare)){r+=" "+p+" = true; ";return r}var v="formats"+e.util.getProperty(d)+".compare"}var _=t=="formatMaximum",b="formatExclusive"+(_?"Maximum":"Minimum"),E=e.schema[b],w=e.opts.$data&&E&&E.$data,S=_?"<":">",k="result"+i;var D=e.opts.$data&&o&&o.$data,x;if(D){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";x="schema"+i}else{x=o}if(w){var C=e.util.getData(E.$data,s,e.dataPathArr),A="exclusive"+i,T="op"+i,M="' + "+T+" + '";r+=" var schemaExcl"+i+" = "+C+"; ";C="schemaExcl"+i;r+=" if (typeof "+C+" != 'boolean' && "+C+" !== undefined) { "+p+" = false; ";var l=b;var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: '"+b+" should be boolean' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var F=r;r=O.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+F+"]); "}else{r+=" validate.errors = ["+F+"]; return false; "}}else{r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(u){m+="}";r+=" else { "}if(D){r+=" if ("+x+" === undefined) "+p+" = true; else if (typeof "+x+" != 'string') "+p+" = false; else { ";m+="}"}if(h){r+=" if (!"+v+") "+p+" = true; else { ";m+="}"}r+=" var "+k+" = "+v+"("+f+", ";if(D){r+=""+x}else{r+=""+e.util.toQuotedString(o)}r+=" ); if ("+k+" === undefined) "+p+" = false; var "+A+" = "+C+" === true; if ("+p+" === undefined) { "+p+" = "+A+" ? "+k+" "+S+" 0 : "+k+" "+S+"= 0; } if (!"+p+") var op"+i+" = "+A+" ? '"+S+"' : '"+S+"=';"}else{var A=E===true,M=S;if(!A)M+="=";var T="'"+M+"'";if(D){r+=" if ("+x+" === undefined) "+p+" = true; else if (typeof "+x+" != 'string') "+p+" = false; else { ";m+="}"}if(h){r+=" if (!"+v+") "+p+" = true; else { ";m+="}"}r+=" var "+k+" = "+v+"("+f+", ";if(D){r+=""+x}else{r+=""+e.util.toQuotedString(o)}r+=" ); if ("+k+" === undefined) "+p+" = false; if ("+p+" === undefined) "+p+" = "+k+" "+S;if(!A){r+="="}r+=" 0;"}r+=""+m+"if (!"+p+") { ";var l=t;var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+T+", limit: ";if(D){r+=""+x}else{r+=""+e.util.toQuotedString(o)}r+=" , exclusive: "+A+" } ";if(e.opts.messages!==false){r+=" , message: 'should be "+M+' "';if(D){r+="' + "+x+" + '"}else{r+=""+e.util.escapeQuotes(o)}r+="\"' "}if(e.opts.verbose){r+=" , schema: ";if(D){r+="validate.schema"+a}else{r+=""+e.util.toQuotedString(o)}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var F=r;r=O.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+F+"]); "}else{r+=" validate.errors = ["+F+"]; return false; "}}else{r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="}";return r}},98632:e=>{"use strict";e.exports=function generate_patternRequired(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="key"+i,d="idx"+i,h="patternMatched"+i,m="dataProperties"+i,g="",y=e.opts.ownProperties;r+="var "+f+" = true;";if(y){r+=" var "+m+" = undefined;"}var v=o;if(v){var _,b=-1,E=v.length-1;while(b<E){_=v[b+=1];r+=" var "+h+" = false; ";if(y){r+=" "+m+" = "+m+" || Object.keys("+l+"); for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) { var "+p+" = "+m+"["+d+"]; "}else{r+=" for (var "+p+" in "+l+") { "}r+=" "+h+" = "+e.usePattern(_)+".test("+p+"); if ("+h+") break; } ";var w=e.util.escapeQuotes(_);r+=" if (!"+h+") { "+f+" = false; var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"patternRequired"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingPattern: '"+w+"' } ";if(e.opts.messages!==false){r+=" , message: 'should have property matching pattern \\'"+w+"\\'' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ";if(u){g+="}";r+=" else { "}}}r+=""+g;return r}},34657:e=>{"use strict";e.exports=function generate_switch(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var g="ifPassed"+e.level,y=d.baseId,v;r+="var "+g+";";var _=o;if(_){var b,E=-1,w=_.length-1;while(E<w){b=_[E+=1];if(E&&!v){r+=" if (!"+g+") { ";h+="}"}if(b.if&&(e.opts.strictKeywords?typeof b.if=="object"&&Object.keys(b.if).length>0:e.util.schemaHasRules(b.if,e.RULES.all))){r+=" var "+p+" = errors; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=true;d.createErrors=false;d.schema=b.if;d.schemaPath=a+"["+E+"].if";d.errSchemaPath=c+"/"+E+"/if";r+=" "+e.validate(d)+" ";d.baseId=y;d.createErrors=true;e.compositeRule=d.compositeRule=S;r+=" "+g+" = "+m+"; if ("+g+") { ";if(typeof b.then=="boolean"){if(b.then===false){var k=k||[];k.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { caseIndex: "+E+" } ";if(e.opts.messages!==false){r+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var D=r;r=k.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+D+"]); "}else{r+=" validate.errors = ["+D+"]; return false; "}}else{r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}r+=" var "+m+" = "+b.then+"; "}else{d.schema=b.then;d.schemaPath=a+"["+E+"].then";d.errSchemaPath=c+"/"+E+"/then";r+=" "+e.validate(d)+" ";d.baseId=y}r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } } "}else{r+=" "+g+" = true; ";if(typeof b.then=="boolean"){if(b.then===false){var k=k||[];k.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"switch"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { caseIndex: "+E+" } ";if(e.opts.messages!==false){r+=" , message: 'should pass \"switch\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var D=r;r=k.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+D+"]); "}else{r+=" validate.errors = ["+D+"]; return false; "}}else{r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}r+=" var "+m+" = "+b.then+"; "}else{d.schema=b.then;d.schemaPath=a+"["+E+"].then";d.errSchemaPath=c+"/"+E+"/then";r+=" "+e.validate(d)+" ";d.baseId=y}}v=b.continue}}r+=""+h+"var "+f+" = "+m+";";return r}},41835:e=>{"use strict";var t={};var n={timestamp:function(){return Date.now()},datetime:function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().slice(0,10)},time:function(){return(new Date).toISOString().slice(11)},random:function(){return Math.random()},randomint:function(e){var t=e&&e.max||2;return function(){return Math.floor(Math.random()*t)}},seq:function(e){var n=e&&e.name||"";t[n]=t[n]||0;return function(){return t[n]++}}};e.exports=function defFunc(e){defFunc.definition={compile:function(e,t,n){var r={};for(var i in e){var s=e[i];var o=getDefault(typeof s=="string"?s:s.func);r[i]=o.length?o(s.args):o}return n.opts.useDefaults&&!n.compositeRule?assignDefaults:noop;function assignDefaults(t){for(var i in e){if(t[i]===undefined||n.opts.useDefaults=="empty"&&(t[i]===null||t[i]===""))t[i]=r[i]()}return true}function noop(){return true}},DEFAULTS:n,metaSchema:{type:"object",additionalProperties:{type:["string","object"],additionalProperties:false,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}}};e.addKeyword("dynamicDefaults",defFunc.definition);return e;function getDefault(e){var t=n[e];if(t)return t;throw new Error('invalid "dynamicDefaults" keyword property value: '+e)}}},69513:(e,t,n)=>{"use strict";e.exports=n(87113)("Maximum")},50581:(e,t,n)=>{"use strict";e.exports=n(87113)("Minimum")},62310:(e,t,n)=>{"use strict";e.exports={instanceof:n(94236),range:n(5332),regexp:n(85829),typeof:n(77189),dynamicDefaults:n(41835),allRequired:n(96216),anyRequired:n(1611),oneRequired:n(82233),prohibited:n(47431),uniqueItemProperties:n(69536),deepProperties:n(49494),deepRequired:n(23023),formatMinimum:n(50581),formatMaximum:n(69513),patternRequired:n(89042),switch:n(65305),select:n(9821),transform:n(62111)}},94236:e=>{"use strict";var t={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};e.exports=function defFunc(e){if(typeof Buffer!="undefined")t.Buffer=Buffer;if(typeof Promise!="undefined")t.Promise=Promise;defFunc.definition={compile:function(e){if(typeof e=="string"){var t=getConstructor(e);return function(e){return e instanceof t}}var n=e.map(getConstructor);return function(e){for(var t=0;t<n.length;t++)if(e instanceof n[t])return true;return false}},CONSTRUCTORS:t,metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}};e.addKeyword("instanceof",defFunc.definition);return e;function getConstructor(e){var n=t[e];if(n)return n;throw new Error('invalid "instanceof" keyword value '+e)}}},82233:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{required:e};var t=e.map(function(e){return{required:[e]}});return{oneOf:t}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("oneRequired",defFunc.definition);return e}},89042:(e,t,n)=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",inline:n(98632),statements:true,errors:"full",metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:true}};e.addKeyword("patternRequired",defFunc.definition);return e}},47431:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"object",macro:function(e){if(e.length==0)return true;if(e.length==1)return{not:{required:e}};var t=e.map(function(e){return{required:[e]}});return{not:{anyOf:t}}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("prohibited",defFunc.definition);return e}},5332:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"number",macro:function(e,t){var n=e[0],r=e[1],i=t.exclusiveRange;validateRangeSchema(n,r,i);return i===true?{exclusiveMinimum:n,exclusiveMaximum:r}:{minimum:n,maximum:r}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}};e.addKeyword("range",defFunc.definition);e.addKeyword("exclusiveRange");return e;function validateRangeSchema(e,t,n){if(n!==undefined&&typeof n!="boolean")throw new Error("Invalid schema for exclusiveRange keyword, should be boolean");if(e>t||n&&e==t)throw new Error("There are no numbers in range")}}},85829:e=>{"use strict";e.exports=function defFunc(e){defFunc.definition={type:"string",inline:function(e,t,n){return getRegExp()+".test(data"+(e.dataLevel||"")+")";function getRegExp(){try{if(typeof n=="object")return new RegExp(n.pattern,n.flags);var e=n.match(/^\/(.*)\/([gimuy]*)$/);if(e)return new RegExp(e[1],e[2]);throw new Error("cannot parse string into RegExp")}catch(e){console.error("regular expression",n,"is invalid");throw e}}},metaSchema:{type:["string","object"],properties:{pattern:{type:"string"},flags:{type:"string"}},required:["pattern"],additionalProperties:false}};e.addKeyword("regexp",defFunc.definition);return e}},9821:(e,t,n)=>{"use strict";var r=n(54630);e.exports=function defFunc(e){if(!e._opts.$data){console.warn("keyword select requires $data option");return e}var t=r.metaSchemaRef(e);var n=[];defFunc.definition={validate:function v(e,t,n){if(n.selectCases===undefined)throw new Error('keyword "selectCases" is absent');var r=getCompiledSchemas(n,false);var i=r.cases[e];if(i===undefined)i=r.default;if(typeof i=="boolean")return i;var s=i(t);if(!s)v.errors=i.errors;return s},$data:true,metaSchema:{type:["string","number","boolean","null"]}};e.addKeyword("select",defFunc.definition);e.addKeyword("selectCases",{compile:function(e,t){var n=getCompiledSchemas(t);for(var r in e)n.cases[r]=compileOrBoolean(e[r]);return function(){return true}},valid:true,metaSchema:{type:"object",additionalProperties:t}});e.addKeyword("selectDefault",{compile:function(e,t){var n=getCompiledSchemas(t);n.default=compileOrBoolean(e);return function(){return true}},valid:true,metaSchema:t});return e;function getCompiledSchemas(e,t){var r;n.some(function(t){if(t.parentSchema===e){r=t;return true}});if(!r&&t!==false){r={parentSchema:e,cases:{},default:true};n.push(r)}return r}function compileOrBoolean(t){return typeof t=="boolean"?t:e.compile(t)}}},65305:(e,t,n)=>{"use strict";var r=n(54630);e.exports=function defFunc(e){if(e.RULES.keywords.switch&&e.RULES.keywords.if)return;var t=r.metaSchemaRef(e);defFunc.definition={inline:n(34657),statements:true,errors:"full",metaSchema:{type:"array",items:{required:["then"],properties:{if:t,then:{anyOf:[{type:"boolean"},t]},continue:{type:"boolean"}},additionalProperties:false,dependencies:{continue:["if"]}}}};e.addKeyword("switch",defFunc.definition);return e}},62111:e=>{"use strict";e.exports=function defFunc(e){var t={trimLeft:function(e){return e.replace(/^[\s]+/,"")},trimRight:function(e){return e.replace(/[\s]+$/,"")},trim:function(e){return e.trim()},toLowerCase:function(e){return e.toLowerCase()},toUpperCase:function(e){return e.toUpperCase()},toEnumCase:function(e,t){return t.hash[makeHashTableKey(e)]||e}};defFunc.definition={type:"string",errors:false,modifying:true,valid:true,compile:function(e,n){var r;if(e.indexOf("toEnumCase")!==-1){r={hash:{}};if(!n.enum)throw new Error('Missing enum. To use `transform:["toEnumCase"]`, `enum:[...]` is required.');for(var i=n.enum.length;i--;i){var s=n.enum[i];if(typeof s!=="string")continue;var o=makeHashTableKey(s);if(r.hash[o])throw new Error('Invalid enum uniqueness. To use `transform:["toEnumCase"]`, all values must be unique when case insensitive.');r.hash[o]=s}}return function(n,i,s,o){if(!s)return;for(var a=0,c=e.length;a<c;a++)n=t[e[a]](n,r);s[o]=n}},metaSchema:{type:"array",items:{type:"string",enum:["trimLeft","trimRight","trim","toLowerCase","toUpperCase","toEnumCase"]}}};e.addKeyword("transform",defFunc.definition);return e;function makeHashTableKey(e){return e.toLowerCase()}}},77189:e=>{"use strict";var t=["undefined","string","number","object","function","boolean","symbol"];e.exports=function defFunc(e){defFunc.definition={inline:function(e,t,n){var r="data"+(e.dataLevel||"");if(typeof n=="string")return"typeof "+r+' == "'+n+'"';n="validate.schema"+e.schemaPath+"."+t;return n+".indexOf(typeof "+r+") >= 0"},metaSchema:{anyOf:[{type:"string",enum:t},{type:"array",items:{type:"string",enum:t}}]}};e.addKeyword("typeof",defFunc.definition);return e}},69536:e=>{"use strict";var t=["number","integer","string","boolean","null"];e.exports=function defFunc(e){defFunc.definition={type:"array",compile:function(e,t,n){var r=n.util.equal;var i=getScalarKeys(e,t);return function(t){if(t.length>1){for(var n=0;n<e.length;n++){var s,o=e[n];if(i[n]){var a={};for(s=t.length;s--;){if(!t[s]||typeof t[s]!="object")continue;var c=t[s][o];if(c&&typeof c=="object")continue;if(typeof c=="string")c='"'+c;if(a[c])return false;a[c]=true}}else{for(s=t.length;s--;){if(!t[s]||typeof t[s]!="object")continue;for(var u=s;u--;){if(t[u]&&typeof t[u]=="object"&&r(t[s][o],t[u][o]))return false}}}}}return true}},metaSchema:{type:"array",items:{type:"string"}}};e.addKeyword("uniqueItemProperties",defFunc.definition);return e};function getScalarKeys(e,n){return e.map(function(e){var r=n.items&&n.items.properties;var i=r&&r[e]&&r[e].type;return Array.isArray(i)?i.indexOf("object")<0&&i.indexOf("array")<0:t.indexOf(i)>=0})}},33866:(e,t,n)=>{"use strict";var r=n(69579),i=n(82253),s=n(32183),o=n(38868),a=n(75986),c=n(10698),u=n(75041),l=n(30398),f=n(778);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=n(18840);var p=n(3811);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var d=n(29411);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=l;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var g=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=f.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=c(e.format);this._cache=e.cache||new s;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=a;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,t){var n;if(typeof e=="string"){n=this.getSchema(e);if(!n)throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);if(n.$async!==true)this.errors=n.errors;return i}function compile(e,t){var n=this._addSchema(e,undefined,t);return n.validate||this._compile(n)}function addSchema(e,t,n,r){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],undefined,n,r);return this}var o=this._getId(e);if(o!==undefined&&typeof o!="string")throw new Error("schema id must be string");t=i.normalizeId(t||o);checkUnique(this,t);this._schemas[t]=this._addSchema(e,n,r,true);return this}function addMetaSchema(e,t,n){this.addSchema(e,t,n,true);return this}function validateSchema(e,t){var n=e.$schema;if(n!==undefined&&typeof n!="string")throw new Error("$schema must be a string");n=n||this._opts.defaultMeta||defaultMeta(this);if(!n){this.logger.warn("meta-schema not available");this.errors=null;return true}var r=this.validate(n,e);if(!r&&t){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return r}function defaultMeta(e){var t=e._opts.meta;e._opts.defaultMeta=typeof t=="object"?e._getId(t)||t:e.getSchema(h)?h:undefined;return e._opts.defaultMeta}function getSchema(e){var t=_getSchemaObj(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,t){var n=i.schema.call(e,{schema:{}},t);if(n){var s=n.schema,a=n.root,c=n.baseId;var u=r.call(e,s,a,undefined,c);e._fragments[t]=new o({ref:t,fragment:true,schema:s,root:a,baseId:c,validate:u});return u}}function _getSchemaObj(e,t){t=i.normalizeId(t);return e._schemas[t]||e._refs[t]||e._fragments[t]}function removeSchema(e){if(e instanceof RegExp){_removeAllSchemas(this,this._schemas,e);_removeAllSchemas(this,this._refs,e);return this}switch(typeof e){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var t=_getSchemaObj(this,e);if(t)this._cache.del(t.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var n=this._opts.serialize;var r=n?n(e):e;this._cache.del(r);var s=this._getId(e);if(s){s=i.normalizeId(s);delete this._schemas[s];delete this._refs[s]}}return this}function _removeAllSchemas(e,t,n){for(var r in t){var i=t[r];if(!i.meta&&(!n||n.test(r))){e._cache.del(i.cacheKey);delete t[r]}}}function _addSchema(e,t,n,r){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize;var a=s?s(e):e;var c=this._cache.get(a);if(c)return c;r=r||this._opts.addUsedSchema!==false;var u=i.normalizeId(this._getId(e));if(u&&r)checkUnique(this,u);var l=this._opts.validateSchema!==false&&!t;var f;if(l&&!(f=u&&u==i.normalizeId(e.$schema)))this.validateSchema(e,true);var p=i.ids.call(this,e);var d=new o({id:u,schema:e,localRefs:p,cacheKey:a,meta:n});if(u[0]!="#"&&r)this._refs[u]=d;this._cache.put(a,d);if(l&&f)this.validateSchema(e,true);return d}function _compile(e,t){if(e.compiling){e.validate=callValidate;callValidate.schema=e.schema;callValidate.errors=null;callValidate.root=t?t:callValidate;if(e.schema.$async===true)callValidate.$async=true;return callValidate}e.compiling=true;var n;if(e.meta){n=this._opts;this._opts=this._metaOpts}var i;try{i=r.call(this,e.schema,t,e.localRefs)}catch(t){delete e.validate;throw t}finally{e.compiling=false;if(e.meta)this._opts=n}e.validate=i;e.refs=i.refs;e.refVal=i.refVal;e.root=i.root;return i;function callValidate(){var t=e.validate;var n=t.apply(this,arguments);callValidate.errors=t.errors;return n}}function chooseGetId(e){switch(e.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}function _getId(e){if(e.$id)this.logger.warn("schema $id ignored",e.$id);return e.id}function _get$Id(e){if(e.id)this.logger.warn("schema id ignored",e.id);return e.$id}function _get$IdOrId(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function errorsText(e,t){e=e||this.errors;if(!e)return"No errors";t=t||{};var n=t.separator===undefined?", ":t.separator;var r=t.dataVar===undefined?"data":t.dataVar;var i="";for(var s=0;s<e.length;s++){var o=e[s];if(o)i+=r+o.dataPath+" "+o.message+n}return i.slice(0,-n.length)}function addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this._formats[e]=t;return this}function addDefaultMetaSchema(e){var t;if(e._opts.$data){t=n(66835);e.addMetaSchema(t,t.$id,true)}if(e._opts.meta===false)return;var r=n(40038);if(e._opts.$data)r=l(r,g);e.addMetaSchema(r,h,true);e._refs["http://json-schema.org/schema"]=h}function addInitialSchemas(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}function addInitialFormats(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}function addInitialKeywords(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}function checkUnique(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function getMetaSchemaOptions(e){var t=f.copy(e._opts);for(var n=0;n<m.length;n++)delete t[m[n]];return t}function setLogger(e){var t=e._opts.logger;if(t===false){e.logger={log:noop,warn:noop,error:noop}}else{if(t===undefined)t=console;if(!(typeof t=="object"&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}function noop(){}},32183:e=>{"use strict";var t=e.exports=function Cache(){this._cache={}};t.prototype.put=function Cache_put(e,t){this._cache[e]=t};t.prototype.get=function Cache_get(e){return this._cache[e]};t.prototype.del=function Cache_del(e){delete this._cache[e]};t.prototype.clear=function Cache_clear(){this._cache={}}},18840:(e,t,n)=>{"use strict";var r=n(29411).MissingRef;e.exports=compileAsync;function compileAsync(e,t,n){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){n=t;t=undefined}var s=loadMetaSchemaOf(e).then(function(){var n=i._addSchema(e,undefined,t);return n.validate||_compileAsync(n)});if(n){s.then(function(e){n(null,e)},n)}return s;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!i.getSchema(t)?compileAsync.call(i,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof r)return loadMissingSchema(e);throw e}function loadMissingSchema(n){var r=n.missingSchema;if(added(r))throw new Error("Schema "+r+" is loaded but "+n.missingRef+" cannot be resolved");var s=i._loadingSchemas[r];if(!s){s=i._loadingSchemas[r]=i._opts.loadSchema(r);s.then(removePromise,removePromise)}return s.then(function(e){if(!added(r)){return loadMetaSchemaOf(e).then(function(){if(!added(r))i.addSchema(e,r,undefined,t)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete i._loadingSchemas[r]}function added(e){return i._refs[e]||i._schemas[e]}}}}},29411:(e,t,n)=>{"use strict";var r=n(82253);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,t){return"can't resolve reference "+t+" from id "+e};function MissingRefError(e,t,n){this.message=n||MissingRefError.message(e,t);this.missingRef=r.url(e,t);this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},10698:(e,t,n)=>{"use strict";var r=n(778);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var s=[0,31,28,31,30,31,30,31,31,30,31,30,31];var o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var d=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return r.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":l,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var t=e.match(i);if(!t)return false;var n=+t[1];var r=+t[2];var o=+t[3];return r>=1&&r<=12&&o>=1&&o<=(r==2&&isLeapYear(n)?29:s[r])}function time(e,t){var n=e.match(o);if(!n)return false;var r=n[1];var i=n[2];var s=n[3];var a=n[5];return(r<=23&&i<=59&&s<=59||r==23&&i==59&&s==60)&&(!t||a)}var g=/t|\s/i;function date_time(e){var t=e.split(g);return t.length==2&&date(t[0])&&time(t[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&c.test(e)}var v=/[^\\]\\Z/;function regex(e){if(v.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},69579:(e,t,n)=>{"use strict";var r=n(82253),i=n(778),s=n(29411),o=n(75986);var a=n(85061);var c=i.ucs2length;var u=n(55245);var l=s.Validation;e.exports=compile;function compile(e,t,n,f){var p=this,d=this._opts,h=[undefined],m={},g=[],y={},v=[],_={},b=[];t=t||{schema:e,refVal:h,refs:m};var E=checkCompiling.call(this,e,t,f);var w=this._compilations[E.index];if(E.compiling)return w.callValidate=callValidate;var S=this._formats;var k=this.RULES;try{var D=localCompile(e,t,n,f);w.validate=D;var x=w.callValidate;if(x){x.schema=D.schema;x.errors=null;x.refs=D.refs;x.refVal=D.refVal;x.root=D.root;x.$async=D.$async;if(d.sourceCode)x.source=D.source}return D}finally{endCompiling.call(this,e,t,f)}function callValidate(){var e=w.validate;var t=e.apply(this,arguments);callValidate.errors=e.errors;return t}function localCompile(e,n,o,f){var y=!n||n&&n.schema==e;if(n.schema!=t.schema)return compile.call(p,e,n,o,f);var _=e.$async===true;var E=a({isTop:true,schema:e,isRoot:y,baseId:f,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:s.MissingRef,RULES:k,validate:a,util:i,resolve:r,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:S,logger:p.logger,self:p});E=vars(h,refValCode)+vars(g,patternCode)+vars(v,defaultCode)+vars(b,customRuleCode)+E;if(d.processCode)E=d.processCode(E,e);var w;try{var D=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",E);w=D(p,k,S,t,h,v,b,u,c,l);h[0]=w}catch(e){p.logger.error("Error compiling schema, function code:",E);throw e}w.schema=e;w.errors=null;w.refs=m;w.refVal=h;w.root=y?w:n;if(_)w.$async=true;if(d.sourceCode===true){w.source={code:E,patterns:g,defaults:v}}return w}function resolveRef(e,i,s){i=r.url(e,i);var o=m[i];var a,c;if(o!==undefined){a=h[o];c="refVal["+o+"]";return resolvedRef(a,c)}if(!s&&t.refs){var u=t.refs[i];if(u!==undefined){a=t.refVal[u];c=addLocalRef(i,a);return resolvedRef(a,c)}}c=addLocalRef(i);var l=r.call(p,localCompile,t,i);if(l===undefined){var f=n&&n[i];if(f){l=r.inlineRef(f,d.inlineRefs)?f:compile.call(p,f,t,n,e)}}if(l===undefined){removeLocalRef(i)}else{replaceLocalRef(i,l);return resolvedRef(l,c)}}function addLocalRef(e,t){var n=h.length;h[n]=t;m[e]=n;return"refVal"+n}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,t){var n=m[e];h[n]=t}function resolvedRef(e,t){return typeof e=="object"||typeof e=="boolean"?{code:t,schema:e,inline:true}:{code:t,$async:e&&!!e.$async}}function usePattern(e){var t=y[e];if(t===undefined){t=y[e]=g.length;g[t]=e}return"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var t=o(e);var n=_[t];if(n===undefined){n=_[t]=v.length;v[n]=e}return"default"+n}}function useCustomRule(e,t,n,r){if(p._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s){var o=s(t);if(!o){var a="keyword schema is invalid: "+p.errorsText(s.errors);if(p._opts.validateSchema=="log")p.logger.error(a);else throw new Error(a)}}}var c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;var f;if(c){f=c.call(p,t,n,r)}else if(l){f=l.call(p,t,n,r);if(d.validateSchema!==false)p.validateSchema(f,true)}else if(u){f=u.call(p,r,e.keyword,t,n)}else{f=e.definition.validate;if(!f)return}if(f===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=b.length;b[h]=f;return{code:"customRule"+h,validate:f}}}function checkCompiling(e,t,n){var r=compIndex.call(this,e,t,n);if(r>=0)return{index:r,compiling:true};r=this._compilations.length;this._compilations[r]={schema:e,root:t,baseId:n};return{index:r,compiling:false}}function endCompiling(e,t,n){var r=compIndex.call(this,e,t,n);if(r>=0)this._compilations.splice(r,1)}function compIndex(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function patternCode(e,t){return"var pattern"+e+" = new RegExp("+i.toQuotedString(t[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,t){return t[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,t){if(!e.length)return"";var n="";for(var r=0;r<e.length;r++)n+=t(r,e);return n}},82253:(e,t,n)=>{"use strict";var r=n(30823),i=n(55245),s=n(778),o=n(38868),a=n(46833);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,t,n){var r=this._refs[n];if(typeof r=="string"){if(this._refs[r])r=this._refs[r];else return resolve.call(this,e,t,r)}r=r||this._schemas[n];if(r instanceof o){return inlineRef(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r)}var i=resolveSchema.call(this,t,n);var s,a,c;if(i){s=i.schema;t=i.root;c=i.baseId}if(s instanceof o){a=s.validate||e.call(this,s.schema,t,undefined,c)}else if(s!==undefined){a=inlineRef(s,this._opts.inlineRefs)?s:e.call(this,s,t,undefined,c)}return a}function resolveSchema(e,t){var n=r.parse(t),i=_getFullPath(n),s=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==s){var a=normalizeId(i);var c=this._refs[a];if(typeof c=="string"){return resolveRecursive.call(this,e,c,n)}else if(c instanceof o){if(!c.validate)this._compile(c);e=c}else{c=this._schemas[a];if(c instanceof o){if(!c.validate)this._compile(c);if(a==normalizeId(t))return{schema:c,root:e,baseId:s};e=c}else{return}}if(!e.schema)return;s=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,n,s,e.schema,e)}function resolveRecursive(e,t,n){var r=resolveSchema.call(this,e,t);if(r){var i=r.schema;var s=r.baseId;e=r.root;var o=this._getId(i);if(o)s=resolveUrl(s,o);return getJsonPointer.call(this,n,s,i,e)}}var c=s.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,t,n,r){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var o=1;o<i.length;o++){var a=i[o];if(a){a=s.unescapeFragment(a);n=n[a];if(n===undefined)break;var u;if(!c[a]){u=this._getId(n);if(u)t=resolveUrl(t,u);if(n.$ref){var l=resolveUrl(t,n.$ref);var f=resolveSchema.call(this,r,l);if(f){n=f.schema;r=f.root;t=f.baseId}}}}}if(n!==undefined&&n!==r.schema)return{schema:n,root:r,baseId:t}}var u=s.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,t){if(t===false)return false;if(t===undefined||t===true)return checkNoRef(e);else if(t)return countKeys(e)<=t}function checkNoRef(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++){t=e[n];if(typeof t=="object"&&!checkNoRef(t))return false}}else{for(var r in e){if(r=="$ref")return false;t=e[r];if(typeof t=="object"&&!checkNoRef(t))return false}}return true}function countKeys(e){var t=0,n;if(Array.isArray(e)){for(var r=0;r<e.length;r++){n=e[r];if(typeof n=="object")t+=countKeys(n);if(t==Infinity)return Infinity}}else{for(var i in e){if(i=="$ref")return Infinity;if(u[i]){t++}else{n=e[i];if(typeof n=="object")t+=countKeys(n)+1;if(t==Infinity)return Infinity}}}return t}function getFullPath(e,t){if(t!==false)e=normalizeId(e);var n=r.parse(e);return _getFullPath(n)}function _getFullPath(e){return r.serialize(e).split("#")[0]+"#"}var l=/#\/?$/;function normalizeId(e){return e?e.replace(l,""):""}function resolveUrl(e,t){t=normalizeId(t);return r.resolve(e,t)}function resolveIds(e){var t=normalizeId(this._getId(e));var n={"":t};var o={"":getFullPath(t,false)};var c={};var u=this;a(e,{allKeys:true},function(e,t,a,l,f,p,d){if(t==="")return;var h=u._getId(e);var m=n[l];var g=o[l]+"/"+f;if(d!==undefined)g+="/"+(typeof d=="number"?d:s.escapeFragment(d));if(typeof h=="string"){h=m=normalizeId(m?r.resolve(m,h):h);var y=u._refs[h];if(typeof y=="string")y=u._refs[y];if(y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=normalizeId(g)){if(h[0]=="#"){if(c[h]&&!i(e,c[h]))throw new Error('id "'+h+'" resolves to more than one schema');c[h]=e}else{u._refs[h]=g}}}n[t]=m;o[t]=g});return c}},75041:(e,t,n)=>{"use strict";var r=n(71001),i=n(778).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var t=["type","$comment"];var n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var s=["number","integer","string","array","object","boolean","null"];e.all=i(t);e.types=i(s);e.forEach(function(n){n.rules=n.rules.map(function(n){var i;if(typeof n=="object"){var s=Object.keys(n)[0];i=n[s];n=s;i.forEach(function(n){t.push(n);e.all[n]=true})}t.push(n);var o=e.all[n]={keyword:n,code:r[n],implements:i};return o});e.all.$comment={keyword:"$comment",code:r.$comment};if(n.type)e.types[n.type]=n});e.keywords=i(t.concat(n));e.custom={};return e}},38868:(e,t,n)=>{"use strict";var r=n(778);e.exports=SchemaObject;function SchemaObject(e){r.copy(e,this)}},15512:e=>{"use strict";e.exports=function ucs2length(e){var t=0,n=e.length,r=0,i;while(r<n){t++;i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){i=e.charCodeAt(r);if((i&64512)==56320)r++}}return t}},778:(e,t,n)=>{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:n(55245),ucs2length:n(15512),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,t){t=t||{};for(var n in e)t[n]=e[n];return t}function checkDataType(e,t,n,r){var i=r?" !== ":" === ",s=r?" || ":" && ",o=r?"!":"",a=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+s+"typeof "+t+i+'"object"'+s+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+s+a+"("+t+" % 1)"+s+t+i+t+(n?s+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?s+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}function checkDataTypes(e,t,n){switch(e.length){case 1:return checkDataType(e[0],t,n,true);default:var r="";var i=toHash(e);if(i.array&&i.object){r=i.null?"(":"(!"+t+" || ";r+="typeof "+t+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var s in i)r+=(r?" && ":"")+checkDataType(s,t,n,true);return r}}var r=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){if(Array.isArray(t)){var n=[];for(var i=0;i<t.length;i++){var s=t[i];if(r[s])n[n.length]=s;else if(e==="array"&&s==="array")n[n.length]=s}if(n.length)return n}else if(r[t]){return[t]}else if(e==="array"&&t==="array"){return["array"]}}function toHash(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=true;return t}var i=/^[a-z$_][a-z$_0-9]*$/i;var s=/'|\\/g;function getProperty(e){return typeof e=="number"?"["+e+"]":i.test(e)?"."+e:"['"+escapeQuotes(e)+"']"}function escapeQuotes(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function varOccurences(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0}function varReplace(e,t,n){t+="([^0-9])";n=n.replace(/\$/g,"$$$$");return e.replace(new RegExp(t,"g"),n+"$1")}function schemaHasRules(e,t){if(typeof e=="boolean")return!e;for(var n in e)if(t[n])return true}function schemaHasRulesExcept(e,t,n){if(typeof e=="boolean")return!e&&n!="not";for(var r in e)if(r!=n&&t[r])return true}function schemaUnknownRules(e,t){if(typeof e=="boolean")return;for(var n in e)if(!t[n])return n}function toQuotedString(e){return"'"+escapeQuotes(e)+"'"}function getPathExpr(e,t,n,r){var i=n?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return joinPaths(e,i)}function getPath(e,t,n){var r=n?toQuotedString("/"+escapeJsonPointer(t)):toQuotedString(getProperty(t));return joinPaths(e,r)}var o=/^\/(?:[^~]|~0|~1)*$/;var a=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,t,n){var r,i,s,c;if(e==="")return"rootData";if(e[0]=="/"){if(!o.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e;s="rootData"}else{c=e.match(a);if(!c)throw new Error("Invalid JSON-pointer: "+e);r=+c[1];i=c[2];if(i=="#"){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);s="data"+(t-r||"");if(!i)return s}var u=s;var l=i.split("/");for(var f=0;f<l.length;f++){var p=l[f];if(p){s+=getProperty(unescapeJsonPointer(p));u+=" && "+s}}return u}function joinPaths(e,t){if(e=='""')return t;return(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}function escapeJsonPointer(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},30398:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,n){for(var r=0;r<n.length;r++){e=JSON.parse(JSON.stringify(e));var i=n[r].split("/");var s=e;var o;for(o=1;o<i.length;o++)s=s[i[o]];for(o=0;o<t.length;o++){var a=t[o];var c=s[a];if(c){s[a]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}}}return e}},86205:(e,t,n)=>{"use strict";var r=n(40038);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},70507:e=>{"use strict";e.exports=function generate__limit(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}var h=t=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[m],y=e.opts.$data&&g&&g.$data,v=h?"<":">",_=h?">":"<",l=undefined;if(!(p||typeof o=="number"||o===undefined)){throw new Error(t+" must be number")}if(!(y||g===undefined||typeof g=="number"||typeof g=="boolean")){throw new Error(m+" must be number or boolean")}if(y){var b=e.util.getData(g.$data,s,e.dataPathArr),E="exclusive"+i,w="exclType"+i,S="exclIsNumber"+i,k="op"+i,D="' + "+k+" + '";r+=" var schemaExcl"+i+" = "+b+"; ";b="schemaExcl"+i;r+=" var "+E+"; var "+w+" = typeof "+b+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var l=m;var x=x||[];x.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var C=r;r=x.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+C+"]); "}else{r+=" validate.errors = ["+C+"]; return false; "}}else{r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}r+=" "+w+" == 'number' ? ( ("+E+" = "+d+" === undefined || "+b+" "+v+"= "+d+") ? "+f+" "+_+"= "+b+" : "+f+" "+_+" "+d+" ) : ( ("+E+" = "+b+" === true) ? "+f+" "+_+"= "+d+" : "+f+" "+_+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+E+" ? '"+v+"' : '"+v+"='; ";if(o===undefined){l=m;c=e.errSchemaPath+"/"+m;d=b;p=y}}else{var S=typeof g=="number",D=v;if(S&&p){var k="'"+D+"'";r+=" if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}r+=" ( "+d+" === undefined || "+g+" "+v+"= "+d+" ? "+f+" "+_+"= "+g+" : "+f+" "+_+" "+d+" ) || "+f+" !== "+f+") { "}else{if(S&&o===undefined){E=true;l=m;c=e.errSchemaPath+"/"+m;d=g;_+="="}else{if(S)d=Math[h?"min":"max"](g,o);if(g===(S?d:true)){E=true;l=m;c=e.errSchemaPath+"/"+m;_+="="}else{E=false;D+="="}}var k="'"+D+"'";r+=" if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}r+=" "+f+" "+_+" "+d+" || "+f+" !== "+f+") { "}}l=l||t;var x=x||[];x.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+k+", limit: "+d+", exclusive: "+E+" } ";if(e.opts.messages!==false){r+=" , message: 'should be "+D+" ";if(p){r+="' + "+d}else{r+=""+d+"'"}}if(e.opts.verbose){r+=" , schema: ";if(p){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var C=r;r=x.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+C+"]); "}else{r+=" validate.errors = ["+C+"]; return false; "}}else{r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(u){r+=" else { "}return r}},6958:e=>{"use strict";e.exports=function generate__limitItems(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if(!(p||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxItems"?">":"<";r+="if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}r+=" "+f+".length "+h+" "+d+") { ";var l=t;var m=m||[];m.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have ";if(t=="maxItems"){r+="more"}else{r+="fewer"}r+=" than ";if(p){r+="' + "+d+" + '"}else{r+=""+o}r+=" items' "}if(e.opts.verbose){r+=" , schema: ";if(p){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var g=r;r=m.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+g+"]); "}else{r+=" validate.errors = ["+g+"]; return false; "}}else{r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(u){r+=" else { "}return r}},41363:e=>{"use strict";e.exports=function generate__limitLength(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if(!(p||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxLength"?">":"<";r+="if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}if(e.opts.unicode===false){r+=" "+f+".length "}else{r+=" ucs2length("+f+") "}r+=" "+h+" "+d+") { ";var l=t;var m=m||[];m.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT be ";if(t=="maxLength"){r+="longer"}else{r+="shorter"}r+=" than ";if(p){r+="' + "+d+" + '"}else{r+=""+o}r+=" characters' "}if(e.opts.verbose){r+=" , schema: ";if(p){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var g=r;r=m.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+g+"]); "}else{r+=" validate.errors = ["+g+"]; return false; "}}else{r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(u){r+=" else { "}return r}},25569:e=>{"use strict";e.exports=function generate__limitProperties(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if(!(p||typeof o=="number")){throw new Error(t+" must be number")}var h=t=="maxProperties"?">":"<";r+="if ( ";if(p){r+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}r+=" Object.keys("+f+").length "+h+" "+d+") { ";var l=t;var m=m||[];m.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have ";if(t=="maxProperties"){r+="more"}else{r+="fewer"}r+=" than ";if(p){r+="' + "+d+" + '"}else{r+=""+o}r+=" properties' "}if(e.opts.verbose){r+=" , schema: ";if(p){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var g=r;r=m.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+g+"]); "}else{r+=" validate.errors = ["+g+"]; return false; "}}else{r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(u){r+=" else { "}return r}},30081:e=>{"use strict";e.exports=function generate_allOf(e,t,n){var r=" ";var i=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var o=e.errSchemaPath+"/"+t;var a=!e.opts.allErrors;var c=e.util.copy(e);var u="";c.level++;var l="valid"+c.level;var f=c.baseId,p=true;var d=i;if(d){var h,m=-1,g=d.length-1;while(m<g){h=d[m+=1];if(e.opts.strictKeywords?typeof h=="object"&&Object.keys(h).length>0:e.util.schemaHasRules(h,e.RULES.all)){p=false;c.schema=h;c.schemaPath=s+"["+m+"]";c.errSchemaPath=o+"/"+m;r+=" "+e.validate(c)+" ";c.baseId=f;if(a){r+=" if ("+l+") { ";u+="}"}}}}if(a){if(p){r+=" if (true) { "}else{r+=" "+u.slice(0,-1)+" "}}return r}},70019:e=>{"use strict";e.exports=function generate_anyOf(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var g=o.every(function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0:e.util.schemaHasRules(t,e.RULES.all)});if(g){var y=d.baseId;r+=" var "+p+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=d.compositeRule=true;var _=o;if(_){var b,E=-1,w=_.length-1;while(E<w){b=_[E+=1];d.schema=b;d.schemaPath=a+"["+E+"]";d.errSchemaPath=c+"/"+E;r+=" "+e.validate(d)+" ";d.baseId=y;r+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ";h+="}"}}e.compositeRule=d.compositeRule=v;r+=" "+h+" if (!"+f+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should match some schema in anyOf' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";if(e.opts.allErrors){r+=" } "}}else{if(u){r+=" if (true) { "}}return r}},79878:e=>{"use strict";e.exports=function generate_comment(e,t,n){var r=" ";var i=e.schema[t];var s=e.errSchemaPath+"/"+t;var o=!e.opts.allErrors;var a=e.util.toQuotedString(i);if(e.opts.$comment===true){r+=" console.log("+a+");"}else if(typeof e.opts.$comment=="function"){r+=" self._opts.$comment("+a+", "+e.util.toQuotedString(s)+", validate.root.schema);"}return r}},23404:e=>{"use strict";e.exports=function generate_const(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if(!p){r+=" var schema"+i+" = validate.schema"+a+";"}r+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){r+=" , message: 'should be equal to constant' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var m=r;r=h.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+m+"]); "}else{r+=" validate.errors = ["+m+"]; return false; "}}else{r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" }";if(u){r+=" else { "}return r}},33224:e=>{"use strict";e.exports=function generate_contains(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var g="i"+i,y=d.dataLevel=e.dataLevel+1,v="data"+y,_=e.baseId,b=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all);r+="var "+p+" = errors;var "+f+";";if(b){var E=e.compositeRule;e.compositeRule=d.compositeRule=true;d.schema=o;d.schemaPath=a;d.errSchemaPath=c;r+=" var "+m+" = false; for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,true);var w=l+"["+g+"]";d.dataPathArr[y]=g;var S=e.validate(d);d.baseId=_;if(e.util.varOccurences(S,v)<2){r+=" "+e.util.varReplace(S,v,w)+" "}else{r+=" var "+v+" = "+w+"; "+S+" "}r+=" if ("+m+") break; } ";e.compositeRule=d.compositeRule=E;r+=" "+h+" if (!"+m+") {"}else{r+=" if ("+l+".length == 0) {"}var k=k||[];k.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should contain a valid item' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var D=r;r=k.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+D+"]); "}else{r+=" validate.errors = ["+D+"]; return false; "}}else{r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { ";if(b){r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){r+=" } "}return r}},99819:e=>{"use strict";e.exports=function generate_custom(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l;var f="data"+(s||"");var p="valid"+i;var d="errs__"+i;var h=e.opts.$data&&o&&o.$data,m;if(h){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";m="schema"+i}else{m=o}var g=this,y="definition"+i,v=g.definition,_="";var b,E,w,S,k;if(h&&v.$data){k="keywordValidate"+i;var D=v.validateSchema;r+=" var "+y+" = RULES.custom['"+t+"'].definition; var "+k+" = "+y+".validate;"}else{S=e.useCustomRule(g,o,e.schema,e);if(!S)return;m="validate.schema"+a;k=S.code;b=v.compile;E=v.inline;w=v.macro}var x=k+".errors",C="i"+i,A="ruleErr"+i,T=v.async;if(T&&!e.async)throw new Error("async keyword in sync schema");if(!(E||w)){r+=""+x+" = null;"}r+="var "+d+" = errors;var "+p+";";if(h&&v.$data){_+="}";r+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(D){_+="}";r+=" "+p+" = "+y+".validateSchema("+m+"); if ("+p+") { "}}if(E){if(v.statements){r+=" "+S.validate+" "}else{r+=" "+p+" = "+S.validate+"; "}}else if(w){var M=e.util.copy(e);var _="";M.level++;var O="valid"+M.level;M.schema=S.validate;M.schemaPath="";var F=e.compositeRule;e.compositeRule=M.compositeRule=true;var I=e.validate(M).replace(/validate\.schema/g,k);e.compositeRule=M.compositeRule=F;r+=" "+I}else{var R=R||[];R.push(r);r="";r+=" "+k+".call( ";if(e.opts.passContext){r+="this"}else{r+="self"}if(b||v.schema===false){r+=" , "+f+" "}else{r+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" "}r+=" , (dataPath || '')";if(e.errorPath!='""'){r+=" + "+e.errorPath}var P=s?"data"+(s-1||""):"parentData",N=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+P+" , "+N+" , rootData ) ";var L=r;r=R.pop();if(v.errors===false){r+=" "+p+" = ";if(T){r+="await "}r+=""+L+"; "}else{if(T){x="customErrors"+i;r+=" var "+x+" = null; try { "+p+" = await "+L+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+x+" = e.errors; else throw e; } "}else{r+=" "+x+" = null; "+p+" = "+L+"; "}}}if(v.modifying){r+=" if ("+P+") "+f+" = "+P+"["+N+"];"}r+=""+_;if(v.valid){if(u){r+=" if (true) { "}}else{r+=" if ( ";if(v.valid===undefined){r+=" !";if(w){r+=""+O}else{r+=""+p}}else{r+=" "+!v.valid+" "}r+=") { ";l=g.keyword;var R=R||[];R.push(r);r="";var R=R||[];R.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(l||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+g.keyword+"' } ";if(e.opts.messages!==false){r+=" , message: 'should pass \""+g.keyword+"\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}var B=r;r=R.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+B+"]); "}else{r+=" validate.errors = ["+B+"]; return false; "}}else{r+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var j=r;r=R.pop();if(E){if(v.errors){if(v.errors!="full"){r+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+c+'"; } ';if(e.opts.verbose){r+=" "+A+".schema = "+m+"; "+A+".data = "+f+"; "}r+=" } "}}else{if(v.errors===false){r+=" "+j+" "}else{r+=" if ("+d+" == errors) { "+j+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+A+".schemaPath === undefined) { "+A+'.schemaPath = "'+c+'"; } ';if(e.opts.verbose){r+=" "+A+".schema = "+m+"; "+A+".data = "+f+"; "}r+=" } } "}}}else if(w){r+=" var err = ";if(e.createErrors!==false){r+=" { keyword: '"+(l||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+g.keyword+"' } ";if(e.opts.messages!==false){r+=" , message: 'should pass \""+g.keyword+"\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}}else{if(v.errors===false){r+=" "+j+" "}else{r+=" if (Array.isArray("+x+")) { if (vErrors === null) vErrors = "+x+"; else vErrors = vErrors.concat("+x+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+A+" = vErrors["+C+"]; if ("+A+".dataPath === undefined) "+A+".dataPath = (dataPath || '') + "+e.errorPath+"; "+A+'.schemaPath = "'+c+'"; ';if(e.opts.verbose){r+=" "+A+".schema = "+m+"; "+A+".data = "+f+"; "}r+=" } } else { "+j+" } "}}r+=" } ";if(u){r+=" else { "}}return r}},19493:e=>{"use strict";e.exports=function generate_dependencies(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m={},g={},y=e.opts.ownProperties;for(E in o){if(E=="__proto__")continue;var v=o[E];var _=Array.isArray(v)?g:m;_[E]=v}r+="var "+f+" = errors;";var b=e.errorPath;r+="var missing"+i+";";for(var E in g){_=g[E];if(_.length){r+=" if ( "+l+e.util.getProperty(E)+" !== undefined ";if(y){r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(E)+"') "}if(u){r+=" && ( ";var w=_;if(w){var S,k=-1,D=w.length-1;while(k<D){S=w[k+=1];if(k){r+=" || "}var x=e.util.getProperty(S),C=l+x;r+=" ( ( "+C+" === undefined ";if(y){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(S)+"') "}r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?S:x)+") ) "}}r+=")) { ";var A="missing"+i,T="' + "+A+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,A,true):b+" + "+A}var M=M||[];M.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+T+"', depsCount: "+_.length+", deps: '"+e.util.escapeQuotes(_.length==1?_[0]:_.join(", "))+"' } ";if(e.opts.messages!==false){r+=" , message: 'should have ";if(_.length==1){r+="property "+e.util.escapeQuotes(_[0])}else{r+="properties "+e.util.escapeQuotes(_.join(", "))}r+=" when property "+e.util.escapeQuotes(E)+" is present' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var O=r;r=M.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+O+"]); "}else{r+=" validate.errors = ["+O+"]; return false; "}}else{r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{r+=" ) { ";var F=_;if(F){var S,I=-1,R=F.length-1;while(I<R){S=F[I+=1];var x=e.util.getProperty(S),T=e.util.escapeQuotes(S),C=l+x;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(b,S,e.opts.jsonPointers)}r+=" if ( "+C+" === undefined ";if(y){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(S)+"') "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+T+"', depsCount: "+_.length+", deps: '"+e.util.escapeQuotes(_.length==1?_[0]:_.join(", "))+"' } ";if(e.opts.messages!==false){r+=" , message: 'should have ";if(_.length==1){r+="property "+e.util.escapeQuotes(_[0])}else{r+="properties "+e.util.escapeQuotes(_.join(", "))}r+=" when property "+e.util.escapeQuotes(E)+" is present' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}r+=" } ";if(u){d+="}";r+=" else { "}}}e.errorPath=b;var P=p.baseId;for(var E in m){var v=m[E];if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0:e.util.schemaHasRules(v,e.RULES.all)){r+=" "+h+" = true; if ( "+l+e.util.getProperty(E)+" !== undefined ";if(y){r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(E)+"') "}r+=") { ";p.schema=v;p.schemaPath=a+e.util.getProperty(E);p.errSchemaPath=c+"/"+e.util.escapeFragment(E);r+=" "+e.validate(p)+" ";p.baseId=P;r+=" } ";if(u){r+=" if ("+h+") { ";d+="}"}}}if(u){r+=" "+d+" if ("+f+" == errors) {"}return r}},20489:e=>{"use strict";e.exports=function generate_enum(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}var h="i"+i,m="schema"+i;if(!p){r+=" var "+m+" = validate.schema"+a+";"}r+="var "+f+";";if(p){r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}r+=""+f+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+l+", "+m+"["+h+"])) { "+f+" = true; break; }";if(p){r+=" } "}r+=" if (!"+f+") { ";var g=g||[];g.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){r+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var y=r;r=g.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+y+"]); "}else{r+=" validate.errors = ["+y+"]; return false; "}}else{r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" }";if(u){r+=" else { "}return r}},69090:e=>{"use strict";e.exports=function generate_format(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");if(e.opts.format===false){if(u){r+=" if (true) { "}return r}var f=e.opts.$data&&o&&o.$data,p;if(f){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}var d=e.opts.unknownFormats,h=Array.isArray(d);if(f){var m="format"+i,g="isObject"+i,y="formatType"+i;r+=" var "+m+" = formats["+p+"]; var "+g+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+y+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ";if(e.async){r+=" var async"+i+" = "+m+".async; "}r+=" "+m+" = "+m+".validate; } if ( ";if(f){r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}r+=" (";if(d!="ignore"){r+=" ("+p+" && !"+m+" ";if(h){r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "}r+=") || "}r+=" ("+m+" && "+y+" == '"+n+"' && !(typeof "+m+" == 'function' ? ";if(e.async){r+=" (async"+i+" ? await "+m+"("+l+") : "+m+"("+l+")) "}else{r+=" "+m+"("+l+") "}r+=" : "+m+".test("+l+"))))) {"}else{var m=e.formats[o];if(!m){if(d=="ignore"){e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"');if(u){r+=" if (true) { "}return r}else if(h&&d.indexOf(o)>=0){if(u){r+=" if (true) { "}return r}else{throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}}var g=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var y=g&&m.type||"string";if(g){var v=m.async===true;m=m.validate}if(y!=n){if(u){r+=" if (true) { "}return r}if(v){if(!e.async)throw new Error("async format in sync schema");var _="formats"+e.util.getProperty(o)+".validate";r+=" if (!(await "+_+"("+l+"))) { "}else{r+=" if (! ";var _="formats"+e.util.getProperty(o);if(g)_+=".validate";if(typeof m=="function"){r+=" "+_+"("+l+") "}else{r+=" "+_+".test("+l+") "}r+=") { "}}var b=b||[];b.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ";if(f){r+=""+p}else{r+=""+e.util.toQuotedString(o)}r+=" } ";if(e.opts.messages!==false){r+=" , message: 'should match format \"";if(f){r+="' + "+p+" + '"}else{r+=""+e.util.escapeQuotes(o)}r+="\"' "}if(e.opts.verbose){r+=" , schema: ";if(f){r+="validate.schema"+a}else{r+=""+e.util.toQuotedString(o)}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var E=r;r=b.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+E+"]); "}else{r+=" validate.errors = ["+E+"]; return false; "}}else{r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(u){r+=" else { "}return r}},1636:e=>{"use strict";e.exports=function generate_if(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);d.level++;var h="valid"+d.level;var m=e.schema["then"],g=e.schema["else"],y=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all)),v=g!==undefined&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0:e.util.schemaHasRules(g,e.RULES.all)),_=d.baseId;if(y||v){var b;d.createErrors=false;d.schema=o;d.schemaPath=a;d.errSchemaPath=c;r+=" var "+p+" = errors; var "+f+" = true; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=true;r+=" "+e.validate(d)+" ";d.baseId=_;d.createErrors=true;r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=d.compositeRule=E;if(y){r+=" if ("+h+") { ";d.schema=e.schema["then"];d.schemaPath=e.schemaPath+".then";d.errSchemaPath=e.errSchemaPath+"/then";r+=" "+e.validate(d)+" ";d.baseId=_;r+=" "+f+" = "+h+"; ";if(y&&v){b="ifClause"+i;r+=" var "+b+" = 'then'; "}else{b="'then'"}r+=" } ";if(v){r+=" else { "}}else{r+=" if (!"+h+") { "}if(v){d.schema=e.schema["else"];d.schemaPath=e.schemaPath+".else";d.errSchemaPath=e.errSchemaPath+"/else";r+=" "+e.validate(d)+" ";d.baseId=_;r+=" "+f+" = "+h+"; ";if(y&&v){b="ifClause"+i;r+=" var "+b+" = 'else'; "}else{b="'else'"}r+=" } "}r+=" if (!"+f+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+b+" } ";if(e.opts.messages!==false){r+=" , message: 'should match \"' + "+b+" + '\" schema' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+=" } ";if(u){r+=" else { "}}else{if(u){r+=" if (true) { "}}return r}},71001:(e,t,n)=>{"use strict";e.exports={$ref:n(41944),allOf:n(30081),anyOf:n(70019),$comment:n(79878),const:n(23404),contains:n(33224),dependencies:n(19493),enum:n(20489),format:n(69090),if:n(1636),items:n(6060),maximum:n(70507),minimum:n(70507),maxItems:n(6958),minItems:n(6958),maxLength:n(41363),minLength:n(41363),maxProperties:n(25569),minProperties:n(25569),multipleOf:n(54841),not:n(74881),oneOf:n(77675),pattern:n(98676),properties:n(99306),propertyNames:n(28014),required:n(16372),uniqueItems:n(37270),validate:n(85061)}},6060:e=>{"use strict";e.exports=function generate_items(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var g="i"+i,y=d.dataLevel=e.dataLevel+1,v="data"+y,_=e.baseId;r+="var "+p+" = errors;var "+f+";";if(Array.isArray(o)){var b=e.schema.additionalItems;if(b===false){r+=" "+f+" = "+l+".length <= "+o.length+"; ";var E=c;c=e.errSchemaPath+"/additionalItems";r+=" if (!"+f+") { ";var w=w||[];w.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have more than "+o.length+" items' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var S=r;r=w.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+S+"]); "}else{r+=" validate.errors = ["+S+"]; return false; "}}else{r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";c=E;if(u){h+="}";r+=" else { "}}var k=o;if(k){var D,x=-1,C=k.length-1;while(x<C){D=k[x+=1];if(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0:e.util.schemaHasRules(D,e.RULES.all)){r+=" "+m+" = true; if ("+l+".length > "+x+") { ";var A=l+"["+x+"]";d.schema=D;d.schemaPath=a+"["+x+"]";d.errSchemaPath=c+"/"+x;d.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,true);d.dataPathArr[y]=x;var T=e.validate(d);d.baseId=_;if(e.util.varOccurences(T,v)<2){r+=" "+e.util.varReplace(T,v,A)+" "}else{r+=" var "+v+" = "+A+"; "+T+" "}r+=" } ";if(u){r+=" if ("+m+") { ";h+="}"}}}}if(typeof b=="object"&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all))){d.schema=b;d.schemaPath=e.schemaPath+".additionalItems";d.errSchemaPath=e.errSchemaPath+"/additionalItems";r+=" "+m+" = true; if ("+l+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+l+".length; "+g+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,true);var A=l+"["+g+"]";d.dataPathArr[y]=g;var T=e.validate(d);d.baseId=_;if(e.util.varOccurences(T,v)<2){r+=" "+e.util.varReplace(T,v,A)+" "}else{r+=" var "+v+" = "+A+"; "+T+" "}if(u){r+=" if (!"+m+") break; "}r+=" } } ";if(u){r+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o;d.schemaPath=a;d.errSchemaPath=c;r+=" for (var "+g+" = "+0+"; "+g+" < "+l+".length; "+g+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,true);var A=l+"["+g+"]";d.dataPathArr[y]=g;var T=e.validate(d);d.baseId=_;if(e.util.varOccurences(T,v)<2){r+=" "+e.util.varReplace(T,v,A)+" "}else{r+=" var "+v+" = "+A+"; "+T+" "}if(u){r+=" if (!"+m+") break; "}r+=" }"}if(u){r+=" "+h+" if ("+p+" == errors) {"}return r}},54841:e=>{"use strict";e.exports=function generate_multipleOf(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f=e.opts.$data&&o&&o.$data,p;if(f){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}if(!(f||typeof o=="number")){throw new Error(t+" must be number")}r+="var division"+i+";if (";if(f){r+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "}r+=" (division"+i+" = "+l+" / "+p+", ";if(e.opts.multipleOfPrecision){r+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{r+=" division"+i+" !== parseInt(division"+i+") "}r+=" ) ";if(f){r+=" ) "}r+=" ) { ";var d=d||[];d.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){r+=" , message: 'should be multiple of ";if(f){r+="' + "+p}else{r+=""+p+"'"}}if(e.opts.verbose){r+=" , schema: ";if(f){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var h=r;r=d.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+h+"]); "}else{r+=" validate.errors = ["+h+"]; return false; "}}else{r+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(u){r+=" else { "}return r}},74881:e=>{"use strict";e.exports=function generate_not(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="errs__"+i;var p=e.util.copy(e);p.level++;var d="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o;p.schemaPath=a;p.errSchemaPath=c;r+=" var "+f+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}r+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;r+=" if ("+d+") { ";var g=g||[];g.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should NOT be valid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var y=r;r=g.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+y+"]); "}else{r+=" validate.errors = ["+y+"]; return false; "}}else{r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";if(e.opts.allErrors){r+=" } "}}else{r+=" var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should NOT be valid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(u){r+=" if (false) { "}}return r}},77675:e=>{"use strict";e.exports=function generate_oneOf(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var g=d.baseId,y="prevValid"+i,v="passingSchemas"+i;r+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var _=e.compositeRule;e.compositeRule=d.compositeRule=true;var b=o;if(b){var E,w=-1,S=b.length-1;while(w<S){E=b[w+=1];if(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0:e.util.schemaHasRules(E,e.RULES.all)){d.schema=E;d.schemaPath=a+"["+w+"]";d.errSchemaPath=c+"/"+w;r+=" "+e.validate(d)+" ";d.baseId=g}else{r+=" var "+m+" = true; "}if(w){r+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+w+"]; } else { ";h+="}"}r+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+w+"; }"}}e.compositeRule=d.compositeRule=_;r+=""+h+"if (!"+f+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ";if(e.opts.messages!==false){r+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){r+=" } "}return r}},98676:e=>{"use strict";e.exports=function generate_pattern(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f=e.opts.$data&&o&&o.$data,p;if(f){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";p="schema"+i}else{p=o}var d=f?"(new RegExp("+p+"))":e.usePattern(o);r+="if ( ";if(f){r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}r+=" !"+d+".test("+l+") ) { ";var h=h||[];h.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ";if(f){r+=""+p}else{r+=""+e.util.toQuotedString(o)}r+=" } ";if(e.opts.messages!==false){r+=" , message: 'should match pattern \"";if(f){r+="' + "+p+" + '"}else{r+=""+e.util.escapeQuotes(o)}r+="\"' "}if(e.opts.verbose){r+=" , schema: ";if(f){r+="validate.schema"+a}else{r+=""+e.util.toQuotedString(o)}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var m=r;r=h.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+m+"]); "}else{r+=" validate.errors = ["+m+"]; return false; "}}else{r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(u){r+=" else { "}return r}},99306:e=>{"use strict";e.exports=function generate_properties(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m="key"+i,g="idx"+i,y=p.dataLevel=e.dataLevel+1,v="data"+y,_="dataProperties"+i;var b=Object.keys(o||{}).filter(notProto),E=e.schema.patternProperties||{},w=Object.keys(E).filter(notProto),S=e.schema.additionalProperties,k=b.length||w.length,D=S===false,x=typeof S=="object"&&Object.keys(S).length,C=e.opts.removeAdditional,A=D||x||C,T=e.opts.ownProperties,M=e.baseId;var O=e.schema.required;if(O&&!(e.opts.$data&&O.$data)&&O.length<e.opts.loopRequired){var F=e.util.toHash(O)}function notProto(e){return e!=="__proto__"}r+="var "+f+" = errors;var "+h+" = true;";if(T){r+=" var "+_+" = undefined;"}if(A){if(T){r+=" "+_+" = "+_+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+_+".length; "+g+"++) { var "+m+" = "+_+"["+g+"]; "}else{r+=" for (var "+m+" in "+l+") { "}if(k){r+=" var isAdditional"+i+" = !(false ";if(b.length){if(b.length>8){r+=" || validate.schema"+a+".hasOwnProperty("+m+") "}else{var I=b;if(I){var R,P=-1,N=I.length-1;while(P<N){R=I[P+=1];r+=" || "+m+" == "+e.util.toQuotedString(R)+" "}}}}if(w.length){var L=w;if(L){var B,j=-1,U=L.length-1;while(j<U){B=L[j+=1];r+=" || "+e.usePattern(B)+".test("+m+") "}}}r+=" ); if (isAdditional"+i+") { "}if(C=="all"){r+=" delete "+l+"["+m+"]; "}else{var z=e.errorPath;var H="' + "+m+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)}if(D){if(C){r+=" delete "+l+"["+m+"]; "}else{r+=" "+h+" = false; ";var V=c;c=e.errSchemaPath+"/additionalProperties";var G=G||[];G.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"additionalProperties"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+H+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is an invalid additional property"}else{r+="should NOT have additional properties"}r+="' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var q=r;r=G.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+q+"]); "}else{r+=" validate.errors = ["+q+"]; return false; "}}else{r+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=V;if(u){r+=" break; "}}}else if(x){if(C=="failing"){r+=" var "+f+" = errors; ";var W=e.compositeRule;e.compositeRule=p.compositeRule=true;p.schema=S;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=l+"["+m+"]";p.dataPathArr[y]=m;var X=e.validate(p);p.baseId=M;if(e.util.varOccurences(X,v)<2){r+=" "+e.util.varReplace(X,v,K)+" "}else{r+=" var "+v+" = "+K+"; "+X+" "}r+=" if (!"+h+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ";e.compositeRule=p.compositeRule=W}else{p.schema=S;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=l+"["+m+"]";p.dataPathArr[y]=m;var X=e.validate(p);p.baseId=M;if(e.util.varOccurences(X,v)<2){r+=" "+e.util.varReplace(X,v,K)+" "}else{r+=" var "+v+" = "+K+"; "+X+" "}if(u){r+=" if (!"+h+") break; "}}}e.errorPath=z}if(k){r+=" } "}r+=" } ";if(u){r+=" if ("+h+") { ";d+="}"}}var J=e.opts.useDefaults&&!e.compositeRule;if(b.length){var Y=b;if(Y){var R,Q=-1,Z=Y.length-1;while(Q<Z){R=Y[Q+=1];var $=o[R];if(e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(R),K=l+ee,te=J&&$.default!==undefined;p.schema=$;p.schemaPath=a+ee;p.errSchemaPath=c+"/"+e.util.escapeFragment(R);p.errorPath=e.util.getPath(e.errorPath,R,e.opts.jsonPointers);p.dataPathArr[y]=e.util.toQuotedString(R);var X=e.validate(p);p.baseId=M;if(e.util.varOccurences(X,v)<2){X=e.util.varReplace(X,v,K);var ne=K}else{var ne=v;r+=" var "+v+" = "+K+"; "}if(te){r+=" "+X+" "}else{if(F&&F[R]){r+=" if ( "+ne+" === undefined ";if(T){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(R)+"') "}r+=") { "+h+" = false; ";var z=e.errorPath,V=c,re=e.util.escapeQuotes(R);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(z,R,e.opts.jsonPointers)}c=e.errSchemaPath+"/required";var G=G||[];G.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+re+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+re+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var q=r;r=G.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+q+"]); "}else{r+=" validate.errors = ["+q+"]; return false; "}}else{r+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=V;e.errorPath=z;r+=" } else { "}else{if(u){r+=" if ( "+ne+" === undefined ";if(T){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(R)+"') "}r+=") { "+h+" = true; } else { "}else{r+=" if ("+ne+" !== undefined ";if(T){r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(R)+"') "}r+=" ) { "}}r+=" "+X+" } "}}if(u){r+=" if ("+h+") { ";d+="}"}}}}if(w.length){var ie=w;if(ie){var B,se=-1,oe=ie.length-1;while(se<oe){B=ie[se+=1];var $=E[B];if(e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0:e.util.schemaHasRules($,e.RULES.all)){p.schema=$;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(B);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(B);if(T){r+=" "+_+" = "+_+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+_+".length; "+g+"++) { var "+m+" = "+_+"["+g+"]; "}else{r+=" for (var "+m+" in "+l+") { "}r+=" if ("+e.usePattern(B)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=l+"["+m+"]";p.dataPathArr[y]=m;var X=e.validate(p);p.baseId=M;if(e.util.varOccurences(X,v)<2){r+=" "+e.util.varReplace(X,v,K)+" "}else{r+=" var "+v+" = "+K+"; "+X+" "}if(u){r+=" if (!"+h+") break; "}r+=" } ";if(u){r+=" else "+h+" = true; "}r+=" } ";if(u){r+=" if ("+h+") { ";d+="}"}}}}}if(u){r+=" "+d+" if ("+f+" == errors) {"}return r}},28014:e=>{"use strict";e.exports=function generate_propertyNames(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;r+="var "+f+" = errors;";if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o;p.schemaPath=a;p.errSchemaPath=c;var m="key"+i,g="idx"+i,y="i"+i,v="' + "+m+" + '",_=p.dataLevel=e.dataLevel+1,b="data"+_,E="dataProperties"+i,w=e.opts.ownProperties,S=e.baseId;if(w){r+=" var "+E+" = undefined; "}if(w){r+=" "+E+" = "+E+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+E+".length; "+g+"++) { var "+m+" = "+E+"["+g+"]; "}else{r+=" for (var "+m+" in "+l+") { "}r+=" var startErrs"+i+" = errors; ";var k=m;var D=e.compositeRule;e.compositeRule=p.compositeRule=true;var x=e.validate(p);p.baseId=S;if(e.util.varOccurences(x,b)<2){r+=" "+e.util.varReplace(x,b,k)+" "}else{r+=" var "+b+" = "+k+"; "+x+" "}e.compositeRule=p.compositeRule=D;r+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+m+"; } var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"propertyNames"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+v+"' } ";if(e.opts.messages!==false){r+=" , message: 'property name \\'"+v+"\\' is invalid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}if(u){r+=" break; "}r+=" } }"}if(u){r+=" "+d+" if ("+f+" == errors) {"}return r}},41944:e=>{"use strict";e.exports=function generate_ref(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var u="data"+(s||"");var l="valid"+i;var f,p;if(o=="#"||o=="#/"){if(e.isRoot){f=e.async;p="validate"}else{f=e.root.schema.$async===true;p="root.refVal[0]"}}else{var d=e.resolveRef(e.baseId,o,e.isRoot);if(d===undefined){var h=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(h);var m=m||[];m.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(a)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ";if(e.opts.messages!==false){r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "}if(e.opts.verbose){r+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}r+=" } "}else{r+=" {} "}var g=r;r=m.pop();if(!e.compositeRule&&c){if(e.async){r+=" throw new ValidationError(["+g+"]); "}else{r+=" validate.errors = ["+g+"]; return false; "}}else{r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(c){r+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(c){r+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,o,h)}}else if(d.inline){var y=e.util.copy(e);y.level++;var v="valid"+y.level;y.schema=d.schema;y.schemaPath="";y.errSchemaPath=o;var _=e.validate(y).replace(/validate\.schema/g,d.code);r+=" "+_+" ";if(c){r+=" if ("+v+") { "}}else{f=d.$async===true||e.async&&d.$async!==false;p=d.code}}if(p){var m=m||[];m.push(r);r="";if(e.opts.passContext){r+=" "+p+".call(this, "}else{r+=" "+p+"( "}r+=" "+u+", (dataPath || '')";if(e.errorPath!='""'){r+=" + "+e.errorPath}var b=s?"data"+(s-1||""):"parentData",E=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+b+" , "+E+", rootData) ";var w=r;r=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(c){r+=" var "+l+"; "}r+=" try { await "+w+"; ";if(c){r+=" "+l+" = true; "}r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(c){r+=" "+l+" = false; "}r+=" } ";if(c){r+=" if ("+l+") { "}}else{r+=" if (!"+w+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ";if(c){r+=" else { "}}}return r}},16372:e=>{"use strict";e.exports=function generate_required(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}var h="schema"+i;if(!p){if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[];var g=o;if(g){var y,v=-1,_=g.length-1;while(v<_){y=g[v+=1];var b=e.schema.properties[y];if(!(b&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all)))){m[m.length]=y}}}}else{var m=o}}if(p||m.length){var E=e.errorPath,w=p||m.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(u){r+=" var missing"+i+"; ";if(w){if(!p){r+=" var "+h+" = validate.schema"+a+"; "}var k="i"+i,D="schema"+i+"["+k+"]",x="' + "+D+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(E,D,e.opts.jsonPointers)}r+=" var "+f+" = true; ";if(p){r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}r+=" for (var "+k+" = 0; "+k+" < "+h+".length; "+k+"++) { "+f+" = "+l+"["+h+"["+k+"]] !== undefined ";if(S){r+=" && Object.prototype.hasOwnProperty.call("+l+", "+h+"["+k+"]) "}r+="; if (!"+f+") break; } ";if(p){r+=" } "}r+=" if (!"+f+") { ";var C=C||[];C.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+x+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+x+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var A=r;r=C.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+A+"]); "}else{r+=" validate.errors = ["+A+"]; return false; "}}else{r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { "}else{r+=" if ( ";var T=m;if(T){var M,k=-1,O=T.length-1;while(k<O){M=T[k+=1];if(k){r+=" || "}var F=e.util.getProperty(M),I=l+F;r+=" ( ( "+I+" === undefined ";if(S){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(M)+"') "}r+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?M:F)+") ) "}}r+=") { ";var D="missing"+i,x="' + "+D+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,D,true):E+" + "+D}var C=C||[];C.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+x+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+x+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var A=r;r=C.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+A+"]); "}else{r+=" validate.errors = ["+A+"]; return false; "}}else{r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { "}}else{if(w){if(!p){r+=" var "+h+" = validate.schema"+a+"; "}var k="i"+i,D="schema"+i+"["+k+"]",x="' + "+D+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(E,D,e.opts.jsonPointers)}if(p){r+=" if ("+h+" && !Array.isArray("+h+")) { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+x+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+x+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "}r+=" for (var "+k+" = 0; "+k+" < "+h+".length; "+k+"++) { if ("+l+"["+h+"["+k+"]] === undefined ";if(S){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+h+"["+k+"]) "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+x+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+x+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";if(p){r+=" } "}}else{var R=m;if(R){var M,P=-1,N=R.length-1;while(P<N){M=R[P+=1];var F=e.util.getProperty(M),x=e.util.escapeQuotes(M),I=l+F;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(E,M,e.opts.jsonPointers)}r+=" if ( "+I+" === undefined ";if(S){r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(M)+"') "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+x+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+x+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}}e.errorPath=E}else if(u){r+=" if (true) {"}return r}},37270:e=>{"use strict";e.exports=function generate_uniqueItems(e,t,n){var r=" ";var i=e.level;var s=e.dataLevel;var o=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var l="data"+(s||"");var f="valid"+i;var p=e.opts.$data&&o&&o.$data,d;if(p){r+=" var schema"+i+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ";d="schema"+i}else{d=o}if((o||p)&&e.opts.uniqueItems!==false){if(p){r+=" var "+f+"; if ("+d+" === false || "+d+" === undefined) "+f+" = true; else if (typeof "+d+" != 'boolean') "+f+" = false; else { "}r+=" var i = "+l+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+l+"[i], "+l+"[j])) { "+f+" = false; break outer; } } } "}else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+l+"[i]; ";var g="checkDataType"+(m?"s":"");r+=" if ("+e.util[g](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){r+=" if (typeof item == 'string') item = '\"' + item; "}r+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ";if(p){r+=" } "}r+=" if (!"+f+") { ";var y=y||[];y.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){r+=" , schema: ";if(p){r+="validate.schema"+a}else{r+=""+o}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}r+=" } "}else{r+=" {} "}var v=r;r=y.pop();if(!e.compositeRule&&u){if(e.async){r+=" throw new ValidationError(["+v+"]); "}else{r+=" validate.errors = ["+v+"]; return false; "}}else{r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(u){r+=" else { "}}else{if(u){r+=" if (true) { "}}return r}},85061:e=>{"use strict";e.exports=function generate_validate(e,t,n){var r="";var i=e.schema.$async===true,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var c="unknown keyword: "+a;if(e.opts.strictKeywords==="log")e.logger.warn(c);else throw new Error(c)}}if(e.isTop){r+=" var validate = ";if(i){e.async=true;r+="async "}r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(o&&(e.opts.sourceCode||e.opts.processCode)){r+=" "+("/*# sourceURL="+o+" */")+" "}}if(typeof e.schema=="boolean"||!(s||e.schema.$ref)){var t="false schema";var u=e.level;var l=e.dataLevel;var f=e.schema[t];var p=e.schemaPath+e.util.getProperty(t);var d=e.errSchemaPath+"/"+t;var h=!e.opts.allErrors;var m;var g="data"+(l||"");var y="valid"+u;if(e.schema===false){if(e.isTop){h=true}else{r+=" var "+y+" = false; "}var v=v||[];v.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'boolean schema is false' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "}r+=" } "}else{r+=" {} "}var _=r;r=v.pop();if(!e.compositeRule&&h){if(e.async){r+=" throw new ValidationError(["+_+"]); "}else{r+=" validate.errors = ["+_+"]; return false; "}}else{r+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){r+=" return data; "}else{r+=" validate.errors = null; return true; "}}else{r+=" var "+y+" = true; "}}if(e.isTop){r+=" }; return validate; "}return r}if(e.isTop){var b=e.isTop,u=e.level=0,l=e.dataLevel=0,g="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[undefined];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var E="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}r+=" var vErrors = null; ";r+=" var errors = 0; ";r+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,l=e.dataLevel,g="data"+(l||"");if(o)e.baseId=e.resolve.url(e.baseId,o);if(i&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+u+" = errors;"}var y="valid"+u,h=!e.opts.allErrors,w="",S="";var m;var k=e.schema.type,D=Array.isArray(k);if(k&&e.opts.nullable&&e.schema.nullable===true){if(D){if(k.indexOf("null")==-1)k=k.concat("null")}else if(k!="null"){k=[k,"null"];D=true}}if(D&&k.length==1){k=k[0];D=false}if(e.schema.$ref&&s){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){s=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){r+=" "+e.RULES.all.$comment.code(e,"$comment")}if(k){if(e.opts.coerceTypes){var x=e.util.coerceToTypes(e.opts.coerceTypes,k)}var C=e.RULES.types[k];if(x||D||C===true||C&&!$shouldUseGroup(C)){var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type",A=D?"checkDataTypes":"checkDataType";r+=" if ("+e.util[A](k,g,e.opts.strictNumbers,true)+") { ";if(x){var T="dataType"+u,M="coerced"+u;r+=" var "+T+" = typeof "+g+"; var "+M+" = undefined; ";if(e.opts.coerceTypes=="array"){r+=" if ("+T+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+T+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+M+" = "+g+"; } "}r+=" if ("+M+" !== undefined) ; ";var O=x;if(O){var F,I=-1,R=O.length-1;while(I<R){F=O[I+=1];if(F=="string"){r+=" else if ("+T+" == 'number' || "+T+" == 'boolean') "+M+" = '' + "+g+"; else if ("+g+" === null) "+M+" = ''; "}else if(F=="number"||F=="integer"){r+=" else if ("+T+" == 'boolean' || "+g+" === null || ("+T+" == 'string' && "+g+" && "+g+" == +"+g+" ";if(F=="integer"){r+=" && !("+g+" % 1)"}r+=")) "+M+" = +"+g+"; "}else if(F=="boolean"){r+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+M+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+M+" = true; "}else if(F=="null"){r+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+M+" = null; "}else if(e.opts.coerceTypes=="array"&&F=="array"){r+=" else if ("+T+" == 'string' || "+T+" == 'number' || "+T+" == 'boolean' || "+g+" == null) "+M+" = ["+g+"]; "}}}r+=" else { ";var v=v||[];v.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "}r+=" } "}else{r+=" {} "}var _=r;r=v.pop();if(!e.compositeRule&&h){if(e.async){r+=" throw new ValidationError(["+_+"]); "}else{r+=" validate.errors = ["+_+"]; return false; "}}else{r+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } if ("+M+" !== undefined) { ";var P=l?"data"+(l-1||""):"parentData",N=l?e.dataPathArr[l]:"parentDataProperty";r+=" "+g+" = "+M+"; ";if(!l){r+="if ("+P+" !== undefined)"}r+=" "+P+"["+N+"] = "+M+"; } "}else{var v=v||[];v.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "}r+=" } "}else{r+=" {} "}var _=r;r=v.pop();if(!e.compositeRule&&h){if(e.async){r+=" throw new ValidationError(["+_+"]); "}else{r+=" validate.errors = ["+_+"]; return false; "}}else{r+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}r+=" } "}}if(e.schema.$ref&&!s){r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ";if(h){r+=" } if (errors === ";if(b){r+="0"}else{r+="errs_"+u}r+=") { ";S+="}"}}else{var L=e.RULES;if(L){var C,B=-1,j=L.length-1;while(B<j){C=L[B+=1];if($shouldUseGroup(C)){if(C.type){r+=" if ("+e.util.checkDataType(C.type,g,e.opts.strictNumbers)+") { "}if(e.opts.useDefaults){if(C.type=="object"&&e.schema.properties){var f=e.schema.properties,U=Object.keys(f);var z=U;if(z){var H,V=-1,G=z.length-1;while(V<G){H=z[V+=1];var q=f[H];if(q.default!==undefined){var W=g+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){var E="default is ignored for: "+W;if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}}else{r+=" if ("+W+" === undefined ";if(e.opts.useDefaults=="empty"){r+=" || "+W+" === null || "+W+" === '' "}r+=" ) "+W+" = ";if(e.opts.useDefaults=="shared"){r+=" "+e.useDefault(q.default)+" "}else{r+=" "+JSON.stringify(q.default)+" "}r+="; "}}}}}else if(C.type=="array"&&Array.isArray(e.schema.items)){var K=e.schema.items;if(K){var q,I=-1,X=K.length-1;while(I<X){q=K[I+=1];if(q.default!==undefined){var W=g+"["+I+"]";if(e.compositeRule){if(e.opts.strictDefaults){var E="default is ignored for: "+W;if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}}else{r+=" if ("+W+" === undefined ";if(e.opts.useDefaults=="empty"){r+=" || "+W+" === null || "+W+" === '' "}r+=" ) "+W+" = ";if(e.opts.useDefaults=="shared"){r+=" "+e.useDefault(q.default)+" "}else{r+=" "+JSON.stringify(q.default)+" "}r+="; "}}}}}}var J=C.rules;if(J){var Y,Q=-1,Z=J.length-1;while(Q<Z){Y=J[Q+=1];if($shouldUseRule(Y)){var $=Y.code(e,Y.keyword,C.type);if($){r+=" "+$+" ";if(h){w+="}"}}}}}if(h){r+=" "+w+" ";w=""}if(C.type){r+=" } ";if(k&&k===C.type&&!x){r+=" else { ";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var v=v||[];v.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(D){r+=""+k.join(",")}else{r+=""+k}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "}r+=" } "}else{r+=" {} "}var _=r;r=v.pop();if(!e.compositeRule&&h){if(e.async){r+=" throw new ValidationError(["+_+"]); "}else{r+=" validate.errors = ["+_+"]; return false; "}}else{r+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(h){r+=" if (errors === ";if(b){r+="0"}else{r+="errs_"+u}r+=") { ";S+="}"}}}}}if(h){r+=" "+S+" "}if(b){if(i){r+=" if (errors === 0) return data; ";r+=" else throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; ";r+=" return errors === 0; "}r+=" }; return validate;"}else{r+=" var "+y+" = errors === errs_"+u+";"}function $shouldUseGroup(e){var t=e.rules;for(var n=0;n<t.length;n++)if($shouldUseRule(t[n]))return true}function $shouldUseRule(t){return e.schema[t.keyword]!==undefined||t.implements&&$ruleImplementsSomeKeyword(t)}function $ruleImplementsSomeKeyword(t){var n=t.implements;for(var r=0;r<n.length;r++)if(e.schema[n[r]]!==undefined)return true}return r}},3811:(e,t,n)=>{"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i;var i=n(99819);var s=n(86205);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,true);var s=t.type;if(Array.isArray(s)){for(var o=0;o<s.length;o++)_addRule(e,s[o],t)}else{_addRule(e,s,t)}var a=t.metaSchema;if(a){if(t.$data&&this._opts.$data){a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}t.validateSchema=this.compile(a,true)}}n.keywords[e]=n.all[e]=true;function _addRule(e,t,r){var s;for(var o=0;o<n.length;o++){var a=n[o];if(a.type==t){s=a;break}}if(!s){s={type:t,rules:[]};n.push(s)}var c={keyword:e,definition:r,custom:true,code:i,implements:r.implements};s.rules.push(c);n.custom[e]=c}return this}function getKeyword(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||false}function removeKeyword(e){var t=this.RULES;delete t.keywords[e];delete t.all[e];delete t.custom[e];for(var n=0;n<t.length;n++){var r=t[n].rules;for(var i=0;i<r.length;i++){if(r[i].keyword==e){r.splice(i,1);break}}}return this}function validateKeyword(e,t){validateKeyword.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(s,true);if(n(e))return true;validateKeyword.errors=n.errors;if(t)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));else return false}},23835:e=>{"use strict";e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var r=range(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var r,i,s,o,a;var c=n.indexOf(e);var u=n.indexOf(t,c+1);var l=c;if(c>=0&&u>0){r=[];s=n.length;while(l>=0&&!a){if(l==c){r.push(l);c=n.indexOf(e,l+1)}else if(r.length==1){a=[r.pop(),u]}else{i=r.pop();if(i<s){s=i;o=u}u=n.indexOf(t,l+1)}l=c<u&&c>=0?c:u}if(r.length){a=[s,o]}}return a}},24631:e=>{"use strict";e.exports=function(e){var t=e._SomePromiseArray;function any(e){var n=new t(e);var r=n.promise();n.setHowMany(1);n.setUnwrap();n.init();return r}e.any=function(e){return any(e)};e.prototype.any=function(){return any(this)}}},53938:(e,t,n)=>{"use strict";var r;try{throw new Error}catch(e){r=e}var i=n(30585);var s=n(1460);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new s(16);this._normalQueue=new s(16);this._haveDrainedQueues=false;var e=this;this.drainQueues=function(){e._drainQueues()};this._schedule=i}Async.prototype.setScheduler=function(e){var t=this._schedule;this._schedule=e;this._customScheduler=true;return t};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(e,t){if(t){process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n");process.exit(2)}else{this.throwLater(e)}};Async.prototype.throwLater=function(e,t){if(arguments.length===1){t=e;e=function(){throw t}}if(typeof setTimeout!=="undefined"){setTimeout(function(){e(t)},0)}else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(e,t,n){this._lateQueue.push(e,t,n);this._queueTick()}function AsyncInvoke(e,t,n){this._normalQueue.push(e,t,n);this._queueTick()}function AsyncSettlePromises(e){this._normalQueue._pushOne(e);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(e){while(e.length()>0){_drainQueueStep(e)}}function _drainQueueStep(e){var t=e.shift();if(typeof t!=="function"){t._settlePromises()}else{var n=e.shift();var r=e.shift();t.call(n,r)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};e.exports=Async;e.exports.firstLineError=r},96088:e=>{"use strict";e.exports=function(e,t,n,r){var i=false;var s=function(e,t){this._reject(t)};var o=function(e,t){t.promiseRejectionQueued=true;t.bindingPromise._then(s,s,null,this,e)};var a=function(e,t){if((this._bitField&50397184)===0){this._resolveCallback(t.target)}};var c=function(e,t){if(!t.promiseRejectionQueued)this._reject(e)};e.prototype.bind=function(s){if(!i){i=true;e.prototype._propagateFrom=r.propagateFromFunction();e.prototype._boundValue=r.boundValueFunction()}var u=n(s);var l=new e(t);l._propagateFrom(this,1);var f=this._target();l._setBoundTo(u);if(u instanceof e){var p={promiseRejectionQueued:false,promise:l,target:f,bindingPromise:u};f._then(t,o,undefined,l,p);u._then(a,c,undefined,l,p);l._setOnCancel(u)}else{l._resolveCallback(f)}return l};e.prototype._setBoundTo=function(e){if(e!==undefined){this._bitField=this._bitField|2097152;this._boundTo=e}else{this._bitField=this._bitField&~2097152}};e.prototype._isBound=function(){return(this._bitField&2097152)===2097152};e.bind=function(t,n){return e.resolve(n).bind(t)}}},16853:(e,t,n)=>{"use strict";var r;if(typeof Promise!=="undefined")r=Promise;function noConflict(){try{if(Promise===i)Promise=r}catch(e){}return i}var i=n(26854)();i.noConflict=noConflict;e.exports=i},1623:(e,t,n)=>{"use strict";var r=Object.create;if(r){var i=r(null);var s=r(null);i[" size"]=s[" size"]=0}e.exports=function(e){var t=n(29505);var r=t.canEvaluate;var o=t.isIdentifier;var a;var c;if(true){var u=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(ensureMethod)};var l=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))};var f=function(e,t,n){var r=n[e];if(typeof r!=="function"){if(!o(e)){return null}r=t(e);n[e]=r;n[" size"]++;if(n[" size"]>512){var i=Object.keys(n);for(var s=0;s<256;++s)delete n[i[s]];n[" size"]=i.length-256}}return r};a=function(e){return f(e,u,i)};c=function(e){return f(e,l,s)}}function ensureMethod(n,r){var i;if(n!=null)i=n[r];if(typeof i!=="function"){var s="Object "+t.classString(n)+" has no method '"+t.toString(r)+"'";throw new e.TypeError(s)}return i}function caller(e){var t=this.pop();var n=ensureMethod(e,t);return n.apply(e,this)}e.prototype.call=function(e){var t=arguments.length;var n=new Array(Math.max(t-1,0));for(var i=1;i<t;++i){n[i-1]=arguments[i]}if(true){if(r){var s=a(e);if(s!==null){return this._then(s,undefined,undefined,n,undefined)}}}n.push(e);return this._then(caller,undefined,undefined,n,undefined)};function namedGetter(e){return e[this]}function indexedGetter(e){var t=+this;if(t<0)t=Math.max(0,t+e.length);return e[t]}e.prototype.get=function(e){var t=typeof e==="number";var n;if(!t){if(r){var i=c(e);n=i!==null?i:namedGetter}else{n=namedGetter}}else{n=indexedGetter}return this._then(n,undefined,undefined,e,undefined)}}},9462:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i){var s=n(29505);var o=s.tryCatch;var a=s.errorObj;var c=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var e=this;var t=e;while(e._isCancellable()){if(!e._cancelBy(t)){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}var n=e._cancellationParent;if(n==null||!n._isCancellable()){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}else{if(e._isFollowing())e._followee().cancel();e._setWillBeCancelled();t=e;e=n}}};e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};e.prototype._cancelBy=function(e){if(e===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();c.invoke(this._cancelPromises,this,undefined)};e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};e.prototype._unsetOnCancel=function(){this._onCancelField=undefined};e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};e.prototype._doInvokeOnCancel=function(e,t){if(s.isArray(e)){for(var n=0;n<e.length;++n){this._doInvokeOnCancel(e[n],t)}}else if(e!==undefined){if(typeof e==="function"){if(!t){var r=o(e).call(this._boundValue());if(r===a){this._attachExtraTrace(r.e);c.throwLater(r.e)}}}else{e._resultCancelled(this)}}};e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel();c.invoke(this._doInvokeOnCancel,this,e)};e.prototype._invokeInternalOnCancel=function(){if(this._isCancellable()){this._doInvokeOnCancel(this._onCancel(),true);this._unsetOnCancel()}};e.prototype._resultCancelled=function(){this.cancel()}}},5622:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(29505);var r=n(34673).keys;var i=t.tryCatch;var s=t.errorObj;function catchFilter(n,o,a){return function(c){var u=a._boundValue();e:for(var l=0;l<n.length;++l){var f=n[l];if(f===Error||f!=null&&f.prototype instanceof Error){if(c instanceof f){return i(o).call(u,c)}}else if(typeof f==="function"){var p=i(f).call(u,c);if(p===s){return p}else if(p){return i(o).call(u,c)}}else if(t.isObject(c)){var d=r(f);for(var h=0;h<d.length;++h){var m=d[h];if(f[m]!=c[m]){continue e}}return i(o).call(u,c)}}return e}}return catchFilter}},81281:e=>{"use strict";e.exports=function(e){var t=false;var n=[];e.prototype._promiseCreated=function(){};e.prototype._pushContext=function(){};e.prototype._popContext=function(){return null};e._peekContext=e.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;n.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var e=n.pop();var t=e._promiseCreated;e._promiseCreated=null;return t}return null};function createContext(){if(t)return new Context}function peekContext(){var e=n.length-1;if(e>=0){return n[e]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var n=e.prototype._pushContext;var r=e.prototype._popContext;var i=e._peekContext;var s=e.prototype._peekContext;var o=e.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){e.prototype._pushContext=n;e.prototype._popContext=r;e._peekContext=i;e.prototype._peekContext=s;e.prototype._promiseCreated=o;t=false};t=true;e.prototype._pushContext=Context.prototype._pushContext;e.prototype._popContext=Context.prototype._popContext;e._peekContext=e.prototype._peekContext=peekContext;e.prototype._promiseCreated=function(){var e=this._peekContext();if(e&&e._promiseCreated==null)e._promiseCreated=this}};return Context}},97280:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i){var s=e._async;var o=n(2222).Warning;var a=n(29505);var c=n(34673);var u=a.canAttachTrace;var l;var f;var p=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var d=/\((?:timers\.js):\d+:\d+\)/;var h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var m=null;var g=null;var y=false;var v;var _=!!(a.env("BLUEBIRD_DEBUG")!=0&&(false||a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development"));var b=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(_||a.env("BLUEBIRD_WARNINGS")));var E=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(_||a.env("BLUEBIRD_LONG_STACK_TRACES")));var w=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(b||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));var S;(function(){var t=[];function unhandledRejectionCheck(){for(var e=0;e<t.length;++e){t[e]._notifyUnhandledRejection()}unhandledRejectionClear()}function unhandledRejectionClear(){t.length=0}S=function(e){t.push(e);setTimeout(unhandledRejectionCheck,1)};c.defineProperty(e,"_unhandledRejectionCheck",{value:unhandledRejectionCheck});c.defineProperty(e,"_unhandledRejectionClear",{value:unhandledRejectionClear})})();e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=e._bitField&~1048576|524288};e.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled();S(this)};e.prototype._notifyUnhandledRejectionIsHandled=function(){fireRejectionEvent("rejectionHandled",l,undefined,this)};e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456};e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0};e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified();fireRejectionEvent("unhandledRejection",f,e,this)}};e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144};e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&~262144};e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0};e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};e.prototype._warn=function(e,t,n){return warn(e,t,n||this)};e.onPossiblyUnhandledRejection=function(t){var n=e._getContext();f=a.contextBind(n,t)};e.onUnhandledRejectionHandled=function(t){var n=e._getContext();l=a.contextBind(n,t)};var k=function(){};e.longStackTraces=function(){if(s.haveItemsQueued()&&!R.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!R.longStackTraces&&longStackTracesIsSupported()){var n=e.prototype._captureStackTrace;var r=e.prototype._attachExtraTrace;var i=e.prototype._dereferenceTrace;R.longStackTraces=true;k=function(){if(s.haveItemsQueued()&&!R.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}e.prototype._captureStackTrace=n;e.prototype._attachExtraTrace=r;e.prototype._dereferenceTrace=i;t.deactivateLongStackTraces();R.longStackTraces=false};e.prototype._captureStackTrace=longStackTracesCaptureStackTrace;e.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;e.prototype._dereferenceTrace=longStackTracesDereferenceTrace;t.activateLongStackTraces()}};e.hasLongStackTraces=function(){return R.longStackTraces&&longStackTracesIsSupported()};var D={unhandledrejection:{before:function(){var e=a.global.onunhandledrejection;a.global.onunhandledrejection=null;return e},after:function(e){a.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=a.global.onrejectionhandled;a.global.onrejectionhandled=null;return e},after:function(e){a.global.onrejectionhandled=e}}};var x=function(){var e=function(e,t){if(e){var n;try{n=e.before();return!a.global.dispatchEvent(t)}finally{e.after(n)}}else{return!a.global.dispatchEvent(t)}};try{if(typeof CustomEvent==="function"){var t=new CustomEvent("CustomEvent");a.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var r={detail:n,cancelable:true};var i=new CustomEvent(t,r);c.defineProperty(i,"promise",{value:n.promise});c.defineProperty(i,"reason",{value:n.reason});return e(D[t],i)}}else if(typeof Event==="function"){var t=new Event("CustomEvent");a.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var r=new Event(t,{cancelable:true});r.detail=n;c.defineProperty(r,"promise",{value:n.promise});c.defineProperty(r,"reason",{value:n.reason});return e(D[t],r)}}else{var t=document.createEvent("CustomEvent");t.initCustomEvent("testingtheevent",false,true,{});a.global.dispatchEvent(t);return function(t,n){t=t.toLowerCase();var r=document.createEvent("CustomEvent");r.initCustomEvent(t,false,true,n);return e(D[t],r)}}}catch(e){}return function(){return false}}();var C=function(){if(a.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!a.global){return function(){return false}}return function(e){var t="on"+e.toLowerCase();var n=a.global[t];if(!n)return false;n.apply(a.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(e,t){return{promise:t}}var A={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:generatePromiseLifecycleEventObject};var T=function(e){var t=false;try{t=C.apply(null,arguments)}catch(e){s.throwLater(e);t=true}var n=false;try{n=x(e,A[e].apply(null,arguments))}catch(e){s.throwLater(e);n=true}return n||t};e.config=function(t){t=Object(t);if("longStackTraces"in t){if(t.longStackTraces){e.longStackTraces()}else if(!t.longStackTraces&&e.hasLongStackTraces()){k()}}if("warnings"in t){var n=t.warnings;R.warnings=!!n;w=R.warnings;if(a.isObject(n)){if("wForgottenReturn"in n){w=!!n.wForgottenReturn}}}if("cancellation"in t&&t.cancellation&&!R.cancellation){if(s.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}e.prototype._clearCancellationData=cancellationClearCancellationData;e.prototype._propagateFrom=cancellationPropagateFrom;e.prototype._onCancel=cancellationOnCancel;e.prototype._setOnCancel=cancellationSetOnCancel;e.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;e.prototype._execute=cancellationExecute;M=cancellationPropagateFrom;R.cancellation=true}if("monitoring"in t){if(t.monitoring&&!R.monitoring){R.monitoring=true;e.prototype._fireEvent=T}else if(!t.monitoring&&R.monitoring){R.monitoring=false;e.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in t&&a.nodeSupportsAsyncResource){var o=R.asyncHooks;var c=!!t.asyncHooks;if(o!==c){R.asyncHooks=c;if(c){r()}else{i()}}}return e};function defaultFireEvent(){return false}e.prototype._fireEvent=defaultFireEvent;e.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}};e.prototype._onCancel=function(){};e.prototype._setOnCancel=function(e){};e.prototype._attachCancellationCallback=function(e){};e.prototype._captureStackTrace=function(){};e.prototype._attachExtraTrace=function(){};e.prototype._dereferenceTrace=function(){};e.prototype._clearCancellationData=function(){};e.prototype._propagateFrom=function(e,t){};function cancellationExecute(e,t,n){var r=this;try{e(t,n,function(e){if(typeof e!=="function"){throw new TypeError("onCancel must be a function, got: "+a.toString(e))}r._attachCancellationCallback(e)})}catch(e){return e}}function cancellationAttachCancellationCallback(e){if(!this._isCancellable())return this;var t=this._onCancel();if(t!==undefined){if(a.isArray(t)){t.push(e)}else{this._setOnCancel([t,e])}}else{this._setOnCancel(e)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(e){this._onCancelField=e}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(e,t){if((t&1)!==0){this._cancellationParent=e;var n=e._branchesRemainingToCancel;if(n===undefined){n=0}e._branchesRemainingToCancel=n+1}if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}function bindingPropagateFrom(e,t){if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}var M=bindingPropagateFrom;function boundValueFunction(){var t=this._boundTo;if(t!==undefined){if(t instanceof e){if(t.isFulfilled()){return t.value()}else{return undefined}}}return t}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(e,t){if(u(e)){var n=this._trace;if(n!==undefined){if(t)n=n._parent}if(n!==undefined){n.attachExtraTrace(e)}else if(!e.__stackCleaned__){var r=parseStackAndMessage(e);a.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n"));a.notEnumerableProp(e,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(e,t,n,r,i){if(e===undefined&&t!==null&&w){if(i!==undefined&&i._returnedNonUndefined())return;if((r._bitField&65535)===0)return;if(n)n=n+" ";var s="";var o="";if(t._trace){var a=t._trace.stack.split("\n");var c=cleanStack(a);for(var u=c.length-1;u>=0;--u){var l=c[u];if(!d.test(l)){var f=l.match(h);if(f){s="at "+f[1]+":"+f[2]+":"+f[3]+" "}break}}if(c.length>0){var p=c[0];for(var u=0;u<a.length;++u){if(a[u]===p){if(u>0){o="\n"+a[u-1]}break}}}}var m="a promise was created in a "+n+"handler "+s+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+o;r._warn(m,true,t)}}function deprecated(e,t){var n=e+" is deprecated and will be removed in a future version.";if(t)n+=" Use "+t+" instead.";return warn(n)}function warn(t,n,r){if(!R.warnings)return;var i=new o(t);var s;if(n){r._attachExtraTrace(i)}else if(R.longStackTraces&&(s=e._peekContext())){s.attachExtraTrace(i)}else{var a=parseStackAndMessage(i);i.stack=a.message+"\n"+a.stack.join("\n")}if(!T("warning",i)){formatAndLogError(i,"",true)}}function reconstructStack(e,t){for(var n=0;n<t.length-1;++n){t[n].push("From previous event:");t[n]=t[n].join("\n")}if(n<t.length){t[n]=t[n].join("\n")}return e+"\n"+t.join("\n")}function removeDuplicateOrEmptyJumps(e){for(var t=0;t<e.length;++t){if(e[t].length===0||t+1<e.length&&e[t][0]===e[t+1][0]){e.splice(t,1);t--}}}function removeCommonRoots(e){var t=e[0];for(var n=1;n<e.length;++n){var r=e[n];var i=t.length-1;var s=t[i];var o=-1;for(var a=r.length-1;a>=0;--a){if(r[a]===s){o=a;break}}for(var a=o;a>=0;--a){var c=r[a];if(t[i]===c){t.pop();i--}else{break}}t=r}}function cleanStack(e){var t=[];for(var n=0;n<e.length;++n){var r=e[n];var i=" (No stack trace)"===r||m.test(r);var s=i&&O(r);if(i&&!s){if(y&&r.charAt(0)!==" "){r=" "+r}t.push(r)}}return t}function stackFramesAsArray(e){var t=e.stack.replace(/\s+$/g,"").split("\n");for(var n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||m.test(r)){break}}if(n>0&&e.name!="SyntaxError"){t=t.slice(n)}return t}function parseStackAndMessage(e){var t=e.stack;var n=e.toString();t=typeof t==="string"&&t.length>0?stackFramesAsArray(e):[" (No stack trace)"];return{message:n,stack:e.name=="SyntaxError"?t:cleanStack(t)}}function formatAndLogError(e,t,n){if(typeof console!=="undefined"){var r;if(a.isObject(e)){var i=e.stack;r=t+g(i,e)}else{r=t+String(e)}if(typeof v==="function"){v(r,n)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(r)}}}function fireRejectionEvent(e,t,n,r){var i=false;try{if(typeof t==="function"){i=true;if(e==="rejectionHandled"){t(r)}else{t(n,r)}}}catch(e){s.throwLater(e)}if(e==="unhandledRejection"){if(!T(e,n,r)&&!i){formatAndLogError(n,"Unhandled rejection ")}}else{T(e,r)}}function formatNonError(e){var t;if(typeof e==="function"){t="[function "+(e.name||"anonymous")+"]"}else{t=e&&typeof e.toString==="function"?e.toString():a.toString(e);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(t)){try{var r=JSON.stringify(e);t=r}catch(e){}}if(t.length===0){t="(empty array)"}}return"(<"+snip(t)+">, no stack trace)"}function snip(e){var t=41;if(e.length<t){return e}return e.substr(0,t-3)+"..."}function longStackTracesIsSupported(){return typeof I==="function"}var O=function(){return false};var F=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function parseLineInfo(e){var t=e.match(F);if(t){return{fileName:t[1],line:parseInt(t[2],10)}}}function setBounds(e,t){if(!longStackTracesIsSupported())return;var n=(e.stack||"").split("\n");var r=(t.stack||"").split("\n");var i=-1;var s=-1;var o;var a;for(var c=0;c<n.length;++c){var u=parseLineInfo(n[c]);if(u){o=u.fileName;i=u.line;break}}for(var c=0;c<r.length;++c){var u=parseLineInfo(r[c]);if(u){a=u.fileName;s=u.line;break}}if(i<0||s<0||!o||!a||o!==a||i>=s){return}O=function(e){if(p.test(e))return true;var t=parseLineInfo(e);if(t){if(t.fileName===o&&(i<=t.line&&t.line<=s)){return true}}return false}}function CapturedTrace(e){this._parent=e;this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);I(this,CapturedTrace);if(t>32)this.uncycle()}a.inherits(CapturedTrace,Error);t.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var e=this._length;if(e<2)return;var t=[];var n={};for(var r=0,i=this;i!==undefined;++r){t.push(i);i=i._parent}e=this._length=r;for(var r=e-1;r>=0;--r){var s=t[r].stack;if(n[s]===undefined){n[s]=r}}for(var r=0;r<e;++r){var o=t[r].stack;var a=n[o];if(a!==undefined&&a!==r){if(a>0){t[a-1]._parent=undefined;t[a-1]._length=1}t[r]._parent=undefined;t[r]._length=1;var c=r>0?t[r-1]:this;if(a<e-1){c._parent=t[a+1];c._parent.uncycle();c._length=c._parent._length+1}else{c._parent=undefined;c._length=1}var u=c._length+1;for(var l=r-2;l>=0;--l){t[l]._length=u;u++}return}}};CapturedTrace.prototype.attachExtraTrace=function(e){if(e.__stackCleaned__)return;this.uncycle();var t=parseStackAndMessage(e);var n=t.message;var r=[t.stack];var i=this;while(i!==undefined){r.push(cleanStack(i.stack.split("\n")));i=i._parent}removeCommonRoots(r);removeDuplicateOrEmptyJumps(r);a.notEnumerableProp(e,"stack",reconstructStack(n,r));a.notEnumerableProp(e,"__stackCleaned__",true)};var I=function stackDetection(){var e=/^\s*at\s*/;var t=function(e,t){if(typeof e==="string")return e;if(t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;m=e;g=t;var n=Error.captureStackTrace;O=function(e){return p.test(e)};return function(e,t){Error.stackTraceLimit+=6;n(e,t);Error.stackTraceLimit-=6}}var r=new Error;if(typeof r.stack==="string"&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0){m=/@/;g=t;y=true;return function captureStackTrace(e){e.stack=(new Error).stack}}var i;try{throw new Error}catch(e){i="stack"in e}if(!("stack"in r)&&i&&typeof Error.stackTraceLimit==="number"){m=e;g=t;return function captureStackTrace(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}}g=function(e,t){if(typeof e==="string")return e;if((typeof t==="object"||typeof t==="function")&&t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){v=function(e){console.warn(e)};if(a.isNode&&process.stderr.isTTY){v=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}}else if(!a.isNode&&typeof(new Error).stack==="string"){v=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}}}var R={warnings:b,longStackTraces:false,cancellation:false,monitoring:false,asyncHooks:false};if(E)e.longStackTraces();return{asyncHooks:function(){return R.asyncHooks},longStackTraces:function(){return R.longStackTraces},warnings:function(){return R.warnings},cancellation:function(){return R.cancellation},monitoring:function(){return R.monitoring},propagateFromFunction:function(){return M},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:x,fireGlobalEvent:C}}},87926:e=>{"use strict";e.exports=function(e){function returner(){return this.value}function thrower(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(t){if(t instanceof e)t.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:t},undefined)};e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(thrower,undefined,undefined,{reason:e},undefined)};e.prototype.catchThrow=function(e){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:e},undefined)}else{var t=arguments[1];var n=function(){throw t};return this.caught(e,n)}};e.prototype.catchReturn=function(t){if(arguments.length<=1){if(t instanceof e)t.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:t},undefined)}else{var n=arguments[1];if(n instanceof e)n.suppressUnhandledRejections();var r=function(){return n};return this.caught(t,r)}}}},5882:e=>{"use strict";e.exports=function(e,t){var n=e.reduce;var r=e.all;function promiseAllThis(){return r(this)}function PromiseMapSeries(e,r){return n(e,r,t,t)}e.prototype.each=function(e){return n(this,e,t,0)._then(promiseAllThis,undefined,undefined,this,undefined)};e.prototype.mapSeries=function(e){return n(this,e,t,t)};e.each=function(e,r){return n(e,r,t,0)._then(promiseAllThis,undefined,undefined,e,undefined)};e.mapSeries=PromiseMapSeries}},2222:(e,t,n)=>{"use strict";var r=n(34673);var i=r.freeze;var s=n(29505);var o=s.inherits;var a=s.notEnumerableProp;function subError(e,t){function SubError(n){if(!(this instanceof SubError))return new SubError(n);a(this,"message",typeof n==="string"?n:t);a(this,"name",e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}o(SubError,Error);return SubError}var c,u;var l=subError("Warning","warning");var f=subError("CancellationError","cancellation error");var p=subError("TimeoutError","timeout error");var d=subError("AggregateError","aggregate error");try{c=TypeError;u=RangeError}catch(e){c=subError("TypeError","type error");u=subError("RangeError","range error")}var h=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var m=0;m<h.length;++m){if(typeof Array.prototype[h[m]]==="function"){d.prototype[h[m]]=Array.prototype[h[m]]}}r.defineProperty(d.prototype,"length",{value:0,configurable:false,writable:true,enumerable:true});d.prototype["isOperational"]=true;var g=0;d.prototype.toString=function(){var e=Array(g*4+1).join(" ");var t="\n"+e+"AggregateError of:"+"\n";g++;e=Array(g*4+1).join(" ");for(var n=0;n<this.length;++n){var r=this[n]===this?"[Circular AggregateError]":this[n]+"";var i=r.split("\n");for(var s=0;s<i.length;++s){i[s]=e+i[s]}r=i.join("\n");t+=r+"\n"}g--;return t};function OperationalError(e){if(!(this instanceof OperationalError))return new OperationalError(e);a(this,"name","OperationalError");a(this,"message",e);this.cause=e;this["isOperational"]=true;if(e instanceof Error){a(this,"message",e.message);a(this,"stack",e.stack)}else if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}o(OperationalError,Error);var y=Error["__BluebirdErrorTypes__"];if(!y){y=i({CancellationError:f,TimeoutError:p,OperationalError:OperationalError,RejectionError:OperationalError,AggregateError:d});r.defineProperty(Error,"__BluebirdErrorTypes__",{value:y,writable:false,enumerable:false,configurable:false})}e.exports={Error:Error,TypeError:c,RangeError:u,CancellationError:y.CancellationError,OperationalError:y.OperationalError,TimeoutError:y.TimeoutError,AggregateError:y.AggregateError,Warning:l}},34673:e=>{var t=function(){"use strict";return this===undefined}();if(t){e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!(!n||n.writable||n.set)}}}else{var n={}.hasOwnProperty;var r={}.toString;var i={}.constructor.prototype;var s=function(e){var t=[];for(var r in e){if(n.call(e,r)){t.push(r)}}return t};var o=function(e,t){return{value:e[t]}};var a=function(e,t,n){e[t]=n.value;return e};var c=function(e){return e};var u=function(e){try{return Object(e).constructor.prototype}catch(e){return i}};var l=function(e){try{return r.call(e)==="[object Array]"}catch(e){return false}};e.exports={isArray:l,keys:s,names:s,defineProperty:a,getDescriptor:o,freeze:c,getPrototypeOf:u,isES5:t,propertyIsWritable:function(){return true}}}},93366:e=>{"use strict";e.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)};e.filter=function(e,r,i){return n(e,r,i,t)}}},52434:(e,t,n)=>{"use strict";e.exports=function(e,t,r){var i=n(29505);var s=e.CancellationError;var o=i.errorObj;var a=n(5622)(r);function PassThroughHandlerContext(e,t,n){this.promise=e;this.type=t;this.handler=n;this.called=false;this.cancelPromise=null}PassThroughHandlerContext.prototype.isFinallyHandler=function(){return this.type===0};function FinallyHandlerCancelReaction(e){this.finallyHandler=e}FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)};function checkCancel(e,t){if(e.cancelPromise!=null){if(arguments.length>1){e.cancelPromise._reject(t)}else{e.cancelPromise._cancel()}e.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(e){if(checkCancel(this,e))return;o.e=e;return o}function finallyHandler(n){var i=this.promise;var a=this.handler;if(!this.called){this.called=true;var c=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),n);if(c===r){return c}else if(c!==undefined){i._setReturnedNonUndefined();var u=t(c,i);if(u instanceof e){if(this.cancelPromise!=null){if(u._isCancelled()){var l=new s("late cancellation observer");i._attachExtraTrace(l);o.e=l;return o}else if(u.isPending()){u._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return u._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);o.e=n;return o}else{checkCancel(this);return n}}e.prototype._passThrough=function(e,t,n,r){if(typeof e!=="function")return this.then();return this._then(n,r,undefined,new PassThroughHandlerContext(this,t,e),undefined)};e.prototype.lastly=e.prototype["finally"]=function(e){return this._passThrough(e,0,finallyHandler,finallyHandler)};e.prototype.tap=function(e){return this._passThrough(e,1,finallyHandler)};e.prototype.tapCatch=function(t){var n=arguments.length;if(n===1){return this._passThrough(t,1,undefined,finallyHandler)}else{var r=new Array(n-1),s=0,o;for(o=0;o<n-1;++o){var c=arguments[o];if(i.isObject(c)){r[s++]=c}else{return e.reject(new TypeError("tapCatch statement predicate: "+"expecting an object but got "+i.classString(c)))}}r.length=s;var u=arguments[o];return this._passThrough(a(r,u,this),1,undefined,finallyHandler)}};return PassThroughHandlerContext}},93924:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s,o){var a=n(2222);var c=a.TypeError;var u=n(29505);var l=u.errorObj;var f=u.tryCatch;var p=[];function promiseFromYieldHandler(t,n,r){for(var s=0;s<n.length;++s){r._pushContext();var o=f(n[s])(t);r._popContext();if(o===l){r._pushContext();var a=e.reject(l.e);r._popContext();return a}var c=i(o,r);if(c instanceof e)return c}return null}function PromiseSpawn(t,n,i,s){if(o.cancellation()){var a=new e(r);var c=this._finallyPromise=new e(r);this._promise=a.lastly(function(){return c});a._captureStackTrace();a._setOnCancel(this)}else{var u=this._promise=new e(r);u._captureStackTrace()}this._stack=s;this._generatorFunction=t;this._receiver=n;this._generator=undefined;this._yieldHandlers=typeof i==="function"?[i].concat(p):p;this._yieldedPromise=null;this._cancellationPhase=false}u.inherits(PromiseSpawn,s);PromiseSpawn.prototype._isResolved=function(){return this._promise===null};PromiseSpawn.prototype._cleanup=function(){this._promise=this._generator=null;if(o.cancellation()&&this._finallyPromise!==null){this._finallyPromise._fulfill();this._finallyPromise=null}};PromiseSpawn.prototype._promiseCancelled=function(){if(this._isResolved())return;var t=typeof this._generator["return"]!=="undefined";var n;if(!t){var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r;this._promise._attachExtraTrace(r);this._promise._pushContext();n=f(this._generator["throw"]).call(this._generator,r);this._promise._popContext()}else{this._promise._pushContext();n=f(this._generator["return"]).call(this._generator,undefined);this._promise._popContext()}this._cancellationPhase=true;this._yieldedPromise=null;this._continue(n)};PromiseSpawn.prototype._promiseFulfilled=function(e){this._yieldedPromise=null;this._promise._pushContext();var t=f(this._generator.next).call(this._generator,e);this._promise._popContext();this._continue(t)};PromiseSpawn.prototype._promiseRejected=function(e){this._yieldedPromise=null;this._promise._attachExtraTrace(e);this._promise._pushContext();var t=f(this._generator["throw"]).call(this._generator,e);this._promise._popContext();this._continue(t)};PromiseSpawn.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null;t.cancel()}};PromiseSpawn.prototype.promise=function(){return this._promise};PromiseSpawn.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver);this._receiver=this._generatorFunction=undefined;this._promiseFulfilled(undefined)};PromiseSpawn.prototype._continue=function(t){var n=this._promise;if(t===l){this._cleanup();if(this._cancellationPhase){return n.cancel()}else{return n._rejectCallback(t.e,false)}}var r=t.value;if(t.done===true){this._cleanup();if(this._cancellationPhase){return n.cancel()}else{return n._resolveCallback(r)}}else{var s=i(r,this._promise);if(!(s instanceof e)){s=promiseFromYieldHandler(s,this._yieldHandlers,this._promise);if(s===null){this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));return}}s=s._target();var o=s._bitField;if((o&50397184)===0){this._yieldedPromise=s;s._proxy(this,null)}else if((o&33554432)!==0){e._async.invoke(this._promiseFulfilled,this,s._value())}else if((o&16777216)!==0){e._async.invoke(this._promiseRejected,this,s._reason())}else{this._promiseCancelled()}}};e.coroutine=function(e,t){if(typeof e!=="function"){throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var n=Object(t).yieldHandler;var r=PromiseSpawn;var i=(new Error).stack;return function(){var t=e.apply(this,arguments);var s=new r(undefined,undefined,n,i);var o=s.promise();s._generator=t;s._promiseFulfilled(undefined);return o}};e.coroutine.addYieldHandler=function(e){if(typeof e!=="function"){throw new c("expecting a function but got "+u.classString(e))}p.push(e)};e.spawn=function(n){o.deprecated("Promise.spawn()","Promise.coroutine()");if(typeof n!=="function"){return t("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n")}var r=new PromiseSpawn(n,this);var i=r.promise();r._run(e.spawn);return i}}},45138:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s){var o=n(29505);var a=o.canEvaluate;var c=o.tryCatch;var u=o.errorObj;var l;if(true){if(a){var f=function(e){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,e))};var p=function(e){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,e))};var d=function(t){var n=new Array(t);for(var r=0;r<n.length;++r){n[r]="this.p"+(r+1)}var i=n.join(" = ")+" = null;";var o="var promise;\n"+n.map(function(e){return" \n promise = "+e+"; \n if (promise instanceof Promise) { \n promise.cancel(); \n } \n "}).join("\n");var a=n.join(", ");var l="Holder$"+t;var f="return function(tryCatch, errorObj, Promise, async) { \n 'use strict'; \n function [TheName](fn) { \n [TheProperties] \n this.fn = fn; \n this.asyncNeeded = true; \n this.now = 0; \n } \n \n [TheName].prototype._callFunction = function(promise) { \n promise._pushContext(); \n var ret = tryCatch(this.fn)([ThePassedArguments]); \n promise._popContext(); \n if (ret === errorObj) { \n promise._rejectCallback(ret.e, false); \n } else { \n promise._resolveCallback(ret); \n } \n }; \n \n [TheName].prototype.checkFulfillment = function(promise) { \n var now = ++this.now; \n if (now === [TheTotal]) { \n if (this.asyncNeeded) { \n async.invoke(this._callFunction, this, promise); \n } else { \n this._callFunction(promise); \n } \n \n } \n }; \n \n [TheName].prototype._resultCancelled = function() { \n [CancellationCode] \n }; \n \n return [TheName]; \n }(tryCatch, errorObj, Promise, async); \n ";f=f.replace(/\[TheName\]/g,l).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,a).replace(/\[TheProperties\]/g,i).replace(/\[CancellationCode\]/g,o);return new Function("tryCatch","errorObj","Promise","async",f)(c,u,e,s)};var h=[];var m=[];var g=[];for(var y=0;y<8;++y){h.push(d(y+1));m.push(f(y+1));g.push(p(y+1))}l=function(e){this._reject(e)}}}e.join=function(){var n=arguments.length-1;var s;if(n>0&&typeof arguments[n]==="function"){s=arguments[n];if(true){if(n<=8&&a){var c=new e(i);c._captureStackTrace();var u=h[n-1];var f=new u(s);var p=m;for(var d=0;d<n;++d){var y=r(arguments[d],c);if(y instanceof e){y=y._target();var v=y._bitField;if((v&50397184)===0){y._then(p[d],l,undefined,c,f);g[d](y,f);f.asyncNeeded=false}else if((v&33554432)!==0){p[d].call(c,y._value(),f)}else if((v&16777216)!==0){c._reject(y._reason())}else{c._cancel()}}else{p[d].call(c,y,f)}}if(!c._isFateSealed()){if(f.asyncNeeded){var _=e._getContext();f.fn=o.contextBind(_,f.fn)}c._setAsyncGuaranteed();c._setOnCancel(f)}return c}}}var b=arguments.length;var E=new Array(b);for(var w=0;w<b;++w){E[w]=arguments[w]}if(s)E.pop();var c=new t(E).promise();return s!==undefined?c.spread(s):c}}},2412:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s,o){var a=n(29505);var c=a.tryCatch;var u=a.errorObj;var l=e._async;function MappingPromiseArray(t,n,r,i){this.constructor$(t);this._promise._captureStackTrace();var o=e._getContext();this._callback=a.contextBind(o,n);this._preservedValues=i===s?new Array(this.length()):null;this._limit=r;this._inFlight=0;this._queue=[];l.invoke(this._asyncInit,this,undefined);if(a.isArray(t)){for(var c=0;c<t.length;++c){var u=t[c];if(u instanceof e){u.suppressUnhandledRejections()}}}}a.inherits(MappingPromiseArray,t);MappingPromiseArray.prototype._asyncInit=function(){this._init$(undefined,-2)};MappingPromiseArray.prototype._init=function(){};MappingPromiseArray.prototype._promiseFulfilled=function(t,n){var r=this._values;var s=this.length();var a=this._preservedValues;var l=this._limit;if(n<0){n=n*-1-1;r[n]=t;if(l>=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(l>=1&&this._inFlight>=l){r[n]=t;this._queue.push(n);return false}if(a!==null)a[n]=t;var f=this._promise;var p=this._callback;var d=f._boundValue();f._pushContext();var h=c(p).call(d,t,n,s);var m=f._popContext();o.checkForgottenReturns(h,m,a!==null?"Promise.filter":"Promise.map",f);if(h===u){this._reject(h.e);return true}var g=i(h,this._promise);if(g instanceof e){g=g._target();var y=g._bitField;if((y&50397184)===0){if(l>=1)this._inFlight++;r[n]=g;g._proxy(this,(n+1)*-1);return false}else if((y&33554432)!==0){h=g._value()}else if((y&16777216)!==0){this._reject(g._reason());return true}else{this._cancel();return true}}r[n]=h}var v=++this._totalResolved;if(v>=s){if(a!==null){this._filter(r,a)}else{this._resolve(r)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var e=this._queue;var t=this._limit;var n=this._values;while(e.length>0&&this._inFlight<t){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}};MappingPromiseArray.prototype._filter=function(e,t){var n=t.length;var r=new Array(n);var i=0;for(var s=0;s<n;++s){if(e[s])r[i++]=t[s]}r.length=i;this._resolve(r)};MappingPromiseArray.prototype.preservedValues=function(){return this._preservedValues};function map(t,n,i,s){if(typeof n!=="function"){return r("expecting a function but got "+a.classString(n))}var o=0;if(i!==undefined){if(typeof i==="object"&&i!==null){if(typeof i.concurrency!=="number"){return e.reject(new TypeError("'concurrency' must be a number but it is "+a.classString(i.concurrency)))}o=i.concurrency}else{return e.reject(new TypeError("options argument must be an object but it is "+a.classString(i)))}}o=typeof o==="number"&&isFinite(o)&&o>=1?o:0;return new MappingPromiseArray(t,n,o,s).promise()}e.prototype.map=function(e,t){return map(this,e,t,null)};e.map=function(e,t,n,r){return map(e,t,n,r)}}},42768:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s){var o=n(29505);var a=o.tryCatch;e.method=function(n){if(typeof n!=="function"){throw new e.TypeError("expecting a function but got "+o.classString(n))}return function(){var r=new e(t);r._captureStackTrace();r._pushContext();var i=a(n).apply(this,arguments);var o=r._popContext();s.checkForgottenReturns(i,o,"Promise.method",r);r._resolveFromSyncValue(i);return r}};e.attempt=e["try"]=function(n){if(typeof n!=="function"){return i("expecting a function but got "+o.classString(n))}var r=new e(t);r._captureStackTrace();r._pushContext();var c;if(arguments.length>1){s.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1];var l=arguments[2];c=o.isArray(u)?a(n).apply(l,u):a(n).call(l,u)}else{c=a(n)()}var f=r._popContext();s.checkForgottenReturns(c,f,"Promise.try",r);r._resolveFromSyncValue(c);return r};e.prototype._resolveFromSyncValue=function(e){if(e===o.errorObj){this._rejectCallback(e.e,false)}else{this._resolveCallback(e,true)}}}},45297:(e,t,n)=>{"use strict";var r=n(29505);var i=r.maybeWrapAsError;var s=n(2222);var o=s.OperationalError;var a=n(34673);function isUntypedError(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}var c=/^(?:name|message|stack|cause)$/;function wrapAsOperationalError(e){var t;if(isUntypedError(e)){t=new o(e);t.name=e.name;t.message=e.message;t.stack=e.stack;var n=a.keys(e);for(var i=0;i<n.length;++i){var s=n[i];if(!c.test(s)){t[s]=e[s]}}return t}r.markAsOriginatingFromRejection(e);return e}function nodebackForPromise(e,t){return function(n,r){if(e===null)return;if(n){var s=wrapAsOperationalError(i(n));e._attachExtraTrace(s);e._reject(s)}else if(!t){e._fulfill(r)}else{var o=arguments.length;var a=new Array(Math.max(o-1,0));for(var c=1;c<o;++c){a[c-1]=arguments[c]}e._fulfill(a)}e=null}}e.exports=nodebackForPromise},57514:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(29505);var r=e._async;var i=t.tryCatch;var s=t.errorObj;function spreadAdapter(e,n){var o=this;if(!t.isArray(e))return successAdapter.call(o,e,n);var a=i(n).apply(o._boundValue(),[null].concat(e));if(a===s){r.throwLater(a.e)}}function successAdapter(e,t){var n=this;var o=n._boundValue();var a=e===undefined?i(t).call(o,null):i(t).call(o,null,e);if(a===s){r.throwLater(a.e)}}function errorAdapter(e,t){var n=this;if(!e){var o=new Error(e+"");o.cause=e;e=o}var a=i(t).call(n._boundValue(),e);if(a===s){r.throwLater(a.e)}}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if(typeof e=="function"){var n=successAdapter;if(t!==undefined&&Object(t).spread){n=spreadAdapter}this._then(n,errorAdapter,undefined,this,e)}return this}}},26854:(e,t,n)=>{"use strict";e.exports=function(){var t=function(){return new _("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")};var r=function(){return new Promise.PromiseInspection(this._target())};var i=function(e){return Promise.reject(new _(e))};function Proxyable(){}var s={};var o=n(29505);o.setReflectHandler(r);var a=function(){var e=process.domain;if(e===undefined){return null}return e};var c=function(){return null};var u=function(){return{domain:a(),async:null}};var l=o.isNode&&o.nodeSupportsAsyncResource?n(77303).AsyncResource:null;var f=function(){return{domain:a(),async:new l("Bluebird::Promise")}};var p=o.isNode?u:c;o.notEnumerableProp(Promise,"_getContext",p);var d=function(){p=f;o.notEnumerableProp(Promise,"_getContext",f)};var h=function(){p=u;o.notEnumerableProp(Promise,"_getContext",u)};var m=n(34673);var g=n(53938);var y=new g;m.defineProperty(Promise,"_async",{value:y});var v=n(2222);var _=Promise.TypeError=v.TypeError;Promise.RangeError=v.RangeError;var b=Promise.CancellationError=v.CancellationError;Promise.TimeoutError=v.TimeoutError;Promise.OperationalError=v.OperationalError;Promise.RejectionError=v.OperationalError;Promise.AggregateError=v.AggregateError;var E=function(){};var w={};var S={};var k=n(2243)(Promise,E);var D=n(58048)(Promise,E,k,i,Proxyable);var x=n(81281)(Promise);var C=x.create;var A=n(97280)(Promise,x,d,h);var T=A.CapturedTrace;var M=n(52434)(Promise,k,S);var O=n(5622)(S);var F=n(45297);var I=o.errorObj;var R=o.tryCatch;function check(e,t){if(e==null||e.constructor!==Promise){throw new _("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}if(typeof t!=="function"){throw new _("expecting a function but got "+o.classString(t))}}function Promise(e){if(e!==E){check(this,e)}this._bitField=0;this._fulfillmentHandler0=undefined;this._rejectionHandler0=undefined;this._promise0=undefined;this._receiver0=undefined;this._resolveFromExecutor(e);this._promiseCreated();this._fireEvent("promiseCreated",this)}Promise.prototype.toString=function(){return"[object Promise]"};Promise.prototype.caught=Promise.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var n=new Array(t-1),r=0,s;for(s=0;s<t-1;++s){var a=arguments[s];if(o.isObject(a)){n[r++]=a}else{return i("Catch statement predicate: "+"expecting an object but got "+o.classString(a))}}n.length=r;e=arguments[s];if(typeof e!=="function"){throw new _("The last argument to .catch() "+"must be a function, got "+o.toString(e))}return this.then(undefined,O(n,e,this))}return this.then(undefined,e)};Promise.prototype.reflect=function(){return this._then(r,r,undefined,this,undefined)};Promise.prototype.then=function(e,t){if(A.warnings()&&arguments.length>0&&typeof e!=="function"&&typeof t!=="function"){var n=".then() only accepts functions but was passed: "+o.classString(e);if(arguments.length>1){n+=", "+o.classString(t)}this._warn(n)}return this._then(e,t,undefined,undefined,undefined)};Promise.prototype.done=function(e,t){var n=this._then(e,t,undefined,undefined,undefined);n._setIsFinal()};Promise.prototype.spread=function(e){if(typeof e!=="function"){return i("expecting a function but got "+o.classString(e))}return this.all()._then(e,undefined,undefined,w,undefined)};Promise.prototype.toJSON=function(){var e={isFulfilled:false,isRejected:false,fulfillmentValue:undefined,rejectionReason:undefined};if(this.isFulfilled()){e.fulfillmentValue=this.value();e.isFulfilled=true}else if(this.isRejected()){e.rejectionReason=this.reason();e.isRejected=true}return e};Promise.prototype.all=function(){if(arguments.length>0){this._warn(".all() was passed arguments but it does not take any")}return new D(this).promise()};Promise.prototype.error=function(e){return this.caught(o.originatesFromRejection,e)};Promise.getNewLibraryCopy=e.exports;Promise.is=function(e){return e instanceof Promise};Promise.fromNode=Promise.fromCallback=function(e){var t=new Promise(E);t._captureStackTrace();var n=arguments.length>1?!!Object(arguments[1]).multiArgs:false;var r=R(e)(F(t,n));if(r===I){t._rejectCallback(r.e,true)}if(!t._isFateSealed())t._setAsyncGuaranteed();return t};Promise.all=function(e){return new D(e).promise()};Promise.cast=function(e){var t=k(e);if(!(t instanceof Promise)){t=new Promise(E);t._captureStackTrace();t._setFulfilled();t._rejectionHandler0=e}return t};Promise.resolve=Promise.fulfilled=Promise.cast;Promise.reject=Promise.rejected=function(e){var t=new Promise(E);t._captureStackTrace();t._rejectCallback(e,true);return t};Promise.setScheduler=function(e){if(typeof e!=="function"){throw new _("expecting a function but got "+o.classString(e))}return y.setScheduler(e)};Promise.prototype._then=function(e,t,n,r,i){var s=i!==undefined;var a=s?i:new Promise(E);var c=this._target();var u=c._bitField;if(!s){a._propagateFrom(this,3);a._captureStackTrace();if(r===undefined&&(this._bitField&2097152)!==0){if(!((u&50397184)===0)){r=this._boundValue()}else{r=c===this?undefined:this._boundTo}}this._fireEvent("promiseChained",this,a)}var l=p();if(!((u&50397184)===0)){var f,d,h=c._settlePromiseCtx;if((u&33554432)!==0){d=c._rejectionHandler0;f=e}else if((u&16777216)!==0){d=c._fulfillmentHandler0;f=t;c._unsetRejectionIsUnhandled()}else{h=c._settlePromiseLateCancellationObserver;d=new b("late cancellation observer");c._attachExtraTrace(d);f=t}y.invoke(h,c,{handler:o.contextBind(l,f),promise:a,receiver:r,value:d})}else{c._addCallbacks(e,t,a,r,l)}return a};Promise.prototype._length=function(){return this._bitField&65535};Promise.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0};Promise.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864};Promise.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535};Promise.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432;this._fireEvent("promiseFulfilled",this)};Promise.prototype._setRejected=function(){this._bitField=this._bitField|16777216;this._fireEvent("promiseRejected",this)};Promise.prototype._setFollowing=function(){this._bitField=this._bitField|67108864;this._fireEvent("promiseResolved",this)};Promise.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304};Promise.prototype._isFinal=function(){return(this._bitField&4194304)>0};Promise.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536};Promise.prototype._setCancelled=function(){this._bitField=this._bitField|65536;this._fireEvent("promiseCancelled",this)};Promise.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608};Promise.prototype._setAsyncGuaranteed=function(){if(y.hasCustomScheduler())return;var e=this._bitField;this._bitField=e|(e&536870912)>>2^134217728};Promise.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&~134217728};Promise.prototype._receiverAt=function(e){var t=e===0?this._receiver0:this[e*4-4+3];if(t===s){return undefined}else if(t===undefined&&this._isBound()){return this._boundValue()}return t};Promise.prototype._promiseAt=function(e){return this[e*4-4+2]};Promise.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]};Promise.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]};Promise.prototype._boundValue=function(){};Promise.prototype._migrateCallback0=function(e){var t=e._bitField;var n=e._fulfillmentHandler0;var r=e._rejectionHandler0;var i=e._promise0;var o=e._receiverAt(0);if(o===undefined)o=s;this._addCallbacks(n,r,i,o,null)};Promise.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t);var r=e._rejectionHandlerAt(t);var i=e._promiseAt(t);var o=e._receiverAt(t);if(o===undefined)o=s;this._addCallbacks(n,r,i,o,null)};Promise.prototype._addCallbacks=function(e,t,n,r,i){var s=this._length();if(s>=65535-4){s=0;this._setLength(0)}if(s===0){this._promise0=n;this._receiver0=r;if(typeof e==="function"){this._fulfillmentHandler0=o.contextBind(i,e)}if(typeof t==="function"){this._rejectionHandler0=o.contextBind(i,t)}}else{var a=s*4-4;this[a+2]=n;this[a+3]=r;if(typeof e==="function"){this[a+0]=o.contextBind(i,e)}if(typeof t==="function"){this[a+1]=o.contextBind(i,t)}}this._setLength(s+1);return s};Promise.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)};Promise.prototype._resolveCallback=function(e,n){if((this._bitField&117506048)!==0)return;if(e===this)return this._rejectCallback(t(),false);var r=k(e,this);if(!(r instanceof Promise))return this._fulfill(e);if(n)this._propagateFrom(r,2);var i=r._target();if(i===this){this._reject(t());return}var s=i._bitField;if((s&50397184)===0){var o=this._length();if(o>0)i._migrateCallback0(this);for(var a=1;a<o;++a){i._migrateCallbackAt(this,a)}this._setFollowing();this._setLength(0);this._setFollowee(r)}else if((s&33554432)!==0){this._fulfill(i._value())}else if((s&16777216)!==0){this._reject(i._reason())}else{var c=new b("late cancellation observer");i._attachExtraTrace(c);this._reject(c)}};Promise.prototype._rejectCallback=function(e,t,n){var r=o.ensureErrorObject(e);var i=r===e;if(!i&&!n&&A.warnings()){var s="a promise was rejected with a non-error: "+o.classString(e);this._warn(s,true)}this._attachExtraTrace(r,t?i:false);this._reject(e)};Promise.prototype._resolveFromExecutor=function(e){if(e===E)return;var t=this;this._captureStackTrace();this._pushContext();var n=true;var r=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=false;this._popContext();if(r!==undefined){t._rejectCallback(r,true)}};Promise.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if((i&65536)!==0)return;r._pushContext();var s;if(t===w){if(!n||typeof n.length!=="number"){s=I;s.e=new _("cannot .spread() a non-array: "+o.classString(n))}else{s=R(e).apply(this._boundValue(),n)}}else{s=R(e).call(t,n)}var a=r._popContext();i=r._bitField;if((i&65536)!==0)return;if(s===S){r._reject(n)}else if(s===I){r._rejectCallback(s.e,false)}else{A.checkForgottenReturns(s,a,"",r,this);r._resolveCallback(s)}};Promise.prototype._target=function(){var e=this;while(e._isFollowing())e=e._followee();return e};Promise.prototype._followee=function(){return this._rejectionHandler0};Promise.prototype._setFollowee=function(e){this._rejectionHandler0=e};Promise.prototype._settlePromise=function(e,t,n,i){var s=e instanceof Promise;var o=this._bitField;var a=(o&134217728)!==0;if((o&65536)!==0){if(s)e._invokeInternalOnCancel();if(n instanceof M&&n.isFinallyHandler()){n.cancelPromise=e;if(R(t).call(n,i)===I){e._reject(I.e)}}else if(t===r){e._fulfill(r.call(n))}else if(n instanceof Proxyable){n._promiseCancelled(e)}else if(s||e instanceof D){e._cancel()}else{n.cancel()}}else if(typeof t==="function"){if(!s){t.call(n,i,e)}else{if(a)e._setAsyncGuaranteed();this._settlePromiseFromHandler(t,n,i,e)}}else if(n instanceof Proxyable){if(!n._isResolved()){if((o&33554432)!==0){n._promiseFulfilled(i,e)}else{n._promiseRejected(i,e)}}}else if(s){if(a)e._setAsyncGuaranteed();if((o&33554432)!==0){e._fulfill(i)}else{e._reject(i)}}};Promise.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler;var n=e.promise;var r=e.receiver;var i=e.value;if(typeof t==="function"){if(!(n instanceof Promise)){t.call(r,i,n)}else{this._settlePromiseFromHandler(t,r,i,n)}}else if(n instanceof Promise){n._reject(i)}};Promise.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)};Promise.prototype._settlePromise0=function(e,t,n){var r=this._promise0;var i=this._receiverAt(0);this._promise0=undefined;this._receiver0=undefined;this._settlePromise(r,e,i,t)};Promise.prototype._clearCallbackDataAtIndex=function(e){var t=e*4-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=undefined};Promise.prototype._fulfill=function(e){var n=this._bitField;if((n&117506048)>>>16)return;if(e===this){var r=t();this._attachExtraTrace(r);return this._reject(r)}this._setFulfilled();this._rejectionHandler0=e;if((n&65535)>0){if((n&134217728)!==0){this._settlePromises()}else{y.settlePromises(this)}this._dereferenceTrace()}};Promise.prototype._reject=function(e){var t=this._bitField;if((t&117506048)>>>16)return;this._setRejected();this._fulfillmentHandler0=e;if(this._isFinal()){return y.fatalError(e,o.isNode)}if((t&65535)>0){y.settlePromises(this)}else{this._ensurePossibleRejectionHandled()}};Promise.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n);var i=this._promiseAt(n);var s=this._receiverAt(n);this._clearCallbackDataAtIndex(n);this._settlePromise(i,r,s,t)}};Promise.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n);var i=this._promiseAt(n);var s=this._receiverAt(n);this._clearCallbackDataAtIndex(n);this._settlePromise(i,r,s,t)}};Promise.prototype._settlePromises=function(){var e=this._bitField;var t=e&65535;if(t>0){if((e&16842752)!==0){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e);this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e);this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()};Promise.prototype._settledValue=function(){var e=this._bitField;if((e&33554432)!==0){return this._rejectionHandler0}else if((e&16777216)!==0){return this._fulfillmentHandler0}};if(typeof Symbol!=="undefined"&&Symbol.toStringTag){m.defineProperty(Promise.prototype,Symbol.toStringTag,{get:function(){return"Object"}})}function deferResolve(e){this.promise._resolveCallback(e)}function deferReject(e){this.promise._rejectCallback(e,false)}Promise.defer=Promise.pending=function(){A.deprecated("Promise.defer","new Promise");var e=new Promise(E);return{promise:e,resolve:deferResolve,reject:deferReject}};o.notEnumerableProp(Promise,"_makeSelfResolutionError",t);n(42768)(Promise,E,k,i,A);n(96088)(Promise,E,k,A);n(9462)(Promise,D,i,A);n(87926)(Promise);n(83610)(Promise);n(45138)(Promise,D,k,E,y);Promise.Promise=Promise;Promise.version="3.7.2";n(1623)(Promise);n(93924)(Promise,i,E,k,Proxyable,A);n(2412)(Promise,D,i,k,E,A);n(57514)(Promise);n(55289)(Promise,E);n(55256)(Promise,D,k,i);n(35527)(Promise,E,k,i);n(31100)(Promise,D,i,k,E,A);n(4255)(Promise,D,A);n(99853)(Promise,D,i);n(49880)(Promise,E,A);n(44945)(Promise,i,k,C,E,A);n(24631)(Promise);n(5882)(Promise,E);n(93366)(Promise,E);o.toFastProperties(Promise);o.toFastProperties(Promise.prototype);function fillTypes(e){var t=new Promise(E);t._fulfillmentHandler0=e;t._rejectionHandler0=e;t._promise0=e;t._receiver0=e}fillTypes({a:1});fillTypes({b:2});fillTypes({c:3});fillTypes(1);fillTypes(function(){});fillTypes(undefined);fillTypes(false);fillTypes(new Promise(E));A.setBounds(g.firstLineError,o.lastLineError);return Promise}},58048:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s){var o=n(29505);var a=o.isArray;function toResolutionValue(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}function PromiseArray(n){var r=this._promise=new e(t);if(n instanceof e){r._propagateFrom(n,3);n.suppressUnhandledRejections()}r._setOnCancel(this);this._values=n;this._length=0;this._totalResolved=0;this._init(undefined,-2)}o.inherits(PromiseArray,s);PromiseArray.prototype.length=function(){return this._length};PromiseArray.prototype.promise=function(){return this._promise};PromiseArray.prototype._init=function init(t,n){var s=r(this._values,this._promise);if(s instanceof e){s=s._target();var a=s._bitField;this._values=s;if((a&50397184)===0){this._promise._setAsyncGuaranteed();return s._then(init,this._reject,undefined,this,n)}else if((a&33554432)!==0){s=s._value()}else if((a&16777216)!==0){return this._reject(s._reason())}else{return this._cancel()}}s=o.asArray(s);if(s===null){var c=i("expecting an array or an iterable object but got "+o.classString(s)).reason();this._promise._rejectCallback(c,false);return}if(s.length===0){if(n===-5){this._resolveEmptyArray()}else{this._resolve(toResolutionValue(n))}return}this._iterate(s)};PromiseArray.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n;this._values=this.shouldCopyValues()?new Array(n):this._values;var i=this._promise;var s=false;var o=null;for(var a=0;a<n;++a){var c=r(t[a],i);if(c instanceof e){c=c._target();o=c._bitField}else{o=null}if(s){if(o!==null){c.suppressUnhandledRejections()}}else if(o!==null){if((o&50397184)===0){c._proxy(this,a);this._values[a]=c}else if((o&33554432)!==0){s=this._promiseFulfilled(c._value(),a)}else if((o&16777216)!==0){s=this._promiseRejected(c._reason(),a)}else{s=this._promiseCancelled(a)}}else{s=this._promiseFulfilled(c,a)}}if(!s)i._setAsyncGuaranteed()};PromiseArray.prototype._isResolved=function(){return this._values===null};PromiseArray.prototype._resolve=function(e){this._values=null;this._promise._fulfill(e)};PromiseArray.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null;this._promise._cancel()};PromiseArray.prototype._reject=function(e){this._values=null;this._promise._rejectCallback(e,false)};PromiseArray.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){this._resolve(this._values);return true}return false};PromiseArray.prototype._promiseCancelled=function(){this._cancel();return true};PromiseArray.prototype._promiseRejected=function(e){this._totalResolved++;this._reject(e);return true};PromiseArray.prototype._resultCancelled=function(){if(this._isResolved())return;var t=this._values;this._cancel();if(t instanceof e){t.cancel()}else{for(var n=0;n<t.length;++n){if(t[n]instanceof e){t[n].cancel()}}}};PromiseArray.prototype.shouldCopyValues=function(){return true};PromiseArray.prototype.getActualLength=function(e){return e};return PromiseArray}},55289:(e,t,n)=>{"use strict";e.exports=function(e,t){var r={};var i=n(29505);var s=n(45297);var o=i.withAppended;var a=i.maybeWrapAsError;var c=i.canEvaluate;var u=n(2222).TypeError;var l="Async";var f={__isPromisified__:true};var p=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"];var d=new RegExp("^(?:"+p.join("|")+")$");var h=function(e){return i.isIdentifier(e)&&e.charAt(0)!=="_"&&e!=="constructor"};function propsFilter(e){return!d.test(e)}function isPromisified(e){try{return e.__isPromisified__===true}catch(e){return false}}function hasPromisified(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,f);return r?isPromisified(r):false}function checkValid(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i)){var s=i.replace(n,"");for(var o=0;o<e.length;o+=2){if(e[o]===s){throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}}}}function promisifiableMethods(e,t,n,r){var s=i.inheritedDataKeys(e);var o=[];for(var a=0;a<s.length;++a){var c=s[a];var u=e[c];var l=r===h?true:h(c,u,e);if(typeof u==="function"&&!isPromisified(u)&&!hasPromisified(e,c,t)&&r(c,u,e,l)){o.push(c,u)}}checkValid(o,t,n);return o}var m=function(e){return e.replace(/([$])/,"\\$")};var g;if(true){var y=function(e){var t=[e];var n=Math.max(0,e-1-3);for(var r=e-1;r>=n;--r){t.push(r)}for(var r=e+1;r<=3;++r){t.push(r)}return t};var v=function(e){return i.filledRange(e,"_arg","")};var _=function(e){return i.filledRange(Math.max(e,3),"_arg","")};var b=function(e){if(typeof e.length==="number"){return Math.max(Math.min(e.length,1023+1),0)}return 0};g=function(n,c,u,l,f,p){var d=Math.max(0,b(l)-1);var h=y(d);var m=typeof n==="string"||c===r;function generateCallForArgumentCount(e){var t=v(e).join(", ");var n=e>0?", ":"";var r;if(m){r="ret = callback.call(this, {{args}}, nodeback); break;\n"}else{r=c===undefined?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n"}return r.replace("{{args}}",t).replace(", ",n)}function generateArgumentSwitchCase(){var e="";for(var t=0;t<h.length;++t){e+="case "+h[t]+":"+generateCallForArgumentCount(h[t])}e+=" \n default: \n var args = new Array(len + 1); \n var i = 0; \n for (var i = 0; i < len; ++i) { \n args[i] = arguments[i]; \n } \n args[i] = nodeback; \n [CodeForCall] \n break; \n ".replace("[CodeForCall]",m?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n");return e}var g=typeof n==="string"?"this != null ? this['"+n+"'] : fn":"fn";var E="'use strict'; \n var ret = function (Parameters) { \n 'use strict'; \n var len = arguments.length; \n var promise = new Promise(INTERNAL); \n promise._captureStackTrace(); \n var nodeback = nodebackForPromise(promise, "+p+"); \n var ret; \n var callback = tryCatch([GetFunctionCode]); \n switch(len) { \n [CodeForSwitchCase] \n } \n if (ret === errorObj) { \n promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n } \n if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n return promise; \n }; \n notEnumerableProp(ret, '__isPromisified__', true); \n return ret; \n ".replace("[CodeForSwitchCase]",generateArgumentSwitchCase()).replace("[GetFunctionCode]",g);E=E.replace("Parameters",_(d));return new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",E)(e,l,c,o,a,s,i.tryCatch,i.errorObj,i.notEnumerableProp,t)}}function makeNodePromisifiedClosure(n,c,u,l,f,p){var d=function(){return this}();var h=n;if(typeof h==="string"){n=l}function promisified(){var i=c;if(c===r)i=this;var u=new e(t);u._captureStackTrace();var l=typeof h==="string"&&this!==d?this[h]:n;var f=s(u,p);try{l.apply(i,o(arguments,f))}catch(e){u._rejectCallback(a(e),true,true)}if(!u._isFateSealed())u._setAsyncGuaranteed();return u}i.notEnumerableProp(promisified,"__isPromisified__",true);return promisified}var E=c?g:makeNodePromisifiedClosure;function promisifyAll(e,t,n,s,o){var a=new RegExp(m(t)+"$");var c=promisifiableMethods(e,t,a,n);for(var u=0,l=c.length;u<l;u+=2){var f=c[u];var p=c[u+1];var d=f+t;if(s===E){e[d]=E(f,r,f,p,t,o)}else{var h=s(p,function(){return E(f,r,f,p,t,o)});i.notEnumerableProp(h,"__isPromisified__",true);e[d]=h}}i.toFastProperties(e);return e}function promisify(e,t,n){return E(e,t,undefined,e,null,n)}e.promisify=function(e,t){if(typeof e!=="function"){throw new u("expecting a function but got "+i.classString(e))}if(isPromisified(e)){return e}t=Object(t);var n=t.context===undefined?r:t.context;var s=!!t.multiArgs;var o=promisify(e,n,s);i.copyDescriptors(e,o,propsFilter);return o};e.promisifyAll=function(e,t){if(typeof e!=="function"&&typeof e!=="object"){throw new u("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n")}t=Object(t);var n=!!t.multiArgs;var r=t.suffix;if(typeof r!=="string")r=l;var s=t.filter;if(typeof s!=="function")s=h;var o=t.promisifier;if(typeof o!=="function")o=E;if(!i.isIdentifier(r)){throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n")}var a=i.inheritedDataKeys(e);for(var c=0;c<a.length;++c){var f=e[a[c]];if(a[c]!=="constructor"&&i.isClass(f)){promisifyAll(f.prototype,r,s,o,n);promisifyAll(f,r,s,o,n)}}return promisifyAll(e,r,s,o,n)}}},55256:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i){var s=n(29505);var o=s.isObject;var a=n(34673);var c;if(typeof Map==="function")c=Map;var u=function(){var e=0;var t=0;function extractEntry(n,r){this[e]=n;this[e+t]=r;e++}return function mapToEntries(n){t=n.size;e=0;var r=new Array(n.size*2);n.forEach(extractEntry,r);return r}}();var l=function(e){var t=new c;var n=e.length/2|0;for(var r=0;r<n;++r){var i=e[n+r];var s=e[r];t.set(i,s)}return t};function PropertiesPromiseArray(e){var t=false;var n;if(c!==undefined&&e instanceof c){n=u(e);t=true}else{var r=a.keys(e);var i=r.length;n=new Array(i*2);for(var s=0;s<i;++s){var o=r[s];n[s]=e[o];n[s+i]=o}}this.constructor$(n);this._isMap=t;this._init$(undefined,t?-6:-3)}s.inherits(PropertiesPromiseArray,t);PropertiesPromiseArray.prototype._init=function(){};PropertiesPromiseArray.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap){r=l(this._values)}else{r={};var i=this.length();for(var s=0,o=this.length();s<o;++s){r[this._values[s+i]]=this._values[s]}}this._resolve(r);return true}return false};PropertiesPromiseArray.prototype.shouldCopyValues=function(){return false};PropertiesPromiseArray.prototype.getActualLength=function(e){return e>>1};function props(t){var n;var s=r(t);if(!o(s)){return i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}else if(s instanceof e){n=s._then(e.props,undefined,undefined,undefined,undefined)}else{n=new PropertiesPromiseArray(s).promise()}if(s instanceof e){n._propagateFrom(s,2)}return n}e.prototype.props=function(){return props(this)};e.props=function(e){return props(e)}}},1460:e=>{"use strict";function arrayMove(e,t,n,r,i){for(var s=0;s<i;++s){n[s+r]=e[s+t];e[s+t]=void 0}}function Queue(e){this._capacity=e;this._length=0;this._front=0}Queue.prototype._willBeOverCapacity=function(e){return this._capacity<e};Queue.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e;this._length=t+1};Queue.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r)){this._pushOne(e);this._pushOne(t);this._pushOne(n);return}var i=this._front+r-3;this._checkCapacity(r);var s=this._capacity-1;this[i+0&s]=e;this[i+1&s]=t;this[i+2&s]=n;this._length=r};Queue.prototype.shift=function(){var e=this._front,t=this[e];this[e]=undefined;this._front=e+1&this._capacity-1;this._length--;return t};Queue.prototype.length=function(){return this._length};Queue.prototype._checkCapacity=function(e){if(this._capacity<e){this._resizeTo(this._capacity<<1)}};Queue.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front;var r=this._length;var i=n+r&t-1;arrayMove(this,0,this,t,i)};e.exports=Queue},35527:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i){var s=n(29505);var o=function(e){return e.then(function(t){return race(t,e)})};function race(n,a){var c=r(n);if(c instanceof e){return o(c)}else{n=s.asArray(n);if(n===null)return i("expecting an array or an iterable object but got "+s.classString(n))}var u=new e(t);if(a!==undefined){u._propagateFrom(a,3)}var l=u._fulfill;var f=u._reject;for(var p=0,d=n.length;p<d;++p){var h=n[p];if(h===undefined&&!(p in n)){continue}e.cast(h)._then(l,f,undefined,u,null)}return u}e.race=function(e){return race(e,undefined)};e.prototype.race=function(){return race(this,undefined)}}},31100:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s,o){var a=n(29505);var c=a.tryCatch;function ReductionPromiseArray(t,n,r,i){this.constructor$(t);var o=e._getContext();this._fn=a.contextBind(o,n);if(r!==undefined){r=e.resolve(r);r._attachCancellationCallback(this)}this._initialValue=r;this._currentCancellable=null;if(i===s){this._eachValues=Array(this._length)}else if(i===0){this._eachValues=null}else{this._eachValues=undefined}this._promise._captureStackTrace();this._init$(undefined,-5)}a.inherits(ReductionPromiseArray,t);ReductionPromiseArray.prototype._gotAccum=function(e){if(this._eachValues!==undefined&&this._eachValues!==null&&e!==s){this._eachValues.push(e)}};ReductionPromiseArray.prototype._eachComplete=function(e){if(this._eachValues!==null){this._eachValues.push(e)}return this._eachValues};ReductionPromiseArray.prototype._init=function(){};ReductionPromiseArray.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==undefined?this._eachValues:this._initialValue)};ReductionPromiseArray.prototype.shouldCopyValues=function(){return false};ReductionPromiseArray.prototype._resolve=function(e){this._promise._resolveCallback(e);this._values=null};ReductionPromiseArray.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();if(this._isResolved())return;this._resultCancelled$();if(this._currentCancellable instanceof e){this._currentCancellable.cancel()}if(this._initialValue instanceof e){this._initialValue.cancel()}};ReductionPromiseArray.prototype._iterate=function(t){this._values=t;var n;var r;var i=t.length;if(this._initialValue!==undefined){n=this._initialValue;r=0}else{n=e.resolve(t[0]);r=1}this._currentCancellable=n;for(var s=r;s<i;++s){var o=t[s];if(o instanceof e){o.suppressUnhandledRejections()}}if(!n.isRejected()){for(;r<i;++r){var a={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(gotAccum,undefined,undefined,a,undefined);if((r&127)===0){n._setNoAsyncGuarantee()}}}if(this._eachValues!==undefined){n=n._then(this._eachComplete,undefined,undefined,this,undefined)}n._then(completed,completed,undefined,n,this)};e.prototype.reduce=function(e,t){return reduce(this,e,t,null)};e.reduce=function(e,t,n,r){return reduce(e,t,n,r)};function completed(e,t){if(this.isFulfilled()){t._resolve(e)}else{t._reject(e)}}function reduce(e,t,n,i){if(typeof t!=="function"){return r("expecting a function but got "+a.classString(t))}var s=new ReductionPromiseArray(e,t,n,i);return s.promise()}function gotAccum(t){this.accum=t;this.array._gotAccum(t);var n=i(this.value,this.array._promise);if(n instanceof e){this.array._currentCancellable=n;return n._then(gotValue,undefined,undefined,this,undefined)}else{return gotValue.call(this,n)}}function gotValue(t){var n=this.array;var r=n._promise;var i=c(n._fn);r._pushContext();var s;if(n._eachValues!==undefined){s=i.call(r._boundValue(),t,this.index,this.length)}else{s=i.call(r._boundValue(),this.accum,t,this.index,this.length)}if(s instanceof e){n._currentCancellable=s}var a=r._popContext();o.checkForgottenReturns(s,a,n._eachValues!==undefined?"Promise.each":"Promise.reduce",r);return s}}},30585:(e,t,n)=>{"use strict";var r=n(29505);var i;var s=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};var o=r.getNativePromise();if(r.isNode&&typeof MutationObserver==="undefined"){var a=global.setImmediate;var c=process.nextTick;i=r.isRecentNode?function(e){a.call(global,e)}:function(e){c.call(process,e)}}else if(typeof o==="function"&&typeof o.resolve==="function"){var u=o.resolve();i=function(e){u.then(e)}}else if(typeof MutationObserver!=="undefined"&&!(typeof window!=="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))&&"classList"in document.documentElement){i=function(){var e=document.createElement("div");var t={attributes:true};var n=false;var r=document.createElement("div");var i=new MutationObserver(function(){e.classList.toggle("foo");n=false});i.observe(r,t);var s=function(){if(n)return;n=true;r.classList.toggle("foo")};return function schedule(n){var r=new MutationObserver(function(){r.disconnect();n()});r.observe(e,t);s()}}()}else if(typeof setImmediate!=="undefined"){i=function(e){setImmediate(e)}}else if(typeof setTimeout!=="undefined"){i=function(e){setTimeout(e,0)}}else{i=s}e.exports=i},4255:(e,t,n)=>{"use strict";e.exports=function(e,t,r){var i=e.PromiseInspection;var s=n(29505);function SettledPromiseArray(e){this.constructor$(e)}s.inherits(SettledPromiseArray,t);SettledPromiseArray.prototype._promiseResolved=function(e,t){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){this._resolve(this._values);return true}return false};SettledPromiseArray.prototype._promiseFulfilled=function(e,t){var n=new i;n._bitField=33554432;n._settledValueField=e;return this._promiseResolved(t,n)};SettledPromiseArray.prototype._promiseRejected=function(e,t){var n=new i;n._bitField=16777216;n._settledValueField=e;return this._promiseResolved(t,n)};e.settle=function(e){r.deprecated(".settle()",".reflect()");return new SettledPromiseArray(e).promise()};e.allSettled=function(e){return new SettledPromiseArray(e).promise()};e.prototype.settle=function(){return e.settle(this)}}},99853:(e,t,n)=>{"use strict";e.exports=function(e,t,r){var i=n(29505);var s=n(2222).RangeError;var o=n(2222).AggregateError;var a=i.isArray;var c={};function SomePromiseArray(e){this.constructor$(e);this._howMany=0;this._unwrap=false;this._initialized=false}i.inherits(SomePromiseArray,t);SomePromiseArray.prototype._init=function(){if(!this._initialized){return}if(this._howMany===0){this._resolve([]);return}this._init$(undefined,-5);var e=a(this._values);if(!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()){this._reject(this._getRangeError(this.length()))}};SomePromiseArray.prototype.init=function(){this._initialized=true;this._init()};SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=true};SomePromiseArray.prototype.howMany=function(){return this._howMany};SomePromiseArray.prototype.setHowMany=function(e){this._howMany=e};SomePromiseArray.prototype._promiseFulfilled=function(e){this._addFulfilled(e);if(this._fulfilled()===this.howMany()){this._values.length=this.howMany();if(this.howMany()===1&&this._unwrap){this._resolve(this._values[0])}else{this._resolve(this._values)}return true}return false};SomePromiseArray.prototype._promiseRejected=function(e){this._addRejected(e);return this._checkOutcome()};SomePromiseArray.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null){return this._cancel()}this._addRejected(c);return this._checkOutcome()};SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var e=new o;for(var t=this.length();t<this._values.length;++t){if(this._values[t]!==c){e.push(this._values[t])}}if(e.length>0){this._reject(e)}else{this._cancel()}return true}return false};SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved};SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()};SomePromiseArray.prototype._addRejected=function(e){this._values.push(e)};SomePromiseArray.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e};SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};SomePromiseArray.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new s(t)};SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function some(e,t){if((t|0)!==t||t<0){return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n")}var n=new SomePromiseArray(e);var i=n.promise();n.setHowMany(t);n.init();return i}e.some=function(e,t){return some(e,t)};e.prototype.some=function(e){return some(this,e)};e._SomePromiseArray=SomePromiseArray}},83610:e=>{"use strict";e.exports=function(e){function PromiseInspection(e){if(e!==undefined){e=e._target();this._bitField=e._bitField;this._settledValueField=e._isFateSealed()?e._settledValue():undefined}else{this._bitField=0;this._settledValueField=undefined}}PromiseInspection.prototype._settledValue=function(){return this._settledValueField};var t=PromiseInspection.prototype.value=function(){if(!this.isFulfilled()){throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var n=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected()){throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var r=PromiseInspection.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0};var i=PromiseInspection.prototype.isRejected=function(){return(this._bitField&16777216)!==0};var s=PromiseInspection.prototype.isPending=function(){return(this._bitField&50397184)===0};var o=PromiseInspection.prototype.isResolved=function(){return(this._bitField&50331648)!==0};PromiseInspection.prototype.isCancelled=function(){return(this._bitField&8454144)!==0};e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536};e.prototype._isCancelled=function(){return this._target().__isCancelled()};e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0};e.prototype.isPending=function(){return s.call(this._target())};e.prototype.isRejected=function(){return i.call(this._target())};e.prototype.isFulfilled=function(){return r.call(this._target())};e.prototype.isResolved=function(){return o.call(this._target())};e.prototype.value=function(){return t.call(this._target())};e.prototype.reason=function(){var e=this._target();e._unsetRejectionIsUnhandled();return n.call(e)};e.prototype._value=function(){return this._settledValue()};e.prototype._reason=function(){this._unsetRejectionIsUnhandled();return this._settledValue()};e.PromiseInspection=PromiseInspection}},2243:(e,t,n)=>{"use strict";e.exports=function(e,t){var r=n(29505);var i=r.errorObj;var s=r.isObject;function tryConvertToPromise(n,r){if(s(n)){if(n instanceof e)return n;var o=getThen(n);if(o===i){if(r)r._pushContext();var a=e.reject(o.e);if(r)r._popContext();return a}else if(typeof o==="function"){if(isAnyBluebirdPromise(n)){var a=new e(t);n._then(a._fulfill,a._reject,undefined,a,null);return a}return doThenable(n,o,r)}}return n}function doGetThen(e){return e.then}function getThen(e){try{return doGetThen(e)}catch(e){i.e=e;return i}}var o={}.hasOwnProperty;function isAnyBluebirdPromise(e){try{return o.call(e,"_promise0")}catch(e){return false}}function doThenable(n,s,o){var a=new e(t);var c=a;if(o)o._pushContext();a._captureStackTrace();if(o)o._popContext();var u=true;var l=r.tryCatch(s).call(n,resolve,reject);u=false;if(a&&l===i){a._rejectCallback(l.e,true,true);a=null}function resolve(e){if(!a)return;a._resolveCallback(e);a=null}function reject(e){if(!a)return;a._rejectCallback(e,u,true);a=null}return c}return tryConvertToPromise}},49880:(e,t,n)=>{"use strict";e.exports=function(e,t,r){var i=n(29505);var s=e.TimeoutError;function HandleWrapper(e){this.handle=e}HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(e){return a(+this).thenReturn(e)};var a=e.delay=function(n,i){var s;var a;if(i!==undefined){s=e.resolve(i)._then(o,null,null,n,undefined);if(r.cancellation()&&i instanceof e){s._setOnCancel(i)}}else{s=new e(t);a=setTimeout(function(){s._fulfill()},+n);if(r.cancellation()){s._setOnCancel(new HandleWrapper(a))}s._captureStackTrace()}s._setAsyncGuaranteed();return s};e.prototype.delay=function(e){return a(e,this)};var c=function(e,t,n){var r;if(typeof t!=="string"){if(t instanceof Error){r=t}else{r=new s("operation timed out")}}else{r=new s(t)}i.markAsOriginatingFromRejection(r);e._attachExtraTrace(r);e._reject(r);if(n!=null){n.cancel()}};function successClear(e){clearTimeout(this.handle);return e}function failureClear(e){clearTimeout(this.handle);throw e}e.prototype.timeout=function(e,t){e=+e;var n,i;var s=new HandleWrapper(setTimeout(function timeoutTimeout(){if(n.isPending()){c(n,t,i)}},e));if(r.cancellation()){i=this.then();n=i._then(successClear,failureClear,undefined,s,undefined);n._setOnCancel(s)}else{n=this._then(successClear,failureClear,undefined,s,undefined)}return n}}},44945:(e,t,n)=>{"use strict";e.exports=function(e,t,r,i,s,o){var a=n(29505);var c=n(2222).TypeError;var u=n(29505).inherits;var l=a.errorObj;var f=a.tryCatch;var p={};function thrower(e){setTimeout(function(){throw e},0)}function castPreservingDisposable(e){var t=r(e);if(t!==e&&typeof e._isDisposable==="function"&&typeof e._getDisposer==="function"&&e._isDisposable()){t._setDisposable(e._getDisposer())}return t}function dispose(t,n){var i=0;var o=t.length;var a=new e(s);function iterator(){if(i>=o)return a._fulfill();var s=castPreservingDisposable(t[i++]);if(s instanceof e&&s._isDisposable()){try{s=r(s._getDisposer().tryDispose(n),t.promise)}catch(e){return thrower(e)}if(s instanceof e){return s._then(iterator,thrower,null,null,null)}}iterator()}iterator();return a}function Disposer(e,t,n){this._data=e;this._promise=t;this._context=n}Disposer.prototype.data=function(){return this._data};Disposer.prototype.promise=function(){return this._promise};Disposer.prototype.resource=function(){if(this.promise().isFulfilled()){return this.promise().value()}return p};Disposer.prototype.tryDispose=function(e){var t=this.resource();var n=this._context;if(n!==undefined)n._pushContext();var r=t!==p?this.doDispose(t,e):null;if(n!==undefined)n._popContext();this._promise._unsetDisposable();this._data=null;return r};Disposer.isDisposer=function(e){return e!=null&&typeof e.resource==="function"&&typeof e.tryDispose==="function"};function FunctionDisposer(e,t,n){this.constructor$(e,t,n)}u(FunctionDisposer,Disposer);FunctionDisposer.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)};function maybeUnwrapDisposer(e){if(Disposer.isDisposer(e)){this.resources[this.index]._setDisposable(e);return e.promise()}return e}function ResourceList(e){this.length=e;this.promise=null;this[e-1]=null}ResourceList.prototype._resultCancelled=function(){var t=this.length;for(var n=0;n<t;++n){var r=this[n];if(r instanceof e){r.cancel()}}};e.using=function(){var n=arguments.length;if(n<2)return t("you must pass at least 2 arguments to Promise.using");var i=arguments[n-1];if(typeof i!=="function"){return t("expecting a function but got "+a.classString(i))}var s;var c=true;if(n===2&&Array.isArray(arguments[0])){s=arguments[0];n=s.length;c=false}else{s=arguments;n--}var u=new ResourceList(n);for(var p=0;p<n;++p){var d=s[p];if(Disposer.isDisposer(d)){var h=d;d=d.promise();d._setDisposable(h)}else{var m=r(d);if(m instanceof e){d=m._then(maybeUnwrapDisposer,null,null,{resources:u,index:p},undefined)}}u[p]=d}var g=new Array(u.length);for(var p=0;p<g.length;++p){g[p]=e.resolve(u[p]).reflect()}var y=e.all(g).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected()){l.e=n.error();return l}else if(!n.isFulfilled()){y.cancel();return}e[t]=n.value()}v._pushContext();i=f(i);var r=c?i.apply(undefined,e):i(e);var s=v._popContext();o.checkForgottenReturns(r,s,"Promise.using",v);return r});var v=y.lastly(function(){var t=new e.PromiseInspection(y);return dispose(u,t)});u.promise=v;v._setOnCancel(u);return v};e.prototype._setDisposable=function(e){this._bitField=this._bitField|131072;this._disposer=e};e.prototype._isDisposable=function(){return(this._bitField&131072)>0};e.prototype._getDisposer=function(){return this._disposer};e.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072;this._disposer=undefined};e.prototype.disposer=function(e){if(typeof e==="function"){return new FunctionDisposer(e,this,i())}throw new c}}},29505:function(module,__unused_webpack_exports,__webpack_require__){"use strict";var es5=__webpack_require__(34673);var canEvaluate=typeof navigator=="undefined";var errorObj={e:{}};var tryCatchTarget;var globalObject=typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this!==undefined?this:null;function tryCatcher(){try{var e=tryCatchTarget;tryCatchTarget=null;return e.apply(this,arguments)}catch(e){errorObj.e=e;return errorObj}}function tryCatch(e){tryCatchTarget=e;return tryCatcher}var inherits=function(e,t){var n={}.hasOwnProperty;function T(){this.constructor=e;this.constructor$=t;for(var r in t.prototype){if(n.call(t.prototype,r)&&r.charAt(r.length-1)!=="$"){this[r+"$"]=t.prototype[r]}}}T.prototype=t.prototype;e.prototype=new T;return e.prototype};function isPrimitive(e){return e==null||e===true||e===false||typeof e==="string"||typeof e==="number"}function isObject(e){return typeof e==="function"||typeof e==="object"&&e!==null}function maybeWrapAsError(e){if(!isPrimitive(e))return e;return new Error(safeToString(e))}function withAppended(e,t){var n=e.length;var r=new Array(n+1);var i;for(i=0;i<n;++i){r[i]=e[i]}r[i]=t;return r}function getDataPropertyOrDefault(e,t,n){if(es5.isES5){var r=Object.getOwnPropertyDescriptor(e,t);if(r!=null){return r.get==null&&r.set==null?r.value:n}}else{return{}.hasOwnProperty.call(e,t)?e[t]:undefined}}function notEnumerableProp(e,t,n){if(isPrimitive(e))return e;var r={value:n,configurable:true,enumerable:false,writable:true};es5.defineProperty(e,t,r);return e}function thrower(e){throw e}var inheritedDataKeys=function(){var e=[Array.prototype,Object.prototype,Function.prototype];var t=function(t){for(var n=0;n<e.length;++n){if(e[n]===t){return true}}return false};if(es5.isES5){var n=Object.getOwnPropertyNames;return function(e){var r=[];var i=Object.create(null);while(e!=null&&!t(e)){var s;try{s=n(e)}catch(e){return r}for(var o=0;o<s.length;++o){var a=s[o];if(i[a])continue;i[a]=true;var c=Object.getOwnPropertyDescriptor(e,a);if(c!=null&&c.get==null&&c.set==null){r.push(a)}}e=es5.getPrototypeOf(e)}return r}}else{var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var s in n){if(r.call(n,s)){i.push(s)}else{for(var o=0;o<e.length;++o){if(r.call(e[o],s)){continue e}}i.push(s)}}return i}}}();var thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(e){try{if(typeof e==="function"){var t=es5.names(e.prototype);var n=es5.isES5&&t.length>1;var r=t.length>0&&!(t.length===1&&t[0]==="constructor");var i=thisAssignmentPattern.test(e+"")&&es5.names(e).length>0;if(n||r||i){return true}}return false}catch(e){return false}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}ic();ic();return obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(e){return rident.test(e)}function filledRange(e,t,n){var r=new Array(e);for(var i=0;i<e;++i){r[i]=t+i+n}return r}function safeToString(e){try{return e+""}catch(e){return"[no string representation]"}}function isError(e){return e instanceof Error||e!==null&&typeof e==="object"&&typeof e.message==="string"&&typeof e.name==="string"}function markAsOriginatingFromRejection(e){try{notEnumerableProp(e,"isOperational",true)}catch(e){}}function originatesFromRejection(e){if(e==null)return false;return e instanceof Error["__BluebirdErrorTypes__"].OperationalError||e["isOperational"]===true}function canAttachTrace(e){return isError(e)&&es5.propertyIsWritable(e,"stack")}var ensureErrorObject=function(){if(!("stack"in new Error)){return function(e){if(canAttachTrace(e))return e;try{throw new Error(safeToString(e))}catch(e){return e}}}else{return function(e){if(canAttachTrace(e))return e;return new Error(safeToString(e))}}}();function classString(e){return{}.toString.call(e)}function copyDescriptors(e,t,n){var r=es5.names(e);for(var i=0;i<r.length;++i){var s=r[i];if(n(s)){try{es5.defineProperty(t,s,es5.getDescriptor(e,s))}catch(e){}}}}var asArray=function(e){if(es5.isArray(e)){return e}return null};if(typeof Symbol!=="undefined"&&Symbol.iterator){var ArrayFrom=typeof Array.from==="function"?function(e){return Array.from(e)}:function(e){var t=[];var n=e[Symbol.iterator]();var r;while(!(r=n.next()).done){t.push(r.value)}return t};asArray=function(e){if(es5.isArray(e)){return e}else if(e!=null&&typeof e[Symbol.iterator]==="function"){return ArrayFrom(e)}return null}}var isNode=typeof process!=="undefined"&&classString(process).toLowerCase()==="[object process]";var hasEnvVariables=typeof process!=="undefined"&&typeof process.env!=="undefined";function env(e){return hasEnvVariables?process.env[e]:undefined}function getNativePromise(){if(typeof Promise==="function"){try{var e=new Promise(function(){});if(classString(e)==="[object Promise]"){return Promise}}catch(e){}}}var reflectHandler;function contextBind(e,t){if(e===null||typeof t!=="function"||t===reflectHandler){return t}if(e.domain!==null){t=e.domain.bind(t)}var n=e.async;if(n!==null){var r=t;t=function(){var e=arguments.length+2;var t=new Array(e);for(var i=2;i<e;++i){t[i]=arguments[i-2]}t[0]=r;t[1]=this;return n.runInAsyncScope.apply(n,t)}}return t}var ret={setReflectHandler:function(e){reflectHandler=e},isClass:isClass,isIdentifier:isIdentifier,inheritedDataKeys:inheritedDataKeys,getDataPropertyOrDefault:getDataPropertyOrDefault,thrower:thrower,isArray:es5.isArray,asArray:asArray,notEnumerableProp:notEnumerableProp,isPrimitive:isPrimitive,isObject:isObject,isError:isError,canEvaluate:canEvaluate,errorObj:errorObj,tryCatch:tryCatch,inherits:inherits,withAppended:withAppended,maybeWrapAsError:maybeWrapAsError,toFastProperties:toFastProperties,filledRange:filledRange,toString:safeToString,canAttachTrace:canAttachTrace,ensureErrorObject:ensureErrorObject,originatesFromRejection:originatesFromRejection,markAsOriginatingFromRejection:markAsOriginatingFromRejection,classString:classString,copyDescriptors:copyDescriptors,isNode:isNode,hasEnvVariables:hasEnvVariables,env:env,global:globalObject,getNativePromise:getNativePromise,contextBind:contextBind};ret.isRecentNode=ret.isNode&&function(){var e;if(process.versions&&process.versions.node){e=process.versions.node.split(".").map(Number)}else if(process.version){e=process.version.split(".").map(Number)}return e[0]===0&&e[1]>10||e[0]>0}();ret.nodeSupportsAsyncResource=ret.isNode&&function(){var e=false;try{var t=__webpack_require__(77303).AsyncResource;e=typeof t.prototype.runInAsyncScope==="function"}catch(t){e=false}return e}();if(ret.isNode)ret.toFastProperties(process);try{throw new Error}catch(e){ret.lastLineError=e}module.exports=ret},23215:(e,t,n)=>{var r=n(14551);var i=n(23835);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var r=n.pre;var s=n.body;var o=n.post;var a=r.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var f;if(u){f=s.body.split(/\.\./)}else{f=parseCommaParts(s.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var p=s.post.length?expand(s.post,false):[""];return p.map(function(e){return s.pre+f[0]+e})}}}var d=s.pre;var p=s.post.length?expand(s.post,false):[""];var h;if(u){var m=numeric(f[0]);var g=numeric(f[1]);var y=Math.max(f[0].length,f[1].length);var v=f.length==3?Math.abs(numeric(f[2])):1;var _=lte;var b=g<m;if(b){v*=-1;_=gte}var E=f.some(isPadded);h=[];for(var w=m;_(w,g);w+=v){var S;if(c){S=String.fromCharCode(w);if(S==="\\")S=""}else{S=String(w);if(E){var k=y-S.length;if(k>0){var D=new Array(k+1).join("0");if(w<0)S="-"+D+S.slice(1);else S=D+S}}}h.push(S)}}else{h=r(f,function(e){return expand(e,false)})}for(var x=0;x<h.length;x++){for(var C=0;C<p.length;C++){var A=d+h[x]+p[C];if(!t||u||A)n.push(A)}}return n}},25954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(5115);var i=n(92413);function evCommon(){var e=process.hrtime();var t=e[0]*1e6+Math.round(e[1]/1e3);return{ts:t,pid:process.pid,tid:process.pid}}var s=function(e){r.__extends(Tracer,e);function Tracer(t){if(t===void 0){t={}}var n=e.call(this)||this;n.noStream=false;n.events=[];if(typeof t!=="object"){throw new Error("Invalid options passed (must be an object)")}if(t.parent!=null&&typeof t.parent!=="object"){throw new Error("Invalid option (parent) passed (must be an object)")}if(t.fields!=null&&typeof t.fields!=="object"){throw new Error("Invalid option (fields) passed (must be an object)")}if(t.objectMode!=null&&(t.objectMode!==true&&t.objectMode!==false)){throw new Error("Invalid option (objectsMode) passed (must be a boolean)")}n.noStream=t.noStream||false;n.parent=t.parent;if(n.parent){n.fields=Object.assign({},t.parent&&t.parent.fields)}else{n.fields={}}if(t.fields){Object.assign(n.fields,t.fields)}if(!n.fields.cat){n.fields.cat="default"}else if(Array.isArray(n.fields.cat)){n.fields.cat=n.fields.cat.join(",")}if(!n.fields.args){n.fields.args={}}if(n.parent){n._push=n.parent._push.bind(n.parent)}else{n._objectMode=Boolean(t.objectMode);var r={objectMode:n._objectMode};if(n._objectMode){n._push=n.push}else{n._push=n._pushString;r.encoding="utf8"}i.Readable.call(n,r)}return n}Tracer.prototype.flush=function(){if(this.noStream===true){for(var e=0,t=this.events;e<t.length;e++){var n=t[e];this._push(n)}this._flush()}};Tracer.prototype._read=function(e){};Tracer.prototype._pushString=function(e){var t="";if(!this.firstPush){this.push("[");this.firstPush=true}else{t=",\n"}this.push(t+JSON.stringify(e),"utf8")};Tracer.prototype._flush=function(){if(!this._objectMode){this.push("]")}};Tracer.prototype.child=function(e){return new Tracer({parent:this,fields:e})};Tracer.prototype.begin=function(e){return this.mkEventFunc("b")(e)};Tracer.prototype.end=function(e){return this.mkEventFunc("e")(e)};Tracer.prototype.completeEvent=function(e){return this.mkEventFunc("X")(e)};Tracer.prototype.instantEvent=function(e){return this.mkEventFunc("I")(e)};Tracer.prototype.mkEventFunc=function(e){var t=this;return function(n){var r=evCommon();r.ph=e;if(n){if(typeof n==="string"){r.name=n}else{for(var i=0,s=Object.keys(n);i<s.length;i++){var o=s[i];if(o==="cat"){r.cat=n.cat.join(",")}else{r[o]=n[o]}}}}if(!t.noStream){t._push(r)}else{t.events.push(r)}}};return Tracer}(i.Readable);t.Tracer=s},71130:(e,t,n)=>{"use strict";const r=n(12087);const i=/\s+at.*(?:\(|\s)(.*)\)?/;const s=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;const o=typeof r.homedir==="undefined"?"":r.homedir();e.exports=((e,t)=>{t=Object.assign({pretty:false},t);return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(i);if(t===null||!t[1]){return true}const n=t[1];if(n.includes(".app/Contents/Resources/electron.asar")||n.includes(".app/Contents/Resources/default_app.asar")){return false}return!s.test(n)}).filter(e=>e.trim()!=="").map(e=>{if(t.pretty){return e.replace(i,(e,t)=>e.replace(t,t.replace(o,"~")))}return e}).join("\n")})},23644:(e,t,n)=>{var r=n(99187);var i={};for(var s in r){if(r.hasOwnProperty(s)){i[r[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var i=Math.min(t,n,r);var s=Math.max(t,n,r);var o=s-i;var a;var c;var u;if(s===i){a=0}else if(t===s){a=(n-r)/o}else if(n===s){a=2+(r-t)/o}else if(r===s){a=4+(t-n)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var n;var r;var i;var s;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var f=function(e){return(u-e)/6/l+1/2};if(l===0){i=s=0}else{s=l/u;t=f(o);n=f(a);r=f(c);if(o===u){i=r-n}else if(a===u){i=1/3+t-r}else if(c===u){i=2/3+n-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var n=e[1];var r=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[i,s*100,r*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-n,1-r);i=(1-t-a)/(1-a)||0;s=(1-n-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var n=Infinity;var s;for(var o in r){if(r.hasOwnProperty(o)){var a=r[o];var c=comparativeDistance(e,a);if(c<n){n=c;s=o}}}return s};o.keyword.rgb=function(e){return r[e]};o.rgb.xyz=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=t*.4124+n*.3576+r*.1805;var s=t*.2126+n*.7152+r*.0722;var o=t*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var n=t[0];var r=t[1];var i=t[2];var s;var a;var c;n/=95.047;r/=100;i/=108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*r-16;a=500*(n-r);c=200*(r-i);return[s,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;var i;var s;var o;var a;var c;if(n===0){c=r*255;return[c,c,c]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}i=2*r-s;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(s-i)*6*o}else if(2*o<1){c=s}else if(3*o<2){c=i+(s-i)*(2/3-o)*6}else{c=i}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var n=e[1]/100;var r=e[2]/100;var i=n;var s=Math.max(r,.01);var o;var a;r*=2;n*=r<=1?r:2-r;i*=s<=1?s:2-s;a=(r+n)/2;o=r===0?2*i/(s+i):2*n/(r+n);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var n=e[1]/100;var r=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*r*(1-n);var a=255*r*(1-n*s);var c=255*r*(1-n*(1-s));r*=255;switch(i){case 0:return[r,c,o];case 1:return[a,r,o];case 2:return[o,r,c];case 3:return[o,a,r];case 4:return[c,o,r];case 5:return[r,o,a]}};o.hsv.hsl=function(e){var t=e[0];var n=e[1]/100;var r=e[2]/100;var i=Math.max(r,.01);var s;var o;var a;a=(2-n)*r;s=(2-n)*i;o=n*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;var i=n+r;var s;var o;var a;var c;if(i>1){n/=i;r/=i}s=Math.floor(6*t);o=1-r;a=6*t-s;if((s&1)!==0){a=1-a}c=n+a*(o-n);var u;var l;var f;switch(s){default:case 6:case 0:u=o;l=c;f=n;break;case 1:u=c;l=o;f=n;break;case 2:u=n;l=o;f=c;break;case 3:u=n;l=c;f=o;break;case 4:u=c;l=n;f=o;break;case 5:u=o;l=n;f=c;break}return[u*255,l*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var n=e[1]/100;var r=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,n*(1-i)+i);a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var n=e[1]/100;var r=e[2]/100;var i;var s;var o;i=t*3.2406+n*-1.5372+r*-.4986;s=t*-.9689+n*1.8758+r*.0415;o=t*.0557+n*-.204+r*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var n=e[1];var r=e[2];var i;var s;var o;t/=95.047;n/=100;r/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=116*n-16;s=500*(t-n);o=200*(n-r);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var n=e[1];var r=e[2];var i;var s;var o;s=(t+16)/116;i=n/500+s;o=s-r/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var u=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var n=e[1];var r=e[2];var i;var s;var o;i=Math.atan2(r,n);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(n*n+r*r);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var n=e[1];var r=e[2];var i;var s;var o;o=r/360*2*Math.PI;i=n*Math.cos(o);s=n*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var n=e[1];var r=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var n=e[1];var r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var n=(~~(e>50)+1)*.5;var r=(t&1)*n*255;var i=(t>>1&1)*n*255;var s=(t>>2&1)*n*255;return[r,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;var r=Math.floor(e/36)/5*255;var i=Math.floor((n=e%36)/6)/5*255;var s=n%6/5*255;return[r,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var n=t[0];if(t[0].length===3){n=n.split("").map(function(e){return e+e}).join("")}var r=parseInt(n,16);var i=r>>16&255;var s=r>>8&255;var o=r&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var n=e[1]/255;var r=e[2]/255;var i=Math.max(Math.max(t,n),r);var s=Math.min(Math.min(t,n),r);var o=i-s;var a;var c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(n-r)/o%6}else if(i===n){c=2+(r-t)/o}else{c=4+(t-n)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=1;var i=0;if(n<.5){r=2*t*n}else{r=2*t*(1-n)}if(r<1){i=(n-.5*r)/(1-r)}return[e[0],r*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=t*n;var i=0;if(r<1){i=(n-r)/(1-r)}return[e[0],r*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var n=e[1]/100;var r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-n)*r;return[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var n=e[2]/100;var r=t+n*(1-t);var i=0;if(r>0){i=t/r}return[e[0],i*100,r*100]};o.hcg.hsl=function(e){var t=e[1]/100;var n=e[2]/100;var r=n*(1-t)+.5*t;var i=0;if(r>0&&r<.5){i=t/(2*r)}else if(r>=.5&&r<1){i=t/(2*(1-r))}return[e[0],i*100,r*100]};o.hcg.hwb=function(e){var t=e[1]/100;var n=e[2]/100;var r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var n=e[2]/100;var r=1-n;var i=r-t;var s=0;if(i<1){s=(r-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var n=(t<<16)+(t<<8)+t;var r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},88215:(e,t,n)=>{var r=n(23644);var i=n(92076);var s={};var o=Object.keys(r);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var n=e(t);if(typeof n==="object"){for(var r=n.length,i=0;i<r;i++){n[i]=Math.round(n[i])}}return n};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:r[e].channels});Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=i(e);var n=Object.keys(t);n.forEach(function(n){var r=t[n];s[e][n]=wrapRounded(r);s[e][n].raw=wrapRaw(r)})});e.exports=s},99187:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},92076:(e,t,n)=>{var r=n(23644);function buildGraph(){var e={};var t=Object.keys(r);for(var n=t.length,i=0;i<n;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var n=[e];t[e].distance=0;while(n.length){var i=n.pop();var s=Object.keys(r[i]);for(var o=s.length,a=0;a<o;a++){var c=s[a];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;n.unshift(c)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){var n=[t[e].parent,e];var i=r[t[e].parent][e];var s=t[e].parent;while(t[s].parent){n.unshift(t[s].parent);i=link(r[t[s].parent][s],i);s=t[s].parent}i.conversion=n;return i}e.exports=function(e){var t=deriveBFS(e);var n={};var r=Object.keys(t);for(var i=r.length,s=0;s<i;s++){var o=r[s];var a=t[o];if(a.parent===null){continue}n[o]=wrapConversion(o,t)}return n}},4097:(e,t,n)=>{var r=n(85622);e.exports=function(e,t){if(t){var n=t.map(function(t){return r.resolve(e,t)})}else{var n=e}var i=n.slice(1).reduce(function(e,t){if(!t.match(/^([A-Za-z]:)?\/|\\/)){throw new Error("relative path without a basedir")}var n=t.split(/\/+|\\+/);for(var r=0;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)},n[0].split(/\/+|\\+/));return i.length>1?i.join("/"):"/"}},14551:e=>{e.exports=function(e,n){var r=[];for(var i=0;i<e.length;i++){var s=n(e[i],i);if(t(s))r.push.apply(r,s);else r.push(s)}return r};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},93349:(e,t)=>{function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},96487:function(e){(function(t,n){true?e.exports=n():0})(this,function(){"use strict";var e=function isMergeableObject(e){return isNonNullObject(e)&&!isSpecial(e)};function isNonNullObject(e){return!!e&&typeof e==="object"}function isSpecial(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||isReactElement(e)}var t=typeof Symbol==="function"&&Symbol.for;var n=t?Symbol.for("react.element"):60103;function isReactElement(e){return e.$$typeof===n}function emptyTarget(e){return Array.isArray(e)?[]:{}}function cloneUnlessOtherwiseSpecified(e,t){return t.clone!==false&&t.isMergeableObject(e)?deepmerge(emptyTarget(e),e,t):e}function defaultArrayMerge(e,t,n){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,n)})}function mergeObject(e,t,n){var r={};if(n.isMergeableObject(e)){Object.keys(e).forEach(function(t){r[t]=cloneUnlessOtherwiseSpecified(e[t],n)})}Object.keys(t).forEach(function(i){if(!n.isMergeableObject(t[i])||!e[i]){r[i]=cloneUnlessOtherwiseSpecified(t[i],n)}else{r[i]=deepmerge(e[i],t[i],n)}});return r}function deepmerge(t,n,r){r=r||{};r.arrayMerge=r.arrayMerge||defaultArrayMerge;r.isMergeableObject=r.isMergeableObject||e;var i=Array.isArray(n);var s=Array.isArray(t);var o=i===s;if(!o){return cloneUnlessOtherwiseSpecified(n,r)}else if(i){return r.arrayMerge(t,n,r)}else{return mergeObject(t,n,r)}}deepmerge.all=function deepmergeAll(e,t){if(!Array.isArray(e)){throw new Error("first argument should be an array")}return e.reduce(function(e,n){return deepmerge(e,n,t)},{})};var r=deepmerge;return r})},49616:(e,t,n)=>{"use strict";const r=n(31669);e.exports=r.deprecate(function createInnerCallback(e,t,n,r){const i=t.log;if(!i){if(t.stack!==e.stack){const n=function callbackWrapper(){return e.apply(this,arguments)};n.stack=t.stack;n.missing=t.missing;return n}return e}function loggingCallbackWrapper(){return e.apply(this,arguments)}if(n){if(!r){i(n)}loggingCallbackWrapper.log=function writeLog(e){if(r){i(n);r=false}i(" "+e)}}else{loggingCallbackWrapper.log=function writeLog(e){i(e)}}loggingCallbackWrapper.stack=t.stack;loggingCallbackWrapper.missing=t.missing;return loggingCallbackWrapper},"Pass resolveContext instead and use createInnerContext")},52227:e=>{"use strict";e.exports=function createInnerContext(e,t,n){let r=false;const i={log:(()=>{if(!e.log)return undefined;if(!t)return e.log;const n=n=>{if(!r){e.log(t);r=true}e.log(" "+n)};return n})(),stack:e.stack,missing:e.missing};return i}},22471:e=>{"use strict";e.exports=function getInnerRequest(e,t){if(typeof t.__innerRequest==="string"&&t.__innerRequest_request===t.request&&t.__innerRequest_relativePath===t.relativePath)return t.__innerRequest;let n;if(t.request){n=t.request;if(/^\.\.?\//.test(n)&&t.relativePath){n=e.join(t.relativePath,n)}}else{n=t.relativePath}t.__innerRequest_request=t.request;t.__innerRequest_relativePath=t.relativePath;return t.__innerRequest=n}},54448:(e,t,n)=>{var r=n(55757);function init(e,t,n){if(!!t&&typeof t!="string"){t=t.message||t.name}r(this,{type:e,name:e,cause:typeof t!="string"?t:n,message:t},"ewr")}function CustomError(e,t){Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);init.call(this,"CustomError",e,t)}CustomError.prototype=new Error;function createError(e,t,n){var r=function(n,i){init.call(this,t,n,i);if(t=="FilesystemError"){this.code=this.cause.code;this.path=this.cause.path;this.errno=this.cause.errno;this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")}Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,r)};r.prototype=!!n?new n:new CustomError;return r}e.exports=function(e){var t=function(t,n){return createError(e,t,n)};return{CustomError:CustomError,FilesystemError:t("FilesystemError"),createError:t}}},80713:(e,t,n)=>{var r=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={};e.exports.code={};r.forEach(function(t){e.exports.errno[t.errno]=t;e.exports.code[t.code]=t});e.exports.custom=n(54448)(e.exports);e.exports.create=e.exports.custom.createError},58732:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},16950:(e,t,n)=>{"use strict";const r=n(78120);class Definition{constructor(e,t,n,r,i,s){this.type=e;this.name=t;this.node=n;this.parent=r;this.index=i;this.kind=s}}class ParameterDefinition extends Definition{constructor(e,t,n,i){super(r.Parameter,e,t,null,n,null);this.rest=i}}e.exports={ParameterDefinition:ParameterDefinition,Definition:Definition}},19579:(e,t,n)=>{"use strict";const r=n(42357);const i=n(60018);const s=n(36337);const o=n(24552);const a=n(78120);const c=n(98699).Scope;const u=n(42245).i8;function defaultOptions(){return{optimistic:false,directive:false,nodejsScope:false,impliedStrict:false,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function updateDeeply(e,t){function isHashObject(e){return typeof e==="object"&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(const n in t){if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];if(isHashObject(r)){if(isHashObject(e[n])){updateDeeply(e[n],r)}else{e[n]=updateDeeply({},r)}}else{e[n]=r}}}return e}function analyze(e,t){const n=updateDeeply(defaultOptions(),t);const o=new i(n);const a=new s(n,o);a.visit(e);r(o.__currentScope===null,"currentScope should be null.");return o}e.exports={version:u,Reference:o,Variable:a,Scope:c,ScopeManager:i,analyze:analyze}},29630:(e,t,n)=>{"use strict";const r=n(92105).Syntax;const i=n(49112);function getLast(e){return e[e.length-1]||null}class PatternVisitor extends i.Visitor{static isPattern(e){const t=e.type;return t===r.Identifier||t===r.ObjectPattern||t===r.ArrayPattern||t===r.SpreadElement||t===r.RestElement||t===r.AssignmentPattern}constructor(e,t,n){super(null,e);this.rootPattern=t;this.callback=n;this.assignments=[];this.rightHandNodes=[];this.restElements=[]}Identifier(e){const t=getLast(this.restElements);this.callback(e,{topLevel:e===this.rootPattern,rest:t!==null&&t!==undefined&&t.argument===e,assignments:this.assignments})}Property(e){if(e.computed){this.rightHandNodes.push(e.key)}this.visit(e.value)}ArrayPattern(e){for(let t=0,n=e.elements.length;t<n;++t){const n=e.elements[t];this.visit(n)}}AssignmentPattern(e){this.assignments.push(e);this.visit(e.left);this.rightHandNodes.push(e.right);this.assignments.pop()}RestElement(e){this.restElements.push(e);this.visit(e.argument);this.restElements.pop()}MemberExpression(e){if(e.computed){this.rightHandNodes.push(e.property)}this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e);this.visit(e.left);this.rightHandNodes.push(e.right);this.assignments.pop()}CallExpression(e){e.arguments.forEach(e=>{this.rightHandNodes.push(e)});this.visit(e.callee)}}e.exports=PatternVisitor},24552:e=>{"use strict";const t=1;const n=2;const r=t|n;class Reference{constructor(e,t,n,r,i,s,o){this.identifier=e;this.from=t;this.tainted=false;this.resolved=null;this.flag=n;if(this.isWrite()){this.writeExpr=r;this.partial=s;this.init=o}this.__maybeImplicitGlobal=i}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&Reference.WRITE)}isRead(){return!!(this.flag&Reference.READ)}isReadOnly(){return this.flag===Reference.READ}isWriteOnly(){return this.flag===Reference.WRITE}isReadWrite(){return this.flag===Reference.RW}}Reference.READ=t;Reference.WRITE=n;Reference.RW=r;e.exports=Reference},36337:(e,t,n)=>{"use strict";const r=n(92105).Syntax;const i=n(49112);const s=n(24552);const o=n(78120);const a=n(29630);const c=n(16950);const u=n(42357);const l=c.ParameterDefinition;const f=c.Definition;function traverseIdentifierInPattern(e,t,n,r){const i=new a(e,t,r);i.visit(t);if(n!==null&&n!==undefined){i.rightHandNodes.forEach(n.visit,n)}}class Importer extends i.Visitor{constructor(e,t){super(null,t.options);this.declaration=e;this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,e=>{this.referencer.currentScope().__define(e,new f(o.ImportBinding,e,t,this.declaration,null,null))})}ImportNamespaceSpecifier(e){const t=e.local||e.id;if(t){this.visitImport(t,e)}}ImportDefaultSpecifier(e){const t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){const t=e.local||e.id;if(e.name){this.visitImport(e.name,e)}else{this.visitImport(t,e)}}}class Referencer extends i.Visitor{constructor(e,t){super(null,e);this.options=e;this.scopeManager=t;this.parent=null;this.isInnerMethodDefinition=false}currentScope(){return this.scopeManager.__currentScope}close(e){while(this.currentScope()&&e===this.currentScope().block){this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}}pushInnerMethodDefinition(e){const t=this.isInnerMethodDefinition;this.isInnerMethodDefinition=e;return t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,n,r){const i=this.currentScope();t.forEach(t=>{i.__referencing(e,s.WRITE,t.right,n,e!==t.left,r)})}visitPattern(e,t,n){let r=t;let i=n;if(typeof t==="function"){i=t;r={processRightHandNodes:false}}traverseIdentifierInPattern(this.options,e,r.processRightHandNodes?this:null,i)}visitFunction(e){let t,n;if(e.type===r.FunctionDeclaration){this.currentScope().__define(e.id,new f(o.FunctionName,e.id,e,null,null,null))}if(e.type===r.FunctionExpression&&e.id){this.scopeManager.__nestFunctionExpressionNameScope(e)}this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);const i=this;function visitPatternCallback(n,r){i.currentScope().__define(n,new l(n,e,t,r.rest));i.referencingDefaultValue(n,r.assignments,null,true)}for(t=0,n=e.params.length;t<n;++t){this.visitPattern(e.params[t],{processRightHandNodes:true},visitPatternCallback)}if(e.rest){this.visitPattern({type:"RestElement",argument:e.rest},t=>{this.currentScope().__define(t,new l(t,e,e.params.length,true))})}if(e.body){if(e.body.type===r.BlockStatement){this.visitChildren(e.body)}else{this.visit(e.body)}}this.close(e)}visitClass(e){if(e.type===r.ClassDeclaration){this.currentScope().__define(e.id,new f(o.ClassName,e.id,e,null,null,null))}this.visit(e.superClass);this.scopeManager.__nestClassScope(e);if(e.id){this.currentScope().__define(e.id,new f(o.ClassName,e.id,e))}this.visit(e.body);this.close(e)}visitProperty(e){let t;if(e.computed){this.visit(e.key)}const n=e.type===r.MethodDefinition;if(n){t=this.pushInnerMethodDefinition(true)}this.visit(e.value);if(n){this.popInnerMethodDefinition(t)}}visitForIn(e){if(e.left.type===r.VariableDeclaration&&e.left.kind!=="var"){this.scopeManager.__nestForScope(e)}if(e.left.type===r.VariableDeclaration){this.visit(e.left);this.visitPattern(e.left.declarations[0].id,t=>{this.currentScope().__referencing(t,s.WRITE,e.right,null,true,true)})}else{this.visitPattern(e.left,{processRightHandNodes:true},(t,n)=>{let r=null;if(!this.currentScope().isStrict){r={pattern:t,node:e}}this.referencingDefaultValue(t,n.assignments,r,false);this.currentScope().__referencing(t,s.WRITE,e.right,r,true,false)})}this.visit(e.right);this.visit(e.body);this.close(e)}visitVariableDeclaration(e,t,n,r){const i=n.declarations[r];const o=i.init;this.visitPattern(i.id,{processRightHandNodes:true},(a,c)=>{e.__define(a,new f(t,a,i,n,r,n.kind));this.referencingDefaultValue(a,c.assignments,null,true);if(o){this.currentScope().__referencing(a,s.WRITE,o,null,!c.topLevel,true)}})}AssignmentExpression(e){if(a.isPattern(e.left)){if(e.operator==="="){this.visitPattern(e.left,{processRightHandNodes:true},(t,n)=>{let r=null;if(!this.currentScope().isStrict){r={pattern:t,node:e}}this.referencingDefaultValue(t,n.assignments,r,false);this.currentScope().__referencing(t,s.WRITE,e.right,r,!n.topLevel,false)})}else{this.currentScope().__referencing(e.left,s.RW,e.right)}}else{this.visit(e.left)}this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e);this.visitPattern(e.param,{processRightHandNodes:true},(t,n)=>{this.currentScope().__define(t,new f(o.CatchClause,e.param,e,null,null,null));this.referencingDefaultValue(t,n.assignments,null,true)});this.visit(e.body);this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e);if(this.scopeManager.__isNodejsScope()){this.currentScope().isStrict=false;this.scopeManager.__nestFunctionScope(e,false)}if(this.scopeManager.__isES6()&&this.scopeManager.isModule()){this.scopeManager.__nestModuleScope(e)}if(this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()){this.currentScope().isStrict=true}this.visitChildren(e);this.close(e)}Identifier(e){this.currentScope().__referencing(e)}UpdateExpression(e){if(a.isPattern(e.argument)){this.currentScope().__referencing(e.argument,s.RW,null)}else{this.visitChildren(e)}}MemberExpression(e){this.visit(e.object);if(e.computed){this.visit(e.property)}}Property(e){this.visitProperty(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){if(e.init&&e.init.type===r.VariableDeclaration&&e.init.kind!=="var"){this.scopeManager.__nestForScope(e)}this.visitChildren(e);this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){if(!this.scopeManager.__ignoreEval()&&e.callee.type===r.Identifier&&e.callee.name==="eval"){this.currentScope().variableScope.__detectEval()}this.visitChildren(e)}BlockStatement(e){if(this.scopeManager.__isES6()){this.scopeManager.__nestBlockScope(e)}this.visitChildren(e);this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object);this.scopeManager.__nestWithScope(e);this.visit(e.body);this.close(e)}VariableDeclaration(e){const t=e.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let n=0,r=e.declarations.length;n<r;++n){const r=e.declarations[n];this.visitVariableDeclaration(t,o.Variable,e,n);if(r.init){this.visit(r.init)}}}SwitchStatement(e){this.visit(e.discriminant);if(this.scopeManager.__isES6()){this.scopeManager.__nestSwitchScope(e)}for(let t=0,n=e.cases.length;t<n;++t){this.visit(e.cases[t])}this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){u(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context.");const t=new Importer(e,this);t.visit(e)}visitExportDeclaration(e){if(e.source){return}if(e.declaration){this.visit(e.declaration);return}this.visitChildren(e)}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){const t=e.id||e.local;this.visit(t)}MetaProperty(){}}e.exports=Referencer},60018:(e,t,n)=>{"use strict";const r=n(98699);const i=n(42357);const s=r.GlobalScope;const o=r.CatchScope;const a=r.WithScope;const c=r.ModuleScope;const u=r.ClassScope;const l=r.SwitchScope;const f=r.FunctionScope;const p=r.ForScope;const d=r.FunctionExpressionNameScope;const h=r.BlockScope;class ScopeManager{constructor(e){this.scopes=[];this.globalScope=null;this.__nodeToScope=new WeakMap;this.__currentScope=null;this.__options=e;this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function predicate(e){if(e.type==="function"&&e.functionExpressionScope){return false}return true}const n=this.__get(e);if(!n||n.length===0){return null}if(n.length===1){return n[0]}if(t){for(let e=n.length-1;e>=0;--e){const t=n[e];if(predicate(t)){return t}}}else{for(let e=0,t=n.length;e<t;++e){const t=n[e];if(predicate(t)){return t}}}return null}acquireAll(e){return this.__get(e)}release(e,t){const n=this.__get(e);if(n&&n.length){const e=n[0].upper;if(!e){return null}return this.acquire(e.block,t)}return null}attach(){}detach(){}__nestScope(e){if(e instanceof s){i(this.__currentScope===null);this.globalScope=e}this.__currentScope=e;return e}__nestGlobalScope(e){return this.__nestScope(new s(this,e))}__nestBlockScope(e){return this.__nestScope(new h(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new f(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new p(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new o(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new a(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new u(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new l(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new c(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new d(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}}e.exports=ScopeManager},98699:(e,t,n)=>{"use strict";const r=n(92105).Syntax;const i=n(24552);const s=n(78120);const o=n(16950).Definition;const a=n(42357);function isStrictScope(e,t,n,i){let s;if(e.upper&&e.upper.isStrict){return true}if(n){return true}if(e.type==="class"||e.type==="module"){return true}if(e.type==="block"||e.type==="switch"){return false}if(e.type==="function"){if(t.type===r.ArrowFunctionExpression&&t.body.type!==r.BlockStatement){return false}if(t.type===r.Program){s=t}else{s=t.body}if(!s){return false}}else if(e.type==="global"){s=t}else{return false}if(i){for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==r.DirectiveStatement){break}if(t.raw==='"use strict"'||t.raw==="'use strict'"){return true}}}else{for(let e=0,t=s.body.length;e<t;++e){const t=s.body[e];if(t.type!==r.ExpressionStatement){break}const n=t.expression;if(n.type!==r.Literal||typeof n.value!=="string"){break}if(n.raw!==null&&n.raw!==undefined){if(n.raw==='"use strict"'||n.raw==="'use strict'"){return true}}else{if(n.value==="use strict"){return true}}}}return false}function registerScope(e,t){e.scopes.push(t);const n=e.__nodeToScope.get(t.block);if(n){n.push(t)}else{e.__nodeToScope.set(t.block,[t])}}function shouldBeStatically(e){return e.type===s.ClassName||e.type===s.Variable&&e.parent.kind!=="var"}class Scope{constructor(e,t,n,r,i){this.type=t;this.set=new Map;this.taints=new Map;this.dynamic=this.type==="global"||this.type==="with";this.block=r;this.through=[];this.variables=[];this.references=[];this.variableScope=this.type==="global"||this.type==="function"||this.type==="module"?this:n.variableScope;this.functionExpressionScope=false;this.directCallToEvalScope=false;this.thisFound=false;this.__left=[];this.upper=n;this.isStrict=isStrictScope(this,r,i,e.__useDirective());this.childScopes=[];if(this.upper){this.upper.childScopes.push(this)}this.__declaredVariables=e.__declaredVariables;registerScope(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){const t=e.identifier.name;if(!this.set.has(t)){return false}const n=this.set.get(t);const r=n.defs;return r.length>0&&r.every(shouldBeStatically)}__staticCloseRef(e){if(!this.__resolve(e)){this.__delegateToUpperScope(e)}}__dynamicCloseRef(e){let t=this;do{t.through.push(e);t=t.upper}while(t)}__globalCloseRef(e){if(this.__shouldStaticallyCloseForGlobal(e)){this.__staticCloseRef(e)}else{this.__dynamicCloseRef(e)}}__close(e){let t;if(this.__shouldStaticallyClose(e)){t=this.__staticCloseRef}else if(this.type!=="global"){t=this.__dynamicCloseRef}else{t=this.__globalCloseRef}for(let e=0,n=this.__left.length;e<n;++e){const n=this.__left[e];t.call(this,n)}this.__left=null;return this.upper}__isValidResolution(e,t){return true}__resolve(e){const t=e.identifier.name;if(!this.set.has(t)){return false}const n=this.set.get(t);if(!this.__isValidResolution(e,n)){return false}n.references.push(e);n.stack=n.stack&&e.from.variableScope===this.variableScope;if(e.tainted){n.tainted=true;this.taints.set(n.name,true)}e.resolved=n;return true}__delegateToUpperScope(e){if(this.upper){this.upper.__left.push(e)}this.through.push(e)}__addDeclaredVariablesOfNode(e,t){if(t===null||t===undefined){return}let n=this.__declaredVariables.get(t);if(n===null||n===undefined){n=[];this.__declaredVariables.set(t,n)}if(n.indexOf(e)===-1){n.push(e)}}__defineGeneric(e,t,n,r,i){let o;o=t.get(e);if(!o){o=new s(e,this);t.set(e,o);n.push(o)}if(i){o.defs.push(i);this.__addDeclaredVariablesOfNode(o,i.node);this.__addDeclaredVariablesOfNode(o,i.parent)}if(r){o.identifiers.push(r)}}__define(e,t){if(e&&e.type===r.Identifier){this.__defineGeneric(e.name,this.set,this.variables,e,t)}}__referencing(e,t,n,s,o,a){if(!e||e.type!==r.Identifier){return}if(e.name==="super"){return}const c=new i(e,this,t||i.READ,n,s,!!o,!!a);this.references.push(c);this.__left.push(c)}__detectEval(){let e=this;this.directCallToEvalScope=true;do{e.dynamic=true;e=e.upper}while(e)}__detectThis(){this.thisFound=true}__isClosed(){return this.__left===null}resolve(e){let t,n,i;a(this.__isClosed(),"Scope should be closed.");a(e.type===r.Identifier,"Target should be identifier.");for(n=0,i=this.references.length;n<i;++n){t=this.references[n];if(t.identifier===e){return t}}return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return true}isThisMaterialized(){return true}isUsedName(e){if(this.set.has(e)){return true}for(let t=0,n=this.through.length;t<n;++t){if(this.through[t].identifier.name===e){return true}}return false}}class GlobalScope extends Scope{constructor(e,t){super(e,"global",null,t,false);this.implicit={set:new Map,variables:[],left:[]}}__close(e){const t=[];for(let e=0,n=this.__left.length;e<n;++e){const n=this.__left[e];if(n.__maybeImplicitGlobal&&!this.set.has(n.identifier.name)){t.push(n.__maybeImplicitGlobal)}}for(let e=0,n=t.length;e<n;++e){const n=t[e];this.__defineImplicit(n.pattern,new o(s.ImplicitGlobalVariable,n.pattern,n.node,null,null,null))}this.implicit.left=this.__left;return super.__close(e)}__defineImplicit(e,t){if(e&&e.type===r.Identifier){this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}}}class ModuleScope extends Scope{constructor(e,t,n){super(e,"module",t,n,false)}}class FunctionExpressionNameScope extends Scope{constructor(e,t,n){super(e,"function-expression-name",t,n,false);this.__define(n.id,new o(s.FunctionName,n.id,n,null,null,null));this.functionExpressionScope=true}}class CatchScope extends Scope{constructor(e,t,n){super(e,"catch",t,n,false)}}class WithScope extends Scope{constructor(e,t,n){super(e,"with",t,n,false)}__close(e){if(this.__shouldStaticallyClose(e)){return super.__close(e)}for(let e=0,t=this.__left.length;e<t;++e){const t=this.__left[e];t.tainted=true;this.__delegateToUpperScope(t)}this.__left=null;return this.upper}}class BlockScope extends Scope{constructor(e,t,n){super(e,"block",t,n,false)}}class SwitchScope extends Scope{constructor(e,t,n){super(e,"switch",t,n,false)}}class FunctionScope extends Scope{constructor(e,t,n,i){super(e,"function",t,n,i);if(this.block.type!==r.ArrowFunctionExpression){this.__defineArguments()}}isArgumentsMaterialized(){if(this.block.type===r.ArrowFunctionExpression){return false}if(!this.isStatic()){return true}const e=this.set.get("arguments");a(e,"Always have arguments variable.");return e.tainted||e.references.length!==0}isThisMaterialized(){if(!this.isStatic()){return true}return this.thisFound}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null);this.taints.set("arguments",true)}__isValidResolution(e,t){if(this.block.type==="Program"){return true}const n=this.block.body.range[0];return!(t.scope===this&&e.identifier.range[0]<n&&t.defs.every(e=>e.name.range[0]>=n))}}class ForScope extends Scope{constructor(e,t,n){super(e,"for",t,n,false)}}class ClassScope extends Scope{constructor(e,t,n){super(e,"class",t,n,false)}}e.exports={Scope:Scope,GlobalScope:GlobalScope,ModuleScope:ModuleScope,FunctionExpressionNameScope:FunctionExpressionNameScope,CatchScope:CatchScope,WithScope:WithScope,BlockScope:BlockScope,SwitchScope:SwitchScope,FunctionScope:FunctionScope,ForScope:ForScope,ClassScope:ClassScope}},78120:e=>{"use strict";class Variable{constructor(e,t){this.name=e;this.identifiers=[];this.references=[];this.defs=[];this.tainted=false;this.stack=true;this.scope=t}}Variable.CatchClause="CatchClause";Variable.Parameter="Parameter";Variable.FunctionName="FunctionName";Variable.ClassName="ClassName";Variable.Variable="Variable";Variable.ImportBinding="ImportBinding";Variable.ImplicitGlobalVariable="ImplicitGlobalVariable";e.exports=Variable},49112:(e,t,n)=>{(function(){"use strict";var e=n(92105);function isNode(e){if(e==null){return false}return typeof e==="object"&&typeof e.type==="string"}function isProperty(t,n){return(t===e.Syntax.ObjectExpression||t===e.Syntax.ObjectPattern)&&n==="properties"}function Visitor(t,n){n=n||{};this.__visitor=t||this;this.__childVisitorKeys=n.childVisitorKeys?Object.assign({},e.VisitorKeys,n.childVisitorKeys):e.VisitorKeys;if(n.fallback==="iteration"){this.__fallback=Object.keys}else if(typeof n.fallback==="function"){this.__fallback=n.fallback}}Visitor.prototype.visitChildren=function(t){var n,r,i,s,o,a,c;if(t==null){return}n=t.type||e.Syntax.Property;r=this.__childVisitorKeys[n];if(!r){if(this.__fallback){r=this.__fallback(t)}else{throw new Error("Unknown node type "+n+".")}}for(i=0,s=r.length;i<s;++i){c=t[r[i]];if(c){if(Array.isArray(c)){for(o=0,a=c.length;o<a;++o){if(c[o]){if(isNode(c[o])||isProperty(n,r[i])){this.visit(c[o])}}}}else if(isNode(c)){this.visit(c)}}}};Visitor.prototype.visit=function(t){var n;if(t==null){return}n=t.type||e.Syntax.Property;if(this.__visitor[n]){this.__visitor[n].call(this,t);return}this.visitChildren(t)};t.version=n(18492).version;t.Visitor=Visitor;t.visit=function(e,t,n){var r=new Visitor(t,n);r.visit(e)}})()},92105:(e,t,n)=>{(function clone(e){"use strict";var t,r,i,s,o,a,c,u,l;function ignoreJSHintError(){}r=Array.isArray;if(!r){r=function isArray(e){return Object.prototype.toString.call(e)==="[object Array]"}}function deepCopy(e){var t={},n,r;for(n in e){if(e.hasOwnProperty(n)){r=e[n];if(typeof r==="object"&&r!==null){t[n]=deepCopy(r)}else{t[n]=r}}}return t}function shallowCopy(e){var t={},n;for(n in e){if(e.hasOwnProperty(n)){t[n]=e[n]}}return t}ignoreJSHintError(shallowCopy);function upperBound(e,t){var n,r,i,s;r=e.length;i=0;while(r){n=r>>>1;s=i+n;if(t(e[s])){r=n}else{i=s+1;r-=n+1}}return i}function lowerBound(e,t){var n,r,i,s;r=e.length;i=0;while(r){n=r>>>1;s=i+n;if(t(e[s])){i=s+1;r-=n+1}else{r=n}}return i}ignoreJSHintError(lowerBound);o=Object.create||function(){function F(){}return function(e){F.prototype=e;return new F}}();a=Object.keys||function(e){var t=[],n;for(n in e){t.push(n)}return t};function extend(e,t){var n=a(t),r,i,s;for(i=0,s=n.length;i<s;i+=1){r=n[i];e[r]=t[r]}return e}t={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};c={};u={};l={};i={Break:c,Skip:u,Remove:l};function Reference(e,t){this.parent=e;this.key=t}Reference.prototype.replace=function replace(e){this.parent[this.key]=e};Reference.prototype.remove=function remove(){if(r(this.parent)){this.parent.splice(this.key,1);return true}else{this.replace(null);return false}};function Element(e,t,n,r){this.node=e;this.path=t;this.wrap=n;this.ref=r}function Controller(){}Controller.prototype.path=function path(){var e,t,n,i,s,o;function addToPath(e,t){if(r(t)){for(n=0,i=t.length;n<i;++n){e.push(t[n])}}else{e.push(t)}}if(!this.__current.path){return null}s=[];for(e=2,t=this.__leavelist.length;e<t;++e){o=this.__leavelist[e];addToPath(s,o.path)}addToPath(s,this.__current.path);return s};Controller.prototype.type=function(){var e=this.current();return e.type||this.__current.wrap};Controller.prototype.parents=function parents(){var e,t,n;n=[];for(e=1,t=this.__leavelist.length;e<t;++e){n.push(this.__leavelist[e].node)}return n};Controller.prototype.current=function current(){return this.__current.node};Controller.prototype.__execute=function __execute(e,t){var n,r;r=undefined;n=this.__current;this.__current=t;this.__state=null;if(e){r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)}this.__current=n;return r};Controller.prototype.notify=function notify(e){this.__state=e};Controller.prototype.skip=function(){this.notify(u)};Controller.prototype["break"]=function(){this.notify(c)};Controller.prototype.remove=function(){this.notify(l)};Controller.prototype.__initialize=function(e,t){this.visitor=t;this.root=e;this.__worklist=[];this.__leavelist=[];this.__current=null;this.__state=null;this.__fallback=null;if(t.fallback==="iteration"){this.__fallback=a}else if(typeof t.fallback==="function"){this.__fallback=t.fallback}this.__keys=s;if(t.keys){this.__keys=extend(o(this.__keys),t.keys)}};function isNode(e){if(e==null){return false}return typeof e==="object"&&typeof e.type==="string"}function isProperty(e,n){return(e===t.ObjectExpression||e===t.ObjectPattern)&&"properties"===n}Controller.prototype.traverse=function traverse(e,t){var n,i,s,o,a,l,f,p,d,h,m,g;this.__initialize(e,t);g={};n=this.__worklist;i=this.__leavelist;n.push(new Element(e,null,null,null));i.push(new Element(null,null,null,null));while(n.length){s=n.pop();if(s===g){s=i.pop();l=this.__execute(t.leave,s);if(this.__state===c||l===c){return}continue}if(s.node){l=this.__execute(t.enter,s);if(this.__state===c||l===c){return}n.push(g);i.push(s);if(this.__state===u||l===u){continue}o=s.node;a=o.type||s.wrap;h=this.__keys[a];if(!h){if(this.__fallback){h=this.__fallback(o)}else{throw new Error("Unknown node type "+a+".")}}p=h.length;while((p-=1)>=0){f=h[p];m=o[f];if(!m){continue}if(r(m)){d=m.length;while((d-=1)>=0){if(!m[d]){continue}if(isProperty(a,h[p])){s=new Element(m[d],[f,d],"Property",null)}else if(isNode(m[d])){s=new Element(m[d],[f,d],null,null)}else{continue}n.push(s)}}else if(isNode(m)){n.push(new Element(m,f,null,null))}}}}};Controller.prototype.replace=function replace(e,t){var n,i,s,o,a,f,p,d,h,m,g,y,v;function removeElem(e){var t,r,i,s;if(e.ref.remove()){r=e.ref.key;s=e.ref.parent;t=n.length;while(t--){i=n[t];if(i.ref&&i.ref.parent===s){if(i.ref.key<r){break}--i.ref.key}}}}this.__initialize(e,t);g={};n=this.__worklist;i=this.__leavelist;y={root:e};f=new Element(e,null,null,new Reference(y,"root"));n.push(f);i.push(f);while(n.length){f=n.pop();if(f===g){f=i.pop();a=this.__execute(t.leave,f);if(a!==undefined&&a!==c&&a!==u&&a!==l){f.ref.replace(a)}if(this.__state===l||a===l){removeElem(f)}if(this.__state===c||a===c){return y.root}continue}a=this.__execute(t.enter,f);if(a!==undefined&&a!==c&&a!==u&&a!==l){f.ref.replace(a);f.node=a}if(this.__state===l||a===l){removeElem(f);f.node=null}if(this.__state===c||a===c){return y.root}s=f.node;if(!s){continue}n.push(g);i.push(f);if(this.__state===u||a===u){continue}o=s.type||f.wrap;h=this.__keys[o];if(!h){if(this.__fallback){h=this.__fallback(s)}else{throw new Error("Unknown node type "+o+".")}}p=h.length;while((p-=1)>=0){v=h[p];m=s[v];if(!m){continue}if(r(m)){d=m.length;while((d-=1)>=0){if(!m[d]){continue}if(isProperty(o,h[p])){f=new Element(m[d],[v,d],"Property",new Reference(m,d))}else if(isNode(m[d])){f=new Element(m[d],[v,d],null,new Reference(m,d))}else{continue}n.push(f)}}else if(isNode(m)){n.push(new Element(m,v,null,new Reference(s,v)))}}}return y.root};function traverse(e,t){var n=new Controller;return n.traverse(e,t)}function replace(e,t){var n=new Controller;return n.replace(e,t)}function extendCommentRange(e,t){var n;n=upperBound(t,function search(t){return t.range[0]>e.range[0]});e.extendedRange=[e.range[0],e.range[1]];if(n!==t.length){e.extendedRange[1]=t[n].range[0]}n-=1;if(n>=0){e.extendedRange[0]=t[n].range[1]}return e}function attachComments(e,t,n){var r=[],s,o,a,c;if(!e.range){throw new Error("attachComments needs range information")}if(!n.length){if(t.length){for(a=0,o=t.length;a<o;a+=1){s=deepCopy(t[a]);s.extendedRange=[0,e.range[0]];r.push(s)}e.leadingComments=r}return e}for(a=0,o=t.length;a<o;a+=1){r.push(extendCommentRange(deepCopy(t[a]),n))}c=0;traverse(e,{enter:function(e){var t;while(c<r.length){t=r[c];if(t.extendedRange[1]>e.range[0]){break}if(t.extendedRange[1]===e.range[0]){if(!e.leadingComments){e.leadingComments=[]}e.leadingComments.push(t);r.splice(c,1)}else{c+=1}}if(c===r.length){return i.Break}if(r[c].extendedRange[0]>e.range[1]){return i.Skip}}});c=0;traverse(e,{leave:function(e){var t;while(c<r.length){t=r[c];if(e.range[1]<t.extendedRange[0]){break}if(e.range[1]===t.extendedRange[0]){if(!e.trailingComments){e.trailingComments=[]}e.trailingComments.push(t);r.splice(c,1)}else{c+=1}}if(c===r.length){return i.Break}if(r[c].extendedRange[0]>e.range[1]){return i.Skip}}});return e}e.version=n(82788).i8;e.Syntax=t;e.traverse=traverse;e.replace=replace;e.attachComments=attachComments;e.VisitorKeys=s;e.VisitorOption=i;e.Controller=Controller;e.cloneEnvironment=function(){return clone({})};return e})(t)},55245:e=>{"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var n,r,i;if(Array.isArray(e)){n=e.length;if(n!=t.length)return false;for(r=n;r--!==0;)if(!equal(e[r],t[r]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();i=Object.keys(e);n=i.length;if(n!==Object.keys(t).length)return false;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return false;for(r=n;r--!==0;){var s=i[r];if(!equal(e[s],t[s]))return false}return true}return e!==e&&t!==t}},75986:e=>{"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var n=typeof t.cycles==="boolean"?t.cycles:false;var r=t.cmp&&function(e){return function(t){return function(n,r){var i={key:n,value:t[n]};var s={key:r,value:t[r]};return e(i,s)}}}(t.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var t,s;if(Array.isArray(e)){s="[";for(t=0;t<e.length;t++){if(t)s+=",";s+=stringify(e[t])||"null"}return s+"]"}if(e===null)return"null";if(i.indexOf(e)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=i.push(e)-1;var a=Object.keys(e).sort(r&&r(e));s="";for(t=0;t<a.length;t++){var c=a[t];var u=stringify(e[c]);if(!u)continue;if(s)s+=",";s+=JSON.stringify(c)+":"+u}i.splice(o,1);return"{"+s+"}"}(e)}},16366:(e,t,n)=>{"use strict";const r=n(85622);const i=n(35747);const s=n(4097);const o=n(93224);const a=n(41365);const{env:c,cwd:u}=process;const l=e=>{try{i.accessSync(e,i.constants.W_OK);return true}catch(e){return false}};function useDirectory(e,t){if(t.create){a.sync(e)}if(t.thunk){return(...t)=>r.join(e,...t)}return e}function getNodeModuleDirectory(e){const t=r.join(e,"node_modules");if(!l(t)&&(i.existsSync(t)||!l(r.join(e)))){return}return t}e.exports=((e={})=>{if(c.CACHE_DIR&&!["true","false","1","0"].includes(c.CACHE_DIR)){return useDirectory(r.join(c.CACHE_DIR,"find-cache-dir"),e)}let{cwd:t=u()}=e;if(e.files){t=s(t,e.files)}t=o.sync(t);if(!t){return}const n=getNodeModuleDirectory(t);if(!n){return undefined}return useDirectory(r.join(t,"node_modules",".cache",e.name),e)})},70558:(e,t,n)=>{"use strict";const r=n(85622);const i=n(6537);const s=n(69446);const o=Symbol("findUp.stop");e.exports=(async(e,t={})=>{let n=r.resolve(t.cwd||"");const{root:s}=r.parse(n);const a=[].concat(e);const c=async t=>{if(typeof e!=="function"){return i(a,t)}const n=await e(t.cwd);if(typeof n==="string"){return i([n],t)}return n};while(true){const e=await c({...t,cwd:n});if(e===o){return}if(e){return r.resolve(n,e)}if(n===s){return}n=r.dirname(n)}});e.exports.sync=((e,t={})=>{let n=r.resolve(t.cwd||"");const{root:s}=r.parse(n);const a=[].concat(e);const c=t=>{if(typeof e!=="function"){return i.sync(a,t)}const n=e(t.cwd);if(typeof n==="string"){return i.sync([n],t)}return n};while(true){const e=c({...t,cwd:n});if(e===o){return}if(e){return r.resolve(n,e)}if(n===s){return}n=r.dirname(n)}});e.exports.exists=s;e.exports.sync.exists=s.sync;e.exports.stop=o},69446:(e,t,n)=>{"use strict";const r=n(35747);const{promisify:i}=n(31669);const s=i(r.access);e.exports=(async e=>{try{await s(e);return true}catch(e){return false}});e.exports.sync=(e=>{try{r.accessSync(e);return true}catch(e){return false}})},95625:(e,t,n)=>{"use strict";const r=n(24302);const i=n(28614).EventEmitter;const s=n(35747);let o=s.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=((n,r,i,s)=>{const o=(e,t)=>s(e,t,r);const a=new t;a.oncomplete=o;e.writeBuffers(n,r,i,a)})}const a=Symbol("_autoClose");const c=Symbol("_close");const u=Symbol("_ended");const l=Symbol("_fd");const f=Symbol("_finished");const p=Symbol("_flags");const d=Symbol("_flush");const h=Symbol("_handleChunk");const m=Symbol("_makeBuf");const g=Symbol("_mode");const y=Symbol("_needDrain");const v=Symbol("_onerror");const _=Symbol("_onopen");const b=Symbol("_onread");const E=Symbol("_onwrite");const w=Symbol("_open");const S=Symbol("_path");const k=Symbol("_pos");const D=Symbol("_queue");const x=Symbol("_read");const C=Symbol("_readSize");const A=Symbol("_reading");const T=Symbol("_remain");const M=Symbol("_size");const O=Symbol("_write");const F=Symbol("_writing");const I=Symbol("_defaultFlag");const R=Symbol("_errored");class ReadStream extends r{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[R]=false;this[l]=typeof t.fd==="number"?t.fd:null;this[S]=e;this[C]=t.readSize||16*1024*1024;this[A]=false;this[M]=typeof t.size==="number"?t.size:Infinity;this[T]=this[M];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[l]==="number")this[x]();else this[w]()}get fd(){return this[l]}get path(){return this[S]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){s.open(this[S],"r",(e,t)=>this[_](e,t))}[_](e,t){if(e)this[v](e);else{this[l]=t;this.emit("open",t);this[x]()}}[m](){return Buffer.allocUnsafe(Math.min(this[C],this[T]))}[x](){if(!this[A]){this[A]=true;const e=this[m]();if(e.length===0)return process.nextTick(()=>this[b](null,0,e));s.read(this[l],e,0,e.length,null,(e,t,n)=>this[b](e,t,n))}}[b](e,t,n){this[A]=false;if(e)this[v](e);else if(this[h](t,n))this[x]()}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[v](e){this[A]=true;this[c]();this.emit("error",e)}[h](e,t){let n=false;this[T]-=e;if(e>0)n=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[T]<=0){n=false;this[c]();super.end()}return n}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[l]==="number")this[x]();break;case"error":if(this[R])return;this[R]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[w](){let e=true;try{this[_](null,s.openSync(this[S],"r"));e=false}finally{if(e)this[c]()}}[x](){let e=true;try{if(!this[A]){this[A]=true;do{const e=this[m]();const t=e.length===0?0:s.readSync(this[l],e,0,e.length,null);if(!this[h](t,e))break}while(true);this[A]=false}e=false}finally{if(e)this[c]()}}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.closeSync(e);this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[R]=false;this[F]=false;this[u]=false;this[y]=false;this[D]=[];this[S]=e;this[l]=typeof t.fd==="number"?t.fd:null;this[g]=t.mode===undefined?438:t.mode;this[k]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const n=this[k]!==null?"r+":"w";this[I]=t.flags===undefined;this[p]=this[I]?n:t.flags;if(this[l]===null)this[w]()}emit(e,t){if(e==="error"){if(this[R])return;this[R]=true}return super.emit(e,t)}get fd(){return this[l]}get path(){return this[S]}[v](e){this[c]();this[F]=true;this.emit("error",e)}[w](){s.open(this[S],this[p],this[g],(e,t)=>this[_](e,t))}[_](e,t){if(this[I]&&this[p]==="r+"&&e&&e.code==="ENOENT"){this[p]="w";this[w]()}else if(e)this[v](e);else{this[l]=t;this.emit("open",t);this[d]()}}end(e,t){if(e)this.write(e,t);this[u]=true;if(!this[F]&&!this[D].length&&typeof this[l]==="number")this[E](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[u]){this.emit("error",new Error("write() after end()"));return false}if(this[l]===null||this[F]||this[D].length){this[D].push(e);this[y]=true;return false}this[F]=true;this[O](e);return true}[O](e){s.write(this[l],e,0,e.length,this[k],(e,t)=>this[E](e,t))}[E](e,t){if(e)this[v](e);else{if(this[k]!==null)this[k]+=t;if(this[D].length)this[d]();else{this[F]=false;if(this[u]&&!this[f]){this[f]=true;this[c]();this.emit("finish")}else if(this[y]){this[y]=false;this.emit("drain")}}}}[d](){if(this[D].length===0){if(this[u])this[E](null,0)}else if(this[D].length===1)this[O](this[D].pop());else{const e=this[D];this[D]=[];o(this[l],e,this[k],(e,t)=>this[E](e,t))}}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}}class WriteStreamSync extends WriteStream{[w](){let e;if(this[I]&&this[p]==="r+"){try{e=s.openSync(this[S],this[p],this[g])}catch(e){if(e.code==="ENOENT"){this[p]="w";return this[w]()}else throw e}}else e=s.openSync(this[S],this[p],this[g]);this[_](null,e)}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.closeSync(e);this.emit("close")}}[O](e){let t=true;try{this[E](null,s.writeSync(this[l],e,0,e.length,this[k]));t=false}finally{if(t)try{this[c]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},29909:(e,t,n)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var r=n(35747);var i=r.realpath;var s=r.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=n(58411);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,n){if(a){return i(e,t,n)}if(typeof t==="function"){n=t;t=null}i(e,t,function(r,i){if(newError(r)){c.realpath(e,t,n)}else{n(r,i)}})}function realpathSync(e,t){if(a){return s(e,t)}try{return s(e,t)}catch(n){if(newError(n)){return c.realpathSync(e,t)}else{throw n}}}function monkeypatch(){r.realpath=realpath;r.realpathSync=realpathSync}function unmonkeypatch(){r.realpath=i;r.realpathSync=s}},58411:(e,t,n)=>{var r=n(85622);var i=process.platform==="win32";var s=n(35747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=r.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=r.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var n=e,o={},a={};var l;var f;var p;var d;start();function start(){var t=u.exec(e);l=t[0].length;f=t[0];p=t[0];d="";if(i&&!a[p]){s.lstatSync(p);a[p]=true}}while(l<e.length){c.lastIndex=l;var h=c.exec(e);d=f;f+=h[0];p=d+h[1];l=c.lastIndex;if(a[p]||t&&t[p]===p){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,p)){m=t[p]}else{var g=s.lstatSync(p);if(!g.isSymbolicLink()){a[p]=true;if(t)t[p]=p;continue}var y=null;if(!i){var v=g.dev.toString(32)+":"+g.ino.toString(32);if(o.hasOwnProperty(v)){y=o[v]}}if(y===null){s.statSync(p);y=s.readlinkSync(p)}m=r.resolve(d,y);if(t)t[p]=m;if(!i)o[v]=y}e=r.resolve(m,e.slice(l));start()}if(t)t[n]=e;return e};t.realpath=function realpath(e,t,n){if(typeof n!=="function"){n=maybeCallback(t);t=null}e=r.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(n.bind(null,null,t[e]))}var o=e,a={},l={};var f;var p;var d;var h;start();function start(){var t=u.exec(e);f=t[0].length;p=t[0];d=t[0];h="";if(i&&!l[d]){s.lstat(d,function(e){if(e)return n(e);l[d]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(f>=e.length){if(t)t[o]=e;return n(null,e)}c.lastIndex=f;var r=c.exec(e);h=p;p+=r[0];d=h+r[1];f=c.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return s.lstat(d,gotStat)}function gotStat(e,r){if(e)return n(e);if(!r.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!i){var o=r.dev.toString(32)+":"+r.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],d)}}s.stat(d,function(e){if(e)return n(e);s.readlink(d,function(e,t){if(!i)a[o]=t;gotTarget(e,t)})})}function gotTarget(e,i,s){if(e)return n(e);var o=r.resolve(h,i);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=r.resolve(t,e.slice(f));start()}}},70554:e=>{e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Expected a string")}var n=String(e);var r="";var i=t?!!t.extended:false;var s=t?!!t.globstar:false;var o=false;var a=t&&typeof t.flags==="string"?t.flags:"";var c;for(var u=0,l=n.length;u<l;u++){c=n[u];switch(c){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+c;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=c;break}case"{":if(i){o=true;r+="(";break}case"}":if(i){o=false;r+=")";break}case",":if(o){r+="|";break}r+="\\"+c;break;case"*":var f=n[u-1];var p=1;while(n[u+1]==="*"){p++;u++}var d=n[u+1];if(!s){r+=".*"}else{var h=p>1&&(f==="/"||f===undefined)&&(d==="/"||d===undefined);if(h){r+="((?:[^/]*(?:/|$))*)";u++}else{r+="([^/]*)"}}break;default:r+=c}}if(!a||!~a.indexOf("g")){r="^"+r+"$"}return new RegExp(r,a)}},70601:(e,t,n)=>{t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var r=n(85622);var i=n(642);var s=n(52963);var o=i.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var n=e.replace(/(\/\*\*)+$/,"");t=new o(n,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,n){if(!n)n={};if(n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!n.silent;e.pattern=t;e.strict=n.strict!==false;e.realpath=!!n.realpath;e.realpathCache=n.realpathCache||Object.create(null);e.follow=!!n.follow;e.dot=!!n.dot;e.mark=!!n.mark;e.nodir=!!n.nodir;if(e.nodir)e.mark=true;e.sync=!!n.sync;e.nounique=!!n.nounique;e.nonull=!!n.nonull;e.nosort=!!n.nosort;e.nocase=!!n.nocase;e.stat=!!n.stat;e.noprocess=!!n.noprocess;e.absolute=!!n.absolute;e.maxLength=n.maxLength||Infinity;e.cache=n.cache||Object.create(null);e.statCache=n.statCache||Object.create(null);e.symlinks=n.symlinks||Object.create(null);setupIgnores(e,n);e.changedCwd=false;var i=process.cwd();if(!ownProp(n,"cwd"))e.cwd=i;else{e.cwd=r.resolve(n.cwd);e.changedCwd=e.cwd!==i}e.root=n.root||r.resolve(e.cwd,"/");e.root=r.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!n.nomount;n.nonegate=true;n.nocomment=true;e.minimatch=new o(t,n);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var n=t?[]:Object.create(null);for(var r=0,i=e.matches.length;r<i;r++){var s=e.matches[r];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[r];if(t)n.push(o);else n[o]=true}}else{var a=Object.keys(s);if(t)n.push.apply(n,a);else a.forEach(function(e){n[e]=true})}}if(!t)n=Object.keys(n);if(!e.nosort)n=n.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var r=0;r<n.length;r++){n[r]=e._mark(n[r])}if(e.nodir){n=n.filter(function(t){var n=!/\/$/.test(t);var r=e.cache[t]||e.cache[makeAbs(e,t)];if(n&&r)n=r!=="DIR"&&!Array.isArray(r);return n})}}if(e.ignore.length)n=n.filter(function(t){return!isIgnored(e,t)});e.found=n}function mark(e,t){var n=makeAbs(e,t);var r=e.cache[n];var i=t;if(r){var s=r==="DIR"||Array.isArray(r);var o=t.slice(-1)==="/";if(s&&!o)i+="/";else if(!s&&o)i=i.slice(0,-1);if(i!==t){var a=makeAbs(e,i);e.statCache[a]=e.statCache[n];e.cache[a]=e.cache[n]}}return i}function makeAbs(e,t){var n=t;if(t.charAt(0)==="/"){n=r.join(e.root,t)}else if(s(t)||t===""){n=t}else if(e.changedCwd){n=r.resolve(e.cwd,t)}else{n=r.resolve(t)}if(process.platform==="win32")n=n.replace(/\\/g,"/");return n}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},18750:(e,t,n)=>{e.exports=glob;var r=n(35747);var i=n(29909);var s=n(642);var o=s.Minimatch;var a=n(28309);var c=n(28614).EventEmitter;var u=n(85622);var l=n(42357);var f=n(52963);var p=n(38381);var d=n(70601);var h=d.alphasort;var m=d.alphasorti;var g=d.setopts;var y=d.ownProp;var v=n(78753);var _=n(31669);var b=d.childrenIgnored;var E=d.isIgnored;var w=n(56481);function glob(e,t,n){if(typeof t==="function")n=t,t={};if(!t)t={};if(t.sync){if(n)throw new TypeError("callback provided to sync glob");return p(e,t)}return new Glob(e,t,n)}glob.sync=p;var S=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var n=Object.keys(t);var r=n.length;while(r--){e[n[r]]=t[n[r]]}return e}glob.hasMagic=function(e,t){var n=extend({},t);n.noprocess=true;var r=new Glob(e,n);var i=r.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var s=0;s<i[0].length;s++){if(typeof i[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,c);function Glob(e,t,n){if(typeof t==="function"){n=t;t=null}if(t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new S(e,t)}if(!(this instanceof Glob))return new Glob(e,t,n);g(this,e,t);this._didRealPath=false;var r=this.minimatch.set.length;this.matches=new Array(r);if(typeof n==="function"){n=w(n);this.on("error",n);this.on("end",function(e){n(null,e)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(r===0)return done();var s=true;for(var o=0;o<r;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--i._processing;if(i._processing<=0){if(s){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var n=0;n<this.matches.length;n++)this._realpathSet(n,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var r=Object.keys(n);var s=this;var o=r.length;if(o===0)return t();var a=this.matches[e]=Object.create(null);r.forEach(function(n,r){n=s._makeAbs(n);i.realpath(n,s.realpathCache,function(r,i){if(!r)a[i]=true;else if(r.syscall==="stat")a[n]=true;else s.emit("error",r);if(--o===0){s.matches[e]=a;t()}})})};Glob.prototype._mark=function(e){return d.mark(this,e)};Glob.prototype._makeAbs=function(e){return d.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<r.length;t++){var i=r[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,n,r){l(this instanceof Glob);l(typeof r==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,n,r]);return}var i=0;while(typeof e[i]==="string"){i++}var o;switch(i){case e.length:this._processSimple(e.join("/"),t,r);return;case 0:o=null;break;default:o=e.slice(0,i).join("/");break}var a=e.slice(i);var c;if(o===null)c=".";else if(f(o)||f(e.join("/"))){if(!o||!f(o))o="/"+o;c=o}else c=o;var u=this._makeAbs(c);if(b(this,c))return r();var p=a[0]===s.GLOBSTAR;if(p)this._processGlobStar(o,c,u,a,t,n,r);else this._processReaddir(o,c,u,a,t,n,r)};Glob.prototype._processReaddir=function(e,t,n,r,i,s,o){var a=this;this._readdir(n,s,function(c,u){return a._processReaddir2(e,t,n,r,i,s,u,o)})};Glob.prototype._processReaddir2=function(e,t,n,r,i,s,o,a){if(!o)return a();var c=r[0];var l=!!this.minimatch.negate;var f=c._glob;var p=this.dot||f.charAt(0)===".";var d=[];for(var h=0;h<o.length;h++){var m=o[h];if(m.charAt(0)!=="."||p){var g;if(l&&!e){g=!m.match(c)}else{g=m.match(c)}if(g)d.push(m)}}var y=d.length;if(y===0)return a();if(r.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var h=0;h<y;h++){var m=d[h];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=u.join(this.root,m)}this._emitMatch(i,m)}return a()}r.shift();for(var h=0;h<y;h++){var m=d[h];var v;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(r),i,s,a)}a()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(E(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var n=f(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=n;if(this.matches[e][t])return;if(this.nodir){var r=this.cache[n];if(r==="DIR"||Array.isArray(r))return}this.matches[e][t]=true;var i=this.statCache[n];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var n="lstat\0"+e;var i=this;var s=v(n,lstatcb_);if(s)r.lstat(e,s);function lstatcb_(n,r){if(n&&n.code==="ENOENT")return t();var s=r&&r.isSymbolicLink();i.symlinks[e]=s;if(!s&&r&&!r.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,n){if(this.aborted)return;n=v("readdir\0"+e+"\0"+t,n);if(!n)return;if(t&&!y(this.symlinks,e))return this._readdirInGlobStar(e,n);if(y(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return n();if(Array.isArray(i))return n(null,i)}var s=this;r.readdir(e,readdirCb(this,e,n))};function readdirCb(e,t,n){return function(r,i){if(r)e._readdirError(t,r,n);else e._readdirEntries(t,i,n)}}Glob.prototype._readdirEntries=function(e,t,n){if(this.aborted)return;if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return n(null,t)};Glob.prototype._readdirError=function(e,t,n){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return n()};Glob.prototype._processGlobStar=function(e,t,n,r,i,s,o){var a=this;this._readdir(n,s,function(c,u){a._processGlobStar2(e,t,n,r,i,s,u,o)})};Glob.prototype._processGlobStar2=function(e,t,n,r,i,s,o,a){if(!o)return a();var c=r.slice(1);var u=e?[e]:[];var l=u.concat(c);this._process(l,i,false,a);var f=this.symlinks[n];var p=o.length;if(f&&s)return a();for(var d=0;d<p;d++){var h=o[d];if(h.charAt(0)==="."&&!this.dot)continue;var m=u.concat(o[d],c);this._process(m,i,true,a);var g=u.concat(o[d],r);this._process(g,i,true,a)}a()};Glob.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,function(i,s){r._processSimple2(e,t,i,s,n)})};Glob.prototype._processSimple2=function(e,t,n,r,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return i();if(e&&f(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var n=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&y(this.cache,n)){var s=this.cache[n];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return t(null,s);if(i&&s==="FILE")return t()}var o;var a=this.statCache[n];if(a!==undefined){if(a===false)return t(null,a);else{var c=a.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return t();else return t(null,c,a)}}var u=this;var l=v("stat\0"+n,lstatcb_);if(l)r.lstat(n,l);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return r.stat(n,function(r,i){if(r)u._stat2(e,n,null,s,t);else u._stat2(e,n,r,i,t)})}else{u._stat2(e,n,i,s,t)}}};Glob.prototype._stat2=function(e,t,n,r,i){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR")){this.statCache[t]=false;return i()}var s=e.slice(-1)==="/";this.statCache[t]=r;if(t.slice(-1)==="/"&&r&&!r.isDirectory())return i(null,false,r);var o=true;if(r)o=r.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return i();return i(null,o,r)}},38381:(e,t,n)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var r=n(35747);var i=n(29909);var s=n(642);var o=s.Minimatch;var a=n(18750).Glob;var c=n(31669);var u=n(85622);var l=n(42357);var f=n(52963);var p=n(70601);var d=p.alphasort;var h=p.alphasorti;var m=p.setopts;var g=p.ownProp;var y=p.childrenIgnored;var v=p.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++){this._process(this.minimatch.set[r],r,false)}this._finish()}GlobSync.prototype._finish=function(){l(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,n){var r=e.matches[n]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=i.realpathSync(s,e.realpathCache);r[o]=true}catch(t){if(t.syscall==="stat")r[e._makeAbs(s)]=true;else throw t}}})}p.finish(this)};GlobSync.prototype._process=function(e,t,n){l(this instanceof GlobSync);var r=0;while(typeof e[r]==="string"){r++}var i;switch(r){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,r).join("/");break}var o=e.slice(r);var a;if(i===null)a=".";else if(f(i)||f(e.join("/"))){if(!i||!f(i))i="/"+i;a=i}else a=i;var c=this._makeAbs(a);if(y(this,a))return;var u=o[0]===s.GLOBSTAR;if(u)this._processGlobStar(i,a,c,o,t,n);else this._processReaddir(i,a,c,o,t,n)};GlobSync.prototype._processReaddir=function(e,t,n,r,i,s){var o=this._readdir(n,s);if(!o)return;var a=r[0];var c=!!this.minimatch.negate;var l=a._glob;var f=this.dot||l.charAt(0)===".";var p=[];for(var d=0;d<o.length;d++){var h=o[d];if(h.charAt(0)!=="."||f){var m;if(c&&!e){m=!h.match(a)}else{m=h.match(a)}if(m)p.push(h)}}var g=p.length;if(g===0)return;if(r.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<g;d++){var h=p[d];if(e){if(e.slice(-1)!=="/")h=e+"/"+h;else h=e+h}if(h.charAt(0)==="/"&&!this.nomount){h=u.join(this.root,h)}this._emitMatch(i,h)}return}r.shift();for(var d=0;d<g;d++){var h=p[d];var y;if(e)y=[e,h];else y=[h];this._process(y.concat(r),i,s)}};GlobSync.prototype._emitMatch=function(e,t){if(v(this,t))return;var n=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=n}if(this.matches[e][t])return;if(this.nodir){var r=this.cache[n];if(r==="DIR"||Array.isArray(r))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var n;var i;try{n=r.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var s=n&&n.isSymbolicLink();this.symlinks[e]=s;if(!s&&n&&!n.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var n;if(t&&!g(this.symlinks,e))return this._readdirInGlobStar(e);if(g(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,r.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var r=t[n];if(e==="/")r=e+r;else r=e+"/"+r;this.cache[r]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var r=new Error(t.code+" invalid cwd "+this.cwd);r.path=this.cwd;r.code=t.code;throw r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,n,r,i,s){var o=this._readdir(n,s);if(!o)return;var a=r.slice(1);var c=e?[e]:[];var u=c.concat(a);this._process(u,i,false);var l=o.length;var f=this.symlinks[n];if(f&&s)return;for(var p=0;p<l;p++){var d=o[p];if(d.charAt(0)==="."&&!this.dot)continue;var h=c.concat(o[p],a);this._process(h,i,true);var m=c.concat(o[p],r);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,t){var n=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return;if(e&&f(e)&&!this.nomount){var r=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(r)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&g(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return i;if(n&&i==="FILE")return false}var s;var o=this.statCache[t];if(!o){var a;try{a=r.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{o=r.statSync(t)}catch(e){o=a}}else{o=a}}this.statCache[t]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(n&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},40858:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}},15808:(e,t,n)=>{var r=n(35747);var i=n(82444);var s=n(94073);var o=n(40858);var a=n(31669);var c;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!r[c]){var f=global[c]||[];publishQueue(r,f);r.close=function(e){function close(t,n){return e.call(r,t,function(e){if(!e){retry()}if(typeof n==="function")n.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(r[c]);n(42357).equal(r[c].length,0)})}}if(!global[c]){publishQueue(global,r[c])}e.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,n,r){if(typeof n==="function")r=n,n=null;return go$readFile(e,n,r);function go$readFile(e,n,r){return t(e,n,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$writeFile(e,t,r,i);function go$writeFile(e,t,r,i){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$appendFile(e,t,n,i);function go$appendFile(e,t,n,i){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,n){var r=[e];if(typeof t!=="function"){r.push(t)}else{n=t}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=s(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var f=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}})}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var p=e.open;e.open=open;function open(e,t,n,r){if(typeof n==="function")r=n,n=null;return go$open(e,t,n,r);function go$open(e,t,n,r){return p(e,t,n,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);r[c].push(e)}function retry(){var e=r[c].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},94073:(e,t,n)=>{var r=n(92413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);r.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;o<a;o++){var c=s[o];this[c]=n[c]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var i=Object.keys(n);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=n[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},82444:(e,t,n)=>{var r=n(27619);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};e.exports=patch;function patch(e){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,n,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(n,r,i){var s=Date.now();var o=0;t(n,r,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){e.stat(r,function(e,s){if(e&&e.code==="ENOENT")t(n,r,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}}(e.rename)}e.read=function(t){function read(n,r,i,s,o,a){var c;if(a&&typeof a==="function"){var u=0;c=function(l,f,p){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,n,r,i,s,o,c)}a.apply(this,arguments)}}return t.call(e,n,r,i,s,o,c)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(n,r,i,s,o){var a=0;while(true){try{return t.call(e,n,r,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){if(i)i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n);var s=true;var o;try{o=e.fchmodSync(i,n);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,n,i,s){e.open(t,r.O_SYMLINK,function(t,r){if(t){if(s)s(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,n,i){var s=e.openSync(t,r.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,n,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,n,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,r,i){return t.call(e,n,r,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(n,r){try{return t.call(e,n,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,r,i,s){return t.call(e,n,r,i,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,r,i){if(typeof r==="function"){i=r;r=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return r?t.call(e,n,r,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,r){var i=r?t.call(e,n,r):t.call(e,n);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},86811:e=>{"use strict";e.exports=((e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1||r<i)})},32763:e=>{(function(){var t;function MurmurHash3(e,n){var r=this instanceof MurmurHash3?this:t;r.reset(n);if(typeof e==="string"&&e.length>0){r.hash(e)}if(r!==this){return r}}MurmurHash3.prototype.hash=function(e){var t,n,r,i,s;s=e.length;this.len+=s;n=this.k1;r=0;switch(this.rem){case 0:n^=s>r?e.charCodeAt(r++)&65535:0;case 1:n^=s>r?(e.charCodeAt(r++)&65535)<<8:0;case 2:n^=s>r?(e.charCodeAt(r++)&65535)<<16:0;case 3:n^=s>r?(e.charCodeAt(r)&255)<<24:0;n^=s>r?(e.charCodeAt(r++)&65280)>>8:0}this.rem=s+this.rem&3;s-=this.rem;if(s>0){t=this.h1;while(1){n=n*11601+(n&65535)*3432906752&4294967295;n=n<<15|n>>>17;n=n*13715+(n&65535)*461832192&4294967295;t^=n;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(r>=s){break}n=e.charCodeAt(r++)&65535^(e.charCodeAt(r++)&65535)<<8^(e.charCodeAt(r++)&65535)<<16;i=e.charCodeAt(r++);n^=(i&255)<<24^(i&65280)>>8}n=0;switch(this.rem){case 3:n^=(e.charCodeAt(r+2)&65535)<<16;case 2:n^=(e.charCodeAt(r+1)&65535)<<8;case 1:n^=e.charCodeAt(r)&65535}this.h1=t}this.k1=n;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},31417:e=>{"use strict";e.exports=((e,t=1,n)=>{n={indent:" ",includeEmptyLines:false,...n};if(typeof e!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``)}if(typeof t!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``)}if(typeof n.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``)}if(t===0){return e}const r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))})},47411:(e,t,n)=>{const r=new Map;const i=n(35747);const{dirname:s,resolve:o}=n(85622);const a=e=>new Promise((t,n)=>i.lstat(e,(e,r)=>e?n(e):t(r)));const c=e=>{e=o(e);if(r.has(e))return Promise.resolve(r.get(e));const t=t=>{const{uid:n,gid:i}=t;r.set(e,{uid:n,gid:i});return{uid:n,gid:i}};const n=s(e);const i=n===e?null:t=>{return c(n).then(t=>{r.set(e,t);return t})};return a(e).then(t,i)};const u=e=>{e=o(e);if(r.has(e))return r.get(e);const t=s(e);let n=true;try{const s=i.lstatSync(e);n=false;const{uid:o,gid:a}=s;r.set(e,{uid:o,gid:a});return{uid:o,gid:a}}finally{if(n&&t!==e){const n=u(t);r.set(e,n);return n}}};const l=new Map;e.exports=(e=>{e=o(e);if(l.has(e))return Promise.resolve(l.get(e));const t=c(e).then(t=>{l.delete(e);return t});l.set(e,t);return t});e.exports.sync=u;e.exports.clearCache=(()=>{r.clear();l.clear()})},78753:(e,t,n)=>{var r=n(83687);var i=Object.create(null);var s=n(56481);e.exports=r(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return s(function RES(){var t=i[e];var n=t.length;var r=slice(arguments);try{for(var s=0;s<n;s++){t[s].apply(null,r)}}finally{if(t.length>n){t.splice(0,n);process.nextTick(function(){RES.apply(null,r)})}else{delete i[e]}}})}function slice(e){var t=e.length;var n=[];for(var r=0;r<t;r++)n[r]=e[r];return n}},28309:(e,t,n)=>{try{var r=n(31669);if(typeof r.inherits!=="function")throw"";e.exports=r.inherits}catch(t){e.exports=n(70474)}},70474:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype;e.prototype=new n;e.prototype.constructor=e}}}},27523:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},15986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=n(42195);function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}class Farm{constructor(e,t,n){_defineProperty(this,"_computeWorkerKey",void 0);_defineProperty(this,"_cacheKeys",void 0);_defineProperty(this,"_callback",void 0);_defineProperty(this,"_last",void 0);_defineProperty(this,"_locks",void 0);_defineProperty(this,"_numOfWorkers",void 0);_defineProperty(this,"_offset",void 0);_defineProperty(this,"_queue",void 0);this._cacheKeys=Object.create(null);this._callback=t;this._last=[];this._locks=[];this._numOfWorkers=e;this._offset=0;this._queue=[];if(n){this._computeWorkerKey=n}}doWork(e,...t){const n=new Set;const i=e=>{n.add(e);return()=>{n.delete(e)}};const s=e=>{n.forEach(t=>t(e))};const o=new Promise((i,o)=>{const a=this._computeWorkerKey;const c=[r.CHILD_MESSAGE_CALL,false,e,t];let u=null;let l=null;if(a){l=a.call(this,e,...t);u=l==null?null:this._cacheKeys[l]}const f=e=>{if(l!=null){this._cacheKeys[l]=e}};const p=(e,t)=>{n.clear();if(e){o(e)}else{i(t)}};const d={onCustomMessage:s,onEnd:p,onStart:f,request:c};if(u){this._enqueue(d,u.getWorkerId())}else{this._push(d)}});o.UNSTABLE_onCustomMessage=i;return o}_getNextTask(e){let t=this._queue[e];while(t&&t.task.request[1]){t=t.next||null}this._queue[e]=t;return t&&t.task}_process(e){if(this._isLocked(e)){return this}const t=this._getNextTask(e);if(!t){return this}const n=(n,r)=>{t.onEnd(n,r);this._unlock(e);this._process(e)};t.request[1]=true;this._lock(e);this._callback(e,t.request,t.onStart,n,t.onCustomMessage);return this}_enqueue(e,t){const n={next:null,task:e};if(e.request[1]){return this}if(this._queue[t]){this._last[t].next=n}else{this._queue[t]=n}this._last[t]=n;this._process(t);return this}_push(e){for(let t=0;t<this._numOfWorkers;t++){this._enqueue(e,(this._offset+t)%this._numOfWorkers)}this._offset++;return this}_lock(e){this._locks[e]=true}_unlock(e){this._locks[e]=false}_isLocked(e){return this._locks[e]}}t.default=Farm},61315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(n(68189));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=()=>{try{n(65013);return true}catch{return false}};class WorkerPool extends r.default{send(e,t,n,r,i){this.getWorkerById(e).send(t,n,r,i)}createWorker(e){let t;if(this._options.enableWorkerThreads&&i()){t=n(12295).Z}else{t=n(17164).Z}return new t(e)}}var s=WorkerPool;t.default=s},68189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;function path(){const e=_interopRequireWildcard(n(85622));path=function(){return e};return e}function _mergeStream(){const e=_interopRequireDefault(n(33089));_mergeStream=function(){return e};return e}function _types(){const e=n(42195);_types=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var n={};var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(n,i,s)}else{n[i]=e[i]}}}n.default=e;if(t){t.set(e,n)}return n}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}const r=500;const i=()=>{};class BaseWorkerPool{constructor(e,t){_defineProperty(this,"_stderr",void 0);_defineProperty(this,"_stdout",void 0);_defineProperty(this,"_options",void 0);_defineProperty(this,"_workers",void 0);this._options=t;this._workers=new Array(t.numWorkers);if(!path().isAbsolute(e)){e=require.resolve(e)}const n=(0,_mergeStream().default)();const r=(0,_mergeStream().default)();const{forkOptions:i,maxRetries:s,resourceLimits:o,setupArgs:a}=t;for(let c=0;c<t.numWorkers;c++){const t={forkOptions:i,maxRetries:s,resourceLimits:o,setupArgs:a,workerId:c,workerPath:e};const u=this.createWorker(t);const l=u.getStdout();const f=u.getStderr();if(l){n.add(l)}if(f){r.add(f)}this._workers[c]=u}this._stdout=n;this._stderr=r}getStderr(){return this._stderr}getStdout(){return this._stdout}getWorkers(){return this._workers}getWorkerById(e){return this._workers[e]}createWorker(e){throw Error("Missing method createWorker in WorkerPool")}async end(){const e=this._workers.map(async e=>{e.send([_types().CHILD_MESSAGE_END,false],i,i,i);let t=false;const n=setTimeout(()=>{e.forceExit();t=true},r);await e.waitForExit();clearTimeout(n);return t});const t=await Promise.all(e);return t.reduce((e,t)=>({forceExited:e.forceExited||t}),{forceExited:false})}}t.default=BaseWorkerPool},69419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"messageParent",{enumerable:true,get:function(){return s.default}});t.default=void 0;function _os(){const e=n(12087);_os=function(){return e};return e}var r=_interopRequireDefault(n(61315));var i=_interopRequireDefault(n(15986));var s=_interopRequireDefault(n(27008));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function getExposedMethods(e,t){let n=t.exposedMethods;if(!n){const t=require(e);n=Object.keys(t).filter(e=>typeof t[e]==="function");if(typeof t==="function"){n=[...n,"default"]}}return n}class JestWorker{constructor(e,t){var n,s,o,a,c,u;_defineProperty(this,"_ending",void 0);_defineProperty(this,"_farm",void 0);_defineProperty(this,"_options",void 0);_defineProperty(this,"_workerPool",void 0);this._options={...t};this._ending=false;const l={enableWorkerThreads:(n=this._options.enableWorkerThreads)!==null&&n!==void 0?n:false,forkOptions:(s=this._options.forkOptions)!==null&&s!==void 0?s:{},maxRetries:(o=this._options.maxRetries)!==null&&o!==void 0?o:3,numWorkers:(a=this._options.numWorkers)!==null&&a!==void 0?a:Math.max((0,_os().cpus)().length-1,1),resourceLimits:(c=this._options.resourceLimits)!==null&&c!==void 0?c:{},setupArgs:(u=this._options.setupArgs)!==null&&u!==void 0?u:[]};if(this._options.WorkerPool){this._workerPool=new this._options.WorkerPool(e,l)}else{this._workerPool=new r.default(e,l)}this._farm=new i.default(l.numWorkers,this._workerPool.send.bind(this._workerPool),this._options.computeWorkerKey);this._bindExposedWorkerMethods(e,this._options)}_bindExposedWorkerMethods(e,t){getExposedMethods(e,t).forEach(e=>{if(e.startsWith("_")){return}if(this.constructor.prototype.hasOwnProperty(e)){throw new TypeError("Cannot define a method called "+e)}this[e]=this._callFunctionWithArgs.bind(this,e)})}_callFunctionWithArgs(e,...t){if(this._ending){throw new Error("Farm is ended, no more calls can be done to it")}return this._farm.doWork(e,...t)}getStderr(){return this._workerPool.getStderr()}getStdout(){return this._workerPool.getStdout()}async end(){if(this._ending){throw new Error("Farm is ended, no more calls can be done to it")}this._ending=true;return this._workerPool.end()}}t.default=JestWorker},42195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PARENT_MESSAGE_CUSTOM=t.PARENT_MESSAGE_SETUP_ERROR=t.PARENT_MESSAGE_CLIENT_ERROR=t.PARENT_MESSAGE_OK=t.CHILD_MESSAGE_END=t.CHILD_MESSAGE_CALL=t.CHILD_MESSAGE_INITIALIZE=void 0;const n=0;t.CHILD_MESSAGE_INITIALIZE=n;const r=1;t.CHILD_MESSAGE_CALL=r;const i=2;t.CHILD_MESSAGE_END=i;const s=0;t.PARENT_MESSAGE_OK=s;const o=1;t.PARENT_MESSAGE_CLIENT_ERROR=o;const a=2;t.PARENT_MESSAGE_SETUP_ERROR=a;const c=3;t.PARENT_MESSAGE_CUSTOM=c},17164:(e,t,n)=>{"use strict";var r;r={value:true};t.Z=void 0;function _child_process(){const e=n(63129);_child_process=function(){return e};return e}function _stream(){const e=n(92413);_stream=function(){return e};return e}function _mergeStream(){const e=_interopRequireDefault(n(33089));_mergeStream=function(){return e};return e}function _supportsColor(){const e=n(96204);_supportsColor=function(){return e};return e}function _types(){const e=n(42195);_types=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}const i=128;const s=i+9;const o=i+15;const a=500;class ChildProcessWorker{constructor(e){_defineProperty(this,"_child",void 0);_defineProperty(this,"_options",void 0);_defineProperty(this,"_request",void 0);_defineProperty(this,"_retries",void 0);_defineProperty(this,"_onProcessEnd",void 0);_defineProperty(this,"_onCustomMessage",void 0);_defineProperty(this,"_fakeStream",void 0);_defineProperty(this,"_stdout",void 0);_defineProperty(this,"_stderr",void 0);_defineProperty(this,"_exitPromise",void 0);_defineProperty(this,"_resolveExitPromise",void 0);this._options=e;this._request=null;this._fakeStream=null;this._stdout=null;this._stderr=null;this._exitPromise=new Promise(e=>{this._resolveExitPromise=e});this.initialize()}initialize(){const e=_supportsColor().stdout?{FORCE_COLOR:"1"}:{};const t=(0,_child_process().fork)(n.ab+"processChild.js",[],{cwd:process.cwd(),env:{...process.env,JEST_WORKER_ID:String(this._options.workerId+1),...e},execArgv:process.execArgv.filter(e=>!/^--(debug|inspect)/.test(e)),silent:true,...this._options.forkOptions});if(t.stdout){if(!this._stdout){this._stdout=(0,_mergeStream().default)(this._getFakeStream())}this._stdout.add(t.stdout)}if(t.stderr){if(!this._stderr){this._stderr=(0,_mergeStream().default)(this._getFakeStream())}this._stderr.add(t.stderr)}t.on("message",this._onMessage.bind(this));t.on("exit",this._onExit.bind(this));t.send([_types().CHILD_MESSAGE_INITIALIZE,false,this._options.workerPath,this._options.setupArgs]);this._child=t;this._retries++;if(this._retries>this._options.maxRetries){const e=new Error("Call retries were exceeded");this._onMessage([_types().PARENT_MESSAGE_CLIENT_ERROR,e.name,e.message,e.stack,{type:"WorkerError"}])}}_shutdown(){if(this._fakeStream){this._fakeStream.end();this._fakeStream=null}this._resolveExitPromise()}_onMessage(e){let t;switch(e[0]){case _types().PARENT_MESSAGE_OK:this._onProcessEnd(null,e[1]);break;case _types().PARENT_MESSAGE_CLIENT_ERROR:t=e[4];if(t!=null&&typeof t==="object"){const n=t;const r=global[e[1]];const i=typeof r==="function"?r:Error;t=new i(e[2]);t.type=e[1];t.stack=e[3];for(const e in n){t[e]=n[e]}}this._onProcessEnd(t,null);break;case _types().PARENT_MESSAGE_SETUP_ERROR:t=new Error("Error when calling setup: "+e[2]);t.type=e[1];t.stack=e[3];this._onProcessEnd(t,null);break;case _types().PARENT_MESSAGE_CUSTOM:this._onCustomMessage(e[1]);break;default:throw new TypeError("Unexpected response from worker: "+e[0])}}_onExit(e){if(e!==0&&e!==o&&e!==s){this.initialize();if(this._request){this._child.send(this._request)}}else{this._shutdown()}}send(e,t,n,r){t(this);this._onProcessEnd=((...e)=>{this._request=null;return n(...e)});this._onCustomMessage=((...e)=>r(...e));this._request=e;this._retries=0;this._child.send(e)}waitForExit(){return this._exitPromise}forceExit(){this._child.kill("SIGTERM");const e=setTimeout(()=>this._child.kill("SIGKILL"),a);this._exitPromise.then(()=>clearTimeout(e))}getWorkerId(){return this._options.workerId}getStdout(){return this._stdout}getStderr(){return this._stderr}_getFakeStream(){if(!this._fakeStream){this._fakeStream=new(_stream().PassThrough)}return this._fakeStream}}t.Z=ChildProcessWorker},12295:(e,t,n)=>{"use strict";var r;r={value:true};t.Z=void 0;function path(){const e=_interopRequireWildcard(n(85622));path=function(){return e};return e}function _stream(){const e=n(92413);_stream=function(){return e};return e}function _worker_threads(){const e=n(65013);_worker_threads=function(){return e};return e}function _mergeStream(){const e=_interopRequireDefault(n(33089));_mergeStream=function(){return e};return e}function _types(){const e=n(42195);_types=function(){return e};return e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var n={};var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(n,i,s)}else{n[i]=e[i]}}}n.default=e;if(t){t.set(e,n)}return n}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}class ExperimentalWorker{constructor(e){_defineProperty(this,"_worker",void 0);_defineProperty(this,"_options",void 0);_defineProperty(this,"_request",void 0);_defineProperty(this,"_retries",void 0);_defineProperty(this,"_onProcessEnd",void 0);_defineProperty(this,"_onCustomMessage",void 0);_defineProperty(this,"_fakeStream",void 0);_defineProperty(this,"_stdout",void 0);_defineProperty(this,"_stderr",void 0);_defineProperty(this,"_exitPromise",void 0);_defineProperty(this,"_resolveExitPromise",void 0);_defineProperty(this,"_forceExited",void 0);this._options=e;this._request=null;this._fakeStream=null;this._stdout=null;this._stderr=null;this._exitPromise=new Promise(e=>{this._resolveExitPromise=e});this._forceExited=false;this.initialize()}initialize(){this._worker=new(_worker_threads().Worker)(path().resolve(__dirname,"./threadChild.js"),{eval:false,resourceLimits:this._options.resourceLimits,stderr:true,stdout:true,workerData:{cwd:process.cwd(),env:{...process.env,JEST_WORKER_ID:String(this._options.workerId+1)},execArgv:process.execArgv.filter(e=>!/^--(debug|inspect)/.test(e)),silent:true,...this._options.forkOptions}});if(this._worker.stdout){if(!this._stdout){this._stdout=(0,_mergeStream().default)(this._getFakeStream())}this._stdout.add(this._worker.stdout)}if(this._worker.stderr){if(!this._stderr){this._stderr=(0,_mergeStream().default)(this._getFakeStream())}this._stderr.add(this._worker.stderr)}this._worker.on("message",this._onMessage.bind(this));this._worker.on("exit",this._onExit.bind(this));this._worker.postMessage([_types().CHILD_MESSAGE_INITIALIZE,false,this._options.workerPath,this._options.setupArgs]);this._retries++;if(this._retries>this._options.maxRetries){const e=new Error("Call retries were exceeded");this._onMessage([_types().PARENT_MESSAGE_CLIENT_ERROR,e.name,e.message,e.stack,{type:"WorkerError"}])}}_shutdown(){if(this._fakeStream){this._fakeStream.end();this._fakeStream=null}this._resolveExitPromise()}_onMessage(e){let t;switch(e[0]){case _types().PARENT_MESSAGE_OK:this._onProcessEnd(null,e[1]);break;case _types().PARENT_MESSAGE_CLIENT_ERROR:t=e[4];if(t!=null&&typeof t==="object"){const n=t;const r=global[e[1]];const i=typeof r==="function"?r:Error;t=new i(e[2]);t.type=e[1];t.stack=e[3];for(const e in n){t[e]=n[e]}}this._onProcessEnd(t,null);break;case _types().PARENT_MESSAGE_SETUP_ERROR:t=new Error("Error when calling setup: "+e[2]);t.type=e[1];t.stack=e[3];this._onProcessEnd(t,null);break;case _types().PARENT_MESSAGE_CUSTOM:this._onCustomMessage(e[1]);break;default:throw new TypeError("Unexpected response from worker: "+e[0])}}_onExit(e){if(e!==0&&!this._forceExited){this.initialize();if(this._request){this._worker.postMessage(this._request)}}else{this._shutdown()}}waitForExit(){return this._exitPromise}forceExit(){this._forceExited=true;this._worker.terminate()}send(e,t,n,r){t(this);this._onProcessEnd=((...e)=>{this._request=null;return n(...e)});this._onCustomMessage=((...e)=>r(...e));this._request=e;this._retries=0;this._worker.postMessage(e)}getWorkerId(){return this._options.workerId}getStdout(){return this._stdout}getStderr(){return this._stderr}_getFakeStream(){if(!this._fakeStream){this._fakeStream=new(_stream().PassThrough)}return this._fakeStream}}t.Z=ExperimentalWorker},27008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;function _types(){const e=n(42195);_types=function(){return e};return e}const r=()=>{try{const{isMainThread:e,parentPort:t}=n(65013);return!e&&t}catch{return false}};const i=(e,t=process)=>{try{if(r()){const{parentPort:t}=n(65013);t.postMessage([_types().PARENT_MESSAGE_CUSTOM,e])}else if(typeof t.send==="function"){t.send([_types().PARENT_MESSAGE_CUSTOM,e])}}catch{throw new Error('"messageParent" can only be used inside a worker')}};var s=i;t.default=s},78688:e=>{"use strict";e.exports=parseJson;function parseJson(e,t,n){n=n||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const n="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(n)}const r=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const i=r?+r[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(i!=null){const r=i<=n?0:i-n;const s=i+n>=e.length?e.length:i+n;t.message+=` while parsing near '${r===0?"":"..."}${e.slice(r,s)}${s===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,n*2)}'`}throw t}}},46833:e=>{"use strict";var t=e.exports=function(e,t,n){if(typeof t=="function"){n=t;t={}}n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){};var i=n.post||function(){};_traverse(t,r,i,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,n,r,i,s,o,a,c,u,l){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,s,o,a,c,u,l);for(var f in i){var p=i[f];if(Array.isArray(p)){if(f in t.arrayKeywords){for(var d=0;d<p.length;d++)_traverse(e,n,r,p[d],s+"/"+f+"/"+d,o,s,f,i,d)}}else if(f in t.propsKeywords){if(p&&typeof p=="object"){for(var h in p)_traverse(e,n,r,p[h],s+"/"+f+"/"+escapeJsonPtr(h),o,s,f,i,h)}}else if(f in t.keywords||e.allKeys&&!(f in t.skipKeywords)){_traverse(e,n,r,p,s+"/"+f,o,s,f,i)}}r(i,s,o,a,c,u,l)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},5278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(14465);var i=_interopRequireDefault(r);var s=n(59977);var o=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default={parse:i.default,stringify:o.default};e.exports=t["default"]},14465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=parse;var i=n(58034);var s=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}var o=void 0;var a=void 0;var c=void 0;var u=void 0;var l=void 0;var f=void 0;var p=void 0;var d=void 0;var h=void 0;function parse(e,t){o=String(e);a="start";c=[];u=0;l=1;f=0;p=undefined;d=undefined;h=undefined;do{p=lex();E[a]()}while(p.type!=="eof");if(typeof t==="function"){return internalize({"":h},"",t)}return h}function internalize(e,t,n){var i=e[t];if(i!=null&&(typeof i==="undefined"?"undefined":r(i))==="object"){for(var s in i){var o=internalize(i,s,n);if(o===undefined){delete i[s]}else{i[s]=o}}}return n.call(e,t,i)}var m=void 0;var g=void 0;var y=void 0;var v=void 0;var _=void 0;function lex(){m="default";g="";y=false;v=1;for(;;){_=peek();var e=b[m]();if(e){return e}}}function peek(){if(o[u]){return String.fromCodePoint(o.codePointAt(u))}}function read(){var e=peek();if(e==="\n"){l++;f=0}else if(e){f+=e.length}else{f++}if(e){u+=e.length}return e}var b={default:function _default(){switch(_){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();m="comment";return;case undefined:read();return newToken("eof")}if(s.isSpaceSeparator(_)){read();return}return b[a]()},comment:function comment(){switch(_){case"*":read();m="multiLineComment";return;case"/":read();m="singleLineComment";return}throw invalidChar(read())},multiLineComment:function multiLineComment(){switch(_){case"*":read();m="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk:function multiLineCommentAsterisk(){switch(_){case"*":read();return;case"/":read();m="default";return;case undefined:throw invalidChar(read())}read();m="multiLineComment"},singleLineComment:function singleLineComment(){switch(_){case"\n":case"\r":case"\u2028":case"\u2029":read();m="default";return;case undefined:read();return newToken("eof")}read()},value:function value(){switch(_){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){v=-1}m="sign";return;case".":g=read();m="decimalPointLeading";return;case"0":g=read();m="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":g=read();m="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":y=read()==='"';g="";m="string";return}throw invalidChar(read())},identifierNameStartEscape:function identifierNameStartEscape(){if(_!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!s.isIdStartChar(e)){throw invalidIdentifier()}break}g+=e;m="identifierName"},identifierName:function identifierName(){switch(_){case"$":case"_":case"":case"":g+=read();return;case"\\":read();m="identifierNameEscape";return}if(s.isIdContinueChar(_)){g+=read();return}return newToken("identifier",g)},identifierNameEscape:function identifierNameEscape(){if(_!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":case"":case"":break;default:if(!s.isIdContinueChar(e)){throw invalidIdentifier()}break}g+=e;m="identifierName"},sign:function sign(){switch(_){case".":g=read();m="decimalPointLeading";return;case"0":g=read();m="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":g=read();m="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",v*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero:function zero(){switch(_){case".":g+=read();m="decimalPoint";return;case"e":case"E":g+=read();m="decimalExponent";return;case"x":case"X":g+=read();m="hexadecimal";return}return newToken("numeric",v*0)},decimalInteger:function decimalInteger(){switch(_){case".":g+=read();m="decimalPoint";return;case"e":case"E":g+=read();m="decimalExponent";return}if(s.isDigit(_)){g+=read();return}return newToken("numeric",v*Number(g))},decimalPointLeading:function decimalPointLeading(){if(s.isDigit(_)){g+=read();m="decimalFraction";return}throw invalidChar(read())},decimalPoint:function decimalPoint(){switch(_){case"e":case"E":g+=read();m="decimalExponent";return}if(s.isDigit(_)){g+=read();m="decimalFraction";return}return newToken("numeric",v*Number(g))},decimalFraction:function decimalFraction(){switch(_){case"e":case"E":g+=read();m="decimalExponent";return}if(s.isDigit(_)){g+=read();return}return newToken("numeric",v*Number(g))},decimalExponent:function decimalExponent(){switch(_){case"+":case"-":g+=read();m="decimalExponentSign";return}if(s.isDigit(_)){g+=read();m="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign:function decimalExponentSign(){if(s.isDigit(_)){g+=read();m="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger:function decimalExponentInteger(){if(s.isDigit(_)){g+=read();return}return newToken("numeric",v*Number(g))},hexadecimal:function hexadecimal(){if(s.isHexDigit(_)){g+=read();m="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger:function hexadecimalInteger(){if(s.isHexDigit(_)){g+=read();return}return newToken("numeric",v*Number(g))},string:function string(){switch(_){case"\\":read();g+=escape();return;case'"':if(y){read();return newToken("string",g)}g+=read();return;case"'":if(!y){read();return newToken("string",g)}g+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(_);break;case undefined:throw invalidChar(read())}g+=read()},start:function start(){switch(_){case"{":case"[":return newToken("punctuator",read())}m="value"},beforePropertyName:function beforePropertyName(){switch(_){case"$":case"_":g=read();m="identifierName";return;case"\\":read();m="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":y=read()==='"';m="string";return}if(s.isIdStartChar(_)){g+=read();m="identifierName";return}throw invalidChar(read())},afterPropertyName:function afterPropertyName(){if(_===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue:function beforePropertyValue(){m="value"},afterPropertyValue:function afterPropertyValue(){switch(_){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue:function beforeArrayValue(){if(_==="]"){return newToken("punctuator",read())}m="value"},afterArrayValue:function afterArrayValue(){switch(_){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end:function end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:l,column:f}}function literal(e){var t=true;var n=false;var r=undefined;try{for(var i=e[Symbol.iterator](),s;!(t=(s=i.next()).done);t=true){var o=s.value;var a=peek();if(a!==o){throw invalidChar(read())}read()}}catch(e){n=true;r=e}finally{try{if(!t&&i.return){i.return()}}finally{if(n){throw r}}}}function escape(){var e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(s.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){var e="";var t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){var e="";var t=4;while(t-- >0){var n=peek();if(!s.isHexDigit(n)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}var E={start:function start(){if(p.type==="eof"){throw invalidEOF()}push()},beforePropertyName:function beforePropertyName(){switch(p.type){case"identifier":case"string":d=p.value;a="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName:function afterPropertyName(){if(p.type==="eof"){throw invalidEOF()}a="beforePropertyValue"},beforePropertyValue:function beforePropertyValue(){if(p.type==="eof"){throw invalidEOF()}push()},beforeArrayValue:function beforeArrayValue(){if(p.type==="eof"){throw invalidEOF()}if(p.type==="punctuator"&&p.value==="]"){pop();return}push()},afterPropertyValue:function afterPropertyValue(){if(p.type==="eof"){throw invalidEOF()}switch(p.value){case",":a="beforePropertyName";return;case"}":pop()}},afterArrayValue:function afterArrayValue(){if(p.type==="eof"){throw invalidEOF()}switch(p.value){case",":a="beforeArrayValue";return;case"]":pop()}},end:function end(){}};function push(){var e=void 0;switch(p.type){case"punctuator":switch(p.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=p.value;break}if(h===undefined){h=e}else{var t=c[c.length-1];if(Array.isArray(t)){t.push(e)}else{t[d]=e}}if(e!==null&&(typeof e==="undefined"?"undefined":r(e))==="object"){c.push(e);if(Array.isArray(e)){a="beforeArrayValue"}else{a="beforePropertyName"}}else{var n=c[c.length-1];if(n==null){a="end"}else if(Array.isArray(n)){a="afterArrayValue"}else{a="afterPropertyValue"}}}function pop(){c.pop();var e=c[c.length-1];if(e==null){a="end"}else if(Array.isArray(e)){a="afterArrayValue"}else{a="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError("JSON5: invalid end of input at "+l+":"+f)}return syntaxError("JSON5: invalid character '"+formatChar(e)+"' at "+l+":"+f)}function invalidEOF(){return syntaxError("JSON5: invalid end of input at "+l+":"+f)}function invalidIdentifier(){f-=5;return syntaxError("JSON5: invalid identifier character at "+l+":"+f)}function separatorChar(e){console.warn("JSON5: '"+e+"' is not valid ECMAScript; consider escaping")}function formatChar(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){var n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function syntaxError(e){var t=new SyntaxError(e);t.lineNumber=l;t.columnNumber=f;return t}e.exports=t["default"]},59977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=stringify;var i=n(58034);var s=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function stringify(e,t,n){var i=[];var o="";var a=void 0;var c=void 0;var u="";var l=void 0;if(t!=null&&(typeof t==="undefined"?"undefined":r(t))==="object"&&!Array.isArray(t)){n=t.space;l=t.quote;t=t.replacer}if(typeof t==="function"){c=t}else if(Array.isArray(t)){a=[];var f=true;var p=false;var d=undefined;try{for(var h=t[Symbol.iterator](),m;!(f=(m=h.next()).done);f=true){var g=m.value;var y=void 0;if(typeof g==="string"){y=g}else if(typeof g==="number"||g instanceof String||g instanceof Number){y=String(g)}if(y!==undefined&&a.indexOf(y)<0){a.push(y)}}}catch(e){p=true;d=e}finally{try{if(!f&&h.return){h.return()}}finally{if(p){throw d}}}}if(n instanceof Number){n=Number(n)}else if(n instanceof String){n=String(n)}if(typeof n==="number"){if(n>0){n=Math.min(10,Math.floor(n));u=" ".substr(0,n)}}else if(typeof n==="string"){u=n.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){var n=t[e];if(n!=null){if(typeof n.toJSON5==="function"){n=n.toJSON5(e)}else if(typeof n.toJSON==="function"){n=n.toJSON(e)}}if(c){n=c.call(t,e,n)}if(n instanceof Number){n=Number(n)}else if(n instanceof String){n=String(n)}else if(n instanceof Boolean){n=n.valueOf()}switch(n){case null:return"null";case true:return"true";case false:return"false"}if(typeof n==="string"){return quoteString(n,false)}if(typeof n==="number"){return String(n)}if((typeof n==="undefined"?"undefined":r(n))==="object"){return Array.isArray(n)?serializeArray(n):serializeObject(n)}return undefined}function quoteString(e){var t={"'":.1,'"':.2};var n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var r="";var i=true;var s=false;var o=undefined;try{for(var a=e[Symbol.iterator](),c;!(i=(c=a.next()).done);i=true){var u=c.value;switch(u){case"'":case'"':t[u]++;r+=u;continue}if(n[u]){r+=n[u];continue}if(u<" "){var f=u.charCodeAt(0).toString(16);r+="\\x"+("00"+f).substring(f.length);continue}r+=u}}catch(e){s=true;o=e}finally{try{if(!i&&a.return){a.return()}}finally{if(s){throw o}}}var p=l||Object.keys(t).reduce(function(e,n){return t[e]<t[n]?e:n});r=r.replace(new RegExp(p,"g"),n[p]);return p+r+p}function serializeObject(e){if(i.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);var t=o;o=o+u;var n=a||Object.keys(e);var r=[];var s=true;var c=false;var l=undefined;try{for(var f=n[Symbol.iterator](),p;!(s=(p=f.next()).done);s=true){var d=p.value;var h=serializeProperty(d,e);if(h!==undefined){var m=serializeKey(d)+":";if(u!==""){m+=" "}m+=h;r.push(m)}}}catch(e){c=true;l=e}finally{try{if(!s&&f.return){f.return()}}finally{if(c){throw l}}}var g=void 0;if(r.length===0){g="{}"}else{var y=void 0;if(u===""){y=r.join(",");g="{"+y+"}"}else{var v=",\n"+o;y=r.join(v);g="{\n"+o+y+",\n"+t+"}"}}i.pop();o=t;return g}function serializeKey(e){if(e.length===0){return quoteString(e,true)}var t=String.fromCodePoint(e.codePointAt(0));if(!s.isIdStartChar(t)){return quoteString(e,true)}for(var n=t.length;n<e.length;n++){if(!s.isIdContinueChar(String.fromCodePoint(e.codePointAt(n)))){return quoteString(e,true)}}return e}function serializeArray(e){if(i.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);var t=o;o=o+u;var n=[];for(var r=0;r<e.length;r++){var s=serializeProperty(String(r),e);n.push(s!==undefined?s:"null")}var a=void 0;if(n.length===0){a="[]"}else{if(u===""){var c=n.join(",");a="["+c+"]"}else{var l=",\n"+o;var f=n.join(l);a="[\n"+o+f+",\n"+t+"]"}}i.pop();o=t;return a}}e.exports=t["default"]},14059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=t.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var r=t.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/;var i=t.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},58034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSpaceSeparator=isSpaceSeparator;t.isIdStartChar=isIdStartChar;t.isIdContinueChar=isIdContinueChar;t.isDigit=isDigit;t.isHexDigit=isHexDigit;var r=n(14059);var i=_interopRequireWildcard(r);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function isSpaceSeparator(e){return i.Space_Separator.test(e)}function isIdStartChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||i.ID_Start.test(e)}function isIdContinueChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||i.ID_Continue.test(e)}function isDigit(e){return/[0-9]/.test(e)}function isHexDigit(e){return/[0-9A-Fa-f]/.test(e)}},64055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function ChunkIncludeExcludeTester(e){this.includeExcludeTest=e}ChunkIncludeExcludeTester.prototype.isIncluded=function(e){if(typeof this.includeExcludeTest==="function"){return this.includeExcludeTest(e)}if(this.includeExcludeTest.include&&!this.includeExcludeTest.exclude){return this.includeExcludeTest.include.indexOf(e)>-1}if(this.includeExcludeTest.exclude&&!this.includeExcludeTest.include){return!(this.includeExcludeTest.exclude.indexOf(e)>-1)}if(this.includeExcludeTest.include&&this.includeExcludeTest.exclude){return!(this.includeExcludeTest.exclude.indexOf(e)>-1)&&this.includeExcludeTest.include.indexOf(e)>-1}return true};return ChunkIncludeExcludeTester}();t.ChunkIncludeExcludeTester=n},50980:function(e,t){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:true});var r=function(){function LicenseTextReader(e,t,n,r,i,s){this.logger=e;this.fileSystem=t;this.fileOverrides=n;this.textOverrides=r;this.templateDir=i;this.handleMissingLicenseText=s}LicenseTextReader.prototype.readLicense=function(e,t,n){if(this.textOverrides[t.name]){return this.textOverrides[t.name]}if(this.fileOverrides[t.name]){return this.readText(t.directory,this.fileOverrides[t.name])}if(n&&n.indexOf("SEE LICENSE IN ")===0){var r=n.split(" ")[3];return this.fileSystem.isFileInDirectory(r,t.directory)?this.readText(t.directory,r):null}var i=this.fileSystem.listPaths(t.directory);var s=this.guessLicenseFilename(i,t.directory);if(s!==null){return this.readText(t.directory,s)}if(this.templateDir){var o=n+".txt";var a=this.fileSystem.join(this.templateDir,o);if(this.fileSystem.isFileInDirectory(a,this.templateDir)){return this.fileSystem.readFileAsUtf8(a).replace(/\r\n/g,"\n")}}this.logger.warn(e,"could not find any license file for "+t.name+". Use the licenseTextOverrides option to add the license text if desired.");return this.handleMissingLicenseText(t.name,n)};LicenseTextReader.prototype.readText=function(e,t){return this.fileSystem.readFileAsUtf8(this.fileSystem.join(e,t)).replace(/\r\n/g,"\n")};LicenseTextReader.prototype.guessLicenseFilename=function(e,t){try{for(var r=n(e),i=r.next();!i.done;i=r.next()){var s=i.value;var o=this.fileSystem.join(t,s);if(/^licen[cs]e/i.test(s)&&!this.fileSystem.isDirectory(o)){return s}}}catch(e){a={error:e}}finally{try{if(i&&!i.done&&(c=r.return))c.call(r)}finally{if(a)throw a.error}}return null;var a,c};return LicenseTextReader}();t.LicenseTextReader=r},85768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(64055);var i=n(27519);var s=n(35183);var o=n(41728);var a=n(55933);var c=n(50980);var u=n(85777);var l=n(98707);var f=n(81778);var p=n(13957);var d=n(2058);var h=n(29728);var m=n(99801);var g=n(39225);var y=function(){function LicenseWebpackPlugin(e){if(e===void 0){e={}}this.pluginOptions=e}LicenseWebpackPlugin.prototype.apply=function(e){var t=new o.WebpackFileSystem(e.inputFileSystem);var n=new m.PluginOptionsReader(e.context);var y=n.readOptions(this.pluginOptions);var v=new g.Logger(y.stats);var _=new s.PluginFileHandler(t,y.buildRoot,y.modulesDirectories,y.excludedPackageTest);var b=new a.PluginLicenseTypeIdentifier(v,y.licenseTypeOverrides,y.preferredLicenseTypes,y.handleLicenseAmbiguity,y.handleMissingLicenseType);var E=new c.LicenseTextReader(v,t,y.licenseFileOverrides,y.licenseTextOverrides,y.licenseTemplateDir,y.handleMissingLicenseText);var w=new h.PluginLicenseTestRunner(y.licenseInclusionTest);var S=new h.PluginLicenseTestRunner(y.unacceptableLicenseTest);var k=new d.PluginLicensePolicy(w,S,y.handleUnacceptableLicense,y.handleMissingLicenseText);var D=new i.PluginChunkReadHandler(v,_,b,E,k,t);var x=new p.PluginLicensesRenderer(y.renderLicenses,y.renderBanner);var C=new l.PluginModuleCache;var A=new f.WebpackAssetManager(y.outputFilename,x);var T=new r.ChunkIncludeExcludeTester(y.chunkIncludeExcludeTest);var M=new u.WebpackCompilerHandler(T,D,A,C,y.addBanner,y.perChunkOutput,y.additionalChunkModules,y.additionalModules,y.skipChildCompilers);M.handleCompiler(e)};return LicenseWebpackPlugin}();t.LicenseWebpackPlugin=y},39225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function Logger(e){this.stats=e}Logger.prototype.warn=function(e,t){if(this.stats.warnings){e.warnings.push(""+Logger.LOG_PREFIX+t)}};Logger.prototype.error=function(e,t){if(this.stats.errors){e.errors.push(""+Logger.LOG_PREFIX+t)}};Logger.LOG_PREFIX="license-webpack-plugin: ";return Logger}();t.Logger=n},27519:function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};Object.defineProperty(t,"__esModule",{value:true});var i=n(39900);var s=n(20456);var o=function(){function PluginChunkReadHandler(e,t,n,r,o,a){this.logger=e;this.fileHandler=t;this.licenseTypeIdentifier=n;this.licenseTextReader=r;this.licensePolicy=o;this.fileSystem=a;this.moduleIterator=new i.WebpackChunkModuleIterator;this.fileIterator=new s.WebpackModuleFileIterator}PluginChunkReadHandler.prototype.processChunk=function(e,t,n){var r=this;this.moduleIterator.iterateModules(t,function(i){r.fileIterator.iterateFiles(i,function(i){var s=r.fileHandler.getModule(i);r.processModule(e,t,n,s)})})};PluginChunkReadHandler.prototype.getPackageJson=function(e){var t=""+e+this.fileSystem.pathSeparator+"package.json";return JSON.parse(this.fileSystem.readFileAsUtf8(t))};PluginChunkReadHandler.prototype.processModule=function(e,t,n,i){if(i&&!n.alreadySeenForChunk(t.name,i.name)){var s=n.getModule(i.name);if(s!==null){n.registerModule(t.name,s)}else{var o=this.getPackageJson(i.directory);var a=this.licenseTypeIdentifier.findLicenseIdentifier(e,i.name,o);if(this.licensePolicy.isLicenseUnacceptableFor(a)){this.logger.error(e,"unacceptable license found for "+i.name+": "+a);this.licensePolicy.handleUnacceptableLicense(i.name,a)}if(this.licensePolicy.isLicenseWrittenFor(a)){var c=this.licenseTextReader.readLicense(e,i,a);n.registerModule(t.name,r({licenseText:c,packageJson:o},i,{licenseId:a}))}}n.markSeenForChunk(t.name,i.name)}};return PluginChunkReadHandler}();t.PluginChunkReadHandler=o},35183:function(e,t){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:true});var r=function(){function PluginFileHandler(e,t,n,r){this.fileSystem=e;this.buildRoot=t;this.modulesDirectories=n;this.excludedPackageTest=r}PluginFileHandler.prototype.getModule=function(e){if(e===null||e===undefined){return null}if(this.modulesDirectories!==null){var t=false;try{for(var r=n(this.modulesDirectories),i=r.next();!i.done;i=r.next()){var s=i.value;if(this.fileSystem.isFileInDirectory(e,s)){t=true}}}catch(e){a={error:e}}finally{try{if(i&&!i.done&&(c=r.return))c.call(r)}finally{if(a)throw a.error}}if(!t){return null}}var o=this.findModuleDir(e);if(o!==null&&this.excludedPackageTest(o.name)){return null}return o;var a,c};PluginFileHandler.prototype.findModuleDir=function(e){var t=this.fileSystem.pathSeparator;var n=e.substring(0,e.lastIndexOf(t));var r=null;while(!this.dirContainsValidPackageJson(n)){r=n;n=this.fileSystem.resolvePath(""+n+t+".."+t);if(r===n){return null}}if(this.buildRoot===n){return null}var i=this.parsePackageJson(n);return{name:i.name,directory:n}};PluginFileHandler.prototype.parsePackageJson=function(e){var t=this.fileSystem.readFileAsUtf8(this.fileSystem.join(e,PluginFileHandler.PACKAGE_JSON));var n=JSON.parse(t);return n};PluginFileHandler.prototype.dirContainsValidPackageJson=function(e){if(!this.fileSystem.pathExists(this.fileSystem.join(e,PluginFileHandler.PACKAGE_JSON))){return false}var t=this.parsePackageJson(e);return!!t.name};PluginFileHandler.PACKAGE_JSON="package.json";return PluginFileHandler}();t.PluginFileHandler=r},2058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function PluginLicensePolicy(e,t,n,r){this.licenseTester=e;this.unacceptableLicenseTester=t;this.unacceptableLicenseHandler=n;this.missingLicenseTextHandler=r}PluginLicensePolicy.prototype.isLicenseWrittenFor=function(e){return this.licenseTester.test(e)};PluginLicensePolicy.prototype.isLicenseUnacceptableFor=function(e){return this.unacceptableLicenseTester.test(e)};PluginLicensePolicy.prototype.handleUnacceptableLicense=function(e,t){this.unacceptableLicenseHandler(e,t)};PluginLicensePolicy.prototype.handleMissingLicenseText=function(e,t){this.missingLicenseTextHandler(e,t)};return PluginLicensePolicy}();t.PluginLicensePolicy=n},29728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function PluginLicenseTestRunner(e){this.licenseTest=e}PluginLicenseTestRunner.prototype.test=function(e){return this.licenseTest(e)};return PluginLicenseTestRunner}();t.PluginLicenseTestRunner=n},55933:function(e,t){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:true});var r=function(){function PluginLicenseTypeIdentifier(e,t,n,r,i){this.logger=e;this.licenseTypeOverrides=t;this.preferredLicenseTypes=n;this.handleLicenseAmbiguity=r;this.handleMissingLicenseType=i}PluginLicenseTypeIdentifier.prototype.findLicenseIdentifier=function(e,t,n){if(this.licenseTypeOverrides&&this.licenseTypeOverrides[t]){return this.licenseTypeOverrides[t]}var r=n.license;if(r){return typeof r==="string"?r:r.type}if(Array.isArray(n.licenses)&&n.licenses.length>0){if(n.licenses.length===1){return n.licenses[0].type}var i=n.licenses.map(function(e){return e.type});var s=this.findPreferredLicense(i,this.preferredLicenseTypes);if(s!==null){return s}var o=this.handleLicenseAmbiguity(t,n.licenses);this.logger.warn(e,t+" specifies multiple licenses: "+i+". Automatically selected "+o+". Use the preferredLicenseTypes or the licenseTypeOverrides option to resolve this warning.");return o}this.logger.warn(e,"could not find any license type for "+t+" in its package.json");return this.handleMissingLicenseType(t)};PluginLicenseTypeIdentifier.prototype.findPreferredLicense=function(e,t){try{for(var r=n(t),i=r.next();!i.done;i=r.next()){var s=i.value;try{for(var o=n(e),a=o.next();!a.done;a=o.next()){var c=a.value;if(s===c){return s}}}catch(e){f={error:e}}finally{try{if(a&&!a.done&&(p=o.return))p.call(o)}finally{if(f)throw f.error}}}}catch(e){u={error:e}}finally{try{if(i&&!i.done&&(l=r.return))l.call(r)}finally{if(u)throw u.error}}return null;var u,l,f,p};return PluginLicenseTypeIdentifier}();t.PluginLicenseTypeIdentifier=r},13957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function PluginLicensesRenderer(e,t){this.renderLicenses=e;this.renderBanner=t}return PluginLicensesRenderer}();t.PluginLicensesRenderer=n},98707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function PluginModuleCache(){this.totalCache={};this.chunkCache={};this.chunkSeenCache={}}PluginModuleCache.prototype.registerModule=function(e,t){this.totalCache[t.name]=t;if(!this.chunkCache[e]){this.chunkCache[e]={}}this.chunkCache[e][t.name]=t};PluginModuleCache.prototype.getModule=function(e){return this.totalCache[e]||null};PluginModuleCache.prototype.markSeenForChunk=function(e,t){if(!this.chunkSeenCache[e]){this.chunkSeenCache[e]={}}this.chunkSeenCache[e][t]=true};PluginModuleCache.prototype.alreadySeenForChunk=function(e,t){return!!(this.chunkSeenCache[e]&&this.chunkSeenCache[e][t])};PluginModuleCache.prototype.getAllModulesForChunk=function(e){var t=[];var n=this.chunkCache[e];if(n){Object.keys(n).forEach(function(e){t.push(n[e])})}return t};PluginModuleCache.prototype.getAllModules=function(){var e=this;var t=[];Object.keys(this.totalCache).forEach(function(n){t.push(e.totalCache[n])});return t};return PluginModuleCache}();t.PluginModuleCache=n},99801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function PluginOptionsReader(e){this.context=e}PluginOptionsReader.prototype.readOptions=function(e){var t=e.licenseInclusionTest||function(){return true};var n=e.unacceptableLicenseTest||function(){return false};var r=e.perChunkOutput===undefined;var i=e.licenseTemplateDir;var s=e.licenseTextOverrides||{};var o=e.licenseTypeOverrides||{};var a=e.handleUnacceptableLicense||function(){};var c=e.handleMissingLicenseText||function(){return null};var u=e.renderLicenses||function(e){return e.sort(function(e,t){return e.name<t.name?-1:1}).reduce(function(e,t){return""+e+t.name+(t.licenseId?"\n"+t.licenseId:"")+(t.licenseText?"\n"+t.licenseText:"")+"\n\n"},"").trim()+"\n"};var l=e.renderBanner||function(e){return"/*! License information is available at "+e+" */"};var f=e.outputFilename||(r?"[name].licenses.txt":"licenses.txt");var p=e.addBanner===undefined?false:e.addBanner;var d=e.chunkIncludeExcludeTest||function(){return true};var h=e.modulesDirectories||null;var m=e.additionalChunkModules||{};var g=e.additionalModules||[];var y=e.preferredLicenseTypes||[];var v=e.handleLicenseAmbiguity||function(e,t){return t[0].type};var _=e.handleMissingLicenseType||function(){return null};var b=e.licenseFileOverrides||{};var E=e.excludedPackageTest||function(){return false};var w={warnings:e.stats&&e.stats.warnings!==undefined?e.stats.warnings:true,errors:e.stats&&e.stats.errors!==undefined?e.stats.errors:true};var S=!!e.skipChildCompilers;var k={licenseInclusionTest:t,unacceptableLicenseTest:n,perChunkOutput:r,licenseTemplateDir:i,licenseTextOverrides:s,licenseFileOverrides:b,licenseTypeOverrides:o,handleUnacceptableLicense:a,handleMissingLicenseText:c,renderLicenses:u,renderBanner:l,outputFilename:f,addBanner:p,chunkIncludeExcludeTest:d,modulesDirectories:h,additionalChunkModules:m,additionalModules:g,preferredLicenseTypes:y,handleLicenseAmbiguity:v,handleMissingLicenseType:_,excludedPackageTest:E,stats:w,skipChildCompilers:S,buildRoot:this.context};return k};return PluginOptionsReader}();t.PluginOptionsReader=n},81778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(2991);var i=function(){function WebpackAssetManager(e,t){this.outputFilename=e;this.licensesRenderer=t}WebpackAssetManager.prototype.writeChunkLicenses=function(e,t,n){var i=this.licensesRenderer.renderLicenses(e);if(i&&i.trim()){var s=t.getPath(this.outputFilename,{chunk:n});t.assets[s]=new r.RawSource(i)}};WebpackAssetManager.prototype.writeChunkBanners=function(e,t,n){var i=t.getPath(this.outputFilename,{chunk:n});var s=this.licensesRenderer.renderBanner(i,e);if(s&&s.trim()){n.files.filter(function(e){return/\.js$/.test(e)}).forEach(function(e){t.assets[e]=new r.ConcatSource(s,t.assets[e])})}};WebpackAssetManager.prototype.writeAllLicenses=function(e,t){var n=this.licensesRenderer.renderLicenses(e);if(n){var i=t.getPath(this.outputFilename,t);t.assets[i]=new r.RawSource(n)}};return WebpackAssetManager}();t.WebpackAssetManager=i},39900:function(e,t){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:true});var r=function(){function WebpackChunkModuleIterator(){}WebpackChunkModuleIterator.prototype.iterateModules=function(e,t){if(typeof e.modulesIterable!=="undefined"){try{for(var r=n(e.modulesIterable),i=r.next();!i.done;i=r.next()){var s=i.value;t(s)}}catch(e){o={error:e}}finally{try{if(i&&!i.done&&(a=r.return))a.call(r)}finally{if(o)throw o.error}}}else if(typeof e.forEachModule==="function"){e.forEachModule(t)}else if(Array.isArray(e.modules)){e.modules.forEach(t)}if(e.entryModule){t(e.entryModule)}var o,a};return WebpackChunkModuleIterator}();t.WebpackChunkModuleIterator=r},85777:function(e,t){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:true});var r=function(){function WebpackCompilerHandler(e,t,n,r,i,s,o,a,c){this.chunkIncludeTester=e;this.chunkHandler=t;this.assetManager=n;this.moduleCache=r;this.addBanner=i;this.perChunkOutput=s;this.additionalChunkModules=o;this.additionalModules=a;this.skipChildCompilers=c}WebpackCompilerHandler.prototype.handleCompiler=function(e){var t=this;if(typeof e.hooks!=="undefined"){var n=this.skipChildCompilers?"thisCompilation":"compilation";e.hooks[n].tap("LicenseWebpackPlugin",function(e){e.hooks.optimizeChunkAssets.tap("LicenseWebpackPlugin",function(n){t.iterateChunks(e,n)})})}else if(typeof e.plugin!=="undefined"){e.plugin("compilation",function(e){if(typeof e.plugin!=="undefined"){e.plugin("optimize-chunk-assets",function(n,r){t.iterateChunks(e,n);r()})}})}};WebpackCompilerHandler.prototype.iterateChunks=function(e,t){var r=this;var i=function(t){if(s.chunkIncludeTester.isIncluded(t.name)){s.chunkHandler.processChunk(e,t,s.moduleCache);if(s.additionalChunkModules[t.name]){s.additionalChunkModules[t.name].forEach(function(n){return r.chunkHandler.processModule(e,t,r.moduleCache,n)})}if(s.additionalModules.length>0){s.additionalModules.forEach(function(n){return r.chunkHandler.processModule(e,t,r.moduleCache,n)})}if(s.perChunkOutput){s.assetManager.writeChunkLicenses(s.moduleCache.getAllModulesForChunk(t.name),e,t)}if(s.addBanner){s.assetManager.writeChunkBanners(s.moduleCache.getAllModulesForChunk(t.name),e,t)}}};var s=this;try{for(var o=n(t),a=o.next();!a.done;a=o.next()){var c=a.value;i(c)}}catch(e){u={error:e}}finally{try{if(a&&!a.done&&(l=o.return))l.call(o)}finally{if(u)throw u.error}}if(!this.perChunkOutput){this.assetManager.writeAllLicenses(this.moduleCache.getAllModules(),e)}var u,l};return WebpackCompilerHandler}();t.WebpackCompilerHandler=r},41728:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{while((t===void 0||t-- >0)&&!(i=r.next()).done)s.push(i.value)}catch(e){o={error:e}}finally{try{if(i&&!i.done&&(n=r["return"]))n.call(r)}finally{if(o)throw o.error}}return s};var i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});var o=s(n(85622));var a=function(){function WebpackFileSystem(e){this.fs=e;this.pathSeparator=o.sep}WebpackFileSystem.prototype.isFileInDirectory=function(e,t){var n=this.resolvePath(e);var r=this.resolvePath(t);return!this.isDirectory(n)&&n.indexOf(r)===0};WebpackFileSystem.prototype.pathExists=function(e){try{this.fs.statSync(e);return true}catch(e){return false}};WebpackFileSystem.prototype.readFileAsUtf8=function(e){return this.fs.readFileSync(e).toString("utf8")};WebpackFileSystem.prototype.join=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.join.apply(o,i(e))};WebpackFileSystem.prototype.resolvePath=function(e){return o.resolve(e)};WebpackFileSystem.prototype.listPaths=function(e){return this.fs.readdirSync(e)};WebpackFileSystem.prototype.isDirectory=function(e){var t=false;try{t=this.fs.statSync(e).isDirectory()}catch(e){}return t};return WebpackFileSystem}();t.WebpackFileSystem=a},20456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function WebpackModuleFileIterator(){}WebpackModuleFileIterator.prototype.iterateFiles=function(e,t){t(e.resource||e.rootModule&&e.rootModule.resource);if(Array.isArray(e.fileDependencies)){var n=e.fileDependencies;n.forEach(t)}if(Array.isArray(e.dependencies)){e.dependencies.forEach(function(e){return t(e.originModule&&e.originModule.resource)})}};return WebpackModuleFileIterator}();t.WebpackModuleFileIterator=n},58907:(e,t,n)=>{"use strict";var r;r={value:true};var i=n(85768);t.s=i.LicenseWebpackPlugin},11638:e=>{"use strict";class LoadingLoaderError extends Error{constructor(e){super(e);this.name="LoaderRunnerError";Error.captureStackTrace(this,this.constructor)}}e.exports=LoadingLoaderError},60425:(e,t,n)=>{var r=n(35747);var i=r.readFile.bind(r);var s=n(45658);function utf8BufferToString(e){var t=e.toString("utf-8");if(t.charCodeAt(0)===65279){return t.substr(1)}else{return t}}var o=/^([^?#]*)(\?[^#]*)?(#.*)?$/;function parsePathQueryFragment(e){var t=o.exec(e);return{path:t[1],query:t[2]||"",fragment:t[3]||""}}function dirname(e){if(e==="/")return"/";var t=e.lastIndexOf("/");var n=e.lastIndexOf("\\");var r=e.indexOf("/");var i=e.indexOf("\\");var s=t>n?t:n;var o=t>n?r:i;if(s<0)return e;if(s===o)return e.substr(0,s+1);return e.substr(0,s)}function createLoaderObject(e){var t={path:null,query:null,fragment:null,options:null,ident:null,normal:null,pitch:null,raw:null,data:null,pitchExecuted:false,normalExecuted:false};Object.defineProperty(t,"request",{enumerable:true,get:function(){return t.path+t.query},set:function(e){if(typeof e==="string"){var n=parsePathQueryFragment(e);t.path=n.path;t.query=n.query;t.fragment=n.fragment;t.options=undefined;t.ident=undefined}else{if(!e.loader)throw new Error("request should be a string or object with loader and options ("+JSON.stringify(e)+")");t.path=e.loader;t.fragment=e.fragment||"";t.type=e.type;t.options=e.options;t.ident=e.ident;if(t.options===null)t.query="";else if(t.options===undefined)t.query="";else if(typeof t.options==="string")t.query="?"+t.options;else if(t.ident)t.query="??"+t.ident;else if(typeof t.options==="object"&&t.options.ident)t.query="??"+t.options.ident;else t.query="?"+JSON.stringify(t.options)}}});t.request=e;if(Object.preventExtensions){Object.preventExtensions(t)}return t}function runSyncOrAsync(e,t,n,r){var i=true;var s=false;var o=false;var a=false;t.async=function async(){if(s){if(a)return;throw new Error("async(): The callback was already called.")}i=false;return c};var c=t.callback=function(){if(s){if(a)return;throw new Error("callback(): The callback was already called.")}s=true;i=false;try{r.apply(null,arguments)}catch(e){o=true;throw e}};try{var u=function LOADER_EXECUTION(){return e.apply(t,n)}();if(i){s=true;if(u===undefined)return r();if(u&&typeof u==="object"&&typeof u.then==="function"){return u.then(function(e){r(null,e)},r)}return r(null,u)}}catch(e){if(o)throw e;if(s){if(typeof e==="object"&&e.stack)console.error(e.stack);else console.error(e);return}s=true;a=true;r(e)}}function convertArgs(e,t){if(!t&&Buffer.isBuffer(e[0]))e[0]=utf8BufferToString(e[0]);else if(t&&typeof e[0]==="string")e[0]=Buffer.from(e[0],"utf-8")}function iteratePitchingLoaders(e,t,n){if(t.loaderIndex>=t.loaders.length)return processResource(e,t,n);var r=t.loaders[t.loaderIndex];if(r.pitchExecuted){t.loaderIndex++;return iteratePitchingLoaders(e,t,n)}s(r,function(i){if(i){t.cacheable(false);return n(i)}var s=r.pitch;r.pitchExecuted=true;if(!s)return iteratePitchingLoaders(e,t,n);runSyncOrAsync(s,t,[t.remainingRequest,t.previousRequest,r.data={}],function(r){if(r)return n(r);var i=Array.prototype.slice.call(arguments,1);var s=i.some(function(e){return e!==undefined});if(s){t.loaderIndex--;iterateNormalLoaders(e,t,i,n)}else{iteratePitchingLoaders(e,t,n)}})})}function processResource(e,t,n){t.loaderIndex=t.loaders.length-1;var r=t.resourcePath;if(r){t.addDependency(r);e.readResource(r,function(r,i){if(r)return n(r);e.resourceBuffer=i;iterateNormalLoaders(e,t,[i],n)})}else{iterateNormalLoaders(e,t,[null],n)}}function iterateNormalLoaders(e,t,n,r){if(t.loaderIndex<0)return r(null,n);var i=t.loaders[t.loaderIndex];if(i.normalExecuted){t.loaderIndex--;return iterateNormalLoaders(e,t,n,r)}var s=i.normal;i.normalExecuted=true;if(!s){return iterateNormalLoaders(e,t,n,r)}convertArgs(n,i.raw);runSyncOrAsync(s,t,n,function(n){if(n)return r(n);var i=Array.prototype.slice.call(arguments,1);iterateNormalLoaders(e,t,i,r)})}t.getContext=function getContext(e){var t=parsePathQueryFragment(e).path;return dirname(t)};t.runLoaders=function runLoaders(e,t){var n=e.resource||"";var r=e.loaders||[];var s=e.context||{};var o=e.readResource||i;var a=n&&parsePathQueryFragment(n);var c=a?a.path:undefined;var u=a?a.query:undefined;var l=a?a.fragment:undefined;var f=c?dirname(c):null;var p=true;var d=[];var h=[];var m=[];r=r.map(createLoaderObject);s.context=f;s.loaderIndex=0;s.loaders=r;s.resourcePath=c;s.resourceQuery=u;s.resourceFragment=l;s.async=null;s.callback=null;s.cacheable=function cacheable(e){if(e===false){p=false}};s.dependency=s.addDependency=function addDependency(e){d.push(e)};s.addContextDependency=function addContextDependency(e){h.push(e)};s.addMissingDependency=function addMissingDependency(e){m.push(e)};s.getDependencies=function getDependencies(){return d.slice()};s.getContextDependencies=function getContextDependencies(){return h.slice()};s.getMissingDependencies=function getMissingDependencies(){return m.slice()};s.clearDependencies=function clearDependencies(){d.length=0;h.length=0;m.length=0;p=true};Object.defineProperty(s,"resource",{enumerable:true,get:function(){if(s.resourcePath===undefined)return undefined;return s.resourcePath+s.resourceQuery+s.resourceFragment},set:function(e){var t=e&&parsePathQueryFragment(e);s.resourcePath=t?t.path:undefined;s.resourceQuery=t?t.query:undefined;s.resourceFragment=t?t.fragment:undefined}});Object.defineProperty(s,"request",{enumerable:true,get:function(){return s.loaders.map(function(e){return e.request}).concat(s.resource||"").join("!")}});Object.defineProperty(s,"remainingRequest",{enumerable:true,get:function(){if(s.loaderIndex>=s.loaders.length-1&&!s.resource)return"";return s.loaders.slice(s.loaderIndex+1).map(function(e){return e.request}).concat(s.resource||"").join("!")}});Object.defineProperty(s,"currentRequest",{enumerable:true,get:function(){return s.loaders.slice(s.loaderIndex).map(function(e){return e.request}).concat(s.resource||"").join("!")}});Object.defineProperty(s,"previousRequest",{enumerable:true,get:function(){return s.loaders.slice(0,s.loaderIndex).map(function(e){return e.request}).join("!")}});Object.defineProperty(s,"query",{enumerable:true,get:function(){var e=s.loaders[s.loaderIndex];return e.options&&typeof e.options==="object"?e.options:e.query}});Object.defineProperty(s,"data",{enumerable:true,get:function(){return s.loaders[s.loaderIndex].data}});if(Object.preventExtensions){Object.preventExtensions(s)}var g={resourceBuffer:null,readResource:o};iteratePitchingLoaders(g,s,function(e,n){if(e){return t(e,{cacheable:p,fileDependencies:d,contextDependencies:h,missingDependencies:m})}t(null,{result:n,resourceBuffer:g.resourceBuffer,cacheable:p,fileDependencies:d,contextDependencies:h,missingDependencies:m})})}},45658:(module,__unused_webpack_exports,__webpack_require__)=>{var LoaderLoadingError=__webpack_require__(11638);var url;module.exports=function loadLoader(loader,callback){if(loader.type==="module"){try{if(url===undefined)url=__webpack_require__(78835);var loaderUrl=url.pathToFileURL(loader.path);var modulePromise=eval("import("+JSON.stringify(loaderUrl.toString())+")");modulePromise.then(function(e){handleResult(loader,e,callback)},callback);return}catch(e){callback(e)}}else{try{var module=require(loader.path)}catch(e){if(e instanceof Error&&e.code==="EMFILE"){var retry=loadLoader.bind(null,loader,callback);if(typeof setImmediate==="function"){return setImmediate(retry)}else{return process.nextTick(retry)}}return callback(e)}return handleResult(loader,module,callback)}};function handleResult(e,t,n){if(typeof t!=="function"&&typeof t!=="object"){return n(new LoaderLoadingError("Module '"+e.path+"' is not a loader (export function or es6 module)"))}e.normal=typeof t==="function"?t:t.default;e.pitch=t.pitch;e.raw=t.raw;if(typeof e.normal!=="function"&&typeof e.pitch!=="function"){return n(new LoaderLoadingError("Module '"+e.path+"' is not a loader (must have normal or pitch function)"))}n()}},6537:(e,t,n)=>{"use strict";const r=n(85622);const i=n(35747);const{promisify:s}=n(31669);const o=n(88213);const a=s(i.stat);const c=s(i.lstat);const u={directory:"isDirectory",file:"isFile"};function checkType({type:e}){if(e in u){return}throw new Error(`Invalid type specified: ${e}`)}const l=(e,t)=>e===undefined||t[u[e]]();e.exports=(async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:true,...t};checkType(t);const n=t.allowSymlinks?a:c;return o(e,async e=>{try{const i=await n(r.resolve(t.cwd,e));return l(t.type,i)}catch(e){return false}},t)});e.exports.sync=((e,t)=>{t={cwd:process.cwd(),allowSymlinks:true,type:"file",...t};checkType(t);const n=t.allowSymlinks?i.statSync:i.lstatSync;for(const i of e){try{const e=n(r.resolve(t.cwd,i));if(l(t.type,e)){return i}}catch(e){}}})},41365:(e,t,n)=>{"use strict";const r=n(35747);const i=n(85622);const{promisify:s}=n(31669);const o=n(34281);const a=o.satisfies(process.version,">=10.12.0");const c=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const u=e=>{const t={mode:511,fs:r};return{...t,...e}};const l=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const f=async(e,t)=>{c(e);t=u(t);const n=s(t.fs.mkdir);const o=s(t.fs.stat);if(a&&t.fs.mkdir===r.mkdir){const r=i.resolve(e);await n(r,{mode:t.mode,recursive:true});return r}const f=async e=>{try{await n(e,t.mode);return e}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(t.message.includes("null bytes")){throw t}await f(i.dirname(e));return f(e)}try{const n=await o(e);if(!n.isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw t}return e}};return f(i.resolve(e))};e.exports=f;e.exports.sync=((e,t)=>{c(e);t=u(t);if(a&&t.fs.mkdirSync===r.mkdirSync){const n=i.resolve(e);r.mkdirSync(n,{mode:t.mode,recursive:true});return n}const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(r.message.includes("null bytes")){throw r}n(i.dirname(e));return n(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return n(i.resolve(e))})},34281:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var r=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var f=c++;a[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var h=c++;a[h]="(?:"+a[u]+"|"+a[f]+")";var m=c++;a[m]="(?:"+a[l]+"|"+a[f]+")";var g=c++;a[g]="(?:-("+a[h]+"(?:\\."+a[h]+")*))";var y=c++;a[y]="(?:-?("+a[m]+"(?:\\."+a[m]+")*))";var v=c++;a[v]="[0-9A-Za-z-]+";var _=c++;a[_]="(?:\\+("+a[v]+"(?:\\."+a[v]+")*))";var b=c++;var E="v?"+a[p]+a[g]+"?"+a[_]+"?";a[b]="^"+E+"$";var w="[v=\\s]*"+a[d]+a[y]+"?"+a[_]+"?";var S=c++;a[S]="^"+w+"$";var k=c++;a[k]="((?:<|>)?=?)";var D=c++;a[D]=a[l]+"|x|X|\\*";var x=c++;a[x]=a[u]+"|x|X|\\*";var C=c++;a[C]="[v=\\s]*("+a[x]+")"+"(?:\\.("+a[x]+")"+"(?:\\.("+a[x]+")"+"(?:"+a[g]+")?"+a[_]+"?"+")?)?";var A=c++;a[A]="[v=\\s]*("+a[D]+")"+"(?:\\.("+a[D]+")"+"(?:\\.("+a[D]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var T=c++;a[T]="^"+a[k]+"\\s*"+a[C]+"$";var M=c++;a[M]="^"+a[k]+"\\s*"+a[A]+"$";var O=c++;a[O]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var F=c++;a[F]="(?:~>?)";var I=c++;a[I]="(\\s*)"+a[F]+"\\s+";o[I]=new RegExp(a[I],"g");var R="$1~";var P=c++;a[P]="^"+a[F]+a[C]+"$";var N=c++;a[N]="^"+a[F]+a[A]+"$";var L=c++;a[L]="(?:\\^)";var B=c++;a[B]="(\\s*)"+a[L]+"\\s+";o[B]=new RegExp(a[B],"g");var j="$1^";var U=c++;a[U]="^"+a[L]+a[C]+"$";var z=c++;a[z]="^"+a[L]+a[A]+"$";var H=c++;a[H]="^"+a[k]+"\\s*("+w+")$|^$";var V=c++;a[V]="^"+a[k]+"\\s*("+E+")$|^$";var G=c++;a[G]="(\\s*)"+a[k]+"\\s*("+w+"|"+a[C]+")";o[G]=new RegExp(a[G],"g");var q="$1$2$3";var W=c++;a[W]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var K=c++;a[K]="^\\s*("+a[A]+")"+"\\s+-\\s+"+"("+a[A]+")"+"\\s*$";var X=c++;a[X]="(<|>)?=?\\s*\\*";for(var J=0;J<c;J++){n(J,a[J]);if(!o[J]){o[J]=new RegExp(a[J])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>r){return null}var n=t.loose?o[S]:o[b];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>r){throw new TypeError("version is longer than "+r+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[S]:o[b]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){n("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var r=this.prerelease[t];var i=e.prerelease[t];n("prerelease compare",t,r,i);if(r===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(r===undefined){return-1}else if(r===i){continue}else{return compareIdentifiers(r,i)}}while(++t)};SemVer.prototype.compareBuild=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}var t=0;do{var r=this.build[t];var i=e.build[t];n("prerelease compare",t,r,i);if(r===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(r===undefined){return-1}else if(r===i){continue}else{return compareIdentifiers(r,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var n=this.prerelease.length;while(--n>=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,r){if(typeof n==="string"){r=n;n=undefined}try{return new SemVer(e,n).inc(t,r).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var r=parse(t);var i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var o in n){if(o==="major"||o==="minor"||o==="patch"){if(n[o]!==r[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Y=/^[0-9]+$/;function compareIdentifiers(e,t){var n=Y.test(e);var r=Y.test(t);if(n&&r){e=+e;t=+t}return e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,n){return new SemVer(e,n).compare(new SemVer(t,n))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.compareBuild=compareBuild;function compareBuild(e,t,n){var r=new SemVer(e,n);var i=new SemVer(t,n);return r.compare(i)||r.compareBuild(i)}t.rcompare=rcompare;function rcompare(e,t,n){return compare(t,e,n)}t.sort=sort;function sort(e,n){return e.sort(function(e,r){return t.compareBuild(e,r,n)})}t.rsort=rsort;function rsort(e,n){return e.sort(function(e,r){return t.compareBuild(r,e,n)})}t.gt=gt;function gt(e,t,n){return compare(e,t,n)>0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,r){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,r);case"!=":return neq(e,n,r);case">":return gt(e,n,r);case">=":return gte(e,n,r);case"<":return lt(e,n,r);case"<=":return lte(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Q){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var Q={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[V];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=Q}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===Q||e===Q){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return r||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[K]:o[W];e=e.replace(r,hyphenReplace);n("hyphen replace",e);e=e.replace(o[G],q);n("comparator trim",e,o[G]);e=e.replace(o[I],R);e=e.replace(o[B],j);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[V];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(n){return isSatisfiable(n,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&n.every(function(n){return e.every(function(e){return n.intersects(e,t)})})})})};function isSatisfiable(e,t){var n=true;var r=e.slice();var i=r.pop();while(n&&r.length){n=r.every(function(e){return i.intersects(e,t)});i=r.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var r=t.loose?o[N]:o[P];return e.replace(r,function(t,r,i,s,o){n("tilde",e,t,r,i,s,o);var a;if(isX(r)){a=""}else if(isX(i)){a=">="+r+".0.0 <"+(+r+1)+".0.0"}else if(isX(s)){a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"}else if(o){n("replaceTilde pr",o);a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"}else{a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0"}n("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){n("caret",e,t);var r=t.loose?o[z]:o[U];return e.replace(r,function(t,r,i,s,o){n("caret",e,t,r,i,s,o);var a;if(isX(r)){a=""}else if(isX(i)){a=">="+r+".0.0 <"+(+r+1)+".0.0"}else if(isX(s)){if(r==="0"){a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"}else{a=">="+r+"."+i+".0 <"+(+r+1)+".0.0"}}else if(o){n("replaceCaret pr",o);if(r==="0"){if(i==="0"){a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+i+"."+(+s+1)}else{a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"}}else{a=">="+r+"."+i+"."+s+"-"+o+" <"+(+r+1)+".0.0"}}else{n("no pr");if(r==="0"){if(i==="0"){a=">="+r+"."+i+"."+s+" <"+r+"."+i+"."+(+s+1)}else{a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0"}}else{a=">="+r+"."+i+"."+s+" <"+(+r+1)+".0.0"}}n("caret return",a);return a})}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var r=t.loose?o[M]:o[T];return e.replace(r,function(t,r,i,s,o,a){n("xRange",e,t,r,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var f=l;if(r==="="&&f){r=""}if(c){if(r===">"||r==="<"){t="<0.0.0"}else{t="*"}}else if(r&&f){if(u){s=0}o=0;if(r===">"){r=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(r==="<="){r="<";if(u){i=+i+1}else{s=+s+1}}t=r+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}n("xRange return",t);return t})}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(o[X],"")}function hyphenReplace(e,t,n,r,i,s,o,a,c,u,l,f,p){if(isX(n)){t=""}else if(isX(r)){t=">="+n+".0.0"}else if(isX(i)){t=">="+n+"."+r+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,r){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++){n(e[i].semver);if(e[i].semver===Q){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var r=null;var i=null;try{var s=new Range(t,n)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!r||i.compare(e)===-1){r=e;i=new SemVer(r,n)}}});return r}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var r=null;var i=null;try{var s=new Range(t,n)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!r||i.compare(e)===1){r=e;i=new SemVer(r,n)}}});return r}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var r=0;r<e.set.length;++r){var i=e.set[r];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,r){e=new SemVer(e,r);t=new Range(t,r);var i,s,o,a,c;switch(n){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,r)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var p=null;l.forEach(function(e){if(e.semver===Q){e=new Comparator(">=0.0.0")}f=f||e;p=p||e;if(i(e.semver,f.semver,r)){f=e}else if(o(e.semver,p.semver,r)){p=e}});if(f.operator===a||f.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var n=e.match(o[O]);if(n==null){return null}return parse(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}},56342:(e,t,n)=>{var r=n(48333);var i=n(80713);var s=n(32453);var o=s.Readable;var a=s.Writable;function MemoryFileSystemError(e,t){Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,arguments.callee);this.code=e.code;this.errno=e.errno;this.message=e.description;this.path=t}MemoryFileSystemError.prototype=new Error;function MemoryFileSystem(e){this.data=e||{}}e.exports=MemoryFileSystem;function isDir(e){if(typeof e!=="object")return false;return e[""]===true}function isFile(e){if(typeof e!=="object")return false;return!e[""]}function pathToArray(e){e=r(e);var t=/^\//.test(e);if(!t){if(!/^[A-Za-z]:/.test(e)){throw new MemoryFileSystemError(i.code.EINVAL,e)}e=e.replace(/[\\\/]+/g,"\\");e=e.split(/[\\\/]/);e[0]=e[0].toUpperCase()}else{e=e.replace(/\/+/g,"/");e=e.substr(1).split("/")}if(!e[e.length-1])e.pop();return e}function trueFn(){return true}function falseFn(){return false}MemoryFileSystem.prototype.meta=function(e){var t=pathToArray(e);var n=this.data;for(var r=0;r<t.length-1;r++){if(!isDir(n[t[r]]))return;n=n[t[r]]}return n[t[r]]};MemoryFileSystem.prototype.existsSync=function(e){return!!this.meta(e)};MemoryFileSystem.prototype.statSync=function(e){var t=this.meta(e);if(e==="/"||isDir(t)){return{isFile:falseFn,isDirectory:trueFn,isBlockDevice:falseFn,isCharacterDevice:falseFn,isSymbolicLink:falseFn,isFIFO:falseFn,isSocket:falseFn}}else if(isFile(t)){return{isFile:trueFn,isDirectory:falseFn,isBlockDevice:falseFn,isCharacterDevice:falseFn,isSymbolicLink:falseFn,isFIFO:falseFn,isSocket:falseFn}}else{throw new MemoryFileSystemError(i.code.ENOENT,e)}};MemoryFileSystem.prototype.readFileSync=function(e,t){var n=pathToArray(e);var r=this.data;for(var s=0;s<n.length-1;s++){if(!isDir(r[n[s]]))throw new MemoryFileSystemError(i.code.ENOENT,e);r=r[n[s]]}if(!isFile(r[n[s]])){if(isDir(r[n[s]]))throw new MemoryFileSystemError(i.code.EISDIR,e);else throw new MemoryFileSystemError(i.code.ENOENT,e)}r=r[n[s]];return t?r.toString(t):r};MemoryFileSystem.prototype.readdirSync=function(e){if(e==="/")return Object.keys(this.data).filter(Boolean);var t=pathToArray(e);var n=this.data;for(var r=0;r<t.length-1;r++){if(!isDir(n[t[r]]))throw new MemoryFileSystemError(i.code.ENOENT,e);n=n[t[r]]}if(!isDir(n[t[r]])){if(isFile(n[t[r]]))throw new MemoryFileSystemError(i.code.ENOTDIR,e);else throw new MemoryFileSystemError(i.code.ENOENT,e)}return Object.keys(n[t[r]]).filter(Boolean)};MemoryFileSystem.prototype.mkdirpSync=function(e){var t=pathToArray(e);if(t.length===0)return;var n=this.data;for(var r=0;r<t.length;r++){if(isFile(n[t[r]]))throw new MemoryFileSystemError(i.code.ENOTDIR,e);else if(!isDir(n[t[r]]))n[t[r]]={"":true};n=n[t[r]]}return};MemoryFileSystem.prototype.mkdirSync=function(e){var t=pathToArray(e);if(t.length===0)return;var n=this.data;for(var r=0;r<t.length-1;r++){if(!isDir(n[t[r]]))throw new MemoryFileSystemError(i.code.ENOENT,e);n=n[t[r]]}if(isDir(n[t[r]]))throw new MemoryFileSystemError(i.code.EEXIST,e);else if(isFile(n[t[r]]))throw new MemoryFileSystemError(i.code.ENOTDIR,e);n[t[r]]={"":true};return};MemoryFileSystem.prototype._remove=function(e,t,n){var r=pathToArray(e);if(r.length===0){throw new MemoryFileSystemError(i.code.EPERM,e)}var s=this.data;for(var o=0;o<r.length-1;o++){if(!isDir(s[r[o]]))throw new MemoryFileSystemError(i.code.ENOENT,e);s=s[r[o]]}if(!n(s[r[o]]))throw new MemoryFileSystemError(i.code.ENOENT,e);delete s[r[o]];return};MemoryFileSystem.prototype.rmdirSync=function(e){return this._remove(e,"Directory",isDir)};MemoryFileSystem.prototype.unlinkSync=function(e){return this._remove(e,"File",isFile)};MemoryFileSystem.prototype.readlinkSync=function(e){throw new MemoryFileSystemError(i.code.ENOSYS,e)};MemoryFileSystem.prototype.writeFileSync=function(e,t,n){if(!t&&!n)throw new Error("No content");var r=pathToArray(e);if(r.length===0){throw new MemoryFileSystemError(i.code.EISDIR,e)}var s=this.data;for(var o=0;o<r.length-1;o++){if(!isDir(s[r[o]]))throw new MemoryFileSystemError(i.code.ENOENT,e);s=s[r[o]]}if(isDir(s[r[o]]))throw new MemoryFileSystemError(i.code.EISDIR,e);s[r[o]]=n||typeof t==="string"?new Buffer(t,n):t;return};MemoryFileSystem.prototype.join=n(89987);MemoryFileSystem.prototype.pathToArray=pathToArray;MemoryFileSystem.prototype.normalize=r;MemoryFileSystem.prototype.createReadStream=function(e,t){var n=new o;var r=false;var i;try{i=this.readFileSync(e)}catch(e){n._read=function(){if(r){return}r=true;this.emit("error",e);this.push(null)};return n}t=t||{};t.start=t.start||0;t.end=t.end||i.length;n._read=function(){if(r){return}r=true;this.push(i.slice(t.start,t.end));this.push(null)};return n};MemoryFileSystem.prototype.createWriteStream=function(e,t){var n=new a,r=this;try{this.writeFileSync(e,new Buffer(0))}catch(e){n.once("prefinish",function(){n.emit("error",e)});return n}var i=[],s=0;n._write=function(t,n,o){i.push(t);s+=t.length;r.writeFile(e,Buffer.concat(i,s),o)};return n};["stat","readdir","mkdirp","rmdir","unlink","readlink"].forEach(function(e){MemoryFileSystem.prototype[e]=function(t,n){try{var r=this[e+"Sync"](t)}catch(e){setImmediate(function(){n(e)});return}setImmediate(function(){n(null,r)})}});["mkdir","readFile"].forEach(function(e){MemoryFileSystem.prototype[e]=function(t,n,r){if(!r){r=n;n=undefined}try{var i=this[e+"Sync"](t,n)}catch(e){setImmediate(function(){r(e)});return}setImmediate(function(){r(null,i)})}});MemoryFileSystem.prototype.exists=function(e,t){return t(this.existsSync(e))};MemoryFileSystem.prototype.writeFile=function(e,t,n,r){if(!r){r=n;n=undefined}try{this.writeFileSync(e,t,n)}catch(e){return r(e)}return r()}},89987:(e,t,n)=>{var r=n(48333);var i=/^[A-Z]:([\\\/]|$)/i;var s=/^\//i;e.exports=function join(e,t){if(!t)return r(e);if(i.test(t))return r(t.replace(/\//g,"\\"));if(s.test(t))return r(t);if(e=="/")return r(e+t);if(i.test(e))return r(e.replace(/\//g,"\\")+"\\"+t.replace(/\//g,"\\"));if(s.test(e))return r(e+"/"+t);return r(e+"/"+t)}},48333:e=>{e.exports=function normalize(e){var t=e.split(/(\\+|\/+)/);if(t.length===1)return e;var n=[];var r=0;for(var i=0,s=false;i<t.length;i++,s=!s){var o=t[i];if(i===0&&/^([A-Z]:)?$/i.test(o)){n.push(o);r=2}else if(s){n.push(o[0])}else if(o===".."){switch(n.length){case 0:n.push(o);break;case 2:i++;s=!s;n.length=r;break;case 4:if(r===0){n.length-=3}else{i++;s=!s;n.length=2}break;default:n.length-=3;break}}else if(o==="."){switch(n.length){case 0:n.push(o);break;case 2:if(r===0){n.length--}else{i++;s=!s}break;default:n.length--;break}}else if(o){n.push(o)}}if(n.length===1&&/^[A-Za-z]:$/.test(n))return n[0]+"\\";return n.join("")}},33089:(e,t,n)=>{"use strict";const{PassThrough:r}=n(92413);e.exports=function(){var e=[];var t=new r({objectMode:true});t.setMaxListeners(0);t.add=add;t.isEmpty=isEmpty;t.on("unpipe",remove);Array.prototype.slice.call(arguments).forEach(add);return t;function add(n){if(Array.isArray(n)){n.forEach(add);return this}e.push(n);n.once("end",remove.bind(null,n));n.once("error",t.emit.bind(t,"error"));n.pipe(t,{end:false});return this}function isEmpty(){return e.length==0}function remove(n){e=e.filter(function(e){return e!==n});if(!e.length&&t.readable){t.end()}}}},642:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(85622)}catch(e){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=n(23215);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,r,i){return minimatch(n,e,t)}}function ext(e,t){e=e||{};t=t||{};var n={};Object.keys(t).forEach(function(e){n[e]=t[e]});Object.keys(e).forEach(function(t){n[t]=e[t]});return n}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))};return n};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(r.sep!=="/"){e=e.split(r.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,n);n=this.globParts=n.map(function(e){return e.split(p)});this.debug(this.pattern,n);n=n.map(function(e,t,n){return e.map(this.parse,this)},this);this.debug(this.pattern,n);n=n.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var r=0;if(n.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.substr(r);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return s(e)}Minimatch.prototype.parse=parse;var d={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var n=this.options;if(!n.noglobstar&&e==="**")return i;if(e==="")return"";var r="";var s=!!n.nocase;var u=false;var l=[];var p=[];var h;var m=false;var g=-1;var y=-1;var v=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(h){switch(h){case"*":r+=c;s=true;break;case"?":r+=a;s=true;break;default:r+="\\"+h;break}_.debug("clearStateChar %j %j",h,r);h=false}}for(var b=0,E=e.length,w;b<E&&(w=e.charAt(b));b++){this.debug("%s\t%s %s %j",e,b,r,w);if(u&&f[w]){r+="\\"+w;u=false;continue}switch(w){case"/":return false;case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,b,r,w);if(m){this.debug(" in class");if(w==="!"&&b===y+1)w="^";r+=w;continue}_.debug("call clearStateChar %j",h);clearStateChar();h=w;if(n.noext)clearStateChar();continue;case"(":if(m){r+="(";continue}if(!h){r+="\\(";continue}l.push({type:h,start:b-1,reStart:r.length,open:o[h].open,close:o[h].close});r+=h==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",h,r);h=false;continue;case")":if(m||!l.length){r+="\\)";continue}clearStateChar();s=true;var S=l.pop();r+=S.close;if(S.type==="!"){p.push(S)}S.reEnd=r.length;continue;case"|":if(m||!l.length||u){r+="\\|";u=false;continue}clearStateChar();r+="|";continue;case"[":clearStateChar();if(m){r+="\\"+w;continue}m=true;y=b;g=r.length;r+=w;continue;case"]":if(b===y+1||!m){r+="\\"+w;u=false;continue}if(m){var k=e.substring(y+1,b);try{RegExp("["+k+"]")}catch(e){var D=this.parse(k,d);r=r.substr(0,g)+"\\["+D[0]+"\\]";s=s||D[1];m=false;continue}}s=true;m=false;r+=w;continue;default:clearStateChar();if(u){u=false}else if(f[w]&&!(w==="^"&&m)){r+="\\"}r+=w}}if(m){k=e.substr(y+1);D=this.parse(k,d);r=r.substr(0,g)+"\\["+D[0];s=s||D[1]}for(S=l.pop();S;S=l.pop()){var x=r.slice(S.reStart+S.open.length);this.debug("setting tail",r,S);x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){if(!n){n="\\"}return t+t+n+"|"});this.debug("tail=%j\n %s",x,x,S,r);var C=S.type==="*"?c:S.type==="?"?a:"\\"+S.type;s=true;r=r.slice(0,S.reStart)+C+"\\("+x}clearStateChar();if(u){r+="\\\\"}var A=false;switch(r.charAt(0)){case".":case"[":case"(":A=true}for(var T=p.length-1;T>-1;T--){var M=p[T];var O=r.slice(0,M.reStart);var F=r.slice(M.reStart,M.reEnd-8);var I=r.slice(M.reEnd-8,M.reEnd);var R=r.slice(M.reEnd);I+=R;var P=O.split("(").length-1;var N=R;for(b=0;b<P;b++){N=N.replace(/\)[+*?]?/,"")}R=N;var L="";if(R===""&&t!==d){L="$"}var B=O+F+R+L+I;r=B}if(r!==""&&s){r="(?=.)"+r}if(A){r=v+r}if(t===d){return[r,s]}if(!s){return globUnescape(e)}var j=n.nocase?"i":"";try{var U=new RegExp("^"+r+"$",j)}catch(e){return new RegExp("$.")}U._glob=e;U._src=r;return U}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var n=t.noglobstar?c:t.dot?u:l;var r=t.nocase?"i":"";var s=e.map(function(e){return e.map(function(e){return e===i?n:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,r)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,n){n=n||{};var r=new Minimatch(t,n);e=e.filter(function(e){return r.match(e)});if(r.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var n=this.options;if(r.sep!=="/"){e=e.split(r.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(n.matchBase&&a.length===1){c=[s]}var u=this.matchOne(c,a,t);if(u){if(n.flipNegate)return true;return!this.negate}}if(n.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,n){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var f=s;var p=o+1;if(p===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return false}return true}while(f<a){var d=e[f];this.debug("\nglobstar while",e,f,t,p,d);if(this.matchOne(e.slice(f),t.slice(p),n)){this.debug("globstar found match!",f,a,d);return true}else{if(d==="."||d===".."||!r.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue");f++}}if(n){this.debug("\n>>> no match, partial?",e,f,t,p);if(f===a)return true}return false}var h;if(typeof u==="string"){if(r.nocase){h=l.toLowerCase()===u.toLowerCase()}else{h=l===u}this.debug("string match",u,l,h)}else{h=l.match(u);this.debug("pattern match",u,l,h)}if(!h)return false}if(s===a&&o===c){return true}else if(s===a){return n}else if(o===c){var m=s===a-1&&e[s]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},40535:e=>{e.exports=function(e,t){if(!t)t={};var n={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){n.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){n.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach(function(e){n.bools[e]=true})}var r={};Object.keys(t.alias||{}).forEach(function(e){r[e]=[].concat(t.alias[e]);r[e].forEach(function(t){r[t]=[e].concat(r[e].filter(function(e){return t!==e}))})});[].concat(t.string).filter(Boolean).forEach(function(e){n.strings[e]=true;if(r[e]){n.strings[r[e]]=true}});var i=t["default"]||{};var s={_:[]};Object.keys(n.bools).forEach(function(e){setArg(e,i[e]===undefined?false:i[e])});var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||r[e]}function setArg(e,t,i){if(i&&n.unknownFn&&!argDefined(e,i)){if(n.unknownFn(i)===false)return}var o=!n.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(r[e]||[]).forEach(function(e){setKey(s,e.split("."),o)})}function setKey(e,t,r){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(o==="__proto__")return;if(i[o]===undefined)i[o]={};if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype)i[o]={};if(i[o]===Array.prototype)i[o]=[];i=i[o]}var o=t[t.length-1];if(o==="__proto__")return;if(i===Object.prototype||i===Number.prototype||i===String.prototype)i={};if(i===Array.prototype)i=[];if(i[o]===undefined||n.bools[o]||typeof i[o]==="boolean"){i[o]=r}else if(Array.isArray(i[o])){i[o].push(r)}else{i[o]=[i[o],r]}}function aliasIsBoolean(e){return r[e].some(function(e){return n.bools[e]})}for(var a=0;a<e.length;a++){var c=e[a];if(/^--.+=/.test(c)){var u=c.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var f=u[2];if(n.bools[l]){f=f!=="false"}setArg(l,f,c)}else if(/^--no-.+/.test(c)){var l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){var l=c.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!n.bools[l]&&!n.allBools&&(r[l]?!aliasIsBoolean(l):true)){setArg(l,p,c);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",c);a++}else{setArg(l,n.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var d=c.slice(1,-1).split("");var h=false;for(var m=0;m<d.length;m++){var p=c.slice(m+2);if(p==="-"){setArg(d[m],p,c);continue}if(/[A-Za-z]/.test(d[m])&&/=/.test(p)){setArg(d[m],p.split("=")[1],c);h=true;break}if(/[A-Za-z]/.test(d[m])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(d[m],p,c);h=true;break}if(d[m+1]&&d[m+1].match(/\W/)){setArg(d[m],c.slice(m+2),c);h=true;break}else{setArg(d[m],n.strings[d[m]]?"":true,c)}}var l=c.slice(-1)[0];if(!h&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!n.bools[l]&&(r[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a++}else{setArg(l,n.strings[l]?"":true,c)}}}else{if(!n.unknownFn||n.unknownFn(c)!==false){s._.push(n.strings["_"]||!isNumber(c)?c:Number(c))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach(function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(r[e]||[]).forEach(function(t){setKey(s,t.split("."),i[e])})}});if(t["--"]){s["--"]=new Array;o.forEach(function(e){s["--"].push(e)})}else{o.forEach(function(e){s._.push(e)})}return s};function hasKey(e,t){var n=e;t.slice(0,-1).forEach(function(e){n=n[e]||{}});var r=t[t.length-1];return r in n}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}},19981:(e,t,n)=>{const r=n(24302);const i=Symbol("_data");const s=Symbol("_length");class Collect extends r{constructor(e){super(e);this[i]=[];this[s]=0}write(e,t,n){if(typeof t==="function")n=t,t="utf8";if(!t)t="utf8";const r=Buffer.isBuffer(e)?e:Buffer.from(e,t);this[i].push(r);this[s]+=r.length;if(n)n();return true}end(e,t,n){if(typeof e==="function")n=e,e=null;if(typeof t==="function")n=t,t="utf8";if(e)this.write(e,t);const r=Buffer.concat(this[i],this[s]);super.write(r);return super.end(n)}}e.exports=Collect;class CollectPassThrough extends r{constructor(e){super(e);this[i]=[];this[s]=0}write(e,t,n){if(typeof t==="function")n=t,t="utf8";if(!t)t="utf8";const r=Buffer.isBuffer(e)?e:Buffer.from(e,t);this[i].push(r);this[s]+=r.length;return super.write(e,t,n)}end(e,t,n){if(typeof e==="function")n=e,e=null;if(typeof t==="function")n=t,t="utf8";if(e)this.write(e,t);const r=Buffer.concat(this[i],this[s]);this.emit("collect",r);return super.end(n)}}e.exports.PassThrough=CollectPassThrough},55027:(e,t,n)=>{const r=n(24302);const i=Symbol("_flush");const s=Symbol("_flushed");const o=Symbol("_flushing");class Flush extends r{constructor(e={}){if(typeof e==="function")e={flush:e};super(e);if(typeof e.flush!=="function"&&typeof this.flush!=="function")throw new TypeError("must provide flush function in options");this[i]=e.flush||this.flush}emit(e,...t){if(e!=="end"&&e!=="finish"||this[s])return super.emit(e,...t);if(this[o])return;this[o]=true;const n=e=>{this[s]=true;e?super.emit("error",e):super.emit("end")};const r=this[i](n);if(r&&r.then)r.then(()=>n(),e=>n(e))}}e.exports=Flush},56435:(e,t,n)=>{const r=n(24302);const i=n(28614);const s=e=>e&&e instanceof i&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function");const o=Symbol("_head");const a=Symbol("_tail");const c=Symbol("_linkStreams");const u=Symbol("_setHead");const l=Symbol("_setTail");const f=Symbol("_onError");const p=Symbol("_onData");const d=Symbol("_onEnd");const h=Symbol("_onDrain");const m=Symbol("_streams");class Pipeline extends r{constructor(e,...t){if(s(e)){t.unshift(e);e={}}super(e);this[m]=[];if(t.length)this.push(...t)}[c](e){return e.reduce((e,t)=>{e.on("error",e=>t.emit("error",e));e.pipe(t);return t})}push(...e){this[m].push(...e);if(this[a])e.unshift(this[a]);const t=this[c](e);this[l](t);if(!this[o])this[u](e[0])}unshift(...e){this[m].unshift(...e);if(this[o])e.push(this[o]);const t=this[c](e);this[u](e[0]);if(!this[a])this[l](t)}destroy(e){this[m].forEach(e=>typeof e.destroy==="function"&&e.destroy());return super.destroy(e)}[l](e){this[a]=e;e.on("error",t=>this[f](e,t));e.on("data",t=>this[p](e,t));e.on("end",()=>this[d](e));e.on("finish",()=>this[d](e))}[f](e,t){if(e===this[a])this.emit("error",t)}[p](e,t){if(e===this[a])super.write(t)}[d](e){if(e===this[a])super.end()}pause(){super.pause();return this[a]&&this[a].pause&&this[a].pause()}emit(e,...t){if(e==="resume"&&this[a]&&this[a].resume)this[a].resume();return super.emit(e,...t)}[u](e){this[o]=e;e.on("drain",()=>this[h](e))}[h](e){if(e===this[o])this.emit("drain")}write(e,t,n){return this[o].write(e,t,n)&&(this.flowing||this.buffer.length===0)}end(e,t,n){this[o].end(e,t,n);return this}}e.exports=Pipeline},24302:(e,t,n)=>{"use strict";const r=n(28614);const i=n(92413);const s=n(83314);const o=n(24304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const u=Symbol("emittedEnd");const l=Symbol("emittingEnd");const f=Symbol("closed");const p=Symbol("read");const d=Symbol("flush");const h=Symbol("flushChunk");const m=Symbol("encoding");const g=Symbol("decoder");const y=Symbol("flowing");const v=Symbol("paused");const _=Symbol("resume");const b=Symbol("bufferLength");const E=Symbol("bufferPush");const w=Symbol("bufferShift");const S=Symbol("objectMode");const k=Symbol("destroyed");const D=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const x=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const C=D&&Symbol.iterator||Symbol("iterator not implemented");const A=e=>e==="end"||e==="finish"||e==="prefinish";const T=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const M=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends i{constructor(e){super();this[y]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[S]=e&&e.objectMode||false;if(this[S])this[m]=null;else this[m]=e&&e.encoding||null;if(this[m]==="buffer")this[m]=null;this[g]=this[m]?new o(this[m]):null;this[a]=false;this[u]=false;this[l]=false;this[f]=false;this.writable=true;this.readable=true;this[b]=0;this[k]=false}get bufferLength(){return this[b]}get encoding(){return this[m]}set encoding(e){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[m]&&e!==this[m]&&(this[g]&&this[g].lastNeed||this[b]))throw new Error("cannot change encoding");if(this[m]!==e){this[g]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[g].write(e))}this[m]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[S]}set objectMode(e){this[S]=this[S]||!!e}write(e,t,n){if(this[a])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")n=t,t="utf8";if(!t)t="utf8";if(!this[S]&&!Buffer.isBuffer(e)){if(M(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(T(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[b]!==0)this.emit("readable");if(n)n();return e}if(typeof e==="string"&&!this[S]&&!(t===this[m]&&!this[g].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[m])e=this[g].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[E](e),false)}finally{if(this[b]!==0)this.emit("readable");if(n)n()}}read(e){if(this[k])return null;try{if(this[b]===0||e===0||e>this[b])return null;if(this[S])e=null;if(this.buffer.length>1&&!this[S]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[b])])}return this[p](e||null,this.buffer.head.value)}finally{this[c]()}}[p](e,t){if(e===t.length||e===null)this[w]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[b]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,n){if(typeof e==="function")n=e,e=null;if(typeof t==="function")n=t,t="utf8";if(e)this.write(e,t);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[_](){if(this[k])return;this[v]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[_]()}pause(){this[y]=false;this[v]=true}get destroyed(){return this[k]}get flowing(){return this[y]}get paused(){return this[v]}[E](e){if(this[S])this[b]+=1;else this[b]+=e.length;return this.buffer.push(e)}[w](){if(this.buffer.length){if(this[S])this[b]-=1;else this[b]-=this.buffer.head.value.length}return this.buffer.shift()}[d](){do{}while(this[h](this[w]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[h](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[k])return;const n=this[u];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const r={dest:e,opts:t,ondrain:e=>this[_]()};this.pipes.push(r);e.on("drain",r.ondrain);this[_]();if(n&&r.opts.end)r.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[_]();else if(A(e)&&this[u]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[u]}[c](){if(!this[l]&&!this[u]&&!this[k]&&this.buffer.length===0&&this[a]){this[l]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[f])this.emit("close");this[l]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==k&&this[k])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[u]===true)return;this[u]=true;this.readable=false;if(this[g]){t=this[g].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[f]=true;if(!this[u]&&!this[k])return}const n=new Array(arguments.length);n[0]=e;n[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){n[e]=arguments[e]}}try{return super.emit.apply(this,n)}finally{if(!A(e))this[c]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[S])e.dataLength=0;const t=this.promise();this.on("data",t=>{e.push(t);if(!this[S])e.dataLength+=t.length});return t.then(()=>e)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(k,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[x](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let n=null;const r=e=>{this.removeListener("data",i);this.removeListener("end",s);n(e)};const i=e=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();t({value:e,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);t({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((e,a)=>{n=a;t=e;this.once(k,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:e}}[C](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[k]){if(e)this.emit("error",e);else this.emit(k);return this}this[k]=true;this.buffer=new s;this[b]=0;if(typeof this.close==="function"&&!this[f])this.close();if(e)this.emit("error",e);else this.emit(k);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof i||e instanceof r&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},62355:function(e,t){(function(e,n){"use strict";true?n(t):0})(this,function(e){"use strict";var t=function noop(){};var n=function throwError(){throw new Error("Callback was already called.")};var r=5;var i=0;var s="object";var o="function";var a=Array.isArray;var c=Object.keys;var u=Array.prototype.push;var l=typeof Symbol===o&&Symbol.iterator;var f,p,d;createImmediate();var h=createEach(arrayEach,baseEach,symbolEach);var m=createMap(arrayEachIndex,baseEachIndex,symbolEachIndex,true);var g=createMap(arrayEachIndex,baseEachKey,symbolEachKey,false);var y=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,true);var v=createFilterSeries(true);var _=createFilterLimit(true);var b=createFilter(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue,false);var E=createFilterSeries(false);var w=createFilterLimit(false);var S=createDetect(arrayEachValue,baseEachValue,symbolEachValue,true);var k=createDetectSeries(true);var D=createDetectLimit(true);var x=createEvery(arrayEachValue,baseEachValue,symbolEachValue);var C=createEverySeries();var A=createEveryLimit();var T=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,true);var M=createPickSeries(true);var O=createPickLimit(true);var F=createPick(arrayEachIndexValue,baseEachKeyValue,symbolEachKeyValue,false);var I=createPickSeries(false);var R=createPickLimit(false);var P=createTransform(arrayEachResult,baseEachResult,symbolEachResult);var N=createSortBy(arrayEachIndexValue,baseEachIndexValue,symbolEachIndexValue);var L=createConcat(arrayEachIndex,baseEachIndex,symbolEachIndex);var B=createGroupBy(arrayEachValue,baseEachValue,symbolEachValue);var j=createParallel(arrayEachFunc,baseEachFunc);var U=createApplyEach(m);var z=createApplyEach(mapSeries);var H=createLogger("log");var V=createLogger("dir");var G={VERSION:"2.6.2",each:h,eachSeries:eachSeries,eachLimit:eachLimit,forEach:h,forEachSeries:eachSeries,forEachLimit:eachLimit,eachOf:h,eachOfSeries:eachSeries,eachOfLimit:eachLimit,forEachOf:h,forEachOfSeries:eachSeries,forEachOfLimit:eachLimit,map:m,mapSeries:mapSeries,mapLimit:mapLimit,mapValues:g,mapValuesSeries:mapValuesSeries,mapValuesLimit:mapValuesLimit,filter:y,filterSeries:v,filterLimit:_,select:y,selectSeries:v,selectLimit:_,reject:b,rejectSeries:E,rejectLimit:w,detect:S,detectSeries:k,detectLimit:D,find:S,findSeries:k,findLimit:D,pick:T,pickSeries:M,pickLimit:O,omit:F,omitSeries:I,omitLimit:R,reduce:reduce,inject:reduce,foldl:reduce,reduceRight:reduceRight,foldr:reduceRight,transform:P,transformSeries:transformSeries,transformLimit:transformLimit,sortBy:N,sortBySeries:sortBySeries,sortByLimit:sortByLimit,some:some,someSeries:someSeries,someLimit:someLimit,any:some,anySeries:someSeries,anyLimit:someLimit,every:x,everySeries:C,everyLimit:A,all:x,allSeries:C,allLimit:A,concat:L,concatSeries:concatSeries,concatLimit:concatLimit,groupBy:B,groupBySeries:groupBySeries,groupByLimit:groupByLimit,parallel:j,series:series,parallelLimit:parallelLimit,tryEach:tryEach,waterfall:waterfall,angelFall:angelFall,angelfall:angelFall,whilst:whilst,doWhilst:doWhilst,until:until,doUntil:doUntil,during:during,doDuring:doDuring,forever:forever,compose:compose,seq:seq,applyEach:U,applyEachSeries:z,queue:queue,priorityQueue:priorityQueue,cargo:cargo,auto:auto,autoInject:autoInject,retry:retry,retryable:retryable,iterator:iterator,times:times,timesSeries:timesSeries,timesLimit:timesLimit,race:race,apply:apply,nextTick:p,setImmediate:d,memoize:memoize,unmemoize:unmemoize,ensureAsync:ensureAsync,constant:constant,asyncify:asyncify,wrapSync:asyncify,log:H,dir:V,reflect:reflect,reflectAll:reflectAll,timeout:timeout,createLogger:createLogger,safe:safe,fast:fast};e["default"]=G;baseEachSync(G,function(t,n){e[n]=t},c(G));function createImmediate(e){var t=function delay(e){var t=slice(arguments,1);setTimeout(function(){e.apply(null,t)})};d=typeof setImmediate===o?setImmediate:t;if(typeof process===s&&typeof process.nextTick===o){f=/^v0.10/.test(process.version)?d:process.nextTick;p=/^v0/.test(process.version)?d:process.nextTick}else{p=f=d}if(e===false){f=function(e){e()}}}function createArray(e){var t=-1;var n=e.length;var r=Array(n);while(++t<n){r[t]=e[t]}return r}function slice(e,t){var n=e.length;var r=-1;var i=n-t;if(i<=0){return[]}var s=Array(i);while(++r<i){s[r]=e[r+t]}return s}function objectClone(e){var t=c(e);var n=t.length;var r=-1;var i={};while(++r<n){var s=t[r];i[s]=e[s]}return i}function compact(e){var t=-1;var n=e.length;var r=[];while(++t<n){var i=e[t];if(i){r[r.length]=i}}return r}function reverse(e){var t=-1;var n=e.length;var r=Array(n);var i=n;while(++t<n){r[--i]=e[t]}return r}function has(e,t){return e.hasOwnProperty(t)}function notInclude(e,t){var n=-1;var r=e.length;while(++n<r){if(e[n]===t){return false}}return true}function arrayEachSync(e,t){var n=-1;var r=e.length;while(++n<r){t(e[n],n)}return e}function baseEachSync(e,t,n){var r=-1;var i=n.length;while(++r<i){var s=n[r];t(e[s],s)}return e}function timesSync(e,t){var n=-1;while(++n<e){t(n)}}function sortByCriteria(e,t){var n=e.length;var r=Array(n);var i;for(i=0;i<n;i++){r[i]=i}quickSort(t,0,n-1,r);var s=Array(n);for(var o=0;o<n;o++){i=r[o];s[o]=i===undefined?e[o]:e[i]}return s}function partition(e,t,n,r,i){var s=t;var o=n;while(s<=o){t=s;while(s<o&&e[s]<r){s++}while(o>=t&&e[o]>=r){o--}if(s>o){break}swap(e,i,s++,o--)}return s}function swap(e,t,n,r){var i=e[n];e[n]=e[r];e[r]=i;var s=t[n];t[n]=t[r];t[r]=s}function quickSort(e,t,n,r){if(t===n){return}var i=t;while(++i<=n&&e[t]===e[i]){var s=i-1;if(r[s]>r[i]){var o=r[s];r[s]=r[i];r[i]=o}}if(i>n){return}var a=e[t]>e[i]?t:i;i=partition(e,t,n,e[a],r);quickSort(e,t,i-1,r);quickSort(e,i,n,r)}function makeConcatResult(e){var n=[];arrayEachSync(e,function(e){if(e===t){return}if(a(e)){u.apply(n,e)}else{n.push(e)}});return n}function arrayEach(e,t,n){var r=-1;var i=e.length;if(t.length===3){while(++r<i){t(e[r],r,onlyOnce(n))}}else{while(++r<i){t(e[r],onlyOnce(n))}}}function baseEach(e,t,n,r){var i;var s=-1;var o=r.length;if(t.length===3){while(++s<o){i=r[s];t(e[i],i,onlyOnce(n))}}else{while(++s<o){t(e[r[s]],onlyOnce(n))}}}function symbolEach(e,t,n){var r=e[l]();var i=0;var s;if(t.length===3){while((s=r.next()).done===false){t(s.value,i++,onlyOnce(n))}}else{while((s=r.next()).done===false){i++;t(s.value,onlyOnce(n))}}return i}function arrayEachResult(e,t,n,r){var i=-1;var s=e.length;if(n.length===4){while(++i<s){n(t,e[i],i,onlyOnce(r))}}else{while(++i<s){n(t,e[i],onlyOnce(r))}}}function baseEachResult(e,t,n,r,i){var s;var o=-1;var a=i.length;if(n.length===4){while(++o<a){s=i[o];n(t,e[s],s,onlyOnce(r))}}else{while(++o<a){n(t,e[i[o]],onlyOnce(r))}}}function symbolEachResult(e,t,n,r){var i;var s=0;var o=e[l]();if(n.length===4){while((i=o.next()).done===false){n(t,i.value,s++,onlyOnce(r))}}else{while((i=o.next()).done===false){s++;n(t,i.value,onlyOnce(r))}}return s}function arrayEachFunc(e,t){var n=-1;var r=e.length;while(++n<r){e[n](t(n))}}function baseEachFunc(e,t,n){var r;var i=-1;var s=n.length;while(++i<s){r=n[i];e[r](t(r))}}function arrayEachIndex(e,t,n){var r=-1;var i=e.length;if(t.length===3){while(++r<i){t(e[r],r,n(r))}}else{while(++r<i){t(e[r],n(r))}}}function baseEachIndex(e,t,n,r){var i;var s=-1;var o=r.length;if(t.length===3){while(++s<o){i=r[s];t(e[i],i,n(s))}}else{while(++s<o){t(e[r[s]],n(s))}}}function symbolEachIndex(e,t,n){var r;var i=0;var s=e[l]();if(t.length===3){while((r=s.next()).done===false){t(r.value,i,n(i++))}}else{while((r=s.next()).done===false){t(r.value,n(i++))}}return i}function baseEachKey(e,t,n,r){var i;var s=-1;var o=r.length;if(t.length===3){while(++s<o){i=r[s];t(e[i],i,n(i))}}else{while(++s<o){i=r[s];t(e[i],n(i))}}}function symbolEachKey(e,t,n){var r;var i=0;var s=e[l]();if(t.length===3){while((r=s.next()).done===false){t(r.value,i,n(i++))}}else{while((r=s.next()).done===false){t(r.value,n(i++))}}return i}function arrayEachValue(e,t,n){var r;var i=-1;var s=e.length;if(t.length===3){while(++i<s){r=e[i];t(r,i,n(r))}}else{while(++i<s){r=e[i];t(r,n(r))}}}function baseEachValue(e,t,n,r){var i,s;var o=-1;var a=r.length;if(t.length===3){while(++o<a){i=r[o];s=e[i];t(s,i,n(s))}}else{while(++o<a){s=e[r[o]];t(s,n(s))}}}function symbolEachValue(e,t,n){var r,i;var s=0;var o=e[l]();if(t.length===3){while((i=o.next()).done===false){r=i.value;t(r,s++,n(r))}}else{while((i=o.next()).done===false){s++;r=i.value;t(r,n(r))}}return s}function arrayEachIndexValue(e,t,n){var r;var i=-1;var s=e.length;if(t.length===3){while(++i<s){r=e[i];t(r,i,n(i,r))}}else{while(++i<s){r=e[i];t(r,n(i,r))}}}function baseEachIndexValue(e,t,n,r){var i,s;var o=-1;var a=r.length;if(t.length===3){while(++o<a){i=r[o];s=e[i];t(s,i,n(o,s))}}else{while(++o<a){s=e[r[o]];t(s,n(o,s))}}}function symbolEachIndexValue(e,t,n){var r,i;var s=0;var o=e[l]();if(t.length===3){while((i=o.next()).done===false){r=i.value;t(r,s,n(s++,r))}}else{while((i=o.next()).done===false){r=i.value;t(r,n(s++,r))}}return s}function baseEachKeyValue(e,t,n,r){var i,s;var o=-1;var a=r.length;if(t.length===3){while(++o<a){i=r[o];s=e[i];t(s,i,n(i,s))}}else{while(++o<a){i=r[o];s=e[i];t(s,n(i,s))}}}function symbolEachKeyValue(e,t,n){var r,i;var s=0;var o=e[l]();if(t.length===3){while((i=o.next()).done===false){r=i.value;t(r,s,n(s++,r))}}else{while((i=o.next()).done===false){r=i.value;t(r,n(s++,r))}}return s}function onlyOnce(e){return function(t,r){var i=e;e=n;i(t,r)}}function once(e){return function(n,r){var i=e;e=t;i(n,r)}}function createEach(e,n,r){return function each(i,o,u){u=once(u||t);var f,p;var d=0;if(a(i)){f=i.length;e(i,o,done)}else if(!i){}else if(l&&i[l]){f=r(i,o,done);f&&f===d&&u(null)}else if(typeof i===s){p=c(i);f=p.length;n(i,o,done,p)}if(!f){u(null)}function done(e,t){if(e){u=once(u);u(e)}else if(++d===f){u(null)}else if(t===false){u=once(u);u(null)}}}}function createMap(e,r,i,o){var u,f;if(o){u=Array;f=createArray}else{u=function(){return{}};f=objectClone}return function(o,p,d){d=d||t;var h,m,g;var y=0;if(a(o)){h=o.length;g=u(h);e(o,p,createCallback)}else if(!o){}else if(l&&o[l]){g=u(0);h=i(o,p,createCallback);h&&h===y&&d(null,g)}else if(typeof o===s){m=c(o);h=m.length;g=u(h);r(o,p,createCallback,m)}if(!h){d(null,u())}function createCallback(e){return function done(t,r){if(e===null){n()}if(t){e=null;d=once(d);d(t,f(g));return}g[e]=r;e=null;if(++y===h){d(null,g)}}}}}function createFilter(e,r,i,o){return function(u,f,p){p=p||t;var d,h,m;var g=0;if(a(u)){d=u.length;m=Array(d);e(u,f,createCallback)}else if(!u){}else if(l&&u[l]){m=[];d=i(u,f,createCallback);d&&d===g&&p(null,compact(m))}else if(typeof u===s){h=c(u);d=h.length;m=Array(d);r(u,f,createCallback,h)}if(!d){return p(null,[])}function createCallback(e,t){return function done(r,i){if(e===null){n()}if(r){e=null;p=once(p);p(r);return}if(!!i===o){m[e]=t}e=null;if(++g===d){p(null,compact(m))}}}}}function createFilterSeries(e){return function(r,i,o){o=onlyOnce(o||t);var u,p,d,h,m,g,y;var v=false;var _=0;var b=[];if(a(r)){u=r.length;y=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){u=Infinity;m=r[l]();y=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){h=c(r);u=h.length;y=i.length===3?objectIteratorWithKey:objectIterator}if(!u){return o(null,[])}y();function arrayIterator(){d=r[_];i(d,done)}function arrayIteratorWithIndex(){d=r[_];i(d,_,done)}function symbolIterator(){g=m.next();d=g.value;g.done?o(null,b):i(d,done)}function symbolIteratorWithKey(){g=m.next();d=g.value;g.done?o(null,b):i(d,_,done)}function objectIterator(){p=h[_];d=r[p];i(d,done)}function objectIteratorWithKey(){p=h[_];d=r[p];i(d,p,done)}function done(t,r){if(t){o(t);return}if(!!r===e){b[b.length]=d}if(++_===u){y=n;o(null,b)}else if(v){f(y)}else{v=true;y()}v=false}}}function createFilterLimit(e){return function(r,i,o,u){u=u||t;var p,d,h,m,g,y,v,_,b;var E=false;var w=0;var S=0;if(a(r)){p=r.length;_=o.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){p=Infinity;b=[];y=r[l]();_=o.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){g=c(r);p=g.length;_=o.length===3?objectIteratorWithKey:objectIterator}if(!p||isNaN(i)||i<1){return u(null,[])}b=b||Array(p);timesSync(i>p?p:i,_);function arrayIterator(){d=w++;if(d<p){m=r[d];o(m,createCallback(m,d))}}function arrayIteratorWithIndex(){d=w++;if(d<p){m=r[d];o(m,d,createCallback(m,d))}}function symbolIterator(){v=y.next();if(v.done===false){m=v.value;o(m,createCallback(m,w++))}else if(S===w&&o!==t){o=t;u(null,compact(b))}}function symbolIteratorWithKey(){v=y.next();if(v.done===false){m=v.value;o(m,w,createCallback(m,w++))}else if(S===w&&o!==t){o=t;u(null,compact(b))}}function objectIterator(){d=w++;if(d<p){m=r[g[d]];o(m,createCallback(m,d))}}function objectIteratorWithKey(){d=w++;if(d<p){h=g[d];m=r[h];o(m,h,createCallback(m,d))}}function createCallback(r,i){return function(s,o){if(i===null){n()}if(s){i=null;_=t;u=once(u);u(s);return}if(!!o===e){b[i]=r}i=null;if(++S===p){u=onlyOnce(u);u(null,compact(b))}else if(E){f(_)}else{E=true;_()}E=false}}}}function eachSeries(e,r,i){i=onlyOnce(i||t);var o,u,p,d,h,m;var g=false;var y=0;if(a(e)){o=e.length;m=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;d=e[l]();m=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){p=c(e);o=p.length;m=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null)}m();function arrayIterator(){r(e[y],done)}function arrayIteratorWithIndex(){r(e[y],y,done)}function symbolIterator(){h=d.next();h.done?i(null):r(h.value,done)}function symbolIteratorWithKey(){h=d.next();h.done?i(null):r(h.value,y,done)}function objectIterator(){r(e[p[y]],done)}function objectIteratorWithKey(){u=p[y];r(e[u],u,done)}function done(e,t){if(e){i(e)}else if(++y===o||t===false){m=n;i(null)}else if(g){f(m)}else{g=true;m()}g=false}}function eachLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g,y;var v=false;var _=0;var b=0;if(a(e)){u=e.length;y=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;m=e[l]();y=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){h=c(e);u=h.length;y=i.length===3?objectIteratorWithKey:objectIterator}else{return o(null)}if(!u||isNaN(r)||r<1){return o(null)}timesSync(r>u?u:r,y);function arrayIterator(){if(_<u){i(e[_++],done)}}function arrayIteratorWithIndex(){p=_++;if(p<u){i(e[p],p,done)}}function symbolIterator(){g=m.next();if(g.done===false){_++;i(g.value,done)}else if(b===_&&i!==t){i=t;o(null)}}function symbolIteratorWithKey(){g=m.next();if(g.done===false){i(g.value,_++,done)}else if(b===_&&i!==t){i=t;o(null)}}function objectIterator(){if(_<u){i(e[h[_++]],done)}}function objectIteratorWithKey(){p=_++;if(p<u){d=h[p];i(e[d],d,done)}}function done(e,r){if(e||r===false){y=t;o=once(o);o(e)}else if(++b===u){i=t;y=n;o=onlyOnce(o);o(null)}else if(v){f(y)}else{v=true;y()}v=false}}function mapSeries(e,r,i){i=i||t;var o,u,p,d,h,m,g;var y=false;var v=0;if(a(e)){o=e.length;g=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;m=[];d=e[l]();g=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){p=c(e);o=p.length;g=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null,[])}m=m||Array(o);g();function arrayIterator(){r(e[v],done)}function arrayIteratorWithIndex(){r(e[v],v,done)}function symbolIterator(){h=d.next();h.done?i(null,m):r(h.value,done)}function symbolIteratorWithKey(){h=d.next();h.done?i(null,m):r(h.value,v,done)}function objectIterator(){r(e[p[v]],done)}function objectIteratorWithKey(){u=p[v];r(e[u],u,done)}function done(e,t){if(e){g=n;i=onlyOnce(i);i(e,createArray(m));return}m[v]=t;if(++v===o){g=n;i(null,m);i=n}else if(y){f(g)}else{y=true;g()}y=false}}function mapLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g,y,v;var _=false;var b=0;var E=0;if(a(e)){u=e.length;v=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;y=[];m=e[l]();v=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){h=c(e);u=h.length;v=i.length===3?objectIteratorWithKey:objectIterator}if(!u||isNaN(r)||r<1){return o(null,[])}y=y||Array(u);timesSync(r>u?u:r,v);function arrayIterator(){p=b++;if(p<u){i(e[p],createCallback(p))}}function arrayIteratorWithIndex(){p=b++;if(p<u){i(e[p],p,createCallback(p))}}function symbolIterator(){g=m.next();if(g.done===false){i(g.value,createCallback(b++))}else if(E===b&&i!==t){i=t;o(null,y)}}function symbolIteratorWithKey(){g=m.next();if(g.done===false){i(g.value,b,createCallback(b++))}else if(E===b&&i!==t){i=t;o(null,y)}}function objectIterator(){p=b++;if(p<u){i(e[h[p]],createCallback(p))}}function objectIteratorWithKey(){p=b++;if(p<u){d=h[p];i(e[d],d,createCallback(p))}}function createCallback(e){return function(r,i){if(e===null){n()}if(r){e=null;v=t;o=once(o);o(r,createArray(y));return}y[e]=i;e=null;if(++E===u){v=n;o(null,y);o=n}else if(_){f(v)}else{_=true;v()}_=false}}}function mapValuesSeries(e,r,i){i=i||t;var o,u,p,d,h,m;var g=false;var y={};var v=0;if(a(e)){o=e.length;m=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;d=e[l]();m=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){p=c(e);o=p.length;m=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null,y)}m();function arrayIterator(){u=v;r(e[v],done)}function arrayIteratorWithIndex(){u=v;r(e[v],v,done)}function symbolIterator(){u=v;h=d.next();h.done?i(null,y):r(h.value,done)}function symbolIteratorWithKey(){u=v;h=d.next();h.done?i(null,y):r(h.value,v,done)}function objectIterator(){u=p[v];r(e[u],done)}function objectIteratorWithKey(){u=p[v];r(e[u],u,done)}function done(e,t){if(e){m=n;i=onlyOnce(i);i(e,objectClone(y));return}y[u]=t;if(++v===o){m=n;i(null,y);i=n}else if(g){f(m)}else{g=true;m()}g=false}}function mapValuesLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g,y;var v=false;var _={};var b=0;var E=0;if(a(e)){u=e.length;y=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;m=e[l]();y=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){h=c(e);u=h.length;y=i.length===3?objectIteratorWithKey:objectIterator}if(!u||isNaN(r)||r<1){return o(null,_)}timesSync(r>u?u:r,y);function arrayIterator(){p=b++;if(p<u){i(e[p],createCallback(p))}}function arrayIteratorWithIndex(){p=b++;if(p<u){i(e[p],p,createCallback(p))}}function symbolIterator(){g=m.next();if(g.done===false){i(g.value,createCallback(b++))}else if(E===b&&i!==t){i=t;o(null,_)}}function symbolIteratorWithKey(){g=m.next();if(g.done===false){i(g.value,b,createCallback(b++))}else if(E===b&&i!==t){i=t;o(null,_)}}function objectIterator(){p=b++;if(p<u){d=h[p];i(e[d],createCallback(d))}}function objectIteratorWithKey(){p=b++;if(p<u){d=h[p];i(e[d],d,createCallback(d))}}function createCallback(e){return function(r,i){if(e===null){n()}if(r){e=null;y=t;o=once(o);o(r,objectClone(_));return}_[e]=i;e=null;if(++E===u){o(null,_)}else if(v){f(y)}else{v=true;y()}v=false}}}function createDetect(e,r,i,o){return function(u,f,p){p=p||t;var d,h;var m=0;if(a(u)){d=u.length;e(u,f,createCallback)}else if(!u){}else if(l&&u[l]){d=i(u,f,createCallback);d&&d===m&&p(null)}else if(typeof u===s){h=c(u);d=h.length;r(u,f,createCallback,h)}if(!d){p(null)}function createCallback(e){var t=false;return function done(r,i){if(t){n()}t=true;if(r){p=once(p);p(r)}else if(!!i===o){p=once(p);p(null,e)}else if(++m===d){p(null)}}}}}function createDetectSeries(e){return function(r,i,o){o=onlyOnce(o||t);var u,p,d,h,m,g,y;var v=false;var _=0;if(a(r)){u=r.length;y=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){u=Infinity;m=r[l]();y=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){h=c(r);u=h.length;y=i.length===3?objectIteratorWithKey:objectIterator}if(!u){return o(null)}y();function arrayIterator(){d=r[_];i(d,done)}function arrayIteratorWithIndex(){d=r[_];i(d,_,done)}function symbolIterator(){g=m.next();d=g.value;g.done?o(null):i(d,done)}function symbolIteratorWithKey(){g=m.next();d=g.value;g.done?o(null):i(d,_,done)}function objectIterator(){d=r[h[_]];i(d,done)}function objectIteratorWithKey(){p=h[_];d=r[p];i(d,p,done)}function done(t,r){if(t){o(t)}else if(!!r===e){y=n;o(null,d)}else if(++_===u){y=n;o(null)}else if(v){f(y)}else{v=true;y()}v=false}}}function createDetectLimit(e){return function(r,i,o,u){u=u||t;var p,d,h,m,g,y,v,_;var b=false;var E=0;var w=0;if(a(r)){p=r.length;_=o.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){p=Infinity;y=r[l]();_=o.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){g=c(r);p=g.length;_=o.length===3?objectIteratorWithKey:objectIterator}if(!p||isNaN(i)||i<1){return u(null)}timesSync(i>p?p:i,_);function arrayIterator(){d=E++;if(d<p){m=r[d];o(m,createCallback(m))}}function arrayIteratorWithIndex(){d=E++;if(d<p){m=r[d];o(m,d,createCallback(m))}}function symbolIterator(){v=y.next();if(v.done===false){E++;m=v.value;o(m,createCallback(m))}else if(w===E&&o!==t){o=t;u(null)}}function symbolIteratorWithKey(){v=y.next();if(v.done===false){m=v.value;o(m,E++,createCallback(m))}else if(w===E&&o!==t){o=t;u(null)}}function objectIterator(){d=E++;if(d<p){m=r[g[d]];o(m,createCallback(m))}}function objectIteratorWithKey(){if(E<p){h=g[E++];m=r[h];o(m,h,createCallback(m))}}function createCallback(r){var i=false;return function(s,o){if(i){n()}i=true;if(s){_=t;u=once(u);u(s)}else if(!!o===e){_=t;u=once(u);u(null,r)}else if(++w===p){u(null)}else if(b){f(_)}else{b=true;_()}b=false}}}}function createPick(e,r,i,o){return function(u,f,p){p=p||t;var d,h;var m=0;var g={};if(a(u)){d=u.length;e(u,f,createCallback)}else if(!u){}else if(l&&u[l]){d=i(u,f,createCallback);d&&d===m&&p(null,g)}else if(typeof u===s){h=c(u);d=h.length;r(u,f,createCallback,h)}if(!d){return p(null,{})}function createCallback(e,t){return function done(r,i){if(e===null){n()}if(r){e=null;p=once(p);p(r,objectClone(g));return}if(!!i===o){g[e]=t}e=null;if(++m===d){p(null,g)}}}}}function createPickSeries(e){return function(r,i,o){o=onlyOnce(o||t);var u,p,d,h,m,g,y;var v=false;var _={};var b=0;if(a(r)){u=r.length;y=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){u=Infinity;m=r[l]();y=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){h=c(r);u=h.length;y=i.length===3?objectIteratorWithKey:objectIterator}if(!u){return o(null,{})}y();function arrayIterator(){p=b;d=r[b];i(d,done)}function arrayIteratorWithIndex(){p=b;d=r[b];i(d,b,done)}function symbolIterator(){p=b;g=m.next();d=g.value;g.done?o(null,_):i(d,done)}function symbolIteratorWithKey(){p=b;g=m.next();d=g.value;g.done?o(null,_):i(d,p,done)}function objectIterator(){p=h[b];d=r[p];i(d,done)}function objectIteratorWithKey(){p=h[b];d=r[p];i(d,p,done)}function done(t,r){if(t){o(t,_);return}if(!!r===e){_[p]=d}if(++b===u){y=n;o(null,_)}else if(v){f(y)}else{v=true;y()}v=false}}}function createPickLimit(e){return function(r,i,o,u){u=u||t;var p,d,h,m,g,y,v,_;var b=false;var E={};var w=0;var S=0;if(a(r)){p=r.length;_=o.length===3?arrayIteratorWithIndex:arrayIterator}else if(!r){}else if(l&&r[l]){p=Infinity;y=r[l]();_=o.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof r===s){g=c(r);p=g.length;_=o.length===3?objectIteratorWithKey:objectIterator}if(!p||isNaN(i)||i<1){return u(null,{})}timesSync(i>p?p:i,_);function arrayIterator(){d=w++;if(d<p){m=r[d];o(m,createCallback(m,d))}}function arrayIteratorWithIndex(){d=w++;if(d<p){m=r[d];o(m,d,createCallback(m,d))}}function symbolIterator(){v=y.next();if(v.done===false){m=v.value;o(m,createCallback(m,w++))}else if(S===w&&o!==t){o=t;u(null,E)}}function symbolIteratorWithKey(){v=y.next();if(v.done===false){m=v.value;o(m,w,createCallback(m,w++))}else if(S===w&&o!==t){o=t;u(null,E)}}function objectIterator(){if(w<p){h=g[w++];m=r[h];o(m,createCallback(m,h))}}function objectIteratorWithKey(){if(w<p){h=g[w++];m=r[h];o(m,h,createCallback(m,h))}}function createCallback(r,i){return function(s,o){if(i===null){n()}if(s){i=null;_=t;u=once(u);u(s,objectClone(E));return}if(!!o===e){E[i]=r}i=null;if(++S===p){_=n;u=onlyOnce(u);u(null,E)}else if(b){f(_)}else{b=true;_()}b=false}}}}function reduce(e,r,i,o){o=onlyOnce(o||t);var u,p,d,h,m,g;var y=false;var v=0;if(a(e)){u=e.length;g=i.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;h=e[l]();g=i.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){d=c(e);u=d.length;g=i.length===4?objectIteratorWithKey:objectIterator}if(!u){return o(null,r)}g(r);function arrayIterator(t){i(t,e[v],done)}function arrayIteratorWithIndex(t){i(t,e[v],v,done)}function symbolIterator(e){m=h.next();m.done?o(null,e):i(e,m.value,done)}function symbolIteratorWithKey(e){m=h.next();m.done?o(null,e):i(e,m.value,v,done)}function objectIterator(t){i(t,e[d[v]],done)}function objectIteratorWithKey(t){p=d[v];i(t,e[p],p,done)}function done(e,t){if(e){o(e,t)}else if(++v===u){i=n;o(null,t)}else if(y){f(function(){g(t)})}else{y=true;g(t)}y=false}}function reduceRight(e,r,i,o){o=onlyOnce(o||t);var u,p,d,h,m,g,y,v;var _=false;if(a(e)){u=e.length;v=i.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){y=[];m=e[l]();p=-1;while((g=m.next()).done===false){y[++p]=g.value}e=y;u=y.length;v=i.length===4?arrayIteratorWithIndex:arrayIterator}else if(typeof e===s){h=c(e);u=h.length;v=i.length===4?objectIteratorWithKey:objectIterator}if(!u){return o(null,r)}v(r);function arrayIterator(t){i(t,e[--u],done)}function arrayIteratorWithIndex(t){i(t,e[--u],u,done)}function objectIterator(t){i(t,e[h[--u]],done)}function objectIteratorWithKey(t){d=h[--u];i(t,e[d],d,done)}function done(e,t){if(e){o(e,t)}else if(u===0){v=n;o(null,t)}else if(_){f(function(){v(t)})}else{_=true;v(t)}_=false}}function createTransform(e,n,r){return function transform(i,o,u,f){if(arguments.length===3){f=u;u=o;o=undefined}f=f||t;var p,d,h;var m=0;if(a(i)){p=i.length;h=o!==undefined?o:[];e(i,h,u,done)}else if(!i){}else if(l&&i[l]){h=o!==undefined?o:{};p=r(i,h,u,done);p&&p===m&&f(null,h)}else if(typeof i===s){d=c(i);p=d.length;h=o!==undefined?o:{};n(i,h,u,done,d)}if(!p){f(null,o!==undefined?o:h||{})}function done(e,t){if(e){f=once(f);f(e,a(h)?createArray(h):objectClone(h))}else if(++m===p){f(null,h)}else if(t===false){f=once(f);f(null,a(h)?createArray(h):objectClone(h))}}}}function transformSeries(e,r,i,o){if(arguments.length===3){o=i;i=r;r=undefined}o=onlyOnce(o||t);var u,p,d,h,m,g,y;var v=false;var _=0;if(a(e)){u=e.length;y=r!==undefined?r:[];g=i.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;h=e[l]();y=r!==undefined?r:{};g=i.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){d=c(e);u=d.length;y=r!==undefined?r:{};g=i.length===4?objectIteratorWithKey:objectIterator}if(!u){return o(null,r!==undefined?r:y||{})}g();function arrayIterator(){i(y,e[_],done)}function arrayIteratorWithIndex(){i(y,e[_],_,done)}function symbolIterator(){m=h.next();m.done?o(null,y):i(y,m.value,done)}function symbolIteratorWithKey(){m=h.next();m.done?o(null,y):i(y,m.value,_,done)}function objectIterator(){i(y,e[d[_]],done)}function objectIteratorWithKey(){p=d[_];i(y,e[p],p,done)}function done(e,t){if(e){o(e,y)}else if(++_===u||t===false){g=n;o(null,y)}else if(v){f(g)}else{v=true;g()}v=false}}function transformLimit(e,n,r,i,o){if(arguments.length===4){o=i;i=r;r=undefined}o=o||t;var u,p,d,h,m,g,y,v;var _=false;var b=0;var E=0;if(a(e)){u=e.length;v=r!==undefined?r:[];y=i.length===4?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;m=e[l]();v=r!==undefined?r:{};y=i.length===4?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){h=c(e);u=h.length;v=r!==undefined?r:{};y=i.length===4?objectIteratorWithKey:objectIterator}if(!u||isNaN(n)||n<1){return o(null,r!==undefined?r:v||{})}timesSync(n>u?u:n,y);function arrayIterator(){p=b++;if(p<u){i(v,e[p],onlyOnce(done))}}function arrayIteratorWithIndex(){p=b++;if(p<u){i(v,e[p],p,onlyOnce(done))}}function symbolIterator(){g=m.next();if(g.done===false){b++;i(v,g.value,onlyOnce(done))}else if(E===b&&i!==t){i=t;o(null,v)}}function symbolIteratorWithKey(){g=m.next();if(g.done===false){i(v,g.value,b++,onlyOnce(done))}else if(E===b&&i!==t){i=t;o(null,v)}}function objectIterator(){p=b++;if(p<u){i(v,e[h[p]],onlyOnce(done))}}function objectIteratorWithKey(){p=b++;if(p<u){d=h[p];i(v,e[d],d,onlyOnce(done))}}function done(e,n){if(e||n===false){y=t;o(e||null,a(v)?createArray(v):objectClone(v));o=t}else if(++E===u){i=t;o(null,v)}else if(_){f(y)}else{_=true;y()}_=false}}function createSortBy(e,r,i){return function sortBy(o,u,f){f=f||t;var p,d,h;var m=0;if(a(o)){p=o.length;d=Array(p);h=Array(p);e(o,u,createCallback)}else if(!o){}else if(l&&o[l]){d=[];h=[];p=i(o,u,createCallback);p&&p===m&&f(null,sortByCriteria(d,h))}else if(typeof o===s){var g=c(o);p=g.length;d=Array(p);h=Array(p);r(o,u,createCallback,g)}if(!p){f(null,[])}function createCallback(e,t){var r=false;d[e]=t;return function done(t,i){if(r){n()}r=true;h[e]=i;if(t){f=once(f);f(t)}else if(++m===p){f(null,sortByCriteria(d,h))}}}}}function sortBySeries(e,r,i){i=onlyOnce(i||t);var o,u,p,d,h,m,g,y,v;var _=false;var b=0;if(a(e)){o=e.length;g=e;y=Array(o);v=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;g=[];y=[];h=e[l]();v=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){d=c(e);o=d.length;g=Array(o);y=Array(o);v=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null,[])}v();function arrayIterator(){p=e[b];r(p,done)}function arrayIteratorWithIndex(){p=e[b];r(p,b,done)}function symbolIterator(){m=h.next();if(m.done){return i(null,sortByCriteria(g,y))}p=m.value;g[b]=p;r(p,done)}function symbolIteratorWithKey(){m=h.next();if(m.done){return i(null,sortByCriteria(g,y))}p=m.value;g[b]=p;r(p,b,done)}function objectIterator(){p=e[d[b]];g[b]=p;r(p,done)}function objectIteratorWithKey(){u=d[b];p=e[u];g[b]=p;r(p,u,done)}function done(e,t){y[b]=t;if(e){i(e)}else if(++b===o){v=n;i(null,sortByCriteria(g,y))}else if(_){f(v)}else{_=true;v()}_=false}}function sortByLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g,y,v,_,b;var E=false;var w=0;var S=0;if(a(e)){u=e.length;m=e;b=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;y=e[l]();m=[];_=[];b=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){g=c(e);u=g.length;m=Array(u);b=i.length===3?objectIteratorWithKey:objectIterator}if(!u||isNaN(r)||r<1){return o(null,[])}_=_||Array(u);timesSync(r>u?u:r,b);function arrayIterator(){if(w<u){h=e[w];i(h,createCallback(h,w++))}}function arrayIteratorWithIndex(){p=w++;if(p<u){h=e[p];i(h,p,createCallback(h,p))}}function symbolIterator(){v=y.next();if(v.done===false){h=v.value;m[w]=h;i(h,createCallback(h,w++))}else if(S===w&&i!==t){i=t;o(null,sortByCriteria(m,_))}}function symbolIteratorWithKey(){v=y.next();if(v.done===false){h=v.value;m[w]=h;i(h,w,createCallback(h,w++))}else if(S===w&&i!==t){i=t;o(null,sortByCriteria(m,_))}}function objectIterator(){if(w<u){h=e[g[w]];m[w]=h;i(h,createCallback(h,w++))}}function objectIteratorWithKey(){if(w<u){d=g[w];h=e[d];m[w]=h;i(h,d,createCallback(h,w++))}}function createCallback(e,r){var i=false;return function(e,s){if(i){n()}i=true;_[r]=s;if(e){b=t;o(e);o=t}else if(++S===u){o(null,sortByCriteria(m,_))}else if(E){f(b)}else{E=true;b()}E=false}}}function some(e,n,r){r=r||t;S(e,n,done);function done(e,t){if(e){return r(e)}r(null,!!t)}}function someSeries(e,n,r){r=r||t;k(e,n,done);function done(e,t){if(e){return r(e)}r(null,!!t)}}function someLimit(e,n,r,i){i=i||t;D(e,n,r,done);function done(e,t){if(e){return i(e)}i(null,!!t)}}function createEvery(e,n,r){var i=createDetect(e,n,r,false);return function every(e,n,r){r=r||t;i(e,n,done);function done(e,t){if(e){return r(e)}r(null,!t)}}}function createEverySeries(){var e=createDetectSeries(false);return function everySeries(n,r,i){i=i||t;e(n,r,done);function done(e,t){if(e){return i(e)}i(null,!t)}}}function createEveryLimit(){var e=createDetectLimit(false);return function everyLimit(n,r,i,s){s=s||t;e(n,r,i,done);function done(e,t){if(e){return s(e)}s(null,!t)}}}function createConcat(e,r,i){return function concat(o,u,f){f=f||t;var p,d;var h=0;if(a(o)){p=o.length;d=Array(p);e(o,u,createCallback)}else if(!o){}else if(l&&o[l]){d=[];p=i(o,u,createCallback);p&&p===h&&f(null,d)}else if(typeof o===s){var m=c(o);p=m.length;d=Array(p);r(o,u,createCallback,m)}if(!p){f(null,[])}function createCallback(e){return function done(r,i){if(e===null){n()}if(r){e=null;f=once(f);arrayEachSync(d,function(e,n){if(e===undefined){d[n]=t}});f(r,makeConcatResult(d));return}switch(arguments.length){case 0:case 1:d[e]=t;break;case 2:d[e]=i;break;default:d[e]=slice(arguments,1);break}e=null;if(++h===p){f(null,makeConcatResult(d))}}}}}function concatSeries(e,r,i){i=onlyOnce(i||t);var o,p,d,h,m,g;var y=false;var v=[];var _=0;if(a(e)){o=e.length;g=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;h=e[l]();g=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){d=c(e);o=d.length;g=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null,v)}g();function arrayIterator(){r(e[_],done)}function arrayIteratorWithIndex(){r(e[_],_,done)}function symbolIterator(){m=h.next();m.done?i(null,v):r(m.value,done)}function symbolIteratorWithKey(){m=h.next();m.done?i(null,v):r(m.value,_,done)}function objectIterator(){r(e[d[_]],done)}function objectIteratorWithKey(){p=d[_];r(e[p],p,done)}function done(e,t){if(a(t)){u.apply(v,t)}else if(arguments.length>=2){u.apply(v,slice(arguments,1))}if(e){i(e,v)}else if(++_===o){g=n;i(null,v)}else if(y){f(g)}else{y=true;g()}y=false}}function concatLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g;var y=false;var v=0;var _=0;if(a(e)){u=e.length;m=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;g=[];d=e[l]();m=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){var b=c(e);u=b.length;m=i.length===3?objectIteratorWithKey:objectIterator}if(!u||isNaN(r)||r<1){return o(null,[])}g=g||Array(u);timesSync(r>u?u:r,m);function arrayIterator(){if(v<u){i(e[v],createCallback(v++))}}function arrayIteratorWithIndex(){if(v<u){i(e[v],v,createCallback(v++))}}function symbolIterator(){h=d.next();if(h.done===false){i(h.value,createCallback(v++))}else if(_===v&&i!==t){i=t;o(null,makeConcatResult(g))}}function symbolIteratorWithKey(){h=d.next();if(h.done===false){i(h.value,v,createCallback(v++))}else if(_===v&&i!==t){i=t;o(null,makeConcatResult(g))}}function objectIterator(){if(v<u){i(e[b[v]],createCallback(v++))}}function objectIteratorWithKey(){if(v<u){p=b[v];i(e[p],p,createCallback(v++))}}function createCallback(e){return function(r,i){if(e===null){n()}if(r){e=null;m=t;o=once(o);arrayEachSync(g,function(e,n){if(e===undefined){g[n]=t}});o(r,makeConcatResult(g));return}switch(arguments.length){case 0:case 1:g[e]=t;break;case 2:g[e]=i;break;default:g[e]=slice(arguments,1);break}e=null;if(++_===u){m=n;o(null,makeConcatResult(g));o=n}else if(y){f(m)}else{y=true;m()}y=false}}}function createGroupBy(e,r,i){return function groupBy(o,u,f){f=f||t;var p;var d=0;var h={};if(a(o)){p=o.length;e(o,u,createCallback)}else if(!o){}else if(l&&o[l]){p=i(o,u,createCallback);p&&p===d&&f(null,h)}else if(typeof o===s){var m=c(o);p=m.length;r(o,u,createCallback,m)}if(!p){f(null,{})}function createCallback(e){var t=false;return function done(r,i){if(t){n()}t=true;if(r){f=once(f);f(r,objectClone(h));return}var s=h[i];if(!s){h[i]=[e]}else{s.push(e)}if(++d===p){f(null,h)}}}}}function groupBySeries(e,r,i){i=onlyOnce(i||t);var o,u,p,d,h,m,g;var y=false;var v=0;var _={};if(a(e)){o=e.length;g=r.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){o=Infinity;h=e[l]();g=r.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){d=c(e);o=d.length;g=r.length===3?objectIteratorWithKey:objectIterator}if(!o){return i(null,_)}g();function arrayIterator(){p=e[v];r(p,done)}function arrayIteratorWithIndex(){p=e[v];r(p,v,done)}function symbolIterator(){m=h.next();p=m.value;m.done?i(null,_):r(p,done)}function symbolIteratorWithKey(){m=h.next();p=m.value;m.done?i(null,_):r(p,v,done)}function objectIterator(){p=e[d[v]];r(p,done)}function objectIteratorWithKey(){u=d[v];p=e[u];r(p,u,done)}function done(e,t){if(e){g=n;i=onlyOnce(i);i(e,objectClone(_));return}var r=_[t];if(!r){_[t]=[p]}else{r.push(p)}if(++v===o){g=n;i(null,_)}else if(y){f(g)}else{y=true;g()}y=false}}function groupByLimit(e,r,i,o){o=o||t;var u,p,d,h,m,g,y,v;var _=false;var b=0;var E=0;var w={};if(a(e)){u=e.length;v=i.length===3?arrayIteratorWithIndex:arrayIterator}else if(!e){}else if(l&&e[l]){u=Infinity;g=e[l]();v=i.length===3?symbolIteratorWithKey:symbolIterator}else if(typeof e===s){m=c(e);u=m.length;v=i.length===3?objectIteratorWithKey:objectIterator}if(!u||isNaN(r)||r<1){return o(null,w)}timesSync(r>u?u:r,v);function arrayIterator(){if(b<u){h=e[b++];i(h,createCallback(h))}}function arrayIteratorWithIndex(){p=b++;if(p<u){h=e[p];i(h,p,createCallback(h))}}function symbolIterator(){y=g.next();if(y.done===false){b++;h=y.value;i(h,createCallback(h))}else if(E===b&&i!==t){i=t;o(null,w)}}function symbolIteratorWithKey(){y=g.next();if(y.done===false){h=y.value;i(h,b++,createCallback(h))}else if(E===b&&i!==t){i=t;o(null,w)}}function objectIterator(){if(b<u){h=e[m[b++]];i(h,createCallback(h))}}function objectIteratorWithKey(){if(b<u){d=m[b++];h=e[d];i(h,d,createCallback(h))}}function createCallback(e){var r=false;return function(i,s){if(r){n()}r=true;if(i){v=t;o=once(o);o(i,objectClone(w));return}var a=w[s];if(!a){w[s]=[e]}else{a.push(e)}if(++E===u){o(null,w)}else if(_){f(v)}else{_=true;v()}_=false}}}function createParallel(e,r){return function parallel(i,o){o=o||t;var u,l,f;var p=0;if(a(i)){u=i.length;f=Array(u);e(i,createCallback)}else if(i&&typeof i===s){l=c(i);u=l.length;f={};r(i,createCallback,l)}if(!u){o(null,f)}function createCallback(e){return function(t,r){if(e===null){n()}if(t){e=null;o=once(o);o(t,f);return}f[e]=arguments.length<=2?r:slice(arguments,1);e=null;if(++p===u){o(null,f)}}}}}function series(e,r){r=r||t;var i,o,u,l,p;var d=false;var h=0;if(a(e)){i=e.length;l=Array(i);p=arrayIterator}else if(e&&typeof e===s){u=c(e);i=u.length;l={};p=objectIterator}else{return r(null)}if(!i){return r(null,l)}p();function arrayIterator(){o=h;e[h](done)}function objectIterator(){o=u[h];e[o](done)}function done(e,t){if(e){p=n;r=onlyOnce(r);r(e,l);return}l[o]=arguments.length<=2?t:slice(arguments,1);if(++h===i){p=n;r(null,l)}else if(d){f(p)}else{d=true;p()}d=false}}function parallelLimit(e,r,i){i=i||t;var o,u,l,p,d,h;var m=false;var g=0;var y=0;if(a(e)){o=e.length;d=Array(o);h=arrayIterator}else if(e&&typeof e===s){p=c(e);o=p.length;d={};h=objectIterator}if(!o||isNaN(r)||r<1){return i(null,d)}timesSync(r>o?o:r,h);function arrayIterator(){u=g++;if(u<o){e[u](createCallback(u))}}function objectIterator(){if(g<o){l=p[g++];e[l](createCallback(l))}}function createCallback(e){return function(r,s){if(e===null){n()}if(r){e=null;h=t;i=once(i);i(r,d);return}d[e]=arguments.length<=2?s:slice(arguments,1);e=null;if(++y===o){i(null,d)}else if(m){f(h)}else{m=true;h()}m=false}}}function tryEach(e,n){n=n||t;var r,i,o;var u=false;var l=0;if(a(e)){r=e.length;o=arrayIterator}else if(e&&typeof e===s){i=c(e);r=i.length;o=objectIterator}if(!r){return n(null)}o();function arrayIterator(){e[l](done)}function objectIterator(){e[i[l]](done)}function done(e,t){if(!e){if(arguments.length<=2){n(null,t)}else{n(null,slice(arguments,1))}}else if(++l===r){n(e)}else{u=true;o()}u=false}}function checkWaterfallTasks(e,t){if(!a(e)){t(new Error("First argument to waterfall must be an array of functions"));return false}if(e.length===0){t(null);return false}return true}function waterfallIterator(e,t,n){switch(t.length){case 0:case 1:return e(n);case 2:return e(t[1],n);case 3:return e(t[1],t[2],n);case 4:return e(t[1],t[2],t[3],n);case 5:return e(t[1],t[2],t[3],t[4],n);case 6:return e(t[1],t[2],t[3],t[4],t[5],n);default:t=slice(t,1);t.push(n);return e.apply(null,t)}}function waterfall(e,r){r=r||t;if(!checkWaterfallTasks(e,r)){return}var i,s,o,a;var c=0;var u=e.length;waterfallIterator(e[0],[],createCallback(0));function iterate(){waterfallIterator(i,s,createCallback(i))}function createCallback(l){return function next(p,d){if(l===undefined){r=t;n()}l=undefined;if(p){o=r;r=n;o(p);return}if(++c===u){o=r;r=n;if(arguments.length<=2){o(p,d)}else{o.apply(null,createArray(arguments))}return}if(a){s=arguments;i=e[c]||n;f(iterate)}else{a=true;waterfallIterator(e[c]||n,arguments,createCallback(c))}a=false}}}function angelFall(e,r){r=r||t;if(!checkWaterfallTasks(e,r)){return}var i=0;var s=false;var o=e.length;var a=e[i];var c=[];var u=function(){switch(a.length){case 0:try{next(null,a())}catch(e){next(e)}return;case 1:return a(next);case 2:return a(c[1],next);case 3:return a(c[1],c[2],next);case 4:return a(c[1],c[2],c[3],next);case 5:return a(c[1],c[2],c[3],c[4],next);default:c=slice(c,1);c[a.length-1]=next;return a.apply(null,c)}};u();function next(t,l){if(t){u=n;r=onlyOnce(r);r(t);return}if(++i===o){u=n;var p=r;r=n;if(arguments.length===2){p(t,l)}else{p.apply(null,createArray(arguments))}return}a=e[i];c=arguments;if(s){f(u)}else{s=true;u()}s=false}}function whilst(e,n,r){r=r||t;var i=false;if(e()){iterate()}else{r(null)}function iterate(){if(i){f(next)}else{i=true;n(done)}i=false}function next(){n(done)}function done(t,n){if(t){return r(t)}if(arguments.length<=2){if(e(n)){iterate()}else{r(null,n)}return}n=slice(arguments,1);if(e.apply(null,n)){iterate()}else{r.apply(null,[null].concat(n))}}}function doWhilst(e,n,r){r=r||t;var i=false;next();function iterate(){if(i){f(next)}else{i=true;e(done)}i=false}function next(){e(done)}function done(e,t){if(e){return r(e)}if(arguments.length<=2){if(n(t)){iterate()}else{r(null,t)}return}t=slice(arguments,1);if(n.apply(null,t)){iterate()}else{r.apply(null,[null].concat(t))}}}function until(e,n,r){r=r||t;var i=false;if(!e()){iterate()}else{r(null)}function iterate(){if(i){f(next)}else{i=true;n(done)}i=false}function next(){n(done)}function done(t,n){if(t){return r(t)}if(arguments.length<=2){if(!e(n)){iterate()}else{r(null,n)}return}n=slice(arguments,1);if(!e.apply(null,n)){iterate()}else{r.apply(null,[null].concat(n))}}}function doUntil(e,n,r){r=r||t;var i=false;next();function iterate(){if(i){f(next)}else{i=true;e(done)}i=false}function next(){e(done)}function done(e,t){if(e){return r(e)}if(arguments.length<=2){if(!n(t)){iterate()}else{r(null,t)}return}t=slice(arguments,1);if(!n.apply(null,t)){iterate()}else{r.apply(null,[null].concat(t))}}}function during(e,n,r){r=r||t;_test();function _test(){e(iterate)}function iterate(e,t){if(e){return r(e)}if(t){n(done)}else{r(null)}}function done(e){if(e){return r(e)}_test()}}function doDuring(e,n,r){r=r||t;iterate(null,true);function iterate(t,n){if(t){return r(t)}if(n){e(done)}else{r(null)}}function done(e,t){if(e){return r(e)}switch(arguments.length){case 0:case 1:n(iterate);break;case 2:n(t,iterate);break;default:var i=slice(arguments,1);i.push(iterate);n.apply(null,i);break}}}function forever(e,t){var n=false;iterate();function iterate(){e(next)}function next(e){if(e){if(t){return t(e)}throw e}if(n){f(iterate)}else{n=true;iterate()}n=false}}function compose(){return seq.apply(null,reverse(arguments))}function seq(){var e=createArray(arguments);return function(){var n=this;var r=createArray(arguments);var i=r[r.length-1];if(typeof i===o){r.pop()}else{i=t}reduce(e,r,iterator,done);function iterator(e,t,r){var i=function(e){var t=slice(arguments,1);r(e,t)};e.push(i);t.apply(n,e)}function done(e,t){t=a(t)?t:[t];t.unshift(e);i.apply(n,t)}}}function createApplyEach(e){return function applyEach(n){var r=function(){var r=this;var i=createArray(arguments);var s=i.pop()||t;return e(n,iterator,s);function iterator(e,t){e.apply(r,i.concat([t]))}};if(arguments.length>1){var i=slice(arguments,1);return r.apply(this,i)}else{return r}}}function DLL(){this.head=null;this.tail=null;this.length=0}DLL.prototype._removeLink=function(e){var t=e.prev;var n=e.next;if(t){t.next=n}else{this.head=n}if(n){n.prev=t}else{this.tail=t}e.prev=null;e.next=null;this.length--;return e};DLL.prototype.empty=DLL;DLL.prototype._setInitial=function(e){this.length=1;this.head=this.tail=e};DLL.prototype.insertBefore=function(e,t){t.prev=e.prev;t.next=e;if(e.prev){e.prev.next=t}else{this.head=t}e.prev=t;this.length++};DLL.prototype.unshift=function(e){if(this.head){this.insertBefore(this.head,e)}else{this._setInitial(e)}};DLL.prototype.push=function(e){var t=this.tail;if(t){e.prev=t;e.next=t.next;this.tail=e;t.next=e;this.length++}else{this._setInitial(e)}};DLL.prototype.shift=function(){return this.head&&this._removeLink(this.head)};DLL.prototype.splice=function(e){var t;var n=[];while(e--&&(t=this.shift())){n.push(t)}return n};DLL.prototype.remove=function(e){var t=this.head;while(t){if(e(t)){this._removeLink(t)}t=t.next}return this};function baseQueue(e,r,i,s){if(i===undefined){i=1}else if(isNaN(i)||i<1){throw new Error("Concurrency must not be zero")}var o=0;var c=[];var l,p;var d={_tasks:new DLL,concurrency:i,payload:s,saturated:t,unsaturated:t,buffer:i/4,empty:t,drain:t,error:t,started:false,paused:false,push:push,kill:kill,unshift:unshift,remove:remove,process:e?runQueue:runCargo,length:getLength,running:running,workersList:getWorkersList,idle:idle,pause:pause,resume:resume,_worker:r};return d;function push(e,t){_insert(e,t)}function unshift(e,t){_insert(e,t,true)}function _exec(e){var t={data:e,callback:l};if(p){d._tasks.unshift(t)}else{d._tasks.push(t)}f(d.process)}function _insert(e,n,r){if(n==null){n=t}else if(typeof n!=="function"){throw new Error("task callback must be a function")}d.started=true;var i=a(e)?e:[e];if(e===undefined||!i.length){if(d.idle()){f(d.drain)}return}p=r;l=n;arrayEachSync(i,_exec);l=undefined}function kill(){d.drain=t;d._tasks.empty()}function _next(e,t){var r=false;return function done(i,s){if(r){n()}r=true;o--;var a;var u=-1;var l=c.length;var f=-1;var p=t.length;var d=arguments.length>2;var h=d&&createArray(arguments);while(++f<p){a=t[f];while(++u<l){if(c[u]===a){if(u===0){c.shift()}else{c.splice(u,1)}u=l;l--}}u=-1;if(d){a.callback.apply(a,h)}else{a.callback(i,s)}if(i){e.error(i,a.data)}}if(o<=e.concurrency-e.buffer){e.unsaturated()}if(e._tasks.length+o===0){e.drain()}e.process()}}function runQueue(){while(!d.paused&&o<d.concurrency&&d._tasks.length){var e=d._tasks.shift();o++;c.push(e);if(d._tasks.length===0){d.empty()}if(o===d.concurrency){d.saturated()}var t=_next(d,[e]);r(e.data,t)}}function runCargo(){while(!d.paused&&o<d.concurrency&&d._tasks.length){var e=d._tasks.splice(d.payload||d._tasks.length);var t=-1;var n=e.length;var i=Array(n);while(++t<n){i[t]=e[t].data}o++;u.apply(c,e);if(d._tasks.length===0){d.empty()}if(o===d.concurrency){d.saturated()}var s=_next(d,e);r(i,s)}}function getLength(){return d._tasks.length}function running(){return o}function getWorkersList(){return c}function idle(){return d.length()+o===0}function pause(){d.paused=true}function _resume(){f(d.process)}function resume(){if(d.paused===false){return}d.paused=false;var e=d.concurrency<d._tasks.length?d.concurrency:d._tasks.length;timesSync(e,_resume)}function remove(e){d._tasks.remove(e)}}function queue(e,t){return baseQueue(true,e,t)}function priorityQueue(e,n){var r=baseQueue(true,e,n);r.push=push;delete r.unshift;return r;function push(e,n,i){r.started=true;n=n||0;var s=a(e)?e:[e];var c=s.length;if(e===undefined||c===0){if(r.idle()){f(r.drain)}return}i=typeof i===o?i:t;var u=r._tasks.head;while(u&&n>=u.priority){u=u.next}while(c--){var l={data:s[c],priority:n,callback:i};if(u){r._tasks.insertBefore(u,l)}else{r._tasks.push(l)}f(r.process)}}}function cargo(e,t){return baseQueue(false,e,1,t)}function auto(e,r,i){if(typeof r===o){i=r;r=null}var s=c(e);var u=s.length;var l={};if(u===0){return i(null,l)}var f=0;var p=new DLL;var d=Object.create(null);i=onlyOnce(i||t);r=r||u;baseEachSync(e,iterator,s);proceedQueue();function iterator(e,r){var o,c;if(!a(e)){o=e;c=0;p.push([o,c,done]);return}var h=e.length-1;o=e[h];c=h;if(h===0){p.push([o,c,done]);return}var m=-1;while(++m<h){var g=e[m];if(notInclude(s,g)){var y="async.auto task `"+r+"` has non-existent dependency `"+g+"` in "+e.join(", ");throw new Error(y)}var v=d[g];if(!v){v=d[g]=[]}v.push(taskListener)}function done(e,s){if(r===null){n()}s=arguments.length<=2?s:slice(arguments,1);if(e){u=0;f=0;p.length=0;var o=objectClone(l);o[r]=s;r=null;var a=i;i=t;a(e,o);return}f--;u--;l[r]=s;taskComplete(r);r=null}function taskListener(){if(--h===0){p.push([o,c,done])}}}function proceedQueue(){if(p.length===0&&f===0){if(u!==0){throw new Error("async.auto task has cyclic dependencies")}return i(null,l)}while(p.length&&f<r&&i!==t){f++;var e=p.shift();if(e[1]===0){e[0](e[2])}else{e[0](l,e[2])}}}function taskComplete(e){var t=d[e]||[];arrayEachSync(t,function(e){e()});proceedQueue()}}var q=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var W=/,/;var K=/(=.+)?(\s*)$/;var X=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(X,"");e=e.match(q)[2].replace(" ","");e=e?e.split(W):[];e=e.map(function(e){return e.replace(K,"").trim()});return e}function autoInject(e,t,n){var r={};baseEachSync(e,iterator,c(e));auto(r,t,n);function iterator(e,t){var n;var i=e.length;if(a(e)){if(i===0){throw new Error("autoInject task functions require explicit parameters.")}n=createArray(e);i=n.length-1;e=n[i];if(i===0){r[t]=e;return}}else if(i===1){r[t]=e;return}else{n=parseParams(e);if(i===0&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}i=n.length-1}n[i]=newTask;r[t]=n;function newTask(t,r){switch(i){case 1:e(t[n[0]],r);break;case 2:e(t[n[0]],t[n[1]],r);break;case 3:e(t[n[0]],t[n[1]],t[n[2]],r);break;default:var s=-1;while(++s<i){n[s]=t[n[s]]}n[s]=r;e.apply(null,n);break}}}}function retry(e,n,s){var a,c,u;var l=0;if(arguments.length<3&&typeof e===o){s=n||t;n=e;e=null;a=r}else{s=s||t;switch(typeof e){case"object":if(typeof e.errorFilter===o){u=e.errorFilter}var f=e.interval;switch(typeof f){case o:c=f;break;case"string":case"number":f=+f;c=f?function(){return f}:function(){return i};break}a=+e.times||r;break;case"number":a=e||r;break;case"string":a=+e||r;break;default:throw new Error("Invalid arguments for async.retry")}}if(typeof n!=="function"){throw new Error("Invalid arguments for async.retry")}if(c){n(intervalCallback)}else{n(simpleCallback)}function simpleIterator(){n(simpleCallback)}function simpleCallback(e,t){if(++l===a||!e||u&&!u(e)){if(arguments.length<=2){return s(e,t)}var n=createArray(arguments);return s.apply(null,n)}simpleIterator()}function intervalIterator(){n(intervalCallback)}function intervalCallback(e,t){if(++l===a||!e||u&&!u(e)){if(arguments.length<=2){return s(e,t)}var n=createArray(arguments);return s.apply(null,n)}setTimeout(intervalIterator,c(l))}}function retryable(e,t){if(!t){t=e;e=null}return done;function done(){var n;var r=createArray(arguments);var i=r.length-1;var s=r[i];switch(t.length){case 1:n=task1;break;case 2:n=task2;break;case 3:n=task3;break;default:n=task4}if(e){retry(e,n,s)}else{retry(n,s)}function task1(e){t(e)}function task2(e){t(r[0],e)}function task3(e){t(r[0],r[1],e)}function task4(e){r[i]=e;t.apply(null,r)}}}function iterator(e){var t=0;var n=[];if(a(e)){t=e.length}else{n=c(e);t=n.length}return makeCallback(0);function makeCallback(r){var i=function(){if(t){var s=n[r]||r;e[s].apply(null,createArray(arguments))}return i.next()};i.next=function(){return r<t-1?makeCallback(r+1):null};return i}}function apply(e){switch(arguments.length){case 0:case 1:return e;case 2:return e.bind(null,arguments[1]);case 3:return e.bind(null,arguments[1],arguments[2]);case 4:return e.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return e.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var t=arguments.length;var n=0;var r=Array(t);r[n]=null;while(++n<t){r[n]=arguments[n]}return e.bind.apply(e,r)}}function timeout(e,t,n){var r,i;return wrappedFunc;function wrappedFunc(){i=setTimeout(timeoutCallback,t);var n=createArray(arguments);var s=n.length-1;r=n[s];n[s]=injectedCallback;simpleApply(e,n)}function timeoutCallback(){var t=e.name||"anonymous";var s=new Error('Callback function "'+t+'" timed out.');s.code="ETIMEDOUT";if(n){s.info=n}i=null;r(s)}function injectedCallback(){if(i!==null){simpleApply(r,createArray(arguments));clearTimeout(i)}}function simpleApply(e,t){switch(t.length){case 0:e();break;case 1:e(t[0]);break;case 2:e(t[0],t[1]);break;default:e.apply(null,t);break}}}function times(e,r,i){i=i||t;e=+e;if(isNaN(e)||e<1){return i(null,[])}var s=Array(e);timesSync(e,iterate);function iterate(e){r(e,createCallback(e))}function createCallback(r){return function(o,a){if(r===null){n()}s[r]=a;r=null;if(o){i(o);i=t}else if(--e===0){i(null,s)}}}}function timesSeries(e,r,i){i=i||t;e=+e;if(isNaN(e)||e<1){return i(null,[])}var s=Array(e);var o=false;var a=0;iterate();function iterate(){r(a,done)}function done(t,r){s[a]=r;if(t){i(t);i=n}else if(++a>=e){i(null,s);i=n}else if(o){f(iterate)}else{o=true;iterate()}o=false}}function timesLimit(e,r,i,s){s=s||t;e=+e;if(isNaN(e)||e<1||isNaN(r)||r<1){return s(null,[])}var o=Array(e);var a=false;var c=0;var u=0;timesSync(r>e?e:r,iterate);function iterate(){var t=c++;if(t<e){i(t,createCallback(t))}}function createCallback(r){return function(i,c){if(r===null){n()}o[r]=c;r=null;if(i){s(i);s=t}else if(++u>=e){s(null,o);s=n}else if(a){f(iterate)}else{a=true;iterate()}a=false}}}function race(e,n){n=once(n||t);var r,i;var o=-1;if(a(e)){r=e.length;while(++o<r){e[o](n)}}else if(e&&typeof e===s){i=c(e);r=i.length;while(++o<r){e[i[o]](n)}}else{return n(new TypeError("First argument to race must be a collection of functions"))}if(!r){n(null)}}function memoize(e,t){t=t||function(e){return e};var n={};var r={};var i=function(){var i=createArray(arguments);var s=i.pop();var o=t.apply(null,i);if(has(n,o)){f(function(){s.apply(null,n[o])});return}if(has(r,o)){return r[o].push(s)}r[o]=[s];i.push(done);e.apply(null,i);function done(e){var t=createArray(arguments);if(!e){n[o]=t}var i=r[o];delete r[o];var s=-1;var a=i.length;while(++s<a){i[s].apply(null,t)}}};i.memo=n;i.unmemoized=e;return i}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function ensureAsync(e){return function(){var t=createArray(arguments);var n=t.length-1;var r=t[n];var i=true;t[n]=done;e.apply(this,t);i=false;function done(){var e=createArray(arguments);if(i){f(function(){r.apply(null,e)})}else{r.apply(null,e)}}}}function constant(){var e=[null].concat(createArray(arguments));return function(t){t=arguments[arguments.length-1];t.apply(this,e)}}function asyncify(e){return function(){var t=createArray(arguments);var n=t.pop();var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&typeof r.then===o){r.then(function(e){invokeCallback(n,null,e)},function(e){invokeCallback(n,e&&e.message?e:new Error(e))})}else{n(null,r)}}}function invokeCallback(e,t,n){try{e(t,n)}catch(e){f(rethrow,e)}}function rethrow(e){throw e}function reflect(e){return function(){var t;switch(arguments.length){case 1:t=arguments[0];return e(done);case 2:t=arguments[1];return e(arguments[0],done);default:var n=createArray(arguments);var r=n.length-1;t=n[r];n[r]=done;e.apply(this,n)}function done(e,n){if(e){return t(null,{error:e})}if(arguments.length>2){n=slice(arguments,1)}t(null,{value:n})}}}function reflectAll(e){var t,n;if(a(e)){t=Array(e.length);arrayEachSync(e,iterate)}else if(e&&typeof e===s){n=c(e);t={};baseEachSync(e,iterate,n)}return t;function iterate(e,n){t[n]=reflect(e)}}function createLogger(e){return function(e){var t=slice(arguments,1);t.push(done);e.apply(null,t)};function done(t){if(typeof console===s){if(t){if(console.error){console.error(t)}return}if(console[e]){var n=slice(arguments,1);arrayEachSync(n,function(t){console[e](t)})}}}}function safe(){createImmediate();return e}function fast(){createImmediate(false);return e}})},56481:(e,t,n)=>{var r=n(83687);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},62317:(e,t,n)=>{"use strict";const r=n(51385);const i=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let n=0;const i=()=>{n--;if(t.length>0){t.shift()()}};const s=async(e,t,...s)=>{n++;const o=r(e,...s);t(o);try{await o}catch{}i()};const o=(r,i,...o)=>{t.push(s.bind(null,r,i,...o));(async()=>{await Promise.resolve();if(n<e&&t.length>0){t.shift()()}})()};const a=(e,...t)=>new Promise(n=>o(e,n,...t));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=i},88213:(e,t,n)=>{"use strict";const r=n(64788);class EndError extends Error{constructor(e){super();this.value=e}}const i=async(e,t)=>t(await e);const s=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};const o=async(e,t,n)=>{n={concurrency:Infinity,preserveOrder:true,...n};const o=r(n.concurrency);const a=[...e].map(e=>[e,o(i,e,t)]);const c=r(n.preserveOrder?1:Infinity);try{await Promise.all(a.map(e=>c(s,e)))}catch(e){if(e instanceof EndError){return e.value}throw e}};e.exports=o;e.exports.default=o},64788:(e,t,n)=>{"use strict";const r=n(51385);const i=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const t=[];let n=0;const i=()=>{n--;if(t.length>0){t.shift()()}};const s=(e,t,...s)=>{n++;const o=r(e,...s);t(o);o.then(i,i)};const o=(r,i,...o)=>{if(n<e){s(r,i,...o)}else{t.push(s.bind(null,r,i,...o))}};const a=(e,...t)=>new Promise(n=>o(e,n,...t));Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=i;e.exports.default=i},62383:(e,t,n)=>{"use strict";const r=n(67229);e.exports=(async(e,t,{concurrency:n=Infinity,stopOnError:i=true}={})=>{return new Promise((s,o)=>{if(typeof t!=="function"){throw new TypeError("Mapper function is required")}if(!((Number.isSafeInteger(n)||n===Infinity)&&n>=1)){throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${n}\` (${typeof n})`)}const a=[];const c=[];const u=e[Symbol.iterator]();let l=false;let f=false;let p=0;let d=0;const h=()=>{if(l){return}const e=u.next();const n=d;d++;if(e.done){f=true;if(p===0){if(!i&&c.length!==0){o(new r(c))}else{s(a)}}return}p++;(async()=>{try{const r=await e.value;a[n]=await t(r,n);p--;h()}catch(e){if(i){l=true;o(e)}else{c.push(e);p--;h()}}})()};for(let e=0;e<n;e++){h();if(f){break}}})})},51385:e=>{"use strict";e.exports=((e,...t)=>new Promise(n=>{n(e(...t))}))},52963:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var n=t.exec(e);var r=n[1]||"";var i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},75522:e=>{"use strict";var t=process.platform==="win32";var n=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;var i={};function win32SplitPath(e){var t=n.exec(e),i=(t[1]||"")+(t[2]||""),s=t[3]||"";var o=r.exec(s),a=o[1],c=o[2],u=o[3];return[i,a,c,u]}i.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var t=win32SplitPath(e);if(!t||t.length!==4){throw new TypeError("Invalid path '"+e+"'")}return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var o={};function posixSplitPath(e){return s.exec(e).slice(1)}o.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var t=posixSplitPath(e);if(!t||t.length!==4){throw new TypeError("Invalid path '"+e+"'")}t[1]=t[1]||"";t[2]=t[2]||"";t[3]=t[3]||"";return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};if(t)e.exports=i.parse;else e.exports=o.parse;e.exports.posix=o.parse;e.exports.win32=i.parse},93224:(e,t,n)=>{"use strict";const r=n(85622);const i=n(70558);const s=async e=>{const t=await i("package.json",{cwd:e});return t&&r.dirname(t)};e.exports=s;e.exports.default=s;e.exports.sync=(e=>{const t=i.sync("package.json",{cwd:e});return t&&r.dirname(t)})},50411:e=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,n,r){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var s,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function afterTickOne(){e.call(null,t)});case 3:return process.nextTick(function afterTickTwo(){e.call(null,t,n)});case 4:return process.nextTick(function afterTickThree(){e.call(null,t,n,r)});default:s=new Array(i-1);o=0;while(o<s.length){s[o++]=arguments[o]}return process.nextTick(function afterTick(){e.apply(null,s)})}}},97393:(e,t,n)=>{"use strict";e.exports=inflight;let r;try{r=n(16853)}catch(e){r=Promise}const i={};inflight.active=i;function inflight(e,t){return r.all([e,t]).then(function(e){const t=e[0];const n=e[1];if(Array.isArray(t)){return r.all(t).then(function(e){return _inflight(e.join(""),n)})}else{return _inflight(t,n)}});function _inflight(e,t){if(!i[e]){i[e]=new r(function(e){return e(t())});i[e].then(cleanup,cleanup);function cleanup(){delete i[e]}}return i[e]}}},55757:function(e){(function(t,n,r){if(true&&e.exports)e.exports=r();else n[t]=r()})("prr",this,function(){var e=typeof Object.defineProperty=="function"?function(e,t,n){Object.defineProperty(e,t,n);return e}:function(e,t,n){e[t]=n.value;return e},t=function(e,t){var n=typeof t=="object",r=!n&&typeof t=="string",i=function(e){return n?!!t[e]:r?t.indexOf(e[0])>-1:false};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}},n=function(n,r,i,s){var o;s=t(i,s);if(typeof r=="object"){for(o in r){if(Object.hasOwnProperty.call(r,o)){s.value=r[o];e(n,o,s)}}return n}return e(n,r,s)};return n})},31998:(e,t,n)=>{e.exports=n(76417).randomBytes},81959:(e,t,n)=>{"use strict";var r=n(50411);var i=Object.keys||function(e){var t=[];for(var n in e){t.push(n)}return t};e.exports=Duplex;var s=Object.create(n(93349));s.inherits=n(28309);var o=n(97469);var a=n(97867);s.inherits(Duplex,o);{var c=i(a.prototype);for(var u=0;u<c.length;u++){var l=c[u];if(!Duplex.prototype[l])Duplex.prototype[l]=a.prototype[l]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e);a.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;r.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();r.nextTick(t,e)}},54021:(e,t,n)=>{"use strict";e.exports=PassThrough;var r=n(77837);var i=Object.create(n(93349));i.inherits=n(28309);i.inherits(PassThrough,r);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);r.call(this,e)}PassThrough.prototype._transform=function(e,t,n){n(null,e)}},97469:(e,t,n)=>{"use strict";var r=n(50411);e.exports=Readable;var i=n(27523);var s;Readable.ReadableState=ReadableState;var o=n(28614).EventEmitter;var a=function(e,t){return e.listeners(t).length};var c=n(99837);var u=n(22560).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var f=Object.create(n(93349));f.inherits=n(28309);var p=n(31669);var d=void 0;if(p&&p.debuglog){d=p.debuglog("stream")}else{d=function(){}}var h=n(24220);var m=n(22535);var g;f.inherits(Readable,c);var y=["error","close","destroy","pause","resume"];function prependListener(e,t,n){if(typeof e.prependListener==="function")return e.prependListener(t,n);if(!e._events||!e._events[t])e.on(t,n);else if(i(e._events[t]))e._events[t].unshift(n);else e._events[t]=[n,e._events[t]]}function ReadableState(e,t){s=s||n(81959);e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.readableObjectMode;var i=e.highWaterMark;var o=e.readableHighWaterMark;var a=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(r&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=a;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!g)g=n(80147).s;this.decoder=new g(e.encoding);this.encoding=e.encoding}}function Readable(e){s=s||n(81959);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}c.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=m.destroy;Readable.prototype._undestroy=m.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var n=this._readableState;var r;if(!n.objectMode){if(typeof e==="string"){t=t||n.defaultEncoding;if(t!==n.encoding){e=u.from(e,t);t=""}r=true}}else{r=true}return readableAddChunk(this,e,t,false,r)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,n,r,i){var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){e.emit("error",o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(r){if(s.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,s,t,true)}else if(s.ended){e.emit("error",new Error("stream.push() after EOF"))}else{s.reading=false;if(s.decoder&&!n){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!r){s.reading=false}}return needMoreData(s)}function addChunk(e,t,n,r){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",n);e.read(0)}else{t.length+=t.objectMode?1:n.length;if(r)t.buffer.unshift(n);else t.buffer.push(n);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var n;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){n=new TypeError("Invalid non-string/buffer chunk")}return n}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!g)g=n(80147).s;this._readableState.decoder=new g(e);this._readableState.encoding=e;return this};var v=8388608;function computeNewHighWaterMark(e){if(e>=v){e=v}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var t=this._readableState;var n=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){d("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var r=t.needReadable;d("need readable",r);if(t.length===0||t.length-e<t.highWaterMark){r=true;d("length less than watermark",r)}if(t.ended||t.reading){r=false;d("reading or ended",r)}else if(r){d("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(n,t)}var i;if(e>0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(n!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();if(n&&n.length){t.buffer.push(n);t.length+=t.objectMode?1:n.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){d("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)r.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){d("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;r.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){d("maybeReadMore read 0");e.read(0);if(n===t.length)break;else n=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var n=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;d("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=s?onend:unpipe;if(i.endEmitted)r.nextTick(o);else n.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){d("onunpipe");if(e===n){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){d("onend");e.end()}var c=pipeOnDrain(n);e.on("drain",c);var u=false;function cleanup(){d("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);n.removeListener("end",onend);n.removeListener("end",unpipe);n.removeListener("data",ondata);u=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}var l=false;n.on("data",ondata);function ondata(t){d("ondata");l=false;var r=e.write(t);if(false===r&&!l){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&indexOf(i.pipes,e)!==-1)&&!u){d("false write response, pause",n._readableState.awaitDrain);n._readableState.awaitDrain++;l=true}n.pause()}}function onerror(t){d("onerror",t);unpipe();e.removeListener("error",onerror);if(a(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");n.unpipe(e)}e.emit("pipe",n);if(!i.flowing){d("pipe resume");n.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&a(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var n={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,n);return this}if(!e){var r=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<i;s++){r[s].emit("unpipe",this,n)}return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,n);return this};Readable.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var i=this._readableState;if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.emittedReadable=false;if(!i.reading){r.nextTick(nReadingNextTick,this)}else if(i.length){emitReadable(this)}}}return n};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){d("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){d("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;r.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){d("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){d("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){d("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;d("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var n=this._readableState;var r=false;e.on("end",function(){d("wrapped end");if(n.decoder&&!n.ended){var e=n.decoder.end();if(e&&e.length)t.push(e)}t.push(null)});e.on("data",function(i){d("wrapped data");if(n.decoder)i=n.decoder.write(i);if(n.objectMode&&(i===null||i===undefined))return;else if(!n.objectMode&&(!i||!i.length))return;var s=t.push(i);if(!s){r=true;e.pause()}});for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)}}for(var s=0;s<y.length;s++){e.on(y[s],this.emit.bind(this,y[s]))}this._read=function(t){d("wrapped _read",t);if(r){r=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var n;if(t.objectMode)n=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)n=t.buffer.join("");else if(t.buffer.length===1)n=t.buffer.head.data;else n=t.buffer.concat(t.length);t.buffer.clear()}else{n=fromListPartial(e,t.buffer,t.decoder)}return n}function fromListPartial(e,t,n){var r;if(e<t.head.data.length){r=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){r=t.shift()}else{r=n?copyFromBufferString(e,t):copyFromBuffer(e,t)}return r}function copyFromBufferString(e,t){var n=t.head;var r=1;var i=n.data;e-=i.length;while(n=n.next){var s=n.data;var o=e>s.length?s.length:e;if(o===s.length)i+=s;else i+=s.slice(0,e);e-=o;if(e===0){if(o===s.length){++r;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=s.slice(o)}break}++r}t.length-=r;return i}function copyFromBuffer(e,t){var n=u.allocUnsafe(e);var r=t.head;var i=1;r.data.copy(n);e-=r.data.length;while(r=r.next){var s=r.data;var o=e>s.length?s.length:e;s.copy(n,n.length-e,0,o);e-=o;if(e===0){if(o===s.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=s.slice(o)}break}++i}t.length-=i;return n}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;r.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]===t)return n}return-1}},77837:(e,t,n)=>{"use strict";e.exports=Transform;var r=n(81959);var i=Object.create(n(93349));i.inherits=n(28309);i.inherits(Transform,r);function afterTransform(e,t){var n=this._transformState;n.transforming=false;var r=n.writecb;if(!r){return this.emit("error",new Error("write callback called multiple times"))}n.writechunk=null;n.writecb=null;if(t!=null)this.push(t);r(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);r.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush(function(t,n){done(e,t,n)})}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return r.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,n){var r=this._transformState;r.writecb=n;r.writechunk=e;r.writeencoding=t;if(!r.transforming){var i=this._readableState;if(r.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e);n.emit("close")})};function done(e,t,n){if(t)return e.emit("error",t);if(n!=null)e.push(n);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},97867:(e,t,n)=>{"use strict";var r=n(50411);e.exports=Writable;function WriteReq(e,t,n){this.chunk=e;this.encoding=t;this.callback=n;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;var s;Writable.WritableState=WritableState;var o=Object.create(n(93349));o.inherits=n(28309);var a={deprecate:n(95791)};var c=n(99837);var u=n(22560).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var f=n(22535);o.inherits(Writable,c);function nop(){}function WritableState(e,t){s=s||n(81959);e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.writableObjectMode;var i=e.highWaterMark;var o=e.writableHighWaterMark;var a=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(r&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=a;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var c=e.decodeStrings===false;this.decodeStrings=!c;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var p;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){p=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(p.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{p=function(e){return e instanceof this}}function Writable(e){s=s||n(81959);if(!p.call(Writable,this)&&!(this instanceof s)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}c.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var n=new Error("write after end");e.emit("error",n);r.nextTick(t,n)}function validChunk(e,t,n,i){var s=true;var o=false;if(n===null){o=new TypeError("May not write null values to stream")}else if(typeof n!=="string"&&n!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);r.nextTick(i,o);s=false}return s}Writable.prototype.write=function(e,t,n){var r=this._writableState;var i=false;var s=!r.objectMode&&_isUint8Array(e);if(s&&!u.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){n=t;t=null}if(s)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof n!=="function")n=nop;if(r.ended)writeAfterEnd(this,n);else if(s||validChunk(this,r,e,n)){r.pendingcb++;i=writeOrBuffer(this,r,s,e,t,n)}return i};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,n){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=u.from(t,n)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,n,r,i,s){if(!n){var o=decodeChunk(t,r,i);if(r!==o){n=true;i="buffer";r=o}}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(!c)t.needDrain=true;if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null};if(u){u.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,a,r,i,s)}return c}function doWrite(e,t,n,r,i,s,o){t.writelen=r;t.writecb=o;t.writing=true;t.sync=true;if(n)e._writev(i,t.onwrite);else e._write(i,s,t.onwrite);t.sync=false}function onwriteError(e,t,n,i,s){--t.pendingcb;if(n){r.nextTick(s,i);r.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",i)}else{s(i);e._writableState.errorEmitted=true;e.emit("error",i);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var n=e._writableState;var r=n.sync;var s=n.writecb;onwriteStateUpdate(n);if(t)onwriteError(e,n,r,t,s);else{var o=needFinish(n);if(!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest){clearBuffer(e,n)}if(r){i(afterWrite,e,n,o,s)}else{afterWrite(e,n,o,s)}}}function afterWrite(e,t,n,r){if(!n)onwriteDrain(e,t);t.pendingcb--;r();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount;var i=new Array(r);var s=t.corkedRequestsFree;s.entry=n;var o=0;var a=true;while(n){i[o]=n;if(!n.isBuf)a=false;n=n.next;o+=1}i.allBuffers=a;doWrite(e,t,true,t.length,i,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(n){var c=n.chunk;var u=n.encoding;var l=n.callback;var f=t.objectMode?1:c.length;doWrite(e,t,false,f,c,u,l);n=n.next;t.bufferedRequestCount--;if(t.writing){break}}if(n===null)t.lastBufferedRequest=null}t.bufferedRequest=n;t.bufferProcessing=false}Writable.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,n){var r=this._writableState;if(typeof e==="function"){n=e;e=null;t=null}else if(typeof t==="function"){n=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(r.corked){r.corked=1;this.uncork()}if(!r.ending&&!r.finished)endWritable(this,r,n)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(n){t.pendingcb--;if(n){e.emit("error",n)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)})}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;r.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var n=needFinish(t);if(n){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return n}function endWritable(e,t,n){t.ending=true;finishMaybe(e,t);if(n){if(t.finished)r.nextTick(n);else e.once("finish",n)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--;i(n);r=r.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=f.destroy;Writable.prototype._undestroy=f.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},24220:(e,t,n)=>{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=n(22560).Buffer;var i=n(31669);function copyBuffer(e,t,n){e.copy(t,n)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var n=""+t.data;while(t=t.next){n+=e+t.data}return n};BufferList.prototype.concat=function concat(e){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;var t=r.allocUnsafe(e>>>0);var n=this.head;var i=0;while(n){copyBuffer(n.data,t,i);i+=n.data.length;n=n.next}return t};return BufferList}();if(i&&i.inspect&&i.inspect.custom){e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e}}},22535:(e,t,n)=>{"use strict";var r=n(50411);function destroy(e,t){var n=this;var i=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(i||s){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){r.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!t&&e){r.nextTick(emitErrorNT,n,e);if(n._writableState){n._writableState.errorEmitted=true}}else if(t){t(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},99837:(e,t,n)=>{e.exports=n(92413)},22560:(e,t,n)=>{var r=n(64293);var i=r.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return i(e,t,n)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=i(e);if(t!==undefined){if(typeof n==="string"){r.fill(t,n)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},80147:(e,t,n)=>{"use strict";var r=n(22560).Buffer;var i=r.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=r.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var n;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";n=this.lastNeed;this.lastNeed=0}else{n=0}if(n<e.length)return t?t+this.text(e,n):this.text(e,n);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,n){var r=t.length-1;if(r<n)return 0;var i=utf8CheckByte(t[r]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--r<n||i===-2)return 0;i=utf8CheckByte(t[r]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--r<n||i===-2)return 0;i=utf8CheckByte(t[r]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,n){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var n=utf8CheckExtraBytes(this,e,t);if(n!==undefined)return n;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var n=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);e.copy(this.lastChar,0,r);return e.toString("utf8",t,r)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return n.slice(0,-1)}}return n}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function base64Text(e,t){var n=(e.length-t)%3;if(n===0)return e.toString("base64",t);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-n)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},32453:(e,t,n)=>{var r=n(92413);if(process.env.READABLE_STREAM==="disable"&&r){e.exports=r;t=e.exports=r.Readable;t.Readable=r.Readable;t.Writable=r.Writable;t.Duplex=r.Duplex;t.Transform=r.Transform;t.PassThrough=r.PassThrough;t.Stream=r}else{t=e.exports=n(97469);t.Stream=r||t;t.Readable=t;t.Writable=n(97867);t.Duplex=n(81959);t.Transform=n(77837);t.PassThrough=n(54021)}},47030:(e,t,n)=>{var r=n(54800);var i=n(42911);i.core=r;i.isCore=function isCore(e){return r[e]};i.sync=n(4893);t=i;e.exports=i},42911:(e,t,n)=>{var r=n(54800);var i=n(35747);var s=n(85622);var o=n(25297);var a=n(1680);var c=n(83034);var u=function isFile(e,t){i.stat(e,function(e,n){if(!e){return t(null,n.isFile()||n.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return t(null,false);return t(e)})};var l=function isDirectory(e,t){i.stat(e,function(e,n){if(!e){return t(null,n.isDirectory())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return t(null,false);return t(e)})};e.exports=function resolve(e,t,n){var f=n;var p=t;if(typeof t==="function"){f=p;p={}}if(typeof e!=="string"){var d=new TypeError("Path must be a string.");return process.nextTick(function(){f(d)})}p=c(e,p);var h=p.isFile||u;var m=p.isDirectory||l;var g=p.readFile||i.readFile;var y=p.extensions||[".js"];var v=p.basedir||s.dirname(o());var _=p.filename||v;p.paths=p.paths||[];var b=s.resolve(v);if(p.preserveSymlinks===false){i.realpath(b,function(e,t){if(e&&e.code!=="ENOENT")f(d);else init(e?b:t)})}else{init(b)}var E;function init(t){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){E=s.resolve(t,e);if(e===".."||e.slice(-1)==="/")E+="/";if(/\/$/.test(e)&&E===t){loadAsDirectory(E,p.package,onfile)}else loadAsFile(E,p.package,onfile)}else loadNodeModules(e,t,function(t,n,i){if(t)f(t);else if(r[e])return f(null,e);else if(n)f(null,n,i);else{var s=new Error("Cannot find module '"+e+"' from '"+_+"'");s.code="MODULE_NOT_FOUND";f(s)}})}function onfile(t,n,r){if(t)f(t);else if(n)f(null,n,r);else loadAsDirectory(E,function(t,n,r){if(t)f(t);else if(n)f(null,n,r);else{var i=new Error("Cannot find module '"+e+"' from '"+_+"'");i.code="MODULE_NOT_FOUND";f(i)}})}function loadAsFile(e,t,n){var r=t;var i=n;if(typeof r==="function"){i=r;r=undefined}var o=[""].concat(y);load(o,e,r);function load(e,t,n){if(e.length===0)return i(null,undefined,n);var r=t+e[0];var o=n;if(o)onpkg(null,o);else loadpkg(s.dirname(r),onpkg);function onpkg(n,a,c){o=a;if(n)return i(n);if(c&&o&&p.pathFilter){var u=s.relative(c,r);var l=u.slice(0,u.length-e[0].length);var f=p.pathFilter(o,t,l);if(f)return load([""].concat(y.slice()),s.resolve(c,f),o)}h(r,onex)}function onex(n,s){if(n)return i(n);if(s)return i(null,r,o);load(e.slice(1),t,o)}}}function loadpkg(e,t){if(e===""||e==="/")return t(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return t(null)}if(/[/\\]node_modules[/\\]*$/.test(e))return t(null);var n=s.join(e,"package.json");h(n,function(r,i){if(!i)return loadpkg(s.dirname(e),t);g(n,function(r,i){if(r)t(r);try{var s=JSON.parse(i)}catch(e){}if(s&&p.packageFilter){s=p.packageFilter(s,n)}t(null,s,e)})})}function loadAsDirectory(e,t,n){var r=n;var i=t;if(typeof i==="function"){r=i;i=p.package}var o=s.join(e,"package.json");h(o,function(t,n){if(t)return r(t);if(!n)return loadAsFile(s.join(e,"index"),i,r);g(o,function(t,n){if(t)return r(t);try{var i=JSON.parse(n)}catch(e){}if(p.packageFilter){i=p.packageFilter(i,o)}if(i.main){if(typeof i.main!=="string"){var a=new TypeError("package “"+i.name+"” `main` must be a string");a.code="INVALID_PACKAGE_MAIN";return r(a)}if(i.main==="."||i.main==="./"){i.main="index"}loadAsFile(s.resolve(e,i.main),i,function(t,n,i){if(t)return r(t);if(n)return r(null,n,i);if(!i)return loadAsFile(s.join(e,"index"),i,r);var o=s.resolve(e,i.main);loadAsDirectory(o,i,function(t,n,i){if(t)return r(t);if(n)return r(null,n,i);loadAsFile(s.join(e,"index"),i,r)})});return}loadAsFile(s.join(e,"/index"),i,r)})})}function processDirs(t,n){if(n.length===0)return t(null,undefined);var r=n[0];m(r,isdir);function isdir(i,o){if(i)return t(i);if(!o)return processDirs(t,n.slice(1));var a=s.join(r,e);loadAsFile(a,p.package,onfile)}function onfile(n,i,o){if(n)return t(n);if(i)return t(null,i,o);loadAsDirectory(s.join(r,e),p.package,ondir)}function ondir(e,r,i){if(e)return t(e);if(r)return t(null,r,i);processDirs(t,n.slice(1))}}function loadNodeModules(e,t,n){processDirs(n,a(t,p,e))}}},25297:e=>{e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;Error.prepareStackTrace=e;return t[2].getFileName()}},54800:(e,t,n)=>{var r=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var t=e.split(" ");var n=t.length>1?t[0]:"=";var i=(t.length>1?t[1]:t[0]).split(".");for(var s=0;s<3;++s){var o=Number(r[s]||0);var a=Number(i[s]||0);if(o===a){continue}if(n==="<"){return o<a}else if(n===">="){return o>=a}else{return false}}return n===">="}function matchesRange(e){var t=e.split(/ ?&& ?/);if(t.length===0){return false}for(var n=0;n<t.length;++n){if(!specifierIncluded(t[n])){return false}}return true}function versionIncluded(e){if(typeof e==="boolean"){return e}if(e&&typeof e==="object"){for(var t=0;t<e.length;++t){if(matchesRange(e[t])){return true}}return false}return matchesRange(e)}var i=n(5537);var s={};for(var o in i){if(Object.prototype.hasOwnProperty.call(i,o)){s[o]=versionIncluded(i[o])}}e.exports=s},1680:(e,t,n)=>{var r=n(85622);var i=r.parse||n(75522);var s=function getNodeModulesDirs(e,t){var n="/";if(/^([A-Za-z]:)/.test(e)){n=""}else if(/^\\\\/.test(e)){n="\\\\"}var s=[e];var o=i(e);while(o.dir!==s[s.length-1]){s.push(o.dir);o=i(o.dir)}return s.reduce(function(e,i){return e.concat(t.map(function(e){return r.resolve(n,i,e)}))},[])};e.exports=function nodeModulesPaths(e,t,n){var r=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths==="function"){return t.paths(n,e,function(){return s(e,r)},t)}var i=s(e,r);return t&&t.paths?i.concat(t.paths):i}},83034:e=>{e.exports=function(e,t){return t||{}}},4893:(e,t,n)=>{var r=n(54800);var i=n(35747);var s=n(85622);var o=n(25297);var a=n(1680);var c=n(83034);var u=function isFile(e){try{var t=i.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return t.isFile()||t.isFIFO()};var l=function isDirectory(e){try{var t=i.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return t.isDirectory()};e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Path must be a string.")}var n=c(e,t);var f=n.isFile||u;var p=n.readFileSync||i.readFileSync;var d=n.isDirectory||l;var h=n.extensions||[".js"];var m=n.basedir||s.dirname(o());var g=n.filename||m;n.paths=n.paths||[];var y=s.resolve(m);if(n.preserveSymlinks===false){try{y=i.realpathSync(y)}catch(e){if(e.code!=="ENOENT"){throw e}}}if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var v=s.resolve(y,e);if(e===".."||e.slice(-1)==="/")v+="/";var _=loadAsFileSync(v)||loadAsDirectorySync(v);if(_)return _}else if(r[e]){return e}else{var b=loadNodeModulesSync(e,y);if(b)return b}if(r[e])return e;var E=new Error("Cannot find module '"+e+"' from '"+g+"'");E.code="MODULE_NOT_FOUND";throw E;function loadAsFileSync(e){var t=loadpkg(s.dirname(e));if(t&&t.dir&&t.pkg&&n.pathFilter){var r=s.relative(t.dir,e);var i=n.pathFilter(t.pkg,e,r);if(i){e=s.resolve(t.dir,i)}}if(f(e)){return e}for(var o=0;o<h.length;o++){var a=e+h[o];if(f(a)){return a}}}function loadpkg(e){if(e===""||e==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return}if(/[/\\]node_modules[/\\]*$/.test(e))return;var t=s.join(e,"package.json");if(!f(t)){return loadpkg(s.dirname(e))}var r=p(t);try{var i=JSON.parse(r)}catch(e){}if(i&&n.packageFilter){i=n.packageFilter(i,e)}return{pkg:i,dir:e}}function loadAsDirectorySync(e){var t=s.join(e,"/package.json");if(f(t)){try{var r=p(t,"UTF8");var i=JSON.parse(r)}catch(e){}if(n.packageFilter){i=n.packageFilter(i,e)}if(i.main){if(typeof i.main!=="string"){var o=new TypeError("package “"+i.name+"” `main` must be a string");o.code="INVALID_PACKAGE_MAIN";throw o}if(i.main==="."||i.main==="./"){i.main="index"}try{var a=loadAsFileSync(s.resolve(e,i.main));if(a)return a;var c=loadAsDirectorySync(s.resolve(e,i.main));if(c)return c}catch(e){}}}return loadAsFileSync(s.join(e,"/index"))}function loadNodeModulesSync(e,t){var r=a(t,n,e);for(var i=0;i<r.length;i++){var o=r[i];if(d(o)){var c=loadAsFileSync(s.join(o,"/",e));if(c)return c;var u=loadAsDirectorySync(s.join(o,"/",e));if(u)return u}}}}},24672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;const{stringHints:r,numberHints:i}=n(47961);const s={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,minProperties:2,maxProperties:2,dependencies:2,propertyNames:2,additionalItems:2,additionalProperties:2,absolutePath:2};function filterMax(e,t){const n=e.reduce((e,n)=>Math.max(e,t(n)),0);return e.filter(e=>t(e)===n)}function filterChildren(e){let t=e;t=filterMax(t,e=>e.dataPath?e.dataPath.length:0);t=filterMax(t,e=>s[e.keyword]||2);return t}function findAllChildren(e,t){let n=e.length-1;const r=t=>e[n].schemaPath.indexOf(t)!==0;while(n>-1&&!t.every(r)){if(e[n].keyword==="anyOf"||e[n].keyword==="oneOf"){const t=extractRefs(e[n]);const r=findAllChildren(e.slice(0,n),t.concat(e[n].schemaPath));n=r-1}else{n-=1}}return n+1}function extractRefs(e){const{schema:t}=e;if(!Array.isArray(t)){return[]}return t.map(({$ref:e})=>e).filter(e=>e)}function groupChildrenByFirstChild(e){const t=[];let n=e.length-1;while(n>0){const r=e[n];if(r.keyword==="anyOf"||r.keyword==="oneOf"){const i=extractRefs(r);const s=findAllChildren(e.slice(0,n),i.concat(r.schemaPath));if(s!==n){t.push(Object.assign({},r,{children:e.slice(s,n)}));n=s}else{t.push(r)}}else{t.push(r)}n-=1}if(n===0){t.push(e[n])}return t.reverse()}function indent(e,t){return e.replace(/\n(?!$)/g,`\n${t}`)}function hasNotInSchema(e){return!!e.not}function findFirstTypedSchema(e){if(hasNotInSchema(e)){return findFirstTypedSchema(e.not)}return e}function canApplyNot(e){const t=findFirstTypedSchema(e);return likeNumber(t)||likeInteger(t)||likeString(t)||likeNull(t)||likeBoolean(t)}function isObject(e){return typeof e==="object"&&e!==null}function likeNumber(e){return e.type==="number"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeInteger(e){return e.type==="integer"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeString(e){return e.type==="string"||typeof e.minLength!=="undefined"||typeof e.maxLength!=="undefined"||typeof e.pattern!=="undefined"||typeof e.format!=="undefined"||typeof e.formatMinimum!=="undefined"||typeof e.formatMaximum!=="undefined"}function likeBoolean(e){return e.type==="boolean"}function likeArray(e){return e.type==="array"||typeof e.minItems==="number"||typeof e.maxItems==="number"||typeof e.uniqueItems!=="undefined"||typeof e.items!=="undefined"||typeof e.additionalItems!=="undefined"||typeof e.contains!=="undefined"}function likeObject(e){return e.type==="object"||typeof e.minProperties!=="undefined"||typeof e.maxProperties!=="undefined"||typeof e.required!=="undefined"||typeof e.properties!=="undefined"||typeof e.patternProperties!=="undefined"||typeof e.additionalProperties!=="undefined"||typeof e.dependencies!=="undefined"||typeof e.propertyNames!=="undefined"||typeof e.patternRequired!=="undefined"}function likeNull(e){return e.type==="null"}function getArticle(e){if(/^[aeiou]/i.test(e)){return"an"}return"a"}function getSchemaNonTypes(e){if(!e){return""}if(!e.type){if(likeNumber(e)||likeInteger(e)){return" | should be any non-number"}if(likeString(e)){return" | should be any non-string"}if(likeArray(e)){return" | should be any non-array"}if(likeObject(e)){return" | should be any non-object"}}return""}function formatHints(e){return e.length>0?`(${e.join(", ")})`:""}function getHints(e,t){if(likeNumber(e)||likeInteger(e)){return i(e,t)}else if(likeString(e)){return r(e,t)}return[]}class ValidationError extends Error{constructor(e,t,n={}){super();this.name="ValidationError";this.errors=e;this.schema=t;let r;let i;if(t.title&&(!n.name||!n.baseDataPath)){const e=t.title.match(/^(.+) (.+)$/);if(e){if(!n.name){[,r]=e}if(!n.baseDataPath){[,,i]=e}}}this.headerName=n.name||r||"Object";this.baseDataPath=n.baseDataPath||i||"configuration";this.postFormatter=n.postFormatter||null;const s=`Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`;this.message=`${s}${this.formatValidationErrors(e)}`;Error.captureStackTrace(this,this.constructor)}getSchemaPart(e){const t=e.split("/");let n=this.schema;for(let e=1;e<t.length;e++){const r=n[t[e]];if(!r){break}n=r}return n}formatSchema(e,t=true,n=[]){let r=t;const i=(t,i)=>{if(!i){return this.formatSchema(t,r,n)}if(n.includes(t)){return"(recursive)"}return this.formatSchema(t,r,n.concat(e))};if(hasNotInSchema(e)&&!likeObject(e)){if(canApplyNot(e.not)){r=!t;return i(e.not)}const n=!e.not.not;const s=t?"":"non ";r=!t;return n?s+i(e.not):i(e.not)}if(e.instanceof){const{instanceof:t}=e;const n=!Array.isArray(t)?[t]:t;return n.map(e=>e==="Function"?"function":e).join(" | ")}if(e.enum){return e.enum.map(e=>JSON.stringify(e)).join(" | ")}if(typeof e.const!=="undefined"){return JSON.stringify(e.const)}if(e.oneOf){return e.oneOf.map(e=>i(e,true)).join(" | ")}if(e.anyOf){return e.anyOf.map(e=>i(e,true)).join(" | ")}if(e.allOf){return e.allOf.map(e=>i(e,true)).join(" & ")}if(e.if){const{if:t,then:n,else:r}=e;return`${t?`if ${i(t)}`:""}${n?` then ${i(n)}`:""}${r?` else ${i(r)}`:""}`}if(e.$ref){return i(this.getSchemaPart(e.$ref),true)}if(likeNumber(e)||likeInteger(e)){const[n,...r]=getHints(e,t);const i=`${n}${r.length>0?` ${formatHints(r)}`:""}`;return t?i:r.length>0?`non-${n} | ${i}`:`non-${n}`}if(likeString(e)){const[n,...r]=getHints(e,t);const i=`${n}${r.length>0?` ${formatHints(r)}`:""}`;return t?i:i==="string"?"non-string":`non-string | ${i}`}if(likeBoolean(e)){return`${t?"":"non-"}boolean`}if(likeArray(e)){r=true;const t=[];if(typeof e.minItems==="number"){t.push(`should not have fewer than ${e.minItems} item${e.minItems>1?"s":""}`)}if(typeof e.maxItems==="number"){t.push(`should not have more than ${e.maxItems} item${e.maxItems>1?"s":""}`)}if(e.uniqueItems){t.push("should not have duplicate items")}const n=typeof e.additionalItems==="undefined"||Boolean(e.additionalItems);let s="";if(e.items){if(Array.isArray(e.items)&&e.items.length>0){s=`${e.items.map(e=>i(e)).join(", ")}`;if(n){if(e.additionalItems&&isObject(e.additionalItems)&&Object.keys(e.additionalItems).length>0){t.push(`additional items should be ${i(e.additionalItems)}`)}}}else if(e.items&&Object.keys(e.items).length>0){s=`${i(e.items)}`}else{s="any"}}else{s="any"}if(e.contains&&Object.keys(e.contains).length>0){t.push(`should contains at least one ${this.formatSchema(e.contains)} item`)}return`[${s}${n?", ...":""}]${t.length>0?` (${t.join(", ")})`:""}`}if(likeObject(e)){r=true;const t=[];if(typeof e.minProperties==="number"){t.push(`should not have fewer than ${e.minProperties} ${e.minProperties>1?"properties":"property"}`)}if(typeof e.maxProperties==="number"){t.push(`should not have more than ${e.maxProperties} ${e.minProperties&&e.minProperties>1?"properties":"property"}`)}if(e.patternProperties&&Object.keys(e.patternProperties).length>0){const n=Object.keys(e.patternProperties);t.push(`additional property names should match pattern${n.length>1?"s":""} ${n.map(e=>JSON.stringify(e)).join(" | ")}`)}const n=e.properties?Object.keys(e.properties):[];const s=e.required?e.required:[];const o=[...new Set([].concat(s).concat(n))];const a=o.map(e=>{const t=s.includes(e);return`${e}${t?"":"?"}`}).concat(typeof e.additionalProperties==="undefined"||Boolean(e.additionalProperties)?e.additionalProperties&&isObject(e.additionalProperties)?[`<key>: ${i(e.additionalProperties)}`]:["…"]:[]).join(", ");const{dependencies:c,propertyNames:u,patternRequired:l}=e;if(c){Object.keys(c).forEach(e=>{const n=c[e];if(Array.isArray(n)){t.push(`should have ${n.length>1?"properties":"property"} ${n.map(e=>`'${e}'`).join(", ")} when property '${e}' is present`)}else{t.push(`should be valid according to the schema ${i(n)} when property '${e}' is present`)}})}if(u&&Object.keys(u).length>0){t.push(`each property name should match format ${JSON.stringify(e.propertyNames.format)}`)}if(l&&l.length>0){t.push(`should have property matching pattern ${l.map(e=>JSON.stringify(e))}`)}return`object {${a?` ${a} `:""}}${t.length>0?` (${t.join(", ")})`:""}`}if(likeNull(e)){return`${t?"":"non-"}null`}if(Array.isArray(e.type)){return`${e.type.join(" | ")}`}return JSON.stringify(e,null,2)}getSchemaPartText(e,t,n=false,r=true){if(!e){return""}if(Array.isArray(t)){for(let n=0;n<t.length;n++){const r=e[t[n]];if(r){e=r}else{break}}}while(e.$ref){e=this.getSchemaPart(e.$ref)}let i=`${this.formatSchema(e,r)}${n?".":""}`;if(e.description){i+=`\n-> ${e.description}`}return i}getSchemaPartDescription(e){if(!e){return""}while(e.$ref){e=this.getSchemaPart(e.$ref)}if(e.description){return`\n-> ${e.description}`}return""}formatValidationError(e){const{keyword:t,dataPath:n}=e;const r=`${this.baseDataPath}${n}`;switch(t){case"type":{const{parentSchema:t,params:n}=e;switch(n.type){case"number":return`${r} should be a ${this.getSchemaPartText(t,false,true)}`;case"integer":return`${r} should be a ${this.getSchemaPartText(t,false,true)}`;case"string":return`${r} should be a ${this.getSchemaPartText(t,false,true)}`;case"boolean":return`${r} should be a ${this.getSchemaPartText(t,false,true)}`;case"array":return`${r} should be an array:\n${this.getSchemaPartText(t)}`;case"object":return`${r} should be an object:\n${this.getSchemaPartText(t)}`;case"null":return`${r} should be a ${this.getSchemaPartText(t,false,true)}`;default:return`${r} should be:\n${this.getSchemaPartText(t)}`}}case"instanceof":{const{parentSchema:t}=e;return`${r} should be an instance of ${this.getSchemaPartText(t,false,true)}`}case"pattern":{const{params:t,parentSchema:n}=e;const{pattern:i}=t;return`${r} should match pattern ${JSON.stringify(i)}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"format":{const{params:t,parentSchema:n}=e;const{format:i}=t;return`${r} should match format ${JSON.stringify(i)}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"formatMinimum":case"formatMaximum":{const{params:t,parentSchema:n}=e;const{comparison:i,limit:s}=t;return`${r} should be ${i} ${JSON.stringify(s)}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"minimum":case"maximum":case"exclusiveMinimum":case"exclusiveMaximum":{const{parentSchema:t,params:n}=e;const{comparison:i,limit:s}=n;const[,...o]=getHints(t,true);if(o.length===0){o.push(`should be ${i} ${s}`)}return`${r} ${o.join(" ")}${getSchemaNonTypes(t)}.${this.getSchemaPartDescription(t)}`}case"multipleOf":{const{params:t,parentSchema:n}=e;const{multipleOf:i}=t;return`${r} should be multiple of ${i}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"patternRequired":{const{params:t,parentSchema:n}=e;const{missingPattern:i}=t;return`${r} should have property matching pattern ${JSON.stringify(i)}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"minLength":{const{params:t,parentSchema:n}=e;const{limit:i}=t;if(i===1){return`${r} should be an non-empty string${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}const s=i-1;return`${r} should be longer than ${s} character${s>1?"s":""}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"minItems":{const{params:t,parentSchema:n}=e;const{limit:i}=t;if(i===1){return`${r} should be an non-empty array${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}return`${r} should not have fewer than ${i} items${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"minProperties":{const{params:t,parentSchema:n}=e;const{limit:i}=t;if(i===1){return`${r} should be an non-empty object${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}return`${r} should not have fewer than ${i} properties${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"maxLength":{const{params:t,parentSchema:n}=e;const{limit:i}=t;const s=i+1;return`${r} should be shorter than ${s} character${s>1?"s":""}${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"maxItems":{const{params:t,parentSchema:n}=e;const{limit:i}=t;return`${r} should not have more than ${i} items${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"maxProperties":{const{params:t,parentSchema:n}=e;const{limit:i}=t;return`${r} should not have more than ${i} properties${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"uniqueItems":{const{params:t,parentSchema:n}=e;const{i:i}=t;return`${r} should not contain the item '${e.data[i]}' twice${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"additionalItems":{const{params:t,parentSchema:n}=e;const{limit:i}=t;return`${r} should not have more than ${i} items${getSchemaNonTypes(n)}. These items are valid:\n${this.getSchemaPartText(n)}`}case"contains":{const{parentSchema:t}=e;return`${r} should contains at least one ${this.getSchemaPartText(t,["contains"])} item${getSchemaNonTypes(t)}.`}case"required":{const{parentSchema:t,params:n}=e;const i=n.missingProperty.replace(/^\./,"");const s=t&&Boolean(t.properties&&t.properties[i]);return`${r} misses the property '${i}'${getSchemaNonTypes(t)}.${s?` Should be:\n${this.getSchemaPartText(t,["properties",i])}`:this.getSchemaPartDescription(t)}`}case"additionalProperties":{const{params:t,parentSchema:n}=e;const{additionalProperty:i}=t;return`${r} has an unknown property '${i}'${getSchemaNonTypes(n)}. These properties are valid:\n${this.getSchemaPartText(n)}`}case"dependencies":{const{params:t,parentSchema:n}=e;const{property:i,deps:s}=t;const o=s.split(",").map(e=>`'${e.trim()}'`).join(", ");return`${r} should have properties ${o} when property '${i}' is present${getSchemaNonTypes(n)}.${this.getSchemaPartDescription(n)}`}case"propertyNames":{const{params:t,parentSchema:n,schema:i}=e;const{propertyName:s}=t;return`${r} property name '${s}' is invalid${getSchemaNonTypes(n)}. Property names should be match format ${JSON.stringify(i.format)}.${this.getSchemaPartDescription(n)}`}case"enum":{const{parentSchema:t}=e;if(t&&t.enum&&t.enum.length===1){return`${r} should be ${this.getSchemaPartText(t,false,true)}`}return`${r} should be one of these:\n${this.getSchemaPartText(t)}`}case"const":{const{parentSchema:t}=e;return`${r} should be equal to constant ${this.getSchemaPartText(t,false,true)}`}case"not":{const t=likeObject(e.parentSchema)?`\n${this.getSchemaPartText(e.parentSchema)}`:"";const n=this.getSchemaPartText(e.schema,false,false,false);if(canApplyNot(e.schema)){return`${r} should be any ${n}${t}.`}const{schema:i,parentSchema:s}=e;return`${r} should not be ${this.getSchemaPartText(i,false,true)}${s&&likeObject(s)?`\n${this.getSchemaPartText(s)}`:""}`}case"oneOf":case"anyOf":{const{parentSchema:t,children:n}=e;if(n&&n.length>0){if(e.schema.length===1){const e=n[n.length-1];const r=n.slice(0,n.length-1);return this.formatValidationError(Object.assign({},e,{children:r,parentSchema:Object.assign({},t,e.parentSchema)}))}let i=filterChildren(n);if(i.length===1){return this.formatValidationError(i[0])}i=groupChildrenByFirstChild(i);return`${r} should be one of these:\n${this.getSchemaPartText(t)}\nDetails:\n${i.map(e=>` * ${indent(this.formatValidationError(e)," ")}`).join("\n")}`}return`${r} should be one of these:\n${this.getSchemaPartText(t)}`}case"if":{const{params:t,parentSchema:n}=e;const{failingKeyword:i}=t;return`${r} should match "${i}" schema:\n${this.getSchemaPartText(n,[i])}`}case"absolutePath":{const{message:t,parentSchema:n}=e;return`${r}: ${t}${this.getSchemaPartDescription(n)}`}default:{const{message:t,parentSchema:n}=e;const i=JSON.stringify(e,null,2);return`${r} ${t} (${i}).\n${this.getSchemaPartText(n,false)}`}}}formatValidationErrors(e){return e.map(e=>{let t=this.formatValidationError(e);if(this.postFormatter){t=this.postFormatter(t,e)}return` - ${indent(t," ")}`}).join("\n")}}var o=ValidationError;t.default=o},15235:(e,t,n)=>{"use strict";const r=n(18110);e.exports=r.default},77102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;function errorMessage(e,t,n){return{dataPath:undefined,schemaPath:undefined,keyword:"absolutePath",params:{absolutePath:n},message:e,parentSchema:t}}function getErrorFor(e,t,n){const r=e?`The provided value ${JSON.stringify(n)} is not an absolute path!`:`A relative path is expected. However, the provided value ${JSON.stringify(n)} is an absolute path!`;return errorMessage(r,t,n)}function addAbsolutePathKeyword(e){e.addKeyword("absolutePath",{errors:true,type:"string",compile(e,t){const n=r=>{let i=true;const s=r.includes("!");if(s){n.errors=[errorMessage(`The provided value ${JSON.stringify(r)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`,t,r)];i=false}const o=e===/^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(r);if(!o){n.errors=[getErrorFor(e,t,r)];i=false}return i};n.errors=[];return n}});return e}var n=addAbsolutePathKeyword;t.default=n},95855:e=>{"use strict";class Range{static getOperator(e,t){if(e==="left"){return t?">":">="}return t?"<":"<="}static formatRight(e,t,n){if(t===false){return Range.formatLeft(e,!t,!n)}return`should be ${Range.getOperator("right",n)} ${e}`}static formatLeft(e,t,n){if(t===false){return Range.formatRight(e,!t,!n)}return`should be ${Range.getOperator("left",n)} ${e}`}static formatRange(e,t,n,r,i){let s="should be";s+=` ${Range.getOperator(i?"left":"right",i?n:!n)} ${e} `;s+=i?"and":"or";s+=` ${Range.getOperator(i?"right":"left",i?r:!r)} ${t}`;return s}static getRangeValue(e,t){let n=t?Infinity:-Infinity;let r=-1;const i=t?([e])=>e<=n:([e])=>e>=n;for(let t=0;t<e.length;t++){if(i(e[t])){[n]=e[t];r=t}}if(r>-1){return e[r]}return[Infinity,true]}constructor(){this._left=[];this._right=[]}left(e,t=false){this._left.push([e,t])}right(e,t=false){this._right.push([e,t])}format(e=true){const[t,n]=Range.getRangeValue(this._left,e);const[r,i]=Range.getRangeValue(this._right,!e);if(!Number.isFinite(t)&&!Number.isFinite(r)){return""}const s=n?t+1:t;const o=i?r-1:r;if(s===o){return`should be ${e?"":"!"}= ${s}`}if(Number.isFinite(t)&&!Number.isFinite(r)){return Range.formatLeft(t,e,n)}if(!Number.isFinite(t)&&Number.isFinite(r)){return Range.formatRight(r,e,i)}return Range.formatRange(t,r,n,i,e)}}e.exports=Range},47961:(e,t,n)=>{"use strict";const r=n(95855);e.exports.stringHints=function stringHints(e,t){const n=[];let r="string";const i={...e};if(!t){const e=i.minLength;const t=i.formatMinimum;const n=i.formatExclusiveMaximum;i.minLength=i.maxLength;i.maxLength=e;i.formatMinimum=i.formatMaximum;i.formatMaximum=t;i.formatExclusiveMaximum=!i.formatExclusiveMinimum;i.formatExclusiveMinimum=!n}if(typeof i.minLength==="number"){if(i.minLength===1){r="non-empty string"}else{const e=Math.max(i.minLength-1,0);n.push(`should be longer than ${e} character${e>1?"s":""}`)}}if(typeof i.maxLength==="number"){if(i.maxLength===0){r="empty string"}else{const e=i.maxLength+1;n.push(`should be shorter than ${e} character${e>1?"s":""}`)}}if(i.pattern){n.push(`should${t?"":" not"} match pattern ${JSON.stringify(i.pattern)}`)}if(i.format){n.push(`should${t?"":" not"} match format ${JSON.stringify(i.format)}`)}if(i.formatMinimum){n.push(`should be ${i.formatExclusiveMinimum?">":">="} ${JSON.stringify(i.formatMinimum)}`)}if(i.formatMaximum){n.push(`should be ${i.formatExclusiveMaximum?"<":"<="} ${JSON.stringify(i.formatMaximum)}`)}return[r].concat(n)};e.exports.numberHints=function numberHints(e,t){const n=[e.type==="integer"?"integer":"number"];const i=new r;if(typeof e.minimum==="number"){i.left(e.minimum)}if(typeof e.exclusiveMinimum==="number"){i.left(e.exclusiveMinimum,true)}if(typeof e.maximum==="number"){i.right(e.maximum)}if(typeof e.exclusiveMaximum==="number"){i.right(e.exclusiveMaximum,true)}const s=i.format(t);if(s){n.push(s)}if(typeof e.multipleOf==="number"){n.push(`should${t?"":" not"} be multiple of ${e.multipleOf}`)}return n}},18110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(n(33866));var i=_interopRequireDefault(n(35525));var s=_interopRequireDefault(n(77102));var o=_interopRequireDefault(n(24672));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=new r.default({allErrors:true,verbose:true,$data:true});(0,i.default)(a,["instanceof","formatMinimum","formatMaximum","patternRequired"]);(0,s.default)(a);function validate(e,t,n){let r=[];if(Array.isArray(t)){r=Array.from(t,t=>validateObject(e,t));r.forEach((e,t)=>{const n=e=>{e.dataPath=`[${t}]${e.dataPath}`;if(e.children){e.children.forEach(n)}};e.forEach(n)});r=r.reduce((e,t)=>{e.push(...t);return e},[])}else{r=validateObject(e,t)}if(r.length>0){throw new o.default(r,e,n)}}function validateObject(e,t){const n=a.compile(e);const r=n(t);if(r)return[];return n.errors?filterErrors(n.errors):[]}function filterErrors(e){let t=[];for(const n of e){const{dataPath:e}=n;let r=[];t=t.filter(t=>{if(t.dataPath.includes(e)){if(t.children){r=r.concat(t.children.slice(0))}t.children=undefined;r.push(t);return false}return true});if(r.length){n.children=r}t.push(n)}return t}validate.ValidationError=o.default;validate.ValidateError=o.default;var c=validate;t.default=c},27746:(e,t,n)=>{"use strict";const r=n(1226).y;const i=n(1226).P;class CodeNode{constructor(e){this.generatedCode=e}clone(){return new CodeNode(this.generatedCode)}getGeneratedCode(){return this.generatedCode}getMappings(e){const t=r(this.generatedCode);const n=Array(t+1).join(";");if(t>0){e.unfinishedGeneratedLine=i(this.generatedCode);if(e.unfinishedGeneratedLine>0){return n+"A"}else{return n}}else{const t=e.unfinishedGeneratedLine;e.unfinishedGeneratedLine+=i(this.generatedCode);if(t===0&&e.unfinishedGeneratedLine>0){return"A"}else{return""}}}addGeneratedCode(e){this.generatedCode+=e}mapGeneratedCode(e){const t=e(this.generatedCode);return new CodeNode(t)}getNormalizedNodes(){return[this]}merge(e){if(e instanceof CodeNode){this.generatedCode+=e.generatedCode;return this}return false}}e.exports=CodeNode},30047:e=>{"use strict";class MappingsContext{constructor(){this.sourcesIndices=new Map;this.sourcesContent=new Map;this.hasSourceContent=false;this.currentOriginalLine=1;this.currentSource=0;this.unfinishedGeneratedLine=false}ensureSource(e,t){let n=this.sourcesIndices.get(e);if(typeof n==="number"){return n}n=this.sourcesIndices.size;this.sourcesIndices.set(e,n);this.sourcesContent.set(e,t);if(typeof t==="string")this.hasSourceContent=true;return n}getArrays(){const e=[];const t=[];for(const n of this.sourcesContent){e.push(n[0]);t.push(n[1])}return{sources:e,sourcesContent:t}}}e.exports=MappingsContext},86979:(e,t,n)=>{"use strict";const r=n(37788);const i=n(1226).y;const s=n(1226).P;const o=";AAAA";class SingleLineNode{constructor(e,t,n,r){this.generatedCode=e;this.originalSource=n;this.source=t;this.line=r||1;this._numberOfLines=i(this.generatedCode);this._endsWithNewLine=e[e.length-1]==="\n"}clone(){return new SingleLineNode(this.generatedCode,this.source,this.originalSource,this.line)}getGeneratedCode(){return this.generatedCode}getMappings(e){if(!this.generatedCode)return"";const t=this._numberOfLines;const n=e.ensureSource(this.source,this.originalSource);let i="A";if(e.unfinishedGeneratedLine)i=","+r.encode(e.unfinishedGeneratedLine);i+=r.encode(n-e.currentSource);i+=r.encode(this.line-e.currentOriginalLine);i+="A";e.currentSource=n;e.currentOriginalLine=this.line;const a=e.unfinishedGeneratedLine=s(this.generatedCode);i+=Array(t).join(o);if(a===0){i+=";"}else{if(t!==0)i+=o}return i}getNormalizedNodes(){return[this]}mapGeneratedCode(e){const t=e(this.generatedCode);return new SingleLineNode(t,this.source,this.originalSource,this.line)}merge(e){if(e instanceof SingleLineNode){return this.mergeSingleLineNode(e)}return false}mergeSingleLineNode(e){if(this.source===e.source&&this.originalSource===e.originalSource){if(this.line===e.line){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine;return this}else if(this.line+1===e.line&&this._endsWithNewLine&&this._numberOfLines===1&&e._numberOfLines<=1){return new a(this.generatedCode+e.generatedCode,this.source,this.originalSource,this.line)}}return false}}e.exports=SingleLineNode;const a=n(49043)},53273:(e,t,n)=>{"use strict";const r=n(27746);const i=n(49043);const s=n(30047);const o=n(1226).y;class SourceListMap{constructor(e,t,n){if(Array.isArray(e)){this.children=e}else{this.children=[];if(e||t)this.add(e,t,n)}}add(e,t,n){if(typeof e==="string"){if(t){this.children.push(new i(e,t,n))}else if(this.children.length>0&&this.children[this.children.length-1]instanceof r){this.children[this.children.length-1].addGeneratedCode(e)}else{this.children.push(new r(e))}}else if(e.getMappings&&e.getGeneratedCode){this.children.push(e)}else if(e.children){e.children.forEach(function(e){this.children.push(e)},this)}else{throw new Error("Invalid arguments to SourceListMap.protfotype.add: Expected string, Node or SourceListMap")}}preprend(e,t,n){if(typeof e==="string"){if(t){this.children.unshift(new i(e,t,n))}else if(this.children.length>0&&this.children[this.children.length-1].preprendGeneratedCode){this.children[this.children.length-1].preprendGeneratedCode(e)}else{this.children.unshift(new r(e))}}else if(e.getMappings&&e.getGeneratedCode){this.children.unshift(e)}else if(e.children){e.children.slice().reverse().forEach(function(e){this.children.unshift(e)},this)}else{throw new Error("Invalid arguments to SourceListMap.protfotype.prerend: Expected string, Node or SourceListMap")}}mapGeneratedCode(e){const t=[];this.children.forEach(function(e){e.getNormalizedNodes().forEach(function(e){t.push(e)})});const n=[];t.forEach(function(t){t=t.mapGeneratedCode(e);if(n.length===0){n.push(t)}else{const e=n[n.length-1];const r=e.merge(t);if(r){n[n.length-1]=r}else{n.push(t)}}});return new SourceListMap(n)}toString(){return this.children.map(function(e){return e.getGeneratedCode()}).join("")}toStringWithSourceMap(e){const t=new s;const n=this.children.map(function(e){return e.getGeneratedCode()}).join("");const r=this.children.map(function(e){return e.getMappings(t)}).join("");const i=t.getArrays();return{source:n,map:{version:3,file:e&&e.file,sources:i.sources,sourcesContent:t.hasSourceContent?i.sourcesContent:undefined,mappings:r}}}}e.exports=SourceListMap},49043:(e,t,n)=>{"use strict";const r=n(37788);const i=n(1226).y;const s=n(1226).P;const o=";AACA";class SourceNode{constructor(e,t,n,r){this.generatedCode=e;this.originalSource=n;this.source=t;this.startingLine=r||1;this._numberOfLines=i(this.generatedCode);this._endsWithNewLine=e[e.length-1]==="\n"}clone(){return new SourceNode(this.generatedCode,this.source,this.originalSource,this.startingLine)}getGeneratedCode(){return this.generatedCode}addGeneratedCode(e){this.generatedCode+=e;this._numberOfLines+=i(e);this._endsWithNewLine=e[e.length-1]==="\n"}getMappings(e){if(!this.generatedCode)return"";const t=this._numberOfLines;const n=e.ensureSource(this.source,this.originalSource);let i="A";if(e.unfinishedGeneratedLine)i=","+r.encode(e.unfinishedGeneratedLine);i+=r.encode(n-e.currentSource);i+=r.encode(this.startingLine-e.currentOriginalLine);i+="A";e.currentSource=n;e.currentOriginalLine=this.startingLine+t-1;const a=e.unfinishedGeneratedLine=s(this.generatedCode);i+=Array(t).join(o);if(a===0){i+=";"}else{if(t!==0){i+=o}e.currentOriginalLine++}return i}mapGeneratedCode(e){throw new Error("Cannot map generated code on a SourceMap. Normalize to SingleLineNode first.")}getNormalizedNodes(){var e=[];var t=this.startingLine;var n=this.generatedCode;var r=0;var i=n.length;while(r<i){var s=n.indexOf("\n",r)+1;if(s===0)s=i;var o=n.substr(r,s-r);e.push(new a(o,this.source,this.originalSource,t));r=s;t++}return e}merge(e){if(e instanceof SourceNode){return this.mergeSourceNode(e)}else if(e instanceof a){return this.mergeSingleLineNode(e)}return false}mergeSourceNode(e){if(this.source===e.source&&this._endsWithNewLine&&this.startingLine+this._numberOfLines===e.startingLine){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine;return this}return false}mergeSingleLineNode(e){if(this.source===e.source&&this._endsWithNewLine&&this.startingLine+this._numberOfLines===e.line&&e._numberOfLines<=1){this.addSingleLineNode(e);return this}return false}addSingleLineNode(e){this.generatedCode+=e.generatedCode;this._numberOfLines+=e._numberOfLines;this._endsWithNewLine=e._endsWithNewLine}}e.exports=SourceNode;const a=n(86979)},37788:(e,t)=>{var n={};var r={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,t){n[e]=t;r[t]=e});var i={};i.encode=function base64_encode(e){if(e in r){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};i.decode=function base64_decode(e){if(e in n){return n[e]}throw new TypeError("Not a valid base 64 digit: "+e)};var s=5;var o=1<<s;var a=o-1;var c=o;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var n=e>>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var r=toVLQSigned(e);do{n=r&a;r>>>=s;if(r>0){n|=c}t+=i.encode(n)}while(r>0);return t};t.decode=function base64VLQ_decode(e,t){var n=0;var r=e.length;var o=0;var u=0;var l,f;do{if(n>=r){throw new Error("Expected more digits in base 64 VLQ value.")}f=i.decode(e.charAt(n++));l=!!(f&c);f&=a;o=o+(f<<u);u+=s}while(l);t.value=fromVLQSigned(o);t.rest=e.slice(n)}},88494:(e,t,n)=>{"use strict";const r=n(37788);const i=n(49043);const s=n(27746);const o=n(53273);e.exports=function fromStringWithSourceMap(e,t){const n=t.sources;const a=t.sourcesContent;const c=t.mappings.split(";");const u=e.split("\n");const l=[];let f=null;let p=1;let d=0;let h;function addCode(e){if(f&&f instanceof s){f.addGeneratedCode(e)}else if(f&&f instanceof i&&!e.trim()){f.addGeneratedCode(e);h++}else{f=new s(e);l.push(f)}}function addSource(e,t,n,r){if(f&&f instanceof i&&f.source===t&&h===r){f.addGeneratedCode(e);h++}else{f=new i(e,t,n,r);h=r+1;l.push(f)}}c.forEach(function(e,t){let n=u[t];if(typeof n==="undefined")return;if(t!==u.length-1)n+="\n";if(!e)return addCode(n);e={value:0,rest:e};let r=false;while(e.rest)r=processMapping(e,n,r)||r;if(!r)addCode(n)});if(c.length<u.length){let e=c.length;while(!u[e].trim()&&e<u.length-1){addCode(u[e]+"\n");e++}addCode(u.slice(e).join("\n"))}return new o(l);function processMapping(e,t,i){if(e.rest&&e.rest[0]!==","){r.decode(e.rest,e)}if(!e.rest)return false;if(e.rest[0]===","){e.rest=e.rest.substr(1);return false}r.decode(e.rest,e);const s=e.value+d;d=s;let o;if(e.rest&&e.rest[0]!==","){r.decode(e.rest,e);o=e.value+p;p=o}else{o=p}if(e.rest){const t=e.rest.indexOf(",");e.rest=t===-1?"":e.rest.substr(t)}if(!i){addSource(t,n?n[s]:null,a?a[s]:null,o);return true}}}},1226:(e,t)=>{"use strict";t.y=function getNumberOfLines(e){let t=-1;let n=-1;do{t++;n=e.indexOf("\n",n+1)}while(n>=0);return t};t.P=function getUnfinishedLine(e){const t=e.lastIndexOf("\n");if(t===-1)return e.length;else return e.length-t-1}},6900:(e,t,n)=>{t.SourceListMap=n(53273);t.SourceNode=n(49043);t.SingleLineNode=n(86979);t.CodeNode=n(27746);t.MappingsContext=n(30047);t.fromStringWithSourceMap=n(88494)},26837:(e,t,n)=>{var r=n(31983);var i=Object.prototype.hasOwnProperty;var s=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=s?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var n=new ArraySet;for(var r=0,i=e.length;r<i;r++){n.add(e[r],t)}return n};ArraySet.prototype.size=function ArraySet_size(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var n=s?e:r.toSetString(e);var o=s?this.has(e):i.call(this._set,n);var a=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(s){this._set.set(e,a)}else{this._set[n]=a}}};ArraySet.prototype.has=function ArraySet_has(e){if(s){return this._set.has(e)}else{var t=r.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(s){var t=this._set.get(e);if(t>=0){return t}}else{var n=r.toSetString(e);if(i.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},4215:(e,t,n)=>{var r=n(96537);var i=5;var s=1<<i;var o=s-1;var a=s;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var n=e>>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var s=toVLQSigned(e);do{n=s&o;s>>>=i;if(s>0){n|=a}t+=r.encode(n)}while(s>0);return t};t.decode=function base64VLQ_decode(e,t,n){var s=e.length;var c=0;var u=0;var l,f;do{if(t>=s){throw new Error("Expected more digits in base 64 VLQ value.")}f=r.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}l=!!(f&a);f&=o;c=c+(f<<u);u+=i}while(l);n.value=fromVLQSigned(c);n.rest=t}},96537:(e,t)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length){return n[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var n=90;var r=97;var i=122;var s=48;var o=57;var a=43;var c=47;var u=26;var l=52;if(t<=e&&e<=n){return e-t}if(r<=e&&e<=i){return e-r+u}if(s<=e&&e<=o){return e-s+l}if(e==a){return 62}if(e==c){return 63}return-1}},53164:(e,t)=>{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,r,i,s,o){var a=Math.floor((n-e)/2)+e;var c=s(r,i[a],true);if(c===0){return a}else if(c>0){if(n-a>1){return recursiveSearch(a,n,r,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return n<i.length?n:-1}else{return a}}else{if(a-e>1){return recursiveSearch(e,a,r,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return a}else{return e<0?-1:e}}}t.search=function search(e,n,r,i){if(n.length===0){return-1}var s=recursiveSearch(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(s<0){return-1}while(s-1>=0){if(r(n[s],n[s-1],true)!==0){break}--s}return s}},91740:(e,t,n)=>{var r=n(31983);function generatedPositionAfter(e,t){var n=e.generatedLine;var i=t.generatedLine;var s=e.generatedColumn;var o=t.generatedColumn;return i>n||i==n&&o>=s||r.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(r.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},68226:(e,t)=>{function swap(e,t,n){var r=e[t];e[t]=e[n];e[n]=r}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n<r){var i=randomIntInRange(n,r);var s=n-1;swap(e,i,r);var o=e[r];for(var a=n;a<r;a++){if(t(e[a],o)<=0){s+=1;swap(e,s,a)}}swap(e,s+1,a);var c=s+1;doQuickSort(e,t,n,c-1);doQuickSort(e,t,c+1,r)}}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},86327:(e,t,n)=>{var r;var i=n(31983);var s=n(53164);var o=n(26837).I;var a=n(4215);var c=n(68226).U;function SourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,t):new BasicSourceMapConsumer(n,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var n=e.charAt(t);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,n){var r=t||null;var s=n||SourceMapConsumer.GENERATED_ORDER;var o;switch(s){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);t=i.computeSourceURL(a,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,r)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=i.getArg(e,"line");var n={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var r=[];var o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===undefined){var c=a.originalLine;while(a&&a.originalLine===c){r.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}else{var u=a.originalColumn;while(a&&a.originalLine===t&&a.originalColumn==u){r.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}}return r};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}var r=i.getArg(n,"version");var s=i.getArg(n,"sources");var a=i.getArg(n,"names",[]);var c=i.getArg(n,"sourceRoot",null);var u=i.getArg(n,"sourcesContent",null);var l=i.getArg(n,"mappings");var f=i.getArg(n,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}if(c){c=i.normalize(c)}s=s.map(String).map(i.normalize).map(function(e){return c&&i.isAbsolute(c)&&i.isAbsolute(e)?i.relative(c,e):e});this._names=o.fromArray(a.map(String),true);this._sources=o.fromArray(s,true);this._absoluteSources=this._sources.toArray().map(function(e){return i.computeSourceURL(c,e,t)});this.sourceRoot=c;this.sourcesContent=u;this._mappings=l;this._sourceMapURL=t;this.file=f}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}var n;for(n=0;n<this._absoluteSources.length;++n){if(this._absoluteSources[n]==e){return n}}return-1};BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e,t){var n=Object.create(BasicSourceMapConsumer.prototype);var r=n._names=o.fromArray(e._names.toArray(),true);var s=n._sources=o.fromArray(e._sources.toArray(),true);n.sourceRoot=e._sourceRoot;n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot);n.file=e._file;n._sourceMapURL=t;n._absoluteSources=n._sources.toArray().map(function(e){return i.computeSourceURL(n.sourceRoot,e,t)});var a=e._mappings.toArray().slice();var u=n.__generatedMappings=[];var l=n.__originalMappings=[];for(var f=0,p=a.length;f<p;f++){var d=a[f];var h=new Mapping;h.generatedLine=d.generatedLine;h.generatedColumn=d.generatedColumn;if(d.source){h.source=s.indexOf(d.source);h.originalLine=d.originalLine;h.originalColumn=d.originalColumn;if(d.name){h.name=r.indexOf(d.name)}l.push(h)}u.push(h)}c(n.__originalMappings,i.compareByOriginalPositions);return n};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){var n=1;var r=0;var s=0;var o=0;var u=0;var l=0;var f=e.length;var p=0;var d={};var h={};var m=[];var g=[];var y,v,_,b,E;while(p<f){if(e.charAt(p)===";"){n++;p++;r=0}else if(e.charAt(p)===","){p++}else{y=new Mapping;y.generatedLine=n;for(b=p;b<f;b++){if(this._charIsMappingSeparator(e,b)){break}}v=e.slice(p,b);_=d[v];if(_){p+=v.length}else{_=[];while(p<b){a.decode(e,p,h);E=h.value;p=h.rest;_.push(E)}if(_.length===2){throw new Error("Found a source, but no line and column")}if(_.length===3){throw new Error("Found a source and line, but no column")}d[v]=_}y.generatedColumn=r+_[0];r=y.generatedColumn;if(_.length>1){y.source=u+_[1];u+=_[1];y.originalLine=s+_[2];s=y.originalLine;y.originalLine+=1;y.originalColumn=o+_[3];o=y.originalColumn;if(_.length>4){y.name=l+_[4];l+=_[4]}}g.push(y);if(typeof y.originalLine==="number"){m.push(y)}}}c(g,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=g;c(m,i.compareByOriginalPositions);this.__originalMappings=m};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,n,r,i,o){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[r]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[r])}return s.search(e,t,i,o)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var s=i.getArg(r,"source",null);if(s!==null){s=this._sources.at(s);s=i.computeSourceURL(this.sourceRoot,s,this._sourceMapURL)}var o=i.getArg(r,"name",null);if(o!==null){o=this._names.at(o)}return{source:s,line:i.getArg(r,"originalLine",null),column:i.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var r=e;if(this.sourceRoot!=null){r=i.relative(this.sourceRoot,r)}var s;if(this.sourceRoot!=null&&(s=i.urlParse(this.sourceRoot))){var o=r.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o)){return this.sourcesContent[this._sources.indexOf(o)]}if((!s.path||s.path=="/")&&this._sources.has("/"+r)){return this.sourcesContent[this._sources.indexOf("/"+r)]}}if(t){return null}else{throw new Error('"'+r+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=i.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var n={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var s=this._originalMappings[r];if(s.source===n.source){return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};r=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}var r=i.getArg(n,"version");var s=i.getArg(n,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new o;this._names=new o;var a={line:-1,column:0};this._sections=s.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=i.getArg(e,"offset");var r=i.getArg(n,"line");var s=i.getArg(n,"column");if(r<a.line||r===a.line&&s<a.column){throw new Error("Section offsets must be ordered and non-overlapping.")}a=n;return{generatedOffset:{generatedLine:r+1,generatedColumn:s+1},consumer:new SourceMapConsumer(i.getArg(e,"map"),t)}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var n=0;n<this._sections[t].consumer.sources.length;n++){e.push(this._sections[t].consumer.sources[n])}}return e}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var n=s.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;if(n){return n}return e.generatedColumn-t.generatedOffset.generatedColumn});var r=this._sections[n];if(!r){return{source:null,line:null,column:null,name:null}}return r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];var i=r.consumer.sourceContentFor(e,true);if(i){return i}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer._findSourceIndex(i.getArg(e,"source"))===-1){continue}var r=n.consumer.generatedPositionFor(e);if(r){var s={line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)};return s}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var n=0;n<this._sections.length;n++){var r=this._sections[n];var s=r.consumer._generatedMappings;for(var o=0;o<s.length;o++){var a=s[o];var u=r.consumer._sources.at(a.source);u=i.computeSourceURL(r.consumer.sourceRoot,u,this._sourceMapURL);this._sources.add(u);u=this._sources.indexOf(u);var l=null;if(a.name){l=r.consumer._names.at(a.name);this._names.add(l);l=this._names.indexOf(l)}var f={source:u,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(f);if(typeof f.originalLine==="number"){this.__originalMappings.push(f)}}}c(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);c(this.__originalMappings,i.compareByOriginalPositions)};r=IndexedSourceMapConsumer},11341:(e,t,n)=>{var r=n(4215);var i=n(31983);var s=n(26837).I;var o=n(91740).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new s;this._names=new s;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){r.source=e.source;if(t!=null){r.source=i.relative(t,r.source)}r.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){r.name=e.name}}n.addMapping(r)});e.sources.forEach(function(r){var s=r;if(t!==null){s=i.relative(t,r)}if(!n._sources.has(s)){n._sources.add(s)}var o=e.sourceContentFor(r);if(o!=null){n.setSourceContent(r,o)}});return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var n=i.getArg(e,"original",null);var r=i.getArg(e,"source",null);var s=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,n,r,s)}if(r!=null){r=String(r);if(!this._sources.has(r)){this._sources.add(r)}}if(s!=null){s=String(s);if(!this._names.has(s)){this._names.add(s)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:r,name:s})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var n=e;if(this._sourceRoot!=null){n=i.relative(this._sourceRoot,n)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(n)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,n){var r=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}r=e.file}var o=this._sourceRoot;if(o!=null){r=i.relative(o,r)}var a=new s;var c=new s;this._mappings.unsortedForEach(function(t){if(t.source===r&&t.originalLine!=null){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(s.source!=null){t.source=s.source;if(n!=null){t.source=i.join(n,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=s.line;t.originalColumn=s.column;if(s.name!=null){t.name=s.name}}}var u=t.source;if(u!=null&&!a.has(u)){a.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=a;this._names=c;e.sources.forEach(function(t){var r=e.sourceContentFor(t);if(r!=null){if(n!=null){t=i.join(n,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,r)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,n,r){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){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){return}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){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var n=0;var s=0;var o=0;var a=0;var c="";var u;var l;var f;var p;var d=this._mappings.toArray();for(var h=0,m=d.length;h<m;h++){l=d[h];u="";if(l.generatedLine!==t){e=0;while(l.generatedLine!==t){u+=";";t++}}else{if(h>0){if(!i.compareByGeneratedPositionsInflated(l,d[h-1])){continue}u+=","}}u+=r.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){p=this._sources.indexOf(l.source);u+=r.encode(p-a);a=p;u+=r.encode(l.originalLine-1-s);s=l.originalLine-1;u+=r.encode(l.originalColumn-n);n=l.originalColumn;if(l.name!=null){f=this._names.indexOf(l.name);u+=r.encode(f-o);o=f}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},9990:(e,t,n)=>{var r=n(11341).SourceMapGenerator;var i=n(31983);var s=/(\r?\n)/;var o=10;var a="$$$isSourceNode$$$";function SourceNode(e,t,n,r,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=n==null?null:n;this.name=i==null?null:i;this[a]=true;if(r!=null)this.add(r)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,n){var r=new SourceNode;var o=e.split(s);var a=0;var c=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return a<o.length?o[a++]:undefined}};var u=1,l=0;var f=null;t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine){addMappingWithCode(f,c());u++;l=0}else{var t=o[a]||"";var n=t.substr(0,e.generatedColumn-l);o[a]=t.substr(e.generatedColumn-l);l=e.generatedColumn;addMappingWithCode(f,n);f=e;return}}while(u<e.generatedLine){r.add(c());u++}if(l<e.generatedColumn){var t=o[a]||"";r.add(t.substr(0,e.generatedColumn));o[a]=t.substr(e.generatedColumn);l=e.generatedColumn}f=e},this);if(a<o.length){if(f){addMappingWithCode(f,c())}r.add(o.splice(a).join(""))}t.sources.forEach(function(e){var s=t.sourceContentFor(e);if(s!=null){if(n!=null){e=i.join(n,e)}r.setSourceContent(e,s)}});return r;function addMappingWithCode(e,t){if(e===null||e.source===undefined){r.add(t)}else{var s=n?i.join(n,e.source):e.source;r.add(new SourceNode(e.originalLine,e.originalColumn,s,t,e.name))}}};SourceNode.prototype.add=function SourceNode_add(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[a]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[a]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var n=0,r=this.children.length;n<r;n++){t=this.children[n];if(t[a]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(e){var t;var n;var r=this.children.length;if(r>0){t=[];for(n=0;n<r-1;n++){t.push(this.children[n]);t.push(e)}t.push(this.children[n]);this.children=t}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(e,t){var n=this.children[this.children.length-1];if(n[a]){n.replaceRight(e,t)}else if(typeof n==="string"){this.children[this.children.length-1]=n.replace(e,t)}else{this.children.push("".replace(e,t))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(e){for(var t=0,n=this.children.length;t<n;t++){if(this.children[t][a]){this.children[t].walkSourceContents(e)}}var r=Object.keys(this.sourceContents);for(var t=0,n=r.length;t<n;t++){e(i.fromSetString(r[t]),this.sourceContents[r[t]])}};SourceNode.prototype.toString=function SourceNode_toString(){var e="";this.walk(function(t){e+=t});return e};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(e){var t={code:"",line:1,column:0};var n=new r(e);var i=false;var s=null;var a=null;var c=null;var u=null;this.walk(function(e,r){t.code+=e;if(r.source!==null&&r.line!==null&&r.column!==null){if(s!==r.source||a!==r.line||c!==r.column||u!==r.name){n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})}s=r.source;a=r.line;c=r.column;u=r.name;i=true}else if(i){n.addMapping({generated:{line:t.line,column:t.column}});s=null;i=false}for(var l=0,f=e.length;l<f;l++){if(e.charCodeAt(l)===o){t.line++;t.column=0;if(l+1===f){s=null;i=false}else if(i){n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){n.setSourceContent(e,t)});return{code:t.code,map:n}};t.SourceNode=SourceNode},31983:(e,t)=>{function getArg(e,t,n){if(t in e){return e[t]}else if(arguments.length===3){return n}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var r=/^data:.+\,.+$/;function urlParse(e){var t=e.match(n);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var n=e;var r=urlParse(e);if(r){if(!r.path){return e}n=r.path}var i=t.isAbsolute(n);var s=n.split(/\/+/);for(var o,a=0,c=s.length-1;c>=0;c--){o=s[c];if(o==="."){s.splice(c,1)}else if(o===".."){a++}else if(a>0){if(o===""){s.splice(c+1,a);a=0}else{s.splice(c,2);a--}}}n=s.join("/");if(n===""){n=i?"/":"."}if(r){r.path=n;return urlGenerate(r)}return n}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var n=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(n&&!n.scheme){if(i){n.scheme=i.scheme}return urlGenerate(n)}if(n||t.match(r)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var s=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=s;return urlGenerate(i)}return s}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||n.test(e)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;while(t.indexOf(e+"/")!==0){var r=e.lastIndexOf("/");if(r<0){return t}e=e.slice(0,r);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++n}return Array(n+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var n=t-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}function compareByOriginalPositions(e,t,n){var r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0||n){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=e.generatedLine-t.generatedLine;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,n){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0||n){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,t,n){t=t||"";if(e){if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}t=e+t}if(n){var r=urlParse(n);if(!r){throw new Error("sourceMapURL could not be parsed")}if(r.path){var i=r.path.lastIndexOf("/");if(i>=0){r.path=r.path.substring(0,i+1)}}t=join(urlGenerate(r),t)}return normalize(t)}t.computeSourceURL=computeSourceURL},99596:(e,t,n)=>{t.SourceMapGenerator=n(11341).SourceMapGenerator;t.SourceMapConsumer=n(86327).SourceMapConsumer;t.SourceNode=n(9990).SourceNode},72679:e=>{"use strict";e.exports=(e=>{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e})},96204:(e,t,n)=>{"use strict";const r=n(12087);const i=n(33867);const s=n(86811);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(o.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||o.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},78802:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncParallelBailHookCodeFactory extends i{content({onError:e,onResult:t,onDone:n}){let r="";r+=`var _results = new Array(${this.options.taps.length});\n`;r+="var _checkDone = () => {\n";r+="for(var i = 0; i < _results.length; i++) {\n";r+="var item = _results[i];\n";r+="if(item === undefined) return false;\n";r+="if(item.result !== undefined) {\n";r+=t("item.result");r+="return true;\n";r+="}\n";r+="if(item.error) {\n";r+=e("item.error");r+="return true;\n";r+="}\n";r+="}\n";r+="return false;\n";r+="}\n";r+=this.callTapsParallel({onError:(e,t,n,r)=>{let i="";i+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`;i+=r(true);i+="} else {\n";i+=n();i+="}\n";return i},onResult:(e,t,n,r)=>{let i="";i+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`;i+=r(true);i+="} else {\n";i+=n();i+="}\n";return i},onTap:(e,t,n,r)=>{let i="";if(e>0){i+=`if(${e} >= _results.length) {\n`;i+=n();i+="} else {\n"}i+=t();if(e>0)i+="}\n";return i},onDone:n});return r}}const s=new AsyncParallelBailHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncParallelBailHook(e=[],t=undefined){const n=new r(e,t);n.constructor=AsyncParallelBailHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncParallelBailHook.prototype=null;e.exports=AsyncParallelBailHook},3350:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncParallelHookCodeFactory extends i{content({onError:e,onDone:t}){return this.callTapsParallel({onError:(t,n,r,i)=>e(n)+i(true),onDone:t})}}const s=new AsyncParallelHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncParallelHook(e=[],t=undefined){const n=new r(e,t);n.constructor=AsyncParallelHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncParallelHook.prototype=null;e.exports=AsyncParallelHook},4953:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncSeriesBailHookCodeFactory extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(true),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)}\n} else {\n${r()}}\n`,resultReturns:n,onDone:r})}}const s=new AsyncSeriesBailHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncSeriesBailHook(e=[],t=undefined){const n=new r(e,t);n.constructor=AsyncSeriesBailHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncSeriesBailHook.prototype=null;e.exports=AsyncSeriesBailHook},68152:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncSeriesHookCodeFactory extends i{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(true),onDone:t})}}const s=new AsyncSeriesHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncSeriesHook(e=[],t=undefined){const n=new r(e,t);n.constructor=AsyncSeriesHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncSeriesHook.prototype=null;e.exports=AsyncSeriesHook},25810:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncSeriesLoopHookCodeFactory extends i{content({onError:e,onDone:t}){return this.callTapsLooping({onError:(t,n,r,i)=>e(n)+i(true),onDone:t})}}const s=new AsyncSeriesLoopHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncSeriesLoopHook(e=[],t=undefined){const n=new r(e,t);n.constructor=AsyncSeriesLoopHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncSeriesLoopHook.prototype=null;e.exports=AsyncSeriesLoopHook},66760:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class AsyncSeriesWaterfallHookCodeFactory extends i{content({onError:e,onResult:t,onDone:n}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(true),onResult:(e,t,n)=>{let r="";r+=`if(${t} !== undefined) {\n`;r+=`${this._args[0]} = ${t};\n`;r+=`}\n`;r+=n();return r},onDone:()=>t(this._args[0])})}}const s=new AsyncSeriesWaterfallHookCodeFactory;const o=function(e){s.setup(this,e);return s.create(e)};function AsyncSeriesWaterfallHook(e=[],t=undefined){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);n.constructor=AsyncSeriesWaterfallHook;n.compile=o;n._call=undefined;n.call=undefined;return n}AsyncSeriesWaterfallHook.prototype=null;e.exports=AsyncSeriesWaterfallHook},67332:(e,t,n)=>{"use strict";const r=n(31669);const i=r.deprecate(()=>{},"Hook.context is deprecated and will be removed");const s=function(...e){this.call=this._createCall("sync");return this.call(...e)};const o=function(...e){this.callAsync=this._createCall("async");return this.callAsync(...e)};const a=function(...e){this.promise=this._createCall("promise");return this.promise(...e)};class Hook{constructor(e=[],t=undefined){this._args=e;this.name=t;this.taps=[];this.interceptors=[];this._call=s;this.call=s;this._callAsync=o;this.callAsync=o;this._promise=a;this.promise=a;this._x=undefined;this.compile=this.compile;this.tap=this.tap;this.tapAsync=this.tapAsync;this.tapPromise=this.tapPromise}compile(e){throw new Error("Abstract: should be overridden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}_tap(e,t,n){if(typeof t==="string"){t={name:t}}else if(typeof t!=="object"||t===null){throw new Error("Invalid tap options")}if(typeof t.name!=="string"||t.name===""){throw new Error("Missing name for tap")}if(typeof t.context!=="undefined"){i()}t=Object.assign({type:e,fn:n},t);t=this._runRegisterInterceptors(t);this._insert(t)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const n=t.register(e);if(n!==undefined){e=n}}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);return{name:this.name,tap:(e,n)=>this.tap(t(e),n),tapAsync:(e,n)=>this.tapAsync(t(e),n),tapPromise:(e,n)=>this.tapPromise(t(e),n),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t<this.taps.length;t++){this.taps[t]=e.register(this.taps[t])}}}_resetCompilation(){this.call=this._call;this.callAsync=this._callAsync;this.promise=this._promise}_insert(e){this._resetCompilation();let t;if(typeof e.before==="string"){t=new Set([e.before])}else if(Array.isArray(e.before)){t=new Set(e.before)}let n=0;if(typeof e.stage==="number"){n=e.stage}let r=this.taps.length;while(r>0){r--;const e=this.taps[r];this.taps[r+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(i>n){continue}r++;break}this.taps[r]=e}}Object.setPrototypeOf(Hook.prototype,null);e.exports=Hook},91165:e=>{"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:true,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=false;const n=this.contentWithInterceptors({onError:t=>{e=true;return`_error(${t});\n`},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let r="";r+='"use strict";\n';r+="return new Promise((_resolve, _reject) => {\n";if(e){r+="var _sync = true;\n";r+="function _error(_err) {\n";r+="if(_sync)\n";r+="_resolve(Promise.resolve().then(() => { throw _err; }));\n";r+="else\n";r+="_reject(_err);\n";r+="};\n"}r+=this.header();r+=n;if(e){r+="_sync = false;\n"}r+="});\n";t=new Function(this.args(),r);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}contentWithInterceptors(e){if(this.options.interceptors.length>0){const t=e.onError;const n=e.onResult;const r=e.onDone;return this.content(Object.assign(e,{onError:t&&(e=>{let n="";for(let t=0;t<this.options.interceptors.length;t++){const r=this.options.interceptors[t];if(r.error){n+=`${this.getInterceptor(t)}.error(${e});\n`}}n+=t(e);return n}),onResult:n&&(e=>{let t="";for(let n=0;n<this.options.interceptors.length;n++){const r=this.options.interceptors[n];if(r.result){t+=`${this.getInterceptor(n)}.result(${e});\n`}}t+=n(e);return t}),onDone:r&&(()=>{let e="";for(let t=0;t<this.options.interceptors.length;t++){const n=this.options.interceptors[t];if(n.done){e+=`${this.getInterceptor(t)}.done();\n`}}e+=r();return e})}))}else{return this.content(e)}}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t<this.options.interceptors.length;t++){const n=this.options.interceptors[t];if(n.call){e+=`${this.getInterceptor(t)}.call(${this.args({before:n.context?"_context":undefined})});\n`}}return e}needContext(){for(const e of this.options.taps)if(e.context)return true;return false}callTap(e,{onError:t,onResult:n,onDone:r,rethrowIfPossible:i}){let s="";let o=false;for(let t=0;t<this.options.interceptors.length;t++){const n=this.options.interceptors[t];if(n.tap){if(!o){s+=`var _tap${e} = ${this.getTap(e)};\n`;o=true}s+=`${this.getInterceptor(t)}.tap(${n.context?"_context, ":""}_tap${e});\n`}}s+=`var _fn${e} = ${this.getTapFn(e)};\n`;const a=this.options.taps[e];switch(a.type){case"sync":if(!i){s+=`var _hasError${e} = false;\n`;s+="try {\n"}if(n){s+=`var _result${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`}else{s+=`_fn${e}(${this.args({before:a.context?"_context":undefined})});\n`}if(!i){s+="} catch(_err) {\n";s+=`_hasError${e} = true;\n`;s+=t("_err");s+="}\n";s+=`if(!_hasError${e}) {\n`}if(n){s+=n(`_result${e}`)}if(r){s+=r()}if(!i){s+="}\n"}break;case"async":let o="";if(n)o+=`(_err${e}, _result${e}) => {\n`;else o+=`_err${e} => {\n`;o+=`if(_err${e}) {\n`;o+=t(`_err${e}`);o+="} else {\n";if(n){o+=n(`_result${e}`)}if(r){o+=r()}o+="}\n";o+="}";s+=`_fn${e}(${this.args({before:a.context?"_context":undefined,after:o})});\n`;break;case"promise":s+=`var _hasResult${e} = false;\n`;s+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`;s+=`if (!_promise${e} || !_promise${e}.then)\n`;s+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;s+=`_promise${e}.then(_result${e} => {\n`;s+=`_hasResult${e} = true;\n`;if(n){s+=n(`_result${e}`)}if(r){s+=r()}s+=`}, _err${e} => {\n`;s+=`if(_hasResult${e}) throw _err${e};\n`;s+=t(`_err${e}`);s+="});\n";break}return s}callTapsSeries({onError:e,onResult:t,resultReturns:n,onDone:r,doneReturns:i,rethrowIfPossible:s}){if(this.options.taps.length===0)return r();const o=this.options.taps.findIndex(e=>e.type!=="sync");const a=n||i;let c="";let u=r;let l=0;for(let n=this.options.taps.length-1;n>=0;n--){const i=n;const f=u!==r&&(this.options.taps[i].type!=="sync"||l++>20);if(f){l=0;c+=`function _next${i}() {\n`;c+=u();c+=`}\n`;u=(()=>`${a?"return ":""}_next${i}();\n`)}const p=u;const d=e=>{if(e)return"";return r()};const h=this.callTap(i,{onError:t=>e(i,t,p,d),onResult:t&&(e=>{return t(i,e,p,d)}),onDone:!t&&p,rethrowIfPossible:s&&(o<0||i<o)});u=(()=>h)}c+=u();return c}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:n}){if(this.options.taps.length===0)return t();const r=this.options.taps.every(e=>e.type==="sync");let i="";if(!r){i+="var _looper = () => {\n";i+="var _loopAsync = false;\n"}i+="var _loop;\n";i+="do {\n";i+="_loop = false;\n";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];if(t.loop){i+=`${this.getInterceptor(e)}.loop(${this.args({before:t.context?"_context":undefined})});\n`}}i+=this.callTapsSeries({onError:e,onResult:(e,t,n,i)=>{let s="";s+=`if(${t} !== undefined) {\n`;s+="_loop = true;\n";if(!r)s+="if(_loopAsync) _looper();\n";s+=i(true);s+=`} else {\n`;s+=n();s+=`}\n`;return s},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:n&&r});i+="} while(_loop);\n";if(!r){i+="_loopAsync = true;\n";i+="};\n";i+="_looper();\n"}return i}callTapsParallel({onError:e,onResult:t,onDone:n,rethrowIfPossible:r,onTap:i=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:n,rethrowIfPossible:r})}let s="";s+="do {\n";s+=`var _counter = ${this.options.taps.length};\n`;if(n){s+="var _done = () => {\n";s+=n();s+="};\n"}for(let o=0;o<this.options.taps.length;o++){const a=()=>{if(n)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const c=e=>{if(e||!n)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};s+="if(_counter <= 0) break;\n";s+=i(o,()=>this.callTap(o,{onError:t=>{let n="";n+="if(_counter > 0) {\n";n+=e(o,t,a,c);n+="}\n";return n},onResult:t&&(e=>{let n="";n+="if(_counter > 0) {\n";n+=t(o,e,a,c);n+="}\n";return n}),onDone:!t&&(()=>{return a()}),rethrowIfPossible:r}),a,c)}s+="} while(false);\n";return s}args({before:e,after:t}={}){let n=this._args;if(e)n=[e].concat(n);if(t)n=n.concat(t);if(n.length===0){return""}else{return n.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},28636:(e,t,n)=>{"use strict";const r=n(31669);const i=(e,t)=>t;class HookMap{constructor(e,t=undefined){this._map=new Map;this.name=t;this._factory=e;this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(t!==undefined){return t}let n=this._factory(e);const r=this._interceptors;for(let t=0;t<r.length;t++){n=r[t].factory(e,n)}this._map.set(e,n);return n}intercept(e){this._interceptors.push(Object.assign({factory:i},e))}}HookMap.prototype.tap=r.deprecate(function(e,t,n){return this.for(e).tap(t,n)},"HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead.");HookMap.prototype.tapAsync=r.deprecate(function(e,t,n){return this.for(e).tapAsync(t,n)},"HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead.");HookMap.prototype.tapPromise=r.deprecate(function(e,t,n){return this.for(e).tapPromise(t,n)},"HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead.");e.exports=HookMap},20937:(e,t,n)=>{"use strict";const r=n(67332);class MultiHook{constructor(e,t=undefined){this.hooks=e;this.name=t}tap(e,t){for(const n of this.hooks){n.tap(e,t)}}tapAsync(e,t){for(const n of this.hooks){n.tapAsync(e,t)}}tapPromise(e,t){for(const n of this.hooks){n.tapPromise(e,t)}}isUsed(){for(const e of this.hooks){if(e.isUsed())return true}return false}intercept(e){for(const t of this.hooks){t.intercept(e)}}withOptions(e){return new MultiHook(this.hooks.map(t=>t.withOptions(e)),this.name)}}e.exports=MultiHook},3334:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class SyncBailHookCodeFactory extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)};\n} else {\n${r()}}\n`,resultReturns:n,onDone:r,rethrowIfPossible:i})}}const s=new SyncBailHookCodeFactory;const o=()=>{throw new Error("tapAsync is not supported on a SyncBailHook")};const a=()=>{throw new Error("tapPromise is not supported on a SyncBailHook")};const c=function(e){s.setup(this,e);return s.create(e)};function SyncBailHook(e=[],t=undefined){const n=new r(e,t);n.constructor=SyncBailHook;n.tapAsync=o;n.tapPromise=a;n.compile=c;return n}SyncBailHook.prototype=null;e.exports=SyncBailHook},6728:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class SyncHookCodeFactory extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}}const s=new SyncHookCodeFactory;const o=()=>{throw new Error("tapAsync is not supported on a SyncHook")};const a=()=>{throw new Error("tapPromise is not supported on a SyncHook")};const c=function(e){s.setup(this,e);return s.create(e)};function SyncHook(e=[],t=undefined){const n=new r(e,t);n.constructor=SyncHook;n.tapAsync=o;n.tapPromise=a;n.compile=c;return n}SyncHook.prototype=null;e.exports=SyncHook},52332:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class SyncLoopHookCodeFactory extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsLooping({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}}const s=new SyncLoopHookCodeFactory;const o=()=>{throw new Error("tapAsync is not supported on a SyncLoopHook")};const a=()=>{throw new Error("tapPromise is not supported on a SyncLoopHook")};const c=function(e){s.setup(this,e);return s.create(e)};function SyncLoopHook(e=[],t=undefined){const n=new r(e,t);n.constructor=SyncLoopHook;n.tapAsync=o;n.tapPromise=a;n.compile=c;return n}SyncLoopHook.prototype=null;e.exports=SyncLoopHook},81934:(e,t,n)=>{"use strict";const r=n(67332);const i=n(91165);class SyncWaterfallHookCodeFactory extends i{content({onError:e,onResult:t,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,t,n)=>{let r="";r+=`if(${t} !== undefined) {\n`;r+=`${this._args[0]} = ${t};\n`;r+=`}\n`;r+=n();return r},onDone:()=>t(this._args[0]),doneReturns:n,rethrowIfPossible:r})}}const s=new SyncWaterfallHookCodeFactory;const o=()=>{throw new Error("tapAsync is not supported on a SyncWaterfallHook")};const a=()=>{throw new Error("tapPromise is not supported on a SyncWaterfallHook")};const c=function(e){s.setup(this,e);return s.create(e)};function SyncWaterfallHook(e=[],t=undefined){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);n.constructor=SyncWaterfallHook;n.tapAsync=o;n.tapPromise=a;n.compile=c;return n}SyncWaterfallHook.prototype=null;e.exports=SyncWaterfallHook},92960:(e,t,n)=>{"use strict";t.__esModule=true;t.SyncHook=n(6728);t.SyncBailHook=n(3334);t.SyncWaterfallHook=n(81934);t.SyncLoopHook=n(52332);t.AsyncParallelHook=n(3350);t.AsyncParallelBailHook=n(78802);t.AsyncSeriesHook=n(68152);t.AsyncSeriesBailHook=n(4953);t.AsyncSeriesLoopHook=n(25810);t.AsyncSeriesWaterfallHook=n(66760);t.HookMap=n(28636);t.MultiHook=n(20937)},71786:(e,t,n)=>{"use strict";var r;r={value:true};t.Z=void 0;var i=_interopRequireDefault(n(12087));var s=_interopRequireDefault(n(33101));var o=_interopRequireDefault(n(16366));var a=_interopRequireDefault(n(35764));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Webpack4Cache{constructor(e,t){this.cacheDir=t.cache===true?Webpack4Cache.getCacheDirectory():t.cache}static getCacheDirectory(){return(0,o.default)({name:"terser-webpack-plugin"})||i.default.tmpdir()}isEnabled(){return Boolean(this.cacheDir)}async get(e){e.cacheIdent=e.cacheIdent||(0,a.default)(e.cacheKeys);const{data:t}=await s.default.get(this.cacheDir,e.cacheIdent);return JSON.parse(t)}async store(e,t){return s.default.put(this.cacheDir,e.cacheIdent,JSON.stringify(t))}}t.Z=Webpack4Cache},35397:(e,t)=>{"use strict";var n;n={value:true};t.Z=void 0;class Cache{constructor(e,t){this.cache=e.getCache("TerserWebpackPlugin")}isEnabled(){return true}async get(e){e.cacheIdent=e.cacheIdent||`${e.name}`;e.cacheETag=e.cacheETag||this.cache.getLazyHashedEtag(e.assetSource);return this.cache.getPromise(e.cacheIdent,e.cacheETag)}async store(e,t){return this.cache.storePromise(e.cacheIdent,e.cacheETag,t)}}t.Z=Cache},96013:(e,t,n)=>{"use strict";const r=n(98225);e.exports=r.default},98225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(n(85622));var i=_interopRequireDefault(n(12087));var s=n(99596);var o=n(2991);var a=_interopRequireDefault(n(80910));var c=n(86443);var u=_interopRequireDefault(n(15235));var l=_interopRequireDefault(n(35764));var f=_interopRequireDefault(n(47667));var p=_interopRequireDefault(n(62317));var d=_interopRequireDefault(n(69419));var h=_interopRequireDefault(n(26068));var m=n(6218);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TerserPlugin{constructor(e={}){(0,u.default)(h.default,e,{name:"Terser Plugin",baseDataPath:"options"});const{minify:t,terserOptions:n={},test:r=/\.m?js(\?.*)?$/i,extractComments:i=true,sourceMap:s,cache:o=true,cacheKeys:a=(e=>e),parallel:c=true,include:l,exclude:f}=e;this.options={test:r,extractComments:i,sourceMap:s,cache:o,cacheKeys:a,parallel:c,include:l,exclude:f,minify:t,terserOptions:n}}static isSourceMap(e){return Boolean(e&&e.version&&e.sources&&Array.isArray(e.sources)&&typeof e.mappings==="string")}static buildError(e,t,n,r){if(e.line){const i=n&&n.originalPositionFor({line:e.line,column:e.col});if(i&&i.source&&r){return new Error(`${t} from Terser\n${e.message} [${r.shorten(i.source)}:${i.line},${i.column}][${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}return new Error(`${t} from Terser\n${e.message} [${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}if(e.stack){return new Error(`${t} from Terser\n${e.stack}`)}return new Error(`${t} from Terser\n${e.message}`)}static isWebpack4(){return c.version[0]==="4"}static getAvailableNumberOfCores(e){const t=i.default.cpus()||{length:1};return e===true?t.length-1:Math.min(Number(e)||0,t.length-1)}static getAsset(e,t){if(e.getAsset){return e.getAsset(t)}if(e.assets[t]){return{name:t,source:e.assets[t],info:{}}}}static emitAsset(e,t,n,r){if(e.emitAsset){e.emitAsset(t,n,r)}e.assets[t]=n}static updateAsset(e,t,n,r){if(e.updateAsset){e.updateAsset(t,n,r)}e.assets[t]=n}*taskGenerator(e,t,i,u){const{info:l,source:p}=TerserPlugin.getAsset(t,u);if(l.minimized){yield false}let d;let h;if(this.options.sourceMap&&p.sourceAndMap){const{source:e,map:n}=p.sourceAndMap();d=e;if(n){if(TerserPlugin.isSourceMap(n)){h=n}else{h=n;t.warnings.push(new Error(`${u} contains invalid source map`))}}}else{d=p.source();h=null}if(Buffer.isBuffer(d)){d=d.toString()}let m=false;if(this.options.extractComments){m=this.options.extractComments.filename||"[file].LICENSE.txt[query]";let e="";let n=u;const r=n.indexOf("?");if(r>=0){e=n.substr(r);n=n.substr(0,r)}const i=n.lastIndexOf("/");const s=i===-1?n:n.substr(i+1);const o={filename:n,basename:s,query:e};m=t.getPath(m,o)}const g=n=>{let{code:c}=n;const{error:f,map:p}=n;const{extractedComments:g}=n;let y=null;if(f&&h&&TerserPlugin.isSourceMap(h)){y=new s.SourceMapConsumer(h)}if(f){t.errors.push(TerserPlugin.buildError(f,u,y,new a.default(e.context)));return}const v=m&&g&&g.length>0;const _=this.options.extractComments.banner!==false;let b;let E;if(v&&_&&c.startsWith("#!")){const e=c.indexOf("\n");E=c.substring(0,e);c=c.substring(e+1)}if(p){b=new o.SourceMapSource(c,u,p,d,h,true)}else{b=new o.RawSource(c)}const w={...l,minimized:true};if(v){let e;w.related={license:m};if(_){e=this.options.extractComments.banner||`For license information please see ${r.default.relative(r.default.dirname(u),m).replace(/\\/g,"/")}`;if(typeof e==="function"){e=e(m)}if(e){b=new o.ConcatSource(E?`${E}\n`:"",`/*! ${e} */\n`,b)}}if(!i[m]){i[m]=new Set}g.forEach(t=>{if(e&&t===`/*! ${e} */`){return}i[m].add(t)});const n=TerserPlugin.getAsset(t,m);if(n){const e=n.source.source();e.replace(/\n$/,"").split("\n\n").forEach(e=>{i[m].add(e)})}}TerserPlugin.updateAsset(t,u,b,w)};const y={name:u,input:d,inputSourceMap:h,commentsFilename:m,extractComments:this.options.extractComments,terserOptions:this.options.terserOptions,minify:this.options.minify,callback:g};if(TerserPlugin.isWebpack4()){const{outputOptions:{hashSalt:e,hashDigest:r,hashDigestLength:i,hashFunction:s}}=t;const o=c.util.createHash(s);if(e){o.update(e)}o.update(d);const a=o.digest(r);if(this.options.cache){const e={terser:f.default.version,"terser-webpack-plugin":n(48574).i8,"terser-webpack-plugin-options":this.options,nodeVersion:process.version,name:u,contentHash:a.substr(0,i)};y.cacheKeys=this.options.cacheKeys(e,u)}}else{y.assetSource=p}yield y}async runTasks(e,t,r){const i=TerserPlugin.getAvailableNumberOfCores(this.options.parallel);let s=Infinity;let o;if(i>0){const t=Math.min(e.length,i);s=t;o=new d.default(n.ab+"minify.js",{numWorkers:t});const r=o.getStdout();if(r){r.on("data",e=>{return process.stdout.write(e)})}const a=o.getStderr();if(a){a.on("data",e=>{return process.stderr.write(e)})}}const a=(0,p.default)(s);const c=[];for(const n of e){const e=async e=>{let t;try{t=await(o?o.transform((0,l.default)(e)):(0,m.minify)(e))}catch(e){t={error:e}}if(r.isEnabled()&&!t.error){await r.store(e,t)}e.callback(t);return t};c.push(a(async()=>{const i=t(n).next().value;if(!i){return Promise.resolve()}if(r.isEnabled()){let t;try{t=await r.get(i)}catch(t){return e(i)}if(!t){return e(i)}i.callback(t);return Promise.resolve()}return e(i)}))}await Promise.all(c);if(o){await o.end()}}apply(e){const{devtool:t,output:r,plugins:i}=e.options;this.options.sourceMap=typeof this.options.sourceMap==="undefined"?t&&!t.includes("eval")&&!t.includes("cheap")&&(t.includes("source-map")||t.includes("sourcemap"))||i&&i.some(e=>e instanceof c.SourceMapDevToolPlugin&&e.options&&e.options.columns):Boolean(this.options.sourceMap);if(typeof this.options.terserOptions.module==="undefined"&&typeof r.module!=="undefined"){this.options.terserOptions.module=r.module}if(typeof this.options.terserOptions.ecma==="undefined"&&typeof r.ecmaVersion!=="undefined"){this.options.terserOptions.ecma=r.ecmaVersion}const s=c.ModuleFilenameHelpers.matchObject.bind(undefined,this.options);const a=async(t,r)=>{let i;if(TerserPlugin.isWebpack4()){i=[].concat(Array.from(t.additionalChunkAssets||[])).concat(Array.from(r).reduce((e,t)=>e.concat(Array.from(t.files||[])),[])).concat(Object.keys(t.assets)).filter((e,t,n)=>n.indexOf(e)===t).filter(e=>s(e))}else{i=[].concat(Object.keys(r)).filter(e=>s(e))}if(i.length===0){return Promise.resolve()}const a={};const c=this.taskGenerator.bind(this,e,t,a);const u=TerserPlugin.isWebpack4()?n(71786).Z:n(35397).Z;const l=new u(t,{cache:this.options.cache});await this.runTasks(i,c,l);Object.keys(a).forEach(e=>{const n=Array.from(a[e]).sort().join("\n\n");TerserPlugin.emitAsset(t,e,new o.RawSource(`${n}\n`))});return Promise.resolve()};const u=this.constructor.name;e.hooks.compilation.tap(u,e=>{if(this.options.sourceMap){e.hooks.buildModule.tap(u,e=>{e.useSourceMap=true})}if(TerserPlugin.isWebpack4()){const{mainTemplate:t,chunkTemplate:n}=e;const r=(0,l.default)({terser:f.default.version,terserOptions:this.options.terserOptions});for(const e of[t,n]){e.hooks.hashForChunk.tap(u,e=>{e.update("TerserPlugin");e.update(r)})}e.hooks.optimizeChunkAssets.tapPromise(u,a.bind(this,e))}else{const t=n(3080);const r=c.javascript.JavascriptModulesPlugin.getCompilationHooks(e);const i=(0,l.default)({terser:f.default.version,terserOptions:this.options.terserOptions});r.chunkHash.tap(u,(e,t)=>{t.update("TerserPlugin");t.update(i)});e.hooks.processAssets.tapPromise({name:u,stage:t.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE},a.bind(this,e));e.hooks.statsPrinter.tap(u,e=>{e.hooks.print.for("asset.info.minimized").tap("terser-webpack-plugin",(e,{green:t,formatFlag:n})=>e?t(n("minimized")):undefined)})}})}}var g=TerserPlugin;t.default=g},6218:(e,t,n)=>{"use strict";e=n.nmd(e);const{minify:r}=n(79304);const i=({ecma:e,parse:t={},compress:n={},mangle:r,module:i,output:s,toplevel:o,nameCache:a,ie8:c,keep_classnames:u,keep_fnames:l,safari10:f}={})=>({parse:{...t},compress:typeof n==="boolean"?n:{...n},mangle:r==null?true:typeof r==="boolean"?r:{...r},output:{beautify:false,...s},sourceMap:null,ecma:e,keep_classnames:u,keep_fnames:l,ie8:c,module:i,nameCache:a,safari10:f,toplevel:o});function isObject(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}const s=(e,t,n)=>{const r={};const i=t.output.comments;const{extractComments:s}=e;r.preserve=typeof i!=="undefined"?i:false;if(typeof s==="boolean"&&s){r.extract="some"}else if(typeof s==="string"||s instanceof RegExp){r.extract=s}else if(typeof s==="function"){r.extract=s}else if(isObject(s)){r.extract=typeof s.condition==="boolean"&&s.condition?"some":typeof s.condition!=="undefined"?s.condition:"some"}else{r.preserve=typeof i!=="undefined"?i:"some";r.extract=false}["preserve","extract"].forEach(e=>{let t;let n;switch(typeof r[e]){case"boolean":r[e]=r[e]?()=>true:()=>false;break;case"function":break;case"string":if(r[e]==="all"){r[e]=(()=>true);break}if(r[e]==="some"){r[e]=((e,t)=>{return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(t.value)});break}t=r[e];r[e]=((e,n)=>{return new RegExp(t).test(n.value)});break;default:n=r[e];r[e]=((e,t)=>n.test(t.value))}});return(e,t)=>{if(r.extract(e,t)){const e=t.type==="comment2"?`/*${t.value}*/`:`//${t.value}`;if(!n.includes(e)){n.push(e)}}return r.preserve(e,t)}};async function minify(e){const{name:t,input:n,inputSourceMap:o,minify:a}=e;if(a){return a({[t]:n},o)}const c=i(e.terserOptions);if(o){c.sourceMap={asObject:true}}const u=[];c.output.comments=s(e,c,u);const l=await r({[t]:n},c);return{...l,extractedComments:u}}function transform(n){n=new Function("exports","require","module","__filename","__dirname",`'use strict'\nreturn ${n}`)(t,require,e,__filename,__dirname);return minify(n)}e.exports.minify=minify;e.exports.transform=transform},70481:(e,t,n)=>{"use strict";const r=n(31669);const i=n(35747);const s=n(76763);const o=n(23656);const a=n(42575);const c=n(22819);const u=n(19981);const l=n(56435);const f=r.promisify(i.writeFile);e.exports=function get(e,t,n){return getData(false,e,t,n)};e.exports.byDigest=function getByDigest(e,t,n){return getData(true,e,t,n)};function getData(e,t,n,r={}){const{integrity:i,memoize:c,size:u}=r;const l=e?o.get.byDigest(t,n,r):o.get(t,n,r);if(l&&c!==false){return Promise.resolve(e?l:{metadata:l.entry.metadata,data:l.data,integrity:l.entry.integrity,size:l.entry.size})}return(e?Promise.resolve(null):s.find(t,n,r)).then(l=>{if(!l&&!e){throw new s.NotFoundError(t,n)}return a(t,e?n:l.integrity,{integrity:i,size:u}).then(t=>e?t:{data:t,metadata:l.metadata,size:l.size,integrity:l.integrity}).then(i=>{if(c&&e){o.put.byDigest(t,n,i,r)}else if(c){o.put(t,l,i.data,r)}return i})})}e.exports.sync=function get(e,t,n){return getDataSync(false,e,t,n)};e.exports.sync.byDigest=function getByDigest(e,t,n){return getDataSync(true,e,t,n)};function getDataSync(e,t,n,r={}){const{integrity:i,memoize:c,size:u}=r;const l=e?o.get.byDigest(t,n,r):o.get(t,n,r);if(l&&c!==false){return e?l:{metadata:l.entry.metadata,data:l.data,integrity:l.entry.integrity,size:l.entry.size}}const f=!e&&s.find.sync(t,n,r);if(!f&&!e){throw new s.NotFoundError(t,n)}const p=a.sync(t,e?n:f.integrity,{integrity:i,size:u});const d=e?p:{metadata:f.metadata,data:p,size:f.size,integrity:f.integrity};if(c&&e){o.put.byDigest(t,n,d,r)}else if(c){o.put(t,f,d.data,r)}return d}e.exports.stream=getStream;const p=e=>{const t=new c;t.on("newListener",function(t,n){t==="metadata"&&n(e.entry.metadata);t==="integrity"&&n(e.entry.integrity);t==="size"&&n(e.entry.size)});t.end(e.data);return t};function getStream(e,t,n={}){const{memoize:r,size:i}=n;const c=o.get(e,t,n);if(c&&r!==false){return p(c)}const f=new l;s.find(e,t).then(c=>{if(!c){throw new s.NotFoundError(e,t)}f.emit("metadata",c.metadata);f.emit("integrity",c.integrity);f.emit("size",c.size);f.on("newListener",function(e,t){e==="metadata"&&t(c.metadata);e==="integrity"&&t(c.integrity);e==="size"&&t(c.size)});const l=a.readStream(e,c.integrity,{...n,size:typeof i!=="number"?c.size:i});if(r){const t=new u.PassThrough;t.on("collect",t=>o.put(e,c,t,n));f.unshift(t)}f.unshift(l)}).catch(e=>f.emit("error",e));return f}e.exports.stream.byDigest=getStreamDigest;function getStreamDigest(e,t,n={}){const{memoize:r}=n;const i=o.get.byDigest(e,t,n);if(i&&r!==false){const e=new c;e.end(i);return e}else{const i=a.readStream(e,t,n);if(!r){return i}const s=new u.PassThrough;s.on("collect",r=>o.put.byDigest(e,t,r,n));return new l(i,s)}}e.exports.info=info;function info(e,t,n={}){const{memoize:r}=n;const i=o.get(e,t,n);if(i&&r!==false){return Promise.resolve(i.entry)}else{return s.find(e,t)}}e.exports.hasContent=a.hasContent;function cp(e,t,n,r){return copy(false,e,t,n,r)}e.exports.copy=cp;function cpDigest(e,t,n,r){return copy(true,e,t,n,r)}e.exports.copy.byDigest=cpDigest;function copy(e,t,n,r,i={}){if(a.copy){return(e?Promise.resolve(null):s.find(t,n,i)).then(o=>{if(!o&&!e){throw new s.NotFoundError(t,n)}return a.copy(t,e?n:o.integrity,r,i).then(()=>{return e?n:{metadata:o.metadata,size:o.size,integrity:o.integrity}})})}return getData(e,t,n,i).then(t=>{return f(r,e?t:t.data).then(()=>{return e?n:{metadata:t.metadata,size:t.size,integrity:t.integrity}})})}},33101:(e,t,n)=>{"use strict";const r=n(14288);const i=n(70481);const s=n(80003);const o=n(19511);const a=n(39614);const{clearMemoized:c}=n(23656);const u=n(81025);e.exports.ls=r;e.exports.ls.stream=r.stream;e.exports.get=i;e.exports.get.byDigest=i.byDigest;e.exports.get.sync=i.sync;e.exports.get.sync.byDigest=i.sync.byDigest;e.exports.get.stream=i.stream;e.exports.get.stream.byDigest=i.stream.byDigest;e.exports.get.copy=i.copy;e.exports.get.copy.byDigest=i.copy.byDigest;e.exports.get.info=i.info;e.exports.get.hasContent=i.hasContent;e.exports.get.hasContent.sync=i.hasContent.sync;e.exports.put=s;e.exports.put.stream=s.stream;e.exports.rm=o.entry;e.exports.rm.all=o.all;e.exports.rm.entry=e.exports.rm;e.exports.rm.content=o.content;e.exports.clearMemoized=c;e.exports.tmp={};e.exports.tmp.mkdir=u.mkdir;e.exports.tmp.withTmp=u.withTmp;e.exports.verify=a;e.exports.verify.lastRun=a.lastRun},7305:(e,t,n)=>{"use strict";const r=n(16705).Jw.k;const i=n(21481);const s=n(85622);const o=n(913);e.exports=contentPath;function contentPath(e,t){const n=o.parse(t,{single:true});return s.join(contentDir(e),n.algorithm,...i(n.hexDigest()))}e.exports.contentDir=contentDir;function contentDir(e){return s.join(e,`content-v${r}`)}},42575:(e,t,n)=>{"use strict";const r=n(31669);const i=n(35747);const s=n(95625);const o=n(913);const a=n(7305);const c=n(56435);const u=r.promisify(i.lstat);const l=r.promisify(i.readFile);e.exports=read;const f=64*1024*1024;function read(e,t,n={}){const{size:r}=n;return withContentSri(e,t,(e,t)=>{return u(e).then(n=>({stat:n,cpath:e,sri:t}))}).then(({stat:e,cpath:t,sri:n})=>{if(typeof r==="number"&&e.size!==r){throw sizeError(r,e.size)}if(e.size>f){return p(t,e.size,n,new c).concat()}return l(t,null).then(e=>{if(!o.checkData(e,n)){throw integrityError(n,t)}return e})})}const p=(e,t,n,r)=>{r.push(new s.ReadStream(e,{size:t,readSize:f}),o.integrityStream({integrity:n,size:t}));return r};e.exports.sync=readSync;function readSync(e,t,n={}){const{size:r}=n;return withContentSriSync(e,t,(e,t)=>{const n=i.readFileSync(e);if(typeof r==="number"&&r!==n.length){throw sizeError(r,n.length)}if(o.checkData(n,t)){return n}throw integrityError(t,e)})}e.exports.stream=readStream;e.exports.readStream=readStream;function readStream(e,t,n={}){const{size:r}=n;const i=new c;withContentSri(e,t,(e,t)=>{return u(e).then(n=>({stat:n,cpath:e,sri:t}))}).then(({stat:e,cpath:t,sri:n})=>{if(typeof r==="number"&&r!==e.size){return i.emit("error",sizeError(r,e.size))}p(t,e.size,n,i)},e=>i.emit("error",e));return i}let d;if(i.copyFile){e.exports.copy=copy;e.exports.copy.sync=copySync;d=r.promisify(i.copyFile)}function copy(e,t,n){return withContentSri(e,t,(e,t)=>{return d(e,n)})}function copySync(e,t,n){return withContentSriSync(e,t,(e,t)=>{return i.copyFileSync(e,n)})}e.exports.hasContent=hasContent;function hasContent(e,t){if(!t){return Promise.resolve(false)}return withContentSri(e,t,(e,t)=>{return u(e).then(e=>({size:e.size,sri:t,stat:e}))}).catch(e=>{if(e.code==="ENOENT"){return false}if(e.code==="EPERM"){if(process.platform!=="win32"){throw e}else{return false}}})}e.exports.hasContent.sync=hasContentSync;function hasContentSync(e,t){if(!t){return false}return withContentSriSync(e,t,(e,t)=>{try{const n=i.lstatSync(e);return{size:n.size,sri:t,stat:n}}catch(e){if(e.code==="ENOENT"){return false}if(e.code==="EPERM"){if(process.platform!=="win32"){throw e}else{return false}}}})}function withContentSri(e,t,n){const r=()=>{const r=o.parse(t);const i=r.pickAlgorithm();const s=r[i];if(s.length<=1){const t=a(e,s[0]);return n(t,s[0])}else{return Promise.all(s.map(t=>{return withContentSri(e,t,n).catch(e=>{if(e.code==="ENOENT"){return Object.assign(new Error("No matching content found for "+r.toString()),{code:"ENOENT"})}return e})})).then(e=>{const t=e.find(e=>!(e instanceof Error));if(t){return t}const n=e.find(e=>e.code==="ENOENT");if(n){throw n}throw e.find(e=>e instanceof Error)})}};return new Promise((e,t)=>{try{r().then(e).catch(t)}catch(e){t(e)}})}function withContentSriSync(e,t,n){const r=o.parse(t);const i=r.pickAlgorithm();const s=r[i];if(s.length<=1){const t=a(e,s[0]);return n(t,s[0])}else{let t=null;for(const r of s){try{return withContentSriSync(e,r,n)}catch(e){t=e}}throw t}}function sizeError(e,t){const n=new Error(`Bad data size: expected inserted data to be ${e} bytes, but got ${t} instead`);n.expected=e;n.found=t;n.code="EBADSIZE";return n}function integrityError(e,t){const n=new Error(`Integrity verification failed for ${e} (${t})`);n.code="EINTEGRITY";n.sri=e;n.path=t;return n}},92456:(e,t,n)=>{"use strict";const r=n(31669);const i=n(7305);const{hasContent:s}=n(42575);const o=r.promisify(n(32517));e.exports=rm;function rm(e,t){return s(e,t).then(t=>{if(t&&t.sri){return o(i(e,t.sri)).then(()=>true)}else{return false}})}},43509:(e,t,n)=>{"use strict";const r=n(31669);const i=n(7305);const s=n(98681);const o=n(35747);const a=n(30675);const c=n(22819);const u=n(56435);const l=n(55027);const f=n(85622);const p=r.promisify(n(32517));const d=n(913);const h=n(43751);const{disposer:m}=n(41242);const g=n(95625);const y=r.promisify(o.writeFile);e.exports=write;function write(e,t,n={}){const{algorithms:r,size:i,integrity:s}=n;if(r&&r.length>1){throw new Error("opts.algorithms only supports a single algorithm for now")}if(typeof i==="number"&&t.length!==i){return Promise.reject(sizeError(i,t.length))}const o=d.fromData(t,r?{algorithms:r}:{});if(s&&!d.checkData(t,s,n)){return Promise.reject(checksumError(s,o))}return m(makeTmp(e,n),makeTmpDisposer,r=>{return y(r.target,t,{flag:"wx"}).then(()=>moveToDestination(r,e,o,n))}).then(()=>({integrity:o,size:t.length}))}e.exports.stream=writeStream;class CacacheWriteStream extends l{constructor(e,t){super();this.opts=t;this.cache=e;this.inputStream=new c;this.inputStream.on("error",e=>this.emit("error",e));this.inputStream.on("drain",()=>this.emit("drain"));this.handleContentP=null}write(e,t,n){if(!this.handleContentP){this.handleContentP=handleContent(this.inputStream,this.cache,this.opts)}return this.inputStream.write(e,t,n)}flush(e){this.inputStream.end(()=>{if(!this.handleContentP){const t=new Error("Cache input stream was empty");t.code="ENODATA";return Promise.reject(t).catch(e)}this.handleContentP.then(t=>{t.integrity&&this.emit("integrity",t.integrity);t.size!==null&&this.emit("size",t.size);e()},t=>e(t))})}}function writeStream(e,t={}){return new CacacheWriteStream(e,t)}function handleContent(e,t,n){return m(makeTmp(t,n),makeTmpDisposer,r=>{return pipeToTmp(e,t,r.target,n).then(e=>{return moveToDestination(r,t,e.integrity,n).then(()=>e)})})}function pipeToTmp(e,t,n,r){let i;let s;const o=d.integrityStream({integrity:r.integrity,algorithms:r.algorithms,size:r.size});o.on("integrity",e=>{i=e});o.on("size",e=>{s=e});const a=new g.WriteStream(n,{flags:"wx"});const c=new u(e,o,a);return c.promise().then(()=>({integrity:i,size:s})).catch(e=>p(n).then(()=>{throw e}))}function makeTmp(e,t){const n=h(f.join(e,"tmp"),t.tmpPrefix);return s.mkdirfix(e,f.dirname(n)).then(()=>({target:n,moved:false}))}function makeTmpDisposer(e){if(e.moved){return Promise.resolve()}return p(e.target)}function moveToDestination(e,t,n,r){const o=i(t,n);const c=f.dirname(o);return s.mkdirfix(t,c).then(()=>{return a(e.target,o)}).then(()=>{e.moved=true;return s.chownr(t,o)})}function sizeError(e,t){const n=new Error(`Bad data size: expected inserted data to be ${e} bytes, but got ${t} instead`);n.expected=e;n.found=t;n.code="EBADSIZE";return n}function checksumError(e,t){const n=new Error(`Integrity check failed:\n Wanted: ${e}\n Found: ${t}`);n.code="EINTEGRITY";n.expected=e;n.found=t;return n}},76763:(e,t,n)=>{"use strict";const r=n(31669);const i=n(76417);const s=n(35747);const o=n(22819);const a=n(85622);const c=n(913);const u=n(7305);const l=n(98681);const f=n(21481);const p=n(16705).Jw.K;const d=r.promisify(s.appendFile);const h=r.promisify(s.readFile);const m=r.promisify(s.readdir);e.exports.NotFoundError=class NotFoundError extends Error{constructor(e,t){super(`No cache entry for ${t} found in ${e}`);this.code="ENOENT";this.cache=e;this.key=t}};e.exports.insert=insert;function insert(e,t,n,r={}){const{metadata:i,size:s}=r;const o=bucketPath(e,t);const u={key:t,integrity:n&&c.stringify(n),time:Date.now(),size:s,metadata:i};return l.mkdirfix(e,a.dirname(o)).then(()=>{const e=JSON.stringify(u);return d(o,`\n${hashEntry(e)}\t${e}`)}).then(()=>l.chownr(e,o)).catch(e=>{if(e.code==="ENOENT"){return undefined}throw e}).then(()=>{return formatEntry(e,u)})}e.exports.insert.sync=insertSync;function insertSync(e,t,n,r={}){const{metadata:i,size:o}=r;const u=bucketPath(e,t);const f={key:t,integrity:n&&c.stringify(n),time:Date.now(),size:o,metadata:i};l.mkdirfix.sync(e,a.dirname(u));const p=JSON.stringify(f);s.appendFileSync(u,`\n${hashEntry(p)}\t${p}`);try{l.chownr.sync(e,u)}catch(e){if(e.code!=="ENOENT"){throw e}}return formatEntry(e,f)}e.exports.find=find;function find(e,t){const n=bucketPath(e,t);return bucketEntries(n).then(n=>{return n.reduce((n,r)=>{if(r&&r.key===t){return formatEntry(e,r)}else{return n}},null)}).catch(e=>{if(e.code==="ENOENT"){return null}else{throw e}})}e.exports.find.sync=findSync;function findSync(e,t){const n=bucketPath(e,t);try{return bucketEntriesSync(n).reduce((n,r)=>{if(r&&r.key===t){return formatEntry(e,r)}else{return n}},null)}catch(e){if(e.code==="ENOENT"){return null}else{throw e}}}e.exports.delete=del;function del(e,t,n){return insert(e,t,null,n)}e.exports.delete.sync=delSync;function delSync(e,t,n){return insertSync(e,t,null,n)}e.exports.lsStream=lsStream;function lsStream(e){const t=bucketDir(e);const n=new o({objectMode:true});readdirOrEmpty(t).then(r=>Promise.all(r.map(r=>{const i=a.join(t,r);return readdirOrEmpty(i).then(t=>Promise.all(t.map(t=>{const r=a.join(i,t);return readdirOrEmpty(r).then(t=>Promise.all(t.map(t=>{const i=a.join(r,t);return bucketEntries(i).then(e=>e.reduce((e,t)=>{e.set(t.key,t);return e},new Map)).then(t=>{for(const r of t.values()){const t=formatEntry(e,r);if(t){n.write(t)}}}).catch(e=>{if(e.code==="ENOENT"){return undefined}throw e})})))})))}))).then(()=>n.end(),e=>n.emit("error",e));return n}e.exports.ls=ls;function ls(e){return lsStream(e).collect().then(e=>e.reduce((e,t)=>{e[t.key]=t;return e},{}))}function bucketEntries(e,t){return h(e,"utf8").then(e=>_bucketEntries(e,t))}function bucketEntriesSync(e,t){const n=s.readFileSync(e,"utf8");return _bucketEntries(n,t)}function _bucketEntries(e,t){const n=[];e.split("\n").forEach(e=>{if(!e){return}const t=e.split("\t");if(!t[1]||hashEntry(t[1])!==t[0]){return}let r;try{r=JSON.parse(t[1])}catch(e){return}if(r){n.push(r)}});return n}e.exports.bucketDir=bucketDir;function bucketDir(e){return a.join(e,`index-v${p}`)}e.exports.bucketPath=bucketPath;function bucketPath(e,t){const n=hashKey(t);return a.join.apply(a,[bucketDir(e)].concat(f(n)))}e.exports.hashKey=hashKey;function hashKey(e){return hash(e,"sha256")}e.exports.hashEntry=hashEntry;function hashEntry(e){return hash(e,"sha1")}function hash(e,t){return i.createHash(t).update(e).digest("hex")}function formatEntry(e,t){if(!t.integrity){return null}return{key:t.key,integrity:t.integrity,path:u(e,t.integrity),size:t.size,time:t.time,metadata:t.metadata}}function readdirOrEmpty(e){return m(e).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR"){return[]}throw e})}},23656:(e,t,n)=>{"use strict";const r=n(37297);const i=50*1024*1024;const s=3*60*1e3;const o=new r({max:i,maxAge:s,length:(e,t)=>t.startsWith("key:")?e.data.length:e.length});e.exports.clearMemoized=clearMemoized;function clearMemoized(){const e={};o.forEach((t,n)=>{e[n]=t});o.reset();return e}e.exports.put=put;function put(e,t,n,r){pickMem(r).set(`key:${e}:${t.key}`,{entry:t,data:n});putDigest(e,t.integrity,n,r)}e.exports.put.byDigest=putDigest;function putDigest(e,t,n,r){pickMem(r).set(`digest:${e}:${t}`,n)}e.exports.get=get;function get(e,t,n){return pickMem(n).get(`key:${e}:${t}`)}e.exports.get.byDigest=getDigest;function getDigest(e,t,n){return pickMem(n).get(`digest:${e}:${t}`)}class ObjProxy{constructor(e){this.obj=e}get(e){return this.obj[e]}set(e,t){this.obj[e]=t}}function pickMem(e){if(!e||!e.memoize){return o}else if(e.memoize.get&&e.memoize.set){return e.memoize}else if(typeof e.memoize==="object"){return new ObjProxy(e.memoize)}else{return o}}},41242:e=>{"use strict";e.exports.disposer=disposer;function disposer(e,t,n){const r=(e,n,r=false)=>{return t(e).then(()=>{if(r){throw n}return n},e=>{throw e})};return e.then(e=>{return Promise.resolve().then(()=>n(e)).then(t=>r(e,t)).catch(t=>r(e,t,true))})}},98681:(e,t,n)=>{"use strict";const r=n(31669);const i=r.promisify(n(55020));const s=n(6371);const o=n(97393);const a=n(47411);const c={uid:null,gid:null};const u=()=>{if(typeof c.uid!=="number"){c.uid=process.getuid();const e=process.setuid;process.setuid=(t=>{c.uid=null;process.setuid=e;return process.setuid(t)})}if(typeof c.gid!=="number"){c.gid=process.getgid();const e=process.setgid;process.setgid=(t=>{c.gid=null;process.setgid=e;return process.setgid(t)})}};e.exports.chownr=fixOwner;function fixOwner(e,t){if(!process.getuid){return Promise.resolve()}u();if(c.uid!==0){return Promise.resolve()}return Promise.resolve(a(e)).then(e=>{const{uid:n,gid:r}=e;if(c.uid===n&&c.gid===r){return}return o("fixOwner: fixing ownership on "+t,()=>i(t,typeof n==="number"?n:c.uid,typeof r==="number"?r:c.gid).catch(e=>{if(e.code==="ENOENT"){return null}throw e}))})}e.exports.chownr.sync=fixOwnerSync;function fixOwnerSync(e,t){if(!process.getuid){return}const{uid:n,gid:r}=a.sync(e);u();if(c.uid!==0){return}if(c.uid===n&&c.gid===r){return}try{i.sync(t,typeof n==="number"?n:c.uid,typeof r==="number"?r:c.gid)}catch(e){if(e.code==="ENOENT"){return null}throw e}}e.exports.mkdirfix=mkdirfix;function mkdirfix(e,t,n){return Promise.resolve(a(e)).then(()=>{return s(t).then(t=>{if(t){return fixOwner(e,t).then(()=>t)}}).catch(n=>{if(n.code==="EEXIST"){return fixOwner(e,t).then(()=>null)}throw n})})}e.exports.mkdirfix.sync=mkdirfixSync;function mkdirfixSync(e,t){try{a.sync(e);const n=s.sync(t);if(n){fixOwnerSync(e,n);return n}}catch(n){if(n.code==="EEXIST"){fixOwnerSync(e,t);return null}else{throw n}}}},21481:e=>{"use strict";e.exports=hashToSegments;function hashToSegments(e){return[e.slice(0,2),e.slice(2,4),e.slice(4)]}},30675:(e,t,n)=>{"use strict";const r=n(35747);const i=n(31669);const s=i.promisify(r.chmod);const o=i.promisify(r.unlink);const a=i.promisify(r.stat);const c=n(93414);const u=n(97393);e.exports=moveFile;function moveFile(e,t){const n=global.__CACACHE_TEST_FAKE_WINDOWS__||process.platform==="win32";return new Promise((i,s)=>{r.link(e,t,e=>{if(e){if(n&&e.code==="EPERM"){return i()}else if(e.code==="EEXIST"||e.code==="EBUSY"){return i()}else{return s(e)}}else{return i()}})}).then(()=>{return Promise.all([o(e),!n&&s(t,"0444")])}).catch(()=>{return u("cacache-move-file:"+t,()=>{return a(t).catch(n=>{if(n.code!=="ENOENT"){throw n}return c(e,t)})})})}},81025:(e,t,n)=>{"use strict";const r=n(31669);const i=n(98681);const s=n(85622);const o=r.promisify(n(32517));const a=n(43751);const{disposer:c}=n(41242);e.exports.mkdir=mktmpdir;function mktmpdir(e,t={}){const{tmpPrefix:n}=t;const r=a(s.join(e,"tmp"),n);return i.mkdirfix(e,r).then(()=>{return r})}e.exports.withTmp=withTmp;function withTmp(e,t,n){if(!n){n=t;t={}}return c(mktmpdir(e,t),o,n)}e.exports.fix=fixtmpdir;function fixtmpdir(e){return i(e,s.join(e,"tmp"))}},99746:(e,t,n)=>{"use strict";const r=n(31669);const i=n(62383);const s=n(7305);const o=n(98681);const a=n(35747);const c=n(95625);const u=r.promisify(n(18750));const l=n(76763);const f=n(85622);const p=r.promisify(n(32517));const d=n(913);const h=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const m=r.promisify(a.stat);const g=r.promisify(a.truncate);const y=r.promisify(a.writeFile);const v=r.promisify(a.readFile);const _=e=>({concurrency:20,log:{silly(){}},...e});e.exports=verify;function verify(e,t){t=_(t);t.log.silly("verify","verifying cache at",e);const n=[markStartTime,fixPerms,garbageCollect,rebuildIndex,cleanTmp,writeVerifile,markEndTime];return n.reduce((n,r,i)=>{const s=r.name;const o=new Date;return n.then(n=>{return r(e,t).then(e=>{e&&Object.keys(e).forEach(t=>{n[t]=e[t]});const t=new Date;if(!n.runTime){n.runTime={}}n.runTime[s]=t-o;return Promise.resolve(n)})})},Promise.resolve({})).then(n=>{n.runTime.total=n.endTime-n.startTime;t.log.silly("verify","verification finished for",e,"in",`${n.runTime.total}ms`);return n})}function markStartTime(e,t){return Promise.resolve({startTime:new Date})}function markEndTime(e,t){return Promise.resolve({endTime:new Date})}function fixPerms(e,t){t.log.silly("verify","fixing cache permissions");return o.mkdirfix(e,e).then(()=>{return o.chownr(e,e)}).then(()=>null)}function garbageCollect(e,t){t.log.silly("verify","garbage collecting content");const n=l.lsStream(e);const r=new Set;n.on("data",e=>{if(t.filter&&!t.filter(e)){return}r.add(e.integrity.toString())});return new Promise((e,t)=>{n.on("end",e).on("error",t)}).then(()=>{const n=s.contentDir(e);return u(f.join(n,"**"),{follow:false,nodir:true,nosort:true}).then(e=>{return Promise.resolve({verifiedContent:0,reclaimedCount:0,reclaimedSize:0,badContentCount:0,keptSize:0}).then(n=>i(e,e=>{const t=e.split(/[/\\]/);const i=t.slice(t.length-3).join("");const s=t[t.length-4];const o=d.fromHex(i,s);if(r.has(o.toString())){return verifyContent(e,o).then(e=>{if(!e.valid){n.reclaimedCount++;n.badContentCount++;n.reclaimedSize+=e.size}else{n.verifiedContent++;n.keptSize+=e.size}return n})}else{n.reclaimedCount++;return m(e).then(t=>{return p(e).then(()=>{n.reclaimedSize+=t.size;return n})})}},{concurrency:t.concurrency}).then(()=>n))})})}function verifyContent(e,t){return m(e).then(n=>{const r={size:n.size,valid:true};return d.checkStream(new c.ReadStream(e),t).catch(t=>{if(t.code!=="EINTEGRITY"){throw t}return p(e).then(()=>{r.valid=false})}).then(()=>r)}).catch(e=>{if(e.code==="ENOENT"){return{size:0,valid:false}}throw e})}function rebuildIndex(e,t){t.log.silly("verify","rebuilding index");return l.ls(e).then(n=>{const r={missingContent:0,rejectedEntries:0,totalEntries:0};const s={};for(const i in n){if(h(n,i)){const o=l.hashKey(i);const a=n[i];const c=t.filter&&!t.filter(a);c&&r.rejectedEntries++;if(s[o]&&!c){s[o].push(a)}else if(s[o]&&c){}else if(c){s[o]=[];s[o]._path=l.bucketPath(e,i)}else{s[o]=[a];s[o]._path=l.bucketPath(e,i)}}}return i(Object.keys(s),n=>{return rebuildBucket(e,s[n],r,t)},{concurrency:t.concurrency}).then(()=>r)})}function rebuildBucket(e,t,n,r){return g(t._path).then(()=>{return t.reduce((t,r)=>{return t.then(()=>{const t=s(e,r.integrity);return m(t).then(()=>{return l.insert(e,r.key,r.integrity,{metadata:r.metadata,size:r.size}).then(()=>{n.totalEntries++})}).catch(e=>{if(e.code==="ENOENT"){n.rejectedEntries++;n.missingContent++;return}throw e})})},Promise.resolve())})}function cleanTmp(e,t){t.log.silly("verify","cleaning tmp directory");return p(f.join(e,"tmp"))}function writeVerifile(e,t){const n=f.join(e,"_lastverified");t.log.silly("verify","writing verifile to "+n);try{return y(n,""+ +new Date)}finally{o.chownr.sync(e,n)}}e.exports.lastRun=lastRun;function lastRun(e){return v(f.join(e,"_lastverified"),"utf8").then(e=>new Date(+e))}},14288:(e,t,n)=>{"use strict";const r=n(76763);e.exports=r.ls;e.exports.stream=r.lsStream},80003:(e,t,n)=>{"use strict";const r=n(76763);const i=n(23656);const s=n(43509);const o=n(55027);const{PassThrough:a}=n(19981);const c=n(56435);const u=e=>({algorithms:["sha512"],...e});e.exports=putData;function putData(e,t,n,o={}){const{memoize:a}=o;o=u(o);return s(e,n,o).then(s=>{return r.insert(e,t,s.integrity,{...o,size:s.size}).then(t=>{if(a){i.put(e,t,n,o)}return s.integrity})})}e.exports.stream=putStream;function putStream(e,t,n={}){const{memoize:l}=n;n=u(n);let f;let p;let d;const h=new c;if(l){const e=(new a).on("collect",e=>{d=e});h.push(e)}const m=s.stream(e,n).on("integrity",e=>{f=e}).on("size",e=>{p=e});h.push(m);h.push(new o({flush(){return r.insert(e,t,f,{...n,size:p}).then(t=>{if(l&&d){i.put(e,t,d,n)}if(f){h.emit("integrity",f)}if(p){h.emit("size",p)}})}}));return h}},19511:(e,t,n)=>{"use strict";const r=n(31669);const i=n(76763);const s=n(23656);const o=n(85622);const a=r.promisify(n(32517));const c=n(92456);e.exports=entry;e.exports.entry=entry;function entry(e,t){s.clearMemoized();return i.delete(e,t)}e.exports.content=content;function content(e,t){s.clearMemoized();return c(e,t)}e.exports.all=all;function all(e){s.clearMemoized();return a(o.join(e,"*(content-*|index-*)"))}},39614:(e,t,n)=>{"use strict";e.exports=n(99746)},55020:(e,t,n)=>{"use strict";const r=n(35747);const i=n(85622);const s=r.lchown?"lchown":"chown";const o=r.lchownSync?"lchownSync":"chownSync";const a=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=(e,t,n)=>{try{return r[o](e,t,n)}catch(e){if(e.code!=="ENOENT")throw e}};const u=(e,t,n)=>{try{return r.chownSync(e,t,n)}catch(e){if(e.code!=="ENOENT")throw e}};const l=a?(e,t,n,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else r.chown(e,t,n,i)}:(e,t,n,r)=>r;const f=a?(e,t,n)=>{try{return c(e,t,n)}catch(r){if(r.code!=="EISDIR")throw r;u(e,t,n)}}:(e,t,n)=>c(e,t,n);const p=process.version;let d=(e,t,n)=>r.readdir(e,t,n);let h=(e,t)=>r.readdirSync(e,t);if(/^v4\./.test(p))d=((e,t,n)=>r.readdir(e,n));const m=(e,t,n,i)=>{r[s](e,t,n,l(e,t,n,e=>{i(e&&e.code!=="ENOENT"?e:null)}))};const g=(e,t,n,s,o)=>{if(typeof t==="string")return r.lstat(i.resolve(e,t),(r,i)=>{if(r)return o(r.code!=="ENOENT"?r:null);i.name=t;g(e,i,n,s,o)});if(t.isDirectory()){y(i.resolve(e,t.name),n,s,r=>{if(r)return o(r);const a=i.resolve(e,t.name);m(a,n,s,o)})}else{const r=i.resolve(e,t.name);m(r,n,s,o)}};const y=(e,t,n,r)=>{d(e,{withFileTypes:true},(i,s)=>{if(i){if(i.code==="ENOENT")return r();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return r(i)}if(i||!s.length)return m(e,t,n,r);let o=s.length;let a=null;const c=i=>{if(a)return;if(i)return r(a=i);if(--o===0)return m(e,t,n,r)};s.forEach(r=>g(e,r,t,n,c))})};const v=(e,t,n,s)=>{if(typeof t==="string"){try{const n=r.lstatSync(i.resolve(e,t));n.name=t;t=n}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())_(i.resolve(e,t.name),n,s);f(i.resolve(e,t.name),n,s)};const _=(e,t,n)=>{let r;try{r=h(e,{withFileTypes:true})}catch(r){if(r.code==="ENOENT")return;else if(r.code==="ENOTDIR"||r.code==="ENOTSUP")return f(e,t,n);else throw r}if(r&&r.length)r.forEach(r=>v(e,r,t,n));return f(e,t,n)};e.exports=y;y.sync=_},37297:(e,t,n)=>{"use strict";const r=n(83314);const i=Symbol("max");const s=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const c=Symbol("maxAge");const u=Symbol("dispose");const l=Symbol("noDisposeOnSet");const f=Symbol("lruList");const p=Symbol("cache");const d=Symbol("updateAgeOnGet");const h=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[i]=e.max||Infinity;const n=e.length||h;this[o]=typeof n!=="function"?h:n;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0;this[u]=e.dispose;this[l]=e.noDisposeOnSet||false;this[d]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||Infinity;y(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[c]=e;y(this)}get maxAge(){return this[c]}set lengthCalculator(e){if(typeof e!=="function")e=h;if(e!==this[o]){this[o]=e;this[s]=0;this[f].forEach(e=>{e.length=this[o](e.value,e.key);this[s]+=e.length})}y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;n!==null;){const r=n.prev;_(this,e,n,t);n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;n!==null;){const r=n.next;_(this,e,n,t);n=r}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){if(this[u]&&this[f]&&this[f].length){this[f].forEach(e=>this[u](e.key,e.value))}this[p]=new Map;this[f]=new r;this[s]=0}dump(){return this[f].map(e=>g(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,n){n=n||this[c];if(n&&typeof n!=="number")throw new TypeError("maxAge must be a number");const r=n?Date.now():0;const a=this[o](t,e);if(this[p].has(e)){if(a>this[i]){v(this,this[p].get(e));return false}const o=this[p].get(e);const c=o.value;if(this[u]){if(!this[l])this[u](e,c.value)}c.now=r;c.maxAge=n;c.value=t;this[s]+=a-c.length;c.length=a;this.get(e);y(this);return true}const d=new Entry(e,t,a,r,n);if(d.length>this[i]){if(this[u])this[u](e,t);return false}this[s]+=d.length;this[f].unshift(d);this[p].set(e,this[f].head);y(this);return true}has(e){if(!this[p].has(e))return false;const t=this[p].get(e).value;return!g(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[f].tail;if(!e)return null;v(this,e);return e.value}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n];const i=r.e||0;if(i===0)this.set(r.k,r.v);else{const e=i-t;if(e>0){this.set(r.k,r.v,e)}}}}prune(){this[p].forEach((e,t)=>m(this,t,false))}}const m=(e,t,n)=>{const r=e[p].get(t);if(r){const t=r.value;if(g(e,t)){v(e,r);if(!e[a])return undefined}else{if(n){if(e[d])r.value.now=Date.now();e[f].unshiftNode(r)}}return t.value}};const g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return false;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]};const y=e=>{if(e[s]>e[i]){for(let t=e[f].tail;e[s]>e[i]&&t!==null;){const n=t.prev;v(e,t);t=n}}};const v=(e,t)=>{if(t){const n=t.value;if(e[u])e[u](n.key,n.value);e[s]-=n.length;e[p].delete(n.key);e[f].removeNode(t)}};class Entry{constructor(e,t,n,r,i){this.key=e;this.value=t;this.length=n;this.now=r;this.maxAge=i||0}}const _=(e,t,n,r)=>{let i=n.value;if(g(e,i)){v(e,n);if(!e[a])i=undefined}if(i)t.call(r,i.value,i.key,e)};e.exports=LRUCache},22819:(e,t,n)=>{"use strict";const r=n(28614);const i=n(92413);const s=n(83314);const o=n(24304).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const u=Symbol("emittedEnd");const l=Symbol("emittingEnd");const f=Symbol("closed");const p=Symbol("read");const d=Symbol("flush");const h=Symbol("flushChunk");const m=Symbol("encoding");const g=Symbol("decoder");const y=Symbol("flowing");const v=Symbol("paused");const _=Symbol("resume");const b=Symbol("bufferLength");const E=Symbol("bufferPush");const w=Symbol("bufferShift");const S=Symbol("objectMode");const k=Symbol("destroyed");const D=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const x=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const C=D&&Symbol.iterator||Symbol("iterator not implemented");const A=e=>e==="end"||e==="finish"||e==="prefinish";const T=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const M=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends i{constructor(e){super();this[y]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[S]=e&&e.objectMode||false;if(this[S])this[m]=null;else this[m]=e&&e.encoding||null;if(this[m]==="buffer")this[m]=null;this[g]=this[m]?new o(this[m]):null;this[a]=false;this[u]=false;this[l]=false;this[f]=false;this.writable=true;this.readable=true;this[b]=0;this[k]=false}get bufferLength(){return this[b]}get encoding(){return this[m]}set encoding(e){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[m]&&e!==this[m]&&(this[g]&&this[g].lastNeed||this[b]))throw new Error("cannot change encoding");if(this[m]!==e){this[g]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[g].write(e))}this[m]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[S]}set objectMode(e){this[S]=this[S]||!!e}write(e,t,n){if(this[a])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")n=t,t="utf8";if(!t)t="utf8";if(!this[S]&&!Buffer.isBuffer(e)){if(M(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(T(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){if(this[b]!==0)this.emit("readable");if(n)n();return this.flowing}if(typeof e==="string"&&!this[S]&&!(t===this[m]&&!this[g].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[m])e=this[g].write(e);if(this.flowing){if(this[b]!==0)this[d](true);this.emit("data",e)}else this[E](e);if(this[b]!==0)this.emit("readable");if(n)n();return this.flowing}read(e){if(this[k])return null;try{if(this[b]===0||e===0||e>this[b])return null;if(this[S])e=null;if(this.buffer.length>1&&!this[S]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[b])])}return this[p](e||null,this.buffer.head.value)}finally{this[c]()}}[p](e,t){if(e===t.length||e===null)this[w]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[b]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,n){if(typeof e==="function")n=e,e=null;if(typeof t==="function")n=t,t="utf8";if(e)this.write(e,t);if(n)this.once("end",n);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[c]();return this}[_](){if(this[k])return;this[v]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[_]()}pause(){this[y]=false;this[v]=true}get destroyed(){return this[k]}get flowing(){return this[y]}get paused(){return this[v]}[E](e){if(this[S])this[b]+=1;else this[b]+=e.length;return this.buffer.push(e)}[w](){if(this.buffer.length){if(this[S])this[b]-=1;else this[b]-=this.buffer.head.value.length}return this.buffer.shift()}[d](e){do{}while(this[h](this[w]()));if(!e&&!this.buffer.length&&!this[a])this.emit("drain")}[h](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[k])return;const n=this[u];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const r={dest:e,opts:t,ondrain:e=>this[_]()};this.pipes.push(r);e.on("drain",r.ondrain);this[_]();if(n&&r.opts.end)r.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[_]();else if(A(e)&&this[u]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[u]}[c](){if(!this[l]&&!this[u]&&!this[k]&&this.buffer.length===0&&this[a]){this[l]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[f])this.emit("close");this[l]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==k&&this[k])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[u]===true)return;this[u]=true;this.readable=false;if(this[g]){t=this[g].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[f]=true;if(!this[u]&&!this[k])return}const n=new Array(arguments.length);n[0]=e;n[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){n[e]=arguments[e]}}try{return super.emit.apply(this,n)}finally{if(!A(e))this[c]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[S])e.dataLength=0;const t=this.promise();this.on("data",t=>{e.push(t);if(!this[S])e.dataLength+=t.length});return t.then(()=>e)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(k,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[x](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let n=null;const r=e=>{this.removeListener("data",i);this.removeListener("end",s);n(e)};const i=e=>{this.removeListener("error",r);this.removeListener("end",s);this.pause();t({value:e,done:!!this[a]})};const s=()=>{this.removeListener("error",r);this.removeListener("data",i);t({done:true})};const o=()=>r(new Error("stream destroyed"));return new Promise((e,a)=>{n=a;t=e;this.once(k,o);this.once("error",r);this.once("end",s);this.once("data",i)})};return{next:e}}[C](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[k]){if(e)this.emit("error",e);else this.emit(k);return this}this[k]=true;this.buffer=new s;this[b]=0;if(typeof this.close==="function"&&!this[f])this.close();if(e)this.emit("error",e);else this.emit(k);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof i||e instanceof r&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},6371:(e,t,n)=>{const r=n(57217);const i=n(59479);const{mkdirpNative:s,mkdirpNativeSync:o}=n(62988);const{mkdirpManual:a,mkdirpManualSync:c}=n(96610);const{useNative:u,useNativeSync:l}=n(25024);const f=(e,t)=>{e=i(e);t=r(t);return u(t)?s(e,t):a(e,t)};const p=(e,t)=>{e=i(e);t=r(t);return l(t)?o(e,t):c(e,t)};f.sync=p;f.native=((e,t)=>s(i(e),r(t)));f.manual=((e,t)=>a(i(e),r(t)));f.nativeSync=((e,t)=>o(i(e),r(t)));f.manualSync=((e,t)=>c(i(e),r(t)));e.exports=f},90400:(e,t,n)=>{const{dirname:r}=n(85622);const i=(e,t,n=undefined)=>{if(n===t)return Promise.resolve();return e.statAsync(t).then(e=>e.isDirectory()?n:undefined,n=>n.code==="ENOENT"?i(e,r(t),t):undefined)};const s=(e,t,n=undefined)=>{if(n===t)return undefined;try{return e.statSync(t).isDirectory()?n:undefined}catch(n){return n.code==="ENOENT"?s(e,r(t),t):undefined}};e.exports={findMade:i,findMadeSync:s}},96610:(e,t,n)=>{const{dirname:r}=n(85622);const i=(e,t,n)=>{t.recursive=false;const s=r(e);if(s===e){return t.mkdirAsync(e,t).catch(e=>{if(e.code!=="EISDIR")throw e})}return t.mkdirAsync(e,t).then(()=>n||e,r=>{if(r.code==="ENOENT")return i(s,t).then(n=>i(e,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;return t.statAsync(e).then(e=>{if(e.isDirectory())return n;else throw r},()=>{throw r})})};const s=(e,t,n)=>{const i=r(e);t.recursive=false;if(i===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return n||e}catch(r){if(r.code==="ENOENT")return s(e,t,s(i,t,n));if(r.code!=="EEXIST"&&r.code!=="EROFS")throw r;try{if(!t.statSync(e).isDirectory())throw r}catch(e){throw r}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},62988:(e,t,n)=>{const{dirname:r}=n(85622);const{findMade:i,findMadeSync:s}=n(90400);const{mkdirpManual:o,mkdirpManualSync:a}=n(96610);const c=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirAsync(e,t);return i(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(n=>{if(n.code==="ENOENT")return o(e,t);else throw n}))};const u=(e,t)=>{t.recursive=true;const n=r(e);if(n===e)return t.mkdirSync(e,t);const i=s(t,e);try{t.mkdirSync(e,t);return i}catch(n){if(n.code==="ENOENT")return a(e,t);else throw n}};e.exports={mkdirpNative:c,mkdirpNativeSync:u}},57217:(e,t,n)=>{const{promisify:r}=n(31669);const i=n(35747);const s=e=>{if(!e)e={mode:511&~process.umask(),fs:i};else if(typeof e==="object")e={mode:511&~process.umask(),fs:i,...e};else if(typeof e==="number")e={mode:e,fs:i};else if(typeof e==="string")e={mode:parseInt(e,8),fs:i};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir;e.mkdirAsync=r(e.mkdir);e.stat=e.stat||e.fs.stat||i.stat;e.statAsync=r(e.stat);e.statSync=e.statSync||e.fs.statSync||i.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync;return e};e.exports=s},59479:(e,t,n)=>{const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=n(85622);const o=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=i(e);if(r==="win32"){const t=/[*|"<>?:]/;const{root:n}=s(e);if(t.test(e.substr(n.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=o},25024:(e,t,n)=>{const r=n(35747);const i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=i.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===r.mkdir;const c=!o?()=>false:e=>e.mkdirSync===r.mkdirSync;e.exports={useNative:a,useNativeSync:c}},32517:(e,t,n)=>{const r=n(42357);const i=n(85622);const s=n(35747);let o=undefined;try{o=n(18750)}catch(e){}const a={nosort:true,silent:true};let c=0;const u=process.platform==="win32";const l=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const f=(e,t,n)=>{if(typeof t==="function"){n=t;t={}}r(e,"rimraf: missing path");r.equal(typeof e,"string","rimraf: path should be a string");r.equal(typeof n,"function","rimraf: callback function required");r(t,"rimraf: invalid options argument provided");r.equal(typeof t,"object","rimraf: options should be object");l(t);let i=0;let s=null;let a=0;const u=e=>{s=s||e;if(--a===0)n(s)};const f=(e,r)=>{if(e)return n(e);a=r.length;if(a===0)return n();r.forEach(e=>{const n=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout(()=>p(e,t,n),i*100)}if(r.code==="EMFILE"&&c<t.emfileWait){return setTimeout(()=>p(e,t,n),c++)}if(r.code==="ENOENT")r=null}c=0;u(r)};p(e,t,n)})};if(t.disableGlob||!o.hasMagic(e))return f(null,[e]);t.lstat(e,(n,r)=>{if(!n)return f(null,[e]);o(e,t.glob,f)})};const p=(e,t,n)=>{r(e);r(t);r(typeof n==="function");t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&u)d(e,t,r,n);if(i&&i.isDirectory())return m(e,t,r,n);t.unlink(e,r=>{if(r){if(r.code==="ENOENT")return n(null);if(r.code==="EPERM")return u?d(e,t,r,n):m(e,t,r,n);if(r.code==="EISDIR")return m(e,t,r,n)}return n(r)})})};const d=(e,t,n,i)=>{r(e);r(t);r(typeof i==="function");t.chmod(e,438,r=>{if(r)i(r.code==="ENOENT"?null:n);else t.stat(e,(r,s)=>{if(r)i(r.code==="ENOENT"?null:n);else if(s.isDirectory())m(e,t,n,i);else t.unlink(e,i)})})};const h=(e,t,n)=>{r(e);r(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw n}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw n}if(i.isDirectory())v(e,t,n);else t.unlinkSync(e)};const m=(e,t,n,i)=>{r(e);r(t);r(typeof i==="function");t.rmdir(e,r=>{if(r&&(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM"))g(e,t,i);else if(r&&r.code==="ENOTDIR")i(n);else i(r)})};const g=(e,t,n)=>{r(e);r(t);r(typeof n==="function");t.readdir(e,(r,s)=>{if(r)return n(r);let o=s.length;if(o===0)return t.rmdir(e,n);let a;s.forEach(r=>{f(i.join(e,r),t,r=>{if(a)return;if(r)return n(a=r);if(--o===0)t.rmdir(e,n)})})})};const y=(e,t)=>{t=t||{};l(t);r(e,"rimraf: missing path");r.equal(typeof e,"string","rimraf: path should be a string");r(t,"rimraf: missing options");r.equal(typeof t,"object","rimraf: options should be object");let n;if(t.disableGlob||!o.hasMagic(e)){n=[e]}else{try{t.lstatSync(e);n=[e]}catch(r){n=o.sync(e,t.glob)}}if(!n.length)return;for(let e=0;e<n.length;e++){const r=n[e];let i;try{i=t.lstatSync(r)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&u)h(r,t,e)}try{if(i&&i.isDirectory())v(r,t,null);else t.unlinkSync(r)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return u?h(r,t,e):v(r,t,e);if(e.code!=="EISDIR")throw e;v(r,t,e)}}};const v=(e,t,n)=>{r(e);r(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")_(e,t)}};const _=(e,t)=>{r(e);r(t);t.readdirSync(e).forEach(n=>y(i.join(e,n),t));const n=u?100:1;let s=0;do{let r=true;try{const i=t.rmdirSync(e,t);r=false;return i}finally{if(++s<n&&r)continue}}while(true)};e.exports=f;f.sync=y},35764:(e,t,n)=>{"use strict";var r=n(31998);var i=16;var s=generateUID();var o=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+s+'-(\\d+)__@"',"g");var a=/\{\s*\[native code\]\s*\}/g;var c=/function.*?\(/;var u=/.*?=>.*?/;var l=/[<>\/\u2028\u2029]/g;var f=["*","async"];var p={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return p[e]}function generateUID(){var e=r(i);var t="";for(var n=0;n<i;++n){t+=e[n].toString(16)}return t}function deleteFunctions(e){var t=[];for(var n in e){if(typeof e[n]==="function"){t.push(n)}}for(var r=0;r<t.length;r++){delete e[t[r]]}}e.exports=function serialize(e,t){t||(t={});if(typeof t==="number"||typeof t==="string"){t={space:t}}var n=[];var r=[];var i=[];var p=[];var d=[];var h=[];var m=[];var g=[];function replacer(e,o){if(t.ignoreFunction){deleteFunctions(o)}if(!o&&o!==undefined){return o}var a=this[e];var c=typeof a;if(c==="object"){if(a instanceof RegExp){return"@__R-"+s+"-"+(r.push(a)-1)+"__@"}if(a instanceof Date){return"@__D-"+s+"-"+(i.push(a)-1)+"__@"}if(a instanceof Map){return"@__M-"+s+"-"+(p.push(a)-1)+"__@"}if(a instanceof Set){return"@__S-"+s+"-"+(d.push(a)-1)+"__@"}}if(c==="function"){return"@__F-"+s+"-"+(n.push(a)-1)+"__@"}if(c==="undefined"){return"@__U-"+s+"-"+(h.push(a)-1)+"__@"}if(c==="number"&&!isNaN(a)&&!isFinite(a)){return"@__I-"+s+"-"+(m.push(a)-1)+"__@"}if(c==="bigint"){return"@__B-"+s+"-"+(g.push(a)-1)+"__@"}return o}function serializeFunc(e){var t=e.toString();if(a.test(t)){throw new TypeError("Serializing native function: "+e.name)}if(c.test(t)){return t}if(u.test(t)){return t}var n=t.indexOf("(");var r=t.substr(0,n).trim().split(" ").filter(function(e){return e.length>0});var i=r.filter(function(e){return f.indexOf(e)===-1});if(i.length>0){return(r.indexOf("async")>-1?"async ":"")+"function"+(r.join("").indexOf("*")>-1?"*":"")+t.substr(n)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var y;if(t.isJSON&&!t.space){y=JSON.stringify(e)}else{y=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof y!=="string"){return String(y)}if(t.unsafe!==true){y=y.replace(l,escapeUnsafeChars)}if(n.length===0&&r.length===0&&i.length===0&&p.length===0&&d.length===0&&h.length===0&&m.length===0&&g.length===0){return y}return y.replace(o,function(e,s,o,a){if(s){return e}if(o==="D"){return'new Date("'+i[a].toISOString()+'")'}if(o==="R"){return"new RegExp("+serialize(r[a].source)+', "'+r[a].flags+'")'}if(o==="M"){return"new Map("+serialize(Array.from(p[a].entries()),t)+")"}if(o==="S"){return"new Set("+serialize(Array.from(d[a].values()),t)+")"}if(o==="U"){return"undefined"}if(o==="I"){return m[a]}if(o==="B"){return'BigInt("'+g[a]+'")'}var c=n[a];return serializeFunc(c)})}},913:(e,t,n)=>{"use strict";const r=n(76417);const i=n(22819);const s=["sha256","sha384","sha512"];const o=/^[a-z0-9+/]+(?:=?=?)$/i;const a=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/;const c=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/;const u=/^[\x21-\x7E]+$/;const l={algorithms:["sha512"],error:false,options:[],pickAlgorithm:getPrioritizedHash,sep:" ",single:false,strict:false};const f=(e={})=>({...l,...e});const p=e=>!e||!e.length?"":`?${e.join("?")}`;const d=Symbol("_onEnd");const h=Symbol("_getOptions");class IntegrityStream extends i{constructor(e){super();this.size=0;this.opts=e;this[h]();const{algorithms:t=l.algorithms}=e;this.algorithms=Array.from(new Set(t.concat(this.algorithm?[this.algorithm]:[])));this.hashes=this.algorithms.map(r.createHash)}[h](){const{integrity:e,size:t,options:n}={...l,...this.opts};this.sri=e?parse(e,this.opts):null;this.expectedSize=t;this.goodSri=this.sri?!!Object.keys(this.sri).length:false;this.algorithm=this.goodSri?this.sri.pickAlgorithm(this.opts):null;this.digests=this.goodSri?this.sri[this.algorithm]:null;this.optString=p(n)}emit(e,t){if(e==="end")this[d]();return super.emit(e,t)}write(e){this.size+=e.length;this.hashes.forEach(t=>t.update(e));return super.write(e)}[d](){if(!this.goodSri){this[h]()}const e=parse(this.hashes.map((e,t)=>{return`${this.algorithms[t]}-${e.digest("base64")}${this.optString}`}).join(" "),this.opts);const t=this.goodSri&&e.match(this.sri,this.opts);if(typeof this.expectedSize==="number"&&this.size!==this.expectedSize){const e=new Error(`stream size mismatch when checking ${this.sri}.\n Wanted: ${this.expectedSize}\n Found: ${this.size}`);e.code="EBADSIZE";e.found=this.size;e.expected=this.expectedSize;e.sri=this.sri;this.emit("error",e)}else if(this.sri&&!t){const t=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);t.code="EINTEGRITY";t.found=e;t.expected=this.digests;t.algorithm=this.algorithm;t.sri=this.sri;this.emit("error",t)}else{this.emit("size",this.size);this.emit("integrity",e);t&&this.emit("verified",t)}}}class Hash{get isHash(){return true}constructor(e,t){t=f(t);const n=!!t.strict;this.source=e.trim();this.digest="";this.algorithm="";this.options=[];const r=this.source.match(n?c:a);if(!r){return}if(n&&!s.some(e=>e===r[1])){return}this.algorithm=r[1];this.digest=r[2];const i=r[3];if(i){this.options=i.slice(1).split("?")}}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(e){e=f(e);if(e.strict){if(!(s.some(e=>e===this.algorithm)&&this.digest.match(o)&&this.options.every(e=>e.match(u)))){return""}}const t=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${t}`}}class Integrity{get isIntegrity(){return true}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){e=f(e);let t=e.sep||" ";if(e.strict){t=t.replace(/\S+/g," ")}return Object.keys(this).map(n=>{return this[n].map(t=>{return Hash.prototype.toString.call(t,e)}).filter(e=>e.length).join(t)}).filter(e=>e.length).join(t)}concat(e,t){t=f(t);const n=typeof e==="string"?e:stringify(e,t);return parse(`${this.toString(t)} ${n}`,t)}hexDigest(){return parse(this,{single:true}).hexDigest()}merge(e,t){t=f(t);const n=parse(e,t);for(const e in n){if(this[e]){if(!this[e].find(t=>n[e].find(e=>t.digest===e.digest))){throw new Error("hashes do not match, cannot update integrity")}}else{this[e]=n[e]}}}match(e,t){t=f(t);const n=parse(e,t);const r=n.pickAlgorithm(t);return this[r]&&n[r]&&this[r].find(e=>n[r].find(t=>e.digest===t.digest))||false}pickAlgorithm(e){e=f(e);const t=e.pickAlgorithm;const n=Object.keys(this);return n.reduce((e,n)=>{return t(e,n)||e})}}e.exports.parse=parse;function parse(e,t){if(!e)return null;t=f(t);if(typeof e==="string"){return _parse(e,t)}else if(e.algorithm&&e.digest){const n=new Integrity;n[e.algorithm]=[e];return _parse(stringify(n,t),t)}else{return _parse(stringify(e,t),t)}}function _parse(e,t){if(t.single){return new Hash(e,t)}const n=e.trim().split(/\s+/).reduce((e,n)=>{const r=new Hash(n,t);if(r.algorithm&&r.digest){const t=r.algorithm;if(!e[t]){e[t]=[]}e[t].push(r)}return e},new Integrity);return n.isEmpty()?null:n}e.exports.stringify=stringify;function stringify(e,t){t=f(t);if(e.algorithm&&e.digest){return Hash.prototype.toString.call(e,t)}else if(typeof e==="string"){return stringify(parse(e,t),t)}else{return Integrity.prototype.toString.call(e,t)}}e.exports.fromHex=fromHex;function fromHex(e,t,n){n=f(n);const r=p(n.options);return parse(`${t}-${Buffer.from(e,"hex").toString("base64")}${r}`,n)}e.exports.fromData=fromData;function fromData(e,t){t=f(t);const n=t.algorithms;const i=p(t.options);return n.reduce((n,s)=>{const o=r.createHash(s).update(e).digest("base64");const a=new Hash(`${s}-${o}${i}`,t);if(a.algorithm&&a.digest){const e=a.algorithm;if(!n[e]){n[e]=[]}n[e].push(a)}return n},new Integrity)}e.exports.fromStream=fromStream;function fromStream(e,t){t=f(t);const n=integrityStream(t);return new Promise((t,r)=>{e.pipe(n);e.on("error",r);n.on("error",r);let i;n.on("integrity",e=>{i=e});n.on("end",()=>t(i));n.on("data",()=>{})})}e.exports.checkData=checkData;function checkData(e,t,n){n=f(n);t=parse(t,n);if(!t||!Object.keys(t).length){if(n.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const i=t.pickAlgorithm(n);const s=r.createHash(i).update(e).digest("base64");const o=parse({algorithm:i,digest:s});const a=o.match(t,n);if(a||!n.error){return a}else if(typeof n.size==="number"&&e.length!==n.size){const r=new Error(`data size mismatch when checking ${t}.\n Wanted: ${n.size}\n Found: ${e.length}`);r.code="EBADSIZE";r.found=e.length;r.expected=n.size;r.sri=t;throw r}else{const n=new Error(`Integrity checksum failed when using ${i}: Wanted ${t}, but got ${o}. (${e.length} bytes)`);n.code="EINTEGRITY";n.found=o;n.expected=t;n.algorithm=i;n.sri=t;throw n}}e.exports.checkStream=checkStream;function checkStream(e,t,n){n=f(n);n.integrity=t;t=parse(t,n);if(!t||!Object.keys(t).length){return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}))}const r=integrityStream(n);return new Promise((t,n)=>{e.pipe(r);e.on("error",n);r.on("error",n);let i;r.on("verified",e=>{i=e});r.on("end",()=>t(i));r.on("data",()=>{})})}e.exports.integrityStream=integrityStream;function integrityStream(e={}){return new IntegrityStream(e)}e.exports.create=createIntegrity;function createIntegrity(e){e=f(e);const t=e.algorithms;const n=p(e.options);const i=t.map(r.createHash);return{update:function(e,t){i.forEach(n=>n.update(e,t));return this},digest:function(r){const s=t.reduce((t,r)=>{const s=i.shift().digest("base64");const o=new Hash(`${r}-${s}${n}`,e);if(o.algorithm&&o.digest){const e=o.algorithm;if(!t[e]){t[e]=[]}t[e].push(o)}return t},new Integrity);return s}}}const m=new Set(r.getHashes());const g=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(e=>m.has(e));function getPrioritizedHash(e,t){return g.indexOf(e.toLowerCase())>=g.indexOf(t.toLowerCase())?e:t}},79304:function(e,t,n){(function(e,r){true?r(t,n(99596)):0})(this,function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;function characters(e){return e.split("")}function member(e,t){return t.includes(e)}class DefaultsError extends Error{constructor(e,t){super();this.name="DefaultsError";this.message=e;this.defs=t}}function defaults(e,t,n){if(e===true){e={}}if(e!=null&&typeof e==="object"){e=Object.assign({},e)}const r=e||{};if(n)for(const e in r)if(HOP(r,e)&&!HOP(t,e)){throw new DefaultsError("`"+e+"` is not a supported option",t)}for(const n in t)if(HOP(t,n)){if(!e||!HOP(e,n)){r[n]=t[n]}else if(n==="ecma"){let t=e[n]|0;if(t>5&&t<2015)t+=2009;r[n]=t}else{r[n]=e&&HOP(e,n)?e[n]:t[n]}}return r}function noop(){}function return_false(){return false}function return_true(){return true}function return_this(){return this}function return_null(){return null}var r=function(){function MAP(t,n,r){var i=[],s=[],o;function doit(){var a=n(t[o],o);var c=a instanceof Last;if(c)a=a.v;if(a instanceof AtTop){a=a.v;if(a instanceof Splice){s.push.apply(s,r?a.v.slice().reverse():a.v)}else{s.push(a)}}else if(a!==e){if(a instanceof Splice){i.push.apply(i,r?a.v.slice().reverse():a.v)}else{i.push(a)}}return c}if(Array.isArray(t)){if(r){for(o=t.length;--o>=0;)if(doit())break;i.reverse();s.reverse()}else{for(o=0;o<t.length;++o)if(doit())break}}else{for(o in t)if(HOP(t,o))if(doit())break}return s.concat(i)}MAP.at_top=function(e){return new AtTop(e)};MAP.splice=function(e){return new Splice(e)};MAP.last=function(e){return new Last(e)};var e=MAP.skip={};function AtTop(e){this.v=e}function Splice(e){this.v=e}function Last(e){this.v=e}return MAP}();function make_node(e,t,n){if(!n)n={};if(t){if(!n.start)n.start=t.start;if(!n.end)n.end=t.end}return new e(n)}function push_uniq(e,t){if(!e.includes(t))e.push(t)}function string_template(e,t){return e.replace(/{(.+?)}/g,function(e,n){return t&&t[n]})}function remove(e,t){for(var n=e.length;--n>=0;){if(e[n]===t)e.splice(n,1)}}function mergeSort(e,t){if(e.length<2)return e.slice();function merge(e,n){var r=[],i=0,s=0,o=0;while(i<e.length&&s<n.length){t(e[i],n[s])<=0?r[o++]=e[i++]:r[o++]=n[s++]}if(i<e.length)r.push.apply(r,e.slice(i));if(s<n.length)r.push.apply(r,n.slice(s));return r}function _ms(e){if(e.length<=1)return e;var t=Math.floor(e.length/2),n=e.slice(0,t),r=e.slice(t);n=_ms(n);r=_ms(r);return merge(n,r)}return _ms(e)}function makePredicate(e){if(!Array.isArray(e))e=e.split(" ");return new Set(e)}function map_add(e,t,n){if(e.has(t)){e.get(t).push(n)}else{e.set(t,[n])}}function map_from_object(e){var t=new Map;for(var n in e){if(HOP(e,n)&&n.charAt(0)==="$"){t.set(n.substr(1),e[n])}}return t}function map_to_object(e){var t=Object.create(null);e.forEach(function(e,n){t["$"+n]=e});return t}function HOP(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function keep_name(e,t){return e===true||e instanceof RegExp&&e.test(t)}var i={"\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function regexp_source_fix(e){return e.replace(/[\n\r\u2028\u2029]/g,function(t,n){var r=e[n-1]=="\\"&&(e[n-2]!="\\"||/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,n-1)));return(r?"":"\\")+i[t]})}const s="gimuy";function sort_regexp_flags(e){const t=new Set(e.split(""));let n="";for(const e of s){if(t.has(e)){n+=e;t.delete(e)}}if(t.size){t.forEach(e=>{n+=e})}return n}function has_annotation(e,t){return e._annotations&t}function set_annotation(e,t){e._annotations|=t}var o="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with";var a="false null true";var c="enum implements import interface package private protected public static super this "+a+" "+o;var u="return new delete throw else case yield await";o=makePredicate(o);c=makePredicate(c);u=makePredicate(u);a=makePredicate(a);var l=makePredicate(characters("+-*&%=<>!?|~^"));var f=/[0-9a-f]/i;var p=/^0x[0-9a-f]+$/i;var d=/^0[0-7]+$/;var h=/^0o[0-7]+$/i;var m=/^0b[01]+$/i;var g=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;var y=/^(0[xob])?[0-9a-f]+n$/i;var v=makePredicate(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]);var _=makePredicate(characters(" \n\r\t\f\v \u2028\u2029 \ufeff"));var b=makePredicate(characters("\n\r\u2028\u2029"));var E=makePredicate(characters(";]),:"));var w=makePredicate(characters("[{(,;:"));var S=makePredicate(characters("[]{}(),;:"));var k={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function get_full_char(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){if(is_surrogate_pair_tail(e.charCodeAt(t+1))){return e.charAt(t)+e.charAt(t+1)}}else if(is_surrogate_pair_tail(e.charCodeAt(t))){if(is_surrogate_pair_head(e.charCodeAt(t-1))){return e.charAt(t-1)+e.charAt(t)}}return e.charAt(t)}function get_full_char_code(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){return 65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320}return e.charCodeAt(t)}function get_full_char_length(e){var t=0;for(var n=0;n<e.length;n++){if(is_surrogate_pair_head(e.charCodeAt(n))&&is_surrogate_pair_tail(e.charCodeAt(n+1))){t++;n++}}return e.length-t}function from_char_code(e){if(e>65535){e-=65536;return String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)}return String.fromCharCode(e)}function is_surrogate_pair_head(e){return e>=55296&&e<=56319}function is_surrogate_pair_tail(e){return e>=56320&&e<=57343}function is_digit(e){return e>=48&&e<=57}function is_identifier_start(e){return k.ID_Start.test(e)}function is_identifier_char(e){return k.ID_Continue.test(e)}function is_basic_identifier_string(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function is_identifier_string(e,t){if(/^[a-z_$][a-z0-9_$]*$/i.test(e)){return true}if(!t&&/[\ud800-\udfff]/.test(e)){return false}var n=k.ID_Start.exec(e);if(!n||n.index!==0){return false}e=e.slice(n[0].length);if(!e){return true}n=k.ID_Continue.exec(e);return!!n&&n[0].length===e.length}function parse_js_number(e,t=true){if(!t&&e.includes("e")){return NaN}if(p.test(e)){return parseInt(e.substr(2),16)}else if(d.test(e)){return parseInt(e.substr(1),8)}else if(h.test(e)){return parseInt(e.substr(2),8)}else if(m.test(e)){return parseInt(e.substr(2),2)}else if(g.test(e)){return parseFloat(e)}else{var n=parseFloat(e);if(n==e)return n}}class JS_Parse_Error extends Error{constructor(e,t,n,r,i){super();this.name="SyntaxError";this.message=e;this.filename=t;this.line=n;this.col=r;this.pos=i}}function js_error(e,t,n,r,i){throw new JS_Parse_Error(e,t,n,r,i)}function is_token(e,t,n){return e.type==t&&(n==null||e.value==n)}var D={};function tokenizer(e,t,n,r){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function peek(){return get_full_char(i.text,i.pos)}function is_option_chain_op(){const e=i.text.charCodeAt(i.pos+1)===46;if(!e)return false;const t=i.text.charCodeAt(i.pos+2);return t<48||t>57}function next(e,t){var n=get_full_char(i.text,i.pos++);if(e&&!n)throw D;if(b.has(n)){i.newline_before=i.newline_before||!t;++i.line;i.col=0;if(n=="\r"&&peek()=="\n"){++i.pos;n="\n"}}else{if(n.length>1){++i.pos;++i.col}++i.col}return n}function forward(e){while(e--)next()}function looking_at(e){return i.text.substr(i.pos,e.length)==e}function find_eol(){var e=i.text;for(var t=i.pos,n=i.text.length;t<n;++t){var r=e[t];if(b.has(r))return t}return-1}function find(e,t){var n=i.text.indexOf(e,i.pos);if(t&&n==-1)throw D;return n}function start_token(){i.tokline=i.line;i.tokcol=i.col;i.tokpos=i.pos}var s=false;var h=null;function token(n,r,o){i.regex_allowed=n=="operator"&&!C.has(r)||n=="keyword"&&u.has(r)||n=="punc"&&w.has(r)||n=="arrow";if(n=="punc"&&(r=="."||r=="?.")){s=true}else if(!o){s=false}var a={type:n,value:r,line:i.tokline,col:i.tokcol,pos:i.tokpos,endline:i.line,endcol:i.col,endpos:i.pos,nlb:i.newline_before,file:t};if(/^(?:num|string|regexp)$/i.test(n)){a.raw=e.substring(a.pos,a.endpos)}if(!o){a.comments_before=i.comments_before;a.comments_after=i.comments_before=[]}i.newline_before=false;a=new O(a);if(!o)h=a;return a}function skip_whitespace(){while(_.has(peek()))next()}function read_while(e){var t="",n,r=0;while((n=peek())&&e(n,r++))t+=next();return t}function parse_error(e){js_error(e,t,i.tokline,i.tokcol,i.tokpos)}function read_num(e){var t=false,n=false,r=false,i=e==".",s=false,o=false;var a=read_while(function(a,c){if(s)return false;var u=a.charCodeAt(0);switch(u){case 95:return o=true;case 98:case 66:return r=true;case 111:case 79:case 120:case 88:return r?false:r=true;case 101:case 69:return r?true:t?false:t=n=true;case 45:return n||c==0&&!e;case 43:return n;case n=false,46:return!i&&!r&&!t?i=true:false}if(a==="n"){s=true;return true}return f.test(a)});if(e)a=e+a;if(d.test(a)&&next_token.has_directive("use strict")){parse_error("Legacy octal literals are not allowed in strict mode")}if(o){if(a.endsWith("_")){parse_error("Numeric separators are not allowed at the end of numeric literals")}else if(a.includes("__")){parse_error("Only one underscore is allowed as numeric separator")}a=a.replace(/_/g,"")}if(a.endsWith("n")){const e=a.slice(0,-1);const t=p.test(e);const n=parse_js_number(e,t);if(!i&&y.test(a)&&!isNaN(n))return token("big_int",e);parse_error("Invalid or unexpected token")}var c=parse_js_number(a);if(!isNaN(c)){return token("num",c)}else{parse_error("Invalid syntax: "+a)}}function is_octal(e){return e>="0"&&e<="7"}function read_escaped_char(e,t,n){var r=next(true,e);switch(r.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(hex_bytes(2,t));case 117:if(peek()=="{"){next(true);if(peek()==="}")parse_error("Expecting hex-character between {}");while(peek()=="0")next(true);var s,o=find("}",true)-i.pos;if(o>6||(s=hex_bytes(o,t))>1114111){parse_error("Unicode reference out of bounds")}next(true);return from_char_code(s)}return String.fromCharCode(hex_bytes(4,t));case 10:return"";case 13:if(peek()=="\n"){next(true,e);return""}}if(is_octal(r)){if(n&&t){const e=r==="0"&&!is_octal(peek());if(!e){parse_error("Octal escape sequences are not allowed in template strings")}}return read_octal_escape_sequence(r,t)}return r}function read_octal_escape_sequence(e,t){var n=peek();if(n>="0"&&n<="7"){e+=next(true);if(e[0]<="3"&&(n=peek())>="0"&&n<="7")e+=next(true)}if(e==="0")return"\0";if(e.length>0&&next_token.has_directive("use strict")&&t)parse_error("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}function hex_bytes(e,t){var n=0;for(;e>0;--e){if(!t&&isNaN(parseInt(peek(),16))){return parseInt(n,16)||""}var r=next(true);if(isNaN(parseInt(r,16)))parse_error("Invalid hex-character pattern in string");n+=r}return parseInt(n,16)}var m=with_eof_error("Unterminated string constant",function(){var e=next(),t="";for(;;){var n=next(true,true);if(n=="\\")n=read_escaped_char(true,true);else if(n=="\r"||n=="\n")parse_error("Unterminated string constant");else if(n==e)break;t+=n}var r=token("string",t);r.quote=e;return r});var g=with_eof_error("Unterminated template",function(e){if(e){i.template_braces.push(i.brace_counter)}var t="",n="",r,s;next(true,true);while((r=next(true,true))!="`"){if(r=="\r"){if(peek()=="\n")++i.pos;r="\n"}else if(r=="$"&&peek()=="{"){next(true,true);i.brace_counter++;s=token(e?"template_head":"template_substitution",t);s.raw=n;return s}n+=r;if(r=="\\"){var o=i.pos;var a=h&&(h.type==="name"||h.type==="punc"&&(h.value===")"||h.value==="]"));r=read_escaped_char(true,!a,true);n+=i.text.substr(o,i.pos-o)}t+=r}i.template_braces.pop();s=token(e?"template_head":"template_substitution",t);s.raw=n;s.end=true;return s});function skip_line_comment(e){var t=i.regex_allowed;var n=find_eol(),r;if(n==-1){r=i.text.substr(i.pos);i.pos=i.text.length}else{r=i.text.substring(i.pos,n);i.pos=n}i.col=i.tokcol+(i.pos-i.tokpos);i.comments_before.push(token(e,r,true));i.regex_allowed=t;return next_token}var E=with_eof_error("Unterminated multiline comment",function(){var e=i.regex_allowed;var t=find("*/",true);var n=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");forward(get_full_char_length(n)+2);i.comments_before.push(token("comment2",n,true));i.newline_before=i.newline_before||n.includes("\n");i.regex_allowed=e;return next_token});var k=with_eof_error("Unterminated identifier name",function(){var e,t,n=false;var r=function(){n=true;next();if(peek()!=="u"){parse_error("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}")}return read_escaped_char(false,true)};if((e=peek())==="\\"){e=r();if(!is_identifier_start(e)){parse_error("First identifier char is an invalid identifier char")}}else if(is_identifier_start(e)){next()}else{return""}while((t=peek())!=null){if((t=peek())==="\\"){t=r();if(!is_identifier_char(t)){parse_error("Invalid escaped identifier char")}}else{if(!is_identifier_char(t)){break}next()}e+=t}if(c.has(e)&&n){parse_error("Escaped characters are not allowed in keywords")}return e});var x=with_eof_error("Unterminated regular expression",function(e){var t=false,n,r=false;while(n=next(true))if(b.has(n)){parse_error("Unexpected line terminator")}else if(t){e+="\\"+n;t=false}else if(n=="["){r=true;e+=n}else if(n=="]"&&r){r=false;e+=n}else if(n=="/"&&!r){break}else if(n=="\\"){t=true}else{e+=n}const i=k();return token("regexp",{source:e,flags:i})});function read_operator(e){function grow(e){if(!peek())return e;var t=e+peek();if(v.has(t)){next();return grow(t)}else{return e}}return token("operator",grow(e||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return E()}return i.regex_allowed?x(""):read_operator("/")}function handle_eq_sign(){next();if(peek()===">"){next();return token("arrow","=>")}else{return read_operator("=")}}function handle_dot(){next();if(is_digit(peek().charCodeAt(0))){return read_num(".")}if(peek()==="."){next();next();return token("expand","...")}return token("punc",".")}function read_word(){var e=k();if(s)return token("name",e);return a.has(e)?token("atom",e):!o.has(e)?token("name",e):v.has(e)?token("operator",e):token("keyword",e)}function with_eof_error(e,t){return function(n){try{return t(n)}catch(t){if(t===D)parse_error(e);else throw t}}}function next_token(e){if(e!=null)return x(e);if(r&&i.pos==0&&looking_at("#!")){start_token();forward(2);skip_line_comment("comment5")}for(;;){skip_whitespace();start_token();if(n){if(looking_at("\x3c!--")){forward(4);skip_line_comment("comment3");continue}if(looking_at("--\x3e")&&i.newline_before){forward(3);skip_line_comment("comment4");continue}}var t=peek();if(!t)return token("eof");var s=t.charCodeAt(0);switch(s){case 34:case 39:return m();case 46:return handle_dot();case 47:{var o=handle_slash();if(o===next_token)continue;return o}case 61:return handle_eq_sign();case 63:{if(!is_option_chain_op())break;next();next();return token("punc","?.")}case 96:return g(true);case 123:i.brace_counter++;break;case 125:i.brace_counter--;if(i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return g(false);break}if(is_digit(s))return read_num();if(S.has(t))return token("punc",next());if(l.has(t))return read_operator();if(s==92||is_identifier_start(t))return read_word();break}parse_error("Unexpected character '"+t+"'")}next_token.next=next;next_token.peek=peek;next_token.context=function(e){if(e)i=e;return i};next_token.add_directive=function(e){i.directive_stack[i.directive_stack.length-1].push(e);if(i.directives[e]===undefined){i.directives[e]=1}else{i.directives[e]++}};next_token.push_directives_stack=function(){i.directive_stack.push([])};next_token.pop_directives_stack=function(){var e=i.directive_stack[i.directive_stack.length-1];for(var t=0;t<e.length;t++){i.directives[e[t]]--}i.directive_stack.pop()};next_token.has_directive=function(e){return i.directives[e]>0};return next_token}var x=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var C=makePredicate(["--","++"]);var A=makePredicate(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]);var T=function(e,t){for(var n=0;n<e.length;++n){var r=e[n];for(var i=0;i<r.length;++i){t[r[i]]=n+1}}return t}([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{});var M=makePredicate(["atom","num","big_int","string","regexp","name"]);function parse(e,t){const n=new Map;t=defaults(t,{bare_returns:false,ecma:null,expression:false,filename:null,html5_comments:true,module:false,shebang:true,strict:false,toplevel:null},true);var r={input:typeof e=="string"?tokenizer(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:true,in_loop:0,labels:[]};r.token=next();function is(e,t){return is_token(r.token,e,t)}function peek(){return r.peeked||(r.peeked=r.input())}function next(){r.prev=r.token;if(!r.peeked)peek();r.token=r.peeked;r.peeked=null;r.in_directives=r.in_directives&&(r.token.type=="string"||is("punc",";"));return r.token}function prev(){return r.prev}function croak(e,t,n,i){var s=r.input.context();js_error(e,s.filename,t!=null?t:s.tokline,n!=null?n:s.tokcol,i!=null?i:s.tokpos)}function token_error(e,t){croak(t,e.line,e.col)}function unexpected(e){if(e==null)e=r.token;token_error(e,"Unexpected token: "+e.type+" ("+e.value+")")}function expect_token(e,t){if(is(e,t)){return next()}token_error(r.token,"Unexpected token "+r.token.type+" «"+r.token.value+"»"+", expected "+e+" «"+t+"»")}function expect(e){return expect_token("punc",e)}function has_newline_before(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function can_insert_semicolon(){return!t.strict&&(is("eof")||is("punc","}")||has_newline_before(r.token))}function is_in_generator(){return r.in_generator===r.in_function}function is_in_async(){return r.in_async===r.in_function}function semicolon(e){if(is("punc",";"))next();else if(!e&&!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var e=w(true);expect(")");return e}function embed_tokens(e){return function _embed_tokens_wrapper(...t){const n=r.token;const i=e(...t);i.start=n;i.end=prev();return i}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){r.peeked=null;r.token=r.input(r.token.value.substr(1))}}var i=embed_tokens(function statement(e,n,i){handle_regexp();switch(r.token.type){case"string":if(r.in_directives){var s=peek();if(!r.token.raw.includes("\\")&&(is_token(s,"punc",";")||is_token(s,"punc","}")||has_newline_before(s)||is_token(s,"eof"))){r.input.add_directive(r.token.value)}else{r.in_directives=false}}var c=r.in_directives,f=simple_statement();return c&&f.body instanceof Mt?new P(f.body):f;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return simple_statement();case"name":if(r.token.value=="async"&&is_token(peek(),"keyword","function")){next();next();if(n){croak("functions are not allowed as the body of a loop")}return o(re,false,true,e)}if(r.token.value=="import"&&!is_token(peek(),"punc","(")&&!is_token(peek(),"punc",".")){next();var p=import_();semicolon();return p}return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(r.token.value){case"{":return new B({start:r.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":r.in_directives=false;next();return new j;default:unexpected()}case"keyword":switch(r.token.value){case"break":next();return break_cont(de);case"continue":next();return break_cont(he);case"debugger":next();semicolon();return new R;case"do":next();var d=in_loop(statement);expect_token("keyword","while");var h=parenthesised();semicolon(true);return new G({body:d,condition:h});case"while":next();return new q({condition:parenthesised(),body:in_loop(function(){return statement(false,true)})});case"for":next();return for_();case"class":next();if(n){croak("classes are not allowed as the body of a loop")}if(i){croak("classes are not allowed as the body of an if")}return class_(rt);case"function":next();if(n){croak("functions are not allowed as the body of a loop")}return o(re,false,false,e);case"if":next();return if_();case"return":if(r.in_function==0&&!t.bare_returns)croak("'return' outside of function");next();var m=null;if(is("punc",";")){next()}else if(!can_insert_semicolon()){m=w(true);semicolon()}return new le({value:m});case"switch":next();return new ve({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":next();if(has_newline_before(r.token))croak("Illegal newline after 'throw'");var m=w(true);semicolon();return new fe({value:m});case"try":next();return try_();case"var":next();var p=a();semicolon();return p;case"let":next();var p=u();semicolon();return p;case"const":next();var p=l();semicolon();return p;case"with":if(r.input.has_directive("use strict")){croak("Strict mode may not include a with statement")}next();return new J({expression:parenthesised(),body:statement()});case"export":if(!is_token(peek(),"punc","(")){next();var p=export_();if(is("punc",";"))semicolon();return p}}}unexpected()});function labeled_statement(){var e=as_symbol(wt);if(e.name==="await"&&is_in_async()){token_error(r.prev,"await cannot be used as label inside async function")}if(r.labels.some(t=>t.name===e.name)){croak("Label "+e.name+" defined twice")}expect(":");r.labels.push(e);var t=i();r.labels.pop();if(!(t instanceof H)){e.references.forEach(function(t){if(t instanceof he){t=t.label.start;croak("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos)}})}return new z({body:t,label:e})}function simple_statement(e){return new N({body:(e=w(true),semicolon(),e)})}function break_cont(e){var t=null,n;if(!can_insert_semicolon()){t=as_symbol(xt,true)}if(t!=null){n=r.labels.find(e=>e.name===t.name);if(!n)croak("Undefined label "+t.name);t.thedef=n}else if(r.in_loop==0)croak(e.TYPE+" not inside a loop or switch");semicolon();var i=new e({label:t});if(n)n.references.push(i);return i}function for_(){var e="`for await` invalid in this context";var t=r.token;if(t.type=="name"&&t.value=="await"){if(!is_in_async()){token_error(t,e)}next()}else{t=false}expect("(");var n=null;if(!is("punc",";")){n=is("keyword","var")?(next(),a(true)):is("keyword","let")?(next(),u(true)):is("keyword","const")?(next(),l(true)):w(true,true);var i=is("operator","in");var s=is("name","of");if(t&&!s){token_error(t,e)}if(i||s){if(n instanceof De){if(n.definitions.length>1)token_error(n.start,"Only one variable declaration allowed in for..in loop")}else if(!(is_assignable(n)||(n=to_destructuring(n))instanceof ie)){token_error(n.start,"Invalid left-hand side in for..in loop")}next();if(i){return for_in(n)}else{return for_of(n,!!t)}}}else if(t){token_error(t,e)}return regular_for(n)}function regular_for(e){expect(";");var t=is("punc",";")?null:w(true);expect(";");var n=is("punc",")")?null:w(true);expect(")");return new W({init:e,condition:t,step:n,body:in_loop(function(){return i(false,true)})})}function for_of(e,t){var n=e instanceof De?e.definitions[0].name:null;var r=w(true);expect(")");return new X({await:t,init:e,name:n,object:r,body:in_loop(function(){return i(false,true)})})}function for_in(e){var t=w(true);expect(")");return new K({init:e,object:t,body:in_loop(function(){return i(false,true)})})}var s=function(e,t,n){if(has_newline_before(r.token)){croak("Unexpected newline before arrow (=>)")}expect_token("arrow","=>");var i=_function_body(is("punc","{"),false,n);var s=i instanceof Array&&i.length?i[i.length-1].end:i instanceof Array?e:i.end;return new ne({start:e,end:s,async:n,argnames:t,body:i})};var o=function(e,t,n,r){var i=e===re;var s=is("operator","*");if(s){next()}var o=is("name")?as_symbol(i?dt:gt):null;if(i&&!o){if(r){e=te}else{unexpected()}}if(o&&e!==ee&&!(o instanceof at))unexpected(prev());var a=[];var c=_function_body(true,s||t,n,o,a);return new e({start:a.start,end:c.end,is_generator:s,async:n,name:o,argnames:a,body:c})};function track_used_binding_identifiers(e,t){var n=new Set;var r=false;var i=false;var s=false;var o=!!t;var a={add_parameter:function(t){if(n.has(t.value)){if(r===false){r=t}a.check_strict()}else{n.add(t.value);if(e){switch(t.value){case"arguments":case"eval":case"yield":if(o){token_error(t,"Unexpected "+t.value+" identifier as parameter inside strict mode")}break;default:if(c.has(t.value)){unexpected()}}}}},mark_default_assignment:function(e){if(i===false){i=e}},mark_spread:function(e){if(s===false){s=e}},mark_strict_mode:function(){o=true},is_strict:function(){return i!==false||s!==false||o},check_strict:function(){if(a.is_strict()&&r!==false){token_error(r,"Parameter "+r.value+" was used already")}}};return a}function parameters(e){var t=track_used_binding_identifiers(true,r.input.has_directive("use strict"));expect("(");while(!is("punc",")")){var n=parameter(t);e.push(n);if(!is("punc",")")){expect(",")}if(n instanceof Z){break}}next()}function parameter(e,t){var n;var i=false;if(e===undefined){e=track_used_binding_identifiers(true,r.input.has_directive("use strict"))}if(is("expand","...")){i=r.token;e.mark_spread(r.token);next()}n=binding_element(e,t);if(is("operator","=")&&i===false){e.mark_default_assignment(r.token);next();n=new Ke({start:n.start,left:n,operator:"=",right:w(false),end:r.token})}if(i!==false){if(!is("punc",")")){unexpected()}n=new Z({start:i,expression:n,end:i})}e.check_strict();return n}function binding_element(e,t){var n=[];var i=true;var s=false;var o;var a=r.token;if(e===undefined){e=track_used_binding_identifiers(false,r.input.has_directive("use strict"))}t=t===undefined?pt:t;if(is("punc","[")){next();while(!is("punc","]")){if(i){i=false}else{expect(",")}if(is("expand","...")){s=true;o=r.token;e.mark_spread(r.token);next()}if(is("punc")){switch(r.token.value){case",":n.push(new Bt({start:r.token,end:r.token}));continue;case"]":break;case"[":case"{":n.push(binding_element(e,t));break;default:unexpected()}}else if(is("name")){e.add_parameter(r.token);n.push(as_symbol(t))}else{croak("Invalid function parameter")}if(is("operator","=")&&s===false){e.mark_default_assignment(r.token);next();n[n.length-1]=new Ke({start:n[n.length-1].start,left:n[n.length-1],operator:"=",right:w(false),end:r.token})}if(s){if(!is("punc","]")){croak("Rest element must be last element")}n[n.length-1]=new Z({start:o,expression:n[n.length-1],end:o})}}expect("]");e.check_strict();return new ie({start:a,names:n,is_array:true,end:prev()})}else if(is("punc","{")){next();while(!is("punc","}")){if(i){i=false}else{expect(",")}if(is("expand","...")){s=true;o=r.token;e.mark_spread(r.token);next()}if(is("name")&&(is_token(peek(),"punc")||is_token(peek(),"operator"))&&[",","}","="].includes(peek().value)){e.add_parameter(r.token);var c=prev();var u=as_symbol(t);if(s){n.push(new Z({start:o,expression:u,end:u.end}))}else{n.push(new Qe({start:c,key:u.name,value:u,end:u.end}))}}else if(is("punc","}")){continue}else{var l=r.token;var f=as_property_name();if(f===null){unexpected(prev())}else if(prev().type==="name"&&!is("punc",":")){n.push(new Qe({start:prev(),key:f,value:new t({start:prev(),name:f,end:prev()}),end:prev()}))}else{expect(":");n.push(new Qe({start:l,quote:l.quote,key:f,value:binding_element(e,t),end:prev()}))}}if(s){if(!is("punc","}")){croak("Rest element must be last element")}}else if(is("operator","=")){e.mark_default_assignment(r.token);next();n[n.length-1].value=new Ke({start:n[n.length-1].value.start,left:n[n.length-1].value,operator:"=",right:w(false),end:r.token})}}expect("}");e.check_strict();return new ie({start:a,names:n,is_array:false,end:prev()})}else if(is("name")){e.add_parameter(r.token);return as_symbol(t)}else{croak("Invalid function parameter")}}function params_or_seq_(e,t){var n;var i;var s;var o=[];expect("(");while(!is("punc",")")){if(n)unexpected(n);if(is("expand","...")){n=r.token;if(t)i=r.token;next();o.push(new Z({start:prev(),expression:w(),end:r.token}))}else{o.push(w())}if(!is("punc",")")){expect(",");if(is("punc",")")){s=prev();if(t)i=s}}}expect(")");if(e&&is("arrow","=>")){if(n&&s)unexpected(s)}else if(i){unexpected(i)}return o}function _function_body(e,t,n,i,s){var o=r.in_loop;var a=r.labels;var c=r.in_generator;var u=r.in_async;++r.in_function;if(t)r.in_generator=r.in_function;if(n)r.in_async=r.in_function;if(s)parameters(s);if(e)r.in_directives=true;r.in_loop=0;r.labels=[];if(e){r.input.push_directives_stack();var l=block_();if(i)_verify_symbol(i);if(s)s.forEach(_verify_symbol);r.input.pop_directives_stack()}else{var l=[new le({start:r.token,value:w(false),end:r.token})]}--r.in_function;r.in_loop=o;r.labels=a;r.in_generator=c;r.in_async=u;return l}function _await_expression(){if(!is_in_async()){croak("Unexpected await expression outside async function",r.prev.line,r.prev.col,r.prev.pos)}return new me({start:prev(),end:r.token,expression:y(true)})}function _yield_expression(){if(!is_in_generator()){croak("Unexpected yield expression outside generator function",r.prev.line,r.prev.col,r.prev.pos)}var e=r.token;var t=false;var n=true;if(can_insert_semicolon()||is("punc")&&E.has(r.token.value)){n=false}else if(is("operator","*")){t=true;next()}return new ge({start:e,is_star:t,expression:n?w():null,end:prev()})}function if_(){var e=parenthesised(),t=i(false,false,true),n=null;if(is("keyword","else")){next();n=i(false,false,true)}return new ye({condition:e,body:t,alternative:n})}function block_(){expect("{");var e=[];while(!is("punc","}")){if(is("eof"))unexpected();e.push(i())}next();return e}function switch_body_(){expect("{");var e=[],t=null,n=null,s;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(n)n.end=prev();t=[];n=new Ee({start:(s=r.token,next(),s),expression:w(true),body:t});e.push(n);expect(":")}else if(is("keyword","default")){if(n)n.end=prev();t=[];n=new be({start:(s=r.token,next(),expect(":"),s),body:t});e.push(n)}else{if(!t)unexpected();t.push(i())}}if(n)n.end=prev();next();return e}function try_(){var e=block_(),t=null,n=null;if(is("keyword","catch")){var i=r.token;next();if(is("punc","{")){var s=null}else{expect("(");var s=parameter(undefined,_t);expect(")")}t=new Se({start:i,argname:s,body:block_(),end:prev()})}if(is("keyword","finally")){var i=r.token;next();n=new ke({start:i,body:block_(),end:prev()})}if(!t&&!n)croak("Missing catch/finally blocks");return new we({body:e,bcatch:t,bfinally:n})}function vardefs(e,t){var n=[];var i;for(;;){var s=t==="var"?ct:t==="const"?lt:t==="let"?ft:null;if(is("punc","{")||is("punc","[")){i=new Te({start:r.token,name:binding_element(undefined,s),value:is("operator","=")?(expect_token("operator","="),w(false,e)):null,end:prev()})}else{i=new Te({start:r.token,name:as_symbol(s),value:is("operator","=")?(next(),w(false,e)):!e&&t==="const"?croak("Missing initializer in const declaration"):null,end:prev()});if(i.name.name=="import")croak("Unexpected token: import")}n.push(i);if(!is("punc",","))break;next()}return n}var a=function(e){return new xe({start:prev(),definitions:vardefs(e,"var"),end:prev()})};var u=function(e){return new Ce({start:prev(),definitions:vardefs(e,"let"),end:prev()})};var l=function(e){return new Ae({start:prev(),definitions:vardefs(e,"const"),end:prev()})};var f=function(e){var t=r.token;expect_token("operator","new");if(is("punc",".")){next();expect_token("name","target");return g(new ot({start:t,end:prev()}),e)}var n=p(false),i;if(is("punc","(")){next();i=expr_list(")",true)}else{i=[]}var s=new Pe({start:t,expression:n,args:i,end:prev()});annotate(s);return g(s,e)};function as_atom_node(){var e=r.token,t;switch(e.type){case"name":t=_make_symbol(St);break;case"num":t=new Ot({start:e,end:e,value:e.value});break;case"big_int":t=new Ft({start:e,end:e,value:e.value});break;case"string":t=new Mt({start:e,end:e,value:e.value,quote:e.quote});break;case"regexp":t=new It({start:e,end:e,value:e.value});break;case"atom":switch(e.value){case"false":t=new zt({start:e,end:e});break;case"true":t=new Ht({start:e,end:e});break;case"null":t=new Pt({start:e,end:e});break}break}next();return t}function to_fun_args(e,t){var n=function(e,t){if(t){return new Ke({start:e.start,left:e,operator:"=",right:t,end:t.end})}return e};if(e instanceof Je){return n(new ie({start:e.start,end:e.end,is_array:false,names:e.properties.map(e=>to_fun_args(e))}),t)}else if(e instanceof Qe){e.value=to_fun_args(e.value);return n(e,t)}else if(e instanceof Bt){return e}else if(e instanceof ie){e.names=e.names.map(e=>to_fun_args(e));return n(e,t)}else if(e instanceof St){return n(new pt({name:e.name,start:e.start,end:e.end}),t)}else if(e instanceof Z){e.expression=to_fun_args(e.expression);return n(e,t)}else if(e instanceof Xe){return n(new ie({start:e.start,end:e.end,is_array:true,names:e.elements.map(e=>to_fun_args(e))}),t)}else if(e instanceof We){return n(to_fun_args(e.left,e.right),t)}else if(e instanceof Ke){e.left=to_fun_args(e.left);return e}else{croak("Invalid function parameter",e.start.line,e.start.col)}}var p=function(e,t){if(is("operator","new")){return f(e)}if(is("operator","import")){return import_meta()}var i=r.token;var a;var c=is("name","async")&&(a=peek()).value!="["&&a.type!="arrow"&&as_atom_node();if(is("punc")){switch(r.token.value){case"(":if(c&&!e)break;var u=params_or_seq_(t,!c);if(t&&is("arrow","=>")){return s(i,u.map(e=>to_fun_args(e)),!!c)}var l=c?new Re({expression:c,args:u}):u.length==1?u[0]:new Ne({expressions:u});if(l.start){const e=i.comments_before.length;n.set(i,e);l.start.comments_before.unshift(...i.comments_before);i.comments_before=l.start.comments_before;if(e==0&&i.comments_before.length>0){var p=i.comments_before[0];if(!p.nlb){p.nlb=i.nlb;i.nlb=false}}i.comments_after=l.start.comments_after}l.start=i;var h=prev();if(l.end){h.comments_before=l.end.comments_before;l.end.comments_after.push(...h.comments_after);h.comments_after=l.end.comments_after}l.end=h;if(l instanceof Re)annotate(l);return g(l,e);case"[":return g(d(),e);case"{":return g(m(),e)}if(!c)unexpected()}if(t&&is("name")&&is_token(peek(),"arrow")){var y=new pt({name:r.token.value,start:i,end:i});next();return s(i,[y],!!c)}if(is("keyword","function")){next();var v=o(te,false,!!c);v.start=i;v.end=prev();return g(v,e)}if(c)return g(c,e);if(is("keyword","class")){next();var _=class_(it);_.start=i;_.end=prev();return g(_,e)}if(is("template_head")){return g(template_string(),e)}if(M.has(r.token.type)){return g(as_atom_node(),e)}unexpected()};function template_string(){var e=[],t=r.token;e.push(new ae({start:r.token,raw:r.token.raw,value:r.token.value,end:r.token}));while(!r.token.end){next();handle_regexp();e.push(w(true));if(!is_token("template_substitution")){unexpected()}e.push(new ae({start:r.token,raw:r.token.raw,value:r.token.value,end:r.token}))}next();return new oe({start:t,segments:e,end:r.token})}function expr_list(e,t,n){var i=true,s=[];while(!is("punc",e)){if(i)i=false;else expect(",");if(t&&is("punc",e))break;if(is("punc",",")&&n){s.push(new Bt({start:r.token,end:r.token}))}else if(is("expand","...")){next();s.push(new Z({start:prev(),expression:w(),end:r.token}))}else{s.push(w(false))}}next();return s}var d=embed_tokens(function(){expect("[");return new Xe({elements:expr_list("]",!t.strict,true)})});var h=embed_tokens((e,t)=>{return o(ee,e,t)});var m=embed_tokens(function object_or_destructuring_(){var e=r.token,n=true,i=[];expect("{");while(!is("punc","}")){if(n)n=false;else expect(",");if(!t.strict&&is("punc","}"))break;e=r.token;if(e.type=="expand"){next();i.push(new Z({start:e,expression:w(false),end:prev()}));continue}var s=as_property_name();var o;if(!is("punc",":")){var a=concise_method_or_getset(s,e);if(a){i.push(a);continue}o=new St({start:prev(),name:s,end:prev()})}else if(s===null){unexpected(prev())}else{next();o=w(false)}if(is("operator","=")){next();o=new We({start:e,left:o,operator:"=",right:w(false),end:prev()})}i.push(new Qe({start:e,quote:e.quote,key:s instanceof F?s:""+s,value:o,end:prev()}))}next();return new Je({properties:i})});function class_(e){var t,n,i,s,o=[];r.input.push_directives_stack();r.input.add_directive("use strict");if(r.token.type=="name"&&r.token.value!="extends"){i=as_symbol(e===rt?yt:vt)}if(e===rt&&!i){unexpected()}if(r.token.value=="extends"){next();s=w(true)}expect("{");while(is("punc",";")){next()}while(!is("punc","}")){t=r.token;n=concise_method_or_getset(as_property_name(),t,true);if(!n){unexpected()}o.push(n);while(is("punc",";")){next()}}r.input.pop_directives_stack();next();return new e({start:t,name:i,extends:s,properties:o,end:prev()})}function concise_method_or_getset(e,t,n){var i=function(e,t){if(typeof e==="string"||typeof e==="number"){return new ht({start:t,name:""+e,end:prev()})}else if(e===null){unexpected()}return e};const s=e=>{if(typeof e==="string"||typeof e==="number"){return new mt({start:u,end:u,name:""+e})}else if(e===null){unexpected()}return e};var o=false;var a=false;var c=false;var u=t;if(n&&e==="static"&&!is("punc","(")){a=true;u=r.token;e=as_property_name()}if(e==="async"&&!is("punc","(")&&!is("punc",",")&&!is("punc","}")&&!is("operator","=")){o=true;u=r.token;e=as_property_name()}if(e===null){c=true;u=r.token;e=as_property_name();if(e===null){unexpected()}}if(is("punc","(")){e=i(e,t);var l=new et({start:t,static:a,is_generator:c,async:o,key:e,quote:e instanceof ht?u.quote:undefined,value:h(c,o),end:prev()});return l}const f=r.token;if(e=="get"){if(!is("punc")||is("punc","[")){e=i(as_property_name(),t);return new $e({start:t,static:a,key:e,quote:e instanceof ht?f.quote:undefined,value:h(),end:prev()})}}else if(e=="set"){if(!is("punc")||is("punc","[")){e=i(as_property_name(),t);return new Ze({start:t,static:a,key:e,quote:e instanceof ht?f.quote:undefined,value:h(),end:prev()})}}if(n){const n=s(e);const r=n instanceof mt?u.quote:undefined;if(is("operator","=")){next();return new nt({start:t,static:a,quote:r,key:n,value:w(false),end:prev()})}else if(is("name")||is("punc",";")||is("punc","}")){return new nt({start:t,static:a,quote:r,key:n,end:prev()})}}}function import_(){var e=prev();var t;var n;if(is("name")){t=as_symbol(bt)}if(is("punc",",")){next()}n=map_names(true);if(n||t){expect_token("name","from")}var i=r.token;if(i.type!=="string"){unexpected()}next();return new Oe({start:e,imported_name:t,imported_names:n,module_name:new Mt({start:i,value:i.value,quote:i.quote,end:i}),end:r.token})}function import_meta(){var e=r.token;expect_token("operator","import");expect_token("punc",".");expect_token("name","meta");return g(new Fe({start:e,end:prev()}),false)}function map_name(e){function make_symbol(e){return new e({name:as_property_name(),start:prev(),end:prev()})}var t=e?Et:Dt;var n=e?bt:kt;var i=r.token;var s;var o;if(e){s=make_symbol(t)}else{o=make_symbol(n)}if(is("name","as")){next();if(e){o=make_symbol(n)}else{s=make_symbol(t)}}else if(e){o=new n(s)}else{s=new t(o)}return new Me({start:i,foreign_name:s,name:o,end:prev()})}function map_nameAsterisk(e,t){var n=e?Et:Dt;var i=e?bt:kt;var s=r.token;var o;var a=prev();t=t||new i({name:"*",start:s,end:a});o=new n({name:"*",start:s,end:a});return new Me({start:s,foreign_name:o,name:t,end:a})}function map_names(e){var t;if(is("punc","{")){next();t=[];while(!is("punc","}")){t.push(map_name(e));if(is("punc",",")){next()}}next()}else if(is("operator","*")){var n;next();if(e&&is("name","as")){next();n=as_symbol(e?bt:Dt)}t=[map_nameAsterisk(e,n)]}return t}function export_(){var e=r.token;var t;var n;if(is("keyword","default")){t=true;next()}else if(n=map_names(false)){if(is("name","from")){next();var s=r.token;if(s.type!=="string"){unexpected()}next();return new Ie({start:e,is_default:t,exported_names:n,module_name:new Mt({start:s,value:s.value,quote:s.quote,end:s}),end:prev()})}else{return new Ie({start:e,is_default:t,exported_names:n,end:prev()})}}var o;var a;var c;if(is("punc","{")||t&&(is("keyword","class")||is("keyword","function"))&&is_token(peek(),"punc")){a=w(false);semicolon()}else if((o=i(t))instanceof De&&t){unexpected(o.start)}else if(o instanceof De||o instanceof $||o instanceof rt){c=o}else if(o instanceof N){a=o.body}else{unexpected(o.start)}return new Ie({start:e,is_default:t,exported_value:a,exported_definition:c,end:prev()})}function as_property_name(){var e=r.token;switch(e.type){case"punc":if(e.value==="["){next();var t=w(false);expect("]");return t}else unexpected(e);case"operator":if(e.value==="*"){next();return null}if(!["delete","in","instanceof","new","typeof","void"].includes(e.value)){unexpected(e)}case"name":case"string":case"num":case"big_int":case"keyword":case"atom":next();return e.value;default:unexpected(e)}}function as_name(){var e=r.token;if(e.type!="name")unexpected();next();return e.value}function _make_symbol(e){var t=r.token.value;return new(t=="this"?Ct:t=="super"?At:e)({name:String(t),start:r.token,end:r.token})}function _verify_symbol(e){var t=e.name;if(is_in_generator()&&t=="yield"){token_error(e.start,"Yield cannot be used as identifier inside generators")}if(r.input.has_directive("use strict")){if(t=="yield"){token_error(e.start,"Unexpected yield identifier inside strict mode")}if(e instanceof at&&(t=="arguments"||t=="eval")){token_error(e.start,"Unexpected "+t+" in strict mode")}}}function as_symbol(e,t){if(!is("name")){if(!t)croak("Name expected");return null}var n=_make_symbol(e);_verify_symbol(n);next();return n}function annotate(e){var t=e.start;var r=t.comments_before;const i=n.get(t);var s=i!=null?i:r.length;while(--s>=0){var o=r[s];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){set_annotation(e,Gt);break}if(/[@#]__INLINE__/.test(o.value)){set_annotation(e,qt);break}if(/[@#]__NOINLINE__/.test(o.value)){set_annotation(e,Wt);break}}}}var g=function(e,t,n){var r=e.start;if(is("punc",".")){next();return g(new Be({start:r,expression:e,optional:false,property:as_name(),end:prev()}),t,n)}if(is("punc","[")){next();var i=w(true);expect("]");return g(new je({start:r,expression:e,optional:false,property:i,end:prev()}),t,n)}if(t&&is("punc","(")){next();var s=new Re({start:r,expression:e,optional:false,args:call_args(),end:prev()});annotate(s);return g(s,true,n)}if(is("punc","?.")){next();let n;if(t&&is("punc","(")){next();const t=new Re({start:r,optional:true,expression:e,args:call_args(),end:prev()});annotate(t);n=g(t,true,true)}else if(is("name")){n=g(new Be({start:r,expression:e,optional:true,property:as_name(),end:prev()}),t,true)}else if(is("punc","[")){next();const i=w(true);expect("]");n=g(new je({start:r,expression:e,optional:true,property:i,end:prev()}),t,true)}if(!n)unexpected();if(n instanceof Ue)return n;return new Ue({start:r,expression:n,end:prev()})}if(is("template_head")){if(n){unexpected()}return g(new se({start:r,prefix:e,template_string:template_string(),end:prev()}),t)}return e};function call_args(){var e=[];while(!is("punc",")")){if(is("expand","...")){next();e.push(new Z({start:prev(),expression:w(false),end:prev()}))}else{e.push(w(false))}if(!is("punc",")")){expect(",")}}next();return e}var y=function(e,t){var n=r.token;if(n.type=="name"&&n.value=="await"){if(is_in_async()){next();return _await_expression()}else if(r.input.has_directive("use strict")){token_error(r.token,"Unexpected await identifier inside strict mode")}}if(is("operator")&&x.has(n.value)){next();handle_regexp();var i=make_unary(He,n,y(e));i.start=n;i.end=prev();return i}var s=p(e,t);while(is("operator")&&C.has(r.token.value)&&!has_newline_before(r.token)){if(s instanceof ne)unexpected();s=make_unary(Ve,r.token,s);s.start=n;s.end=r.token;next()}return s};function make_unary(e,t,n){var i=t.value;switch(i){case"++":case"--":if(!is_assignable(n))croak("Invalid use of "+i+" operator",t.line,t.col,t.pos);break;case"delete":if(n instanceof St&&r.input.has_directive("use strict"))croak("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos);break}return new e({operator:i,expression:n})}var v=function(e,t,n){var i=is("operator")?r.token.value:null;if(i=="in"&&n)i=null;if(i=="**"&&e instanceof He&&!is_token(e.start,"punc","(")&&e.operator!=="--"&&e.operator!=="++")unexpected(e.start);var s=i!=null?T[i]:null;if(s!=null&&(s>t||i==="**"&&t===s)){next();var o=v(y(true),s,n);return v(new Ge({start:e.start,left:e,operator:i,right:o,end:o.end}),t,n)}return e};function expr_ops(e){return v(y(true,true),0,e)}var _=function(e){var t=r.token;var n=expr_ops(e);if(is("operator","?")){next();var i=w(false);expect(":");return new qe({start:t,condition:n,consequent:i,alternative:w(false,e),end:prev()})}return n};function is_assignable(e){return e instanceof Le||e instanceof St}function to_destructuring(e){if(e instanceof Je){e=new ie({start:e.start,names:e.properties.map(to_destructuring),is_array:false,end:e.end})}else if(e instanceof Xe){var t=[];for(var n=0;n<e.elements.length;n++){if(e.elements[n]instanceof Z){if(n+1!==e.elements.length){token_error(e.elements[n].start,"Spread must the be last element in destructuring array")}e.elements[n].expression=to_destructuring(e.elements[n].expression)}t.push(to_destructuring(e.elements[n]))}e=new ie({start:e.start,names:t,is_array:true,end:e.end})}else if(e instanceof Ye){e.value=to_destructuring(e.value)}else if(e instanceof We){e=new Ke({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end})}return e}var b=function(e){handle_regexp();var t=r.token;if(t.type=="name"&&t.value=="yield"){if(is_in_generator()){next();return _yield_expression()}else if(r.input.has_directive("use strict")){token_error(r.token,"Unexpected yield identifier inside strict mode")}}var n=_(e);var i=r.token.value;if(is("operator")&&A.has(i)){if(is_assignable(n)||(n=to_destructuring(n))instanceof ie){next();return new We({start:t,left:n,operator:i,right:b(e),end:prev()})}croak("Invalid assignment")}return n};var w=function(e,t){var n=r.token;var i=[];while(true){i.push(b(t));if(!e||!is("punc",","))break;next();e=true}return i.length==1?i[0]:new Ne({start:n,expressions:i,end:peek()})};function in_loop(e){++r.in_loop;var t=e();--r.in_loop;return t}if(t.expression){return w(true)}return function parse_toplevel(){var e=r.token;var n=[];r.input.push_directives_stack();if(t.module)r.input.add_directive("use strict");while(!is("eof")){n.push(i())}r.input.pop_directives_stack();var s=prev();var o=t.toplevel;if(o){o.body=o.body.concat(n);o.end=s}else{o=new Q({start:e,body:n,end:s})}return o}()}function DEFNODE(e,t,n,r=F){if(!t)t=[];else t=t.split(/\s+/);var i=t;if(r&&r.PROPS)t=t.concat(r.PROPS);var s="return function AST_"+e+"(props){ if (props) { ";for(var o=t.length;--o>=0;){s+="this."+t[o]+" = props."+t[o]+";"}const a=r&&Object.create(r.prototype);if(a&&a.initialize||n&&n.initialize)s+="this.initialize();";s+="}";s+="this.flags = 0;";s+="}";var c=new Function(s)();if(a){c.prototype=a;c.BASE=r}if(r)r.SUBCLASSES.push(c);c.prototype.CTOR=c;c.prototype.constructor=c;c.PROPS=t||null;c.SELF_PROPS=i;c.SUBCLASSES=[];if(e){c.prototype.TYPE=c.TYPE=e}if(n)for(o in n)if(HOP(n,o)){if(o[0]==="$"){c[o.substr(1)]=n[o]}else{c.prototype[o]=n[o]}}c.DEFMETHOD=function(e,t){this.prototype[e]=t};return c}var O=DEFNODE("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw quote end",{},null);var F=DEFNODE("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new TreeTransformer(function(e){if(e!==t){return e.clone(true)}}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null);var I=DEFNODE("Statement",null,{$documentation:"Base class of all statements"});var R=DEFNODE("Debugger",null,{$documentation:"Represents a debugger statement"},I);var P=DEFNODE("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},I);var N=DEFNODE("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})},_children_backwards(e){e(this.body)}},I);function walk_body(e,t){const n=e.body;for(var r=0,i=n.length;r<i;r++){n[r]._walk(t)}}function clone_block_scope(e){var t=this._clone(e);if(this.block_scope){t.block_scope=this.block_scope.clone()}return t}var L=DEFNODE("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,function(){walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t])},clone:clone_block_scope},I);var B=DEFNODE("BlockStatement",null,{$documentation:"A block statement"},L);var j=DEFNODE("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},I);var U=DEFNODE("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},I);var z=DEFNODE("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e);this.body._walk(e)})},_children_backwards(e){e(this.body);e(this.label)},clone:function(e){var t=this._clone(e);if(e){var n=t.label;var r=this.label;t.walk(new TreeWalker(function(e){if(e instanceof pe&&e.label&&e.label.thedef===r){e.label.thedef=n;n.references.push(e)}}))}return t}},U);var H=DEFNODE("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:clone_block_scope},U);var V=DEFNODE("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},H);var G=DEFNODE("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e);this.condition._walk(e)})},_children_backwards(e){e(this.condition);e(this.body)}},V);var q=DEFNODE("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e);this.body._walk(e)})},_children_backwards(e){e(this.body);e(this.condition)}},V);var W=DEFNODE("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){if(this.init)this.init._walk(e);if(this.condition)this.condition._walk(e);if(this.step)this.step._walk(e);this.body._walk(e)})},_children_backwards(e){e(this.body);if(this.step)e(this.step);if(this.condition)e(this.condition);if(this.init)e(this.init)}},H);var K=DEFNODE("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e);this.object._walk(e);this.body._walk(e)})},_children_backwards(e){e(this.body);if(this.object)e(this.object);if(this.init)e(this.init)}},H);var X=DEFNODE("ForOf","await",{$documentation:"A `for ... of` statement"},K);var J=DEFNODE("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);this.body._walk(e)})},_children_backwards(e){e(this.body);e(this.expression)}},U);var Y=DEFNODE("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){var e=this;while(e.is_block_scope()){e=e.parent_scope}return e},clone:function(e,t){var n=this._clone(e);if(e&&this.variables&&t&&!this._block_scope){n.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope})}else{if(this.variables)n.variables=new Map(this.variables);if(this.functions)n.functions=new Map(this.functions);if(this.enclosed)n.enclosed=this.enclosed.slice();if(this._block_scope)n._block_scope=this._block_scope}return n},pinned:function(){return this.uses_eval||this.uses_with}},L);var Q=DEFNODE("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body;var n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";n=parse(n);n=n.transform(new TreeTransformer(function(e){if(e instanceof P&&e.value=="$ORIG"){return r.splice(t)}}));return n},wrap_enclose:function(e){if(typeof e!="string")e="";var t=e.indexOf(":");if(t<0)t=e.length;var n=this.body;return parse(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new TreeTransformer(function(e){if(e instanceof P&&e.value=="$ORIG"){return r.splice(n)}}))}},Y);var Z=DEFNODE("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){return e._visit(this,function(){this.expression.walk(e)})},_children_backwards(e){e(this.expression)}});var $=DEFNODE("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){var e=[];for(var t=0;t<this.argnames.length;t++){if(this.argnames[t]instanceof ie){e.push(...this.argnames[t].all_symbols())}else{e.push(this.argnames[t])}}return e},_walk:function(e){return e._visit(this,function(){if(this.name)this.name._walk(e);var t=this.argnames;for(var n=0,r=t.length;n<r;n++){t[n]._walk(e)}walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);t=this.argnames.length;while(t--)e(this.argnames[t]);if(this.name)e(this.name)}},Y);var ee=DEFNODE("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},$);var te=DEFNODE("Function",null,{$documentation:"A function expression"},$);var ne=DEFNODE("Arrow",null,{$documentation:"An ES6 Arrow function ((a) => b)"},$);var re=DEFNODE("Defun",null,{$documentation:"A function definition"},$);var ie=DEFNODE("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.names.length;while(t--)e(this.names[t])},all_symbols:function(){var e=[];this.walk(new TreeWalker(function(t){if(t instanceof st){e.push(t)}}));return e}});var se=DEFNODE("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk:function(e){return e._visit(this,function(){this.prefix._walk(e);this.template_string._walk(e)})},_children_backwards(e){e(this.template_string);e(this.prefix)}});var oe=DEFNODE("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.segments.length;while(t--)e(this.segments[t])}});var ae=DEFNODE("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}});var ce=DEFNODE("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},I);var ue=DEFNODE("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){if(this.value)e(this.value)}},ce);var le=DEFNODE("Return",null,{$documentation:"A `return` statement"},ue);var fe=DEFNODE("Throw",null,{$documentation:"A `throw` statement"},ue);var pe=DEFNODE("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){if(this.label)e(this.label)}},ce);var de=DEFNODE("Break",null,{$documentation:"A `break` statement"},pe);var he=DEFNODE("Continue",null,{$documentation:"A `continue` statement"},pe);var me=DEFNODE("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}});var ge=DEFNODE("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){if(this.expression)e(this.expression)}});var ye=DEFNODE("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e);this.body._walk(e);if(this.alternative)this.alternative._walk(e)})},_children_backwards(e){if(this.alternative){e(this.alternative)}e(this.body);e(this.condition)}},U);var ve=DEFNODE("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},L);var _e=DEFNODE("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},L);var be=DEFNODE("Default",null,{$documentation:"A `default` switch branch"},_e);var Ee=DEFNODE("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},_e);var we=DEFNODE("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){walk_body(this,e);if(this.bcatch)this.bcatch._walk(e);if(this.bfinally)this.bfinally._walk(e)})},_children_backwards(e){if(this.bfinally)e(this.bfinally);if(this.bcatch)e(this.bcatch);let t=this.body.length;while(t--)e(this.body[t])}},L);var Se=DEFNODE("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){if(this.argname)this.argname._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);if(this.argname)e(this.argname)}},L);var ke=DEFNODE("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},L);var De=DEFNODE("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){var t=this.definitions;for(var n=0,r=t.length;n<r;n++){t[n]._walk(e)}})},_children_backwards(e){let t=this.definitions.length;while(t--)e(this.definitions[t])}},I);var xe=DEFNODE("Var",null,{$documentation:"A `var` statement"},De);var Ce=DEFNODE("Let",null,{$documentation:"A `let` statement"},De);var Ae=DEFNODE("Const",null,{$documentation:"A `const` statement"},De);var Te=DEFNODE("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e);if(this.value)this.value._walk(e)})},_children_backwards(e){if(this.value)e(this.value);e(this.name)}});var Me=DEFNODE("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,function(){this.foreign_name._walk(e);this.name._walk(e)})},_children_backwards(e){e(this.name);e(this.foreign_name)}});var Oe=DEFNODE("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,function(){if(this.imported_name){this.imported_name._walk(e)}if(this.imported_names){this.imported_names.forEach(function(t){t._walk(e)})}this.module_name._walk(e)})},_children_backwards(e){e(this.module_name);if(this.imported_names){let t=this.imported_names.length;while(t--)e(this.imported_names[t])}if(this.imported_name)e(this.imported_name)}});var Fe=DEFNODE("ImportMeta",null,{$documentation:"A reference to import.meta"});var Ie=DEFNODE("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){return e._visit(this,function(){if(this.exported_definition){this.exported_definition._walk(e)}if(this.exported_value){this.exported_value._walk(e)}if(this.exported_names){this.exported_names.forEach(function(t){t._walk(e)})}if(this.module_name){this.module_name._walk(e)}})},_children_backwards(e){if(this.module_name)e(this.module_name);if(this.exported_names){let t=this.exported_names.length;while(t--)e(this.exported_names[t])}if(this.exported_value)e(this.exported_value);if(this.exported_definition)e(this.exported_definition)}},I);var Re=DEFNODE("Call","expression args optional _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){if(this._annotations==null)this._annotations=0},_walk(e){return e._visit(this,function(){var t=this.args;for(var n=0,r=t.length;n<r;n++){t[n]._walk(e)}this.expression._walk(e)})},_children_backwards(e){let t=this.args.length;while(t--)e(this.args[t]);e(this.expression)}});var Pe=DEFNODE("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Re);var Ne=DEFNODE("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,function(){this.expressions.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.expressions.length;while(t--)e(this.expressions[t])}});var Le=DEFNODE("PropAccess","expression property optional",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}});var Be=DEFNODE("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}},Le);var je=DEFNODE("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e);this.property._walk(e)})},_children_backwards(e){e(this.property);e(this.expression)}},Le);var Ue=DEFNODE("Chain","expression",{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_Sub] chain element."},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}});var ze=DEFNODE("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}});var He=DEFNODE("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},ze);var Ve=DEFNODE("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},ze);var Ge=DEFNODE("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e);this.right._walk(e)})},_children_backwards(e){e(this.right);e(this.left)}});var qe=DEFNODE("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e);this.consequent._walk(e);this.alternative._walk(e)})},_children_backwards(e){e(this.alternative);e(this.consequent);e(this.condition)}});var We=DEFNODE("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Ge);var Ke=DEFNODE("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Ge);var Xe=DEFNODE("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){var t=this.elements;for(var n=0,r=t.length;n<r;n++){t[n]._walk(e)}})},_children_backwards(e){let t=this.elements.length;while(t--)e(this.elements[t])}});var Je=DEFNODE("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){var t=this.properties;for(var n=0,r=t.length;n<r;n++){t[n]._walk(e)}})},_children_backwards(e){let t=this.properties.length;while(t--)e(this.properties[t])}});var Ye=DEFNODE("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){if(this.key instanceof F)this.key._walk(e);this.value._walk(e)})},_children_backwards(e){e(this.value);if(this.key instanceof F)e(this.key)}});var Qe=DEFNODE("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof F}},Ye);var Ze=DEFNODE("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof ht)}},Ye);var $e=DEFNODE("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof ht)}},Ye);var et=DEFNODE("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof ht)}},Ye);var tt=DEFNODE("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,function(){if(this.name){this.name._walk(e)}if(this.extends){this.extends._walk(e)}this.properties.forEach(t=>t._walk(e))})},_children_backwards(e){let t=this.properties.length;while(t--)e(this.properties[t]);if(this.extends)e(this.extends);if(this.name)e(this.name)}},Y);var nt=DEFNODE("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(e){return e._visit(this,function(){if(this.key instanceof F)this.key._walk(e);if(this.value instanceof F)this.value._walk(e)})},_children_backwards(e){if(this.value instanceof F)e(this.value);if(this.key instanceof F)e(this.key)},computed_key(){return!(this.key instanceof mt)}},Ye);var rt=DEFNODE("DefClass",null,{$documentation:"A class definition"},tt);var it=DEFNODE("ClassExpression",null,{$documentation:"A class expression."},tt);var st=DEFNODE("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"});var ot=DEFNODE("NewTarget",null,{$documentation:"A reference to new.target"});var at=DEFNODE("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},st);var ct=DEFNODE("SymbolVar",null,{$documentation:"Symbol defining a variable"},at);var ut=DEFNODE("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},at);var lt=DEFNODE("SymbolConst",null,{$documentation:"A constant declaration"},ut);var ft=DEFNODE("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},ut);var pt=DEFNODE("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ct);var dt=DEFNODE("SymbolDefun",null,{$documentation:"Symbol defining a function"},at);var ht=DEFNODE("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},st);var mt=DEFNODE("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},st);var gt=DEFNODE("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},at);var yt=DEFNODE("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ut);var vt=DEFNODE("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},at);var _t=DEFNODE("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ut);var bt=DEFNODE("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},ut);var Et=DEFNODE("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},st);var wt=DEFNODE("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[];this.thedef=this}},st);var St=DEFNODE("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},st);var kt=DEFNODE("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},St);var Dt=DEFNODE("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},st);var xt=DEFNODE("LabelRef",null,{$documentation:"Reference to a label symbol"},st);var Ct=DEFNODE("This",null,{$documentation:"The `this` symbol"},st);var At=DEFNODE("Super",null,{$documentation:"The `super` symbol"},Ct);var Tt=DEFNODE("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}});var Mt=DEFNODE("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},Tt);var Ot=DEFNODE("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},Tt);var Ft=DEFNODE("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},Tt);var It=DEFNODE("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},Tt);var Rt=DEFNODE("Atom",null,{$documentation:"Base class for atoms"},Tt);var Pt=DEFNODE("Null",null,{$documentation:"The `null` atom",value:null},Rt);var Nt=DEFNODE("NaN",null,{$documentation:"The impossible value",value:0/0},Rt);var Lt=DEFNODE("Undefined",null,{$documentation:"The `undefined` value",value:function(){}()},Rt);var Bt=DEFNODE("Hole",null,{$documentation:"A hole in an array",value:function(){}()},Rt);var jt=DEFNODE("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Rt);var Ut=DEFNODE("Boolean",null,{$documentation:"Base class for booleans"},Rt);var zt=DEFNODE("False",null,{$documentation:"The `false` atom",value:false},Ut);var Ht=DEFNODE("True",null,{$documentation:"The `true` atom",value:true},Ut);function walk(e,t,n=[e]){const r=n.push.bind(n);while(n.length){const e=n.pop();const i=t(e,n);if(i){if(i===Vt)return true;continue}e._children_backwards(r)}return false}function walk_parent(e,t,n){const r=[e];const i=r.push.bind(r);const s=n?n.slice():[];const o=[];let a;const c={parent:(e=0)=>{if(e===-1){return a}if(n&&e>=s.length){e-=s.length;return n[n.length-(e+1)]}return s[s.length-(1+e)]}};while(r.length){a=r.pop();while(o.length&&r.length==o[o.length-1]){s.pop();o.pop()}const e=t(a,c);if(e){if(e===Vt)return true;continue}const n=r.length;a._children_backwards(i);if(r.length>n){s.push(a);o.push(n-1)}}return false}const Vt=Symbol("abort walk");class TreeWalker{constructor(e){this.visit=e;this.stack=[];this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:noop);if(!n&&t){t.call(e)}this.pop();return n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){if(e instanceof $){this.directives=Object.create(this.directives)}else if(e instanceof P&&!this.directives[e.value]){this.directives[e.value]=e}else if(e instanceof tt){this.directives=Object.create(this.directives);if(!this.directives["use strict"]){this.directives["use strict"]=e}}this.stack.push(e)}pop(){var e=this.stack.pop();if(e instanceof $||e instanceof tt){this.directives=Object.getPrototypeOf(this.directives)}}self(){return this.stack[this.stack.length-1]}find_parent(e){var t=this.stack;for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof e)return r}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Y&&n.body){for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof P))break;if(i.value==e)return i}}}loopcontrol_target(e){var t=this.stack;if(e.label)for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof z&&r.label.name==e.label.name)return r.body}else for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof H||e instanceof de&&r instanceof ve)return r}}}class TreeTransformer extends TreeWalker{constructor(e,t){super();this.before=e;this.after=t}}const Gt=1;const qt=2;const Wt=4;var Kt=Object.freeze({__proto__:null,AST_Accessor:ee,AST_Array:Xe,AST_Arrow:ne,AST_Assign:We,AST_Atom:Rt,AST_Await:me,AST_BigInt:Ft,AST_Binary:Ge,AST_Block:L,AST_BlockStatement:B,AST_Boolean:Ut,AST_Break:de,AST_Call:Re,AST_Case:Ee,AST_Catch:Se,AST_Chain:Ue,AST_Class:tt,AST_ClassExpression:it,AST_ClassProperty:nt,AST_ConciseMethod:et,AST_Conditional:qe,AST_Const:Ae,AST_Constant:Tt,AST_Continue:he,AST_Debugger:R,AST_Default:be,AST_DefaultAssign:Ke,AST_DefClass:rt,AST_Definitions:De,AST_Defun:re,AST_Destructuring:ie,AST_Directive:P,AST_Do:G,AST_Dot:Be,AST_DWLoop:V,AST_EmptyStatement:j,AST_Exit:ue,AST_Expansion:Z,AST_Export:Ie,AST_False:zt,AST_Finally:ke,AST_For:W,AST_ForIn:K,AST_ForOf:X,AST_Function:te,AST_Hole:Bt,AST_If:ye,AST_Import:Oe,AST_ImportMeta:Fe,AST_Infinity:jt,AST_IterationStatement:H,AST_Jump:ce,AST_Label:wt,AST_LabeledStatement:z,AST_LabelRef:xt,AST_Lambda:$,AST_Let:Ce,AST_LoopControl:pe,AST_NameMapping:Me,AST_NaN:Nt,AST_New:Pe,AST_NewTarget:ot,AST_Node:F,AST_Null:Pt,AST_Number:Ot,AST_Object:Je,AST_ObjectGetter:$e,AST_ObjectKeyVal:Qe,AST_ObjectProperty:Ye,AST_ObjectSetter:Ze,AST_PrefixedTemplateString:se,AST_PropAccess:Le,AST_RegExp:It,AST_Return:le,AST_Scope:Y,AST_Sequence:Ne,AST_SimpleStatement:N,AST_Statement:I,AST_StatementWithBody:U,AST_String:Mt,AST_Sub:je,AST_Super:At,AST_Switch:ve,AST_SwitchBranch:_e,AST_Symbol:st,AST_SymbolBlockDeclaration:ut,AST_SymbolCatch:_t,AST_SymbolClass:vt,AST_SymbolClassProperty:mt,AST_SymbolConst:lt,AST_SymbolDeclaration:at,AST_SymbolDefClass:yt,AST_SymbolDefun:dt,AST_SymbolExport:kt,AST_SymbolExportForeign:Dt,AST_SymbolFunarg:pt,AST_SymbolImport:bt,AST_SymbolImportForeign:Et,AST_SymbolLambda:gt,AST_SymbolLet:ft,AST_SymbolMethod:ht,AST_SymbolRef:St,AST_SymbolVar:ct,AST_TemplateSegment:ae,AST_TemplateString:oe,AST_This:Ct,AST_Throw:fe,AST_Token:O,AST_Toplevel:Q,AST_True:Ht,AST_Try:we,AST_Unary:ze,AST_UnaryPostfix:Ve,AST_UnaryPrefix:He,AST_Undefined:Lt,AST_Var:xe,AST_VarDef:Te,AST_While:q,AST_With:J,AST_Yield:ge,TreeTransformer:TreeTransformer,TreeWalker:TreeWalker,walk:walk,walk_abort:Vt,walk_body:walk_body,walk_parent:walk_parent,_INLINE:qt,_NOINLINE:Wt,_PURE:Gt});function def_transform(e,t){e.DEFMETHOD("transform",function(e,n){let r=undefined;e.push(this);if(e.before)r=e.before(this,t,n);if(r===undefined){r=this;t(r,e);if(e.after){const t=e.after(r,n);if(t!==undefined)r=t}}e.pop();return r})}function do_list(e,t){return r(e,function(e){return e.transform(t,true)})}def_transform(F,noop);def_transform(z,function(e,t){e.label=e.label.transform(t);e.body=e.body.transform(t)});def_transform(N,function(e,t){e.body=e.body.transform(t)});def_transform(L,function(e,t){e.body=do_list(e.body,t)});def_transform(G,function(e,t){e.body=e.body.transform(t);e.condition=e.condition.transform(t)});def_transform(q,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t)});def_transform(W,function(e,t){if(e.init)e.init=e.init.transform(t);if(e.condition)e.condition=e.condition.transform(t);if(e.step)e.step=e.step.transform(t);e.body=e.body.transform(t)});def_transform(K,function(e,t){e.init=e.init.transform(t);e.object=e.object.transform(t);e.body=e.body.transform(t)});def_transform(J,function(e,t){e.expression=e.expression.transform(t);e.body=e.body.transform(t)});def_transform(ue,function(e,t){if(e.value)e.value=e.value.transform(t)});def_transform(pe,function(e,t){if(e.label)e.label=e.label.transform(t)});def_transform(ye,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t);if(e.alternative)e.alternative=e.alternative.transform(t)});def_transform(ve,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(Ee,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(we,function(e,t){e.body=do_list(e.body,t);if(e.bcatch)e.bcatch=e.bcatch.transform(t);if(e.bfinally)e.bfinally=e.bfinally.transform(t)});def_transform(Se,function(e,t){if(e.argname)e.argname=e.argname.transform(t);e.body=do_list(e.body,t)});def_transform(De,function(e,t){e.definitions=do_list(e.definitions,t)});def_transform(Te,function(e,t){e.name=e.name.transform(t);if(e.value)e.value=e.value.transform(t)});def_transform(ie,function(e,t){e.names=do_list(e.names,t)});def_transform($,function(e,t){if(e.name)e.name=e.name.transform(t);e.argnames=do_list(e.argnames,t);if(e.body instanceof F){e.body=e.body.transform(t)}else{e.body=do_list(e.body,t)}});def_transform(Re,function(e,t){e.expression=e.expression.transform(t);e.args=do_list(e.args,t)});def_transform(Ne,function(e,t){const n=do_list(e.expressions,t);e.expressions=n.length?n:[new Ot({value:0})]});def_transform(Be,function(e,t){e.expression=e.expression.transform(t)});def_transform(je,function(e,t){e.expression=e.expression.transform(t);e.property=e.property.transform(t)});def_transform(ge,function(e,t){if(e.expression)e.expression=e.expression.transform(t)});def_transform(me,function(e,t){e.expression=e.expression.transform(t)});def_transform(ze,function(e,t){e.expression=e.expression.transform(t)});def_transform(Ge,function(e,t){e.left=e.left.transform(t);e.right=e.right.transform(t)});def_transform(qe,function(e,t){e.condition=e.condition.transform(t);e.consequent=e.consequent.transform(t);e.alternative=e.alternative.transform(t)});def_transform(Xe,function(e,t){e.elements=do_list(e.elements,t)});def_transform(Je,function(e,t){e.properties=do_list(e.properties,t)});def_transform(Ye,function(e,t){if(e.key instanceof F){e.key=e.key.transform(t)}if(e.value)e.value=e.value.transform(t)});def_transform(tt,function(e,t){if(e.name)e.name=e.name.transform(t);if(e.extends)e.extends=e.extends.transform(t);e.properties=do_list(e.properties,t)});def_transform(Z,function(e,t){e.expression=e.expression.transform(t)});def_transform(Me,function(e,t){e.foreign_name=e.foreign_name.transform(t);e.name=e.name.transform(t)});def_transform(Oe,function(e,t){if(e.imported_name)e.imported_name=e.imported_name.transform(t);if(e.imported_names)do_list(e.imported_names,t);e.module_name=e.module_name.transform(t)});def_transform(Ie,function(e,t){if(e.exported_definition)e.exported_definition=e.exported_definition.transform(t);if(e.exported_value)e.exported_value=e.exported_value.transform(t);if(e.exported_names)do_list(e.exported_names,t);if(e.module_name)e.module_name=e.module_name.transform(t)});def_transform(oe,function(e,t){e.segments=do_list(e.segments,t)});def_transform(se,function(e,t){e.prefix=e.prefix.transform(t);e.template_string=e.template_string.transform(t)});(function(){var e=function(e){var t=true;for(var n=0;n<e.length;n++){if(t&&e[n]instanceof I&&e[n].body instanceof Mt){e[n]=new P({start:e[n].start,end:e[n].end,value:e[n].body.value})}else if(t&&!(e[n]instanceof I&&e[n].body instanceof Mt)){t=false}}return e};var t={Program:function(t){return new Q({start:my_start_token(t),end:my_end_token(t),body:e(t.body.map(from_moz))})},ArrayPattern:function(e){return new ie({start:my_start_token(e),end:my_end_token(e),names:e.elements.map(function(e){if(e===null){return new Bt}return from_moz(e)}),is_array:true})},ObjectPattern:function(e){return new ie({start:my_start_token(e),end:my_end_token(e),names:e.properties.map(from_moz),is_array:false})},AssignmentPattern:function(e){return new Ke({start:my_start_token(e),end:my_end_token(e),left:from_moz(e.left),operator:"=",right:from_moz(e.right)})},SpreadElement:function(e){return new Z({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.argument)})},RestElement:function(e){return new Z({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.argument)})},TemplateElement:function(e){return new ae({start:my_start_token(e),end:my_end_token(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){var t=[];for(var n=0;n<e.quasis.length;n++){t.push(from_moz(e.quasis[n]));if(e.expressions[n]){t.push(from_moz(e.expressions[n]))}}return new oe({start:my_start_token(e),end:my_end_token(e),segments:t})},TaggedTemplateExpression:function(e){return new se({start:my_start_token(e),end:my_end_token(e),template_string:from_moz(e.quasi),prefix:from_moz(e.tag)})},FunctionDeclaration:function(t){return new re({start:my_start_token(t),end:my_end_token(t),name:from_moz(t.id),argnames:t.params.map(from_moz),is_generator:t.generator,async:t.async,body:e(from_moz(t.body).body)})},FunctionExpression:function(t){return new te({start:my_start_token(t),end:my_end_token(t),name:from_moz(t.id),argnames:t.params.map(from_moz),is_generator:t.generator,async:t.async,body:e(from_moz(t.body).body)})},ArrowFunctionExpression:function(e){const t=e.body.type==="BlockStatement"?from_moz(e.body).body:[make_node(le,{},{value:from_moz(e.body)})];return new ne({start:my_start_token(e),end:my_end_token(e),argnames:e.params.map(from_moz),body:t,async:e.async})},ExpressionStatement:function(e){return new N({start:my_start_token(e),end:my_end_token(e),body:from_moz(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new we({start:my_start_token(e),end:my_end_token(e),body:from_moz(e.block).body,bcatch:from_moz(t[0]),bfinally:e.finalizer?new ke(from_moz(e.finalizer)):null})},Property:function(e){var t=e.key;var n={start:my_start_token(t||e.value),end:my_end_token(e.value),key:t.type=="Identifier"?t.name:t.value,value:from_moz(e.value)};if(e.computed){n.key=from_moz(e.key)}if(e.method){n.is_generator=e.value.generator;n.async=e.value.async;if(!e.computed){n.key=new ht({name:n.key})}else{n.key=from_moz(e.key)}return new et(n)}if(e.kind=="init"){if(t.type!="Identifier"&&t.type!="Literal"){n.key=from_moz(t)}return new Qe(n)}if(typeof n.key==="string"||typeof n.key==="number"){n.key=new ht({name:n.key})}n.value=new ee(n.value);if(e.kind=="get")return new $e(n);if(e.kind=="set")return new Ze(n);if(e.kind=="method"){n.async=e.value.async;n.is_generator=e.value.generator;n.quote=e.computed?'"':null;return new et(n)}},MethodDefinition:function(e){var t={start:my_start_token(e),end:my_end_token(e),key:e.computed?from_moz(e.key):new ht({name:e.key.name||e.key.value}),value:from_moz(e.value),static:e.static};if(e.kind=="get"){return new $e(t)}if(e.kind=="set"){return new Ze(t)}t.is_generator=e.value.generator;t.async=e.value.async;return new et(t)},FieldDefinition:function(e){let t;if(e.computed){t=from_moz(e.key)}else{if(e.key.type!=="Identifier")throw new Error("Non-Identifier key in FieldDefinition");t=from_moz(e.key)}return new nt({start:my_start_token(e),end:my_end_token(e),key:t,value:from_moz(e.value),static:e.static})},ArrayExpression:function(e){return new Xe({start:my_start_token(e),end:my_end_token(e),elements:e.elements.map(function(e){return e===null?new Bt:from_moz(e)})})},ObjectExpression:function(e){return new Je({start:my_start_token(e),end:my_end_token(e),properties:e.properties.map(function(e){if(e.type==="SpreadElement"){return from_moz(e)}e.type="Property";return from_moz(e)})})},SequenceExpression:function(e){return new Ne({start:my_start_token(e),end:my_end_token(e),expressions:e.expressions.map(from_moz)})},MemberExpression:function(e){return new(e.computed?je:Be)({start:my_start_token(e),end:my_end_token(e),property:e.computed?from_moz(e.property):e.property.name,expression:from_moz(e.object),optional:e.optional||false})},ChainExpression:function(e){return new Ue({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.expression)})},SwitchCase:function(e){return new(e.test?Ee:be)({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.test),body:e.consequent.map(from_moz)})},VariableDeclaration:function(e){return new(e.kind==="const"?Ae:e.kind==="let"?Ce:xe)({start:my_start_token(e),end:my_end_token(e),definitions:e.declarations.map(from_moz)})},ImportDeclaration:function(e){var t=null;var n=null;e.specifiers.forEach(function(e){if(e.type==="ImportSpecifier"){if(!n){n=[]}n.push(new Me({start:my_start_token(e),end:my_end_token(e),foreign_name:from_moz(e.imported),name:from_moz(e.local)}))}else if(e.type==="ImportDefaultSpecifier"){t=from_moz(e.local)}else if(e.type==="ImportNamespaceSpecifier"){if(!n){n=[]}n.push(new Me({start:my_start_token(e),end:my_end_token(e),foreign_name:new Et({name:"*"}),name:from_moz(e.local)}))}});return new Oe({start:my_start_token(e),end:my_end_token(e),imported_name:t,imported_names:n,module_name:from_moz(e.source)})},ExportAllDeclaration:function(e){return new Ie({start:my_start_token(e),end:my_end_token(e),exported_names:[new Me({name:new Dt({name:"*"}),foreign_name:new Dt({name:"*"})})],module_name:from_moz(e.source)})},ExportNamedDeclaration:function(e){return new Ie({start:my_start_token(e),end:my_end_token(e),exported_definition:from_moz(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new Me({foreign_name:from_moz(e.exported),name:from_moz(e.local)})}):null,module_name:from_moz(e.source)})},ExportDefaultDeclaration:function(e){return new Ie({start:my_start_token(e),end:my_end_token(e),exported_value:from_moz(e.declaration),is_default:true})},Literal:function(e){var t=e.value,n={start:my_start_token(e),end:my_end_token(e)};var r=e.regex;if(r&&r.pattern){n.value={source:r.pattern,flags:r.flags};return new It(n)}else if(r){const r=e.raw||t;const i=r.match(/^\/(.*)\/(\w*)$/);if(!i)throw new Error("Invalid regex source "+r);const[s,o,a]=i;n.value={source:o,flags:a};return new It(n)}if(t===null)return new Pt(n);switch(typeof t){case"string":n.value=t;return new Mt(n);case"number":n.value=t;return new Ot(n);case"boolean":return new(t?Ht:zt)(n)}},MetaProperty:function(e){if(e.meta.name==="new"&&e.property.name==="target"){return new ot({start:my_start_token(e),end:my_end_token(e)})}else if(e.meta.name==="import"&&e.property.name==="meta"){return new Fe({start:my_start_token(e),end:my_end_token(e)})}},Identifier:function(e){var t=n[n.length-2];return new(t.type=="LabeledStatement"?wt:t.type=="VariableDeclarator"&&t.id===e?t.kind=="const"?lt:t.kind=="let"?ft:ct:/Import.*Specifier/.test(t.type)?t.local===e?bt:Et:t.type=="ExportSpecifier"?t.local===e?kt:Dt:t.type=="FunctionExpression"?t.id===e?gt:pt:t.type=="FunctionDeclaration"?t.id===e?dt:pt:t.type=="ArrowFunctionExpression"?t.params.includes(e)?pt:St:t.type=="ClassExpression"?t.id===e?vt:St:t.type=="Property"?t.key===e&&t.computed||t.value===e?St:ht:t.type=="FieldDefinition"?t.key===e&&t.computed||t.value===e?St:mt:t.type=="ClassDeclaration"?t.id===e?yt:St:t.type=="MethodDefinition"?t.computed?St:ht:t.type=="CatchClause"?_t:t.type=="BreakStatement"||t.type=="ContinueStatement"?xt:St)({start:my_start_token(e),end:my_end_token(e),name:e.name})},BigIntLiteral(e){return new Ft({start:my_start_token(e),end:my_end_token(e),value:e.value})}};t.UpdateExpression=t.UnaryExpression=function To_Moz_Unary(e){var t="prefix"in e?e.prefix:e.type=="UnaryExpression"?true:false;return new(t?He:Ve)({start:my_start_token(e),end:my_end_token(e),operator:e.operator,expression:from_moz(e.argument)})};t.ClassDeclaration=t.ClassExpression=function From_Moz_Class(e){return new(e.type==="ClassDeclaration"?rt:it)({start:my_start_token(e),end:my_end_token(e),name:from_moz(e.id),extends:from_moz(e.superClass),properties:e.body.body.map(from_moz)})};map("EmptyStatement",j);map("BlockStatement",B,"body@body");map("IfStatement",ye,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",z,"label>label, body>body");map("BreakStatement",de,"label>label");map("ContinueStatement",he,"label>label");map("WithStatement",J,"object>expression, body>body");map("SwitchStatement",ve,"discriminant>expression, cases@body");map("ReturnStatement",le,"argument>value");map("ThrowStatement",fe,"argument>value");map("WhileStatement",q,"test>condition, body>body");map("DoWhileStatement",G,"test>condition, body>body");map("ForStatement",W,"init>init, test>condition, update>step, body>body");map("ForInStatement",K,"left>init, right>object, body>body");map("ForOfStatement",X,"left>init, right>object, body>body, await=await");map("AwaitExpression",me,"argument>expression");map("YieldExpression",ge,"argument>expression, delegate=is_star");map("DebuggerStatement",R);map("VariableDeclarator",Te,"id>name, init>value");map("CatchClause",Se,"param>argname, body%body");map("ThisExpression",Ct);map("Super",At);map("BinaryExpression",Ge,"operator=operator, left>left, right>right");map("LogicalExpression",Ge,"operator=operator, left>left, right>right");map("AssignmentExpression",We,"operator=operator, left>left, right>right");map("ConditionalExpression",qe,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",Pe,"callee>expression, arguments@args");map("CallExpression",Re,"callee>expression, optional=optional, arguments@args");def_to_moz(Q,function To_Moz_Program(e){return to_moz_scope("Program",e)});def_to_moz(Z,function To_Moz_Spread(e){return{type:to_moz_in_destructuring()?"RestElement":"SpreadElement",argument:to_moz(e.expression)}});def_to_moz(se,function To_Moz_TaggedTemplateExpression(e){return{type:"TaggedTemplateExpression",tag:to_moz(e.prefix),quasi:to_moz(e.template_string)}});def_to_moz(oe,function To_Moz_TemplateLiteral(e){var t=[];var n=[];for(var r=0;r<e.segments.length;r++){if(r%2!==0){n.push(to_moz(e.segments[r]))}else{t.push({type:"TemplateElement",value:{raw:e.segments[r].raw,cooked:e.segments[r].value},tail:r===e.segments.length-1})}}return{type:"TemplateLiteral",quasis:t,expressions:n}});def_to_moz(re,function To_Moz_FunctionDeclaration(e){return{type:"FunctionDeclaration",id:to_moz(e.name),params:e.argnames.map(to_moz),generator:e.is_generator,async:e.async,body:to_moz_scope("BlockStatement",e)}});def_to_moz(te,function To_Moz_FunctionExpression(e,t){var n=t.is_generator!==undefined?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:to_moz(e.name),params:e.argnames.map(to_moz),generator:n,async:e.async,body:to_moz_scope("BlockStatement",e)}});def_to_moz(ne,function To_Moz_ArrowFunctionExpression(e){var t={type:"BlockStatement",body:e.body.map(to_moz)};return{type:"ArrowFunctionExpression",params:e.argnames.map(to_moz),async:e.async,body:t}});def_to_moz(ie,function To_Moz_ObjectPattern(e){if(e.is_array){return{type:"ArrayPattern",elements:e.names.map(to_moz)}}return{type:"ObjectPattern",properties:e.names.map(to_moz)}});def_to_moz(P,function To_Moz_Directive(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string()},directive:e.value}});def_to_moz(N,function To_Moz_ExpressionStatement(e){return{type:"ExpressionStatement",expression:to_moz(e.body)}});def_to_moz(_e,function To_Moz_SwitchCase(e){return{type:"SwitchCase",test:to_moz(e.expression),consequent:e.body.map(to_moz)}});def_to_moz(we,function To_Moz_TryStatement(e){return{type:"TryStatement",block:to_moz_block(e),handler:to_moz(e.bcatch),guardedHandlers:[],finalizer:to_moz(e.bfinally)}});def_to_moz(Se,function To_Moz_CatchClause(e){return{type:"CatchClause",param:to_moz(e.argname),guard:null,body:to_moz_block(e)}});def_to_moz(De,function To_Moz_VariableDeclaration(e){return{type:"VariableDeclaration",kind:e instanceof Ae?"const":e instanceof Ce?"let":"var",declarations:e.definitions.map(to_moz)}});def_to_moz(Ie,function To_Moz_ExportDeclaration(e){if(e.exported_names){if(e.exported_names[0].name.name==="*"){return{type:"ExportAllDeclaration",source:to_moz(e.module_name)}}return{type:"ExportNamedDeclaration",specifiers:e.exported_names.map(function(e){return{type:"ExportSpecifier",exported:to_moz(e.foreign_name),local:to_moz(e.name)}}),declaration:to_moz(e.exported_definition),source:to_moz(e.module_name)}}return{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:to_moz(e.exported_value||e.exported_definition)}});def_to_moz(Oe,function To_Moz_ImportDeclaration(e){var t=[];if(e.imported_name){t.push({type:"ImportDefaultSpecifier",local:to_moz(e.imported_name)})}if(e.imported_names&&e.imported_names[0].foreign_name.name==="*"){t.push({type:"ImportNamespaceSpecifier",local:to_moz(e.imported_names[0].name)})}else if(e.imported_names){e.imported_names.forEach(function(e){t.push({type:"ImportSpecifier",local:to_moz(e.name),imported:to_moz(e.foreign_name)})})}return{type:"ImportDeclaration",specifiers:t,source:to_moz(e.module_name)}});def_to_moz(Fe,function To_Moz_MetaProperty(){return{type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}});def_to_moz(Ne,function To_Moz_SequenceExpression(e){return{type:"SequenceExpression",expressions:e.expressions.map(to_moz)}});def_to_moz(Le,function To_Moz_MemberExpression(e){var t=e instanceof je;return{type:"MemberExpression",object:to_moz(e.expression),computed:t,property:t?to_moz(e.property):{type:"Identifier",name:e.property},optional:e.optional}});def_to_moz(Ue,function To_Moz_ChainExpression(e){return{type:"ChainExpression",expression:to_moz(e.expression)}});def_to_moz(ze,function To_Moz_Unary(e){return{type:e.operator=="++"||e.operator=="--"?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof He,argument:to_moz(e.expression)}});def_to_moz(Ge,function To_Moz_BinaryExpression(e){if(e.operator=="="&&to_moz_in_destructuring()){return{type:"AssignmentPattern",left:to_moz(e.left),right:to_moz(e.right)}}const t=e.operator=="&&"||e.operator=="||"||e.operator==="??"?"LogicalExpression":"BinaryExpression";return{type:t,left:to_moz(e.left),operator:e.operator,right:to_moz(e.right)}});def_to_moz(Xe,function To_Moz_ArrayExpression(e){return{type:"ArrayExpression",elements:e.elements.map(to_moz)}});def_to_moz(Je,function To_Moz_ObjectExpression(e){return{type:"ObjectExpression",properties:e.properties.map(to_moz)}});def_to_moz(Ye,function To_Moz_Property(e,t){var n=e.key instanceof F?to_moz(e.key):{type:"Identifier",value:e.key};if(typeof e.key==="number"){n={type:"Literal",value:Number(e.key)}}if(typeof e.key==="string"){n={type:"Identifier",name:e.key}}var r;var i=typeof e.key==="string"||typeof e.key==="number";var s=i?false:!(e.key instanceof st)||e.key instanceof St;if(e instanceof Qe){r="init";s=!i}else if(e instanceof $e){r="get"}else if(e instanceof Ze){r="set"}if(e instanceof nt){return{type:"FieldDefinition",computed:s,key:n,value:to_moz(e.value),static:e.static}}if(t instanceof tt){return{type:"MethodDefinition",computed:s,kind:r,static:e.static,key:to_moz(e.key),value:to_moz(e.value)}}return{type:"Property",computed:s,kind:r,key:n,value:to_moz(e.value)}});def_to_moz(et,function To_Moz_MethodDefinition(e,t){if(t instanceof Je){return{type:"Property",computed:!(e.key instanceof st)||e.key instanceof St,kind:"init",method:true,shorthand:false,key:to_moz(e.key),value:to_moz(e.value)}}return{type:"MethodDefinition",computed:!(e.key instanceof st)||e.key instanceof St,kind:e.key==="constructor"?"constructor":"method",static:e.static,key:to_moz(e.key),value:to_moz(e.value)}});def_to_moz(tt,function To_Moz_Class(e){var t=e instanceof it?"ClassExpression":"ClassDeclaration";return{type:t,superClass:to_moz(e.extends),id:e.name?to_moz(e.name):null,body:{type:"ClassBody",body:e.properties.map(to_moz)}}});def_to_moz(ot,function To_Moz_MetaProperty(){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}});def_to_moz(st,function To_Moz_Identifier(e,t){if(e instanceof ht&&t.quote){return{type:"Literal",value:e.name}}var n=e.definition();return{type:"Identifier",name:n?n.mangled_name||n.name:e.name}});def_to_moz(It,function To_Moz_RegExpLiteral(e){const t=e.value.source;const n=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string(),regex:{pattern:t,flags:n}}});def_to_moz(Tt,function To_Moz_Literal(e){var t=e.value;if(typeof t==="number"&&(t<0||t===0&&1/t<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-t,raw:e.start.raw}}}return{type:"Literal",value:t,raw:e.start.raw}});def_to_moz(Rt,function To_Moz_Atom(e){return{type:"Identifier",name:String(e.value)}});def_to_moz(Ft,e=>({type:"BigIntLiteral",value:e.value}));Ut.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast);Pt.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast);Bt.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});L.DEFMETHOD("to_mozilla_ast",B.prototype.to_mozilla_ast);$.DEFMETHOD("to_mozilla_ast",te.prototype.to_mozilla_ast);function raw_token(e){if(e.type=="Literal"){return e.raw!=null?e.raw:e.value+""}}function my_start_token(e){var t=e.loc,n=t&&t.start;var r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[0]:e.start,raw:raw_token(e)})}function my_end_token(e){var t=e.loc,n=t&&t.end;var r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[1]:e.end,raw:raw_token(e)})}function map(e,n,r){var i="function From_Moz_"+e+"(M){\n";i+="return new U2."+n.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var s="function To_Moz_"+e+"(M){\n";s+="return {\n"+"type: "+JSON.stringify(e);if(r)r.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],o=t[3];i+=",\n"+o+": ";s+=",\n"+n+": ";switch(r){case"@":i+="M."+n+".map(from_moz)";s+="M."+o+".map(to_moz)";break;case">":i+="from_moz(M."+n+")";s+="to_moz(M."+o+")";break;case"=":i+="M."+n;s+="M."+o;break;case"%":i+="from_moz(M."+n+").body";s+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}});i+="\n})\n}";s+="\n}\n}";i=new Function("U2","my_start_token","my_end_token","from_moz","return("+i+")")(Kt,my_start_token,my_end_token,from_moz);s=new Function("to_moz","to_moz_block","to_moz_scope","return("+s+")")(to_moz,to_moz_block,to_moz_scope);t[e]=i;def_to_moz(n,s)}var n=null;function from_moz(e){n.push(e);var r=e!=null?t[e.type](e):null;n.pop();return r}F.from_mozilla_ast=function(e){var t=n;n=[];var r=from_moz(e);n=t;return r};function set_moz_loc(e,t){var n=e.start;var r=e.end;if(!(n&&r)){return t}if(n.pos!=null&&r.endpos!=null){t.range=[n.pos,r.endpos]}if(n.line){t.loc={start:{line:n.line,column:n.col},end:r.endline?{line:r.endline,column:r.endcol}:null};if(n.file){t.loc.source=n.file}}return t}function def_to_moz(e,t){e.DEFMETHOD("to_mozilla_ast",function(e){return set_moz_loc(this,t(this,e))})}var r=null;function to_moz(e){if(r===null){r=[]}r.push(e);var t=e!=null?e.to_mozilla_ast(r[r.length-2]):null;r.pop();if(r.length===0){r=null}return t}function to_moz_in_destructuring(){var e=r.length;while(e--){if(r[e]instanceof ie){return true}}return false}function to_moz_block(e){return{type:"BlockStatement",body:e.body.map(to_moz)}}function to_moz_scope(e,t){var n=t.body.map(to_moz);if(t.body[0]instanceof N&&t.body[0].body instanceof Mt){n.unshift(to_moz(new j(t.body[0])))}return{type:e,body:n}}})();function first_in_statement(e){let t=e.parent(-1);for(let n=0,r;r=e.parent(n);n++){if(r instanceof I&&r.body===t)return true;if(r instanceof Ne&&r.expressions[0]===t||r.TYPE==="Call"&&r.expression===t||r instanceof se&&r.prefix===t||r instanceof Be&&r.expression===t||r instanceof je&&r.expression===t||r instanceof qe&&r.condition===t||r instanceof Ge&&r.left===t||r instanceof Ve&&r.expression===t){t=r}else{return false}}}function left_is_object(e){if(e instanceof Je)return true;if(e instanceof Ne)return left_is_object(e.expressions[0]);if(e.TYPE==="Call")return left_is_object(e.expression);if(e instanceof se)return left_is_object(e.prefix);if(e instanceof Be||e instanceof je)return left_is_object(e.expression);if(e instanceof qe)return left_is_object(e.condition);if(e instanceof Ge)return left_is_object(e.left);if(e instanceof Ve)return left_is_object(e.expression);return false}const Xt=/^$|[;{][\s\n]*$/;const Jt=10;const Yt=32;const Qt=/[@#]__(PURE|INLINE|NOINLINE)__/g;function is_some_comments(e){return(e.type==="comment2"||e.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function OutputStream(e){var t=!e;e=defaults(e,{ascii_only:false,beautify:false,braces:false,comments:"some",ecma:5,ie8:false,indent_level:4,indent_start:0,inline_script:true,keep_numbers:false,keep_quoted_props:false,max_line_len:false,preamble:null,preserve_annotations:false,quote_keys:false,quote_style:0,safari10:false,semicolons:true,shebang:true,shorthand:undefined,source_map:null,webkit:false,width:80,wrap_iife:false,wrap_func_args:true},true);if(e.shorthand===undefined)e.shorthand=e.ecma>5;var n=return_false;if(e.comments){let t=e.comments;if(typeof e.comments==="string"&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}if(t instanceof RegExp){n=function(e){return e.type!="comment5"&&t.test(e.value)}}else if(typeof t==="function"){n=function(e){return e.type!="comment5"&&t(this,e)}}else if(t==="some"){n=is_some_comments}else{n=return_true}}var i=0;var s=0;var o=1;var a=0;var c="";let u=new Set;var l=e.ascii_only?function(t,n){if(e.ecma>=2015){t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var t=get_full_char_code(e,0).toString(16);return"\\u{"+t+"}"})}return t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){while(t.length<2)t="0"+t;return"\\x"+t}else{while(t.length<4)t="0"+t;return"\\u"+t}})}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(e,t){if(t){return"\\u"+t.charCodeAt(0).toString(16)}return e})};function make_string(t,n){var r=0,i=0;t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n,s){switch(n){case'"':++r;return'"';case"'":++i;return"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(get_full_char(t,s+1))?"\\x00":"\\0"}return n});function quote_single(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+t.replace(/\x22/g,'\\"')+'"'}function quote_template(){return"`"+t.replace(/`/g,"\\`")+"`"}t=l(t);if(n==="`")return quote_template();switch(e.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return n=="'"?quote_single():quote_double();default:return r>i?quote_single():quote_double()}}function encode_string(t,n){var r=make_string(t,n);if(e.inline_script){r=r.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2");r=r.replace(/\x3c!--/g,"\\x3c!--");r=r.replace(/--\x3e/g,"--\\x3e")}return r}function make_name(e){e=e.toString();e=l(e,true);return e}function make_indent(t){return" ".repeat(e.indent_start+i-t*e.indent_level)}var f=false;var p=false;var d=false;var h=0;var m=false;var g=false;var y=-1;var v="";var _,b,E=e.source_map&&[];var w=E?function(){E.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,!t.name&&t.token.type=="name"?t.token.value:t.name)}catch(e){}});E=[]}:noop;var S=e.max_line_len?function(){if(s>e.max_line_len){if(h){var t=c.slice(0,h);var n=c.slice(h);if(E){var r=n.length-s;E.forEach(function(e){e.line++;e.col+=r})}c=t+"\n"+n;o++;a++;s=n.length}}if(h){h=0;w()}}:noop;var k=makePredicate("( [ + * / - , . `");function print(t){t=String(t);var n=get_full_char(t,0);if(m&&n){m=false;if(n!=="\n"){print("\n");C()}}if(g&&n){g=false;if(!/[\s;})]/.test(n)){x()}}y=-1;var r=v.charAt(v.length-1);if(d){d=false;if(r===":"&&n==="}"||(!n||!";}".includes(n))&&r!==";"){if(e.semicolons||k.has(n)){c+=";";s++;a++}else{S();if(s>0){c+="\n";a++;o++;s=0}if(/^\s+$/.test(t)){d=true}}if(!e.beautify)p=false}}if(p){if(is_identifier_char(r)&&(is_identifier_char(n)||n=="\\")||n=="/"&&n==r||(n=="+"||n=="-")&&n==v){c+=" ";s++;a++}p=false}if(_){E.push({token:_,name:b,line:o,col:s});_=false;if(!h)w()}c+=t;f=t[t.length-1]=="(";a+=t.length;var i=t.split(/\r?\n/),u=i.length-1;o+=u;s+=i[0].length;if(u>0){S();s=i[u].length}v=t}var D=function(){print("*")};var x=e.beautify?function(){print(" ")}:function(){p=true};var C=e.beautify?function(t){if(e.beautify){print(make_indent(t?.5:0))}}:noop;var A=e.beautify?function(e,t){if(e===true)e=next_indent();var n=i;i=e;var r=t();i=n;return r}:function(e,t){return t()};var T=e.beautify?function(){if(y<0)return print("\n");if(c[y]!="\n"){c=c.slice(0,y)+"\n"+c.slice(y);a++;o++}y++}:e.max_line_len?function(){S();h=c.length}:noop;var M=e.beautify?function(){print(";")}:function(){d=true};function force_semicolon(){d=false;print(";")}function next_indent(){return i+e.indent_level}function with_block(e){var t;print("{");T();A(next_indent(),function(){t=e()});C();print("}");return t}function with_parens(e){print("(");var t=e();print(")");return t}function with_square(e){print("[");var t=e();print("]");return t}function comma(){print(",");x()}function colon(){print(":");x()}var O=E?function(e,t){_=e;b=t}:noop;function get(){if(h){S()}return c}function has_nlb(){let e=c.length-1;while(e>=0){const t=c.charCodeAt(e);if(t===Jt){return true}if(t!==Yt){return false}e--}return true}function filter_comment(t){if(!e.preserve_annotations){t=t.replace(Qt," ")}if(/^\s*$/.test(t)){return""}return t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}function prepend_comments(t){var r=this;var i=t.start;if(!i)return;var s=r.printed_comments;const o=t instanceof ue&&t.value;if(i.comments_before&&s.has(i.comments_before)){if(o){i.comments_before=[]}else{return}}var c=i.comments_before;if(!c){c=i.comments_before=[]}s.add(c);if(o){var u=new TreeWalker(function(e){var t=u.parent();if(t instanceof ue||t instanceof Ge&&t.left===e||t.TYPE=="Call"&&t.expression===e||t instanceof qe&&t.condition===e||t instanceof Be&&t.expression===e||t instanceof Ne&&t.expressions[0]===e||t instanceof je&&t.expression===e||t instanceof Ve){if(!e.start)return;var n=e.start.comments_before;if(n&&!s.has(n)){s.add(n);c=c.concat(n)}}else{return true}});u.push(t);t.value.walk(u)}if(a==0){if(c.length>0&&e.shebang&&c[0].type==="comment5"&&!s.has(c[0])){print("#!"+c.shift().value+"\n");C()}var l=e.preamble;if(l){print(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}c=c.filter(n,t).filter(e=>!s.has(e));if(c.length==0)return;var f=has_nlb();c.forEach(function(e,t){s.add(e);if(!f){if(e.nlb){print("\n");C();f=true}else if(t>0){x()}}if(/comment[134]/.test(e.type)){var n=filter_comment(e.value);if(n){print("//"+n+"\n");C()}f=true}else if(e.type=="comment2"){var n=filter_comment(e.value);if(n){print("/*"+n+"*/")}f=false}});if(!f){if(i.nlb){print("\n");C()}else{x()}}}function append_comments(e,t){var r=this;var i=e.end;if(!i)return;var s=r.printed_comments;var o=i[t?"comments_before":"comments_after"];if(!o||s.has(o))return;if(!(e instanceof I||o.every(e=>!/comment[134]/.test(e.type))))return;s.add(o);var a=c.length;o.filter(n,e).forEach(function(e,n){if(s.has(e))return;s.add(e);g=false;if(m){print("\n");C();m=false}else if(e.nlb&&(n>0||!has_nlb())){print("\n");C()}else if(n>0||!t){x()}if(/comment[134]/.test(e.type)){const t=filter_comment(e.value);if(t){print("//"+t)}m=true}else if(e.type=="comment2"){const t=filter_comment(e.value);if(t){print("/*"+t+"*/")}g=true}});if(c.length>a)y=a}var F=[];return{get:get,toString:get,indent:C,in_directive:false,use_asm:null,active_scope:null,indentation:function(){return i},current_width:function(){return s-i},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return f},newline:T,print:print,star:D,space:x,comma:comma,colon:colon,last:function(){return v},semicolon:M,force_semicolon:force_semicolon,to_utf8:l,print_name:function(e){print(make_name(e))},print_string:function(e,t,n){var r=encode_string(e,t);if(n===true&&!r.includes("\\")){if(!Xt.test(c)){force_semicolon()}force_semicolon()}print(r)},print_template_string_chars:function(e){var t=encode_string(e,"`").replace(/\${/g,"\\${");return print(t.substr(1,t.length-2))},encode_string:encode_string,next_indent:next_indent,with_indent:A,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:O,option:function(t){return e[t]},printed_comments:u,prepend_comments:t?noop:prepend_comments,append_comments:t||n===return_false?noop:append_comments,line:function(){return o},col:function(){return s},pos:function(){return a},push_node:function(e){F.push(e)},pop_node:function(){return F.pop()},parent:function(e){return F[F.length-2-(e||0)]}}}(function(){function DEFPRINT(e,t){e.DEFMETHOD("_codegen",t)}F.DEFMETHOD("print",function(e,t){var n=this,r=n._codegen;if(n instanceof Y){e.active_scope=n}else if(!e.use_asm&&n instanceof P&&n.value=="use asm"){e.use_asm=e.active_scope}function doit(){e.prepend_comments(n);n.add_source_map(e);r(n,e);e.append_comments(n)}e.push_node(n);if(t||n.needs_parens(e)){e.with_parens(doit)}else{doit()}e.pop_node();if(n===e.use_asm){e.use_asm=null}});F.DEFMETHOD("_print",F.prototype.print);F.DEFMETHOD("print_to_string",function(e){var t=OutputStream(e);this.print(t);return t.get()});function PARENS(e,t){if(Array.isArray(e)){e.forEach(function(e){PARENS(e,t)})}else{e.DEFMETHOD("needs_parens",t)}}PARENS(F,return_false);PARENS(te,function(e){if(!e.has_parens()&&first_in_statement(e)){return true}if(e.option("webkit")){var t=e.parent();if(t instanceof Le&&t.expression===this){return true}}if(e.option("wrap_iife")){var t=e.parent();if(t instanceof Re&&t.expression===this){return true}}if(e.option("wrap_func_args")){var t=e.parent();if(t instanceof Re&&t.args.includes(this)){return true}}return false});PARENS(ne,function(e){var t=e.parent();return t instanceof Le&&t.expression===this});PARENS(Je,function(e){return!e.has_parens()&&first_in_statement(e)});PARENS(it,first_in_statement);PARENS(ze,function(e){var t=e.parent();return t instanceof Le&&t.expression===this||t instanceof Re&&t.expression===this||t instanceof Ge&&t.operator==="**"&&this instanceof He&&t.left===this&&this.operator!=="++"&&this.operator!=="--"});PARENS(me,function(e){var t=e.parent();return t instanceof Le&&t.expression===this||t instanceof Re&&t.expression===this||e.option("safari10")&&t instanceof He});PARENS(Ne,function(e){var t=e.parent();return t instanceof Re||t instanceof ze||t instanceof Ge||t instanceof Te||t instanceof Le||t instanceof Xe||t instanceof Ye||t instanceof qe||t instanceof ne||t instanceof Ke||t instanceof Z||t instanceof X&&this===t.object||t instanceof ge||t instanceof Ie});PARENS(Ge,function(e){var t=e.parent();if(t instanceof Re&&t.expression===this)return true;if(t instanceof ze)return true;if(t instanceof Le&&t.expression===this)return true;if(t instanceof Ge){const e=t.operator;const n=this.operator;if(n==="??"&&(e==="||"||e==="&&")){return true}const r=T[e];const i=T[n];if(r>i||r==i&&(this===t.right||e=="**")){return true}}});PARENS(ge,function(e){var t=e.parent();if(t instanceof Ge&&t.operator!=="=")return true;if(t instanceof Re&&t.expression===this)return true;if(t instanceof qe&&t.condition===this)return true;if(t instanceof ze)return true;if(t instanceof Le&&t.expression===this)return true});PARENS(Le,function(e){var t=e.parent();if(t instanceof Pe&&t.expression===this){return walk(this,e=>{if(e instanceof Y)return true;if(e instanceof Re){return Vt}})}});PARENS(Re,function(e){var t=e.parent(),n;if(t instanceof Pe&&t.expression===this||t instanceof Ie&&t.is_default&&this.expression instanceof te)return true;return this.expression instanceof te&&t instanceof Le&&t.expression===this&&(n=e.parent(1))instanceof We&&n.left===t});PARENS(Pe,function(e){var t=e.parent();if(this.args.length===0&&(t instanceof Le||t instanceof Re&&t.expression===this))return true});PARENS(Ot,function(e){var t=e.parent();if(t instanceof Le&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(make_num(n))){return true}}});PARENS(Ft,function(e){var t=e.parent();if(t instanceof Le&&t.expression===this){var n=this.getValue();if(n.startsWith("-")){return true}}});PARENS([We,qe],function(e){var t=e.parent();if(t instanceof ze)return true;if(t instanceof Ge&&!(t instanceof We))return true;if(t instanceof Re&&t.expression===this)return true;if(t instanceof qe&&t.condition===this)return true;if(t instanceof Le&&t.expression===this)return true;if(this instanceof We&&this.left instanceof ie&&this.left.is_array===false)return true});DEFPRINT(P,function(e,t){t.print_string(e.value,e.quote);t.semicolon()});DEFPRINT(Z,function(e,t){t.print("...");e.expression.print(t)});DEFPRINT(ie,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,r){if(r>0)t.comma();e.print(t);if(r==n-1&&e instanceof Bt)t.comma()});t.print(e.is_array?"]":"}")});DEFPRINT(R,function(e,t){t.print("debugger");t.semicolon()});function display_body(e,t,n,r){var i=e.length-1;n.in_directive=r;e.forEach(function(e,r){if(n.in_directive===true&&!(e instanceof P||e instanceof j||e instanceof N&&e.body instanceof Mt)){n.in_directive=false}if(!(e instanceof j)){n.indent();e.print(n);if(!(r==i&&t)){n.newline();if(t)n.newline()}}if(n.in_directive===true&&e instanceof N&&e.body instanceof Mt){n.in_directive=false}});n.in_directive=false}U.DEFMETHOD("_do_print_body",function(e){force_statement(this.body,e)});DEFPRINT(I,function(e,t){e.body.print(t);t.semicolon()});DEFPRINT(Q,function(e,t){display_body(e.body,true,t,true);t.print("")});DEFPRINT(z,function(e,t){e.label.print(t);t.colon();e.body.print(t)});DEFPRINT(N,function(e,t){e.body.print(t);t.semicolon()});function print_braced_empty(e,t){t.print("{");t.with_indent(t.next_indent(),function(){t.append_comments(e,true)});t.print("}")}function print_braced(e,t,n){if(e.body.length>0){t.with_block(function(){display_body(e.body,false,t,n)})}else print_braced_empty(e,t)}DEFPRINT(B,function(e,t){print_braced(e,t)});DEFPRINT(j,function(e,t){t.semicolon()});DEFPRINT(G,function(e,t){t.print("do");t.space();make_block(e.body,t);t.space();t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.semicolon()});DEFPRINT(q,function(e,t){t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.space();e._do_print_body(t)});DEFPRINT(W,function(e,t){t.print("for");t.space();t.with_parens(function(){if(e.init){if(e.init instanceof De){e.init.print(t)}else{parenthesize_for_noin(e.init,t,true)}t.print(";");t.space()}else{t.print(";")}if(e.condition){e.condition.print(t);t.print(";");t.space()}else{t.print(";")}if(e.step){e.step.print(t)}});t.space();e._do_print_body(t)});DEFPRINT(K,function(e,t){t.print("for");if(e.await){t.space();t.print("await")}t.space();t.with_parens(function(){e.init.print(t);t.space();t.print(e instanceof X?"of":"in");t.space();e.object.print(t)});t.space();e._do_print_body(t)});DEFPRINT(J,function(e,t){t.print("with");t.space();t.with_parens(function(){e.expression.print(t)});t.space();e._do_print_body(t)});$.DEFMETHOD("_do_print",function(e,t){var n=this;if(!t){if(n.async){e.print("async");e.space()}e.print("function");if(n.is_generator){e.star()}if(n.name){e.space()}}if(n.name instanceof st){n.name.print(e)}else if(t&&n.name instanceof F){e.with_square(function(){n.name.print(e)})}e.with_parens(function(){n.argnames.forEach(function(t,n){if(n)e.comma();t.print(e)})});e.space();print_braced(n,e,true)});DEFPRINT($,function(e,t){e._do_print(t)});DEFPRINT(se,function(e,t){var n=e.prefix;var r=n instanceof $||n instanceof Ge||n instanceof qe||n instanceof Ne||n instanceof ze||n instanceof Be&&n.expression instanceof Je;if(r)t.print("(");e.prefix.print(t);if(r)t.print(")");e.template_string.print(t)});DEFPRINT(oe,function(e,t){var n=t.parent()instanceof se;t.print("`");for(var r=0;r<e.segments.length;r++){if(!(e.segments[r]instanceof ae)){t.print("${");e.segments[r].print(t);t.print("}")}else if(n){t.print(e.segments[r].raw)}else{t.print_template_string_chars(e.segments[r].value)}}t.print("`")});ne.DEFMETHOD("_do_print",function(e){var t=this;var n=e.parent();var r=n instanceof Ge&&!(n instanceof We)||n instanceof ze||n instanceof Re&&t===n.expression;if(r){e.print("(")}if(t.async){e.print("async");e.space()}if(t.argnames.length===1&&t.argnames[0]instanceof st){t.argnames[0].print(e)}else{e.with_parens(function(){t.argnames.forEach(function(t,n){if(n)e.comma();t.print(e)})})}e.space();e.print("=>");e.space();const i=t.body[0];if(t.body.length===1&&i instanceof le){const t=i.value;if(!t){e.print("{}")}else if(left_is_object(t)){e.print("(");t.print(e);e.print(")")}else{t.print(e)}}else{print_braced(t,e)}if(r){e.print(")")}});ue.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.value){e.space();const t=this.value.start.comments_before;if(t&&t.length&&!e.printed_comments.has(t)){e.print("(");this.value.print(e);e.print(")")}else{this.value.print(e)}}e.semicolon()});DEFPRINT(le,function(e,t){e._do_print(t,"return")});DEFPRINT(fe,function(e,t){e._do_print(t,"throw")});DEFPRINT(ge,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n);if(e.expression){t.space();e.expression.print(t)}});DEFPRINT(me,function(e,t){t.print("await");t.space();var n=e.expression;var r=!(n instanceof Re||n instanceof St||n instanceof Le||n instanceof ze||n instanceof Tt||n instanceof me||n instanceof Je);if(r)t.print("(");e.expression.print(t);if(r)t.print(")")});pe.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.label){e.space();this.label.print(e)}e.semicolon()});DEFPRINT(de,function(e,t){e._do_print(t,"break")});DEFPRINT(he,function(e,t){e._do_print(t,"continue")});function make_then(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof G)return make_block(n,t);if(!n)return t.force_semicolon();while(true){if(n instanceof ye){if(!n.alternative){make_block(e.body,t);return}n=n.alternative}else if(n instanceof U){n=n.body}else break}force_statement(e.body,t)}DEFPRINT(ye,function(e,t){t.print("if");t.space();t.with_parens(function(){e.condition.print(t)});t.space();if(e.alternative){make_then(e,t);t.space();t.print("else");t.space();if(e.alternative instanceof ye)e.alternative.print(t);else force_statement(e.alternative,t)}else{e._do_print_body(t)}});DEFPRINT(ve,function(e,t){t.print("switch");t.space();t.with_parens(function(){e.expression.print(t)});t.space();var n=e.body.length-1;if(n<0)print_braced_empty(e,t);else t.with_block(function(){e.body.forEach(function(e,r){t.indent(true);e.print(t);if(r<n&&e.body.length>0)t.newline()})})});_e.DEFMETHOD("_do_print_body",function(e){e.newline();this.body.forEach(function(t){e.indent();t.print(e);e.newline()})});DEFPRINT(be,function(e,t){t.print("default:");e._do_print_body(t)});DEFPRINT(Ee,function(e,t){t.print("case");t.space();e.expression.print(t);t.print(":");e._do_print_body(t)});DEFPRINT(we,function(e,t){t.print("try");t.space();print_braced(e,t);if(e.bcatch){t.space();e.bcatch.print(t)}if(e.bfinally){t.space();e.bfinally.print(t)}});DEFPRINT(Se,function(e,t){t.print("catch");if(e.argname){t.space();t.with_parens(function(){e.argname.print(t)})}t.space();print_braced(e,t)});DEFPRINT(ke,function(e,t){t.print("finally");t.space();print_braced(e,t)});De.DEFMETHOD("_do_print",function(e,t){e.print(t);e.space();this.definitions.forEach(function(t,n){if(n)e.comma();t.print(e)});var n=e.parent();var r=n instanceof W||n instanceof K;var i=!r||n&&n.init!==this;if(i)e.semicolon()});DEFPRINT(Ce,function(e,t){e._do_print(t,"let")});DEFPRINT(xe,function(e,t){e._do_print(t,"var")});DEFPRINT(Ae,function(e,t){e._do_print(t,"const")});DEFPRINT(Oe,function(e,t){t.print("import");t.space();if(e.imported_name){e.imported_name.print(t)}if(e.imported_name&&e.imported_names){t.print(",");t.space()}if(e.imported_names){if(e.imported_names.length===1&&e.imported_names[0].foreign_name.name==="*"){e.imported_names[0].print(t)}else{t.print("{");e.imported_names.forEach(function(n,r){t.space();n.print(t);if(r<e.imported_names.length-1){t.print(",")}});t.space();t.print("}")}}if(e.imported_name||e.imported_names){t.space();t.print("from");t.space()}e.module_name.print(t);t.semicolon()});DEFPRINT(Fe,function(e,t){t.print("import.meta")});DEFPRINT(Me,function(e,t){var n=t.parent()instanceof Oe;var r=e.name.definition();var i=(r&&r.mangled_name||e.name.name)!==e.foreign_name.name;if(i){if(n){t.print(e.foreign_name.name)}else{e.name.print(t)}t.space();t.print("as");t.space();if(n){e.name.print(t)}else{t.print(e.foreign_name.name)}}else{e.name.print(t)}});DEFPRINT(Ie,function(e,t){t.print("export");t.space();if(e.is_default){t.print("default");t.space()}if(e.exported_names){if(e.exported_names.length===1&&e.exported_names[0].name.name==="*"){e.exported_names[0].print(t)}else{t.print("{");e.exported_names.forEach(function(n,r){t.space();n.print(t);if(r<e.exported_names.length-1){t.print(",")}});t.space();t.print("}")}}else if(e.exported_value){e.exported_value.print(t)}else if(e.exported_definition){e.exported_definition.print(t);if(e.exported_definition instanceof De)return}if(e.module_name){t.space();t.print("from");t.space();e.module_name.print(t)}if(e.exported_value&&!(e.exported_value instanceof re||e.exported_value instanceof te||e.exported_value instanceof tt)||e.module_name||e.exported_names){t.semicolon()}});function parenthesize_for_noin(e,t,n){var r=false;if(n){r=walk(e,e=>{if(e instanceof Y)return true;if(e instanceof Ge&&e.operator=="in"){return Vt}})}e.print(t,r)}DEFPRINT(Te,function(e,t){e.name.print(t);if(e.value){t.space();t.print("=");t.space();var n=t.parent(1);var r=n instanceof W||n instanceof K;parenthesize_for_noin(e.value,t,r)}});DEFPRINT(Re,function(e,t){e.expression.print(t);if(e instanceof Pe&&e.args.length===0)return;if(e.expression instanceof Re||e.expression instanceof $){t.add_mapping(e.start)}if(e.optional)t.print("?.");t.with_parens(function(){e.args.forEach(function(e,n){if(n)t.comma();e.print(t)})})});DEFPRINT(Pe,function(e,t){t.print("new");t.space();Re.prototype._codegen(e,t)});Ne.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){if(n>0){e.comma();if(e.should_break()){e.newline();e.indent()}}t.print(e)})});DEFPRINT(Ne,function(e,t){e._do_print(t)});DEFPRINT(Be,function(e,t){var n=e.expression;n.print(t);var r=e.property;var i=c.has(r)?t.option("ie8"):!is_identifier_string(r,t.option("ecma")>=2015);if(e.optional)t.print("?.");if(i){t.print("[");t.add_mapping(e.end);t.print_string(r);t.print("]")}else{if(n instanceof Ot&&n.getValue()>=0){if(!/[xa-f.)]/i.test(t.last())){t.print(".")}}if(!e.optional)t.print(".");t.add_mapping(e.end);t.print_name(r)}});DEFPRINT(je,function(e,t){e.expression.print(t);if(e.optional)t.print("?.");t.print("[");e.property.print(t);t.print("]")});DEFPRINT(Ue,function(e,t){e.expression.print(t)});DEFPRINT(He,function(e,t){var n=e.operator;t.print(n);if(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof He&&/^[+-]/.test(e.expression.operator)){t.space()}e.expression.print(t)});DEFPRINT(Ve,function(e,t){e.expression.print(t);t.print(e.operator)});DEFPRINT(Ge,function(e,t){var n=e.operator;e.left.print(t);if(n[0]==">"&&e.left instanceof Ve&&e.left.operator=="--"){t.print(" ")}else{t.space()}t.print(n);if((n=="<"||n=="<<")&&e.right instanceof He&&e.right.operator=="!"&&e.right.expression instanceof He&&e.right.expression.operator=="--"){t.print(" ")}else{t.space()}e.right.print(t)});DEFPRINT(qe,function(e,t){e.condition.print(t);t.space();t.print("?");t.space();e.consequent.print(t);t.space();t.colon();e.alternative.print(t)});DEFPRINT(Xe,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;if(r>0)t.space();n.forEach(function(e,n){if(n)t.comma();e.print(t);if(n===r-1&&e instanceof Bt)t.comma()});if(r>0)t.space()})});DEFPRINT(Je,function(e,t){if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.print(",");t.newline()}t.indent();e.print(t)});t.newline()});else print_braced_empty(e,t)});DEFPRINT(tt,function(e,t){t.print("class");t.space();if(e.name){e.name.print(t);t.space()}if(e.extends){var n=!(e.extends instanceof St)&&!(e.extends instanceof Le)&&!(e.extends instanceof it)&&!(e.extends instanceof te);t.print("extends");if(n){t.print("(")}else{t.space()}e.extends.print(t);if(n){t.print(")")}else{t.space()}}if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.newline()}t.indent();e.print(t)});t.newline()});else t.print("{}")});DEFPRINT(ot,function(e,t){t.print("new.target")});function print_property_name(e,t,n){if(n.option("quote_keys")){return n.print_string(e)}if(""+ +e==e&&e>=0){if(n.option("keep_numbers")){return n.print(e)}return n.print(make_num(e))}var r=c.has(e)?n.option("ie8"):n.option("ecma")<2015?!is_basic_identifier_string(e):!is_identifier_string(e,true);if(r||t&&n.option("keep_quoted_props")){return n.print_string(e,t)}return n.print_name(e)}DEFPRINT(Qe,function(e,t){function get_name(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");if(n&&e.value instanceof st&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value)===e.key&&!c.has(e.key)){print_property_name(e.key,e.quote,t)}else if(n&&e.value instanceof Ke&&e.value.left instanceof st&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value.left)===e.key){print_property_name(e.key,e.quote,t);t.space();t.print("=");t.space();e.value.right.print(t)}else{if(!(e.key instanceof F)){print_property_name(e.key,e.quote,t)}else{t.with_square(function(){e.key.print(t)})}t.colon();e.value.print(t)}});DEFPRINT(nt,(e,t)=>{if(e.static){t.print("static");t.space()}if(e.key instanceof mt){print_property_name(e.key.name,e.quote,t)}else{t.print("[");e.key.print(t);t.print("]")}if(e.value){t.print("=");e.value.print(t)}t.semicolon()});Ye.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;if(n.static){t.print("static");t.space()}if(e){t.print(e);t.space()}if(n.key instanceof ht){print_property_name(n.key.name,n.quote,t)}else{t.with_square(function(){n.key.print(t)})}n.value._do_print(t,true)});DEFPRINT(Ze,function(e,t){e._print_getter_setter("set",t)});DEFPRINT($e,function(e,t){e._print_getter_setter("get",t)});DEFPRINT(et,function(e,t){var n;if(e.is_generator&&e.async){n="async*"}else if(e.is_generator){n="*"}else if(e.async){n="async"}e._print_getter_setter(n,t)});st.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)});DEFPRINT(st,function(e,t){e._do_print(t)});DEFPRINT(Bt,noop);DEFPRINT(Ct,function(e,t){t.print("this")});DEFPRINT(At,function(e,t){t.print("super")});DEFPRINT(Tt,function(e,t){t.print(e.getValue())});DEFPRINT(Mt,function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)});DEFPRINT(Ot,function(e,t){if((t.option("keep_numbers")||t.use_asm)&&e.start&&e.start.raw!=null){t.print(e.start.raw)}else{t.print(make_num(e.getValue()))}});DEFPRINT(Ft,function(e,t){t.print(e.getValue()+"n")});const e=/(<\s*\/\s*script)/i;const t=(e,t)=>t.replace("/","\\/");DEFPRINT(It,function(n,r){let{source:i,flags:s}=n.getValue();i=regexp_source_fix(i);s=s?sort_regexp_flags(s):"";i=i.replace(e,t);r.print(r.to_utf8(`/${i}/${s}`));const o=r.parent();if(o instanceof Ge&&/^\w/.test(o.operator)&&o.left===n){r.print(" ")}});function force_statement(e,t){if(t.option("braces")){make_block(e,t)}else{if(!e||e instanceof j)t.force_semicolon();else e.print(t)}}function best_of(e){var t=e[0],n=t.length;for(var r=1;r<e.length;++r){if(e[r].length<n){t=e[r];n=t.length}}return t}function make_num(e){var t=e.toString(10).replace(/^0\./,".").replace("e+","e");var n=[t];if(Math.floor(e)===e){if(e<0){n.push("-0x"+(-e).toString(16).toLowerCase())}else{n.push("0x"+e.toString(16).toLowerCase())}}var r,i,s;if(r=/^\.0+/.exec(t)){i=r[0].length;s=t.slice(i);n.push(s+"e-"+(s.length+i-1))}else if(r=/0+$/.exec(t)){i=r[0].length;n.push(t.slice(0,-i)+"e"+i)}else if(r=/^(\d)\.(\d+)e(-?\d+)$/.exec(t)){n.push(r[1]+r[2]+"e"+(r[3]-r[2].length))}return best_of(n)}function make_block(e,t){if(!e||e instanceof j)t.print("{}");else if(e instanceof B)e.print(t);else t.with_block(function(){t.indent();e.print(t);t.newline()})}function DEFMAP(e,t){e.forEach(function(e){e.DEFMETHOD("add_source_map",t)})}DEFMAP([F,z,Q],noop);DEFMAP([Xe,B,Se,tt,Tt,R,De,P,ke,ce,$,Pe,Je,U,st,ve,_e,oe,ae,we],function(e){e.add_mapping(this.start)});DEFMAP([$e,Ze],function(e){e.add_mapping(this.start,this.key.name)});DEFMAP([Ye],function(e){e.add_mapping(this.start,this.key)})})();const Zt=(e,t)=>{return e===null&&t===null||e.TYPE===t.TYPE&&e.shallow_cmp(t)};const $t=(e,t)=>{if(!Zt(e,t))return false;const n=[e];const r=[t];const i=n.push.bind(n);const s=r.push.bind(r);while(n.length&&r.length){const e=n.pop();const t=r.pop();if(!Zt(e,t))return false;e._children_backwards(i);t._children_backwards(s);if(n.length!==r.length){return false}}return n.length==0&&r.length==0};const en=e=>{const t=Object.keys(e).map(t=>{if(e[t]==="eq"){return`this.${t} === other.${t}`}else if(e[t]==="exist"){return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`}else{throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)}}).join(" && ");return new Function("other","return "+t)};const tn=()=>true;F.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)};R.prototype.shallow_cmp=tn;P.prototype.shallow_cmp=en({value:"eq"});N.prototype.shallow_cmp=tn;L.prototype.shallow_cmp=tn;j.prototype.shallow_cmp=tn;z.prototype.shallow_cmp=en({"label.name":"eq"});G.prototype.shallow_cmp=tn;q.prototype.shallow_cmp=tn;W.prototype.shallow_cmp=en({init:"exist",condition:"exist",step:"exist"});K.prototype.shallow_cmp=tn;X.prototype.shallow_cmp=tn;J.prototype.shallow_cmp=tn;Q.prototype.shallow_cmp=tn;Z.prototype.shallow_cmp=tn;$.prototype.shallow_cmp=en({is_generator:"eq",async:"eq"});ie.prototype.shallow_cmp=en({is_array:"eq"});se.prototype.shallow_cmp=tn;oe.prototype.shallow_cmp=tn;ae.prototype.shallow_cmp=en({value:"eq"});ce.prototype.shallow_cmp=tn;pe.prototype.shallow_cmp=tn;me.prototype.shallow_cmp=tn;ge.prototype.shallow_cmp=en({is_star:"eq"});ye.prototype.shallow_cmp=en({alternative:"exist"});ve.prototype.shallow_cmp=tn;_e.prototype.shallow_cmp=tn;we.prototype.shallow_cmp=en({bcatch:"exist",bfinally:"exist"});Se.prototype.shallow_cmp=en({argname:"exist"});ke.prototype.shallow_cmp=tn;De.prototype.shallow_cmp=tn;Te.prototype.shallow_cmp=en({value:"exist"});Me.prototype.shallow_cmp=tn;Oe.prototype.shallow_cmp=en({imported_name:"exist",imported_names:"exist"});Fe.prototype.shallow_cmp=tn;Ie.prototype.shallow_cmp=en({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"});Re.prototype.shallow_cmp=tn;Ne.prototype.shallow_cmp=tn;Le.prototype.shallow_cmp=tn;Be.prototype.shallow_cmp=en({property:"eq"});ze.prototype.shallow_cmp=en({operator:"eq"});Ge.prototype.shallow_cmp=en({operator:"eq"});qe.prototype.shallow_cmp=tn;Xe.prototype.shallow_cmp=tn;Je.prototype.shallow_cmp=tn;Ye.prototype.shallow_cmp=tn;Qe.prototype.shallow_cmp=en({key:"eq"});Ze.prototype.shallow_cmp=en({static:"eq"});$e.prototype.shallow_cmp=en({static:"eq"});et.prototype.shallow_cmp=en({static:"eq",is_generator:"eq",async:"eq"});tt.prototype.shallow_cmp=en({name:"exist",extends:"exist"});nt.prototype.shallow_cmp=en({static:"eq"});st.prototype.shallow_cmp=en({name:"eq"});ot.prototype.shallow_cmp=tn;Ct.prototype.shallow_cmp=tn;At.prototype.shallow_cmp=tn;Mt.prototype.shallow_cmp=en({value:"eq"});Ot.prototype.shallow_cmp=en({value:"eq"});Ft.prototype.shallow_cmp=en({value:"eq"});It.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source};Rt.prototype.shallow_cmp=tn;const nn=1<<0;const rn=1<<1;let sn=null;let on=null;class SymbolDef{constructor(e,t,n){this.name=t.name;this.orig=[t];this.init=n;this.eliminated=0;this.assignments=0;this.scope=e;this.replaced=0;this.global=false;this.export=0;this.mangled_name=null;this.undeclared=false;this.id=SymbolDef.next_id++;this.chained=false;this.direct_access=false;this.escaped=0;this.recursive_refs=0;this.references=[];this.should_replace=undefined;this.single_use=false;this.fixed=false;Object.seal(this)}fixed_value(){if(!this.fixed||this.fixed instanceof F)return this.fixed;return this.fixed()}unmangleable(e){if(!e)e={};if(sn&&sn.has(this.id)&&keep_name(e.keep_fnames,this.orig[0].name))return true;return this.global&&!e.toplevel||this.export&nn||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof gt||this.orig[0]instanceof dt)&&keep_name(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof ht||(this.orig[0]instanceof vt||this.orig[0]instanceof yt)&&keep_name(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name)){this.mangled_name=t.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope;var r=this.orig[0];if(e.ie8&&r instanceof gt)n=n.parent_scope;const i=redefined_catch_def(this);this.mangled_name=i?i.mangled_name||i.name:n.next_mangled(e,this);if(this.global&&t){t.set(this.name,this.mangled_name)}}}}SymbolDef.next_id=1;function redefined_catch_def(e){if(e.orig[0]instanceof _t&&e.scope.is_block_scope()){return e.scope.get_defun_scope().variables.get(e.name)}}Y.DEFMETHOD("figure_out_scope",function(e,{parent_scope:t=null,toplevel:n=this}={}){e=defaults(e,{cache:null,ie8:false,safari10:false});if(!(n instanceof Q)){throw new Error("Invalid toplevel scope")}var r=this.parent_scope=t;var i=new Map;var s=null;var o=null;var a=[];var c=new TreeWalker((t,n)=>{if(t.is_block_scope()){const i=r;t.block_scope=r=new Y(t);r._block_scope=true;const s=t instanceof Se?i.parent_scope:i;r.init_scope_vars(s);r.uses_with=i.uses_with;r.uses_eval=i.uses_eval;if(e.safari10){if(t instanceof W||t instanceof K){a.push(r)}}if(t instanceof ve){const e=r;r=i;t.expression.walk(c);r=e;for(let e=0;e<t.body.length;e++){t.body[e].walk(c)}}else{n()}r=i;return true}if(t instanceof ie){const e=o;o=t;n();o=e;return true}if(t instanceof Y){t.init_scope_vars(r);var u=r;var l=s;var f=i;s=r=t;i=new Map;n();r=u;s=l;i=f;return true}if(t instanceof z){var p=t.label;if(i.has(p.name)){throw new Error(string_template("Label {name} defined twice",p))}i.set(p.name,p);n();i.delete(p.name);return true}if(t instanceof J){for(var d=r;d;d=d.parent_scope)d.uses_with=true;return}if(t instanceof st){t.scope=r}if(t instanceof wt){t.thedef=t;t.references=[]}if(t instanceof gt){s.def_function(t,t.name=="arguments"?undefined:s)}else if(t instanceof dt){mark_export((t.scope=s.parent_scope.get_defun_scope()).def_function(t,s),1)}else if(t instanceof vt){mark_export(s.def_variable(t,s),1)}else if(t instanceof bt){r.def_variable(t)}else if(t instanceof yt){mark_export((t.scope=s.parent_scope).def_function(t,s),1)}else if(t instanceof ct||t instanceof ft||t instanceof lt||t instanceof _t){var h;if(t instanceof ut){h=r.def_variable(t,null)}else{h=s.def_variable(t,t.TYPE=="SymbolVar"?null:undefined)}if(!h.orig.every(e=>{if(e===t)return true;if(t instanceof ut){return e instanceof gt}return!(e instanceof ft||e instanceof lt)})){js_error(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos)}if(!(t instanceof pt))mark_export(h,2);if(s!==r){t.mark_enclosed();var h=r.find_variable(t);if(t.thedef!==h){t.thedef=h;t.reference()}}}else if(t instanceof xt){var m=i.get(t.name);if(!m)throw new Error(string_template("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=m}if(!(r instanceof Q)&&(t instanceof Ie||t instanceof Oe)){js_error(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}});this.walk(c);function mark_export(e,t){if(o){var n=0;do{t++}while(c.parent(n++)!==o)}var r=c.parent(t);if(e.export=r instanceof Ie?nn:0){var i=r.exported_definition;if((i instanceof re||i instanceof rt)&&r.is_default){e.export=rn}}}const u=this instanceof Q;if(u){this.globals=new Map}var c=new TreeWalker(e=>{if(e instanceof pe&&e.label){e.label.thedef.references.push(e);return true}if(e instanceof St){var t=e.name;if(t=="eval"&&c.parent()instanceof Re){for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope){r.uses_eval=true}}var i;if(c.parent()instanceof Me&&c.parent(1).module_name||!(i=e.scope.find_variable(t))){i=n.def_global(e);if(e instanceof kt)i.export=nn}else if(i.scope instanceof $&&t=="arguments"){i.scope.uses_arguments=true}e.thedef=i;e.reference();if(e.scope.is_block_scope()&&!(i.orig[0]instanceof ut)){e.scope=e.scope.get_defun_scope()}return true}var s;if(e instanceof _t&&(s=redefined_catch_def(e.definition()))){var r=e.scope;while(r){push_uniq(r.enclosed,s);if(r===s.scope)break;r=r.parent_scope}}});this.walk(c);if(e.ie8||e.safari10){walk(this,e=>{if(e instanceof _t){var t=e.name;var r=e.thedef.references;var i=e.scope.get_defun_scope();var s=i.find_variable(t)||n.globals.get(t)||i.def_variable(e);r.forEach(function(e){e.thedef=s;e.reference()});e.thedef=s;e.reference();return true}})}if(e.safari10){for(const e of a){e.parent_scope.variables.forEach(function(t){push_uniq(e.enclosed,t)})}}});Q.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n)){return t.get(n)}else{var r=new SymbolDef(this,e);r.undeclared=true;r.global=true;t.set(n,r);return r}});Y.DEFMETHOD("init_scope_vars",function(e){this.variables=new Map;this.functions=new Map;this.uses_with=false;this.uses_eval=false;this.parent_scope=e;this.enclosed=[];this.cname=-1});Y.DEFMETHOD("conflicting_def",function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)});Y.DEFMETHOD("add_child_scope",function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);e.reverse();return e})();const n=new Set(e.enclosed);const r=[];for(const e of t){r.forEach(t=>push_uniq(e.enclosed,t));for(const t of e.variables.values()){if(n.has(t)){push_uniq(r,t);push_uniq(e.enclosed,t)}}}});Y.DEFMETHOD("create_symbol",function(e,{source:t,tentative_name:n,scope:r,init:i=null}={}){let s;if(n){n=s=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;while(this.conflicting_def(s)){s=n+"$"+e++}}if(!s){throw new Error("No symbol name could be generated in create_symbol()")}const o=make_node(e,t,{name:s,scope:r});this.def_variable(o,i||null);o.mark_enclosed();return o});F.DEFMETHOD("is_block_scope",return_false);tt.DEFMETHOD("is_block_scope",return_false);$.DEFMETHOD("is_block_scope",return_false);Q.DEFMETHOD("is_block_scope",return_false);_e.DEFMETHOD("is_block_scope",return_false);L.DEFMETHOD("is_block_scope",return_true);Y.DEFMETHOD("is_block_scope",function(){return this._block_scope||false});H.DEFMETHOD("is_block_scope",return_true);$.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false;this.def_variable(new pt({name:"arguments",start:this.start,end:this.end}))});ne.DEFMETHOD("init_scope_vars",function(){Y.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false});st.DEFMETHOD("mark_enclosed",function(){var e=this.definition();var t=this.scope;while(t){push_uniq(t.enclosed,e);if(t===e.scope)break;t=t.parent_scope}});st.DEFMETHOD("reference",function(){this.definition().references.push(this);this.mark_enclosed()});Y.DEFMETHOD("find_variable",function(e){if(e instanceof st)e=e.name;return this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)});Y.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);if(!n.init||n.init instanceof re)n.init=t;this.functions.set(e.name,n);return n});Y.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);if(n){n.orig.push(e);if(n.init&&(n.scope!==e.scope||n.init instanceof te)){n.init=t}}else{n=new SymbolDef(this,e,t);this.variables.set(e.name,n);n.global=!this.parent_scope}return e.thedef=n});function next_mangled(e,t){var n=e.enclosed;e:while(true){var r=an(++e.cname);if(c.has(r))continue;if(t.reserved.has(r))continue;if(on&&on.has(r))continue e;for(let e=n.length;--e>=0;){const i=n[e];const s=i.mangled_name||i.unmangleable(t)&&i.name;if(r==s)continue e}return r}}Y.DEFMETHOD("next_mangled",function(e){return next_mangled(this,e)});Q.DEFMETHOD("next_mangled",function(e){let t;const n=this.mangled_names;do{t=next_mangled(this,e)}while(n.has(t));return t});te.DEFMETHOD("next_mangled",function(e,t){var n=t.orig[0]instanceof pt&&this.name&&this.name.definition();var r=n?n.mangled_name||n.name:null;while(true){var i=next_mangled(this,e);if(!r||r!=i)return i}});st.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)});wt.DEFMETHOD("unmangleable",return_false);st.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()});st.DEFMETHOD("definition",function(){return this.thedef});st.DEFMETHOD("global",function(){return this.thedef.global});Q.DEFMETHOD("_default_mangler_options",function(e){e=defaults(e,{eval:false,ie8:false,keep_classnames:false,keep_fnames:false,module:false,reserved:[],toplevel:false});if(e.module)e.toplevel=true;if(!Array.isArray(e.reserved)&&!(e.reserved instanceof Set)){e.reserved=[]}e.reserved=new Set(e.reserved);e.reserved.add("arguments");return e});Q.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var t=-1;var n=[];if(e.keep_fnames){sn=new Set}const r=this.mangled_names=new Set;if(e.cache){this.globals.forEach(collect);if(e.cache.props){e.cache.props.forEach(function(e){r.add(e)})}}var i=new TreeWalker(function(r,i){if(r instanceof z){var s=t;i();t=s;return true}if(r instanceof Y){r.variables.forEach(collect);return}if(r.is_block_scope()){r.block_scope.variables.forEach(collect);return}if(sn&&r instanceof Te&&r.value instanceof $&&!r.value.name&&keep_name(e.keep_fnames,r.name.name)){sn.add(r.name.definition().id);return}if(r instanceof wt){let e;do{e=an(++t)}while(c.has(e));r.mangled_name=e;return true}if(!(e.ie8||e.safari10)&&r instanceof _t){n.push(r.definition());return}});this.walk(i);if(e.keep_fnames||e.keep_classnames){on=new Set;n.forEach(t=>{if(t.name.length<6&&t.unmangleable(e)){on.add(t.name)}})}n.forEach(t=>{t.mangle(e)});sn=null;on=null;function collect(t){const r=!e.reserved.has(t.name)&&!(t.export&nn);if(r){n.push(t)}}});Q.DEFMETHOD("find_colliding_names",function(e){const t=e.cache&&e.cache.props;const n=new Set;e.reserved.forEach(to_avoid);this.globals.forEach(add_def);this.walk(new TreeWalker(function(e){if(e instanceof Y)e.variables.forEach(add_def);if(e instanceof _t)add_def(e.definition())}));return n;function to_avoid(e){n.add(e)}function add_def(n){var r=n.name;if(n.global&&t&&t.has(r))r=t.get(r);else if(!n.unmangleable(e))return;to_avoid(r)}});Q.DEFMETHOD("expand_names",function(e){an.reset();an.sort();e=this._default_mangler_options(e);var t=this.find_colliding_names(e);var n=0;this.globals.forEach(rename);this.walk(new TreeWalker(function(e){if(e instanceof Y)e.variables.forEach(rename);if(e instanceof _t)rename(e.definition())}));function next_name(){var e;do{e=an(n++)}while(t.has(e)||c.has(e));return e}function rename(t){if(t.global&&e.cache)return;if(t.unmangleable(e))return;if(e.reserved.has(t.name))return;const n=redefined_catch_def(t);const r=t.name=n?n.name:next_name();t.orig.forEach(function(e){e.name=r});t.references.forEach(function(e){e.name=r})}});F.DEFMETHOD("tail_node",return_this);Ne.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});Q.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{F.prototype.print=function(t,n){this._print(t,n);if(this instanceof st&&!this.unmangleable(e)){an.consider(this.name,-1)}else if(e.properties){if(this instanceof Be){an.consider(this.property,-1)}else if(this instanceof je){skip_string(this.property)}}};an.consider(this.print_to_string(),1)}finally{F.prototype.print=F.prototype._print}an.sort();function skip_string(e){if(e instanceof Mt){an.consider(e.value,-1)}else if(e instanceof qe){skip_string(e.consequent);skip_string(e.alternative)}else if(e instanceof Ne){skip_string(e.tail_node())}}});const an=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split("");const t="0123456789".split("");let n;let r;function reset(){r=new Map;e.forEach(function(e){r.set(e,0)});t.forEach(function(e){r.set(e,0)})}base54.consider=function(e,t){for(var n=e.length;--n>=0;){r.set(e[n],r.get(e[n])+t)}};function compare(e,t){return r.get(t)-r.get(e)}base54.sort=function(){n=mergeSort(e,compare).concat(mergeSort(t,compare))};base54.reset=reset;reset();function base54(e){var t="",r=54;e++;do{e--;t+=n[e%r];e=Math.floor(e/r);r=64}while(e>0);return t}return base54})();let cn=undefined;F.prototype.size=function(e,t){cn=e&&e.mangle_options;let n=0;walk_parent(this,(e,t)=>{n+=e._size(t)},t||e&&e.stack);cn=undefined;return n};F.prototype._size=(()=>0);R.prototype._size=(()=>8);P.prototype._size=function(){return 2+this.value.length};const un=e=>e.length&&e.length-1;L.prototype._size=function(){return 2+un(this.body)};Q.prototype._size=function(){return un(this.body)};j.prototype._size=(()=>1);z.prototype._size=(()=>2);G.prototype._size=(()=>9);q.prototype._size=(()=>7);W.prototype._size=(()=>8);K.prototype._size=(()=>8);J.prototype._size=(()=>6);Z.prototype._size=(()=>3);const ln=e=>(e.is_generator?1:0)+(e.async?6:0);ee.prototype._size=function(){return ln(this)+4+un(this.argnames)+un(this.body)};te.prototype._size=function(e){const t=!!first_in_statement(e);return t*2+ln(this)+12+un(this.argnames)+un(this.body)};re.prototype._size=function(){return ln(this)+13+un(this.argnames)+un(this.body)};ne.prototype._size=function(){let e=2+un(this.argnames);if(!(this.argnames.length===1&&this.argnames[0]instanceof st)){e+=2}return ln(this)+e+(Array.isArray(this.body)?un(this.body):this.body._size())};ie.prototype._size=(()=>2);oe.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3};ae.prototype._size=function(){return this.value.length};le.prototype._size=function(){return this.value?7:6};fe.prototype._size=(()=>6);de.prototype._size=function(){return this.label?6:5};he.prototype._size=function(){return this.label?9:8};ye.prototype._size=(()=>4);ve.prototype._size=function(){return 8+un(this.body)};Ee.prototype._size=function(){return 5+un(this.body)};be.prototype._size=function(){return 8+un(this.body)};we.prototype._size=function(){return 3+un(this.body)};Se.prototype._size=function(){let e=7+un(this.body);if(this.argname){e+=2}return e};ke.prototype._size=function(){return 7+un(this.body)};const fn=(e,t)=>e+un(t.definitions);xe.prototype._size=function(){return fn(4,this)};Ce.prototype._size=function(){return fn(4,this)};Ae.prototype._size=function(){return fn(6,this)};Te.prototype._size=function(){return this.value?1:0};Me.prototype._size=function(){return this.name?4:0};Oe.prototype._size=function(){let e=6;if(this.imported_name)e+=1;if(this.imported_name||this.imported_names)e+=5;if(this.imported_names){e+=2+un(this.imported_names)}return e};Fe.prototype._size=(()=>11);Ie.prototype._size=function(){let e=7+(this.is_default?8:0);if(this.exported_value){e+=this.exported_value._size()}if(this.exported_names){e+=2+un(this.exported_names)}if(this.module_name){e+=5}return e};Re.prototype._size=function(){if(this.optional){return 4+un(this.args)}return 2+un(this.args)};Pe.prototype._size=function(){return 6+un(this.args)};Ne.prototype._size=function(){return un(this.expressions)};Be.prototype._size=function(){if(this.optional){return this.property.length+2}return this.property.length+1};je.prototype._size=function(){return this.optional?4:2};ze.prototype._size=function(){if(this.operator==="typeof")return 7;if(this.operator==="void")return 5;return this.operator.length};Ge.prototype._size=function(e){if(this.operator==="in")return 4;let t=this.operator.length;if((this.operator==="+"||this.operator==="-")&&this.right instanceof ze&&this.right.operator===this.operator){t+=1}if(this.needs_parens(e)){t+=2}return t};qe.prototype._size=(()=>3);Xe.prototype._size=function(){return 2+un(this.elements)};Je.prototype._size=function(e){let t=2;if(first_in_statement(e)){t+=2}return t+un(this.properties)};const pn=e=>typeof e==="string"?e.length:0;Qe.prototype._size=function(){return pn(this.key)+1};const dn=e=>e?7:0;$e.prototype._size=function(){return 5+dn(this.static)+pn(this.key)};Ze.prototype._size=function(){return 5+dn(this.static)+pn(this.key)};et.prototype._size=function(){return dn(this.static)+pn(this.key)+ln(this)};tt.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)};nt.prototype._size=function(){return dn(this.static)+(typeof this.key==="string"?this.key.length+2:0)+(this.value?1:0)};st.prototype._size=function(){return!cn||this.definition().unmangleable(cn)?this.name.length:1};mt.prototype._size=function(){return this.name.length};St.prototype._size=at.prototype._size=function(){const{name:e,thedef:t}=this;if(t&&t.global)return e.length;if(e==="arguments")return 9;return st.prototype._size.call(this)};ot.prototype._size=(()=>10);Et.prototype._size=function(){return this.name.length};Dt.prototype._size=function(){return this.name.length};Ct.prototype._size=(()=>4);At.prototype._size=(()=>5);Mt.prototype._size=function(){return this.value.length+2};Ot.prototype._size=function(){const{value:e}=this;if(e===0)return 1;if(e>0&&Math.floor(e)===e){return Math.floor(Math.log10(e)+1)}return e.toString().length};Ft.prototype._size=function(){return this.value.length};It.prototype._size=function(){return this.value.toString().length};Pt.prototype._size=(()=>4);Nt.prototype._size=(()=>3);Lt.prototype._size=(()=>6);Bt.prototype._size=(()=>0);jt.prototype._size=(()=>8);Ht.prototype._size=(()=>4);zt.prototype._size=(()=>5);me.prototype._size=(()=>6);ge.prototype._size=(()=>6);const hn=1;const mn=2;const gn=4;const yn=8;const vn=16;const _n=32;const bn=256;const En=512;const wn=1024;const Sn=bn|En|wn;const kn=(e,t)=>e.flags&t;const Dn=(e,t)=>{e.flags|=t};const xn=(e,t)=>{e.flags&=~t};class Compressor extends TreeWalker{constructor(e,{false_by_default:t=false,mangle_options:n=false}){super();if(e.defaults!==undefined&&!e.defaults)t=true;this.options=defaults(e,{arguments:false,arrows:!t,booleans:!t,booleans_as_integers:false,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:true,directives:!t,drop_console:false,drop_debugger:!t,ecma:5,evaluate:!t,expression:false,global_defs:false,hoist_funs:false,hoist_props:!t,hoist_vars:false,ie8:false,if_return:!t,inline:!t,join_vars:!t,keep_classnames:false,keep_fargs:true,keep_fnames:false,keep_infinity:false,loops:!t,module:false,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!!(e&&e["top_retain"]),typeofs:!t,unsafe:false,unsafe_arrows:false,unsafe_comps:false,unsafe_Function:false,unsafe_math:false,unsafe_symbols:false,unsafe_methods:false,unsafe_proto:false,unsafe_regexp:false,unsafe_undefined:false,unused:!t,warnings:false},true);var r=this.options["global_defs"];if(typeof r=="object")for(var i in r){if(i[0]==="@"&&HOP(r,i)){r[i.slice(1)]=parse(r[i],{expression:true})}}if(this.options["inline"]===true)this.options["inline"]=3;var s=this.options["pure_funcs"];if(typeof s=="function"){this.pure_funcs=s}else{this.pure_funcs=s?function(e){return!s.includes(e.expression.print_to_string())}:return_true}var o=this.options["top_retain"];if(o instanceof RegExp){this.top_retain=function(e){return o.test(e.name)}}else if(typeof o=="function"){this.top_retain=o}else if(o){if(typeof o=="string"){o=o.split(/,/)}this.top_retain=function(e){return o.includes(e.name)}}if(this.options["module"]){this.directives["use strict"]=true;this.options["toplevel"]=true}var a=this.options["toplevel"];this.toplevel=typeof a=="string"?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var c=this.options["sequences"];this.sequences_limit=c==1?800:c|0;this.evaluated_regexps=new Map;this._toplevel=undefined;this.mangle_options=n}option(e){return this.options[e]}exposed(e){if(e.export)return true;if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof dt?"funcs":"vars"])return true;return false}in_boolean_context(){if(!this.option("booleans"))return false;var e=this.self();for(var t=0,n;n=this.parent(t);t++){if(n instanceof N||n instanceof qe&&n.condition===e||n instanceof V&&n.condition===e||n instanceof W&&n.condition===e||n instanceof ye&&n.condition===e||n instanceof He&&n.operator=="!"&&n.expression===e){return true}if(n instanceof Ge&&(n.operator=="&&"||n.operator=="||"||n.operator=="??")||n instanceof qe||n.tail_node()===e){e=n}else{return false}}}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this);this._toplevel=e;if(this.option("expression")){this._toplevel.process_expression(true)}var t=+this.options.passes||1;var n=1/0;var r=false;var i={ie8:this.option("ie8")};for(var s=0;s<t;s++){this._toplevel.figure_out_scope(i);if(s===0&&this.option("drop_console")){this._toplevel=this._toplevel.drop_console()}if(s>0||this.option("reduce_vars")){this._toplevel.reset_opt_flags(this)}this._toplevel=this._toplevel.transform(this);if(t>1){let e=0;walk(this._toplevel,()=>{e++});if(e<n){n=e;r=false}else if(r){break}else{r=true}}}if(this.option("expression")){this._toplevel.process_expression(false)}e=this._toplevel;this._toplevel=undefined;return e}before(e,t){if(kn(e,bn))return e;var n=false;if(e instanceof Y){e=e.hoist_properties(this);e=e.hoist_declarations(this);n=true}t(e,this);t(e,this);var r=e.optimize(this);if(n&&r instanceof Y){r.drop_unused(this);t(r,this)}if(r===e)Dn(r,bn);return r}}function def_optimize(e,t){e.DEFMETHOD("optimize",function(e){var n=this;if(kn(n,En))return n;if(e.has_directive("use asm"))return n;var r=t(n,e);Dn(r,En);return r})}def_optimize(F,function(e){return e});Q.DEFMETHOD("drop_console",function(){return this.transform(new TreeTransformer(function(e){if(e.TYPE=="Call"){var t=e.expression;if(t instanceof Le){var n=t.expression;while(n.expression){n=n.expression}if(is_undeclared_ref(n)&&n.name=="console"){return make_node(Lt,e)}}}}))});F.DEFMETHOD("equivalent_to",function(e){return $t(this,e)});Y.DEFMETHOD("process_expression",function(e,t){var n=this;var r=new TreeTransformer(function(i){if(e&&i instanceof N){return make_node(le,i,{value:i.body})}if(!e&&i instanceof le){if(t){var s=i.value&&i.value.drop_side_effect_free(t,true);return s?make_node(N,i,{body:s}):make_node(j,i)}return make_node(N,i,{body:i.value||make_node(He,i,{operator:"void",expression:make_node(Ot,i,{value:0})})})}if(i instanceof tt||i instanceof $&&i!==n){return i}if(i instanceof L){var o=i.body.length-1;if(o>=0){i.body[o]=i.body[o].transform(r)}}else if(i instanceof ye){i.body=i.body.transform(r);if(i.alternative){i.alternative=i.alternative.transform(r)}}else if(i instanceof J){i.body=i.body.transform(r)}return i});n.transform(r)});function read_property(e,t){t=get_value(t);if(t instanceof F)return;var n;if(e instanceof Xe){var r=e.elements;if(t=="length")return make_node_from_constant(r.length,e);if(typeof t=="number"&&t in r)n=r[t]}else if(e instanceof Je){t=""+t;var i=e.properties;for(var s=i.length;--s>=0;){var o=i[s];if(!(o instanceof Qe))return;if(!n&&i[s].key===t)n=i[s].value}}return n instanceof St&&n.fixed_value()||n}function is_modified(e,t,n,r,i,s){var o=t.parent(i);var a=is_lhs(n,o);if(a)return a;if(!s&&o instanceof Re&&o.expression===n&&!(r instanceof ne)&&!(r instanceof tt)&&!o.is_expr_pure(e)&&(!(r instanceof te)||!(o instanceof Pe)&&r.contains_this())){return true}if(o instanceof Xe){return is_modified(e,t,o,o,i+1)}if(o instanceof Qe&&n===o.value){var c=t.parent(i+1);return is_modified(e,t,c,c,i+2)}if(o instanceof Le&&o.expression===n){var u=read_property(r,o.property);return!s&&is_modified(e,t,o,u,i+1)}}(function(e){e(F,noop);function reset_def(e,t){t.assignments=0;t.chained=false;t.direct_access=false;t.escaped=0;t.recursive_refs=0;t.references=[];t.single_use=undefined;if(t.scope.pinned()){t.fixed=false}else if(t.orig[0]instanceof lt||!e.exposed(t)){t.fixed=t.init}else{t.fixed=false}}function reset_variables(e,t,n){n.variables.forEach(function(n){reset_def(t,n);if(n.fixed===null){e.defs_to_safe_ids.set(n.id,e.safe_ids);mark(e,n,true)}else if(n.fixed){e.loop_ids.set(n.id,e.in_loop);mark(e,n,true)}})}function reset_block_variables(e,t){if(t.block_scope)t.block_scope.variables.forEach(t=>{reset_def(e,t)})}function push(e){e.safe_ids=Object.create(e.safe_ids)}function pop(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function mark(e,t,n){e.safe_ids[t.id]=n}function safe_to_read(e,t){if(t.single_use=="m")return false;if(e.safe_ids[t.id]){if(t.fixed==null){var n=t.orig[0];if(n instanceof pt||n.name=="arguments")return false;t.fixed=make_node(Lt,n)}return true}return t.fixed instanceof re}function safe_to_assign(e,t,n,r){if(t.fixed===undefined)return true;let i;if(t.fixed===null&&(i=e.defs_to_safe_ids.get(t.id))){i[t.id]=false;e.defs_to_safe_ids.delete(t.id);return true}if(!HOP(e.safe_ids,t.id))return false;if(!safe_to_read(e,t))return false;if(t.fixed===false)return false;if(t.fixed!=null&&(!r||t.references.length>t.assignments))return false;if(t.fixed instanceof re){return r instanceof F&&t.fixed.parent_scope===n}return t.orig.every(e=>{return!(e instanceof lt||e instanceof dt||e instanceof gt)})}function ref_once(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}function is_immutable(e){if(!e)return false;return e.is_constant()||e instanceof $||e instanceof Ct}function mark_escaped(e,t,n,r,i,s,o){var a=e.parent(s);if(i){if(i.is_constant())return;if(i instanceof it)return}if(a instanceof We&&a.operator=="="&&r===a.right||a instanceof Re&&(r!==a.expression||a instanceof Pe)||a instanceof ue&&r===a.value&&r.scope!==t.scope||a instanceof Te&&r===a.value||a instanceof ge&&r===a.value&&r.scope!==t.scope){if(o>1&&!(i&&i.is_constant_expression(n)))o=1;if(!t.escaped||t.escaped>o)t.escaped=o;return}else if(a instanceof Xe||a instanceof me||a instanceof Ge&&Tn.has(a.operator)||a instanceof qe&&r!==a.condition||a instanceof Z||a instanceof Ne&&r===a.tail_node()){mark_escaped(e,t,n,a,a,s+1,o)}else if(a instanceof Qe&&r===a.value){var c=e.parent(s+1);mark_escaped(e,t,n,c,c,s+2,o)}else if(a instanceof Le&&r===a.expression){i=read_property(i,a.property);mark_escaped(e,t,n,a,i,s+1,o+1);if(i)return}if(s>0)return;if(a instanceof Ne&&r!==a.tail_node())return;if(a instanceof N)return;t.direct_access=true}const t=e=>walk(e,e=>{if(!(e instanceof st))return;var t=e.definition();if(!t)return;if(e instanceof St)t.references.push(e);t.fixed=false});e(ee,function(e,t,n){push(e);reset_variables(e,n,this);t();pop(e);return true});e(We,function(e,n,r){var i=this;if(i.left instanceof ie){t(i.left);return}var s=i.left;if(!(s instanceof St))return;var o=s.definition();var a=safe_to_assign(e,o,s.scope,i.right);o.assignments++;if(!a)return;var c=o.fixed;if(!c&&i.operator!="=")return;var u=i.operator=="=";var l=u?i.right:i;if(is_modified(r,e,i,l,0))return;o.references.push(s);if(!u)o.chained=true;o.fixed=u?function(){return i.right}:function(){return make_node(Ge,i,{operator:i.operator.slice(0,-1),left:c instanceof F?c:c(),right:i.right})};mark(e,o,false);i.right.walk(e);mark(e,o,true);mark_escaped(e,o,s.scope,i,l,0,1);return true});e(Ge,function(e){if(!Tn.has(this.operator))return;this.left.walk(e);push(e);this.right.walk(e);pop(e);return true});e(L,function(e,t,n){reset_block_variables(n,this)});e(Ee,function(e){push(e);this.expression.walk(e);pop(e);push(e);walk_body(this,e);pop(e);return true});e(tt,function(e,t){xn(this,vn);push(e);t();pop(e);return true});e(qe,function(e){this.condition.walk(e);push(e);this.consequent.walk(e);pop(e);push(e);this.alternative.walk(e);pop(e);return true});e(Ue,function(e,t){const n=e.safe_ids;t();e.safe_ids=n;return true});e(Re,function(e){this.expression.walk(e);if(this.optional){push(e)}for(const t of this.args)t.walk(e);return true});e(Le,function(e){if(!this.optional)return;this.expression.walk(e);push(e);if(this.property instanceof F)this.property.walk(e);return true});e(be,function(e,t){push(e);t();pop(e);return true});function mark_lambda(e,t,n){xn(this,vn);push(e);reset_variables(e,n,this);if(this.uses_arguments){t();pop(e);return}var r;if(!this.name&&(r=e.parent())instanceof Re&&r.expression===this&&!r.args.some(e=>e instanceof Z)&&this.argnames.every(e=>e instanceof st)){this.argnames.forEach((t,n)=>{if(!t.definition)return;var i=t.definition();if(i.orig.length>1)return;if(i.fixed===undefined&&(!this.uses_arguments||e.has_directive("use strict"))){i.fixed=function(){return r.args[n]||make_node(Lt,r)};e.loop_ids.set(i.id,e.in_loop);mark(e,i,true)}else{i.fixed=false}})}t();pop(e);return true}e($,mark_lambda);e(G,function(e,t,n){reset_block_variables(n,this);const r=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);if(has_break_or_continue(this)){pop(e);push(e)}this.condition.walk(e);pop(e);e.in_loop=r;return true});e(W,function(e,t,n){reset_block_variables(n,this);if(this.init)this.init.walk(e);const r=e.in_loop;e.in_loop=this;push(e);if(this.condition)this.condition.walk(e);this.body.walk(e);if(this.step){if(has_break_or_continue(this)){pop(e);push(e)}this.step.walk(e)}pop(e);e.in_loop=r;return true});e(K,function(e,n,r){reset_block_variables(r,this);t(this.init);this.object.walk(e);const i=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);pop(e);e.in_loop=i;return true});e(ye,function(e){this.condition.walk(e);push(e);this.body.walk(e);pop(e);if(this.alternative){push(e);this.alternative.walk(e);pop(e)}return true});e(z,function(e){push(e);this.body.walk(e);pop(e);return true});e(_t,function(){this.definition().fixed=false});e(St,function(e,t,n){var r=this.definition();r.references.push(this);if(r.references.length==1&&!r.fixed&&r.orig[0]instanceof dt){e.loop_ids.set(r.id,e.in_loop)}var i;if(r.fixed===undefined||!safe_to_read(e,r)){r.fixed=false}else if(r.fixed){i=this.fixed_value();if(i instanceof $&&recursive_ref(e,r)){r.recursive_refs++}else if(i&&!n.exposed(r)&&ref_once(e,n,r)){r.single_use=i instanceof $&&!i.pinned()||i instanceof tt||r.scope===this.scope&&i.is_constant_expression()}else{r.single_use=false}if(is_modified(n,e,this,i,0,is_immutable(i))){if(r.single_use){r.single_use="m"}else{r.fixed=false}}}mark_escaped(e,r,this.scope,this,i,0,1)});e(Q,function(e,t,n){this.globals.forEach(function(e){reset_def(n,e)});reset_variables(e,n,this)});e(we,function(e,t,n){reset_block_variables(n,this);push(e);walk_body(this,e);pop(e);if(this.bcatch){push(e);this.bcatch.walk(e);pop(e)}if(this.bfinally)this.bfinally.walk(e);return true});e(ze,function(e){var t=this;if(t.operator!=="++"&&t.operator!=="--")return;var n=t.expression;if(!(n instanceof St))return;var r=n.definition();var i=safe_to_assign(e,r,n.scope,true);r.assignments++;if(!i)return;var s=r.fixed;if(!s)return;r.references.push(n);r.chained=true;r.fixed=function(){return make_node(Ge,t,{operator:t.operator.slice(0,-1),left:make_node(He,t,{operator:"+",expression:s instanceof F?s:s()}),right:make_node(Ot,t,{value:1})})};mark(e,r,true);return true});e(Te,function(e,n){var r=this;if(r.name instanceof ie){t(r.name);return}var i=r.name.definition();if(r.value){if(safe_to_assign(e,i,r.name.scope,r.value)){i.fixed=function(){return r.value};e.loop_ids.set(i.id,e.in_loop);mark(e,i,false);n();mark(e,i,true);return true}else{i.fixed=false}}});e(q,function(e,t,n){reset_block_variables(n,this);const r=e.in_loop;e.in_loop=this;push(e);t();pop(e);e.in_loop=r;return true})})(function(e,t){e.DEFMETHOD("reduce_vars",t)});Q.DEFMETHOD("reset_opt_flags",function(e){const t=this;const n=e.option("reduce_vars");const r=new TreeWalker(function(i,s){xn(i,Sn);if(n){if(e.top_retain&&i instanceof re&&r.parent()===t){Dn(i,wn)}return i.reduce_vars(r,s,e)}});r.safe_ids=Object.create(null);r.in_loop=null;r.loop_ids=new Map;r.defs_to_safe_ids=new Map;t.walk(r)});st.DEFMETHOD("fixed_value",function(){var e=this.thedef.fixed;if(!e||e instanceof F)return e;return e()});St.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return e.length==1&&e[0]instanceof gt});function is_func_expr(e){return e instanceof ne||e instanceof te}function is_lhs_read_only(e){if(e instanceof Ct)return true;if(e instanceof St)return e.definition().orig[0]instanceof gt;if(e instanceof Le){e=e.expression;if(e instanceof St){if(e.is_immutable())return false;e=e.fixed_value()}if(!e)return true;if(e instanceof It)return false;if(e instanceof Tt)return true;return is_lhs_read_only(e)}return false}function is_ref_of(e,t){if(!(e instanceof St))return false;var n=e.definition().orig;for(var r=n.length;--r>=0;){if(n[r]instanceof t)return true}}function find_scope(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof Q)return n;if(n instanceof $)return n;if(n.block_scope)return n.block_scope}}function find_variable(e,t){var n,r=0;while(n=e.parent(r++)){if(n instanceof Y)break;if(n instanceof Se&&n.argname){n=n.argname.definition().scope;break}}return n.find_variable(t)}function make_sequence(e,t){if(t.length==1)return t[0];if(t.length==0)throw new Error("trying to create a sequence with length zero!");return make_node(Ne,e,{expressions:t.reduce(merge_sequence,[])})}function make_node_from_constant(e,t){switch(typeof e){case"string":return make_node(Mt,t,{value:e});case"number":if(isNaN(e))return make_node(Nt,t);if(isFinite(e)){return 1/e<0?make_node(He,t,{operator:"-",expression:make_node(Ot,t,{value:-e})}):make_node(Ot,t,{value:e})}return e<0?make_node(He,t,{operator:"-",expression:make_node(jt,t)}):make_node(jt,t);case"boolean":return make_node(e?Ht:zt,t);case"undefined":return make_node(Lt,t);default:if(e===null){return make_node(Pt,t,{value:null})}if(e instanceof RegExp){return make_node(It,t,{value:{source:regexp_source_fix(e.source),flags:e.flags}})}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof e}))}}function maintain_this_binding(e,t,n){if(e instanceof He&&e.operator=="delete"||e instanceof Re&&e.expression===t&&(n instanceof Le||n instanceof St&&n.name=="eval")){return make_sequence(t,[make_node(Ot,t,{value:0}),n])}return n}function merge_sequence(e,t){if(t instanceof Ne){e.push(...t.expressions)}else{e.push(t)}return e}function as_statement_array(e){if(e===null)return[];if(e instanceof B)return e.body;if(e instanceof j)return[];if(e instanceof I)return[e];throw new Error("Can't convert thing to statement array")}function is_empty(e){if(e===null)return true;if(e instanceof j)return true;if(e instanceof B)return e.body.length==0;return false}function can_be_evicted_from_block(e){return!(e instanceof rt||e instanceof re||e instanceof Ce||e instanceof Ae||e instanceof Ie||e instanceof Oe)}function loop_body(e){if(e instanceof H){return e.body instanceof B?e.body:e}return e}function is_iife_call(e){if(e.TYPE!="Call")return false;return e.expression instanceof te||is_iife_call(e.expression)}function is_undeclared_ref(e){return e instanceof St&&e.definition().undeclared}var Cn=makePredicate("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");St.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&Cn.has(this.name)});var An=makePredicate("Infinity NaN undefined");function is_identifier_atom(e){return e instanceof jt||e instanceof Nt||e instanceof Lt}function tighten_body(e,t){var n,i;var s=t.find_parent(Y).get_defun_scope();find_loop_scope_try();var o,a=10;do{o=false;eliminate_spurious_blocks(e);if(t.option("dead_code")){eliminate_dead_code(e,t)}if(t.option("if_return")){handle_if_return(e,t)}if(t.sequences_limit>0){sequencesize(e,t);sequencesize_2(e,t)}if(t.option("join_vars")){join_consecutive_vars(e)}if(t.option("collapse_vars")){collapse(e,t)}}while(o&&a-- >0);function find_loop_scope_try(){var e=t.self(),r=0;do{if(e instanceof Se||e instanceof ke){r++}else if(e instanceof H){n=true}else if(e instanceof Y){s=e;break}else if(e instanceof we){i=true}}while(e=t.parent(r++))}function collapse(e,t){if(s.pinned())return e;var a;var c=[];var u=e.length;var l=new TreeTransformer(function(e){if(x)return e;if(!D){if(e!==p[d])return e;d++;if(d<p.length)return handle_custom_scan_order(e);D=true;g=find_stop(e,0);if(g===e)x=true;return e}var n=l.parent();if(e instanceof We&&e.operator!="="&&v.equivalent_to(e.left)||e instanceof me||e instanceof Re&&v instanceof Le&&v.equivalent_to(e.expression)||e instanceof R||e instanceof ie||e instanceof Z&&e.expression instanceof st&&e.expression.definition().references.length>1||e instanceof H&&!(e instanceof W)||e instanceof pe||e instanceof we||e instanceof J||e instanceof ge||e instanceof Ie||e instanceof tt||n instanceof W&&e!==n.init||!w&&(e instanceof St&&!e.is_declared(t)&&!Pn.has(e))||e instanceof St&&n instanceof Re&&has_annotation(n,Wt)){x=true;return e}if(!y&&(!b||!w)&&(n instanceof Ge&&Tn.has(n.operator)&&n.left!==e||n instanceof qe&&n.condition!==e||n instanceof ye&&n.condition!==e)){y=n}if(A&&!(e instanceof at)&&v.equivalent_to(e)){if(y){x=true;return e}if(is_lhs(e,n)){if(m)C++;return e}else{C++;if(m&&h instanceof Te)return e}o=x=true;if(h instanceof Ve){return make_node(He,h,h)}if(h instanceof Te){var r=h.name.definition();var s=h.value;if(r.references.length-r.replaced==1&&!t.exposed(r)){r.replaced++;if(k&&is_identifier_atom(s)){return s.transform(t)}else{return maintain_this_binding(n,e,s)}}return make_node(We,h,{operator:"=",left:make_node(St,h.name,h.name),right:s})}xn(h,_n);return h}var a;if(e instanceof Re||e instanceof ue&&(E||v instanceof Le||may_modify(v))||e instanceof Le&&(E||e.expression.may_throw_on_access(t))||e instanceof St&&(_.get(e.name)||E&&may_modify(e))||e instanceof Te&&e.value&&(_.has(e.name.name)||E&&may_modify(e.name))||(a=is_lhs(e.left,e))&&(a instanceof Le||_.has(a.name))||S&&(i?e.has_side_effects(t):side_effects_external(e))){g=e;if(e instanceof Y)x=true}return handle_custom_scan_order(e)},function(e){if(x)return;if(g===e)x=true;if(y===e)y=null});var f=new TreeTransformer(function(e){if(x)return e;if(!D){if(e!==p[d])return e;d++;if(d<p.length)return;D=true;return e}if(e instanceof St&&e.name==O.name){if(!--C)x=true;if(is_lhs(e,f.parent()))return e;O.replaced++;m.replaced--;return h.value}if(e instanceof be||e instanceof Y)return e});while(--u>=0){if(u==0&&t.option("unused"))extract_args();var p=[];extract_candidates(e[u]);while(c.length>0){p=c.pop();var d=0;var h=p[p.length-1];var m=null;var g=null;var y=null;var v=get_lhs(h);if(!v||is_lhs_read_only(v)||v.has_side_effects(t))continue;var _=get_lvalues(h);var b=is_lhs_local(v);if(v instanceof St)_.set(v.name,false);var E=value_has_side_effects(h);var w=replace_all_symbols();var S=h.may_throw(t);var k=h.name instanceof pt;var D=k;var x=false,C=0,A=!a||!D;if(!A){for(var T=t.self().argnames.lastIndexOf(h.name)+1;!x&&T<a.length;T++){a[T].transform(l)}A=true}for(var M=u;!x&&M<e.length;M++){e[M].transform(l)}if(m){var O=h.name.definition();if(x&&O.references.length-O.replaced>C)C=false;else{x=false;d=0;D=k;for(var M=u;!x&&M<e.length;M++){e[M].transform(f)}m.single_use=false}}if(C&&!remove_candidate(h))e.splice(u,1)}}function handle_custom_scan_order(e){if(e instanceof Y)return e;if(e instanceof ve){e.expression=e.expression.transform(l);for(var t=0,n=e.body.length;!x&&t<n;t++){var r=e.body[t];if(r instanceof Ee){if(!D){if(r!==p[d])continue;d++}r.expression=r.expression.transform(l);if(!w)break}}x=true;return e}}function redefined_within_scope(e,t){if(e.global)return false;let n=e.scope;while(n&&n!==t){if(n.variables.has(e.name))return true;n=n.parent_scope}return false}function has_overlapping_symbol(e,t,n){var r=false,i=!(e instanceof ne);t.walk(new TreeWalker(function(t,o){if(r)return true;if(t instanceof St&&(e.variables.has(t.name)||redefined_within_scope(t.definition(),e))){var a=t.definition().scope;if(a!==s)while(a=a.parent_scope){if(a===s)return true}return r=true}if((n||i)&&t instanceof Ct){return r=true}if(t instanceof Y&&!(t instanceof ne)){var c=i;i=false;o();i=c;return true}}));return r}function extract_args(){var e,n=t.self();if(is_func_expr(n)&&!n.name&&!n.uses_arguments&&!n.pinned()&&(e=t.parent())instanceof Re&&e.expression===n&&e.args.every(e=>!(e instanceof Z))){var r=t.has_directive("use strict");if(r&&!member(r,n.body))r=false;var i=n.argnames.length;a=e.args.slice(i);var s=new Set;for(var o=i;--o>=0;){var u=n.argnames[o];var l=e.args[o];const i=u.definition&&u.definition();const p=i&&i.orig.length>1;if(p)continue;a.unshift(make_node(Te,u,{name:u,value:l}));if(s.has(u.name))continue;s.add(u.name);if(u instanceof Z){var f=e.args.slice(o);if(f.every(e=>!has_overlapping_symbol(n,e,r))){c.unshift([make_node(Te,u,{name:u.expression,value:make_node(Xe,e,{elements:f})})])}}else{if(!l){l=make_node(Lt,u).transform(t)}else if(l instanceof $&&l.pinned()||has_overlapping_symbol(n,l,r)){l=null}if(l)c.unshift([make_node(Te,u,{name:u,value:l})])}}}}function extract_candidates(e){p.push(e);if(e instanceof We){if(!e.left.has_side_effects(t)){c.push(p.slice())}extract_candidates(e.right)}else if(e instanceof Ge){extract_candidates(e.left);extract_candidates(e.right)}else if(e instanceof Re&&!has_annotation(e,Wt)){extract_candidates(e.expression);e.args.forEach(extract_candidates)}else if(e instanceof Ee){extract_candidates(e.expression)}else if(e instanceof qe){extract_candidates(e.condition);extract_candidates(e.consequent);extract_candidates(e.alternative)}else if(e instanceof De){var n=e.definitions.length;var r=n-200;if(r<0)r=0;for(;r<n;r++){extract_candidates(e.definitions[r])}}else if(e instanceof V){extract_candidates(e.condition);if(!(e.body instanceof L)){extract_candidates(e.body)}}else if(e instanceof ue){if(e.value)extract_candidates(e.value)}else if(e instanceof W){if(e.init)extract_candidates(e.init);if(e.condition)extract_candidates(e.condition);if(e.step)extract_candidates(e.step);if(!(e.body instanceof L)){extract_candidates(e.body)}}else if(e instanceof K){extract_candidates(e.object);if(!(e.body instanceof L)){extract_candidates(e.body)}}else if(e instanceof ye){extract_candidates(e.condition);if(!(e.body instanceof L)){extract_candidates(e.body)}if(e.alternative&&!(e.alternative instanceof L)){extract_candidates(e.alternative)}}else if(e instanceof Ne){e.expressions.forEach(extract_candidates)}else if(e instanceof N){extract_candidates(e.body)}else if(e instanceof ve){extract_candidates(e.expression);e.body.forEach(extract_candidates)}else if(e instanceof ze){if(e.operator=="++"||e.operator=="--"){c.push(p.slice())}}else if(e instanceof Te){if(e.value){c.push(p.slice());extract_candidates(e.value)}}p.pop()}function find_stop(e,t,n){var r=l.parent(t);if(r instanceof We){if(n&&!(r.left instanceof Le||_.has(r.left.name))){return find_stop(r,t+1,n)}return e}if(r instanceof Ge){if(n&&(!Tn.has(r.operator)||r.left===e)){return find_stop(r,t+1,n)}return e}if(r instanceof Re)return e;if(r instanceof Ee)return e;if(r instanceof qe){if(n&&r.condition===e){return find_stop(r,t+1,n)}return e}if(r instanceof De){return find_stop(r,t+1,true)}if(r instanceof ue){return n?find_stop(r,t+1,n):e}if(r instanceof ye){if(n&&r.condition===e){return find_stop(r,t+1,n)}return e}if(r instanceof H)return e;if(r instanceof Ne){return find_stop(r,t+1,r.tail_node()!==e)}if(r instanceof N){return find_stop(r,t+1,true)}if(r instanceof ve)return e;if(r instanceof Te)return e;return null}function mangleable_var(e){var t=e.value;if(!(t instanceof St))return;if(t.name=="arguments")return;var n=t.definition();if(n.undeclared)return;return m=n}function get_lhs(e){if(e instanceof Te&&e.name instanceof at){var n=e.name.definition();if(!member(e.name,n.orig))return;var r=n.references.length-n.replaced;if(!r)return;var i=n.orig.length-n.eliminated;if(i>1&&!(e.name instanceof pt)||(r>1?mangleable_var(e):!t.exposed(n))){return make_node(St,e.name,e.name)}}else{const t=e[e instanceof We?"left":"expression"];return!is_ref_of(t,lt)&&!is_ref_of(t,ft)&&t}}function get_rvalue(e){return e[e instanceof We?"right":"value"]}function get_lvalues(e){var n=new Map;if(e instanceof ze)return n;var r=new TreeWalker(function(e){var i=e;while(i instanceof Le)i=i.expression;if(i instanceof St||i instanceof Ct){n.set(i.name,n.get(i.name)||is_modified(t,r,e,e,0))}});get_rvalue(e).walk(r);return n}function remove_candidate(n){if(n.name instanceof pt){var i=t.parent(),s=t.self().argnames;var o=s.indexOf(n.name);if(o<0){i.args.length=Math.min(i.args.length,s.length-1)}else{var a=i.args;if(a[o])a[o]=make_node(Ot,a[o],{value:0})}return true}var c=false;return e[u].transform(new TreeTransformer(function(e,t,i){if(c)return e;if(e===n||e.body===n){c=true;if(e instanceof Te){e.value=e.name instanceof lt?make_node(Lt,e.value):null;return e}return i?r.skip:null}},function(e){if(e instanceof Ne)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function is_lhs_local(e){while(e instanceof Le)e=e.expression;return e instanceof St&&e.definition().scope===s&&!(n&&(_.has(e.name)||h instanceof ze||h instanceof We&&h.operator!="="))}function value_has_side_effects(e){if(e instanceof ze)return Mn.has(e.operator);return get_rvalue(e).has_side_effects(t)}function replace_all_symbols(){if(E)return false;if(m)return true;if(v instanceof St){var e=v.definition();if(e.references.length-e.replaced==(h instanceof Te?1:2)){return true}}return false}function may_modify(e){if(!e.definition)return true;var t=e.definition();if(t.orig.length==1&&t.orig[0]instanceof dt)return false;if(t.scope.get_defun_scope()!==s)return true;return!t.references.every(e=>{var t=e.scope.get_defun_scope();if(t.TYPE=="Scope")t=t.parent_scope;return t===s})}function side_effects_external(e,t){if(e instanceof We)return side_effects_external(e.left,true);if(e instanceof ze)return side_effects_external(e.expression,true);if(e instanceof Te)return e.value&&side_effects_external(e.value);if(t){if(e instanceof Be)return side_effects_external(e.expression,true);if(e instanceof je)return side_effects_external(e.expression,true);if(e instanceof St)return e.definition().scope!==s}return false}}function eliminate_spurious_blocks(e){var t=[];for(var n=0;n<e.length;){var r=e[n];if(r instanceof B&&r.body.every(can_be_evicted_from_block)){o=true;eliminate_spurious_blocks(r.body);e.splice(n,1,...r.body);n+=r.body.length}else if(r instanceof j){o=true;e.splice(n,1)}else if(r instanceof P){if(t.indexOf(r.value)<0){n++;t.push(r.value)}else{o=true;e.splice(n,1)}}else n++}}function handle_if_return(e,t){var n=t.self();var r=has_multiple_if_returns(e);var i=n instanceof $;for(var s=e.length;--s>=0;){var a=e[s];var c=next_index(s);var u=e[c];if(i&&!u&&a instanceof le){if(!a.value){o=true;e.splice(s,1);continue}if(a.value instanceof He&&a.value.operator=="void"){o=true;e[s]=make_node(N,a,{body:a.value.expression});continue}}if(a instanceof ye){var l=aborts(a.body);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;a=a.clone();a.condition=a.condition.negate(t);var f=as_statement_array_with_return(a.body,l);a.body=make_node(B,a,{body:as_statement_array(a.alternative).concat(extract_functions())});a.alternative=make_node(B,a,{body:f});e[s]=a.transform(t);continue}var l=aborts(a.alternative);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;a=a.clone();a.body=make_node(B,a.body,{body:as_statement_array(a.body).concat(extract_functions())});var f=as_statement_array_with_return(a.alternative,l);a.alternative=make_node(B,a.alternative,{body:f});e[s]=a.transform(t);continue}}if(a instanceof ye&&a.body instanceof le){var p=a.body.value;if(!p&&!a.alternative&&(i&&!u||u instanceof le&&!u.value)){o=true;e[s]=make_node(N,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof le&&u.value){o=true;a=a.clone();a.alternative=u;e[s]=a.transform(t);e.splice(c,1);continue}if(p&&!a.alternative&&(!u&&i&&r||u instanceof le)){o=true;a=a.clone();a.alternative=u||make_node(le,a,{value:null});e[s]=a.transform(t);if(u)e.splice(c,1);continue}var d=e[prev_index(s)];if(t.option("sequences")&&i&&!a.alternative&&d instanceof ye&&d.body instanceof le&&next_index(c)==e.length&&u instanceof N){o=true;a=a.clone();a.alternative=make_node(B,u,{body:[u,make_node(le,u,{value:null})]});e[s]=a.transform(t);e.splice(c,1);continue}}}function has_multiple_if_returns(e){var t=0;for(var n=e.length;--n>=0;){var r=e[n];if(r instanceof ye&&r.body instanceof le){if(++t>1)return true}}return false}function is_return_void(e){return!e||e instanceof He&&e.operator=="void"}function can_merge_flow(r){if(!r)return false;for(var o=s+1,a=e.length;o<a;o++){var c=e[o];if(c instanceof Ae||c instanceof Ce)return false}var u=r instanceof pe?t.loopcontrol_target(r):null;return r instanceof le&&i&&is_return_void(r.value)||r instanceof he&&n===loop_body(u)||r instanceof de&&u instanceof B&&n===u}function extract_functions(){var t=e.slice(s+1);e.length=s+1;return t.filter(function(t){if(t instanceof re){e.push(t);return false}return true})}function as_statement_array_with_return(e,t){var n=as_statement_array(e).slice(0,-1);if(t.value){n.push(make_node(N,t.value,{body:t.value.expression}))}return n}function next_index(t){for(var n=t+1,r=e.length;n<r;n++){var i=e[n];if(!(i instanceof xe&&declarations_only(i))){break}}return n}function prev_index(t){for(var n=t;--n>=0;){var r=e[n];if(!(r instanceof xe&&declarations_only(r))){break}}return n}}function eliminate_dead_code(e,t){var n;var r=t.self();for(var i=0,s=0,a=e.length;i<a;i++){var c=e[i];if(c instanceof pe){var u=t.loopcontrol_target(c);if(c instanceof de&&!(u instanceof H)&&loop_body(u)===r||c instanceof he&&loop_body(u)===r){if(c.label){remove(c.label.thedef.references,c)}}else{e[s++]=c}}else{e[s++]=c}if(aborts(c)){n=e.slice(i+1);break}}e.length=s;o=s!=a;if(n)n.forEach(function(n){trim_unreachable_code(t,n,e)})}function declarations_only(e){return e.definitions.every(e=>!e.value)}function sequencesize(e,t){if(e.length<2)return;var n=[],r=0;function push_seq(){if(!n.length)return;var t=make_sequence(n[0],n);e[r++]=make_node(N,t,{body:t});n=[]}for(var i=0,s=e.length;i<s;i++){var a=e[i];if(a instanceof N){if(n.length>=t.sequences_limit)push_seq();var c=a.body;if(n.length>0)c=c.drop_side_effect_free(t);if(c)merge_sequence(n,c)}else if(a instanceof De&&declarations_only(a)||a instanceof re){e[r++]=a}else{push_seq();e[r++]=a}}push_seq();e.length=r;if(r!=s)o=true}function to_simple_statement(e,t){if(!(e instanceof B))return e;var n=null;for(var r=0,i=e.body.length;r<i;r++){var s=e.body[r];if(s instanceof xe&&declarations_only(s)){t.push(s)}else if(n){return false}else{n=s}}return n}function sequencesize_2(e,t){function cons_seq(e){n--;o=true;var i=r.body;return make_sequence(i,[i,e]).transform(t)}var n=0,r;for(var i=0;i<e.length;i++){var s=e[i];if(r){if(s instanceof ue){s.value=cons_seq(s.value||make_node(Lt,s).transform(t))}else if(s instanceof W){if(!(s.init instanceof De)){const e=walk(r.body,e=>{if(e instanceof Y)return true;if(e instanceof Ge&&e.operator==="in"){return Vt}});if(!e){if(s.init)s.init=cons_seq(s.init);else{s.init=r.body;n--;o=true}}}}else if(s instanceof K){if(!(s.init instanceof Ae)&&!(s.init instanceof Ce)){s.object=cons_seq(s.object)}}else if(s instanceof ye){s.condition=cons_seq(s.condition)}else if(s instanceof ve){s.expression=cons_seq(s.expression)}else if(s instanceof J){s.expression=cons_seq(s.expression)}}if(t.option("conditionals")&&s instanceof ye){var a=[];var c=to_simple_statement(s.body,a);var u=to_simple_statement(s.alternative,a);if(c!==false&&u!==false&&a.length>0){var l=a.length;a.push(make_node(ye,s,{condition:s.condition,body:c||make_node(j,s.body),alternative:u}));a.unshift(n,1);[].splice.apply(e,a);i+=l;n+=l+1;r=null;o=true;continue}}e[n++]=s;r=s instanceof N?s:null}e.length=n}function join_object_assignments(e,n){if(!(e instanceof De))return;var r=e.definitions[e.definitions.length-1];if(!(r.value instanceof Je))return;var i;if(n instanceof We){i=[n]}else if(n instanceof Ne){i=n.expressions.slice()}if(!i)return;var o=false;do{var a=i[0];if(!(a instanceof We))break;if(a.operator!="=")break;if(!(a.left instanceof Le))break;var c=a.left.expression;if(!(c instanceof St))break;if(r.name.name!=c.name)break;if(!a.right.is_constant_expression(s))break;var u=a.left.property;if(u instanceof F){u=u.evaluate(t)}if(u instanceof F)break;u=""+u;var l=t.option("ecma")<2015&&t.has_directive("use strict")?function(e){return e.key!=u&&(e.key&&e.key.name!=u)}:function(e){return e.key&&e.key.name!=u};if(!r.value.properties.every(l))break;var f=r.value.properties.filter(function(e){return e.key===u})[0];if(!f){r.value.properties.push(make_node(Qe,a,{key:u,value:a.right}))}else{f.value=new Ne({start:f.start,expressions:[f.value.clone(),a.right.clone()],end:f.end})}i.shift();o=true}while(i.length);return o&&i}function join_consecutive_vars(e){var t;for(var n=0,r=-1,i=e.length;n<i;n++){var s=e[n];var a=e[r];if(s instanceof De){if(a&&a.TYPE==s.TYPE){a.definitions=a.definitions.concat(s.definitions);o=true}else if(t&&t.TYPE==s.TYPE&&declarations_only(s)){t.definitions=t.definitions.concat(s.definitions);o=true}else{e[++r]=s;t=s}}else if(s instanceof ue){s.value=extract_object_assignments(s.value)}else if(s instanceof W){var c=join_object_assignments(a,s.init);if(c){o=true;s.init=c.length?make_sequence(s.init,c):null;e[++r]=s}else if(a instanceof xe&&(!s.init||s.init.TYPE==a.TYPE)){if(s.init){a.definitions=a.definitions.concat(s.init.definitions)}s.init=a;e[r]=s;o=true}else if(t&&s.init&&t.TYPE==s.init.TYPE&&declarations_only(s.init)){t.definitions=t.definitions.concat(s.init.definitions);s.init=null;e[++r]=s;o=true}else{e[++r]=s}}else if(s instanceof K){s.object=extract_object_assignments(s.object)}else if(s instanceof ye){s.condition=extract_object_assignments(s.condition)}else if(s instanceof N){var c=join_object_assignments(a,s.body);if(c){o=true;if(!c.length)continue;s.body=make_sequence(s.body,c)}e[++r]=s}else if(s instanceof ve){s.expression=extract_object_assignments(s.expression)}else if(s instanceof J){s.expression=extract_object_assignments(s.expression)}else{e[++r]=s}}e.length=r+1;function extract_object_assignments(t){e[++r]=s;var n=join_object_assignments(a,t);if(n){o=true;if(n.length){return make_sequence(t,n)}else if(t instanceof Ne){return t.tail_node().left}else{return t.left}}return t}}}function trim_unreachable_code(e,t,n){walk(t,r=>{if(r instanceof xe){r.remove_initializers();n.push(r);return true}if(r instanceof re&&(r===t||!e.has_directive("use strict"))){n.push(r===t?r:make_node(xe,r,{definitions:[make_node(Te,r,{name:make_node(ct,r.name,r.name),value:null})]}));return true}if(r instanceof Ie||r instanceof Oe){n.push(r);return true}if(r instanceof Y){return true}})}function get_value(e){if(e instanceof Tt){return e.getValue()}if(e instanceof He&&e.operator=="void"&&e.expression instanceof Tt){return}return e}function is_undefined(e,t){return kn(e,yn)||e instanceof Lt||e instanceof He&&e.operator=="void"&&!e.expression.has_side_effects(t)}(function(e){F.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)});function is_strict(e){return/strict/.test(e.option("pure_getters"))}e(F,is_strict);e(Pt,return_true);e(Lt,return_true);e(Tt,return_false);e(Xe,return_false);e(Je,function(e){if(!is_strict(e))return false;for(var t=this.properties.length;--t>=0;)if(this.properties[t]._dot_throw(e))return true;return false});e(tt,return_false);e(Ye,return_false);e($e,return_true);e(Z,function(e){return this.expression._dot_throw(e)});e(te,return_false);e(ne,return_false);e(Ve,return_false);e(He,function(){return this.operator=="void"});e(Ge,function(e){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(e)||this.right._dot_throw(e))});e(We,function(e){return this.operator=="="&&this.right._dot_throw(e)});e(qe,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)});e(Be,function(e){if(!is_strict(e))return false;if(this.expression instanceof te&&this.property=="prototype")return false;return true});e(Ue,function(e){return this.expression._dot_throw(e)});e(Ne,function(e){return this.tail_node()._dot_throw(e)});e(St,function(e){if(this.name==="arguments")return false;if(kn(this,yn))return true;if(!is_strict(e))return false;if(is_undeclared_ref(this)&&this.is_declared(e))return false;if(this.is_immutable())return false;var t=this.fixed_value();return!t||t._dot_throw(e)})})(function(e,t){e.DEFMETHOD("_dot_throw",t)});(function(e){const t=makePredicate("! delete");const n=makePredicate("in instanceof == != === !== < <= >= >");e(F,return_false);e(He,function(){return t.has(this.operator)});e(Ge,function(){return n.has(this.operator)||Tn.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()});e(qe,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});e(We,function(){return this.operator=="="&&this.right.is_boolean()});e(Ne,function(){return this.tail_node().is_boolean()});e(Ht,return_true);e(zt,return_true)})(function(e,t){e.DEFMETHOD("is_boolean",t)});(function(e){e(F,return_false);e(Ot,return_true);var t=makePredicate("+ - ~ ++ --");e(ze,function(){return t.has(this.operator)});var n=makePredicate("- * / % & | ^ << >> >>>");e(Ge,function(e){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(e)&&this.right.is_number(e)});e(We,function(e){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(e)});e(Ne,function(e){return this.tail_node().is_number(e)});e(qe,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})})(function(e,t){e.DEFMETHOD("is_number",t)});(function(e){e(F,return_false);e(Mt,return_true);e(oe,return_true);e(He,function(){return this.operator=="typeof"});e(Ge,function(e){return this.operator=="+"&&(this.left.is_string(e)||this.right.is_string(e))});e(We,function(e){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(e)});e(Ne,function(e){return this.tail_node().is_string(e)});e(qe,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})})(function(e,t){e.DEFMETHOD("is_string",t)});var Tn=makePredicate("&& || ??");var Mn=makePredicate("delete ++ --");function is_lhs(e,t){if(t instanceof ze&&Mn.has(t.operator))return t.expression;if(t instanceof We&&t.left===e)return e}(function(e){function to_node(e,t){if(e instanceof F)return make_node(e.CTOR,t,e);if(Array.isArray(e))return make_node(Xe,t,{elements:e.map(function(e){return to_node(e,t)})});if(e&&typeof e=="object"){var n=[];for(var r in e)if(HOP(e,r)){n.push(make_node(Qe,t,{key:r,value:to_node(e[r],t)}))}return make_node(Je,t,{properties:n})}return make_node_from_constant(e,t)}Q.DEFMETHOD("resolve_defines",function(e){if(!e.option("global_defs"))return this;this.figure_out_scope({ie8:e.option("ie8")});return this.transform(new TreeTransformer(function(t){var n=t._find_defs(e,"");if(!n)return;var r=0,i=t,s;while(s=this.parent(r++)){if(!(s instanceof Le))break;if(s.expression!==i)break;i=s}if(is_lhs(i,s)){return}return n}))});e(F,noop);e(Ue,function(e,t){return this.expression._find_defs(e,t)});e(Be,function(e,t){return this.expression._find_defs(e,"."+this.property+t)});e(at,function(){if(!this.global())return});e(St,function(e,t){if(!this.global())return;var n=e.option("global_defs");var r=this.name+t;if(HOP(n,r))return to_node(n[r],this)})})(function(e,t){e.DEFMETHOD("_find_defs",t)});function best_of_expression(e,t){return e.size()>t.size()?t:e}function best_of_statement(e,t){return best_of_expression(make_node(N,e,{body:e}),make_node(N,t,{body:t})).body}function best_of(e,t,n){return(first_in_statement(e)?best_of_statement:best_of_expression)(t,n)}function convert_to_predicate(e){const t=new Map;for(var n of Object.keys(e)){t.set(n,makePredicate(e[n]))}return t}var On=["constructor","toString","valueOf"];var Fn=convert_to_predicate({Array:["indexOf","join","lastIndexOf","slice"].concat(On),Boolean:On,Function:On,Number:["toExponential","toFixed","toPrecision"].concat(On),Object:On,RegExp:["test"].concat(On),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(On)});var In=convert_to_predicate({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});(function(e){F.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);if(!t||t instanceof RegExp)return t;if(typeof t=="function"||typeof t=="object")return this;return t});var t=makePredicate("! ~ - + void");F.DEFMETHOD("is_constant",function(){if(this instanceof Tt){return!(this instanceof It)}else{return this instanceof He&&this.expression instanceof Tt&&t.has(this.operator)}});e(I,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});e($,return_this);e(tt,return_this);e(F,return_this);e(Tt,function(){return this.getValue()});e(Ft,return_this);e(It,function(e){let t=e.evaluated_regexps.get(this);if(t===undefined){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this});e(oe,function(){if(this.segments.length!==1)return this;return this.segments[0].value});e(te,function(e){if(e.option("unsafe")){var t=function(){};t.node=this;t.toString=function(){return this.node.print_to_string()};return t}return this});e(Xe,function(e,t){if(e.option("unsafe")){var n=[];for(var r=0,i=this.elements.length;r<i;r++){var s=this.elements[r];var o=s._eval(e,t);if(s===o)return this;n.push(o)}return n}return this});e(Je,function(e,t){if(e.option("unsafe")){var n={};for(var r=0,i=this.properties.length;r<i;r++){var s=this.properties[r];if(s instanceof Z)return this;var o=s.key;if(o instanceof st){o=o.name}else if(o instanceof F){o=o._eval(e,t);if(o===s.key)return this}if(typeof Object.prototype[o]==="function"){return this}if(s.value instanceof te)continue;n[o]=s.value._eval(e,t);if(n[o]===s.value)return this}return n}return this});var n=makePredicate("! typeof void");e(He,function(e,t){var r=this.expression;if(e.option("typeofs")&&this.operator=="typeof"&&(r instanceof $||r instanceof St&&r.fixed_value()instanceof $)){return typeof function(){}}if(!n.has(this.operator))t++;r=r._eval(e,t);if(r===this.expression)return this;switch(this.operator){case"!":return!r;case"typeof":if(r instanceof RegExp)return this;return typeof r;case"void":return void r;case"~":return~r;case"-":return-r;case"+":return+r}return this});var r=makePredicate("&& || ?? === !==");const i=makePredicate("== != === !==");const s=e=>typeof e==="object"||typeof e==="function"||typeof e==="symbol";e(Ge,function(e,t){if(!r.has(this.operator))t++;var n=this.left._eval(e,t);if(n===this.left)return this;var o=this.right._eval(e,t);if(o===this.right)return this;var a;if(n!=null&&o!=null&&i.has(this.operator)&&s(n)&&s(o)&&typeof n===typeof o){return this}switch(this.operator){case"&&":a=n&&o;break;case"||":a=n||o;break;case"??":a=n!=null?n:o;break;case"|":a=n|o;break;case"&":a=n&o;break;case"^":a=n^o;break;case"+":a=n+o;break;case"*":a=n*o;break;case"**":a=Math.pow(n,o);break;case"/":a=n/o;break;case"%":a=n%o;break;case"-":a=n-o;break;case"<<":a=n<<o;break;case">>":a=n>>o;break;case">>>":a=n>>>o;break;case"==":a=n==o;break;case"===":a=n===o;break;case"!=":a=n!=o;break;case"!==":a=n!==o;break;case"<":a=n<o;break;case"<=":a=n<=o;break;case">":a=n>o;break;case">=":a=n>=o;break;default:return this}if(isNaN(a)&&e.find_parent(J)){return this}return a});e(qe,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var r=n?this.consequent:this.alternative;var i=r._eval(e,t);return i===r?this:i});const o=new Set;e(St,function(e,t){if(o.has(this))return this;var n=this.fixed_value();if(!n)return this;o.add(this);const r=n._eval(e,t);o.delete(this);if(r===n)return this;if(r&&typeof r=="object"){var i=this.definition().escaped;if(i&&t>i)return this}return r});var a={Array:Array,Math:Math,Number:Number,Object:Object,String:String};var c=convert_to_predicate({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(Le,function(e,t){if(this.optional){const n=this.expression._eval(e,t);if(n==null)return undefined}if(e.option("unsafe")){var n=this.property;if(n instanceof F){n=n._eval(e,t);if(n===this.property)return this}var r=this.expression;var i;if(is_undeclared_ref(r)){var s;var o=r.name==="hasOwnProperty"&&n==="call"&&(s=e.parent()&&e.parent().args)&&(s&&s[0]&&s[0].evaluate(e));o=o instanceof Be?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var u=c.get(r.name);if(!u||!u.has(n))return this;i=a[r.name]}else{i=r._eval(e,t+1);if(!i||i===r||!HOP(i,n))return this;if(typeof i=="function")switch(n){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[n]}return this});e(Ue,function(e,t){return this.expression._eval(e,t)});e(Re,function(e,t){var n=this.expression;if(this.optional){const n=this.expression._eval(e,t);if(n==null)return undefined}if(e.option("unsafe")&&n instanceof Le){var r=n.property;if(r instanceof F){r=r._eval(e,t);if(r===n.property)return this}var i;var s=n.expression;if(is_undeclared_ref(s)){var o=s.name==="hasOwnProperty"&&r==="call"&&(this.args[0]&&this.args[0].evaluate(e));o=o instanceof Be?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var c=In.get(s.name);if(!c||!c.has(r))return this;i=a[s.name]}else{i=s._eval(e,t+1);if(i===s||!i)return this;var u=Fn.get(i.constructor.name);if(!u||!u.has(r))return this}var l=[];for(var f=0,p=this.args.length;f<p;f++){var d=this.args[f];var h=d._eval(e,t);if(d===h)return this;l.push(h)}try{return i[r].apply(i,l)}catch(e){}}return this});e(Pe,return_this)})(function(e,t){e.DEFMETHOD("_eval",t)});(function(e){function basic_negation(e){return make_node(He,e,{operator:"!",expression:e})}function best(e,t,n){var r=basic_negation(e);if(n){var i=make_node(N,t,{body:t});return best_of_expression(r,i)===i?t:r}return best_of_expression(r,t)}e(F,function(){return basic_negation(this)});e(I,function(){throw new Error("Cannot negate a statement")});e(te,function(){return basic_negation(this)});e(ne,function(){return basic_negation(this)});e(He,function(){if(this.operator=="!")return this.expression;return basic_negation(this)});e(Ne,function(e){var t=this.expressions.slice();t.push(t.pop().negate(e));return make_sequence(this,t)});e(qe,function(e,t){var n=this.clone();n.consequent=n.consequent.negate(e);n.alternative=n.alternative.negate(e);return best(this,n,t)});e(Ge,function(e,t){var n=this.clone(),r=this.operator;if(e.option("unsafe_comps")){switch(r){case"<=":n.operator=">";return n;case"<":n.operator=">=";return n;case">=":n.operator="<";return n;case">":n.operator="<=";return n}}switch(r){case"==":n.operator="!=";return n;case"!=":n.operator="==";return n;case"===":n.operator="!==";return n;case"!==":n.operator="===";return n;case"&&":n.operator="||";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"||":n.operator="&&";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"??":n.right=n.right.negate(e);return best(this,n,t)}return basic_negation(this)})})(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var Rn=makePredicate("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");Re.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;var n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&t.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared)){return false}if(is_undeclared_ref(t)&&Rn.has(t.name))return true;let r;if(t instanceof Be&&is_undeclared_ref(t.expression)&&(r=In.get(t.expression.name))&&r.has(t.property)){return true}}return!!has_annotation(this,Gt)||!e.pure_funcs(this)});F.DEFMETHOD("is_call_pure",return_false);Be.DEFMETHOD("is_call_pure",function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;if(t instanceof Xe){n=Fn.get("Array")}else if(t.is_boolean()){n=Fn.get("Boolean")}else if(t.is_number(e)){n=Fn.get("Number")}else if(t instanceof It){n=Fn.get("RegExp")}else if(t.is_string(e)){n=Fn.get("String")}else if(!this.may_throw_on_access(e)){n=Fn.get("Object")}return n&&n.has(this.property)});const Pn=new Set(["Number","String","Array","Object","Function","Promise"]);(function(e){e(F,return_true);e(j,return_false);e(Tt,return_false);e(Ct,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return true;return false}e(L,function(e){return any(this.body,e)});e(Re,function(e){if(!this.is_expr_pure(e)&&(!this.expression.is_call_pure(e)||this.expression.has_side_effects(e))){return true}return any(this.args,e)});e(ve,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(Ee,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(we,function(e){return any(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)});e(ye,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)});e(z,function(e){return this.body.has_side_effects(e)});e(N,function(e){return this.body.has_side_effects(e)});e($,return_false);e(tt,function(e){if(this.extends&&this.extends.has_side_effects(e)){return true}return any(this.properties,e)});e(Ge,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)});e(We,return_true);e(qe,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)});e(ze,function(e){return Mn.has(this.operator)||this.expression.has_side_effects(e)});e(St,function(e){return!this.is_declared(e)&&!Pn.has(this.name)});e(mt,return_false);e(at,return_false);e(Je,function(e){return any(this.properties,e)});e(Ye,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value.has_side_effects(e)});e(nt,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)});e(et,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e($e,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Ze,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Xe,function(e){return any(this.elements,e)});e(Be,function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)});e(je,function(e){if(this.optional&&is_nullish(this.expression)){return false}return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)});e(Ue,function(e){return this.expression.has_side_effects(e)});e(Ne,function(e){return any(this.expressions,e)});e(De,function(e){return any(this.definitions,e)});e(Te,function(){return this.value});e(ae,return_false);e(oe,function(e){return any(this.segments,e)})})(function(e,t){e.DEFMETHOD("has_side_effects",t)});(function(e){e(F,return_true);e(Tt,return_false);e(j,return_false);e($,return_false);e(at,return_false);e(Ct,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return true;return false}e(tt,function(e){if(this.extends&&this.extends.may_throw(e))return true;return any(this.properties,e)});e(Xe,function(e){return any(this.elements,e)});e(We,function(e){if(this.right.may_throw(e))return true;if(!e.has_directive("use strict")&&this.operator=="="&&this.left instanceof St){return false}return this.left.may_throw(e)});e(Ge,function(e){return this.left.may_throw(e)||this.right.may_throw(e)});e(L,function(e){return any(this.body,e)});e(Re,function(e){if(this.optional&&is_nullish(this.expression))return false;if(any(this.args,e))return true;if(this.is_expr_pure(e))return false;if(this.expression.may_throw(e))return true;return!(this.expression instanceof $)||any(this.expression.body,e)});e(Ee,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(qe,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)});e(De,function(e){return any(this.definitions,e)});e(ye,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)});e(z,function(e){return this.body.may_throw(e)});e(Je,function(e){return any(this.properties,e)});e(Ye,function(e){return this.value.may_throw(e)});e(nt,function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)});e(et,function(e){return this.computed_key()&&this.key.may_throw(e)});e($e,function(e){return this.computed_key()&&this.key.may_throw(e)});e(Ze,function(e){return this.computed_key()&&this.key.may_throw(e)});e(le,function(e){return this.value&&this.value.may_throw(e)});e(Ne,function(e){return any(this.expressions,e)});e(N,function(e){return this.body.may_throw(e)});e(Be,function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)});e(je,function(e){if(this.optional&&is_nullish(this.expression))return false;return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)});e(Ue,function(e){return this.expression.may_throw(e)});e(ve,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(St,function(e){return!this.is_declared(e)&&!Pn.has(this.name)});e(mt,return_false);e(we,function(e){return this.bcatch?this.bcatch.may_throw(e):any(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)});e(ze,function(e){if(this.operator=="typeof"&&this.expression instanceof St)return false;return this.expression.may_throw(e)});e(Te,function(e){if(!this.value)return false;return this.value.may_throw(e)})})(function(e,t){e.DEFMETHOD("may_throw",t)});(function(e){function all_refs_local(e){let t=true;walk(this,n=>{if(n instanceof St){if(kn(this,vn)){t=false;return Vt}var r=n.definition();if(member(r,this.enclosed)&&!this.variables.has(r.name)){if(e){var i=e.find_variable(n);if(r.undeclared?!i:i===r){t="f";return true}}t=false;return Vt}return true}if(n instanceof Ct&&this instanceof ne){t=false;return Vt}});return t}e(F,return_false);e(Tt,return_true);e(tt,function(e){if(this.extends&&!this.extends.is_constant_expression(e)){return false}for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e)){return false}if(t.static&&t.value&&!t.value.is_constant_expression(e)){return false}}return all_refs_local.call(this,e)});e($,all_refs_local);e(ze,function(){return this.expression.is_constant_expression()});e(Ge,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()});e(Xe,function(){return this.elements.every(e=>e.is_constant_expression())});e(Je,function(){return this.properties.every(e=>e.is_constant_expression())});e(Ye,function(){return!(this.key instanceof F)&&this.value.is_constant_expression()})})(function(e,t){e.DEFMETHOD("is_constant_expression",t)});function aborts(e){return e&&e.aborts()}(function(e){e(I,return_null);e(ce,return_this);function block_aborts(){for(var e=0;e<this.body.length;e++){if(aborts(this.body[e])){return this.body[e]}}return null}e(Oe,function(){return null});e(B,block_aborts);e(_e,block_aborts);e(ye,function(){return this.alternative&&aborts(this.body)&&aborts(this.alternative)&&this})})(function(e,t){e.DEFMETHOD("aborts",t)});var Nn=new Set(["use asm","use strict"]);def_optimize(P,function(e,t){if(t.option("directives")&&(!Nn.has(e.value)||t.has_directive(e.value)!==e)){return make_node(j,e)}return e});def_optimize(R,function(e,t){if(t.option("drop_debugger"))return make_node(j,e);return e});def_optimize(z,function(e,t){if(e.body instanceof de&&t.loopcontrol_target(e.body)===e.body){return make_node(j,e)}return e.label.references.length==0?e.body:e});def_optimize(L,function(e,t){tighten_body(e.body,t);return e});function can_be_extracted_from_if_block(e){return!(e instanceof Ae||e instanceof Ce||e instanceof tt)}def_optimize(B,function(e,t){tighten_body(e.body,t);switch(e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof ye&&can_be_extracted_from_if_block(e.body[0])||can_be_evicted_from_block(e.body[0])){return e.body[0]}break;case 0:return make_node(j,e)}return e});function opt_AST_Lambda(e,t){tighten_body(e.body,t);if(t.option("side_effects")&&e.body.length==1&&e.body[0]===t.has_directive("use strict")){e.body.length=0}return e}def_optimize($,opt_AST_Lambda);const Ln=/keep_assign/;Y.DEFMETHOD("drop_unused",function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned())return;var n=!(t instanceof Q)||e.toplevel.funcs;var i=!(t instanceof Q)||e.toplevel.vars;const s=Ln.test(e.option("unused"))?return_false:function(e){if(e instanceof We&&(kn(e,_n)||e.operator=="=")){return e.left}if(e instanceof ze&&kn(e,_n)){return e.expression}};var o=new Map;var a=new Map;if(t instanceof Q&&e.top_retain){t.variables.forEach(function(t){if(e.top_retain(t)&&!o.has(t.id)){o.set(t.id,t)}})}var c=new Map;var u=new Map;var l=this;var f=new TreeWalker(function(r,s){if(r instanceof $&&r.uses_arguments&&!f.has_directive("use strict")){r.argnames.forEach(function(e){if(!(e instanceof at))return;var t=e.definition();if(!o.has(t.id)){o.set(t.id,t)}})}if(r===t)return;if(r instanceof re||r instanceof rt){var p=r.name.definition();const i=f.parent()instanceof Ie;if(i||!n&&l===t){if(p.global&&!o.has(p.id)){o.set(p.id,p)}}if(r instanceof rt){if(r.extends&&(r.extends.has_side_effects(e)||r.extends.may_throw(e))){r.extends.walk(f)}for(const t of r.properties){if(t.has_side_effects(e)||t.may_throw(e)){t.walk(f)}}}map_add(u,p.id,r);return true}if(r instanceof pt&&l===t){map_add(c,r.definition().id,r)}if(r instanceof De&&l===t){const t=f.parent()instanceof Ie;r.definitions.forEach(function(n){if(n.name instanceof ct){map_add(c,n.name.definition().id,n)}if(t||!i){walk(n.name,e=>{if(e instanceof at){const n=e.definition();if((t||n.global)&&!o.has(n.id)){o.set(n.id,n)}}})}if(n.value){if(n.name instanceof ie){n.walk(f)}else{var r=n.name.definition();map_add(u,r.id,n.value);if(!r.chained&&n.name.fixed_value()===n.value){a.set(r.id,n)}}if(n.value.has_side_effects(e)){n.value.walk(f)}}});return true}return scan_ref_scoped(r,s)});t.walk(f);f=new TreeWalker(scan_ref_scoped);o.forEach(function(e){var t=u.get(e.id);if(t)t.forEach(function(e){e.walk(f)})});var p=new TreeTransformer(function before(u,f,d){var h=p.parent();if(i){const e=s(u);if(e instanceof St){var m=e.definition();var g=o.has(m.id);if(u instanceof We){if(!g||a.has(m.id)&&a.get(m.id)!==u){return maintain_this_binding(h,u,u.right.transform(p))}}else if(!g)return d?r.skip:make_node(Ot,u,{value:0})}}if(l!==t)return;var m;if(u.name&&(u instanceof it&&!keep_name(e.option("keep_classnames"),(m=u.name.definition()).name)||u instanceof te&&!keep_name(e.option("keep_fnames"),(m=u.name.definition()).name))){if(!o.has(m.id)||m.orig.length>1)u.name=null}if(u instanceof $&&!(u instanceof ee)){var y=!e.option("keep_fargs");for(var v=u.argnames,_=v.length;--_>=0;){var b=v[_];if(b instanceof Z){b=b.expression}if(b instanceof Ke){b=b.left}if(!(b instanceof ie)&&!o.has(b.definition().id)){Dn(b,hn);if(y){v.pop()}}else{y=false}}}if((u instanceof re||u instanceof rt)&&u!==t){const t=u.name.definition();let i=t.global&&!n||o.has(t.id);if(!i){t.eliminated++;if(u instanceof rt){const t=u.drop_side_effect_free(e);if(t){return make_node(N,u,{body:t})}}return d?r.skip:make_node(j,u)}}if(u instanceof De&&!(h instanceof K&&h.init===u)){var E=!(h instanceof Q)&&!(u instanceof xe);var w=[],S=[],k=[];var D=[];u.definitions.forEach(function(t){if(t.value)t.value=t.value.transform(p);var n=t.name instanceof ie;var r=n?new SymbolDef(null,{name:"<destructure>"}):t.name.definition();if(E&&r.global)return k.push(t);if(!(i||E)||n&&(t.name.names.length||t.name.is_array||e.option("pure_getters")!=true)||o.has(r.id)){if(t.value&&a.has(r.id)&&a.get(r.id)!==t){t.value=t.value.drop_side_effect_free(e)}if(t.name instanceof ct){var s=c.get(r.id);if(s.length>1&&(!t.value||r.orig.indexOf(t.name)>r.eliminated)){if(t.value){var l=make_node(St,t.name,t.name);r.references.push(l);var f=make_node(We,t,{operator:"=",left:l,right:t.value});if(a.get(r.id)===t){a.set(r.id,f)}D.push(f.transform(p))}remove(s,t);r.eliminated++;return}}if(t.value){if(D.length>0){if(k.length>0){D.push(t.value);t.value=make_sequence(t.value,D)}else{w.push(make_node(N,u,{body:make_sequence(u,D)}))}D=[]}k.push(t)}else{S.push(t)}}else if(r.orig[0]instanceof _t){var d=t.value&&t.value.drop_side_effect_free(e);if(d)D.push(d);t.value=null;S.push(t)}else{var d=t.value&&t.value.drop_side_effect_free(e);if(d){D.push(d)}r.eliminated++}});if(S.length>0||k.length>0){u.definitions=S.concat(k);w.push(u)}if(D.length>0){w.push(make_node(N,u,{body:make_sequence(u,D)}))}switch(w.length){case 0:return d?r.skip:make_node(j,u);case 1:return w[0];default:return d?r.splice(w):make_node(B,u,{body:w})}}if(u instanceof W){f(u,this);var x;if(u.init instanceof B){x=u.init;u.init=x.body.pop();x.body.push(u)}if(u.init instanceof N){u.init=u.init.body}else if(is_empty(u.init)){u.init=null}return!x?u:d?r.splice(x.body):x}if(u instanceof z&&u.body instanceof W){f(u,this);if(u.body instanceof B){var x=u.body;u.body=x.body.pop();x.body.push(u);return d?r.splice(x.body):x}return u}if(u instanceof B){f(u,this);if(d&&u.body.every(can_be_evicted_from_block)){return r.splice(u.body)}return u}if(u instanceof Y){const e=l;l=u;f(u,this);l=e;return u}});t.transform(p);function scan_ref_scoped(e,n){var r;const i=s(e);if(i instanceof St&&!is_ref_of(e.left,ut)&&t.variables.get(i.name)===(r=i.definition())){if(e instanceof We){e.right.walk(f);if(!r.chained&&e.left.fixed_value()===e.right){a.set(r.id,e)}}return true}if(e instanceof St){r=e.definition();if(!o.has(r.id)){o.set(r.id,r);if(r.orig[0]instanceof _t){const e=r.scope.is_block_scope()&&r.scope.get_defun_scope().variables.get(r.name);if(e)o.set(e.id,e)}}return true}if(e instanceof Y){var c=l;l=e;n();l=c;return true}}});Y.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs");var r=e.option("hoist_vars");if(n||r){var i=[];var s=[];var o=new Map,a=0,c=0;walk(t,e=>{if(e instanceof Y&&e!==t)return true;if(e instanceof xe){++c;return true}});r=r&&c>1;var u=new TreeTransformer(function before(c){if(c!==t){if(c instanceof P){i.push(c);return make_node(j,c)}if(n&&c instanceof re&&!(u.parent()instanceof Ie)&&u.parent()===t){s.push(c);return make_node(j,c)}if(r&&c instanceof xe){c.definitions.forEach(function(e){if(e.name instanceof ie)return;o.set(e.name.name,e);++a});var l=c.to_assignments(e);var f=u.parent();if(f instanceof K&&f.init===c){if(l==null){var p=c.definitions[0].name;return make_node(St,p,p)}return l}if(f instanceof W&&f.init===c){return l}if(!l)return make_node(j,c);return make_node(N,c,{body:l})}if(c instanceof Y)return c}});t=t.transform(u);if(a>0){var l=[];const e=t instanceof $;const n=e?t.args_as_names():null;o.forEach((t,r)=>{if(e&&n.some(e=>e.name===t.name.name)){o.delete(r)}else{t=t.clone();t.value=null;l.push(t);o.set(r,t)}});if(l.length>0){for(var f=0;f<t.body.length;){if(t.body[f]instanceof N){var p=t.body[f].body,d,h;if(p instanceof We&&p.operator=="="&&(d=p.left)instanceof st&&o.has(d.name)){var m=o.get(d.name);if(m.value)break;m.value=p.right;remove(l,m);l.push(m);t.body.splice(f,1);continue}if(p instanceof Ne&&(h=p.expressions[0])instanceof We&&h.operator=="="&&(d=h.left)instanceof st&&o.has(d.name)){var m=o.get(d.name);if(m.value)break;m.value=h.right;remove(l,m);l.push(m);t.body[f].body=make_sequence(p,p.expressions.slice(1));continue}}if(t.body[f]instanceof j){t.body.splice(f,1);continue}if(t.body[f]instanceof B){var g=[f,1].concat(t.body[f].body);t.body.splice.apply(t.body,g);continue}break}l=make_node(xe,t,{definitions:l});s.push(l)}}t.body=i.concat(s,t.body)}return t});Y.DEFMETHOD("hoist_properties",function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var n=t instanceof Q&&e.top_retain||return_false;var i=new Map;var s=new TreeTransformer(function(o,a){if(o instanceof De&&s.parent()instanceof Ie)return o;if(o instanceof Te){const c=o.name;let u;let l;if(c.scope===t&&(u=c.definition()).escaped!=1&&!u.assignments&&!u.direct_access&&!u.single_use&&!e.exposed(u)&&!n(u)&&(l=c.fixed_value())===o.value&&l instanceof Je&&!l.properties.some(e=>e.computed_key())){a(o,this);const e=new Map;const n=[];l.properties.forEach(({key:r,value:i})=>{const a=t.create_symbol(c.CTOR,{source:c,scope:find_scope(s),tentative_name:c.name+"_"+r});e.set(String(r),a.definition());n.push(make_node(Te,o,{name:a,value:i}))});i.set(u.id,e);return r.splice(n)}}else if(o instanceof Le&&o.expression instanceof St){const e=i.get(o.expression.definition().id);if(e){const t=e.get(String(get_value(o.property)));const n=make_node(St,o,{name:t.name,scope:o.expression.scope,thedef:t});n.reference({});return n}}});return t.transform(s)});(function(e){function trim(e,t,n){var r=e.length;if(!r)return null;var i=[],s=false;for(var o=0;o<r;o++){var a=e[o].drop_side_effect_free(t,n);s|=a!==e[o];if(a){i.push(a);n=false}}return s?i.length?i:null:e}e(F,return_this);e(Tt,return_null);e(Ct,return_null);e(Re,function(e,t){if(this.optional&&is_nullish(this.expression)){return make_node(Lt,this)}if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var n=this.args.slice();n.unshift(this.expression.expression);n=trim(n,e,t);return n&&make_sequence(this,n)}if(is_func_expr(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();r.expression.process_expression(false,e);return r}return this}var i=trim(this.args,e,t);return i&&make_sequence(this,i)});e(ee,return_null);e(te,return_null);e(ne,return_null);e(tt,function(e){const t=[];const n=this.extends&&this.extends.drop_side_effect_free(e);if(n)t.push(n);for(const n of this.properties){const r=n.drop_side_effect_free(e);if(r)t.push(r)}if(!t.length)return null;return make_sequence(this,t)});e(Ge,function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(Tn.has(this.operator)){if(n===this.right)return this;var r=this.clone();r.right=n;return r}else{var i=this.left.drop_side_effect_free(e,t);if(!i)return this.right.drop_side_effect_free(e,t);return make_sequence(this,[i,n])}});e(We,function(e){var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof Le&&t.expression.is_constant()){return this}Dn(this,_n);while(t instanceof Le){t=t.expression}if(t.is_constant_expression(e.find_parent(Y))){return this.right.drop_side_effect_free(e)}return this});e(qe,function(e){var t=this.consequent.drop_side_effect_free(e);var n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?make_node(Ge,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return make_node(Ge,this,{operator:"&&",left:this.condition,right:t});var r=this.clone();r.consequent=t;r.alternative=n;return r});e(ze,function(e,t){if(Mn.has(this.operator)){if(!this.expression.has_side_effects(e)){Dn(this,_n)}else{xn(this,_n)}return this}if(this.operator=="typeof"&&this.expression instanceof St)return null;var n=this.expression.drop_side_effect_free(e,t);if(t&&n&&is_iife_call(n)){if(n===this.expression&&this.operator=="!")return this;return n.negate(e,t)}return n});e(St,function(e){const t=this.is_declared(e)||Pn.has(this.name);return t?null:this});e(Je,function(e,t){var n=trim(this.properties,e,t);return n&&make_sequence(this,n)});e(Ye,function(e,t){const n=this instanceof Qe&&this.key instanceof F;const r=n&&this.key.drop_side_effect_free(e,t);const i=this.value.drop_side_effect_free(e,t);if(r&&i){return make_sequence(this,[r,i])}return r||i});e(nt,function(e){const t=this.computed_key()&&this.key.drop_side_effect_free(e);const n=this.static&&this.value&&this.value.drop_side_effect_free(e);if(t&&n)return make_sequence(this,[t,n]);return t||n||null});e(et,function(){return this.computed_key()?this.key:null});e($e,function(){return this.computed_key()?this.key:null});e(Ze,function(){return this.computed_key()?this.key:null});e(Xe,function(e,t){var n=trim(this.elements,e,t);return n&&make_sequence(this,n)});e(Be,function(e,t){if(this.optional){return is_nullish(this.expression)?make_node(Lt,this):this}if(this.expression.may_throw_on_access(e))return this;return this.expression.drop_side_effect_free(e,t)});e(je,function(e,t){if(this.optional){return is_nullish(this.expression)?make_node(Lt,this):this}if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var r=this.property.drop_side_effect_free(e);if(!r)return n;return make_sequence(this,[n,r])});e(Ue,function(e,t){return this.expression.drop_side_effect_free(e,t)});e(Ne,function(e){var t=this.tail_node();var n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);if(n)r.push(n);if(!r.length){return make_node(Ot,this,{value:0})}return make_sequence(this,r)});e(Z,function(e,t){return this.expression.drop_side_effect_free(e,t)});e(ae,return_null);e(oe,function(e){var t=trim(this.segments,e,first_in_statement);return t&&make_sequence(this,t)})})(function(e,t){e.DEFMETHOD("drop_side_effect_free",t)});def_optimize(N,function(e,t){if(t.option("side_effects")){var n=e.body;var r=n.drop_side_effect_free(t,true);if(!r){return make_node(j,e)}if(r!==n){return make_node(N,e,{body:r})}}return e});def_optimize(q,function(e,t){return t.option("loops")?make_node(W,e,e).optimize(t):e});function has_break_or_continue(e,t){var n=false;var r=new TreeWalker(function(t){if(n||t instanceof Y)return true;if(t instanceof pe&&r.loopcontrol_target(t)===e){return n=true}});if(t instanceof z)r.push(t);r.push(e);e.body.walk(r);return n}def_optimize(G,function(e,t){if(!t.option("loops"))return e;var n=e.condition.tail_node().evaluate(t);if(!(n instanceof F)){if(n)return make_node(W,e,{body:make_node(B,e.body,{body:[e.body,make_node(N,e.condition,{body:e.condition})]})}).optimize(t);if(!has_break_or_continue(e,t.parent())){return make_node(B,e.body,{body:[e.body,make_node(N,e.condition,{body:e.condition})]}).optimize(t)}}return e});function if_break_in_loop(e,t){var n=e.body instanceof B?e.body.body[0]:e.body;if(t.option("dead_code")&&is_break(n)){var r=[];if(e.init instanceof I){r.push(e.init)}else if(e.init){r.push(make_node(N,e.init,{body:e.init}))}if(e.condition){r.push(make_node(N,e.condition,{body:e.condition}))}trim_unreachable_code(t,e.body,r);return make_node(B,e,{body:r})}if(n instanceof ye){if(is_break(n.body)){if(e.condition){e.condition=make_node(Ge,e.condition,{left:e.condition,operator:"&&",right:n.condition.negate(t)})}else{e.condition=n.condition.negate(t)}drop_it(n.alternative)}else if(is_break(n.alternative)){if(e.condition){e.condition=make_node(Ge,e.condition,{left:e.condition,operator:"&&",right:n.condition})}else{e.condition=n.condition}drop_it(n.body)}}return e;function is_break(e){return e instanceof de&&t.loopcontrol_target(e)===t.self()}function drop_it(n){n=as_statement_array(n);if(e.body instanceof B){e.body=e.body.clone();e.body.body=n.concat(e.body.body.slice(1));e.body=e.body.transform(t)}else{e.body=make_node(B,e.body,{body:n}).transform(t)}e=if_break_in_loop(e,t)}}def_optimize(W,function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init){e.init=e.init.drop_side_effect_free(t)}if(e.condition){var n=e.condition.evaluate(t);if(!(n instanceof F)){if(n)e.condition=null;else if(!t.option("dead_code")){var r=e.condition;e.condition=make_node_from_constant(n,e.condition);e.condition=best_of_expression(e.condition.transform(t),r)}}if(t.option("dead_code")){if(n instanceof F)n=e.condition.tail_node().evaluate(t);if(!n){var i=[];trim_unreachable_code(t,e.body,i);if(e.init instanceof I){i.push(e.init)}else if(e.init){i.push(make_node(N,e.init,{body:e.init}))}i.push(make_node(N,e.condition,{body:e.condition}));return make_node(B,e,{body:i}).optimize(t)}}}return if_break_in_loop(e,t)});def_optimize(ye,function(e,t){if(is_empty(e.alternative))e.alternative=null;if(!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!t.option("dead_code")&&!(n instanceof F)){var r=e.condition;e.condition=make_node_from_constant(n,r);e.condition=best_of_expression(e.condition.transform(t),r)}if(t.option("dead_code")){if(n instanceof F)n=e.condition.tail_node().evaluate(t);if(!n){var i=[];trim_unreachable_code(t,e.body,i);i.push(make_node(N,e.condition,{body:e.condition}));if(e.alternative)i.push(e.alternative);return make_node(B,e,{body:i}).optimize(t)}else if(!(n instanceof F)){var i=[];i.push(make_node(N,e.condition,{body:e.condition}));i.push(e.body);if(e.alternative){trim_unreachable_code(t,e.alternative,i)}return make_node(B,e,{body:i}).optimize(t)}}var s=e.condition.negate(t);var o=e.condition.size();var a=s.size();var c=a<o;if(e.alternative&&c){c=false;e.condition=s;var u=e.body;e.body=e.alternative||make_node(j,e);e.alternative=u}if(is_empty(e.body)&&is_empty(e.alternative)){return make_node(N,e.condition,{body:e.condition.clone()}).optimize(t)}if(e.body instanceof N&&e.alternative instanceof N){return make_node(N,e,{body:make_node(qe,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t)}if(is_empty(e.alternative)&&e.body instanceof N){if(o===a&&!c&&e.condition instanceof Ge&&e.condition.operator=="||"){c=true}if(c)return make_node(N,e,{body:make_node(Ge,e,{operator:"||",left:s,right:e.body.body})}).optimize(t);return make_node(N,e,{body:make_node(Ge,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t)}if(e.body instanceof j&&e.alternative instanceof N){return make_node(N,e,{body:make_node(Ge,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t)}if(e.body instanceof ue&&e.alternative instanceof ue&&e.body.TYPE==e.alternative.TYPE){return make_node(e.body.CTOR,e,{value:make_node(qe,e,{condition:e.condition,consequent:e.body.value||make_node(Lt,e.body),alternative:e.alternative.value||make_node(Lt,e.alternative)}).transform(t)}).optimize(t)}if(e.body instanceof ye&&!e.body.alternative&&!e.alternative){e=make_node(ye,e,{condition:make_node(Ge,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})}if(aborts(e.body)){if(e.alternative){var l=e.alternative;e.alternative=null;return make_node(B,e,{body:[e,l]}).optimize(t)}}if(aborts(e.alternative)){var i=e.body;e.body=e.alternative;e.condition=c?s:e.condition.negate(t);e.alternative=null;return make_node(B,e,{body:[e,i]}).optimize(t)}return e});def_optimize(ve,function(e,t){if(!t.option("switches"))return e;var n;var r=e.expression.evaluate(t);if(!(r instanceof F)){var i=e.expression;e.expression=make_node_from_constant(r,i);e.expression=best_of_expression(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;if(r instanceof F){r=e.expression.tail_node().evaluate(t)}var s=[];var o=[];var a;var c;for(var u=0,l=e.body.length;u<l&&!c;u++){n=e.body[u];if(n instanceof be){if(!a){a=n}else{eliminate_branch(n,o[o.length-1])}}else if(!(r instanceof F)){var f=n.expression.evaluate(t);if(!(f instanceof F)&&f!==r){eliminate_branch(n,o[o.length-1]);continue}if(f instanceof F)f=n.expression.tail_node().evaluate(t);if(f===r){c=n;if(a){var p=o.indexOf(a);o.splice(p,1);eliminate_branch(a,o[p-1]);a=null}}}if(aborts(n)){var d=o[o.length-1];if(aborts(d)&&d.body.length==n.body.length&&make_node(B,d,d).equivalent_to(make_node(B,n,n))){d.body=[]}}o.push(n)}while(u<l)eliminate_branch(e.body[u++],o[o.length-1]);if(o.length>0){o[0].body=s.concat(o[0].body)}e.body=o;while(n=o[o.length-1]){var h=n.body[n.body.length-1];if(h instanceof de&&t.loopcontrol_target(h)===e)n.body.pop();if(n.body.length||n instanceof Ee&&(a||n.expression.has_side_effects(t)))break;if(o.pop()===a)a=null}if(o.length==0){return make_node(B,e,{body:s.concat(make_node(N,e.expression,{body:e.expression}))}).optimize(t)}if(o.length==1&&(o[0]===c||o[0]===a)){var m=false;var g=new TreeWalker(function(t){if(m||t instanceof $||t instanceof N)return true;if(t instanceof de&&g.loopcontrol_target(t)===e)m=true});e.walk(g);if(!m){var y=o[0].body.slice();var f=o[0].expression;if(f)y.unshift(make_node(N,f,{body:f}));y.unshift(make_node(N,e.expression,{body:e.expression}));return make_node(B,e,{body:y}).optimize(t)}}return e;function eliminate_branch(e,n){if(n&&!aborts(n)){n.body=n.body.concat(e.body)}else{trim_unreachable_code(t,e,s)}}});def_optimize(we,function(e,t){tighten_body(e.body,t);if(e.bcatch&&e.bfinally&&e.bfinally.body.every(is_empty))e.bfinally=null;if(t.option("dead_code")&&e.body.every(is_empty)){var n=[];if(e.bcatch){trim_unreachable_code(t,e.bcatch,n)}if(e.bfinally)n.push(...e.bfinally.body);return make_node(B,e,{body:n}).optimize(t)}return e});De.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){if(t.name instanceof at){t.value=null;e.push(t)}else{walk(t.name,n=>{if(n instanceof at){e.push(make_node(Te,t,{name:n,value:null}))}})}});this.definitions=e});De.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars");var n=this.definitions.reduce(function(e,n){if(n.value&&!(n.name instanceof ie)){var r=make_node(St,n.name,n.name);e.push(make_node(We,n,{operator:"=",left:r,right:n.value}));if(t)r.definition().fixed=false}else if(n.value){var i=make_node(Te,n,{name:n.name,value:n.value});var s=make_node(xe,n,{definitions:[i]});e.push(s)}n=n.name.definition();n.eliminated++;n.replaced--;return e},[]);if(n.length==0)return null;return make_sequence(this,n)});def_optimize(De,function(e){if(e.definitions.length==0)return make_node(j,e);return e});def_optimize(Oe,function(e){return e});function retain_top_func(e,t){return t.top_retain&&e instanceof re&&kn(e,wn)&&e.name&&t.top_retain(e.name)}def_optimize(Re,function(e,t){var n=e.expression;var r=n;inline_array_like_spread(e,t,e.args);var i=e.args.every(e=>!(e instanceof Z));if(t.option("reduce_vars")&&r instanceof St&&!has_annotation(e,Wt)){const e=r.fixed_value();if(!retain_top_func(e,t)){r=e}}if(e.optional&&is_nullish(r)){return make_node(Lt,e)}var s=r instanceof $;if(s&&r.pinned())return e;if(t.option("unused")&&i&&s&&!r.uses_arguments){var o=0,a=0;for(var c=0,u=e.args.length;c<u;c++){if(r.argnames[c]instanceof Z){if(kn(r.argnames[c].expression,hn))while(c<u){var l=e.args[c++].drop_side_effect_free(t);if(l){e.args[o++]=l}}else while(c<u){e.args[o++]=e.args[c++]}a=o;break}var f=c>=r.argnames.length;if(f||kn(r.argnames[c],hn)){var l=e.args[c].drop_side_effect_free(t);if(l){e.args[o++]=l}else if(!f){e.args[o++]=make_node(Ot,e.args[c],{value:0});continue}}else{e.args[o++]=e.args[c]}a=o}e.args.length=a}if(t.option("unsafe")){if(is_undeclared_ref(n))switch(n.name){case"Array":if(e.args.length!=1){return make_node(Xe,e,{elements:e.args}).optimize(t)}else if(e.args[0]instanceof Ot&&e.args[0].value<=11){const t=[];for(let n=0;n<e.args[0].value;n++)t.push(new Bt);return new Xe({elements:t})}break;case"Object":if(e.args.length==0){return make_node(Je,e,{properties:[]})}break;case"String":if(e.args.length==0)return make_node(Mt,e,{value:""});if(e.args.length<=1)return make_node(Ge,e,{left:e.args[0],operator:"+",right:make_node(Mt,e,{value:""})}).optimize(t);break;case"Number":if(e.args.length==0)return make_node(Ot,e,{value:0});if(e.args.length==1&&t.option("unsafe_math")){return make_node(He,e,{expression:e.args[0],operator:"+"}).optimize(t)}break;case"Symbol":if(e.args.length==1&&e.args[0]instanceof Mt&&t.option("unsafe_symbols"))e.args.length=0;break;case"Boolean":if(e.args.length==0)return make_node(zt,e);if(e.args.length==1)return make_node(He,e,{expression:make_node(He,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var p=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);p.push(n);return e!==n})){let[n,r]=p;n=regexp_source_fix(new RegExp(n).source);const i=make_node(It,e,{value:{source:n,flags:r}});if(i._eval(t)!==i){return i}}break}else if(n instanceof Be)switch(n.property){case"toString":if(e.args.length==0&&!n.expression.may_throw_on_access(t)){return make_node(Ge,e,{left:make_node(Mt,e,{value:""}),operator:"+",right:n.expression}).optimize(t)}break;case"join":if(n.expression instanceof Xe)e:{var d;if(e.args.length>0){d=e.args[0].evaluate(t);if(d===e.args[0])break e}var h=[];var m=[];for(var c=0,u=n.expression.elements.length;c<u;c++){var g=n.expression.elements[c];if(g instanceof Z)break e;var y=g.evaluate(t);if(y!==g){m.push(y)}else{if(m.length>0){h.push(make_node(Mt,e,{value:m.join(d)}));m.length=0}h.push(g)}}if(m.length>0){h.push(make_node(Mt,e,{value:m.join(d)}))}if(h.length==0)return make_node(Mt,e,{value:""});if(h.length==1){if(h[0].is_string(t)){return h[0]}return make_node(Ge,h[0],{operator:"+",left:make_node(Mt,e,{value:""}),right:h[0]})}if(d==""){var v;if(h[0].is_string(t)||h[1].is_string(t)){v=h.shift()}else{v=make_node(Mt,e,{value:""})}return h.reduce(function(e,t){return make_node(Ge,t,{operator:"+",left:e,right:t})},v).optimize(t)}var l=e.clone();l.expression=l.expression.clone();l.expression.expression=l.expression.expression.clone();l.expression.expression.elements=h;return best_of(t,e,l)}break;case"charAt":if(n.expression.is_string(t)){var _=e.args[0];var b=_?_.evaluate(t):0;if(b!==_){return make_node(je,n,{expression:n.expression,property:make_node_from_constant(b|0,_||n)}).optimize(t)}}break;case"apply":if(e.args.length==2&&e.args[1]instanceof Xe){var E=e.args[1].elements.slice();E.unshift(e.args[0]);return make_node(Re,e,{expression:make_node(Be,n,{expression:n.expression,optional:false,property:"call"}),args:E}).optimize(t)}break;case"call":var w=n.expression;if(w instanceof St){w=w.fixed_value()}if(w instanceof $&&!w.contains_this()){return(e.args.length?make_sequence(this,[e.args[0],make_node(Re,e,{expression:n.expression,args:e.args.slice(1)})]):make_node(Re,e,{expression:n.expression,args:[]})).optimize(t)}break}}if(t.option("unsafe_Function")&&is_undeclared_ref(n)&&n.name=="Function"){if(e.args.length==0)return make_node(te,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(e=>e instanceof Mt)){try{var S="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})";var k=parse(S);var D={ie8:t.option("ie8")};k.figure_out_scope(D);var x=new Compressor(t.options,{mangle_options:t.mangle_options});k=k.transform(x);k.figure_out_scope(D);an.reset();k.compute_char_frequency(D);k.mangle_names(D);var C;walk(k,e=>{if(is_func_expr(e)){C=e;return Vt}});var S=OutputStream();B.prototype._codegen.call(C,C,S);e.args=[make_node(Mt,e,{value:C.argnames.map(function(e){return e.print_to_string()}).join(",")}),make_node(Mt,e.args[e.args.length-1],{value:S.get().replace(/^{|}$/g,"")})];return e}catch(e){if(!(e instanceof JS_Parse_Error)){throw e}}}}var A=s&&r.body[0];var T=s&&!r.is_generator&&!r.async;var M=T&&t.option("inline")&&!e.is_expr_pure(t);if(M&&A instanceof le){let n=A.value;if(!n||n.is_constant_expression()){if(n){n=n.clone(true)}else{n=make_node(Lt,e)}const r=e.args.concat(n);return make_sequence(e,r).optimize(t)}if(r.argnames.length===1&&r.argnames[0]instanceof pt&&e.args.length<2&&n instanceof St&&n.name===r.argnames[0].name){const n=(e.args[0]||make_node(Lt)).optimize(t);let r;if(n instanceof Le&&(r=t.parent())instanceof Re&&r.expression===e){return make_sequence(e,[make_node(Ot,e,{value:0}),n])}return n}}if(M){var O,F,I=-1;let s;let o;let a;if(i&&!r.uses_arguments&&!(t.parent()instanceof tt)&&!(r.name&&r instanceof te)&&(o=can_flatten_body(A))&&(n===r||has_annotation(e,qt)||t.option("unused")&&(s=n.definition()).references.length==1&&!recursive_ref(t,s)&&r.is_constant_expression(n.scope))&&!has_annotation(e,Gt|Wt)&&!r.contains_this()&&can_inject_symbols()&&(a=find_scope(t))&&!scope_encloses_variables_in_this_scope(a,r)&&!function in_default_assign(){let e=0;let n;while(n=t.parent(e++)){if(n instanceof Ke)return true;if(n instanceof L)break}return false}()&&!(O instanceof tt)){Dn(r,bn);a.add_child_scope(r);return make_sequence(e,flatten_fn(o)).optimize(t)}}if(M&&has_annotation(e,qt)){Dn(r,bn);r=make_node(r.CTOR===re?te:r.CTOR,r,r);r.figure_out_scope({},{parent_scope:find_scope(t),toplevel:t.get_toplevel()});return make_node(Re,e,{expression:r,args:e.args}).optimize(t)}const R=T&&t.option("side_effects")&&r.body.every(is_empty);if(R){var E=e.args.concat(make_node(Lt,e));return make_sequence(e,E).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof N&&is_iife_call(e)){return e.negate(t,true)}var P=e.evaluate(t);if(P!==e){P=make_node_from_constant(P,e).optimize(t);return best_of(t,P,e)}return e;function return_value(t){if(!t)return make_node(Lt,e);if(t instanceof le){if(!t.value)return make_node(Lt,e);return t.value.clone(true)}if(t instanceof N){return make_node(He,t,{operator:"void",expression:t.body.clone(true)})}}function can_flatten_body(e){var n=r.body;var i=n.length;if(t.option("inline")<3){return i==1&&return_value(e)}e=null;for(var s=0;s<i;s++){var o=n[s];if(o instanceof xe){if(e&&!o.definitions.every(e=>!e.value)){return false}}else if(e){return false}else if(!(o instanceof j)){e=o}}return return_value(e)}function can_inject_args(e,t){for(var n=0,i=r.argnames.length;n<i;n++){var s=r.argnames[n];if(s instanceof Ke){if(kn(s.left,hn))continue;return false}if(s instanceof ie)return false;if(s instanceof Z){if(kn(s.expression,hn))continue;return false}if(kn(s,hn))continue;if(!t||e.has(s.name)||An.has(s.name)||O.conflicting_def(s.name)){return false}if(F)F.push(s.definition())}return true}function can_inject_vars(e,t){var n=r.body.length;for(var i=0;i<n;i++){var s=r.body[i];if(!(s instanceof xe))continue;if(!t)return false;for(var o=s.definitions.length;--o>=0;){var a=s.definitions[o].name;if(a instanceof ie||e.has(a.name)||An.has(a.name)||O.conflicting_def(a.name)){return false}if(F)F.push(a.definition())}}return true}function can_inject_symbols(){var e=new Set;do{O=t.parent(++I);if(O.is_block_scope()&&O.block_scope){O.block_scope.variables.forEach(function(t){e.add(t.name)})}if(O instanceof Se){if(O.argname){e.add(O.argname.name)}}else if(O instanceof H){F=[]}else if(O instanceof St){if(O.fixed_value()instanceof Y)return false}}while(!(O instanceof Y));var n=!(O instanceof Q)||t.toplevel.vars;var i=t.option("inline");if(!can_inject_vars(e,i>=3&&n))return false;if(!can_inject_args(e,i>=2&&n))return false;return!F||F.length==0||!is_reachable(r,F)}function append_var(t,n,r,i){var s=r.definition();const o=O.variables.has(r.name);if(!o){O.variables.set(r.name,s);O.enclosed.push(s);t.push(make_node(Te,r,{name:r,value:null}))}var a=make_node(St,r,r);s.references.push(a);if(i)n.push(make_node(We,e,{operator:"=",left:a,right:i.clone()}))}function flatten_args(t,n){var i=r.argnames.length;for(var s=e.args.length;--s>=i;){n.push(e.args[s])}for(s=i;--s>=0;){var o=r.argnames[s];var a=e.args[s];if(kn(o,hn)||!o.name||O.conflicting_def(o.name)){if(a)n.push(a)}else{var c=make_node(ct,o,o);o.definition().orig.push(c);if(!a&&F)a=make_node(Lt,e);append_var(t,n,c,a)}}t.reverse();n.reverse()}function flatten_vars(e,t){var n=t.length;for(var i=0,s=r.body.length;i<s;i++){var o=r.body[i];if(!(o instanceof xe))continue;for(var a=0,c=o.definitions.length;a<c;a++){var u=o.definitions[a];var l=u.name;append_var(e,t,l,u.value);if(F&&r.argnames.every(e=>e.name!=l.name)){var f=r.variables.get(l.name);var p=make_node(St,l,l);f.references.push(p);t.splice(n++,0,make_node(We,u,{operator:"=",left:p,right:make_node(Lt,l)}))}}}}function flatten_fn(e){var n=[];var i=[];flatten_args(n,i);flatten_vars(n,i);i.push(e);if(n.length){const e=O.body.indexOf(t.parent(I-1))+1;O.body.splice(e,0,make_node(xe,r,{definitions:n}))}return i.map(e=>e.clone(true))}});def_optimize(Pe,function(e,t){if(t.option("unsafe")&&is_undeclared_ref(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name))return make_node(Re,e,e).transform(t);return e});def_optimize(Ne,function(e,t){if(!t.option("side_effects"))return e;var n=[];filter_for_side_effects();var r=n.length-1;trim_right_for_undefined();if(r==0){e=maintain_this_binding(t.parent(),t.self(),n[0]);if(!(e instanceof Ne))e=e.optimize(t);return e}e.expressions=n;return e;function filter_for_side_effects(){var r=first_in_statement(t);var i=e.expressions.length-1;e.expressions.forEach(function(e,s){if(s<i)e=e.drop_side_effect_free(t,r);if(e){merge_sequence(n,e);r=false}})}function trim_right_for_undefined(){while(r>0&&is_undefined(n[r],t))r--;if(r<n.length-1){n[r]=make_node(He,e,{operator:"void",expression:n[r]});n.length=r+1}}});ze.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.expression instanceof Ne){var t=this.expression.expressions.slice();var n=this.clone();n.expression=t.pop();t.push(n);return make_sequence(this,t).optimize(e)}}return this});def_optimize(Ve,function(e,t){return e.lift_sequences(t)});def_optimize(He,function(e,t){var n=e.expression;if(e.operator=="delete"&&!(n instanceof St||n instanceof Le||is_identifier_atom(n))){if(n instanceof Ne){const r=n.expressions.slice();r.push(make_node(Ht,e));return make_sequence(e,r).optimize(t)}return make_sequence(e,[n,make_node(Ht,e)]).optimize(t)}var r=e.lift_sequences(t);if(r!==e){return r}if(t.option("side_effects")&&e.operator=="void"){n=n.drop_side_effect_free(t);if(n){e.expression=n;return e}else{return make_node(Lt,e).optimize(t)}}if(t.in_boolean_context()){switch(e.operator){case"!":if(n instanceof He&&n.operator=="!"){return n.expression}if(n instanceof Ge){e=best_of(t,e,n.negate(t,first_in_statement(t)))}break;case"typeof":return(n instanceof St?make_node(Ht,e):make_sequence(e,[n,make_node(Ht,e)])).optimize(t)}}if(e.operator=="-"&&n instanceof jt){n=n.transform(t)}if(n instanceof Ge&&(e.operator=="+"||e.operator=="-")&&(n.operator=="*"||n.operator=="/"||n.operator=="%")){return make_node(Ge,e,{operator:n.operator,left:make_node(He,n.left,{operator:e.operator,expression:n.left}),right:n.right})}if(e.operator!="-"||!(n instanceof Ot||n instanceof jt||n instanceof Ft)){var i=e.evaluate(t);if(i!==e){i=make_node_from_constant(i,e).optimize(t);return best_of(t,i,e)}}return e});Ge.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ne){var t=this.left.expressions.slice();var n=this.clone();n.left=t.pop();t.push(n);return make_sequence(this,t).optimize(e)}if(this.right instanceof Ne&&!this.left.has_side_effects(e)){var r=this.operator=="="&&this.left instanceof St;var t=this.right.expressions;var i=t.length-1;for(var s=0;s<i;s++){if(!r&&t[s].has_side_effects(e))break}if(s==i){t=t.slice();var n=this.clone();n.right=t.pop();t.push(n);return make_sequence(this,t).optimize(e)}else if(s>0){var n=this.clone();n.right=make_sequence(this.right,t.slice(s));t=t.slice(0,s);t.push(n);return make_sequence(this,t).optimize(e)}}}return this});var Bn=makePredicate("== === != !== * & | ^");function is_object(e){return e instanceof Xe||e instanceof $||e instanceof Je||e instanceof tt}def_optimize(Ge,function(e,t){function reversible(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function reverse(t){if(reversible()){if(t)e.operator=t;var n=e.left;e.left=e.right;e.right=n}}if(Bn.has(e.operator)){if(e.right.is_constant()&&!e.left.is_constant()){if(!(e.left instanceof Ge&&T[e.left.operator]>=T[e.operator])){reverse()}}}e=e.lift_sequences(t);if(t.option("comparisons"))switch(e.operator){case"===":case"!==":var n=true;if(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right)){e.operator=e.operator.substr(0,2)}case"==":case"!=":if(!n&&is_undefined(e.left,t)){e.left=make_node(Pt,e.left)}else if(t.option("typeofs")&&e.left instanceof Mt&&e.left.value=="undefined"&&e.right instanceof He&&e.right.operator=="typeof"){var r=e.right.expression;if(r instanceof St?r.is_declared(t):!(r instanceof Le&&t.option("ie8"))){e.right=r;e.left=make_node(Lt,e.left).optimize(t);if(e.operator.length==2)e.operator+="="}}else if(e.left instanceof St&&e.right instanceof St&&e.left.definition()===e.right.definition()&&is_object(e.left.fixed_value())){return make_node(e.operator[0]=="="?Ht:zt,e)}break;case"&&":case"||":var i=e.left;if(i.operator==e.operator){i=i.right}if(i instanceof Ge&&i.operator==(e.operator=="&&"?"!==":"===")&&e.right instanceof Ge&&i.operator==e.right.operator&&(is_undefined(i.left,t)&&e.right.left instanceof Pt||i.left instanceof Pt&&is_undefined(e.right.left,t))&&!i.right.has_side_effects(t)&&i.right.equivalent_to(e.right.right)){var s=make_node(Ge,e,{operator:i.operator.slice(0,-1),left:make_node(Pt,e),right:i.right});if(i!==e.left){s=make_node(Ge,e,{operator:e.operator,left:e.left.left,right:s})}return s}break}if(e.operator=="+"&&t.in_boolean_context()){var o=e.left.evaluate(t);var a=e.right.evaluate(t);if(o&&typeof o=="string"){return make_sequence(e,[e.right,make_node(Ht,e)]).optimize(t)}if(a&&typeof a=="string"){return make_sequence(e,[e.left,make_node(Ht,e)]).optimize(t)}}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Ge)||t.parent()instanceof We){var c=make_node(He,e,{operator:"!",expression:e.negate(t,first_in_statement(t))});e=best_of(t,e,c)}if(t.option("unsafe_comps")){switch(e.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}}if(e.operator=="+"){if(e.right instanceof Mt&&e.right.getValue()==""&&e.left.is_string(t)){return e.left}if(e.left instanceof Mt&&e.left.getValue()==""&&e.right.is_string(t)){return e.right}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.left instanceof Mt&&e.left.left.getValue()==""&&e.right.is_string(t)){e.left=e.left.right;return e.transform(t)}}if(t.option("evaluate")){switch(e.operator){case"&&":var o=kn(e.left,mn)?true:kn(e.left,gn)?false:e.left.evaluate(t);if(!o){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}else if(!(o instanceof F)){return make_sequence(e,[e.left,e.right]).optimize(t)}var a=e.right.evaluate(t);if(!a){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(zt,e)]).optimize(t)}else{Dn(e,gn)}}else if(!(a instanceof F)){var u=t.parent();if(u.operator=="&&"&&u.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}if(e.left.operator=="||"){var l=e.left.right.evaluate(t);if(!l)return make_node(qe,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t)}break;case"||":var o=kn(e.left,mn)?true:kn(e.left,gn)?false:e.left.evaluate(t);if(!o){return make_sequence(e,[e.left,e.right]).optimize(t)}else if(!(o instanceof F)){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}var a=e.right.evaluate(t);if(!a){var u=t.parent();if(u.operator=="||"&&u.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}else if(!(a instanceof F)){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(Ht,e)]).optimize(t)}else{Dn(e,mn)}}if(e.left.operator=="&&"){var l=e.left.right.evaluate(t);if(l&&!(l instanceof F))return make_node(qe,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}break;case"??":if(is_nullish(e.left)){return e.right}var o=e.left.evaluate(t);if(!(o instanceof F)){return o==null?e.right:e.left}if(t.in_boolean_context()){const n=e.right.evaluate(t);if(!(n instanceof F)&&!n){return e.left}}}var f=true;switch(e.operator){case"+":if(e.left instanceof Tt&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left,right:e.right.left});var d=p.optimize(t);if(p!==d){e=make_node(Ge,e,{operator:"+",left:d,right:e.right.right})}}if(e.right instanceof Tt&&e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right});var h=p.optimize(t);if(p!==h){e=make_node(Ge,e,{operator:"+",left:e.left.left,right:h})}}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right.left});var m=p.optimize(t);if(p!==m){e=make_node(Ge,e,{operator:"+",left:make_node(Ge,e.left,{operator:"+",left:e.left.left,right:m}),right:e.right.right})}}if(e.right instanceof He&&e.right.operator=="-"&&e.left.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof He&&e.left.operator=="-"&&reversible()&&e.right.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof oe){var d=e.left;var h=e.right.evaluate(t);if(h!=e.right){d.segments[d.segments.length-1].value+=h.toString();return d}}if(e.right instanceof oe){var h=e.right;var d=e.left.evaluate(t);if(d!=e.left){h.segments[0].value=d.toString()+h.segments[0].value;return h}}if(e.left instanceof oe&&e.right instanceof oe){var d=e.left;var g=d.segments;var h=e.right;g[g.length-1].value+=h.segments[0].value;for(var y=1;y<h.segments.length;y++){g.push(h.segments[y])}return d}case"*":f=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&reversible()&&!(e.left instanceof Ge&&e.left.operator!=e.operator&&T[e.left.operator]>=T[e.operator])){var v=make_node(Ge,e,{operator:e.operator,left:e.right,right:e.left});if(e.right instanceof Tt&&!(e.left instanceof Tt)){e=best_of(t,v,e)}else{e=best_of(t,e,v)}}if(f&&e.is_number(t)){if(e.right instanceof Ge&&e.right.operator==e.operator){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})}if(e.right instanceof Tt&&e.left instanceof Ge&&e.left.operator==e.operator){if(e.left.left instanceof Tt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right})}else if(e.left.right instanceof Tt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left})}}if(e.left instanceof Ge&&e.left.operator==e.operator&&e.left.right instanceof Tt&&e.right instanceof Ge&&e.right.operator==e.operator&&e.right.left instanceof Tt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:make_node(Ge,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})}}}}if(e.right instanceof Ge&&e.right.operator==e.operator&&(Tn.has(e.operator)||e.operator=="+"&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t)))){e.left=make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left});e.right=e.right.right;return e.transform(t)}var _=e.evaluate(t);if(_!==e){_=make_node_from_constant(_,e).optimize(t);return best_of(t,_,e)}return e});def_optimize(kt,function(e){return e});function recursive_ref(e,t){var n;for(var r=0;n=e.parent(r);r++){if(n instanceof $||n instanceof tt){var i=n.name;if(i&&i.definition()===t)break}}return n}function within_array_or_object_literal(e){var t,n=0;while(t=e.parent(n++)){if(t instanceof I)return false;if(t instanceof Xe||t instanceof Qe||t instanceof Je){return true}}return false}def_optimize(St,function(e,t){if(!t.option("ie8")&&is_undeclared_ref(e)&&!t.find_parent(J)){switch(e.name){case"undefined":return make_node(Lt,e).optimize(t);case"NaN":return make_node(Nt,e).optimize(t);case"Infinity":return make_node(jt,e).optimize(t)}}const n=t.parent();if(t.option("reduce_vars")&&is_lhs(e,n)!==e){const s=e.definition();const o=find_scope(t);if(t.top_retain&&s.global&&t.top_retain(s)){s.fixed=false;s.single_use=false;return e}let a=e.fixed_value();let c=s.single_use&&!(n instanceof Re&&n.is_expr_pure(t)||has_annotation(n,Wt));if(c&&(a instanceof $||a instanceof tt)){if(retain_top_func(a,t)){c=false}else if(s.scope!==e.scope&&(s.escaped==1||kn(a,vn)||within_array_or_object_literal(t))){c=false}else if(recursive_ref(t,s)){c=false}else if(s.scope!==e.scope||s.orig[0]instanceof pt){c=a.is_constant_expression(e.scope);if(c=="f"){var r=e.scope;do{if(r instanceof re||is_func_expr(r)){Dn(r,vn)}}while(r=r.parent_scope)}}}if(c&&a instanceof $){c=s.scope===e.scope&&!scope_encloses_variables_in_this_scope(o,a)||n instanceof Re&&n.expression===e&&!scope_encloses_variables_in_this_scope(o,a)}if(c&&a instanceof tt){const e=!a.extends||!a.extends.may_throw(t)&&!a.extends.has_side_effects(t);c=e&&!a.properties.some(e=>e.may_throw(t)||e.has_side_effects(t))}if(c&&a){if(a instanceof rt){Dn(a,bn);a=make_node(it,a,a)}if(a instanceof re){Dn(a,bn);a=make_node(te,a,a)}if(s.recursive_refs>0&&a.name instanceof dt){const e=a.name.definition();let t=a.variables.get(a.name.name);let n=t&&t.orig[0];if(!(n instanceof gt)){n=make_node(gt,a.name,a.name);n.scope=a;a.name=n;t=a.def_function(n)}walk(a,n=>{if(n instanceof St&&n.definition()===e){n.thedef=t;t.references.push(n)}})}if((a instanceof $||a instanceof tt)&&a.parent_scope!==o){a=a.clone(true,t.get_toplevel());o.add_child_scope(a)}return a.optimize(t)}if(a){let n;if(a instanceof Ct){if(!(s.orig[0]instanceof pt)&&s.references.every(e=>s.scope===e.scope)){n=a}}else{var i=a.evaluate(t);if(i!==a&&(t.option("unsafe_regexp")||!(i instanceof RegExp))){n=make_node_from_constant(i,a)}}if(n){const r=e.size(t);const i=n.size(t);let o=0;if(t.option("unused")&&!t.exposed(s)){o=(r+2+i)/(s.references.length-s.assignments)}if(i<=r+o){return n}}}}return e});function scope_encloses_variables_in_this_scope(e,t){for(const n of t.enclosed){if(t.variables.has(n.name)){continue}const r=e.find_variable(n.name);if(r){if(r===n)continue;return true}}return false}function is_atomic(e,t){return e instanceof St||e.TYPE===t.TYPE}def_optimize(Lt,function(e,t){if(t.option("unsafe_undefined")){var n=find_variable(t,"undefined");if(n){var r=make_node(St,e,{name:"undefined",scope:n.scope,thedef:n});Dn(r,yn);return r}}var i=is_lhs(t.self(),t.parent());if(i&&is_atomic(i,e))return e;return make_node(He,e,{operator:"void",expression:make_node(Ot,e,{value:0})})});def_optimize(jt,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&is_atomic(n,e))return e;if(t.option("keep_infinity")&&!(n&&!is_atomic(n,e))&&!find_variable(t,"Infinity")){return e}return make_node(Ge,e,{operator:"/",left:make_node(Ot,e,{value:1}),right:make_node(Ot,e,{value:0})})});def_optimize(Nt,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&!is_atomic(n,e)||find_variable(t,"NaN")){return make_node(Ge,e,{operator:"/",left:make_node(Ot,e,{value:0}),right:make_node(Ot,e,{value:0})})}return e});function is_reachable(e,t){const n=e=>{if(e instanceof St&&member(e.definition(),t)){return Vt}};return walk_parent(e,(t,r)=>{if(t instanceof Y&&t!==e){var i=r.parent();if(i instanceof Re&&i.expression===t)return;if(walk(t,n))return Vt;return true}})}const jn=makePredicate("+ - / * % >> << >>> | ^ &");const Un=makePredicate("* | ^ &");def_optimize(We,function(e,t){var n;if(t.option("dead_code")&&e.left instanceof St&&(n=e.left.definition()).scope===t.find_parent($)){var r=0,i,s=e;do{i=s;s=t.parent(r++);if(s instanceof ue){if(in_try(r,s))break;if(is_reachable(n.scope,[n]))break;if(e.operator=="=")return e.right;n.fixed=false;return make_node(Ge,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t)}}while(s instanceof Ge&&s.right===i||s instanceof Ne&&s.tail_node()===i)}e=e.lift_sequences(t);if(e.operator=="="&&e.left instanceof St&&e.right instanceof Ge){if(e.right.left instanceof St&&e.right.left.name==e.left.name&&jn.has(e.right.operator)){e.operator=e.right.operator+"=";e.right=e.right.right}else if(e.right.right instanceof St&&e.right.right.name==e.left.name&&Un.has(e.right.operator)&&!e.right.left.has_side_effects(t)){e.operator=e.right.operator+"=";e.right=e.right.left}}return e;function in_try(n,r){var i=e.right;e.right=make_node(Pt,i);var s=r.may_throw(t);e.right=i;var o=e.left.definition().scope;var a;while((a=t.parent(n++))!==o){if(a instanceof we){if(a.bfinally)return true;if(s&&a.bcatch)return true}}}});def_optimize(Ke,function(e,t){if(!t.option("evaluate")){return e}var n=e.right.evaluate(t);if(n===undefined){e=e.left}else if(n!==e.right){n=make_node_from_constant(n,e.right);e.right=best_of_expression(n,e.right)}return e});function is_nullish(e){let t;return e instanceof Pt||is_undefined(e)||e instanceof St&&(t=e.definition().fixed)instanceof F&&is_nullish(t)||e instanceof Le&&e.optional&&is_nullish(e.expression)||e instanceof Re&&e.optional&&is_nullish(e.expression)||e instanceof Ue&&is_nullish(e.expression)}function is_nullish_check(e,t,n){if(t.may_throw(n))return false;let r;if(e instanceof Ge&&e.operator==="=="&&((r=is_nullish(e.left)&&e.left)||(r=is_nullish(e.right)&&e.right))&&(r===e.left?e.right:e.left).equivalent_to(t)){return true}if(e instanceof Ge&&e.operator==="||"){let n;let r;const i=e=>{if(!(e instanceof Ge&&(e.operator==="==="||e.operator==="=="))){return false}let i=0;let s;if(e.left instanceof Pt){i++;n=e;s=e.right}if(e.right instanceof Pt){i++;n=e;s=e.left}if(is_undefined(e.left)){i++;r=e;s=e.right}if(is_undefined(e.right)){i++;r=e;s=e.left}if(i!==1){return false}if(!s.equivalent_to(t)){return false}return true};if(!i(e.left))return false;if(!i(e.right))return false;if(n&&r&&n!==r){return true}}return false}def_optimize(qe,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Ne){var n=e.condition.expressions.slice();e.condition=n.pop();n.push(e);return make_sequence(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition){if(r){return maintain_this_binding(t.parent(),t.self(),e.consequent)}else{return maintain_this_binding(t.parent(),t.self(),e.alternative)}}var i=r.negate(t,first_in_statement(t));if(best_of(t,r,i)===i){e=make_node(qe,e,{condition:i,consequent:e.alternative,alternative:e.consequent})}var s=e.condition;var o=e.consequent;var a=e.alternative;if(s instanceof St&&o instanceof St&&s.definition()===o.definition()){return make_node(Ge,e,{operator:"||",left:s,right:a})}if(o instanceof We&&a instanceof We&&o.operator==a.operator&&o.left.equivalent_to(a.left)&&(!e.condition.has_side_effects(t)||o.operator=="="&&!o.left.has_side_effects(t))){return make_node(We,e,{operator:o.operator,left:o.left,right:make_node(qe,e,{condition:e.condition,consequent:o.right,alternative:a.right})})}var c;if(o instanceof Re&&a.TYPE===o.TYPE&&o.args.length>0&&o.args.length==a.args.length&&o.expression.equivalent_to(a.expression)&&!e.condition.has_side_effects(t)&&!o.expression.has_side_effects(t)&&typeof(c=single_arg_diff())=="number"){var u=o.clone();u.args[c]=make_node(qe,e,{condition:e.condition,consequent:o.args[c],alternative:a.args[c]});return u}if(a instanceof qe&&o.equivalent_to(a.consequent)){return make_node(qe,e,{condition:make_node(Ge,e,{operator:"||",left:s,right:a.condition}),consequent:o,alternative:a.alternative}).optimize(t)}if(t.option("ecma")>=2020&&is_nullish_check(s,a,t)){return make_node(Ge,e,{operator:"??",left:a,right:o}).optimize(t)}if(a instanceof Ne&&o.equivalent_to(a.expressions[a.expressions.length-1])){return make_sequence(e,[make_node(Ge,e,{operator:"||",left:s,right:make_sequence(e,a.expressions.slice(0,-1))}),o]).optimize(t)}if(a instanceof Ge&&a.operator=="&&"&&o.equivalent_to(a.right)){return make_node(Ge,e,{operator:"&&",left:make_node(Ge,e,{operator:"||",left:s,right:a.left}),right:o}).optimize(t)}if(o instanceof qe&&o.alternative.equivalent_to(a)){return make_node(qe,e,{condition:make_node(Ge,e,{left:e.condition,operator:"&&",right:o.condition}),consequent:o.consequent,alternative:a})}if(o.equivalent_to(a)){return make_sequence(e,[e.condition,o]).optimize(t)}if(o instanceof Ge&&o.operator=="||"&&o.right.equivalent_to(a)){return make_node(Ge,e,{operator:"||",left:make_node(Ge,e,{operator:"&&",left:e.condition,right:o.left}),right:a}).optimize(t)}var l=t.in_boolean_context();if(is_true(e.consequent)){if(is_false(e.alternative)){return booleanize(e.condition)}return make_node(Ge,e,{operator:"||",left:booleanize(e.condition),right:e.alternative})}if(is_false(e.consequent)){if(is_true(e.alternative)){return booleanize(e.condition.negate(t))}return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition.negate(t)),right:e.alternative})}if(is_true(e.alternative)){return make_node(Ge,e,{operator:"||",left:booleanize(e.condition.negate(t)),right:e.consequent})}if(is_false(e.alternative)){return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition),right:e.consequent})}return e;function booleanize(e){if(e.is_boolean())return e;return make_node(He,e,{operator:"!",expression:e.negate(t)})}function is_true(e){return e instanceof Ht||l&&e instanceof Tt&&e.getValue()||e instanceof He&&e.operator=="!"&&e.expression instanceof Tt&&!e.expression.getValue()}function is_false(e){return e instanceof zt||l&&e instanceof Tt&&!e.getValue()||e instanceof He&&e.operator=="!"&&e.expression instanceof Tt&&e.expression.getValue()}function single_arg_diff(){var e=o.args;var t=a.args;for(var n=0,r=e.length;n<r;n++){if(e[n]instanceof Z)return;if(!e[n].equivalent_to(t[n])){if(t[n]instanceof Z)return;for(var i=n+1;i<r;i++){if(e[i]instanceof Z)return;if(!e[i].equivalent_to(t[i]))return}return n}}}});def_optimize(Ut,function(e,t){if(t.in_boolean_context())return make_node(Ot,e,{value:+e.value});var n=t.parent();if(t.option("booleans_as_integers")){if(n instanceof Ge&&(n.operator=="==="||n.operator=="!==")){n.operator=n.operator.replace(/=$/,"")}return make_node(Ot,e,{value:+e.value})}if(t.option("booleans")){if(n instanceof Ge&&(n.operator=="=="||n.operator=="!=")){return make_node(Ot,e,{value:+e.value})}return make_node(He,e,{operator:"!",expression:make_node(Ot,e,{value:1-e.value})})}return e});function safe_to_flatten(e,t){if(e instanceof St){e=e.fixed_value()}if(!e)return false;if(!(e instanceof $||e instanceof tt))return true;if(!(e instanceof $&&e.contains_this()))return true;return t.parent()instanceof Pe}Le.DEFMETHOD("flatten_object",function(e,t){if(!t.option("properties"))return;var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015;var r=this.expression;if(r instanceof Je){var i=r.properties;for(var s=i.length;--s>=0;){var o=i[s];if(""+(o instanceof et?o.key.name:o.key)==e){if(!i.every(e=>{return e instanceof Qe||n&&e instanceof et&&!e.is_generator}))break;if(!safe_to_flatten(o.value,t))break;return make_node(je,this,{expression:make_node(Xe,r,{elements:i.map(function(e){var t=e.value;if(t instanceof ee)t=make_node(te,t,t);var n=e.key;if(n instanceof F&&!(n instanceof ht)){return make_sequence(e,[n,t])}return t})}),property:make_node(Ot,this,{value:s})})}}}});def_optimize(je,function(e,t){var n=e.expression;var r=e.property;if(t.option("properties")){var i=r.evaluate(t);if(i!==r){if(typeof i=="string"){if(i=="undefined"){i=undefined}else{var s=parseFloat(i);if(s.toString()==i){i=s}}}r=e.property=best_of_expression(r,make_node_from_constant(i,r).transform(t));var o=""+i;if(is_basic_identifier_string(o)&&o.length<=r.size()+1){return make_node(Be,e,{expression:n,optional:e.optional,property:o,quote:r.quote}).optimize(t)}}}var a;e:if(t.option("arguments")&&n instanceof St&&n.name=="arguments"&&n.definition().orig.length==1&&(a=n.scope)instanceof $&&a.uses_arguments&&!(a instanceof ne)&&r instanceof Ot){var c=r.getValue();var u=new Set;var l=a.argnames;for(var f=0;f<l.length;f++){if(!(l[f]instanceof pt)){break e}var p=l[f].name;if(u.has(p)){break e}u.add(p)}var d=a.argnames[c];if(d&&t.has_directive("use strict")){var h=d.definition();if(!t.option("reduce_vars")||h.assignments||h.orig.length>1){d=null}}else if(!d&&!t.option("keep_fargs")&&c<a.argnames.length+5){while(c>=a.argnames.length){d=a.create_symbol(pt,{source:a,scope:a,tentative_name:"argument_"+a.argnames.length});a.argnames.push(d)}}if(d){var m=make_node(St,e,d);m.reference({});xn(d,hn);return m}}if(is_lhs(e,t.parent()))return e;if(i!==r){var g=e.flatten_object(o,t);if(g){n=e.expression=g.expression;r=e.property=g.property}}if(t.option("properties")&&t.option("side_effects")&&r instanceof Ot&&n instanceof Xe){var c=r.getValue();var y=n.elements;var v=y[c];e:if(safe_to_flatten(v,t)){var _=true;var b=[];for(var E=y.length;--E>c;){var s=y[E].drop_side_effect_free(t);if(s){b.unshift(s);if(_&&s.has_side_effects(t))_=false}}if(v instanceof Z)break e;v=v instanceof Bt?make_node(Lt,v):v;if(!_)b.unshift(v);while(--E>=0){var s=y[E];if(s instanceof Z)break e;s=s.drop_side_effect_free(t);if(s)b.unshift(s);else c--}if(_){b.push(v);return make_sequence(e,b).optimize(t)}else return make_node(je,e,{expression:make_node(Xe,n,{elements:b}),property:make_node(Ot,r,{value:c})})}}var w=e.evaluate(t);if(w!==e){w=make_node_from_constant(w,e).optimize(t);return best_of(t,w,e)}if(e.optional&&is_nullish(e.expression)){return make_node(Lt,e)}return e});def_optimize(Ue,function(e,t){e.expression=e.expression.optimize(t);return e});$.DEFMETHOD("contains_this",function(){return walk(this,e=>{if(e instanceof Ct)return Vt;if(e!==this&&e instanceof Y&&!(e instanceof ne)){return true}})});def_optimize(Be,function(e,t){const n=t.parent();if(is_lhs(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Be&&e.expression.property=="prototype"){var r=e.expression.expression;if(is_undeclared_ref(r))switch(r.name){case"Array":e.expression=make_node(Xe,e.expression,{elements:[]});break;case"Function":e.expression=make_node(te,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=make_node(Ot,e.expression,{value:0});break;case"Object":e.expression=make_node(Je,e.expression,{properties:[]});break;case"RegExp":e.expression=make_node(It,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=make_node(Mt,e.expression,{value:""});break}}if(!(n instanceof Re)||!has_annotation(n,Wt)){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let i=e.evaluate(t);if(i!==e){i=make_node_from_constant(i,e).optimize(t);return best_of(t,i,e)}if(e.optional&&is_nullish(e.expression)){return make_node(Lt,e)}return e});function literals_in_boolean_context(e,t){if(t.in_boolean_context()){return best_of(t,e,make_sequence(e,[e,make_node(Ht,e)]).optimize(t))}return e}function inline_array_like_spread(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];if(i instanceof Z){var s=i.expression;if(s instanceof Xe){n.splice(r,1,...s.elements);r--}}}return e}def_optimize(Xe,function(e,t){var n=literals_in_boolean_context(e,t);if(n!==e){return n}return inline_array_like_spread(e,t,e.elements)});def_optimize(Je,function(e,t){var n=literals_in_boolean_context(e,t);if(n!==e){return n}var r=e.properties;for(var i=0;i<r.length;i++){var s=r[i];if(s instanceof Z){var o=s.expression;if(o instanceof Je){r.splice.apply(r,[i,1].concat(s.expression.properties));i--}else if(o instanceof Tt&&!(o instanceof Mt)){r.splice(i,1)}}}return e});def_optimize(It,literals_in_boolean_context);def_optimize(le,function(e,t){if(e.value&&is_undefined(e.value,t)){e.value=null}return e});def_optimize(ne,opt_AST_Lambda);def_optimize(te,function(e,t){e=opt_AST_Lambda(e,t);if(t.option("unsafe_arrows")&&t.option("ecma")>=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){const n=walk(e,e=>{if(e instanceof Ct)return Vt});if(!n)return make_node(ne,e,e).optimize(t)}return e});def_optimize(tt,function(e){return e});def_optimize(ge,function(e,t){if(e.expression&&!e.is_star&&is_undefined(e.expression,t)){e.expression=null}return e});def_optimize(oe,function(e,t){if(!t.option("evaluate")||t.parent()instanceof se)return e;var n=[];for(var r=0;r<e.segments.length;r++){var i=e.segments[r];if(i instanceof F){var s=i.evaluate(t);if(s!==i&&(s+"").length<=i.size()+"${}".length){n[n.length-1].value=n[n.length-1].value+s+e.segments[++r].value;continue}if(i instanceof oe){var o=i.segments;n[n.length-1].value+=o[0].value;for(var a=1;a<o.length;a++){i=o[a];n.push(i)}continue}}n.push(i)}e.segments=n;if(n.length==1){return make_node(Mt,e,n[0])}if(n.length===3&&n[1]instanceof F){if(n[2].value===""){return make_node(Ge,e,{operator:"+",left:make_node(Mt,e,{value:n[0].value}),right:n[1]})}if(n[0].value===""){return make_node(Ge,e,{operator:"+",left:n[1],right:make_node(Mt,e,{value:n[2].value})})}}return e});def_optimize(se,function(e){return e});function lift_key(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof Tt))return e;if(e.key instanceof Mt||e.key instanceof Ot){if(e.key.value==="__proto__")return e;if(e.key.value=="constructor"&&t.parent()instanceof tt)return e;if(e instanceof Qe){e.key=e.key.value}else if(e instanceof nt){e.key=make_node(mt,e.key,{name:e.key.value})}else{e.key=make_node(ht,e.key,{name:e.key.value})}}return e}def_optimize(Ye,lift_key);def_optimize(et,function(e,t){lift_key(e,t);if(t.option("arrows")&&t.parent()instanceof Je&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&e.value.body.length==1&&e.value.body[0]instanceof le&&e.value.body[0].value&&!e.value.contains_this()){var n=make_node(ne,e.value,e.value);n.async=e.async;n.is_generator=e.is_generator;return make_node(Qe,e,{key:e.key instanceof ht?e.key.name:e.key,value:n,quote:e.quote})}return e});def_optimize(Qe,function(e,t){lift_key(e,t);var n=t.option("unsafe_methods");if(n&&t.option("ecma")>=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var r=e.key;var i=e.value;var s=i instanceof ne&&Array.isArray(i.body)&&!i.contains_this();if((s||i instanceof te)&&!i.name){return make_node(et,e,{async:i.async,is_generator:i.is_generator,key:r instanceof F?r:make_node(ht,e,{name:r}),value:make_node(ee,i,i),quote:e.quote})}}return e});def_optimize(ie,function(e,t){if(t.option("pure_getters")==true&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!is_destructuring_export_decl(t)){var n=[];for(var r=0;r<e.names.length;r++){var i=e.names[r];if(!(i instanceof Qe&&typeof i.key=="string"&&i.value instanceof at&&!should_retain(t,i.value.definition()))){n.push(i)}}if(n.length!=e.names.length){e.names=n}}return e;function is_destructuring_export_decl(e){var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/];for(var n=0,r=0,i=t.length;n<i;r++){var s=e.parent(r);if(!s)return false;if(n===0&&s.TYPE=="Destructuring")continue;if(!t[n].test(s.TYPE)){return false}n++}return true}function should_retain(e,t){if(t.references.length)return true;if(!t.global)return false;if(e.toplevel.vars){if(e.top_retain){return e.top_retain(t)}return false}return true}});function SourceMap(e){e=defaults(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new t.SourceMapGenerator({file:e.file,sourceRoot:e.root});var r=e.orig&&new t.SourceMapConsumer(e.orig);if(r){r.sources.forEach(function(e){var t=r.sourceContentFor(e,true);if(t){n.setSourceContent(e,t)}})}function add(t,i,s,o,a,c){if(r){var u=r.originalPositionFor({line:o,column:a});if(u.source===null){return}t=u.source;o=u.line;a=u.column;c=u.name||c}n.addMapping({generated:{line:i+e.dest_line_diff,column:s},original:{line:o+e.orig_line_diff,column:a},source:t,name:c})}return{add:add,get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}var zn=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALT_MASK","ALWAYS","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AddSearchProvider","AnalyserNode","AnimationEvent","AnonXMLHttpRequest","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioProcessingEvent","AudioStreamTrack","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BarProp","BaseHref","BatteryManager","BeforeLoadEvent","BeforeUnloadEvent","BiquadFilterNode","Blob","BlobEvent","Boolean","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR_ATTACHMENT0","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSPageRule","CSSPrimitiveValue","CSSRule","CSSRuleList","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSSupportsRule","CSSUnknownRule","CSSValue","CSSValueList","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","CloseEvent","Collator","CommandEvent","Comment","CompositionEvent","Console","Controllers","ConvolverNode","Counter","Crypto","CryptoKey","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DST_ALPHA","DST_COLOR","DYNAMIC_DRAW","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DelayNode","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Document","DocumentFragment","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementQuery","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_MAT2","FLOAT_MAT3","FLOAT_MAT4","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","Feed","FeedEntry","File","FileError","FileList","FileReader","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FormData","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadButton","GamepadEvent","GestureEvent","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","Image","ImageBitmap","ImageData","Infinity","InputEvent","InputMethodContext","InstallTrigger","Int16Array","Int32Array","Int8Array","Intent","InternalError","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","KeyboardEvent","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LocalMediaStream","Location","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_VALUE","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MediaController","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackEvent","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBSOLETE","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","Option","OscillatorNode","OverflowEvent","PACK_ALIGNMENT","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","Path2D","Performance","PerformanceEntry","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceResourceTiming","PerformanceTiming","PeriodicWave","Plugin","PluginArray","PopStateEvent","PopupBlockedEvent","ProcessingInstruction","ProgressEvent","Promise","PropertyNodeList","Proxy","PushManager","PushSubscription","Q","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED_BITS","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RGB","RGB565","RGB5_A1","RGBA","RGBA4","RGBColor","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCDataChannelEvent","RTCIceCandidate","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCSessionDescription","RTCStatsReport","RadioNodeList","Range","RangeError","RangeException","RecordErrorEvent","Rect","ReferenceError","RegExp","Request","Response","SAMPLER_2D","SAMPLER_CUBE","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","START_TO_END","START_TO_START","STATIC_DRAW","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_DRAW","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedWorker","SimpleGestureEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","StopIteration","Storage","StorageEvent","String","StyleSheet","StyleSheetList","SubtleCrypto","Symbol","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_BINDING_2D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MIN_FILTER","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Text","TextDecoder","TextEncoder","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransitionEvent","TreeWalker","TypeError","UIEvent","UNCACHED","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNSCHEDULED_STATE","UNSENT","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VTTCue","VTTRegion","ValidityState","VideoStreamTrack","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WaveShaperNode","WeakMap","WeakSet","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLRenderingContext","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArray","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WheelEvent","Window","Worker","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","add","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addWakeLockListener","addedNodes","additionalName","additiveSymbols","addons","adoptNode","adr","advance","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allowFullscreen","allowedDirections","alpha","alt","altGraphKey","altHtml","altKey","altLeft","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","angle","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","apply","applyElement","arc","arcTo","archive","areas","arguments","arrayBuffer","asin","asinh","assert","assign","async","atEnd","atan","atan2","atanh","atob","attachEvent","attachShader","attachShadow","attachments","attack","attrChange","attrName","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributes","audioTracks","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","axes","axis","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","balance","baseFrequencyX","baseFrequencyY","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","beginElement","beginElementAt","beginPath","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","binaryType","bind","bindAttribLocation","bindBuffer","bindFramebuffer","bindRenderbuffer","bindTexture","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blob","blockDirection","blue","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderColorDark","borderColorLight","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","c","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canPlayType","cancel","cancelAnimationFrame","cancelBubble","cancelScheduledValues","cancelable","candidate","canvas","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","characterData","characterDataOldValue","characterSet","charging","chargingTime","charset","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","classList","className","classid","clear","clearAttributes","clearColor","clearData","clearDepth","clearImmediate","clearInterval","clearMarks","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-interpolation","color-interpolation-filters","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commitPreferences","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareNode","comparePoint","compatMode","compatible","compile","compileShader","complete","componentFromPoint","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexSubImage2D","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectStart","connected","connection","connectionSpeed","console","consolidate","constrictionActive","constructor","contactID","contains","containsNode","content","contentDocument","contentEditable","contentOverflow","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuous","control","controller","controls","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","cos","cosh","count","counter-increment","counter-reset","counterIncrement","counterReset","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTMLDocument","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPopup","createProcessingInstruction","createProgram","createRadialGradient","createRange","createRangeCollection","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createScriptProcessor","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTreeWalker","createWaveShaper","creationTime","crossOrigin","crypto","csi","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentNode","currentPage","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customError","cx","cy","d","data","dataFld","dataFormatAs","dataPageSize","dataSrc","dataTransfer","database","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPrevented","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","delayTime","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteRenderbuffer","deleteRow","deleteRule","deleteShader","deleteTFoot","deleteTHead","deleteTexture","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","depthFunc","depthMask","depthRange","deriveBits","deriveKey","description","deselectAll","designMode","destination","destinationURL","detach","detachEvent","detachShader","detail","detune","devicePixelRatio","deviceXDPI","deviceYDPI","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disableVertexAttribArray","disabled","dischargingTime","disconnect","dispatchEvent","display","distanceModel","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","download","dragDrop","draggable","drawArrays","drawArraysInstancedANGLE","drawCustomFocusRing","drawElements","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dump","duplicate","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effectAllowed","elapsedTime","elementFromPoint","elements","elevation","ellipse","email","embeds","empty","empty-cells","emptyCells","enable","enableBackground","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeURI","encodeURIComponent","encoding","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endTime","ended","endsWith","entities","entries","entryType","enumerate","enumerateEditable","error","errorCode","escape","eval","evaluate","event","eventPhase","every","exception","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPointerLock","exp","expand","expandEntityReferences","expando","expansion","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","f","face","factoryReset","fallback","familyName","farthestViewportElement","fastSeek","fatal","fetch","fetchStart","fftSize","fgColor","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","fill","fill-opacity","fill-rule","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findRule","findText","finish","fireEvent","firstChild","firstElementChild","firstPage","fixed","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","fontcolor","fonts","fontsize","for","forEach","forceRedraw","form","formAction","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","fr","frame","frameBorder","frameElement","frameSpacing","framebufferRenderbuffer","framebufferTexture2D","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","frontFace","fround","fullScreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","genderIdentity","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getAdjacentText","getAll","getAllResponseHeaders","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNode","getAttributeNodeNS","getAudioTracks","getBBox","getBattery","getBlob","getBookmark","getBoundingClientRect","getBufferParameter","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getChannelData","getCharNumAtPosition","getClientRect","getClientRects","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getConfiguration","getContext","getContextAttributes","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDestinationInsertionPoints","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getFeature","getFile","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHours","getImageData","getInt16","getInt32","getInt8","getIntersectionList","getItem","getItems","getKey","getLineDash","getLocalStreams","getMarks","getMatchedCSSRules","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNotifier","getNumberOfChars","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getPathSegAtLength","getPointAtLength","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyValue","getPrototypeOf","getRGBColorValue","getRandomValues","getRangeAt","getReceivers","getRectValue","getRegistration","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRotationOfChar","getSVGDocument","getScreenCTM","getSeconds","getSelection","getSenders","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getStats","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedExtensions","getTexParameter","getTime","getTimezoneOffset","getTotalLength","getTrackById","getTracks","getTransformToElement","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformLocation","getUserMedia","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getWakeLockState","getYear","givenName","global","globalAlpha","globalCompositeOperation","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","gradientTransform","gradientUnits","grammars","green","group","groupCollapsed","groupEnd","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasChildNodes","hasComposition","hasExtension","hasFeature","hasFocus","hasLayout","hasOwnProperty","hash","head","headers","heading","height","hidden","hide","hideFocus","high","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostname","href","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","hwTimestamp","hypot","iccId","iceConnectionState","iceGatheringState","icon","id","identifier","identity","ignoreBOM","ignoreCase","image-orientation","image-rendering","imageOrientation","imageRendering","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertData","insertItemBefore","insertNode","insertRow","insertRule","instanceRoot","intercept","interimResults","internalSubset","intersectsNode","interval","invalidIteratorState","inverse","invertSelf","is","is2D","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isFinite","isFramebuffer","isFrozen","isGenerator","isId","isInjected","isInteger","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isRenderbuffer","isSafeInteger","isSameNode","isSealed","isShader","isSupported","isTextEdit","isTexture","isTrusted","isTypeSupported","isView","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","iterateNext","iterator","javaEnabled","jobTitle","join","json","justify-content","justifyContent","k1","k2","k3","k4","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keySystem","keyText","keyUsage","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftMargin","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearRampToValueAtTime","lineno","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTimes","loaded","localDescription","localName","localStorage","locale","localeCompare","location","locationbar","lock","lockedFile","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","manifest","map","mapping","margin","margin-bottom","margin-left","margin-right","margin-top","marginBottom","marginHeight","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-type","maskContentUnits","maskType","maskUnits","match","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-height","max-width","maxAlternatives","maxChannelCount","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxLength","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","metaKey","method","mimeType","mimeTypes","min","min-height","min-width","minDecibels","minHeight","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationStart","navigator","near","nearestViewportElement","negative","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextNode","nextPage","nextSibling","nickname","noHref","noResize","noShade","noValidate","noWrap","nodeName","nodeType","nodeValue","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","observe","of","offscreenBuffering","offset","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onactivate","onactive","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onblocked","onblur","onbounce","onboundary","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","once","oncellchange","onchange","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","oncompassneedscalibration","oncomplete","oncontextmenu","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceproximity","ondischargingtimechange","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onfullscreenchange","onfullscreenerror","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","oniceconnectionstatechange","oninactive","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onlayoutcomplete","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerup","onpopstate","onprogress","onpropertychange","onratechange","onreadystatechange","onremovestream","onremovetrack","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onseeked","onseeking","onselect","onselectionchange","onselectstart","onshow","onsignalingstatechange","onsoundend","onsoundstart","onspeechend","onspeechstart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","ontextinput","ontimeout","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onunload","onupdateready","onupgradeneeded","onuserproximity","onversionchange","onvoiceschanged","onvolumechange","onwaiting","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opener","opera","operationType","operator","opr","optimum","options","order","orderX","orderY","ordered","org","orient","orientAngle","orientType","orientation","origin","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","overflow","overflow-x","overflow-y","overflowX","overflowY","overrideMimeType","oversample","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","pad","padding","padding-bottom","padding-left","padding-right","padding-top","paddingBottom","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","palette","panningModel","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseFloat","parseFromString","parseInt","participants","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","paused","pending","performance","permission","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phoneticFamilyName","phoneticGivenName","photo","ping","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","placeholder","platform","play","playbackRate","playbackState","playbackTime","played","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","position","positionAlign","postError","postMessage","poster","pow","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","prepend","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","previousElementSibling","previousNode","previousPage","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","privateKey","probablySupportsContext","process","processIceMessage","product","productSub","profile","profileEnd","profiles","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","pseudoClass","pseudoElement","publicId","publicKey","published","push","pushNotification","pushState","put","putImageData","quadraticCurveTo","qualifier","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","quote","quotes","r","r1","r2","race","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readOnly","readPixels","readReportRequested","readyState","reason","reboot","receiver","receivers","recordNumber","recordset","rect","red","redirectCount","redirectEnd","redirectStart","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referrer","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProtocolHandler","reject","rel","relList","relatedNode","relatedTarget","release","releaseCapture","releaseEvents","releasePointerCapture","releaseShaderCompiler","reliable","reload","remainingSpace","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removedNodes","renderbufferStorage","renderedBuffer","renderingMode","repeat","replace","replaceAdjacentText","replaceChild","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceTrack","replaceWholeText","reportValidity","requestAnimationFrame","requestAutocomplete","requestData","requestFullscreen","requestMediaKeySystemAccess","requestPermission","requestPointerLock","requestStart","requestingWindow","required","requiredExtensions","requiredFeatures","reset","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseStart","responseText","responseType","responseURL","responseXML","restore","result","resultType","resume","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightMargin","rolloffFactor","root","rootElement","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationRate","round","rowIndex","rowSpan","rows","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","safari","sampleCoverage","sampleRate","sandbox","save","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scripts","scroll","scroll-behavior","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMaxX","scrollMaxY","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbars","scrolling","sdp","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekable","seeking","select","selectAllChildren","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentTimestamp","separator","serializeToString","serviceWorker","sessionId","sessionStorage","set","setActive","setAlpha","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBingCurrentSearchDefault","setCapture","setColor","setCompositeOperation","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFullYear","setHours","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setLineCap","setLineDash","setLineJoin","setLineWidth","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setPeriodicWave","setPointerCapture","setPosition","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-rendering","shapeRendering","sheet","shift","shiftKey","shiftLeft","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signalingState","sin","singleNodeValue","sinh","size","sizeToContent","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","source","sourceBuffer","sourceBuffers","sourceIndex","spacing","span","speakAs","speaking","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","standalone","standby","start","startContainer","startIce","startOffset","startRendering","startTime","startsWith","state","status","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopOpacity","stopPropagation","storageArea","storageName","storageStatus","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","strike","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supports","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takeRecords","tan","tanh","target","targetElement","targetTouches","targetX","targetY","tel","terminate","test","texImage2D","texParameterf","texParameteri","texSubImage2D","text","text-align","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationStyle","textDecorationUnderline","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlinePosition","then","threadId","threshold","tiltX","tiltY","time","timeEnd","timeStamp","timeout","timestamp","timestampOffset","timing","title","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMethod","toPrecision","toSdp","toSource","toStaticHTML","toString","toStringTag","toTimeString","toUTCString","toUpperCase","toggle","toggleLongPressEnabled","tooLong","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touchAction","touches","trace","track","transaction","transactions","transform","transform-origin","transform-style","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","trim","trimLeft","trimRight","trueSpeed","trunc","truncate","type","typeDetail","typeMismatch","typeMustMatch","types","ubound","undefined","unescape","uneval","unicode-bidi","unicodeBidi","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniformMatrix2fv","uniformMatrix3fv","uniformMatrix4fv","unique","uniqueID","uniqueNumber","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","update","updateCommands","updateIce","updateInterval","updateSettings","updated","updating","upload","upper","upperBound","upperOpen","uri","url","urn","urns","usages","useCurrentView","useMap","useProgram","usedSpace","userAgent","userLanguage","username","v8BreakIterator","vAlign","vLink","valid","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisorANGLE","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vibrate","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","visibility","visibilityState","visible","vlinkColor","voice","volume","vrml","vspace","w","wand","warn","wasClean","watch","watchPosition","webdriver","webkitAddKey","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitKeys","webkitLineDashOffset","webkitLockOrientation","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextSizeAdjust","webkitTransform","webkitTransformOrigin","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","wrap","wrapKey","write","writeln","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function find_builtins(e){zn.forEach(add);var t=["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"];var n={};var r=typeof global==="object"?global:self;t.forEach(function(e){n[e]=r[e]||new Function});["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(add);[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(add);if(e.prototype){Object.getOwnPropertyNames(e.prototype).map(add)}});function add(t){e.add(t)}}function reserve_quoted_keys(e,t){function add(e){push_uniq(t,e)}e.walk(new TreeWalker(function(e){if(e instanceof Qe&&e.quote){add(e.key)}else if(e instanceof Ye&&e.quote){add(e.key.name)}else if(e instanceof je){addStrings(e.property,add)}}))}function addStrings(e,t){e.walk(new TreeWalker(function(e){if(e instanceof Ne){addStrings(e.tail_node(),t)}else if(e instanceof Mt){t(e.value)}else if(e instanceof qe){addStrings(e.consequent,t);addStrings(e.alternative,t)}return true}))}function mangle_properties(e,t){t=defaults(t,{builtins:false,cache:null,debug:false,keep_quoted:false,only_cache:false,regex:null,reserved:null,undeclared:false},true);var n=t.reserved;if(!Array.isArray(n))n=[n];var r=new Set(n);if(!t.builtins)find_builtins(r);var i=-1;var s;if(t.cache){s=t.cache.props;s.forEach(function(e){r.add(e)})}else{s=new Map}var o=t.regex&&new RegExp(t.regex);var a=t.debug!==false;var c;if(a){c=t.debug===true?"":t.debug}var u=new Set;var l=new Set;var f=t.keep_quoted==="strict";e.walk(new TreeWalker(function(e){if(e instanceof Qe){if(typeof e.key=="string"&&(!f||!e.quote)){add(e.key)}}else if(e instanceof Ye){if(!f||!e.key.end.quote){add(e.key.name)}}else if(e instanceof Be){var n=!!t.undeclared;if(!n){var r=e;while(r.expression){r=r.expression}n=!(r.thedef&&r.thedef.undeclared)}if(n&&(!f||!e.quote)){add(e.property)}}else if(e instanceof je){if(!f){addStrings(e.property,add)}}else if(e instanceof Re&&e.expression.print_to_string()=="Object.defineProperty"){addStrings(e.args[1],add)}else if(e instanceof Ge&&e.operator==="in"){addStrings(e.left,add)}}));return e.transform(new TreeTransformer(function(e){if(e instanceof Qe){if(typeof e.key=="string"&&(!f||!e.quote)){e.key=mangle(e.key)}}else if(e instanceof Ye){if(!f||!e.key.end.quote){e.key.name=mangle(e.key.name)}}else if(e instanceof Be){if(!f||!e.quote){e.property=mangle(e.property)}}else if(!t.keep_quoted&&e instanceof je){e.property=mangleStrings(e.property)}else if(e instanceof Re&&e.expression.print_to_string()=="Object.defineProperty"){e.args[1]=mangleStrings(e.args[1])}else if(e instanceof Ge&&e.operator==="in"){e.left=mangleStrings(e.left)}}));function can_mangle(e){if(l.has(e))return false;if(r.has(e))return false;if(t.only_cache){return s.has(e)}if(/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e))return false;return true}function should_mangle(e){if(o&&!o.test(e))return false;if(r.has(e))return false;return s.has(e)||u.has(e)}function add(e){if(can_mangle(e))u.add(e);if(!should_mangle(e)){l.add(e)}}function mangle(e){if(!should_mangle(e)){return e}var t=s.get(e);if(!t){if(a){var n="_$"+e+"$"+c+"_";if(can_mangle(n)){t=n}}if(!t){do{t=an(++i)}while(!can_mangle(t))}s.set(e,t)}return t}function mangleStrings(e){return e.transform(new TreeTransformer(function(e){if(e instanceof Ne){var t=e.expressions.length-1;e.expressions[t]=mangleStrings(e.expressions[t])}else if(e instanceof Mt){e.value=mangle(e.value)}else if(e instanceof qe){e.consequent=mangleStrings(e.consequent);e.alternative=mangleStrings(e.alternative)}return e}))}}var Hn=typeof atob=="undefined"?function(e){return Buffer.from(e,"base64").toString()}:atob;var Vn=typeof btoa=="undefined"?function(e){return Buffer.from(e).toString("base64")}:btoa;function read_source_map(e){var t=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(e);if(!t){console.warn("inline source map not found");return null}return Hn(t[2])}function set_shorthand(e,t,n){if(t[e]){n.forEach(function(n){if(t[n]){if(typeof t[n]!="object")t[n]={};if(!(e in t[n]))t[n][e]=t[e]}})}}function init_cache(e){if(!e)return;if(!("props"in e)){e.props=new Map}else if(!(e.props instanceof Map)){e.props=map_from_object(e.props)}}function cache_to_json(e){return{props:map_to_object(e.props)}}async function minify(e,t){t=defaults(t,{compress:{},ecma:undefined,enclose:false,ie8:false,keep_classnames:undefined,keep_fnames:false,mangle:{},module:false,nameCache:null,output:null,format:null,parse:{},rename:undefined,safari10:false,sourceMap:false,timings:false,toplevel:false,warnings:false,wrap:false},true);var n=t.timings&&{start:Date.now()};if(t.keep_classnames===undefined){t.keep_classnames=t.keep_fnames}if(t.rename===undefined){t.rename=t.compress&&t.mangle}if(t.output&&t.format){throw new Error("Please only specify either output or format option, preferrably format.")}t.format=t.format||t.output||{};set_shorthand("ecma",t,["parse","compress","format"]);set_shorthand("ie8",t,["compress","mangle","format"]);set_shorthand("keep_classnames",t,["compress","mangle"]);set_shorthand("keep_fnames",t,["compress","mangle"]);set_shorthand("module",t,["parse","compress","mangle"]);set_shorthand("safari10",t,["mangle","format"]);set_shorthand("toplevel",t,["compress","mangle"]);set_shorthand("warnings",t,["compress"]);var r;if(t.mangle){t.mangle=defaults(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:false,ie8:false,keep_classnames:false,keep_fnames:false,module:false,properties:false,reserved:[],safari10:false,toplevel:false},true);if(t.mangle.properties){if(typeof t.mangle.properties!="object"){t.mangle.properties={}}if(t.mangle.properties.keep_quoted){r=t.mangle.properties.reserved;if(!Array.isArray(r))r=[];t.mangle.properties.reserved=r}if(t.nameCache&&!("cache"in t.mangle.properties)){t.mangle.properties.cache=t.nameCache.props||{}}}init_cache(t.mangle.cache);init_cache(t.mangle.properties.cache)}if(t.sourceMap){t.sourceMap=defaults(t.sourceMap,{asObject:false,content:null,filename:null,includeSources:false,root:null,url:null},true)}if(n)n.parse=Date.now();var i;if(e instanceof Q){i=e}else{if(typeof e=="string"){e=[e]}t.parse=t.parse||{};t.parse.toplevel=null;for(var s in e)if(HOP(e,s)){t.parse.filename=s;t.parse.toplevel=parse(e[s],t.parse);if(t.sourceMap&&t.sourceMap.content=="inline"){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=read_source_map(e[s])}}i=t.parse.toplevel}if(r&&t.mangle.properties.keep_quoted!=="strict"){reserve_quoted_keys(i,r)}if(t.wrap){i=i.wrap_commonjs(t.wrap)}if(t.enclose){i=i.wrap_enclose(t.enclose)}if(n)n.rename=Date.now();if(n)n.compress=Date.now();if(t.compress){i=new Compressor(t.compress,{mangle_options:t.mangle}).compress(i)}if(n)n.scope=Date.now();if(t.mangle)i.figure_out_scope(t.mangle);if(n)n.mangle=Date.now();if(t.mangle){an.reset();i.compute_char_frequency(t.mangle);i.mangle_names(t.mangle)}if(n)n.properties=Date.now();if(t.mangle&&t.mangle.properties){i=mangle_properties(i,t.mangle.properties)}if(n)n.format=Date.now();var o={};if(t.format.ast){o.ast=i}if(!HOP(t.format,"code")||t.format.code){if(t.sourceMap){if(typeof t.sourceMap.content=="string"){t.sourceMap.content=JSON.parse(t.sourceMap.content)}t.format.source_map=SourceMap({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root});if(t.sourceMap.includeSources){if(e instanceof Q){throw new Error("original source content unavailable")}else for(var s in e)if(HOP(e,s)){t.format.source_map.get().setSourceContent(s,e[s])}}}delete t.format.ast;delete t.format.code;var a=OutputStream(t.format);i.print(a);o.code=a.get();if(t.sourceMap){if(t.sourceMap.asObject){o.map=t.format.source_map.get().toJSON()}else{o.map=t.format.source_map.toString()}if(t.sourceMap.url=="inline"){var c=typeof o.map==="object"?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Vn(c)}else if(t.sourceMap.url){o.code+="\n//# sourceMappingURL="+t.sourceMap.url}}}if(t.nameCache&&t.mangle){if(t.mangle.cache)t.nameCache.vars=cache_to_json(t.mangle.cache);if(t.mangle.properties&&t.mangle.properties.cache){t.nameCache.props=cache_to_json(t.mangle.properties.cache)}}if(n){n.end=Date.now();o.timings={parse:.001*(n.rename-n.parse),rename:.001*(n.compress-n.rename),compress:.001*(n.scope-n.compress),scope:.001*(n.mangle-n.scope),mangle:.001*(n.properties-n.mangle),properties:.001*(n.format-n.properties),format:.001*(n.end-n.format),total:.001*(n.end-n.start)}}return o}async function run_cli({program:e,packageJson:t,fs:r,path:i}){const s=new Set(["cname","parent_scope","scope","uses_eval","uses_with"]);var o={};var a={compress:false,mangle:false};const c=await _default_options();e.version(t.name+" "+t.version);e.parseArgv=e.parse;e.parse=undefined;if(process.argv.includes("ast"))e.helpInformation=describe_ast;else if(process.argv.includes("options"))e.helpInformation=function(){var e=[];for(var t in c){e.push("--"+(t==="sourceMap"?"source-map":t)+" options:");e.push(format_object(c[t]));e.push("")}return e.join("\n")};e.option("-p, --parse <options>","Specify parser options.",parse_js());e.option("-c, --compress [options]","Enable compressor/specify compressor options.",parse_js());e.option("-m, --mangle [options]","Mangle names/specify mangler options.",parse_js());e.option("--mangle-props [options]","Mangle properties/specify mangler options.",parse_js());e.option("-f, --format [options]","Format options.",parse_js());e.option("-b, --beautify [options]","Alias for --format beautify=true.",parse_js());e.option("-o, --output <file>","Output file (default STDOUT).");e.option("--comments [filter]","Preserve copyright comments in the output.");e.option("--config-file <file>","Read minify() options from JSON file.");e.option("-d, --define <expr>[=value]","Global definitions.",parse_js("define"));e.option("--ecma <version>","Specify ECMAScript release: 5, 2015, 2016 or 2017...");e.option("-e, --enclose [arg[,...][:value[,...]]]","Embed output in a big function with configurable arguments and values.");e.option("--ie8","Support non-standard Internet Explorer 8.");e.option("--keep-classnames","Do not mangle/drop class names.");e.option("--keep-fnames","Do not mangle/drop function names. Useful for code relying on Function.prototype.name.");e.option("--module","Input is an ES6 module");e.option("--name-cache <file>","File to hold mangled name mappings.");e.option("--rename","Force symbol expansion.");e.option("--no-rename","Disable symbol expansion.");e.option("--safari10","Support non-standard Safari 10.");e.option("--source-map [options]","Enable source map/specify source map options.",parse_js());e.option("--timings","Display operations run time on STDERR.");e.option("--toplevel","Compress and/or mangle variables in toplevel scope.");e.option("--wrap <name>","Embed everything as a function with “exports” corresponding to “name” globally.");e.arguments("[files...]").parseArgv(process.argv);if(e.configFile){a=JSON.parse(read_file(e.configFile))}if(!e.output&&e.sourceMap&&e.sourceMap.url!="inline"){fatal("ERROR: cannot write source map to STDOUT")}["compress","enclose","ie8","mangle","module","safari10","sourceMap","toplevel","wrap"].forEach(function(t){if(t in e){a[t]=e[t]}});if("ecma"in e){if(e.ecma!=(e.ecma|0))fatal("ERROR: ecma must be an integer");const t=e.ecma|0;if(t>5&&t<2015)a.ecma=t+2009;else a.ecma=t}if(e.beautify||e.format){if(e.beautify&&e.format){fatal("Please only specify one of --beautify or --format")}if(e.beautify){a.format=typeof e.beautify=="object"?e.beautify:{};if(!("beautify"in a.format)){a.format.beautify=true}}if(e.format){a.format=typeof e.format=="object"?e.format:{}}}if(e.comments){if(typeof a.format!="object")a.format={};a.format.comments=typeof e.comments=="string"?e.comments=="false"?false:e.comments:"some"}if(e.define){if(typeof a.compress!="object")a.compress={};if(typeof a.compress.global_defs!="object")a.compress.global_defs={};for(var u in e.define){a.compress.global_defs[u]=e.define[u]}}if(e.keepClassnames){a.keep_classnames=true}if(e.keepFnames){a.keep_fnames=true}if(e.mangleProps){if(e.mangleProps.domprops){delete e.mangleProps.domprops}else{if(typeof e.mangleProps!="object")e.mangleProps={};if(!Array.isArray(e.mangleProps.reserved))e.mangleProps.reserved=[]}if(typeof a.mangle!="object")a.mangle={};a.mangle.properties=e.mangleProps}if(e.nameCache){a.nameCache=JSON.parse(read_file(e.nameCache,"{}"))}if(e.output=="ast"){a.format={ast:true,code:false}}if(e.parse){if(!e.parse.acorn&&!e.parse.spidermonkey){a.parse=e.parse}else if(e.sourceMap&&e.sourceMap.content=="inline"){fatal("ERROR: inline source map only works with built-in parser")}}if(~e.rawArgs.indexOf("--rename")){a.rename=true}else if(!e.rename){a.rename=false}let l=e=>e;if(typeof e.sourceMap=="object"&&"base"in e.sourceMap){l=function(){var t=e.sourceMap.base;delete a.sourceMap.base;return function(e){return i.relative(t,e)}}()}let f;if(a.files&&a.files.length){f=a.files;delete a.files}else if(e.args.length){f=e.args}if(f){simple_glob(f).forEach(function(e){o[l(e)]=read_file(e)})}else{await new Promise(e=>{var t=[];process.stdin.setEncoding("utf8");process.stdin.on("data",function(e){t.push(e)}).on("end",function(){o=[t.join("")];e()});process.stdin.resume()})}await run_cli();function convert_ast(e){return F.from_mozilla_ast(Object.keys(o).reduce(e,null))}async function run_cli(){var t=e.sourceMap&&e.sourceMap.content;if(t&&t!=="inline"){a.sourceMap.content=read_file(t,t)}if(e.timings)a.timings=true;try{if(e.parse){if(e.parse.acorn){o=convert_ast(function(t,r){return n(20976).parse(o[r],{ecmaVersion:2018,locations:true,program:t,sourceFile:r,sourceType:a.module||e.parse.module?"module":"script"})})}else if(e.parse.spidermonkey){o=convert_ast(function(e,t){var n=JSON.parse(o[t]);if(!e)return n;e.body=e.body.concat(n.body);return e})}}}catch(e){fatal(e)}let i;try{i=await minify(o,a)}catch(e){if(e.name=="SyntaxError"){print_error("Parse error at "+e.filename+":"+e.line+","+e.col);var c=e.col;var u=o[e.filename].split(/\r?\n/);var l=u[e.line-1];if(!l&&!c){l=u[e.line-2];c=l.length}if(l){var f=70;if(c>f){l=l.slice(c-f);c=f}print_error(l.slice(0,80));print_error(l.slice(0,c).replace(/\S/g," ")+"^")}}if(e.defs){print_error("Supported options:");print_error(format_object(e.defs))}fatal(e);return}if(e.output=="ast"){if(!a.compress&&!a.mangle){i.ast.figure_out_scope({})}console.log(JSON.stringify(i.ast,function(e,t){if(t)switch(e){case"thedef":return symdef(t);case"enclosed":return t.length?t.map(symdef):undefined;case"variables":case"functions":case"globals":return t.size?collect_from_map(t,symdef):undefined}if(s.has(e))return;if(t instanceof O)return;if(t instanceof Map)return;if(t instanceof F){var n={_class:"AST_"+t.TYPE};if(t.block_scope){n.variables=t.block_scope.variables;n.functions=t.block_scope.functions;n.enclosed=t.block_scope.enclosed}t.CTOR.PROPS.forEach(function(e){n[e]=t[e]});return n}return t},2))}else if(e.output=="spidermonkey"){try{const e=await minify(i.code,{compress:false,mangle:false,format:{ast:true,code:false}});console.log(JSON.stringify(e.ast.to_mozilla_ast(),null,2))}catch(e){fatal(e);return}}else if(e.output){r.writeFileSync(e.output,i.code);if(a.sourceMap&&a.sourceMap.url!=="inline"&&i.map){r.writeFileSync(e.output+".map",i.map)}}else{console.log(i.code)}if(e.nameCache){r.writeFileSync(e.nameCache,JSON.stringify(a.nameCache))}if(i.timings)for(var p in i.timings){print_error("- "+p+": "+i.timings[p].toFixed(3)+"s")}}function fatal(e){if(e instanceof Error)e=e.stack.replace(/^\S*?Error:/,"ERROR:");print_error(e);process.exit(1)}function simple_glob(e){if(Array.isArray(e)){return[].concat.apply([],e.map(simple_glob))}if(e&&e.match(/[*?]/)){var t=i.dirname(e);try{var n=r.readdirSync(t)}catch(e){}if(n){var s="^"+i.basename(e).replace(/[.+^$[\]\\(){}]/g,"\\$&").replace(/\*/g,"[^/\\\\]*").replace(/\?/g,"[^/\\\\]")+"$";var o=process.platform==="win32"?"i":"";var a=new RegExp(s,o);var c=n.filter(function(e){return a.test(e)}).map(function(e){return i.join(t,e)});if(c.length)return c}}return[e]}function read_file(e,t){try{return r.readFileSync(e,"utf8")}catch(e){if((e.code=="ENOENT"||e.code=="ENAMETOOLONG")&&t!=null)return t;fatal(e)}}function parse_js(e){return function(t,n){n=n||{};try{walk(parse(t,{expression:true}),t=>{if(t instanceof We){var r=t.left.print_to_string();var i=t.right;if(e){n[r]=i}else if(i instanceof Xe){n[r]=i.elements.map(to_string)}else if(i instanceof It){i=i.value;n[r]=new RegExp(i.source,i.flags)}else{n[r]=to_string(i)}return true}if(t instanceof st||t instanceof Le){var r=t.print_to_string();n[r]=true;return true}if(!(t instanceof Ne))throw t;function to_string(e){return e instanceof Tt?e.getValue():e.print_to_string({quote_keys:true})}})}catch(r){if(e){fatal("Error parsing arguments for '"+e+"': "+t)}else{n[t]=null}}return n}}function symdef(e){var t=1e6+e.id+" "+e.name;if(e.mangled_name)t+=" "+e.mangled_name;return t}function collect_from_map(e,t){var n=[];e.forEach(function(e){n.push(t(e))});return n}function format_object(e){var t=[];var n="";Object.keys(e).map(function(t){if(n.length<t.length)n=Array(t.length+1).join(" ");return[t,JSON.stringify(e[t])]}).forEach(function(e){t.push(" "+e[0]+n.slice(e[0].length-2)+e[1])});return t.join("\n")}function print_error(e){process.stderr.write(e);process.stderr.write("\n")}function describe_ast(){var e=OutputStream({beautify:true});function doitem(t){e.print("AST_"+t.TYPE);const n=t.SELF_PROPS.filter(e=>!/^\$/.test(e));if(n.length>0){e.space();e.with_parens(function(){n.forEach(function(t,n){if(n)e.space();e.print(t)})})}if(t.documentation){e.space();e.print_string(t.documentation)}if(t.SUBCLASSES.length>0){e.space();e.with_block(function(){t.SUBCLASSES.forEach(function(t){e.indent();doitem(t);e.newline()})})}}doitem(F);return e+"\n"}}async function _default_options(){const e={};Object.keys(infer_options({0:0})).forEach(t=>{const n=infer_options({[t]:{0:0}});if(n)e[t]=n});return e}async function infer_options(e){try{await minify("",e)}catch(e){return e.defs}}e._default_options=_default_options;e._run_cli=run_cli;e.minify=minify})},38033:(n,h,S)=>{!function(O){"use strict";function e(e){return e.split("")}function t(e,t){return t.indexOf(e)>=0}function i(e,t){for(var n=0,r=t.length;n<r;++n)if(e(t[n]))return t[n]}function r(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function o(e,t){this.message=e,this.defs=t}function a(e,t,n){!0===e&&(e={});var r=e||{};if(n)for(var i in r)b(r,i)&&!b(t,i)&&o.croak("`"+i+"` is not a supported option",t);for(var i in t)b(t,i)&&(r[i]=e&&b(e,i)?e[i]:t[i]);return r}function u(e,t){var n=0;for(var r in t)b(t,r)&&(e[r]=t[r],n++);return n}function s(){}function c(){return!1}function f(){return!0}function l(){return this}function p(){return null}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.name="DefaultsError",r(o),o.croak=function(e,t){throw new o(e,t)};var I=function(){function n(n,s,o){var a,c=[],u=[];function f(){var l=s(n[a],a),f=l instanceof r;return f&&(l=l.v),l instanceof t?(l=l.v)instanceof i?u.push.apply(u,o?l.v.slice().reverse():l.v):u.push(l):l!==e&&(l instanceof i?c.push.apply(c,o?l.v.slice().reverse():l.v):c.push(l)),f}if(n instanceof Array)if(o){for(a=n.length;--a>=0&&!f(););c.reverse(),u.reverse()}else for(a=0;a<n.length&&!f();++a);else for(a in n)if(b(n,a)&&f())break;return u.concat(c)}n.at_top=function(e){return new t(e)},n.splice=function(e){return new i(e)},n.last=function(e){return new r(e)};var e=n.skip={};function t(e){this.v=e}function i(e){this.v=e}function r(e){this.v=e}return n}();function d(e,t){e.indexOf(t)<0&&e.push(t)}function m(e,t){return e.replace(/\{(.+?)\}/g,function(e,n){return t&&t[n]})}function v(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function D(e,t){if(e.length<2)return e.slice();return function n(e){if(e.length<=1)return e;var r=Math.floor(e.length/2),i=e.slice(0,r),s=e.slice(r);return function(e,n){for(var r=[],i=0,s=0,o=0;i<e.length&&s<n.length;)t(e[i],n[s])<=0?r[o++]=e[i++]:r[o++]=n[s++];return i<e.length&&r.push.apply(r,e.slice(i)),s<n.length&&r.push.apply(r,n.slice(s)),r}(i=n(i),s=n(s))}(e)}function g(e){e instanceof Array||(e=e.split(" "));var t="",n=[];e:for(var r=0;r<e.length;++r){for(var i=0;i<n.length;++i)if(n[i][0].length==e[r].length){n[i].push(e[r]);continue e}n.push([e[r]])}function o(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function a(e){if(1==e.length)return t+="return str === "+o(e[0])+";";t+="switch(str){";for(var n=0;n<e.length;++n)t+="case "+o(e[n])+":";t+="return true}return false;"}if(n.length>3){n.sort(function(e,t){return t.length-e.length}),t+="switch(str.length){";for(r=0;r<n.length;++r){var s=n[r];t+="case "+s[0].length+":",a(s)}t+="}"}else a(e);return new Function("str",t)}function _(e,t){for(var n=e.length;--n>=0;)if(!t(e[n]))return!1;return!0}function y(){this._values=Object.create(null),this._size=0}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function E(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof W&&t.body===n)return!0;if(!(t instanceof Ht&&t.expressions[0]===n||"Call"==t.TYPE&&t.expression===n||t instanceof Gt&&t.expression===n||t instanceof qt&&t.expression===n||t instanceof Yt&&t.condition===n||t instanceof Jt&&t.left===n||t instanceof Xt&&t.expression===n))return!1;n=t}}function w(e,t){return!0===e||e instanceof RegExp&&e.test(t)}function F(e,t,n,r){arguments.length<4&&(r=q);var i=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var s="return function AST_"+e+"(props){ if (props) { ",o=t.length;--o>=0;)s+="this."+t[o]+" = props."+t[o]+";";var a=r&&new r;(a&&a.initialize||n&&n.initialize)&&(s+="this.initialize();"),s+="}}";var c=new Function(s)();if(a&&(c.prototype=a,c.BASE=r),r&&r.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=i,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),n)for(o in n)b(n,o)&&(/^\$/.test(o)?c[o.substr(1)]=n[o]:c.prototype[o]=n[o]);return c.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==O&&(O["AST_"+e]=c),c}y.prototype={set:function(e,t){return this.has(e)||++this._size,this._values["$"+e]=t,this},add:function(e,t){return this.has(e)?this.get(e).push(t):this.set(e,[t]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var t in this._values)e(this._values[t],t.substr(1))},size:function(){return this._size},map:function(e){var t=[];for(var n in this._values)t.push(e(this._values[n],n.substr(1)));return t},clone:function(){var e=new y;for(var t in this._values)e._values[t]=this._values[t];return e._size=this._size,e},toObject:function(){return this._values}},y.fromObject=function(e){var t=new y;return t._size=u(t._values,e),t},O.Dictionary=y;var P=F("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),q=F("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new _t(function(e){if(e!==t)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);q.warn_function=null,q.warn=function(e,t){q.warn_function&&q.warn_function(m(e,t))};var W=F("Statement",null,{$documentation:"Base class of all statements"}),K=F("Debugger",null,{$documentation:"Represents a debugger statement"},W),X=F("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},W),J=F("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},W);function $(e,t){var n=e.body;if(n instanceof q)n._walk(t);else for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}function M(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var te=F("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,function(){$(this,e)})},clone:M},W),ne=F("BlockStatement",null,{$documentation:"A block statement"},te),re=F("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},W),se=F("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},W),oe=F("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var t=this._clone(e);if(e){var n=t.label,r=this.label;t.walk(new Te(function(e){e instanceof Ke&&e.label&&e.label.thedef===r&&(e.label.thedef=n,n.references.push(e))}))}return t}},se),ae=F("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:M},se),ce=F("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},ae),ue=F("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},ce),le=F("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},ce),fe=F("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},ae),pe=F("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},ae),de=F("ForOf","await",{$documentation:"A `for ... of` statement"},pe),he=F("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},se),me=F("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=this.variables.clone()),this.functions&&(t.functions=this.functions.clone()),this.enclosed&&(t.enclosed=this.enclosed.slice()),t},pinned:function(){return this.uses_eval||this.uses_with}},te),ge=F("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=gt(n)).transform(new _t(function(e){if(e instanceof X&&"$ORIG"==e.value)return I.splice(t)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return gt(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new _t(function(e){if(e instanceof X&&"$ORIG"==e.value)return I.splice(n)}))}},me),ye=F("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){var t=this;return e._visit(this,function(){t.expression.walk(e)})}}),be=F("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof Ce?e=e.concat(this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n<r;n++)t[n]._walk(e);$(this,e)})}},me),Ee=F("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},be),we=F("Function","inlined",{$documentation:"A function expression"},be),ke=F("Arrow","inlined",{$documentation:"An ES6 Arrow function ((a) => b)"},be),xe=F("Defun","inlined",{$documentation:"A function definition"},be),Ce=F("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new Te(function(t){t instanceof Sn&&e.push(t),t instanceof ye&&e.push(t.expression)})),e}}),Me=F("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){this.prefix._walk(e),this.template_string._walk(e)}}),Oe=F("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})}}),Ne=F("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),Be=F("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},W),ze=F("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},Be),Ve=F("Return",null,{$documentation:"A `return` statement"},ze),qe=F("Throw",null,{$documentation:"A `throw` statement"},ze),Ke=F("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},Be),Xe=F("Break",null,{$documentation:"A `break` statement"},Ke),$e=F("Continue",null,{$documentation:"A `continue` statement"},Ke),lt=F("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},se),dt=F("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),$(this,e)})}},te),ht=F("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},te),mt=F("Default",null,{$documentation:"A `default` switch branch"},ht),vt=F("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),$(this,e)})}},ht),bt=F("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){$(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},te),Et=F("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),$(this,e)})}},te),Dt=F("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},te),Ct=F("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var t=this.definitions,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}},W),Ft=F("Var",null,{$documentation:"A `var` statement"},Ct),Rt=F("Let",null,{$documentation:"A `let` statement"},Ct),Pt=F("Const",null,{$documentation:"A `const` statement"},Ct),Nt=F("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,function(){this.foreign_name._walk(e),this.name._walk(e)})}}),Lt=F("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach(function(t){t._walk(e)}),this.module_name._walk(e)})}}),Bt=F("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){e._visit(this,function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach(function(t){t._walk(e)}),this.module_name&&this.module_name._walk(e)})}},W),jt=F("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),Ut=F("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(e){return e._visit(this,function(){for(var t=this.args,n=0,r=t.length;n<r;n++)t[n]._walk(e);this.expression._walk(e)})}}),zt=F("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Ut),Ht=F("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,function(){this.expressions.forEach(function(t){t._walk(e)})})}}),Vt=F("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Gt=F("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},Vt),qt=F("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},Vt),Wt=F("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Kt=F("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Wt),Xt=F("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Wt),Jt=F("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),Yt=F("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),Qt=F("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Jt),Zt=F("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Jt),nn=F("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var t=this.elements,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}}),pn=F("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){for(var t=this.properties,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}}),hn=F("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){this.key instanceof q&&this.key._walk(e),this.value._walk(e)})}}),mn=F("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},hn),yn=F("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property"},hn),vn=F("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property"},hn),_n=F("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class"},hn),bn=F("Class","name extends properties inlined",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach(function(t){t._walk(e)})})}},me),En=F("DefClass",null,{$documentation:"A class definition"},bn),wn=F("ClassExpression",null,{$documentation:"A class expression."},bn),Sn=F("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),kn=F("NewTarget",null,{$documentation:"A reference to new.target"}),Dn=F("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},Sn),xn=F("SymbolVar",null,{$documentation:"Symbol defining a variable"},Dn),Cn=F("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Dn),An=F("SymbolConst",null,{$documentation:"A constant declaration"},Cn),Tn=F("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},Cn),Mn=F("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},xn),On=F("SymbolDefun",null,{$documentation:"Symbol defining a function"},Dn),In=F("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},Sn),Rn=F("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Dn),Pn=F("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},Cn),Nn=F("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Dn),Ln=F("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},Cn),Bn=F("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},Cn),jn=F("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},Sn),Un=F("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},Sn),zn=F("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},Sn),Hn=F("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},zn),Vn=F("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},Sn),Gn=F("LabelRef",null,{$documentation:"Reference to a label symbol"},Sn),qn=F("This",null,{$documentation:"The `this` symbol"},Sn),Wn=F("Super",null,{$documentation:"The `super` symbol"},qn),Xn=F("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),Jn=F("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},Xn),Zn=F("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},Xn),$n=F("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},Xn),er=F("Atom",null,{$documentation:"Base class for atoms"},Xn),tr=F("Null",null,{$documentation:"The `null` atom",value:null},er),nr=F("NaN",null,{$documentation:"The impossible value",value:NaN},er),rr=F("Undefined",null,{$documentation:"The `undefined` value",value:void 0},er),ir=F("Hole",null,{$documentation:"A hole in an array",value:void 0},er),sr=F("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},er),or=F("Boolean",null,{$documentation:"Base class for booleans"},er),ar=F("False",null,{$documentation:"The `false` atom",value:!1},or),cr=F("True",null,{$documentation:"The `true` atom",value:!0},or),ur=F("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),lr=F("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})}});function Te(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}Te.prototype={_visit:function(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:s);return!n&&t&&t.call(e),this.pop(),n},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof be?this.directives=Object.create(this.directives):e instanceof X&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof bn&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)},pop:function(){var e=this.stack.pop();(e instanceof be||e instanceof bn)&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var t=this.stack,n=t.length;--n>=0;){var r=t[n];if(r instanceof e)return r}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof me&&n.body)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof X))break;if(i.value==e)return i}},loopcontrol_target:function(e){var t=this.stack;if(e.label)for(var n=t.length;--n>=0;){if((r=t[n])instanceof oe&&r.label.name==e.label.name)return r.body}else for(n=t.length;--n>=0;){var r;if((r=t[n])instanceof ae||e instanceof Xe&&r instanceof dt)return r}}};var fr="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",pr="false null true",dr="enum implements import interface package private protected public static super this "+pr+" "+fr,hr="return new delete throw else case yield await";fr=g(fr),dr=g(dr),hr=g(hr),pr=g(pr);var mr=g(e("+-*&%=<>!?|~^")),gr=/[0-9a-f]/i,yr=/^0x[0-9a-f]+$/i,vr=/^0[0-7]+$/,_r=/^0o[0-7]+$/i,br=/^0b[01]+$/i,Er=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,wr=g(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Sr=g(e(" \n\r\t\f\v \u2028\u2029 \ufeff")),kr=g(e("\n\r\u2028\u2029")),Dr=g(e(";]),:")),xr=g(e("[{(,;:")),Cr=g(e("[]{}(),;:")),Ar={ID_Start:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function nt(e,t){var n=e.charAt(t);if(et(n)){var r=e.charAt(t+1);if(tt(r))return n+r}if(tt(n)){var i=e.charAt(t-1);if(et(i))return i+n}return n}function et(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function tt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function it(e){return e>=48&&e<=57}function rt(e){return"string"==typeof e&&!dr(e)}function ot(e){var t=e.charCodeAt(0);return Ar.ID_Start.test(e)||36==t||95==t}function at(e){var t=e.charCodeAt(0);return Ar.ID_Continue.test(e)||36==t||95==t||8204==t||8205==t}function ut(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function st(e,t,n,r,i){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}function ct(e,t,n,r,i){throw new st(e,t,n,r,i)}function ft(e,t,n){return e.type==t&&(null==n||e.value==n)}st.prototype=Object.create(Error.prototype),st.prototype.constructor=st,st.prototype.name="SyntaxError",r(st);var Tr={};function pt(e,t,r,i){var l={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return nt(l.text,l.pos)}function a(e,t){var n=nt(l.text,l.pos++);if(e&&!n)throw Tr;return kr(n)?(l.newline_before=l.newline_before||!t,++l.line,l.col=0,t||"\r"!=n||"\n"!=o()||(++l.pos,n="\n")):(n.length>1&&(++l.pos,++l.col),++l.col),n}function u(e){for(;e-- >0;)a()}function s(e){return l.text.substr(l.pos,e.length)==e}function c(e,t){var n=l.text.indexOf(e,l.pos);if(t&&-1==n)throw Tr;return n}function f(){l.tokline=l.line,l.tokcol=l.col,l.tokpos=l.pos}var p=!1,y=null;function h(n,r,i){l.regex_allowed="operator"==n&&!Or(r)||"keyword"==n&&hr(r)||"punc"==n&&xr(r)||"arrow"==n,"punc"==n&&"."==r?p=!0:i||(p=!1);var s={type:n,value:r,line:l.tokline,col:l.tokcol,pos:l.tokpos,endline:l.line,endcol:l.col,endpos:l.pos,nlb:l.newline_before,file:t};return/^(?:num|string|regexp)$/i.test(n)&&(s.raw=e.substring(s.pos,s.endpos)),i||(s.comments_before=l.comments_before,s.comments_after=l.comments_before=[]),l.newline_before=!1,s=new P(s),i||(y=s),s}function d(){for(;Sr(o());)a()}function m(e){ct(e,t,l.tokline,l.tokcol,l.tokpos)}function v(e){var t=!1,n=!1,r=!1,i="."==e,s=function(e){for(var t,n="",r=0;(t=o())&&e(t,r++);)n+=a();return n}(function(s,o){switch(s.charCodeAt(0)){case 98:case 66:return r=!0;case 111:case 79:case 120:case 88:return!r&&(r=!0);case 101:case 69:return!!r||!t&&(t=n=!0);case 45:return n||0==o&&!e;case 43:return n;case n=!1,46:return!(i||r||t)&&(i=!0)}return gr.test(s)});e&&(s=e+s),vr.test(s)&&B.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var c=function(e){if(yr.test(e))return parseInt(e.substr(2),16);if(vr.test(e))return parseInt(e.substr(1),8);if(_r.test(e))return parseInt(e.substr(2),8);if(br.test(e))return parseInt(e.substr(2),2);if(Er.test(e))return parseFloat(e);var t=parseFloat(e);return t==e?t:void 0}(s);if(!isNaN(c))return h("num",c);m("Invalid syntax: "+s)}function D(e,t,n){var r,i=a(!0,e);switch(i.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(g(2,t));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var s,u=c("}",!0)-l.pos;return(u>6||(s=g(u,t))>1114111)&&m("Unicode reference out of bounds"),a(!0),(r=s)>65535?(r-=65536,String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):String.fromCharCode(r)}return String.fromCharCode(g(4,t));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return i>="0"&&i<="7"?(n&&t&&m("Octal escape sequences are not allowed in template strings"),function(e,t){var n=o();n>="0"&&n<="7"&&(e+=a(!0))[0]<="3"&&(n=o())>="0"&&n<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&B.has_directive("use strict")&&t&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(i,t)):i}function g(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(o(),16)))return parseInt(n,16)||"";var r=a(!0);isNaN(parseInt(r,16))&&m("Invalid hex-character pattern in string"),n+=r}return parseInt(n,16)}var _=k("Unterminated string constant",function(e){for(var t=a(),n="";;){var r=a(!0,!0);if("\\"==r)r=D(!0,!0);else if(kr(r))m("Unterminated string constant");else if(r==t)break;n+=r}var i=h("string",n);return i.quote=e,i}),E=k("Unterminated template",function(e){e&&l.template_braces.push(l.brace_counter);var t,n,r="",i="";for(a(!0,!0);"`"!=(t=a(!0,!0));){if("\r"==t)"\n"==o()&&++l.pos,t="\n";else if("$"==t&&"{"==o())return a(!0,!0),l.brace_counter++,(n=h(e?"template_head":"template_substitution",r)).begin=e,n.raw=i,n.end=!1,n;if(i+=t,"\\"==t){var s=l.pos;t=D(!0,!("name"===y.type||"punc"===y.type&&(")"===y.value||"]"===y.value)),!0),i+=l.text.substr(s,l.pos-s)}r+=t}return l.template_braces.pop(),(n=h(e?"template_head":"template_substitution",r)).begin=e,n.raw=i,n.end=!0,n});function b(e){var t,n=l.regex_allowed,r=function(){for(var e=l.text,t=l.pos,n=l.text.length;t<n;++t){var r=e[t];if(kr(r))return t}return-1}();return-1==r?(t=l.text.substr(l.pos),l.pos=l.text.length):(t=l.text.substring(l.pos,r),l.pos=r),l.col=l.tokcol+(l.pos-l.tokpos),l.comments_before.push(h(e,t,!0)),l.regex_allowed=n,B}var w=k("Unterminated multiline comment",function(){var e=l.regex_allowed,t=c("*/",!0),n=l.text.substring(l.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return u(function(e){for(var t=0,n=0;n<e.length;n++)et(e.charCodeAt(n))&&tt(e.charCodeAt(n+1))&&(t++,n++);return e.length-t}(n)+2),l.comments_before.push(h("comment2",n,!0)),l.newline_before=l.newline_before||n.indexOf("\n")>=0,l.regex_allowed=e,B}),S=k("Unterminated identifier name",function(){var e,t="",n=!1,r=function(){return n=!0,a(),"u"!==o()&&m("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),D(!1,!0)};if("\\"===(t=o()))ot(t=r())||m("First identifier char is an invalid identifier char");else{if(!ot(t))return"";a()}for(;null!=(e=o());){if("\\"===(e=o()))at(e=r())||m("Invalid escaped identifier char");else{if(!at(e))break;a()}t+=e}return dr(t)&&n&&m("Escaped characters are not allowed in keywords"),t}),C=k("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=a(!0);)if(kr(t))m("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)r=!0,e+=t;else if("]"==t&&r)r=!1,e+=t;else{if("/"==t&&!r)break;"\\"==t?n=!0:e+=t}var i=S();try{var s=new RegExp(e,i);return s.raw_source="/"+e+"/"+i,h("regexp",s)}catch(e){m(e.message)}});function A(e){return h("operator",function n(e){if(!o())return e;var t=e+o();return wr(t)?(a(),n(t)):e}(e||a()))}function x(){switch(a(),o()){case"/":return a(),b("comment1");case"*":return a(),w()}return l.regex_allowed?C(""):A("/")}function k(e,t){return function(n){try{return t(n)}catch(t){if(t!==Tr)throw t;m(e)}}}function B(e){if(null!=e)return C(e);for(i&&0==l.pos&&s("#!")&&(f(),u(2),b("comment5"));;){if(d(),f(),r){if(s("\x3c!--")){u(4),b("comment3");continue}if(s("--\x3e")&&l.newline_before){u(3),b("comment4");continue}}var t=o();if(!t)return h("eof");var n=t.charCodeAt(0);switch(n){case 34:case 39:return _(t);case 46:return a(),it(o().charCodeAt(0))?v("."):"."===o()?(a(),a(),h("expand","...")):h("punc",".");case 47:var c=x();if(c===B)continue;return c;case 61:return a(),">"===o()?(a(),h("arrow","=>")):A("=");case 96:return E(!0);case 123:l.brace_counter++;break;case 125:if(l.brace_counter--,l.template_braces.length>0&&l.template_braces[l.template_braces.length-1]===l.brace_counter)return E(!1)}if(it(n))return v();if(Cr(t))return h("punc",a());if(mr(t))return A();if(92==n||ot(t))return g=void 0,g=S(),p?h("name",g):pr(g)?h("atom",g):fr(g)?wr(g)?h("operator",g):h("keyword",g):h("name",g);break}var g;m("Unexpected character '"+t+"'")}return B.next=a,B.peek=o,B.context=function(e){return e&&(l=e),l},B.add_directive=function(e){l.directive_stack[l.directive_stack.length-1].push(e),void 0===l.directives[e]?l.directives[e]=1:l.directives[e]++},B.push_directives_stack=function(){l.directive_stack.push([])},B.pop_directives_stack=function(){for(var e=l.directive_stack[l.directive_stack.length-1],t=0;t<e.length;t++)l.directives[e[t]]--;l.directive_stack.pop()},B.has_directive=function(e){return l.directives[e]>0},B}var Mr=g(["typeof","void","delete","--","++","!","~","-","+"]),Or=g(["--","++"]),Fr=g(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),Ir=function(e,t){for(var n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.length;++i)t[r[i]]=n+1;return t}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),Rr=g(["atom","num","string","regexp","name"]);function gt(t,n){n=a(n,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var k={input:"string"==typeof t?pt(t,n.filename,n.html5_comments,n.shebang):t,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function r(e,t){return ft(k.token,e,t)}function o(){return k.peeked||(k.peeked=k.input())}function u(){return k.prev=k.token,k.peeked||o(),k.token=k.peeked,k.peeked=null,k.in_directives=k.in_directives&&("string"==k.token.type||r("punc",";")),k.token}function s(){return k.prev}function c(e,t,n,r){var i=k.input.context();ct(e,i.filename,null!=t?t:i.tokline,null!=n?n:i.tokcol,null!=r?r:i.tokpos)}function f(e,t){c(t,e.line,e.col)}function l(e){null==e&&(e=k.token),f(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(r(e,t))return u();f(k.token,"Unexpected token "+k.token.type+" «"+k.token.value+"», expected "+e+" «"+t+"»")}function h(e){return p("punc",e)}function d(e){return e.nlb||!_(e.comments_before,function(e){return!e.nlb})}function m(){return!n.strict&&(r("eof")||r("punc","}")||d(k.token))}function v(){return k.in_generator===k.in_function}function D(){return k.in_async===k.in_function}function g(e){r("punc",";")?u():e||m()||l()}function y(){h("(");var e=Q(!0);return h(")"),e}function E(e){return function(){var t=k.token,n=e.apply(null,arguments),r=s();return n.start=t,n.end=r,n}}function w(){(r("operator","/")||r("operator","/="))&&(k.peeked=null,k.token=k.input(k.token.value.substr(1)))}k.token=u();var A=E(function(e,t,a){switch(w(),k.token.type){case"string":if(k.in_directives){var v=o();-1==k.token.raw.indexOf("\\")&&(ft(v,"punc",";")||ft(v,"punc","}")||d(v)||ft(v,"eof"))?k.input.add_directive(k.token.value):k.in_directives=!1}var _=k.in_directives,b=C();return _&&b.body instanceof Jn?new X(b.body):b;case"template_head":case"num":case"regexp":case"operator":case"atom":return C();case"name":if("async"==k.token.value&&ft(o(),"keyword","function"))return u(),u(),t&&c("functions are not allowed as the body of a loop"),M(xe,!1,!0,e);if("import"==k.token.value&&!ft(o(),"punc","(")){u();var E=function(){var e,t,n=s();r("name")&&(e=Le(Bn));r("punc",",")&&u();((t=Pe(!0))||e)&&p("name","from");var i=k.token;"string"!==i.type&&l();return u(),new Lt({start:n,imported_name:e,imported_names:t,module_name:new Jn({start:i,value:i.value,quote:i.quote,end:i}),end:k.token})}();return g(),E}return ft(o(),"punc",":")?function(){var e=Le(Un);"await"===e.name&&D()&&f(k.prev,"await cannot be used as label inside async function");i(function(t){return t.name==e.name},k.labels)&&c("Label "+e.name+" defined twice");h(":"),k.labels.push(e);var t=A();k.labels.pop(),t instanceof ae||e.references.forEach(function(t){t instanceof $e&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))});return new oe({body:t,label:e})}():C();case"punc":switch(k.token.value){case"{":return new ne({start:k.token,body:on(),end:s()});case"[":case"(":return C();case";":return k.in_directives=!1,u(),new re;default:l()}case"keyword":switch(k.token.value){case"break":return u(),x(Xe);case"continue":return u(),x($e);case"debugger":return u(),g(),new K;case"do":u();var T=it(A);p("keyword","while");var R=y();return g(!0),new ue({body:T,condition:R});case"while":return u(),new le({condition:y(),body:it(function(){return A(!1,!0)})});case"for":return u(),function(){var e="`for await` invalid in this context",t=k.token;"name"==t.type&&"await"==t.value?(D()||f(t,e),u()):t=!1;h("(");var n=null;if(r("punc",";"))t&&f(t,e);else{n=r("keyword","var")?(u(),O(!0)):r("keyword","let")?(u(),F(!0)):r("keyword","const")?(u(),I(!0)):Q(!0,!0);var i=r("operator","in"),s=r("name","of");if(t&&!s&&f(t,e),i||s)return n instanceof Ct?n.definitions.length>1&&f(n.start,"Only one variable declaration allowed in for..in loop"):Ge(n)||(n=nt(n))instanceof Ce||f(n.start,"Invalid left-hand side in for..in loop"),u(),i?function(e){var t=Q(!0);return h(")"),new pe({init:e,object:t,body:it(function(){return A(!1,!0)})})}(n):function(e,t){var n=e instanceof Ct?e.definitions[0].name:null,r=Q(!0);return h(")"),new de({await:t,init:e,name:n,object:r,body:it(function(){return A(!1,!0)})})}(n,!!t)}return function(e){h(";");var t=r("punc",";")?null:Q(!0);h(";");var n=r("punc",")")?null:Q(!0);return h(")"),new fe({init:e,condition:t,step:n,body:it(function(){return A(!1,!0)})})}(n)}();case"class":return u(),t&&c("classes are not allowed as the body of a loop"),a&&c("classes are not allowed as the body of an if"),Te(En);case"function":return u(),t&&c("functions are not allowed as the body of a loop"),M(xe,!1,!1,e);case"if":return u(),function(){var e=y(),t=A(!1,!1,!0),n=null;r("keyword","else")&&(u(),n=A(!1,!1,!0));return new lt({condition:e,body:t,alternative:n})}();case"return":0!=k.in_function||n.bare_returns||c("'return' outside of function"),u();var P=null;return r("punc",";")?u():m()||(P=Q(!0),g()),new Ve({value:P});case"switch":return u(),new dt({expression:y(),body:it(an)});case"throw":u(),d(k.token)&&c("Illegal newline after 'throw'");P=Q(!0);return g(),new qe({value:P});case"try":return u(),function(){var e=on(),t=null,n=null;if(r("keyword","catch")){var i=k.token;if(u(),r("punc","{"))var o=null;else{h("(");var o=S(void 0,Ln);h(")")}t=new Et({start:i,argname:o,body:on(),end:s()})}if(r("keyword","finally")){var i=k.token;u(),n=new Dt({start:i,body:on(),end:s()})}t||n||c("Missing catch/finally blocks");return new bt({body:e,bcatch:t,bfinally:n})}();case"var":u();E=O();return g(),E;case"let":u();E=F();return g(),E;case"const":u();E=I();return g(),E;case"with":return k.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),u(),new he({expression:y(),body:A()});case"export":if(!ft(o(),"punc","(")){u();E=function(){var e,t,n,i,a,c=k.token;if(r("keyword","default"))e=!0,u();else if(t=Pe(!1)){if(r("name","from")){u();var f=k.token;return"string"!==f.type&&l(),u(),new Bt({start:c,is_default:e,exported_names:t,module_name:new Jn({start:f,value:f.value,quote:f.quote,end:f}),end:s()})}return new Bt({start:c,is_default:e,exported_names:t,end:s()})}r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&ft(o(),"punc")?(i=Q(!1),g()):(n=A(e))instanceof Ct&&e?l(n.start):n instanceof Ct||n instanceof be||n instanceof En?a=n:n instanceof J?i=n.body:l(n.start);return new Bt({start:c,is_default:e,exported_value:i,exported_definition:a,end:s()})}();return r("punc",";")&&g(),E}}}l()});function C(e){return new J({body:(e=Q(!0),g(),e)})}function x(e){var t,n=null;m()||(n=Le(Gn,!0)),null!=n?((t=i(function(e){return e.name==n.name},k.labels))||c("Undefined label "+n.name),n.thedef=t):0==k.in_loop&&c(e.TYPE+" not inside a loop or switch"),g();var r=new e({label:n});return t&&t.references.push(r),r}var T=function(e,t,n){d(k.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var i=V(r("punc","{"),!1,n),s=i instanceof Array&&i.length?i[i.length-1].end:i instanceof Array?e:i.end;return new ke({start:e,end:s,async:n,argnames:t,body:i})},M=function(e,t,n,i){k.token;var o=e===xe,a=r("operator","*");a&&u();var c=r("name")?Le(o?On:Rn):null;o&&!c&&(i?e=we:l()),!c||e===Ee||c instanceof Dn||l(s());var f=[],p=V(!0,a||t,n,c,f);return new e({start:f.start,end:p.end,is_generator:a,async:n,name:c,argnames:f,body:p})};function z(e,t){var n={},r=!1,i=!1,s=!1,o=!!t,a={add_parameter:function(t){if(void 0!==n["$"+t.value])!1===r&&(r=t),a.check_strict();else if(n["$"+t.value]=!0,e)switch(t.value){case"arguments":case"eval":case"yield":o&&f(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:dr(t.value)&&l()}},mark_default_assignment:function(e){!1===i&&(i=e)},mark_spread:function(e){!1===s&&(s=e)},mark_strict_mode:function(){o=!0},is_strict:function(){return!1!==i||!1!==s||o},check_strict:function(){a.is_strict()&&!1!==r&&f(r,"Parameter "+r.value+" was used already")}};return a}function S(e,t){var n,i=!1;return void 0===e&&(e=z(!0,k.input.has_directive("use strict"))),r("expand","...")&&(i=k.token,e.mark_spread(k.token),u()),n=H(e,t),r("operator","=")&&!1===i&&(e.mark_default_assignment(k.token),u(),n=new Zt({start:n.start,left:n,operator:"=",right:Q(!1),end:k.token})),!1!==i&&(r("punc",")")||l(),n=new ye({start:i,expression:n,end:i})),e.check_strict(),n}function H(e,t){var n,i=[],a=!0,f=!1,p=k.token;if(void 0===e&&(e=z(!1,k.input.has_directive("use strict"))),t=void 0===t?Mn:t,r("punc","[")){for(u();!r("punc","]");){if(a?a=!1:h(","),r("expand","...")&&(f=!0,n=k.token,e.mark_spread(k.token),u()),r("punc"))switch(k.token.value){case",":i.push(new ir({start:k.token,end:k.token}));continue;case"]":break;case"[":case"{":i.push(H(e,t));break;default:l()}else r("name")?(e.add_parameter(k.token),i.push(Le(t))):c("Invalid function parameter");r("operator","=")&&!1===f&&(e.mark_default_assignment(k.token),u(),i[i.length-1]=new Zt({start:i[i.length-1].start,left:i[i.length-1],operator:"=",right:Q(!1),end:k.token})),f&&(r("punc","]")||c("Rest element must be last element"),i[i.length-1]=new ye({start:n,expression:i[i.length-1],end:n}))}return h("]"),e.check_strict(),new Ce({start:p,names:i,is_array:!0,end:s()})}if(r("punc","{")){for(u();!r("punc","}");){if(a?a=!1:h(","),r("expand","...")&&(f=!0,n=k.token,e.mark_spread(k.token),u()),r("name")&&(ft(o(),"punc")||ft(o(),"operator"))&&-1!==[",","}","="].indexOf(o().value)){e.add_parameter(k.token);var d=s(),m=Le(t);f?i.push(new ye({start:n,expression:m,end:m.end})):i.push(new mn({start:d,key:m.name,value:m,end:m.end}))}else{if(r("punc","}"))continue;var g=k.token,y=Re();null===y?l(s()):"name"!==s().type||r("punc",":")?(h(":"),i.push(new mn({start:g,quote:g.quote,key:y,value:H(e,t),end:s()}))):i.push(new mn({start:s(),key:y,value:new t({start:s(),name:y,end:s()}),end:s()}))}f?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(k.token),u(),i[i.length-1].value=new Zt({start:i[i.length-1].value.start,left:i[i.length-1].value,operator:"=",right:Q(!1),end:k.token}))}return h("}"),e.check_strict(),new Ce({start:p,names:i,is_array:!1,end:s()})}if(r("name"))return e.add_parameter(k.token),Le(t);c("Invalid function parameter")}function V(e,t,i,s,o){var a=k.in_loop,c=k.labels,f=k.in_generator,p=k.in_async;if(++k.in_function,t&&(k.in_generator=k.in_function),i&&(k.in_async=k.in_function),o&&function(e){k.token;var t=z(!0,k.input.has_directive("use strict"));for(h("(");!r("punc",")");){var i=S(t);if(e.push(i),r("punc",")")||(h(","),r("punc",")")&&n.ecma<8&&l()),i instanceof ye)break}u()}(o),e&&(k.in_directives=!0),k.in_loop=0,k.labels=[],e){k.input.push_directives_stack();var d=on();s&&Ue(s),o&&o.forEach(Ue),k.input.pop_directives_stack()}else d=Q(!1);return--k.in_function,k.in_loop=a,k.labels=c,k.in_generator=f,k.in_async=p,d}function on(){h("{");for(var e=[];!r("punc","}");)r("eof")&&l(),e.push(A());return u(),e}function an(){h("{");for(var e,t=[],n=null,i=null;!r("punc","}");)r("eof")&&l(),r("keyword","case")?(i&&(i.end=s()),n=[],i=new vt({start:(e=k.token,u(),e),expression:Q(!0),body:n}),t.push(i),h(":")):r("keyword","default")?(i&&(i.end=s()),n=[],i=new mt({start:(e=k.token,u(),h(":"),e),body:n}),t.push(i)):(n||l(),n.push(A()));return i&&(i.end=s()),u(),t}function cn(e,t){for(var n,i=[];;){var o="var"===t?xn:"const"===t?An:"let"===t?Tn:null;if(r("punc","{")||r("punc","[")?n=new jt({start:k.token,name:H(void 0,o),value:r("operator","=")?(p("operator","="),Q(!1,e)):null,end:s()}):"import"==(n=new jt({start:k.token,name:Le(o),value:r("operator","=")?(u(),Q(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:s()})).name.name&&c("Unexpected token: import"),i.push(n),!r("punc",","))break;u()}return i}var O=function(e){return new Ft({start:s(),definitions:cn(e,"var"),end:s()})},F=function(e){return new Rt({start:s(),definitions:cn(e,"let"),end:s()})},I=function(e){return new Pt({start:s(),definitions:cn(e,"const"),end:s()})};function Qn(){var e,t=k.token;switch(t.type){case"name":e=je(zn);break;case"num":e=new Zn({start:t,end:t,value:t.value});break;case"string":e=new Jn({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new $n({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new ar({start:t,end:t});break;case"true":e=new cr({start:t,end:t});break;case"null":e=new tr({start:t,end:t})}}return u(),e}function ee(e,t,n,r){var i=function(e,t){return t?new Zt({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof pn?i(new Ce({start:e.start,end:e.end,is_array:!1,names:e.properties.map(ee)}),r):e instanceof mn?(e.value=ee(e.value,0,[e.key]),i(e,r)):e instanceof ir?e:e instanceof Ce?(e.names=e.names.map(ee),i(e,r)):e instanceof zn?i(new Mn({name:e.name,start:e.start,end:e.end}),r):e instanceof ye?(e.expression=ee(e.expression),i(e,r)):e instanceof nn?i(new Ce({start:e.start,end:e.end,is_array:!0,names:e.elements.map(ee)}),r):e instanceof Qt?i(ee(e.left,void 0,void 0,e.right),r):e instanceof Zt?(e.left=ee(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var R=function(e,t){if(r("operator","new"))return function(e){var t=k.token;if(p("operator","new"),r("punc","."))return u(),p("name","target"),B(new kn({start:t,end:s()}),e);var i,o=R(!1);r("punc","(")?(u(),i=Ae(")",n.ecma>=8)):i=[];var a=new zt({start:t,expression:o,args:i,end:s()});return Ye(a),B(a,e)}(e);var i,a=k.token,c=r("name","async")&&"["!=(i=o()).value&&"arrow"!=i.type&&Qn();if(r("punc")){switch(k.token.value){case"(":if(c&&!e)break;var f=function(e,t){var i,o,a,c=[];for(h("(");!r("punc",")");)i&&l(i),r("expand","...")?(i=k.token,t&&(o=k.token),u(),c.push(new ye({start:s(),expression:Q(),end:k.token}))):c.push(Q()),r("punc",")")||(h(","),r("punc",")")&&(n.ecma<8&&l(),a=s(),t&&(o=a)));return h(")"),e&&r("arrow","=>")?i&&a&&l(a):o&&l(o),c}(t,!c);if(t&&r("arrow","=>"))return T(a,f.map(ee),!!c);var d=c?new Ut({expression:c,args:f}):1==f.length?f[0]:new Ht({expressions:f});if(d.start){var m=a.comments_before.length;if([].unshift.apply(d.start.comments_before,a.comments_before),a.comments_before=d.start.comments_before,a.comments_before_length=m,0==m&&a.comments_before.length>0){var g=a.comments_before[0];g.nlb||(g.nlb=a.nlb,a.nlb=!1)}a.comments_after=d.start.comments_after}d.start=a;var y=s();return d.end&&(y.comments_before=d.end.comments_before,[].push.apply(d.end.comments_after,y.comments_after),y.comments_after=d.end.comments_after),d.end=y,d instanceof Ut&&Ye(d),B(d,e);case"[":return B(P(),e);case"{":return B(L(),e)}c||l()}if(t&&r("name")&&ft(o(),"arrow")){var v=new Mn({name:k.token.value,start:a,end:a});return u(),T(a,[v],!!c)}if(r("keyword","function")){u();var _=M(we,!1,!!c);return _.start=a,_.end=s(),B(_,e)}if(c)return B(c,e);if(r("keyword","class")){u();var b=Te(wn);return b.start=a,b.end=s(),B(b,e)}return r("template_head")?B(Fe(!1),e):Rr(k.token.type)?B(Qn(),e):void l()};function Fe(e){var t=[],n=k.token;for(t.push(new Ne({start:k.token,raw:k.token.raw,value:k.token.value,end:k.token}));!1===k.token.end;)u(),w(),t.push(Q(!0)),ft("template_substitution")||l(),t.push(new Ne({start:k.token,raw:k.token.raw,value:k.token.value,end:k.token}));return u(),new Oe({start:n,segments:t,end:k.token})}function Ae(e,t,n){for(var i=!0,o=[];!r("punc",e)&&(i?i=!1:h(","),!t||!r("punc",e));)r("punc",",")&&n?o.push(new ir({start:k.token,end:k.token})):r("expand","...")?(u(),o.push(new ye({start:s(),expression:Q(),end:k.token}))):o.push(Q(!1));return u(),o}var P=E(function(){return h("["),new nn({elements:Ae("]",!n.strict,!0)})}),N=E(function(e,t){return M(Ee,e,t)}),L=E(function(){var e=k.token,t=!0,i=[];for(h("{");!r("punc","}")&&(t?t=!1:h(","),n.strict||!r("punc","}"));)if("expand"!=(e=k.token).type){var o,a=Re();if(r("punc",":"))null===a?l(s()):(u(),o=Q(!1));else{var c=Se(a,e);if(c){i.push(c);continue}o=new zn({start:s(),name:a,end:s()})}r("operator","=")&&(u(),o=new Qt({start:e,left:o,operator:"=",right:Q(!1),end:s()})),i.push(new mn({start:e,quote:e.quote,key:a instanceof q?a:""+a,value:o,end:s()}))}else u(),i.push(new ye({start:e,expression:Q(!1),end:s()}));return u(),new pn({properties:i})});function Te(e){var t,n,i,o,a=[];for(k.input.push_directives_stack(),k.input.add_directive("use strict"),"name"==k.token.type&&"extends"!=k.token.value&&(i=Le(e===En?Pn:Nn)),e!==En||i||l(),"extends"==k.token.value&&(u(),o=Q(!0)),h("{"),r("punc",";")&&u();!r("punc","}");)t=k.token,(n=Se(Re(),t,!0))||l(),a.push(n),r("punc",";")&&u();return k.input.pop_directives_stack(),u(),new e({start:t,name:i,extends:o,properties:a,end:s()})}function Se(e,t,n){var i=function(e,t){return"string"==typeof e||"number"==typeof e?new In({start:t,name:""+e,end:s()}):(null===e&&l(),e)},o=!1,a=!1,c=!1,u=t;if(n&&"static"===e&&!r("punc","(")&&(a=!0,u=k.token,e=Re()),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||(o=!0,u=k.token,e=Re()),null===e&&(c=!0,u=k.token,null===(e=Re())&&l()),r("punc","("))return e=i(e,t),new _n({start:t,static:a,is_generator:c,async:o,key:e,quote:e instanceof In?u.quote:void 0,value:N(c,o),end:s()});if(u=k.token,"get"==e){if(!r("punc")||r("punc","["))return e=i(Re(),t),new vn({start:t,static:a,key:e,quote:e instanceof In?u.quote:void 0,value:N(),end:s()})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=i(Re(),t),new yn({start:t,static:a,key:e,quote:e instanceof In?u.quote:void 0,value:N(),end:s()})}function Ie(t){function e(e){return new e({name:Re(),start:s(),end:s()})}var n,i,o=t?jn:Vn,a=t?Bn:Hn,c=k.token;return t?n=e(o):i=e(a),r("name","as")?(u(),t?i=e(a):n=e(o)):t?i=new a(n):n=new o(i),new Nt({start:c,foreign_name:n,name:i,end:s()})}function He(e,t){var n,r=e?jn:Vn,i=e?Bn:Hn,o=k.token,a=s();return t=t||new i({name:"*",start:o,end:a}),n=new r({name:"*",start:o,end:a}),new Nt({start:o,foreign_name:n,name:t,end:a})}function Pe(e){var t;if(r("punc","{")){for(u(),t=[];!r("punc","}");)t.push(Ie(e)),r("punc",",")&&u();u()}else if(r("operator","*")){var n;u(),e&&r("name","as")&&(u(),n=Le(e?Bn:Vn)),t=[He(e,n)]}return t}function Re(){var e=k.token;switch(e.type){case"punc":if("["===e.value){u();var t=Q(!1);return h("]"),t}l(e);case"operator":if("*"===e.value)return u(),null;-1===["delete","in","instanceof","new","typeof","void"].indexOf(e.value)&&l(e);case"name":"yield"==e.value&&(v()?f(e,"Yield cannot be used as identifier inside generators"):ft(o(),"punc",":")||ft(o(),"punc","(")||!k.input.has_directive("use strict")||f(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return u(),e.value;default:l(e)}}function je(e){var t=k.token.value;return new("this"==t?qn:"super"==t?Wn:e)({name:String(t),start:k.token,end:k.token})}function Ue(e){var t=e.name;v()&&"yield"==t&&f(e.start,"Yield cannot be used as identifier inside generators"),k.input.has_directive("use strict")&&("yield"==t&&f(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Dn&&("arguments"==t||"eval"==t)&&f(e.start,"Unexpected "+t+" in strict mode"))}function Le(e,t){if(!r("name"))return t||c("Name expected"),null;var n=je(e);return Ue(n),u(),n}function Ye(e){for(var t=e.start,n=t.comments_before,r=b(t,"comments_before_length")?t.comments_before_length:n.length;--r>=0;){var i=n[r];if(/[@#]__PURE__/.test(i.value)){e.pure=i;break}}}var B=function(e,t){var n,i=e.start;if(r("punc","."))return u(),B(new Gt({start:i,expression:e,property:(n=k.token,"name"!=n.type&&l(),u(),n.value),end:s()}),t);if(r("punc","[")){u();var o=Q(!0);return h("]"),B(new qt({start:i,expression:e,property:o,end:s()}),t)}if(t&&r("punc","(")){u();var a=new Ut({start:i,expression:e,args:j(),end:s()});return Ye(a),B(a,!0)}return r("template_head")?B(new Me({start:i,prefix:e,template_string:Fe(),end:s()}),t):e},j=E(function(){for(var e=[];!r("punc",")");)r("expand","...")?(u(),e.push(new ye({start:s(),expression:Q(!1),end:s()}))):e.push(Q(!1)),r("punc",")")||(h(","),r("punc",")")&&n.ecma<8&&l());return u(),e}),U=function(e,t){var n=k.token;if("name"==n.type&&"await"==n.value){if(D())return u(),D()||c("Unexpected await expression outside async function",k.prev.line,k.prev.col,k.prev.pos),new ur({start:s(),end:k.token,expression:U(!0)});k.input.has_directive("use strict")&&f(k.token,"Unexpected await identifier inside strict mode")}if(r("operator")&&Mr(n.value)){u(),w();var i=Je(Kt,n,U(e));return i.start=n,i.end=s(),i}for(var o=R(e,t);r("operator")&&Or(k.token.value)&&!d(k.token);)o instanceof ke&&l(),(o=Je(Xt,k.token,o)).start=n,o.end=k.token,u();return o};function Je(e,t,n){var r=t.value;switch(r){case"++":case"--":Ge(n)||c("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof zn&&k.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:r,expression:n})}var G=function(e,t,n){var i=r("operator")?k.token.value:null;"in"==i&&n&&(i=null),"**"==i&&e instanceof Kt&&!ft(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&l(e.start);var s=null!=i?Ir[i]:null;if(null!=s&&(s>t||"**"===i&&t===s)){u();var o=G(U(!0),s,n);return G(new Jt({start:e.start,left:e,operator:i,right:o,end:o.end}),t,n)}return e};var W=function(e){var t=k.token,n=function(e){return G(U(!0,!0),0,e)}(e);if(r("operator","?")){u();var i=Q(!1);return h(":"),new Yt({start:t,condition:n,consequent:i,alternative:Q(!1,e),end:s()})}return n};function Ge(e){return e instanceof Vt||e instanceof zn}function nt(e){if(e instanceof pn)e=new Ce({start:e.start,names:e.properties.map(nt),is_array:!1,end:e.end});else if(e instanceof nn){for(var t=[],n=0;n<e.elements.length;n++)e.elements[n]instanceof ye&&(n+1!==e.elements.length&&f(e.elements[n].start,"Spread must the be last element in destructuring array"),e.elements[n].expression=nt(e.elements[n].expression)),t.push(nt(e.elements[n]));e=new Ce({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof hn?e.value=nt(e.value):e instanceof Qt&&(e=new Zt({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var Y=function(e){w();var t=k.token;if("name"==t.type&&"yield"==t.value){if(v())return u(),function(){v()||c("Unexpected yield expression outside generator function",k.prev.line,k.prev.col,k.prev.pos);var e=k.token,t=!1,n=!0;return m()||r("punc")&&Dr(k.token.value)?n=!1:r("operator","*")&&(t=!0,u()),new lr({start:e,is_star:t,expression:n?Q():null,end:s()})}();k.input.has_directive("use strict")&&f(k.token,"Unexpected yield identifier inside strict mode")}var n=W(e),i=k.token.value;if(r("operator")&&Fr(i)){if(Ge(n)||(n=nt(n))instanceof Ce)return u(),new Qt({start:t,left:n,operator:i,right:Y(e),end:s()});c("Invalid assignment")}return n},Q=function(e,t){for(var n=k.token,i=[];i.push(Y(t)),e&&r("punc",",");)u(),e=!0;return 1==i.length?i[0]:new Ht({start:n,expressions:i,end:o()})};function it(e){++k.in_loop;var t=e();return--k.in_loop,t}return n.expression?Q(!0):function(){var e=k.token,t=[];for(k.input.push_directives_stack(),n.module&&k.input.add_directive("use strict");!r("eof");)t.push(A());k.input.pop_directives_stack();var i=s(),o=n.toplevel;return o?(o.body=o.body.concat(t),o.end=i):o=new ge({start:e,body:t,end:i}),o}()}function _t(e,t){Te.call(this),this.before=e,this.after=t}function yt(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.export=!1,this.mangled_name=null,this.undeclared=!1,this.id=yt.next_id++}_t.prototype=new Te,function(n){function e(e,t){e.DEFMETHOD("transform",function(e,r){var i,s;return e.push(this),e.before&&(i=e.before(this,t,r)),i===n&&(t(i=this,e),e.after&&(s=e.after(i,r))!==n&&(i=s)),e.pop(),i})}function t(e,t){return I(e,function(e){return e.transform(t,!0)})}e(q,s),e(oe,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),e(J,function(e,t){e.body=e.body.transform(t)}),e(te,function(e,n){e.body=t(e.body,n)}),e(ue,function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)}),e(le,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),e(fe,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),e(pe,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),e(he,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),e(ze,function(e,t){e.value&&(e.value=e.value.transform(t))}),e(Ke,function(e,t){e.label&&(e.label=e.label.transform(t))}),e(lt,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),e(dt,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),e(vt,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),e(bt,function(e,n){e.body=t(e.body,n),e.bcatch&&(e.bcatch=e.bcatch.transform(n)),e.bfinally&&(e.bfinally=e.bfinally.transform(n))}),e(Et,function(e,n){e.argname&&(e.argname=e.argname.transform(n)),e.body=t(e.body,n)}),e(Ct,function(e,n){e.definitions=t(e.definitions,n)}),e(jt,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),e(Ce,function(e,n){e.names=t(e.names,n)}),e(be,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body instanceof q?e.body=e.body.transform(n):e.body=t(e.body,n)}),e(Ut,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),e(Ht,function(e,n){e.expressions=t(e.expressions,n)}),e(Gt,function(e,t){e.expression=e.expression.transform(t)}),e(qt,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),e(lr,function(e,t){e.expression&&(e.expression=e.expression.transform(t))}),e(ur,function(e,t){e.expression=e.expression.transform(t)}),e(Wt,function(e,t){e.expression=e.expression.transform(t)}),e(Jt,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),e(Yt,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),e(nn,function(e,n){e.elements=t(e.elements,n)}),e(pn,function(e,n){e.properties=t(e.properties,n)}),e(hn,function(e,t){e.key instanceof q&&(e.key=e.key.transform(t)),e.value=e.value.transform(t)}),e(bn,function(e,n){e.name&&(e.name=e.name.transform(n)),e.extends&&(e.extends=e.extends.transform(n)),e.properties=t(e.properties,n)}),e(ye,function(e,t){e.expression=e.expression.transform(t)}),e(Nt,function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)}),e(Lt,function(e,n){e.imported_name&&(e.imported_name=e.imported_name.transform(n)),e.imported_names&&t(e.imported_names,n),e.module_name=e.module_name.transform(n)}),e(Bt,function(e,n){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(n)),e.exported_value&&(e.exported_value=e.exported_value.transform(n)),e.exported_names&&t(e.exported_names,n),e.module_name&&(e.module_name=e.module_name.transform(n))}),e(Oe,function(e,n){e.segments=t(e.segments,n)}),e(Me,function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})}(),yt.next_id=1;var Pr=1,Nr=2;function wt(e,n){var r=e.enclosed;e:for(;;){var i=Lr(++e.cname);if(rt(i)&&!t(i,n.reserved)){for(var s=r.length;--s>=0;){var o=r[s];if(i==(o.mangled_name||o.unmangleable(n)&&o.name))continue e}return i}}}yt.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export&Pr||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof Rn||this.orig[0]instanceof On)&&w(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof In||(this.orig[0]instanceof Nn||this.orig[0]instanceof Pn)&&w(e.keep_classnames,this.orig[0].name)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n,r=this.scope,i=this.orig[0];e.ie8&&i instanceof Rn&&(r=r.parent_scope),(n=this.redefined())?this.mangled_name=n.mangled_name||n.name:this.mangled_name=r.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},ge.DEFMETHOD("figure_out_scope",function(e){e=a(e,{cache:null,ie8:!1,safari10:!1});var t=this,n=t.parent_scope=null,r=new y,i=null,s=null,o=[],c=new Te(function(t,a){if(t.is_block_scope()){var u=n;return t.block_scope=n=new me(t),n.init_scope_vars(u),t instanceof me||(n.uses_with=u.uses_with,n.uses_eval=u.uses_eval,n.directives=u.directives),e.safari10&&(t instanceof fe||t instanceof pe)&&o.push(n),a(),n=u,!0}if(t instanceof Ce)return s=t,a(),s=null,!0;if(t instanceof me){t.init_scope_vars(n);u=n;var l=i,f=r;return i=n=t,r=new y,a(),n=u,i=l,r=f,!0}if(t instanceof oe){var p=t.label;if(r.has(p.name))throw new Error(m("Label {name} defined twice",p));return r.set(p.name,p),a(),r.del(p.name),!0}if(t instanceof he)for(var d=n;d;d=d.parent_scope)d.uses_with=!0;else{if(t instanceof Sn&&(t.scope=n),t instanceof Un&&(t.thedef=t,t.references=[]),t instanceof Rn)i.def_function(t,"arguments"==t.name?void 0:i);else if(t instanceof On)D((t.scope=i.parent_scope.get_defun_scope()).def_function(t,i),1);else if(t instanceof Nn)D(i.def_variable(t,i),1);else if(t instanceof Bn)n.def_variable(t);else if(t instanceof Pn)D((t.scope=i.parent_scope).def_function(t,i),1);else if(t instanceof xn||t instanceof Tn||t instanceof An){if(_((h=t instanceof Cn?n.def_variable(t,null):i.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig,function(e){return e===t||(t instanceof Cn?e instanceof Rn:!(e instanceof Tn||e instanceof An))})||ct(t.name+" redeclared",t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Mn||D(h,2),h.destructuring=s,i!==n){t.mark_enclosed(e);var h=n.find_variable(t);t.thedef!==h&&(t.thedef=h,t.reference(e))}}else if(t instanceof Ln)n.def_variable(t).defun=i;else if(t instanceof Gn){var g=r.get(t.name);if(!g)throw new Error(m("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=g}n instanceof ge||!(t instanceof Bt||t instanceof Lt)||ct(t.TYPE+" statement may only appear at top level",t.start.file,t.start.line,t.start.col,t.start.pos)}function D(e,t){if(s){var n=0;do{t++}while(c.parent(n++)!==s)}var r=c.parent(t);if(e.export=r instanceof Bt&&Pr){var i=r.exported_definition;(i instanceof xe||i instanceof En)&&r.is_default&&(e.export=Nr)}}});t.walk(c),t.globals=new y;c=new Te(function(n,r){if(n instanceof Ke&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof zn){var i,s=n.name;if("eval"==s&&c.parent()instanceof Ut)for(var o=n.scope;o&&!o.uses_eval;o=o.parent_scope)o.uses_eval=!0;return c.parent()instanceof Nt&&c.parent(1).module_name||!(i=n.scope.find_variable(s))?(i=t.def_global(n),n instanceof Hn&&(i.export=Pr)):i.scope instanceof be&&"arguments"==s&&(i.scope.uses_arguments=!0),n.thedef=i,n.reference(e),!n.scope.is_block_scope()||i.orig[0]instanceof Cn||(n.scope=n.scope.get_defun_scope()),!0}var a;if(n instanceof Ln&&(a=n.definition().redefined()))for(o=n.scope;o&&(d(o.enclosed,a),o!==a.scope);)o=o.parent_scope});if(t.walk(c),(e.ie8||e.safari10)&&t.walk(new Te(function(n,r){if(n instanceof Ln){var i=n.name,s=n.thedef.references,o=n.thedef.defun,a=o.find_variable(i)||t.globals.get(i)||o.def_variable(n);return s.forEach(function(t){t.thedef=a,t.reference(e)}),n.thedef=a,n.reference(e),!0}})),e.safari10)for(var u=0;u<o.length;u++){(n=o[u]).parent_scope.variables.each(function(e){d(n.enclosed,e)})}}),ge.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new yt(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),me.DEFMETHOD("init_scope_vars",function(e){this.variables=new y,this.functions=new y,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),q.DEFMETHOD("is_block_scope",c),bn.DEFMETHOD("is_block_scope",c),be.DEFMETHOD("is_block_scope",c),ge.DEFMETHOD("is_block_scope",c),ht.DEFMETHOD("is_block_scope",c),te.DEFMETHOD("is_block_scope",f),ae.DEFMETHOD("is_block_scope",f),be.DEFMETHOD("init_scope_vars",function(){me.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Mn({name:"arguments",start:this.start,end:this.end}))}),ke.DEFMETHOD("init_scope_vars",function(){me.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),Sn.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(d(n.enclosed,t),e.keep_fnames&&n.functions.each(function(n){w(e.keep_fnames,n.name)&&d(t.scope.enclosed,n)}),n!==t.scope);)n=n.parent_scope}),Sn.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),me.DEFMETHOD("find_variable",function(e){return e instanceof Sn&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),me.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof xe)&&(n.init=t),this.functions.set(e.name,n),n}),me.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof we)&&(n.init=t)):(n=new yt(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n}),me.DEFMETHOD("next_mangled",function(e){return wt(this,e)}),ge.DEFMETHOD("next_mangled",function(e){var n;do{n=wt(this,e)}while(t(n,this.mangled_names));return n}),we.DEFMETHOD("next_mangled",function(e,t){for(var n=t.orig[0]instanceof Mn&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var i=wt(this,e);if(!r||r!=i)return i}}),Sn.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)}),Un.DEFMETHOD("unmangleable",c),Sn.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()}),Sn.DEFMETHOD("definition",function(){return this.thedef}),Sn.DEFMETHOD("global",function(){return this.definition().global}),ge.DEFMETHOD("_default_mangler_options",function(e){return(e=a(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||(e.reserved=[]),d(e.reserved,"arguments"),e}),ge.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var n=-1,r=[],i=this.mangled_names=[];e.cache&&(this.globals.each(a),e.cache.props&&e.cache.props.each(function(e){d(i,e)}));var s=new Te(function(t,i){if(t instanceof oe){var s=n;return i(),n=s,!0}if(t instanceof me)t.variables.each(a);else if(t.is_block_scope())t.block_scope.variables.each(a);else{if(t instanceof Un){var o;do{o=Lr(++n)}while(!rt(o));return t.mangled_name=o,!0}!e.ie8&&!e.safari10&&t instanceof Ln&&r.push(t.definition())}});function a(n){t(n.name,e.reserved)||n.export&Pr||r.push(n)}this.walk(s),r.forEach(function(t){t.mangle(e)})}),ge.DEFMETHOD("find_colliding_names",function(e){var t=e.cache&&e.cache.props,n=Object.create(null);return e.reserved.forEach(i),this.globals.each(r),this.walk(new Te(function(e){e instanceof me&&e.variables.each(r),e instanceof Ln&&r(e.definition())})),n;function i(e){n[e]=!0}function r(n){var r=n.name;if(n.global&&t&&t.has(r))r=t.get(r);else if(!n.unmangleable(e))return;i(r)}}),ge.DEFMETHOD("expand_names",function(e){Lr.reset(),Lr.sort(),e=this._default_mangler_options(e);var n=this.find_colliding_names(e),i=0;function r(r){if(!(r.global&&e.cache||r.unmangleable(e)||t(r.name,e.reserved))){var s=r.redefined();r.name=s?s.name:function(){var e;do{e=Lr(i++)}while(n[e]||!rt(e));return e}(),r.orig.forEach(function(e){e.name=r.name}),r.references.forEach(function(e){e.name=r.name})}}this.globals.each(r),this.walk(new Te(function(e){e instanceof me&&e.variables.each(r),e instanceof Ln&&r(e.definition())}))}),q.DEFMETHOD("tail_node",l),Ht.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),ge.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{q.prototype.print=function(t,n){this._print(t,n),this instanceof Sn&&!this.unmangleable(e)?Lr.consider(this.name,-1):e.properties&&(this instanceof Gt?Lr.consider(this.property,-1):this instanceof qt&&function n(e){e instanceof Jn?Lr.consider(e.value,-1):e instanceof Yt?(n(e.consequent),n(e.alternative)):e instanceof Ht&&n(e.tail_node())}(this.property))},Lr.consider(this.print_to_string(),1)}finally{q.prototype.print=q.prototype._print}Lr.sort()});var Lr=function(){var e,t,n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),i="0123456789".split("");function r(){t=Object.create(null),n.forEach(function(e){t[e]=0}),i.forEach(function(e){t[e]=0})}function o(e,n){return t[n]-t[e]}function a(t){var n="",r=54;t++;do{n+=e[--t%r],t=Math.floor(t/r),r=64}while(t>0);return n}return a.consider=function(e,n){for(var r=e.length;--r>=0;)t[e[r]]+=n},a.sort=function(){e=D(n,o).concat(D(i,o))},a.reset=r,r(),a}(),Br=/^$|[;{][\s\n]*$/;function At(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function xt(e){var t=!e;void 0===(e=a(e,{ascii_only:!1,beautify:!1,braces:!1,comments:!1,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0)).shorthand&&(e.shorthand=e.ecma>5);var n=c;if(e.comments){var r=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var i=e.comments.lastIndexOf("/");r=new RegExp(e.comments.substr(1,i-1),e.comments.substr(i+1))}n=r instanceof RegExp?function(e){return"comment5"!=e.type&&r.test(e.value)}:"function"==typeof r?function(e){return"comment5"!=e.type&&r(this,e)}:"some"===r?At:f}var u=0,l=0,p=1,d=0,h="",y=e.ascii_only?function(t,n){return e.ecma>=6&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var t,n;return"\\u{"+(t=e,n=0,et(t.charAt(n))?65536+(t.charCodeAt(n)-55296<<10)+t.charCodeAt(n+1)-56320:t.charCodeAt(n)).toString(16)+"}"})),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}:function(e){for(var t="",n=0,r=e.length;n<r;n++)et(e[n])&&!tt(e[n+1])||tt(e[n])&&!et(e[n-1])?t+="\\u"+e.charCodeAt(n).toString(16):t+=e[n];return t};function m(t,n){var r=function(t,n){var r=0,i=0;function o(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function a(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n,s){switch(n){case'"':return++r,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(nt(t,s+1))?"\\x00":"\\0"}return n}),t=y(t),"`"===n)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return o();case 2:return a();case 3:return"'"==n?o():a();default:return r>i?o():a()}}(t,n);return e.inline_script&&(r=(r=(r=r.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),r}function v(t){return function n(e,t){if(t<=0)return"";if(1==t)return e;var r=n(e,t>>1);return r+=r,1&t&&(r+=e),r}(" ",e.indent_start+u-t*e.indent_level)}var b,E,w=!1,S=!1,k=!1,D=0,x=!1,C=!1,A=-1,M="",O=e.source_map&&[],F=O?function(){O.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){null!=t.token.file&&q.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}}),O=[]}:s,I=e.max_line_len?function(){if(l>e.max_line_len){if(D){var t=h.slice(0,D),n=h.slice(D);if(O){var r=n.length-l;O.forEach(function(e){e.line++,e.col+=r})}h=t+"\n"+n,p++,d++,l=n.length}l>e.max_line_len&&q.warn("Output exceeds {max_line_len} characters",e)}D&&(D=0,F())}:s,P=g("( [ + * / - , . `");function T(t){var n=nt(t=String(t),0),r=nt(M,M.length-1);x&&n&&(x=!1,"\n"!=n&&(T("\n"),B())),C&&n&&(C=!1,/[\s;})]/.test(n)||N()),A=-1;r=M.charAt(M.length-1);k&&(k=!1,(":"==r&&"}"==n||(!n||";}".indexOf(n)<0)&&";"!=r)&&(e.semicolons||P(n)?(h+=";",l++,d++):(I(),h+="\n",d++,p++,l=0,/^\s+$/.test(t)&&(k=!0)),e.beautify||(S=!1))),S&&((at(r)&&(at(n)||"\\"==n)||"/"==n&&n==r||("+"==n||"-"==n)&&n==M)&&(h+=" ",l++,d++),S=!1),b&&(O.push({token:b,name:E,line:p,col:l}),b=!1,D||F()),h+=t,w="("==t[t.length-1],d+=t.length;var i=t.split(/\r?\n/),s=i.length-1;p+=s,l+=i[0].length,s>0&&(I(),l=i[s].length),M=t}var N=e.beautify?function(){T(" ")}:function(){S=!0},B=e.beautify?function(t){e.beautify&&T(v(t?.5:0))}:s,z=e.beautify?function(e,t){!0===e&&(e=j());var n=u;u=e;var r=t();return u=n,r}:function(e,t){return t()},H=e.beautify?function(){if(A<0)return T("\n");"\n"!=h[A]&&(h=h.slice(0,A)+"\n"+h.slice(A),d++,p++),A++}:e.max_line_len?function(){I(),D=h.length}:s,V=e.beautify?function(){T(";")}:function(){k=!0};function R(){k=!1,T(";")}function j(){return u+e.indent_level}function U(){return D&&I(),h}function L(){var e=h.lastIndexOf("\n");return/^ *$/.test(h.slice(e+1))}var G=[];return{get:U,toString:U,indent:B,indentation:function(){return u},current_width:function(){return l-u},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return w},newline:H,print:T,star:function(){T("*")},space:N,comma:function(){T(","),N()},colon:function(){T(":"),N()},last:function(){return M},semicolon:V,force_semicolon:R,to_utf8:y,print_name:function(e){T(function(e){return e=e.toString(),e=y(e,!0)}(e))},print_string:function(e,t,n){var r=m(e,t);!0===n&&-1===r.indexOf("\\")&&(Br.test(h)||R(),R()),T(r)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return T(t.substr(1,t.length-2))},encode_string:m,next_indent:j,with_indent:z,with_block:function(e){var t;return T("{"),H(),z(j(),function(){t=e()}),B(),T("}"),t},with_parens:function(e){T("(");var t=e();return T(")"),t},with_square:function(e){T("[");var t=e();return T("]"),t},add_mapping:O?function(e,t){b=e,E=t}:s,option:function(t){return e[t]},prepend_comments:t?s:function(t){var r=this,i=t.start;if(i&&(!i.comments_before||i.comments_before._dumped!==r)){var s=i.comments_before;if(s||(s=i.comments_before=[]),s._dumped=r,t instanceof ze&&t.value){var o=new Te(function(e){var t=o.parent();if(!(t instanceof ze||t instanceof Jt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof Yt&&t.condition===e||t instanceof Gt&&t.expression===e||t instanceof Ht&&t.expressions[0]===e||t instanceof qt&&t.expression===e||t instanceof Xt))return!0;if(e.start){var n=e.start.comments_before;n&&n._dumped!==r&&(n._dumped=r,s=s.concat(n))}});o.push(t),t.value.walk(o)}if(0==d){s.length>0&&e.shebang&&"comment5"==s[0].type&&(T("#!"+s.shift().value+"\n"),B());var a=e.preamble;a&&T(a.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(s=s.filter(n,t)).length){var c=L();s.forEach(function(e,t){c||(e.nlb?(T("\n"),B(),c=!0):t>0&&N()),/comment[134]/.test(e.type)?(T("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),B(),c=!0):"comment2"==e.type&&(T("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),c=!1)}),c||(i.nlb?(T("\n"),B()):N())}}},append_comments:t||n===c?s:function(e,t){var r=e.end;if(r){var i=r[t?"comments_before":"comments_after"];if(i&&i._dumped!==this&&(e instanceof W||_(i,function(e){return!/comment[134]/.test(e.type)}))){i._dumped=this;var s=h.length;i.filter(n,e).forEach(function(e,n){C=!1,x?(T("\n"),B(),x=!1):e.nlb&&(n>0||!L())?(T("\n"),B()):(n>0||!t)&&N(),/comment[134]/.test(e.type)?(T("//"+e.value.replace(/[@#]__PURE__/g," ")),x=!0):"comment2"==e.type&&(T("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),h.length>s&&(A=s)}}},line:function(){return p},col:function(){return l},pos:function(){return d},push_node:function(e){G.push(e)},pop_node:function(){return G.pop()},parent:function(e){return G[G.length-2-(e||0)]}}}function kt(e,t){if(!(this instanceof kt))return new kt(e,t);_t.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(t=!0),this.options=a(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var r in n)/^@/.test(r)&&b(n,r)&&(n[r.slice(1)]=gt(n[r],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var i=this.options.pure_funcs;this.pure_funcs="function"==typeof i?i:i?function(e){return i.indexOf(e.expression.print_to_string())<0}:f;var s=this.options.top_retain;s instanceof RegExp?this.top_retain=function(e){return s.test(e.name)}:"function"==typeof s?this.top_retain=s:s&&("string"==typeof s&&(s=s.split(/,/)),this.top_retain=function(e){return s.indexOf(e.name)>=0}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var o=this.options.toplevel;this.toplevel="string"==typeof o?{funcs:/funcs/.test(o),vars:/vars/.test(o)}:{funcs:o,vars:o};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.warnings_produced={}}!function(){function n(e,t){e.DEFMETHOD("_codegen",t)}var e=!1,i=null,g=null;function r(e,t){Array.isArray(e)?e.forEach(function(e){r(e,t)}):e.DEFMETHOD("needs_parens",t)}function o(t,n,r,i){var s=t.length-1;e=i,t.forEach(function(t,i){!0!==e||t instanceof X||t instanceof re||t instanceof J&&t.body instanceof Jn||(e=!1),t instanceof re||(r.indent(),t.print(r),i==s&&n||(r.newline(),n&&r.newline())),!0===e&&t instanceof J&&t.body instanceof Jn&&(e=!1)}),e=!1}function a(e,t){t.print("{"),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.print("}")}function u(e,t,n){e.body.length>0?t.with_block(function(){o(e.body,!1,t,n)}):a(e,t)}function f(e,t,n){var r=!1;n&&e.walk(new Te(function(e){return!!(r||e instanceof me)||(e instanceof Jt&&"in"==e.operator?(r=!0,!0):void 0)})),e.print(t,r)}function l(e,t,n){n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.print(d(e)):(dr(e)?!n.option("ie8"):ut(e))?t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e):n.print_string(e,t)}function p(e,t){t.option("braces")?m(e,t):!e||e instanceof re?t.force_semicolon():e.print(t)}function h(e,t){return e.args.length>0||t.option("beautify")}function d(e){var t,n=e.toString(10),r=[n.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(e>=0?r.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):r.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(t=/^(.*?)(0+)$/.exec(e))&&r.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&r.push(t[2]+"e-"+(t[1].length+t[2].length),n.substr(n.indexOf("."))),function(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(n=(t=e[r]).length);return t}(r)}function m(e,t){!e||e instanceof re?t.print("{}"):e instanceof ne?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function v(e,t){e.forEach(function(e){e.DEFMETHOD("add_source_map",t)})}q.DEFMETHOD("print",function(e,t){var n=this,r=n._codegen;function a(){e.prepend_comments(n),n.add_source_map(e),r(n,e),e.append_comments(n)}n instanceof me?i=n:!g&&n instanceof X&&"use asm"==n.value&&(g=i),e.push_node(n),t||n.needs_parens(e)?e.with_parens(a):a(),e.pop_node(),n===g&&(g=null)}),q.DEFMETHOD("_print",q.prototype.print),q.DEFMETHOD("print_to_string",function(e){var t=xt(e);return this.print(t),t.get()}),r(q,c),r(we,function(e){if(!e.has_parens()&&E(e))return!0;var t;if(e.option("webkit")&&((t=e.parent())instanceof Vt&&t.expression===this))return!0;return!!e.option("wrap_iife")&&((t=e.parent())instanceof Ut&&t.expression===this)}),r(ke,function(e){var t=e.parent();return t instanceof Vt&&t.expression===this}),r(pn,function(e){return!e.has_parens()&&E(e)}),r(wn,E),r(Wt,function(e){var t=e.parent();return t instanceof Vt&&t.expression===this||t instanceof Ut&&t.expression===this||t instanceof Jt&&"**"===t.operator&&this instanceof Kt&&t.left===this&&"++"!==this.operator&&"--"!==this.operator}),r(ur,function(e){var t=e.parent();return t instanceof Vt&&t.expression===this||t instanceof Ut&&t.expression===this||e.option("safari10")&&t instanceof Kt}),r(Ht,function(e){var t=e.parent();return t instanceof Ut||t instanceof Wt||t instanceof Jt||t instanceof jt||t instanceof Vt||t instanceof nn||t instanceof hn||t instanceof Yt||t instanceof ke||t instanceof Zt||t instanceof ye||t instanceof de&&this===t.object||t instanceof lr||t instanceof Bt}),r(Jt,function(e){var t=e.parent();if(t instanceof Ut&&t.expression===this)return!0;if(t instanceof Wt)return!0;if(t instanceof Vt&&t.expression===this)return!0;if(t instanceof Jt){var n=t.operator,r=Ir[n],i=this.operator,s=Ir[i];if(r>s||r==s&&(this===t.right||"**"==n))return!0}}),r(lr,function(e){var t=e.parent();return t instanceof Jt&&"="!==t.operator||(t instanceof Ut&&t.expression===this||(t instanceof Yt&&t.condition===this||(t instanceof Wt||(t instanceof Vt&&t.expression===this||void 0))))}),r(Vt,function(e){var t=e.parent();if(t instanceof zt&&t.expression===this){var n=!1;return this.walk(new Te(function(e){return!!(n||e instanceof me)||(e instanceof Ut?(n=!0,!0):void 0)})),n}}),r(Ut,function(e){var t,n=e.parent();return!!(n instanceof zt&&n.expression===this||n instanceof Bt&&n.is_default&&this.expression instanceof we)||this.expression instanceof we&&n instanceof Vt&&n.expression===this&&(t=e.parent(1))instanceof Qt&&t.left===n}),r(zt,function(e){var t=e.parent();if(!h(this,e)&&(t instanceof Vt||t instanceof Ut&&t.expression===this))return!0}),r(Zn,function(e){var t=e.parent();if(t instanceof Vt&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(d(n)))return!0}}),r([Qt,Yt],function(e){var t=e.parent();return t instanceof Wt||(t instanceof Jt&&!(t instanceof Qt)||(t instanceof Ut&&t.expression===this||(t instanceof Yt&&t.condition===this||(t instanceof Vt&&t.expression===this||(this instanceof Qt&&this.left instanceof Ce&&!1===this.left.is_array||void 0)))))}),n(X,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),n(ye,function(e,t){t.print("..."),e.expression.print(t)}),n(Ce,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,r){r>0&&t.comma(),e.print(t),r==n-1&&e instanceof ir&&t.comma()}),t.print(e.is_array?"]":"}")}),n(K,function(e,t){t.print("debugger"),t.semicolon()}),se.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),n(W,function(e,t){e.body.print(t),t.semicolon()}),n(ge,function(e,t){o(e.body,!0,t,!0),t.print("")}),n(oe,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),n(J,function(e,t){e.body.print(t),t.semicolon()}),n(ne,function(e,t){u(e,t)}),n(re,function(e,t){t.semicolon()}),n(ue,function(e,t){t.print("do"),t.space(),m(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),n(le,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),n(fe,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof Ct?e.init.print(t):f(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),n(pe,function(e,t){t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print(e instanceof de?"of":"in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),n(he,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),be.DEFMETHOD("_do_print",function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space()),e.print("function"),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof Sn?n.name.print(e):t&&n.name instanceof q&&e.with_square(function(){n.name.print(e)}),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),u(n,e,!0)}),n(be,function(e,t){e._do_print(t)}),n(Me,function(e,t){var n=e.prefix,r=n instanceof ke||n instanceof Jt||n instanceof Yt||n instanceof Ht||n instanceof Wt;r&&t.print("("),e.prefix.print(t),r&&t.print(")"),e.template_string.print(t)}),n(Oe,function(e,t){var n=t.parent()instanceof Me;t.print("`");for(var r=0;r<e.segments.length;r++)e.segments[r]instanceof Ne?n?t.print(e.segments[r].raw):t.print_template_string_chars(e.segments[r].value):(t.print("${"),e.segments[r].print(t),t.print("}"));t.print("`")}),ke.DEFMETHOD("_do_print",function(e){var t=this,n=e.parent(),r=n instanceof Jt||n instanceof Wt||n instanceof Ut&&t===n.expression;r&&e.print("("),t.async&&(e.print("async"),e.space()),1===t.argnames.length&&t.argnames[0]instanceof Sn?t.argnames[0].print(e):e.with_parens(function(){t.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),e.print("=>"),e.space(),t.body instanceof q?t.body.print(e):u(t,e),r&&e.print(")")}),ze.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),n(Ve,function(e,t){e._do_print(t,"return")}),n(qe,function(e,t){e._do_print(t,"throw")}),n(lr,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space(),e.expression.print(t))}),n(ur,function(e,t){t.print("await"),t.space();var n=e.expression,r=!(n instanceof Ut||n instanceof zn||n instanceof Vt||n instanceof Wt||n instanceof Xn);r&&t.print("("),e.expression.print(t),r&&t.print(")")}),Ke.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),n(Xe,function(e,t){e._do_print(t,"break")}),n($e,function(e,t){e._do_print(t,"continue")}),n(lt,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(!function(e,t){var n=e.body;if(""===n.print_to_string()){t.newline();var r=new Array(t.next_indent()).join(" ");return t.print(r+";"),void t.newline()}if(t.option("braces")||t.option("ie8")&&n instanceof ue)return m(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof lt){if(!n.alternative)return void m(e.body,t);n=n.alternative}else{if(!(n instanceof se))break;n=n.body}p(e.body,t)}(e,t),""!==e.body.print_to_string()&&t.space(),t.print("else"),t.space(),e.alternative instanceof lt?e.alternative.print(t):p(e.alternative,t)):e._do_print_body(t)}),n(dt,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?a(e,t):t.with_block(function(){e.body.forEach(function(e,r){t.indent(!0),e.print(t),r<n&&e.body.length>0&&t.newline()})})}),ht.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),n(mt,function(e,t){t.print("default:"),e._do_print_body(t)}),n(vt,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),n(bt,function(e,t){t.print("try"),t.space(),u(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),n(Et,function(e,t){t.print("catch"),e.argname&&(t.space(),t.with_parens(function(){e.argname.print(t)})),t.space(),u(e,t)}),n(Dt,function(e,t){t.print("finally"),t.space(),u(e,t)}),Ct.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(!(n instanceof fe||n instanceof pe)||n&&n.init!==this)&&e.semicolon()}),n(Rt,function(e,t){e._do_print(t,"let")}),n(Ft,function(e,t){e._do_print(t,"var")}),n(Pt,function(e,t){e._do_print(t,"const")}),n(Lt,function(e,t){t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(function(n,r){t.space(),n.print(t),r<e.imported_names.length-1&&t.print(",")}),t.space(),t.print("}"))),(e.imported_name||e.imported_names)&&(t.space(),t.print("from"),t.space()),e.module_name.print(t),t.semicolon()}),n(Nt,function(e,t){var n=t.parent()instanceof Lt,r=e.name.definition();(r&&r.mangled_name||e.name.name)!==e.foreign_name.name?(n?t.print(e.foreign_name.name):e.name.print(t),t.space(),t.print("as"),t.space(),n?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)}),n(Bt,function(e,t){if(t.print("export"),t.space(),e.is_default&&(t.print("default"),t.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach(function(n,r){t.space(),n.print(t),r<e.exported_names.length-1&&t.print(",")}),t.space(),t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof Ct))return;e.module_name&&(t.space(),t.print("from"),t.space(),e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof xe||e.exported_value instanceof we||e.exported_value instanceof bn)||e.module_name||e.exported_names)&&t.semicolon()}),n(jt,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof fe||n instanceof pe;f(e.value,t,r)}}),n(Ut,function(e,t){e.expression.print(t),e instanceof zt&&!h(e,t)||((e.expression instanceof Ut||e.expression instanceof be)&&t.add_mapping(e.start),t.with_parens(function(){e.args.forEach(function(e,n){n&&t.comma(),e.print(t)})}))}),n(zt,function(e,t){t.print("new"),t.space(),Ut.prototype._codegen(e,t)}),Ht.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){n>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),n(Ht,function(e,t){e._do_print(t)}),n(Gt,function(e,t){var n=e.expression;n.print(t);var r=e.property;t.option("ie8")&&dr(r)?(t.print("["),t.add_mapping(e.end),t.print_string(r),t.print("]")):(n instanceof Zn&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(r))}),n(qt,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),n(Kt,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Kt&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),n(Xt,function(e,t){e.expression.print(t),t.print(e.operator)}),n(Jt,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof Xt&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Kt&&"!"==e.right.operator&&e.right.expression instanceof Kt&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),n(Yt,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),n(nn,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof ir&&t.comma()}),r>0&&t.space()})}),n(pn,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):a(e,t)}),n(bn,function(e,t){if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof zn||e.extends instanceof Vt||e.extends instanceof wn||e.extends instanceof we);t.print("extends"),n?t.print("("):t.space(),e.extends.print(t),n?t.print(")"):t.space()}e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&t.newline(),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),n(kn,function(e,t){t.print("new.target")}),n(mn,function(e,n){function t(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var r=n.option("shorthand");r&&e.value instanceof Sn&&ut(e.key)&&t(e.value)===e.key&&rt(e.key)?l(e.key,e.quote,n):r&&e.value instanceof Zt&&e.value.left instanceof Sn&&ut(e.key)&&t(e.value.left)===e.key?(l(e.key,e.quote,n),n.space(),n.print("="),n.space(),e.value.right.print(n)):(e.key instanceof q?n.with_square(function(){e.key.print(n)}):l(e.key,e.quote,n),n.colon(),e.value.print(n))}),hn.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;n.static&&(t.print("static"),t.space()),e&&(t.print(e),t.space()),n.key instanceof In?l(n.key.name,n.quote,t):t.with_square(function(){n.key.print(t)}),n.value._do_print(t,!0)}),n(yn,function(e,t){e._print_getter_setter("set",t)}),n(vn,function(e,t){e._print_getter_setter("get",t)}),n(_n,function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,t)}),Sn.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)}),n(Sn,function(e,t){e._do_print(t)}),n(ir,s),n(qn,function(e,t){t.print("this")}),n(Wn,function(e,t){t.print("super")}),n(Xn,function(e,t){t.print(e.getValue())}),n(Jn,function(t,n){n.print_string(t.getValue(),t.quote,e)}),n(Zn,function(e,t){g&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(d(e.getValue()))}),n($n,function(e,t){var n=e.getValue().toString();n=t.to_utf8(n),t.print(n);var r=t.parent();r instanceof Jt&&/^in/.test(r.operator)&&r.left===e&&t.print(" ")}),v([q,oe,ge],s),v([nn,ne,Et,bn,Xn,K,Ct,X,Dt,Be,be,zt,pn,se,Sn,dt,ht,bt],function(e){e.add_mapping(this.start)}),v([vn,yn],function(e){e.add_mapping(this.start,this.key.name)}),v([hn],function(e){e.add_mapping(this.start,this.key)})}(),kt.prototype=new _t,u(kt.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof On?"funcs":"vars"])return!0;return!1},in_boolean_context:function(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),n=0;e=this.parent(n);n++){if(e instanceof J||e instanceof Yt&&e.condition===t||e instanceof ce&&e.condition===t||e instanceof fe&&e.condition===t||e instanceof lt&&e.condition===t||e instanceof Kt&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof Jt&&("&&"==e.operator||"||"==e.operator)||e instanceof Yt||e.tail_node()===t))return!1;t=e}},compress:function(e){e=e.resolve_defines(this),this.option("expression")&&e.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,r=!1,i={ie8:this.option("ie8")},s=0;s<t;s++)if(e.figure_out_scope(i),0===s&&this.option("drop_console")&&(e=e.drop_console()),(s>0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),t>1){var o=0;if(e.walk(new Te(function(){o++})),this.info("pass "+s+": last_count: "+n+", count: "+o),o<n)n=o,r=!1;else{if(r)break;r=!0}}return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&q.warn.apply(q,arguments)},warn:function(e,t){if(this.options.warnings){var n=m(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,q.warn.apply(q,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof me&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var i=e.optimize(this);return r&&i instanceof me&&(i.drop_unused(this),t(i,this)),i===e&&(i._squeezed=!0),i}}),function(){function n(e,t){e.DEFMETHOD("optimize",function(e){if(this._optimized)return this;if(e.has_directive("use asm"))return this;var n=t(this,e);return n._optimized=!0,n})}function e(e,t){if(!((t=Fe(t))instanceof q)){var n;if(e instanceof nn){var r=e.elements;if("length"==t)return C(r.length,e);"number"==typeof t&&t in r&&(n=r[t])}else if(e instanceof pn){t=""+t;for(var i=e.properties,s=i.length;--s>=0;){if(!(i[s]instanceof mn))return;n||i[s].key!==t||(n=i[s].value)}}return n instanceof zn&&n.fixed_value()||n}}function r(t,n,i,s,o,a){var c=n.parent(o),u=He(i,c);if(u)return u;if(!a&&c instanceof Ut&&c.expression===i&&!(s instanceof ke)&&!(s instanceof bn)&&!c.is_expr_pure(t)&&(!(s instanceof we)||!(c instanceof zt)&&s.contains_this()))return!0;if(c instanceof nn)return r(t,n,c,c,o+1);if(c instanceof mn&&i===c.value){var l=n.parent(o+1);return r(t,n,l,l,o+2)}if(c instanceof Vt&&c.expression===i){var f=e(s,c.property);return!a&&r(t,n,c,f,o+1)}}function o(e){return e instanceof ke||e instanceof we}function a(e){if(e instanceof qn)return!0;if(e instanceof zn)return e.definition().orig[0]instanceof Rn;if(e instanceof Vt){if((e=e.expression)instanceof zn){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof $n)&&(e instanceof Xn||a(e))}return!1}function u(e,t){if(!(e instanceof zn))return!1;for(var n=e.definition().orig,r=n.length;--r>=0;)if(n[r]instanceof t)return!0}function d(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof me);)if(n instanceof Et&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function D(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function F(e,t){return 1==t.length?t[0]:D(Ht,e,{expressions:t.reduce(S,[])})}function C(e,t){switch(typeof e){case"string":return D(Jn,t,{value:e});case"number":return isNaN(e)?D(nr,t):isFinite(e)?1/e<0?D(Kt,t,{operator:"-",expression:D(Zn,t,{value:-e})}):D(Zn,t,{value:e}):e<0?D(Kt,t,{operator:"-",expression:D(sr,t)}):D(sr,t);case"boolean":return D(e?cr:ar,t);case"undefined":return D(rr,t);default:if(null===e)return D(tr,t,{value:null});if(e instanceof RegExp)return D($n,t,{value:e});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function M(e,t,n){return e instanceof Kt&&"delete"==e.operator||e instanceof Ut&&e.expression===t&&(n instanceof Vt||n instanceof zn&&"eval"==n.name)?F(t,[D(Zn,t,{value:0}),n]):n}function S(e,t){return t instanceof Ht?e.push.apply(e,t.expressions):e.push(t),e}function L(e){if(null===e)return[];if(e instanceof ne)return e.body;if(e instanceof re)return[];if(e instanceof W)return[e];throw new Error("Can't convert thing to statement array")}function sn(e){return null===e||(e instanceof re||e instanceof ne&&0==e.body.length)}function Fn(e){return!(e instanceof En||e instanceof xe||e instanceof Rt||e instanceof Pt||e instanceof Bt||e instanceof Lt)}function Yn(e){return e instanceof ae&&e.body instanceof ne?e.body:e}function Kn(e){return"Call"==e.TYPE&&(e.expression instanceof we||Kn(e.expression))}function ie(e){return e instanceof zn&&e.definition().undeclared}n(q,function(e,t){return e}),ge.DEFMETHOD("drop_console",function(){return this.transform(new _t(function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof Vt){for(var n=t.expression;n.expression;)n=n.expression;if(ie(n)&&"console"==n.name)return D(rr,e)}}}))}),q.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),me.DEFMETHOD("process_expression",function(e,t){var n=this,r=new _t(function(i){if(e&&i instanceof J)return D(Ve,i,{value:i.body});if(!e&&i instanceof Ve){if(t){var s=i.value&&i.value.drop_side_effect_free(t,!0);return s?D(J,i,{body:s}):D(re,i)}return D(J,i,{body:i.value||D(Kt,i,{operator:"void",expression:D(Zn,i,{value:0})})})}if(i instanceof bn||i instanceof be&&i!==n)return i;if(i instanceof te){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(r))}else i instanceof lt?(i.body=i.body.transform(r),i.alternative&&(i.alternative=i.alternative.transform(r))):i instanceof he&&(i.body=i.body.transform(r));return i});n.transform(r)}),function(n){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=!1,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof An||!e.exposed(t)?t.fixed=t.init:t.fixed=!1,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0}function i(e,n,r){r.variables.each(function(r){t(n,r),null===r.fixed?(r.safe_ids=e.safe_ids,c(e,r,!0)):r.fixed&&(e.loop_ids[r.id]=e.in_loop,c(e,r,!0))})}function o(e,n){n.block_scope&&n.block_scope.variables.each(function(n){t(e,n)})}function a(e){e.safe_ids=Object.create(e.safe_ids)}function u(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function c(e,t,n){e.safe_ids[t.id]=n}function f(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof Mn||"arguments"==n.name)return!1;t.fixed=D(rr,n)}return!0}return t.fixed instanceof xe}function l(e,t,n){return void 0===t.fixed||(null===t.fixed&&t.safe_ids?(t.safe_ids[t.id]=!1,delete t.safe_ids,!0):!!b(e.safe_ids,t.id)&&(!!f(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&_(t.orig,function(e){return!(e instanceof An||e instanceof On||e instanceof Rn)})))))}function p(t,n,r,i,s,o,a){var c=t.parent(o);if(s){if(s.is_constant())return;if(s instanceof wn)return}if(c instanceof Qt&&"="==c.operator&&i===c.right||c instanceof Ut&&(i!==c.expression||c instanceof zt)||c instanceof ze&&i===c.value&&i.scope!==n.scope||c instanceof jt&&i===c.value||c instanceof lr&&i===c.value&&i.scope!==n.scope)return!(a>1)||s&&s.is_constant_expression(r)||(a=1),void((!n.escaped||n.escaped>a)&&(n.escaped=a));if(c instanceof nn||c instanceof ur||c instanceof Jt&&P(c.operator)||c instanceof Yt&&i!==c.condition||c instanceof ye||c instanceof Ht&&i===c.tail_node())p(t,n,r,c,c,o+1,a);else if(c instanceof mn&&i===c.value){var u=t.parent(o+1);p(t,n,r,u,u,o+2,a)}else if(c instanceof Vt&&i===c.expression&&(p(t,n,r,c,s=e(s,c.property),o+1,a+1),s))return;o>0||c instanceof Ht&&i!==c.tail_node()||c instanceof J||(n.direct_access=!0)}n(q,s);var h=new Te(function(e){if(e instanceof Sn){var t=e.definition();t&&(e instanceof zn&&t.references.push(e),t.fixed=!1)}});function d(e,t,n){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),i(e,n,this),t(),e.safe_ids=r,!0}function m(e,t,n){var r,s=this;return s.inlined=!1,a(e),i(e,n,s),!s.name&&(r=e.parent())instanceof Ut&&r.expression===s&&s.argnames.forEach(function(t,n){if(t.definition){var i=t.definition();void 0!==i.fixed||s.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function(){return r.args[n]||D(rr,r)},e.loop_ids[i.id]=e.in_loop,c(e,i,!0))}}),t(),u(e),!0}n(Ee,function(e,t,n){return a(e),i(e,n,this),t(),u(e),!0}),n(ke,m),n(Qt,function(e,t,n){var i=this;if(i.left instanceof Ce)i.left.walk(h);else{var s=i.left;if(s instanceof zn){var o=s.definition(),a=l(e,o,s.scope,i.right);if(o.assignments++,a){var u=o.fixed;if(u||"="==i.operator){var f="="==i.operator,d=f?i.right:i;if(!r(n,e,i,d,0))return o.references.push(s),f||(o.chained=!0),o.fixed=f?function(){return i.right}:function(){return D(Jt,i,{operator:i.operator.slice(0,-1),left:u instanceof q?u:u(),right:i.right})},c(e,o,!1),i.right.walk(e),c(e,o,!0),p(e,o,s.scope,i,d,0,1),!0}}}}}),n(Jt,function(e){if(P(this.operator))return this.left.walk(e),a(e),this.right.walk(e),u(e),!0}),n(te,function(e,t,n){o(n,this)}),n(vt,function(e){return a(e),this.expression.walk(e),u(e),a(e),$(this,e),u(e),!0}),n(wn,function(e,t){return this.inlined=!1,a(e),t(),u(e),!0}),n(Yt,function(e){return this.condition.walk(e),a(e),this.consequent.walk(e),u(e),a(e),this.alternative.walk(e),u(e),!0}),n(mt,function(e,t){return a(e),t(),u(e),!0}),n(En,d),n(xe,d),n(ue,function(e,t,n){o(n,this);var r=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),Ze(this)&&(u(e),a(e)),this.condition.walk(e),u(e),e.in_loop=r,!0}),n(fe,function(e,t,n){o(n,this),this.init&&this.init.walk(e);var r=e.in_loop;return e.in_loop=this,a(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(Ze(this)&&(u(e),a(e)),this.step.walk(e)),u(e),e.in_loop=r,!0}),n(pe,function(e,t,n){o(n,this),this.init.walk(h),this.object.walk(e);var r=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),u(e),e.in_loop=r,!0}),n(we,m),n(lt,function(e){return this.condition.walk(e),a(e),this.body.walk(e),u(e),this.alternative&&(a(e),this.alternative.walk(e),u(e)),!0}),n(oe,function(e){return a(e),this.body.walk(e),u(e),!0}),n(Ln,function(){this.definition().fixed=!1}),n(zn,function(e,t,n){var i,s=this.definition();s.references.push(this),1==s.references.length&&!s.fixed&&s.orig[0]instanceof On&&(e.loop_ids[s.id]=e.in_loop),void 0!==s.fixed&&f(e,s)?s.fixed&&((i=this.fixed_value())instanceof be&&Ge(e,s)?s.recursive_refs++:i&&!n.exposed(s)&&function(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids[n.id]===e.in_loop}(e,n,s)?s.single_use=i instanceof be&&!i.pinned()||i instanceof bn||s.scope===this.scope&&i.is_constant_expression():s.single_use=!1,r(n,e,this,i,0,function(e){return!!e&&(e.is_constant()||e instanceof be||e instanceof qn)}(i))&&(s.single_use?s.single_use="m":s.fixed=!1)):s.fixed=!1,p(e,s,this.scope,this,i,0,1)}),n(ge,function(e,n,r){this.globals.each(function(e){t(r,e)}),i(e,r,this)}),n(bt,function(e,t,n){return o(n,this),a(e),$(this,e),u(e),this.bcatch&&(a(e),this.bcatch.walk(e),u(e)),this.bfinally&&this.bfinally.walk(e),!0}),n(Wt,function(e,t){var n=this;if("++"==n.operator||"--"==n.operator){var r=n.expression;if(r instanceof zn){var i=r.definition(),s=l(e,i,!0);if(i.assignments++,s){var o=i.fixed;if(o)return i.references.push(r),i.chained=!0,i.fixed=function(){return D(Jt,n,{operator:n.operator.slice(0,-1),left:D(Kt,n,{operator:"+",expression:o instanceof q?o:o()}),right:D(Zn,n,{value:1})})},c(e,i,!0),!0}}}}),n(jt,function(e,t){var n=this;if(n.name instanceof Ce)n.name.walk(h);else{var r=n.name.definition();if(n.value){if(l(e,r,n.value))return r.fixed=function(){return n.value},e.loop_ids[r.id]=e.in_loop,c(e,r,!1),t(),c(e,r,!0),!0;r.fixed=!1}}}),n(le,function(e,t,n){o(n,this);var r=e.in_loop;return e.in_loop=this,a(e),t(),u(e),e.in_loop=r,!0})}(function(e,t){e.DEFMETHOD("reduce_vars",t)}),ge.DEFMETHOD("reset_opt_flags",function(e){var t=this,n=e.option("reduce_vars"),r=new Te(function(i,s){if(i._squeezed=!1,i._optimized=!1,n)return e.top_retain&&(r.parent()===t?i._top=!0:delete i._top),i.reduce_vars(r,s,e)});r.safe_ids=Object.create(null),r.in_loop=null,r.loop_ids=Object.create(null),t.walk(r)}),Sn.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof q?e:e()}),zn.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof Rn});var k=g("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");zn.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&k(this.name)});var A,T,O,R=g("Infinity NaN undefined");function ve(e){return e instanceof sr||e instanceof nr||e instanceof rr}function De(e,i){var c,l,f=i.find_parent(me).get_defun_scope();!function(){var e=i.self(),t=0;do{if(e instanceof Et||e instanceof Dt)t++;else if(e instanceof ae)c=!0;else{if(e instanceof me){f=e;break}e instanceof bt&&(l=!0)}}while(e=i.parent(t++))}();var h,k=10;do{h=!1,d(e),i.option("dead_code")&&g(e,i),i.option("if_return")&&m(e,i),i.sequences_limit>0&&(b(e,i),w(e,i)),i.option("join_vars")&&x(e),i.option("collapse_vars")&&p(e,i)}while(h&&k-- >0);function p(e,i){if(f.pinned())return e;for(var s,p=[],d=e.length,m=new _t(function(e,t){if(N)return e;if(!R)return e!==y[v]?e:++v<y.length?Q(e):(R=!0,(w=function n(e,t,r){var i=m.parent(t);if(i instanceof Qt)return r&&!(i.left instanceof Vt||i.left.name in x)?n(i,t+1,r):e;if(i instanceof Jt)return!r||P(i.operator)&&i.left!==e?e:n(i,t+1,r);if(i instanceof Ut)return e;if(i instanceof vt)return e;if(i instanceof Yt)return r&&i.condition===e?n(i,t+1,r):e;if(i instanceof Ct)return n(i,t+1,!0);if(i instanceof ze)return r?n(i,t+1,r):e;if(i instanceof lt)return r&&i.condition===e?n(i,t+1,r):e;if(i instanceof ae)return e;if(i instanceof Ht)return n(i,t+1,i.tail_node()!==e);if(i instanceof J)return n(i,t+1,!0);if(i instanceof dt)return e;if(i instanceof jt)return e;return null}(e,0))===e&&(N=!0),e);var n,r=m.parent();if(e instanceof Qt&&"="!=e.operator&&k.equivalent_to(e.left)||e instanceof ur||e instanceof Ut&&k instanceof Vt&&k.equivalent_to(e.expression)||e instanceof K||e instanceof Ce||e instanceof ye&&e.expression instanceof Sn&&e.expression.definition().references.length>1||e instanceof ae&&!(e instanceof fe)||e instanceof Ke||e instanceof bt||e instanceof he||e instanceof lr||r instanceof fe&&e!==r.init||!T&&e instanceof zn&&!e.is_declared(i))return N=!0,e;if(S||C&&T||!(r instanceof Jt&&P(r.operator)&&r.left!==e||r instanceof Yt&&r.condition!==e||r instanceof lt&&r.condition!==e)||(S=r),B&&!(e instanceof Dn)&&k.equivalent_to(e)){if(S)return N=!0,e;if(He(e,r))return E&&L++,e;if(h=N=!0,L++,i.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),b instanceof Xt)return D(Kt,b,b);if(b instanceof jt){if(E)return N=!1,e;var s=b.name.definition(),o=b.value;return s.references.length-s.replaced!=1||i.exposed(s)?D(Qt,b,{operator:"=",left:D(zn,b.name,b.name),right:o}):(s.replaced++,F&&ve(o)?o.transform(i):M(r,e,o))}return b.write_only=!1,b}return(e instanceof Ut||e instanceof ze&&(A||k instanceof Vt||gn(k))||e instanceof Vt&&(A||e.expression.may_throw_on_access(i))||e instanceof zn&&(x[e.name]||A&&gn(e))||e instanceof jt&&e.value&&(e.name.name in x||A&&gn(e.name))||(n=He(e.left,e))&&(n instanceof Vt||n.name in x)||O&&(l?e.has_side_effects(i):function n(e,t){if(e instanceof Qt)return n(e.left,!0);if(e instanceof Wt)return n(e.expression,!0);if(e instanceof jt)return e.value&&n(e.value);if(t){if(e instanceof Gt)return n(e.expression,!0);if(e instanceof qt)return n(e.expression,!0);if(e instanceof zn)return e.definition().scope!==f}return!1}(e)))&&(w=e,e instanceof me&&(N=!0)),Q(e)},function(e){N||(w===e&&(N=!0),S===e&&(S=null))}),g=new _t(function(e){if(N)return e;if(!R){if(e!==y[v])return e;if(++v<y.length)return;return R=!0,e}return e instanceof zn&&e.name==z.name?(--L||(N=!0),He(e,g.parent())?e:(z.replaced++,E.replaced--,b.value)):e instanceof mt||e instanceof me?e:void 0});--d>=0;){0==d&&i.option("unused")&&en();var y=[];for(tn(e[d]);p.length>0;){y=p.pop();var v=0,b=y[y.length-1],E=null,w=null,S=null,k=rn(b);if(k&&!a(k)&&!k.has_side_effects(i)){var x=un(b),C=fn(k);k instanceof zn&&(x[k.name]=!1);var A=ln(b),T=dn(),O=b.may_throw(i),F=b.name instanceof Mn,R=F,N=!1,L=0,B=!s||!R;if(!B){for(var j=i.self().argnames.lastIndexOf(b.name)+1;!N&&j<s.length;j++)s[j].transform(m);B=!0}for(var U=d;!N&&U<e.length;U++)e[U].transform(m);if(E){var z=b.name.definition();if(N&&z.references.length-z.replaced>L)L=!1;else{N=!1,v=0,R=F;for(U=d;!N&&U<e.length;U++)e[U].transform(g);E.single_use=!1}}L&&!sn(b)&&e.splice(d,1)}}}function Q(e){if(e instanceof me)return e;if(e instanceof dt){e.expression=e.expression.transform(m);for(var t=0,n=e.body.length;!N&&t<n;t++){var r=e.body[t];if(r instanceof vt){if(!R){if(r!==y[v])continue;v++}if(r.expression=r.expression.transform(m),!T)break}}return N=!0,e}}function G(e,t,n){var r=!1,i=!(e instanceof ke);return t.walk(new Te(function(t,s){if(r)return!0;if(t instanceof zn&&e.variables.has(t.name)){var o=t.definition().scope;if(o!==f)for(;o=o.parent_scope;)if(o===f)return!0;return r=!0}if((n||i)&&t instanceof qn)return r=!0;if(t instanceof me&&!(t instanceof ke)){var a=i;return i=!1,s(),i=a,!0}})),r}function en(){var e,n=i.self();if(o(n)&&!n.name&&!n.uses_arguments&&!n.pinned()&&(e=i.parent())instanceof Ut&&e.expression===n&&_(e.args,function(e){return!(e instanceof ye)})){var r=i.has_directive("use strict");r&&!t(r,n.body)&&(r=!1);var a=n.argnames.length;s=e.args.slice(a);for(var c=Object.create(null),u=a;--u>=0;){var l=n.argnames[u],f=e.args[u];if(s.unshift(D(jt,l,{name:l,value:f})),!(l.name in c))if(c[l.name]=!0,l instanceof ye){var d=e.args.slice(u);_(d,function(e){return!G(n,e,r)})&&p.unshift([D(jt,l,{name:l.expression,value:D(nn,e,{elements:d})})])}else f?(f instanceof be&&f.pinned()||G(n,f,r))&&(f=null):f=D(rr,l).transform(i),f&&p.unshift([D(jt,l,{name:l,value:f})])}}}function tn(e){if(y.push(e),e instanceof Qt)e.left.has_side_effects(i)||p.push(y.slice()),tn(e.right);else if(e instanceof Jt)tn(e.left),tn(e.right);else if(e instanceof Ut)tn(e.expression),e.args.forEach(tn);else if(e instanceof vt)tn(e.expression);else if(e instanceof Yt)tn(e.condition),tn(e.consequent),tn(e.alternative);else if(!(e instanceof Ct)||!i.option("unused")&&e instanceof Pt)e instanceof ce?(tn(e.condition),e.body instanceof te||tn(e.body)):e instanceof ze?e.value&&tn(e.value):e instanceof fe?(e.init&&tn(e.init),e.condition&&tn(e.condition),e.step&&tn(e.step),e.body instanceof te||tn(e.body)):e instanceof pe?(tn(e.object),e.body instanceof te||tn(e.body)):e instanceof lt?(tn(e.condition),e.body instanceof te||tn(e.body),!e.alternative||e.alternative instanceof te||tn(e.alternative)):e instanceof Ht?e.expressions.forEach(tn):e instanceof J?tn(e.body):e instanceof dt?(tn(e.expression),e.body.forEach(tn)):e instanceof Wt?"++"!=e.operator&&"--"!=e.operator||p.push(y.slice()):e instanceof jt&&e.value&&(p.push(y.slice()),tn(e.value));else{var t=e.definitions.length,n=t-200;for(n<0&&(n=0);n<t;n++)tn(e.definitions[n])}y.pop()}function rn(e){if(!(e instanceof jt&&e.name instanceof Dn)){var n=e[e instanceof Qt?"left":"expression"];return!u(n,An)&&n}var r=e.name.definition();if(t(e.name,r.orig)){var s=r.references.length-r.replaced;if(s)return r.orig.length-r.eliminated>1&&!(e.name instanceof Mn)||(s>1?function(e){var t=e.value;if(t instanceof zn&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return E=n}}(e):!i.exposed(r))?D(zn,e.name,e.name):void 0}}function on(e){return e[e instanceof Qt?"right":"value"]}function un(e){var t=Object.create(null);if(e instanceof Wt)return t;var n=new Te(function(e,s){for(var o=e;o instanceof Vt;)o=o.expression;(o instanceof zn||o instanceof qn)&&(t[o.name]=t[o.name]||r(i,n,e,e,0))});return on(e).walk(n),t}function sn(t){if(t.name instanceof Mn){var n=i.parent(),r=i.self().argnames,s=r.indexOf(t.name);if(s<0)n.args.length=Math.min(n.args.length,r.length-1);else{var o=n.args;o[s]&&(o[s]=D(Zn,o[s],{value:0}))}return!0}var a=!1;return e[d].transform(new _t(function(e,n,r){return a?e:e===t||e.body===t?(a=!0,e instanceof jt?(e.value=null,e):r?I.skip:null):void 0},function(e){if(e instanceof Ht)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function fn(e){for(;e instanceof Vt;)e=e.expression;return e instanceof zn&&e.definition().scope===f&&!(c&&(e.name in x||b instanceof Wt||b instanceof Qt&&"="!=b.operator))}function ln(e){return!(e instanceof Wt)&&on(e).has_side_effects(i)}function dn(){if(A)return!1;if(E)return!0;if(k instanceof zn){var e=k.definition();if(e.references.length-e.replaced==(b instanceof jt?1:2))return!0}return!1}function gn(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof On)&&(t.scope.get_defun_scope()!==f||!_(t.references,function(e){var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===f}))}}function d(e){for(var t=[],n=0;n<e.length;){var r=e[n];r instanceof ne&&_(r.body,Fn)?(h=!0,d(r.body),[].splice.apply(e,[n,1].concat(r.body)),n+=r.body.length):r instanceof re?(h=!0,e.splice(n,1)):r instanceof X?t.indexOf(r.value)<0?(n++,t.push(r.value)):(h=!0,e.splice(n,1)):n++}}function m(e,t){for(var n=t.self(),r=function(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof lt&&r.body instanceof Ve&&++t>1)return!0}return!1}(e),i=n instanceof be,s=e.length;--s>=0;){var o=e[s],a=_(s),c=e[a];if(i&&!c&&o instanceof Ve){if(!o.value){h=!0,e.splice(s,1);continue}if(o.value instanceof Kt&&"void"==o.value.operator){h=!0,e[s]=D(J,o,{body:o.value.expression});continue}}if(o instanceof lt){var u;if(d(u=We(o.body))){u.label&&v(u.label.thedef.references,u),h=!0,(o=o.clone()).condition=o.condition.negate(t);var l=g(o.body,u);o.body=D(ne,o,{body:L(o.alternative).concat(m())}),o.alternative=D(ne,o,{body:l}),e[s]=o.transform(t);continue}if(d(u=We(o.alternative))){u.label&&v(u.label.thedef.references,u),h=!0,(o=o.clone()).body=D(ne,o.body,{body:L(o.body).concat(m())});l=g(o.alternative,u);o.alternative=D(ne,o.alternative,{body:l}),e[s]=o.transform(t);continue}}if(o instanceof lt&&o.body instanceof Ve){var f=o.body.value;if(!f&&!o.alternative&&(i&&!c||c instanceof Ve&&!c.value)){h=!0,e[s]=D(J,o.condition,{body:o.condition});continue}if(f&&!o.alternative&&c instanceof Ve&&c.value){h=!0,(o=o.clone()).alternative=c,e.splice(s,1,o.transform(t)),e.splice(a,1);continue}if(f&&!o.alternative&&(!c&&i&&r||c instanceof Ve)){h=!0,(o=o.clone()).alternative=c||D(Ve,o,{value:null}),e.splice(s,1,o.transform(t)),c&&e.splice(a,1);continue}var p=e[b(s)];if(t.option("sequences")&&i&&!o.alternative&&p instanceof lt&&p.body instanceof Ve&&_(a)==e.length&&c instanceof J){h=!0,(o=o.clone()).alternative=D(ne,c,{body:[c,D(Ve,c,{value:null})]}),e.splice(s,1,o.transform(t)),e.splice(a,1);continue}}}function d(r){if(!r)return!1;for(var o=s+1,a=e.length;o<a;o++){var c=e[o];if(c instanceof Pt||c instanceof Rt)return!1}var u,l=r instanceof Ke?t.loopcontrol_target(r):null;return r instanceof Ve&&i&&(!(u=r.value)||u instanceof Kt&&"void"==u.operator)||r instanceof $e&&n===Yn(l)||r instanceof Xe&&l instanceof ne&&n===l}function m(){var t=e.slice(s+1);return e.length=s+1,t.filter(function(t){return!(t instanceof xe)||(e.push(t),!1)})}function g(e,t){var n=L(e).slice(0,-1);return t.value&&n.push(D(J,t.value,{body:t.value.expression})),n}function _(t){for(var n=t+1,r=e.length;n<r;n++){var i=e[n];if(!(i instanceof Ft&&y(i)))break}return n}function b(t){for(var n=t;--n>=0;){var r=e[n];if(!(r instanceof Ft&&y(r)))break}return n}}function g(e,t){for(var n,r=t.self(),i=0,s=0,o=e.length;i<o;i++){var a=e[i];if(a instanceof Ke){var c=t.loopcontrol_target(a);a instanceof Xe&&!(c instanceof ae)&&Yn(c)===r||a instanceof $e&&Yn(c)===r?a.label&&v(a.label.thedef.references,a):e[s++]=a}else e[s++]=a;if(We(a)){n=e.slice(i+1);break}}e.length=s,h=s!=o,n&&n.forEach(function(n){_e(t,n,e)})}function y(e){return _(e.definitions,function(e){return!e.value})}function b(e,t){if(!(e.length<2)){for(var n=[],r=0,i=0,o=e.length;i<o;i++){var a=e[i];if(a instanceof J){n.length>=t.sequences_limit&&s();var c=a.body;n.length>0&&(c=c.drop_side_effect_free(t)),c&&S(n,c)}else a instanceof Ct&&y(a)||a instanceof xe?e[r++]=a:(s(),e[r++]=a)}s(),e.length=r,r!=o&&(h=!0)}function s(){if(n.length){var t=F(n[0],n);e[r++]=D(J,t,{body:t}),n=[]}}}function E(e,t){if(!(e instanceof ne))return e;for(var n=null,r=0,i=e.body.length;r<i;r++){var s=e.body[r];if(s instanceof Ft&&y(s))t.push(s);else{if(n)return!1;n=s}}return n}function w(e,n){function t(e){i--,h=!0;var t=r.body;return F(t,[t,e]).transform(n)}for(var r,i=0,s=0;s<e.length;s++){var o=e[s];if(r)if(o instanceof ze)o.value=t(o.value||D(rr,o).transform(n));else if(o instanceof fe){if(!(o.init instanceof Ct)){var a=!1;r.body.walk(new Te(function(e){return!!(a||e instanceof me)||(e instanceof Jt&&"in"==e.operator?(a=!0,!0):void 0)})),a||(o.init?o.init=t(o.init):(o.init=r.body,i--,h=!0))}}else o instanceof pe?o.init instanceof Pt||o.init instanceof Rt||(o.object=t(o.object)):o instanceof lt?o.condition=t(o.condition):o instanceof dt?o.expression=t(o.expression):o instanceof he&&(o.expression=t(o.expression));if(n.option("conditionals")&&o instanceof lt){var c=[],u=E(o.body,c),l=E(o.alternative,c);if(!1!==u&&!1!==l&&c.length>0){var f=c.length;c.push(D(lt,o,{condition:o.condition,body:u||D(re,o.body),alternative:l})),c.unshift(i,1),[].splice.apply(e,c),s+=f,i+=f+1,r=null,h=!0;continue}}e[i++]=o,r=o instanceof J?o:null}e.length=i}function C(e,t){if(e instanceof Ct){var n,r=e.definitions[e.definitions.length-1];if(r.value instanceof pn)if(t instanceof Qt?n=[t]:t instanceof Ht&&(n=t.expressions.slice()),n){var s=!1;do{var o=n[0];if(!(o instanceof Qt))break;if("="!=o.operator)break;if(!(o.left instanceof Vt))break;var a=o.left.expression;if(!(a instanceof zn))break;if(r.name.name!=a.name)break;if(!o.right.is_constant_expression(f))break;var c=o.left.property;if(c instanceof q&&(c=c.evaluate(i)),c instanceof q)break;c=""+c;var u=i.option("ecma")<6&&i.has_directive("use strict")?function(e){return e.key!=c&&e.key.name!=c}:function(e){return e.key.name!=c};if(!_(r.value.properties,u))break;var l=r.value.properties.filter(function(e){return e.key===c})[0];l?l.value=new Ht({start:l.start,expressions:[l.value.clone(),o.right.clone()],end:l.end}):r.value.properties.push(D(mn,o,{key:c,value:o.right})),n.shift(),s=!0}while(n.length);return s&&n}}}function x(e){for(var t,n=0,r=-1,i=e.length;n<i;n++){var o=e[n],a=e[r];if(o instanceof Ct)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),h=!0):t&&t.TYPE==o.TYPE&&y(o)?(t.definitions=t.definitions.concat(o.definitions),h=!0):(e[++r]=o,t=o);else if(o instanceof ze)o.value=s(o.value);else if(o instanceof fe){(c=C(a,o.init))?(h=!0,o.init=c.length?F(o.init,c):null,e[++r]=o):a instanceof Ft&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,e[r]=o,h=!0):t&&o.init&&t.TYPE==o.init.TYPE&&y(o.init)?(t.definitions=t.definitions.concat(o.init.definitions),o.init=null,e[++r]=o,h=!0):e[++r]=o}else if(o instanceof pe)o.object=s(o.object);else if(o instanceof lt)o.condition=s(o.condition);else if(o instanceof J){var c;if(c=C(a,o.body)){if(h=!0,!c.length)continue;o.body=F(o.body,c)}e[++r]=o}else o instanceof dt?o.expression=s(o.expression):o instanceof he?o.expression=s(o.expression):e[++r]=o}function s(t){e[++r]=o;var n=C(a,t);return n?(h=!0,n.length?F(t,n):t instanceof Ht?t.tail_node().left:t.left):t}e.length=r+1}}function _e(e,t,n){t instanceof xe||e.warn("Dropping unreachable code [{file}:{line},{col}]",t.start),t.walk(new Te(function(r){return r instanceof Ft?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",r.start),r.remove_initializers(),n.push(r),!0):r instanceof xe&&(r===t||!e.has_directive("use strict"))?(n.push(r===t?r:D(Ft,r,{definitions:[D(jt,r,{name:D(xn,r.name,r.name),value:null})]})),!0):r instanceof me||void 0}))}function Fe(e){return e instanceof Xn?e.getValue():e instanceof Kt&&"void"==e.operator&&e.expression instanceof Xn?void 0:e}function Se(e,t){return e.is_undefined||e instanceof rr||e instanceof Kt&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(t){function e(e){return/strict/.test(e.option("pure_getters"))}q.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)}),t(q,e),t(tr,f),t(rr,f),t(Xn,c),t(nn,c),t(pn,function(t){if(!e(t))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n]._dot_throw(t))return!0;return!1}),t(hn,c),t(vn,f),t(ye,function(e){return this.expression._dot_throw(e)}),t(we,c),t(ke,c),t(Xt,c),t(Kt,function(){return"void"==this.operator}),t(Jt,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),t(Qt,function(e){return"="==this.operator&&this.right._dot_throw(e)}),t(Yt,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),t(Gt,function(t){return!!e(t)&&!(this.expression instanceof we&&"prototype"==this.property)}),t(Ht,function(e){return this.tail_node()._dot_throw(e)}),t(zn,function(t){if(this.is_undefined)return!0;if(!e(t))return!1;if(ie(this)&&this.is_declared(t))return!1;if(this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(t)})}(function(e,t){e.DEFMETHOD("_dot_throw",t)}),T=["!","delete"],O=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(A=function(e,t){e.DEFMETHOD("is_boolean",t)})(q,c),A(Kt,function(){return t(this.operator,T)}),A(Jt,function(){return t(this.operator,O)||P(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),A(Yt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),A(Qt,function(){return"="==this.operator&&this.right.is_boolean()}),A(Ht,function(){return this.tail_node().is_boolean()}),A(cr,f),A(ar,f),function(e){e(q,c),e(Zn,f);var t=g("+ - ~ ++ --");e(Wt,function(){return t(this.operator)});var n=g("- * / % & | ^ << >> >>>");e(Jt,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(Qt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Ht,function(e){return this.tail_node().is_number(e)}),e(Yt,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),function(e){e(q,c),e(Jn,f),e(Oe,function(){return 1===this.segments.length}),e(Kt,function(){return"typeof"==this.operator}),e(Jt,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(Qt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Ht,function(e){return this.tail_node().is_string(e)}),e(Yt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,t){e.DEFMETHOD("is_string",t)});var P=g("&& ||"),B=g("delete ++ --");function He(e,t){return t instanceof Wt&&B(t.operator)?t.expression:t instanceof Qt&&t.left===e?e:void 0}function Pe(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function Re(e,t,n){return(E(e)?function(e,t){return Pe(D(J,e,{body:e}),D(J,t,{body:t})).body}:Pe)(t,n)}function je(e){for(var t in e)e[t]=g(e[t])}!function(t){function e(e,t){e.warn("global_defs "+t.print_to_string()+" redefined [{file}:{line},{col}]",t.start)}ge.DEFMETHOD("resolve_defines",function(t){return t.option("global_defs")?(this.figure_out_scope({ie8:t.option("ie8")}),this.transform(new _t(function(n){var r=n._find_defs(t,"");if(r){for(var i,s=0,o=n;(i=this.parent(s++))&&i instanceof Vt&&i.expression===o;)o=i;if(!He(o,i))return r;e(t,n)}}))):this}),t(q,s),t(Gt,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),t(Dn,function(t){this.global()&&b(t.option("global_defs"),this.name)&&e(t,this)}),t(zn,function(e,t){if(this.global()){var n=e.option("global_defs"),r=this.name+t;return b(n,r)?function n(e,t){if(e instanceof q)return D(e.CTOR,t,e);if(Array.isArray(e))return D(nn,t,{elements:e.map(function(e){return n(e,t)})});if(e&&"object"==typeof e){var r=[];for(var i in e)b(e,i)&&r.push(D(mn,t,{key:i,value:n(e[i],t)}));return D(pn,t,{properties:r})}return C(e,t)}(n[r],this):void 0}})}(function(e,t){e.DEFMETHOD("_find_defs",t)});var j=["constructor","toString","valueOf"],U={Array:["indexOf","join","lastIndexOf","slice"].concat(j),Boolean:j,Function:j,Number:["toExponential","toFixed","toPrecision"].concat(j),Object:j,RegExp:["test"].concat(j),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(j)};je(U);var z={Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]};je(z),function(e){q.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t});var t=g("! ~ - + void");q.DEFMETHOD("is_constant",function(){return this instanceof Xn?!(this instanceof $n):this instanceof Kt&&this.expression instanceof Xn&&t(this.operator)}),e(W,function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(be,l),e(bn,l),e(q,l),e(Xn,function(){return this.getValue()}),e(Oe,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(we,function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this}),e(nn,function(e,t){if(e.option("unsafe")){for(var n=[],r=0,i=this.elements.length;r<i;r++){var s=this.elements[r],o=s._eval(e,t);if(s===o)return this;n.push(o)}return n}return this}),e(pn,function(e,t){if(e.option("unsafe")){for(var n={},r=0,i=this.properties.length;r<i;r++){var s=this.properties[r];if(s instanceof ye)return this;var o=s.key;if(o instanceof Sn)o=o.name;else if(o instanceof q&&(o=o._eval(e,t))===s.key)return this;if("function"==typeof Object.prototype[o])return this;if(!(s.value instanceof we)&&(n[o]=s.value._eval(e,t),n[o]===s.value))return this}return n}return this});var n=g("! typeof void");e(Kt,function(e,t){var r=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(r instanceof be||r instanceof zn&&r.fixed_value()instanceof be))return"function";if(n(this.operator)||t++,(r=r._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!r;case"typeof":return r instanceof RegExp?this:typeof r;case"void":return;case"~":return~r;case"-":return-r;case"+":return+r}return this});var r=g("&& || === !==");e(Jt,function(e,t){r(this.operator)||t++;var n=this.left._eval(e,t);if(n===this.left)return this;var i,s=this.right._eval(e,t);if(s===this.right)return this;switch(this.operator){case"&&":i=n&&s;break;case"||":i=n||s;break;case"|":i=n|s;break;case"&":i=n&s;break;case"^":i=n^s;break;case"+":i=n+s;break;case"*":i=n*s;break;case"**":i=Math.pow(n,s);break;case"/":i=n/s;break;case"%":i=n%s;break;case"-":i=n-s;break;case"<<":i=n<<s;break;case">>":i=n>>s;break;case">>>":i=n>>>s;break;case"==":i=n==s;break;case"===":i=n===s;break;case"!=":i=n!=s;break;case"!==":i=n!==s;break;case"<":i=n<s;break;case"<=":i=n<=s;break;case">":i=n>s;break;case">=":i=n>=s;break;default:return this}return isNaN(i)&&e.find_parent(he)?this:i}),e(Yt,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var r=n?this.consequent:this.alternative,i=r._eval(e,t);return i===r?this:i}),e(zn,function(e,t){var n,r=this.fixed_value();if(!r)return this;if(b(r,"_eval"))n=r._eval();else{if(this._eval=l,n=r._eval(e,t),delete this._eval,n===r)return this;r._eval=function(){return n}}if(n&&"object"==typeof n){var i=this.definition().escaped;if(i&&t>i)return this}return n});var i={Array:Array,Math:Math,Number:Number,Object:Object,String:String},s={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};je(s),e(Vt,function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof q&&(n=n._eval(e,t))===this.property)return this;var r,o=this.expression;if(ie(o)){if(!(s[o.name]||c)(n))return this;r=i[o.name]}else{if(!(r=o._eval(e,t+1))||r===o||!b(r,n))return this;if("function"==typeof r)switch(n){case"name":return r.node.name?r.node.name.name:"";case"length":return r.node.argnames.length;default:return this}}return r[n]}return this}),e(Ut,function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof Vt){var r,s=n.property;if(s instanceof q&&(s=s._eval(e,t))===n.property)return this;var o=n.expression;if(ie(o)){if(!(z[o.name]||c)(s))return this;r=i[o.name]}else if((r=o._eval(e,t+1))===o||!(r&&U[r.constructor.name]||c)(s))return this;for(var a=[],u=0,l=this.args.length;u<l;u++){var f=this.args[u],p=f._eval(e,t);if(f===p)return this;a.push(p)}try{return r[s].apply(r,a)}catch(t){e.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this}),e(zt,l)}(function(e,t){e.DEFMETHOD("_eval",t)}),function(n){function e(e){return D(Kt,e,{operator:"!",expression:e})}function t(t,n,r){var i=e(t);if(r){var s=D(J,n,{body:n});return Pe(i,s)===s?n:i}return Pe(i,n)}n(q,function(){return e(this)}),n(W,function(){throw new Error("Cannot negate a statement")}),n(we,function(){return e(this)}),n(ke,function(){return e(this)}),n(Kt,function(){return"!"==this.operator?this.expression:e(this)}),n(Ht,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),F(this,t)}),n(Yt,function(e,n){var r=this.clone();return r.consequent=r.consequent.negate(e),r.alternative=r.alternative.negate(e),t(this,r,n)}),n(Jt,function(n,r){var i=this.clone(),s=this.operator;if(n.option("unsafe_comps"))switch(s){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(s){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(n,r),i.right=i.right.negate(n),t(this,i,r);case"||":return i.operator="&&",i.left=i.left.negate(n,r),i.right=i.right.negate(n),t(this,i,r)}return e(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var H=g("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function We(e){return e&&e.aborts()}Ut.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;if(ie(t)&&H(t.name))return!0;if(t instanceof Gt&&ie(t.expression)&&(z[t.expression.name]||c)(t.property))return!0}return this.pure||!e.pure_funcs(this)}),q.DEFMETHOD("is_call_pure",c),Gt.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=c;return t instanceof nn?n=U.Array:t.is_boolean()?n=U.Boolean:t.is_number(e)?n=U.Number:t instanceof $n?n=U.RegExp:t.is_string(e)?n=U.String:this.may_throw_on_access(e)||(n=U.Object),n(this.property)}}),function(t){function e(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}t(q,f),t(re,c),t(Xn,c),t(qn,c),t(te,function(t){return e(this.body,t)}),t(Ut,function(t){return!(this.is_expr_pure(t)||this.expression.is_call_pure(t)&&!this.expression.has_side_effects(t))||e(this.args,t)}),t(dt,function(t){return this.expression.has_side_effects(t)||e(this.body,t)}),t(vt,function(t){return this.expression.has_side_effects(t)||e(this.body,t)}),t(bt,function(t){return e(this.body,t)||this.bcatch&&this.bcatch.has_side_effects(t)||this.bfinally&&this.bfinally.has_side_effects(t)}),t(lt,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),t(oe,function(e){return this.body.has_side_effects(e)}),t(J,function(e){return this.body.has_side_effects(e)}),t(be,c),t(bn,c),t(En,f),t(Jt,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),t(Qt,f),t(Yt,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),t(Wt,function(e){return B(this.operator)||this.expression.has_side_effects(e)}),t(zn,function(e){return!this.is_declared(e)}),t(Dn,c),t(pn,function(t){return e(this.properties,t)}),t(hn,function(e){return!!(this.key instanceof mn&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),t(nn,function(t){return e(this.elements,t)}),t(Gt,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),t(qt,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),t(Ht,function(t){return e(this.expressions,t)}),t(Ct,function(t){return e(this.definitions,t)}),t(jt,function(e){return this.value}),t(Ne,c),t(Oe,function(t){return e(this.segments,t)})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(t){function e(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}t(q,f),t(bn,c),t(Xn,c),t(re,c),t(be,c),t(Dn,c),t(qn,c),t(nn,function(t){return e(this.elements,t)}),t(Qt,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof zn)&&this.left.may_throw(e)}),t(Jt,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),t(te,function(t){return e(this.body,t)}),t(Ut,function(t){return!!e(this.args,t)||!this.is_expr_pure(t)&&(!!this.expression.may_throw(t)||(!(this.expression instanceof be)||e(this.expression.body,t)))}),t(vt,function(t){return this.expression.may_throw(t)||e(this.body,t)}),t(Yt,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),t(Ct,function(t){return e(this.definitions,t)}),t(Gt,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),t(lt,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),t(oe,function(e){return this.body.may_throw(e)}),t(pn,function(t){return e(this.properties,t)}),t(hn,function(e){return this.value.may_throw(e)}),t(Ve,function(e){return this.value&&this.value.may_throw(e)}),t(Ht,function(t){return e(this.expressions,t)}),t(J,function(e){return this.body.may_throw(e)}),t(qt,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),t(dt,function(t){return this.expression.may_throw(t)||e(this.body,t)}),t(zn,function(e){return!this.is_declared(e)}),t(bt,function(t){return this.bcatch?this.bcatch.may_throw(t):e(this.body,t)||this.bfinally&&this.bfinally.may_throw(t)}),t(Wt,function(e){return!("typeof"==this.operator&&this.expression instanceof zn)&&this.expression.may_throw(e)}),t(jt,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,t){e.DEFMETHOD("may_throw",t)}),function(n){function e(e){for(var t=e.length;--t>=0;)if(!e[t].is_constant_expression())return!1;return!0}function i(e){var n=this,r=!0;return n.walk(new Te(function(i){if(!r)return!0;if(i instanceof zn){if(n.inlined)return r=!1,!0;var s=i.definition();if(t(s,n.enclosed)&&!n.variables.has(s.name)){if(e){var o=e.find_variable(i);if(s.undeclared?!o:o===s)return r="f",!0}r=!1}return!0}return i instanceof qn&&n instanceof ke?(r=!1,!0):void 0})),r}n(q,c),n(Xn,f),n(bn,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&i.call(this,e)}),n(be,i),n(Wt,function(){return this.expression.is_constant_expression()}),n(Jt,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),n(nn,function(){return e(this.elements)}),n(pn,function(){return e(this.properties)}),n(hn,function(){return!(this.key instanceof q)&&this.value.is_constant_expression()})}(function(e,t){e.DEFMETHOD("is_constant_expression",t)}),function(t){function e(){for(var e=0;e<this.body.length;e++)if(We(this.body[e]))return this.body[e];return null}t(W,p),t(Be,l),t(Lt,function(){return null}),t(ne,e),t(ht,e),t(lt,function(){return this.alternative&&We(this.body)&&We(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)});var V=["use asm","use strict"];function Je(e,t){return De(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}function Ze(e,t){var n=!1,r=new Te(function(t){return!!(n||t instanceof me)||(t instanceof Ke&&r.loopcontrol_target(t)===e?n=!0:void 0)});return t instanceof oe&&r.push(t),r.push(e),e.body.walk(r),n}function Qe(e,t){return t.top_retain&&e instanceof xe&&e._top&&e.name&&t.top_retain(e.name)}n(X,function(e,n){return!n.option("directives")||t(e.value,V)&&n.has_directive(e.value)===e?e:D(re,e)}),n(K,function(e,t){return t.option("drop_debugger")?D(re,e):e}),n(oe,function(e,t){return e.body instanceof Xe&&t.loopcontrol_target(e.body)===e.body?D(re,e):0==e.label.references.length?e.body:e}),n(te,function(e,t){return De(e.body,t),e}),n(ne,function(e,t){switch(De(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof lt&&!((n=e.body[0])instanceof Pt||n instanceof Rt||n instanceof bn)||Fn(e.body[0]))return e.body[0];break;case 0:return D(re,e)}var n;return e}),n(be,Je),me.DEFMETHOD("drop_unused",function(e){if(e.option("unused")&&!e.has_directive("use asm")){var t=this;if(!t.pinned()){var n=!(t instanceof ge)||e.toplevel.funcs,r=!(t instanceof ge)||e.toplevel.vars,i=/keep_assign/.test(e.option("unused"))?c:function(e){return e instanceof Qt&&(e.write_only||"="==e.operator)?e.left:e instanceof Wt&&e.write_only?e.expression:void 0},s=[],o=Object.create(null),a=Object.create(null);t instanceof ge&&e.top_retain&&t.variables.each(function(t){!e.top_retain(t)||t.id in o||(o[t.id]=!0,s.push(t))});var l=new y,f=new y,p=null,d=this,h=new Te(function(i,c){if(i instanceof be&&i.uses_arguments&&!h.has_directive("use strict")&&i.argnames.forEach(function(e){if(e instanceof Dn){var t=e.definition();t.id in o||(o[t.id]=!0,s.push(t))}}),i!==t){if(i instanceof xe||i instanceof En){var u=i.name.definition();return((m=h.parent()instanceof Bt)||!n&&d===t)&&(!u.global||u.id in o||(o[u.id]=!0,s.push(u))),f.add(u.id,i),!0}if(i instanceof Mn&&d===t&&l.add(i.definition().id,i),i instanceof Ct&&d===t){var m=h.parent()instanceof Bt;return i.definitions.forEach(function(t){if(t.name instanceof xn&&l.add(t.name.definition().id,t),!m&&r||t.name.walk(new Te(function(e){if(e instanceof Dn){var t=e.definition();!m&&!t.global||t.id in o||(o[t.id]=!0,s.push(t))}})),t.value){if(t.name instanceof Ce){var n=p;p=t.value,t.walk(h),p=n}else{var i=t.name.definition();f.add(i.id,t.value),i.chained||t.name.fixed_value()!==t.value||(a[i.id]=t)}t.value.has_side_effects(e)&&t.value.walk(h)}}),!0}return i.destructuring&&p&&f.add(i.name,p),C(i,c)}});t.walk(h),h=new Te(C);for(var m=0;m<s.length;m++){var g=f.get(s[m].id);g&&g.forEach(function(e){e.walk(h)})}var b=new _t(function(s,c,u){var f=b.parent();if(r&&(E=i(s))instanceof zn){var p=(h=E.definition()).id in o;if(s instanceof Qt){if(!p||h.id in a&&a[h.id]!==s)return M(f,s,s.right.transform(b))}else if(!p)return D(Zn,s,{value:0})}if(d===t){var h;if(s.name&&(s instanceof wn&&!w(e.option("keep_classnames"),(h=s.name.definition()).name)||s instanceof we&&!w(e.option("keep_fnames"),(h=s.name.definition()).name))&&(h.id in o&&!(h.orig.length>1)||(s.name=null)),s instanceof be&&!(s instanceof Ee))for(var m=!e.option("keep_fargs"),g=s.argnames,y=g.length;--y>=0;){var E;(E=g[y])instanceof ye&&(E=E.expression),E instanceof Zt&&(E=E.left),E instanceof Ce||E.definition().id in o?m=!1:(E.__unused=!0,m&&(g.pop(),e[E.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",N(E))))}if((s instanceof xe||s instanceof En)&&s!==t)if(!((h=s.name.definition()).id in o||!n&&h.global))return e[s.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",N(s.name)),h.eliminated++,D(re,s);if(s instanceof Ct&&!(f instanceof pe&&f.init===s)){var S=!(f instanceof ge||s instanceof Ft),k=[],x=[],C=[],A=[];switch(s.definitions.forEach(function(t){t.value&&(t.value=t.value.transform(b));var n=t.name instanceof Ce,i=n?new yt(null,{name:"<destructure>"}):t.name.definition();if(S&&i.global)return C.push(t);if(!r&&!S||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||i.id in o){if(t.value&&i.id in a&&a[i.id]!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof xn){var c=l.get(i.id);if(c.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",N(t.name)),t.value){var u=D(zn,t.name,t.name);i.references.push(u);var f=D(Qt,t,{operator:"=",left:u,right:t.value});a[i.id]===t&&(a[i.id]=f),A.push(f.transform(b))}return v(c,t),void i.eliminated++}}t.value?(A.length>0&&(C.length>0?(A.push(t.value),t.value=F(t.value,A)):k.push(D(J,s,{body:F(s,A)})),A=[]),C.push(t)):x.push(t)}else if(i.orig[0]instanceof Ln){(p=t.value&&t.value.drop_side_effect_free(e))&&A.push(p),t.value=null,x.push(t)}else{var p;(p=t.value&&t.value.drop_side_effect_free(e))?(n||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",N(t.name)),A.push(p)):n||e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",N(t.name)),i.eliminated++}}),(x.length>0||C.length>0)&&(s.definitions=x.concat(C),k.push(s)),A.length>0&&k.push(D(J,s,{body:F(s,A)})),k.length){case 0:return u?I.skip:D(re,s);case 1:return k[0];default:return u?I.splice(k):D(ne,s,{body:k})}}if(s instanceof fe)return c(s,this),s.init instanceof ne&&(T=s.init,s.init=T.body.pop(),T.body.push(s)),s.init instanceof J?s.init=s.init.body:sn(s.init)&&(s.init=null),T?u?I.splice(T.body):T:s;if(s instanceof oe&&s.body instanceof fe){if(c(s,this),s.body instanceof ne){var T=s.body;return s.body=T.body.pop(),T.body.push(s),u?I.splice(T.body):T}return s}if(s instanceof ne)return c(s,this),u&&_(s.body,Fn)?I.splice(s.body):s;if(s instanceof me){var O=d;return d=s,c(s,this),d=O,s}}function N(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});t.transform(b)}}function C(e,n){var r,c=i(e);if(c instanceof zn&&!u(e.left,Cn)&&t.variables.get(c.name)===(r=c.definition()))return e instanceof Qt&&(e.right.walk(h),r.chained||e.left.fixed_value()!==e.right||(a[r.id]=e)),!0;if(e instanceof zn)return(r=e.definition()).id in o||(o[r.id]=!0,s.push(r),(r=r.redefined())&&(o[r.id]=!0,s.push(r))),!0;if(e instanceof me){var l=d;return d=e,n(),d=l,!0}}}),me.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),r=e.option("hoist_vars");if(n||r){var s=[],o=[],a=new y,c=0,u=0;t.walk(new Te(function(e){return e instanceof me&&e!==t||(e instanceof Ft?(++u,!0):void 0)})),r=r&&u>1;var l=new _t(function(i){if(i!==t){if(i instanceof X)return s.push(i),D(re,i);if(n&&i instanceof xe&&!(l.parent()instanceof Bt)&&l.parent()===t)return o.push(i),D(re,i);if(r&&i instanceof Ft){i.definitions.forEach(function(e){e.name instanceof Ce||(a.set(e.name.name,e),++c)});var u=i.to_assignments(e),f=l.parent();if(f instanceof pe&&f.init===i){if(null==u){var p=i.definitions[0].name;return D(zn,p,p)}return u}return f instanceof fe&&f.init===i?u:u?D(J,i,{body:u}):D(re,i)}if(i instanceof me)return i}});if(t=t.transform(l),c>0){var f=[];if(a.each(function(e,n){t instanceof be&&i(function(t){return t.name==e.name.name},t.args_as_names())?a.del(n):((e=e.clone()).value=null,f.push(e),a.set(n,e))}),f.length>0){for(var p=0;p<t.body.length;){if(t.body[p]instanceof J){var d,h,m=t.body[p].body;if(m instanceof Qt&&"="==m.operator&&(d=m.left)instanceof Sn&&a.has(d.name)){if((g=a.get(d.name)).value)break;g.value=m.right,v(f,g),f.push(g),t.body.splice(p,1);continue}if(m instanceof Ht&&(h=m.expressions[0])instanceof Qt&&"="==h.operator&&(d=h.left)instanceof Sn&&a.has(d.name)){var g;if((g=a.get(d.name)).value)break;g.value=h.right,v(f,g),f.push(g),t.body[p].body=F(m,m.expressions.slice(1));continue}}if(t.body[p]instanceof re)t.body.splice(p,1);else{if(!(t.body[p]instanceof ne))break;var _=[p,1].concat(t.body[p].body);t.body.splice.apply(t.body,_)}}f=D(Ft,t,{definitions:f}),o.push(f)}}t.body=s.concat(o,t.body)}return t}),me.DEFMETHOD("var_names",function(){var e=this._var_names;return e||(this._var_names=e=Object.create(null),this.enclosed.forEach(function(t){e[t.name]=!0}),this.variables.each(function(t,n){e[n]=!0})),e}),me.DEFMETHOD("make_var_name",function(e){for(var t=this.var_names(),n=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),r=0;t[n];r++)n=e+"$"+r;return t[n]=!0,n}),me.DEFMETHOD("hoist_properties",function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var n=t instanceof ge&&e.top_retain||c,r=Object.create(null),i=new _t(function(s,o){if(s instanceof Ct&&i.parent()instanceof Bt)return s;var a;if(s instanceof jt&&((l=s.name).scope===t&&1!=(f=l.definition()).escaped&&!f.assignments&&!f.direct_access&&!f.single_use&&!e.exposed(f)&&!n(f)&&(a=l.fixed_value())===s.value&&a instanceof pn)){o(s,this);var c=new y,u=[];return a.properties.forEach(function(e){u.push(D(jt,s,{name:p(e.key),value:e.value}))}),r[f.id]=c,I.splice(u)}if(s instanceof Vt&&s.expression instanceof zn&&(c=r[s.expression.definition().id])){var l,f=c.get(Fe(s.property));return(l=D(zn,s,{name:f.name,scope:s.expression.scope,thedef:f})).reference({}),l}function p(e){var n=D(l.CTOR,l,{name:t.make_var_name(l.name+"_"+e),scope:t}),r=t.def_variable(n);return c.set(e,r),t.enclosed.push(r),n}});return t.transform(i)}),function(t){function e(e,t,n){var r=e.length;if(!r)return null;for(var i=[],s=!1,o=0;o<r;o++){var a=e[o].drop_side_effect_free(t,n);s|=a!==e[o],a&&(i.push(a),n=!1)}return s?i.length?i:null:e}t(q,l),t(Xn,p),t(qn,p),t(Ut,function(t,n){if(!this.is_expr_pure(t)){if(this.expression.is_call_pure(t)){var r=this.args.slice();return r.unshift(this.expression.expression),(r=e(r,t,n))&&F(this,r)}if(o(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,t),i}return this}this.pure&&t.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var s=e(this.args,t,n);return s&&F(this,s)}),t(Ee,p),t(we,p),t(ke,p),t(wn,p),t(Jt,function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(P(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}var i=this.left.drop_side_effect_free(e,t);return i?F(this,[i,n]):this.right.drop_side_effect_free(e,t)}),t(Qt,function(e){var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof Vt&&t.expression.is_constant())return this;for(this.write_only=!0;t instanceof Vt;)t=t.expression;return t.is_constant_expression(e.find_parent(me))?this.right.drop_side_effect_free(e):this}),t(Yt,function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?D(Jt,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return D(Jt,this,{operator:"&&",left:this.condition,right:t});var r=this.clone();return r.consequent=t,r.alternative=n,r}),t(Wt,function(e,t){if(B(this.operator))return this.write_only=!this.expression.has_side_effects(e),this;if("typeof"==this.operator&&this.expression instanceof zn)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&Kn(n)?n===this.expression&&"!"==this.operator?this:n.negate(e,t):n}),t(zn,function(e){return this.is_declared(e)?null:this}),t(pn,function(t,n){var r=e(this.properties,t,n);return r&&F(this,r)}),t(hn,function(e,t){return this.value.drop_side_effect_free(e,t)}),t(nn,function(t,n){var r=e(this.elements,t,n);return r&&F(this,r)}),t(Gt,function(e,t){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)}),t(qt,function(e,t){if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var r=this.property.drop_side_effect_free(e);return r?F(this,[n,r]):n}),t(Ht,function(e){var t=this.tail_node(),n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),F(this,r)}),t(ye,function(e,t){return this.expression.drop_side_effect_free(e,t)}),t(Ne,p),t(Oe,function(t){var n=e(this.segments,t,E);return n&&F(this,n)})}(function(e,t){e.DEFMETHOD("drop_side_effect_free",t)}),n(J,function(e,t){if(t.option("side_effects")){var n=e.body,r=n.drop_side_effect_free(t,!0);if(!r)return t.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),D(re,e);if(r!==n)return D(J,e,{body:r})}return e}),n(le,function(e,t){return t.option("loops")?D(fe,e,e).optimize(t):e}),n(ue,function(e,t){if(!t.option("loops"))return e;var n=e.condition.tail_node().evaluate(t);if(!(n instanceof q)){if(n)return D(fe,e,{body:D(ne,e.body,{body:[e.body,D(J,e.condition,{body:e.condition})]})}).optimize(t);if(!Ze(e,t.parent()))return D(ne,e.body,{body:[e.body,D(J,e.condition,{body:e.condition})]}).optimize(t)}return e}),n(fe,function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof q))if(n)e.condition=null;else if(!t.option("dead_code")){var r=e.condition;e.condition=C(n,e.condition),e.condition=Pe(e.condition.transform(t),r)}if(t.option("dead_code")&&(n instanceof q&&(n=e.condition.tail_node().evaluate(t)),!n)){var i=[];return _e(t,e.body,i),e.init instanceof W?i.push(e.init):e.init&&i.push(D(J,e.init,{body:e.init})),i.push(D(J,e.condition,{body:e.condition})),D(ne,e,{body:i}).optimize(t)}}return function n(e,t){var r=e.body instanceof ne?e.body.body[0]:e.body;if(t.option("dead_code")&&o(r)){var i=[];return e.init instanceof W?i.push(e.init):e.init&&i.push(D(J,e.init,{body:e.init})),e.condition&&i.push(D(J,e.condition,{body:e.condition})),_e(t,e.body,i),D(ne,e,{body:i})}return r instanceof lt&&(o(r.body)?(e.condition?e.condition=D(Jt,e.condition,{left:e.condition,operator:"&&",right:r.condition.negate(t)}):e.condition=r.condition.negate(t),a(r.alternative)):o(r.alternative)&&(e.condition?e.condition=D(Jt,e.condition,{left:e.condition,operator:"&&",right:r.condition}):e.condition=r.condition,a(r.body))),e;function o(e){return e instanceof Xe&&t.loopcontrol_target(e)===t.self()}function a(r){r=L(r),e.body instanceof ne?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=D(ne,e.body,{body:r}).transform(t),e=n(e,t)}}(e,t)}),n(lt,function(e,t){if(sn(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!(t.option("dead_code")||n instanceof q)){var r=e.condition;e.condition=C(n,r),e.condition=Pe(e.condition.transform(t),r)}if(t.option("dead_code")){if(n instanceof q&&(n=e.condition.tail_node().evaluate(t)),!n){t.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var i=[];return _e(t,e.body,i),i.push(D(J,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),D(ne,e,{body:i}).optimize(t)}if(!(n instanceof q)){t.warn("Condition always true [{file}:{line},{col}]",e.condition.start);i=[];return e.alternative&&_e(t,e.alternative,i),i.push(D(J,e.condition,{body:e.condition})),i.push(e.body),D(ne,e,{body:i}).optimize(t)}}var s=e.condition.negate(t),o=e.condition.print_to_string().length,a=s.print_to_string().length,c=a<o;if(e.alternative&&c){c=!1,e.condition=s;var u=e.body;e.body=e.alternative||D(re,e),e.alternative=u}if(sn(e.body)&&sn(e.alternative))return D(J,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof J&&e.alternative instanceof J)return D(J,e,{body:D(Yt,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(sn(e.alternative)&&e.body instanceof J)return o===a&&!c&&e.condition instanceof Jt&&"||"==e.condition.operator&&(c=!0),c?D(J,e,{body:D(Jt,e,{operator:"||",left:s,right:e.body.body})}).optimize(t):D(J,e,{body:D(Jt,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof re&&e.alternative instanceof J)return D(J,e,{body:D(Jt,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof ze&&e.alternative instanceof ze&&e.body.TYPE==e.alternative.TYPE)return D(e.body.CTOR,e,{value:D(Yt,e,{condition:e.condition,consequent:e.body.value||D(rr,e.body),alternative:e.alternative.value||D(rr,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof lt&&!e.body.alternative&&!e.alternative&&(e=D(lt,e,{condition:D(Jt,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),We(e.body)&&e.alternative){var l=e.alternative;return e.alternative=null,D(ne,e,{body:[e,l]}).optimize(t)}if(We(e.alternative)){i=e.body;return e.body=e.alternative,e.condition=c?s:e.condition.negate(t),e.alternative=null,D(ne,e,{body:[e,i]}).optimize(t)}return e}),n(dt,function(e,t){if(!t.option("switches"))return e;var n,r=e.expression.evaluate(t);if(!(r instanceof q)){var i=e.expression;e.expression=C(r,i),e.expression=Pe(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;r instanceof q&&(r=e.expression.tail_node().evaluate(t));for(var s,o,a=[],c=[],u=0,l=e.body.length;u<l&&!o;u++){if((n=e.body[u])instanceof mt)s?_(n,c[c.length-1]):s=n;else if(!(r instanceof q)){if(!((g=n.expression.evaluate(t))instanceof q)&&g!==r){_(n,c[c.length-1]);continue}if(g instanceof q&&(g=n.expression.tail_node().evaluate(t)),g===r&&(o=n,s)){var f=c.indexOf(s);c.splice(f,1),_(s,c[f-1]),s=null}}if(We(n)){var p=c[c.length-1];We(p)&&p.body.length==n.body.length&&D(ne,p,p).equivalent_to(D(ne,n,n))&&(p.body=[])}c.push(n)}for(;u<l;)_(e.body[u++],c[c.length-1]);for(c.length>0&&(c[0].body=a.concat(c[0].body)),e.body=c;n=c[c.length-1];){var d=n.body[n.body.length-1];if(d instanceof Xe&&t.loopcontrol_target(d)===e&&n.body.pop(),n.body.length||n instanceof vt&&(s||n.expression.has_side_effects(t)))break;c.pop()===s&&(s=null)}if(0==c.length)return D(ne,e,{body:a.concat(D(J,e.expression,{body:e.expression}))}).optimize(t);if(1==c.length&&(c[0]===o||c[0]===s)){var h=!1,m=new Te(function(t){if(h||t instanceof be||t instanceof J)return!0;t instanceof Xe&&m.loopcontrol_target(t)===e&&(h=!0)});if(e.walk(m),!h){var g,y=c[0].body.slice();return(g=c[0].expression)&&y.unshift(D(J,g,{body:g})),y.unshift(D(J,e.expression,{body:e.expression})),D(ne,e,{body:y}).optimize(t)}}return e;function _(e,n){n&&!We(n)?n.body=n.body.concat(e.body):_e(t,e,a)}}),n(bt,function(e,t){if(De(e.body,t),e.bcatch&&e.bfinally&&_(e.bfinally.body,sn)&&(e.bfinally=null),t.option("dead_code")&&_(e.body,sn)){var n=[];return e.bcatch&&(_e(t,e.bcatch,n),n.forEach(function(e){e instanceof Ct&&e.definitions.forEach(function(e){var t=e.name.definition().redefined();t&&(e.name=e.name.clone(),e.name.thedef=t)})})),e.bfinally&&(n=n.concat(e.bfinally.body)),D(ne,e,{body:n}).optimize(t)}return e}),Ct.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){t.name instanceof Dn?(t.value=null,e.push(t)):t.name.walk(new Te(function(n){n instanceof Dn&&e.push(D(jt,t,{name:n,value:null}))}))}),this.definitions=e}),Ct.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce(function(e,n){if(!n.value||n.name instanceof Ce){if(n.value){var r=D(jt,n,{name:n.name,value:n.value}),i=D(Ft,n,{definitions:[r]});e.push(i)}}else{var s=D(zn,n.name,n.name);e.push(D(Qt,n,{operator:"=",left:s,right:n.value})),t&&(s.definition().fixed=!1)}return(n=n.name.definition()).eliminated++,n.replaced--,e},[]);return 0==n.length?null:F(this,n)}),n(Ct,function(e,t){return 0==e.definitions.length?D(re,e):e}),n(Lt,function(e,t){return e}),n(Ut,function(e,t){var n=e.expression,r=n,i=_(e.args,function(e){return!(e instanceof ye)});t.option("reduce_vars")&&r instanceof zn&&Qe(r=r.fixed_value(),t)&&(r=n);var s=r instanceof be;if(t.option("unused")&&i&&s&&!r.uses_arguments&&!r.pinned()){for(var a=0,c=0,u=0,l=e.args.length;u<l;u++){if(r.argnames[u]instanceof ye){if(r.argnames[u].expression.__unused)for(;u<l;){(v=e.args[u++].drop_side_effect_free(t))&&(e.args[a++]=v)}else for(;u<l;)e.args[a++]=e.args[u++];c=a;break}var f=u>=r.argnames.length;if(f||r.argnames[u].__unused){if(v=e.args[u].drop_side_effect_free(t))e.args[a++]=v;else if(!f){e.args[a++]=D(Zn,e.args[u],{value:0});continue}}else e.args[a++]=e.args[u];c=a}e.args.length=c}if(t.option("unsafe"))if(ie(n))switch(n.name){case"Array":if(1!=e.args.length)return D(nn,e,{elements:e.args}).optimize(t);break;case"Object":if(0==e.args.length)return D(pn,e,{properties:[]});break;case"String":if(0==e.args.length)return D(Jn,e,{value:""});if(e.args.length<=1)return D(Jt,e,{left:e.args[0],operator:"+",right:D(Jn,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return D(Zn,e,{value:0});if(1==e.args.length)return D(Kt,e,{expression:e.args[0],operator:"+"}).optimize(t);case"Boolean":if(0==e.args.length)return D(ar,e);if(1==e.args.length)return D(Kt,e,{expression:D(Kt,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var p=[];if(_(e.args,function(e){var n=e.evaluate(t);return p.unshift(n),e!==n}))try{return Re(t,e,D($n,e,{value:RegExp.apply(RegExp,p)}))}catch(n){t.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(n instanceof Gt)switch(n.property){case"toString":if(0==e.args.length&&!n.expression.may_throw_on_access(t))return D(Jt,e,{left:D(Jn,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof nn)e:{var d;if(!(e.args.length>0&&(d=e.args[0].evaluate(t))===e.args[0])){var h,m=[],g=[];for(u=0,l=n.expression.elements.length;u<l;u++){var y=n.expression.elements[u];if(y instanceof ye)break e;(L=y.evaluate(t))!==y?g.push(L):(g.length>0&&(m.push(D(Jn,e,{value:g.join(d)})),g.length=0),m.push(y))}return g.length>0&&m.push(D(Jn,e,{value:g.join(d)})),0==m.length?D(Jn,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:D(Jt,m[0],{operator:"+",left:D(Jn,e,{value:""}),right:m[0]}):""==d?(h=m[0].is_string(t)||m[1].is_string(t)?m.shift():D(Jn,e,{value:""}),m.reduce(function(e,t){return D(Jt,t,{operator:"+",left:e,right:t})},h).optimize(t)):((v=e.clone()).expression=v.expression.clone(),v.expression.expression=v.expression.expression.clone(),v.expression.expression.elements=m,Re(t,e,v));var v}}break;case"charAt":if(n.expression.is_string(t)){var b=e.args[0],E=b?b.evaluate(t):0;if(E!==b)return D(qt,n,{expression:n.expression,property:C(0|E,b||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof nn)return(P=e.args[1].elements.slice()).unshift(e.args[0]),D(Ut,e,{expression:D(Gt,n,{expression:n.expression,property:"call"}),args:P}).optimize(t);break;case"call":var w=n.expression;if(w instanceof zn&&(w=w.fixed_value()),w instanceof be&&!w.contains_this())return(e.args.length?F(this,[e.args[0],D(Ut,e,{expression:n.expression,args:e.args.slice(1)})]):D(Ut,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&ie(n)&&"Function"==n.name){if(0==e.args.length)return D(we,e,{argnames:[],body:[]}).optimize(t);if(_(e.args,function(e){return e instanceof Jn}))try{var S=gt(T="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),k={ie8:t.option("ie8")};S.figure_out_scope(k);var x,A=new kt(t.options);(S=S.transform(A)).figure_out_scope(k),Lr.reset(),S.compute_char_frequency(k),S.mangle_names(k),S.walk(new Te(function(e){return!!x||(o(e)?(x=e,!0):void 0)})),x.body instanceof q&&(x.body=[D(Ve,x.body,{value:x.body})]);var T=xt();return ne.prototype._codegen.call(x,x,T),e.args=[D(Jn,e,{value:x.argnames.map(function(e){return e.print_to_string()}).join(",")}),D(Jn,e.args[e.args.length-1],{value:T.get().replace(/^\{|\}$/g,"")})],e}catch(n){if(!(n instanceof st))throw n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}var M=s&&r.body;M instanceof q?M=D(Ve,M,{value:M}):M&&(M=M[0]);var O=s&&!r.is_generator&&!r.async,I=t.option("inline")&&!e.is_expr_pure(t);if(I&&M instanceof Ve&&O&&(!(L=M.value)||L.is_constant_expression())){L=L?L.clone(!0):D(rr,e);var P=e.args.concat(L);return F(e,P).optimize(t)}if(O){var N,L,B,j,U=-1;if(I&&i&&!r.uses_arguments&&!r.pinned()&&!(t.parent()instanceof bn)&&!(r.name&&r instanceof we)&&(!(t.find_parent(be)instanceof ke)||0==r.argnames.length&&(r.body instanceof q||1==r.body.length))&&(L=function(e){var n=r.body instanceof q?[r.body]:r.body,i=n.length;if(t.option("inline")<3)return 1==i&&Y(e);e=null;for(var s=0;s<i;s++){var o=n[s];if(o instanceof Ft){if(e&&!_(o.definitions,function(e){return!e.value}))return!1}else{if(e)return!1;e=o}}return Y(e)}(M))&&(n===r||t.option("unused")&&1==(N=n.definition()).references.length&&!Ge(t,N)&&r.is_constant_expression(n.scope))&&!e.pure&&!r.contains_this()&&function(){var e=Object.create(null);do{if(!(B=t.parent(++U)).is_block_scope()||t.parent(U-1)instanceof me||B.block_scope&&B.block_scope.variables.each(function(t){e[t.name]=!0}),B instanceof Et)B.argname&&(e[B.argname.name]=!0);else if(B instanceof ae)j=[];else if(B instanceof zn&&B.fixed_value()instanceof me)return!1}while(!(B instanceof me)||B instanceof ke);var n=!(B instanceof ge)||t.toplevel.vars,i=t.option("inline");return!(!function(e,t){for(var n=r.body.length,i=0;i<n;i++){var s=r.body[i];if(s instanceof Ft){if(!t)return!1;for(var o=s.definitions.length;--o>=0;){var a=s.definitions[o].name;if(a instanceof Ce||e[a.name]||R(a.name)||B.var_names()[a.name])return!1;j&&j.push(a.definition())}}}return!0}(e,i>=3&&n)||!function(e,t){for(var n=0,i=r.argnames.length;n<i;n++){var s=r.argnames[n];if(s instanceof Zt){if(s.left.__unused)continue;return!1}if(s instanceof Ce)return!1;if(s instanceof ye){if(s.expression.__unused)continue;return!1}if(!s.__unused){if(!t||e[s.name]||R(s.name)||B.var_names()[s.name])return!1;j&&j.push(s.definition())}}return!0}(e,i>=2&&n)||j&&0!=j.length&&et(r,j))}()&&!(B instanceof bn))return r._squeezed=!0,F(e,function(){var n=[],i=[];(function(t,n){for(var i=r.argnames.length,s=e.args.length;--s>=i;)n.push(e.args[s]);for(s=i;--s>=0;){var o=r.argnames[s],a=e.args[s];if(o.__unused||!o.name||B.var_names()[o.name])a&&n.push(a);else{var c=D(xn,o,o);o.definition().orig.push(c),!a&&j&&(a=D(rr,e)),Z(t,n,c,a)}}t.reverse(),n.reverse()})(n,i),function(e,t){for(var n=t.length,i=0,s=r.body.length;i<s;i++){var o=r.body[i];if(o instanceof Ft)for(var a=0,c=o.definitions.length;a<c;a++){var u=o.definitions[a],l=u.name;if(Z(e,t,l,u.value),j&&_(r.argnames,function(e){return e.name!=l.name})){var f=r.variables.get(l.name),p=D(zn,l,l);f.references.push(p),t.splice(n++,0,D(Qt,u,{operator:"=",left:p,right:D(rr,l)}))}}}}(n,i),i.push(L),n.length&&(u=B.body.indexOf(t.parent(U-1))+1,B.body.splice(u,0,D(Ft,r,{definitions:n})));return i}()).optimize(t);if(t.option("side_effects")&&!(r.body instanceof q)&&_(r.body,sn)){P=e.args.concat(D(rr,e));return F(e,P).optimize(t)}}if(t.option("negate_iife")&&t.parent()instanceof J&&Kn(e))return e.negate(t,!0);var z=e.evaluate(t);return z!==e?(z=C(z,e).optimize(t),Re(t,z,e)):e;function Y(t){return t?t instanceof Ve?t.value?t.value.clone(!0):D(rr,e):t instanceof J?D(Kt,t,{operator:"void",expression:t.body.clone(!0)}):void 0:D(rr,e)}function Z(t,n,r,i){var s=r.definition();B.variables.set(r.name,s),B.enclosed.push(s),B.var_names()[r.name]||(B.var_names()[r.name]=!0,t.push(D(jt,r,{name:r,value:null})));var o=D(zn,r,r);s.references.push(o),i&&n.push(D(Qt,e,{operator:"=",left:o,right:i.clone()}))}}),n(zt,function(e,t){if(t.option("unsafe")){var n=e.expression;if(ie(n))switch(n.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return D(Ut,e,e).transform(t)}}return e}),n(Ht,function(e,t){if(!t.option("side_effects"))return e;var n,r,i=[];n=E(t),r=e.expressions.length-1,e.expressions.forEach(function(e,s){s<r&&(e=e.drop_side_effect_free(t,n)),e&&(S(i,e),n=!1)});var s=i.length-1;return function(){for(;s>0&&Se(i[s],t);)s--;s<i.length-1&&(i[s]=D(Kt,e,{operator:"void",expression:i[s]}),i.length=s+1)}(),0==s?((e=M(t.parent(),t.self(),i[0]))instanceof Ht||(e=e.optimize(t)),e):(e.expressions=i,e)}),Wt.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ht){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),F(this,t).optimize(e)}return this}),n(Xt,function(e,t){return e.lift_sequences(t)}),n(Kt,function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof zn||n instanceof Vt||ve(n)))return n instanceof Ht?((n=n.expressions.slice()).push(D(cr,e)),F(e,n).optimize(t)):F(e,[n,D(cr,e)]).optimize(t);var r=e.lift_sequences(t);if(r!==e)return r;if(t.option("side_effects")&&"void"==e.operator)return(n=n.drop_side_effect_free(t))?(e.expression=n,e):D(rr,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(n instanceof Kt&&"!"==n.operator)return n.expression;n instanceof Jt&&(e=Re(t,e,n.negate(t,E(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof zn?D(cr,e):F(e,[n,D(cr,e)])).optimize(t)}if("-"==e.operator&&n instanceof sr&&(n=n.transform(t)),n instanceof Jt&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return D(Jt,e,{operator:n.operator,left:D(Kt,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof Zn||n instanceof sr)){var i=e.evaluate(t);if(i!==e)return Re(t,i=C(i,e).optimize(t),e)}return e}),Jt.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ht){var t=this.left.expressions.slice();return(n=this.clone()).left=t.pop(),t.push(n),F(this,t).optimize(e)}if(this.right instanceof Ht&&!this.left.has_side_effects(e)){for(var n,r="="==this.operator&&this.left instanceof zn,i=(t=this.right.expressions).length-1,s=0;s<i&&(r||!t[s].has_side_effects(e));s++);if(s==i)return t=t.slice(),(n=this.clone()).right=t.pop(),t.push(n),F(this,t).optimize(e);if(s>0)return(n=this.clone()).right=F(this.right,t.slice(s)),(t=t.slice(0,s)).push(n),F(this,t).optimize(e)}}return this});var ee=g("== === != !== * & | ^");function Ge(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof be){var i=n.name;if(i&&i.definition()===t)break}return n}function nt(e,t){return e instanceof zn||e.TYPE===t.TYPE}function et(e,n){var r=!1,i=new Te(function(e){return!!r||(e instanceof zn&&t(e.definition(),n)?r=!0:void 0)}),s=new Te(function(t){if(r)return!0;if(t instanceof me&&t!==e){var n=s.parent();if(n instanceof Ut&&n.expression===t)return;return t.walk(i),!0}});return e.walk(s),r}n(Jt,function(e,n){function t(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(n)&&!e.right.has_side_effects(n)}function i(n){if(t()){n&&(e.operator=n);var r=e.left;e.left=e.right,e.right=r}}if(ee(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Jt&&Ir[e.left.operator]>=Ir[e.operator]||i()),e=e.lift_sequences(n),n.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(n)&&e.right.is_string(n)||e.left.is_number(n)&&e.right.is_number(n)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&Se(e.left,n))e.left=D(tr,e.left);else if(n.option("typeofs")&&e.left instanceof Jn&&"undefined"==e.left.value&&e.right instanceof Kt&&"typeof"==e.right.operator){var s=e.right.expression;(s instanceof zn?!s.is_declared(n):s instanceof Vt&&n.option("ie8"))||(e.right=s,e.left=D(rr,e.left).optimize(n),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof zn&&e.right instanceof zn&&e.left.definition()===e.right.definition()&&((c=e.left.fixed_value())instanceof nn||c instanceof be||c instanceof pn||c instanceof bn))return D("="==e.operator[0]?cr:ar,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof Jt&&o.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Jt&&o.operator==e.right.operator&&(Se(o.left,n)&&e.right.left instanceof tr||o.left instanceof tr&&Se(e.right.left,n))&&!o.right.has_side_effects(n)&&o.right.equivalent_to(e.right.right)){var a=D(Jt,e,{operator:o.operator.slice(0,-1),left:D(tr,e),right:o.right});return o!==e.left&&(a=D(Jt,e,{operator:e.operator,left:e.left.left,right:a})),a}}var c;if("+"==e.operator&&n.in_boolean_context()){var u=e.left.evaluate(n),l=e.right.evaluate(n);if(u&&"string"==typeof u)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),F(e,[e.right,D(cr,e)]).optimize(n);if(l&&"string"==typeof l)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),F(e,[e.left,D(cr,e)]).optimize(n)}if(n.option("comparisons")&&e.is_boolean()){if(!(n.parent()instanceof Jt)||n.parent()instanceof Qt){var f=D(Kt,e,{operator:"!",expression:e.negate(n,E(n))});e=Re(n,e,f)}if(n.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof Jn&&""==e.right.getValue()&&e.left.is_string(n))return e.left;if(e.left instanceof Jn&&""==e.left.getValue()&&e.right.is_string(n))return e.right;if(e.left instanceof Jt&&"+"==e.left.operator&&e.left.left instanceof Jn&&""==e.left.left.getValue()&&e.right.is_string(n))return e.left=e.left.right,e.transform(n)}if(n.option("evaluate")){switch(e.operator){case"&&":if(!(u=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of && always false [{file}:{line},{col}]",e.start),M(n.parent(),n.self(),e.left).optimize(n);if(!(u instanceof q))return n.warn("Condition left of && always true [{file}:{line},{col}]",e.start),F(e,[e.left,e.right]).optimize(n);if(l=e.right.evaluate(n)){if(!(l instanceof q)){if("&&"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(n)}}else{if(n.in_boolean_context())return n.warn("Boolean && always false [{file}:{line},{col}]",e.start),F(e,[e.left,D(ar,e)]).optimize(n);e.falsy=!0}if("||"==e.left.operator)if(!(d=e.left.right.evaluate(n)))return D(Yt,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(n);break;case"||":var p,d;if(!(u=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of || always false [{file}:{line},{col}]",e.start),F(e,[e.left,e.right]).optimize(n);if(!(u instanceof q))return n.warn("Condition left of || always true [{file}:{line},{col}]",e.start),M(n.parent(),n.self(),e.left).optimize(n);if(l=e.right.evaluate(n)){if(!(l instanceof q)){if(n.in_boolean_context())return n.warn("Boolean || always true [{file}:{line},{col}]",e.start),F(e,[e.left,D(cr,e)]).optimize(n);e.truthy=!0}}else if("||"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(n);if("&&"==e.left.operator)if((d=e.left.right.evaluate(n))&&!(d instanceof q))return D(Yt,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(n)}var h=!0;switch(e.operator){case"+":if(e.left instanceof Xn&&e.right instanceof Jt&&"+"==e.right.operator&&e.right.left instanceof Xn&&e.right.is_string(n)&&(e=D(Jt,e,{operator:"+",left:D(Jn,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof Xn&&e.left instanceof Jt&&"+"==e.left.operator&&e.left.right instanceof Xn&&e.left.is_string(n)&&(e=D(Jt,e,{operator:"+",left:e.left.left,right:D(Jn,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof Jt&&"+"==e.left.operator&&e.left.is_string(n)&&e.left.right instanceof Xn&&e.right instanceof Jt&&"+"==e.right.operator&&e.right.left instanceof Xn&&e.right.is_string(n)&&(e=D(Jt,e,{operator:"+",left:D(Jt,e.left,{operator:"+",left:e.left.left,right:D(Jn,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Kt&&"-"==e.right.operator&&e.left.is_number(n)){e=D(Jt,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Kt&&"-"==e.left.operator&&t()&&e.right.is_number(n)){e=D(Jt,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":h=n.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(n)&&e.right.is_number(n)&&t()&&!(e.left instanceof Jt&&e.left.operator!=e.operator&&Ir[e.left.operator]>=Ir[e.operator])){var m=D(Jt,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof Xn&&!(e.left instanceof Xn)?Re(n,m,e):Re(n,e,m)}h&&e.is_number(n)&&(e.right instanceof Jt&&e.right.operator==e.operator&&(e=D(Jt,e,{operator:e.operator,left:D(Jt,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof Xn&&e.left instanceof Jt&&e.left.operator==e.operator&&(e.left.left instanceof Xn?e=D(Jt,e,{operator:e.operator,left:D(Jt,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof Xn&&(e=D(Jt,e,{operator:e.operator,left:D(Jt,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Jt&&e.left.operator==e.operator&&e.left.right instanceof Xn&&e.right instanceof Jt&&e.right.operator==e.operator&&e.right.left instanceof Xn&&(e=D(Jt,e,{operator:e.operator,left:D(Jt,e.left,{operator:e.operator,left:D(Jt,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Jt&&e.right.operator==e.operator&&(P(e.operator)||"+"==e.operator&&(e.right.left.is_string(n)||e.left.is_string(n)&&e.right.right.is_string(n))))return e.left=D(Jt,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(n);var g=e.evaluate(n);return g!==e?(g=C(g,e).optimize(n),Re(n,g,e)):e}),n(Hn,function(e,t){return e}),n(zn,function(e,t){if(!t.option("ie8")&&ie(e)&&(!e.scope.uses_with||!t.find_parent(he)))switch(e.name){case"undefined":return D(rr,e).optimize(t);case"NaN":return D(nr,e).optimize(t);case"Infinity":return D(sr,e).optimize(t)}var n=t.parent();if(t.option("reduce_vars")&&He(e,n)!==e){var r=e.definition();if(t.top_retain&&r.global&&t.top_retain(r))return r.fixed=!1,r.should_replace=!1,r.single_use=!1,e;var i=e.fixed_value(),s=r.single_use&&!(n instanceof Ut&&n.is_expr_pure(t));if(s&&(i instanceof be||i instanceof bn))if(Qe(i,t))s=!1;else if(r.scope!==e.scope&&(!t.option("reduce_funcs")&&i instanceof be||1==r.escaped||i.inlined||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof W)return!1;if(t instanceof nn||t instanceof mn||t instanceof pn)return!0}return!1}(t)))s=!1;else if(Ge(t,r))s=!1;else if((r.scope!==e.scope||r.orig[0]instanceof Mn)&&"f"==(s=i.is_constant_expression(e.scope))){var a=e.scope;do{(a instanceof xe||o(a))&&(a.inlined=!0)}while(a=a.parent_scope)}if(s&&i){var c;if(i instanceof En&&(i=D(wn,i,i)),i instanceof xe&&(i._squeezed=!0,i=D(we,i,i)),r.recursive_refs>0&&i.name instanceof On){var u=(c=i.clone(!0)).name.definition(),l=c.variables.get(c.name.name),f=l&&l.orig[0];f instanceof Rn||((f=D(Rn,c.name,c.name)).scope=c,c.name=f,l=c.def_function(f)),c.walk(new Te(function(e){e instanceof zn&&e.definition()===u&&(e.thedef=l,l.references.push(e))}))}else(c=i.optimize(t))===i&&(c=i.clone(!0));return c}if(i&&void 0===r.should_replace){var p;if(i instanceof qn)r.orig[0]instanceof Mn||!_(r.references,function(e){return r.scope===e.scope})||(p=i);else{var d=i.evaluate(t);d===i||!t.option("unsafe_regexp")&&d instanceof RegExp||(p=C(d,i))}if(p){var h,m=p.optimize(t).print_to_string().length;!function(e){var t;return e.walk(new Te(function(e){if(e instanceof zn&&(t=!0),t)return!0})),t}(i)?(m=Math.min(m,i.print_to_string().length),h=function(){var e=Pe(p.optimize(t),i);return e===p||e===i?e.clone(!0):e}):h=function(){var e=p.optimize(t);return e===p?e.clone(!0):e};var g=r.name.length,y=0;t.option("unused")&&!t.exposed(r)&&(y=(g+2+m)/(r.references.length-r.assignments)),r.should_replace=m<=g+y&&h}else r.should_replace=!1}if(r.should_replace)return r.should_replace()}return e}),n(rr,function(e,t){if(t.option("unsafe_undefined")){var n=d(t,"undefined");if(n){var r=D(zn,e,{name:"undefined",scope:n.scope,thedef:n});return r.is_undefined=!0,r}}var i=He(t.self(),t.parent());return i&&nt(i,e)?e:D(Kt,e,{operator:"void",expression:D(Zn,e,{value:0})})}),n(sr,function(e,t){var n=He(t.self(),t.parent());return n&&nt(n,e)?e:!t.option("keep_infinity")||n&&!nt(n,e)||d(t,"Infinity")?D(Jt,e,{operator:"/",left:D(Zn,e,{value:1}),right:D(Zn,e,{value:0})}):e}),n(nr,function(e,t){var n=He(t.self(),t.parent());return n&&!nt(n,e)||d(t,"NaN")?D(Jt,e,{operator:"/",left:D(Zn,e,{value:0}),right:D(Zn,e,{value:0})}):e});var se=["+","-","/","*","%",">>","<<",">>>","|","^","&"],de=["*","|","^","&"];function rt(e,t){return e instanceof zn&&(e=e.fixed_value()),!!e&&(!(e instanceof be||e instanceof bn)||t.parent()instanceof zt||!e.contains_this())}function ot(e,t){return t.in_boolean_context()?Re(t,e,F(e,[e,D(cr,e)]).optimize(t)):e}function at(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof Xn))return e;if(e.key instanceof Jn||e.key instanceof Zn){if("constructor"==e.key.value&&t.parent()instanceof bn)return e;e.key=e instanceof mn?e.key.value:D(In,e.key,{name:e.key.value})}return e}n(Qt,function(e,n){var r;if(n.option("dead_code")&&e.left instanceof zn&&(r=e.left.definition()).scope===n.find_parent(be)){var i,s=0,o=e;do{if(i=o,(o=n.parent(s++))instanceof ze){if(u(s,o))break;if(et(r.scope,[r]))break;return"="==e.operator?e.right:(r.fixed=!1,D(Jt,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(n))}}while(o instanceof Jt&&o.right===i||o instanceof Ht&&o.tail_node()===i)}return"="==(e=e.lift_sequences(n)).operator&&e.left instanceof zn&&e.right instanceof Jt&&(e.right.left instanceof zn&&e.right.left.name==e.left.name&&t(e.right.operator,se)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof zn&&e.right.right.name==e.left.name&&t(e.right.operator,de)&&!e.right.left.has_side_effects(n)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function u(t,r){var i=e.right;e.right=D(tr,i);var s=r.may_throw(n);e.right=i;for(var o,a=e.left.definition().scope;(o=n.parent(t++))!==a;)if(o instanceof bt){if(o.bfinally)return!0;if(s&&o.bcatch)return!0}}}),n(Zt,function(e,t){if(!t.option("evaluate"))return e;var n=e.right.evaluate(t);return void 0===n?e=e.left:n!==e.right&&(n=C(n,e.right),e.right=Pe(n,e.right)),e}),n(Yt,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Ht){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),F(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?(t.warn("Condition always true [{file}:{line},{col}]",e.start),M(t.parent(),t.self(),e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),M(t.parent(),t.self(),e.alternative));var i=r.negate(t,E(t));Re(t,r,i)===i&&(e=D(Yt,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var s,o=e.condition,a=e.consequent,c=e.alternative;if(o instanceof zn&&a instanceof zn&&o.definition()===a.definition())return D(Jt,e,{operator:"||",left:o,right:c});if(a instanceof Qt&&c instanceof Qt&&a.operator==c.operator&&a.left.equivalent_to(c.left)&&(!e.condition.has_side_effects(t)||"="==a.operator&&!a.left.has_side_effects(t)))return D(Qt,e,{operator:a.operator,left:a.left,right:D(Yt,e,{condition:e.condition,consequent:a.right,alternative:c.right})});if(a instanceof Ut&&c.TYPE===a.TYPE&&a.args.length>0&&a.args.length==c.args.length&&a.expression.equivalent_to(c.expression)&&!e.condition.has_side_effects(t)&&!a.expression.has_side_effects(t)&&"number"==typeof(s=function(){for(var e=a.args,t=c.args,n=0,r=e.length;n<r;n++){if(e[n]instanceof ye)return;if(!e[n].equivalent_to(t[n])){if(t[n]instanceof ye)return;for(var i=n+1;i<r;i++){if(e[i]instanceof ye)return;if(!e[i].equivalent_to(t[i]))return}return n}}}())){var u=a.clone();return u.args[s]=D(Yt,e,{condition:e.condition,consequent:a.args[s],alternative:c.args[s]}),u}if(a instanceof Yt&&a.alternative.equivalent_to(c))return D(Yt,e,{condition:D(Jt,e,{left:e.condition,operator:"&&",right:a.condition}),consequent:a.consequent,alternative:c});if(a.equivalent_to(c))return F(e,[e.condition,a]).optimize(t);if(a instanceof Jt&&"||"==a.operator&&a.right.equivalent_to(c))return D(Jt,e,{operator:"||",left:D(Jt,e,{operator:"&&",left:e.condition,right:a.left}),right:c}).optimize(t);var f=t.in_boolean_context();return p(e.consequent)?h(e.alternative)?l(e.condition):D(Jt,e,{operator:"||",left:l(e.condition),right:e.alternative}):h(e.consequent)?p(e.alternative)?l(e.condition.negate(t)):D(Jt,e,{operator:"&&",left:l(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?D(Jt,e,{operator:"||",left:l(e.condition.negate(t)),right:e.consequent}):h(e.alternative)?D(Jt,e,{operator:"&&",left:l(e.condition),right:e.consequent}):e;function l(e){return e.is_boolean()?e:D(Kt,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof cr||f&&e instanceof Xn&&e.getValue()||e instanceof Kt&&"!"==e.operator&&e.expression instanceof Xn&&!e.expression.getValue()}function h(e){return e instanceof ar||f&&e instanceof Xn&&!e.getValue()||e instanceof Kt&&"!"==e.operator&&e.expression instanceof Xn&&e.expression.getValue()}}),n(or,function(e,t){if(t.in_boolean_context())return D(Zn,e,{value:+e.value});var n=t.parent();return t.option("booleans_as_integers")?(n instanceof Jt&&("==="==n.operator||"!=="==n.operator)&&(n.operator=n.operator.replace(/=$/,"")),D(Zn,e,{value:+e.value})):t.option("booleans")?n instanceof Jt&&("=="==n.operator||"!="==n.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:n.operator,value:e.value,file:n.start.file,line:n.start.line,col:n.start.col}),D(Zn,e,{value:+e.value})):D(Kt,e,{operator:"!",expression:D(Zn,e,{value:1-e.value})}):e}),n(qt,function(e,t){var n,r=e.expression,i=e.property;if(t.option("properties")){var s=i.evaluate(t);if(s!==i){if("string"==typeof s)if("undefined"==s)s=void 0;else(E=parseFloat(s)).toString()==s&&(s=E);i=e.property=Pe(i,C(s,i).transform(t));var o=""+s;if(ut(o)&&o.length<=i.print_to_string().length+1)return D(Gt,e,{expression:r,property:o}).optimize(t)}}e:if(t.option("arguments")&&r instanceof zn&&"arguments"==r.name&&1==r.definition().orig.length&&(n=r.scope)instanceof be&&n.uses_arguments&&!(n instanceof ke)&&i instanceof Zn){for(var a=i.getValue(),c=Object.create(null),u=n.argnames,l=0;l<u.length;l++){if(!(u[l]instanceof Mn))break e;var f=u[l].name;if(f in c)break e;c[f]=!0}var p=n.argnames[a];if(p&&t.has_directive("use strict")){var d=p.definition();(!t.option("reduce_vars")||d.assignments||d.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&a<n.argnames.length+5)for(;a>=n.argnames.length;)p=D(Mn,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(p),n.enclosed.push(n.def_variable(p));if(p){var h=D(zn,e,p);return h.reference({}),delete p.__unused,h}}if(He(e,t.parent()))return e;if(s!==i){var m=e.flatten_object(o,t);m&&(r=e.expression=m.expression,i=e.property=m.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof Zn&&r instanceof nn){a=i.getValue();var g=r.elements,y=g[a];e:if(rt(y,t)){for(var v=!0,_=[],b=g.length;--b>a;){(E=g[b].drop_side_effect_free(t))&&(_.unshift(E),v&&E.has_side_effects(t)&&(v=!1))}if(y instanceof ye)break e;for(y=y instanceof ir?D(rr,y):y,v||_.unshift(y);--b>=0;){var E;if((E=g[b])instanceof ye)break e;(E=E.drop_side_effect_free(t))?_.unshift(E):a--}return v?(_.push(y),F(e,_).optimize(t)):D(qt,e,{expression:D(nn,r,{elements:_}),property:D(Zn,i,{value:a})})}}var w=e.evaluate(t);return w!==e?Re(t,w=C(w,e).optimize(t),e):e}),be.DEFMETHOD("contains_this",function(){var e,t=this;return t.walk(new Te(function(n){return!!e||(n instanceof qn?e=!0:n!==t&&n instanceof me&&!(n instanceof ke)||void 0)})),e}),Vt.DEFMETHOD("flatten_object",function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=6,r=this.expression;if(r instanceof pn)for(var i=r.properties,s=i.length;--s>=0;){var o=i[s];if(""+(o instanceof _n?o.key.name:o.key)==e){if(!_(i,function(e){return e instanceof mn||n&&e instanceof _n&&!e.is_generator}))break;if(!rt(o.value,t))break;return D(qt,this,{expression:D(nn,r,{elements:i.map(function(e){var t=e.value;t instanceof Ee&&(t=D(we,t,t));var n=e.key;return n instanceof q&&!(n instanceof In)?F(e,[n,t]):t})}),property:D(Zn,this,{value:s})})}}}}),n(Gt,function(e,t){if("arguments"!=e.property&&"caller"!=e.property||t.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),He(e,t.parent()))return e;if(t.option("unsafe_proto")&&e.expression instanceof Gt&&"prototype"==e.expression.property){var n=e.expression.expression;if(ie(n))switch(n.name){case"Array":e.expression=D(nn,e.expression,{elements:[]});break;case"Function":e.expression=D(we,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=D(Zn,e.expression,{value:0});break;case"Object":e.expression=D(pn,e.expression,{properties:[]});break;case"RegExp":e.expression=D($n,e.expression,{value:/t/});break;case"String":e.expression=D(Jn,e.expression,{value:""})}}var r=e.flatten_object(e.property,t);if(r)return r.optimize(t);var i=e.evaluate(t);return i!==e?Re(t,i=C(i,e).optimize(t),e):e}),n(nn,ot),n(pn,ot),n($n,ot),n(Ve,function(e,t){return e.value&&Se(e.value,t)&&(e.value=null),e}),n(ke,function(e,t){if(e.body instanceof q||(e=Je(e,t)),t.option("arrows")&&1==e.body.length&&e.body[0]instanceof Ve){var n=e.body[0].value;e.body=n||[]}return e}),n(we,function(e,t){if(e=Je(e,t),t.option("unsafe_arrows")&&t.option("ecma")>=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var n=!1;if(e.walk(new Te(function(e){return!!n||(e instanceof qn?(n=!0,!0):void 0)})),!n)return D(ke,e,e).optimize(t)}return e}),n(bn,function(e,t){return e}),n(lr,function(e,t){return e.expression&&!e.is_star&&Se(e.expression,t)&&(e.expression=null),e}),n(Oe,function(e,t){if(!t.option("evaluate")||t.parent()instanceof Me)return e;for(var n=[],r=0;r<e.segments.length;r++){var i=e.segments[r];if(i instanceof q){var s=i.evaluate(t);if(s!==i&&(s+"").length<=i.print_to_string().length+"${}".length){n[n.length-1].value=n[n.length-1].value+s+e.segments[++r].value;continue}}n.push(i)}return e.segments=n,1==n.length?D(Jn,e,n[0]):e}),n(Me,function(e,t){return e}),n(hn,at),n(_n,function(e,t){if(at(e,t),t.option("arrows")&&t.parent()instanceof pn&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof Ve&&e.value.body[0].value&&!e.value.contains_this()){var n=D(ke,e.value,e.value);return n.async=e.async,n.is_generator=e.is_generator,D(mn,e,{key:e.key instanceof In?e.key.name:e.key,value:n,quote:e.quote})}return e}),n(mn,function(e,t){at(e,t);var n=t.option("unsafe_methods");if(n&&t.option("ecma")>=6&&(!(n instanceof RegExp)||n.test(e.key+""))){var r=e.key,i=e.value;if((i instanceof ke&&Array.isArray(i.body)&&!i.contains_this()||i instanceof we)&&!i.name)return D(_n,e,{async:i.async,is_generator:i.is_generator,key:r instanceof q?r:D(In,e,{name:r}),value:D(Ee,i,i),quote:e.quote})}return e}),n(Ce,function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,r=0,i=t.length;n<i;r++){var s=e.parent(r);if(!s)return!1;if(0!==n||"Destructuring"!=s.TYPE){if(!t[n].test(s.TYPE))return!1;n++}}return!0}(t)){for(var n=[],r=0;r<e.names.length;r++){var i=e.names[r];i instanceof mn&&"string"==typeof i.key&&i.value instanceof Dn&&!o(t,i.value.definition())||n.push(i)}n.length!=e.names.length&&(e.names=n)}return e;function o(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}})}(),function(){var e=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof W&&e[n].body instanceof Jn?e[n]=new X({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof W&&e[n].body instanceof Jn||(t=!1);return e},t={Program:function(t){return new ge({start:r(t),end:o(t),body:e(t.body.map(s))})},ArrayPattern:function(e){return new Ce({start:r(e),end:o(e),names:e.elements.map(function(e){return null===e?new ir:s(e)}),is_array:!0})},ObjectPattern:function(e){return new Ce({start:r(e),end:o(e),names:e.properties.map(s),is_array:!1})},AssignmentPattern:function(e){return new Jt({start:r(e),end:o(e),left:s(e.left),operator:"=",right:s(e.right)})},SpreadElement:function(e){return new ye({start:r(e),end:o(e),expression:s(e.argument)})},RestElement:function(e){return new ye({start:r(e),end:o(e),expression:s(e.argument)})},TemplateElement:function(e){return new Ne({start:r(e),end:o(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var t=[],n=0;n<e.quasis.length;n++)t.push(s(e.quasis[n])),e.expressions[n]&&t.push(s(e.expressions[n]));return new Oe({start:r(e),end:o(e),segments:t})},TaggedTemplateExpression:function(e){return new Me({start:r(e),end:o(e),template_string:s(e.quasi),prefix:s(e.tag)})},FunctionDeclaration:function(t){return new xe({start:r(t),end:o(t),name:s(t.id),argnames:t.params.map(s),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})},FunctionExpression:function(t){return new we({start:r(t),end:o(t),name:s(t.id),argnames:t.params.map(s),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})},ArrowFunctionExpression:function(e){return new ke({start:r(e),end:o(e),argnames:e.params.map(s),body:s(e.body),async:e.async})},ExpressionStatement:function(e){return new J({start:r(e),end:o(e),body:s(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new bt({start:r(e),end:o(e),body:s(e.block).body,bcatch:s(t[0]),bfinally:e.finalizer?new Dt(s(e.finalizer)):null})},Property:function(e){var t=e.key,n={start:r(t||e.value),end:o(e.value),key:"Identifier"==t.type?t.name:t.value,value:s(e.value)};return e.computed&&(n.key=s(e.key)),e.method?(n.is_generator=e.value.generator,n.async=e.value.async,e.computed?n.key=s(e.key):n.key=new In({name:n.key}),new _n(n)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(n.key=s(t)),new mn(n)):("string"!=typeof n.key&&"number"!=typeof n.key||(n.key=new In({name:n.key})),n.value=new Ee(n.value),"get"==e.kind?new vn(n):"set"==e.kind?new yn(n):"method"==e.kind?(n.async=e.value.async,n.is_generator=e.value.generator,n.quote=e.computed?'"':null,new _n(n)):void 0)},MethodDefinition:function(e){var t={start:r(e),end:o(e),key:e.computed?s(e.key):new In({name:e.key.name||e.key.value}),value:s(e.value),static:e.static};return"get"==e.kind?new vn(t):"set"==e.kind?new yn(t):(t.is_generator=e.value.generator,t.async=e.value.async,new _n(t))},ArrayExpression:function(e){return new nn({start:r(e),end:o(e),elements:e.elements.map(function(e){return null===e?new ir:s(e)})})},ObjectExpression:function(e){return new pn({start:r(e),end:o(e),properties:e.properties.map(function(e){return"SpreadElement"===e.type?s(e):(e.type="Property",s(e))})})},SequenceExpression:function(e){return new Ht({start:r(e),end:o(e),expressions:e.expressions.map(s)})},MemberExpression:function(e){return new(e.computed?qt:Gt)({start:r(e),end:o(e),property:e.computed?s(e.property):e.property.name,expression:s(e.object)})},SwitchCase:function(e){return new(e.test?vt:mt)({start:r(e),end:o(e),expression:s(e.test),body:e.consequent.map(s)})},VariableDeclaration:function(e){return new("const"===e.kind?Pt:"let"===e.kind?Rt:Ft)({start:r(e),end:o(e),definitions:e.declarations.map(s)})},ImportDeclaration:function(e){var t=null,n=null;return e.specifiers.forEach(function(e){"ImportSpecifier"===e.type?(n||(n=[]),n.push(new Nt({start:r(e),end:o(e),foreign_name:s(e.imported),name:s(e.local)}))):"ImportDefaultSpecifier"===e.type?t=s(e.local):"ImportNamespaceSpecifier"===e.type&&(n||(n=[]),n.push(new Nt({start:r(e),end:o(e),foreign_name:new jn({name:"*"}),name:s(e.local)})))}),new Lt({start:r(e),end:o(e),imported_name:t,imported_names:n,module_name:s(e.source)})},ExportAllDeclaration:function(e){return new Bt({start:r(e),end:o(e),exported_names:[new Nt({name:new Vn({name:"*"}),foreign_name:new Vn({name:"*"})})],module_name:s(e.source)})},ExportNamedDeclaration:function(e){return new Bt({start:r(e),end:o(e),exported_definition:s(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new Nt({foreign_name:s(e.exported),name:s(e.local)})}):null,module_name:s(e.source)})},ExportDefaultDeclaration:function(e){return new Bt({start:r(e),end:o(e),exported_value:s(e.declaration),is_default:!0})},Literal:function(e){var t=e.value,n={start:r(e),end:o(e)};if(null===t)return new tr(n);var i=e.regex;if(i&&i.pattern){n.value=new RegExp(i.pattern,i.flags);var s=n.value.toString();return n.value.raw_source=i.flags?s.substring(0,s.length-i.flags.length)+i.flags:s,new $n(n)}if(i)return n.value=e.regex&&e.raw?e.raw:t,new $n(n);switch(typeof t){case"string":return n.value=t,new Jn(n);case"number":return n.value=t,new Zn(n);case"boolean":return new(t?cr:ar)(n)}},MetaProperty:function(e){if("new"===e.meta.name&&"target"===e.property.name)return new kn({start:r(e),end:o(e)})},Identifier:function(e){var t=n[n.length-2];return new("LabeledStatement"==t.type?Un:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?An:"let"==t.kind?Tn:xn:/Import.*Specifier/.test(t.type)?t.local===e?Bn:jn:"ExportSpecifier"==t.type?t.local===e?Hn:Vn:"FunctionExpression"==t.type?t.id===e?Rn:Mn:"FunctionDeclaration"==t.type?t.id===e?On:Mn:"ArrowFunctionExpression"==t.type?-1!==t.params.indexOf(e)?Mn:zn:"ClassExpression"==t.type?t.id===e?Nn:zn:"Property"==t.type?t.key===e&&t.computed||t.value===e?zn:In:"ClassDeclaration"==t.type?t.id===e?Pn:zn:"MethodDefinition"==t.type?t.computed?zn:In:"CatchClause"==t.type?Ln:"BreakStatement"==t.type||"ContinueStatement"==t.type?Gn:zn)({start:r(e),end:o(e),name:e.name})}};function i(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function r(e){var t=e.loc,n=t&&t.start,r=e.range;return new P({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[0]:e.start,raw:i(e)})}function o(e){var t=e.loc,n=t&&t.end,r=e.range;return new P({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[1]:e.end,raw:i(e)})}function a(e,n,i){var a="function From_Moz_"+e+"(M){\n";a+="return new U2."+n.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var u="function To_Moz_"+e+"(M){\n";u+="return {\ntype: "+JSON.stringify(e),i&&i.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],i=t[3];switch(a+=",\n"+i+": ",u+=",\n"+n+": ",r){case"@":a+="M."+n+".map(from_moz)",u+="M."+i+".map(to_moz)";break;case">":a+="from_moz(M."+n+")",u+="to_moz(M."+i+")";break;case"=":a+="M."+n,u+="M."+i;break;case"%":a+="from_moz(M."+n+").body",u+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),a+="\n})\n}",u+="\n}\n}",a=new Function("U2","my_start_token","my_end_token","from_moz","return("+a+")")(O,r,o,s),u=new Function("to_moz","to_moz_block","to_moz_scope","return("+u+")")(l,h,d),t[e]=a,c(n,u)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Kt:Xt)({start:r(e),end:o(e),operator:e.operator,expression:s(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?En:wn)({start:r(e),end:o(e),name:s(e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},a("EmptyStatement",re),a("BlockStatement",ne,"body@body"),a("IfStatement",lt,"test>condition, consequent>body, alternate>alternative"),a("LabeledStatement",oe,"label>label, body>body"),a("BreakStatement",Xe,"label>label"),a("ContinueStatement",$e,"label>label"),a("WithStatement",he,"object>expression, body>body"),a("SwitchStatement",dt,"discriminant>expression, cases@body"),a("ReturnStatement",Ve,"argument>value"),a("ThrowStatement",qe,"argument>value"),a("WhileStatement",le,"test>condition, body>body"),a("DoWhileStatement",ue,"test>condition, body>body"),a("ForStatement",fe,"init>init, test>condition, update>step, body>body"),a("ForInStatement",pe,"left>init, right>object, body>body"),a("ForOfStatement",de,"left>init, right>object, body>body, await=await"),a("AwaitExpression",ur,"argument>expression"),a("YieldExpression",lr,"argument>expression, delegate=is_star"),a("DebuggerStatement",K),a("VariableDeclarator",jt,"id>name, init>value"),a("CatchClause",Et,"param>argname, body%body"),a("ThisExpression",qn),a("Super",Wn),a("BinaryExpression",Jt,"operator=operator, left>left, right>right"),a("LogicalExpression",Jt,"operator=operator, left>left, right>right"),a("AssignmentExpression",Qt,"operator=operator, left>left, right>right"),a("ConditionalExpression",Yt,"test>condition, consequent>consequent, alternate>alternative"),a("NewExpression",zt,"callee>expression, arguments@args"),a("CallExpression",Ut,"callee>expression, arguments@args"),c(ge,function(e){return d("Program",e)}),c(ye,function(e,t){return{type:p()?"RestElement":"SpreadElement",argument:l(e.expression)}}),c(Me,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),c(Oe,function(e){for(var t=[],n=[],r=0;r<e.segments.length;r++)r%2!=0?n.push(l(e.segments[r])):t.push({type:"TemplateElement",value:{raw:e.segments[r].raw,cooked:e.segments[r].value},tail:r===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:n}}),c(xe,function(e){return{type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:d("BlockStatement",e)}}),c(we,function(e,t){var n=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:n,async:e.async,body:d("BlockStatement",e)}}),c(ke,function(e){var t=e.body instanceof Array?{type:"BlockStatement",body:e.body.map(l)}:l(e.body);return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:t}}),c(Ce,function(e){return e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)}}),c(X,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),c(J,function(e){return{type:"ExpressionStatement",expression:l(e.body)}}),c(ht,function(e){return{type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}}),c(bt,function(e){return{type:"TryStatement",block:h(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}}),c(Et,function(e){return{type:"CatchClause",param:l(e.argname),guard:null,body:h(e)}}),c(Ct,function(e){return{type:"VariableDeclaration",kind:e instanceof Pt?"const":e instanceof Rt?"let":"var",declarations:e.definitions.map(l)}}),c(Bt,function(e){return e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map(function(e){return{type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}}),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)}}),c(Lt,function(e){var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach(function(e){t.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})}),{type:"ImportDeclaration",specifiers:t,source:l(e.module_name)}}),c(Ht,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(l)}}),c(Vt,function(e){var t=e instanceof qt;return{type:"MemberExpression",object:l(e.expression),computed:t,property:t?l(e.property):{type:"Identifier",name:e.property}}}),c(Wt,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Kt,argument:l(e.expression)}}),c(Jt,function(e){return"="==e.operator&&p()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)}}),c(nn,function(e){return{type:"ArrayExpression",elements:e.elements.map(l)}}),c(pn,function(e){return{type:"ObjectExpression",properties:e.properties.map(l)}}),c(hn,function(e,t){var n,r=e.key instanceof q?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(r={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(r={type:"Identifier",name:e.key});var i="string"==typeof e.key||"number"==typeof e.key,s=!i&&(!(e.key instanceof Sn)||e.key instanceof zn);return e instanceof mn?(n="init",s=!i):e instanceof vn?n="get":e instanceof yn&&(n="set"),t instanceof bn?{type:"MethodDefinition",computed:s,kind:n,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:s,kind:n,key:r,value:l(e.value)}}),c(_n,function(e,t){return t instanceof pn?{type:"Property",computed:!(e.key instanceof Sn)||e.key instanceof zn,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)}:{type:"MethodDefinition",computed:!(e.key instanceof Sn)||e.key instanceof zn,kind:"constructor"===e.key?"constructor":"method",static:e.static,key:l(e.key),value:l(e.value)}}),c(bn,function(e){return{type:e instanceof wn?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}}),c(kn,function(e){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}}),c(Sn,function(e,t){if(e instanceof In&&t.quote)return{type:"Literal",value:e.name};var n=e.definition();return{type:"Identifier",name:n?n.mangled_name||n.name:e.name}}),c($n,function(e){var t=e.value.source,n=e.value.toString().match(/[gimuys]*$/)[0];return{type:"Literal",value:new RegExp(t,n),raw:e.value.raw_source,regex:{pattern:t,flags:n}}}),c(Xn,function(e){var t=e.value;return"number"==typeof t&&(t<0||0===t&&1/t<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-t,raw:e.start.raw}}:{type:"Literal",value:t,raw:e.start.raw}}),c(er,function(e){return{type:"Identifier",name:String(e.value)}}),or.DEFMETHOD("to_mozilla_ast",Xn.prototype.to_mozilla_ast),tr.DEFMETHOD("to_mozilla_ast",Xn.prototype.to_mozilla_ast),ir.DEFMETHOD("to_mozilla_ast",function(){return null}),te.DEFMETHOD("to_mozilla_ast",ne.prototype.to_mozilla_ast),be.DEFMETHOD("to_mozilla_ast",we.prototype.to_mozilla_ast);var n=null;function s(e){n.push(e);var r=null!=e?t[e.type](e):null;return n.pop(),r}function c(e,t){e.DEFMETHOD("to_mozilla_ast",function(e){return n=this,r=t(this,e),i=n.start,s=n.end,null!=i.pos&&null!=s.endpos&&(r.range=[i.pos,s.endpos]),i.line&&(r.loc={start:{line:i.line,column:i.col},end:s.endline?{line:s.endline,column:s.endcol}:null},i.file&&(r.loc.source=i.file)),r;var n,r,i,s})}q.from_mozilla_ast=function(e){var t=n;n=[];var r=s(e);return n=t,r};var u=null;function l(e){null===u&&(u=[]),u.push(e);var t=null!=e?e.to_mozilla_ast(u[u.length-2]):null;return u.pop(),0===u.length&&(u=null),t}function p(){for(var e=u.length;e--;)if(u[e]instanceof Ce)return!0;return!1}function h(e){return{type:"BlockStatement",body:e.body.map(l)}}function d(e,t){var n=t.body.map(l);return t.body[0]instanceof J&&t.body[0].body instanceof Jn&&n.unshift(l(new re(t.body[0]))),{type:e,body:n}}}();var jr=S(43201);function Ot(e,n){function t(e){d(n,e)}e.walk(new Te(function(e){e instanceof mn&&e.quote?t(e.key):e instanceof hn&&e.quote?t(e.key.name):e instanceof qt&&$t(e.property,t)}))}function $t(e,t){e.walk(new Te(function(e){return e instanceof Ht?$t(e.tail_node(),t):e instanceof Jn?t(e.value):e instanceof Yt&&($t(e.consequent,t),$t(e.alternative,t)),!0}))}function Mt(e,t){var n=(t=a(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(n)||(n=[n]),t.builtins||function(e){e.push.apply(e,jr);var t={},n="object"==typeof global?global:self;function i(t){d(e,t)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach(function(e){t[e]=n[e]||new Function}),["null","true","false","Infinity","-Infinity","undefined"].forEach(i),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,t.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,t.Map,parseFloat,parseInt,t.Promise,t.Proxy,RangeError,ReferenceError,t.Reflect,t.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,t.WeakMap,t.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(i),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(i)})}(n);var r,i=-1;t.cache?(r=t.cache.props).each(function(e){d(n,e)}):r=new y;var s,o=t.regex,c=!1!==t.debug;c&&(s=!0===t.debug?"":t.debug);var u=[],f=[];return e.walk(new Te(function(e){e instanceof mn?"string"==typeof e.key&&h(e.key):e instanceof hn?h(e.key.name):e instanceof Gt?h(e.property):e instanceof qt?$t(e.property,h):e instanceof Ut&&"Object.defineProperty"==e.expression.print_to_string()&&$t(e.args[1],h)})),e.transform(new _t(function(e){e instanceof mn?"string"==typeof e.key&&(e.key=m(e.key)):e instanceof hn?e.key.name=m(e.key.name):e instanceof Gt?e.property=m(e.property):!t.keep_quoted&&e instanceof qt?e.property=v(e.property):e instanceof Ut&&"Object.defineProperty"==e.expression.print_to_string()&&(e.args[1]=v(e.args[1]))}));function l(e){return!(f.indexOf(e)>=0)&&(!(n.indexOf(e)>=0)&&(t.only_cache?r.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function p(e){return!(o&&!o.test(e))&&(!(n.indexOf(e)>=0)&&(r.has(e)||u.indexOf(e)>=0))}function h(e){l(e)&&d(u,e),p(e)||d(f,e)}function m(e){if(!p(e))return e;var t=r.get(e);if(!t){if(c){var n="_$"+e+"$"+s+"_";l(n)&&(t=n)}if(!t)do{t=Lr(++i)}while(!l(t));r.set(e,t)}return t}function v(e){return e.transform(new _t(function(e){if(e instanceof Ht){var t=e.expressions.length-1;e.expressions[t]=v(e.expressions[t])}else e instanceof Jn?e.value=m(e.value):e instanceof Yt&&(e.consequent=v(e.consequent),e.alternative=v(e.alternative));return e}))}}var Ur="undefined"==typeof atob?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,"base64").toString();if("string"!=typeof e)throw new Errror('"b64" must be a string');return new Buffer(e,"base64").toString()}:atob,zr="undefined"==typeof btoa?function(e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e).toString("base64");if("string"!=typeof e)throw new Errror('"str" must be a string');return new Buffer(e).toString("base64")}:btoa;function Tt(e,t,n){t[e]&&n.forEach(function(n){t[n]&&("object"!=typeof t[n]&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))})}function St(e){e&&("props"in e?e.props instanceof y||(e.props=y.fromObject(e.props)):e.props=new y)}function It(e){return{props:e.props.toObject()}}O.Dictionary=y,O.minify=function(e,t){var n,r,i=q.warn_function;try{var s,o=(t=a(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:{},parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),Tt("ecma",t,["parse","compress","output"]),Tt("ie8",t,["compress","mangle","output"]),Tt("keep_classnames",t,["compress","mangle"]),Tt("keep_fnames",t,["compress","mangle"]),Tt("module",t,["parse","compress","mangle"]),Tt("safari10",t,["mangle","output"]),Tt("toplevel",t,["compress","mangle"]),Tt("warnings",t,["compress"]),t.mangle&&(t.mangle=a(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(s=t.mangle.properties.reserved,Array.isArray(s)||(s=[]),t.mangle.properties.reserved=s),!t.nameCache||"cache"in t.mangle.properties||(t.mangle.properties.cache=t.nameCache.props||{})),St(t.mangle.cache),St(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=a(t.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var c,u=[];if(t.warnings&&!q.warn_function&&(q.warn_function=function(e){u.push(e)}),o&&(o.parse=Date.now()),e instanceof ge)c=e;else{for(var l in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(b(e,l)&&(t.parse.filename=l,t.parse.toplevel=gt(e[l],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=(n=e[l],r=void 0,(r=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(n))?Ur(r[2]):(q.warn("inline source map not found"),null))}c=t.parse.toplevel}s&&Ot(c,s),t.wrap&&(c=c.wrap_commonjs(t.wrap)),t.enclose&&(c=c.wrap_enclose(t.enclose)),o&&(o.rename=Date.now()),o&&(o.compress=Date.now()),t.compress&&(c=new kt(t.compress).compress(c)),o&&(o.scope=Date.now()),t.mangle&&c.figure_out_scope(t.mangle),o&&(o.mangle=Date.now()),t.mangle&&(Lr.reset(),c.compute_char_frequency(t.mangle),c.mangle_names(t.mangle)),o&&(o.properties=Date.now()),t.mangle&&t.mangle.properties&&(c=Mt(c,t.mangle.properties)),o&&(o.output=Date.now());var f={};if(t.output.ast&&(f.ast=c),!b(t.output,"code")||t.output.code){if(t.sourceMap&&("string"==typeof t.sourceMap.content&&(t.sourceMap.content=JSON.parse(t.sourceMap.content)),t.output.source_map=function(e){e=a(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var t=new(S(99596).SourceMapGenerator)({file:e.file,sourceRoot:e.root}),n=e.orig&&new(S(99596).SourceMapConsumer)(e.orig);return n&&Array.isArray(e.orig.sources)&&n._sources.toArray().forEach(function(e){var r=n.sourceContentFor(e,!0);r&&t.setSourceContent(e,r)}),{add:function(r,i,s,o,a,c){if(n){var u=n.originalPositionFor({line:o,column:a});if(null===u.source)return;r=u.source,o=u.line,a=u.column,c=u.name||c}t.addMapping({generated:{line:i+e.dest_line_diff,column:s},original:{line:o+e.orig_line_diff,column:a},source:r,name:c})},get:function(){return t},toString:function(){return JSON.stringify(t.toJSON())}}}({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof ge)throw new Error("original source content unavailable");for(var l in e)b(e,l)&&t.output.source_map.get().setSourceContent(l,e[l])}delete t.output.ast,delete t.output.code;var p=xt(t.output);c.print(p),f.code=p.get(),t.sourceMap&&(f.map=t.output.source_map.toString(),"inline"==t.sourceMap.url?f.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+zr(f.map):t.sourceMap.url&&(f.code+="\n//# sourceMappingURL="+t.sourceMap.url))}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=It(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=It(t.mangle.properties.cache))),o&&(o.end=Date.now(),f.timings={parse:.001*(o.rename-o.parse),rename:.001*(o.compress-o.rename),compress:.001*(o.scope-o.compress),scope:.001*(o.mangle-o.scope),mangle:.001*(o.properties-o.mangle),properties:.001*(o.output-o.properties),output:.001*(o.end-o.output),total:.001*(o.end-o.start)}),u.length&&(f.warnings=u),f}catch(e){return{error:e}}finally{q.warn_function=i}},O.parse=gt,O.push_uniq=d,O.OutputStream=xt,O.TreeTransformer=_t,O.TreeWalker=Te,O.string_template=m,O.Compressor=kt,O.defaults=a,O.base54=Lr,O.mangle_properties=Mt,O.reserve_quoted_keys=Ot,O.to_ascii=Ur}(true?n.exports:0)},96217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(2895);t.TsconfigPathsPlugin=r.TsconfigPathsPlugin;const i=n(2895);t.default=i.TsconfigPathsPlugin;const s=n(2895).TsconfigPathsPlugin;s.TsconfigPathsPlugin=i.TsconfigPathsPlugin;s.default=i.TsconfigPathsPlugin;e.exports=s},96028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(57082);var i;(function(e){e[e["INFO"]=1]="INFO";e[e["WARN"]=2]="WARN";e[e["ERROR"]=3]="ERROR"})(i||(i={}));const s=new r.Console(process.stderr);const o=new r.Console(process.stdout);const a=e=>{};const c=e=>e.silent?(e,t)=>{}:(e,t)=>console.log.call(e,t);const u=(e,t)=>n=>t(e.logInfoToStdOut?o:s,n);const l=(e,t,n)=>i[e.logLevel]<=i.INFO?r=>t(e.logInfoToStdOut?o:s,n(r)):a;const f=(e,t,n)=>i[e.logLevel]<=i.ERROR?e=>t(s,n(e)):a;const p=(e,t,n)=>i[e.logLevel]<=i.WARN?e=>t(s,n(e)):a;function makeLogger(e,t){const n=c(e);return{log:u(e,n),logInfo:l(e,n,t.green),logWarning:p(e,n,t.yellow),logError:f(e,n,t.red)}}t.makeLogger=makeLogger},59929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=["configFile","extensions","baseUrl","silent","logLevel","logInfoToStdOut","context","mainFields"];function getOptions(e){validateOptions(e);const t=makeOptions(e);return t}t.getOptions=getOptions;function validateOptions(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];const i=n.indexOf(r)===-1;if(i){throw new Error(`tsconfig-paths-webpack-plugin was supplied with an unexpected loader option: ${r}\nPlease take a look at the options you are supplying; the following are valid options:\n${n.join(" / ")}\n`)}}}function makeOptions(e){const t=Object.assign({},{configFile:"tsconfig.json",extensions:[".ts",".tsx"],baseUrl:undefined,silent:false,logLevel:"WARN",logInfoToStdOut:false,context:undefined,colors:true,mainFields:["main"]},e);const n=Object.assign({},t,{logLevel:t.logLevel.toUpperCase()});return n}},2895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(90801);const i=n(46543);const s=n(85622);const o=n(59929);const a=n(96028);const c=n(22471);class TsconfigPathsPlugin{constructor(e={}){this.source="described-resolve";this.target="resolve";const t=o.getOptions(e);this.extensions=t.extensions;const n=new r.default.constructor({enabled:t.colors});this.log=a.makeLogger(t,n);const c=t.context||process.cwd();const u=t.configFile||c;const l=i.loadConfig(u);if(l.resultType==="failed"){this.log.logError(`Failed to load tsconfig.json: ${l.message}`)}else{this.log.logInfo(`tsconfig-paths-webpack-plugin: Using config file at ${l.configFileAbsolutePath}`);this.baseUrl=t.baseUrl||l.baseUrl;this.absoluteBaseUrl=t.baseUrl?s.resolve(t.baseUrl):l.absoluteBaseUrl;this.matchPath=i.createMatchPathAsync(this.absoluteBaseUrl,l.paths,t.mainFields)}}apply(e){const{baseUrl:t}=this;if(!t){this.log.logWarning("tsconfig-paths-webpack-plugin: Found no baseUrl in tsconfig.json, not applying tsconfig-paths-webpack-plugin");return}if(!e.fileSystem){this.log.logWarning("tsconfig-paths-webpack-plugin: No file system found on resolver."+" Please make sure you've placed the plugin in the correct part of the configuration."+" This plugin is a resolver plugin and should be placed in the resolve part of the Webpack configuration.");return}if(e.getHook&&typeof e.getHook==="function"){e.getHook(this.source).tapAsync({name:"TsconfigPathsPlugin"},createPluginCallback(this.matchPath,e,this.absoluteBaseUrl,e.getHook(this.target),this.extensions))}else{e.plugin(this.source,createPluginLegacy(this.matchPath,e,this.absoluteBaseUrl,this.target,this.extensions))}}}t.TsconfigPathsPlugin=TsconfigPathsPlugin;function createPluginCallback(e,t,r,i,s){const o=createFileExistAsync(t.fileSystem);const a=createReadJsonAsync(t.fileSystem);return(u,l,f)=>{const p=c(t,u);if(!p||(p.startsWith(".")||p.startsWith(".."))){return f()}e(p,a,o,s,(e,s)=>{if(e){return f(e)}if(!s){return f()}const o=Object.assign({},u,{request:s,path:r});const a=n(52227);return t.doResolve(i,o,`Resolved request '${p}' to '${s}' using tsconfig.json paths mapping`,a(Object.assign({},l)),(e,t)=>{if(e){return f(e)}if(t===undefined){return f(null,null)}f(null,t)})})}}function createPluginLegacy(e,t,r,i,s){const o=createFileExistAsync(t.fileSystem);const a=createReadJsonAsync(t.fileSystem);return(u,l)=>{const f=c(t,u);if(!f||(f.startsWith(".")||f.startsWith(".."))){return l()}e(f,a,o,s,(e,s)=>{if(e){return l(e)}if(!s){return l()}const o=Object.assign({},u,{request:s,path:r});const a=n(49616);return t.doResolve(i,o,`Resolved request '${f}' to '${s}' using tsconfig.json paths mapping`,a(function(e,t){if(arguments.length>0){return l(e,t)}l(null,null)},l))})}}function createReadJsonAsync(e){return(t,n)=>{e.readJson(t,(e,t)=>{if(e||!t){n();return}n(undefined,t)})}}function createFileExistAsync(e){return(t,n)=>{e.stat(t,(e,t)=>{if(e){n(undefined,false);return}n(undefined,t?t.isFile():false)})}}},73346:(e,t,n)=>{"use strict";e=n.nmd(e);const r=n(88215);const i=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${n+t}m`});const s=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${38+t};5;${n}m`});const o=(e,t)=>(function(){const n=e.apply(r,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`});function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const n of Object.keys(t)){const r=t[n];for(const n of Object.keys(r)){const i=r[n];t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`};r[n]=t[n];e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const n=e=>e;const a=(e,t,n)=>[e,t,n];t.color.close="[39m";t.bgColor.close="[49m";t.color.ansi={ansi:i(n,0)};t.color.ansi256={ansi256:s(n,0)};t.color.ansi16m={rgb:o(a,0)};t.bgColor.ansi={ansi:i(n,10)};t.bgColor.ansi256={ansi256:s(n,10)};t.bgColor.ansi16m={rgb:o(a,10)};for(let e of Object.keys(r)){if(typeof r[e]!=="object"){continue}const n=r[e];if(e==="ansi16"){e="ansi"}if("ansi16"in n){t.color.ansi[e]=i(n.ansi16,0);t.bgColor.ansi[e]=i(n.ansi16,10)}if("ansi256"in n){t.color.ansi256[e]=s(n.ansi256,0);t.bgColor.ansi256[e]=s(n.ansi256,10)}if("rgb"in n){t.color.ansi16m[e]=o(n.rgb,0);t.bgColor.ansi16m[e]=o(n.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},90801:(e,t,n)=>{"use strict";const r=n(58732);const i=n(73346);const s=n(24374).stdout;const o=n(33392);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const n=s?s.level:0;e.level=t.level===undefined?n:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open="[94m"}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(r(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(r(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const n=i.color[c[t]][e].apply(null,arguments);const r={open:n,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(r(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const n=i.bgColor[c[t]][e].apply(null,arguments);const r={open:n,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const f=Object.defineProperties(()=>{},l);function build(e,t,n){const r=function(){return applyStyle.apply(r,arguments)};r._styles=e;r._empty=t;const i=this;Object.defineProperty(r,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(r,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});r.hasGrey=this.hasGrey||n==="gray"||n==="grey";r.__proto__=f;return r}function applyStyle(){const e=arguments;const t=e.length;let n=String(arguments[0]);if(t===0){return""}if(t>1){for(let r=1;r<t;r++){n+=" "+e[r]}}if(!this.enabled||this.level<=0||!n){return this._empty?"":n}const r=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){n=e.open+n.replace(e.closeRe,e.open)+e.close;n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=r;return n}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const n=[].slice.call(arguments,2);const r=[t.raw[0]];for(let e=1;e<t.length;e++){r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"));r.push(String(t.raw[e]))}return o(e,r.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports.default=e.exports},33392:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const n=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){n.push(Number(t))}else if(o=t.match(r)){n.push(o[2].replace(i,(e,t,n)=>t?unescape(t):n))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const e of Object.keys(n)){if(Array.isArray(n[e])){if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}if(n[e].length>0){r=r[e].apply(r,n[e])}else{r=r[e]}}}return r}e.exports=((e,n)=>{const r=[];const i=[];let s=[];n.replace(t,(t,n,o,a,c,u)=>{if(n){s.push(unescape(n))}else if(a){const t=s.join("");s=[];i.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:o,styles:parseStyle(a)})}else if(c){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,r)(s.join("")));s=[];r.pop()}else{s.push(u)}});i.push(s.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},21763:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const i=t.indexOf("--");return r!==-1&&(i===-1?true:r<i)})},24374:(e,t,n)=>{"use strict";const r=n(12087);const i=n(21763);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=r.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},36674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(9492);var i=n(85622);var s=n(26872);function loadConfig(e){if(e===void 0){e=s.options.cwd}return configLoader({cwd:e})}t.loadConfig=loadConfig;function configLoader(e){var t=e.cwd,n=e.explicitParams,s=e.tsConfigLoader,o=s===void 0?r.tsConfigLoader:s;if(n){var a=i.isAbsolute(n.baseUrl)?n.baseUrl:i.join(t,n.baseUrl);return{resultType:"success",configFileAbsolutePath:"",baseUrl:n.baseUrl,absoluteBaseUrl:a,paths:n.paths}}var c=o({cwd:t,getEnv:function(e){return process.env[e]}});if(!c.tsConfigPath){return{resultType:"failed",message:"Couldn't find tsconfig.json"}}if(!c.baseUrl){return{resultType:"failed",message:"Missing baseUrl in compilerOptions"}}var u=i.dirname(c.tsConfigPath);var l=i.join(u,c.baseUrl);return{resultType:"success",configFileAbsolutePath:c.tsConfigPath,baseUrl:c.baseUrl,absoluteBaseUrl:l,paths:c.paths||{}}}t.configLoader=configLoader},89711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(35747);function fileExistsSync(e){try{var t=r.statSync(e);return t.isFile()}catch(e){return false}}t.fileExistsSync=fileExistsSync;function readJsonFromDiskSync(e){if(!r.existsSync(e)){return undefined}return require(e)}t.readJsonFromDiskSync=readJsonFromDiskSync;function readJsonFromDiskAsync(e,t){r.readFile(e,"utf8",function(e,n){if(e||!n){return t()}var r=JSON.parse(n);return t(undefined,r)})}t.readJsonFromDiskAsync=readJsonFromDiskAsync;function fileExistsAsync(e,t){r.stat(e,function(e,n){if(e){return t(undefined,false)}t(undefined,n?n.isFile():false)})}t.fileExistsAsync=fileExistsAsync;function removeExtension(e){return e.substring(0,e.lastIndexOf("."))||e}t.removeExtension=removeExtension},46543:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(12317);t.createMatchPath=r.createMatchPath;t.matchFromAbsolutePaths=r.matchFromAbsolutePaths;var i=n(5339);t.createMatchPathAsync=i.createMatchPathAsync;t.matchFromAbsolutePathsAsync=i.matchFromAbsolutePathsAsync;var s=n(7897);t.register=s.register;var o=n(36674);t.loadConfig=o.loadConfig},98191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(85622);function getAbsoluteMappingEntries(e,t){var n=sortByLongestPrefix(Object.keys(t));var i=[];for(var s=0,o=n;s<o.length;s++){var a=o[s];i.push({pattern:a,paths:t[a].map(function(t){return r.join(e,t)})})}if(!t["*"]){i.push({pattern:"*",paths:[e.replace(/\/$/,"")+"/*"]})}return i}t.getAbsoluteMappingEntries=getAbsoluteMappingEntries;function sortByLongestPrefix(e){return e.concat().sort(function(e,t){return getPrefixLength(t)-getPrefixLength(e)})}function getPrefixLength(e){var t=e.indexOf("*");return e.substr(0,t).length}},5339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(85622);var i=n(58455);var s=n(98191);var o=n(89711);function createMatchPathAsync(e,t,n){if(n===void 0){n=["main"]}var r=s.getAbsoluteMappingEntries(e,t);return function(e,t,i,s,o){return matchFromAbsolutePathsAsync(r,e,t,i,s,o,n)}}t.createMatchPathAsync=createMatchPathAsync;function matchFromAbsolutePathsAsync(e,t,n,r,s,a,c){if(n===void 0){n=o.readJsonFromDiskAsync}if(r===void 0){r=o.fileExistsAsync}if(s===void 0){s=Object.keys(require.extensions)}if(c===void 0){c=["main"]}var u=i.getPathsToTry(s,e,t);if(!u){return a()}findFirstExistingPath(u,n,r,a,0,c)}t.matchFromAbsolutePathsAsync=matchFromAbsolutePathsAsync;function findFirstExistingMainFieldMappedFile(e,t,n,i,s,o){if(o===void 0){o=0}if(o>=t.length){return s(undefined,undefined)}var a=function(){return findFirstExistingMainFieldMappedFile(e,t,n,i,s,o+1)};var c=e[t[o]];if(typeof c!=="string"){return a()}var u=r.join(r.dirname(n),c);i(u,function(e,t){if(e){return s(e)}if(t){return s(undefined,u)}return a()})}function findFirstExistingPath(e,t,n,r,s,a){if(s===void 0){s=0}if(a===void 0){a=["main"]}var c=e[s];if(c.type==="file"||c.type==="extension"||c.type==="index"){n(c.path,function(o,u){if(o){return r(o)}if(u){return r(undefined,i.getStrippedPath(c))}if(s===e.length-1){return r()}return findFirstExistingPath(e,t,n,r,s+1,a)})}else if(c.type==="package"){t(c.path,function(i,u){if(i){return r(i)}if(u){return findFirstExistingMainFieldMappedFile(u,a,c.path,n,function(i,c){if(i){return r(i)}if(c){return r(undefined,o.removeExtension(c))}return findFirstExistingPath(e,t,n,r,s+1,a)})}return findFirstExistingPath(e,t,n,r,s+1,a)})}else{i.exhaustiveTypeException(c.type)}}},12317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(85622);var i=n(89711);var s=n(98191);var o=n(58455);function createMatchPath(e,t,n){if(n===void 0){n=["main"]}var r=s.getAbsoluteMappingEntries(e,t);return function(e,t,i,s){return matchFromAbsolutePaths(r,e,t,i,s,n)}}t.createMatchPath=createMatchPath;function matchFromAbsolutePaths(e,t,n,r,s,a){if(n===void 0){n=i.readJsonFromDiskSync}if(r===void 0){r=i.fileExistsSync}if(s===void 0){s=Object.keys(require.extensions)}if(a===void 0){a=["main"]}var c=o.getPathsToTry(s,e,t);if(!c){return undefined}return findFirstExistingPath(c,n,r,a)}t.matchFromAbsolutePaths=matchFromAbsolutePaths;function findFirstExistingMainFieldMappedFile(e,t,n,i){for(var s=0;s<t.length;s++){var o=t[s];var a=e[o];if(a&&typeof a==="string"){var c=r.join(r.dirname(n),a);if(i(c)){return c}}}return undefined}function findFirstExistingPath(e,t,n,r){if(t===void 0){t=i.readJsonFromDiskSync}if(r===void 0){r=["main"]}for(var s=0,a=e;s<a.length;s++){var c=a[s];if(c.type==="file"||c.type==="extension"||c.type==="index"){if(n(c.path)){return o.getStrippedPath(c)}}else if(c.type==="package"){var u=t(c.path);if(u){var l=findFirstExistingMainFieldMappedFile(u,r,c.path,n);if(l){return i.removeExtension(l)}}}else{o.exhaustiveTypeException(c.type)}}return undefined}},26872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(40535);var i=r(process.argv.slice(2),{string:["project"],alias:{project:["P"]}});var s=i&&i.project;t.options={cwd:s||process.cwd()}},7897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(12317);var i=n(36674);var s=n(26872);var o=function(){return void 0};function getCoreModules(e){e=e||["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"];var t={};for(var n=0,r=e;n<r.length;n++){var i=r[n];t[i]=true}return t}function register(e){var t=i.configLoader({cwd:s.options.cwd,explicitParams:e});if(t.resultType==="failed"){console.warn(t.message+". tsconfig-paths will be skipped");return o}var a=r.createMatchPath(t.absoluteBaseUrl,t.paths);var c=n(32282);var u=c._resolveFilename;var l=getCoreModules(c.builtinModules);c._resolveFilename=function(e,t){var n=l.hasOwnProperty(e);if(!n){var r=a(e);if(r){var i=[r].concat([].slice.call(arguments,1));return u.apply(this,i)}}return u.apply(this,arguments)};return function(){c._resolveFilename=u}}t.register=register},58455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(85622);var i=n(85622);var s=n(89711);function getPathsToTry(e,t,n){if(n[0]==="."||n[0]===r.sep||!t||!n){return undefined}var i=[];for(var s=0,o=t;s<o.length;s++){var a=o[s];var c=a.pattern===n?"":matchStar(a.pattern,n);if(c!==undefined){var u=function(t){var n=t.replace("*",c);i.push({type:"file",path:n});i.push.apply(i,e.map(function(e){return{type:"extension",path:n+e}}));i.push({type:"package",path:r.join(n,"/package.json")});var s=r.join(n,"/index");i.push.apply(i,e.map(function(e){return{type:"index",path:s+e}}))};for(var l=0,f=a.paths;l<f.length;l++){var p=f[l];u(p)}}}return i.length===0?undefined:i}t.getPathsToTry=getPathsToTry;function getStrippedPath(e){return e.type==="index"?i.dirname(e.path):e.type==="file"?e.path:e.type==="extension"?s.removeExtension(e.path):e.type==="package"?e.path:exhaustiveTypeException(e.type)}t.getStrippedPath=getStrippedPath;function exhaustiveTypeException(e){throw new Error("Unknown type "+e)}t.exhaustiveTypeException=exhaustiveTypeException;function matchStar(e,t){if(t.length<e.length){return undefined}if(e==="*"){return t}var n=e.indexOf("*");if(n===-1){return undefined}var r=e.substring(0,n);var i=e.substring(n+1);if(t.substr(0,n)!==r){return undefined}if(t.substr(t.length-i.length)!==i){return undefined}return t.substr(n,t.length-i.length)}},9492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(85622);var i=n(35747);var s=n(96487);var o=n(5278);var a=n(72679);function tsConfigLoader(e){var t=e.getEnv,n=e.cwd,r=e.loadSync,i=r===void 0?loadSyncDefault:r;var s=t("TS_NODE_PROJECT");var o=i(n,s);return o}t.tsConfigLoader=tsConfigLoader;function loadSyncDefault(e,t){var n=resolveConfigPath(e,t);if(!n){return{tsConfigPath:undefined,baseUrl:undefined,paths:undefined}}var r=loadTsconfig(n);return{tsConfigPath:n,baseUrl:r&&r.compilerOptions&&r.compilerOptions.baseUrl,paths:r&&r.compilerOptions&&r.compilerOptions.paths}}function resolveConfigPath(e,t){if(t){var n=i.lstatSync(t).isDirectory()?r.resolve(t,"./tsconfig.json"):r.resolve(e,t);return n}if(i.statSync(e).isFile()){return r.resolve(e)}var s=walkForTsConfig(e);return s?r.resolve(s):undefined}function walkForTsConfig(e,t){if(t===void 0){t=i.existsSync}var n=r.join(e,"./tsconfig.json");if(t(n)){return n}var s=r.join(e,"../");if(e===s){return undefined}return walkForTsConfig(s,t)}t.walkForTsConfig=walkForTsConfig;function loadTsconfig(e,t,n){if(t===void 0){t=i.existsSync}if(n===void 0){n=function(e){return i.readFileSync(e,"utf8")}}if(!t(e)){return undefined}var c=n(e);var u=a(c);var l=o.parse(u);var f=l.extends;if(f){if(typeof f==="string"&&f.indexOf(".json")===-1){f+=".json"}var p=r.dirname(e);var d=loadTsconfig(r.join(p,f),t,n)||{};if(d&&d.compilerOptions&&d.compilerOptions.baseUrl){var h=r.dirname(f);d.compilerOptions.baseUrl=r.join(h,d.compilerOptions.baseUrl)}return s(d,l)}return l}t.loadTsconfig=loadTsconfig},5115:e=>{var t;var n;var r;var i;var s;var o;var a;var c;var u;var l;var f;var p;var d;var h;var m;var g;var y;var v;var _;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],function(e){t(createExporter(n,createExporter(e)))})}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};t=function(e,t){b(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};r=function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)if(t.indexOf(r[i])<0)n[r[i]]=e[r[i]];return n};i=function(e,t,n,r){var i=arguments.length,s=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)if(o=e[a])s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s;return i>3&&s&&Object.defineProperty(t,n,s),s};s=function(e,t){return function(n,r){t(n,r,e)}};o=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};c=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};u=function(e,t){for(var n in e)if(!t.hasOwnProperty(n))t[n]=e[n]};l=function(e){var t=typeof Symbol==="function"&&e[Symbol.iterator],n=0;if(t)return t.call(e);return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}}};f=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{while((t===void 0||t-- >0)&&!(i=r.next()).done)s.push(i.value)}catch(e){o={error:e}}finally{try{if(i&&!i.done&&(n=r["return"]))n.call(r)}finally{if(o)throw o.error}}return s};p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e};d=function(e){return this instanceof d?(this.v=e,this):new d(e)};h=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(r[e])i[e]=function(t){return new Promise(function(n,r){s.push([e,t,n,r])>1||resume(e,t)})}}function resume(e,t){try{step(r[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof d?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};m=function(e){var t,n;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:d(e[r](t)),done:r==="return"}:i?i(t):t}:i}};g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),settle(r,i,n.done,n.value)})}}function settle(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};v=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};_=function(e){return e&&e.__esModule?e:{default:e}};e("__extends",t);e("__assign",n);e("__rest",r);e("__decorate",i);e("__param",s);e("__metadata",o);e("__awaiter",a);e("__generator",c);e("__exportStar",u);e("__values",l);e("__read",f);e("__spread",p);e("__await",d);e("__asyncGenerator",h);e("__asyncDelegator",m);e("__asyncValues",g);e("__makeTemplateObject",y);e("__importStar",v);e("__importDefault",_)})},43751:(e,t,n)=>{"use strict";var r=n(85622);var i=n(13979);e.exports=function(e,t,n){return r.join(e,(t?t+"-":"")+i(n))}},13979:(e,t,n)=>{"use strict";var r=n(76417);var i=n(32763);e.exports=function(e){if(e){var t=new i(e);return("00000000"+t.result().toString(16)).substr(-8)}else{return r.pseudoRandomBytes(4).toString("hex")}}},30823:function(e,t){(function(e,n){true?n(t):0})(this,function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t.length>1){t[0]=t[0].slice(0,-1);var r=t.length-1;for(var i=1;i<r;++i){t[i]=t[i].slice(1,-1)}t[r]=t[r].slice(1);return t.join("")}else{return t[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var n=e;if(t){for(var r in t){n[r]=t[r]}}return n}function buildExps(e){var t="[A-Za-z]",n="[\\x0D]",r="[0-9]",i="[\\x22]",s=merge(r,"[A-Fa-f]"),o="[\\x0A]",a="[\\x20]",c=subexp(subexp("%[EFef]"+s+"%"+s+s+"%"+s+s)+"|"+subexp("%[89A-Fa-f]"+s+"%"+s+s)+"|"+subexp("%"+s+s)),u="[\\:\\/\\?\\#\\[\\]\\@]",l="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=merge(u,l),p=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",h=merge(t,r,"[\\-\\.\\_\\~]",p),m=subexp(t+merge(t,r,"[\\+\\-\\.]")+"*"),g=subexp(subexp(c+"|"+merge(h,l,"[\\:]"))+"*"),y=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("[1-9]"+r)+"|"+r),v=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("0?[1-9]"+r)+"|0?0?"+r),_=subexp(v+"\\."+v+"\\."+v+"\\."+v),b=subexp(s+"{1,4}"),E=subexp(subexp(b+"\\:"+b)+"|"+_),w=subexp(subexp(b+"\\:")+"{6}"+E),S=subexp("\\:\\:"+subexp(b+"\\:")+"{5}"+E),k=subexp(subexp(b)+"?\\:\\:"+subexp(b+"\\:")+"{4}"+E),D=subexp(subexp(subexp(b+"\\:")+"{0,1}"+b)+"?\\:\\:"+subexp(b+"\\:")+"{3}"+E),x=subexp(subexp(subexp(b+"\\:")+"{0,2}"+b)+"?\\:\\:"+subexp(b+"\\:")+"{2}"+E),C=subexp(subexp(subexp(b+"\\:")+"{0,3}"+b)+"?\\:\\:"+b+"\\:"+E),A=subexp(subexp(subexp(b+"\\:")+"{0,4}"+b)+"?\\:\\:"+E),T=subexp(subexp(subexp(b+"\\:")+"{0,5}"+b)+"?\\:\\:"+b),M=subexp(subexp(subexp(b+"\\:")+"{0,6}"+b)+"?\\:\\:"),O=subexp([w,S,k,D,x,C,A,T,M].join("|")),F=subexp(subexp(h+"|"+c)+"+"),I=subexp(O+"\\%25"+F),R=subexp(O+subexp("\\%25|\\%(?!"+s+"{2})")+F),P=subexp("[vV]"+s+"+\\."+merge(h,l,"[\\:]")+"+"),N=subexp("\\["+subexp(R+"|"+O+"|"+P)+"\\]"),L=subexp(subexp(c+"|"+merge(h,l))+"*"),B=subexp(N+"|"+_+"(?!"+L+")"+"|"+L),j=subexp(r+"*"),U=subexp(subexp(g+"@")+"?"+B+subexp("\\:"+j)+"?"),z=subexp(c+"|"+merge(h,l,"[\\:\\@]")),H=subexp(z+"*"),V=subexp(z+"+"),G=subexp(subexp(c+"|"+merge(h,l,"[\\@]"))+"+"),q=subexp(subexp("\\/"+H)+"*"),W=subexp("\\/"+subexp(V+q)+"?"),K=subexp(G+q),X=subexp(V+q),J="(?!"+z+")",Y=subexp(q+"|"+W+"|"+K+"|"+X+"|"+J),Q=subexp(subexp(z+"|"+merge("[\\/\\?]",d))+"*"),Z=subexp(subexp(z+"|[\\/\\?]")+"*"),$=subexp(subexp("\\/\\/"+U+q)+"|"+W+"|"+X+"|"+J),ee=subexp(m+"\\:"+$+subexp("\\?"+Q)+"?"+subexp("\\#"+Z)+"?"),te=subexp(subexp("\\/\\/"+U+q)+"|"+W+"|"+K+"|"+J),ne=subexp(te+subexp("\\?"+Q)+"?"+subexp("\\#"+Z)+"?"),re=subexp(ee+"|"+ne),ie=subexp(m+"\\:"+$+subexp("\\?"+Q)+"?"),se="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+g+")@")+"?("+B+")"+subexp("\\:("+j+")")+"?)")+"?("+q+"|"+W+"|"+X+"|"+J+")")+subexp("\\?("+Q+")")+"?"+subexp("\\#("+Z+")")+"?$",oe="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+g+")@")+"?("+B+")"+subexp("\\:("+j+")")+"?)")+"?("+q+"|"+W+"|"+K+"|"+J+")")+subexp("\\?("+Q+")")+"?"+subexp("\\#("+Z+")")+"?$",ae="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+g+")@")+"?("+B+")"+subexp("\\:("+j+")")+"?)")+"?("+q+"|"+W+"|"+X+"|"+J+")")+subexp("\\?("+Q+")")+"?$",ce="^"+subexp("\\#("+Z+")")+"?$",ue="^"+subexp("("+g+")@")+"?("+B+")"+subexp("\\:("+j+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",t,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",h,l),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",h,l),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",h,l),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",h,l),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",h,l),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",h,f),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+_+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+subexp(subexp("\\%25|\\%(?!"+s+"{2})")+"("+F+")")+"?\\]?$")}}var t=buildExps(false);var n=buildExps(true);var r=function(){function sliceIterator(e,t){var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done);r=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){i=true;s=e}finally{try{if(!r&&o["return"])o["return"]()}finally{if(i)throw s}}return n}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else{return Array.from(e)}};var s=2147483647;var o=36;var a=1;var c=26;var u=38;var l=700;var f=72;var p=128;var d="-";var h=/^xn--/;var m=/[^\0-\x7E]/;var g=/[\x2E\u3002\uFF0E\uFF61]/g;var y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var v=o-a;var _=Math.floor;var b=String.fromCharCode;function error$1(e){throw new RangeError(y[e])}function map(e,t){var n=[];var r=e.length;while(r--){n[r]=t(e[r])}return n}function mapDomain(e,t){var n=e.split("@");var r="";if(n.length>1){r=n[0]+"@";e=n[1]}e=e.replace(g,".");var i=e.split(".");var s=map(i,t).join(".");return r+s}function ucs2decode(e){var t=[];var n=0;var r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var s=e.charCodeAt(n++);if((s&64512)==56320){t.push(((i&1023)<<10)+(s&1023)+65536)}else{t.push(i);n--}}else{t.push(i)}}return t}var E=function ucs2encode(e){return String.fromCodePoint.apply(String,i(e))};var w=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return o};var S=function digitToBasic(e,t){return e+22+75*(e<26)-((t!=0)<<5)};var k=function adapt(e,t,n){var r=0;e=n?_(e/l):e>>1;e+=_(e/t);for(;e>v*c>>1;r+=o){e=_(e/v)}return _(r+(v+1)*e/(e+u))};var D=function decode(e){var t=[];var n=e.length;var r=0;var i=p;var u=f;var l=e.lastIndexOf(d);if(l<0){l=0}for(var h=0;h<l;++h){if(e.charCodeAt(h)>=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=l>0?l+1:0;m<n;){var g=r;for(var y=1,v=o;;v+=o){if(m>=n){error$1("invalid-input")}var b=w(e.charCodeAt(m++));if(b>=o||b>_((s-r)/y)){error$1("overflow")}r+=b*y;var E=v<=u?a:v>=u+c?c:v-u;if(b<E){break}var S=o-E;if(y>_(s/S)){error$1("overflow")}y*=S}var D=t.length+1;u=k(r-g,D,g==0);if(_(r/D)>s-i){error$1("overflow")}i+=_(r/D);r%=D;t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)};var x=function encode(e){var t=[];e=ucs2decode(e);var n=e.length;var r=p;var i=0;var u=f;var l=true;var h=false;var m=undefined;try{for(var g=e[Symbol.iterator](),y;!(l=(y=g.next()).done);l=true){var v=y.value;if(v<128){t.push(b(v))}}}catch(e){h=true;m=e}finally{try{if(!l&&g.return){g.return()}}finally{if(h){throw m}}}var E=t.length;var w=E;if(E){t.push(d)}while(w<n){var D=s;var x=true;var C=false;var A=undefined;try{for(var T=e[Symbol.iterator](),M;!(x=(M=T.next()).done);x=true){var O=M.value;if(O>=r&&O<D){D=O}}}catch(e){C=true;A=e}finally{try{if(!x&&T.return){T.return()}}finally{if(C){throw A}}}var F=w+1;if(D-r>_((s-i)/F)){error$1("overflow")}i+=(D-r)*F;r=D;var I=true;var R=false;var P=undefined;try{for(var N=e[Symbol.iterator](),L;!(I=(L=N.next()).done);I=true){var B=L.value;if(B<r&&++i>s){error$1("overflow")}if(B==r){var j=i;for(var U=o;;U+=o){var z=U<=u?a:U>=u+c?c:U-u;if(j<z){break}var H=j-z;var V=o-z;t.push(b(S(z+H%V,0)));j=_(H/V)}t.push(b(S(j,0)));u=k(i,F,w==E);i=0;++w}}}catch(e){R=true;P=e}finally{try{if(!I&&N.return){N.return()}}finally{if(R){throw P}}}++i;++r}return t.join("")};var C=function toUnicode(e){return mapDomain(e,function(e){return h.test(e)?D(e.slice(4).toLowerCase()):e})};var A=function toASCII(e){return mapDomain(e,function(e){return m.test(e)?"xn--"+x(e):e})};var T={version:"2.1.0",ucs2:{decode:ucs2decode,encode:E},decode:D,encode:x,toASCII:A,toUnicode:C};var M={};function pctEncChar(e){var t=e.charCodeAt(0);var n=void 0;if(t<16)n="%0"+t.toString(16).toUpperCase();else if(t<128)n="%"+t.toString(16).toUpperCase();else if(t<2048)n="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else n="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return n}function pctDecChars(e){var t="";var n=0;var r=e.length;while(n<r){var i=parseInt(e.substr(n+1,2),16);if(i<128){t+=String.fromCharCode(i);n+=3}else if(i>=194&&i<224){if(r-n>=6){var s=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((i&31)<<6|s&63)}else{t+=e.substr(n,6)}n+=6}else if(i>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16);var a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}else{t+=e.substr(n,9)}n+=9}else{t+=e.substr(n,3);n+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(t.UNRESERVED)?e:n}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var n=e.match(t.IPV4ADDRESS)||[];var i=r(n,2),s=i[1];if(s){return s.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var n=e.match(t.IPV6ADDRESS)||[];var i=r(n,3),s=i[1],o=i[2];if(s){var a=s.toLowerCase().split("::").reverse(),c=r(a,2),u=c[0],l=c[1];var f=l?l.split(":").map(_stripLeadingZeros):[];var p=u.split(":").map(_stripLeadingZeros);var d=t.IPV4ADDRESS.test(p[p.length-1]);var h=d?7:8;var m=p.length-h;var g=Array(h);for(var y=0;y<h;++y){g[y]=f[y]||p[m+y]||""}if(d){g[h-1]=_normalizeIPv4(g[h-1],t)}var v=g.reduce(function(e,t,n){if(!t||t==="0"){var r=e[e.length-1];if(r&&r.index+r.length===n){r.length++}else{e.push({index:n,length:1})}}return e},[]);var _=v.sort(function(e,t){return t.length-e.length})[0];var b=void 0;if(_&&_.length>1){var E=g.slice(0,_.index);var w=g.slice(_.index+_.length);b=E.join(":")+"::"+w.join(":")}else{b=g.join(":")}if(o){b+="%"+o}return b}else{return e}}var O=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var F="".match(/(){0}/)[1]===undefined;function parse(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var s=r.iri!==false?n:t;if(r.reference==="suffix")e=(r.scheme?r.scheme+":":"")+"//"+e;var o=e.match(O);if(o){if(F){i.scheme=o[1];i.userinfo=o[3];i.host=o[4];i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=o[7];i.fragment=o[8];if(isNaN(i.port)){i.port=o[5]}}else{i.scheme=o[1]||undefined;i.userinfo=e.indexOf("@")!==-1?o[3]:undefined;i.host=e.indexOf("//")!==-1?o[4]:undefined;i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=e.indexOf("?")!==-1?o[7]:undefined;i.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,s),s)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(r.reference&&r.reference!=="suffix"&&r.reference!==i.reference){i.error=i.error||"URI is not a "+r.reference+" reference."}var a=M[(r.scheme||i.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)){if(i.host&&(r.domainHost||a&&a.domainHost)){try{i.host=T.toASCII(i.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,t)}else{_normalizeComponentEncoding(i,s)}if(a&&a.parse){a.parse(i,r)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,r){var i=r.iri!==false?n:t;var s=[];if(e.userinfo!==undefined){s.push(e.userinfo);s.push("@")}if(e.host!==undefined){s.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))}if(typeof e.port==="number"){s.push(":");s.push(e.port.toString(10))}return s.length?s.join(""):undefined}var I=/^\.\.?\//;var R=/^\/\.(\/|$)/;var P=/^\/\.\.(\/|$)/;var N=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(I)){e=e.replace(I,"")}else if(e.match(R)){e=e.replace(R,"/")}else if(e.match(P)){e=e.replace(P,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var n=e.match(N);if(n){var r=n[0];e=e.slice(r.length);t.push(r)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=r.iri?n:t;var s=[];var o=M[(r.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,r);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(r.domainHost||o&&o.domainHost){try{e.host=!r.iri?T.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):T.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!r.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,i);if(r.reference!=="suffix"&&e.scheme){s.push(e.scheme);s.push(":")}var a=_recomposeAuthority(e,r);if(a!==undefined){if(r.reference!=="suffix"){s.push("//")}s.push(a);if(e.path&&e.path.charAt(0)!=="/"){s.push("/")}}if(e.path!==undefined){var c=e.path;if(!r.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(a===undefined){c=c.replace(/^\/\//,"/%2F")}s.push(c)}if(e.query!==undefined){s.push("?");s.push(e.query)}if(e.fragment!==undefined){s.push("#");s.push(e.fragment)}return s.join("")}function resolveComponents(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var r=arguments[3];var i={};if(!r){e=parse(serialize(e,n),n);t=parse(serialize(t,n),n)}n=n||{};if(!n.tolerant&&t.scheme){i.scheme=t.scheme;i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(!t.path){i.path=e.path;if(t.query!==undefined){i.query=t.query}else{i.query=e.query}}else{if(t.path.charAt(0)==="/"){i.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+t.path}else if(!e.path){i.path=t.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}i.path=removeDotSegments(i.path)}i.query=t.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=t.fragment;return i}function resolve(e,t,n){var r=assign({scheme:"null"},n);return serialize(resolveComponents(parse(e,r),parse(t,r),r,true),r)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=serialize(e,n)}if(typeof t==="string"){t=serialize(parse(t,n),n)}else if(typeOf(t)==="object"){t=serialize(t,n)}return e===t}function escapeComponent(e,r){return e&&e.toString().replace(!r||!r.iri?t.ESCAPE:n.ESCAPE,pctEncChar)}function unescapeComponent(e,r){return e&&e.toString().replace(!r||!r.iri?t.PCT_ENCODED:n.PCT_ENCODED,pctDecChars)}var L={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var B={scheme:"https",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};var j={};var U=true;var z="[A-Za-z0-9\\-\\.\\_\\~"+(U?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var H="[0-9A-Fa-f]";var V=subexp(subexp("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+subexp("%[89A-Fa-f]"+H+"%"+H+H)+"|"+subexp("%"+H+H));var G="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var q="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var W=merge(q,'[\\"\\\\]');var K="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var X=new RegExp(z,"g");var J=new RegExp(V,"g");var Y=new RegExp(merge("[^]",G,"[\\.]",'[\\"]',W),"g");var Q=new RegExp(merge("[^]",z,K),"g");var Z=Q;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(X)?e:t}var $={scheme:"mailto",parse:function parse$$1(e,t){var n=e;var r=n.to=n.path?n.path.split(","):[];n.path=undefined;if(n.query){var i=false;var s={};var o=n.query.split("&");for(var a=0,c=o.length;a<c;++a){var u=o[a].split("=");switch(u[0]){case"to":var l=u[1].split(",");for(var f=0,p=l.length;f<p;++f){r.push(l[f])}break;case"subject":n.subject=unescapeComponent(u[1],t);break;case"body":n.body=unescapeComponent(u[1],t);break;default:i=true;s[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t);break}}if(i)n.headers=s}n.query=undefined;for(var d=0,h=r.length;d<h;++d){var m=r[d].split("@");m[0]=unescapeComponent(m[0]);if(!t.unicodeSupport){try{m[1]=T.toASCII(unescapeComponent(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{m[1]=unescapeComponent(m[1],t).toLowerCase()}r[d]=m.join("@")}return n},serialize:function serialize$$1(e,t){var n=e;var r=toArray(e.to);if(r){for(var i=0,s=r.length;i<s;++i){var o=String(r[i]);var a=o.lastIndexOf("@");var c=o.slice(0,a).replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Y,pctEncChar);var u=o.slice(a+1);try{u=!t.iri?T.toASCII(unescapeComponent(u,t).toLowerCase()):T.toUnicode(u)}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+e}r[i]=c+"@"+u}n.path=r.join(",")}var l=e.headers=e.headers||{};if(e.subject)l["subject"]=e.subject;if(e.body)l["body"]=e.body;var f=[];for(var p in l){if(l[p]!==j[p]){f.push(p.replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Q,pctEncChar)+"="+l[p].replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Z,pctEncChar))}}if(f.length){n.query=f.join("&")}return n}};var ee=/^([^\:]+)\:(.*)/;var te={scheme:"urn",parse:function parse$$1(e,t){var n=e.path&&e.path.match(ee);var r=e;if(n){var i=t.scheme||r.scheme||"urn";var s=n[1].toLowerCase();var o=n[2];var a=i+":"+(t.nid||s);var c=M[a];r.nid=s;r.nss=o;r.path=undefined;if(c){r=c.parse(r,t)}}else{r.error=r.error||"URN can not be parsed."}return r},serialize:function serialize$$1(e,t){var n=t.scheme||e.scheme||"urn";var r=e.nid;var i=n+":"+(t.nid||r);var s=M[i];if(s){e=s.serialize(e,t)}var o=e;var a=e.nss;o.path=(r||t.nid)+":"+a;return o}};var ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var re={scheme:"urn:uuid",parse:function parse(e,t){var n=e;n.uuid=n.nss;n.nss=undefined;if(!t.tolerant&&(!n.uuid||!n.uuid.match(ne))){n.error=n.error||"UUID is not valid."}return n},serialize:function serialize(e,t){var n=e;n.nss=(e.uuid||"").toLowerCase();return n}};M[L.scheme]=L;M[B.scheme]=B;M[$.scheme]=$;M[te.scheme]=te;M[re.scheme]=re;e.SCHEMES=M;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})})},95791:(e,t,n)=>{e.exports=n(31669).deprecate},56755:(e,t,n)=>{"use strict";const r=n(28614).EventEmitter;const i=n(15808);const s=n(85622);const o=n(68862);const a=Object.freeze({});let c=1e3;const u=n(12087).platform()==="darwin";const l=process.env.WATCHPACK_POLLING;const f=`${+l}`===l?+l:!!l&&l!=="false";function withoutCase(e){return e.toLowerCase()}function needCalls(e,t){return function(){if(--e===0){return t()}}}class Watcher extends r{constructor(e,t,n){super();this.directoryWatcher=e;this.path=t;this.startTime=n&&+n;this._cachedTimeInfoEntries=undefined}checkStartTime(e,t){const n=this.startTime;if(typeof n!=="number")return!t;return n<=e}close(){this.emit("closed")}}class DirectoryWatcher extends r{constructor(e,t,n){super();if(f){n.poll=f}this.watcherManager=e;this.options=n;this.path=t;this.files=new Map;this.filesWithoutCase=new Map;this.directories=new Map;this.lastWatchEvent=0;this.initialScan=true;this.ignored=n.ignored;this.nestedWatching=false;this.polledWatching=typeof n.poll==="number"?n.poll:n.poll?5007:false;this.timeout=undefined;this.initialScanRemoved=new Set;this.initialScanFinished=undefined;this.watchers=new Map;this.parentWatcher=null;this.refs=0;this._activeEvents=new Map;this.closed=false;this.scanning=false;this.scanAgain=false;this.scanAgainInitial=false;this.createWatcher();this.doScan(true)}checkIgnore(e){if(!this.ignored)return false;e=e.replace(/\\/g,"/");return this.ignored.test(e)}createWatcher(){try{if(this.polledWatching){this.watcher={close:()=>{if(this.timeout){clearTimeout(this.timeout);this.timeout=undefined}}}}else{if(u){this.watchInParentDirectory()}this.watcher=o.watch(this.path);this.watcher.on("change",this.onWatchEvent.bind(this));this.watcher.on("error",this.onWatcherError.bind(this))}}catch(e){this.onWatcherError(e)}}forEachWatcher(e,t){const n=this.watchers.get(withoutCase(e));if(n!==undefined){for(const e of n){t(e)}}}setMissing(e,t,n){this._cachedTimeInfoEntries=undefined;if(this.initialScan){this.initialScanRemoved.add(e)}const r=this.directories.get(e);if(r){if(this.nestedWatching)r.close();this.directories.delete(e);this.forEachWatcher(e,e=>e.emit("remove",n));if(!t){this.forEachWatcher(this.path,r=>r.emit("change",e,null,n,t))}}const i=this.files.get(e);if(i){this.files.delete(e);const r=withoutCase(e);const i=this.filesWithoutCase.get(r)-1;if(i<=0){this.filesWithoutCase.delete(r);this.forEachWatcher(e,e=>e.emit("remove",n))}else{this.filesWithoutCase.set(r,i)}if(!t){this.forEachWatcher(this.path,r=>r.emit("change",e,null,n,t))}}}setFileTime(e,t,n,r,i){const s=Date.now();if(this.checkIgnore(e))return;const o=this.files.get(e);let a,u;if(n){a=Math.min(s,t)+c;u=c}else{a=s;u=0;if(o&&o.timestamp===t&&t+c<s-1e3){return}}if(r&&o&&o.timestamp===t)return;this.files.set(e,{safeTime:a,accuracy:u,timestamp:t});this._cachedTimeInfoEntries=undefined;if(!o){const r=withoutCase(e);const s=this.filesWithoutCase.get(r);this.filesWithoutCase.set(r,(s||0)+1);if(s!==undefined){this.doScan(false)}this.forEachWatcher(e,e=>{if(!n||e.checkStartTime(a,n)){e.emit("change",t,i)}})}else if(!n){this.forEachWatcher(e,e=>e.emit("change",t,i))}this.forEachWatcher(this.path,t=>{if(!n||t.checkStartTime(a,n)){t.emit("change",e,a,i,n)}})}setDirectory(e,t,n,r){if(this.checkIgnore(e))return;if(e===this.path){if(!n){this.forEachWatcher(this.path,i=>i.emit("change",e,t,r,n))}}else{const i=this.directories.get(e);if(!i){const i=Date.now();this._cachedTimeInfoEntries=undefined;if(this.nestedWatching){this.createNestedWatcher(e)}else{this.directories.set(e,true)}let s;if(n){s=Math.min(i,t)+c}else{s=i}this.forEachWatcher(e,e=>{if(!n||e.checkStartTime(s,false)){e.emit("change",t,r)}});this.forEachWatcher(this.path,t=>{if(!n||t.checkStartTime(s,n)){t.emit("change",e,s,r,n)}})}}}createNestedWatcher(e){const t=this.watcherManager.watchDirectory(e,1);t.on("change",(e,t,n,r)=>{this._cachedTimeInfoEntries=undefined;this.forEachWatcher(this.path,i=>{if(!r||i.checkStartTime(t,r)){i.emit("change",e,t,n,r)}})});this.directories.set(e,t)}setNestedWatching(e){if(this.nestedWatching!==!!e){this.nestedWatching=!!e;this._cachedTimeInfoEntries=undefined;if(this.nestedWatching){for(const e of this.directories.keys()){this.createNestedWatcher(e)}}else{for(const[e,t]of this.directories){t.close();this.directories.set(e,true)}}}}watch(e,t){const n=withoutCase(e);let r=this.watchers.get(n);if(r===undefined){r=new Set;this.watchers.set(n,r)}this.refs++;const i=new Watcher(this,e,t);i.on("closed",()=>{if(--this.refs<=0){this.close();return}r.delete(i);if(r.size===0){this.watchers.delete(n);if(this.path===e)this.setNestedWatching(false)}});r.add(i);let s;if(e===this.path){this.setNestedWatching(true);s=this.lastWatchEvent;for(const e of this.files.values()){fixupEntryAccuracy(e);s=Math.max(s,e.safeTime)}}else{const t=this.files.get(e);if(t){fixupEntryAccuracy(t);s=t.safeTime}else{s=0}}if(s){if(s>=t){process.nextTick(()=>{if(this.closed)return;i.emit("change",s)})}}else if(this.initialScan){if(this.initialScanRemoved.has(e)){process.nextTick(()=>{if(this.closed)return;i.emit("remove")})}}else if(!this.directories.has(e)&&i.checkStartTime(this.initialScanFinished,false)){process.nextTick(()=>{if(this.closed)return;i.emit("initial-missing","watch (missing on attach)")})}return i}onWatchEvent(e,t){if(this.closed)return;if(!t){this.doScan(false);return}const n=s.join(this.path,t);if(this.checkIgnore(n))return;if(this._activeEvents.get(t)===undefined){this._activeEvents.set(t,false);const r=()=>{if(this.closed)return;this._activeEvents.set(t,false);i.lstat(n,(o,a)=>{if(this.closed)return;if(this._activeEvents.get(t)===true){process.nextTick(r);return}this._activeEvents.delete(t);if(o){if(o.code!=="ENOENT"&&o.code!=="EPERM"&&o.code!=="EBUSY"){this.onStatsError(o)}else{if(t===s.basename(this.path)){if(!i.existsSync(this.path)){this.onDirectoryRemoved("stat failed")}}}}this.lastWatchEvent=Date.now();this._cachedTimeInfoEntries=undefined;if(!a){this.setMissing(n,false,e)}else if(a.isDirectory()){this.setDirectory(n,+a.mtime||+a.ctime||1,false,e)}else if(a.isFile()||a.isSymbolicLink()){if(a.mtime){ensureFsAccuracy(a.mtime)}this.setFileTime(n,+a.mtime||+a.ctime||1,false,false,e)}})};process.nextTick(r)}else{this._activeEvents.set(t,true)}}onWatcherError(e){if(this.closed)return;if(e){if(e.code!=="EPERM"&&e.code!=="ENOENT"){console.error("Watchpack Error (watcher): "+e)}this.onDirectoryRemoved("watch error")}}onStatsError(e){if(e){console.error("Watchpack Error (stats): "+e)}}onScanError(e){if(e){console.error("Watchpack Error (initial scan): "+e)}this.onScanFinished()}onScanFinished(){if(this.polledWatching){this.timeout=setTimeout(()=>{if(this.closed)return;this.doScan(false)},this.polledWatching)}}onDirectoryRemoved(e){if(this.watcher){this.watcher.close();this.watcher=null}this.watchInParentDirectory();const t=`directory-removed (${e})`;for(const e of this.directories.keys()){this.setMissing(e,null,t)}for(const e of this.files.keys()){this.setMissing(e,null,t)}}watchInParentDirectory(){if(!this.parentWatcher){const e=s.dirname(this.path);if(s.dirname(e)===e)return;this.parentWatcher=this.watcherManager.watchFile(this.path,1);this.parentWatcher.on("change",(e,t)=>{if(this.closed)return;if((!u||this.polledWatching)&&this.parentWatcher){this.parentWatcher.close();this.parentWatcher=null}if(!this.watcher){this.createWatcher();this.doScan(false);this.forEachWatcher(this.path,n=>n.emit("change",this.path,e,t,false))}});this.parentWatcher.on("remove",()=>{this.onDirectoryRemoved("parent directory removed")})}}doScan(e){if(this.scanning){if(this.scanAgain){if(!e)this.scanAgainInitial=false}else{this.scanAgain=true;this.scanAgainInitial=e}return}this.scanning=true;if(this.timeout){clearTimeout(this.timeout);this.timeout=undefined}process.nextTick(()=>{if(this.closed)return;i.readdir(this.path,(t,n)=>{if(this.closed)return;if(t){if(t.code==="ENOENT"||t.code==="EPERM"){this.onDirectoryRemoved("scan readdir failed")}else{this.onScanError(t)}this.initialScan=false;this.initialScanFinished=Date.now();if(e){for(const e of this.watchers.values()){for(const t of e){if(t.checkStartTime(this.initialScanFinished,false)){t.emit("initial-missing","scan (parent directory missing in initial scan)")}}}}if(this.scanAgain){this.scanAgain=false;this.doScan(this.scanAgainInitial)}else{this.scanning=false}return}const r=new Set(n.map(e=>s.join(this.path,e.normalize("NFC"))));for(const t of this.files.keys()){if(!r.has(t)){this.setMissing(t,e,"scan (missing)")}}for(const t of this.directories.keys()){if(!r.has(t)){this.setMissing(t,e,"scan (missing)")}}if(this.scanAgain){this.scanAgain=false;this.doScan(e);return}const o=needCalls(r.size+1,()=>{if(this.closed)return;this.initialScan=false;this.initialScanRemoved=null;this.initialScanFinished=Date.now();if(e){const e=new Map(this.watchers);e.delete(withoutCase(this.path));for(const t of r){e.delete(withoutCase(t))}for(const t of e.values()){for(const e of t){if(e.checkStartTime(this.initialScanFinished,false)){e.emit("initial-missing","scan (missing in initial scan)")}}}}if(this.scanAgain){this.scanAgain=false;this.doScan(this.scanAgainInitial)}else{this.scanning=false;this.onScanFinished()}});for(const t of r){i.lstat(t,(n,r)=>{if(this.closed)return;if(n){if(n.code==="ENOENT"||n.code==="EPERM"||n.code==="EBUSY"){this.setMissing(t,e,"scan ("+n.code+")")}else{this.onScanError(n)}o();return}if(r.isFile()||r.isSymbolicLink()){if(r.mtime){ensureFsAccuracy(r.mtime)}this.setFileTime(t,+r.mtime||+r.ctime||1,e,true,"scan (file)")}else if(r.isDirectory()){if(!e||!this.directories.has(t))this.setDirectory(t,+r.mtime||+r.ctime||1,e,"scan (dir)")}o()})}o()})})}getTimes(){const e=Object.create(null);let t=this.lastWatchEvent;for(const[n,r]of this.files){fixupEntryAccuracy(r);t=Math.max(t,r.safeTime);e[n]=Math.max(r.safeTime,r.timestamp)}if(this.nestedWatching){for(const n of this.directories.values()){const r=n.directoryWatcher.getTimes();for(const n of Object.keys(r)){const i=r[n];t=Math.max(t,i);e[n]=i}}e[this.path]=t}if(!this.initialScan){for(const t of this.watchers.values()){for(const n of t){const t=n.path;if(!Object.prototype.hasOwnProperty.call(e,t)){e[t]=null}}}}return e}getTimeInfoEntries(){if(this._cachedTimeInfoEntries!==undefined)return this._cachedTimeInfoEntries;const e=new Map;let t=this.lastWatchEvent;for(const[n,r]of this.files){fixupEntryAccuracy(r);t=Math.max(t,r.safeTime);e.set(n,r)}if(this.nestedWatching){for(const n of this.directories.values()){const r=n.directoryWatcher.getTimeInfoEntries();for(const[n,i]of r){if(i){t=Math.max(t,i.safeTime)}e.set(n,i)}}e.set(this.path,{safeTime:t})}else{for(const t of this.directories.keys()){e.set(t,a)}e.set(this.path,a)}if(!this.initialScan){for(const t of this.watchers.values()){for(const n of t){const t=n.path;if(!e.has(t)){e.set(t,null)}}}this._cachedTimeInfoEntries=e}return e}close(){this.closed=true;this.initialScan=false;if(this.watcher){this.watcher.close();this.watcher=null}if(this.nestedWatching){for(const e of this.directories.values()){e.close()}this.directories.clear()}if(this.parentWatcher){this.parentWatcher.close();this.parentWatcher=null}this.emit("closed")}}e.exports=DirectoryWatcher;e.exports.EXISTANCE_ONLY_TIME_ENTRY=a;function fixupEntryAccuracy(e){if(e.accuracy>c){e.safeTime=e.safeTime-e.accuracy+c;e.accuracy=c}}function ensureFsAccuracy(e){if(!e)return;if(c>1&&e%1!==0)c=1;else if(c>10&&e%10!==0)c=10;else if(c>100&&e%100!==0)c=100}},99181:(e,t,n)=>{"use strict";const r=n(35747);const i=n(85622);const s=new Set(process.platform==="win32"?["EINVAL","ENOENT","UNKNOWN"]:["EINVAL"]);class LinkResolver{constructor(){this.cache=new Map}resolve(e){const t=this.cache.get(e);if(t!==undefined){return t}const n=i.dirname(e);if(n===e){const t=Object.freeze([e]);this.cache.set(e,t);return t}const o=this.resolve(n);let a=e;if(o[0]!==n){const t=i.basename(e);a=i.resolve(o[0],t)}try{const t=r.readlinkSync(a);const n=i.resolve(o[0],t);const c=this.resolve(n);let u;if(c.length>1&&o.length>1){const e=new Set(c);e.add(a);for(let t=1;t<o.length;t++){e.add(o[t])}u=Object.freeze(Array.from(e))}else if(o.length>1){u=o.slice();u[0]=c[0];u.push(a);Object.freeze(u)}else if(c.length>1){u=c.slice();u.push(a);Object.freeze(u)}else{u=Object.freeze([c[0],a])}this.cache.set(e,u);return u}catch(t){if(!s.has(t.code)){throw t}const n=o.slice();n[0]=a;Object.freeze(n);this.cache.set(e,n);return n}}}e.exports=LinkResolver},53982:(e,t,n)=>{"use strict";const r=n(85622);const i=n(56755);class WatcherManager{constructor(e){this.options=e;this.directoryWatchers=new Map}getDirectoryWatcher(e){const t=this.directoryWatchers.get(e);if(t===undefined){const t=new i(this,e,this.options);this.directoryWatchers.set(e,t);t.on("closed",()=>{this.directoryWatchers.delete(e)});return t}return t}watchFile(e,t){const n=r.dirname(e);if(n===e)return null;return this.getDirectoryWatcher(n).watch(e,t)}watchDirectory(e,t){return this.getDirectoryWatcher(e).watch(e,t)}}const s=new WeakMap;e.exports=(e=>{const t=s.get(e);if(t!==undefined)return t;const n=new WatcherManager(e);s.set(e,n);return n});e.exports.WatcherManager=WatcherManager},27601:(e,t,n)=>{"use strict";const r=n(85622);e.exports=((e,t)=>{const n=new Map;for(const[t,r]of e){n.set(t,{filePath:t,parent:undefined,children:undefined,entries:1,active:true,value:r})}let i=n.size;for(const e of n.values()){const t=r.dirname(e.filePath);if(t!==e.filePath){let r=n.get(t);if(r===undefined){r={filePath:t,parent:undefined,children:[e],entries:e.entries,active:false,value:undefined};n.set(t,r)}else{if(r.children===undefined){r.children=[e]}else{r.children.push(e)}do{r.entries+=e.entries;r=r.parent}while(r)}}}while(i>t){const e=t-i;let r=undefined;let s=Infinity;for(const i of n.values()){if(i.entries<=1||!i.children)continue;if(i.children.length<=1)continue;const n=i.entries-1>=e?i.entries-1-e:e-i.entries+1+t*.3;if(n<s){r=i;s=n}}if(!r)break;const o=r.entries-1;r.active=true;r.entries=1;i-=o;let a=r.parent;while(a){a.entries-=o;a=a.parent}const c=new Set(r.children);for(const e of c){e.active=false;e.entries=0;if(e.children){for(const t of e.children)c.add(t)}}}const s=new Map;for(const e of n.values()){if(!e.active)continue;const t=new Map;const n=new Set([e]);for(const e of n){if(e.value){if(Array.isArray(e.value)){for(const n of e.value){t.set(n,e.filePath)}}else{t.set(e.value,e.filePath)}}if(e.children){for(const t of e.children)n.add(t)}}s.set(e.filePath,t)}return s})},68862:(e,t,n)=>{"use strict";const r=n(35747);const i=n(85622);const{EventEmitter:s}=n(28614);const o=n(27601);const a=n(12087).platform()==="darwin";const c=n(12087).platform()==="win32";const u=a||c;const l=+process.env.WATCHPACK_WATCHER_LIMIT||(a?2e3:1e4);let f=false;let p=0;const d=new Map;const h=new Map;const m=new Map;const g=new Map;class DirectWatcher{constructor(e){this.filePath=e;this.watchers=new Set;this.watcher=undefined;try{const t=r.watch(e);this.watcher=t;t.on("change",(e,t)=>{for(const n of this.watchers){n.emit("change",e,t)}});t.on("error",e=>{for(const t of this.watchers){t.emit("error",e)}})}catch(e){process.nextTick(()=>{for(const t of this.watchers){t.emit("error",e)}})}p++}add(e){g.set(e,this);this.watchers.add(e)}remove(e){this.watchers.delete(e);if(this.watchers.size===0){m.delete(this.filePath);p--;if(this.watcher)this.watcher.close()}}getWatchers(){return this.watchers}}class RecursiveWatcher{constructor(e){this.rootPath=e;this.mapWatcherToPath=new Map;this.mapPathToWatchers=new Map;this.watcher=undefined;try{const t=r.watch(e,{recursive:true});this.watcher=t;t.on("change",(e,t)=>{if(!t){for(const t of this.mapWatcherToPath.keys()){t.emit("change",e)}}else{const n=i.dirname(t);const r=this.mapPathToWatchers.get(n);if(r===undefined)return;for(const n of r){n.emit("change",e,i.basename(t))}}});t.on("error",e=>{for(const t of this.mapWatcherToPath.keys()){t.emit("error",e)}})}catch(e){process.nextTick(()=>{for(const t of this.mapWatcherToPath.keys()){t.emit("error",e)}})}p++}add(e,t){g.set(t,this);const n=e.slice(this.rootPath.length+1)||".";this.mapWatcherToPath.set(t,n);const r=this.mapPathToWatchers.get(n);if(r===undefined){const e=new Set;e.add(t);this.mapPathToWatchers.set(n,e)}else{r.add(t)}}remove(e){const t=this.mapWatcherToPath.get(e);if(!t)return;this.mapWatcherToPath.delete(e);const n=this.mapPathToWatchers.get(t);n.delete(e);if(n.size===0){this.mapPathToWatchers.delete(t)}if(this.mapWatcherToPath.size===0){h.delete(this.rootPath);p--;if(this.watcher)this.watcher.close()}}getWatchers(){return this.mapWatcherToPath}}class Watcher extends s{close(){if(d.has(this)){d.delete(this);return}const e=g.get(this);e.remove(this);g.delete(this)}}const y=e=>{const t=m.get(e);if(t!==undefined)return t;const n=new DirectWatcher(e);m.set(e,n);return n};const v=e=>{const t=h.get(e);if(t!==undefined)return t;const n=new RecursiveWatcher(e);h.set(e,n);return n};const _=()=>{const e=new Map;const t=(t,n)=>{const r=e.get(n);if(r===undefined){e.set(n,t)}else if(Array.isArray(r)){r.push(t)}else{e.set(n,[r,t])}};for(const[e,n]of d){t(e,n)}d.clear();if(!u||l-p>=e.size){for(const[t,n]of e){const e=y(t);if(Array.isArray(n)){for(const t of n)e.add(t)}else{e.add(n)}}return}for(const e of h.values()){for(const[n,r]of e.getWatchers()){t(n,i.join(e.rootPath,r))}}for(const e of m.values()){for(const n of e.getWatchers()){t(n,e.filePath)}}const n=o(e,l*.9);for(const[e,t]of n){if(t.size===1){for(const[e,n]of t){const t=y(n);const r=g.get(e);if(r===t)continue;t.add(e);if(r!==undefined)r.remove(e)}}else{const n=new Set(t.values());if(n.size>1){const n=v(e);for(const[e,r]of t){const t=g.get(e);if(t===n)continue;n.add(r,e);if(t!==undefined)t.remove(e)}}else{for(const e of n){const n=y(e);for(const e of t.keys()){const t=g.get(e);if(t===n)continue;n.add(e);if(t!==undefined)t.remove(e)}}}}}};t.watch=(e=>{const t=new Watcher;const n=m.get(e);if(n!==undefined){n.add(t);return t}let r=e;for(;;){const n=h.get(r);if(n!==undefined){n.add(e,t);return t}const s=i.dirname(r);if(s===r)break;r=s}d.set(t,e);if(!f)_();return t});t.batch=(e=>{f=true;try{e()}finally{f=false;_()}});t.getNumberOfWatchers=(()=>{return p})},92512:(e,t,n)=>{"use strict";const r=n(53982);const i=n(99181);const s=n(28614).EventEmitter;const o=n(70554);const a=n(68862);let c;const u=[];const l={};function addWatchersToSet(e,t){for(const n of e){if(n!==true&&!t.has(n.directoryWatcher)){t.add(n.directoryWatcher);addWatchersToSet(n.directoryWatcher.directories.values(),t)}}}const f=e=>{const t=o(e,{globstar:true,extended:true}).source;const n=t.slice(0,t.length-1)+"(?:$|\\/)";return n};const p=e=>{if(Array.isArray(e)){return new RegExp(e.map(e=>f(e)).join("|"))}else if(typeof e==="string"){return new RegExp(f(e))}else if(e instanceof RegExp){return e}else if(e){throw new Error(`Invalid option for 'ignored': ${e}`)}else{return undefined}};const d=e=>{return{followSymlinks:!!e.followSymlinks,ignored:p(e.ignored),poll:e.poll}};const h=new WeakMap;const m=e=>{const t=h.get(e);if(t!==undefined)return t;const n=d(e);h.set(e,n);return n};class Watchpack extends s{constructor(e){super();if(!e)e=l;this.options=e;this.aggregateTimeout=typeof e.aggregateTimeout==="number"?e.aggregateTimeout:200;this.watcherOptions=m(e);this.watcherManager=r(this.watcherOptions);this.fileWatchers=new Map;this.directoryWatchers=new Map;this.startTime=undefined;this.paused=false;this.aggregatedChanges=new Set;this.aggregatedRemovals=new Set;this.aggregateTimer=undefined;this._onTimeout=this._onTimeout.bind(this)}watch(e,t,n){let r,s,o,c;if(!t){({files:r=u,directories:s=u,missing:o=u,startTime:c}=e)}else{r=e;s=t;o=u;c=n}this.paused=false;const l=this.fileWatchers;const f=this.directoryWatchers;const p=this.watcherOptions.ignored;const d=p?e=>!p.test(e.replace(/\\/g,"/")):()=>true;const h=(e,t,n)=>{const r=e.get(t);if(r===undefined){e.set(t,[n])}else{r.push(n)}};const m=new Map;const g=new Map;const y=new Set;if(this.watcherOptions.followSymlinks){const e=new i;for(const t of r){if(d(t)){for(const n of e.resolve(t)){if(t===n||d(n)){h(m,n,t)}}}}for(const t of o){if(d(t)){for(const n of e.resolve(t)){if(t===n||d(n)){y.add(t);h(m,n,t)}}}}for(const t of s){if(d(t)){let n=true;for(const r of e.resolve(t)){if(d(r)){h(n?g:m,r,t)}n=false}}}}else{for(const e of r){if(d(e)){h(m,e,e)}}for(const e of o){if(d(e)){y.add(e);h(m,e,e)}}for(const e of s){if(d(e)){h(g,e,e)}}}const v=new Map;const _=new Map;const b=(e,t,n)=>{e.on("initial-missing",e=>{for(const t of n){if(!y.has(t))this._onRemove(t,t,e)}});e.on("change",(e,t)=>{for(const r of n){this._onChange(r,e,r,t)}});e.on("remove",e=>{for(const t of n){this._onRemove(t,t,e)}});v.set(t,e)};const E=(e,t,n)=>{e.on("initial-missing",e=>{for(const t of n){this._onRemove(t,t,e)}});e.on("change",(e,t,r)=>{for(const i of n){this._onChange(i,t,e,r)}});e.on("remove",e=>{for(const t of n){this._onRemove(t,t,e)}});_.set(t,e)};const w=[];const S=[];for(const[e,t]of l){if(!m.has(e)){t.close()}else{w.push(t)}}for(const[e,t]of f){if(!g.has(e)){t.close()}else{S.push(t)}}a.batch(()=>{for(const[e,t]of m){const n=this.watcherManager.watchFile(e,c);if(n){b(n,e,t)}}for(const[e,t]of g){const n=this.watcherManager.watchDirectory(e,c);if(n){E(n,e,t)}}});for(const e of w)e.close();for(const e of S)e.close();this.fileWatchers=v;this.directoryWatchers=_;this.startTime=c}close(){this.paused=true;if(this.aggregateTimer)clearTimeout(this.aggregateTimer);for(const e of this.fileWatchers.values())e.close();for(const e of this.directoryWatchers.values())e.close();this.fileWatchers.clear();this.directoryWatchers.clear()}pause(){this.paused=true;if(this.aggregateTimer)clearTimeout(this.aggregateTimer)}getTimes(){const e=new Set;addWatchersToSet(this.fileWatchers.values(),e);addWatchersToSet(this.directoryWatchers.values(),e);const t=Object.create(null);for(const n of e){const e=n.getTimes();for(const n of Object.keys(e))t[n]=e[n]}return t}getTimeInfoEntries(){if(c===undefined){c=n(56755).EXISTANCE_ONLY_TIME_ENTRY}const e=new Set;addWatchersToSet(this.fileWatchers.values(),e);addWatchersToSet(this.directoryWatchers.values(),e);const t=new Map;for(const n of e){const e=n.getTimeInfoEntries();for(const[n,r]of e){if(t.has(n)){if(r===c)continue;const e=t.get(n);if(e===r)continue;if(e!==c){t.set(n,Object.assign({},e,r));continue}}t.set(n,r)}}return t}_missingWatcher(e,t){if(t){t.on("change",(t,n)=>{this._onChange(e,t,e,n)});t.on("remove",t=>{this._onRemove(e,e,t)})}return t}_fileWatcher(e,t){if(t){t.on("initial-missing",t=>{this._onRemove(e,e,t)});t.on("change",(t,n)=>{this._onChange(e,t,e,n)});t.on("remove",t=>{this._onRemove(e,e,t)})}return t}_dirWatcher(e,t){t.on("initial-missing",t=>{this._onRemove(e,e,t)});t.on("change",(t,n,r)=>{this._onChange(e,n,t,r)});t.on("remove",t=>{this._onRemove(e,e,t)});return t}_onChange(e,t,n,r){n=n||e;if(this.paused)return;this.emit("change",n,t,r);if(this.aggregateTimer)clearTimeout(this.aggregateTimer);this.aggregatedRemovals.delete(e);this.aggregatedChanges.add(e);this.aggregateTimer=setTimeout(this._onTimeout,this.aggregateTimeout)}_onRemove(e,t,n){t=t||e;if(this.paused)return;this.emit("remove",t,n);if(this.aggregateTimer)clearTimeout(this.aggregateTimer);this.aggregatedChanges.delete(e);this.aggregatedRemovals.add(e);this.aggregateTimer=setTimeout(this._onTimeout,this.aggregateTimeout)}_onTimeout(){this.aggregateTimer=undefined;const e=this.aggregatedChanges;const t=this.aggregatedRemovals;this.aggregatedChanges=new Set;this.aggregatedRemovals=new Set;this.emit("aggregated",e,t)}}e.exports=Watchpack},70417:(e,t,n)=>{"use strict";const r=n(12112);class CachedSource extends r{constructor(e){super();this._source=e;this._cachedSource=undefined;this._cachedSize=undefined;this._cachedMaps={};if(e.node)this.node=function(e){return this._source.node(e)};if(e.listMap)this.listMap=function(e){return this._source.listMap(e)}}source(){if(typeof this._cachedSource!=="undefined")return this._cachedSource;return this._cachedSource=this._source.source()}size(){if(typeof this._cachedSize!=="undefined")return this._cachedSize;if(typeof this._cachedSource!=="undefined"){if(Buffer.from.length===1)return new Buffer(this._cachedSource).length;return this._cachedSize=Buffer.byteLength(this._cachedSource)}return this._cachedSize=this._source.size()}sourceAndMap(e){const t=JSON.stringify(e);if(typeof this._cachedSource!=="undefined"&&t in this._cachedMaps)return{source:this._cachedSource,map:this._cachedMaps[t]};else if(typeof this._cachedSource!=="undefined"){return{source:this._cachedSource,map:this._cachedMaps[t]=this._source.map(e)}}else if(t in this._cachedMaps){return{source:this._cachedSource=this._source.source(),map:this._cachedMaps[t]}}const n=this._source.sourceAndMap(e);this._cachedSource=n.source;this._cachedMaps[t]=n.map;return{source:this._cachedSource,map:this._cachedMaps[t]}}map(e){if(!e)e={};const t=JSON.stringify(e);if(t in this._cachedMaps)return this._cachedMaps[t];return this._cachedMaps[t]=this._source.map()}updateHash(e){this._source.updateHash(e)}}e.exports=CachedSource},52388:(e,t,n)=>{"use strict";const r=n(99596).SourceNode;const i=n(6900).SourceListMap;const s=n(12112);class ConcatSource extends s{constructor(){super();this.children=[];for(var e=0;e<arguments.length;e++){var t=arguments[e];if(t instanceof ConcatSource){var n=t.children;for(var r=0;r<n.length;r++)this.children.push(n[r])}else{this.children.push(t)}}}add(e){if(e instanceof ConcatSource){var t=e.children;for(var n=0;n<t.length;n++)this.children.push(t[n])}else{this.children.push(e)}}source(){let e="";const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];e+=typeof r==="string"?r:r.source()}return e}size(){let e=0;const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];e+=typeof r==="string"?r.length:r.size()}return e}node(e){const t=new r(null,null,null,this.children.map(function(t){return typeof t==="string"?t:t.node(e)}));return t}listMap(e){const t=new i;var n=this.children;for(var r=0;r<n.length;r++){var s=n[r];if(typeof s==="string")t.add(s);else t.add(s.listMap(e))}return t}updateHash(e){var t=this.children;for(var n=0;n<t.length;n++){var r=t[n];if(typeof r==="string")e.update(r);else r.updateHash(e)}}}n(93020)(ConcatSource.prototype);e.exports=ConcatSource},32631:(e,t,n)=>{"use strict";var r=n(99596).SourceNode;var i=n(99596).SourceMapConsumer;var s=n(6900).SourceListMap;var o=n(12112);class LineToLineMappedSource extends o{constructor(e,t,n){super();this._value=e;this._name=t;this._originalSource=n}source(){return this._value}node(e){var t=this._value;var n=this._name;var i=t.split("\n");var s=new r(null,null,null,i.map(function(e,t){return new r(t+1,0,n,e+(t!=i.length-1?"\n":""))}));s.setSourceContent(n,this._originalSource);return s}listMap(e){return new s(this._value,this._name,this._originalSource)}updateHash(e){e.update(this._value);e.update(this._originalSource)}}n(93020)(LineToLineMappedSource.prototype);e.exports=LineToLineMappedSource},57579:(e,t,n)=>{"use strict";var r=n(99596).SourceNode;var i=n(99596).SourceMapConsumer;var s=n(6900).SourceListMap;var o=n(12112);var a=/(?!$)[^\n\r;{}]*[\n\r;{}]*/g;function _splitCode(e){return e.match(a)||[]}class OriginalSource extends o{constructor(e,t){super();this._value=e;this._name=t}source(){return this._value}node(e){e=e||{};var t=this._sourceMap;var n=this._value;var i=this._name;var s=n.split("\n");var o=new r(null,null,null,s.map(function(t,n){var o=0;if(e.columns===false){var a=t+(n!=s.length-1?"\n":"");return new r(n+1,0,i,a)}return new r(null,null,null,_splitCode(t+(n!=s.length-1?"\n":"")).map(function(e){if(/^\s*$/.test(e)){o+=e.length;return e}var t=new r(n+1,o,i,e);o+=e.length;return t}))}));o.setSourceContent(i,n);return o}listMap(e){return new s(this._value,this._name,this._value)}updateHash(e){e.update(this._value)}}n(93020)(OriginalSource.prototype);e.exports=OriginalSource},69852:(e,t,n)=>{"use strict";var r=n(12112);var i=n(99596).SourceNode;var s=/\n(?=.|\s)/g;function cloneAndPrefix(e,t,n){if(typeof e==="string"){var r=e.replace(s,"\n"+t);if(n.length>0)r=n.pop()+r;if(/\n$/.test(e))n.push(t);return r}else{var o=new i(e.line,e.column,e.source,e.children.map(function(e){return cloneAndPrefix(e,t,n)}),e.name);o.sourceContents=e.sourceContents;return o}}class PrefixSource extends r{constructor(e,t){super();this._source=t;this._prefix=e}source(){var e=typeof this._source==="string"?this._source:this._source.source();var t=this._prefix;return t+e.replace(s,"\n"+t)}node(e){var t=this._source.node(e);var n=this._prefix;var r=[];var s=new i;t.walkSourceContents(function(e,t){s.setSourceContent(e,t)});var o=true;t.walk(function(e,t){var s=e.split(/(\n)/);for(var a=0;a<s.length;a+=2){var c=a+1<s.length;var u=s[a]+(c?"\n":"");if(u){if(o){r.push(n)}r.push(new i(t.line,t.column,t.source,u,t.name));o=c}}});s.add(r);return s}listMap(e){var t=this._prefix;var n=this._source.listMap(e);return n.mapGeneratedCode(function(e){return t+e.replace(s,"\n"+t)})}updateHash(e){if(typeof this._source==="string")e.update(this._source);else this._source.updateHash(e);if(typeof this._prefix==="string")e.update(this._prefix);else this._prefix.updateHash(e)}}n(93020)(PrefixSource.prototype);e.exports=PrefixSource},57902:(e,t,n)=>{"use strict";var r=n(12112);var i=n(99596).SourceNode;var s=n(6900).SourceListMap;class RawSource extends r{constructor(e){super();this._value=e}source(){return this._value}map(e){return null}node(e){return new i(null,null,null,this._value)}listMap(e){return new s(this._value)}updateHash(e){e.update(this._value)}}e.exports=RawSource},1324:(e,t,n)=>{"use strict";var r=n(12112);var i=n(99596).SourceNode;class Replacement{constructor(e,t,n,r,i){this.start=e;this.end=t;this.content=n;this.insertIndex=r;this.name=i}}class ReplaceSource extends r{constructor(e,t){super();this._source=e;this._name=t;this.replacements=[]}replace(e,t,n,r){if(typeof n!=="string")throw new Error("insertion must be a string, but is a "+typeof n);this.replacements.push(new Replacement(e,t,n,this.replacements.length,r))}insert(e,t,n){if(typeof t!=="string")throw new Error("insertion must be a string, but is a "+typeof t+": "+t);this.replacements.push(new Replacement(e,e-1,t,this.replacements.length,n))}source(e){return this._replaceString(this._source.source())}original(){return this._source}_sortReplacements(){this.replacements.sort(function(e,t){var n=t.end-e.end;if(n!==0)return n;n=t.start-e.start;if(n!==0)return n;return t.insertIndex-e.insertIndex})}_replaceString(e){if(typeof e!=="string")throw new Error("str must be a string, but is a "+typeof e+": "+e);this._sortReplacements();var t=[e];this.replacements.forEach(function(e){var n=t.pop();var r=this._splitString(n,Math.floor(e.end+1));var i=this._splitString(r[0],Math.floor(e.start));t.push(r[1],e.content,i[0])},this);let n="";for(let e=t.length-1;e>=0;--e){n+=t[e]}return n}node(e){var t=this._source.node(e);if(this.replacements.length===0){return t}this._sortReplacements();var n=new ReplacementEnumerator(this.replacements);var r=[];var s=0;var o=Object.create(null);var a=Object.create(null);var c=new i;t.walkSourceContents(function(e,t){c.setSourceContent(e,t);o["$"+e]=t});var u=this._replaceInStringNode.bind(this,r,n,function getOriginalSource(e){var t="$"+e.source;var n=a[t];if(!n){var r=o[t];if(!r)return null;n=r.split("\n").map(function(e){return e+"\n"});a[t]=n}if(e.line>n.length)return null;var i=n[e.line-1];return i.substr(e.column)});t.walk(function(e,t){s=u(e,s,t)});var l=n.footer();if(l){r.push(l)}c.add(r);return c}listMap(e){this._sortReplacements();var t=this._source.listMap(e);var n=0;var r=this.replacements;var i=r.length-1;var s=0;t=t.mapGeneratedCode(function(e){var t=n+e.length;if(s>e.length){s-=e.length;e=""}else{if(s>0){e=e.substr(s);n+=s;s=0}var o="";while(i>=0&&r[i].start<t){var a=r[i];var c=Math.floor(a.start);var u=Math.floor(a.end+1);var l=e.substr(0,Math.max(0,c-n));if(u<=t){var f=e.substr(Math.max(0,u-n));o+=l+a.content;e=f;n=Math.max(n,u)}else{o+=l+a.content;e="";s=u-t}i--}e=o+e}n=t;return e});var o="";while(i>=0){o+=r[i].content;i--}if(o){t.add(o)}return t}_splitString(e,t){return t<=0?["",e]:[e.substr(0,t),e.substr(t)]}_replaceInStringNode(e,t,n,r,s,o){var a=undefined;do{var c=t.position-s;if(c<0){c=0}if(c>=r.length||t.done){if(t.emit){var u=new i(o.line,o.column,o.source,r,o.name);e.push(u)}return s+r.length}var l=o.column;var f;if(c>0){f=r.slice(0,c);if(a===undefined){a=n(o)}if(a&&a.length>=c&&a.startsWith(f)){o.column+=c;a=a.substr(c)}}var p=t.next();if(!p){if(c>0){var d=new i(o.line,l,o.source,f,o.name);e.push(d)}if(t.value){e.push(new i(o.line,o.column,o.source,t.value,o.name||t.name))}}r=r.substr(c);s+=c}while(true)}}class ReplacementEnumerator{constructor(e){this.replacements=e||[];this.index=this.replacements.length;this.done=false;this.emit=false;this.next()}next(){if(this.done)return true;if(this.emit){var e=this.replacements[this.index];var t=Math.floor(e.end+1);this.position=t;this.value=e.content;this.name=e.name}else{this.index--;if(this.index<0){this.done=true}else{var n=this.replacements[this.index];var r=Math.floor(n.start);this.position=r}}if(this.position<0)this.position=0;this.emit=!this.emit;return this.emit}footer(){if(!this.done&&!this.emit)this.next();if(this.done){return[]}else{var e="";for(var t=this.index;t>=0;t--){var n=this.replacements[t];e+=n.content}return e}}}n(93020)(ReplaceSource.prototype);e.exports=ReplaceSource},12112:(e,t,n)=>{"use strict";var r=n(99596).SourceNode;var i=n(99596).SourceMapConsumer;class Source{source(){throw new Error("Abstract")}size(){if(Buffer.from.length===1)return new Buffer(this.source()).length;return Buffer.byteLength(this.source())}map(e){return null}sourceAndMap(e){return{source:this.source(),map:this.map()}}node(){throw new Error("Abstract")}listNode(){throw new Error("Abstract")}updateHash(e){var t=this.source();e.update(t||"")}}e.exports=Source},93020:e=>{"use strict";e.exports=function mixinSourceAndMap(e){e.map=function(e){e=e||{};if(e.columns===false){return this.listMap(e).toStringWithSourceMap({file:"x"}).map}return this.node(e).toStringWithSourceMap({file:"x"}).map.toJSON()};e.sourceAndMap=function(e){e=e||{};if(e.columns===false){return this.listMap(e).toStringWithSourceMap({file:"x"})}var t=this.node(e).toStringWithSourceMap({file:"x"});return{source:t.code,map:t.map.toJSON()}}}},84172:(e,t,n)=>{"use strict";var r=n(99596).SourceNode;var i=n(99596).SourceMapConsumer;var s=n(99596).SourceMapGenerator;var o=n(6900).SourceListMap;var a=n(6900).fromStringWithSourceMap;var c=n(12112);var u=n(22368);class SourceMapSource extends c{constructor(e,t,n,r,i,s){super();this._value=e;this._name=t;this._sourceMap=n;this._originalSource=r;this._innerSourceMap=i;this._removeOriginalSource=s}source(){return this._value}node(e){var t=this._sourceMap;var n=r.fromStringWithSourceMap(this._value,new i(t));n.setSourceContent(this._name,this._originalSource);var s=this._innerSourceMap;if(s){n=u(n,new i(s),this._name,this._removeOriginalSource)}return n}listMap(e){e=e||{};if(e.module===false)return new o(this._value,this._name,this._value);return a(this._value,typeof this._sourceMap==="string"?JSON.parse(this._sourceMap):this._sourceMap)}updateHash(e){e.update(this._value);if(this._originalSource)e.update(this._originalSource)}}n(93020)(SourceMapSource.prototype);e.exports=SourceMapSource},22368:(e,t,n)=>{"use strict";var r=n(99596).SourceNode;var i=n(99596).SourceMapConsumer;var s=function(e,t,n,s){var o=new r;var a=[];var c={};var u={};var l={};var f={};t.eachMapping(function(e){(u[e.generatedLine]=u[e.generatedLine]||[]).push(e)},null,i.GENERATED_ORDER);e.walkSourceContents(function(e,t){c["$"+e]=t});var p=c["$"+n];var d=p?p.split("\n"):undefined;e.walk(function(e,i){var p;if(i.source===n&&i.line&&u[i.line]){var h;var m=u[i.line];for(var g=0;g<m.length;g++){if(m[g].generatedColumn<=i.column){h=m[g]}}if(h){var y=false;var v;var _;var b;var E=h.source;if(d&&E&&(v=d[h.generatedLine-1])&&((b=f[E])||(_=t.sourceContentFor(E,true)))){if(!b){b=f[E]=_.split("\n")}var w=b[h.originalLine-1];if(w){var S=i.column-h.generatedColumn;if(S>0){var k=v.slice(h.generatedColumn,i.column);var D=w.slice(h.originalColumn,h.originalColumn+S);if(k===D){h=Object.assign({},h,{originalColumn:h.originalColumn+S,generatedColumn:i.column})}}if(!h.name&&i.name){y=w.slice(h.originalColumn,h.originalColumn+i.name.length)===i.name}}}p=h.source;a.push(new r(h.originalLine,h.originalColumn,p,e,y?i.name:h.name));if(!("$"+p in l)){l["$"+p]=true;var x=t.sourceContentFor(p,true);if(x){o.setSourceContent(p,x)}}return}}if(s&&i.source===n||!i.source){a.push(e);return}p=i.source;a.push(new r(i.line,i.column,p,e,i.name));if("$"+p in c){if(!("$"+p in l)){o.setSourceContent(p,c["$"+p]);delete c["$"+p]}}});o.add(a);return o};e.exports=s},2991:(e,t,n)=>{t.Source=n(12112);t.RawSource=n(57902);t.OriginalSource=n(57579);t.SourceMapSource=n(84172);t.LineToLineMappedSource=n(32631);t.CachedSource=n(70417);t.ConcatSource=n(52388);t.ReplaceSource=n(1324);t.PrefixSource=n(69852)},32323:(e,t,n)=>{"use strict";const r=n(76150);const i=n(81627);const s=n(66298);const{toConstantDependency:o,evaluateToString:a}=n(48472);const c=n(64255);const u=n(75948);const l={__webpack_require__:{expr:r.require,req:[r.require],type:"function",assign:false},__webpack_public_path__:{expr:r.publicPath,req:[r.publicPath],type:"string",assign:true},__webpack_modules__:{expr:r.moduleFactories,req:[r.moduleFactories],type:"object",assign:false},__webpack_chunk_load__:{expr:r.ensureChunk,req:[r.ensureChunk],type:"function",assign:true},__non_webpack_require__:{expr:"require",req:null,type:undefined,assign:true},__webpack_nonce__:{expr:r.scriptNonce,req:[r.scriptNonce],type:"string",assign:true},__webpack_hash__:{expr:`${r.getFullHash}()`,req:[r.getFullHash],type:"string",assign:false},__webpack_chunkname__:{expr:r.chunkName,req:[r.chunkName],type:"string",assign:false},__webpack_get_script_filename__:{expr:r.getChunkScriptFilename,req:[r.getChunkScriptFilename],type:"function",assign:true},"require.onError":{expr:r.uncaughtErrorHandler,req:[r.uncaughtErrorHandler],type:undefined,assign:true},__system_context__:{expr:r.systemContext,req:[r.systemContext],type:"object",assign:false},__webpack_share_scopes__:{expr:r.shareScopeMap,req:[r.shareScopeMap],type:"object",assign:false},__webpack_init_sharing__:{expr:r.initializeSharing,req:[r.initializeSharing],type:"function",assign:true}};class APIPlugin{apply(e){e.hooks.compilation.tap("APIPlugin",(e,{normalModuleFactory:t})=>{e.dependencyTemplates.set(s,new s.Template);e.hooks.runtimeRequirementInTree.for(r.chunkName).tap("APIPlugin",t=>{e.addRuntimeModule(t,new c(t.name));return true});e.hooks.runtimeRequirementInTree.for(r.getFullHash).tap("APIPlugin",(t,n)=>{const r=new u;e.addRuntimeModule(t,r);e.chunkGraph.addFullHashModuleToChunk(t,r);return true});const n=e=>{Object.keys(l).forEach(t=>{const n=l[t];e.hooks.expression.for(t).tap("APIPlugin",o(e,n.expr,n.req));if(n.assign===false){e.hooks.assign.for(t).tap("APIPlugin",e=>{const n=new i(`${t} must not be assigned`);n.loc=e.loc;throw n})}if(n.type){e.hooks.evaluateTypeof.for(t).tap("APIPlugin",a(n.type))}})};t.hooks.parser.for("javascript/auto").tap("APIPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("APIPlugin",n);t.hooks.parser.for("javascript/esm").tap("APIPlugin",n)})}}e.exports=APIPlugin},75884:(e,t,n)=>{"use strict";const r=n(81627);const i=/at ([a-zA-Z0-9_.]*)/;function createMessage(e){return`Abstract method${e?" "+e:""}. Must be overridden.`}function Message(){this.stack=undefined;Error.captureStackTrace(this);const e=this.stack.split("\n")[3].match(i);this.message=e&&e[1]?createMessage(e[1]):createMessage()}class AbstractMethodError extends r{constructor(){super((new Message).message);this.name="AbstractMethodError"}}e.exports=AbstractMethodError},98221:(e,t,n)=>{"use strict";const r=n(32448);const i=n(56202);class AsyncDependenciesBlock extends r{constructor(e,t,n){super();if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupOptions=e;this.loc=t;this.request=n;this.parent=undefined}get chunkName(){return this.groupOptions.name}set chunkName(e){this.groupOptions.name=e}updateHash(e,t){const{chunkGraph:n}=t;e.update(JSON.stringify(this.groupOptions));const r=n.getBlockChunkGroup(this);e.update(r?r.id:"");super.updateHash(e,t)}isAsync(e){return true}serialize(e){const{write:t}=e;t(this.groupOptions);t(this.loc);t(this.request);super.serialize(e)}deserialize(e){const{read:t}=e;this.groupOptions=t();this.loc=t();this.request=t();super.deserialize(e)}}i(AsyncDependenciesBlock,"webpack/lib/AsyncDependenciesBlock");Object.defineProperty(AsyncDependenciesBlock.prototype,"module",{get(){throw new Error("module property was removed from AsyncDependenciesBlock (it's not needed)")},set(){throw new Error("module property was removed from AsyncDependenciesBlock (it's not needed)")}});e.exports=AsyncDependenciesBlock},21357:(e,t,n)=>{"use strict";const r=n(81627);class AsyncDependencyToInitialChunkError extends r{constructor(e,t,n){super(`It's not allowed to load an initial chunk on demand. The chunk name "${e}" is already used by an entrypoint.`);this.name="AsyncDependencyToInitialChunkError";this.module=t;this.loc=n;Error.captureStackTrace(this,this.constructor)}}e.exports=AsyncDependencyToInitialChunkError},20383:(e,t,n)=>{"use strict";const r=n(62355);const i=n(53520);const s=n(88281);class AutomaticPrefetchPlugin{apply(e){e.hooks.compilation.tap("AutomaticPrefetchPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(s,t)});let t=null;e.hooks.afterCompile.tap("AutomaticPrefetchPlugin",e=>{t=Array.from(e.modules).filter(e=>e instanceof i).map(e=>({context:e.context,request:e.request}))});e.hooks.make.tapAsync("AutomaticPrefetchPlugin",(n,i)=>{if(!t)return i();r.forEach(t,(t,r)=>{n.addModuleChain(t.context||e.context,new s(t.request),r)},i)})}}e.exports=AutomaticPrefetchPlugin},58779:(e,t,n)=>{"use strict";const r=n(15235);const{ConcatSource:i}=n(48135);const s=n(3080);const o=n(70354);const a=n(58159);const c=n(4837);const u=e=>{if(!e.includes("\n")){return a.toComment(e)}return`/*!\n * ${e.replace(/\*\//g,"* /").split("\n").join("\n * ").replace(/\s+\n/g,"\n").trimRight()}\n */`};class BannerPlugin{constructor(e){if(typeof e==="string"||typeof e==="function"){e={banner:e}}r(c,e,{name:"Banner Plugin",baseDataPath:"options"});this.options=e;const t=e.banner;if(typeof t==="function"){const e=t;this.banner=this.options.raw?e:t=>u(e(t))}else{const e=this.options.raw?t:u(t);this.banner=(()=>e)}}apply(e){const t=this.options;const n=this.banner;const r=o.matchObject.bind(undefined,t);e.hooks.compilation.tap("BannerPlugin",e=>{e.hooks.processAssets.tap({name:"BannerPlugin",stage:s.PROCESS_ASSETS_STAGE_ADDITIONS},()=>{for(const s of e.chunks){if(t.entryOnly&&!s.canBeInitial()){continue}for(const t of s.files){if(!r(t)){continue}const o={chunk:s,filename:t};const a=e.getPath(n,o);e.updateAsset(t,e=>new i(a,"\n",e))}}})})}}e.exports=BannerPlugin},54725:(e,t,n)=>{"use strict";const{AsyncParallelHook:r,AsyncSeriesBailHook:i,SyncHook:s}=n(92960);const{makeWebpackError:o,makeWebpackErrorCallback:a}=n(3728);const c=(e,t)=>{return n=>{if(--e===0){return t(n)}if(n&&e>0){e=0;return t(n)}}};class Cache{constructor(){this.hooks={get:new i(["identifier","etag","gotHandlers"]),store:new r(["identifier","etag","data"]),storeBuildDependencies:new r(["dependencies"]),beginIdle:new s([]),endIdle:new r([]),shutdown:new r([])}}get(e,t,n){const r=[];this.hooks.get.callAsync(e,t,r,(e,t)=>{if(e){n(o(e,"Cache.hooks.get"));return}if(t===null){t=undefined}if(r.length>1){const e=c(r.length,()=>n(null,t));for(const n of r){n(t,e)}}else if(r.length===1){r[0](t,()=>n(null,t))}else{n(null,t)}})}store(e,t,n,r){this.hooks.store.callAsync(e,t,n,a(r,"Cache.hooks.store"))}storeBuildDependencies(e,t){this.hooks.storeBuildDependencies.callAsync(e,a(t,"Cache.hooks.storeBuildDependencies"))}beginIdle(){this.hooks.beginIdle.call()}endIdle(e){this.hooks.endIdle.callAsync(a(e,"Cache.hooks.endIdle"))}shutdown(e){this.hooks.shutdown.callAsync(a(e,"Cache.hooks.shutdown"))}}Cache.STAGE_MEMORY=-10;Cache.STAGE_DEFAULT=0;Cache.STAGE_DISK=10;Cache.STAGE_NETWORK=20;e.exports=Cache},6503:(e,t,n)=>{"use strict";const r=n(62355);const i=n(77034);const s=n(10168);class MultiItemCache{constructor(e){this._items=e}get(e){const t=n=>{this._items[n].get((r,i)=>{if(r)return e(r);if(i!==undefined)return e(null,i);if(++n>=this._items.length)return e();t(n)})};t(0)}getPromise(){const e=t=>{return this._items[t].getPromise().then(n=>{if(n!==undefined)return n;if(++t<this._items.length)return e(t)})};return e(0)}store(e,t){r.each(this._items,(t,n)=>t.store(e,n),t)}storePromise(e){return Promise.all(this._items.map(t=>t.storePromise(e))).then(()=>{})}}class ItemCacheFacade{constructor(e,t,n){this._cache=e;this._name=t;this._etag=n}get(e){this._cache.get(this._name,this._etag,e)}getPromise(){return new Promise((e,t)=>{this._cache.get(this._name,this._etag,(n,r)=>{if(n){t(n)}else{e(r)}})})}store(e,t){this._cache.store(this._name,this._etag,e,t)}storePromise(e){return new Promise((t,n)=>{this._cache.store(this._name,this._etag,e,e=>{if(e){n(e)}else{t()}})})}provide(e,t){this.get((n,r)=>{if(n)return t(n);if(r!==undefined)return r;e((e,n)=>{if(e)return t(e);this.store(n,e=>{if(e)return t(e);t(null,n)})})})}async providePromise(e){const t=await this.getPromise();if(t!==undefined)return t;const n=await e();await this.storePromise(n);return n}}class CacheFacade{constructor(e,t){this._cache=e;this._name=t}getChildCache(e){return new CacheFacade(this._cache,`${this._name}|${e}`)}getItemCache(e,t){return new ItemCacheFacade(this._cache,`${this._name}|${e}`,t)}getLazyHashedEtag(e){return i(e)}mergeEtags(e,t){return s(e,t)}get(e,t,n){this._cache.get(`${this._name}|${e}`,t,n)}getPromise(e,t){return new Promise((n,r)=>{this._cache.get(`${this._name}|${e}`,t,(e,t)=>{if(e){r(e)}else{n(t)}})})}store(e,t,n,r){this._cache.store(`${this._name}|${e}`,t,n,r)}storePromise(e,t,n){return new Promise((r,i)=>{this._cache.store(`${this._name}|${e}`,t,n,e=>{if(e){i(e)}else{r()}})})}provide(e,t,n,r){this.get(e,t,(i,s)=>{if(i)return r(i);if(s!==undefined)return s;n((n,i)=>{if(n)return r(n);this.store(e,t,i,e=>{if(e)return r(e);r(null,i)})})})}async providePromise(e,t,n){const r=await this.getPromise(e,t);if(r!==undefined)return r;const i=await n();await this.storePromise(e,t,i);return i}}e.exports=CacheFacade;e.exports.ItemCacheFacade=ItemCacheFacade;e.exports.MultiItemCache=MultiItemCache},41673:(e,t,n)=>{"use strict";const r=n(81627);const i=e=>{return e.slice().sort((e,t)=>{const n=e.identifier();const r=t.identifier();if(n<r)return-1;if(n>r)return 1;return 0})};const s=(e,t)=>{return e.map(e=>{let n=`* ${e.identifier()}`;const r=Array.from(t.getIncomingConnections(e)).filter(e=>e.originModule);if(r.length>0){n+=`\n Used by ${r.length} module(s), i. e.`;n+=`\n ${r[0].originModule.identifier()}`}return n}).join("\n")};class CaseSensitiveModulesWarning extends r{constructor(e,t){const n=i(e);const r=s(n,t);super(`There are multiple modules with names that only differ in casing.\nThis can lead to unexpected behavior when compiling on a filesystem with other case-semantic.\nUse equal casing. Compare these module identifiers:\n${r}`);this.name="CaseSensitiveModulesWarning";this.module=n[0];Error.captureStackTrace(this,this.constructor)}}e.exports=CaseSensitiveModulesWarning},62433:(e,t,n)=>{"use strict";const r=n(45137);const i=n(71452);const{intersect:s}=n(26221);const o=n(16102);const a=n(14146);const{compareModulesByIdentifier:c,compareChunkGroupsByIndex:u,compareModulesById:l}=n(68673);const{createArrayToSetDeprecationSet:f}=n(16595);const{mergeRuntime:p}=n(37416);const d=f("chunk.files");let h=1e3;class Chunk{constructor(e){this.id=null;this.ids=null;this.debugId=h++;this.name=e;this.idNameHints=new o;this.preventIntegration=false;this.filenameTemplate=undefined;this._groups=new o(undefined,u);this.runtime=undefined;this.files=new d;this.auxiliaryFiles=new Set;this.rendered=false;this.hash=undefined;this.contentHash=Object.create(null);this.renderedHash=undefined;this.chunkReason=undefined;this.extraAsync=false}get entryModule(){const e=Array.from(r.getChunkGraphForChunk(this,"Chunk.entryModule","DEP_WEBPACK_CHUNK_ENTRY_MODULE").getChunkEntryModulesIterable(this));if(e.length===0){return undefined}else if(e.length===1){return e[0]}else{throw new Error("Module.entryModule: Multiple entry modules are not supported by the deprecated API (Use the new ChunkGroup API)")}}hasEntryModule(){return r.getChunkGraphForChunk(this,"Chunk.hasEntryModule","DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE").getNumberOfEntryModules(this)>0}addModule(e){const t=r.getChunkGraphForChunk(this,"Chunk.addModule","DEP_WEBPACK_CHUNK_ADD_MODULE");if(t.isModuleInChunk(e,this))return false;t.connectChunkAndModule(this,e);return true}removeModule(e){r.getChunkGraphForChunk(this,"Chunk.removeModule","DEP_WEBPACK_CHUNK_REMOVE_MODULE").disconnectChunkAndModule(this,e)}getNumberOfModules(){return r.getChunkGraphForChunk(this,"Chunk.getNumberOfModules","DEP_WEBPACK_CHUNK_GET_NUMBER_OF_MODULES").getNumberOfChunkModules(this)}get modulesIterable(){const e=r.getChunkGraphForChunk(this,"Chunk.modulesIterable","DEP_WEBPACK_CHUNK_MODULES_ITERABLE");return e.getOrderedChunkModulesIterable(this,c)}compareTo(e){const t=r.getChunkGraphForChunk(this,"Chunk.compareTo","DEP_WEBPACK_CHUNK_COMPARE_TO");return t.compareChunks(this,e)}containsModule(e){return r.getChunkGraphForChunk(this,"Chunk.containsModule","DEP_WEBPACK_CHUNK_CONTAINS_MODULE").isModuleInChunk(e,this)}getModules(){return r.getChunkGraphForChunk(this,"Chunk.getModules","DEP_WEBPACK_CHUNK_GET_MODULES").getChunkModules(this)}remove(){const e=r.getChunkGraphForChunk(this,"Chunk.remove","DEP_WEBPACK_CHUNK_REMOVE");e.disconnectChunk(this);this.disconnectFromGroups()}moveModule(e,t){const n=r.getChunkGraphForChunk(this,"Chunk.moveModule","DEP_WEBPACK_CHUNK_MOVE_MODULE");n.disconnectChunkAndModule(this,e);n.connectChunkAndModule(t,e)}integrate(e){const t=r.getChunkGraphForChunk(this,"Chunk.integrate","DEP_WEBPACK_CHUNK_INTEGRATE");if(t.canChunksBeIntegrated(this,e)){t.integrateChunks(this,e);return true}else{return false}}canBeIntegrated(e){const t=r.getChunkGraphForChunk(this,"Chunk.canBeIntegrated","DEP_WEBPACK_CHUNK_CAN_BE_INTEGRATED");return t.canChunksBeIntegrated(this,e)}isEmpty(){const e=r.getChunkGraphForChunk(this,"Chunk.isEmpty","DEP_WEBPACK_CHUNK_IS_EMPTY");return e.getNumberOfChunkModules(this)===0}modulesSize(){const e=r.getChunkGraphForChunk(this,"Chunk.modulesSize","DEP_WEBPACK_CHUNK_MODULES_SIZE");return e.getChunkModulesSize(this)}size(e={}){const t=r.getChunkGraphForChunk(this,"Chunk.size","DEP_WEBPACK_CHUNK_SIZE");return t.getChunkSize(this,e)}integratedSize(e,t){const n=r.getChunkGraphForChunk(this,"Chunk.integratedSize","DEP_WEBPACK_CHUNK_INTEGRATED_SIZE");return n.getIntegratedChunksSize(this,e,t)}getChunkModuleMaps(e){const t=r.getChunkGraphForChunk(this,"Chunk.getChunkModuleMaps","DEP_WEBPACK_CHUNK_GET_CHUNK_MODULE_MAPS");const n=Object.create(null);const i=Object.create(null);for(const r of this.getAllAsyncChunks()){let s;for(const o of t.getOrderedChunkModulesIterable(r,l(t))){if(e(o)){if(s===undefined){s=[];n[r.id]=s}const e=t.getModuleId(o);s.push(e);i[e]=t.getRenderedModuleHash(o,undefined)}}}return{id:n,hash:i}}hasModuleInGraph(e,t){const n=r.getChunkGraphForChunk(this,"Chunk.hasModuleInGraph","DEP_WEBPACK_CHUNK_HAS_MODULE_IN_GRAPH");return n.hasModuleInGraph(this,e,t)}getChunkMaps(e){const t=Object.create(null);const n=Object.create(null);const r=Object.create(null);for(const i of this.getAllAsyncChunks()){t[i.id]=e?i.hash:i.renderedHash;for(const e of Object.keys(i.contentHash)){if(!n[e]){n[e]=Object.create(null)}n[e][i.id]=i.contentHash[e]}if(i.name){r[i.id]=i.name}}return{hash:t,contentHash:n,name:r}}hasRuntime(){for(const e of this._groups){if(e.isInitial()&&e instanceof i&&e.getRuntimeChunk()===this){return true}}return false}canBeInitial(){for(const e of this._groups){if(e.isInitial())return true}return false}isOnlyInitial(){if(this._groups.size<=0)return false;for(const e of this._groups){if(!e.isInitial())return false}return true}addGroup(e){this._groups.add(e)}removeGroup(e){this._groups.delete(e)}isInGroup(e){return this._groups.has(e)}getNumberOfGroups(){return this._groups.size}get groupsIterable(){this._groups.sort();return this._groups}disconnectFromGroups(){for(const e of this._groups){e.removeChunk(this)}}split(e){for(const t of this._groups){t.insertChunk(e,this);e.addGroup(t)}for(const t of this.idNameHints){e.idNameHints.add(t)}e.runtime=p(e.runtime,this.runtime)}updateHash(e,t){e.update(`${this.id} `);e.update(this.ids?this.ids.join(","):"");e.update(`${this.name||""} `);const n=new a;for(const e of t.getChunkModulesIterable(this)){n.add(t.getModuleHash(e,this.runtime))}n.updateHash(e);const r=t.getChunkEntryModulesWithChunkGroupIterable(this);for(const[n,i]of r){e.update("entry");e.update(`${t.getModuleId(n)}`);e.update(i.id)}}getAllAsyncChunks(){const e=new Set;const t=new Set;const n=s(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const n of t.childrenIterable){e.add(n)}}for(const r of e){for(const e of r.chunks){if(!n.has(e)){t.add(e)}}for(const t of r.childrenIterable){e.add(t)}}return t}getAllInitialChunks(){return s(Array.from(this.groupsIterable,e=>new Set(e.chunks)))}getAllReferencedChunks(){const e=new Set(this.groupsIterable);const t=new Set;for(const n of e){for(const e of n.chunks){t.add(e)}for(const t of n.childrenIterable){e.add(t)}}return t}hasAsyncChunks(){const e=new Set;const t=s(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const n of t.childrenIterable){e.add(n)}}for(const n of e){for(const e of n.chunks){if(!t.has(e)){return true}}for(const t of n.childrenIterable){e.add(t)}}return false}getChildIdsByOrders(e,t){const n=new Map;for(const e of this.groupsIterable){if(e.chunks[e.chunks.length-1]===this){for(const t of e.childrenIterable){for(const e of Object.keys(t.options)){if(e.endsWith("Order")){const r=e.substr(0,e.length-"Order".length);let i=n.get(r);if(i===undefined){i=[];n.set(r,i)}i.push({order:t.options[e],group:t})}}}}}const r=Object.create(null);for(const[i,s]of n){s.sort((t,n)=>{const r=n.order-t.order;if(r!==0)return r;return t.group.compareTo(e,n.group)});const n=new Set;for(const r of s){for(const i of r.group.chunks){if(t&&!t(i,e))continue;n.add(i.id)}}if(n.size>0){r[i]=Array.from(n)}}return r}getChildIdsByOrdersMap(e,t,n){const r=Object.create(null);const i=t=>{const i=t.getChildIdsByOrders(e,n);for(const e of Object.keys(i)){let n=r[e];if(n===undefined){r[e]=n=Object.create(null)}n[t.id]=i[e]}};if(t){const e=new Set;for(const t of this.groupsIterable){for(const n of t.chunks){e.add(n)}}for(const t of e){i(t)}}for(const e of this.getAllAsyncChunks()){i(e)}return r}}e.exports=Chunk},45137:(e,t,n)=>{"use strict";const r=n(31669);const i=n(16102);const{compareModulesById:s,compareIterables:o,compareModulesByIdentifier:a,concatComparators:c,compareSelect:u,compareIds:l}=n(68673);const f=n(62598);const{RuntimeSpecMap:p,RuntimeSpecSet:d,runtimeToString:h,mergeRuntime:m}=n(37416);const g=new Set;const y=o(a);const v=e=>{return Array.from(e)};const _=e=>{const t=new Map;for(const n of e){for(const e of n.getSourceTypes()){let r=t.get(e);if(r===undefined){r=new i;t.set(e,r)}r.add(n)}}for(const[n,r]of t){if(r.size===e.size){t.set(n,e)}}return t};const b=new WeakMap;const E=e=>{let t=b.get(e);if(t!==undefined)return t;t=(t=>{t.sortWith(e);return Array.from(t)});b.set(e,t);return t};const w=e=>{let t=0;for(const n of e){for(const e of n.getSourceTypes()){t+=n.size(e)}}return t};const S=e=>{let t=Object.create(null);for(const n of e){for(const e of n.getSourceTypes()){t[e]=(t[e]||0)+n.size(e)}}return t};const k=(e,t)=>{const n=new Set(t.groupsIterable);for(const t of n){if(e.isInGroup(t))continue;if(t.isInitial())return false;for(const e of t.parentsIterable){n.add(e)}}return true};class ChunkGraphModule{constructor(){this.chunks=new i;this.entryInChunks=undefined;this.runtimeInChunks=undefined;this.hashes=undefined;this.id=null;this.runtimeRequirements=undefined}}class ChunkGraphChunk{constructor(){this.modules=new i;this.entryModules=new Map;this.runtimeModules=new i;this.fullHashModules=undefined;this.runtimeRequirements=undefined;this.runtimeRequirementsInTree=new Set}}class ChunkGraph{constructor(e){this._modules=new WeakMap;this._chunks=new WeakMap;this._blockChunkGroups=new WeakMap;this.moduleGraph=e;this._getGraphRoots=this._getGraphRoots.bind(this);this._cacheChunkGraphModuleKey1=undefined;this._cacheChunkGraphModuleValue1=undefined;this._cacheChunkGraphModuleKey2=undefined;this._cacheChunkGraphModuleValue2=undefined;this._cacheChunkGraphChunkKey1=undefined;this._cacheChunkGraphChunkValue1=undefined;this._cacheChunkGraphChunkKey2=undefined;this._cacheChunkGraphChunkValue2=undefined}_getChunkGraphModule(e){if(this._cacheChunkGraphModuleKey1===e)return this._cacheChunkGraphModuleValue1;if(this._cacheChunkGraphModuleKey2===e)return this._cacheChunkGraphModuleValue2;let t=this._modules.get(e);if(t===undefined){t=new ChunkGraphModule;this._modules.set(e,t)}this._cacheChunkGraphModuleKey2=this._cacheChunkGraphModuleKey1;this._cacheChunkGraphModuleValue2=this._cacheChunkGraphModuleValue1;this._cacheChunkGraphModuleKey1=e;this._cacheChunkGraphModuleValue1=t;return t}_getChunkGraphChunk(e){if(this._cacheChunkGraphChunkKey1===e)return this._cacheChunkGraphChunkValue1;if(this._cacheChunkGraphChunkKey2===e)return this._cacheChunkGraphChunkValue2;let t=this._chunks.get(e);if(t===undefined){t=new ChunkGraphChunk;this._chunks.set(e,t)}this._cacheChunkGraphChunkKey2=this._cacheChunkGraphChunkKey1;this._cacheChunkGraphChunkValue2=this._cacheChunkGraphChunkValue1;this._cacheChunkGraphChunkKey1=e;this._cacheChunkGraphChunkValue1=t;return t}_getGraphRoots(e){const{moduleGraph:t}=this;return Array.from(f(e,e=>{const n=new Set;for(const r of t.getOutgoingConnections(e)){if(!r.module)continue;if(r.conditional){if(n.has(r.module))continue;if(!r.isActive(undefined))continue}n.add(r.module)}return n})).sort(a)}connectChunkAndModule(e,t){const n=this._getChunkGraphModule(t);const r=this._getChunkGraphChunk(e);n.chunks.add(e);r.modules.add(t)}disconnectChunkAndModule(e,t){const n=this._getChunkGraphModule(t);const r=this._getChunkGraphChunk(e);r.modules.delete(t);n.chunks.delete(e)}disconnectChunk(e){const t=this._getChunkGraphChunk(e);for(const n of t.modules){const t=this._getChunkGraphModule(n);t.chunks.delete(e)}t.modules.clear();e.disconnectFromGroups()}attachModules(e,t){const n=this._getChunkGraphChunk(e);for(const e of t){n.modules.add(e)}}attachRuntimeModules(e,t){const n=this._getChunkGraphChunk(e);for(const e of t){n.runtimeModules.add(e)}}attachFullHashModules(e,t){const n=this._getChunkGraphChunk(e);if(n.fullHashModules===undefined)n.fullHashModules=new Set;for(const e of t){n.fullHashModules.add(e)}}replaceModule(e,t){const n=this._getChunkGraphModule(e);const r=this._getChunkGraphModule(t);for(const i of n.chunks){const n=this._getChunkGraphChunk(i);n.modules.delete(e);n.modules.add(t);r.chunks.add(i)}n.chunks.clear();if(n.entryInChunks!==undefined){if(r.entryInChunks===undefined){r.entryInChunks=new Set}for(const i of n.entryInChunks){const n=this._getChunkGraphChunk(i);const s=n.entryModules.get(e);const o=new Map;for(const[r,i]of n.entryModules){if(r===e){o.set(t,s)}else{o.set(r,i)}}n.entryModules=o;r.entryInChunks.add(i)}n.entryInChunks=undefined}if(n.runtimeInChunks!==undefined){if(r.runtimeInChunks===undefined){r.runtimeInChunks=new Set}for(const i of n.runtimeInChunks){const n=this._getChunkGraphChunk(i);n.runtimeModules.delete(e);n.runtimeModules.add(t);r.runtimeInChunks.add(i);if(n.fullHashModules!==undefined&&n.fullHashModules.has(e)){n.fullHashModules.delete(e);n.fullHashModules.add(t)}}n.runtimeInChunks=undefined}}isModuleInChunk(e,t){const n=this._getChunkGraphChunk(t);return n.modules.has(e)}isModuleInChunkGroup(e,t){for(const n of t.chunks){if(this.isModuleInChunk(e,n))return true}return false}isEntryModule(e){const t=this._getChunkGraphModule(e);return t.entryInChunks!==undefined}getModuleChunksIterable(e){const t=this._getChunkGraphModule(e);return t.chunks}getOrderedModuleChunksIterable(e,t){const n=this._getChunkGraphModule(e);n.chunks.sortWith(t);return n.chunks}getModuleChunks(e){const t=this._getChunkGraphModule(e);return t.chunks.getFromCache(v)}getNumberOfModuleChunks(e){const t=this._getChunkGraphModule(e);return t.chunks.size}getModuleRuntimes(e){const t=this._getChunkGraphModule(e);const n=new d;for(const e of t.chunks){n.add(e.runtime)}return n}getNumberOfChunkModules(e){const t=this._getChunkGraphChunk(e);return t.modules.size}getChunkModulesIterable(e){const t=this._getChunkGraphChunk(e);return t.modules}getChunkModulesIterableBySourceType(e,t){const n=this._getChunkGraphChunk(e);const r=n.modules.getFromUnorderedCache(_).get(t);return r}getOrderedChunkModulesIterable(e,t){const n=this._getChunkGraphChunk(e);n.modules.sortWith(t);return n.modules}getOrderedChunkModulesIterableBySourceType(e,t,n){const r=this._getChunkGraphChunk(e);const i=r.modules.getFromUnorderedCache(_).get(t);if(i===undefined)return undefined;i.sortWith(n);return i}getChunkModules(e){const t=this._getChunkGraphChunk(e);return t.modules.getFromUnorderedCache(v)}getOrderedChunkModules(e,t){const n=this._getChunkGraphChunk(e);const r=E(t);return n.modules.getFromUnorderedCache(r)}getChunkModuleIdMap(e,t,n=false){const r=Object.create(null);for(const i of n?e.getAllReferencedChunks():e.getAllAsyncChunks()){let e;for(const n of this.getOrderedChunkModulesIterable(i,s(this))){if(t(n)){if(e===undefined){e=[];r[i.id]=e}const t=this.getModuleId(n);e.push(t)}}}return r}getChunkModuleRenderedHashMap(e,t,n=0,r=false){const i=Object.create(null);for(const o of r?e.getAllReferencedChunks():e.getAllAsyncChunks()){let e;for(const r of this.getOrderedChunkModulesIterable(o,s(this))){if(t(r)){if(e===undefined){e=Object.create(null);i[o.id]=e}const t=this.getModuleId(r);const s=this.getRenderedModuleHash(r,o.runtime);e[t]=n?s.slice(0,n):s}}}return i}getChunkConditionMap(e,t){const n=Object.create(null);for(const r of e.getAllAsyncChunks()){n[r.id]=t(r,this)}for(const r of this.getChunkEntryDependentChunksIterable(e)){n[r.id]=t(r,this)}return n}hasModuleInGraph(e,t,n){const r=new Set(e.groupsIterable);const i=new Set;for(const e of r){for(const r of e.chunks){if(!i.has(r)){i.add(r);if(!n||n(r,this)){for(const e of this.getChunkModulesIterable(r)){if(t(e)){return true}}}}}for(const t of e.childrenIterable){r.add(t)}}return false}compareChunks(e,t){const n=this._getChunkGraphChunk(e);const r=this._getChunkGraphChunk(t);if(n.modules.size>r.modules.size)return-1;if(n.modules.size<r.modules.size)return 1;n.modules.sortWith(a);r.modules.sortWith(a);return y(n.modules,r.modules)}getChunkModulesSize(e){const t=this._getChunkGraphChunk(e);return t.modules.getFromUnorderedCache(w)}getChunkModulesSizes(e){const t=this._getChunkGraphChunk(e);return t.modules.getFromUnorderedCache(S)}getChunkRootModules(e){const t=this._getChunkGraphChunk(e);return t.modules.getFromUnorderedCache(this._getGraphRoots)}getChunkSize(e,t={}){const n=this._getChunkGraphChunk(e);const r=n.modules.getFromUnorderedCache(w);const i=typeof t.chunkOverhead==="number"?t.chunkOverhead:1e4;const s=typeof t.entryChunkMultiplicator==="number"?t.entryChunkMultiplicator:10;return i+r*(e.canBeInitial()?s:1)}getIntegratedChunksSize(e,t,n={}){const r=this._getChunkGraphChunk(e);const i=this._getChunkGraphChunk(t);const s=new Set(r.modules);for(const e of i.modules)s.add(e);let o=w(s);const a=typeof n.chunkOverhead==="number"?n.chunkOverhead:1e4;const c=typeof n.entryChunkMultiplicator==="number"?n.entryChunkMultiplicator:10;return a+o*(e.canBeInitial()||t.canBeInitial()?c:1)}canChunksBeIntegrated(e,t){if(e.preventIntegration||t.preventIntegration){return false}const n=e.hasRuntime();const r=t.hasRuntime();if(n!==r){if(n){return k(e,t)}else if(r){return k(t,e)}else{return false}}if(this.getNumberOfEntryModules(e)>0||this.getNumberOfEntryModules(t)>0){return false}return true}integrateChunks(e,t){if(e.name&&t.name){if(this.getNumberOfEntryModules(e)>0===this.getNumberOfEntryModules(t)>0){if(e.name.length!==t.name.length){e.name=e.name.length<t.name.length?e.name:t.name}else{e.name=e.name<t.name?e.name:t.name}}else if(this.getNumberOfEntryModules(t)>0){e.name=t.name}}else if(t.name){e.name=t.name}for(const n of t.idNameHints){e.idNameHints.add(n)}e.runtime=m(e.runtime,t.runtime);for(const n of this.getChunkModules(t)){this.disconnectChunkAndModule(t,n);this.connectChunkAndModule(e,n)}for(const[n,r]of Array.from(this.getChunkEntryModulesWithChunkGroupIterable(t))){this.disconnectChunkAndEntryModule(t,n);this.connectChunkAndEntryModule(e,n,r)}for(const n of t.groupsIterable){n.replaceChunk(t,e);e.addGroup(n);t.removeGroup(n)}}isEntryModuleInChunk(e,t){const n=this._getChunkGraphChunk(t);return n.entryModules.has(e)}connectChunkAndEntryModule(e,t,n){const r=this._getChunkGraphModule(t);const i=this._getChunkGraphChunk(e);if(r.entryInChunks===undefined){r.entryInChunks=new Set}r.entryInChunks.add(e);i.entryModules.set(t,n)}connectChunkAndRuntimeModule(e,t){const n=this._getChunkGraphModule(t);const r=this._getChunkGraphChunk(e);if(n.runtimeInChunks===undefined){n.runtimeInChunks=new Set}n.runtimeInChunks.add(e);r.runtimeModules.add(t)}addFullHashModuleToChunk(e,t){const n=this._getChunkGraphChunk(e);if(n.fullHashModules===undefined)n.fullHashModules=new Set;n.fullHashModules.add(t)}disconnectChunkAndEntryModule(e,t){const n=this._getChunkGraphModule(t);const r=this._getChunkGraphChunk(e);n.entryInChunks.delete(e);if(n.entryInChunks.size===0){n.entryInChunks=undefined}r.entryModules.delete(t)}disconnectChunkAndRuntimeModule(e,t){const n=this._getChunkGraphModule(t);const r=this._getChunkGraphChunk(e);n.runtimeInChunks.delete(e);if(n.runtimeInChunks.size===0){n.runtimeInChunks=undefined}r.runtimeModules.delete(t)}disconnectEntryModule(e){const t=this._getChunkGraphModule(e);for(const n of t.entryInChunks){const t=this._getChunkGraphChunk(n);t.entryModules.delete(e)}t.entryInChunks=undefined}disconnectEntries(e){const t=this._getChunkGraphChunk(e);for(const n of t.entryModules.keys()){const t=this._getChunkGraphModule(n);t.entryInChunks.delete(e);if(t.entryInChunks.size===0){t.entryInChunks=undefined}}t.entryModules.clear()}getNumberOfEntryModules(e){const t=this._getChunkGraphChunk(e);return t.entryModules.size}getNumberOfRuntimeModules(e){const t=this._getChunkGraphChunk(e);return t.runtimeModules.size}getChunkEntryModulesIterable(e){const t=this._getChunkGraphChunk(e);return t.entryModules.keys()}getChunkEntryDependentChunksIterable(e){const t=this._getChunkGraphChunk(e);const n=new Set;for(const r of t.entryModules.values()){for(const t of r.chunks){if(t!==e){n.add(t)}}}return n}hasChunkEntryDependentChunks(e){const t=this._getChunkGraphChunk(e);for(const n of t.entryModules.values()){for(const t of n.chunks){if(t!==e){return true}}}return false}getChunkRuntimeModulesIterable(e){const t=this._getChunkGraphChunk(e);return t.runtimeModules}getChunkRuntimeModulesInOrder(e){const t=this._getChunkGraphChunk(e);const n=Array.from(t.runtimeModules);n.sort(c(u(e=>e.stage,l),a));return n}getChunkFullHashModulesIterable(e){const t=this._getChunkGraphChunk(e);return t.fullHashModules}getChunkEntryModulesWithChunkGroupIterable(e){const t=this._getChunkGraphChunk(e);return t.entryModules}getBlockChunkGroup(e){return this._blockChunkGroups.get(e)}connectBlockAndChunkGroup(e,t){this._blockChunkGroups.set(e,t);t.addBlock(e)}disconnectChunkGroup(e){for(const t of e.blocksIterable){this._blockChunkGroups.delete(t)}e._blocks.clear()}getModuleId(e){const t=this._getChunkGraphModule(e);return t.id}setModuleId(e,t){const n=this._getChunkGraphModule(e);n.id=t}_getModuleHashInfo(e,t){const n=this._getChunkGraphModule(e);const r=n.hashes;if(r&&t===undefined){const t=new Set(r.values());if(t.size!==1){throw new Error(`No unique hash info entry for unspecified runtime for ${e.identifier()} (existing runtimes: ${Array.from(r.keys(),e=>h(e)).join(", ")}).\nCaller might not support runtime-dependent code generation (opt-out via optimization.usedExports: "global").`)}return t.values().next().value}else{const n=r&&r.get(t);if(!n){throw new Error(`Module ${e.identifier()} has no hash info for runtime ${h(t)} (available runtimes ${r&&Array.from(r.keys(),h).join(", ")})`)}return n}}hasModuleHashes(e,t){const n=this._getChunkGraphModule(e);const r=n.hashes;return r&&r.has(t)}getModuleHash(e,t){return this._getModuleHashInfo(e,t).hash}getRenderedModuleHash(e,t){return this._getModuleHashInfo(e,t).renderedHash}setModuleHashes(e,t,n,r){const i=this._getChunkGraphModule(e);if(i.hashes===undefined){i.hashes=new p}i.hashes.set(t,{hash:n,renderedHash:r})}addModuleRuntimeRequirements(e,t,n){const r=this._getChunkGraphModule(e);const i=r.runtimeRequirements;if(i===undefined){const e=new p;e.set(t,n);r.runtimeRequirements=e;return}i.update(t,e=>{if(e===undefined){return n}else if(e.size>=n.size){for(const t of n)e.add(t);return e}else{for(const t of e)n.add(t);return n}})}addChunkRuntimeRequirements(e,t){const n=this._getChunkGraphChunk(e);const r=n.runtimeRequirements;if(r===undefined){n.runtimeRequirements=t}else if(r.size>=t.size){for(const e of t)r.add(e)}else{for(const e of r)t.add(e);n.runtimeRequirements=t}}addTreeRuntimeRequirements(e,t){const n=this._getChunkGraphChunk(e);const r=n.runtimeRequirementsInTree;for(const e of t)r.add(e)}getModuleRuntimeRequirements(e,t){const n=this._getChunkGraphModule(e);const r=n.runtimeRequirements&&n.runtimeRequirements.get(t);return r===undefined?g:r}getChunkRuntimeRequirements(e){const t=this._getChunkGraphChunk(e);const n=t.runtimeRequirements;return n===undefined?g:n}getTreeRuntimeRequirements(e){const t=this._getChunkGraphChunk(e);return t.runtimeRequirementsInTree}static getChunkGraphForModule(e,t,n){const i=C.get(t);if(i)return i(e);const s=r.deprecate(e=>{const n=D.get(e);if(!n)throw new Error(t+": There was no ChunkGraph assigned to the Module for backward-compat (Use the new API)");return n},t+": Use new ChunkGraph API",n);C.set(t,s);return s(e)}static setChunkGraphForModule(e,t){D.set(e,t)}static getChunkGraphForChunk(e,t,n){const i=A.get(t);if(i)return i(e);const s=r.deprecate(e=>{const n=x.get(e);if(!n)throw new Error(t+"There was no ChunkGraph assigned to the Chunk for backward-compat (Use the new API)");return n},t+": Use new ChunkGraph API",n);A.set(t,s);return s(e)}static setChunkGraphForChunk(e,t){x.set(e,t)}}const D=new WeakMap;const x=new WeakMap;const C=new Map;const A=new Map;e.exports=ChunkGraph},84558:(e,t,n)=>{"use strict";const r=n(31669);const i=n(16102);const{compareLocations:s,compareChunks:o,compareIterables:a}=n(68673);let c=5e3;const u=e=>Array.from(e);const l=(e,t)=>{if(e.id<t.id)return-1;if(t.id<e.id)return 1;return 0};const f=(e,t)=>{const n=e.module?e.module.identifier():"";const r=t.module?t.module.identifier():"";if(n<r)return-1;if(n>r)return 1;return s(e.loc,t.loc)};class ChunkGroup{constructor(e){if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupDebugId=c++;this.options=e;this._children=new i(undefined,l);this._parents=new i(undefined,l);this._blocks=new i;this.chunks=[];this.origins=[];this._modulePreOrderIndices=new Map;this._modulePostOrderIndices=new Map;this.index=undefined}addOptions(e){for(const t of Object.keys(e)){if(this.options[t]===undefined){this.options[t]=e[t]}else if(this.options[t]!==e[t]){if(t.endsWith("Order")){this.options[t]=Math.max(this.options[t],e[t])}else{throw new Error(`ChunkGroup.addOptions: No option merge strategy for ${t}`)}}}}get name(){return this.options.name}set name(e){this.options.name=e}get debugId(){return Array.from(this.chunks,e=>e.debugId).join("+")}get id(){return Array.from(this.chunks,e=>e.id).join("+")}unshiftChunk(e){const t=this.chunks.indexOf(e);if(t>0){this.chunks.splice(t,1);this.chunks.unshift(e)}else if(t<0){this.chunks.unshift(e);return true}return false}insertChunk(e,t){const n=this.chunks.indexOf(e);const r=this.chunks.indexOf(t);if(r<0){throw new Error("before chunk not found")}if(n>=0&&n>r){this.chunks.splice(n,1);this.chunks.splice(r,0,e)}else if(n<0){this.chunks.splice(r,0,e);return true}return false}pushChunk(e){const t=this.chunks.indexOf(e);if(t>=0){return false}this.chunks.push(e);return true}replaceChunk(e,t){const n=this.chunks.indexOf(e);if(n<0)return false;const r=this.chunks.indexOf(t);if(r<0){this.chunks[n]=t;return true}if(r<n){this.chunks.splice(n,1);return true}else if(r!==n){this.chunks[n]=t;this.chunks.splice(r,1);return true}}removeChunk(e){const t=this.chunks.indexOf(e);if(t>=0){this.chunks.splice(t,1);return true}return false}isInitial(){return false}addChild(e){if(this._children.has(e)){return false}this._children.add(e);return true}getChildren(){return this._children.getFromCache(u)}getNumberOfChildren(){return this._children.size}get childrenIterable(){return this._children}removeChild(e){if(!this._children.has(e)){return false}this._children.delete(e);e.removeParent(this);return true}addParent(e){if(!this._parents.has(e)){this._parents.add(e);return true}return false}getParents(){return this._parents.getFromCache(u)}getNumberOfParents(){return this._parents.size}hasParent(e){return this._parents.has(e)}get parentsIterable(){return this._parents}removeParent(e){if(this._parents.delete(e)){e.removeChild(this);return true}return false}getBlocks(){return this._blocks.getFromCache(u)}getNumberOfBlocks(){return this._blocks.size}hasBlock(e){return this._blocks.has(e)}get blocksIterable(){return this._blocks}addBlock(e){if(!this._blocks.has(e)){this._blocks.add(e);return true}return false}addOrigin(e,t,n){this.origins.push({module:e,loc:t,request:n})}getFiles(){const e=new Set;for(const t of this.chunks){for(const n of t.files){e.add(n)}}return Array.from(e)}remove(){for(const e of this._parents){e._children.delete(this);for(const t of this._children){t.addParent(e);e.addChild(t)}}for(const e of this._children){e._parents.delete(this)}for(const e of this.chunks){e.removeGroup(this)}}sortItems(){this.origins.sort(f)}compareTo(e,t){if(this.chunks.length>t.chunks.length)return-1;if(this.chunks.length<t.chunks.length)return 1;return a(o(e))(this.chunks,t.chunks)}getChildrenByOrders(e,t){const n=new Map;for(const e of this._children){for(const t of Object.keys(e.options)){if(t.endsWith("Order")){const r=t.substr(0,t.length-"Order".length);let i=n.get(r);if(i===undefined){n.set(r,i=[])}i.push({order:e.options[t],group:e})}}}const r=Object.create(null);for(const[e,i]of n){i.sort((e,n)=>{const r=n.order-e.order;if(r!==0)return r;return e.group.compareTo(t,n.group)});r[e]=i.map(e=>e.group)}return r}setModulePreOrderIndex(e,t){this._modulePreOrderIndices.set(e,t)}getModulePreOrderIndex(e){return this._modulePreOrderIndices.get(e)}setModulePostOrderIndex(e,t){this._modulePostOrderIndices.set(e,t)}getModulePostOrderIndex(e){return this._modulePostOrderIndices.get(e)}checkConstraints(){const e=this;for(const t of e._children){if(!t._parents.has(e)){throw new Error(`checkConstraints: child missing parent ${e.debugId} -> ${t.debugId}`)}}for(const t of e._parents){if(!t._children.has(e)){throw new Error(`checkConstraints: parent missing child ${t.debugId} <- ${e.debugId}`)}}}}ChunkGroup.prototype.getModuleIndex=r.deprecate(ChunkGroup.prototype.getModulePreOrderIndex,"ChunkGroup.getModuleIndex was renamed to getModulePreOrderIndex","DEP_WEBPACK_CHUNK_GROUP_GET_MODULE_INDEX");ChunkGroup.prototype.getModuleIndex2=r.deprecate(ChunkGroup.prototype.getModulePostOrderIndex,"ChunkGroup.getModuleIndex2 was renamed to getModulePostOrderIndex","DEP_WEBPACK_CHUNK_GROUP_GET_MODULE_INDEX_2");e.exports=ChunkGroup},44445:(e,t,n)=>{"use strict";const r=n(81627);class ChunkRenderError extends r{constructor(e,t,n){super();this.name="ChunkRenderError";this.error=n;this.message=n.message;this.details=n.stack;this.file=t;this.chunk=e;Error.captureStackTrace(this,this.constructor)}}e.exports=ChunkRenderError},13454:(e,t,n)=>{"use strict";const r=n(31669);const i=n(27503);const s=i(()=>n(18161));class ChunkTemplate{constructor(e,t){this._outputOptions=e||{};this.hooks=Object.freeze({renderManifest:{tap:r.deprecate((e,n)=>{t.hooks.renderManifest.tap(e,(e,t)=>{if(t.chunk.hasRuntime())return e;return n(e,t)})},"ChunkTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)","DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_MANIFEST")},modules:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderChunk.tap(e,(e,r)=>n(e,t.moduleTemplates.javascript,r))},"ChunkTemplate.hooks.modules is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderChunk instead)","DEP_WEBPACK_CHUNK_TEMPLATE_MODULES")},render:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderChunk.tap(e,(e,r)=>n(e,t.moduleTemplates.javascript,r))},"ChunkTemplate.hooks.render is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderChunk instead)","DEP_WEBPACK_CHUNK_TEMPLATE_RENDER")},renderWithEntry:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).render.tap(e,(e,t)=>{if(t.chunkGraph.getNumberOfEntryModules(t.chunk)===0||t.chunk.hasRuntime()){return e}return n(e,t.chunk)})},"ChunkTemplate.hooks.renderWithEntry is deprecated (use JavascriptModulesPlugin.getCompilationHooks().render instead)","DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_WITH_ENTRY")},hash:{tap:r.deprecate((e,n)=>{t.hooks.fullHash.tap(e,n)},"ChunkTemplate.hooks.hash is deprecated (use Compilation.hooks.fullHash instead)","DEP_WEBPACK_CHUNK_TEMPLATE_HASH")},hashForChunk:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).chunkHash.tap(e,(e,t,r)=>{if(e.hasRuntime())return;n(t,e,r)})},"ChunkTemplate.hooks.hashForChunk is deprecated (use JavascriptModulesPlugin.getCompilationHooks().chunkHash instead)","DEP_WEBPACK_CHUNK_TEMPLATE_HASH_FOR_CHUNK")}})}}Object.defineProperty(ChunkTemplate.prototype,"outputOptions",{get:r.deprecate(function(){return this._outputOptions},"ChunkTemplate.outputOptions is deprecated (use Compilation.outputOptions instead)","DEP_WEBPACK_CHUNK_TEMPLATE_OUTPUT_OPTIONS")});e.exports=ChunkTemplate},93010:(e,t,n)=>{"use strict";const r=n(81627);class CodeGenerationError extends r{constructor(e,t){super();this.name="CodeGenerationError";this.error=t;this.message=t.message;this.details=t.stack;this.module=e;Error.captureStackTrace(this,this.constructor)}}e.exports=CodeGenerationError},53840:(e,t,n)=>{"use strict";const{runtimeToString:r,RuntimeSpecMap:i}=n(37416);class CodeGenerationResults{constructor(){this.map=new Map}get(e,t){const n=this.map.get(e);if(n===undefined){throw new Error(`No code generation entry for ${e.identifier()} (existing entries: ${Array.from(this.map.keys(),e=>e.identifier()).join(", ")})`)}if(t===undefined){const t=new Set(n.values());if(t.size!==1){throw new Error(`No unique code generation entry for unspecified runtime for ${e.identifier()} (existing runtimes: ${Array.from(n.keys(),e=>r(e)).join(", ")}).\nCaller might not support runtime-dependent code generation (opt-out via optimization.usedExports: "global").`)}return t.values().next().value}else{const i=n.get(t);if(i===undefined){throw new Error(`No code generation entry for runtime ${r(t)} for ${e.identifier()} (existing runtimes: ${Array.from(n.keys(),e=>r(e)).join(", ")})`)}return i}}getSource(e,t,n){return this.get(e,t).sources.get(n)}getRuntimeRequirements(e,t){return this.get(e,t).runtimeRequirements}getData(e,t,n){const r=this.get(e,t).data;return r===undefined?undefined:r.get(n)}add(e,t,n){const r=this.map.get(e);if(r!==undefined){r.set(t,n)}else{const r=new i;r.set(t,n);this.map.set(e,r)}}}e.exports=CodeGenerationResults},47207:(e,t,n)=>{"use strict";const r=n(81627);const i=n(56202);class CommentCompilationWarning extends r{constructor(e,t){super(e);this.name="CommentCompilationWarning";this.loc=t;Error.captureStackTrace(this,this.constructor)}}i(CommentCompilationWarning,"webpack/lib/CommentCompilationWarning");e.exports=CommentCompilationWarning},97489:(e,t,n)=>{"use strict";const r=n(66298);const i=Symbol("nested __webpack_require__");class CompatibilityPlugin{apply(e){e.hooks.compilation.tap("CompatibilityPlugin",(e,{normalModuleFactory:t})=>{e.dependencyTemplates.set(r,new r.Template);t.hooks.parser.for("javascript/auto").tap("CompatibilityPlugin",(e,t)=>{if(t.browserify!==undefined&&!t.browserify)return;e.hooks.call.for("require").tap("CompatibilityPlugin",t=>{if(t.arguments.length!==2)return;const n=e.evaluateExpression(t.arguments[1]);if(!n.isBoolean())return;if(n.asBool()!==true)return;const i=new r("require",t.callee.range);i.loc=t.loc;if(e.state.current.dependencies.length>0){const t=e.state.current.dependencies[e.state.current.dependencies.length-1];if(t.critical&&t.options&&t.options.request==="."&&t.userRequest==="."&&t.options.recursive)e.state.current.dependencies.pop()}e.state.module.addPresentationalDependency(i);return true})});const n=e=>{e.hooks.preStatement.tap("CompatibilityPlugin",t=>{if(t.type==="FunctionDeclaration"&&t.id&&t.id.name==="__webpack_require__"){const n=`__nested_webpack_require_${t.range[0]}__`;const s=new r(n,t.id.range);s.loc=t.id.loc;e.state.module.addPresentationalDependency(s);e.tagVariable(t.id.name,i,n);return true}});e.hooks.pattern.for("__webpack_require__").tap("CompatibilityPlugin",t=>{const n=`__nested_webpack_require_${t.range[0]}__`;const s=new r(n,t.range);s.loc=t.loc;e.state.module.addPresentationalDependency(s);e.tagVariable(t.name,i,n);return true});e.hooks.expression.for(i).tap("CompatibilityPlugin",t=>{const n=e.currentTagData;const i=new r(n,t.range);i.loc=t.loc;e.state.module.addPresentationalDependency(i);return true})};t.hooks.parser.for("javascript/auto").tap("CompatibilityPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("CompatibilityPlugin",n);t.hooks.parser.for("javascript/esm").tap("CompatibilityPlugin",n)})}}e.exports=CompatibilityPlugin},3080:(e,t,n)=>{"use strict";const r=n(62355);const{HookMap:i,SyncHook:s,SyncBailHook:o,SyncWaterfallHook:a,AsyncSeriesHook:c,AsyncSeriesBailHook:u}=n(92960);const l=n(31669);const{CachedSource:f}=n(48135);const{MultiItemCache:p}=n(6503);const d=n(62433);const h=n(45137);const m=n(84558);const g=n(44445);const y=n(13454);const v=n(93010);const _=n(53840);const b=n(46828);const E=n(71452);const w=n(50717);const S=n(22996);const{connectChunkGroupAndChunk:k,connectChunkGroupParentAndChild:D}=n(4642);const{makeWebpackError:x}=n(3728);const C=n(73694);const A=n(53453);const T=n(82811);const M=n(23280);const O=n(75412);const F=n(54032);const I=n(99869);const R=n(2210);const P=n(31467);const N=n(68661);const L=n(76150);const B=n(37130);const j=n(10140);const U=n(81627);const z=n(25457);const H=n(44547);const{Logger:V,LogType:G}=n(78539);const q=n(87279);const W=n(30533);const K=n(9738);const X=n(83379);const{cachedCleverMerge:J}=n(90149);const{compareLocations:Y,concatComparators:Q,compareSelect:Z,compareIds:$,compareStringsNumeric:ee,compareModulesByIdentifier:te}=n(68673);const ne=n(35891);const{arrayToSetDeprecation:re,soonFrozenObjectDeprecation:ie,createFakeHook:se}=n(16595);const{getRuntimeKey:oe}=n(37416);const ae=Object.freeze({});const ce="esm";const ue=l.deprecate(e=>{return n(53520).getCompilationHooks(e).loader},"Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader","DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK");const le=Z(e=>e.id,$);const fe=Q(Z(e=>e.name,$),Z(e=>e.fullHash,$));const pe=Z(e=>`${e.message}`,ee);const de=Z(e=>e.module&&e.module.identifier()||"",ee);const he=Z(e=>e.loc,Y);const me=Q(de,he,pe);const ge=(e,t)=>{if(e===t)return true;let n=e.source();let r=t.source();if(n===r)return true;if(typeof n==="string"&&typeof r==="string")return false;if(!Buffer.isBuffer(n))n=Buffer.from(n,"utf-8");if(!Buffer.isBuffer(r))r=Buffer.from(r,"utf-8");return n.equals(r)};class Compilation{constructor(e){const t=()=>ue(this);const n=new c(["assets"]);const r=new s(["assets"]);const f=(e,t,r,i)=>{const s=t=>`Can't automatically convert plugin using Compilation.hooks.${e} to Compilation.hooks.processAssets because ${t}.\nBREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`;const o=e=>{if(typeof e==="string")e={name:e};if(e.stage){throw new Error(s("it's using the 'stage' option"))}return{...e,stage:t}};return se({name:e,intercept(e){throw new Error(s("it's using 'intercept'"))},tap:(e,t)=>{n.tap(o(e),()=>t(...r()))},tapAsync:(e,t)=>{n.tapAsync(o(e),(e,n)=>t(...r(),n))},tapPromise:(e,t)=>{n.tapPromise(o(e),()=>t(...r()))}},`${e} is deprecated (use Compilation.hook.processAssets instead and use one of Compilation.PROCESS_ASSETS_STAGE_* as stage option)`,i)};this.hooks=Object.freeze({buildModule:new s(["module"]),rebuildModule:new s(["module"]),failedModule:new s(["module","error"]),succeedModule:new s(["module"]),stillValidModule:new s(["module"]),addEntry:new s(["entry","options"]),failedEntry:new s(["entry","options","error"]),succeedEntry:new s(["entry","options","module"]),dependencyReferencedExports:new a(["referencedExports","dependency","runtime"]),finishModules:new c(["modules"]),finishRebuildingModule:new c(["module"]),unseal:new s([]),seal:new s([]),beforeChunks:new s([]),afterChunks:new s(["chunks"]),optimizeDependencies:new o(["modules"]),afterOptimizeDependencies:new s(["modules"]),optimize:new s([]),optimizeModules:new o(["modules"]),afterOptimizeModules:new s(["modules"]),optimizeChunks:new o(["chunks","chunkGroups"]),afterOptimizeChunks:new s(["chunks","chunkGroups"]),optimizeTree:new c(["chunks","modules"]),afterOptimizeTree:new s(["chunks","modules"]),optimizeChunkModules:new u(["chunks","modules"]),afterOptimizeChunkModules:new s(["chunks","modules"]),shouldRecord:new o([]),additionalChunkRuntimeRequirements:new s(["chunk","runtimeRequirements"]),runtimeRequirementInChunk:new i(()=>new o(["chunk","runtimeRequirements"])),additionalModuleRuntimeRequirements:new s(["module","runtimeRequirements"]),runtimeRequirementInModule:new i(()=>new o(["module","runtimeRequirements"])),additionalTreeRuntimeRequirements:new s(["chunk","runtimeRequirements"]),runtimeRequirementInTree:new i(()=>new o(["chunk","runtimeRequirements"])),runtimeModule:new s(["module","chunk"]),reviveModules:new s(["modules","records"]),beforeModuleIds:new s(["modules"]),moduleIds:new s(["modules"]),optimizeModuleIds:new s(["modules"]),afterOptimizeModuleIds:new s(["modules"]),reviveChunks:new s(["chunks","records"]),beforeChunkIds:new s(["chunks"]),chunkIds:new s(["chunks"]),optimizeChunkIds:new s(["chunks"]),afterOptimizeChunkIds:new s(["chunks"]),recordModules:new s(["modules","records"]),recordChunks:new s(["chunks","records"]),optimizeCodeGeneration:new s(["modules"]),beforeModuleHash:new s([]),afterModuleHash:new s([]),beforeCodeGeneration:new s([]),afterCodeGeneration:new s([]),beforeRuntimeRequirements:new s([]),afterRuntimeRequirements:new s([]),beforeHash:new s([]),contentHash:new s(["chunk"]),afterHash:new s([]),recordHash:new s(["records"]),record:new s(["compilation","records"]),beforeModuleAssets:new s([]),shouldGenerateChunkAssets:new o([]),beforeChunkAssets:new s([]),additionalChunkAssets:f("additionalChunkAssets",Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,()=>[this.chunks],"DEP_WEBPACK_COMPILATION_ADDITIONAL_CHUNK_ASSETS"),additionalAssets:f("additionalAssets",Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,()=>[]),optimizeChunkAssets:f("optimizeChunkAssets",Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE,()=>[this.chunks],"DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS"),afterOptimizeChunkAssets:f("afterOptimizeChunkAssets",Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE+1,()=>[this.chunks],"DEP_WEBPACK_COMPILATION_AFTER_OPTIMIZE_CHUNK_ASSETS"),optimizeAssets:n,afterOptimizeAssets:r,processAssets:n,afterProcessAssets:r,needAdditionalSeal:new o([]),afterSeal:new c([]),renderManifest:new a(["result","options"]),fullHash:new s(["hash"]),chunkHash:new s(["chunk","chunkHash","ChunkHashContext"]),moduleAsset:new s(["module","filename"]),chunkAsset:new s(["chunk","filename"]),assetPath:new a(["path","options","assetInfo"]),needAdditionalPass:new o([]),childCompiler:new s(["childCompiler","compilerName","compilerIndex"]),log:new o(["origin","logEntry"]),statsPreset:new i(()=>new s(["options","context"])),statsNormalize:new s(["options","context"]),statsFactory:new s(["statsFactory","options"]),statsPrinter:new s(["statsPrinter","options"]),get normalModuleLoader(){return t()}});this.name=undefined;this.compiler=e;this.resolverFactory=e.resolverFactory;this.inputFileSystem=e.inputFileSystem;this.fileSystemInfo=new S(this.inputFileSystem,{managedPaths:e.managedPaths,immutablePaths:e.immutablePaths,logger:this.getLogger("webpack.FileSystemInfo")});if(e.fileTimestamps){this.fileSystemInfo.addFileTimestamps(e.fileTimestamps)}if(e.contextTimestamps){this.fileSystemInfo.addContextTimestamps(e.contextTimestamps)}this.requestShortener=e.requestShortener;this.compilerPath=e.compilerPath;this.logger=this.getLogger("webpack.Compilation");const p=e.options;this.options=p;this.outputOptions=p&&p.output;this.bail=p&&p.bail||false;this.profile=p&&p.profile||false;this.mainTemplate=new C(this.outputOptions,this);this.chunkTemplate=new y(this.outputOptions,this);this.runtimeTemplate=new B(this.outputOptions,this.requestShortener);this.moduleTemplates={javascript:new N(this.runtimeTemplate,this)};Object.defineProperties(this.moduleTemplates,{asset:{enumerable:false,configurable:false,get(){throw new U("Compilation.moduleTemplates.asset has been removed")}},webassembly:{enumerable:false,configurable:false,get(){throw new U("Compilation.moduleTemplates.webassembly has been removed")}}});this.moduleGraph=new O;this.chunkGraph=undefined;this.codeGenerationResults=undefined;this.factorizeQueue=new K({name:"factorize",parallelism:p.parallelism||100,processor:this._factorizeModule.bind(this)});this.addModuleQueue=new K({name:"addModule",parallelism:p.parallelism||100,getKey:e=>e.identifier(),processor:this._addModule.bind(this)});this.buildQueue=new K({name:"build",parallelism:p.parallelism||100,processor:this._buildModule.bind(this)});this.rebuildQueue=new K({name:"rebuild",parallelism:p.parallelism||100,processor:this._rebuildModule.bind(this)});this.processDependenciesQueue=new K({name:"processDependencies",parallelism:p.parallelism||100,processor:this._processModuleDependencies.bind(this)});this.creatingModuleDuringBuild=new WeakMap;this.entries=new Map;this.globalEntry={dependencies:[],includeDependencies:[],options:{name:undefined}};this.entrypoints=new Map;this.chunks=new Set;re(this.chunks,"Compilation.chunks");this.chunkGroups=[];this.namedChunkGroups=new Map;this.namedChunks=new Map;this.modules=new Set;re(this.modules,"Compilation.modules");this._modules=new Map;this.records=null;this.additionalChunkAssets=[];this.assets={};this.assetsInfo=new Map;this._assetsRelatedIn=new Map;this.errors=[];this.warnings=[];this.children=[];this.logging=new Map;this.dependencyFactories=new Map;this.dependencyTemplates=new b;this.childrenCounters={};this.usedChunkIds=null;this.usedModuleIds=null;this.needAdditionalPass=false;this.builtModules=new WeakSet;this._rebuildingModules=new Map;this.emittedAssets=new Set;this.comparedForEmitAssets=new Set;this.fileDependencies=new X;this.contextDependencies=new X;this.missingDependencies=new X;this.buildDependencies=new X;this.compilationDependencies={add:l.deprecate(e=>this.fileDependencies.add(e),"Compilation.compilationDependencies is deprecated (used Compilation.fileDependencies instead)","DEP_WEBPACK_COMPILATION_COMPILATION_DEPENDENCIES")};this._modulesCache=this.getCache("Compilation/modules");this._assetsCache=this.getCache("Compilation/assets");this._codeGenerationCache=this.getCache("Compilation/codeGeneration")}getStats(){return new j(this)}createStatsOptions(e,t={}){if(typeof e==="boolean"||typeof e==="string"){e={preset:e}}if(typeof e==="object"&&e!==null){const n={};for(const t in e){n[t]=e[t]}if(n.preset!==undefined){this.hooks.statsPreset.for(n.preset).call(n,t)}this.hooks.statsNormalize.call(n,t);return n}else{const e={};this.hooks.statsNormalize.call(e,t);return e}}createStatsFactory(e){const t=new q;this.hooks.statsFactory.call(t,e);return t}createStatsPrinter(e){const t=new W;this.hooks.statsPrinter.call(t,e);return t}getCache(e){return this.compiler.getCache(e)}getLogger(e){if(!e){throw new TypeError("Compilation.getLogger(name) called without a name")}let t;return new V((n,r)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}let i;switch(n){case G.warn:case G.error:case G.trace:i=w.cutOffLoaderExecution(new Error("Trace").stack).split("\n").slice(3);break}const s={time:Date.now(),type:n,args:r,trace:i};if(this.hooks.log.call(e,s)===undefined){if(s.type===G.profileEnd){if(typeof console.profileEnd==="function"){console.profileEnd(`[${e}] ${s.args[0]}`)}}if(t===undefined){t=this.logging.get(e);if(t===undefined){t=[];this.logging.set(e,t)}}t.push(s);if(s.type===G.profile){if(typeof console.profile==="function"){console.profile(`[${e}] ${s.args[0]}`)}}}},t=>{if(typeof e==="function"){if(typeof t==="function"){return this.getLogger(()=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}if(typeof t==="function"){t=t();if(!t){throw new TypeError("Logger.getChildLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}else{return this.getLogger(()=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}}else{if(typeof t==="function"){return this.getLogger(()=>{if(typeof t==="function"){t=t();if(!t){throw new TypeError("Logger.getChildLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}else{return this.getLogger(`${e}/${t}`)}}})}addModule(e,t){this.addModuleQueue.add(e,t)}_addModule(e,t){const n=e.identifier();const r=this._modules.get(n);if(r){return t(null,r)}const i=this.profile?this.moduleGraph.getProfile(e):undefined;if(i!==undefined){i.markRestoringStart()}this._modulesCache.get(n,null,(r,s)=>{if(r)return t(new R(e,r));if(i!==undefined){i.markRestoringEnd();i.markIntegrationStart()}if(s){s.updateCacheModule(e);e=s}this._modules.set(n,e);this.modules.add(e);O.setModuleGraphForModule(e,this.moduleGraph);if(i!==undefined){i.markIntegrationEnd()}t(null,e)})}getModule(e){const t=e.identifier();return this._modules.get(t)}findModule(e){return this._modules.get(e)}buildModule(e,t){this.buildQueue.add(e,t)}_buildModule(e,t){const n=this.profile?this.moduleGraph.getProfile(e):undefined;if(n!==undefined){n.markBuildingStart()}e.needBuild({fileSystemInfo:this.fileSystemInfo},(r,i)=>{if(r)return t(r);if(!i){if(n!==undefined){n.markBuildingEnd()}this.hooks.stillValidModule.call(e);return t()}this.hooks.buildModule.call(e);this.builtModules.add(e);e.build(this.options,this,this.resolverFactory.get("normal",e.resolveOptions),this.inputFileSystem,r=>{if(n!==undefined){n.markBuildingEnd()}if(r){this.hooks.failedModule.call(e,r);return t(r)}if(n!==undefined){n.markStoringStart()}this._modulesCache.store(e.identifier(),null,e,r=>{if(n!==undefined){n.markStoringEnd()}if(r){this.hooks.failedModule.call(e,r);return t(new P(e,r))}this.hooks.succeedModule.call(e);return t()})})})}processModuleDependencies(e,t){this.processDependenciesQueue.add(e,t)}processModuleDependenciesNonRecursive(e){const t=n=>{if(n.dependencies){for(const t of n.dependencies){this.moduleGraph.setParents(t,n,e)}}if(n.blocks){for(const e of n.blocks)t(e)}};t(e)}_processModuleDependencies(e,t){const n=new Map;const i=[];let s=e;let o;let a;let c;let u;let l;const f=t=>{this.moduleGraph.setParents(t,s,e);const r=t.getResourceIdentifier();if(r){const s=t.category;const f=s===ce?r:`${s}${r}`;const p=t.constructor;let d;let h;if(o===p){d=a;if(u===f){l.push(t);return}}else{h=this.dependencyFactories.get(t.constructor);if(h===undefined){throw new Error(`No module factory available for dependency type: ${t.constructor.name}`)}d=n.get(h);if(d===undefined){n.set(h,d=new Map)}o=p;a=d;c=h}let m=d.get(f);if(m===undefined){d.set(f,m=[]);i.push({factory:c,dependencies:m,originModule:e})}m.push(t);u=f;l=m}};const p=e=>{if(e.dependencies){s=e;for(const t of e.dependencies)f(t)}if(e.blocks){for(const t of e.blocks)p(t)}};try{p(e)}catch(e){return t(e)}if(i.length===0){t();return}this.processDependenciesQueue.increaseParallelism();r.forEach(i,(e,t)=>{this.handleModuleCreation(e,e=>{if(e&&this.bail){e.stack=e.stack;return t(e)}t()})},e=>{this.processDependenciesQueue.decreaseParallelism();return t(e)})}handleModuleCreation({factory:e,dependencies:t,originModule:n,context:r,recursive:i=true},s){const o=this.moduleGraph;const a=this.profile?new I:undefined;this.factorizeModule({currentProfile:a,factory:e,dependencies:t,originModule:n,context:r},(e,r)=>{if(e){if(t.every(e=>e.optional)){this.warnings.push(e)}else{this.errors.push(e)}return s(e)}if(!r){return s()}if(a!==undefined){o.setProfile(r,a)}this.addModule(r,(e,c)=>{if(e){if(!e.module){e.module=c}this.errors.push(e);return s(e)}for(let e=0;e<t.length;e++){const r=t[e];o.setResolvedModule(n,r,c)}o.setIssuerIfUnset(c,n!==undefined?n:null);if(c!==r){if(a!==undefined){const e=o.getProfile(c);if(e!==undefined){a.mergeInto(e)}else{o.setProfile(c,a)}}}let u=undefined;if(!i&&this.buildQueue.isProcessing(n)){u=this.creatingModuleDuringBuild.get(n);if(u===undefined){u=new Set;this.creatingModuleDuringBuild.set(n,u)}u.add(n);const e=this.creatingModuleDuringBuild.get(c);if(e!==undefined){const t=new Set(e);for(const e of t){const n=this.creatingModuleDuringBuild.get(e);if(n!==undefined){for(const e of n){if(e===c){return s(new H(c))}t.add(e)}}}}}this.buildModule(c,e=>{if(u!==undefined){u.delete(c)}if(e){if(!e.module){e.module=c}this.errors.push(e);return s(e)}if(!i){this.processModuleDependenciesNonRecursive(c);s(null,c);return}if(this.processDependenciesQueue.isProcessing(c)){return s()}this.processModuleDependencies(c,e=>{if(e){return s(e)}s(null,c)})})})})}factorizeModule(e,t){this.factorizeQueue.add(e,t)}_factorizeModule({currentProfile:e,factory:t,dependencies:n,originModule:r,context:i},s){if(e!==undefined){e.markFactoryStart()}t.create({contextInfo:{issuer:r?r.nameForCondition():"",compiler:this.compiler.name},resolveOptions:r?r.resolveOptions:undefined,context:i?i:r?r.context:this.compiler.context,dependencies:n},(t,i)=>{if(i){if(i.module===undefined&&i instanceof A){i={module:i}}const{fileDependencies:e,contextDependencies:t,missingDependencies:n}=i;if(e&&e.size>0){this.fileDependencies.addAll(e)}if(t&&t.size>0){this.contextDependencies.addAll(t)}if(n&&n.size>0){this.missingDependencies.addAll(n)}}if(t){const e=new F(r,t,n.map(e=>e.loc).filter(Boolean)[0]);return s(e)}if(!i){return s()}const o=i.module;if(!o){return s()}if(e!==undefined){e.markFactoryEnd()}s(null,o)})}addModuleChain(e,t,n){if(typeof t!=="object"||t===null||!t.constructor){return n(new U("Parameter 'dependency' must be a Dependency"))}const r=t.constructor;const i=this.dependencyFactories.get(r);if(!i){return n(new U(`No dependency factory available for this dependency type: ${t.constructor.name}`))}this.handleModuleCreation({factory:i,dependencies:[t],originModule:null,context:e},e=>{if(e&&this.bail){n(e);this.buildQueue.stop();this.rebuildQueue.stop();this.processDependenciesQueue.stop();this.factorizeQueue.stop()}else{n()}})}addEntry(e,t,n,r){const i=typeof n==="object"?n:{name:n};this._addEntryItem(e,t,"dependencies",i,r)}addInclude(e,t,n,r){this._addEntryItem(e,t,"includeDependencies",n,r)}_addEntryItem(e,t,n,r,i){const{name:s}=r;let o=s!==undefined?this.entries.get(s):this.globalEntry;if(o===undefined){o={dependencies:[],includeDependencies:[],options:{name:undefined,...r}};o[n].push(t);this.entries.set(s,o)}else{o[n].push(t);for(const e of Object.keys(r)){if(r[e]===undefined)continue;if(o.options[e]===r[e])continue;if(o.options[e]===undefined){o.options[e]=r[e]}else{return i(new U(`Conflicting entry option ${e} = ${o.options[e]} vs ${r[e]}`))}}}this.hooks.addEntry.call(t,r);this.addModuleChain(e,t,(e,n)=>{if(e){this.hooks.failedEntry.call(t,r,e);return i(e)}this.hooks.succeedEntry.call(t,r,n);return i(null,n)})}rebuildModule(e,t){this.rebuildQueue.add(e,t)}_rebuildModule(e,t){this.hooks.rebuildModule.call(e);const n=e.dependencies.slice();const r=e.blocks.slice();e.invalidateBuild();this.buildQueue.invalidate(e);this.buildModule(e,i=>{if(i){return this.hooks.finishRebuildingModule.callAsync(e,e=>{if(e){t(x(e,"Compilation.hooks.finishRebuildingModule"));return}t(i)})}this.processModuleDependencies(e,i=>{if(i)return t(i);this.removeReasonsOfDependencyBlock(e,{dependencies:n,blocks:r});this.hooks.finishRebuildingModule.callAsync(e,n=>{if(n){t(x(n,"Compilation.hooks.finishRebuildingModule"));return}t(null,e)})})})}finish(e){this.logger.time("finish modules");const{modules:t}=this;this.hooks.finishModules.callAsync(t,n=>{this.logger.timeEnd("finish modules");if(n)return e(n);this.logger.time("report dependency errors and warnings");for(const e of t){this.reportDependencyErrorsAndWarnings(e,[e]);const t=e.getErrors();if(t!==undefined){for(const n of t){if(!n.module){n.module=e}this.errors.push(n)}}const n=e.getWarnings();if(n!==undefined){for(const t of n){if(!t.module){t.module=e}this.warnings.push(t)}}}this.logger.timeEnd("report dependency errors and warnings");e()})}unseal(){this.hooks.unseal.call();this.chunks.clear();this.chunkGroups.length=0;this.namedChunks.clear();this.namedChunkGroups.clear();this.entrypoints.clear();this.additionalChunkAssets.length=0;this.assets={};this.assetsInfo.clear();this.moduleGraph.removeAllModuleAttributes()}seal(e){const t=new h(this.moduleGraph);this.chunkGraph=t;for(const e of this.modules){h.setChunkGraphForModule(e,t)}this.hooks.seal.call();this.logger.time("optimize dependencies");while(this.hooks.optimizeDependencies.call(this.modules)){}this.hooks.afterOptimizeDependencies.call(this.modules);this.logger.timeEnd("optimize dependencies");this.logger.time("create chunks");this.hooks.beforeChunks.call();const n=new Map;for(const[e,{dependencies:r,includeDependencies:i,options:s}]of this.entries){const o=this.addChunk(e);o.name=e;if(s.filename){o.filenameTemplate=s.filename}const a=new E(e);if(!s.dependOn&&!s.runtime){a.setRuntimeChunk(o)}a.setEntrypointChunk(o);this.namedChunkGroups.set(e,a);this.entrypoints.set(e,a);this.chunkGroups.push(a);k(a,o);for(const i of[...this.globalEntry.dependencies,...r]){a.addOrigin(null,{name:e},i.request);const r=this.moduleGraph.getModule(i);if(r){t.connectChunkAndEntryModule(o,r,a);this.assignDepth(r);const e=n.get(a);if(e===undefined){n.set(a,[r])}else{e.push(r)}}}const c=e=>e.map(e=>this.moduleGraph.getModule(e)).filter(Boolean).sort(te);const u=[...c(this.globalEntry.includeDependencies),...c(i)];for(const e of u){this.assignDepth(e);const t=n.get(a);if(t===undefined){n.set(a,[e])}else{t.push(e)}}}const r=new Set;e:for(const[e,{options:{dependOn:t,runtime:n}}]of this.entries){if(t&&n){const t=new U(`Entrypoint '${e}' has 'dependOn' and 'runtime' specified. This is not valid.\nEntrypoints that depend on other entrypoints do not have their own runtime.\nThey will use the runtime(s) from referenced entrypoints instead.\nRemove the 'runtime' option from the entrypoint.`);const n=this.entrypoints.get(e);t.chunk=n.getEntrypointChunk();this.errors.push(t)}if(t){const n=this.entrypoints.get(e);const r=n.getEntrypointChunk().getAllReferencedChunks();const i=[];for(const s of t){const t=this.entrypoints.get(s);if(!t){throw new Error(`Entry ${e} depends on ${s}, but this entry was not found`)}if(r.has(t.getEntrypointChunk())){const t=new U(`Entrypoints '${e}' and '${s}' use 'dependOn' to depend on each other in a circular way.`);const r=n.getEntrypointChunk();t.chunk=r;this.errors.push(t);n.setRuntimeChunk(r);continue e}i.push(t)}for(const e of i){D(e,n)}}else if(n){const t=this.entrypoints.get(e);let i=this.namedChunks.get(n);if(i){if(!r.has(i)){const r=new U(`Entrypoint '${e}' has a 'runtime' option which points to another entrypoint named '${n}'.\nIt's not valid to use other entrypoints as runtime chunk.\nDid you mean to use 'dependOn: ${JSON.stringify(n)}' instead to allow using entrypoint '${e}' within the runtime of entrypoint '${n}'? For this '${n}' must always be loaded when '${e}' is used.\nOr do you want to use the entrypoints '${e}' and '${n}' independently on the same page with a shared runtime? In this case give them both the same value for the 'runtime' option. It must be a name not already used by an entrypoint.`);const i=t.getEntrypointChunk();r.chunk=i;this.errors.push(r);t.setRuntimeChunk(i);continue}}else{i=this.addChunk(n);i.preventIntegration=true;r.add(i)}t.unshiftChunk(i);i.addGroup(t);t.setRuntimeChunk(i)}}z(this,n);this.hooks.afterChunks.call(this.chunks);this.logger.timeEnd("create chunks");this.logger.time("optimize");this.hooks.optimize.call();while(this.hooks.optimizeModules.call(this.modules)){}this.hooks.afterOptimizeModules.call(this.modules);while(this.hooks.optimizeChunks.call(this.chunks,this.chunkGroups)){}this.hooks.afterOptimizeChunks.call(this.chunks,this.chunkGroups);this.hooks.optimizeTree.callAsync(this.chunks,this.modules,t=>{if(t){return e(x(t,"Compilation.hooks.optimizeTree"))}this.hooks.afterOptimizeTree.call(this.chunks,this.modules);this.hooks.optimizeChunkModules.callAsync(this.chunks,this.modules,t=>{if(t){return e(x(t,"Compilation.hooks.optimizeChunkModules"))}this.hooks.afterOptimizeChunkModules.call(this.chunks,this.modules);const n=this.hooks.shouldRecord.call()!==false;this.hooks.reviveModules.call(this.modules,this.records);this.hooks.beforeModuleIds.call(this.modules);this.hooks.moduleIds.call(this.modules);this.hooks.optimizeModuleIds.call(this.modules);this.hooks.afterOptimizeModuleIds.call(this.modules);this.hooks.reviveChunks.call(this.chunks,this.records);this.hooks.beforeChunkIds.call(this.chunks);this.hooks.chunkIds.call(this.chunks);this.hooks.optimizeChunkIds.call(this.chunks);this.hooks.afterOptimizeChunkIds.call(this.chunks);this.sortItemsWithChunkIds();if(n){this.hooks.recordModules.call(this.modules,this.records);this.hooks.recordChunks.call(this.chunks,this.records)}this.hooks.optimizeCodeGeneration.call(this.modules);this.logger.timeEnd("optimize");this.logger.time("module hashing");this.hooks.beforeModuleHash.call();this.createModuleHashes();this.hooks.afterModuleHash.call();this.logger.timeEnd("module hashing");this.logger.time("code generation");this.hooks.beforeCodeGeneration.call();this.codeGeneration(t=>{if(t){return e(t)}this.hooks.afterCodeGeneration.call();this.logger.timeEnd("code generation");this.logger.time("runtime requirements");this.hooks.beforeRuntimeRequirements.call();this.processRuntimeRequirements(this.entrypoints.values());this.hooks.afterRuntimeRequirements.call();this.logger.timeEnd("runtime requirements");this.logger.time("hashing");this.hooks.beforeHash.call();this.createHash();this.hooks.afterHash.call();this.logger.timeEnd("hashing");if(n){this.logger.time("record hash");this.hooks.recordHash.call(this.records);this.logger.timeEnd("record hash")}this.logger.time("module assets");this.clearAssets();this.hooks.beforeModuleAssets.call();this.createModuleAssets();this.logger.timeEnd("module assets");const r=()=>{this.logger.time("process assets");this.hooks.processAssets.callAsync(this.assets,t=>{if(t){return e(x(t,"Compilation.hooks.processAssets"))}this.hooks.afterProcessAssets.call(this.assets);this.logger.timeEnd("process assets");this.assets=ie(this.assets,"Compilation.assets","DEP_WEBPACK_COMPILATION_ASSETS",`BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.\n\tDo changes to assets earlier, e. g. in Compilation.hooks.processAssets.\n\tMake sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.`);this.summarizeDependencies();if(n){this.hooks.record.call(this,this.records)}if(this.hooks.needAdditionalSeal.call()){this.unseal();return this.seal(e)}return this.hooks.afterSeal.callAsync(e)})};this.logger.time("create chunk assets");if(this.hooks.shouldGenerateChunkAssets.call()!==false){this.hooks.beforeChunkAssets.call();this.createChunkAssets(t=>{this.logger.timeEnd("create chunk assets");if(t){return e(t)}r()})}else{this.logger.timeEnd("create chunk assets");r()}})})})}reportDependencyErrorsAndWarnings(e,t){for(let n=0;n<t.length;n++){const r=t[n];const i=r.dependencies;for(let t=0;t<i.length;t++){const n=i[t];const r=n.getWarnings(this.moduleGraph);if(r){for(let t=0;t<r.length;t++){const i=r[t];const s=new M(e,i,n.loc);this.warnings.push(s)}}const s=n.getErrors(this.moduleGraph);if(s){for(let t=0;t<s.length;t++){const r=s[t];const i=new T(e,r,n.loc);this.errors.push(i)}}}this.reportDependencyErrorsAndWarnings(e,r.blocks)}}codeGeneration(e){let t=0;let n=0;const{chunkGraph:i,moduleGraph:s,dependencyTemplates:o,runtimeTemplate:a}=this;const c=this.codeGenerationResults=new _;const u=[];const l=[];for(const e of this.modules){const t=i.getModuleRuntimes(e);if(t.size===1){for(const n of t){const t=i.getModuleHash(e,n);l.push({module:e,hash:t,runtime:n,runtimes:[n]})}}else if(t.size>1){const n=new Map;for(const r of t){const t=i.getModuleHash(e,r);const s=n.get(t);if(s===undefined){const i={module:e,hash:t,runtime:r,runtimes:[r]};l.push(i);n.set(t,i)}else{s.runtimes.push(r)}}}}r.eachLimit(l,this.options.parallelism,({module:e,hash:r,runtime:l,runtimes:f},d)=>{const h=new p(f.map(t=>this._codeGenerationCache.getItemCache(`${e.identifier()}|${oe(t)}`,`${r}|${o.getHash()}`)));h.get((r,p)=>{if(r)return d(r);let m;if(!p){n++;try{m=e.codeGeneration({chunkGraph:i,moduleGraph:s,dependencyTemplates:o,runtimeTemplate:a,runtime:l})}catch(r){u.push(new v(e,r));m=p={sources:new Map,runtimeRequirements:null}}}else{t++;m=p}for(const t of f){c.add(e,t,m)}if(!p){h.store(m,d)}else{d()}})},r=>{if(r)return e(r);if(u.length>0){u.sort(Z(e=>e.module,te));for(const e of u){this.errors.push(e)}}this.logger.log(`${Math.round(100*n/(n+t))}% code generated (${n} generated, ${t} from cache)`);e()})}processRuntimeRequirements(e){const{chunkGraph:t}=this;const n=this.hooks.additionalModuleRuntimeRequirements;const r=this.hooks.runtimeRequirementInModule;for(const e of this.modules){if(t.getNumberOfModuleChunks(e)>0){for(const i of t.getModuleRuntimes(e)){let s;const o=this.codeGenerationResults.getRuntimeRequirements(e,i);if(o&&o.size>0){s=new Set(o)}else if(n.isUsed()){s=new Set}else{continue}n.call(e,s);for(const t of s){const n=r.get(t);if(n!==undefined)n.call(e,s)}t.addModuleRuntimeRequirements(e,i,s)}}}for(const e of this.chunks){const n=new Set;for(const r of t.getChunkModulesIterable(e)){const i=t.getModuleRuntimeRequirements(r,e.runtime);for(const e of i)n.add(e)}this.hooks.additionalChunkRuntimeRequirements.call(e,n);for(const t of n){this.hooks.runtimeRequirementInChunk.for(t).call(e,n)}t.addChunkRuntimeRequirements(e,n)}const i=new Set;for(const t of e){const e=t.getRuntimeChunk();if(e)i.add(e)}for(const e of i){const n=new Set;for(const r of e.getAllReferencedChunks()){const e=t.getChunkRuntimeRequirements(r);for(const t of e)n.add(t)}this.hooks.additionalTreeRuntimeRequirements.call(e,n);for(const t of n){this.hooks.runtimeRequirementInTree.for(t).call(e,n)}t.addTreeRuntimeRequirements(e,n)}}addRuntimeModule(e,t){O.setModuleGraphForModule(t,this.moduleGraph);this.modules.add(t);this._modules.set(t.identifier(),t);this.chunkGraph.connectChunkAndModule(e,t);this.chunkGraph.connectChunkAndRuntimeModule(e,t);t.attach(this,e);const n=this.moduleGraph.getExportsInfo(t);n.setHasProvideInfo();if(typeof e.runtime==="string"){n.setUsedForSideEffectsOnly(e.runtime)}else if(e.runtime===undefined){n.setUsedForSideEffectsOnly(undefined)}else{for(const t of e.runtime){n.setUsedForSideEffectsOnly(t)}}this.chunkGraph.addModuleRuntimeRequirements(t,e.runtime,new Set([L.requireScope]));this.chunkGraph.setModuleId(t,"");this.hooks.runtimeModule.call(t,e)}addChunkInGroup(e,t,n,r){if(typeof e==="string"){e={name:e}}const i=e.name;if(i){const s=this.namedChunkGroups.get(i);if(s!==undefined){s.addOptions(e);if(t){s.addOrigin(t,n,r)}return s}}const s=new m(e);if(t)s.addOrigin(t,n,r);const o=this.addChunk(i);k(s,o);this.chunkGroups.push(s);if(i){this.namedChunkGroups.set(i,s)}return s}addChunk(e){if(e){const t=this.namedChunks.get(e);if(t!==undefined){return t}}const t=new d(e);this.chunks.add(t);h.setChunkGraphForChunk(t,this.chunkGraph);if(e){this.namedChunks.set(e,t)}return t}assignDepth(e){const t=this.moduleGraph;const n=new Set([e]);let r;t.setDepth(e,0);const i=e=>{if(!t.setDepthIfLower(e,r))return;n.add(e)};for(e of n){n.delete(e);r=t.getDepth(e)+1;for(const n of t.getOutgoingConnections(e)){const e=n.module;if(e){i(e)}}}}getDependencyReferencedExports(e,t){const n=e.getReferencedExports(this.moduleGraph,t);return this.hooks.dependencyReferencedExports.call(n,e,t)}removeReasonsOfDependencyBlock(e,t){const n=this.chunkGraph;const r=t=>{if(!t.module){return}if(t.module.removeReason(e,t)){for(const e of n.getModuleChunksIterable(t.module)){this.patchChunksAfterReasonRemoval(t.module,e)}}};if(t.blocks){for(const n of t.blocks){this.removeReasonsOfDependencyBlock(e,n)}}if(t.dependencies){for(const e of t.dependencies)r(e)}}patchChunksAfterReasonRemoval(e,t){if(!e.hasReasons(this.moduleGraph,t.runtime)){this.removeReasonsOfDependencyBlock(e,e)}if(!e.hasReasonForChunk(t,this.moduleGraph,this.chunkGraph)){if(this.chunkGraph.isModuleInChunk(e,t)){this.chunkGraph.disconnectChunkAndModule(t,e);this.removeChunkFromDependencies(e,t)}}}removeChunkFromDependencies(e,t){const n=e=>{if(!e.module){return}this.patchChunksAfterReasonRemoval(e.module,t)};const r=e.blocks;for(let t=0;t<r.length;t++){const n=r[t];const i=this.chunkGraph.getBlockChunkGroup(n);const s=i.chunks;for(let t=0;t<s.length;t++){const n=s[t];i.removeChunk(n);this.removeChunkFromDependencies(e,n)}}if(e.dependencies){for(const t of e.dependencies)n(t)}}sortItemsWithChunkIds(){for(const e of this.chunkGroups){e.sortItems()}this.errors.sort(me);this.warnings.sort(me);this.children.sort(fe)}summarizeDependencies(){for(let e=0;e<this.children.length;e++){const t=this.children[e];this.fileDependencies.addAll(t.fileDependencies);this.contextDependencies.addAll(t.contextDependencies);this.missingDependencies.addAll(t.missingDependencies);this.buildDependencies.addAll(t.buildDependencies)}for(const e of this.modules){const t=e.buildInfo.fileDependencies;const n=e.buildInfo.contextDependencies;const r=e.buildInfo.missingDependencies;if(t){this.fileDependencies.addAll(t)}if(n){this.contextDependencies.addAll(n)}if(r){this.missingDependencies.addAll(r)}}}createModuleHashes(){let e=0;const t=this.chunkGraph;const{hashFunction:n,hashDigest:r,hashDigestLength:i}=this.outputOptions;for(const s of this.modules){for(const o of t.getModuleRuntimes(s)){e++;const a=ne(n);s.updateHash(a,{chunkGraph:t,runtime:o});const c=a.digest(r);t.setModuleHashes(s,o,c,c.substr(0,i))}}this.logger.log(`${e} modules hashed (${Math.round(100*e/this.modules.size)/100} variants per module in average)`)}createHash(){this.logger.time("hashing: initialize hash");const e=this.chunkGraph;const t=this.outputOptions;const n=t.hashFunction;const r=t.hashDigest;const i=t.hashDigestLength;const s=ne(n);if(t.hashSalt){s.update(t.hashSalt)}this.logger.timeEnd("hashing: initialize hash");if(this.children.length>0){this.logger.time("hashing: hash child compilations");for(const e of this.children){s.update(e.hash)}this.logger.timeEnd("hashing: hash child compilations")}if(this.warnings.length>0){this.logger.time("hashing: hash warnings");for(const e of this.warnings){s.update(`${e.message}`)}this.logger.timeEnd("hashing: hash warnings")}if(this.errors.length>0){this.logger.time("hashing: hash errors");for(const e of this.errors){s.update(`${e.message}`)}this.logger.timeEnd("hashing: hash errors")}this.logger.time("hashing: sort chunks");const o=Array.from(this.chunks);o.sort((e,t)=>{const n=e.hasRuntime();const r=t.hasRuntime();if(n&&!r)return 1;if(!n&&r)return-1;return le(e,t)});this.logger.timeEnd("hashing: sort chunks");const a=new Set;for(let c=0;c<o.length;c++){const u=o[c];this.logger.time("hashing: hash runtime modules");for(const t of e.getChunkModulesIterable(u)){if(!e.hasModuleHashes(t,u.runtime)){const s=ne(n);t.updateHash(s,{chunkGraph:e,runtime:u.runtime});const o=s.digest(r);e.setModuleHashes(t,u.runtime,o,o.substr(0,i))}}this.logger.timeAggregate("hashing: hash runtime modules");const l=ne(n);this.logger.time("hashing: hash chunks");try{if(t.hashSalt){l.update(t.hashSalt)}u.updateHash(l,e);this.hooks.chunkHash.call(u,l,{chunkGraph:e,moduleGraph:this.moduleGraph,runtimeTemplate:this.runtimeTemplate});const n=l.digest(r);s.update(n);u.hash=n;u.renderedHash=u.hash.substr(0,i);const o=e.getChunkFullHashModulesIterable(u);if(o){a.add(u)}else{this.hooks.contentHash.call(u)}}catch(e){this.errors.push(new g(u,"",e))}this.logger.timeAggregate("hashing: hash chunks")}this.logger.timeAggregateEnd("hashing: hash runtime modules");this.logger.timeAggregateEnd("hashing: hash chunks");this.logger.time("hashing: hash digest");this.hooks.fullHash.call(s);this.fullHash=s.digest(r);this.hash=this.fullHash.substr(0,i);this.logger.timeEnd("hashing: hash digest");this.logger.time("hashing: process full hash modules");for(const t of a){for(const s of e.getChunkFullHashModulesIterable(t)){const o=ne(n);s.updateHash(o,{chunkGraph:e,runtime:t.runtime});const a=o.digest(r);e.setModuleHashes(s,t.runtime,a,a.substr(0,i))}const s=ne(n);s.update(t.hash);s.update(this.hash);const o=s.digest(r);t.hash=o;t.renderedHash=t.hash.substr(0,i);this.hooks.contentHash.call(t)}this.logger.timeEnd("hashing: process full hash modules")}emitAsset(e,t,n={}){if(this.assets[e]){if(!ge(this.assets[e],t)){this.errors.push(new U(`Conflict: Multiple assets emit different content to the same filename ${e}`));this.assets[e]=t;this._setAssetInfo(e,n);return}const r=this.assetsInfo.get(e);const i=Object.assign({},r,n);this._setAssetInfo(e,i,r);return}this.assets[e]=t;this._setAssetInfo(e,n,undefined)}_setAssetInfo(e,t,n=this.assetsInfo.get(e)){if(t===undefined){this.assetsInfo.delete(e)}else{this.assetsInfo.set(e,t)}const r=n&&n.related;const i=t&&t.related;if(r){for(const t of Object.keys(r)){const n=n=>{const r=this._assetsRelatedIn.get(n);if(r===undefined)return;const i=r.get(t);if(i===undefined)return;i.delete(e);if(i.size!==0)return;r.delete(t);if(r.size===0)this._assetsRelatedIn.delete(n)};const i=r[t];if(Array.isArray(i)){i.forEach(n)}else if(i){n(i)}}}if(i){for(const t of Object.keys(i)){const n=n=>{let r=this._assetsRelatedIn.get(n);if(r===undefined){this._assetsRelatedIn.set(n,r=new Map)}let i=r.get(t);if(i===undefined){r.set(t,i=new Set)}i.add(e)};const r=i[t];if(Array.isArray(r)){r.forEach(n)}else if(r){n(r)}}}}updateAsset(e,t,n=undefined){if(!this.assets[e]){throw new Error(`Called Compilation.updateAsset for not existing filename ${e}`)}if(typeof t==="function"){this.assets[e]=t(this.assets[e])}else{this.assets[e]=t}if(n!==undefined){const t=this.assetsInfo.get(e)||ae;if(typeof n==="function"){this._setAssetInfo(e,n(t),t)}else{this._setAssetInfo(e,J(t,n),t)}}}renameAsset(e,t){const n=this.assets[e];if(!n){throw new Error(`Called Compilation.renameAsset for not existing filename ${e}`)}if(this.assets[t]){if(!ge(this.assets[e],n)){this.errors.push(new U(`Conflict: Called Compilation.renameAsset for already existing filename ${t} with different content`))}}const r=this.assetsInfo.get(e);const i=this._assetsRelatedIn.get(e);if(i){for(const[n,r]of i){for(const i of r){const r=this.assetsInfo.get(i);if(!r)continue;const s=r.related;if(!s)continue;const o=s[n];let a;if(Array.isArray(o)){a=o.map(n=>n===e?t:n)}else if(o===e){a=t}else continue;this.assetsInfo.set(i,{...r,related:{...s,[n]:a}})}}}this._setAssetInfo(e,undefined,r);this._setAssetInfo(t,r);delete this.assets[e];this.assets[t]=n;for(const n of this.chunks){const r=n.files.size;n.files.delete(e);if(r!==n.files.size){n.files.add(t)}}}deleteAsset(e){if(!this.assets[e]){return}delete this.assets[e];const t=this.assetsInfo.get(e);this._setAssetInfo(e,undefined,t);const n=t&&t.related;if(n){for(const e of Object.keys(n)){const t=e=>{if(!this._assetsRelatedIn.has(e)){this.deleteAsset(e)}};const r=n[e];if(Array.isArray(r)){r.forEach(t)}else if(r){t(r)}}}}getAssets(){const e=[];for(const t of Object.keys(this.assets)){if(Object.prototype.hasOwnProperty.call(this.assets,t)){e.push({name:t,source:this.assets[t],info:this.assetsInfo.get(t)||ae})}}return e}getAsset(e){if(!Object.prototype.hasOwnProperty.call(this.assets,e))return undefined;return{name:e,source:this.assets[e],info:this.assetsInfo.get(e)||ae}}clearAssets(){for(const e of this.chunks){e.files.clear();e.auxiliaryFiles.clear()}}createModuleAssets(){const{chunkGraph:e}=this;for(const t of this.modules){if(t.buildInfo.assets){const n=t.buildInfo.assetsInfo;for(const r of Object.keys(t.buildInfo.assets)){const i=this.getPath(r,{chunkGraph:this.chunkGraph,module:t});for(const n of e.getModuleChunksIterable(t)){n.auxiliaryFiles.add(i)}this.emitAsset(i,t.buildInfo.assets[r],n?n.get(r):undefined);this.hooks.moduleAsset.call(t,i)}}}}getRenderManifest(e){return this.hooks.renderManifest.call([],e)}createChunkAssets(e){const t=this.outputOptions;const n=new WeakMap;const i=new Map;r.forEach(this.chunks,(e,s)=>{let o;try{o=this.getRenderManifest({chunk:e,hash:this.hash,fullHash:this.fullHash,outputOptions:t,codeGenerationResults:this.codeGenerationResults,moduleTemplates:this.moduleTemplates,dependencyTemplates:this.dependencyTemplates,chunkGraph:this.chunkGraph,moduleGraph:this.moduleGraph,runtimeTemplate:this.runtimeTemplate})}catch(t){this.errors.push(new g(e,"",t));return s()}r.forEach(o,(t,r)=>{const s=t.identifier;const o=t.hash;const a=this._assetsCache.getItemCache(s,o);a.get((s,c)=>{let u;let l;let p;let d=true;const h=t=>{const n=l||(typeof l==="string"?l:typeof u==="string"?u:"");this.errors.push(new g(e,n,t));d=false;return r()};try{if("filename"in t){l=t.filename;p=t.info}else{u=t.filenameTemplate;const e=this.getPathWithInfo(u,t.pathOptions);l=e.path;p=e.info}if(s){return h(s)}let m=c;const g=i.get(l);if(g!==undefined){if(g.hash!==o){d=false;return r(new U(`Conflict: Multiple chunks emit assets to the same filename ${l}`+` (chunks ${g.chunk.id} and ${e.id})`))}else{m=g.source}}else if(!m){m=t.render();if(!(m instanceof f)){const e=n.get(m);if(e){m=e}else{const e=new f(m);n.set(m,e);m=e}}}this.emitAsset(l,m,p);if(t.auxiliary){e.auxiliaryFiles.add(l)}else{e.files.add(l)}this.hooks.chunkAsset.call(e,l);i.set(l,{hash:o,source:m,chunk:e});if(m!==c){a.store(m,e=>{if(e)return h(e);d=false;return r()})}else{d=false;r()}}catch(s){if(!d)throw s;h(s)}})},s)},e)}getPath(e,t={}){if(!t.hash){t={hash:this.hash,...t}}return this.getAssetPath(e,t)}getPathWithInfo(e,t={}){if(!t.hash){t={hash:this.hash,...t}}return this.getAssetPathWithInfo(e,t)}getAssetPath(e,t){return this.hooks.assetPath.call(typeof e==="function"?e(t):e,t,undefined)}getAssetPathWithInfo(e,t){const n={};const r=this.hooks.assetPath.call(typeof e==="function"?e(t,n):e,t,n);return{path:r,info:n}}createChildCompiler(e,t,n){const r=this.childrenCounters[e]||0;this.childrenCounters[e]=r+1;return this.compiler.createChildCompiler(this,e,r,t,n)}checkConstraints(){const e=this.chunkGraph;const t=new Set;for(const n of this.modules){if(n.type==="runtime")continue;const r=e.getModuleId(n);if(r===null)continue;if(t.has(r)){throw new Error(`checkConstraints: duplicate module id ${r}`)}t.add(r)}for(const t of this.chunks){for(const n of e.getChunkModulesIterable(t)){if(!this.modules.has(n)){throw new Error("checkConstraints: module in chunk but not in compilation "+` ${t.debugId} ${n.debugId}`)}}for(const n of e.getChunkEntryModulesIterable(t)){if(!this.modules.has(n)){throw new Error("checkConstraints: entry module in chunk but not in compilation "+` ${t.debugId} ${n.debugId}`)}}}for(const e of this.chunkGroups){e.checkConstraints()}}}const ye=Compilation.prototype;Object.defineProperty(ye,"modifyHash",{writable:false,enumerable:false,configurable:false,value:()=>{throw new Error("Compilation.modifyHash was removed in favor of Compilation.hooks.fullHash")}});Object.defineProperty(ye,"cache",{enumerable:false,configurable:false,get:l.deprecate(function(){return this.compiler.cache},"Compilation.cache was removed in favor of Compilation.getCache()","DEP_WEBPACK_COMPILATION_CACHE"),set:l.deprecate(e=>{},"Compilation.cache was removed in favor of Compilation.getCache()","DEP_WEBPACK_COMPILATION_CACHE")});Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL=-2e3;Compilation.PROCESS_ASSETS_STAGE_PRE_PROCESS=-1e3;Compilation.PROCESS_ASSETS_STAGE_DERIVED=-200;Compilation.PROCESS_ASSETS_STAGE_ADDITIONS=-100;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE=100;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_COUNT=200;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_COMPATIBILITY=300;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE=400;Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE=1e3;Compilation.PROCESS_ASSETS_STAGE_DEV_TOOLING=2e3;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER=3e3;Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_HASH=3500;Compilation.PROCESS_ASSETS_STAGE_ANALYSE=4e3;Compilation.PROCESS_ASSETS_STAGE_REPORT=5e3;e.exports=Compilation},63076:(e,t,n)=>{"use strict";const r=n(78688);const i=n(62355);const{SyncHook:s,SyncBailHook:o,AsyncParallelHook:a,AsyncSeriesHook:c}=n(92960);const{SizeOnlySource:u}=n(48135);const l=n(54725);const f=n(6503);const p=n(3080);const d=n(27310);const h=n(89869);const m=n(43229);const g=n(80910);const y=n(1819);const v=n(10140);const _=n(84693);const b=n(81627);const{Logger:E}=n(78539);const{join:w,dirname:S,mkdirp:k}=n(95396);const{makePathsRelative:D}=n(49197);const x=e=>{for(let t=1;t<e.length;t++){if(e[t-1]>e[t])return false}return true};const C=(e,t)=>{const n={};for(const r of t.sort()){n[r]=e[r]}return n};class Compiler{constructor(e){this.hooks=Object.freeze({initialize:new s([]),shouldEmit:new o(["compilation"]),done:new c(["stats"]),afterDone:new s(["stats"]),additionalPass:new c([]),beforeRun:new c(["compiler"]),run:new c(["compiler"]),emit:new c(["compilation"]),assetEmitted:new c(["file","info"]),afterEmit:new c(["compilation"]),thisCompilation:new s(["compilation","params"]),compilation:new s(["compilation","params"]),normalModuleFactory:new s(["normalModuleFactory"]),contextModuleFactory:new s(["contextModuleFactory"]),beforeCompile:new c(["params"]),compile:new s(["params"]),make:new a(["compilation"]),finishMake:new c(["compilation"]),afterCompile:new c(["compilation"]),watchRun:new c(["compiler"]),failed:new s(["error"]),invalid:new s(["filename","changeTime"]),watchClose:new s([]),infrastructureLog:new o(["origin","type","args"]),environment:new s([]),afterEnvironment:new s([]),afterPlugins:new s(["compiler"]),afterResolvers:new s(["compiler"]),entryOption:new o(["context","entry"])});this.name=undefined;this.parentCompilation=undefined;this.root=this;this.outputPath="";this.outputFileSystem=null;this.intermediateFileSystem=null;this.inputFileSystem=null;this.watchFileSystem=null;this.recordsInputPath=null;this.recordsOutputPath=null;this.records={};this.managedPaths=new Set;this.immutablePaths=new Set;this.modifiedFiles=undefined;this.removedFiles=undefined;this.fileTimestamps=undefined;this.contextTimestamps=undefined;this.resolverFactory=new y;this.infrastructureLogger=undefined;this.options={};this.context=e;this.requestShortener=new g(e,this.root);this.cache=new l;this.compilerPath="";this.running=false;this.idle=false;this.watchMode=false;this._assetEmittingSourceCache=new WeakMap;this._assetEmittingWrittenFiles=new Map}getCache(e){return new f(this.cache,`${this.compilerPath}/${e}`)}getInfrastructureLogger(e){if(!e){throw new TypeError("Compiler.getInfrastructureLogger(name) called without a name")}return new E((t,n)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compiler.getInfrastructureLogger(name) called with a function not returning a name")}}if(this.hooks.infrastructureLog.call(e,t,n)===undefined){if(this.infrastructureLogger!==undefined){this.infrastructureLogger(e,t,n)}}},t=>{if(typeof e==="function"){if(typeof t==="function"){return this.getInfrastructureLogger(()=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compiler.getInfrastructureLogger(name) called with a function not returning a name")}}if(typeof t==="function"){t=t();if(!t){throw new TypeError("Logger.getChildLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}else{return this.getInfrastructureLogger(()=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compiler.getInfrastructureLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}}else{if(typeof t==="function"){return this.getInfrastructureLogger(()=>{if(typeof t==="function"){t=t();if(!t){throw new TypeError("Logger.getChildLogger(name) called with a function not returning a name")}}return`${e}/${t}`})}else{return this.getInfrastructureLogger(`${e}/${t}`)}}})}watch(e,t){if(this.running){return t(new d)}this.running=true;this.watchMode=true;return new _(this,e,t)}run(e){if(this.running){return e(new d)}let t;const n=(n,r)=>{if(t)t.time("beginIdle");this.idle=true;this.cache.beginIdle();this.idle=true;if(t)t.timeEnd("beginIdle");this.running=false;if(n){this.hooks.failed.call(n)}if(e!==undefined)e(n,r);this.hooks.afterDone.call(r)};const r=Date.now();this.running=true;const i=(e,s)=>{if(e)return n(e);if(this.hooks.shouldEmit.call(s)===false){const e=new v(s);e.startTime=r;e.endTime=Date.now();this.hooks.done.callAsync(e,t=>{if(t)return n(t);return n(null,e)});return}process.nextTick(()=>{t=s.getLogger("webpack.Compiler");t.time("emitAssets");this.emitAssets(s,e=>{t.timeEnd("emitAssets");if(e)return n(e);if(s.hooks.needAdditionalPass.call()){s.needAdditionalPass=true;const e=new v(s);e.startTime=r;e.endTime=Date.now();t.time("done hook");this.hooks.done.callAsync(e,e=>{t.timeEnd("done hook");if(e)return n(e);this.hooks.additionalPass.callAsync(e=>{if(e)return n(e);this.compile(i)})});return}t.time("emitRecords");this.emitRecords(e=>{t.timeEnd("emitRecords");if(e)return n(e);const i=new v(s);i.startTime=r;i.endTime=Date.now();t.time("done hook");this.hooks.done.callAsync(i,e=>{t.timeEnd("done hook");if(e)return n(e);this.cache.storeBuildDependencies(s.buildDependencies,e=>{if(e)return n(e);return n(null,i)})})})})})};const s=()=>{this.hooks.beforeRun.callAsync(this,e=>{if(e)return n(e);this.hooks.run.callAsync(this,e=>{if(e)return n(e);this.readRecords(e=>{if(e)return n(e);this.compile(i)})})})};if(this.idle){this.cache.endIdle(e=>{if(e)return n(e);this.idle=false;s()})}else{s()}}runAsChild(e){this.compile((t,n)=>{if(t)return e(t);this.parentCompilation.children.push(n);for(const{name:e,source:t,info:r}of n.getAssets()){this.parentCompilation.emitAsset(e,t,r)}const r=[];for(const e of n.entrypoints.values()){r.push(...e.chunks)}return e(null,r,n)})}purgeInputFileSystem(){if(this.inputFileSystem&&this.inputFileSystem.purge){this.inputFileSystem.purge()}}emitAssets(e,t){let n;const r=r=>{if(r)return t(r);const s=e.getAssets();e.assets={...e.assets};const o=new Map;i.forEachLimit(s,15,({name:t,source:r,info:i},s)=>{let a=t;const c=a.indexOf("?");if(c>=0){a=a.substr(0,c)}const l=c=>{if(c)return s(c);const l=w(this.outputFileSystem,n,a);const f=l.toLowerCase();if(o.has(f)){const e=o.get(f);const n=new b(`Prevent writing to file that only differs in casing or query string from already written file.\nThis will lead to a race-condition and corrupted files on case-insensitive file systems.\n${l}\n${e}`);n.file=t;return s(n)}else{o.set(f,l)}const p=this._assetEmittingWrittenFiles.get(l);let d=this._assetEmittingSourceCache.get(r);if(d===undefined){d={sizeOnlySource:undefined,writtenTo:new Map};this._assetEmittingSourceCache.set(r,d)}const h=()=>{if(typeof r.buffer==="function"){return r.buffer()}else{const e=r.source();if(Buffer.isBuffer(e)){return e}else{return Buffer.from(e,"utf8")}}};const m=()=>{if(p===undefined){const e=1;this._assetEmittingWrittenFiles.set(l,e);d.writtenTo.set(l,e)}else{d.writtenTo.set(l,p)}s()};const g=i=>{this.outputFileSystem.writeFile(l,i,o=>{if(o)return s(o);e.emittedAssets.add(t);const a=p===undefined?1:p+1;d.writtenTo.set(l,a);this._assetEmittingWrittenFiles.set(l,a);this.hooks.assetEmitted.callAsync(t,{content:i,source:r,outputPath:n,compilation:e,targetPath:l},s)})};const y=n=>{if(!d.sizeOnlySource){d.sizeOnlySource=new u(n)}e.updateAsset(t,d.sizeOnlySource,{size:n})};const v=n=>{if(i.immutable){y(n.size);return m()}const r=h();y(r.length);if(r.length===n.size){e.comparedForEmitAssets.add(t);return this.outputFileSystem.readFile(l,(e,t)=>{if(e||!r.equals(t)){return g(r)}else{return m()}})}return g(r)};const _=()=>{const e=h();y(e.length);return g(e)};if(p!==undefined){const n=d.writtenTo.get(l);if(n===p){e.updateAsset(t,d.sizeOnlySource,{size:d.sizeOnlySource.size()});return s()}if(!i.immutable){return _()}}if(this.options.output.compareBeforeEmit){this.outputFileSystem.stat(l,(e,t)=>{const n=!e&&t.isFile();if(n){v(t)}else{_()}})}else{_()}};if(a.match(/\/|\\/)){const e=this.outputFileSystem;const t=S(e,w(e,n,a));k(e,t,l)}else{l()}},n=>{if(n)return t(n);this.hooks.afterEmit.callAsync(e,e=>{if(e)return t(e);return t()})})};this.hooks.emit.callAsync(e,i=>{if(i)return t(i);n=e.getPath(this.outputPath,{});k(this.outputFileSystem,n,r)})}emitRecords(e){if(!this.recordsOutputPath)return e();const t=()=>{this.outputFileSystem.writeFile(this.recordsOutputPath,JSON.stringify(this.records,(e,t)=>{if(typeof t==="object"&&t!==null&&!Array.isArray(t)){const e=Object.keys(t);if(!x(e)){return C(t,e)}}return t},2),e)};const n=S(this.outputFileSystem,this.recordsOutputPath);if(!n){return t()}k(this.outputFileSystem,n,n=>{if(n)return e(n);t()})}readRecords(e){if(!this.recordsInputPath){this.records={};return e()}this.inputFileSystem.stat(this.recordsInputPath,t=>{if(t)return e();this.inputFileSystem.readFile(this.recordsInputPath,(t,n)=>{if(t)return e(t);try{this.records=r(n.toString("utf-8"))}catch(t){t.message="Cannot parse records: "+t.message;return e(t)}return e()})})}createChildCompiler(e,t,n,r,i){const s=new Compiler(this.context);if(Array.isArray(i)){for(const e of i){e.apply(s)}}for(const e in this.hooks){if(!["make","compile","emit","afterEmit","invalid","done","thisCompilation"].includes(e)){if(s.hooks[e]){s.hooks[e].taps=this.hooks[e].taps.slice()}}}s.name=t;s.outputPath=this.outputPath;s.inputFileSystem=this.inputFileSystem;s.outputFileSystem=null;s.resolverFactory=this.resolverFactory;s.modifiedFiles=this.modifiedFiles;s.removedFiles=this.removedFiles;s.fileTimestamps=this.fileTimestamps;s.contextTimestamps=this.contextTimestamps;s.cache=this.cache;s.compilerPath=this.compilerPath+"/"+t+n;const o=D(this.context,t,this.root);if(!this.records[o]){this.records[o]=[]}if(this.records[o][n]){s.records=this.records[o][n]}else{this.records[o].push(s.records={})}s.options={...this.options,output:{...this.options.output,...r}};s.parentCompilation=e;s.root=this.root;e.hooks.childCompiler.call(s,t,n);return s}isChild(){return!!this.parentCompilation}createCompilation(){return new p(this)}newCompilation(e){const t=this.createCompilation();t.name=this.name;t.records=this.records;this.hooks.thisCompilation.call(t,e);this.hooks.compilation.call(t,e);return t}createNormalModuleFactory(){const e=new m({context:this.options.context,fs:this.inputFileSystem,resolverFactory:this.resolverFactory,options:this.options.module||{},associatedObjectForCache:this.root});this.hooks.normalModuleFactory.call(e);return e}createContextModuleFactory(){const e=new h(this.resolverFactory);this.hooks.contextModuleFactory.call(e);return e}newCompilationParams(){const e={normalModuleFactory:this.createNormalModuleFactory(),contextModuleFactory:this.createContextModuleFactory()};return e}compile(e){const t=this.newCompilationParams();this.hooks.beforeCompile.callAsync(t,n=>{if(n)return e(n);this.hooks.compile.call(t);const r=this.newCompilation(t);const i=r.getLogger("webpack.Compiler");i.time("make hook");this.hooks.make.callAsync(r,t=>{i.timeEnd("make hook");if(t)return e(t);i.time("finish make hook");this.hooks.finishMake.callAsync(r,t=>{i.timeEnd("finish make hook");if(t)return e(t);process.nextTick(()=>{i.time("finish compilation");r.finish(t=>{i.timeEnd("finish compilation");if(t)return e(t);i.time("seal compilation");r.seal(t=>{i.timeEnd("seal compilation");if(t)return e(t);i.time("afterCompile hook");this.hooks.afterCompile.callAsync(r,t=>{i.timeEnd("afterCompile hook");if(t)return e(t);return e(null,r)})})})})})})})}close(e){this.cache.shutdown(e)}}e.exports=Compiler},27310:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class ConcurrentCompilationError extends r{constructor(){super();this.name="ConcurrentCompilationError";this.message="You ran Webpack twice. Each instance only supports a single concurrent compilation at a time.";Error.captureStackTrace(this,this.constructor)}}},40552:(e,t,n)=>{"use strict";const r=n(59455);const i=n(66298);const{evaluateToString:s}=n(48472);const{parseResource:o}=n(49197);const a=(e,t)=>{const n=[t];while(n.length>0){const t=n.pop();switch(t.type){case"Identifier":e.add(t.name);break;case"ArrayPattern":for(const e of t.elements){if(e){n.push(e)}}break;case"AssignmentPattern":n.push(t.left);break;case"ObjectPattern":for(const e of t.properties){n.push(e.value)}break;case"RestElement":n.push(t.argument);break}}};const c=(e,t)=>{const n=new Set;const r=[e];while(r.length>0){const e=r.pop();if(!e)continue;switch(e.type){case"BlockStatement":for(const t of e.body){r.push(t)}break;case"IfStatement":r.push(e.consequent);r.push(e.alternate);break;case"ForStatement":r.push(e.init);r.push(e.body);break;case"ForInStatement":case"ForOfStatement":r.push(e.left);r.push(e.body);break;case"DoWhileStatement":case"WhileStatement":case"LabeledStatement":r.push(e.body);break;case"SwitchStatement":for(const t of e.cases){for(const e of t.consequent){r.push(e)}}break;case"TryStatement":r.push(e.block);if(e.handler){r.push(e.handler.body)}r.push(e.finalizer);break;case"FunctionDeclaration":if(t){a(n,e.id)}break;case"VariableDeclaration":if(e.kind==="var"){for(const t of e.declarations){a(n,t.id)}}break}}return Array.from(n)};class ConstPlugin{apply(e){const t=o.bindCache(e.root);e.hooks.compilation.tap("ConstPlugin",(e,{normalModuleFactory:n})=>{e.dependencyTemplates.set(i,new i.Template);e.dependencyTemplates.set(r,new r.Template);const o=e=>{e.hooks.statementIf.tap("ConstPlugin",t=>{if(e.scope.isAsmJs)return;const n=e.evaluateExpression(t.test);const r=n.asBool();if(typeof r==="boolean"){if(!n.couldHaveSideEffects()){const s=new i(`${r}`,n.range);s.loc=t.loc;e.state.module.addPresentationalDependency(s)}else{e.walkExpression(t.test)}const s=r?t.alternate:t.consequent;if(s){let t;if(e.scope.isStrict){t=c(s,false)}else{t=c(s,true)}let n;if(t.length>0){n=`{ var ${t.join(", ")}; }`}else{n="{}"}const r=new i(n,s.range);r.loc=s.loc;e.state.module.addPresentationalDependency(r)}return r}});e.hooks.expressionConditionalOperator.tap("ConstPlugin",t=>{if(e.scope.isAsmJs)return;const n=e.evaluateExpression(t.test);const r=n.asBool();if(typeof r==="boolean"){if(!n.couldHaveSideEffects()){const s=new i(` ${r}`,n.range);s.loc=t.loc;e.state.module.addPresentationalDependency(s)}else{e.walkExpression(t.test)}const s=r?t.alternate:t.consequent;const o=new i("0",s.range);o.loc=s.loc;e.state.module.addPresentationalDependency(o);return r}});e.hooks.expressionLogicalOperator.tap("ConstPlugin",t=>{if(e.scope.isAsmJs)return;if(t.operator==="&&"||t.operator==="||"){const n=e.evaluateExpression(t.left);const r=n.asBool();if(typeof r==="boolean"){const s=t.operator==="&&"&&r||t.operator==="||"&&!r;if(!n.couldHaveSideEffects()&&(n.isBoolean()||s)){const s=new i(` ${r}`,n.range);s.loc=t.loc;e.state.module.addPresentationalDependency(s)}else{e.walkExpression(t.left)}if(!s){const n=new i("0",t.right.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n)}return s}}else if(t.operator==="??"){const n=e.evaluateExpression(t.left);const r=n&&n.asNullish();if(typeof r==="boolean"){if(!n.couldHaveSideEffects()&&r){const r=new i(" null",n.range);r.loc=t.loc;e.state.module.addPresentationalDependency(r)}else{const n=new i("0",t.right.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n);e.walkExpression(t.left)}return r}}});e.hooks.optionalChaining.tap("ConstPlugin",t=>{const n=[];let r=t.expression;while(r.type==="MemberExpression"||r.type==="CallExpression"){if(r.type==="MemberExpression"){if(r.optional){n.push(r.object)}r=r.object}else{if(r.optional){n.push(r.callee)}r=r.callee}}while(n.length){const r=n.pop();const s=e.evaluateExpression(r);if(s&&s.asNullish()){const n=new i(" undefined",t.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true}}});e.hooks.evaluateIdentifier.for("__resourceQuery").tap("ConstPlugin",n=>{if(e.scope.isAsmJs)return;if(!e.state.module)return;return s(t(e.state.module.resource).query)(n)});e.hooks.expression.for("__resourceQuery").tap("ConstPlugin",n=>{if(e.scope.isAsmJs)return;if(!e.state.module)return;const i=new r(JSON.stringify(t(e.state.module.resource).query),n.range,"__resourceQuery");i.loc=n.loc;e.state.module.addPresentationalDependency(i);return true});e.hooks.evaluateIdentifier.for("__resourceFragment").tap("ConstPlugin",n=>{if(e.scope.isAsmJs)return;if(!e.state.module)return;return s(t(e.state.module.resource).fragment)(n)});e.hooks.expression.for("__resourceFragment").tap("ConstPlugin",n=>{if(e.scope.isAsmJs)return;if(!e.state.module)return;const i=new r(JSON.stringify(t(e.state.module.resource).fragment),n.range,"__resourceFragment");i.loc=n.loc;e.state.module.addPresentationalDependency(i);return true})};n.hooks.parser.for("javascript/auto").tap("ConstPlugin",o);n.hooks.parser.for("javascript/dynamic").tap("ConstPlugin",o);n.hooks.parser.for("javascript/esm").tap("ConstPlugin",o)})}}e.exports=ConstPlugin},51709:e=>{"use strict";class ContextExclusionPlugin{constructor(e){this.negativeMatcher=e}apply(e){e.hooks.contextModuleFactory.tap("ContextExclusionPlugin",e=>{e.hooks.contextModuleFiles.tap("ContextExclusionPlugin",e=>{return e.filter(e=>!this.negativeMatcher.test(e))})})}}e.exports=ContextExclusionPlugin},58126:(e,t,n)=>{"use strict";const{OriginalSource:r,RawSource:i}=n(48135);const s=n(98221);const{makeWebpackError:o}=n(3728);const a=n(53453);const c=n(76150);const u=n(58159);const l=n(81627);const{compareLocations:f,concatComparators:p,compareSelect:d,keepOriginalOrder:h}=n(68673);const{compareModulesById:m}=n(68673);const{contextify:g,parseResource:y}=n(49197);const v=n(56202);const _=new Set(["javascript"]);class ContextModule extends a{constructor(e,t){const n=y(t?t.resource:"");const r=n.path;const i=t&&t.resourceQuery||n.query;const s=t&&t.resourceFragment||n.fragment;super("javascript/dynamic",r);this.resolveDependencies=e;this.options={...t,resource:r,resourceQuery:i,resourceFragment:s};if(t&&t.resolveOptions!==undefined){this.resolveOptions=t.resolveOptions}this._contextDependencies=new Set([this.context]);if(t&&typeof t.mode!=="string"){throw new Error("options.mode is a required option")}this._identifier=this._createIdentifier();this._forceBuild=true}getSourceTypes(){return _}updateCacheModule(e){const t=e;this.resolveDependencies=t.resolveDependencies;this.options=t.options;this.resolveOptions=t.resolveOptions}prettyRegExp(e){return e.substring(1,e.length-1)}_createIdentifier(){let e=this.context;if(this.options.resourceQuery){e+=`|${this.options.resourceQuery}`}if(this.options.resourceFragment){e+=`|${this.options.resourceFragment}`}if(this.options.mode){e+=`|${this.options.mode}`}if(!this.options.recursive){e+="|nonrecursive"}if(this.options.addon){e+=`|${this.options.addon}`}if(this.options.regExp){e+=`|${this.options.regExp}`}if(this.options.include){e+=`|include: ${this.options.include}`}if(this.options.exclude){e+=`|exclude: ${this.options.exclude}`}if(this.options.referencedExports){e+=`|referencedExports: ${JSON.stringify(this.options.referencedExports)}`}if(this.options.chunkName){e+=`|chunkName: ${this.options.chunkName}`}if(this.options.groupOptions){e+=`|groupOptions: ${JSON.stringify(this.options.groupOptions)}`}if(this.options.namespaceObject==="strict"){e+="|strict namespace object"}else if(this.options.namespaceObject){e+="|namespace object"}return e}identifier(){return this._identifier}readableIdentifier(e){let t=e.shorten(this.context);if(this.options.resourceQuery){t+=` ${this.options.resourceQuery}`}if(this.options.mode){t+=` ${this.options.mode}`}if(!this.options.recursive){t+=" nonrecursive"}if(this.options.addon){t+=` ${e.shorten(this.options.addon)}`}if(this.options.regExp){t+=` ${this.prettyRegExp(this.options.regExp+"")}`}if(this.options.include){t+=` include: ${this.prettyRegExp(this.options.include+"")}`}if(this.options.exclude){t+=` exclude: ${this.prettyRegExp(this.options.exclude+"")}`}if(this.options.referencedExports){t+=` referencedExports: ${this.options.referencedExports.map(e=>e.join(".")).join(", ")}`}if(this.options.chunkName){t+=` chunkName: ${this.options.chunkName}`}if(this.options.groupOptions){const e=this.options.groupOptions;for(const n of Object.keys(e)){t+=` ${n}: ${e[n]}`}}if(this.options.namespaceObject==="strict"){t+=" strict namespace object"}else if(this.options.namespaceObject){t+=" namespace object"}return t}libIdent(e){let t=g(e.context,this.context,e.associatedObjectForCache);if(this.options.mode){t+=` ${this.options.mode}`}if(this.options.recursive){t+=" recursive"}if(this.options.addon){t+=` ${g(e.context,this.options.addon,e.associatedObjectForCache)}`}if(this.options.regExp){t+=` ${this.prettyRegExp(this.options.regExp+"")}`}if(this.options.include){t+=` include: ${this.prettyRegExp(this.options.include+"")}`}if(this.options.exclude){t+=` exclude: ${this.prettyRegExp(this.options.exclude+"")}`}if(this.options.referencedExports){t+=` referencedExports: ${this.options.referencedExports.map(e=>e.join(".")).join(", ")}`}return t}invalidateBuild(){this._forceBuild=true}needBuild({fileSystemInfo:e},t){if(this._forceBuild)return t(null,true);if(!this.buildInfo.snapshot)return t(null,true);e.checkSnapshotValid(this.buildInfo.snapshot,(e,n)=>{t(e,!n)})}build(e,t,n,r,i){this._forceBuild=false;this.buildMeta={exportsType:"default",defaultObject:"redirect-warn"};this.buildInfo={snapshot:undefined,contextDependencies:this._contextDependencies};this.dependencies.length=0;this.blocks.length=0;const a=Date.now();this.resolveDependencies(r,this.options,(e,n)=>{if(e){return i(o(e,"ContextModule.resolveDependencies"))}if(!n){i();return}for(const e of n){e.loc={name:e.userRequest};e.request=this.options.addon+e.request}n.sort(p(d(e=>e.loc,f),h(this.dependencies)));if(this.options.mode==="sync"||this.options.mode==="eager"){this.dependencies=n}else if(this.options.mode==="lazy-once"){if(n.length>0){const e=new s({...this.options.groupOptions,name:this.options.chunkName});for(const t of n){e.addDependency(t)}this.addBlock(e)}}else if(this.options.mode==="weak"||this.options.mode==="async-weak"){for(const e of n){e.weak=true}this.dependencies=n}else if(this.options.mode==="lazy"){let e=0;for(const t of n){let n=this.options.chunkName;if(n){if(!/\[(index|request)\]/.test(n)){n+="[index]"}n=n.replace(/\[index\]/g,`${e++}`);n=n.replace(/\[request\]/g,u.toPath(t.userRequest))}const r=new s({...this.options.groupOptions,name:n},t.loc,t.userRequest);r.addDependency(t);this.addBlock(r)}}else{i(new l(`Unsupported mode "${this.options.mode}" in context`));return}t.fileSystemInfo.createSnapshot(a,null,[this.context],null,{},(e,t)=>{if(e)return i(e);this.buildInfo.snapshot=t;i()})})}getUserRequestMap(e,t){const n=t.moduleGraph;const r=e.filter(e=>n.getModule(e)).sort((e,t)=>{if(e.userRequest===t.userRequest){return 0}return e.userRequest<t.userRequest?-1:1});const i=Object.create(null);for(const e of r){const r=n.getModule(e);i[e.userRequest]=t.getModuleId(r)}return i}getFakeMap(e,t){if(!this.options.namespaceObject){return 9}const n=t.moduleGraph;let r=0;const i=m(t);const s=e.map(e=>n.getModule(e)).filter(Boolean).sort(i);const o=Object.create(null);for(const e of s){const i=e.getExportsType(n,this.options.namespaceObject==="strict");const s=t.getModuleId(e);switch(i){case"namespace":o[s]=9;r|=1;break;case"dynamic":o[s]=7;r|=2;break;case"default-only":o[s]=1;r|=4;break;case"default-with-named":o[s]=3;r|=8;break;default:throw new Error(`Unexpected exports type ${i}`)}}if(r===1){return 9}if(r===2){return 7}if(r===4){return 1}if(r===8){return 3}if(r===0){return 9}return o}getFakeMapInitStatement(e){return typeof e==="object"?`var fakeMap = ${JSON.stringify(e,null,"\t")};`:""}getReturn(e){if(e===9){return"__webpack_require__(id)"}return`${c.createFakeNamespaceObject}(id, ${e})`}getReturnModuleObjectSource(e,t="fakeMap[id]"){if(typeof e==="number"){return`return ${this.getReturn(e)};`}return`return ${c.createFakeNamespaceObject}(id, ${t})`}getSyncSource(e,t,n){const r=this.getUserRequestMap(e,n);const i=this.getFakeMap(e,n);const s=this.getReturnModuleObjectSource(i);return`var map = ${JSON.stringify(r,null,"\t")};\n${this.getFakeMapInitStatement(i)}\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\t${s}\n}\nfunction webpackContextResolve(req) {\n\tif(!${c.hasOwnProperty}(map, req)) {\n\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = ${JSON.stringify(t)};`}getWeakSyncSource(e,t,n){const r=this.getUserRequestMap(e,n);const i=this.getFakeMap(e,n);const s=this.getReturnModuleObjectSource(i);return`var map = ${JSON.stringify(r,null,"\t")};\n${this.getFakeMapInitStatement(i)}\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\tif(!${c.moduleFactories}[id]) {\n\t\tvar e = new Error("Module '" + req + "' ('" + id + "') is not available (weak dependency)");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\t${s}\n}\nfunction webpackContextResolve(req) {\n\tif(!${c.hasOwnProperty}(map, req)) {\n\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nwebpackContext.id = ${JSON.stringify(t)};\nmodule.exports = webpackContext;`}getAsyncWeakSource(e,t,{chunkGraph:n,runtimeTemplate:r}){const i=r.supportsArrowFunction();const s=this.getUserRequestMap(e,n);const o=this.getFakeMap(e,n);const a=this.getReturnModuleObjectSource(o);return`var map = ${JSON.stringify(s,null,"\t")};\n${this.getFakeMapInitStatement(o)}\n\nfunction webpackAsyncContext(req) {\n\treturn webpackAsyncContextResolve(req).then(${i?"id =>":"function(id)"} {\n\t\tif(!${c.moduleFactories}[id]) {\n\t\t\tvar e = new Error("Module '" + req + "' ('" + id + "') is not available (weak dependency)");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t}\n\t\t${a}\n\t});\n}\nfunction webpackAsyncContextResolve(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(${i?"() =>":"function()"} {\n\t\tif(!${c.hasOwnProperty}(map, req)) {\n\t\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t}\n\t\treturn map[req];\n\t});\n}\nwebpackAsyncContext.keys = ${r.returningFunction("Object.keys(map)")};\nwebpackAsyncContext.resolve = webpackAsyncContextResolve;\nwebpackAsyncContext.id = ${JSON.stringify(t)};\nmodule.exports = webpackAsyncContext;`}getEagerSource(e,t,{chunkGraph:n,runtimeTemplate:r}){const i=r.supportsArrowFunction();const s=this.getUserRequestMap(e,n);const o=this.getFakeMap(e,n);const a=o!==9?`${i?"id =>":"function(id)"} {\n\t\t${this.getReturnModuleObjectSource(o)}\n\t}`:"__webpack_require__";return`var map = ${JSON.stringify(s,null,"\t")};\n${this.getFakeMapInitStatement(o)}\n\nfunction webpackAsyncContext(req) {\n\treturn webpackAsyncContextResolve(req).then(${a});\n}\nfunction webpackAsyncContextResolve(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(${i?"() =>":"function()"} {\n\t\tif(!${c.hasOwnProperty}(map, req)) {\n\t\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t}\n\t\treturn map[req];\n\t});\n}\nwebpackAsyncContext.keys = ${r.returningFunction("Object.keys(map)")};\nwebpackAsyncContext.resolve = webpackAsyncContextResolve;\nwebpackAsyncContext.id = ${JSON.stringify(t)};\nmodule.exports = webpackAsyncContext;`}getLazyOnceSource(e,t,n,{runtimeTemplate:r,chunkGraph:i}){const s=r.blockPromise({chunkGraph:i,block:e,message:"lazy-once context",runtimeRequirements:new Set});const o=r.supportsArrowFunction();const a=this.getUserRequestMap(t,i);const u=this.getFakeMap(t,i);const l=u!==9?`${o?"id =>":"function(id)"} {\n\t\t${this.getReturnModuleObjectSource(u)};\n\t}`:"__webpack_require__";return`var map = ${JSON.stringify(a,null,"\t")};\n${this.getFakeMapInitStatement(u)}\n\nfunction webpackAsyncContext(req) {\n\treturn webpackAsyncContextResolve(req).then(${l});\n}\nfunction webpackAsyncContextResolve(req) {\n\treturn ${s}.then(${o?"() =>":"function()"} {\n\t\tif(!${c.hasOwnProperty}(map, req)) {\n\t\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t}\n\t\treturn map[req];\n\t});\n}\nwebpackAsyncContext.keys = ${r.returningFunction("Object.keys(map)")};\nwebpackAsyncContext.resolve = webpackAsyncContextResolve;\nwebpackAsyncContext.id = ${JSON.stringify(n)};\nmodule.exports = webpackAsyncContext;`}getLazySource(e,t,{chunkGraph:n,runtimeTemplate:r}){const i=n.moduleGraph;const s=r.supportsArrowFunction();let o=false;let a=true;const u=this.getFakeMap(e.map(e=>e.dependencies[0]),n);const l=typeof u==="object";const f=e.map(e=>{const t=e.dependencies[0];return{dependency:t,module:i.getModule(t),block:e,userRequest:t.userRequest,chunks:undefined}}).filter(e=>e.module);for(const e of f){const t=n.getBlockChunkGroup(e.block);const r=t&&t.chunks||[];e.chunks=r;if(r.length>0){a=false}if(r.length!==1){o=true}}const p=a&&!l;const d=f.sort((e,t)=>{if(e.userRequest===t.userRequest)return 0;return e.userRequest<t.userRequest?-1:1});const h=Object.create(null);for(const e of d){const t=n.getModuleId(e.module);if(p){h[e.userRequest]=t}else{const n=[t];if(l){n.push(u[t])}h[e.userRequest]=n.concat(e.chunks.map(e=>e.id))}}const m=l?2:1;const g=a?"Promise.resolve()":o?`Promise.all(ids.slice(${m}).map(${c.ensureChunk}))`:`${c.ensureChunk}(ids[${m}])`;const y=this.getReturnModuleObjectSource(u,p?"invalid":"ids[1]");const v=g==="Promise.resolve()"?`${p?"":""}\nfunction webpackAsyncContext(req) {\n\treturn Promise.resolve().then(${s?"() =>":"function()"} {\n\t\tif(!${c.hasOwnProperty}(map, req)) {\n\t\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t}\n\n\t\t${p?"var id = map[req];":"var ids = map[req], id = ids[0];"}\n\t\t${y}\n\t});\n}`:`function webpackAsyncContext(req) {\n\tif(!${c.hasOwnProperty}(map, req)) {\n\t\treturn Promise.resolve().then(${s?"() =>":"function()"} {\n\t\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn ${g}.then(${s?"() =>":"function()"} {\n\t\t${y}\n\t});\n}`;return`var map = ${JSON.stringify(h,null,"\t")};\n${v}\nwebpackAsyncContext.keys = ${r.returningFunction("Object.keys(map)")};\nwebpackAsyncContext.id = ${JSON.stringify(t)};\nmodule.exports = webpackAsyncContext;`}getSourceForEmptyContext(e,t){return`function webpackEmptyContext(req) {\n\tvar e = new Error("Cannot find module '" + req + "'");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = ${t.returningFunction("[]")};\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = ${JSON.stringify(e)};\nmodule.exports = webpackEmptyContext;`}getSourceForEmptyAsyncContext(e,t){const n=t.supportsArrowFunction();return`function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(${n?"() =>":"function()"} {\n\t\tvar e = new Error("Cannot find module '" + req + "'");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = ${t.returningFunction("[]")};\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = ${JSON.stringify(e)};\nmodule.exports = webpackEmptyAsyncContext;`}getSourceString(e,{runtimeTemplate:t,chunkGraph:n}){const r=n.getModuleId(this);if(e==="lazy"){if(this.blocks&&this.blocks.length>0){return this.getLazySource(this.blocks,r,{runtimeTemplate:t,chunkGraph:n})}return this.getSourceForEmptyAsyncContext(r,t)}if(e==="eager"){if(this.dependencies&&this.dependencies.length>0){return this.getEagerSource(this.dependencies,r,{chunkGraph:n,runtimeTemplate:t})}return this.getSourceForEmptyAsyncContext(r,t)}if(e==="lazy-once"){const e=this.blocks[0];if(e){return this.getLazyOnceSource(e,e.dependencies,r,{runtimeTemplate:t,chunkGraph:n})}return this.getSourceForEmptyAsyncContext(r,t)}if(e==="async-weak"){if(this.dependencies&&this.dependencies.length>0){return this.getAsyncWeakSource(this.dependencies,r,{chunkGraph:n,runtimeTemplate:t})}return this.getSourceForEmptyAsyncContext(r,t)}if(e==="weak"){if(this.dependencies&&this.dependencies.length>0){return this.getWeakSyncSource(this.dependencies,r,n)}}if(this.dependencies&&this.dependencies.length>0){return this.getSyncSource(this.dependencies,r,n)}return this.getSourceForEmptyContext(r,t)}getSource(e){if(this.useSourceMap){return new r(e,this.identifier())}return new i(e)}codeGeneration(e){const{chunkGraph:t}=e;const n=new Map;n.set("javascript",this.getSource(this.getSourceString(this.options.mode,e)));const r=new Set;const i=this.dependencies.concat(this.blocks.map(e=>e.dependencies[0]));r.add(c.module);r.add(c.hasOwnProperty);if(i.length>0){const e=this.options.mode;r.add(c.require);if(e==="weak"){r.add(c.moduleFactories)}else if(e==="async-weak"){r.add(c.moduleFactories);r.add(c.ensureChunk)}else if(e==="lazy"||e==="lazy-once"){r.add(c.ensureChunk)}if(this.getFakeMap(i,t)!==9){r.add(c.createFakeNamespaceObject)}}return{sources:n,runtimeRequirements:r}}size(e){let t=160;for(const e of this.dependencies){const n=e;t+=5+n.userRequest.length}return t}serialize(e){const{write:t}=e;t(this._identifier);t(this._forceBuild);super.serialize(e)}deserialize(e){const{read:t}=e;this._identifier=t();this._forceBuild=t();super.deserialize(e)}}v(ContextModule,"webpack/lib/ContextModule");e.exports=ContextModule},89869:(e,t,n)=>{"use strict";const r=n(62355);const{AsyncSeriesWaterfallHook:i,SyncWaterfallHook:s}=n(92960);const o=n(58126);const a=n(40674);const c=n(90872);const{cachedSetProperty:u}=n(90149);const{createFakeHook:l}=n(16595);const{join:f}=n(95396);const p={};e.exports=class ContextModuleFactory extends a{constructor(e){super();const t=new i(["modules","options"]);this.hooks=Object.freeze({beforeResolve:new i(["data"]),afterResolve:new i(["data"]),contextModuleFiles:new s(["files"]),alternatives:l({name:"alternatives",intercept:e=>{throw new Error("Intercepting fake hook ContextModuleFactory.hooks.alternatives is not possible, use ContextModuleFactory.hooks.alternativeRequests instead")},tap:(e,n)=>{t.tap(e,n)},tapAsync:(e,n)=>{t.tapAsync(e,(e,t,r)=>n(e,r))},tapPromise:(e,n)=>{t.tapPromise(e,n)}},"ContextModuleFactory.hooks.alternatives has deprecated in favor of ContextModuleFactory.hooks.alternativeRequests with an additional options argument.","DEP_WEBPACK_CONTEXT_MODULE_FACTORY_ALTERNATIVES"),alternativeRequests:t});this.resolverFactory=e}create(e,t){const n=e.context;const i=e.dependencies;const s=e.resolveOptions;const a=i[0];const c=new Set;const l=new Set;const f=new Set;this.hooks.beforeResolve.callAsync({context:n,dependencies:i,resolveOptions:s,fileDependencies:c,missingDependencies:l,contextDependencies:f,...a.options},(e,n)=>{if(e){return t(e,{fileDependencies:c,missingDependencies:l,contextDependencies:f})}if(!n){return t(null,{fileDependencies:c,missingDependencies:l,contextDependencies:f})}const s=n.context;const a=n.request;const d=n.resolveOptions;let h,m,g="";const y=a.lastIndexOf("!");if(y>=0){let e=a.substr(0,y+1);let t;for(t=0;t<e.length&&e[t]==="!";t++){g+="!"}e=e.substr(t).replace(/!+$/,"").replace(/!!+/g,"!");if(e===""){h=[]}else{h=e.split("!")}m=a.substr(y+1)}else{h=[];m=a}const v=this.resolverFactory.get("context",i.length>0?u(d||p,"dependencyType",i[0].category):d);const _=this.resolverFactory.get("loader");r.parallel([e=>{v.resolve({},s,m,{fileDependencies:c,missingDependencies:l,contextDependencies:f},(t,n)=>{if(t)return e(t);e(null,n)})},e=>{r.map(h,(e,t)=>{_.resolve({},s,e,{fileDependencies:c,missingDependencies:l,contextDependencies:f},(e,n)=>{if(e)return t(e);t(null,n)})},e)}],(e,r)=>{if(e){return t(e,{fileDependencies:c,missingDependencies:l,contextDependencies:f})}this.hooks.afterResolve.callAsync({addon:g+r[1].join("!")+(r[1].length>0?"!":""),resource:r[0],resolveDependencies:this.resolveDependencies.bind(this),...n},(e,n)=>{if(e){return t(e,{fileDependencies:c,missingDependencies:l,contextDependencies:f})}if(!n){return t(null,{fileDependencies:c,missingDependencies:l,contextDependencies:f})}return t(null,{module:new o(n.resolveDependencies,n),fileDependencies:c,missingDependencies:l,contextDependencies:f})})})})}resolveDependencies(e,t,n){const i=this;const{resource:s,resourceQuery:o,resourceFragment:a,recursive:u,regExp:l,include:p,exclude:d,referencedExports:h,category:m}=t;if(!l||!s)return n(null,[]);const g=(n,y)=>{e.readdir(n,(v,_)=>{if(v)return y(v);_=_.map(e=>e.normalize("NFC"));_=i.hooks.contextModuleFiles.call(_);if(!_||_.length===0)return y(null,[]);r.map(_.filter(e=>e.indexOf(".")!==0),(r,i)=>{const y=f(e,n,r);if(!d||!y.match(d)){e.stat(y,(e,n)=>{if(e){if(e.code==="ENOENT"){return i()}else{return i(e)}}if(n.isDirectory()){if(!u)return i();g.call(this,y,i)}else if(n.isFile()&&(!p||y.match(p))){const e={context:s,request:"."+y.substr(s.length).replace(/\\/g,"/")};this.hooks.alternativeRequests.callAsync([e],t,(e,t)=>{if(e)return i(e);t=t.filter(e=>l.test(e.request)).map(e=>{const t=new c(e.request+o+a,e.request,m,h);t.optional=true;return t});i(null,t)})}else{i()}})}else{i()}},(e,t)=>{if(e)return y(e);if(!t)return y(null,[]);const n=[];for(const e of t){if(e)n.push(...e)}y(null,n)})})};g(s,n)}}},26552:(e,t,n)=>{"use strict";const r=n(90872);const{join:i}=n(95396);class ContextReplacementPlugin{constructor(e,t,n,r){this.resourceRegExp=e;if(typeof t==="function"){this.newContentCallback=t}else if(typeof t==="string"&&typeof n==="object"){this.newContentResource=t;this.newContentCreateContextMap=((e,t)=>{t(null,n)})}else if(typeof t==="string"&&typeof n==="function"){this.newContentResource=t;this.newContentCreateContextMap=n}else{if(typeof t!=="string"){r=n;n=t;t=undefined}if(typeof n!=="boolean"){r=n;n=undefined}this.newContentResource=t;this.newContentRecursive=n;this.newContentRegExp=r}}apply(e){const t=this.resourceRegExp;const n=this.newContentCallback;const r=this.newContentResource;const o=this.newContentRecursive;const a=this.newContentRegExp;const c=this.newContentCreateContextMap;e.hooks.contextModuleFactory.tap("ContextReplacementPlugin",u=>{u.hooks.beforeResolve.tap("ContextReplacementPlugin",e=>{if(!e)return;if(t.test(e.request)){if(r!==undefined){e.request=r}if(o!==undefined){e.recursive=o}if(a!==undefined){e.regExp=a}if(typeof n==="function"){n(e)}else{for(const t of e.dependencies){if(t.critical)t.critical=false}}}return e});u.hooks.afterResolve.tap("ContextReplacementPlugin",u=>{if(!u)return;if(t.test(u.resource)){if(r!==undefined){if(r.startsWith("/")||r.length>1&&r[1]===":"){u.resource=r}else{u.resource=i(e.inputFileSystem,u.resource,r)}}if(o!==undefined){u.recursive=o}if(a!==undefined){u.regExp=a}if(typeof c==="function"){u.resolveDependencies=s(c)}if(typeof n==="function"){const t=u.resource;n(u);if(u.resource!==t&&!u.resource.startsWith("/")&&(u.resource.length<=1||u.resource[1]!==":")){u.resource=i(e.inputFileSystem,t,u.resource)}}else{for(const e of u.dependencies){if(e.critical)e.critical=false}}}return u})})}}const s=e=>{const t=(t,n,i)=>{e(t,(e,t)=>{if(e)return i(e);const s=Object.keys(t).map(e=>{return new r(t[e]+n.resourceQuery+n.resourceFragment,e,n.category,n.referencedExports)});i(null,s)})};return t};e.exports=ContextReplacementPlugin},24820:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66298);const s=n(87250);const{approve:o,evaluateToString:a,toConstantDependency:c}=n(48472);class RuntimeValue{constructor(e,t){this.fn=e;this.fileDependencies=t||[]}exec(e){const t=e.state.module.buildInfo;if(this.fileDependencies===true){t.cacheable=false}else{for(const e of this.fileDependencies){t.fileDependencies.add(e);if(!t.snapshot.fileTimestamps.has(e))t.snapshot.fileTimestamps.set(e,{})}}return this.fn({module:e.state.module})}}const u=(e,t,n)=>{if(Array.isArray(e)){return"Object(["+e.map(e=>l(e,t,n)).join(",")+"])"}return"Object({"+Object.keys(e).map(r=>{const i=e[r];return JSON.stringify(r)+":"+l(i,t,n)}).join(",")+"})"};const l=(e,t,n)=>{if(e===null){return"null"}if(e===undefined){return"undefined"}if(Object.is(e,-0)){return"-0"}if(e instanceof RuntimeValue){return l(e.exec(t),t,n)}if(e instanceof RegExp&&e.toString){return e.toString()}if(typeof e==="function"&&e.toString){return"("+e.toString()+")"}if(typeof e==="object"){return u(e,t,n)}if(typeof e==="bigint"){return n>=11?`${e}n`:`BigInt("${e}")`}return e+""};class DefinePlugin{constructor(e){this.definitions=e}static runtimeValue(e,t){return new RuntimeValue(e,t)}apply(e){const t=this.definitions;e.hooks.compilation.tap("DefinePlugin",(e,{normalModuleFactory:n})=>{e.dependencyTemplates.set(i,new i.Template);const{ecmaVersion:f}=e.outputOptions;const p=e=>{const n=(e,t)=>{Object.keys(e).forEach(r=>{const s=e[r];if(s&&typeof s==="object"&&!(s instanceof RuntimeValue)&&!(s instanceof RegExp)){n(s,t+r+".");d(t+r,s);return}i(t,r);p(t+r,s)})};const i=(t,n)=>{const r=n.split(".");r.slice(1).forEach((n,i)=>{const s=t+r.slice(0,i+1).join(".");e.hooks.canRename.for(s).tap("DefinePlugin",o)})};const p=(t,n)=>{const i=/^typeof\s+/.test(t);if(i)t=t.replace(/^typeof\s+/,"");let s=false;let a=false;if(!i){e.hooks.canRename.for(t).tap("DefinePlugin",o);e.hooks.evaluateIdentifier.for(t).tap("DefinePlugin",t=>{if(s)return;s=true;const r=e.evaluate(l(n,e,f));s=false;r.setRange(t.range);return r});e.hooks.expression.for(t).tap("DefinePlugin",t=>{const i=l(n,e,f);if(/__webpack_require__\s*(!?\.)/.test(i)){return c(e,i,[r.require])(t)}else if(/__webpack_require__/.test(i)){return c(e,i,[r.requireScope])(t)}else{return c(e,i)(t)}})}e.hooks.evaluateTypeof.for(t).tap("DefinePlugin",t=>{if(a)return;a=true;const r=i?l(n,e,f):"typeof ("+l(n,e,f)+")";const s=e.evaluate(r);a=false;s.setRange(t.range);return s});e.hooks.typeof.for(t).tap("DefinePlugin",t=>{const r=i?l(n,e,f):"typeof ("+l(n,e,f)+")";const s=e.evaluate(r);if(!s.isString())return;return c(e,JSON.stringify(s.string)).bind(e)(t)})};const d=(t,n)=>{e.hooks.canRename.for(t).tap("DefinePlugin",o);e.hooks.evaluateIdentifier.for(t).tap("DefinePlugin",e=>(new s).setTruthy().setSideEffects(false).setRange(e.range));e.hooks.evaluateTypeof.for(t).tap("DefinePlugin",a("object"));e.hooks.expression.for(t).tap("DefinePlugin",t=>{const i=u(n,e,f);if(/__webpack_require__\s*(!?\.)/.test(i)){return c(e,i,[r.require])(t)}else if(/__webpack_require__/.test(i)){return c(e,i,[r.requireScope])(t)}else{return c(e,i)(t)}});e.hooks.typeof.for(t).tap("DefinePlugin",c(e,JSON.stringify("object")))};n(t,"")};n.hooks.parser.for("javascript/auto").tap("DefinePlugin",p);n.hooks.parser.for("javascript/dynamic").tap("DefinePlugin",p);n.hooks.parser.for("javascript/esm").tap("DefinePlugin",p)})}}e.exports=DefinePlugin},3955:(e,t,n)=>{"use strict";const{OriginalSource:r,RawSource:i}=n(48135);const s=n(53453);const o=n(76150);const a=n(49422);const c=n(96076);const u=n(56202);const l=new Set(["javascript"]);const f=new Set([o.module,o.require]);class DelegatedModule extends s{constructor(e,t,n,r,i){super("javascript/dynamic",null);this.sourceRequest=e;this.request=t.id;this.delegationType=n;this.userRequest=r;this.originalRequest=i;this.delegateData=t;this.delegatedSourceDependency=undefined}getSourceTypes(){return l}libIdent(e){return typeof this.originalRequest==="string"?this.originalRequest:this.originalRequest.libIdent(e)}identifier(){return`delegated ${JSON.stringify(this.request)} from ${this.sourceRequest}`}readableIdentifier(e){return`delegated ${this.userRequest} from ${this.sourceRequest}`}needBuild(e,t){return t(null,!this.buildMeta)}build(e,t,n,r,i){this.buildMeta={...this.delegateData.buildMeta};this.buildInfo={};this.dependencies.length=0;this.delegatedSourceDependency=new a(this.sourceRequest);this.addDependency(this.delegatedSourceDependency);this.addDependency(new c(this.delegateData.exports||true,false));i()}codeGeneration({runtimeTemplate:e,moduleGraph:t,chunkGraph:n}){const s=this.dependencies[0];const o=t.getModule(s);let a;if(!o){a=e.throwMissingModuleErrorBlock({request:this.sourceRequest})}else{a=`module.exports = (${e.moduleExports({module:o,chunkGraph:n,request:s.request,runtimeRequirements:new Set})})`;switch(this.delegationType){case"require":a+=`(${JSON.stringify(this.request)})`;break;case"object":a+=`[${JSON.stringify(this.request)}]`;break}a+=";"}const c=new Map;if(this.useSourceMap){c.set("javascript",new r(a,this.identifier()))}else{c.set("javascript",new i(a))}return{sources:c,runtimeRequirements:f}}size(e){return 42}updateHash(e,t){e.update(this.delegationType);e.update(JSON.stringify(this.request));super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this.sourceRequest);t(this.delegateData);t(this.delegationType);t(this.userRequest);t(this.originalRequest);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new DelegatedModule(t(),t(),t(),t(),t());n.deserialize(e);return n}updateCacheModule(e){super.updateCacheModule(e);const t=e;this.delegationType=t.delegationType;this.userRequest=t.userRequest;this.originalRequest=t.originalRequest;this.delegateData=t.delegateData}}u(DelegatedModule,"webpack/lib/DelegatedModule");e.exports=DelegatedModule},56396:(e,t,n)=>{"use strict";const r=n(3955);class DelegatedModuleFactoryPlugin{constructor(e){this.options=e;e.type=e.type||"require";e.extensions=e.extensions||["",".mjs",".js",".json",".wasm"]}apply(e){const t=this.options.scope;if(t){e.hooks.factorize.tapAsync("DelegatedModuleFactoryPlugin",(e,n)=>{const[i]=e.dependencies;const{request:s}=i;if(s&&s.startsWith(`${t}/`)){const e="."+s.substr(t.length);let i;if(e in this.options.content){i=this.options.content[e];return n(null,new r(this.options.source,i,this.options.type,e,s))}for(let t=0;t<this.options.extensions.length;t++){const o=this.options.extensions[t];const a=e+o;if(a in this.options.content){i=this.options.content[a];return n(null,new r(this.options.source,i,this.options.type,a,s+o))}}}return n()})}else{e.hooks.module.tap("DelegatedModuleFactoryPlugin",e=>{const t=e.libIdent(this.options);if(t){if(t in this.options.content){const n=this.options.content[t];return new r(this.options.source,n,this.options.type,t,e)}}return e})}}}e.exports=DelegatedModuleFactoryPlugin},82354:(e,t,n)=>{"use strict";const r=n(56396);const i=n(49422);class DelegatedPlugin{constructor(e){this.options=e}apply(e){e.hooks.compilation.tap("DelegatedPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(i,t)});e.hooks.compile.tap("DelegatedPlugin",({normalModuleFactory:t})=>{new r({associatedObjectForCache:e.root,...this.options}).apply(t)})}}e.exports=DelegatedPlugin},32448:(e,t,n)=>{"use strict";const r=n(56202);class DependenciesBlock{constructor(){this.dependencies=[];this.blocks=[]}addBlock(e){this.blocks.push(e);e.parent=this}addDependency(e){this.dependencies.push(e)}removeDependency(e){const t=this.dependencies.indexOf(e);if(t>=0){this.dependencies.splice(t,1)}}clearDependenciesAndBlocks(){this.dependencies.length=0;this.blocks.length=0}updateHash(e,t){for(const n of this.dependencies){n.updateHash(e,t)}for(const n of this.blocks){n.updateHash(e,t)}}serialize({write:e}){e(this.dependencies);e(this.blocks)}deserialize({read:e}){this.dependencies=e();this.blocks=e();for(const e of this.blocks){e.parent=this}}}r(DependenciesBlock,"webpack/lib/DependenciesBlock");e.exports=DependenciesBlock},28706:e=>{"use strict";class Dependency{constructor(){this.weak=false;this.optional=false;this.loc=undefined}get type(){return"unknown"}get category(){return"unknown"}getResourceIdentifier(){return null}getReference(e){throw new Error("Dependency.getReference was removed in favor of Dependency.getReferencedExports, ModuleGraph.getModule and ModuleGraph.getConnection().active")}getReferencedExports(e,t){return Dependency.EXPORTS_OBJECT_REFERENCED}getCondition(e){return null}getExports(e){return undefined}getWarnings(e){return null}getErrors(e){return null}updateHash(e,t){const{chunkGraph:n}=t;const r=n.moduleGraph.getModule(this);if(r){e.update(n.getModuleId(r)+"")}}getNumberOfIdOccurrences(){return 1}serialize({write:e}){e(this.weak);e(this.optional);e(this.loc)}deserialize({read:e}){this.weak=e();this.optional=e();this.loc=e()}}Dependency.NO_EXPORTS_REFERENCED=[];Dependency.EXPORTS_OBJECT_REFERENCED=[[]];Object.defineProperty(Dependency.prototype,"module",{get(){throw new Error("module property was removed from Dependency (use compilation.moduleGraph.getModule(dependency) instead)")},set(){throw new Error("module property was removed from Dependency (use compilation.moduleGraph.updateModule(dependency, module) instead)")}});Object.defineProperty(Dependency.prototype,"disconnect",{get(){throw new Error("disconnect was removed from Dependency (Dependency no longer carries graph specific information)")}});e.exports=Dependency},84304:(e,t,n)=>{"use strict";class DependencyTemplate{apply(e,t,r){const i=n(75884);throw new i}}e.exports=DependencyTemplate},46828:(e,t,n)=>{"use strict";const r=n(35891);class DependencyTemplates{constructor(){this._map=new Map;this._hash="31d6cfe0d16ae931b73c59d7e0c089c0"}get(e){return this._map.get(e)}set(e,t){this._map.set(e,t)}updateHash(e){const t=r("md4");t.update(this._hash);t.update(e);this._hash=t.digest("hex")}getHash(){return this._hash}clone(){const e=new DependencyTemplates;e._map=new Map(this._map);e._hash=this._hash;return e}}e.exports=DependencyTemplates},9013:(e,t,n)=>{"use strict";const r=n(80419);const i=n(95189);const s=n(66583);class DllEntryPlugin{constructor(e,t,n){this.context=e;this.entries=t;this.options=n}apply(e){e.hooks.compilation.tap("DllEntryPlugin",(e,{normalModuleFactory:t})=>{const n=new r;e.dependencyFactories.set(i,n);e.dependencyFactories.set(s,t)});e.hooks.make.tapAsync("DllEntryPlugin",(e,t)=>{e.addEntry(this.context,new i(this.entries.map((e,t)=>{const n=new s(e);n.loc={name:this.options.name,index:t};return n}),this.options.name),this.options,t)})}}e.exports=DllEntryPlugin},44593:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(53453);const s=n(76150);const o=n(56202);const a=new Set(["javascript"]);const c=new Set([s.require,s.module]);class DllModule extends i{constructor(e,t,n){super("javascript/dynamic",e);this.dependencies=t;this.name=n}getSourceTypes(){return a}identifier(){return`dll ${this.name}`}readableIdentifier(e){return`dll ${this.name}`}build(e,t,n,r,i){this.buildMeta={};this.buildInfo={};return i()}codeGeneration(e){const t=new Map;t.set("javascript",new r("module.exports = __webpack_require__;"));return{sources:t,runtimeRequirements:c}}needBuild(e,t){return t(null,!this.buildMeta)}size(e){return 12}updateHash(e,t){e.update("dll module");e.update(this.name||"");super.updateHash(e,t)}serialize(e){e.write(this.name);super.serialize(e)}deserialize(e){this.name=e.read();super.deserialize(e)}updateCacheModule(e){super.updateCacheModule(e);this.dependencies=e.dependencies}}o(DllModule,"webpack/lib/DllModule");e.exports=DllModule},80419:(e,t,n)=>{"use strict";const r=n(44593);const i=n(40674);class DllModuleFactory extends i{constructor(){super();this.hooks=Object.freeze({})}create(e,t){const n=e.dependencies[0];t(null,{module:new r(e.context,n.dependencies,n.name)})}}e.exports=DllModuleFactory},73887:(e,t,n)=>{"use strict";const r=n(9013);const i=n(6283);const s=n(77750);const o=n(15235);const a=n(39670);class DllPlugin{constructor(e){o(a,e,{name:"Dll Plugin",baseDataPath:"options"});this.options={...e,entryOnly:e.entryOnly!==false}}apply(e){e.hooks.entryOption.tap("DllPlugin",(t,n)=>{if(typeof n!=="function"){for(const i of Object.keys(n)){const s={name:i,filename:n.filename};new r(t,n[i].import,s).apply(e)}}else{throw new Error("DllPlugin doesn't support dynamic entry (function) yet")}return true});new s(this.options).apply(e);if(!this.options.entryOnly){new i("DllPlugin").apply(e)}}}e.exports=DllPlugin},83515:(e,t,n)=>{"use strict";const r=n(78688);const i=n(56396);const s=n(59084);const o=n(81627);const a=n(49422);const c=n(49197).makePathsRelative;const u=n(15235);const l=n(53670);class DllReferencePlugin{constructor(e){u(l,e,{name:"Dll Reference Plugin",baseDataPath:"options"});this.options=e;this._compilationData=new WeakMap}apply(e){e.hooks.compilation.tap("DllReferencePlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(a,t)});e.hooks.beforeCompile.tapAsync("DllReferencePlugin",(t,n)=>{if("manifest"in this.options){const i=this.options.manifest;if(typeof i==="string"){e.inputFileSystem.readFile(i,(s,o)=>{if(s)return n(s);const a={path:i,data:undefined,error:undefined};try{a.data=r(o.toString("utf-8"))}catch(t){const n=c(e.options.context,i,e.root);a.error=new DllManifestError(n,t.message)}this._compilationData.set(t,a);return n()});return}}return n()});e.hooks.compile.tap("DllReferencePlugin",t=>{let n=this.options.name;let r=this.options.sourceType;let o="content"in this.options?this.options.content:undefined;if("manifest"in this.options){let e=this.options.manifest;let i;if(typeof e==="string"){const e=this._compilationData.get(t);if(e.error){return}i=e.data}else{i=e}if(i){if(!n)n=i.name;if(!r)r=i.type;if(!o)o=i.content}}const a={};const c="dll-reference "+n;a[c]=n;const u=t.normalModuleFactory;new s(r||"var",a).apply(u);new i({source:c,type:this.options.type,scope:this.options.scope,context:this.options.context||e.options.context,content:o,extensions:this.options.extensions,associatedObjectForCache:e.root}).apply(u)});e.hooks.compilation.tap("DllReferencePlugin",(e,t)=>{if("manifest"in this.options){let n=this.options.manifest;if(typeof n==="string"){const r=this._compilationData.get(t);if(r.error){e.errors.push(r.error)}e.fileDependencies.add(n)}}})}}class DllManifestError extends o{constructor(e,t){super();this.name="DllManifestError";this.message=`Dll manifest ${e}\n${t}`;Error.captureStackTrace(this,this.constructor)}}e.exports=DllReferencePlugin},85227:(e,t,n)=>{"use strict";const r=n(64699);const i=n(59674);const s=n(66583);class DynamicEntryPlugin{constructor(e,t){this.context=e;this.entry=t}apply(e){e.hooks.compilation.tap("DynamicEntryPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(s,t)});e.hooks.make.tapPromise("DynamicEntryPlugin",(t,n)=>Promise.resolve(this.entry()).then(n=>{const s=[];for(const o of Object.keys(n)){const a=n[o];const c=r.entryDescriptionToOptions(e,o,a);for(const e of a.import){s.push(new Promise((n,r)=>{t.addEntry(this.context,i.createDependency(e,c),c,e=>{if(e)return r(e);n()})}))}}return Promise.all(s)}).then(e=>{}))}}e.exports=DynamicEntryPlugin},64699:(e,t,n)=>{"use strict";class EntryOptionPlugin{apply(e){e.hooks.entryOption.tap("EntryOptionPlugin",(t,r)=>{if(typeof r==="function"){const i=n(85227);new i(t,r).apply(e)}else{const i=n(59674);for(const n of Object.keys(r)){const s=r[n];const o=EntryOptionPlugin.entryDescriptionToOptions(e,n,s);for(const n of s.import){new i(t,n,o).apply(e)}}}return true})}static entryDescriptionToOptions(e,t,r){const i={name:t,filename:r.filename,runtime:r.runtime,dependOn:r.dependOn,library:r.library};if(r.library){const t=n(13984);t.checkEnabled(e,r.library.type)}return i}}e.exports=EntryOptionPlugin},59674:(e,t,n)=>{"use strict";const r=n(66583);class EntryPlugin{constructor(e,t,n){this.context=e;this.entry=t;this.options=n||""}apply(e){e.hooks.compilation.tap("EntryPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(r,t)});e.hooks.make.tapAsync("EntryPlugin",(e,t)=>{const{entry:n,options:r,context:i}=this;const s=EntryPlugin.createDependency(n,r);e.addEntry(i,s,r,e=>{t(e)})})}static createDependency(e,t){const n=new r(e);n.loc={name:typeof t==="object"?t.name:t};return n}}e.exports=EntryPlugin},71452:(e,t,n)=>{"use strict";const r=n(84558);class Entrypoint extends r{constructor(e){super(e);this._runtimeChunk=undefined;this._entrypointChunk=undefined}isInitial(){return true}setRuntimeChunk(e){this._runtimeChunk=e}getRuntimeChunk(){if(this._runtimeChunk)return this._runtimeChunk;for(const e of this.parentsIterable){if(e instanceof Entrypoint)return e.getRuntimeChunk()}return null}setEntrypointChunk(e){this._entrypointChunk=e}getEntrypointChunk(){return this._entrypointChunk}replaceChunk(e,t){if(this._runtimeChunk===e)this._runtimeChunk=t;if(this._entrypointChunk===e)this._entrypointChunk=t;return super.replaceChunk(e,t)}}e.exports=Entrypoint},64856:(e,t,n)=>{"use strict";const r=n(24820);const i=n(81627);class EnvironmentPlugin{constructor(...e){if(e.length===1&&Array.isArray(e[0])){this.keys=e[0];this.defaultValues={}}else if(e.length===1&&e[0]&&typeof e[0]==="object"){this.keys=Object.keys(e[0]);this.defaultValues=e[0]}else{this.keys=e;this.defaultValues={}}}apply(e){const t={};for(const n of this.keys){const r=process.env[n]!==undefined?process.env[n]:this.defaultValues[n];if(r===undefined){e.hooks.thisCompilation.tap("EnvironmentPlugin",e=>{const t=new i(`EnvironmentPlugin - ${n} environment variable is undefined.\n\n`+"You can pass an object with default values to suppress this warning.\n"+"See https://webpack.js.org/plugins/environment-plugin for example.");t.name="EnvVariableNotDefinedError";e.errors.push(t)})}t[`process.env.${n}`]=r===undefined?"undefined":JSON.stringify(r)}new r(t).apply(e)}}e.exports=EnvironmentPlugin},50717:(e,t)=>{"use strict";const n="LOADER_EXECUTION";const r="WEBPACK_OPTIONS";t.cutOffByFlag=((e,t)=>{e=e.split("\n");for(let n=0;n<e.length;n++){if(e[n].includes(t)){e.length=n}}return e.join("\n")});t.cutOffLoaderExecution=(e=>t.cutOffByFlag(e,n));t.cutOffWebpackOptions=(e=>t.cutOffByFlag(e,r));t.cutOffMultilineMessage=((e,t)=>{e=e.split("\n");t=t.split("\n");const n=[];e.forEach((e,r)=>{if(!e.includes(t[r]))n.push(e)});return n.join("\n")});t.cutOffMessage=((e,t)=>{const n=e.indexOf("\n");if(n===-1){return e===t?"":e}else{const r=e.substr(0,n);return r===t?e.substr(n+1):e}});t.cleanUp=((e,n)=>{e=t.cutOffLoaderExecution(e);e=t.cutOffMessage(e,n);return e});t.cleanUpWebpackOptions=((e,n)=>{e=t.cutOffWebpackOptions(e);e=t.cutOffMultilineMessage(e,n);return e})},91331:(e,t,n)=>{"use strict";const{ConcatSource:r,RawSource:i}=n(48135);const s=n(70354);const o=n(18161);const a=new WeakMap;const c=new i(`/*\n * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").\n * This devtool is not neither made for production nor for readable output files.\n * It uses "eval()" calls to create a separate source file in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with "devtool: false".\n * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).\n */\n`);class EvalDevToolModulePlugin{constructor(e){this.namespace=e.namespace||"";this.sourceUrlComment=e.sourceUrlComment||"\n//# sourceURL=[url]";this.moduleFilenameTemplate=e.moduleFilenameTemplate||"webpack://[namespace]/[resourcePath]?[loaders]"}apply(e){e.hooks.compilation.tap("EvalDevToolModulePlugin",e=>{const t=o.getCompilationHooks(e);t.renderModuleContent.tap("EvalDevToolModulePlugin",(e,t,{runtimeTemplate:n,chunkGraph:r})=>{const o=a.get(e);if(o!==undefined)return o;const c=e.source();const u=s.createFilename(t,{moduleFilenameTemplate:this.moduleFilenameTemplate,namespace:this.namespace},{requestShortener:n.requestShortener,chunkGraph:r});const l="\n"+this.sourceUrlComment.replace(/\[url\]/g,encodeURI(u).replace(/%2F/g,"/").replace(/%20/g,"_").replace(/%5E/g,"^").replace(/%5C/g,"\\").replace(/^\//,""));const f=new i(`eval(${JSON.stringify(c+l)});`);a.set(e,f);return f});t.render.tap("EvalDevToolModulePlugin",e=>new r(c,e));t.chunkHash.tap("EvalDevToolModulePlugin",(e,t)=>{t.update("EvalDevToolModulePlugin");t.update("2")})})}}e.exports=EvalDevToolModulePlugin},23641:(e,t,n)=>{"use strict";const{ConcatSource:r,RawSource:i}=n(48135);const s=n(70354);const o=n(53520);const a=n(26867);const c=n(18161);const u=n(95734);const{absolutify:l}=n(49197);const f=new WeakMap;const p=new i(`/*\n * ATTENTION: An "eval-source-map" devtool has been used.\n * This devtool is not neither made for production nor for readable output files.\n * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with "devtool: false".\n * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).\n */\n`);class EvalSourceMapDevToolPlugin{constructor(e){let t;if(typeof e==="string"){t={append:e}}else{t=e}this.sourceMapComment=t.append||"//# sourceURL=[module]\n//# sourceMappingURL=[url]";this.moduleFilenameTemplate=t.moduleFilenameTemplate||"webpack://[namespace]/[resource-path]?[hash]";this.namespace=t.namespace||"";this.options=t}apply(e){const t=this.options;e.hooks.compilation.tap("EvalSourceMapDevToolPlugin",n=>{const d=c.getCompilationHooks(n);new a(t).apply(n);const h=s.matchObject.bind(s,t);d.renderModuleContent.tap("EvalSourceMapDevToolPlugin",(r,a,{runtimeTemplate:c,chunkGraph:p})=>{const d=f.get(r);if(d!==undefined){return d}if(a instanceof o){const e=a;if(!h(e.resource)){return r}}else if(a instanceof u){const e=a;if(e.rootModule instanceof o){const t=e.rootModule;if(!h(t.resource)){return r}}else{return r}}else{return r}let m;let g;if(r.sourceAndMap){const e=r.sourceAndMap(t);m=e.map;g=e.source}else{m=r.map(t);g=r.source()}if(!m){return r}m={...m};const y=e.options.context;const v=e.root;const _=m.sources.map(e=>{if(!e.startsWith("webpack://"))return e;e=l(y,e.slice(10),v);const t=n.findModule(e);return t||e});let b=_.map(e=>{return s.createFilename(e,{moduleFilenameTemplate:this.moduleFilenameTemplate,namespace:this.namespace},{requestShortener:c.requestShortener,chunkGraph:p})});b=s.replaceDuplicates(b,(e,t,n)=>{for(let t=0;t<n;t++)e+="*";return e});m.sources=b;m.sourceRoot=t.sourceRoot||"";const E=p.getModuleId(a);m.file=`${E}.js`;const w=this.sourceMapComment.replace(/\[url\]/g,`data:application/json;charset=utf-8;base64,${Buffer.from(JSON.stringify(m),"utf8").toString("base64")}`)+`\n//# sourceURL=webpack-internal:///${E}\n`;const S=new i(`eval(${JSON.stringify(g+w)});`);f.set(r,S);return S});d.render.tap("EvalSourceMapDevToolPlugin",e=>new r(p,e));d.chunkHash.tap("EvalSourceMapDevToolPlugin",(e,t)=>{t.update("EvalSourceMapDevToolPlugin");t.update("2")})})}}e.exports=EvalSourceMapDevToolPlugin},76632:(e,t,n)=>{"use strict";const{equals:r}=n(73910);const i=n(16102);const s=n(56202);const{forEachRuntime:o}=n(37416);const a=Object.freeze({Unused:0,OnlyPropertiesUsed:1,NoInfo:2,Unknown:3,Used:4});const c=()=>true;class RestoreProvidedData{constructor(e,t,n,r){this.exports=e;this.otherProvided=t;this.otherCanMangleProvide=n;this.otherTerminalBinding=r}serialize({write:e}){e(this.exports);e(this.otherProvided);e(this.otherCanMangleProvide);e(this.otherTerminalBinding)}static deserialize({read:e}){return new RestoreProvidedData(e(),e(),e(),e())}}s(RestoreProvidedData,"webpack/lib/ModuleGraph","RestoreProvidedData");class ExportsInfo{constructor(){this._exports=new Map;this._otherExportsInfo=new ExportInfo(null);this._sideEffectsOnlyInfo=new ExportInfo("*side effects only*");this._exportsAreOrdered=false;this._redirectTo=undefined}get ownedExports(){return this._exports.values()}get orderedOwnedExports(){if(!this._exportsAreOrdered){this._sortExports()}return this._exports.values()}get exports(){if(this._redirectTo!==undefined){const e=new Map(this._redirectTo._exports);for(const[t,n]of this._exports){e.set(t,n)}return e.values()}return this._exports.values()}get orderedExports(){if(!this._exportsAreOrdered){this._sortExports()}if(this._redirectTo!==undefined){const e=new Map(Array.from(this._redirectTo.orderedExports,e=>[e.name,e]));for(const[t,n]of this._exports){e.set(t,n)}this._sortExportsMap(e);return e.values()}return this._exports.values()}get otherExportsInfo(){if(this._redirectTo!==undefined)return this._redirectTo.otherExportsInfo;return this._otherExportsInfo}_sortExportsMap(e){if(e.size>1){const t=Array.from(e.values());if(t.length!==2||t[0].name>t[1].name){t.sort((e,t)=>{return e.name<t.name?-1:1});e.clear();for(const n of t){e.set(n.name,n)}}}}_sortExports(){this._sortExportsMap(this._exports);this._exportsAreOrdered=true}setRedirectNamedTo(e){if(this._redirectTo===e)return false;this._redirectTo=e;return true}setHasProvideInfo(){for(const e of this._exports.values()){if(e.provided===undefined){e.provided=false}if(e.canMangleProvide===undefined){e.canMangleProvide=true}}if(this._redirectTo!==undefined){this._redirectTo.setHasProvideInfo()}else{if(this._otherExportsInfo.provided===undefined){this._otherExportsInfo.provided=false}if(this._otherExportsInfo.canMangleProvide===undefined){this._otherExportsInfo.canMangleProvide=true}}}setHasUseInfo(){for(const e of this._exports.values()){e.setHasUseInfo()}this._sideEffectsOnlyInfo.setHasUseInfo();if(this._redirectTo!==undefined){this._redirectTo.setHasUseInfo()}else{this._otherExportsInfo.setHasUseInfo();if(this._otherExportsInfo.canMangleUse===undefined){this._otherExportsInfo.canMangleUse=true}}}getOwnExportInfo(e){const t=this._exports.get(e);if(t!==undefined)return t;const n=new ExportInfo(e,this._otherExportsInfo);this._exports.set(e,n);this._exportsAreOrdered=false;return n}getExportInfo(e){const t=this._exports.get(e);if(t!==undefined)return t;if(this._redirectTo!==undefined)return this._redirectTo.getExportInfo(e);const n=new ExportInfo(e,this._otherExportsInfo);this._exports.set(e,n);this._exportsAreOrdered=false;return n}getReadOnlyExportInfo(e){const t=this._exports.get(e);if(t!==undefined)return t;if(this._redirectTo!==undefined)return this._redirectTo.getReadOnlyExportInfo(e);return this._otherExportsInfo}getReadOnlyExportInfoRecursive(e){const t=this.getReadOnlyExportInfo(e[0]);if(e.length===1)return t;if(!t.exportsInfo)return undefined;return t.exportsInfo.getReadOnlyExportInfoRecursive(e.slice(1))}getNestedExportsInfo(e){if(Array.isArray(e)&&e.length>0){const t=this.getReadOnlyExportInfo(e[0]);if(!t.exportsInfo)return undefined;return t.exportsInfo.getNestedExportsInfo(e.slice(1))}return this}setUnknownExportsProvided(e,t,n,r){let i=false;if(t){for(const e of t){this.getExportInfo(e)}}for(const s of this._exports.values()){if(t&&t.has(s.name))continue;if(s.provided!==true&&s.provided!==null){s.provided=null;i=true}if(!e&&s.canMangleProvide!==false){s.canMangleProvide=false;i=true}if(n){s.setTarget(n,r,[s.name])}}if(this._redirectTo!==undefined){if(this._redirectTo.setUnknownExportsProvided(e,t,n,r)){i=true}}else{if(this._otherExportsInfo.provided!==true&&this._otherExportsInfo.provided!==null){this._otherExportsInfo.provided=null;i=true}if(!e&&this._otherExportsInfo.canMangleProvide!==false){this._otherExportsInfo.canMangleProvide=false;i=true}if(n){this._otherExportsInfo.setTarget(n,r,undefined)}}return i}setUsedInUnknownWay(e){let t=false;for(const n of this._exports.values()){if(n.setUsedInUnknownWay(e)){t=true}}if(this._redirectTo!==undefined){if(this._redirectTo.setUsedInUnknownWay(e)){t=true}}else{if(this._otherExportsInfo.setUsedConditionally(e=>e<a.Unknown,a.Unknown,e)){t=true}if(this._otherExportsInfo.canMangleUse!==false){this._otherExportsInfo.canMangleUse=false;t=true}}return t}setUsedWithoutInfo(e){let t=false;for(const n of this._exports.values()){if(n.setUsedWithoutInfo(e)){t=true}}if(this._redirectTo!==undefined){if(this._redirectTo.setUsedWithoutInfo(e)){t=true}}else{if(this._otherExportsInfo.setUsed(a.NoInfo,e)){t=true}if(this._otherExportsInfo.canMangleUse!==false){this._otherExportsInfo.canMangleUse=false;t=true}}return t}setAllKnownExportsUsed(e){let t=false;for(const n of this._exports.values()){if(n.setUsed(a.Used,e)){t=true}}return t}setUsedForSideEffectsOnly(e){return this._sideEffectsOnlyInfo.setUsedConditionally(e=>e===a.Unused,a.Used,e)}isUsed(e){if(this._redirectTo!==undefined){if(this._redirectTo.isUsed(e)){return true}}else{if(this._otherExportsInfo.getUsed(e)!==a.Unused){return true}}for(const t of this._exports.values()){if(t.getUsed(e)!==a.Unused){return true}}return false}getUsedExports(e){if(!this._redirectTo!==undefined){switch(this._otherExportsInfo.getUsed(e)){case a.NoInfo:return null;case a.Unknown:return true;case a.OnlyPropertiesUsed:case a.Used:return true}}const t=[];if(!this._exportsAreOrdered)this._sortExports();for(const n of this._exports.values()){switch(n.getUsed(e)){case a.NoInfo:return null;case a.Unknown:return true;case a.OnlyPropertiesUsed:case a.Used:t.push(n.name)}}if(this._redirectTo!==undefined){const n=this._redirectTo.getUsedExports(e);if(n===null)return null;if(n===true)return true;if(n!==false){for(const e of n){t.push(e)}}}if(t.length===0){switch(this._sideEffectsOnlyInfo.getUsed(e)){case a.NoInfo:return null;case a.Unused:return false}}return new i(t)}getProvidedExports(){if(!this._redirectTo!==undefined){switch(this._otherExportsInfo.provided){case undefined:return null;case null:return true;case true:return true}}const e=[];if(!this._exportsAreOrdered)this._sortExports();for(const t of this._exports.values()){switch(t.provided){case undefined:return null;case null:return true;case true:e.push(t.name)}}if(this._redirectTo!==undefined){const t=this._redirectTo.getProvidedExports();if(t===null)return null;if(t===true)return true;for(const n of t){if(!e.includes(n)){e.push(n)}}}return e}hasStaticExportsList(e){if(this._redirectTo!==undefined&&!this._redirectTo.hasStaticExportsList(e))return false;if(this._otherExportsInfo.provided!==false&&this._otherExportsInfo.getUsed(e)!==a.Unused){return false}for(const t of this._exports.values()){if(typeof t.provided!=="boolean"&&t.getUsed(e)!==a.Unused){return false}}return true}isExportProvided(e){if(Array.isArray(e)){const t=this.getReadOnlyExportInfo(e[0]);if(t.exportsInfo&&e.length>1){return t.exportsInfo.isExportProvided(e.slice(1))}return t.provided}const t=this.getReadOnlyExportInfo(e);return t.provided}getUsageKey(e){const t=[];if(this._redirectTo!==undefined){t.push(this._redirectTo.getUsageKey(e))}else{t.push(this._otherExportsInfo.getUsed(e))}t.push(this._sideEffectsOnlyInfo.getUsed(e));for(const n of this.orderedOwnedExports){t.push(n.getUsed(e))}return t.join("|")}isEquallyUsed(e,t){if(this._redirectTo!==undefined){if(!this._redirectTo.isEquallyUsed(e,t))return false}else{if(this._otherExportsInfo.getUsed(e)!==this._otherExportsInfo.getUsed(t)){return false}}if(this._sideEffectsOnlyInfo.getUsed(e)!==this._sideEffectsOnlyInfo.getUsed(t)){return false}for(const n of this.ownedExports){if(n.getUsed(e)!==n.getUsed(t))return false}return true}getUsed(e,t){if(Array.isArray(e)){if(e.length===0)return this.otherExportsInfo.getUsed(t);let n=this.getReadOnlyExportInfo(e[0]);if(n.exportsInfo&&e.length>1){return n.exportsInfo.getUsed(e.slice(1),t)}return n.getUsed(t)}let n=this.getReadOnlyExportInfo(e);return n.getUsed(t)}getUsedName(e,t){if(Array.isArray(e)){if(e.length===0){if(!this.isUsed(t))return false;return e}let n=this.getReadOnlyExportInfo(e[0]);const r=n.getUsedName(e[0],t);if(r===false)return false;const i=r===e[0]&&e.length===1?e:[r];if(e.length===1){return i}if(n.exportsInfo&&n.getUsed(t)===a.OnlyPropertiesUsed){const r=n.exportsInfo.getUsedName(e.slice(1),t);if(!r)return false;return i.concat(r)}else{return i.concat(e.slice(1))}}else{let n=this.getReadOnlyExportInfo(e);const r=n.getUsedName(e,t);return r}}updateHash(e,t){for(const n of this.orderedExports){n.updateHash(e,t)}this._sideEffectsOnlyInfo.updateHash(e,t);this._otherExportsInfo.updateHash(e,t);if(this._redirectTo!==undefined){this._redirectTo.updateHash(e,t)}}getRestoreProvidedData(){const e=this._otherExportsInfo.provided;const t=this._otherExportsInfo.canMangleProvide;const n=this._otherExportsInfo.terminalBinding;const r=[];for(const i of this._exports.values()){if(i.provided!==e||i.canMangleProvide!==t||i.terminalBinding!==n||i.exportsInfoOwned){r.push({name:i.name,provided:i.provided,canMangleProvide:i.canMangleProvide,terminalBinding:i.terminalBinding,exportsInfo:i.exportsInfoOwned?i.exportsInfo.getRestoreProvidedData():undefined})}}return new RestoreProvidedData(r,e,t,n)}restoreProvided({otherProvided:e,otherCanMangleProvide:t,otherTerminalBinding:n,exports:r}){for(const r of this._exports.values()){r.provided=e;r.canMangleProvide=t;r.terminalBinding=n}this._otherExportsInfo.provided=e;this._otherExportsInfo.canMangleProvide=t;this._otherExportsInfo.terminalBinding=n;for(const e of r){const t=this.getExportInfo(e.name);t.provided=e.provided;t.canMangleProvide=e.canMangleProvide;t.terminalBinding=e.terminalBinding;if(e.exportsInfo){const n=t.createNestedExportsInfo();n.restoreProvided(e.exportsInfo)}}}}class ExportInfo{constructor(e,t){this.name=e;this._usedName=t?t._usedName:null;this._usedInRuntime=t&&t._usedInRuntime?new Map(t._usedInRuntime):undefined;this._hasUseInRuntimeInfo=t?t._hasUseInRuntimeInfo:false;this.provided=t?t.provided:undefined;this.terminalBinding=t?t.terminalBinding:false;this.canMangleProvide=t?t.canMangleProvide:undefined;this.canMangleUse=t?t.canMangleUse:undefined;this.exportsInfoOwned=false;this.exportsInfo=undefined;this._target=undefined;if(t&&t._target){this._target=new Map;for(const[n,r]of t._target){this._target.set(n,r?{module:r.module,export:[e]}:null)}}}get used(){throw new Error("REMOVED")}get usedName(){throw new Error("REMOVED")}set used(e){throw new Error("REMOVED")}set usedName(e){throw new Error("REMOVED")}get canMangle(){switch(this.canMangleProvide){case undefined:return this.canMangleUse===false?false:undefined;case false:return false;case true:switch(this.canMangleUse){case undefined:return undefined;case false:return false;case true:return true}}throw new Error(`Unexpected flags for canMangle ${this.canMangleProvide} ${this.canMangleUse}`)}setUsedInUnknownWay(e){let t=false;if(this.setUsedConditionally(e=>e<a.Unknown,a.Unknown,e)){t=true}if(this.canMangleUse!==false){this.canMangleUse=false;t=true}return t}setUsedWithoutInfo(e){let t=false;if(this.setUsed(a.NoInfo,e)){t=true}if(this.canMangleUse!==false){this.canMangleUse=false;t=true}return t}setHasUseInfo(){if(!this._hasUseInRuntimeInfo){this._hasUseInRuntimeInfo=true}if(this.canMangleUse===undefined){this.canMangleUse=true}if(this.exportsInfoOwned){this.exportsInfo.setHasUseInfo()}}setUsedConditionally(e,t,n){if(this._usedInRuntime===undefined){if(t!==a.Unused&&e(a.Unused)){this._usedInRuntime=new Map;o(n,e=>this._usedInRuntime.set(e,t));return true}}else{let r=false;o(n,n=>{let i=this._usedInRuntime.get(n);if(i===undefined)i=a.Unused;if(t!==i&&e(i)){if(t===a.Unused){this._usedInRuntime.delete(n)}else{this._usedInRuntime.set(n,t)}r=true}});if(r){if(this._usedInRuntime.size===0)this._usedInRuntime=undefined;return true}}return false}setUsed(e,t){if(this._usedInRuntime===undefined){if(e!==a.Unused){this._usedInRuntime=new Map;o(t,t=>this._usedInRuntime.set(t,e));return true}}else{let n=false;o(t,t=>{let r=this._usedInRuntime.get(t);if(r===undefined)r=a.Unused;if(e!==r){if(e===a.Unused){this._usedInRuntime.delete(t)}else{this._usedInRuntime.set(t,e)}n=true}});if(n){if(this._usedInRuntime.size===0)this._usedInRuntime=undefined;return true}}return false}setTarget(e,t,n){if(!this._target){this._target=new Map;this._target.set(e,t?{module:t,export:n}:null);return true}const i=this._target.get(e);if(!i){if(i===null&&!t)return false;this._target.set(e,t?{module:t,export:n}:null);return true}if(!t){this._target.set(e,null);return true}if(i.module!==t||(n?!i.export||!r(i.export,n):i.export)){i.module=t;i.export=n;return true}return false}getUsed(e){if(!this._hasUseInRuntimeInfo)return a.NoInfo;if(this._usedInRuntime===undefined){return a.Unused}else if(typeof e==="string"){const t=this._usedInRuntime.get(e);return t===undefined?a.Unused:t}else if(e===undefined){let e=a.Unused;for(const t of this._usedInRuntime.values()){if(t===a.Used){return a.Used}if(e<t)e=t}return e}else{let t=a.Unused;for(const n of e){const e=this._usedInRuntime.get(n);if(e!==undefined){if(e===a.Used){return a.Used}if(t<e)t=e}}return t}}getUsedName(e,t){if(this._hasUseInRuntimeInfo){if(this._usedInRuntime===undefined)return false;if(typeof t==="string"){if(!this._usedInRuntime.has(t)){return false}}else if(t!==undefined){if(Array.from(t).every(e=>!this._usedInRuntime.has(e))){return false}}}if(this._usedName!==null)return this._usedName;return this.name||e}hasUsedName(){return this._usedName!==null}setUsedName(e){this._usedName=e}getTerminalBinding(e){if(this.terminalBinding)return this;const t=this.getTarget(e);if(!t)return undefined;const n=e.getExportsInfo(t.module);if(!t.export)return n;return n.getReadOnlyExportInfoRecursive(t.export)}getTarget(e,t=c){return this._getTarget(e,t,undefined)}_getTarget(e,t,n){const i=(n,r)=>{if(!n)return null;if(!n.export)return n;if(!t(n))return n;let i=false;for(;;){const s=e.getExportsInfo(n.module);const o=s.getExportInfo(n.export[0]);if(!o)return n;if(r.has(o))return null;const a=o._getTarget(e,t,r);if(!a)return n;if(a.export||n.export.length===1)return a;n={module:a.module,export:n.export.slice(1)};if(!t(n))return n;if(!i){r=new Set(r);i=true}r.add(o)}};if(!this._target||this._target.size===0)return undefined;const s=new Set(n);s.add(this);if(this._target.size===1){return i(this._target.values().next().value,s)}const o=this._target.values();const a=i(o.next().value,s);if(a===null)return undefined;let c=o.next();while(!c.done){const e=i(c.value,s);if(e===null)return undefined;if(e.module!==a.module)return undefined;if(!e.export!==!a.export)return undefined;if(a.export&&!r(e.export,a.export))return undefined;c=o.next()}return a}createNestedExportsInfo(){if(this.exportsInfoOwned)return this.exportsInfo;this.exportsInfoOwned=true;const e=this.exportsInfo;this.exportsInfo=new ExportsInfo;this.exportsInfo.setHasProvideInfo();if(e){this.exportsInfo.setRedirectNamedTo(e)}return this.exportsInfo}getNestedExportsInfo(){return this.exportsInfo}updateHash(e,t){e.update(`${this._usedName||this.name}`);e.update(`${this.getUsed(t)}`);e.update(`${this.provided}`);e.update(`${this.canMangle}`);e.update(`${this.terminalBinding}`)}getUsedInfo(){if(this._usedInRuntime!==undefined){const e=new Map;for(const[t,n]of this._usedInRuntime){const r=e.get(n);if(r!==undefined)r.push(t);else e.set(n,[t])}const t=Array.from(e,([e,t])=>{switch(e){case a.NoInfo:return`no usage info in ${t.join(", ")}`;case a.Unknown:return`maybe used in ${t.join(", ")} (runtime-defined)`;case a.Used:return`used in ${t.join(", ")}`;case a.OnlyPropertiesUsed:return`only properties used in ${t.join(", ")}`}});if(t.length>0){return t.join("; ")}}return this._hasUseInRuntimeInfo?"unused":"no usage info"}getProvidedInfo(){switch(this.provided){case undefined:return"no provided info";case null:return"maybe provided (runtime-defined)";case true:return"provided";case false:return"not provided"}}getRenameInfo(){if(this._usedName!==null&&this._usedName!==this.name){return`renamed to ${JSON.stringify(this._usedName).slice(1,-1)}`}switch(this.canMangleProvide){case undefined:switch(this.canMangleUse){case undefined:return"missing provision and use info prevents renaming";case false:return"usage prevents renaming (no provision info)";case true:return"missing provision info prevents renaming"}break;case true:switch(this.canMangleUse){case undefined:return"missing usage info prevents renaming";case false:return"usage prevents renaming";case true:return"could be renamed"}break;case false:switch(this.canMangleUse){case undefined:return"provision prevents renaming (no use info)";case false:return"usage and provision prevents renaming";case true:return"provision prevents renaming"}break}throw new Error(`Unexpected flags for getRenameInfo ${this.canMangleProvide} ${this.canMangleUse}`)}}e.exports=ExportsInfo;e.exports.ExportInfo=ExportInfo;e.exports.UsageState=a},29672:(e,t,n)=>{"use strict";const r=n(66298);const i=n(51420);class ExportsInfoApiPlugin{apply(e){e.hooks.compilation.tap("ExportsInfoApiPlugin",(e,{normalModuleFactory:t})=>{e.dependencyTemplates.set(i,new i.Template);const n=e=>{e.hooks.expressionMemberChain.for("__webpack_exports_info__").tap("ExportsInfoApiPlugin",(t,n)=>{const r=n.length>=2?new i(t.range,n.slice(0,-1),n[n.length-1]):new i(t.range,null,n[0]);r.loc=t.loc;e.state.module.addDependency(r);return true});e.hooks.expression.for("__webpack_exports_info__").tap("ExportsInfoApiPlugin",t=>{const n=new r("true",t.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true})};t.hooks.parser.for("javascript/auto").tap("ExportsInfoApiPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("ExportsInfoApiPlugin",n);t.hooks.parser.for("javascript/esm").tap("ExportsInfoApiPlugin",n)})}}e.exports=ExportsInfoApiPlugin},16734:(e,t,n)=>{"use strict";const{OriginalSource:r,RawSource:i}=n(48135);const s=n(53453);const o=n(76150);const a=n(58159);const c=n(96076);const u=n(10004);const l=n(56202);const f=n(68038);const p=(e,t)=>{if(!Array.isArray(e)){e=[e]}const n=e.map(e=>`[${JSON.stringify(e)}]`).join("");return`(function() { module.exports = ${t}${n}; }());`};const d=e=>{if(!Array.isArray(e)){return`module.exports = require(${JSON.stringify(e)});`}const t=e[0];return`module.exports = require(${JSON.stringify(t)})${f(e,1)};`};const h=(e,t)=>{const n=t.outputOptions.importFunctionName;if(!Array.isArray(e)){return`module.exports = ${n}(${JSON.stringify(e)});`}if(e.length===1){return`module.exports = ${n}(${JSON.stringify(e[0])});`}const r=e[0];return`module.exports = ${n}(${JSON.stringify(r)}).then(${t.returningFunction(`module${f(e,1)}`,"module")});`};const m=(e,t)=>{if(typeof e==="string"){e=u(e)}const n=e[0];const r=e[1];return a.asString(["var error = new Error();",`module.exports = new Promise(${t.basicFunction("resolve, reject",[`if(typeof ${r} !== "undefined") return resolve();`,`${o.loadScript}(${JSON.stringify(n)}, ${t.basicFunction("event",[`if(typeof ${r} !== "undefined") return resolve();`,"var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realSrc = event && event.target && event.target.src;","error.message = 'Loading script failed.\\n(' + errorType + ': ' + realSrc + ')';","error.name = 'ScriptExternalLoadError';","error.type = errorType;","error.request = realSrc;","reject(error);"])}, ${JSON.stringify(r)});`])}).then(${t.returningFunction(`${r}${f(e,2)}`)})`])};const g=(e,t,n)=>{return`if(typeof ${e} === 'undefined') { ${n.throwMissingModuleErrorBlock({request:t})} }\n`};const y=(e,t,n,r)=>{const i=`__WEBPACK_EXTERNAL_MODULE_${a.toIdentifier(`${e}`)}__`;const s=t?g(i,Array.isArray(n)?n.join("."):n,r):"";return`${s}module.exports = ${i};`};const v=(e,t,n)=>{if(!Array.isArray(t)){t=[t]}const r=t[0];const i=e?g(r,t.join("."),n):"";const s=f(t,1);return`${i}module.exports = ${r}${s};`};const _=new Set(["javascript"]);const b=new Set([o.module]);const E=new Set([o.module,o.loadScript]);class ExternalModule extends s{constructor(e,t,n){super("javascript/dynamic",null);this.request=e;this.externalType=t;this.userRequest=n}getSourceTypes(){return _}libIdent(e){return this.userRequest}chunkCondition(e,{chunkGraph:t}){return t.getNumberOfEntryModules(e)>0}identifier(){return"external "+JSON.stringify(this.request)}readableIdentifier(e){return"external "+JSON.stringify(this.request)}needBuild(e,t){return t(null,!this.buildMeta)}build(e,t,n,r,i){this.buildMeta={async:false,exportsType:undefined};this.buildInfo={strict:true};this.clearDependenciesAndBlocks();switch(this.externalType){case"system":if(!Array.isArray(this.request)||this.request.length===1){this.buildMeta.exportsType="namespace";this.addDependency(new c(true,true))}break;case"promise":this.buildMeta.async=true;break;case"import":this.buildMeta.async=true;if(!Array.isArray(this.request)||this.request.length===1){this.buildMeta.exportsType="namespace";this.addDependency(new c(true,false))}break;case"script":this.buildMeta.async=true;break}i()}getSourceString(e,t,n){const r=typeof this.request==="object"&&!Array.isArray(this.request)?this.request[this.externalType]:this.request;switch(this.externalType){case"this":case"window":case"self":return p(r,this.externalType);case"global":return p(r,e.outputOptions.globalObject);case"commonjs":case"commonjs2":case"commonjs-module":return d(r);case"amd":case"amd-require":case"umd":case"umd2":case"system":case"jsonp":return y(n.getModuleId(this),this.isOptional(t),r,e);case"import":return h(r,e);case"script":return m(r,e);case"module":throw new Error("Module external type is not implemented yet");case"var":case"promise":case"const":case"let":case"assign":default:return v(this.isOptional(t),r,e)}}codeGeneration({runtimeTemplate:e,moduleGraph:t,chunkGraph:n}){const s=this.getSourceString(e,t,n);const o=new Map;if(this.useSourceMap){o.set("javascript",new r(s,this.identifier()))}else{o.set("javascript",new i(s))}return{sources:o,runtimeRequirements:this.externalType==="script"?E:b}}size(e){return 42}updateHash(e,t){const{chunkGraph:n}=t;e.update(this.externalType);e.update(JSON.stringify(this.request));e.update(JSON.stringify(Boolean(this.isOptional(n.moduleGraph))));super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this.request);t(this.externalType);t(this.userRequest);super.serialize(e)}deserialize(e){const{read:t}=e;this.request=t();this.externalType=t();this.userRequest=t();super.deserialize(e)}}l(ExternalModule,"webpack/lib/ExternalModule");e.exports=ExternalModule},59084:(e,t,n)=>{"use strict";const r=n(31669);const i=n(16734);const s=/^[a-z0-9]+ /;const o=r.deprecate((e,t,n,r)=>{e.call(null,t,n,r)},"The externals-function should be defined like ({context, request}, cb) => { ... }","DEP_WEBPACK_EXTERNALS_FUNCTION_PARAMETERS");class ExternalModuleFactoryPlugin{constructor(e,t){this.type=e;this.externals=t}apply(e){const t=this.type;e.hooks.factorize.tapAsync("ExternalModuleFactoryPlugin",(e,n)=>{const r=e.context;const a=e.dependencies[0];const c=(e,n,r)=>{if(e===false){return r()}let o;if(e===true){o=a.request}else{o=e}if(n===undefined){if(typeof o==="string"&&s.test(o)){const e=o.indexOf(" ");n=o.substr(0,e);o=o.substr(e+1)}else if(Array.isArray(o)&&o.length>0&&s.test(o[0])){const e=o[0];const t=e.indexOf(" ");n=e.substr(0,t);o=[e.substr(t+1),...o.slice(1)]}}r(null,new i(o,n||t,a.request))};const u=(e,t)=>{if(typeof e==="string"){if(e===a.request){return c(a.request,undefined,t)}}else if(Array.isArray(e)){let n=0;const r=()=>{let i;const s=(e,n)=>{if(e)return t(e);if(!n){if(i){i=false;return}return r()}t(null,n)};do{i=true;if(n>=e.length)return t();u(e[n++],s)}while(!i);i=false};r();return}else if(e instanceof RegExp){if(e.test(a.request)){return c(a.request,undefined,t)}}else if(typeof e==="function"){const n=(e,n,r)=>{if(e)return t(e);if(n!==undefined){c(n,r,t)}else{t()}};if(e.length===3){o(e,r,a.request,n)}else{e({context:r,request:a.request},n)}return}else if(typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,a.request)){return c(e[a.request],undefined,t)}t()};u(this.externals,n)})}}e.exports=ExternalModuleFactoryPlugin},61050:(e,t,n)=>{"use strict";const r=n(59084);class ExternalsPlugin{constructor(e,t){this.type=e;this.externals=t}apply(e){e.hooks.compile.tap("ExternalsPlugin",({normalModuleFactory:e})=>{new r(this.type,this.externals).apply(e)})}}e.exports=ExternalsPlugin},22996:(e,t,n)=>{"use strict";const{create:r}=n(2357);const i=n(62355);const s=n(9738);const o=n(35891);const{join:a,dirname:c,relative:u}=n(95396);const l=r({resolveToContext:true,exportsFields:[]});const f=r({extensions:[".js",".json",".node"],conditionNames:["require"]});let p=2e3;const d=new Set;const h=0;const m=1;const g=2;const y=3;const v=4;const _=5;const b=6;const E=Symbol("invalid");const w=e=>{if(p>1&&e%2!==0)p=1;else if(p>10&&e%20!==0)p=10;else if(p>100&&e%200!==0)p=100;else if(p>1e3&&e%2e3!==0)p=1e3};const S=(e,t)=>{if(!t||t.size===0)return e;if(!e||e.size===0)return t;const n=new Map(e);for(const[e,r]of t){n.set(e,r)}return n};const k=(e,t)=>{let n=e.length;let r=1;let i=true;e:while(n<t.length){switch(t.charCodeAt(n)){case 47:case 92:if(--r===0)break e;i=true;break;case 46:if(i)return null;break;case 64:if(!i)return null;r++;break;default:i=false;break}n++}if(n===t.length)r--;if(r!==0)return null;if(t.length>=n+13&&t.charCodeAt(n+1)===110&&t.charCodeAt(n+2)===111&&t.charCodeAt(n+3)===100&&t.charCodeAt(n+4)===101&&t.charCodeAt(n+5)===95&&t.charCodeAt(n+6)===109&&t.charCodeAt(n+7)===111&&t.charCodeAt(n+8)===100&&t.charCodeAt(n+9)===117&&t.charCodeAt(n+10)===108&&t.charCodeAt(n+11)===101&&t.charCodeAt(n+12)===115){if(t.length===n+13){return t}const e=t.charCodeAt(n+13);if(e===47||e===92){return k(t.slice(0,n+14),t)}}return t.slice(0,n)};const D=e=>{return Boolean(e)};class FileSystemInfo{constructor(e,{managedPaths:t=[],immutablePaths:n=[],logger:r}={}){this.fs=e;this.logger=r;this._remainingLogs=r?40:0;this._loggedPaths=r?new Set:undefined;this._snapshotCache=new WeakMap;this._snapshotOptimization=new Map;this._fileTimestamps=new Map;this._fileHashes=new Map;this._contextTimestamps=new Map;this._contextHashes=new Map;this._managedItems=new Map;this.fileTimestampQueue=new s({name:"file timestamp",parallelism:30,processor:this._readFileTimestamp.bind(this)});this.fileHashQueue=new s({name:"file hash",parallelism:10,processor:this._readFileHash.bind(this)});this.contextTimestampQueue=new s({name:"context timestamp",parallelism:2,processor:this._readContextTimestamp.bind(this)});this.contextHashQueue=new s({name:"context hash",parallelism:2,processor:this._readContextHash.bind(this)});this.managedItemQueue=new s({name:"managed item info",parallelism:10,processor:this._getManagedItemInfo.bind(this)});this.managedItemDirectoryQueue=new s({name:"managed item directory info",parallelism:10,processor:this._getManagedItemDirectoryInfo.bind(this)});this.managedPaths=Array.from(t);this.managedPathsWithSlash=this.managedPaths.map(t=>a(e,t,"_").slice(0,-1));this.immutablePaths=Array.from(n);this.immutablePathsWithSlash=this.immutablePaths.map(t=>a(e,t,"_").slice(0,-1))}_log(e,t,...n){const r=e+t;if(this._loggedPaths.has(r))return;this._loggedPaths.add(r);this.logger.debug(`${e} invalidated because ${t}`,...n);if(--this._remainingLogs===0){this.logger.debug("Logging limit has been reached and no further logging will be emitted by FileSystemInfo")}}addFileTimestamps(e){for(const[t,n]of e){this._fileTimestamps.set(t,n)}}addContextTimestamps(e){for(const[t,n]of e){this._contextTimestamps.set(t,n)}}getFileTimestamp(e,t){const n=this._fileTimestamps.get(e);if(n!==undefined)return t(null,n);this.fileTimestampQueue.add(e,t)}getContextTimestamp(e,t){const n=this._contextTimestamps.get(e);if(n!==undefined)return t(null,n);this.contextTimestampQueue.add(e,t)}getFileHash(e,t){const n=this._fileHashes.get(e);if(n!==undefined)return t(null,n);this.fileHashQueue.add(e,t)}getContextHash(e,t){const n=this._contextHashes.get(e);if(n!==undefined)return t(null,n);this.contextHashQueue.add(e,t)}resolveBuildDependencies(e,t,n){const r=new Set;const s=new Set;const o=new Set;const p=new Set;const d=new Set;const E=new Set;const w=new Map;const S=i.queue(({type:e,context:t,path:n,expected:i},o)=>{const k=e=>{const n=`d\n${t}\n${e}`;if(w.has(n)){return o()}l(t,e,{fileDependencies:p,contextDependencies:d,missingDependencies:E},(r,i)=>{if(r){if(r.code==="ENOENT"||r.code==="UNDECLARED_DEPENDENCY"){return o()}r.message+=`\nwhile resolving '${e}' in ${t} to a directory`;return o(r)}w.set(n,i);S.push({type:y,path:i});o()})};const D=e=>{const n=`f\n${t}\n${e}`;if(w.has(n)){return o()}f(t,e,{fileDependencies:p,contextDependencies:d,missingDependencies:E},(r,s)=>{if(i){if(s===i){w.set(n,s)}}else{if(r){if(r.code==="ENOENT"||r.code==="UNDECLARED_DEPENDENCY"){return o()}r.message+=`\nwhile resolving '${e}' in ${t} as file`;return o(r)}w.set(n,s);S.push({type:v,path:s})}o()})};switch(e){case h:{const e=/[\\/]$/.test(n);if(e){k(n.slice(0,n.length-1))}else{D(n)}break}case m:{k(n);break}case g:{D(n);break}case v:{if(r.has(n)){o();break}this.fs.realpath(n,(e,t)=>{if(e)return o(e);if(t!==n){p.add(n)}if(!r.has(t)){r.add(t);S.push({type:b,path:t})}o()});break}case y:{if(s.has(n)){o();break}this.fs.realpath(n,(e,t)=>{if(e)return o(e);if(t!==n){p.add(n)}if(!s.has(t)){s.add(t);S.push({type:_,path:t})}o()});break}case b:{const e=require.cache[n];if(e&&Array.isArray(e.children)){e:for(const t of e.children){let r=t.filename;if(r){S.push({type:v,path:r});if(r.endsWith(".js"))r=r.slice(0,-3);const i=c(this.fs,n);for(const t of e.paths){if(r.startsWith(t)){const e=r.slice(t.length+1);S.push({type:g,context:i,path:e,expected:r});continue e}}let s=u(this.fs,i,r);s=s.replace(/\\/g,"/");if(!s.startsWith("../"))s=`./${s}`;S.push({type:g,context:i,path:s,expected:t.filename})}}}else{const e=c(this.fs,n);S.push({type:y,path:e})}o();break}case _:{const e=/(^.+[\\/]node_modules[\\/](?:@[^\\/]+[\\/])?[^\\/]+)/.exec(n);const t=e?e[1]:n;const r=a(this.fs,t,"package.json");this.fs.readFile(r,(e,n)=>{if(e){if(e.code==="ENOENT"){E.add(r);const e=c(this.fs,t);if(e!==t){S.push({type:_,path:e})}o();return}return o(e)}p.add(r);let i;try{i=JSON.parse(n.toString("utf-8"))}catch(e){return o(e)}const s=i.dependencies;if(typeof s==="object"&&s){for(const e of Object.keys(s)){S.push({type:m,context:t,path:e})}}o()});break}}},50);S.drain=(()=>{n(null,{files:r,directories:s,missing:o,resolveResults:w,resolveDependencies:{files:p,directories:d,missing:E}})});S.error=(e=>{n(e);n=(()=>{})});let k=false;for(const n of t){S.push({type:h,context:e,path:n});k=true}if(!k){S.drain()}}checkResolveResultsValid(e,t){i.eachLimit(e,20,([e,t],n)=>{const[r,i,s]=e.split("\n");switch(r){case"d":l(i,s,{},(e,r)=>{if(e)return n(e);if(r!==t)return n(E);n()});break;case"f":f(i,s,{},(e,r)=>{if(e)return n(e);if(r!==t)return n(E);n()});break;default:n(new Error("Unexpected type in resolve result key"));break}},e=>{if(e===E){return t(null,false)}if(e){return t(e)}return t(null,true)})}createSnapshot(e,t,n,r,i,s){const o=new Map;const a=new Map;const c=new Map;const u=new Map;const l=new Map;const f=new Map;const p=new Set;const d=new Set;const h=new Set;let m=1;const g=()=>{if(--m===0){const t={};if(e)t.startTime=e;if(o.size!==0)t.fileTimestamps=o;if(a.size!==0)t.fileHashes=a;if(c.size!==0)t.contextTimestamps=c;if(u.size!==0)t.contextHashes=u;if(l.size!==0)t.missingExistence=l;if(f.size!==0)t.managedItemInfo=f;if(p.size!==0)t.children=p;this._snapshotCache.set(t,true);const n={snapshot:t,shared:0,snapshotContent:undefined,children:undefined};for(const e of d){this._snapshotOptimization.set(e,n)}s(null,t)}};const y=()=>{if(m>0){m=-1e8;s(null,null)}};if(t){if(i&&i.hash){e:for(const e of t){for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){continue e}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const n=k(t,e);if(n){h.add(n);continue e}}}const t=this._fileHashes.get(e);if(t!==undefined){a.set(e,t)}else{m++;this.fileHashQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting file hash of ${e}: ${t}`)}y()}else{a.set(e,n);g()}})}}}else{const n=new Set;e:for(const e of t){for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){continue e}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const n=k(t,e);if(n){h.add(n);continue e}}}n.add(e)}const r=new Set;const i=e=>{if(e.children!==undefined){e.children.forEach(i)}e.shared++;s(e)};const s=e=>{for(const t of e.snapshotContent){const r=this._snapshotOptimization.get(t);if(r.shared<e.shared){this._snapshotOptimization.set(t,e)}n.delete(t)}};e:for(const t of n){const o=this._snapshotOptimization.get(t);if(o===undefined){d.add(t);continue}if(r.has(o))continue;const a=o.snapshot;if(o.shared>0){if(e&&(!a.startTime||a.startTime>e)){continue}const t=new Set;for(const e of o.snapshotContent){if(!n.has(e)){if(!a.fileTimestamps.has(e)){r.add(o);continue e}t.add(e);continue}}if(t.size===0){p.add(a);i(o)}else{const n=new Map;for(const[e,r]of a.fileTimestamps){if(t.has(e))continue;n.set(e,r);a.fileTimestamps.delete(e)}const r={startTime:e&&a.startTime?Math.min(e,a.startTime):e||a.startTime,fileTimestamps:n};p.add(r);if(!a.children)a.children=new Set;a.children.add(r);const i={snapshot:r,shared:o.shared+1,snapshotContent:new Set(n.keys()),children:undefined};if(o.children===undefined)o.children=new Set;o.children.add(i);s(i)}}else{const t=new Map;for(const e of n){const n=a.fileTimestamps.get(e);if(n===undefined)continue;t.set(e,n)}if(t.size<2){continue e}const r={startTime:e&&a.startTime?Math.min(e,a.startTime):e||a.startTime,fileTimestamps:t};p.add(r);if(!a.children)a.children=new Set;a.children.add(r);for(const e of t.keys())a.fileTimestamps.delete(e);s({snapshot:r,shared:2,snapshotContent:new Set(t.keys()),children:undefined})}}for(const e of n){const t=this._fileTimestamps.get(e);if(t!==undefined){if(t!=="ignore"){o.set(e,t)}}else{m++;this.fileTimestampQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting file timestamp of ${e}: ${t}`)}y()}else{o.set(e,n);g()}})}}}}if(n){if(i&&i.hash){e:for(const e of n){for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){continue e}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const n=k(t,e);if(n){h.add(n);continue e}}}const t=this._contextHashes.get(e);if(t!==undefined){u.set(e,t)}else{m++;this.contextHashQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting context hash of ${e}: ${t}`)}y()}else{u.set(e,n);g()}})}}}else{e:for(const e of n){for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){continue e}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const n=k(t,e);if(n){h.add(n);continue e}}}const t=this._contextTimestamps.get(e);if(t!==undefined){if(t!=="ignore"){c.set(e,t)}}else{m++;this.contextTimestampQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting context timestamp of ${e}: ${t}`)}y()}else{c.set(e,n);g()}})}}}}if(r){e:for(const e of r){for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){continue e}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const n=k(t,e);if(n){h.add(n);continue e}}}const t=this._fileTimestamps.get(e);if(t!==undefined){if(t!=="ignore"){l.set(e,D(t))}}else{m++;this.fileTimestampQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting missing timestamp of ${e}: ${t}`)}y()}else{l.set(e,D(n));g()}})}}}for(const e of h){const t=this._managedItems.get(e);if(t!==undefined){f.set(e,t)}else{m++;this.managedItemQueue.add(e,(t,n)=>{if(t){if(this.logger){this.logger.debug(`Error snapshotting managed item ${e}: ${t}`)}y()}else{f.set(e,n);g()}})}}g()}mergeSnapshots(e,t){const n={};if(e.startTime&&t.startTime)n.startTime=Math.min(e.startTime,t.startTime);else if(t.startTime)n.startTime=t.startTime;else if(e.startTime)n.startTime=e.startTime;if(e.fileTimestamps||t.fileTimestamps){n.fileTimestamps=S(e.fileTimestamps,t.fileTimestamps)}if(e.fileHashes||t.fileHashes){n.fileHashes=S(e.fileHashes,t.fileHashes)}if(e.contextTimestamps||t.contextTimestamps){n.contextTimestamps=S(e.contextTimestamps,t.contextTimestamps)}if(e.contextHashes||t.contextHashes){n.contextHashes=S(e.contextHashes,t.contextHashes)}if(e.missingExistence||t.missingExistence){n.missingExistence=S(e.missingExistence,t.missingExistence)}if(e.managedItemInfo||t.managedItemInfo){n.managedItemInfo=S(e.managedItemInfo,t.managedItemInfo)}if(this._snapshotCache.get(e)===true&&this._snapshotCache.get(t)===true){this._snapshotCache.set(n,true)}return n}checkSnapshotValid(e,t){const n=this._snapshotCache.get(e);if(n!==undefined){if(typeof n==="boolean"){t(null,n)}else{n.push(t)}return}this._checkSnapshotValidNoCache(e,t)}_checkSnapshotValidNoCache(e,t){let n;const{startTime:r,fileTimestamps:i,fileHashes:s,contextTimestamps:o,contextHashes:a,missingExistence:c,managedItemInfo:u,children:l}=e;let f=1;const p=()=>{if(--f===0){this._snapshotCache.set(e,true);t(null,true)}};const d=()=>{if(f>0){f=-1e8;this._snapshotCache.set(e,false);t(null,false)}};const h=(e,t)=>{if(this._remainingLogs>0){this._log(e,`error occurred: %s`,t)}d()};const m=(e,t,n)=>{if(t!==n){if(this._remainingLogs>0){this._log(e,`hashes differ (%s != %s)`,t,n)}return false}return true};const g=(e,t,n)=>{if(!t!==!n){if(this._remainingLogs>0){this._log(e,t?"it didn't exist before":"it does no longer exist")}return false}return true};const y=(e,t,n)=>{if(t===n)return true;if(!t!==!n){if(this._remainingLogs>0){this._log(e,t?"it didn't exist before":"it does no longer exist")}return false}if(t){if(typeof r==="number"&&t.safeTime>r){if(this._remainingLogs>0){this._log(e,`it may have changed (%d) after the start time of the snapshot (%d)`,t.safeTime,r)}return false}if(n.timestamp!==undefined&&t.timestamp!==n.timestamp){if(this._remainingLogs>0){this._log(e,`timestamps differ (%d != %d)`,t.timestamp,n.timestamp)}return false}if(n.timestampHash!==undefined&&t.timestampHash!==n.timestampHash){if(this._remainingLogs>0){this._log(e,`timestamps hashes differ (%s != %s)`,t.timestampHash,n.timestampHash)}return false}}return true};if(l){const e=(e,t)=>{if(e||!t)return d();else p()};for(const t of l){const n=this._snapshotCache.get(t);if(n!==undefined){if(n!==undefined){if(typeof n==="boolean"){if(n===false){d();return}}else{f++;n.push(e)}}}else{f++;this._checkSnapshotValidNoCache(t,e)}}}if(i){for(const[e,t]of i){const n=this._fileTimestamps.get(e);if(n!==undefined){if(n!=="ignore"&&!y(e,n,t)){d();return}}else{f++;this.fileTimestampQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!y(e,r,t)){d()}else{p()}})}}}if(s){for(const[e,t]of s){const n=this._fileHashes.get(e);if(n!==undefined){if(n!=="ignore"&&!m(e,n,t)){d();return}}else{f++;this.fileHashQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!m(e,r,t)){d()}else{p()}})}}}if(o&&o.size>0){for(const[e,t]of o){const n=this._contextTimestamps.get(e);if(n!==undefined){if(n!=="ignore"&&!y(e,n,t)){d();return}}else{f++;this.contextTimestampQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!y(e,r,t)){d()}else{p()}})}}}if(a){for(const[e,t]of a){const n=this._contextHashes.get(e);if(n!==undefined){if(n!=="ignore"&&!m(e,n,t)){d();return}}else{f++;this.contextHashQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!m(e,r,t)){d()}else{p()}})}}}if(c){for(const[e,t]of c){const n=this._fileTimestamps.get(e);if(n!==undefined){if(n!=="ignore"&&!g(e,D(n),t)){d();return}}else{f++;this.fileTimestampQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!g(e,D(r),t)){d()}else{p()}})}}}if(u){for(const[e,t]of u){const n=this._managedItems.get(e);if(n!==undefined){if(!m(e,n,t)){d();return}}else{f++;this.managedItemQueue.add(e,(n,r)=>{if(n)return h(e,n);if(!m(e,r,t)){d()}else{p()}})}}}p();if(f>0){n=[t];t=((e,t)=>{for(const r of n)r(e,t)});this._snapshotCache.set(e,n)}}_readFileTimestamp(e,t){this.fs.stat(e,(n,r)=>{if(n){if(n.code==="ENOENT"){this._fileTimestamps.set(e,null);return t(null,null)}return t(n)}let i;if(r.isDirectory()){i={safeTime:0,timestamp:undefined}}else{const e=+r.mtime;if(e)w(e);i={safeTime:e?e+p:Infinity,timestamp:e}}this._fileTimestamps.set(e,i);t(null,i)})}_readFileHash(e,t){this.fs.readFile(e,(n,r)=>{if(n){if(n.code==="ENOENT"){this._fileHashes.set(e,null);return t(null,null)}return t(n)}const i=o("md4");i.update(r);const s=i.digest("hex");this._fileHashes.set(e,s);t(null,s)})}_readContextTimestamp(e,t){this.fs.readdir(e,(n,r)=>{if(n){if(n.code==="ENOENT"){this._contextTimestamps.set(e,null);return t(null,null)}return t(n)}r=r.map(e=>e.normalize("NFC")).filter(e=>!/^\./.test(e)).sort();i.map(r,(t,n)=>{const r=a(this.fs,e,t);this.fs.stat(r,(t,i)=>{if(t)return n(t);for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){return n(null,null)}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const e=k(t,r);if(e){return this.managedItemQueue.add(e,(e,t)=>{if(e)return n(e);return n(null,{safeTime:0,timestampHash:t})})}}}if(i.isFile()){return this.getFileTimestamp(r,n)}if(i.isDirectory()){this.contextTimestampQueue.increaseParallelism();this.getContextTimestamp(r,(e,t)=>{this.contextTimestampQueue.decreaseParallelism();n(e,t)});return}n(null,null)})},(n,i)=>{if(n)return t(n);const s=o("md4");for(const e of r)s.update(e);let a=0;for(const e of i){if(!e){s.update("n");continue}if(e.timestamp){s.update("f");s.update(`${e.timestamp}`)}else if(e.timestampHash){s.update("d");s.update(`${e.timestampHash}`)}if(e.safeTime){a=Math.max(a,e.safeTime)}}const c=s.digest("hex");const u={safeTime:a,timestampHash:c};this._contextTimestamps.set(e,u);t(null,u)})})}_readContextHash(e,t){this.fs.readdir(e,(n,r)=>{if(n){if(n.code==="ENOENT"){this._contextHashes.set(e,null);return t(null,null)}return t(n)}r=r.map(e=>e.normalize("NFC")).filter(e=>!/^\./.test(e)).sort();i.map(r,(t,n)=>{const r=a(this.fs,e,t);this.fs.stat(r,(t,i)=>{if(t)return n(t);for(const t of this.immutablePathsWithSlash){if(e.startsWith(t)){return n(null,"")}}for(const t of this.managedPathsWithSlash){if(e.startsWith(t)){const e=k(t,r);if(e){return this.managedItemQueue.add(e,(e,t)=>{if(e)return n(e);n(null,t||"")})}}}if(i.isFile()){return this.getFileHash(r,(e,t)=>{n(e,t||"")})}if(i.isDirectory()){this.contextHashQueue.increaseParallelism();this.getContextHash(r,(e,t)=>{this.contextHashQueue.decreaseParallelism();n(e,t||"")});return}n(null,"")})},(n,i)=>{if(n)return t(n);const s=o("md4");for(const e of r)s.update(e);for(const e of i)s.update(e);const a=s.digest("hex");this._contextHashes.set(e,a);t(null,a)})})}_getManagedItemDirectoryInfo(e,t){this.fs.readdir(e,(n,r)=>{if(n){if(n.code==="ENOENT"||n.code==="ENOTDIR"){return t(null,d)}return t(n)}const i=new Set(r.map(t=>a(this.fs,e,t)));t(null,i)})}_getManagedItemInfo(e,t){const n=c(this.fs,e);this.managedItemDirectoryQueue.add(n,(n,r)=>{if(n){return t(n)}if(!r.has(e)){this._managedItems.set(e,"missing");return t(null,"missing")}if(e.endsWith("node_modules")&&(e.endsWith("/node_modules")||e.endsWith("\\node_modules"))){this._managedItems.set(e,"exists");return t(null,"exists")}const i=a(this.fs,e,"package.json");this.fs.readFile(i,(n,r)=>{if(n){if(n.code==="ENOENT"||n.code==="ENOTDIR"){const n=`Managed item ${e} isn't a directory or doesn't contain a package.json`;this.logger.warn(n);return t(new Error(n))}return t(n)}let i;try{i=JSON.parse(r.toString("utf-8"))}catch(e){return t(e)}const s=`${i.name||""}@${i.version||""}`;this._managedItems.set(e,s);t(null,s)})})}getDeprecatedFileTimestamps(){const e=new Map;for(const[t,n]of this._fileTimestamps){if(n)e.set(t,typeof n==="object"?n.safeTime:null)}return e}getDeprecatedContextTimestamps(){const e=new Map;for(const[t,n]of this._contextTimestamps){if(n)e.set(t,typeof n==="object"?n.safeTime:null)}return e}}e.exports=FileSystemInfo},6283:(e,t,n)=>{"use strict";const{getEntryRuntime:r,mergeRuntimeOwned:i}=n(37416);class FlagAllModulesAsUsedPlugin{constructor(e){this.explanation=e}apply(e){e.hooks.compilation.tap("FlagAllModulesAsUsedPlugin",e=>{const t=e.moduleGraph;e.hooks.optimizeDependencies.tap("FlagAllModulesAsUsedPlugin",n=>{let s=undefined;for(const[t,{options:n}]of e.entries){s=i(s,r(e,t,n))}for(const e of n){const n=t.getExportsInfo(e);n.setUsedInUnknownWay(s);t.addExtraReason(e,this.explanation)}})})}}e.exports=FlagAllModulesAsUsedPlugin},95629:(e,t,n)=>{"use strict";const r=n(62355);const i=n(39541);class FlagDependencyExportsPlugin{apply(e){e.hooks.compilation.tap("FlagDependencyExportsPlugin",e=>{const t=e.moduleGraph;const n=e.getCache("FlagDependencyExportsPlugin");e.hooks.finishModules.tapAsync("FlagDependencyExportsPlugin",(s,o)=>{const a=e.getLogger("webpack.FlagDependencyExportsPlugin");let c=0;let u=0;let l=0;let f=0;const p=new i;a.time("restore cached provided exports");r.each(s,(e,r)=>{if(e.buildInfo.cacheable!==true||typeof e.buildInfo.hash!=="string"){u++;p.enqueue(e);t.getExportsInfo(e).setHasProvideInfo();return r()}n.get(e.identifier(),e.buildInfo.hash,(n,i)=>{if(n)return r(n);if(i!==undefined){c++;t.getExportsInfo(e).restoreProvided(i)}else{l++;p.enqueue(e);t.getExportsInfo(e).setHasProvideInfo()}r()})},e=>{a.timeEnd("restore cached provided exports");if(e)return o(e);const i=new Set;const s=new Map;let d;let h;let m=true;let g=false;const y=e=>{for(const t of e.dependencies){v(t)}for(const t of e.blocks){y(t)}};const v=e=>{const n=e.getExports(t);if(!n)return;const r=n.exports;const i=n.canMangle;const o=n.from;const a=n.terminalBinding||false;const c=n.dependencies;if(r===true){if(h.setUnknownExportsProvided(i,n.excludeExports,o&&e,o)){g=true}}else if(Array.isArray(r)){const n=(r,c)=>{for(const u of c){let c;let l=i;let f=a;let p=undefined;let h=o;let m=undefined;if(typeof u==="string"){c=u}else{c=u.name;if(u.canMangle!==undefined)l=u.canMangle;if(u.export!==undefined)m=u.export;if(u.exports!==undefined)p=u.exports;if(u.from!==undefined)h=u.from;if(u.terminalBinding!==undefined)f=u.terminalBinding}const y=r.getExportInfo(c);if(y.provided===false){y.provided=true;g=true}if(y.canMangleProvide!==false&&l===false){y.canMangleProvide=false;g=true}if(f&&!y.terminalBinding){y.terminalBinding=true;g=true}if(p){const e=y.createNestedExportsInfo();n(e,p)}if(y.setTarget(e,h,m===undefined?[c]:m)){g=true}const v=y.getTarget(t);let _=undefined;if(v){const e=t.getExportsInfo(v.module);_=e.getNestedExportsInfo(v.export);const n=s.get(v.module);if(n===undefined){s.set(v.module,new Set([d]))}else{n.add(d)}}if(y.exportsInfoOwned){if(y.exportsInfo.setRedirectNamedTo(_)){g=true}}else if(y.exportsInfo!==_){y.exportsInfo=_;g=true}}};n(h,r)}if(c){m=false;for(const e of c){const t=s.get(e);if(t===undefined){s.set(e,new Set([d]))}else{t.add(d)}}}};const _=()=>{const e=s.get(d);if(e!==undefined){for(const t of e){p.enqueue(t)}}};a.time("figure out provided exports");while(p.length>0){d=p.dequeue();f++;h=t.getExportsInfo(d);if(!d.buildMeta||!d.buildMeta.exportsType){if(h.otherExportsInfo.provided!==null){h.setUnknownExportsProvided();i.add(d);_()}}else{m=true;g=false;y(d);if(m){i.add(d)}if(g){_()}}}a.timeEnd("figure out provided exports");a.log(`${Math.round(100-100*c/(c+l+u))}% of exports of modules have been determined (${l} not cached, ${u} flagged uncacheable, ${c} from cache, ${f-l-u} additional calculations due to dependencies)`);a.time("store provided exports into cache");r.each(i,(e,r)=>{if(e.buildInfo.cacheable!==true||typeof e.buildInfo.hash!=="string"){return r()}n.store(e.identifier(),e.buildInfo.hash,t.getExportsInfo(e).getRestoreProvidedData(),r)},e=>{a.timeEnd("store provided exports into cache");o(e)})})});const s=new WeakMap;e.hooks.rebuildModule.tap("FlagDependencyExportsPlugin",e=>{s.set(e,t.getExportsInfo(e).getRestoreProvidedData())});e.hooks.finishRebuildingModule.tap("FlagDependencyExportsPlugin",e=>{t.getExportsInfo(e).restoreProvided(s.get(e))})})}}e.exports=FlagDependencyExportsPlugin},1596:(e,t,n)=>{"use strict";const r=n(28706);const{UsageState:i}=n(76632);const{STAGE_DEFAULT:s}=n(82414);const o=n(34194);const{getEntryRuntime:a,mergeRuntime:c,mergeRuntimeOwned:u}=n(37416);const{NO_EXPORTS_REFERENCED:l,EXPORTS_OBJECT_REFERENCED:f}=r;class FlagDependencyUsagePlugin{constructor(e){this.global=e}apply(e){e.hooks.compilation.tap("FlagDependencyUsagePlugin",e=>{const t=e.moduleGraph;e.hooks.optimizeDependencies.tap({name:"FlagDependencyUsagePlugin",stage:s},n=>{const r=e.getLogger("webpack.FlagDependencyUsagePlugin");const s=new Map;const c=new o;const p=(e,n,r)=>{const o=t.getExportsInfo(e);if(n.length>0){if(!e.buildMeta||!e.buildMeta.exportsType){if(o.setUsedWithoutInfo(r)){c.enqueue(e,r)}return}for(const t of n){let n;let a=true;if(Array.isArray(t)){n=t}else{n=t.name;a=t.canMangle!==false}if(n.length===0){if(o.setUsedInUnknownWay(r)){c.enqueue(e,r)}}else{let t=o;for(let u=0;u<n.length;u++){const l=t.getExportInfo(n[u]);if(a===false){l.canMangleUse=false}const f=u===n.length-1;if(!f){const n=l.getNestedExportsInfo();if(n){if(l.setUsedConditionally(e=>e===i.Unused,i.OnlyPropertiesUsed,r)){const n=t===o?e:s.get(t);if(n){c.enqueue(n,r)}}t=n;continue}}if(l.setUsedConditionally(e=>e!==i.Used,i.Used,r)){const n=t===o?e:s.get(t);if(n){c.enqueue(n,r)}}break}}}}else{if(e.factoryMeta!==undefined&&e.factoryMeta.sideEffectFree)return;if(o.setUsedForSideEffectsOnly(r)){c.enqueue(e,r)}}};const d=(n,r)=>{const i=new Map;const s=[n];for(const n of s){for(const e of n.blocks){s.push(e)}for(const s of n.dependencies){const n=t.getConnection(s);if(!n||!n.module||!n.isActive(r)){continue}const{module:o}=n;const a=i.get(o);if(a===f){continue}const c=e.getDependencyReferencedExports(s,r);if(a===undefined||a===l||c===f){i.set(o,c)}else if(a===l){continue}else{let e;if(Array.isArray(a)){e=new Map;for(const t of a){if(Array.isArray(t)){e.set(t.join("\n"),t)}else{e.set(t.name.join("\n"),t)}}i.set(o,e)}else{e=a}for(const t of c){if(Array.isArray(t)){const n=t.join("\n");const r=e.get(n);if(r===undefined){e.set(n,t)}}else{const n=t.name.join("\n");const r=e.get(n);if(r===undefined||Array.isArray(r)){e.set(n,t)}else{e.set(n,{name:t.name,canMangle:t.canMangle&&r.canMangle})}}}}}}for(const[e,t]of i){if(Array.isArray(t)){p(e,t,r)}else{p(e,Array.from(t.values()),r)}}};r.time("initialize exports usage");for(const e of n){const n=t.getExportsInfo(e);s.set(n,e);n.setHasUseInfo()}r.timeEnd("initialize exports usage");r.time("trace exports usage in graph");const h=(e,n)=>{const r=t.getModule(e);if(r){p(r,l,n);c.enqueue(r,n)}};let m=undefined;for(const[t,{dependencies:n,includeDependencies:r,options:i}]of e.entries){const s=this.global?undefined:a(e,t,i);for(const e of n){h(e,s)}for(const e of r){h(e,s)}m=u(m,s)}for(const t of e.globalEntry.dependencies){h(t,m)}for(const t of e.globalEntry.includeDependencies){h(t,m)}while(c.length){const[e,t]=c.dequeue();d(e,t)}r.timeEnd("trace exports usage in graph")});if(!this.global){e.hooks.afterChunks.tap("FlagDependencyUsagePlugin",()=>{const t=new Set;for(const n of e.entrypoints.values()){t.add(n.getRuntimeChunk())}for(const e of t){const t=e.name;for(const n of e.getAllReferencedChunks()){n.runtime=c(n.runtime,t)}}})}})}}e.exports=FlagDependencyUsagePlugin},19874:(e,t,n)=>{"use strict";const r=n(58018);class FlagUsingEvalPlugin{apply(e){e.hooks.compilation.tap("FlagUsingEvalPlugin",(e,{normalModuleFactory:t})=>{const n=e=>{e.hooks.call.for("eval").tap("FlagUsingEvalPlugin",()=>{e.state.module.buildInfo.moduleConcatenationBailout="eval()";e.state.module.buildInfo.usingEval=true;r.bailout(e.state)})};t.hooks.parser.for("javascript/auto").tap("FlagUsingEvalPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("FlagUsingEvalPlugin",n);t.hooks.parser.for("javascript/esm").tap("FlagUsingEvalPlugin",n)})}}e.exports=FlagUsingEvalPlugin},36253:(e,t,n)=>{"use strict";class Generator{static byType(e){return new ByTypeGenerator(e)}getTypes(e){const t=n(75884);throw new t}getSize(e,t){const r=n(75884);throw new r}generate(e,{dependencyTemplates:t,runtimeTemplate:r,moduleGraph:i,type:s}){const o=n(75884);throw new o}updateHash(e,{module:t,runtime:n}){}}class ByTypeGenerator extends Generator{constructor(e){super();this.map=e;this._types=new Set(Object.keys(e))}getTypes(e){return this._types}getSize(e,t){const n=t||"javascript";const r=this.map[n];return r?r.getSize(e,n):0}generate(e,t){const n=t.type;const r=this.map[n];if(!r){throw new Error(`Generator.byType: no generator specified for ${n}`)}return r.generate(e,t)}}e.exports=Generator},4642:(e,t)=>{"use strict";const n=(e,t)=>{if(e.pushChunk(t)){t.addGroup(e)}};const r=(e,t)=>{if(e.addChild(t)){t.addParent(e)}};t.connectChunkGroupAndChunk=n;t.connectChunkGroupParentAndChild=r},36756:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class HarmonyLinkingError extends r{constructor(e){super(e);this.name="HarmonyLinkingError";this.hideStack=true;Error.captureStackTrace(this,this.constructor)}}},3728:(e,t,n)=>{"use strict";const r=n(81627);class HookWebpackError extends r{constructor(e,t){super(e.message);this.name="HookWebpackError";this.hook=t;this.error=e;this.hideStack=true;this.details=`caused by plugins in ${t}\n${e.stack}`;Error.captureStackTrace(this,this.constructor);this.stack+=`\n-- inner error --\n${e.stack}`}}e.exports=HookWebpackError;const i=(e,t)=>{if(e instanceof r)return e;return new HookWebpackError(e,t)};e.exports.makeWebpackError=i;const s=(e,t)=>{return(n,i)=>{if(n){if(n instanceof r){e(n);return}e(new HookWebpackError(n,t));return}e(null,i)}};e.exports.makeWebpackErrorCallback=s;const o=(e,t)=>{let n;try{n=e()}catch(e){if(e instanceof r){throw e}throw new HookWebpackError(e,t)}return n};e.exports.tryRunOrWebpackError=o},79972:(e,t,n)=>{"use strict";const{SyncBailHook:r}=n(92960);const{RawSource:i}=n(48135);const s=n(45137);const o=n(3080);const a=n(22352);const c=n(53520);const u=n(76150);const l=n(66298);const f=n(76302);const p=n(5389);const d=n(21809);const h=n(73158);const m=n(79838);const g=n(3711);const{evaluateToIdentifier:y,evaluateToString:v,toConstantDependency:_}=n(48472);const{find:b}=n(26221);const E=n(86949);const{compareModulesById:w}=n(68673);const S=new WeakMap;class HotModuleReplacementPlugin{static getParserHooks(e){if(!(e instanceof g)){throw new TypeError("The 'parser' argument must be an instance of JavascriptParser")}let t=S.get(e);if(t===undefined){t={hotAcceptCallback:new r(["expression","requests"]),hotAcceptWithoutCallback:new r(["expression","requests"])};S.set(e,t)}return t}constructor(e){this.options=e||{}}apply(e){const t=[u.module];const n=(e,n)=>{const{hotAcceptCallback:r,hotAcceptWithoutCallback:i}=HotModuleReplacementPlugin.getParserHooks(e);return s=>{const o=e.state.module;const a=new l(`${o.moduleArgument}.hot.accept`,s.callee.range,t);a.loc=s.loc;o.addPresentationalDependency(a);if(s.arguments.length>=1){const t=e.evaluateExpression(s.arguments[0]);let a=[];let c=[];if(t.isString()){a=[t]}else if(t.isArray()){a=t.items.filter(e=>e.isString())}if(a.length>0){a.forEach((e,t)=>{const r=e.string;const i=new n(r,e.range);i.optional=true;i.loc=Object.create(s.loc);i.loc.index=t;o.addDependency(i);c.push(r)});if(s.arguments.length>1){r.call(s.arguments[1],c);e.walkExpression(s.arguments[1]);return true}else{i.call(s,c);return true}}}e.walkExpressions(s.arguments);return true}};const r=(e,n)=>r=>{const i=e.state.module;const s=new l(`${i.moduleArgument}.hot.decline`,r.callee.range,t);s.loc=r.loc;i.addPresentationalDependency(s);if(r.arguments.length===1){const t=e.evaluateExpression(r.arguments[0]);let s=[];if(t.isString()){s=[t]}else if(t.isArray()){s=t.items.filter(e=>e.isString())}s.forEach((e,t)=>{const s=new n(e.string,e.range);s.optional=true;s.loc=Object.create(r.loc);s.loc.index=t;i.addDependency(s)})}return true};const g=e=>n=>{const r=e.state.module;const i=new l(`${r.moduleArgument}.hot`,n.range,t);i.loc=n.loc;r.addPresentationalDependency(i);return true};const S=e=>{e.hooks.evaluateIdentifier.for("module.hot").tap({name:"HotModuleReplacementPlugin",before:"NodeStuffPlugin"},e=>{return y("module.hot","module",()=>["hot"],true)(e)});e.hooks.call.for("module.hot.accept").tap("HotModuleReplacementPlugin",n(e,d));e.hooks.call.for("module.hot.decline").tap("HotModuleReplacementPlugin",r(e,h));e.hooks.expression.for("module.hot").tap("HotModuleReplacementPlugin",g(e))};const k=e=>{e.hooks.evaluateIdentifier.for("import.meta.webpackHot").tap("HotModuleReplacementPlugin",e=>{return y("import.meta.webpackHot","import.meta",()=>["webpackHot"],true)(e)});e.hooks.call.for("import.meta.webpackHot.accept").tap("HotModuleReplacementPlugin",n(e,f));e.hooks.call.for("import.meta.webpackHot.decline").tap("HotModuleReplacementPlugin",r(e,p));e.hooks.expression.for("import.meta.webpackHot").tap("HotModuleReplacementPlugin",g(e))};const D=e=>{e.hooks.expression.for("__webpack_hash__").tap("HotModuleReplacementPlugin",_(e,`${u.getFullHash}()`,[u.getFullHash]));e.hooks.evaluateTypeof.for("__webpack_hash__").tap("HotModuleReplacementPlugin",v("string"))};e.hooks.compilation.tap("HotModuleReplacementPlugin",(t,{normalModuleFactory:n})=>{if(t.compiler!==e)return;t.dependencyFactories.set(d,n);t.dependencyTemplates.set(d,new d.Template);t.dependencyFactories.set(h,n);t.dependencyTemplates.set(h,new h.Template);t.dependencyFactories.set(f,n);t.dependencyTemplates.set(f,new f.Template);t.dependencyFactories.set(p,n);t.dependencyTemplates.set(p,new p.Template);let r=0;const l={};const g={};t.hooks.record.tap("HotModuleReplacementPlugin",(e,t)=>{if(t.hash===e.hash)return;const n=e.chunkGraph;t.hash=e.hash;t.hotIndex=r;t.fullHashChunkModuleHashes=l;t.chunkModuleHashes=g;t.chunkHashs={};for(const n of e.chunks){t.chunkHashs[n.id]=n.hash}t.chunkModuleIds={};for(const r of e.chunks){t.chunkModuleIds[r.id]=Array.from(n.getOrderedChunkModulesIterable(r,w(n)),e=>n.getModuleId(e))}});const y=new E;const v=new E;t.hooks.fullHash.tap("HotModuleReplacementPlugin",e=>{const n=t.chunkGraph;const i=t.records;for(const e of t.chunks){const t=new Set;const r=n.getChunkFullHashModulesIterable(e);if(r!==undefined){for(const n of r){v.add(n,e);t.add(n)}}const s=n.getChunkModulesIterable(e);if(s!==undefined){if(i.chunkModuleHashes&&i.fullHashChunkModuleHashes){for(const r of s){const s=`${e.id}|${r.identifier()}`;const o=n.getModuleHash(r,e.runtime);if(t.has(r)){if(i.fullHashChunkModuleHashes[s]!==o){y.add(r,e)}l[s]=o}else{if(i.chunkModuleHashes[s]!==o){y.add(r,e)}g[s]=o}}}else{for(const r of s){const i=`${e.id}|${r.identifier()}`;const s=n.getModuleHash(r,e.runtime);if(t.has(r)){l[i]=s}else{g[i]=s}}}}}r=i.hotIndex||0;if(y.size>0)r++;e.update(`${r}`)});t.hooks.processAssets.tap({name:"HotModuleReplacementPlugin",stage:o.PROCESS_ASSETS_STAGE_ADDITIONAL},()=>{const e=t.chunkGraph;const n=t.records;if(n.hash===t.hash)return;if(!n.chunkModuleHashes||!n.chunkHashs||!n.chunkModuleIds){return}for(const[t,r]of v){const i=`${r.id}|${t.identifier()}`;const s=e.getModuleHash(t,r.runtime);if(n.chunkModuleHashes[i]!==s){y.add(t,r)}g[i]=s}const r={c:[],r:[],m:undefined};const o=new Set;for(const i of Object.keys(n.chunkHashs)){const c=b(t.chunks,e=>`${e.id}`===i);if(c){const i=c.id;const o=e.getChunkModules(c).filter(e=>y.has(e,c));const u=Array.from(e.getChunkRuntimeModulesIterable(c)).filter(e=>y.has(e,c));const l=e.getChunkFullHashModulesIterable(c);const f=l&&Array.from(l).filter(e=>y.has(e,c));const p=new Set;for(const t of e.getChunkModulesIterable(c)){p.add(e.getModuleId(t))}const d=n.chunkModuleIds[i].filter(e=>!p.has(e));if(o.length>0||u.length>0||d.length>0){const l=new a;s.setChunkGraphForChunk(l,e);l.id=i;l.runtime=c.runtime;e.attachModules(l,o);e.attachRuntimeModules(l,u);if(f){e.attachFullHashModules(l,f)}l.removedModules=d;const p=t.getRenderManifest({chunk:l,hash:n.hash,fullHash:n.hash,outputOptions:t.outputOptions,moduleTemplates:t.moduleTemplates,dependencyTemplates:t.dependencyTemplates,codeGenerationResults:t.codeGenerationResults,runtimeTemplate:t.runtimeTemplate,moduleGraph:t.moduleGraph,chunkGraph:e});for(const e of p){let n;let r;if("filename"in e){n=e.filename;r=e.info}else{({path:n,info:r}=t.getPathWithInfo(e.filenameTemplate,e.pathOptions))}const i=e.render();t.additionalChunkAssets.push(n);t.emitAsset(n,i,{hotModuleReplacement:true,...r});c.files.add(n);t.hooks.chunkAsset.call(c,n)}r.c.push(i)}}else{const e=`${+i}`===i?+i:i;r.r.push(e);for(const t of n.chunkModuleIds[e])o.add(t)}}r.m=Array.from(o);const c=new i(JSON.stringify(r));const{path:u,info:l}=t.getPathWithInfo(t.outputOptions.hotUpdateMainFilename,{hash:n.hash});t.emitAsset(u,c,{hotModuleReplacement:true,...l})});t.hooks.additionalTreeRuntimeRequirements.tap("HotModuleReplacementPlugin",(e,n)=>{n.add(u.hmrDownloadManifest);n.add(u.hmrDownloadUpdateHandlers);n.add(u.interceptModuleExecution);n.add(u.moduleCache);t.addRuntimeModule(e,new m)});n.hooks.parser.for("javascript/auto").tap("HotModuleReplacementPlugin",e=>{D(e);S(e);k(e)});n.hooks.parser.for("javascript/dynamic").tap("HotModuleReplacementPlugin",e=>{D(e);S(e)});n.hooks.parser.for("javascript/esm").tap("HotModuleReplacementPlugin",e=>{D(e);k(e)});c.getCompilationHooks(t).loader.tap("HotModuleReplacementPlugin",e=>{e.hot=true})})}}e.exports=HotModuleReplacementPlugin},22352:(e,t,n)=>{"use strict";const r=n(62433);class HotUpdateChunk extends r{constructor(){super();this.removedModules=undefined}updateHash(e,t){super.updateHash(e,t);e.update(JSON.stringify(this.removedModules))}}e.exports=HotUpdateChunk},69276:(e,t,n)=>{"use strict";const r=n(15235);const i=n(24019);class IgnorePlugin{constructor(e){r(i,e,{name:"Ignore Plugin",baseDataPath:"options"});this.options=e;this.checkIgnore=this.checkIgnore.bind(this)}checkIgnore(e){if("checkResource"in this.options&&this.options.checkResource&&this.options.checkResource(e.request,e.context)){return false}if("resourceRegExp"in this.options&&this.options.resourceRegExp&&this.options.resourceRegExp.test(e.request)){if("contextRegExp"in this.options&&this.options.contextRegExp){if(this.options.contextRegExp.test(e.context)){return false}}else{return false}}}apply(e){e.hooks.normalModuleFactory.tap("IgnorePlugin",e=>{e.hooks.beforeResolve.tap("IgnorePlugin",this.checkIgnore)});e.hooks.contextModuleFactory.tap("IgnorePlugin",e=>{e.hooks.beforeResolve.tap("IgnorePlugin",this.checkIgnore)})}}e.exports=IgnorePlugin},63272:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=(e,t)=>[e,t];const s=([e,t],[n,r])=>{const i=e.stage-n.stage;if(i!==0)return i;const s=e.position-n.position;if(s!==0)return s;return t-r};class InitFragment{constructor(e,t,n,r,i){this.content=e;this.stage=t;this.position=n;this.key=r;this.endContent=i}getContent(e){return this.content}getEndContent(e){return this.endContent}static addToSource(e,t,n){if(t.length>0){const o=t.map(i).sort(s);const a=new Map;for(const[e]of o){if(typeof e.merge==="function"){const t=a.get(e.key);if(t!==undefined){a.set(e.key||Symbol(),e.merge(t));continue}}a.set(e.key||Symbol(),e)}const c=new r;const u=[];for(const e of a.values()){c.add(e.getContent(n));const t=e.getEndContent(n);if(t){u.push(t)}}c.add(e);for(const e of u.reverse()){c.add(e)}return c}else{return e}}}InitFragment.prototype.merge=undefined;InitFragment.STAGE_CONSTANTS=10;InitFragment.STAGE_ASYNC_BOUNDARY=20;InitFragment.STAGE_HARMONY_EXPORTS=30;InitFragment.STAGE_HARMONY_IMPORTS=40;InitFragment.STAGE_PROVIDES=50;InitFragment.STAGE_ASYNC_DEPENDENCIES=60;InitFragment.STAGE_ASYNC_HARMONY_IMPORTS=70;e.exports=InitFragment},77750:(e,t,n)=>{"use strict";const r=n(62355);const i=n(66583);const{compareModulesById:s}=n(68673);const{dirname:o,mkdirp:a}=n(95396);const c=(e,t)=>{for(const n of e){if(t(n))return true}return false};class LibManifestPlugin{constructor(e){this.options=e}apply(e){e.hooks.emit.tapAsync("LibManifestPlugin",(t,n)=>{const u=t.moduleGraph;r.forEach(Array.from(t.chunks),(n,r)=>{if(!n.isOnlyInitial()){r();return}const l=t.chunkGraph;const f=t.getPath(this.options.path,{chunk:n});const p=this.options.name&&t.getPath(this.options.name,{chunk:n});const d=Object.create(null);for(const t of l.getOrderedChunkModulesIterable(n,s(l))){if(this.options.entryOnly&&!c(u.getIncomingConnections(t),e=>e.dependency instanceof i)){continue}const n=t.libIdent({context:this.options.context||e.options.context,associatedObjectForCache:e.root});if(n){const e=u.getExportsInfo(t);const r=e.getProvidedExports();const i={id:l.getModuleId(t),buildMeta:t.buildMeta,exports:Array.isArray(r)?r:undefined};d[n]=i}}const h={name:p,type:this.options.type,content:d};const m=this.options.format?JSON.stringify(h,null,2):JSON.stringify(h);const g=Buffer.from(m,"utf8");a(e.intermediateFileSystem,o(e.intermediateFileSystem,f),t=>{if(t)return r(t);e.intermediateFileSystem.writeFile(f,g,r)})},n)})}}e.exports=LibManifestPlugin},43351:(e,t,n)=>{"use strict";const r=n(13984);class LibraryTemplatePlugin{constructor(e,t,n,r,i){this.library={type:t||"var",name:e,umdNamedDefine:n,auxiliaryComment:r,export:i}}apply(e){const{output:t}=e.options;t.library=this.library;new r(this.library.type).apply(e)}}e.exports=LibraryTemplatePlugin},19674:(e,t,n)=>{"use strict";const r=n(70354);const i=n(53520);const s=n(15235);const o=n(6087);class LoaderOptionsPlugin{constructor(e={}){s(o,e,{name:"Loader Options Plugin",baseDataPath:"options"});if(typeof e!=="object")e={};if(!e.test){e.test={test:()=>true}}this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("LoaderOptionsPlugin",e=>{i.getCompilationHooks(e).loader.tap("LoaderOptionsPlugin",(e,n)=>{const i=n.resource;if(!i)return;const s=i.indexOf("?");if(r.matchObject(t,s<0?i:i.substr(0,s))){for(const n of Object.keys(t)){if(n==="include"||n==="exclude"||n==="test"){continue}e[n]=t[n]}}})})}}e.exports=LoaderOptionsPlugin},97736:(e,t,n)=>{"use strict";const r=n(53520);class LoaderTargetPlugin{constructor(e){this.target=e}apply(e){e.hooks.compilation.tap("LoaderTargetPlugin",e=>{r.getCompilationHooks(e).loader.tap("LoaderTargetPlugin",e=>{e.target=this.target})})}}e.exports=LoaderTargetPlugin},73694:(e,t,n)=>{"use strict";const{SyncWaterfallHook:r}=n(92960);const i=n(31669);const s=n(76150);const o=n(27503);const a=o(()=>n(18161));const c=o(()=>n(58421));const u=o(()=>n(67104));class MainTemplate{constructor(e,t){this._outputOptions=e||{};this.hooks=Object.freeze({renderManifest:{tap:i.deprecate((e,n)=>{t.hooks.renderManifest.tap(e,(e,t)=>{if(!t.chunk.hasRuntime())return e;return n(e,t)})},"MainTemplate.hooks.renderManifest is deprecated (use Compilation.hooks.renderManifest instead)","DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST")},modules:{tap:()=>{throw new Error("MainTemplate.hooks.modules has been removed (there is no replacement, please create an issue to request that)")}},moduleObj:{tap:()=>{throw new Error("MainTemplate.hooks.moduleObj has been removed (there is no replacement, please create an issue to request that)")}},require:{tap:i.deprecate((e,n)=>{a().getCompilationHooks(t).renderRequire.tap(e,n)},"MainTemplate.hooks.require is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderRequire instead)","DEP_WEBPACK_MAIN_TEMPLATE_REQUIRE")},beforeStartup:{tap:()=>{throw new Error("MainTemplate.hooks.beforeStartup has been removed (use RuntimeGlobals.startup instead)")}},startup:{tap:()=>{throw new Error("MainTemplate.hooks.startup has been removed (use RuntimeGlobals.startup instead)")}},afterStartup:{tap:()=>{throw new Error("MainTemplate.hooks.afterStartup has been removed (use RuntimeGlobals.startup instead)")}},render:{tap:i.deprecate((e,n)=>{a().getCompilationHooks(t).render.tap(e,(e,r)=>{if(r.chunkGraph.getNumberOfEntryModules(r.chunk)===0||!r.chunk.hasRuntime()){return e}return n(e,r.chunk,t.hash,t.moduleTemplates.javascript,t.dependencyTemplates)})},"MainTemplate.hooks.render is deprecated (use JavascriptModulesPlugin.getCompilationHooks().render instead)","DEP_WEBPACK_MAIN_TEMPLATE_RENDER")},renderWithEntry:{tap:i.deprecate((e,n)=>{a().getCompilationHooks(t).render.tap(e,(e,r)=>{if(r.chunkGraph.getNumberOfEntryModules(r.chunk)===0||!r.chunk.hasRuntime()){return e}return n(e,r.chunk,t.hash)})},"MainTemplate.hooks.renderWithEntry is deprecated (use JavascriptModulesPlugin.getCompilationHooks().render instead)","DEP_WEBPACK_MAIN_TEMPLATE_RENDER_WITH_ENTRY")},assetPath:{tap:i.deprecate((e,n)=>{t.hooks.assetPath.tap(e,n)},"MainTemplate.hooks.assetPath is deprecated (use Compilation.hooks.assetPath instead)","DEP_WEBPACK_MAIN_TEMPLATE_ASSET_PATH"),call:i.deprecate((e,n)=>{return t.getAssetPath(e,n)},"MainTemplate.hooks.assetPath is deprecated (use Compilation.hooks.assetPath instead)","DEP_WEBPACK_MAIN_TEMPLATE_ASSET_PATH")},hash:{tap:i.deprecate((e,n)=>{t.hooks.fullHash.tap(e,n)},"MainTemplate.hooks.hash is deprecated (use Compilation.hooks.fullHash instead)","DEP_WEBPACK_MAIN_TEMPLATE_HASH")},hashForChunk:{tap:i.deprecate((e,n)=>{a().getCompilationHooks(t).chunkHash.tap(e,(e,t)=>{if(!e.hasRuntime())return;return n(t,e)})},"MainTemplate.hooks.hashForChunk is deprecated (use JavascriptModulesPlugin.getCompilationHooks().chunkHash instead)","DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK")},globalHashPaths:{tap:i.deprecate(()=>{},"MainTemplate.hooks.globalHashPaths has been removed (it's no longer needed)","DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK")},globalHash:{tap:i.deprecate(()=>{},"MainTemplate.hooks.globalHash has been removed (it's no longer needed)","DEP_WEBPACK_MAIN_TEMPLATE_HASH_FOR_CHUNK")},hotBootstrap:{tap:()=>{throw new Error("MainTemplate.hooks.hotBootstrap has been removed (use your own RuntimeModule instead)")}},bootstrap:new r(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),localVars:new r(["source","chunk","hash"]),requireExtensions:new r(["source","chunk","hash"]),requireEnsure:new r(["source","chunk","hash","chunkIdExpression"]),get jsonpScript(){const e=u().getCompilationHooks(t);return e.createScript},get linkPrefetch(){const e=c().getCompilationHooks(t);return e.linkPrefetch},get linkPreload(){const e=c().getCompilationHooks(t);return e.linkPreload}});this.renderCurrentHashCode=i.deprecate((e,t)=>{if(t){return`${s.getFullHash} ? ${s.getFullHash}().slice(0, ${t}) : ${e.slice(0,t)}`}return`${s.getFullHash} ? ${s.getFullHash}() : ${e}`},"MainTemplate.renderCurrentHashCode is deprecated (use RuntimeGlobals.getFullHash runtime function instead)","DEP_WEBPACK_MAIN_TEMPLATE_RENDER_CURRENT_HASH_CODE");this.getPublicPath=i.deprecate(e=>{return t.getAssetPath(t.outputOptions.publicPath,e)},"MainTemplate.getPublicPath is deprecated (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)","DEP_WEBPACK_MAIN_TEMPLATE_GET_PUBLIC_PATH");this.getAssetPath=i.deprecate((e,n)=>{return t.getAssetPath(e,n)},"MainTemplate.getAssetPath is deprecated (use Compilation.getAssetPath instead)","DEP_WEBPACK_MAIN_TEMPLATE_GET_ASSET_PATH");this.getAssetPathWithInfo=i.deprecate((e,n)=>{return t.getAssetPathWithInfo(e,n)},"MainTemplate.getAssetPathWithInfo is deprecated (use Compilation.getAssetPath instead)","DEP_WEBPACK_MAIN_TEMPLATE_GET_ASSET_PATH_WITH_INFO")}}Object.defineProperty(MainTemplate.prototype,"requireFn",{get:i.deprecate(()=>"__webpack_require__",'MainTemplate.requireFn is deprecated (use "__webpack_require__")',"DEP_WEBPACK_MAIN_TEMPLATE_REQUIRE_FN")});Object.defineProperty(MainTemplate.prototype,"outputOptions",{get:i.deprecate(function(){return this._outputOptions},"MainTemplate.outputOptions is deprecated (use Compilation.outputOptions instead)","DEP_WEBPACK_MAIN_TEMPLATE_OUTPUT_OPTIONS")});e.exports=MainTemplate},53453:(e,t,n)=>{"use strict";const r=n(31669);const i=n(45137);const s=n(32448);const o=n(75412);const a=n(76150);const{compareChunksById:c}=n(68673);const u=n(56202);const l={};let f=1e3;const p=new Set(["unknown"]);const d=new Set(["javascript"]);class Module extends s{constructor(e,t=null){super();this.type=e;this.context=t;this.needId=true;this.debugId=f++;this.resolveOptions=l;this.factoryMeta=undefined;this._warnings=undefined;this._errors=undefined;this.buildMeta=undefined;this.buildInfo=undefined;this.presentationalDependencies=undefined}get id(){return i.getChunkGraphForModule(this,"Module.id","DEP_WEBPACK_MODULE_ID").getModuleId(this)}set id(e){if(e===""){this.needId=false;return}i.getChunkGraphForModule(this,"Module.id","DEP_WEBPACK_MODULE_ID").setModuleId(this,e)}get hash(){return i.getChunkGraphForModule(this,"Module.hash","DEP_WEBPACK_MODULE_HASH").getModuleHash(this,undefined)}get renderedHash(){return i.getChunkGraphForModule(this,"Module.renderedHash","DEP_WEBPACK_MODULE_RENDERED_HASH").getRenderedModuleHash(this,undefined)}get profile(){return o.getModuleGraphForModule(this,"Module.profile","DEP_WEBPACK_MODULE_PROFILE").getProfile(this)}set profile(e){o.getModuleGraphForModule(this,"Module.profile","DEP_WEBPACK_MODULE_PROFILE").setProfile(this,e)}get index(){return o.getModuleGraphForModule(this,"Module.index","DEP_WEBPACK_MODULE_INDEX").getPreOrderIndex(this)}set index(e){o.getModuleGraphForModule(this,"Module.index","DEP_WEBPACK_MODULE_INDEX").setPreOrderIndex(this,e)}get index2(){return o.getModuleGraphForModule(this,"Module.index2","DEP_WEBPACK_MODULE_INDEX2").getPostOrderIndex(this)}set index2(e){o.getModuleGraphForModule(this,"Module.index2","DEP_WEBPACK_MODULE_INDEX2").setPostOrderIndex(this,e)}get depth(){return o.getModuleGraphForModule(this,"Module.depth","DEP_WEBPACK_MODULE_DEPTH").getDepth(this)}set depth(e){o.getModuleGraphForModule(this,"Module.depth","DEP_WEBPACK_MODULE_DEPTH").setDepth(this,e)}get issuer(){return o.getModuleGraphForModule(this,"Module.issuer","DEP_WEBPACK_MODULE_ISSUER").getIssuer(this)}set issuer(e){o.getModuleGraphForModule(this,"Module.issuer","DEP_WEBPACK_MODULE_ISSUER").setIssuer(this,e)}get usedExports(){return o.getModuleGraphForModule(this,"Module.usedExports","DEP_WEBPACK_MODULE_USED_EXPORTS").getUsedExports(this,undefined)}get optimizationBailout(){return o.getModuleGraphForModule(this,"Module.optimizationBailout","DEP_WEBPACK_MODULE_OPTIMIZATION_BAILOUT").getOptimizationBailout(this)}get optional(){return this.isOptional(o.getModuleGraphForModule(this,"Module.optional","DEP_WEBPACK_MODULE_OPTIONAL"))}addChunk(e){const t=i.getChunkGraphForModule(this,"Module.addChunk","DEP_WEBPACK_MODULE_ADD_CHUNK");if(t.isModuleInChunk(this,e))return false;t.connectChunkAndModule(e,this);return true}removeChunk(e){return i.getChunkGraphForModule(this,"Module.removeChunk","DEP_WEBPACK_MODULE_REMOVE_CHUNK").disconnectChunkAndModule(e,this)}isInChunk(e){return i.getChunkGraphForModule(this,"Module.isInChunk","DEP_WEBPACK_MODULE_IS_IN_CHUNK").isModuleInChunk(this,e)}isEntryModule(){return i.getChunkGraphForModule(this,"Module.isEntryModule","DEP_WEBPACK_MODULE_IS_ENTRY_MODULE").isEntryModule(this)}getChunks(){return i.getChunkGraphForModule(this,"Module.getChunks","DEP_WEBPACK_MODULE_GET_CHUNKS").getModuleChunks(this)}getNumberOfChunks(){return i.getChunkGraphForModule(this,"Module.getNumberOfChunks","DEP_WEBPACK_MODULE_GET_NUMBER_OF_CHUNKS").getNumberOfModuleChunks(this)}get chunksIterable(){return i.getChunkGraphForModule(this,"Module.chunksIterable","DEP_WEBPACK_MODULE_CHUNKS_ITERABLE").getOrderedModuleChunksIterable(this,c)}isProvided(e){return o.getModuleGraphForModule(this,"Module.usedExports","DEP_WEBPACK_MODULE_USED_EXPORTS").isExportProvided(this,e)}get exportsArgument(){return this.buildInfo&&this.buildInfo.exportsArgument||"exports"}get moduleArgument(){return this.buildInfo&&this.buildInfo.moduleArgument||"module"}getExportsType(e,t){switch(this.buildMeta&&this.buildMeta.exportsType){case"flagged":return t?"default-only":"namespace";case"namespace":return"namespace";case"default":switch(this.buildMeta.defaultObject){case"redirect":case"redirect-warn":return t?"default-only":"default-with-named";default:return"default-only"}case"dynamic":{if(t)return"default-only";const n=()=>{switch(this.buildMeta.defaultObject){case"redirect":case"redirect-warn":return"default-with-named";default:return"default-only"}};const r=e.getExportInfo(this,"__esModule");if(r.provided===false){return n()}const i=r.getTarget(e);if(!i||!i.export||i.export.length!==1||i.export[0]!=="__esModule"){return"dynamic"}switch(i.module.buildMeta&&i.module.buildMeta.exportsType){case"flagged":case"namespace":return"namespace";case"default":return n();default:return"dynamic"}}default:return t?"default-only":"dynamic"}}addPresentationalDependency(e){if(this.presentationalDependencies===undefined){this.presentationalDependencies=[]}this.presentationalDependencies.push(e)}clearDependenciesAndBlocks(){if(this.presentationalDependencies!==undefined){this.presentationalDependencies.length=0}super.clearDependenciesAndBlocks()}addWarning(e){if(this._warnings===undefined){this._warnings=[]}this._warnings.push(e)}getWarnings(){return this._warnings}getNumberOfWarnings(){return this._warnings!==undefined?this._warnings.length:0}addError(e){if(this._errors===undefined){this._errors=[]}this._errors.push(e)}getErrors(){return this._errors}getNumberOfErrors(){return this._errors!==undefined?this._errors.length:0}clearWarningsAndErrors(){if(this._warnings!==undefined){this._warnings.length=0}if(this._errors!==undefined){this._errors.length=0}}isOptional(e){let t=false;for(const n of e.getIncomingConnections(this)){if(!n.dependency||!n.dependency.optional||!n.isActive(undefined))return false;t=true}return t}isAccessibleInChunk(e,t,n){for(const n of t.groupsIterable){if(!this.isAccessibleInChunkGroup(e,n))return false}return true}isAccessibleInChunkGroup(e,t,n){const r=new Set([t]);e:for(const i of r){for(const t of i.chunks){if(t!==n&&e.isModuleInChunk(this,t))continue e}if(t.isInitial())return false;for(const e of t.parentsIterable)r.add(e)}return true}hasReasonForChunk(e,t,n){for(const r of t.getIncomingConnections(this)){if(!r.isActive(e.runtime))continue;const t=r.originModule;for(const r of n.getModuleChunksIterable(t)){if(!this.isAccessibleInChunk(n,r,e))return true}}return false}hasReasons(e,t){for(const n of e.getIncomingConnections(this)){if(n.isActive(t))return true}return false}toString(){return`Module[${this.debugId}: ${this.identifier()}]`}needBuild(e,t){t(null,!this.buildMeta||this.needRebuild===Module.prototype.needRebuild||this.needRebuild(e.fileSystemInfo.getDeprecatedFileTimestamps(),e.fileSystemInfo.getDeprecatedContextTimestamps()))}needRebuild(e,t){return true}updateHash(e,t={chunkGraph:i.getChunkGraphForModule(this,"Module.updateHash","DEP_WEBPACK_MODULE_UPDATE_HASH"),runtime:undefined}){const{chunkGraph:n,runtime:r}=t;e.update(`${n.getModuleId(this)}`);const s=n.moduleGraph.getExportsInfo(this);s.updateHash(e,r);if(this.presentationalDependencies!==undefined){for(const n of this.presentationalDependencies){n.updateHash(e,t)}}super.updateHash(e,t)}invalidateBuild(){}identifier(){const e=n(75884);throw new e}readableIdentifier(e){const t=n(75884);throw new t}build(e,t,r,i,s){const o=n(75884);throw new o}getSourceTypes(){if(this.source===Module.prototype.source){return p}else{return d}}source(e,t,r="javascript"){if(this.codeGeneration===Module.prototype.codeGeneration){const e=n(75884);throw new e}const s=i.getChunkGraphForModule(this,"Module.source() is deprecated. Use Compilation.codeGenerationResults.getSource(module, runtime, type) instead","DEP_WEBPACK_MODULE_SOURCE");const o={dependencyTemplates:e,runtimeTemplate:t,moduleGraph:s.moduleGraph,chunkGraph:s,runtime:undefined};const a=this.codeGeneration(o).sources;return r?a.get(r):a.get(this.getSourceTypes().values().next().value)}size(e){const t=n(75884);throw new t}libIdent(e){return null}nameForCondition(){return null}codeGeneration(e){const t=new Map;for(const n of this.getSourceTypes()){if(n!=="unknown"){t.set(n,this.source(e.dependencyTemplates,e.runtimeTemplate,n))}}return{sources:t,runtimeRequirements:new Set([a.module,a.exports,a.require])}}chunkCondition(e,t){return true}updateCacheModule(e){this.type=e.type;this.context=e.context;this.factoryMeta=e.factoryMeta;this.resolveOptions=e.resolveOptions}originalSource(){return null}serialize(e){const{write:t}=e;t(this.type);t(this.context);t(this.resolveOptions);t(this.factoryMeta);t(this.useSourceMap);t(this._warnings!==undefined&&this._warnings.length===0?undefined:this._warnings);t(this._errors!==undefined&&this._errors.length===0?undefined:this._errors);t(this.buildMeta);t(this.buildInfo);t(this.presentationalDependencies);super.serialize(e)}deserialize(e){const{read:t}=e;this.type=t();this.context=t();this.resolveOptions=t();this.factoryMeta=t();this.useSourceMap=t();this._warnings=t();this._errors=t();this.buildMeta=t();this.buildInfo=t();this.presentationalDependencies=t();super.deserialize(e)}}u(Module,"webpack/lib/Module");Object.defineProperty(Module.prototype,"hasEqualsChunks",{get(){throw new Error("Module.hasEqualsChunks was renamed (use hasEqualChunks instead)")}});Object.defineProperty(Module.prototype,"isUsed",{get(){throw new Error("Module.isUsed was renamed (use getUsedName, isExportUsed or isModuleUsed instead)")}});Object.defineProperty(Module.prototype,"errors",{get:r.deprecate(function(){if(this._errors===undefined){this._errors=[]}return this._errors},"Module.errors was removed (use getErrors instead)","DEP_WEBPACK_MODULE_ERRORS")});Object.defineProperty(Module.prototype,"warnings",{get:r.deprecate(function(){if(this._warnings===undefined){this._warnings=[]}return this._warnings},"Module.warnings was removed (use getWarnings instead)","DEP_WEBPACK_MODULE_WARNINGS")});Object.defineProperty(Module.prototype,"used",{get(){throw new Error("Module.used was refactored (use ModuleGraph.getUsedExports instead)")},set(e){throw new Error("Module.used was refactored (use ModuleGraph.setUsedExports instead)")}});e.exports=Module},26509:(e,t,n)=>{"use strict";const{cutOffLoaderExecution:r}=n(50717);const i=n(81627);const s=n(56202);class ModuleBuildError extends i{constructor(e,{from:t=null}={}){let n="Module build failed";let i=undefined;if(t){n+=` (from ${t}):\n`}else{n+=": "}if(e!==null&&typeof e==="object"){if(typeof e.stack==="string"&&e.stack){const t=r(e.stack);if(!e.hideStack){n+=t}else{i=t;if(typeof e.message==="string"&&e.message){n+=e.message}else{n+=e}}}else if(typeof e.message==="string"&&e.message){n+=e.message}else{n+=String(e)}}else{n+=String(e)}super(n);this.name="ModuleBuildError";this.details=i;this.error=e;Error.captureStackTrace(this,this.constructor)}serialize(e){const{write:t}=e;t(this.error);super.serialize(e)}deserialize(e){const{read:t}=e;this.error=t();super.deserialize(e)}}s(ModuleBuildError,"webpack/lib/ModuleBuildError");e.exports=ModuleBuildError},82811:(e,t,n)=>{"use strict";const r=n(81627);class ModuleDependencyError extends r{constructor(e,t,n){super(t.message);this.name="ModuleDependencyError";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=n;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleDependencyError},23280:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class ModuleDependencyWarning extends r{constructor(e,t,n){super(t.message);this.name="ModuleDependencyWarning";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=n;this.error=t;Error.captureStackTrace(this,this.constructor)}}},91613:(e,t,n)=>{"use strict";const{cleanUp:r}=n(50717);const i=n(81627);const s=n(56202);class ModuleError extends i{constructor(e,{from:t=null}={}){let n="Module Error";if(t){n+=` (from ${t}):\n`}else{n+=": "}if(e&&typeof e==="object"&&e.message){n+=e.message}else if(e){n+=e}super(n);this.name="ModuleError";this.error=e;this.details=e&&typeof e==="object"&&e.stack?r(e.stack,this.message):undefined;Error.captureStackTrace(this,this.constructor)}serialize(e){const{write:t}=e;t(this.error);super.serialize(e)}deserialize(e){const{read:t}=e;this.error=t();super.deserialize(e)}}s(ModuleError,"webpack/lib/ModuleError");e.exports=ModuleError},40674:(e,t,n)=>{"use strict";class ModuleFactory{create(e,t){const r=n(75884);throw new r}}e.exports=ModuleFactory},70354:(e,t,n)=>{"use strict";const r=n(35891);const i=t;i.ALL_LOADERS_RESOURCE="[all-loaders][resource]";i.REGEXP_ALL_LOADERS_RESOURCE=/\[all-?loaders\]\[resource\]/gi;i.LOADERS_RESOURCE="[loaders][resource]";i.REGEXP_LOADERS_RESOURCE=/\[loaders\]\[resource\]/gi;i.RESOURCE="[resource]";i.REGEXP_RESOURCE=/\[resource\]/gi;i.ABSOLUTE_RESOURCE_PATH="[absolute-resource-path]";i.REGEXP_ABSOLUTE_RESOURCE_PATH=/\[abs(olute)?-?resource-?path\]/gi;i.RESOURCE_PATH="[resource-path]";i.REGEXP_RESOURCE_PATH=/\[resource-?path\]/gi;i.ALL_LOADERS="[all-loaders]";i.REGEXP_ALL_LOADERS=/\[all-?loaders\]/gi;i.LOADERS="[loaders]";i.REGEXP_LOADERS=/\[loaders\]/gi;i.QUERY="[query]";i.REGEXP_QUERY=/\[query\]/gi;i.ID="[id]";i.REGEXP_ID=/\[id\]/gi;i.HASH="[hash]";i.REGEXP_HASH=/\[hash\]/gi;i.NAMESPACE="[namespace]";i.REGEXP_NAMESPACE=/\[namespace\]/gi;const s=(e,t)=>{const n=e.indexOf(t);return n<0?"":e.substr(n)};const o=(e,t)=>{const n=e.lastIndexOf(t);return n<0?"":e.substr(0,n)};const a=e=>{const t=r("md4");t.update(e);const n=t.digest("hex");return n.substr(0,4)};const c=e=>{if(typeof e==="string"){e=new RegExp("^"+e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))}return e};i.createFilename=((e,t,{requestShortener:n,chunkGraph:r})=>{const c={namespace:"",moduleFilenameTemplate:"",...typeof t==="object"?t:{moduleFilenameTemplate:t}};let u;let l;let f;let p;let d;if(e===undefined)e="";if(typeof e==="string"){d=n.shorten(e);f=d;p="";u=e.split("!").pop();l=a(f)}else{d=e.readableIdentifier(n);f=n.shorten(e.identifier());p=r.getModuleId(e);u=e.identifier().split("!").pop();l=a(f)}const h=d.split("!").pop();const m=o(d,"!");const g=o(f,"!");const y=s(h,"?");const v=h.substr(0,h.length-y.length);if(typeof c.moduleFilenameTemplate==="function"){return c.moduleFilenameTemplate({identifier:f,shortIdentifier:d,resource:h,resourcePath:v,absoluteResourcePath:u,allLoaders:g,query:y,moduleId:p,hash:l,namespace:c.namespace})}return c.moduleFilenameTemplate.replace(i.REGEXP_ALL_LOADERS_RESOURCE,f).replace(i.REGEXP_LOADERS_RESOURCE,d).replace(i.REGEXP_RESOURCE,h).replace(i.REGEXP_RESOURCE_PATH,v).replace(i.REGEXP_ABSOLUTE_RESOURCE_PATH,u).replace(i.REGEXP_ALL_LOADERS,g).replace(i.REGEXP_LOADERS,m).replace(i.REGEXP_QUERY,y).replace(i.REGEXP_ID,p).replace(i.REGEXP_HASH,l).replace(i.REGEXP_NAMESPACE,c.namespace)});i.replaceDuplicates=((e,t,n)=>{const r=Object.create(null);const i=Object.create(null);e.forEach((e,t)=>{r[e]=r[e]||[];r[e].push(t);i[e]=0});if(n){Object.keys(r).forEach(e=>{r[e].sort(n)})}return e.map((e,s)=>{if(r[e].length>1){if(n&&r[e][0]===s)return e;return t(e,s,i[e]++)}else{return e}})});i.matchPart=((e,t)=>{if(!t)return true;t=c(t);if(Array.isArray(t)){return t.map(c).some(t=>t.test(e))}else{return t.test(e)}});i.matchObject=((e,t)=>{if(e.test){if(!i.matchPart(t,e.test)){return false}}if(e.include){if(!i.matchPart(t,e.include)){return false}}if(e.exclude){if(i.matchPart(t,e.exclude)){return false}}return true})},75412:(e,t,n)=>{"use strict";const r=n(31669);const i=n(76632);const s=n(79900);const o=[];class ModuleGraphModule{constructor(){this.incomingConnections=new Set;this.outgoingConnections=undefined;this.issuer=undefined;this.optimizationBailout=[];this.exports=new i;this.preOrderIndex=null;this.postOrderIndex=null;this.depth=null;this.profile=undefined;this.async=false}}class ModuleGraphDependency{constructor(){this.connection=undefined;this.parentModule=undefined;this.parentBlock=undefined}}class ModuleGraph{constructor(){this._dependencyMap=new Map;this._moduleMap=new Map;this._originMap=new Map;this._metaMap=new Map;this._cacheModuleGraphModuleKey1=undefined;this._cacheModuleGraphModuleValue1=undefined;this._cacheModuleGraphModuleKey2=undefined;this._cacheModuleGraphModuleValue2=undefined;this._cacheModuleGraphDependencyKey=undefined;this._cacheModuleGraphDependencyValue=undefined}_getModuleGraphModule(e){if(this._cacheModuleGraphModuleKey1===e)return this._cacheModuleGraphModuleValue1;if(this._cacheModuleGraphModuleKey2===e)return this._cacheModuleGraphModuleValue2;let t=this._moduleMap.get(e);if(t===undefined){t=new ModuleGraphModule;this._moduleMap.set(e,t)}this._cacheModuleGraphModuleKey2=this._cacheModuleGraphModuleKey1;this._cacheModuleGraphModuleValue2=this._cacheModuleGraphModuleValue1;this._cacheModuleGraphModuleKey1=e;this._cacheModuleGraphModuleValue1=t;return t}_getModuleGraphDependency(e){if(this._cacheModuleGraphDependencyKey===e)return this._cacheModuleGraphDependencyValue;let t=this._dependencyMap.get(e);if(t===undefined){t=new ModuleGraphDependency;this._dependencyMap.set(e,t)}this._cacheModuleGraphDependencyKey=e;this._cacheModuleGraphDependencyValue=t;return t}setParents(e,t,n){const r=this._getModuleGraphDependency(e);r.parentBlock=t;r.parentModule=n}getParentModule(e){const t=this._getModuleGraphDependency(e);return t.parentModule}getParentBlock(e){const t=this._getModuleGraphDependency(e);return t.parentBlock}setResolvedModule(e,t,n){const r=new s(e,t,n,undefined,t.weak,t.getCondition(this));const i=this._getModuleGraphDependency(t);i.connection=r;const o=this._getModuleGraphModule(n).incomingConnections;o.add(r);const a=this._getModuleGraphModule(e);if(a.outgoingConnections===undefined){a.outgoingConnections=new Set}a.outgoingConnections.add(r)}updateModule(e,t){const{connection:n}=this._getModuleGraphDependency(e);if(n.module===t)return;const r=this._getModuleGraphModule(n.module);r.incomingConnections.delete(n);n.module=t;const i=this._getModuleGraphModule(t);i.incomingConnections.add(n)}removeConnection(e){const t=this._getModuleGraphDependency(e);const{connection:n}=t;const r=this._getModuleGraphModule(n.module);r.incomingConnections.delete(n);const i=this._getModuleGraphModule(n.originModule);i.outgoingConnections.delete(n);t.connection=undefined}addExplanation(e,t){const{connection:n}=this._getModuleGraphDependency(e);n.addExplanation(t)}cloneModuleAttributes(e,t){const n=this._getModuleGraphModule(e);const r=this._getModuleGraphModule(t);r.postOrderIndex=n.postOrderIndex;r.preOrderIndex=n.preOrderIndex;r.depth=n.depth;r.exports=n.exports;r.async=n.async}removeModuleAttributes(e){const t=this._getModuleGraphModule(e);t.postOrderIndex=null;t.preOrderIndex=null;t.depth=null;t.async=false}removeAllModuleAttributes(){for(const e of this._moduleMap.values()){e.postOrderIndex=null;e.preOrderIndex=null;e.depth=null;e.async=false}}moveModuleConnections(e,t,n){if(e===t)return;const r=this._getModuleGraphModule(e);const i=this._getModuleGraphModule(t);const s=r.outgoingConnections;if(s!==undefined){if(i.outgoingConnections===undefined){i.outgoingConnections=new Set}const e=i.outgoingConnections;for(const r of s){if(n(r)){r.originModule=t;e.add(r);s.delete(r)}}}const o=r.incomingConnections;const a=i.incomingConnections;for(const e of o){if(n(e)){e.module=t;a.add(e);o.delete(e)}}}copyOutgoingModuleConnections(e,t,n){if(e===t)return;const r=this._getModuleGraphModule(e);const i=this._getModuleGraphModule(t);const o=r.outgoingConnections;if(o!==undefined){if(i.outgoingConnections===undefined){i.outgoingConnections=new Set}const e=i.outgoingConnections;for(const r of o){if(n(r)){const n=new s(r.resolvedOriginModule,r.dependency,r.resolvedModule,undefined,r.weak,r.condition);n.originModule=t;n.module=r.module;if(r.explanations){for(const e of r.explanations){n.addExplanation(e)}}e.add(n);if(n.module!==undefined){const e=this._getModuleGraphModule(n.module);if(e.incomingConnections===undefined){e.incomingConnections=new Set}e.incomingConnections.add(n)}}}}}addExtraReason(e,t){const n=this._getModuleGraphModule(e).incomingConnections;n.add(new s(null,null,e,t))}getResolvedModule(e){const{connection:t}=this._getModuleGraphDependency(e);return t!==undefined?t.resolvedModule:null}getConnection(e){const{connection:t}=this._getModuleGraphDependency(e);return t}getModule(e){const{connection:t}=this._getModuleGraphDependency(e);return t!==undefined?t.module:null}getOrigin(e){const{connection:t}=this._getModuleGraphDependency(e);return t!==undefined?t.originModule:null}getResolvedOrigin(e){const{connection:t}=this._getModuleGraphDependency(e);return t!==undefined?t.resolvedOriginModule:null}getIncomingConnections(e){const t=this._getModuleGraphModule(e).incomingConnections;return t}getOutgoingConnections(e){const t=this._getModuleGraphModule(e).outgoingConnections;return t===undefined?o:t}getProfile(e){const t=this._getModuleGraphModule(e);return t.profile}setProfile(e,t){const n=this._getModuleGraphModule(e);n.profile=t}getIssuer(e){const t=this._getModuleGraphModule(e);return t.issuer}setIssuer(e,t){const n=this._getModuleGraphModule(e);n.issuer=t}setIssuerIfUnset(e,t){const n=this._getModuleGraphModule(e);if(n.issuer===undefined)n.issuer=t}getOptimizationBailout(e){const t=this._getModuleGraphModule(e);return t.optimizationBailout}getProvidedExports(e){const t=this._getModuleGraphModule(e);return t.exports.getProvidedExports()}isExportProvided(e,t){const n=this._getModuleGraphModule(e);const r=n.exports.isExportProvided(t);return r===undefined?null:r}getExportsInfo(e){const t=this._getModuleGraphModule(e);return t.exports}getExportInfo(e,t){const n=this._getModuleGraphModule(e);return n.exports.getExportInfo(t)}getReadOnlyExportInfo(e,t){const n=this._getModuleGraphModule(e);return n.exports.getReadOnlyExportInfo(t)}getUsedExports(e,t){const n=this._getModuleGraphModule(e);return n.exports.getUsedExports(t)}getPreOrderIndex(e){const t=this._getModuleGraphModule(e);return t.preOrderIndex}getPostOrderIndex(e){const t=this._getModuleGraphModule(e);return t.postOrderIndex}setPreOrderIndex(e,t){const n=this._getModuleGraphModule(e);n.preOrderIndex=t}setPreOrderIndexIfUnset(e,t){const n=this._getModuleGraphModule(e);if(n.preOrderIndex===null){n.preOrderIndex=t;return true}return false}setPostOrderIndex(e,t){const n=this._getModuleGraphModule(e);n.postOrderIndex=t}setPostOrderIndexIfUnset(e,t){const n=this._getModuleGraphModule(e);if(n.postOrderIndex===null){n.postOrderIndex=t;return true}return false}getDepth(e){const t=this._getModuleGraphModule(e);return t.depth}setDepth(e,t){const n=this._getModuleGraphModule(e);n.depth=t}setDepthIfLower(e,t){const n=this._getModuleGraphModule(e);if(n.depth===null||n.depth>t){n.depth=t;return true}return false}isAsync(e){const t=this._getModuleGraphModule(e);return t.async}setAsync(e){const t=this._getModuleGraphModule(e);t.async=true}getMeta(e){let t=this._metaMap.get(e);if(t===undefined){t=Object.create(null);this._metaMap.set(e,t)}return t}static getModuleGraphForModule(e,t,n){const i=c.get(t);if(i)return i(e);const s=r.deprecate(e=>{const n=a.get(e);if(!n)throw new Error(t+"There was no ModuleGraph assigned to the Module for backward-compat (Use the new API)");return n},t+": Use new ModuleGraph API",n);c.set(t,s);return s(e)}static setModuleGraphForModule(e,t){a.set(e,t)}}const a=new WeakMap;const c=new Map;e.exports=ModuleGraph;e.exports.ModuleGraphConnection=s},79900:e=>{"use strict";class ModuleGraphConnection{constructor(e,t,n,r,i=false,s=undefined){this.originModule=e;this.resolvedOriginModule=e;this.dependency=t;this.resolvedModule=n;this.module=n;this.weak=i;this.conditional=!!s;this._active=true;this.condition=s;this.explanations=undefined;if(r){this.explanations=new Set;this.explanations.add(r)}}addCondition(e){if(this.conditional){const t=this.condition;this.condition=((n,r)=>t(n,r)&&e(n,r))}else if(this._active){this.conditional=true;this.condition=e}}addExplanation(e){if(this.explanations===undefined){this.explanations=new Set}this.explanations.add(e)}get explanation(){if(this.explanations===undefined)return"";return Array.from(this.explanations).join(" ")}get active(){throw new Error("Use isActive instead")}isActive(e){if(!this.conditional)return this._active;return this.condition(this,e)}setActive(e){this.conditional=false;this._active=e}set active(e){throw new Error("Use setActive instead")}}e.exports=ModuleGraphConnection},21542:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const{UsageState:i}=n(76632);const s=n(58159);const o=n(18161);const a=e=>{let t="";let n=true;for(const r of e){if(n){n=false}else{t+=", "}t+=r}return t};const c=(e,t,n,r,o,a=new Set)=>{const u=n.otherExportsInfo;let l=0;const f=[];for(const e of n.orderedExports){if(!a.has(e)){a.add(e);f.push(e)}else{l++}}let p=false;if(!a.has(u)){a.add(u);p=true}else{l++}for(const n of f){const i=n.getTarget(r);e.add(s.toComment(`${t}export ${JSON.stringify(n.name).slice(1,-1)} [${n.getProvidedInfo()}] [${n.getUsedInfo()}] [${n.getRenameInfo()}]${i?` -> ${i.module.readableIdentifier(o)}${i.export?` .${i.export.map(e=>JSON.stringify(e).slice(1,-1)).join(".")}`:""}`:""}`)+"\n");if(n.exportsInfo){c(e,t+" ",n.exportsInfo,r,o,a)}}if(l){e.add(s.toComment(`${t}... (${l} already listed exports)`)+"\n")}if(p){const n=u.getTarget(r);if(n||u.provided!==false||u.getUsed(undefined)!==i.Unused){const r=f.length>0||l>0?"other exports":"exports";e.add(s.toComment(`${t}${r} [${u.getProvidedInfo()}] [${u.getUsedInfo()}]${n?` -> ${n.module.readableIdentifier(o)}`:""}`)+"\n")}}};class ModuleInfoHeaderPlugin{apply(e){e.hooks.compilation.tap("ModuleInfoHeaderPlugin",e=>{const t=o.getCompilationHooks(e);t.renderModulePackage.tap("ModuleInfoHeaderPlugin",(e,t,{chunk:n,chunkGraph:i,moduleGraph:o,runtimeTemplate:u})=>{const{requestShortener:l}=u;const f=new r;const p=t.readableIdentifier(l);const d=p.replace(/\*\//g,"*_/");const h="*".repeat(d.length);f.add("/*!****"+h+"****!*\\\n");f.add(" !*** "+d+" ***!\n");f.add(" \\****"+h+"****/\n");const m=t.buildMeta.exportsType;f.add(s.toComment(m?`${m} exports`:"unknown exports (runtime-defined)")+"\n");if(m){const e=o.getExportsInfo(t);c(f,"",e,o,l)}f.add(s.toComment(`runtime requirements: ${a(i.getModuleRuntimeRequirements(t,n.runtime))}`)+"\n");const g=o.getOptimizationBailout(t);if(g){for(const e of g){let t;if(typeof e==="function"){t=e(l)}else{t=e}f.add(s.toComment(`${t}`)+"\n")}}f.add(e);return f});t.chunkHash.tap("ModuleInfoHeaderPlugin",(e,t)=>{t.update("ModuleInfoHeaderPlugin");t.update("1")})})}}e.exports=ModuleInfoHeaderPlugin},54032:(e,t,n)=>{"use strict";const r=n(81627);const i={assert:"assert",buffer:"buffer",console:"console-browserify",constants:"constants-browserify",crypto:"crypto-browserify",domain:"domain-browser",events:"events",http:"stream-http",https:"https-browserify",os:"os-browserify/browser",path:"path-browserify",punycode:"punycode",process:"process/browser",querystring:"querystring-es3",stream:"stream-browserify",_stream_duplex:"readable-stream/duplex",_stream_passthrough:"readable-stream/passthrough",_stream_readable:"readable-stream/readable",_stream_transform:"readable-stream/transform",_stream_writable:"readable-stream/writable",string_decoder:"string_decoder",sys:"util",timers:"timers-browserify",tty:"tty-browserify",url:"url",util:"util",vm:"vm-browserify",zlib:"browserify-zlib"};class ModuleNotFoundError extends r{constructor(e,t,n){let r=`Module not found: ${t.toString()}`;const s=t.message.match(/Can't resolve '([^']+)'/);if(s){const e=s[1];const t=i[e];if(t){const n=t.indexOf("/");const i=n>0?t.slice(0,n):t;r+="\n\n"+"BREAKING CHANGE: "+"webpack < 5 used to include polyfills for node.js core modules by default.\n"+"This is no longer the case. Verify if you need this module and configure a polyfill for it.\n\n";if(e!==t){r+="If you want to include a polyfill, you need to:\n"+`\t- add an alias 'resolve.alias: { "${e}": "${t}" }'\n`+`\t- install '${i}'\n`}else{r+=`If you want to include a polyfill, you need to install '${i}'.\n`}r+="If you don't want to include a polyfill, you can use an empty module like this:\n"+`\tresolve.alias: { "${e}": false }`}}super(r);this.name="ModuleNotFoundError";this.details=t.details;this.module=e;this.error=t;this.loc=n;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleNotFoundError},14489:(e,t,n)=>{"use strict";const r=n(81627);const i=n(56202);const s=Buffer.from([0,97,115,109]);class ModuleParseError extends r{constructor(e,t,n,r){let i="Module parse failed: "+(t&&t.message);let o=undefined;if((Buffer.isBuffer(e)&&e.slice(0,4).equals(s)||typeof e==="string"&&/^\0asm/.test(e))&&!r.startsWith("webassembly")){i+="\nThe module seem to be a WebAssembly module, but module is not flagged as WebAssembly module for webpack.";i+="\nBREAKING CHANGE: Since webpack 5 WebAssembly is not enabled by default and flagged as experimental feature.";i+="\nYou need to enable one of the WebAssembly experiments via 'experiments.asyncWebAssembly: true' (based on async modules) or 'experiments.syncWebAssembly: true' (like webpack 4, deprecated).";i+="\nFor files that transpile to WebAssembly, make sure to set the module type in the 'module.rules' section of the config (e. g. 'type: \"webassembly/async\"')."}else if(!n){i+="\nYou may need an appropriate loader to handle this file type."}else if(n.length>=1){i+=`\nFile was processed with these loaders:${n.map(e=>`\n * ${e}`).join("")}`;i+="\nYou may need an additional loader to handle the result of these loaders."}else{i+="\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders"}if(t&&t.loc&&typeof t.loc==="object"&&typeof t.loc.line==="number"){var a=t.loc.line;if(Buffer.isBuffer(e)||/[\0\u0001\u0002\u0003\u0004\u0005\u0006\u0007]/.test(e)){i+="\n(Source code omitted for this binary file)"}else{const t=e.split(/\r?\n/);const n=Math.max(0,a-3);const r=t.slice(n,a-1);const s=t[a-1];const o=t.slice(a,a+2);i+=r.map(e=>`\n| ${e}`).join("")+`\n> ${s}`+o.map(e=>`\n| ${e}`).join("")}o={start:t.loc}}else if(t&&t.stack){i+="\n"+t.stack}super(i);this.name="ModuleParseError";this.loc=o;this.error=t;Error.captureStackTrace(this,this.constructor)}serialize(e){const{write:t}=e;t(this.error);super.serialize(e)}deserialize(e){const{read:t}=e;this.error=t();super.deserialize(e)}}i(ModuleParseError,"webpack/lib/ModuleParseError");e.exports=ModuleParseError},99869:e=>{"use strict";class ModuleProfile{constructor(){this.startTime=Date.now();this.factory=0;this.restoring=0;this.integration=0;this.building=0;this.storing=0;this.additionalFactories=0;this.additionalIntegration=0}markFactoryStart(){this.factoryStartTime=Date.now()}markFactoryEnd(){this.factoryEndTime=Date.now();this.factory=this.factoryEndTime-this.factoryStartTime}markRestoringStart(){this.restoringStartTime=Date.now()}markRestoringEnd(){this.restoringEndTime=Date.now();this.restoring=this.restoringEndTime-this.restoringStartTime}markIntegrationStart(){this.integrationStartTime=Date.now()}markIntegrationEnd(){this.integrationEndTime=Date.now();this.integration=this.integrationEndTime-this.integrationStartTime}markBuildingStart(){this.buildingStartTime=Date.now()}markBuildingEnd(){this.buildingEndTime=Date.now();this.building=this.buildingEndTime-this.buildingStartTime}markStoringStart(){this.storingStartTime=Date.now()}markStoringEnd(){this.storingEndTime=Date.now();this.storing=this.storingEndTime-this.storingStartTime}mergeInto(e){if(this.factory>e.additionalFactories)e.additionalFactories=this.factory;if(this.integration>e.additionalIntegration)e.additionalIntegration=this.integration}}e.exports=ModuleProfile},2210:(e,t,n)=>{"use strict";const r=n(81627);class ModuleRestoreError extends r{constructor(e,t){let n="Module restore failed: ";let r=undefined;if(t!==null&&typeof t==="object"){if(typeof t.stack==="string"&&t.stack){const e=t.stack;n+=e}else if(typeof t.message==="string"&&t.message){n+=t.message}else{n+=t}}else{n+=String(t)}super(n);this.name="ModuleRestoreError";this.details=r;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleRestoreError},31467:(e,t,n)=>{"use strict";const r=n(81627);class ModuleStoreError extends r{constructor(e,t){let n="Module storing failed: ";let r=undefined;if(t!==null&&typeof t==="object"){if(typeof t.stack==="string"&&t.stack){const e=t.stack;n+=e}else if(typeof t.message==="string"&&t.message){n+=t.message}else{n+=t}}else{n+=String(t)}super(n);this.name="ModuleStoreError";this.details=r;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleStoreError},68661:(e,t,n)=>{"use strict";const r=n(31669);const i=n(27503);const s=i(()=>n(18161));class ModuleTemplate{constructor(e,t){this._runtimeTemplate=e;this.type="javascript";this.hooks=Object.freeze({content:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderModuleContent.tap(e,(e,t,r)=>n(e,t,r,r.dependencyTemplates))},"ModuleTemplate.hooks.content is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderModuleContent instead)","DEP_MODULE_TEMPLATE_CONTENT")},module:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderModuleContent.tap(e,(e,t,r)=>n(e,t,r,r.dependencyTemplates))},"ModuleTemplate.hooks.module is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderModuleContent instead)","DEP_MODULE_TEMPLATE_MODULE")},render:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderModuleContainer.tap(e,(e,t,r)=>n(e,t,r,r.dependencyTemplates))},"ModuleTemplate.hooks.render is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderModuleContainer instead)","DEP_MODULE_TEMPLATE_RENDER")},package:{tap:r.deprecate((e,n)=>{s().getCompilationHooks(t).renderModulePackage.tap(e,(e,t,r)=>n(e,t,r,r.dependencyTemplates))},"ModuleTemplate.hooks.package is deprecated (use JavascriptModulesPlugin.getCompilationHooks().renderModulePackage instead)","DEP_MODULE_TEMPLATE_PACKAGE")},hash:{tap:r.deprecate((e,n)=>{t.hooks.fullHash.tap(e,n)},"ModuleTemplate.hooks.package is deprecated (use Compilation.hooks.fullHash instead)","DEP_MODULE_TEMPLATE_HASH")}})}}Object.defineProperty(ModuleTemplate.prototype,"runtimeTemplate",{get:r.deprecate(function(){return this._runtimeTemplate},"ModuleTemplate.runtimeTemplate is deprecated (use Compilation.runtimeTemplate instead)","DEP_WEBPACK_CHUNK_TEMPLATE_OUTPUT_OPTIONS")});e.exports=ModuleTemplate},8893:(e,t,n)=>{"use strict";const{cleanUp:r}=n(50717);const i=n(81627);const s=n(56202);class ModuleWarning extends i{constructor(e,{from:t=null}={}){let n="Module Warning";if(t){n+=` (from ${t}):\n`}else{n+=": "}if(e&&typeof e==="object"&&e.message){n+=e.message}else if(e){n+=String(e)}super(n);this.name="ModuleWarning";this.warning=e;this.details=e&&typeof e==="object"&&e.stack?r(e.stack,this.message):undefined;Error.captureStackTrace(this,this.constructor)}serialize(e){const{write:t}=e;t(this.warning);super.serialize(e)}deserialize(e){const{read:t}=e;this.warning=t();super.deserialize(e)}}s(ModuleWarning,"webpack/lib/ModuleWarning");e.exports=ModuleWarning},63433:(e,t,n)=>{"use strict";const r=n(62355);const{SyncHook:i,MultiHook:s}=n(92960);const o=n(27310);const a=n(34884);const c=n(10869);const u=0;const l=1;const f=2;e.exports=class MultiCompiler{constructor(e){if(!Array.isArray(e)){e=Object.keys(e).map(t=>{e[t].name=t;return e[t]})}this.hooks=Object.freeze({done:new i(["stats"]),invalid:new s(e.map(e=>e.hooks.invalid)),run:new s(e.map(e=>e.hooks.run)),watchClose:new i([]),watchRun:new s(e.map(e=>e.hooks.watchRun)),infrastructureLog:new s(e.map(e=>e.hooks.infrastructureLog))});this.compilers=e;this.dependencies=new WeakMap;this.running=false;const t=this.compilers.map(()=>null);let n=0;for(let e=0;e<this.compilers.length;e++){const r=this.compilers[e];const i=e;let s=false;r.hooks.done.tap("MultiCompiler",e=>{if(!s){s=true;n++}t[i]=e;if(n===this.compilers.length){this.hooks.done.call(new a(t))}});r.hooks.invalid.tap("MultiCompiler",()=>{if(s){s=false;n--}})}}get options(){return this.compilers.map(e=>e.options)}get outputPath(){let e=this.compilers[0].outputPath;for(const t of this.compilers){while(t.outputPath.indexOf(e)!==0&&/[/\\]/.test(e)){e=e.replace(/[/\\][^/\\]*$/,"")}}if(!e&&this.compilers[0].outputPath[0]==="/")return"/";return e}get inputFileSystem(){throw new Error("Cannot read inputFileSystem of a MultiCompiler")}get outputFileSystem(){throw new Error("Cannot read outputFileSystem of a MultiCompiler")}get watchFileSystem(){throw new Error("Cannot read watchFileSystem of a MultiCompiler")}get intermediateFileSystem(){throw new Error("Cannot read outputFileSystem of a MultiCompiler")}set inputFileSystem(e){for(const t of this.compilers){t.inputFileSystem=e}}set outputFileSystem(e){for(const t of this.compilers){t.outputFileSystem=e}}set watchFileSystem(e){for(const t of this.compilers){t.watchFileSystem=e}}set intermediateFileSystem(e){for(const t of this.compilers){t.intermediateFileSystem=e}}getInfrastructureLogger(e){return this.compilers[0].getInfrastructureLogger(e)}setDependencies(e,t){this.dependencies.set(e,t)}validateDependencies(e){const t=new Set;const n=[];const r=e=>{for(const n of t){if(n.target===e){return true}}return false};const i=(e,t)=>{return e.source.name.localeCompare(t.source.name)||e.target.name.localeCompare(t.target.name)};for(const e of this.compilers){const r=this.dependencies.get(e);if(r){for(const i of r){const r=this.compilers.find(e=>e.name===i);if(!r){n.push(i)}else{t.add({source:e,target:r})}}}}const s=n.map(e=>`Compiler dependency \`${e}\` not found.`);const o=this.compilers.filter(e=>!r(e));while(o.length>0){const e=o.pop();for(const n of t){if(n.source===e){t.delete(n);const e=n.target;if(!r(e)){o.push(e)}}}}if(t.size>0){const e=Array.from(t).sort(i).map(e=>`${e.source.name} -> ${e.target.name}`);e.unshift("Circular dependency found in compiler dependencies.");s.unshift(e.join("\n"))}if(s.length>0){const t=s.join("\n");e(new Error(t));return false}return true}runWithDependencies(e,t,n){const i=new Set;let s=e;const o=e=>i.has(e);const a=()=>{let e=[];let t=s;s=[];for(const n of t){const t=this.dependencies.get(n);const r=!t||t.every(o);if(r){e.push(n)}else{s.push(n)}}return e};const c=e=>{if(s.length===0)return e();r.map(a(),(e,n)=>{t(e,t=>{if(t)return n(t);i.add(e.name);c(n)})},e)};c(n)}watch(e,t){if(this.running){return t(new o)}const n=[];const r=this.compilers.map(()=>null);const i=this.compilers.map(()=>u);if(this.validateDependencies(t)){this.running=true;this.runWithDependencies(this.compilers,(s,o)=>{const c=this.compilers.indexOf(s);let p=true;let d=s.watch(Array.isArray(e)?e[c]:e,(e,n)=>{if(e)t(e);if(n){r[c]=n;i[c]=f;if(i.every(e=>e!==u)){const e=r.filter((e,t)=>{return i[t]===f});i.fill(l);const n=new a(e);t(null,n)}}if(p&&!e){p=false;o()}});n.push(d)},()=>{})}return new c(n,this)}run(e){if(this.running){return e(new o)}const t=(t,n)=>{this.running=false;if(e!==undefined){return e(t,n)}};const n=this.compilers.map(()=>null);if(this.validateDependencies(e)){this.running=true;this.runWithDependencies(this.compilers,(e,t)=>{const r=this.compilers.indexOf(e);e.run((e,i)=>{if(e){return t(e)}n[r]=i;t()})},e=>{if(e){return t(e)}t(null,new a(n))})}}purgeInputFileSystem(){for(const e of this.compilers){if(e.inputFileSystem&&e.inputFileSystem.purge){e.inputFileSystem.purge()}}}close(e){r.each(this.compilers,(e,t)=>{e.close(t)},e)}}},34884:(e,t,n)=>{"use strict";const r=n(49197);const i=(e,t)=>{const n=e.replace(/\n([^\n])/g,"\n"+t+"$1");return t+n};class MultiStats{constructor(e){this.stats=e;this.hash=e.map(e=>e.hash).join("")}hasErrors(){return this.stats.some(e=>e.hasErrors())}hasWarnings(){return this.stats.some(e=>e.hasWarnings())}_createChildOptions(e,t){if(!e){e={}}const{children:n,...r}=e;const i=this.stats.map((n,i)=>{const s=Array.isArray(e.children)?e.children[i]:e.children;return n.compilation.createStatsOptions({...r,...s&&typeof s==="object"?s:{preset:s}},t)});const s=i.every(e=>e.version);const o=i.every(e=>e.hash);if(s){for(const e of i){e.version=false}}return{version:s,hash:o,children:i}}toJson(e){e=this._createChildOptions(e,{forToString:false});const t={};t.children=this.stats.map((t,n)=>{return t.toJson(e.children[n])});if(e.version){t.version=n(61733).i8}if(e.hash){t.hash=this.hash}const i=this.stats.map((t,n)=>{const i=Array.isArray(e)?e[n]:e;const s=t.toJson(i);const o=t.compilation.name;const a=o&&r.makePathsRelative(e.context,o,t.compilation.compiler.root);s.name=a;return s});t.errors=[];t.warnings=[];for(const e of i){const n=t=>{return{...t,compilerPath:t.compilerPath?`${e.name}.${t.compilerPath}`:e.name}};if(e.errors){t.errors.push(...e.errors.map(n))}if(e.warnings){t.warnings.push(...e.warnings.map(n))}}return t}toString(e){e=this._createChildOptions(e,{forToString:true});const t=this.stats.map((t,n)=>{const s=t.toString(e.children[n]);const o=t.compilation.name;const a=o&&r.makePathsRelative(e.context,o,t.compilation.compiler.root).replace(/\|/g," ");if(!s)return s;const c=i(s," ");return a?`Child ${a}:\n${c}`:`Child\n${c}`});if(e.version){t.unshift(`Version: webpack ${n(61733).i8}`)}if(e.hash){t.unshift(`Hash: ${this.hash}`)}return t.filter(Boolean).join("\n")}}e.exports=MultiStats},10869:(e,t,n)=>{"use strict";const r=n(62355);class MultiWatching{constructor(e,t){this.watchings=e;this.compiler=t}invalidate(e){if(e){r.each(this.watchings,(e,t)=>e.invalidate(t),e)}else{for(const e of this.watchings){e.invalidate()}}}suspend(){for(const e of this.watchings){e.suspend()}}resume(){for(const e of this.watchings){e.resume()}}close(e){r.forEach(this.watchings,(e,t)=>{e.close(t)},t=>{this.compiler.hooks.watchClose.call();if(typeof e==="function"){this.compiler.running=false;e(t)}})}}e.exports=MultiWatching},66962:e=>{"use strict";class NoEmitOnErrorsPlugin{apply(e){e.hooks.shouldEmit.tap("NoEmitOnErrorsPlugin",e=>{if(e.getStats().hasErrors())return false});e.hooks.compilation.tap("NoEmitOnErrorsPlugin",e=>{e.hooks.shouldRecord.tap("NoEmitOnErrorsPlugin",()=>{if(e.getStats().hasErrors())return false})})}}e.exports=NoEmitOnErrorsPlugin},24500:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class NoModeWarning extends r{constructor(e){super();this.name="NoModeWarning";this.message="configuration\n"+"The 'mode' option has not been set, webpack will fallback to 'production' for this value. "+"Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\n"+"You can also set it to 'none' to disable any default behavior. "+"Learn more: https://webpack.js.org/configuration/mode/";Error.captureStackTrace(this,this.constructor)}}},32125:(e,t,n)=>{"use strict";const r=n(59455);const{evaluateToString:i,expressionIsUnsupported:s}=n(48472);const{relative:o}=n(95396);class NodeStuffPlugin{constructor(e){this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("NodeStuffPlugin",(n,{normalModuleFactory:a})=>{const c=(n,a)=>{if(a.node===false)return;let c=t;if(a.node){c={...c,...a.node}}const u=(e,t)=>{n.hooks.expression.for(e).tap("NodeStuffPlugin",i=>{const s=new r(JSON.stringify(t(n.state.module)),i.range,e);s.loc=i.loc;n.state.module.addPresentationalDependency(s);return true})};const l=(e,t)=>u(e,()=>t);const f=e.context;if(c.__filename){if(c.__filename==="mock"){l("__filename","/index.js")}else{u("__filename",t=>o(e.inputFileSystem,f,t.resource))}n.hooks.evaluateIdentifier.for("__filename").tap("NodeStuffPlugin",e=>{if(!n.state.module)return;const t=n.state.module.resource;const r=t.indexOf("?");return i(r<0?t:t.substr(0,r))(e)})}if(c.__dirname){if(c.__dirname==="mock"){l("__dirname","/")}else{u("__dirname",t=>o(e.inputFileSystem,f,t.context))}n.hooks.evaluateIdentifier.for("__dirname").tap("NodeStuffPlugin",e=>{if(!n.state.module)return;return i(n.state.module.context)(e)})}n.hooks.expression.for("require.extensions").tap("NodeStuffPlugin",s(n,"require.extensions is not supported by webpack. Use a loader instead."))};a.hooks.parser.for("javascript/auto").tap("NodeStuffPlugin",c);a.hooks.parser.for("javascript/dynamic").tap("NodeStuffPlugin",c)})}}e.exports=NodeStuffPlugin},53520:(e,t,n)=>{"use strict";const r=n(78688);const{getContext:i,runLoaders:s}=n(60425);const o=n(71191);const a=n(15235);const{HookMap:c,SyncHook:u,AsyncSeriesBailHook:l}=n(92960);const{CachedSource:f,OriginalSource:p,RawSource:d,SourceMapSource:h}=n(48135);const m=n(3080);const g=n(53453);const y=n(26509);const v=n(91613);const _=n(14489);const b=n(8893);const E=n(76150);const w=n(77090);const S=n(81627);const{getScheme:k}=n(45754);const{compareLocations:D,concatComparators:x,compareSelect:C,keepOriginalOrder:A}=n(68673);const T=n(35891);const{contextify:M}=n(49197);const O=n(56202);const F=(e,t,n)=>{if(t.startsWith("webpack://"))return t;return`webpack://${M(e,t,n)}`};const I=(e,t,n)=>{if(!Array.isArray(t.sources))return t;const{sourceRoot:r}=t;const i=!r?e=>e:r.endsWith("/")?e=>e.startsWith("/")?`${r.slice(0,-1)}${e}`:`${r}${e}`:e=>e.startsWith("/")?`${r}${e}`:`${r}/${e}`;const s=t.sources.map(t=>F(e,i(t),n));return{...t,file:"x",sourceRoot:undefined,sources:s}};const R=e=>{if(Buffer.isBuffer(e)){return e.toString("utf-8")}return e};const P=e=>{if(!Buffer.isBuffer(e)){return Buffer.from(e,"utf-8")}return e};class NonErrorEmittedError extends S{constructor(e){super();this.name="NonErrorEmittedError";this.message="(Emitted value instead of an instance of Error) "+e;Error.captureStackTrace(this,this.constructor)}}O(NonErrorEmittedError,"webpack/lib/NormalModule","NonErrorEmittedError");const N=new WeakMap;class NormalModule extends g{static getCompilationHooks(e){if(!(e instanceof m)){throw new TypeError("The 'compilation' argument must be an instance of Compilation")}let t=N.get(e);if(t===undefined){t={loader:new u(["loaderContext","module"]),beforeLoaders:new u(["loaders","module","loaderContext"]),readResourceForScheme:new c(()=>new l(["resource","module"]))};N.set(e,t)}return t}constructor({type:e,request:t,userRequest:n,rawRequest:r,loaders:s,resource:o,matchResource:a,parser:c,generator:u,resolveOptions:l}){super(e,i(o));this.request=t;this.userRequest=n;this.rawRequest=r;this.binary=/^(asset|webassembly)\b/.test(e);this.parser=c;this.generator=u;this.resource=o;this.matchResource=a;this.loaders=s;if(l!==undefined){this.resolveOptions=l}this.error=null;this._source=null;this._sourceSizes=undefined;this._lastSuccessfulBuildMeta={};this._forceBuild=true;this.useSourceMap=false}identifier(){return this.request}readableIdentifier(e){return e.shorten(this.userRequest)}libIdent(e){return M(e.context,this.userRequest,e.associatedObjectForCache)}nameForCondition(){const e=this.matchResource||this.resource;const t=e.indexOf("?");if(t>=0)return e.substr(0,t);return e}updateCacheModule(e){super.updateCacheModule(e);const t=e;this.binary=t.binary;this.request=t.request;this.userRequest=t.userRequest;this.rawRequest=t.rawRequest;this.parser=t.parser;this.generator=t.generator;this.resource=t.resource;this.matchResource=t.matchResource;this.loaders=t.loaders}createSourceForAsset(e,t,n,r,i){if(!r){return new d(n)}if(typeof r==="string"){return new p(n,F(e,r,i))}return new h(n,t,I(e,r,i))}createLoaderContext(e,t,n,i){const{requestShortener:s}=n.runtimeTemplate;const c=()=>{const e=this.getCurrentLoader(l);if(!e)return"(not in loader scope)";return s.shorten(e.loader)};const u=()=>{return{fileDependencies:{add:e=>l.addDependency(e)},contextDependencies:{add:e=>l.addContextDependency(e)},missingDependencies:{add:e=>l.addMissingDependency(e)}}};const l={version:2,getOptions:e=>{const t=this.getCurrentLoader(l);let{options:n}=t;if(typeof n==="string"){if(n.substr(0,1)==="{"&&n.substr(-1)==="}"){try{n=r(n)}catch(e){throw new Error(`Cannot parse string options: ${e.message}`)}}else{n=o.parse(n,"&","=",{maxKeys:0})}}if(n===null||n===undefined){n={}}if(e){let t="Loader";let r="options";let i;if(e.title&&(i=/^(.+) (.+)$/.exec(e.title))){[,t,r]=i}a(e,n,{name:t,baseDataPath:r})}return n},emitWarning:e=>{if(!(e instanceof Error)){e=new NonErrorEmittedError(e)}this.addWarning(new b(e,{from:c()}))},emitError:e=>{if(!(e instanceof Error)){e=new NonErrorEmittedError(e)}this.addError(new v(e,{from:c()}))},getLogger:e=>{const t=this.getCurrentLoader(l);return n.getLogger(()=>[t&&t.loader,e,this.identifier()].filter(Boolean).join("|"))},resolve(t,n,r){e.resolve({},t,n,u(),r)},getResolve(t){const n=t?e.withOptions(t):e;return(e,t,r)=>{if(r){n.resolve({},e,t,u(),r)}else{return new Promise((r,i)=>{n.resolve({},e,t,u(),(e,t)=>{if(e)i(e);else r(t)})})}}},emitFile:(e,r,i,s)=>{if(!this.buildInfo.assets){this.buildInfo.assets=Object.create(null);this.buildInfo.assetsInfo=new Map}this.buildInfo.assets[e]=this.createSourceForAsset(t.context,e,r,i,n.compiler.root);this.buildInfo.assetsInfo.set(e,s)},rootContext:t.context,webpack:true,sourceMap:!!this.useSourceMap,mode:t.mode||"production",_module:this,_compilation:n,_compiler:n.compiler,fs:i};NormalModule.getCompilationHooks(n).loader.call(l,this);if(t.loader){Object.assign(l,t.loader)}return l}getCurrentLoader(e,t=e.loaderIndex){if(this.loaders&&this.loaders.length&&t<this.loaders.length&&t>=0&&this.loaders[t]){return this.loaders[t]}return null}createSource(e,t,n,r){if(Buffer.isBuffer(t)){return new d(t)}if(!this.identifier){return new d(t)}const i=this.identifier();if(this.useSourceMap&&n){return new h(t,F(e,i,r),I(e,n,r))}return new p(t,F(e,i,r))}doBuild(e,t,n,r,i){const o=this.createLoaderContext(n,e,t,r);const a=Date.now();const c=(n,r)=>{if(n){if(!(n instanceof Error)){n=new NonErrorEmittedError(n)}const e=this.getCurrentLoader(o);const r=new y(n,{from:e&&t.runtimeTemplate.requestShortener.shorten(e.loader)});return i(r)}const s=r[0];const a=r.length>=1?r[1]:null;const c=r.length>=2?r[2]:null;if(!Buffer.isBuffer(s)&&typeof s!=="string"){const e=this.getCurrentLoader(o,0);const n=new Error(`Final loader (${e?t.runtimeTemplate.requestShortener.shorten(e.loader):"unknown"}) didn't return a Buffer or String`);const r=new y(n);return i(r)}this._source=this.createSource(e.context,this.binary?P(s):R(s),a,t.compiler.root);if(this._sourceSizes!==undefined)this._sourceSizes.clear();this._ast=typeof c==="object"&&c!==null&&c.webpackAST!==undefined?c.webpackAST:null;return i()};const u=NormalModule.getCompilationHooks(t);u.beforeLoaders.call(this.loaders,this,o);s({resource:this.resource,loaders:this.loaders,context:o,readResource:(e,t)=>{const n=k(e);if(n){u.readResourceForScheme.for(n).callAsync(e,this,(r,i)=>{if(r)return t(r);if(typeof i!=="string"&&!i){return t(new w(n,e))}return t(null,i)})}else{r.readFile(e,t)}}},(e,n)=>{if(!n){c(e||new Error("No result from loader-runner processing"),null)}for(const e of this.loaders){t.buildDependencies.add(e.loader)}this.buildInfo.fileDependencies=new Set(n.fileDependencies);this.buildInfo.contextDependencies=new Set(n.contextDependencies);this.buildInfo.missingDependencies=new Set(n.missingDependencies);if(!n.cacheable){this.buildInfo.cacheable=false;c(e,n.result);return}this.buildInfo.cacheable=true;t.fileSystemInfo.createSnapshot(a,n.fileDependencies,n.contextDependencies,n.missingDependencies,null,(t,r)=>{this.buildInfo.snapshot=r;c(e||t,n.result)})})}markModuleAsErrored(e){this.buildMeta={...this._lastSuccessfulBuildMeta};this.error=e;this.addError(e)}applyNoParseRule(e,t){if(typeof e==="string"){return t.startsWith(e)}if(typeof e==="function"){return e(t)}return e.test(t)}shouldPreventParsing(e,t){if(!e){return false}if(!Array.isArray(e)){return this.applyNoParseRule(e,t)}for(let n=0;n<e.length;n++){const r=e[n];if(this.applyNoParseRule(r,t)){return true}}return false}_initBuildHash(e){const t=T(e.outputOptions.hashFunction);if(this._source){t.update("source");this._source.updateHash(t)}t.update("meta");t.update(JSON.stringify(this.buildMeta));this.buildInfo.hash=t.digest("hex")}build(e,t,n,r,i){this._forceBuild=false;this._source=null;if(this._sourceSizes!==undefined)this._sourceSizes.clear();this._ast=null;this.error=null;this.clearWarningsAndErrors();this.clearDependenciesAndBlocks();this.buildMeta={};this.buildInfo={cacheable:false,parsed:true,fileDependencies:undefined,contextDependencies:undefined,missingDependencies:undefined,hash:undefined,assets:undefined,assetsInfo:undefined};return this.doBuild(e,t,n,r,n=>{if(n){this.markModuleAsErrored(n);this._initBuildHash(t);return i()}const r=e.module&&e.module.noParse;if(this.shouldPreventParsing(r,this.request)){this.buildInfo.parsed=false;this._initBuildHash(t);return i()}const s=n=>{const r=this._source.source();const s=this.loaders.map(n=>M(e.context,n.loader,t.compiler.root));const o=new _(r,n,s,this.type);this.markModuleAsErrored(o);this._initBuildHash(t);return i()};const o=e=>{this.dependencies.sort(x(C(e=>e.loc,D),A(this.dependencies)));this._lastSuccessfulBuildMeta=this.buildMeta;this._initBuildHash(t);return i()};let a;try{a=this.parser.parse(this._ast||this._source.source(),{current:this,module:this,compilation:t,options:e})}catch(e){s(e);return}o(a)})}getSourceTypes(){return this.generator.getTypes(this)}codeGeneration({dependencyTemplates:e,runtimeTemplate:t,moduleGraph:n,chunkGraph:r,runtime:i}){const s=new Set;if(!this.buildInfo.parsed){s.add(E.module);s.add(E.exports);s.add(E.thisAsExports)}const o=new Map;for(const a of this.generator.getTypes(this)){const c=this.error?new d("throw new Error("+JSON.stringify(this.error.message)+");"):this.generator.generate(this,{dependencyTemplates:e,runtimeTemplate:t,moduleGraph:n,chunkGraph:r,runtimeRequirements:s,runtime:i,type:a});if(c){o.set(a,new f(c))}}const a={sources:o,runtimeRequirements:s};return a}originalSource(){return this._source}invalidateBuild(){this._forceBuild=true}needBuild({fileSystemInfo:e},t){if(this._forceBuild)return t(null,true);if(this.error)return t(null,true);if(!this.buildInfo.cacheable)return t(null,true);if(!this.buildInfo.snapshot)return t(null,true);e.checkSnapshotValid(this.buildInfo.snapshot,(e,n)=>{t(e,!n)})}size(e){const t=this._sourceSizes===undefined?undefined:this._sourceSizes.get(e);if(t!==undefined){return t}const n=Math.max(1,this.generator.getSize(this,e));if(this._sourceSizes===undefined){this._sourceSizes=new Map}this._sourceSizes.set(e,n);return n}updateHash(e,t){e.update(this.buildInfo.hash);this.generator.updateHash(e,{module:this,...t});super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this._source);t(this._sourceSizes);t(this.error);t(this._lastSuccessfulBuildMeta);t(this._forceBuild);super.serialize(e)}static deserialize(e){const t=new NormalModule({type:"",resource:"",request:null,userRequest:null,rawRequest:null,loaders:null,matchResource:null,parser:null,generator:null,resolveOptions:null});t.deserialize(e);return t}deserialize(e){const{read:t}=e;this._source=t();this._sourceSizes=t();this.error=t();this._lastSuccessfulBuildMeta=t();this._forceBuild=t();super.deserialize(e)}}O(NormalModule,"webpack/lib/NormalModule");e.exports=NormalModule},43229:(e,t,n)=>{"use strict";const r=n(62355);const{AsyncSeriesBailHook:i,SyncWaterfallHook:s,SyncBailHook:o,SyncHook:a,HookMap:c}=n(92960);const u=n(53453);const l=n(40674);const f=n(53520);const p=n(22804);const d=n(94288);const h=n(1976);const m=n(92299);const g=n(73817);const y=n(19311);const v=n(83379);const{getScheme:_}=n(45754);const{cachedCleverMerge:b,cachedSetProperty:E}=n(90149);const{join:w}=n(95396);const{parseResource:S}=n(49197);const k={};const D=/^([^!]+)!=!/;const x=e=>{if(!e.options){return e.loader}if(typeof e.options==="string"){return e.loader+"?"+e.options}if(typeof e.options!=="object"){throw new Error("loader options must be string or object")}if(e.ident){return e.loader+"??"+e.ident}return e.loader+"?"+JSON.stringify(e.options)};const C=(e,t)=>{let n="";for(const t of e){n+=x(t)+"!"}return n+t};const A=e=>{const t=e.indexOf("?");if(t>=0){const n=e.substr(0,t);const r=e.substr(t+1);return{loader:n,options:r}}else{return{loader:e,options:undefined}}};const T=(e,t)=>{return n=>{if(--e===0){return t(n)}if(n&&e>0){e=NaN;return t(n)}}};const M=e=>`NormalModuleFactory.${e} is no longer a waterfall hook, but a bailing hook instead. `+"Do not return the passed object, but modify it instead. "+"Returning false will ignore the request and results in no module created.";const O=new WeakMap;const F=new g([new h("test","resource"),new h("mimetype"),new h("include","resource"),new h("exclude","resource",true),new h("resource"),new h("resourceQuery"),new h("resourceFragment"),new h("realResource"),new h("issuer"),new h("compiler"),new m,new d("type"),new d("sideEffects"),new d("parser"),new d("resolve"),new d("generator"),new y]);class NormalModuleFactory extends l{constructor({context:e,fs:t,resolverFactory:n,options:r,associatedObjectForCache:l}){super();this.hooks=Object.freeze({resolve:new i(["resolveData"]),resolveForScheme:new c(()=>new i(["resourceData","resolveData"])),factorize:new i(["resolveData"]),beforeResolve:new i(["resolveData"]),afterResolve:new i(["resolveData"]),createModule:new i(["createData","resolveData"]),module:new s(["module","createData","resolveData"]),createParser:new c(()=>new o(["parserOptions"])),parser:new c(()=>new a(["parser","parserOptions"])),createGenerator:new c(()=>new o(["generatorOptions"])),generator:new c(()=>new a(["generator","generatorOptions"]))});this.resolverFactory=n;this.ruleSet=F.compile([{rules:r.defaultRules},{rules:r.rules}]);this.unsafeCache=!!r.unsafeCache;this.cachePredicate=typeof r.unsafeCache==="function"?r.unsafeCache:()=>true;this.context=e||"";this.fs=t;this.parserCache=new Map;this.generatorCache=new Map;const d=S.bindCache(l);this.hooks.factorize.tapAsync({name:"NormalModuleFactory",stage:100},(e,t)=>{this.hooks.resolve.callAsync(e,(n,r)=>{if(n)return t(n);if(r===false)return t();if(r instanceof u)return t(null,r);if(typeof r==="object")throw new Error(M("resolve")+" Returning a Module object will result in this module used as result.");this.hooks.afterResolve.callAsync(e,(n,r)=>{if(n)return t(n);if(typeof r==="object")throw new Error(M("afterResolve"));if(r===false)return t();const i=e.createData;this.hooks.createModule.callAsync(i,e,(n,r)=>{if(!r){if(!e.request){return t(new Error("Empty dependency (no request)"))}r=new f(i)}r=this.hooks.module.call(r,i,e);return t(null,r)})})})});this.hooks.resolve.tapAsync({name:"NormalModuleFactory",stage:100},(e,t)=>{const{contextInfo:n,context:r,dependencies:i,request:s,resolveOptions:o,fileDependencies:a,missingDependencies:c,contextDependencies:u}=e;const l=this.getResolver("loader");let f=undefined;let h=s;const m=D.exec(s);if(m){let e=m[1];if(e.charCodeAt(0)===46){const t=e.charCodeAt(1);if(t===47||t===46&&e.charCodeAt(2)===47){e=w(this.fs,r,e)}}f={resource:e,...d(e)};h=s.substr(m[0].length)}const g=h.charCodeAt(0);const y=h.charCodeAt(1);const v=g===45&&y===33;const S=v||g===33;const x=g===33&&y===33;const M=h.slice(v||x?2:S?1:0).split(/!+/);const O=M.pop();const F=M.map(A);const I={fileDependencies:a,missingDependencies:c,contextDependencies:u};let R;const P=_(O);let N;const L=T(2,r=>{if(r)return t(r);try{for(const e of N){if(typeof e.options==="string"&&e.options[0]==="?"){const t=e.options.substr(1);if(t==="[[missing ident]]"){throw new Error("No ident is provided by referenced loader. "+"When using a function for Rule.use in config you need to "+"provide an 'ident' property for referenced loader options.")}e.options=this.ruleSet.references.get(t);if(e.options===undefined){throw new Error("Invalid ident is provided by referenced loader")}e.ident=t}}}catch(e){return t(e)}if(!R){return t(null,new p("/* (ignored) */",`ignored|${s}`,`${s} (ignored)`))}const i=(f!==undefined?`${f.resource}!=!`:"")+C(N,R.resource);const o=f||R;const a=this.ruleSet.exec({resource:o.path,realResource:R.path,resourceQuery:o.query,resourceFragment:o.fragment,mimetype:f?"":R.data.mimetype||"",descriptionData:f?undefined:R.data.descriptionFileData,issuer:n.issuer,compiler:n.compiler});const c={};const u=[];const d=[];const h=[];for(const e of a){if(e.type==="use"){if(!S&&!x){d.push(e.value)}}else if(e.type==="use-post"){if(!x){u.push(e.value)}}else if(e.type==="use-pre"){if(!v&&!x){h.push(e.value)}}else if(typeof e.value==="object"&&e.value!==null&&typeof c[e.type]==="object"&&c[e.type]!==null){c[e.type]=b(c[e.type],e.value)}else{c[e.type]=e.value}}let m,g,y;const _=T(3,n=>{if(n){return t(n)}const r=m;if(f===undefined){for(const e of N)r.push(e);for(const e of g)r.push(e)}else{for(const e of g)r.push(e);for(const e of N)r.push(e)}for(const e of y)r.push(e);const o=c.type;const a=c.resolve;Object.assign(e.createData,{request:C(r,R.resource),userRequest:i,rawRequest:s,loaders:r,resource:R.resource,matchResource:f?f.resource:undefined,resourceResolveData:R.data,settings:c,type:o,parser:this.getParser(o,c.parser),generator:this.getGenerator(o,c.generator),resolveOptions:a});t()});this.resolveRequestArray(n,this.context,u,l,I,(e,t)=>{m=t;_(e)});this.resolveRequestArray(n,this.context,d,l,I,(e,t)=>{g=t;_(e)});this.resolveRequestArray(n,this.context,h,l,I,(e,t)=>{y=t;_(e)})});this.resolveRequestArray(n,r,F,l,I,(e,t)=>{if(e)return L(e);N=t;L()});if(P){R={resource:O,data:{},path:undefined,query:undefined,fragment:undefined};this.hooks.resolveForScheme.for(P).callAsync(R,e,e=>{if(e)return L(e);L()})}else if(/^($|\?|#)/.test(O)){R={resource:O,data:{},...d(O)};L()}else{const e=this.getResolver("normal",i.length>0?E(o||k,"dependencyType",i[0].category):o);e.resolve(n,r,O,I,(e,t,n)=>{if(e)return L(e);if(t!==false){R={resource:t,data:n,...d(t)}}L()})}})}create(e,t){const n=e.dependencies;if(this.unsafeCache){const e=O.get(n[0]);if(e)return t(null,e)}const r=e.context||this.context;const i=e.resolveOptions||k;const s=n[0];const o=s.request;const a=e.contextInfo;const c=new v;const u=new v;const l=new v;const f={contextInfo:a,resolveOptions:i,context:r,request:o,dependencies:n,fileDependencies:c,missingDependencies:u,contextDependencies:l,createData:{},cacheable:true};this.hooks.beforeResolve.callAsync(f,(e,r)=>{if(e){return t(e,{fileDependencies:c,missingDependencies:u,contextDependencies:l})}if(r===false){return t(null,{fileDependencies:c,missingDependencies:u,contextDependencies:l})}if(typeof r==="object")throw new Error(M("beforeResolve"));this.hooks.factorize.callAsync(f,(e,r)=>{if(e){return t(e,{fileDependencies:c,missingDependencies:u,contextDependencies:l})}const i={module:r,fileDependencies:c,missingDependencies:u,contextDependencies:l};if(this.unsafeCache&&f.cacheable&&r&&this.cachePredicate(r)){for(const e of n){O.set(e,i)}}t(null,i)})})}resolveRequestArray(e,t,n,i,s,o){if(n.length===0)return o(null,n);r.map(n,(n,r)=>{i.resolve(e,t,n.loader,s,(o,a)=>{if(o&&/^[^/]*$/.test(n.loader)&&!/-loader$/.test(n.loader)){return i.resolve(e,t,n.loader+"-loader",s,e=>{if(!e){o.message=o.message+"\n"+"BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.\n"+` You need to specify '${n.loader}-loader' instead of '${n.loader}',\n`+" see https://webpack.js.org/migrate/3/#automatic-loader-module-name-extension-removed"}r(o)})}if(o)return r(o);const c=A(a);const u={loader:c.loader,options:n.options===undefined?c.options:n.options,ident:n.options===undefined?undefined:n.ident};return r(null,u)})},o)}getParser(e,t=k){let n=this.parserCache.get(e);if(n===undefined){n=new WeakMap;this.parserCache.set(e,n)}let r=n.get(t);if(r===undefined){r=this.createParser(e,t);n.set(t,r)}return r}createParser(e,t={}){const n=this.hooks.createParser.for(e).call(t);if(!n){throw new Error(`No parser registered for ${e}`)}this.hooks.parser.for(e).call(n,t);return n}getGenerator(e,t=k){let n=this.generatorCache.get(e);if(n===undefined){n=new WeakMap;this.generatorCache.set(e,n)}let r=n.get(t);if(r===undefined){r=this.createGenerator(e,t);n.set(t,r)}return r}createGenerator(e,t={}){const n=this.hooks.createGenerator.for(e).call(t);if(!n){throw new Error(`No generator registered for ${e}`)}this.hooks.generator.for(e).call(n,t);return n}getResolver(e,t){return this.resolverFactory.get(e,t)}}e.exports=NormalModuleFactory},92234:(e,t,n)=>{"use strict";const{join:r,dirname:i}=n(95396);class NormalModuleReplacementPlugin{constructor(e,t){this.resourceRegExp=e;this.newResource=t}apply(e){const t=this.resourceRegExp;const n=this.newResource;e.hooks.normalModuleFactory.tap("NormalModuleReplacementPlugin",s=>{s.hooks.beforeResolve.tap("NormalModuleReplacementPlugin",e=>{if(t.test(e.request)){if(typeof n==="function"){n(e)}else{e.request=n}}});s.hooks.afterResolve.tap("NormalModuleReplacementPlugin",s=>{const o=s.createData;if(t.test(o.resource)){if(typeof n==="function"){n(s)}else{const t=e.inputFileSystem;if(n.startsWith("/")||n.length>1&&n[1]===":"){o.resource=n}else{o.resource=r(t,i(t,o.resource),n)}}}})})}}e.exports=NormalModuleReplacementPlugin},82414:(e,t)=>{"use strict";t.STAGE_BASIC=-10;t.STAGE_DEFAULT=0;t.STAGE_ADVANCED=10},97614:e=>{"use strict";class OptionsApply{process(e,t){}}e.exports=OptionsApply},2172:(e,t,n)=>{"use strict";class Parser{parse(e,t){const r=n(75884);throw new r}}e.exports=Parser},13125:(e,t,n)=>{"use strict";const r=n(88281);class PrefetchPlugin{constructor(e,t){if(t){this.context=e;this.request=t}else{this.context=null;this.request=e}}apply(e){e.hooks.compilation.tap("PrefetchPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(r,t)});e.hooks.make.tapAsync("PrefetchPlugin",(t,n)=>{t.addModuleChain(this.context||e.context,new r(this.request),e=>{n(e)})})}}e.exports=PrefetchPlugin},52923:(e,t,n)=>{"use strict";const r=n(15235);const i=n(78760);const s=n(63076);const o=n(63433);const a=n(53520);const{contextify:c}=n(49197);const u=(e,t,n)=>{return e+t+n-Math.max(e,t,n)-Math.min(e,t,n)};const l=(e,t)=>{const n=[];const r=(r,i,...s)=>{if(e){if(r===0){n.length=0}const e=[i,...s];const o=e.map(e=>e.replace(/\d+\/\d+ /g,""));const a=Date.now();const c=Math.max(o.length,n.length);for(let e=c;e>=0;e--){const r=e<o.length?o[e]:undefined;const i=e<n.length?n[e]:undefined;if(i){if(r!==i.value){const s=a-i.time;if(i.value){let r=i.value;if(e>0){r=n[e-1].value+" > "+r}const o=`${" | ".repeat(e)}${s} ms ${r}`;const a=s;{if(a>1e4){t.error(o)}else if(a>1e3){t.warn(o)}else if(a>10){t.info(o)}else if(a>5){t.log(o)}else{t.debug(o)}}}if(r===undefined){n.length=e}else{i.value=r;i.time=a;n.length=e+1}}}else{n[e]={value:r,time:a}}}}t.status(`${Math.floor(r*100)}%`,i,...s);if(r===1||!i&&s.length===0)t.status()};return r};const f=new WeakMap;class ProgressPlugin{static getReporter(e){return f.get(e)}constructor(e){if(typeof e==="function"){e={handler:e}}e=e||{};r(i,e,{name:"Progress Plugin",baseDataPath:"options"});e={...ProgressPlugin.defaultOptions,...e};this.profile=e.profile;this.handler=e.handler;this.modulesCount=e.modulesCount;this.dependenciesCount=e.dependenciesCount;this.showEntries=e.entries;this.showModules=e.modules;this.showDependencies=e.dependencies;this.showActiveModules=e.activeModules;this.percentBy=e.percentBy}apply(e){const t=this.handler||l(this.profile,e.getInfrastructureLogger("webpack.Progress"));if(e instanceof o){this._applyOnMultiCompiler(e,t)}else if(e instanceof s){this._applyOnCompiler(e,t)}}_applyOnMultiCompiler(e,t){const n=e.compilers.map(()=>[0]);e.compilers.forEach((e,r)=>{new ProgressPlugin((e,i,...s)=>{n[r]=[e,i,...s];let o=0;for(const[e]of n)o+=e;t(o/n.length,`[${r}] ${i}`,...s)}).apply(e)})}_applyOnCompiler(e,t){const n=this.showEntries;const r=this.showModules;const i=this.showDependencies;const s=this.showActiveModules;let o="";let a="";let l=0;let p=0;let d=0;let h=0;let m=0;let g=1;let y=0;let v=0;let _=0;const b=new Set;let E=0;const w=()=>{if(E+500<Date.now())S()};const S=()=>{const f=[];const w=y/Math.max(l||this.modulesCount,h);const S=_/Math.max(d||this.dependenciesCount,g);const k=v/Math.max(p,m);let D;switch(this.percentBy){case"entries":D=S;break;case"dependencies":D=k;break;case"modules":D=w;break;default:D=u(w,S,k)}const x=.1+D*.55;if(a){f.push(`import loader ${c(e.context,a,e.root)}`)}else{const e=[];if(n){e.push(`${_}/${g} entries`)}if(i){e.push(`${v}/${m} dependencies`)}if(r){e.push(`${y}/${h} modules`)}if(s){e.push(`${b.size} active`)}if(e.length>0){f.push(e.join(" "))}if(s){f.push(o)}}t(x,"building",...f);E=Date.now()};const k=()=>{m++;if(m%100===0)w()};const D=()=>{v++;if(v%100===0)w()};const x=()=>{h++;if(h%100===0)w()};const C=e=>{if(s){const t=e.identifier();if(t){b.add(t);o=t;S()}}};const A=(e,t)=>{g++;if(g%10===0)w()};const T=e=>{y++;if(s){const t=e.identifier();if(t){b.delete(t);if(o===t){o="";for(const e of b){o=e}S();return}}}if(y%100===0)w()};const M=(e,t)=>{_++;S()};const O=e.getCache("ProgressPlugin").getItemCache("counts",null);let F;e.hooks.beforeCompile.tap("ProgressPlugin",()=>{if(!F){F=O.getPromise().then(e=>{if(e){l=l||e.modulesCount;p=p||e.dependenciesCount}},e=>{})}});e.hooks.afterCompile.tapPromise("ProgressPlugin",e=>{return F.then(()=>O.storePromise({modulesCount:h,dependenciesCount:m}))});e.hooks.compilation.tap("ProgressPlugin",e=>{if(e.compiler.isChild())return;l=h;d=g;p=m;h=m=g=0;y=v=_=0;e.factorizeQueue.hooks.added.tap("ProgressPlugin",k);e.factorizeQueue.hooks.result.tap("ProgressPlugin",D);e.addModuleQueue.hooks.added.tap("ProgressPlugin",x);e.processDependenciesQueue.hooks.result.tap("ProgressPlugin",T);e.hooks.buildModule.tap("ProgressPlugin",C);e.hooks.addEntry.tap("ProgressPlugin",A);e.hooks.failedEntry.tap("ProgressPlugin",M);e.hooks.succeedEntry.tap("ProgressPlugin",M);if(false){}const n={finishModules:"finish module graph",seal:"plugins",optimizeDependencies:"dependencies optimization",afterOptimizeDependencies:"after dependencies optimization",beforeChunks:"chunk graph",afterChunks:"after chunk graph",optimize:"optimizing",optimizeModules:"module optimization",afterOptimizeModules:"after module optimization",optimizeChunks:"chunk optimization",afterOptimizeChunks:"after chunk optimization",optimizeTree:"module and chunk tree optimization",afterOptimizeTree:"after module and chunk tree optimization",optimizeChunkModules:"chunk modules optimization",afterOptimizeChunkModules:"after chunk modules optimization",reviveModules:"module reviving",beforeModuleIds:"before module ids",moduleIds:"module ids",optimizeModuleIds:"module id optimization",afterOptimizeModuleIds:"module id optimization",reviveChunks:"chunk reviving",beforeChunkIds:"before chunk ids",chunkIds:"chunk ids",optimizeChunkIds:"chunk id optimization",afterOptimizeChunkIds:"after chunk id optimization",recordModules:"record modules",recordChunks:"record chunks",beforeModuleHash:"module hashing",beforeCodeGeneration:"code generation",beforeRuntimeRequirements:"runtime requirements",beforeHash:"hashing",afterHash:"after hashing",recordHash:"record hash",beforeModuleAssets:"module assets processing",beforeChunkAssets:"chunk assets processing",processAssets:"asset processing",afterProcessAssets:"after asset optimization",record:"recording",afterSeal:"after seal"};const r=Object.keys(n).length;Object.keys(n).forEach((i,s)=>{const o=n[i];const a=s/r*.25+.7;e.hooks[i].intercept({name:"ProgressPlugin",call(){t(a,"sealing",o)},done(){t(a,"sealing",o)},result(){t(a,"sealing",o)},error(){t(a,"sealing",o)},tap(n){f.set(e.compiler,(e,...r)=>{t(a,"sealing",o,n.name,...r)});t(a,"sealing",o,n.name)}})})});e.hooks.make.intercept({name:"ProgressPlugin",call(){t(.1,"building")},done(){t(.65,"building")}});const I=(n,r,i,s)=>{n.intercept({name:"ProgressPlugin",call(){t(r,i,s)},done(){t(r,i,s)},result(){t(r,i,s)},error(){t(r,i,s)},tap(n){f.set(e,(e,...o)=>{t(r,i,s,n.name,...o)});t(r,i,s,n.name)}})};e.cache.hooks.endIdle.intercept({name:"ProgressPlugin",call(){t(0,"")}});I(e.cache.hooks.endIdle,.01,"cache","end idle");e.hooks.initialize.intercept({name:"ProgressPlugin",call(){t(0,"")}});I(e.hooks.initialize,.01,"setup","initialize");I(e.hooks.beforeRun,.02,"setup","before run");I(e.hooks.run,.03,"setup","run");I(e.hooks.watchRun,.03,"setup","watch run");I(e.hooks.normalModuleFactory,.04,"setup","normal module factory");I(e.hooks.contextModuleFactory,.05,"setup","context module factory");I(e.hooks.beforeCompile,.06,"setup","before compile");I(e.hooks.compile,.07,"setup","compile");I(e.hooks.thisCompilation,.08,"setup","compilation");I(e.hooks.compilation,.09,"setup","compilation");I(e.hooks.finishMake,.69,"building","finish");I(e.hooks.emit,.95,"emitting","emit");I(e.hooks.afterEmit,.98,"emitting","after emit");I(e.hooks.done,.99,"done","plugins");e.hooks.done.intercept({name:"ProgressPlugin",done(){t(.99,"")}});I(e.cache.hooks.storeBuildDependencies,.99,"cache","store build dependencies");I(e.cache.hooks.shutdown,.99,"cache","shutdown");I(e.cache.hooks.beginIdle,.99,"cache","begin idle");I(e.hooks.watchClose,.99,"end","closing watch compilation");e.cache.hooks.beginIdle.intercept({name:"ProgressPlugin",done(){t(1,"")}});e.cache.hooks.shutdown.intercept({name:"ProgressPlugin",done(){t(1,"")}})}}ProgressPlugin.defaultOptions={profile:false,modulesCount:5e3,dependenciesCount:1e4,modules:true,dependencies:true,activeModules:false,entries:true};e.exports=ProgressPlugin},40313:(e,t,n)=>{"use strict";const r=n(66298);const i=n(1335);const{approve:s}=n(48472);class ProvidePlugin{constructor(e){this.definitions=e}apply(e){const t=this.definitions;e.hooks.compilation.tap("ProvidePlugin",(e,{normalModuleFactory:n})=>{e.dependencyTemplates.set(r,new r.Template);e.dependencyFactories.set(i,n);e.dependencyTemplates.set(i,new i.Template);const o=(e,n)=>{Object.keys(t).forEach(n=>{const r=[].concat(t[n]);const o=n.split(".");if(o.length>0){o.slice(1).forEach((t,n)=>{const r=o.slice(0,n+1).join(".");e.hooks.canRename.for(r).tap("ProvidePlugin",s)})}e.hooks.expression.for(n).tap("ProvidePlugin",t=>{const s=n.includes(".")?`__webpack_provided_${n.replace(/\./g,"_dot_")}`:n;const o=new i(r[0],s,r.slice(1),t.range);o.loc=t.loc;e.state.module.addDependency(o);return true})})};n.hooks.parser.for("javascript/auto").tap("ProvidePlugin",o);n.hooks.parser.for("javascript/dynamic").tap("ProvidePlugin",o);n.hooks.parser.for("javascript/esm").tap("ProvidePlugin",o)})}}e.exports=ProvidePlugin},22804:(e,t,n)=>{"use strict";const{OriginalSource:r,RawSource:i}=n(48135);const s=n(53453);const o=n(56202);const a=new Set(["javascript"]);class RawModule extends s{constructor(e,t,n){super("javascript/dynamic",null);this.sourceStr=e;this.identifierStr=t||this.sourceStr;this.readableIdentifierStr=n||this.identifierStr}getSourceTypes(){return a}identifier(){return this.identifierStr}size(e){return Math.max(1,this.sourceStr.length)}readableIdentifier(e){return e.shorten(this.readableIdentifierStr)}needBuild(e,t){return t(null,!this.buildMeta)}build(e,t,n,r,i){this.buildMeta={};this.buildInfo={cacheable:true};i()}codeGeneration(e){const t=new Map;if(this.useSourceMap){t.set("javascript",new r(this.sourceStr,this.identifier()))}else{t.set("javascript",new i(this.sourceStr))}return{sources:t,runtimeRequirements:null}}updateHash(e,t){e.update(this.sourceStr);super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this.sourceStr);t(this.identifierStr);t(this.readableIdentifierStr);super.serialize(e)}deserialize(e){const{read:t}=e;this.sourceStr=t();this.identifierStr=t();this.readableIdentifierStr=t();super.deserialize(e)}}o(RawModule,"webpack/lib/RawModule");e.exports=RawModule},43806:(e,t,n)=>{"use strict";const{compareNumbers:r}=n(68673);const i=n(49197);class RecordIdsPlugin{constructor(e){this.options=e||{}}apply(e){const t=this.options.portableIds;const n=i.makePathsRelative.bindContextCache(e.context,e.root);const s=e=>{if(t){return n(e.identifier())}return e.identifier()};e.hooks.compilation.tap("RecordIdsPlugin",e=>{e.hooks.recordModules.tap("RecordIdsPlugin",(t,n)=>{const i=e.chunkGraph;if(!n.modules)n.modules={};if(!n.modules.byIdentifier)n.modules.byIdentifier={};const o=new Set;for(const e of t){const t=i.getModuleId(e);if(typeof t!=="number")continue;const r=s(e);n.modules.byIdentifier[r]=t;o.add(t)}n.modules.usedIds=Array.from(o).sort(r)});e.hooks.reviveModules.tap("RecordIdsPlugin",(t,n)=>{if(!n.modules)return;if(n.modules.byIdentifier){const r=e.chunkGraph;const i=new Set;for(const e of t){const t=r.getModuleId(e);if(t!==null)continue;const o=s(e);const a=n.modules.byIdentifier[o];if(a===undefined)continue;if(i.has(a))continue;i.add(a);r.setModuleId(e,a)}}if(Array.isArray(n.modules.usedIds)){e.usedModuleIds=new Set(n.modules.usedIds)}});const t=e=>{const t=[];for(const n of e.groupsIterable){const r=n.chunks.indexOf(e);if(n.name){t.push(`${r} ${n.name}`)}else{for(const e of n.origins){if(e.module){if(e.request){t.push(`${r} ${s(e.module)} ${e.request}`)}else if(typeof e.loc==="string"){t.push(`${r} ${s(e.module)} ${e.loc}`)}else if(e.loc&&typeof e.loc==="object"&&"start"in e.loc){t.push(`${r} ${s(e.module)} ${JSON.stringify(e.loc.start)}`)}}}}}return t};e.hooks.recordChunks.tap("RecordIdsPlugin",(e,n)=>{if(!n.chunks)n.chunks={};if(!n.chunks.byName)n.chunks.byName={};if(!n.chunks.bySource)n.chunks.bySource={};const i=new Set;for(const r of e){if(typeof r.id!=="number")continue;const e=r.name;if(e)n.chunks.byName[e]=r.id;const s=t(r);for(const e of s){n.chunks.bySource[e]=r.id}i.add(r.id)}n.chunks.usedIds=Array.from(i).sort(r)});e.hooks.reviveChunks.tap("RecordIdsPlugin",(n,r)=>{if(!r.chunks)return;const i=new Set;if(r.chunks.byName){for(const e of n){if(e.id!==null)continue;if(!e.name)continue;const t=r.chunks.byName[e.name];if(t===undefined)continue;if(i.has(t))continue;i.add(t);e.id=t;e.ids=[t]}}if(r.chunks.bySource){for(const e of n){const n=t(e);for(const t of n){const n=r.chunks.bySource[t];if(n===undefined)continue;if(i.has(n))continue;i.add(n);e.id=n;e.ids=[n];break}}}if(Array.isArray(r.chunks.usedIds)){e.usedChunkIds=new Set(r.chunks.usedIds)}})})}}e.exports=RecordIdsPlugin},80910:(e,t,n)=>{"use strict";const{contextify:r}=n(49197);class RequestShortener{constructor(e,t){this.contextify=r.bindContextCache(e,t)}shorten(e){if(!e){return e}return this.contextify(e)}}e.exports=RequestShortener},10830:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66298);const{toConstantDependency:s}=n(48472);e.exports=class RequireJsStuffPlugin{apply(e){e.hooks.compilation.tap("RequireJsStuffPlugin",(e,{normalModuleFactory:t})=>{e.dependencyTemplates.set(i,new i.Template);const n=(e,t)=>{if(t.requireJs===undefined||!t.requireJs){return}e.hooks.call.for("require.config").tap("RequireJsStuffPlugin",s(e,"undefined"));e.hooks.call.for("requirejs.config").tap("RequireJsStuffPlugin",s(e,"undefined"));e.hooks.expression.for("require.version").tap("RequireJsStuffPlugin",s(e,JSON.stringify("0.0.0")));e.hooks.expression.for("requirejs.onError").tap("RequireJsStuffPlugin",s(e,r.uncaughtErrorHandler,[r.uncaughtErrorHandler]))};t.hooks.parser.for("javascript/auto").tap("RequireJsStuffPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("RequireJsStuffPlugin",n)})}}},1819:(e,t,n)=>{"use strict";const r=n(2357).ResolverFactory;const{HookMap:i,SyncHook:s,SyncWaterfallHook:o}=n(92960);const{cleverMerge:a,cachedCleverMerge:c,removeOperations:u}=n(90149);const l={};const f=e=>{const{dependencyType:t,byDependency:n,plugins:r,...i}=e;const s={...i,plugins:r&&r.filter(e=>e!=="...")};if(!s.fileSystem){throw new Error("fileSystem is missing in resolveOptions, but it's required for enhanced-resolve")}const o=s;if(!e.byDependency){return o}const c=t in n?`${t}`:"default";const l=n[c];if(!l)return o;return u(a(o,l))};e.exports=class ResolverFactory{constructor(){this.hooks=Object.freeze({resolveOptions:new i(()=>new o(["resolveOptions"])),resolver:new i(()=>new s(["resolver","resolveOptions","userResolveOptions"]))});this.cache=new Map}get(e,t=l){let n=this.cache.get(e);if(!n){n={direct:new WeakMap,stringified:new Map};this.cache.set(e,n)}const r=n.direct.get(t);if(r){return r}const i=JSON.stringify(t);const s=n.stringified.get(i);if(s){n.direct.set(t,s);return s}const o=this._create(e,t);n.direct.set(t,o);n.stringified.set(i,o);return o}_create(e,t){const n={...t};const i=f(this.hooks.resolveOptions.for(e).call(t));const s=r.createResolver(i);if(!s){throw new Error("No resolver created")}const o=new WeakMap;s.withOptions=(t=>{const r=o.get(t);if(r!==undefined)return r;const i=c(n,t);const s=this.get(e,i);o.set(t,s);return s});this.hooks.resolver.for(e).call(s,i,n);return s}}},76150:(e,t)=>{"use strict";t.require="__webpack_require__";t.requireScope="__webpack_require__.*";t.exports="__webpack_exports__";t.thisAsExports="top-level-this-exports";t.returnExportsFromRuntime="return-exports-from-runtime";t.module="module";t.moduleId="module.id";t.moduleLoaded="module.loaded";t.publicPath="__webpack_require__.p";t.entryModuleId="__webpack_require__.s";t.moduleCache="__webpack_require__.c";t.moduleFactories="__webpack_require__.m";t.moduleFactoriesAddOnly="__webpack_require__.m (add only)";t.ensureChunk="__webpack_require__.e";t.ensureChunkHandlers="__webpack_require__.f";t.ensureChunkIncludeEntries="__webpack_require__.f (include entries)";t.prefetchChunk="__webpack_require__.E";t.prefetchChunkHandlers="__webpack_require__.F";t.preloadChunk="__webpack_require__.G";t.preloadChunkHandlers="__webpack_require__.H";t.definePropertyGetters="__webpack_require__.d";t.makeNamespaceObject="__webpack_require__.r";t.createFakeNamespaceObject="__webpack_require__.t";t.compatGetDefaultExport="__webpack_require__.n";t.harmonyModuleDecorator="__webpack_require__.hmd";t.nodeModuleDecorator="__webpack_require__.nmd";t.getFullHash="__webpack_require__.h";t.wasmInstances="__webpack_require__.w";t.instantiateWasm="__webpack_require__.v";t.uncaughtErrorHandler="__webpack_require__.oe";t.scriptNonce="__webpack_require__.nc";t.loadScript="__webpack_require__.l";t.chunkName="__webpack_require__.cn";t.getChunkScriptFilename="__webpack_require__.u";t.getChunkUpdateScriptFilename="__webpack_require__.hu";t.startup="__webpack_require__.x";t.startupNoDefault="__webpack_require__.x (no default handler)";t.startupEntrypoint="__webpack_require__.X";t.externalInstallChunk="__webpack_require__.C";t.interceptModuleExecution="__webpack_require__.i";t.global="__webpack_require__.g";t.shareScopeMap="__webpack_require__.S";t.initializeSharing="__webpack_require__.I";t.getUpdateManifestFilename="__webpack_require__.hmrF";t.hmrDownloadManifest="__webpack_require__.hmrM";t.hmrDownloadUpdateHandlers="__webpack_require__.hmrC";t.hmrModuleData="__webpack_require__.hmrD";t.hmrInvalidateModuleHandlers="__webpack_require__.hmrI";t.amdDefine="__webpack_require__.amdD";t.amdOptions="__webpack_require__.amdO";t.system="__webpack_require__.System";t.hasOwnProperty="__webpack_require__.o";t.systemContext="__webpack_require__.y"},66804:(e,t,n)=>{"use strict";const r=n(48135).OriginalSource;const i=n(53453);const s=new Set(["runtime"]);class RuntimeModule extends i{constructor(e,t=0){super("runtime");this.name=e;this.stage=t;this.buildMeta={};this.buildInfo={};this.compilation=undefined;this.chunk=undefined;this._cachedGeneratedCode=undefined}attach(e,t){this.compilation=e;this.chunk=t}identifier(){return`webpack/runtime/${this.name}`}readableIdentifier(e){return`webpack/runtime/${this.name}`}needBuild(e,t){return t(null,false)}build(e,t,n,r,i){i()}updateHash(e,t){e.update(this.name);e.update(`${this.stage}`);try{e.update(this.generate())}catch(t){e.update(t.message)}super.updateHash(e,t)}getSourceTypes(){return s}codeGeneration(e){const t=new Map;const n=this.getGeneratedCode();if(n){t.set("runtime",new r(n,this.identifier()))}return{sources:t,runtimeRequirements:null}}size(e){if(this._cachedGeneratedCode){return this._cachedGeneratedCode.length}return 0}generate(){const e=n(75884);throw new e}getGeneratedCode(){if(this._cachedGeneratedCode){return this._cachedGeneratedCode}return this._cachedGeneratedCode=this.generate()}shouldIsolate(){return true}}e.exports=RuntimeModule},89818:(e,t,n)=>{"use strict";const r=n(76150);const i=n(35424);const s=n(18161);const o=n(90202);const a=n(16710);const c=n(3236);const u=n(58957);const l=n(59179);const f=n(9609);const p=n(36100);const d=n(13376);const h=n(37522);const m=n(67104);const g=n(14676);const y=n(48977);const v=n(76752);const _=n(54825);const b=n(14146);const E=[r.chunkName,r.compatGetDefaultExport,r.createFakeNamespaceObject,r.definePropertyGetters,r.ensureChunk,r.entryModuleId,r.getFullHash,r.global,r.makeNamespaceObject,r.moduleCache,r.moduleFactories,r.moduleFactoriesAddOnly,r.interceptModuleExecution,r.publicPath,r.scriptNonce,r.uncaughtErrorHandler,r.wasmInstances,r.instantiateWasm,r.shareScopeMap,r.initializeSharing,r.loadScript];const w={[r.moduleLoaded]:[r.module],[r.moduleId]:[r.module]};const S={[r.definePropertyGetters]:[r.hasOwnProperty],[r.compatGetDefaultExport]:[r.definePropertyGetters],[r.createFakeNamespaceObject]:[r.definePropertyGetters,r.makeNamespaceObject,r.require],[r.initializeSharing]:[r.shareScopeMap],[r.shareScopeMap]:[r.hasOwnProperty]};class RuntimePlugin{apply(e){e.hooks.compilation.tap("RuntimePlugin",e=>{e.dependencyTemplates.set(i,new i.Template);for(const t of E){e.hooks.runtimeRequirementInModule.for(t).tap("RuntimePlugin",(e,t)=>{t.add(r.requireScope)});e.hooks.runtimeRequirementInTree.for(t).tap("RuntimePlugin",(e,t)=>{t.add(r.requireScope)})}for(const t of Object.keys(S)){const n=S[t];e.hooks.runtimeRequirementInTree.for(t).tap("RuntimePlugin",(e,t)=>{for(const e of n)t.add(e)})}for(const t of Object.keys(w)){const n=w[t];e.hooks.runtimeRequirementInModule.for(t).tap("RuntimePlugin",(e,t)=>{for(const e of n)t.add(e)})}e.hooks.runtimeRequirementInTree.for(r.definePropertyGetters).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new u);return true});e.hooks.runtimeRequirementInTree.for(r.makeNamespaceObject).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new g);return true});e.hooks.runtimeRequirementInTree.for(r.createFakeNamespaceObject).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new c);return true});e.hooks.runtimeRequirementInTree.for(r.hasOwnProperty).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new h);return true});e.hooks.runtimeRequirementInTree.for(r.compatGetDefaultExport).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new o);return true});e.hooks.runtimeRequirementInTree.for(r.publicPath).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new y);return true});e.hooks.runtimeRequirementInTree.for(r.global).tap("RuntimePlugin",t=>{e.addRuntimeModule(t,new d);return true});e.hooks.runtimeRequirementInTree.for(r.systemContext).tap("RuntimePlugin",t=>{if(e.outputOptions.library.type==="system"){e.addRuntimeModule(t,new v)}return true});e.hooks.runtimeRequirementInTree.for(r.getChunkScriptFilename).tap("RuntimePlugin",(t,n)=>{if(/\[(full)?hash(:\d+)?\]/.test(e.outputOptions.chunkFilename))n.add(r.getFullHash);e.addRuntimeModule(t,new f("javascript","javascript",r.getChunkScriptFilename,t=>t.filenameTemplate||(t.isOnlyInitial()?e.outputOptions.filename:e.outputOptions.chunkFilename),false));return true});e.hooks.runtimeRequirementInTree.for(r.getChunkUpdateScriptFilename).tap("RuntimePlugin",(t,n)=>{if(/\[(full)?hash(:\d+)?\]/.test(e.outputOptions.hotUpdateChunkFilename))n.add(r.getFullHash);e.addRuntimeModule(t,new f("javascript","javascript update",r.getChunkUpdateScriptFilename,t=>e.outputOptions.hotUpdateChunkFilename,true));return true});e.hooks.runtimeRequirementInTree.for(r.getUpdateManifestFilename).tap("RuntimePlugin",(t,n)=>{if(/\[(full)?hash(:\d+)?\]/.test(e.outputOptions.hotUpdateMainFilename)){n.add(r.getFullHash)}e.addRuntimeModule(t,new p("update manifest",r.getUpdateManifestFilename,e.outputOptions.hotUpdateMainFilename));return true});e.hooks.runtimeRequirementInTree.for(r.ensureChunk).tap("RuntimePlugin",(t,n)=>{const i=t.hasAsyncChunks();if(i){n.add(r.ensureChunkHandlers)}e.addRuntimeModule(t,new l(n));return true});e.hooks.runtimeRequirementInTree.for(r.ensureChunkIncludeEntries).tap("RuntimePlugin",(e,t)=>{t.add(r.ensureChunkHandlers)});e.hooks.runtimeRequirementInTree.for(r.shareScopeMap).tap("RuntimePlugin",(t,n)=>{e.addRuntimeModule(t,new _);return true});e.hooks.runtimeRequirementInTree.for(r.loadScript).tap("RuntimePlugin",(t,n)=>{e.addRuntimeModule(t,new m);return true});e.hooks.additionalTreeRuntimeRequirements.tap("RuntimePlugin",(t,n)=>{const{mainTemplate:r}=e;if(r.hooks.bootstrap.isUsed()||r.hooks.localVars.isUsed()||r.hooks.requireEnsure.isUsed()||r.hooks.requireExtensions.isUsed()){e.addRuntimeModule(t,new a)}});s.getCompilationHooks(e).chunkHash.tap("RuntimePlugin",(e,t,{chunkGraph:n})=>{const r=new b;for(const t of n.getChunkRuntimeModulesIterable(e)){r.add(n.getModuleHash(t,e.runtime))}r.updateHash(t)})})}}e.exports=RuntimePlugin},37130:(e,t,n)=>{"use strict";const r=n(63272);const i=n(76150);const s=n(58159);const{equals:o}=n(73910);const a=n(68038);const c=(e,t)=>{return`Module ${e.identifier()} has no id assigned.\nThis should not happen.\nIt's in these chunks: ${Array.from(t.getModuleChunksIterable(e),e=>e.name||e.id||e.debugId).join(", ")||"none"} (If module is in no chunk this indicates a bug in some chunk/module optimization logic)\nModule has these incoming connections: ${Array.from(t.moduleGraph.getIncomingConnections(e),e=>`\n - ${e.originModule&&e.originModule.identifier()} ${e.dependency&&e.dependency.type} ${e.explanations&&Array.from(e.explanations).join(", ")||""}`).join("")}`};class RuntimeTemplate{constructor(e,t){this.outputOptions=e||{};this.requestShortener=t}isIIFE(){return this.outputOptions.iife}supportsConst(){return this.outputOptions.ecmaVersion>=6}supportsArrowFunction(){return this.outputOptions.ecmaVersion>=6}supportsForOf(){return this.outputOptions.ecmaVersion>=6}returningFunction(e,t=""){return this.supportsArrowFunction()?`(${t}) => ${e}`:`function(${t}) { return ${e}; }`}basicFunction(e,t){return this.supportsArrowFunction()?`(${e}) => {\n${s.indent(t)}\n}`:`function(${e}) {\n${s.indent(t)}\n}`}iife(e,t){return`(${this.basicFunction(e,t)})()`}forEach(e,t,n){return this.supportsForOf()?`for(const ${e} of ${t}) {\n${s.indent(n)}\n}`:`${t}.forEach(function(${e}) {\n${s.indent(n)}\n});`}comment({request:e,chunkName:t,chunkReason:n,message:r,exportName:i}){let o;if(this.outputOptions.pathinfo){o=[r,e,t,n].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}else{o=[r,t,n].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}if(!o)return"";if(this.outputOptions.pathinfo){return s.toComment(o)+" "}else{return s.toNormalComment(o)+" "}}throwMissingModuleErrorBlock({request:e}){const t=`Cannot find module '${e}'`;return`var e = new Error(${JSON.stringify(t)}); e.code = 'MODULE_NOT_FOUND'; throw e;`}throwMissingModuleErrorFunction({request:e}){return`function webpackMissingModule() { ${this.throwMissingModuleErrorBlock({request:e})} }`}missingModule({request:e}){return`Object(${this.throwMissingModuleErrorFunction({request:e})}())`}missingModuleStatement({request:e}){return`${this.missingModule({request:e})};\n`}missingModulePromise({request:e}){return`Promise.resolve().then(${this.throwMissingModuleErrorFunction({request:e})})`}weakError({module:e,chunkGraph:t,request:n,idExpr:r,type:i}){const o=t.getModuleId(e);const a=o===null?JSON.stringify("Module is not available (weak dependency)"):r?`"Module '" + ${r} + "' is not available (weak dependency)"`:JSON.stringify(`Module '${o}' is not available (weak dependency)`);const c=n?s.toNormalComment(n)+" ":"";const u=`var e = new Error(${a}); `+c+"e.code = 'MODULE_NOT_FOUND'; throw e;";switch(i){case"statements":return u;case"promise":return`Promise.resolve().then(${this.basicFunction("",u)})`;case"expression":return this.iife("",u)}}moduleId({module:e,chunkGraph:t,request:n,weak:r}){if(!e){return this.missingModule({request:n})}const i=t.getModuleId(e);if(i===null){if(r){return"null /* weak dependency, without id */"}throw new Error(`RuntimeTemplate.moduleId(): ${c(e,t)}`)}return`${this.comment({request:n})}${JSON.stringify(i)}`}moduleRaw({module:e,chunkGraph:t,request:n,weak:r,runtimeRequirements:s}){if(!e){return this.missingModule({request:n})}const o=t.getModuleId(e);if(o===null){if(r){return this.weakError({module:e,chunkGraph:t,request:n,type:"expression"})}throw new Error(`RuntimeTemplate.moduleId(): ${c(e,t)}`)}s.add(i.require);return`__webpack_require__(${this.moduleId({module:e,chunkGraph:t,request:n,weak:r})})`}moduleExports({module:e,chunkGraph:t,request:n,weak:r,runtimeRequirements:i}){return this.moduleRaw({module:e,chunkGraph:t,request:n,weak:r,runtimeRequirements:i})}moduleNamespace({module:e,chunkGraph:t,request:n,strict:r,weak:s,runtimeRequirements:o}){if(!e){return this.missingModule({request:n})}if(t.getModuleId(e)===null){if(s){return this.weakError({module:e,chunkGraph:t,request:n,type:"expression"})}throw new Error(`RuntimeTemplate.moduleNamespace(): ${c(e,t)}`)}const a=this.moduleId({module:e,chunkGraph:t,request:n,weak:s});const u=e.getExportsType(t.moduleGraph,r);switch(u){case"namespace":return this.moduleRaw({module:e,chunkGraph:t,request:n,weak:s,runtimeRequirements:o});case"default-with-named":o.add(i.createFakeNamespaceObject);return`${i.createFakeNamespaceObject}(${a}, 3)`;case"default-only":o.add(i.createFakeNamespaceObject);return`${i.createFakeNamespaceObject}(${a}, 1)`;case"dynamic":o.add(i.createFakeNamespaceObject);return`${i.createFakeNamespaceObject}(${a}, 7)`}}moduleNamespacePromise({chunkGraph:e,block:t,module:n,request:r,message:s,strict:o,weak:a,runtimeRequirements:u}){if(!n){return this.missingModulePromise({request:r})}const l=e.getModuleId(n);if(l===null){if(a){return this.weakError({module:n,chunkGraph:e,request:r,type:"promise"})}throw new Error(`RuntimeTemplate.moduleNamespacePromise(): ${c(n,e)}`)}const f=this.blockPromise({chunkGraph:e,block:t,message:s,runtimeRequirements:u});let p;let d=JSON.stringify(e.getModuleId(n));const h=this.comment({request:r});let m="";if(a){if(d.length>8){m+=`var id = ${d}; `;d="id"}u.add(i.moduleFactories);m+=`if(!${i.moduleFactories}[${d}]) { ${this.weakError({module:n,chunkGraph:e,request:r,idExpr:d,type:"statements"})} } `}const g=this.moduleId({module:n,chunkGraph:e,request:r,weak:a});const y=n.getExportsType(e.moduleGraph,o);let v=0;switch(y){case"namespace":if(m){const t=this.moduleRaw({module:n,chunkGraph:e,request:r,weak:a,runtimeRequirements:u});p=`.then(${this.basicFunction("",`${m}return ${t};`)})`}else{u.add(i.require);p=`.then(__webpack_require__.bind(__webpack_require__, ${h}${d}))`}break;case"dynamic":v|=4;case"default-with-named":v|=2;case"default-only":u.add(i.createFakeNamespaceObject);if(e.moduleGraph.isAsync(n)){if(m){const t=this.moduleRaw({module:n,chunkGraph:e,request:r,weak:a,runtimeRequirements:u});p=`.then(${this.basicFunction("",`${m}return ${t};`)})`}else{u.add(i.require);p=`.then(__webpack_require__.bind(__webpack_require__, ${h}${d}))`}p+=`.then(${this.returningFunction(`${i.createFakeNamespaceObject}(m, ${v})`,"m")})`}else{v|=1;if(m){const e=`${i.createFakeNamespaceObject}(${g}, ${v})`;p=`.then(${this.basicFunction("",`${m}return ${e};`)})`}else{p=`.then(${i.createFakeNamespaceObject}.bind(__webpack_require__, ${h}${d}, ${v}))`}}break}return`${f||"Promise.resolve()"}${p}`}importStatement({update:e,module:t,chunkGraph:n,request:r,importVar:s,originModule:o,weak:a,runtimeRequirements:u}){if(!t){return[this.missingModuleStatement({request:r}),""]}if(n.getModuleId(t)===null){if(a){return[this.weakError({module:t,chunkGraph:n,request:r,type:"statements"}),""]}throw new Error(`RuntimeTemplate.importStatement(): ${c(t,n)}`)}const l=this.moduleId({module:t,chunkGraph:n,request:r,weak:a});const f=e?"":"var ";const p=t.getExportsType(n.moduleGraph,o.buildMeta.strictHarmonyModule);u.add(i.require);const d=`/* harmony import */ ${f}${s} = __webpack_require__(${l});\n`;if(p==="dynamic"){u.add(i.compatGetDefaultExport);return[d,`/* harmony import */ ${f}${s}_default = /*#__PURE__*/${i.compatGetDefaultExport}(${s});\n`]}return[d,""]}exportFromImport({moduleGraph:e,module:t,request:n,exportName:c,originModule:u,asiSafe:l,isCall:f,callContext:p,defaultInterop:d,importVar:h,initFragments:m,runtime:g,runtimeRequirements:y}){if(!t){return this.missingModule({request:n})}if(!Array.isArray(c)){c=c?[c]:[]}const v=t.getExportsType(e,u.buildMeta.strictHarmonyModule);if(d){if(c.length>0&&c[0]==="default"){switch(v){case"dynamic":if(f){return`${h}_default()${a(c,1)}`}else if(l){return`(${h}_default()${a(c,1)})`}else{return`${h}_default.a${a(c,1)}`}case"default-only":case"default-with-named":c=c.slice(1);break}}else if(c.length>0){if(v==="default-only"){return"/* non-default import from non-esm module */undefined"+a(c,1)}}else if(v==="default-only"||v==="default-with-named"){y.add(i.createFakeNamespaceObject);m.push(new r(`var ${h}_namespace_cache;\n`,r.STAGE_CONSTANTS,-1,`${h}_namespace_cache`));return`/*#__PURE__*/ ${l?"":"Object"}(${h}_namespace_cache || (${h}_namespace_cache = ${i.createFakeNamespaceObject}(${h}${v==="default-only"?"":", 2"})))`}}if(c.length>0){const n=e.getExportsInfo(t);const r=n.getUsedName(c,g);if(!r){const e=s.toNormalComment(`unused export ${a(c)}`);return`${e} undefined`}const i=o(r,c)?"":s.toNormalComment(a(c))+" ";const u=`${h}${i}${a(r)}`;if(f&&p===false){if(l){return`(0,${u})`}else{return`Object(${u})`}}return u}else{return h}}blockPromise({block:e,message:t,chunkGraph:n,runtimeRequirements:r}){if(!e){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const s=n.getBlockChunkGroup(e);if(!s||s.chunks.length===0){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const o=s.chunks.filter(e=>!e.hasRuntime()&&e.id!==null);const a=this.comment({message:t,chunkName:e.chunkName});if(o.length===1){const e=JSON.stringify(o[0].id);r.add(i.ensureChunk);return`${i.ensureChunk}(${a}${e})`}else if(o.length>0){r.add(i.ensureChunk);const e=e=>`${i.ensureChunk}(${JSON.stringify(e.id)})`;return`Promise.all(${a.trim()}[${o.map(e).join(", ")}])`}else{return`Promise.resolve(${a.trim()})`}}asyncModuleFactory({block:e,chunkGraph:t,runtimeRequirements:n,request:r}){const i=e.dependencies[0];const s=t.moduleGraph.getModule(i);const o=this.blockPromise({block:e,message:"",chunkGraph:t,runtimeRequirements:n});const a=this.returningFunction(this.moduleRaw({module:s,chunkGraph:t,request:r,runtimeRequirements:n}));return this.returningFunction(o.startsWith("Promise.resolve(")?`${a}`:`${o}.then(${this.returningFunction(a)})`)}syncModuleFactory({dependency:e,chunkGraph:t,runtimeRequirements:n,request:r}){const i=t.moduleGraph.getModule(e);const s=this.returningFunction(this.moduleRaw({module:i,chunkGraph:t,request:r,runtimeRequirements:n}));return this.returningFunction(s)}defineEsModuleFlagStatement({exportsArgument:e,runtimeRequirements:t}){t.add(i.makeNamespaceObject);t.add(i.exports);return`${i.makeNamespaceObject}(${e});\n`}}e.exports=RuntimeTemplate},31141:e=>{"use strict";class SelfModuleFactory{constructor(e){this.moduleGraph=e}create(e,t){const n=this.moduleGraph.getParentModule(e.dependencies[0]);t(null,{module:n})}}e.exports=SelfModuleFactory},9192:(e,t)=>{"use strict";t.formatSize=(e=>{if(typeof e!=="number"||Number.isNaN(e)===true){return"unknown size"}if(e<=0){return"0 bytes"}const t=["bytes","KiB","MiB","GiB"];const n=Math.floor(Math.log(e)/Math.log(1024));return`${+(e/Math.pow(1024,n)).toPrecision(3)} ${t[n]}`})},26867:e=>{"use strict";class SourceMapDevToolModuleOptionsPlugin{constructor(e){this.options=e}apply(e){const t=this.options;if(t.module!==false){e.hooks.buildModule.tap("SourceMapDevToolModuleOptionsPlugin",e=>{e.useSourceMap=true})}}}e.exports=SourceMapDevToolModuleOptionsPlugin},20000:(e,t,n)=>{"use strict";const r=n(62355);const i=n(15235);const{ConcatSource:s,RawSource:o}=n(48135);const a=n(3080);const c=n(70354);const u=n(52923);const l=n(26867);const f=n(35891);const{relative:p,dirname:d}=n(95396);const{absolutify:h}=n(49197);const m=n(82037);const g=e=>{return e.replace(/[-[\]\\/{}()*+?.^$|]/g,"\\$&")};const y=(e,t,n,r,i,s)=>{let o;let a;if(t.sourceAndMap){const e=t.sourceAndMap(r);a=e.map;o=e.source}else{a=t.map(r);o=t.source()}if(!a||typeof o!=="string")return;const c=i.options.context;const u=i.compiler.root;const l=h.bindContextCache(c,u);const f=a.sources.map(e=>{if(!e.startsWith("webpack://"))return e;e=l(e.slice(10));const t=i.findModule(e);return t||e});return{file:e,asset:t,source:o,assetInfo:n,sourceMap:a,modules:f,cacheItem:s}};class SourceMapDevToolPlugin{constructor(e={}){i(m,e,{name:"SourceMap DevTool Plugin",baseDataPath:"options"});this.sourceMapFilename=e.filename;this.sourceMappingURLComment=e.append===false?false:e.append||"\n//# source"+"MappingURL=[url]";this.moduleFilenameTemplate=e.moduleFilenameTemplate||"webpack://[namespace]/[resourcePath]";this.fallbackModuleFilenameTemplate=e.fallbackModuleFilenameTemplate||"webpack://[namespace]/[resourcePath]?[hash]";this.namespace=e.namespace||"";this.options=e}apply(e){const t=e.outputFileSystem;const n=this.sourceMapFilename;const i=this.sourceMappingURLComment;const h=this.moduleFilenameTemplate;const m=this.namespace;const v=this.fallbackModuleFilenameTemplate;const _=e.requestShortener;const b=this.options;b.test=b.test||/\.(m?js|css)($|\?)/i;const E=c.matchObject.bind(undefined,b);e.hooks.compilation.tap("SourceMapDevToolPlugin",e=>{new l(b).apply(e);e.hooks.processAssets.tapAsync({name:"SourceMapDevToolPlugin",stage:a.PROCESS_ASSETS_STAGE_DEV_TOOLING},(a,l)=>{const w=e.chunkGraph;const S=e.getCache("SourceMapDevToolPlugin");const k=new Map;const D=u.getReporter(e.compiler)||(()=>{});const x=new Map;for(const t of e.chunks){for(const e of t.files){x.set(e,t)}for(const e of t.auxiliaryFiles){x.set(e,t)}}const C=[];for(const e of Object.keys(a)){if(E(e)){C.push(e)}}D(0);const A=[];let T=0;r.each(C,(t,n)=>{const r=e.getAsset(t);if(r.info.related&&r.info.related.sourceMap){T++;return n()}const i=S.getItemCache(t,S.getLazyHashedEtag(r.source));i.get((s,o)=>{if(s){return n(s)}if(o){const{assets:r,assetsInfo:i}=o;for(const n of Object.keys(r)){if(n===t){e.updateAsset(n,r[n],i[n])}else{e.emitAsset(n,r[n],i[n])}if(n!==t){const e=x.get(t);if(e!==undefined)e.auxiliaryFiles.add(n)}}D(.5*++T/C.length,t,"restored cached SourceMap");return n()}D(.5*T/C.length,t,"generate SourceMap");const a=y(t,r.source,r.info,b,e,i);if(a){const e=a.modules;for(let t=0;t<e.length;t++){const n=e[t];if(!k.get(n)){k.set(n,c.createFilename(n,{moduleFilenameTemplate:h,namespace:m},{requestShortener:_,chunkGraph:w}))}}A.push(a)}D(.5*++T/C.length,t,"generated SourceMap");n()})},a=>{if(a){return l(a)}D(.5,"resolve sources");const u=new Set(k.values());const h=new Set;const y=Array.from(k.keys()).sort((e,t)=>{const n=typeof e==="string"?e:e.identifier();const r=typeof t==="string"?t:t.identifier();return n.length-r.length});for(let e=0;e<y.length;e++){const t=y[e];let n=k.get(t);let r=h.has(n);if(!r){h.add(n);continue}n=c.createFilename(t,{moduleFilenameTemplate:v,namespace:m},{requestShortener:_,chunkGraph:w});r=u.has(n);if(!r){k.set(t,n);u.add(n);continue}while(r){n+="*";r=u.has(n)}k.set(t,n);u.add(n)}let E=0;r.each(A,(r,a)=>{const c=Object.create(null);const u=Object.create(null);const l=r.file;const h=x.get(l);const m=r.sourceMap;const y=r.source;const v=r.modules;D(.5+.5*E/A.length,l,"attach SourceMap");const _=v.map(e=>k.get(e));m.sources=_;if(b.noSources){m.sourcesContent=undefined}m.sourceRoot=b.sourceRoot||"";m.file=l;const w=n&&/\[contenthash(:\w+)?\]/.test(n);if(w&&r.assetInfo.contenthash){const e=r.assetInfo.contenthash;let t;if(Array.isArray(e)){t=e.map(g).join("|")}else{t=g(e)}m.file=m.file.replace(new RegExp(t,"g"),e=>"x".repeat(e.length))}let S=i;if(S!==false&&/\.css($|\?)/i.test(l)){S=S.replace(/^\n\/\/(.*)$/,"\n/*$1*/")}const C=JSON.stringify(m);if(n){let r=l;const i=w&&f("md4").update(C).digest("hex");const a={chunk:h,filename:b.fileContext?p(t,`/${b.fileContext}`,`/${r}`):r,contentHash:i};const{path:m,info:g}=e.getPathWithInfo(n,a);const v=b.publicPath?b.publicPath+m:p(t,d(t,`/${l}`),`/${m}`);let _=new o(y);if(S!==false){_=new s(_,e.getPath(S,Object.assign({url:v},a)))}const E={related:{sourceMap:m}};c[l]=_;u[l]=E;e.updateAsset(l,_,E);const k=new o(C);const D={...g,development:true};c[m]=k;u[m]=D;e.emitAsset(m,k,D);if(h!==undefined)h.auxiliaryFiles.add(m)}else{if(S===false){throw new Error("SourceMapDevToolPlugin: append can't be false when no filename is provided")}const t=new s(new o(y),S.replace(/\[map\]/g,()=>C).replace(/\[url\]/g,()=>`data:application/json;charset=utf-8;base64,${Buffer.from(C,"utf-8").toString("base64")}`));c[l]=t;u[l]=undefined;e.updateAsset(l,t)}r.cacheItem.store({assets:c,assetsInfo:u},e=>{D(.5+.5*++E/A.length,r.file,"attached SourceMap");if(e){return a(e)}a()})},e=>{D(1);l(e)})})})})}}e.exports=SourceMapDevToolPlugin},10140:e=>{"use strict";class Stats{constructor(e){this.compilation=e;this.hash=e.hash;this.startTime=undefined;this.endTime=undefined}hasWarnings(){return this.compilation.warnings.length>0||this.compilation.children.some(e=>e.getStats().hasWarnings())}hasErrors(){return this.compilation.errors.length>0||this.compilation.children.some(e=>e.getStats().hasErrors())}toJson(e){e=this.compilation.createStatsOptions(e,{forToString:false});const t=this.compilation.createStatsFactory(e);return t.create("compilation",this.compilation,{compilation:this.compilation,startTime:this.startTime,endTime:this.endTime})}toString(e){e=this.compilation.createStatsOptions(e,{forToString:true});const t=this.compilation.createStatsFactory(e);const n=this.compilation.createStatsPrinter(e);const r=t.create("compilation",this.compilation,{compilation:this.compilation,startTime:this.startTime,endTime:this.endTime});const i=n.print("compilation",r);return i===undefined?"":i}}e.exports=Stats},58159:(e,t,n)=>{"use strict";const{ConcatSource:r,PrefixSource:i}=n(48135);const s=n(22352);const{compareIds:o}=n(68673);const a="a".charCodeAt(0);const c="A".charCodeAt(0);const u="z".charCodeAt(0)-a+1;const l=u*2+2;const f=l+10;const p=/^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;const d=/^\t/gm;const h=/\r?\n/g;const m=/^([^a-zA-Z$_])/;const g=/[^a-zA-Z0-9$]+/g;const y=/\*\//g;const v=/[^a-zA-Z0-9_!§$()=\-^°]+/g;const _=/^-|-$/g;class Template{static getFunctionContent(e){return e.toString().replace(p,"").replace(d,"").replace(h,"\n")}static toIdentifier(e){if(typeof e!=="string")return"";return e.replace(m,"_$1").replace(g,"_")}static toComment(e){if(!e)return"";return`/*! ${e.replace(y,"* /")} */`}static toNormalComment(e){if(!e)return"";return`/* ${e.replace(y,"* /")} */`}static toPath(e){if(typeof e!=="string")return"";return e.replace(v,"-").replace(_,"")}static numberToIdentifier(e){if(e>=l){return Template.numberToIdentifier(e%l)+Template.numberToIdentifierContinuation(Math.floor(e/l))}if(e<u){return String.fromCharCode(a+e)}e-=u;if(e<u){return String.fromCharCode(c+e)}if(e===u)return"_";return"$"}static numberToIdentifierContinuation(e){if(e>=f){return Template.numberToIdentifierContinuation(e%f)+Template.numberToIdentifierContinuation(Math.floor(e/f))}if(e<u){return String.fromCharCode(a+e)}e-=u;if(e<u){return String.fromCharCode(c+e)}e-=u;if(e<10){return`${e}`}if(e===10)return"_";return"$"}static indent(e){if(Array.isArray(e)){return e.map(Template.indent).join("\n")}else{const t=e.trimRight();if(!t)return"";const n=t[0]==="\n"?"":"\t";return n+t.replace(/\n([^\n])/g,"\n\t$1")}}static prefix(e,t){const n=Template.asString(e).trim();if(!n)return"";const r=n[0]==="\n"?"":t;return r+n.replace(/\n([^\n])/g,"\n"+t+"$1")}static asString(e){if(Array.isArray(e)){return e.join("\n")}return e}static getModulesArrayBounds(e){let t=-Infinity;let n=Infinity;for(const r of e){const e=r.id;if(typeof e!=="number")return false;if(t<e)t=e;if(n>e)n=e}if(n<16+(""+n).length){n=0}let r=-1;for(const t of e){r+=`${t.id}`.length+2}const i=n===0?t:16+`${n}`.length+t;return i<r?[n,t]:false}static renderChunkModules(e,t,n,i=""){const{chunk:a,chunkGraph:c}=e;var u=new r;let l;if(a instanceof s){l=a.removedModules}if(t.length===0&&(!l||l.length===0)){return null}const f=t.map(e=>{return{id:c.getModuleId(e),source:n(e)||"false"}});if(l&&l.length>0){l.sort(o);for(const e of l){f.push({id:e,source:"false"})}}const p=Template.getModulesArrayBounds(f);if(p){const e=p[0];const t=p[1];if(e!==0){u.add(`Array(${e}).concat(`)}u.add("[\n");const n=new Map;for(const e of f){n.set(e.id,e)}for(let r=e;r<=t;r++){const t=n.get(r);if(r!==e){u.add(",\n")}u.add(`/* ${r} */`);if(t){u.add("\n");u.add(t.source)}}u.add("\n"+i+"]");if(e!==0){u.add(")")}}else{u.add("{\n");for(let e=0;e<f.length;e++){const t=f[e];if(e!==0){u.add(",\n")}u.add(`\n/***/ ${JSON.stringify(t.id)}:\n`);u.add(t.source)}u.add(`\n\n${i}}`)}return u}static renderRuntimeModules(e,t){const n=new r;for(const r of e){const e=r.codeGeneration({chunkGraph:t.chunkGraph,dependencyTemplates:t.dependencyTemplates,moduleGraph:t.moduleGraph,runtimeTemplate:t.runtimeTemplate,runtime:t.chunk.runtime});if(e){const s=e.sources.get("runtime");if(s){n.add(Template.toNormalComment(r.identifier())+"\n");if(!r.shouldIsolate()){n.add(s)}else if(t.runtimeTemplate.supportsArrowFunction()){n.add("(() => {\n");n.add(new i("\t",s));n.add("\n})();\n\n")}else{n.add("!function() {\n");n.add(new i("\t",s));n.add("\n}();\n\n")}}}}return n}static renderChunkRuntimeModules(e,t){return new i("/******/ ",new r("function(__webpack_require__) { // webpackRuntimeModules\n",'\t"use strict";\n\n',new i("\t",this.renderRuntimeModules(e,t)),"}\n"))}}e.exports=Template;e.exports.NUMBER_OF_IDENTIFIER_START_CHARS=l;e.exports.NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS=f},30337:(e,t,n)=>{"use strict";const{basename:r,extname:i}=n(85622);const s=n(31669);const o=n(62433);const a=n(53453);const{parseResource:c}=n(49197);const u=/\[\\*([\w:]+)\\*\]/gi;const l=e=>{if(typeof e!=="string")return e;if(/^"\s\+*.*\+\s*"$/.test(e)){const t=/^"\s\+*\s*(.*)\s*\+\s*"$/.exec(e);return`" + (${t[1]} + "").replace(/(^[.-]|[^a-zA-Z0-9_-])+/g, "_") + "`}return e.replace(/(^[.-]|[^a-zA-Z0-9_-])+/g,"_")};const f=(e,t,n,r)=>{const i=(i,s,o)=>{let a;const c=s&&parseInt(s,10);if(c&&t){a=t(c)}else{const t=e(i,s,o);a=c?t.slice(0,c):t}if(n){n.immutable=true;if(Array.isArray(n[r])){n[r]=[...n[r],a]}else if(n[r]){n[r]=[n[r],a]}else{n[r]=a}}return a};return i};const p=(e,t)=>{const n=(n,r,i)=>{if(typeof e==="function"){e=e()}if(e===null||e===undefined){if(!t){throw new Error(`Path variable ${n} not implemented in this context: ${i}`)}return""}else{return`${e}`}};return n};const d=new Map;const h=(()=>()=>{})();const m=(e,t,n)=>{let r=d.get(t);if(r===undefined){r=s.deprecate(h,t,n);d.set(t,r)}return(...t)=>{r();return e(...t)}};const g=(e,t,n)=>{const s=t.chunkGraph;const d=new Map;if(t.filename){if(typeof t.filename==="string"){const{path:e,query:n,fragment:s}=c(t.filename);const o=i(e);const a=r(e);const u=a.slice(0,a.length-o.length);const l=e.slice(0,e.length-a.length);d.set("file",p(e));d.set("query",p(n,true));d.set("fragment",p(s,true));d.set("path",p(l,true));d.set("base",p(a));d.set("name",p(u));d.set("ext",p(o,true));d.set("filebase",m(p(a),"[filebase] is now [base]","DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_FILENAME"))}}if(t.hash){const e=f(p(t.hash),t.hashWithLength,n,"fullhash");d.set("fullhash",e);d.set("hash",m(e,"[hash] is now [fullhash] (also consider using [chunkhash] or [contenthash], see documentation for details)","DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH"))}if(t.chunk){const e=t.chunk;const r=t.contentHashType;const i=p(e.id);const s=p(e.name||e.id);const a=f(p(e instanceof o?e.renderedHash:e.hash),"hashWithLength"in e?e.hashWithLength:undefined,n,"chunkhash");const c=f(p(t.contentHash||r&&e.contentHash&&e.contentHash[r]),t.contentHashWithLength||("contentHashWithLength"in e&&e.contentHashWithLength?e.contentHashWithLength[r]:undefined),n,"contenthash");d.set("id",i);d.set("name",s);d.set("chunkhash",a);d.set("contenthash",c)}if(t.module){const e=t.module;const r=p(()=>l(e instanceof a?s.getModuleId(e):e.id));const i=f(p(()=>e instanceof a?s.getRenderedModuleHash(e,t.runtime):e.hash),"hashWithLength"in e?e.hashWithLength:undefined,n,"modulehash");const o=f(p(t.contentHash),undefined,n,"contenthash");d.set("id",r);d.set("modulehash",i);d.set("contenthash",o);d.set("hash",t.contentHash?o:i);d.set("moduleid",m(r,"[moduleid] is now [id]","DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_MODULE_ID"))}if(t.url){d.set("url",p(t.url))}if(typeof e==="function"){e=e(t,n)}e=e.replace(u,(t,n)=>{if(n.length+2===t.length){const r=/^(\w+)(?::(\w+))?$/.exec(n);if(!r)return t;const[,i,s]=r;const o=d.get(i);if(o!==undefined){return o(t,s,e)}}else if(t.startsWith("[\\")&&t.endsWith("\\]")){return`[${t.slice(2,-2)}]`}return t});return e};const y="TemplatedPathPlugin";class TemplatedPathPlugin{apply(e){e.hooks.compilation.tap(y,e=>{e.hooks.assetPath.tap(y,g)})}}e.exports=TemplatedPathPlugin},77090:(e,t,n)=>{"use strict";const r=n(81627);const i=n(56202);class UnhandledSchemeError extends r{constructor(e,t){super(`Reading from "${t}" is not handled by plugins (Unhandled scheme).`+'\nWebpack supports "data:" and "file:" URIs by default.'+`\nYou may need an additional plugin to handle "${e}:" URIs.`);this.file=t;this.name="UnhandledSchemeError"}}i(UnhandledSchemeError,"webpack/lib/UnhandledSchemeError","UnhandledSchemeError");e.exports=UnhandledSchemeError},53558:(e,t,n)=>{"use strict";const r=n(81627);const i=n(56202);class UnsupportedFeatureWarning extends r{constructor(e,t){super(e);this.name="UnsupportedFeatureWarning";this.loc=t;this.hideStack=true;Error.captureStackTrace(this,this.constructor)}}i(UnsupportedFeatureWarning,"webpack/lib/UnsupportedFeatureWarning");e.exports=UnsupportedFeatureWarning},79050:(e,t,n)=>{"use strict";const r=n(66298);class UseStrictPlugin{apply(e){e.hooks.compilation.tap("UseStrictPlugin",(e,{normalModuleFactory:t})=>{const n=e=>{e.hooks.program.tap("UseStrictPlugin",t=>{const n=t.body[0];if(n&&n.type==="ExpressionStatement"&&n.expression.type==="Literal"&&n.expression.value==="use strict"){const t=new r("",n.range);t.loc=n.loc;e.state.module.addPresentationalDependency(t);e.state.module.buildInfo.strict=true}})};t.hooks.parser.for("javascript/auto").tap("UseStrictPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("UseStrictPlugin",n);t.hooks.parser.for("javascript/esm").tap("UseStrictPlugin",n)})}}e.exports=UseStrictPlugin},12510:(e,t,n)=>{"use strict";const r=n(41673);class WarnCaseSensitiveModulesPlugin{apply(e){e.hooks.compilation.tap("WarnCaseSensitiveModulesPlugin",e=>{e.hooks.seal.tap("WarnCaseSensitiveModulesPlugin",()=>{const t=new Map;for(const n of e.modules){const e=n.identifier().toLowerCase();const r=t.get(e);if(r){r.push(n)}else{t.set(e,[n])}}for(const n of t){const t=n[1];if(t.length>1){e.warnings.push(new r(t,e.moduleGraph))}}})})}}e.exports=WarnCaseSensitiveModulesPlugin},3571:(e,t,n)=>{"use strict";const r=n(81627);class WarnDeprecatedOptionPlugin{constructor(e,t,n){this.option=e;this.value=t;this.suggestion=n}apply(e){e.hooks.thisCompilation.tap("WarnDeprecatedOptionPlugin",e=>{e.warnings.push(new DeprecatedOptionWarning(this.option,this.value,this.suggestion))})}}class DeprecatedOptionWarning extends r{constructor(e,t,n){super();this.name="DeprecatedOptionWarning";this.message="configuration\n"+`The value '${t}' for option '${e}' is deprecated. `+`Use '${n}' instead.`;Error.captureStackTrace(this,this.constructor)}}e.exports=WarnDeprecatedOptionPlugin},67586:(e,t,n)=>{"use strict";const r=n(24500);class WarnNoModeSetPlugin{apply(e){e.hooks.thisCompilation.tap("WarnNoModeSetPlugin",e=>{e.warnings.push(new r)})}}e.exports=WarnNoModeSetPlugin},91265:(e,t,n)=>{"use strict";const r=n(15235);const i=n(82997);const s="ignore";class IgnoringWatchFileSystem{constructor(e,t){this.wfs=e;this.paths=t}watch(e,t,n,r,i,o,a){e=Array.from(e);t=Array.from(t);const c=e=>this.paths.some(t=>t instanceof RegExp?t.test(e):e.indexOf(t)===0);const u=e=>!c(e);const l=e.filter(c);const f=t.filter(c);const p=this.wfs.watch(e.filter(u),t.filter(u),n,r,i,(e,t,n,r,i)=>{if(e)return o(e);for(const e of l){t.set(e,s)}for(const e of f){n.set(e,s)}o(e,t,n,r,i)},a);return{close:()=>p.close(),pause:()=>p.pause(),getContextTimeInfoEntries:()=>{const e=p.getContextInfoEntries();for(const t of f){e.set(t,s)}return e},getFileTimeInfoEntries:()=>{const e=p.getFileTimeInfoEntries();for(const t of l){e.set(t,s)}return e}}}}class WatchIgnorePlugin{constructor(e){r(i,e,{name:"Watch Ignore Plugin",baseDataPath:"options"});this.paths=e.paths}apply(e){e.hooks.afterEnvironment.tap("WatchIgnorePlugin",()=>{e.watchFileSystem=new IgnoringWatchFileSystem(e.watchFileSystem,this.paths)})}}e.exports=WatchIgnorePlugin},84693:(e,t,n)=>{"use strict";const r=n(10140);class Watching{constructor(e,t,n){this.startTime=null;this.invalid=false;this.handler=n;this.callbacks=[];this._closeCallbacks=undefined;this.closed=false;this.suspended=false;if(typeof t==="number"){this.watchOptions={aggregateTimeout:t}}else if(t&&typeof t==="object"){this.watchOptions={...t}}else{this.watchOptions={}}if(typeof this.watchOptions.aggregateTimeout!=="number"){this.watchOptions.aggregateTimeout=200}this.compiler=e;this.running=true;this.watcher=undefined;this.pausedWatcher=undefined;this._done=this._done.bind(this);this.compiler.readRecords(e=>{if(e)return this._done(e);this._go()})}_go(){this.startTime=Date.now();this.running=true;this.invalid=false;const e=()=>{this.compiler.hooks.watchRun.callAsync(this.compiler,e=>{if(e)return this._done(e);const t=(e,n)=>{if(e)return this._done(e,n);if(this.invalid)return this._done();if(this.compiler.hooks.shouldEmit.call(n)===false){return this._done(null,n)}process.nextTick(()=>{const e=n.getLogger("webpack.Compiler");e.time("emitAssets");this.compiler.emitAssets(n,i=>{e.timeEnd("emitAssets");if(i)return this._done(i,n);if(this.invalid)return this._done(null,n);e.time("emitRecords");this.compiler.emitRecords(i=>{e.timeEnd("emitRecords");if(i)return this._done(i,n);if(n.hooks.needAdditionalPass.call()){n.needAdditionalPass=true;const i=new r(n);i.startTime=this.startTime;i.endTime=Date.now();e.time("done hook");this.compiler.hooks.done.callAsync(i,r=>{e.timeEnd("done hook");if(r)return this._done(r,n);this.compiler.hooks.additionalPass.callAsync(e=>{if(e)return this._done(e,n);this.compiler.compile(t)})});return}return this._done(null,n)})})})};this.compiler.compile(t)})};if(this.compiler.idle){this.compiler.cache.endIdle(t=>{if(t)return this._done(t);this.compiler.idle=false;e()})}else{e()}}_getStats(e){const t=new r(e);t.startTime=this.startTime;t.endTime=Date.now();return t}_done(e,t){this.running=false;const n=t&&t.getLogger("webpack.Watching");let r=null;const i=e=>{this.compiler.hooks.failed.call(e);this.compiler.cache.beginIdle();this.compiler.idle=true;this.handler(e,r);for(const e of this.callbacks)e();this.callbacks.length=0};if(this.invalid){if(t){n.time("storeBuildDependencies");this.compiler.cache.storeBuildDependencies(t.buildDependencies,e=>{n.timeEnd("storeBuildDependencies");if(e)return i(e);this._go()})}else{this._go()}return}r=t?this._getStats(t):null;if(e)return i(e);n.time("done hook");this.compiler.hooks.done.callAsync(r,e=>{n.timeEnd("done hook");if(e)return i(e);this.handler(null,r);n.time("storeBuildDependencies");this.compiler.cache.storeBuildDependencies(t.buildDependencies,e=>{n.timeEnd("storeBuildDependencies");if(e)return i(e);n.time("beginIdle");this.compiler.cache.beginIdle();this.compiler.idle=true;n.timeEnd("beginIdle");process.nextTick(()=>{if(!this.closed){this.watch(t.fileDependencies,t.contextDependencies,t.missingDependencies)}});for(const e of this.callbacks)e();this.callbacks.length=0;this.compiler.hooks.afterDone.call(r)})})}watch(e,t,n){this.pausedWatcher=null;this.watcher=this.compiler.watchFileSystem.watch(e,t,n,this.startTime,this.watchOptions,(e,t,n,r,i)=>{this.pausedWatcher=this.watcher;this.watcher=null;if(e){this.compiler.modifiedFiles=undefined;this.compiler.removedFiles=undefined;this.compiler.fileTimestamps=undefined;this.compiler.contextTimestamps=undefined;return this.handler(e)}this.compiler.fileTimestamps=t;this.compiler.contextTimestamps=n;this.compiler.removedFiles=i;this.compiler.modifiedFiles=r;if(!this.suspended){this._invalidate()}},(e,t)=>{this.compiler.hooks.invalid.call(e,t)})}invalidate(e){if(e){this.callbacks.push(e)}if(this.watcher){this.compiler.modifiedFiles=this.watcher.aggregatedChanges;this.compiler.removedFiles=this.watcher.aggregatedRemovals;this.compiler.fileTimestamps=this.watcher.getFileTimeInfoEntries();this.compiler.contextTimestamps=this.watcher.getContextTimeInfoEntries()}this.compiler.hooks.invalid.call(null,Date.now());this._invalidate()}_invalidate(){if(this.watcher){this.pausedWatcher=this.watcher;this.watcher.pause();this.watcher=null}if(this.running){this.invalid=true}else{this._go()}}suspend(){this.suspended=true;this.invalid=false}resume(){if(this.suspended){this.suspended=false;this._invalidate()}}close(e){if(this._closeCallbacks){if(e){this._closeCallbacks.push(e)}return}const t=(e,t)=>{this.running=false;this.compiler.running=false;this.compiler.watchMode=false;this.compiler.modifiedFiles=undefined;this.compiler.removedFiles=undefined;this.compiler.fileTimestamps=undefined;this.compiler.contextTimestamps=undefined;const n=()=>{this.compiler.cache.shutdown(e=>{this.compiler.hooks.watchClose.call();const t=this._closeCallbacks;this._closeCallbacks=undefined;for(const n of t)n(e)})};if(t){const e=t.getLogger("webpack.Watching");e.time("storeBuildDependencies");this.compiler.cache.storeBuildDependencies(t.buildDependencies,t=>{e.timeEnd("storeBuildDependencies");n()})}else{n()}};this.closed=true;if(this.watcher){this.watcher.close();this.watcher=null}if(this.pausedWatcher){this.pausedWatcher.close();this.pausedWatcher=null}this._closeCallbacks=[];if(e){this._closeCallbacks.push(e)}if(this.running){this.invalid=true;this._done=t}else{t()}}}e.exports=Watching},81627:(e,t,n)=>{"use strict";const r=n(31669).inspect.custom;const i=n(56202);class WebpackError extends Error{constructor(e){super(e);this.details=undefined;this.module=undefined;this.loc=undefined;this.hideStack=undefined;this.chunk=undefined;this.file=undefined;Error.captureStackTrace(this,this.constructor)}[r](){return this.stack+(this.details?`\n${this.details}`:"")}serialize({write:e}){e(this.name);e(this.message);e(this.stack);e(this.details);e(this.loc);e(this.hideStack)}deserialize({read:e}){this.name=e();this.message=e();this.stack=e();this.details=e();this.loc=e();this.hideStack=e()}}i(WebpackError,"webpack/lib/WebpackError");e.exports=WebpackError},81721:(e,t,n)=>{"use strict";const r=n(97614);const i=n(18161);const s=n(9483);const o=n(97736);const a=n(64699);const c=n(43806);const u=n(89818);const l=n(32323);const f=n(97489);const p=n(40552);const d=n(29672);const h=n(30337);const m=n(79050);const g=n(12510);const y=n(68495);const v=n(99184);const _=n(13653);const b=n(91630);const E=n(26165);const w=n(38586);const S=n(54975);const k=n(2451);const D=n(67634);const x=n(51727);const C=n(3085);const A=n(62630);const T=n(68778);const M=n(19874);const O=n(9054);const F=n(7391);const I=n(61762);const{cleverMerge:R}=n(90149);class WebpackOptionsApply extends r{constructor(){super()}process(e,t){t.outputPath=e.output.path;t.recordsInputPath=e.recordsInputPath||null;t.recordsOutputPath=e.recordsOutputPath||null;t.name=e.name;if(typeof e.target==="string"){switch(e.target){case"web":{const r=n(58421);const i=n(71100);const s=n(52687);const a=n(92662);const c=n(5538);(new r).apply(t);new i({mangleImports:e.optimization.mangleWasmImports}).apply(t);(new s).apply(t);new a(e.node).apply(t);new o(e.target).apply(t);(new c).apply(t);break}case"webworker":{const r=n(67439);const i=n(71100);const s=n(52687);const a=n(92662);(new r).apply(t);new i({mangleImports:e.optimization.mangleWasmImports}).apply(t);(new s).apply(t);new a(e.node).apply(t);new o(e.target).apply(t);break}case"node":case"async-node":{const r=n(91591);const i=n(71049);const s=n(21273);const a=n(84980);new r({asyncChunkLoading:e.target==="async-node"}).apply(t);new i({mangleImports:e.optimization.mangleWasmImports}).apply(t);(new s).apply(t);(new a).apply(t);new o("node").apply(t);break}case"node-webkit":{const r=n(58421);const i=n(84980);const s=n(61050);const a=n(5538);(new r).apply(t);(new i).apply(t);new s("commonjs","nw.gui").apply(t);new o(e.target).apply(t);(new a).apply(t);break}case"electron-main":{const r=n(91591);const i=n(84980);const s=n(25726);new r({asyncChunkLoading:true}).apply(t);(new i).apply(t);new s(true).apply(t);new o(e.target).apply(t);break}case"electron-renderer":case"electron-preload":{const r=n(71100);const i=n(52687);const s=n(84980);const a=n(25726);const c=n(5538);if(e.target==="electron-renderer"){const e=n(58421);(new e).apply(t)}else if(e.target==="electron-preload"){const e=n(91591);new e({asyncChunkLoading:true}).apply(t)}new r({mangleImports:e.optimization.mangleWasmImports}).apply(t);(new i).apply(t);(new s).apply(t);new a(false).apply(t);new o(e.target).apply(t);(new c).apply(t);break}default:throw new Error("Unsupported target '"+e.target+"'.")}}else{e.target(t)}if(e.output.enabledLibraryTypes.length>0){for(const r of e.output.enabledLibraryTypes){const e=n(13984);new e(r).apply(t)}}if(e.externals){const r=n(61050);new r(e.externalsType,e.externals).apply(t)}if(e.output.pathinfo){const e=n(21542);(new e).apply(t)}if(e.devtool){if(e.devtool.includes("source-map")){const r=e.devtool.includes("hidden");const i=e.devtool.includes("inline");const s=e.devtool.includes("eval");const o=e.devtool.includes("cheap");const a=e.devtool.includes("module");const c=e.devtool.includes("nosources");const u=s?n(23641):n(2e4);new u({filename:i?null:e.output.sourceMapFilename,moduleFilenameTemplate:e.output.devtoolModuleFilenameTemplate,fallbackModuleFilenameTemplate:e.output.devtoolFallbackModuleFilenameTemplate,append:r?false:undefined,module:a?true:o?false:true,columns:o?false:true,noSources:c,namespace:e.output.devtoolNamespace}).apply(t)}else if(e.devtool.includes("eval")){const r=n(91331);new r({moduleFilenameTemplate:e.output.devtoolModuleFilenameTemplate,namespace:e.output.devtoolNamespace}).apply(t)}}(new i).apply(t);(new s).apply(t);if(!e.experiments.outputModule){if(e.output.module){throw new Error("'output.module: true' is only allowed when 'experiments.outputModule' is enabled")}if(e.output.enabledLibraryTypes.includes("module")){throw new Error("library type \"module\" is only allowed when 'experiments.outputModule' is enabled")}if(e.externalsType==="module"){throw new Error("'externalsType: \"module\"' is only allowed when 'experiments.outputModule' is enabled")}}if(e.experiments.asset){const e=n(75076);(new e).apply(t)}if(e.experiments.syncWebAssembly){const r=n(63576);new r({mangleImports:e.optimization.mangleWasmImports}).apply(t)}if(e.experiments.asyncWebAssembly){const r=n(82422);new r({mangleImports:e.optimization.mangleWasmImports}).apply(t)}(new a).apply(t);t.hooks.entryOption.call(e.context,e.entry);(new u).apply(t);(new T).apply(t);(new y).apply(t);(new v).apply(t);(new f).apply(t);new E({module:e.module,topLevelAwait:e.experiments.topLevelAwait}).apply(t);if(e.amd!==false){const r=n(19765);const i=n(10830);new r(e.module,e.amd||{}).apply(t);(new i).apply(t)}new b(e.module).apply(t);(new k).apply(t);if(e.node!==false){const r=n(32125);new r(e.node).apply(t)}(new l).apply(t);(new d).apply(t);(new p).apply(t);(new m).apply(t);(new C).apply(t);(new x).apply(t);(new D).apply(t);new S(e.module).apply(t);new A(e.module).apply(t);(new w).apply(t);(new O).apply(t);(new F).apply(t);(new I).apply(t);(new M).apply(t);if(typeof e.mode!=="string"){const e=n(67586);(new e).apply(t)}const r=n(38173);(new r).apply(t);if(e.optimization.removeAvailableModules){const e=n(78016);(new e).apply(t)}if(e.optimization.removeEmptyChunks){const e=n(62665);(new e).apply(t)}if(e.optimization.mergeDuplicateChunks){const e=n(70026);(new e).apply(t)}if(e.optimization.flagIncludedChunks){const e=n(76627);(new e).apply(t)}if(e.optimization.sideEffects){const e=n(63410);(new e).apply(t)}if(e.optimization.providedExports){const e=n(95629);(new e).apply(t)}if(e.optimization.usedExports){const r=n(1596);new r(e.optimization.usedExports==="global").apply(t)}if(e.optimization.innerGraph){const e=n(10032);(new e).apply(t)}if(e.optimization.mangleExports){const r=n(41694);new r(e.optimization.mangleExports!=="size").apply(t)}if(e.optimization.concatenateModules){const e=n(35442);(new e).apply(t)}if(e.optimization.splitChunks){const r=n(40051);new r(e.optimization.splitChunks).apply(t)}if(e.optimization.runtimeChunk){const r=n(4674);new r(e.optimization.runtimeChunk).apply(t)}if(!e.optimization.emitOnErrors){const e=n(66962);(new e).apply(t)}if(e.optimization.realContentHash){const r=n(30699);new r({hashFunction:e.output.hashFunction,hashDigest:e.output.hashDigest}).apply(t)}if(e.optimization.checkWasmTypes){const e=n(7577);(new e).apply(t)}const P=e.optimization.moduleIds;if(P){switch(P){case"natural":{const e=n(97781);(new e).apply(t);break}case"named":{const e=n(9297);(new e).apply(t);break}case"hashed":{const e=n(3571);const r=n(35853);new e("optimization.moduleIds","hashed","deterministic").apply(t);(new r).apply(t);break}case"deterministic":{const e=n(35579);(new e).apply(t);break}case"size":{const e=n(76059);new e({prioritiseInitial:true}).apply(t);break}default:throw new Error(`webpack bug: moduleIds: ${P} is not implemented`)}}const N=e.optimization.chunkIds;if(N){switch(N){case"natural":{const e=n(18298);(new e).apply(t);break}case"named":{const e=n(64779);(new e).apply(t);break}case"deterministic":{const e=n(90444);(new e).apply(t);break}case"size":{const e=n(86169);new e({prioritiseInitial:true}).apply(t);break}case"total-size":{const e=n(86169);new e({prioritiseInitial:false}).apply(t);break}default:throw new Error(`webpack bug: chunkIds: ${N} is not implemented`)}}if(e.optimization.nodeEnv){const r=n(24820);new r({"process.env.NODE_ENV":JSON.stringify(e.optimization.nodeEnv)}).apply(t)}if(e.optimization.minimize){for(const n of e.optimization.minimizer){if(typeof n==="function"){n.call(t,t)}else if(n!=="..."){n.apply(t)}}}if(e.performance){const r=n(20625);new r(e.performance).apply(t)}(new h).apply(t);new c({portableIds:e.optimization.portableRecords}).apply(t);(new g).apply(t);if(e.cache&&typeof e.cache==="object"){const r=e.cache;const i=n(46584);new i(r.managedPaths,r.immutablePaths).apply(t);switch(r.type){case"memory":{const e=n(47786);(new e).apply(t);break}case"filesystem":{const i=n(38016);for(const e in r.buildDependencies){const n=r.buildDependencies[e];new i(n).apply(t)}const s=n(47786);(new s).apply(t);switch(r.store){case"pack":{const i=n(66620);const s=n(83793);new i(new s({compiler:t,fs:t.intermediateFileSystem,context:e.context,cacheLocation:r.cacheLocation,version:r.version,logger:t.getInfrastructureLogger("webpack.cache.PackFileCacheStrategy"),managedPaths:r.managedPaths,immutablePaths:r.immutablePaths}),r.idleTimeout,r.idleTimeoutForInitialStore).apply(t);break}default:throw new Error("Unhandled value for cache.store")}break}default:throw new Error(`Unknown cache type ${r.type}`)}}(new _).apply(t);t.hooks.afterPlugins.call(t);if(!t.inputFileSystem){throw new Error("No input filesystem provided")}t.resolverFactory.hooks.resolveOptions.for("normal").tap("WebpackOptionsApply",n=>{n=R(e.resolve,n);n.fileSystem=t.inputFileSystem;return n});t.resolverFactory.hooks.resolveOptions.for("context").tap("WebpackOptionsApply",n=>{n=R(e.resolve,n);n.fileSystem=t.inputFileSystem;n.resolveToContext=true;return n});t.resolverFactory.hooks.resolveOptions.for("loader").tap("WebpackOptionsApply",n=>{n=R(e.resolveLoader,n);n.fileSystem=t.inputFileSystem;return n});t.hooks.afterResolvers.call(t);return e}}e.exports=WebpackOptionsApply},94820:(e,t,n)=>{"use strict";const{applyWebpackOptionsDefaults:r}=n(54411);const{getNormalizedWebpackOptions:i}=n(96590);class WebpackOptionsDefaulter{process(e){e=i(e);r(e);return e}}e.exports=WebpackOptionsDefaulter},20882:(e,t,n)=>{"use strict";const r=n(80018);const i=n(85622);const{RawSource:s}=n(48135);const o=n(36253);const a=n(76150);const c=n(35891);const u=new Set(["javascript"]);const l=new Set(["javascript","asset"]);class AssetGenerator extends o{constructor(e,t,n){super();this.compilation=e;this.dataUrlOptions=t;this.filename=n}generate(e,{runtime:t,chunkGraph:n,runtimeTemplate:o,runtimeRequirements:u,type:l}){switch(l){case"asset":return e.originalSource();default:{u.add(a.module);const l=e.originalSource();if(e.buildInfo.dataUrl){let t;if(typeof this.dataUrlOptions==="function"){t=this.dataUrlOptions.call(null,l.source(),{filename:e.matchResource||e.resource,module:e})}else{const n=this.dataUrlOptions.encoding;const s=i.extname(e.nameForCondition());const o=this.dataUrlOptions.mimetype||r.lookup(s);if(!o){throw new Error("DataUrl can't be generated automatically, "+`because there is no mimetype for "${s}" in mimetype database. `+'Either pass a mimetype via "generator.mimetype" or '+'use type: "asset/resource" to create a resource file instead of a DataUrl')}let a;switch(n){case"base64":{a=l.buffer().toString("base64");break}case false:{const e=l.source();if(typeof e==="string"){a=encodeURI(e)}else{a=encodeURI(e.toString("utf-8"))}break}default:throw new Error(`Unsupported encoding '${n}'`)}t=`data:${o}${n?`;${n}`:""},${a}`}return new s(`${a.module}.exports = ${JSON.stringify(t)};`)}else{const r=this.filename||o.outputOptions.assetModuleFilename;const i=c(o.outputOptions.hashFunction);if(o.outputOptions.hashSalt){i.update(o.outputOptions.hashSalt)}i.update(l.buffer());const f=i.digest(o.outputOptions.hashDigest);const p=f.slice(0,o.outputOptions.hashDigestLength);e.buildInfo.fullContentHash=f;const{path:d,info:h}=this.compilation.getAssetPathWithInfo(r,{module:e,runtime:t,filename:e.matchResource||e.resource,chunkGraph:n,contentHash:p});e.buildInfo.filename=d;e.buildInfo.assetInfo=h;u.add(a.publicPath);return new s(`${a.module}.exports = ${a.publicPath} + ${JSON.stringify(d)};`)}}}}getTypes(e){if(e.buildInfo.dataUrl){return u}else{return l}}getSize(e,t){switch(t){case"asset":{const t=e.originalSource();if(!t){return 0}return t.size()}default:if(e.buildInfo.dataUrl){const t=e.originalSource();if(!t){return 0}return t.size()*1.34+36}else{return 42}}}updateHash(e,{module:t}){e.update(t.buildInfo.dataUrl?"data-url":"resource")}}e.exports=AssetGenerator},75076:(e,t,n)=>{"use strict";const r=n(15235);const{compareModulesByIdentifier:i}=n(68673);const s=n(27503);const o=s(()=>n(23208));const a={asset:o,"asset/resource":s(()=>{const e=o();return{...e,properties:{...e.properties,dataUrl:false}}}),"asset/inline":s(()=>{const e=o();return{...e,properties:{...e.properties,filename:false}}})};const c=s(()=>n(81821));const u=s(()=>n(20882));const l=s(()=>n(74795));const f=s(()=>n(54685));const p="asset";const d="AssetModulesPlugin";class AssetModulesPlugin{apply(e){e.hooks.compilation.tap(d,(e,{normalModuleFactory:t})=>{t.hooks.createParser.for("asset").tap(d,e=>{r(c(),e,{name:"Asset Modules Plugin",baseDataPath:"parser"});let t=e.dataUrlCondition;if(!t||typeof t==="object"){t={maxSize:8096,...t}}const n=l();return new n(t)});t.hooks.createParser.for("asset/inline").tap(d,e=>{const t=l();return new t(true)});t.hooks.createParser.for("asset/resource").tap(d,e=>{const t=l();return new t(false)});t.hooks.createParser.for("asset/source").tap(d,e=>{const t=l();return new t(false)});for(const n of["asset","asset/inline","asset/resource"]){t.hooks.createGenerator.for(n).tap(d,t=>{r(a[n](),t,{name:"Asset Modules Plugin",baseDataPath:"generator"});let i=undefined;if(n!=="asset/resource"){i=t.dataUrl;if(!i||typeof i==="object"){i={encoding:"base64",mimetype:undefined,...i}}}let s=undefined;if(n!=="asset/inline"){s=t.filename}const o=u();return new o(e,i,s)})}t.hooks.createGenerator.for("asset/source").tap(d,()=>{const e=f();return new e});e.hooks.renderManifest.tap(d,(t,n)=>{const{chunkGraph:r}=e;const{chunk:s,codeGenerationResults:o}=n;const a=r.getOrderedChunkModulesIterableBySourceType(s,"asset",i);if(a){for(const e of a){t.push({render:()=>o.getSource(e,s.runtime,p),filename:e.buildInfo.filename,info:e.buildInfo.assetInfo,auxiliary:true,identifier:`assetModule${r.getModuleId(e)}`,hash:e.buildInfo.fullContentHash})}}return t})})}}e.exports=AssetModulesPlugin},74795:(e,t,n)=>{"use strict";const r=n(2172);class AssetParser extends r{constructor(e){super();this.dataUrlCondition=e}parse(e,t){if(typeof e==="object"&&!Buffer.isBuffer(e)){throw new Error("AssetParser doesn't accept preparsed AST")}t.module.buildInfo.strict=true;t.module.buildMeta.exportsType="default";if(typeof this.dataUrlCondition==="function"){t.module.buildInfo.dataUrl=this.dataUrlCondition(e,{filename:t.module.matchResource||t.module.resource,module:t.module})}else if(typeof this.dataUrlCondition==="boolean"){t.module.buildInfo.dataUrl=this.dataUrlCondition}else if(this.dataUrlCondition&&typeof this.dataUrlCondition==="object"){t.module.buildInfo.dataUrl=Buffer.byteLength(e)<=this.dataUrlCondition.maxSize}else{throw new Error("Unexpected dataUrlCondition type")}return t}}e.exports=AssetParser},54685:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(36253);const s=n(76150);const o=new Set(["javascript"]);class AssetSourceGenerator extends i{generate(e,{chunkGraph:t,runtimeTemplate:n,runtimeRequirements:i}){i.add(s.module);const o=e.originalSource();if(!o){return new r("")}const a=o.source();let c;if(typeof a==="string"){c=a}else{c=a.toString("utf-8")}return new r(`${s.module}.exports = ${JSON.stringify(c)};`)}getTypes(e){return o}getSize(e,t){const n=e.originalSource();if(!n){return 0}return n.size()+12}}e.exports=AssetSourceGenerator},10813:(e,t,n)=>{"use strict";const r=n(63272);const i=n(76150);class AwaitDependenciesInitFragment extends r{constructor(e){super(undefined,r.STAGE_ASYNC_DEPENDENCIES,0,"await-dependencies");this.promises=e}merge(e){const t=new Set(this.promises);for(const n of e.promises){t.add(n)}return new AwaitDependenciesInitFragment(t)}getContent({runtimeRequirements:e}){e.add(i.module);const t=this.promises;if(t.size===0){return""}if(t.size===1){for(const e of t){return`${e} = await Promise.resolve(${e});\n`}}const n=Array.from(t).join(", ");return`([${n}] = await Promise.all([${n}]));\n`}}e.exports=AwaitDependenciesInitFragment},68778:(e,t,n)=>{"use strict";const r=n(37359);class InferAsyncModulesPlugin{apply(e){e.hooks.compilation.tap("InferAsyncModulesPlugin",e=>{const{moduleGraph:t}=e;e.hooks.finishModules.tap("InferAsyncModulesPlugin",e=>{const n=new Set;for(const t of e){if(t.buildMeta&&t.buildMeta.async){n.add(t)}}for(const e of n){t.setAsync(e);const i=t.getIncomingConnections(e);for(const e of i){const t=e.dependency;if(t instanceof r&&e.isActive(undefined)){n.add(e.originModule)}}}})})}}e.exports=InferAsyncModulesPlugin},25457:(e,t,n)=>{"use strict";const r=n(21357);const{connectChunkGroupParentAndChild:i}=n(4642);const s=new Set;s.plus=s;const o=(e,t)=>{return t.size+t.plus.size-e.size-e.plus.size};const a=e=>{const{moduleGraph:t}=e;const n=new Map;const r=new Set;for(const i of e.modules){let e;for(const n of t.getOutgoingConnections(i)){const t=n.dependency;if(!t)continue;const r=n.module;if(!r)continue;if(n.weak)continue;if(!n.isActive(undefined))continue;if(e===undefined){e=new WeakMap}e.set(n.dependency,r)}r.clear();r.add(i);for(const t of r){let i;if(e!==undefined&&t.dependencies){for(const r of t.dependencies){const s=e.get(r);if(s!==undefined){if(i===undefined){i=new Set;n.set(t,i)}i.add(s)}}}if(t.blocks){for(const e of t.blocks){r.add(e)}}}}return n};const c=(e,t,n,i,c,u,l)=>{const{moduleGraph:f,chunkGraph:p}=t;e.time("visitModules: prepare");const d=a(t);let h=0;let m=0;let g=0;let y=0;let v=0;let _=0;let b=0;let E=0;let w=0;let S=0;let k=0;let D=0;let x=0;let C=0;let A=0;let T=0;const M=new Map;const O=new Map;const F=0;const I=1;const R=2;const P=3;let N=[];const L=new Map;const B=new Set;for(const[e,t]of n){const n={chunkGroup:e,minAvailableModules:undefined,minAvailableModulesOwned:false,availableModulesToBeMerged:[],skippedItems:undefined,resultingAvailableModules:undefined,children:undefined,availableSources:undefined,availableChildren:undefined,preOrderIndex:0,postOrderIndex:0};e.index=C++;if(e.getNumberOfParents()>0){const e=new Set;for(const n of t){e.add(n)}n.skippedItems=e;B.add(n)}else{n.minAvailableModules=s;const r=e.getEntrypointChunk();for(const i of t){N.push({action:F,block:i,module:i,chunk:r,chunkGroup:e,chunkGroupInfo:n})}}i.set(e,n);if(e.name){O.set(e.name,n)}}for(const e of B){const{chunkGroup:t}=e;e.availableSources=new Set;for(const n of t.parentsIterable){const t=i.get(n);e.availableSources.add(t);if(t.availableChildren===undefined){t.availableChildren=new Set}t.availableChildren.add(e)}}N.reverse();const j=new Set;const U=new Set;let z=[];e.timeEnd("visitModules: prepare");const H=[];const V=[];let G;let q;let W;let K;let X;const J=e=>{let n=M.get(e);let s;if(n===undefined){const o=e.groupOptions&&e.groupOptions.name||e.chunkName;n=O.get(o);if(!n){s=t.addChunkInGroup(e.groupOptions||e.chunkName,G,e.loc,e.request);s.index=C++;n={chunkGroup:s,minAvailableModules:undefined,minAvailableModulesOwned:undefined,availableModulesToBeMerged:[],skippedItems:undefined,resultingAvailableModules:undefined,children:undefined,availableSources:undefined,availableChildren:undefined,preOrderIndex:0,postOrderIndex:0};l.add(s);i.set(s,n);if(o){O.set(o,n)}}else{s=n.chunkGroup;if(s.isInitial()){t.errors.push(new r(o,G,e.loc));s=W}s.addOptions(e.groupOptions);s.addOrigin(G,e.loc,e.request)}M.set(e,n)}else{s=n.chunkGroup}let o=c.get(W);if(!o)c.set(W,o=[]);o.push({block:e,chunkGroup:s});let a=L.get(X);if(a===undefined){a=new Set;L.set(X,a)}a.add(n);z.push({action:R,block:e,module:G,chunk:s.chunks[0],chunkGroup:s,chunkGroupInfo:n})};const Y=e=>{m++;const t=d.get(e);if(t!==undefined){const{minAvailableModules:e}=X;for(const n of t){if(p.isModuleInChunk(n,q)){continue}if(e.has(n)||e.plus.has(n)){H.push(n);continue}V.push({action:F,block:n,module:n,chunk:q,chunkGroup:W,chunkGroupInfo:X})}if(H.length>0){let{skippedItems:e}=X;if(e===undefined){X.skippedItems=e=new Set}for(let t=H.length-1;t>=0;t--){e.add(H[t])}H.length=0}if(V.length>0){for(let e=V.length-1;e>=0;e--){N.push(V[e])}V.length=0}}for(const t of e.blocks){if(t.isAsync(W)){J(t)}else{Y(t)}}if(e.blocks.length>0&&G!==e){u.add(e)}};const Q=()=>{while(N.length){h++;const e=N.pop();G=e.module;K=e.block;q=e.chunk;W=e.chunkGroup;X=e.chunkGroupInfo;switch(e.action){case F:{if(p.isModuleInChunk(G,q)){break}p.connectChunkAndModule(q,G)}case I:{const t=W.getModulePreOrderIndex(G);if(t===undefined){W.setModulePreOrderIndex(G,X.preOrderIndex++)}if(f.setPreOrderIndexIfUnset(G,A)){A++}e.action=P;N.push(e)}case R:{Y(K);break}case P:{const e=W.getModulePostOrderIndex(G);if(e===undefined){W.setModulePostOrderIndex(G,X.postOrderIndex++)}if(f.setPostOrderIndexIfUnset(G,T)){T++}break}}}};const Z=e=>{if(e.resultingAvailableModules)return e.resultingAvailableModules;const t=e.minAvailableModules;let n;if(t.size>t.plus.size){n=new Set;for(const e of t.plus)t.add(e);t.plus=s;n.plus=t;e.minAvailableModulesOwned=false}else{n=new Set(t);n.plus=t.plus}for(const t of e.chunkGroup.chunks){for(const e of p.getChunkModulesIterable(t)){n.add(e)}}return e.resultingAvailableModules=n};const $=()=>{for(const[e,t]of L){if(e.children===undefined){e.children=t}else{for(const n of t){e.children.add(n)}}const n=Z(e);for(const e of t){e.availableModulesToBeMerged.push(n);U.add(e)}g+=t.size}L.clear()};const ee=()=>{y+=U.size;for(const e of U){const t=e.availableModulesToBeMerged;let n=e.minAvailableModules;v+=t.length;if(t.length>1){t.sort(o)}let r=false;e:for(const i of t){if(n===undefined){n=i;e.minAvailableModules=n;e.minAvailableModulesOwned=false;r=true}else{if(e.minAvailableModulesOwned){if(n.plus===i.plus){for(const e of n){if(!i.has(e)){n.delete(e);r=true}}}else{for(const e of n){if(!i.has(e)&&!i.plus.has(e)){n.delete(e);r=true}}for(const e of n.plus){if(!i.has(e)&&!i.plus.has(e)){const t=n.plus[Symbol.iterator]();let o;while(!(o=t.next()).done){const t=o.value;if(t===e)break;n.add(t)}while(!(o=t.next()).done){const t=o.value;if(i.has(t)||i.plus.has(e)){n.add(t)}}n.plus=s;r=true;continue e}}}}else if(n.plus===i.plus){if(i.size<n.size){_++;b+=i.size;w+=n.size;const t=new Set;t.plus=i.plus;for(const e of i){if(n.has(e)){t.add(e)}}k+=t.size;n=t;e.minAvailableModulesOwned=true;e.minAvailableModules=t;r=true;continue e}for(const t of n){if(!i.has(t)){_++;b+=n.size;w+=i.size;const s=new Set;s.plus=i.plus;const o=n[Symbol.iterator]();let a;while(!(a=o.next()).done){const e=a.value;if(e===t)break;s.add(e)}while(!(a=o.next()).done){const e=a.value;if(i.has(e)){s.add(e)}}k+=s.size;n=s;e.minAvailableModulesOwned=true;e.minAvailableModules=s;r=true;continue e}}}else{for(const t of n){if(!i.has(t)&&!i.plus.has(t)){_++;b+=n.size;E+=n.plus.size;w+=i.size;S+=i.plus.size;const o=new Set;o.plus=s;const a=n[Symbol.iterator]();let c;while(!(c=a.next()).done){const e=c.value;if(e===t)break;o.add(e)}while(!(c=a.next()).done){const e=c.value;if(i.has(e)||i.plus.has(e)){o.add(e)}}for(const e of n.plus){if(i.has(e)||i.plus.has(e)){o.add(e)}}k+=o.size;n=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;r=true;continue e}}for(const t of n.plus){if(!i.has(t)&&!i.plus.has(t)){_++;b+=n.size;E+=n.plus.size;w+=i.size;S+=i.plus.size;const o=new Set(n);o.plus=s;const a=n.plus[Symbol.iterator]();let c;while(!(c=a.next()).done){const e=c.value;if(e===t)break;o.add(e)}while(!(c=a.next()).done){const e=c.value;if(i.has(e)||i.plus.has(e)){o.add(e)}}k+=o.size;n=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;r=true;continue e}}}}}t.length=0;if(r){e.resultingAvailableModules=undefined;j.add(e)}}U.clear()};const te=()=>{e:for(const e of B){for(const t of e.availableSources){if(!t.minAvailableModules)continue e}const t=new Set;t.plus=s;const n=e=>{if(e.size>t.plus.size){for(const e of t.plus)t.add(e);t.plus=e}else{for(const n of e)t.add(n)}};for(const t of e.availableSources){const e=Z(t);n(e);n(e.plus)}e.minAvailableModules=t;e.minAvailableModulesOwned=false;e.resultingAvailableModules=undefined;j.add(e)}B.clear()};const ne=()=>{D+=j.size;for(const e of j){if(e.skippedItems!==undefined){const{minAvailableModules:t}=e;for(const n of e.skippedItems){if(!t.has(n)&&!t.plus.has(n)){N.push({action:F,block:n,module:n,chunk:e.chunkGroup.chunks[0],chunkGroup:e.chunkGroup,chunkGroupInfo:e});e.skippedItems.delete(n)}}}if(e.children!==undefined){x+=e.children.size;for(const t of e.children){let n=L.get(e);if(n===undefined){n=new Set;L.set(e,n)}n.add(t)}}if(e.availableChildren!==undefined){for(const t of e.availableChildren){B.add(t)}}}j.clear()};while(N.length||L.size){e.time("visitModules: visiting");Q();e.timeEnd("visitModules: visiting");if(B.size>0){e.time("visitModules: combine available modules");te();e.timeEnd("visitModules: combine available modules")}if(L.size>0){e.time("visitModules: calculating available modules");$();e.timeEnd("visitModules: calculating available modules");if(U.size>0){e.time("visitModules: merging available modules");ee();e.timeEnd("visitModules: merging available modules")}}if(j.size>0){e.time("visitModules: check modules for revisit");ne();e.timeEnd("visitModules: check modules for revisit")}if(N.length===0){const e=N;N=z.reverse();z=e}}e.log(`${h} queue items processed (${m} blocks)`);e.log(`${g} chunk groups connected`);e.log(`${y} chunk groups processed for merging (${v} module sets, ${_} forked, ${b} + ${E} modules forked, ${w} + ${S} modules merged into fork, ${k} resulting modules)`);e.log(`${D} chunk group info updated (${x} already connected chunk groups reconnected)`)};const u=(e,t,n,r)=>{const{chunkGraph:s}=e;let o;const a=(e,t)=>{for(const n of e.chunks){for(const e of s.getChunkModulesIterable(n)){if(!t.has(e)&&!t.plus.has(e))return false}}return true};const c=e=>{const n=e.chunkGroup;if(t.has(e.block))return true;if(a(n,o)){return false}return true};for(const[e,t]of n){if(t.length===0)continue;const n=r.get(e);o=n.resultingAvailableModules;for(let n=0;n<t.length;n++){const r=t[n];if(!c(r)){continue}const o=r.chunkGroup;const a=r.block;s.connectBlockAndChunkGroup(a,o);i(e,o)}}};const l=(e,t)=>{const{chunkGraph:n}=e;for(const r of t){if(r.getNumberOfParents()===0){for(const t of r.chunks){e.chunks.delete(t);n.disconnectChunk(t)}n.disconnectChunkGroup(r);r.remove()}}};const f=(e,t)=>{const n=e.getLogger("webpack.buildChunkGraph");const r=new Map;const i=new Set;const s=new Map;const o=new Set;n.time("visitModules");c(n,e,t,s,r,o,i);n.timeEnd("visitModules");n.time("connectChunkGroups");u(e,o,r,s);n.timeEnd("connectChunkGroups");n.time("cleanup");l(e,i);n.timeEnd("cleanup")};e.exports=f},38016:e=>{"use strict";class AddBuildDependenciesPlugin{constructor(e){this.buildDependencies=new Set(e)}apply(e){e.hooks.compilation.tap("AddBuildDependenciesPlugin",e=>{e.buildDependencies.addAll(this.buildDependencies)})}}e.exports=AddBuildDependenciesPlugin},46584:e=>{"use strict";class AddManagedPathsPlugin{constructor(e,t){this.managedPaths=new Set(e);this.immutablePaths=new Set(t)}apply(e){for(const t of this.managedPaths){e.managedPaths.add(t)}for(const t of this.immutablePaths){e.immutablePaths.add(t)}}}e.exports=AddManagedPathsPlugin},66620:(e,t,n)=>{"use strict";const r=n(54725);const i=n(52923);const s=Symbol();class IdleFileCachePlugin{constructor(e,t,n){this.strategy=e;this.idleTimeout=t;this.idleTimeoutForInitialStore=n}apply(e){const t=this.strategy;const n=this.idleTimeout;const o=Math.min(n,this.idleTimeoutForInitialStore);const a=Promise.resolve();const c=new Map;e.cache.hooks.store.tap({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},(e,n,r)=>{c.set(e,()=>t.store(e,n,r))});e.cache.hooks.get.tapPromise({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},(e,n,r)=>{return t.restore(e,n).then(i=>{if(i===undefined){r.push((r,i)=>{if(r!==undefined){c.set(e,()=>t.store(e,n,r))}i()})}else{return i}})});e.cache.hooks.storeBuildDependencies.tap({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},e=>{c.set(s,()=>t.storeBuildDependencies(e))});e.cache.hooks.shutdown.tapPromise({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},()=>{if(d){clearTimeout(d);d=undefined}l=false;const n=i.getReporter(e);const r=Array.from(c.values());if(n)n(0,"process pending cache items");const s=r.map(e=>e());c.clear();s.push(u);const o=Promise.all(s);u=o.then(()=>t.afterAllStored());if(n){u=u.then(()=>{n(1,`stored`)})}return u});let u=a;let l=false;let f=true;const p=()=>{if(l){if(c.size>0){const e=[u];const t=Date.now()+100;let n=100;for(const[r,i]of c){c.delete(r);e.push(i());if(n--<=0||Date.now()>t)break}u=Promise.all(e);u.then(()=>{setTimeout(p,0).unref()});return}u=u.then(()=>t.afterAllStored());f=false}};let d=undefined;e.cache.hooks.beginIdle.tap({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},()=>{d=setTimeout(()=>{d=undefined;l=true;a.then(p)},f?o:n);d.unref()});e.cache.hooks.endIdle.tap({name:"IdleFileCachePlugin",stage:r.STAGE_DISK},()=>{if(d){clearTimeout(d);d=undefined}l=false})}}e.exports=IdleFileCachePlugin},47786:(e,t,n)=>{"use strict";const r=n(54725);class MemoryCachePlugin{apply(e){const t=new Map;e.cache.hooks.store.tap({name:"MemoryCachePlugin",stage:r.STAGE_MEMORY},(e,n,r)=>{t.set(e,{etag:n,data:r})});e.cache.hooks.get.tap({name:"MemoryCachePlugin",stage:r.STAGE_MEMORY},(e,n,r)=>{const i=t.get(e);if(i===null){return null}else if(i!==undefined){return i.etag===n?i.data:null}r.push((r,i)=>{if(r===undefined){t.set(e,null)}else{t.set(e,{etag:n,data:r})}return i()})})}}e.exports=MemoryCachePlugin},83793:(e,t,n)=>{"use strict";const r=n(22996);const i=n(52923);const s=n(83379);const o=n(56202);const a=n(27503);const{createFileSerializer:c}=n(24568);class PackContainer{constructor(e,t,n,r,i,s){this.data=e;this.version=t;this.buildSnapshot=n;this.buildDependencies=r;this.resolveResults=i;this.resolveBuildDependenciesSnapshot=s}serialize({write:e,writeLazy:t}){e(this.version);e(this.buildSnapshot);e(this.buildDependencies);e(this.resolveResults);e(this.resolveBuildDependenciesSnapshot);t(this.data)}deserialize({read:e}){this.version=e();this.buildSnapshot=e();this.buildDependencies=e();this.resolveResults=e();this.resolveBuildDependenciesSnapshot=e();this.data=e()}}o(PackContainer,"webpack/lib/cache/PackFileCacheStrategy","PackContainer");const u=1024*1024;const l=10;const f=1e3*60*60*24*60;class PackItemInfo{constructor(e,t,n){this.identifier=e;this.etag=t;this.location=-1;this.lastAccess=Date.now();this.freshValue=n}}class Pack{constructor(e){this.itemInfo=new Map;this.freshContent=[];this.content=[];this.invalid=false;this.logger=e}get(e,t){const n=this.itemInfo.get(e);if(n===undefined)return undefined;if(n.etag!==t)return null;n.lastAccess=Date.now();const r=n.location;if(r===-1){return n.freshValue}else{if(!this.content[r]){return undefined}return this.content[r].get(e)}}set(e,t,n){if(!this.invalid){this.invalid=true;this.logger.debug(`Pack got invalid because of ${e}`)}const r=this.itemInfo.get(e);if(r===undefined){const r=new PackItemInfo(e,t,n);this.itemInfo.set(e,r);this.freshContent.push(r)}else{const i=r.location;if(i>=0){this.freshContent.push(r);const t=this.content[i];t.delete(e);if(t.items.size===0){this.content[i]=undefined;this.logger.debug("Pack %d got empty and is removed",i)}}r.freshValue=n;r.lastAccess=Date.now();r.etag=t;r.location=-1}}_findLocation(){let e;for(e=0;e<this.content.length&&this.content[e]!==undefined;e++);return e}_gcAndUpdateLocation(e,t,n){let r=0;let i;const s=Date.now();for(const o of e){const a=this.itemInfo.get(o);if(s-a.lastAccess>f){this.itemInfo.delete(o);e.delete(o);t.delete(o);r++;i=o}else{a.location=n}}if(r>0){this.logger.log("Garbage Collected %d old items at pack %d e. g. %s",r,n,i)}}_persistFreshContent(){if(this.freshContent.length>0){const e=new Set;const t=new Map;const n=this._findLocation();for(const r of this.freshContent){const{identifier:i}=r;e.add(i);t.set(i,r.freshValue);r.location=n;r.freshValue=undefined}this.content[n]=new PackContent(e,new Set(e),new PackContentItems(t));this.freshContent.length=0}}_optimizeSmallContent(){const e=[];let t=0;const n=[];let r=0;for(let i=0;i<this.content.length;i++){const s=this.content[i];if(s===undefined)continue;if(s.outdated)continue;const o=s.getSize();if(o<0||o>u)continue;if(s.used.size>0){e.push(i);t+=o}else{n.push(i);r+=o}}let i;if(e.length>=l||t>u){i=e}else if(n.length>=l||r>u){i=n}else return;const s=[];for(const e of i){s.push(this.content[e]);this.content[e]=undefined}const o=new Set;const c=new Set;const f=[];for(const e of s){for(const t of e.items){o.add(t)}for(const t of e.used){c.add(t)}f.push(async t=>{await e.unpack();for(const[n,r]of e.content){t.set(n,r)}})}const p=this._findLocation();this._gcAndUpdateLocation(o,c,p);if(o.size>0){this.content[p]=new PackContent(o,c,a(async()=>{const e=new Map;await Promise.all(f.map(t=>t(e)));return new PackContentItems(e)}));this.logger.log("Merged %d small files with %d cache items into pack %d",s.length,o.size,p)}}_optimizeUnusedContent(){for(let e=0;e<this.content.length;e++){const t=this.content[e];if(t===undefined)continue;const n=t.getSize();if(n<u)continue;const r=t.used.size;const i=t.items.size;if(r>0&&r<i){this.content[e]=undefined;const n=new Set(t.used);const r=this._findLocation();this._gcAndUpdateLocation(n,n,r);if(n.size>0){this.content[r]=new PackContent(n,new Set(n),async()=>{await t.unpack();const e=new Map;for(const r of n){e.set(r,t.content.get(r))}return new PackContentItems(e)})}const i=new Set(t.items);const s=new Set;for(const e of n){i.delete(e)}const o=this._findLocation();this._gcAndUpdateLocation(i,s,o);if(i.size>0){this.content[o]=new PackContent(i,s,async()=>{await t.unpack();const e=new Map;for(const n of i){e.set(n,t.content.get(n))}return new PackContentItems(e)})}this.logger.log("Split pack %d into pack %d with %d used items and pack %d with %d unused items",e,r,n.size,o,i.size);return}}}serialize({write:e,writeSeparate:t}){this._persistFreshContent();this._optimizeSmallContent();this._optimizeUnusedContent();for(const t of this.itemInfo.keys()){e(t)}e(null);for(const t of this.itemInfo.values()){e(t.etag)}for(const t of this.itemInfo.values()){e(t.lastAccess)}for(let n=0;n<this.content.length;n++){const r=this.content[n];if(r!==undefined){e(r.items);t(r.getLazyContentItems(),{name:`${n}`})}else{e(undefined)}}e(null)}deserialize({read:e,logger:t}){this.logger=t;{const t=[];let n=e();while(n!==null){t.push(n);n=e()}this.itemInfo.clear();const r=t.map(e=>{const t=new PackItemInfo(e,undefined,undefined);this.itemInfo.set(e,t);return t});for(const t of r){t.etag=e()}for(const t of r){t.lastAccess=e()}}this.content.length=0;let n=e();while(n!==null){if(n===undefined){this.content.push(n)}else{const r=this.content.length;const i=e();this.content.push(new PackContent(n,new Set,i,t,`${this.content.length}`));for(const e of n){this.itemInfo.get(e).location=r}}n=e()}}}o(Pack,"webpack/lib/cache/PackFileCacheStrategy","Pack");class PackContentItems{constructor(e){this.map=e}serialize({write:e,snapshot:t,rollback:n,logger:r}){const i=t();try{e(true);e(this.map)}catch(s){n(i);e(false);for(const[i,s]of this.map){const o=t();try{e(i);e(s)}catch(e){n(o);r.warn(`Skipped not serializable cache item '${i}': ${e.message}`);r.debug(e.stack)}}e(null)}}deserialize({read:e}){if(e()){this.map=e()}else{const t=new Map;let n=e();while(n!==null){t.set(n,e());n=e()}this.map=t}}}o(PackContentItems,"webpack/lib/cache/PackFileCacheStrategy","PackContentItems");class PackContent{constructor(e,t,n,r,i){this.items=e;this.lazy=typeof n==="function"?n:undefined;this.content=typeof n==="function"?undefined:n.map;this.outdated=false;this.used=t;this.logger=r;this.lazyName=i}get(e){this.used.add(e);if(this.content){return this.content.get(e)}const{lazyName:t}=this;if(t){this.lazyName=undefined;this.logger.time(`restore cache content ${t}`)}const n=this.lazy();if(n instanceof Promise){return n.then(n=>{if(t)this.logger.timeEnd(`restore cache content ${t}`);const r=n.map;this.content=r;return r.get(e)})}else{if(t)this.logger.timeEnd(`restore cache content ${t}`);const r=n.map;this.content=r;return r.get(e)}}unpack(){if(this.content)return;if(this.lazy){const e=this.lazy();if(e instanceof Promise){return e.then(e=>{this.content=e.map})}else{this.content=e.map}}}getSize(){if(!this.lazy)return-1;const e=this.lazy.options;if(!e)return-1;const t=e.size;if(typeof t!=="number")return-1;return t}delete(e){this.items.delete(e);this.used.delete(e);this.outdated=true}getLazyContentItems(){if(!this.outdated&&this.lazy)return this.lazy;if(!this.outdated&&this.content){const e=new Map(this.content);return this.lazy=a(()=>new PackContentItems(e))}this.outdated=false;if(this.content){return this.lazy=a(()=>{const e=new Map;for(const t of this.items){e.set(t,this.content.get(t))}return new PackContentItems(e)})}const e=this.lazy;return this.lazy=(()=>{const t=e();if(t instanceof Promise){return t.then(e=>{const t=e.map;const n=new Map;for(const e of this.items){n.set(e,t.get(e))}return new PackContentItems(n)})}else{const e=t.map;const n=new Map;for(const t of this.items){n.set(t,e.get(t))}return new PackContentItems(n)}})}}class PackFileCacheStrategy{constructor({compiler:e,fs:t,context:n,cacheLocation:i,version:o,logger:a,managedPaths:u,immutablePaths:l}){this.fileSerializer=c(t);this.fileSystemInfo=new r(t,{managedPaths:u,immutablePaths:l,logger:a.getChildLogger("webpack.FileSystemInfo")});this.compiler=e;this.context=n;this.cacheLocation=i;this.version=o;this.logger=a;this.buildDependencies=new Set;this.newBuildDependencies=new s;this.resolveBuildDependenciesSnapshot=undefined;this.resolveResults=undefined;this.buildSnapshot=undefined;this.packPromise=this._openPack()}_openPack(){const{logger:e,cacheLocation:t,version:n}=this;let r;let i;let s;let o;let a;e.time("restore cache container");return this.fileSerializer.deserialize(null,{filename:`${t}/index.pack`,extension:".pack",logger:e}).catch(n=>{if(n.code!=="ENOENT"){e.warn(`Restoring pack failed from ${t}.pack: ${n}`);e.debug(n.stack)}else{e.debug(`No pack exists at ${t}.pack: ${n}`)}return undefined}).then(c=>{e.timeEnd("restore cache container");if(!c)return undefined;if(!(c instanceof PackContainer)){e.warn(`Restored pack from ${t}.pack, but contained content is unexpected.`,c);return undefined}if(c.version!==n){e.log(`Restored pack from ${t}.pack, but version doesn't match.`);return undefined}e.time("check build dependencies");return Promise.all([new Promise((n,i)=>{this.fileSystemInfo.checkSnapshotValid(c.buildSnapshot,(i,s)=>{if(i){e.log(`Restored pack from ${t}.pack, but checking snapshot of build dependencies errored: ${i}.`);e.debug(i.stack);return n(false)}if(!s){e.log(`Restored pack from ${t}.pack, but build dependencies have changed.`);return n(false)}r=c.buildSnapshot;return n(true)})}),new Promise((n,r)=>{this.fileSystemInfo.checkSnapshotValid(c.resolveBuildDependenciesSnapshot,(r,u)=>{if(r){e.log(`Restored pack from ${t}.pack, but checking snapshot of resolving of build dependencies errored: ${r}.`);e.debug(r.stack);return n(false)}if(u){o=c.resolveBuildDependenciesSnapshot;i=c.buildDependencies;a=c.resolveResults;return n(true)}e.log("resolving of build dependencies is invalid, will re-resolve build dependencies");this.fileSystemInfo.checkResolveResultsValid(c.resolveResults,(r,i)=>{if(r){e.log(`Restored pack from ${t}.pack, but resolving of build dependencies errored: ${r}.`);e.debug(r.stack);return n(false)}if(i){s=c.buildDependencies;a=c.resolveResults;return n(true)}e.log(`Restored pack from ${t}.pack, but build dependencies resolve to different locations.`);return n(false)})})})]).catch(t=>{e.timeEnd("check build dependencies");throw t}).then(([t,n])=>{e.timeEnd("check build dependencies");if(t&&n){e.time("restore cache content metadata");const t=c.data();e.timeEnd("restore cache content metadata");return t}return undefined})}).then(t=>{if(t){this.buildSnapshot=r;if(i)this.buildDependencies=i;if(s)this.newBuildDependencies.addAll(s);this.resolveResults=a;this.resolveBuildDependenciesSnapshot=o;return t}return new Pack(e)}).catch(n=>{this.logger.warn(`Restoring pack from ${t}.pack failed: ${n}`);this.logger.debug(n.stack);return new Pack(e)})}store(e,t,n){return this.packPromise.then(r=>{this.logger.debug(`Cached ${e} to pack.`);r.set(e,t===null?null:t.toString(),n)})}restore(e,t){return this.packPromise.then(n=>n.get(e,t===null?null:t.toString())).catch(t=>{if(t&&t.code!=="ENOENT"){this.logger.warn(`Restoring failed for ${e} from pack: ${t}`);this.logger.debug(t.stack)}})}storeBuildDependencies(e){this.newBuildDependencies.addAll(e)}afterAllStored(){const e=i.getReporter(this.compiler);return this.packPromise.then(t=>{if(!t.invalid)return;this.logger.log(`Storing pack...`);let n;const r=new Set;for(const e of this.newBuildDependencies){if(!this.buildDependencies.has(e)){r.add(e);this.buildDependencies.add(e)}}this.newBuildDependencies.clear();if(r.size>0||!this.buildSnapshot){if(e)e(.5,"resolve build dependencies");this.logger.debug(`Capturing build dependencies... (${Array.from(r).join(", ")})`);n=new Promise((t,n)=>{this.logger.time("resolve build dependencies");this.fileSystemInfo.resolveBuildDependencies(this.context,r,(r,i)=>{this.logger.timeEnd("resolve build dependencies");if(r)return n(r);this.logger.time("snapshot build dependencies");const{files:s,directories:o,missing:a,resolveResults:c,resolveDependencies:u}=i;if(this.resolveResults){for(const[e,t]of c){this.resolveResults.set(e,t)}}else{this.resolveResults=c}if(e)e(.6,"snapshot build dependencies (timestamps)");this.fileSystemInfo.createSnapshot(undefined,u.files,u.directories,u.missing,{},(r,i)=>{if(r){this.logger.timeEnd("snapshot build dependencies");return n(r)}if(!i){this.logger.timeEnd("snapshot build dependencies");return n(new Error("Unable to snapshot resolve dependencies"))}if(this.resolveBuildDependenciesSnapshot){this.resolveBuildDependenciesSnapshot=this.fileSystemInfo.mergeSnapshots(this.resolveBuildDependenciesSnapshot,i)}else{this.resolveBuildDependenciesSnapshot=i}if(e)e(.7,"snapshot build dependencies (hashes)");this.fileSystemInfo.createSnapshot(undefined,s,o,a,{hash:true},(e,r)=>{this.logger.timeEnd("snapshot build dependencies");if(e)return n(e);if(!r){return n(new Error("Unable to snapshot build dependencies"))}this.logger.debug("Captured build dependencies");if(this.buildSnapshot){this.buildSnapshot=this.fileSystemInfo.mergeSnapshots(this.buildSnapshot,r)}else{this.buildSnapshot=r}t()})})})})}else{n=Promise.resolve()}return n.then(()=>{if(e)e(.8,"serialize pack");this.logger.time(`store pack`);const n=new PackContainer(t,this.version,this.buildSnapshot,this.buildDependencies,this.resolveResults,this.resolveBuildDependenciesSnapshot);return this.fileSerializer.serialize(n,{filename:`${this.cacheLocation}/index.pack`,extension:".pack",logger:this.logger}).then(()=>{this.logger.timeEnd(`store pack`);this.logger.log(`Stored pack`)}).catch(e=>{this.logger.timeEnd(`store pack`);this.logger.warn(`Caching failed for pack: ${e}`);this.logger.debug(e.stack)})})}).catch(e=>{this.logger.warn(`Caching failed for pack: ${e}`);this.logger.debug(e.stack)})}}e.exports=PackFileCacheStrategy},13653:(e,t,n)=>{"use strict";const r=n(83379);const i=n(56202);class CacheEntry{constructor(e,t,n,r,i){this.result=e;this.fileDependencies=t;this.contextDependencies=n;this.missingDependencies=r;this.snapshot=i}serialize({write:e}){e(this.result);e(this.fileDependencies);e(this.contextDependencies);e(this.missingDependencies);e(this.snapshot)}deserialize({read:e}){this.result=e();this.fileDependencies=e();this.contextDependencies=e();this.missingDependencies=e();this.snapshot=e()}}i(CacheEntry,"webpack/lib/cache/ResolverCachePlugin");const s=(e,t)=>{if("addAll"in e){e.addAll(t)}else{for(const n of t){e.add(n)}}};const o=(e,t)=>{let n="";for(const r in e){if(t&&r==="context")continue;const i=e[r];if(typeof i==="object"&&i!==null){n+=`|${r}=[${o(i,false)}|]`}else{n+=`|${r}=|${i}`}}return n};class ResolverCachePlugin{apply(e){const t=e.getCache("ResolverCachePlugin");let n;let i=0;let a=0;let c=0;let u=0;e.hooks.thisCompilation.tap("ResolverCachePlugin",e=>{n=e.fileSystemInfo;e.hooks.finishModules.tap("ResolverCachePlugin",()=>{if(i+a>0){const t=e.getLogger("webpack.ResolverCachePlugin");t.log(`${Math.round(100*i/(i+a))}% really resolved (${i} real resolves with ${c} cached but invalid, ${a} cached valid, ${u} concurrent)`);i=0;a=0;c=0;u=0}})});const l=(e,t,o,a,c)=>{i++;const u={_ResolverCachePluginCacheMiss:true,...a};const l={...o,stack:new Set,missingDependencies:new r,fileDependencies:new r,contextDependencies:new r};const f=e=>{if(o[e]){s(o[e],l[e])}};const p=Date.now();t.doResolve(t.hooks.resolve,u,"Cache miss",l,(t,r)=>{f("fileDependencies");f("contextDependencies");f("missingDependencies");if(t)return c(t);const i=l.fileDependencies;const s=l.contextDependencies;const o=l.missingDependencies;n.createSnapshot(p,i,s,o,null,(t,n)=>{if(t)return c(t);if(!n){if(r)return c(null,r);return c()}e.store(new CacheEntry(r,l.fileDependencies,l.contextDependencies,l.missingDependencies,n),e=>{if(e)return c(e);if(r)return c(null,r);c()})})})};e.resolverFactory.hooks.resolver.intercept({factory(e,r){const i=new Map;r.tap("ResolverCachePlugin",(r,u,f)=>{if(u.cache!==true)return;const p=o(f,false);const d=u.cacheWithContext!==undefined?u.cacheWithContext:false;r.hooks.resolve.tapAsync({name:"ResolverCachePlugin",stage:-100},(u,f,h)=>{if(u._ResolverCachePluginCacheMiss||!n){return h()}const m=`${e}${p}${o(u,!d)}`;const g=i.get(m);if(g){g.push(h);return}const y=t.getItemCache(m,null);let v;const _=(e,t)=>{if(v===undefined){h(e,t);v=false}else{for(const n of v){n(e,t)}i.delete(m);v=false}};const b=(e,t)=>{if(e)return _(e);if(t){n.checkSnapshotValid(t.snapshot,(e,n)=>{if(e||!n){c++;return l(y,r,f,u,_)}a++;if(f.missingDependencies){s(f.missingDependencies,t.missingDependencies)}if(f.fileDependencies){s(f.fileDependencies,t.fileDependencies)}if(f.contextDependencies){s(f.contextDependencies,t.contextDependencies)}_(null,t.result)})}else{l(y,r,f,u,_)}};y.get(b);if(v===undefined){v=[h];i.set(m,v)}})});return r}})}}e.exports=ResolverCachePlugin},77034:(e,t,n)=>{"use strict";const r=n(35891);class LazyHashedEtag{constructor(e){this._obj=e;this._hash=undefined}toString(){if(this._hash===undefined){const e=r("md4");this._obj.updateHash(e);this._hash=e.digest("base64")}return this._hash}}const i=new WeakMap;const s=e=>{const t=i.get(e);if(t!==undefined)return t;const n=new LazyHashedEtag(e);i.set(e,n);return n};e.exports=s},10168:e=>{"use strict";class MergedEtag{constructor(e,t){this.a=e;this.b=t}toString(){return`${this.a.toString()}|${this.b.toString()}`}}const t=new WeakMap;const n=new WeakMap;const r=(e,r)=>{if(typeof e==="string"){if(typeof r==="string"){return`${e}|${r}`}else{const t=r;r=e;e=t}}else{if(typeof r!=="string"){let n=t.get(e);if(n===undefined){t.set(e,n=new WeakMap)}const i=n.get(r);if(i===undefined){const t=new MergedEtag(e,r);n.set(r,t);return t}else{return i}}}let i=n.get(e);if(i===undefined){n.set(e,i=new Map)}const s=i.get(r);if(s===undefined){const t=new MergedEtag(e,r);i.set(r,t);return t}else{return s}};e.exports=r},61634:(e,t,n)=>{"use strict";const r=n(85622);const i=n(76518);const s=(e=i)=>{const t={};const n=e=>{return e.replace(/\./g,"-").replace(/\[\]/g,"").replace(/(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter})/gu,"$1-$2").replace(/-?[^\p{Uppercase_Letter}\p{Lowercase_Letter}\d]+/gu,"-").toLowerCase()};const r=t=>{const n=t.split("/");let r=e;for(let e=1;e<n.length;e++){const t=r[n[e]];if(!t){break}r=t}return r};const s=e=>{for(const{schema:t}of e){if(t.cli&&t.cli.helper)continue;if(t.description)return t.description}};const o=e=>{if(e.enum){return{type:"enum",values:e.enum}}switch(e.type){case"number":return{type:"number"};case"string":return{type:e.absolutePath?"path":"string"};case"boolean":return{type:"boolean"}}if(e.instanceof==="RegExp"){return{type:"RegExp"}}return undefined};const a=e=>{const r=e[0].path;const i=n(`${r}.reset`);const o=s(e);t[i]={configs:[{type:"reset",multiple:false,description:`Clear all items provided in configuration. ${o}`,path:r}],description:undefined,simpleType:undefined,multiple:undefined}};const c=(e,r)=>{const i=o(e[0].schema);if(!i)return 0;const a=n(e[0].path);const c={...i,multiple:r,description:s(e),path:e[0].path};if(!t[a]){t[a]={configs:[],description:undefined,simpleType:undefined,multiple:undefined}}if(t[a].configs.some(e=>JSON.stringify(e)===JSON.stringify(c))){return 0}if(t[a].configs.some(e=>e.type===c.type&&e.multiple!==r)){if(r){throw new Error(`Conflicting schema for ${e[0].path} with ${c.type} type (array type must be before single item type)`)}return 0}t[a].configs.push(c);return 1};const u=(e,t="",n=[],i=null)=>{while(e.$ref){e=r(e.$ref)}const s=n.filter(({schema:t})=>t===e);if(s.length>=2||s.some(({path:e})=>e===t)){return 0}if(e.cli&&e.cli.exclude)return 0;const o=[{schema:e,path:t},...n];let l=0;l+=c(o,!!i);if(e.type==="object"){if(e.properties){for(const n of Object.keys(e.properties)){l+=u(e.properties[n],t?`${t}.${n}`:n,o,i)}}return l}if(e.type==="array"){if(i){return 0}if(Array.isArray(e.items)){let n=0;for(const r of e.items){l+=u(r,`${t}.${n}`,o,t)}return l}l+=u(e.items,`${t}[]`,o,t);if(l>0){a(o);l++}return l}const f=e.oneOf||e.anyOf||e.allOf;if(f){const e=f;for(let n=0;n<e.length;n++){l+=u(e[n],t,o,i)}return l}return l};u(e);for(const e of Object.keys(t)){const n=t[e];n.description=n.configs.reduce((e,{description:t})=>{if(!e)return t;if(!t)return e;if(e.includes(t))return e;return`${e} ${t}`},undefined);n.simpleType=n.configs.reduce((e,t)=>{let n="string";switch(t.type){case"number":n="number";break;case"reset":case"boolean":n="boolean";break;case"enum":if(t.values.every(e=>typeof e==="boolean"))n="boolean";if(t.values.every(e=>typeof e==="number"))n="number";break}if(e===undefined)return n;return e===n?e:"string"},undefined);n.multiple=n.configs.some(e=>e.multiple)}return t};const o=new WeakMap;const a=(e,t,n=0)=>{if(!t)return{value:e};const r=t.split(".");let i=r.pop();let s=e;let a=0;for(const e of r){const t=e.endsWith("[]");const i=t?e.slice(0,-2):e;let c=s[i];if(t){if(c===undefined){c={};s[i]=[...Array.from({length:n}),c];o.set(s[i],n+1)}else if(!Array.isArray(c)){return{problem:{type:"unexpected-non-array-in-path",path:r.slice(0,a).join(".")}}}else{let e=o.get(c)||0;while(e<=n){c.push(undefined);e++}o.set(c,e);const t=c.length-e+n;if(c[t]===undefined){c[t]={}}else if(c[t]===null||typeof c[t]!=="object"){return{problem:{type:"unexpected-non-object-in-path",path:r.slice(0,a).join(".")}}}c=c[t]}}else{if(c===undefined){c=s[i]={}}else if(c===null||typeof c!=="object"){return{problem:{type:"unexpected-non-object-in-path",path:r.slice(0,a).join(".")}}}}s=c;a++}let c=s[i];if(i.endsWith("[]")){const e=i.slice(0,-2);const r=s[e];if(r===undefined){s[e]=[...Array.from({length:n}),undefined];o.set(s[e],n+1);return{object:s[e],property:n,value:undefined}}else if(!Array.isArray(r)){s[e]=[r,...Array.from({length:n}),undefined];o.set(s[e],n+1);return{object:s[e],property:n+1,value:undefined}}else{let e=o.get(r)||0;while(e<=n){r.push(undefined);e++}o.set(r,e);const i=r.length-e+n;if(r[i]===undefined){r[i]={}}else if(r[i]===null||typeof r[i]!=="object"){return{problem:{type:"unexpected-non-object-in-path",path:t}}}return{object:r,property:i,value:r[i]}}}return{object:s,property:i,value:c}};const c=(e,t,n,r)=>{const{problem:i,object:s,property:o}=a(e,t,r);if(i)return i;s[o]=n;return null};const u=(e,t,n,r)=>{if(r!==undefined&&!e.multiple){return{type:"multiple-values-unexpected",path:e.path}}const i=f(e,n);if(i===undefined){return{type:"invalid-value",path:e.path,expected:l(e)}}const s=c(t,e.path,i,r);if(s)return s;return null};const l=e=>{switch(e.type){default:return e.type;case"boolean":return"true | false";case"RegExp":return"regular expression (example: /ab?c*/)";case"enum":return e.values.map(e=>`${e}`).join(" | ");case"reset":return"true (will reset the previous value to an empty array)"}};const f=(e,t)=>{switch(e.type){case"string":if(typeof t==="string"){return t}break;case"path":if(typeof t==="string"){return r.resolve(t)}break;case"number":if(typeof t==="number")return t;if(typeof t==="string"&&/^[+-]?\d*(\.\d*)[eE]\d+$/){const e=+t;if(!isNaN(e))return e}break;case"boolean":if(typeof t==="boolean")return t;if(t==="true")return true;if(t==="false")return false;break;case"RegExp":if(t instanceof RegExp)return t;if(typeof t==="string"){const e=/^\/(.*)\/([yugi]*)$/.exec(t);if(e&&!/[^\\]\//.test(e[1]))return new RegExp(e[1],e[2])}break;case"enum":if(e.values.includes(t))return t;for(const n of e.values){if(`${n}`===t)return n}break;case"reset":if(t===true)return[];break}};const p=(e,t,n)=>{const r=[];for(const i of Object.keys(n)){const s=e[i];if(!s){r.push({type:"unknown-argument",path:"",argument:i});continue}const o=(e,n)=>{const o=[];for(const r of s.configs){const s=u(r,t,e,n);if(!s){return}o.push({...s,argument:i,value:e,index:n})}r.push(...o)};let a=n[i];if(Array.isArray(a)){for(let e=0;e<a.length;e++){o(a[e],e)}}else{o(a,undefined)}}if(r.length===0)return null;return r};t.getArguments=s;t.processArguments=p},54411:(e,t,n)=>{"use strict";const r=n(85622);const i=n(58159);const{cleverMerge:s}=n(90149);const o=/[\\/]node_modules[\\/]/i;const a=(e,t,n)=>{if(e[t]===undefined){e[t]=n}};const c=(e,t,n)=>{if(e[t]===undefined){e[t]=n()}};const u=(e,t,n)=>{const r=e[t];if(r===undefined){e[t]=n()}else if(Array.isArray(r)){let i=undefined;for(let s=0;s<r.length;s++){const o=r[s];if(o==="..."){if(i===undefined){i=s>0?r.slice(0,s-1):[];e[t]=i}const o=n();if(o!==undefined){for(const e of o){i.push(e)}}}else if(i!==undefined){i.push(o)}}}};const l=e=>{c(e,"context",()=>process.cwd())};const f=e=>{c(e,"context",()=>process.cwd());a(e,"target","web");const{mode:t,name:n,target:r}=e;const i=r==="web"||r==="webworker"||r==="electron-renderer";const o=t==="development";const u=t==="production"||!t;if(typeof e.entry!=="function"){for(const t of Object.keys(e.entry)){c(e.entry[t],"import",()=>["./src"])}}c(e,"devtool",()=>o?"eval":false);a(e,"watch",false);a(e,"profile",false);a(e,"parallelism",100);a(e,"recordsInputPath",false);a(e,"recordsOutputPath",false);c(e,"cache",()=>o?{type:"memory"}:false);d(e.cache,{name:n||"default",mode:t||"production"});const l=!!e.cache;p(e.experiments);h(e.module,{cache:l,mjs:e.experiments.mjs,syncWebAssembly:e.experiments.syncWebAssembly,asyncWebAssembly:e.experiments.asyncWebAssembly,webTarget:i});m(e.output,{context:e.context,target:r,outputModule:e.experiments.outputModule,development:o});if(e.output.library){e.output.enabledLibraryTypes.push(e.output.library.type)}for(const t of Object.keys(e.entry)){const n=e.entry[t];if(n.library){e.output.enabledLibraryTypes.push(n.library.type)}}c(e,"externalsType",()=>e.output.library?e.output.library.type:e.output.module?"module":"var");g(e.node,{target:r});c(e,"performance",()=>u&&i?{}:false);y(e.performance,{production:u});v(e.optimization,{development:o,production:u,records:!!(e.recordsInputPath||e.recordsOutputPath)});e.resolve=s(_({cache:l,context:e.context,webTarget:i,target:r,mode:e.mode}),e.resolve);e.resolveLoader=s(b({cache:l}),e.resolveLoader);E(e.infrastructureLogging)};const p=e=>{a(e,"asset",false);a(e,"mjs",false);a(e,"topLevelAwait",false);a(e,"syncWebAssembly",false);a(e,"asyncWebAssembly",false);a(e,"outputModule",false)};const d=(e,{name:t,mode:i})=>{if(e===false)return;switch(e.type){case"filesystem":c(e,"name",()=>t+"-"+i);a(e,"version","");c(e,"cacheDirectory",()=>{const e=n(93224);const t=process.cwd();const i=e.sync(t);if(!i){return r.resolve(t,".cache/webpack")}else if(process.versions.pnp==="1"){return r.resolve(i,".pnp/.cache/webpack")}else if(process.versions.pnp==="3"){return r.resolve(i,".yarn/.cache/webpack")}else{return r.resolve(i,"node_modules/.cache/webpack")}});c(e,"cacheLocation",()=>r.resolve(e.cacheDirectory,e.name));a(e,"hashAlgorithm","md4");a(e,"store","pack");a(e,"idleTimeout",6e4);a(e,"idleTimeoutForInitialStore",0);a(e.buildDependencies,"defaultWebpack",[r.resolve(__dirname,"..")+r.sep]);break}u(e,"managedPaths",()=>{if(process.versions.pnp==="3"){const e=/^(.+?)[\\/]cache[\\/]watchpack-npm-[^\\/]+\.zip[\\/]node_modules[\\/]/.exec(92512);if(e){return[r.resolve(e[1],"unplugged")]}}else{const e=/^(.+?[\\/]node_modules)[\\/]/.exec(92512);if(e){return[e[1]]}}return[]});u(e,"immutablePaths",()=>{if(process.versions.pnp==="1"){const e=/^(.+?[\\/]v4)[\\/]npm-watchpack-[^\\/]+-[\da-f]{40}[\\/]node_modules[\\/]/.exec(92512);if(e){return[e[1]]}}else if(process.versions.pnp==="3"){const e=/^(.+?)[\\/]watchpack-npm-[^\\/]+\.zip[\\/]node_modules[\\/]/.exec(92512);if(e){return[e[1]]}}return[]})};const h=(e,{cache:t,mjs:n,syncWebAssembly:r,asyncWebAssembly:i,webTarget:s})=>{a(e,"unknownContextRequest",".");a(e,"unknownContextRegExp",false);a(e,"unknownContextRecursive",true);a(e,"unknownContextCritical",true);a(e,"exprContextRequest",".");a(e,"exprContextRegExp",false);a(e,"exprContextRecursive",true);a(e,"exprContextCritical",true);a(e,"wrappedContextRegExp",/.*/);a(e,"wrappedContextRecursive",true);a(e,"wrappedContextCritical",false);a(e,"strictExportPresence",false);a(e,"strictThisContextOnImports",false);if(t){a(e,"unsafeCache",e=>{const t=e.nameForCondition();return t&&o.test(t)})}else{a(e,"unsafeCache",false)}u(e,"defaultRules",()=>{const e=[{type:"javascript/auto"},{mimetype:"application/node",type:"javascript/auto"},{test:/\.json$/i,type:"json"},{mimetype:"application/json",type:"json"}];if(n){const t={type:"javascript/esm",resolve:{byDependency:{esm:{fullySpecified:true}}}};const n={type:"javascript/dynamic"};e.push({test:/\.mjs$/i,...t},{test:/\.js$/i,descriptionData:{type:"module"},...t},{test:/\.cjs$/i,...n},{test:/\.js$/i,descriptionData:{type:"commonjs"},...n},{mimetype:{or:["text/javascript","application/javascript"]},...t})}else{e.push({mimetype:{or:["text/javascript","application/javascript"]},type:"javascript/auto"})}if(i){const t={type:"webassembly/async"};if(n){t.rules=[{descriptionData:{type:"module"},resolve:{fullySpecified:true}}]}e.push({test:/\.wasm$/i,...t});e.push({mimetype:"application/wasm",...t})}else if(r){const t={type:"webassembly/sync"};if(n){t.rules=[{descriptionData:{type:"module"},resolve:{fullySpecified:true}}]}e.push({test:/\.wasm$/i,...t});e.push({mimetype:"application/wasm",...t})}return e})};const m=(e,{context:t,target:n,outputModule:s,development:o})=>{const u=e=>{const t=typeof e==="object"&&e&&!Array.isArray(e)&&"type"in e?e.name:e;if(Array.isArray(t)){return t.join(".")}else if(typeof t==="object"){return u(t.root)}else if(typeof t==="string"){return t}return""};c(e,"uniqueName",()=>{const n=u(e.library);if(n)return n;try{const e=require(`${t}/package.json`);return e.name||""}catch(e){return""}});a(e,"filename","[name].js");c(e,"module",()=>!!s);c(e,"iife",()=>!e.module);a(e,"ecmaVersion",6);a(e,"importFunctionName","import");c(e,"chunkFilename",()=>{const t=e.filename;if(typeof t!=="function"){const e=t.includes("[name]");const n=t.includes("[id]");const r=t.includes("[chunkhash]");const i=t.includes("[contenthash]");if(r||i||e||n)return t;return t.replace(/(^|\/)([^/]*(?:\?|$))/,"$1[id].$2")}return"[id].js"});a(e,"assetModuleFilename","[hash][ext][query]");a(e,"webassemblyModuleFilename","[hash].module.wasm");a(e,"publicPath","");a(e,"compareBeforeEmit",true);a(e,"charset",true);c(e,"hotUpdateFunction",()=>i.toIdentifier("webpackHotUpdate"+i.toIdentifier(e.uniqueName)));c(e,"jsonpFunction",()=>i.toIdentifier("webpackJsonp"+i.toIdentifier(e.uniqueName)));c(e,"chunkCallbackName",()=>i.toIdentifier("webpackChunk"+i.toIdentifier(e.uniqueName)));c(e,"globalObject",()=>{switch(n){case"web":case"electron-renderer":case"node-webkit":return"window";case"webworker":return"self";case"node":case"async-node":case"electron-main":return"global";default:return"self"}});c(e,"devtoolNamespace",()=>e.uniqueName);c(e,"libraryTarget",()=>e.module?"module":"var");c(e,"path",()=>r.join(process.cwd(),"dist"));c(e,"pathinfo",()=>o);a(e,"sourceMapFilename","[file].map[query]");a(e,"hotUpdateChunkFilename","[id].[fullhash].hot-update.js");a(e,"hotUpdateMainFilename","[fullhash].hot-update.json");a(e,"crossOriginLoading",false);c(e,"scriptType",()=>e.module?"module":false);a(e,"chunkLoadTimeout",12e4);a(e,"hashFunction","md4");a(e,"hashDigest","hex");a(e,"hashDigestLength",20);a(e,"strictModuleExceptionHandling",false)};const g=(e,{target:t})=>{if(e===false)return;c(e,"global",()=>{switch(t){case"node":case"async-node":case"electron-main":return false;default:return true}});c(e,"__filename",()=>{switch(t){case"node":case"async-node":case"electron-main":return false;default:return"mock"}});c(e,"__dirname",()=>{switch(t){case"node":case"async-node":case"electron-main":return false;default:return"mock"}})};const y=(e,{production:t})=>{if(e===false)return;a(e,"maxAssetSize",25e4);a(e,"maxEntrypointSize",25e4);c(e,"hints",()=>t?"warning":false)};const v=(e,{production:t,development:r,records:i})=>{a(e,"removeAvailableModules",false);a(e,"removeEmptyChunks",true);a(e,"mergeDuplicateChunks",true);a(e,"flagIncludedChunks",t);c(e,"moduleIds",()=>{if(t)return"deterministic";if(r)return"named";return"natural"});c(e,"chunkIds",()=>{if(t)return"deterministic";if(r)return"named";return"natural"});a(e,"sideEffects",true);a(e,"providedExports",true);a(e,"usedExports",t);a(e,"innerGraph",t);a(e,"mangleExports",t);a(e,"concatenateModules",t);a(e,"runtimeChunk",false);a(e,"emitOnErrors",!t);a(e,"checkWasmTypes",t);a(e,"mangleWasmImports",false);a(e,"portableRecords",i);a(e,"realContentHash",t);a(e,"minimize",t);u(e,"minimizer",()=>[{apply:e=>{const t=n(96013);new t({terserOptions:{compress:{passes:2}}}).apply(e)}}]);c(e,"nodeEnv",()=>{if(t)return"production";if(r)return"development";return false});const{splitChunks:s}=e;if(s){a(s,"hidePathInfo",t);a(s,"chunks","async");a(s,"usedExports",true);a(s,"minChunks",1);c(s,"minSize",()=>t?2e4:1e4);c(s,"minRemainingSize",()=>r?0:undefined);c(s,"enforceSizeThreshold",()=>t?5e4:3e4);c(s,"maxAsyncRequests",()=>t?30:Infinity);c(s,"maxInitialRequests",()=>t?30:Infinity);a(s,"automaticNameDelimiter","-");const{cacheGroups:e}=s;c(e,"default",()=>({idHint:"",reuseExistingChunk:true,minChunks:2,priority:-20}));c(e,"defaultVendors",()=>({idHint:"vendors",reuseExistingChunk:true,test:o,priority:-10}))}};const _=({cache:e,context:t,webTarget:n,target:r,mode:i})=>{const s=["webpack"];s.push(i==="development"?"development":"production");switch(r){case"webworker":s.push("worker");break;case"node":case"async-node":case"node-webkit":s.push("node");break;case"electron-main":case"electron-preload":s.push("node");s.push("electron");break;case"electron-renderer":s.push("electron");break}const o=[".js",".json",".wasm"];const a=()=>({aliasFields:n?["browser"]:[],mainFields:n?["browser","module","..."]:["module","..."],conditionNames:n?["require","module","browser","..."]:["require","module","..."],extensions:[...o]});const c=()=>({aliasFields:n?["browser"]:[],mainFields:n?["browser","module","..."]:["module","..."],conditionNames:n?["import","module","browser","..."]:["import","module","..."],extensions:[...o]});const u={cache:e,modules:["node_modules"],conditionNames:s,mainFiles:["index"],extensions:[],aliasFields:[],exportsFields:["exports"],roots:[t],mainFields:["main"],byDependency:{wasm:c(),esm:c(),commonjs:a(),amd:a(),loader:a(),unknown:a(),undefined:a()}};return u};const b=({cache:e})=>{const t={cache:e,conditionNames:["loader","require","node"],exportsFields:["exports"],mainFields:["loader","main"],extensions:[".js"],mainFiles:["index"]};return t};const E=e=>{a(e,"level","info");a(e,"debug",false)};t.applyWebpackOptionsBaseDefaults=l;t.applyWebpackOptionsDefaults=f},96590:(e,t,n)=>{"use strict";const r=n(31669);const i=n(76174);const s=r.deprecate((e,t)=>{if(t!==undefined&&!e===!t){throw new Error("Conflicting use of 'optimization.noEmitOnErrors' and 'optimization.emitOnErrors'. Remove deprecated 'optimization.noEmitOnErrors' from config.")}return!e},"optimization.noEmitOnErrors is deprecated in favor of optimization.emitOnErrors","DEP_WEBPACK_CONFIGURATION_OPTIMIZATION_NO_EMIT_ON_ERRORS");const o=(e,t)=>e===undefined?t({}):t(e);const a=(e,t)=>e===undefined?undefined:t(e);const c=(e,t)=>Array.isArray(e)?t(e):t([]);const u=(e,t)=>Array.isArray(e)?t(e):undefined;const l=(e,t)=>e===undefined?{}:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{});const f=e=>{return{amd:e.amd,bail:e.bail,cache:a(e.cache,e=>{if(e===false)return false;if(e===true){return{type:"memory"}}switch(e.type){case"filesystem":return{type:"filesystem",buildDependencies:o(e.buildDependencies,e=>({...e})),cacheDirectory:e.cacheDirectory,cacheLocation:e.cacheLocation,hashAlgorithm:e.hashAlgorithm,idleTimeout:e.idleTimeout,idleTimeoutForInitialStore:e.idleTimeoutForInitialStore,immutablePaths:u(e.immutablePaths,e=>[...e]),managedPaths:u(e.managedPaths,e=>[...e]),name:e.name,store:e.store,version:e.version};case undefined:case"memory":return{type:"memory",immutablePaths:u(e.immutablePaths,e=>[...e]),managedPaths:u(e.managedPaths,e=>[...e])};default:throw new Error(`Not implemented cache.type ${e.type}`)}}),context:e.context,dependencies:e.dependencies,devServer:a(e.devServer,e=>({...e})),devtool:e.devtool,entry:e.entry===undefined?{main:{}}:typeof e.entry==="function"?(e=>()=>Promise.resolve().then(e).then(p))(e.entry):p(e.entry),experiments:o(e.experiments,e=>({...e})),externals:e.externals,externalsType:e.externalsType,infrastructureLogging:o(e.infrastructureLogging,e=>({...e})),loader:e.loader,mode:e.mode,module:o(e.module,e=>({...e,rules:c(e.rules,e=>[...e])})),name:e.name,node:o(e.node,e=>e&&{...e}),optimization:o(e.optimization,e=>{return{...e,runtimeChunk:d(e.runtimeChunk),splitChunks:o(e.splitChunks,e=>e&&{...e,cacheGroups:o(e.cacheGroups,e=>({...e}))}),emitOnErrors:e.noEmitOnErrors!==undefined?s(e.noEmitOnErrors,e.emitOnErrors):e.emitOnErrors}}),output:o(e.output,e=>{const{library:t}=e;const n=t;const r=typeof t==="object"&&t&&!Array.isArray(t)&&"type"in t?t:n||e.libraryTarget?{type:"var",name:n}:undefined;const s={assetModuleFilename:e.assetModuleFilename,charset:e.charset,chunkCallbackName:e.chunkCallbackName,chunkFilename:e.chunkFilename,chunkLoadTimeout:e.chunkLoadTimeout,compareBeforeEmit:e.compareBeforeEmit,crossOriginLoading:e.crossOriginLoading,devtoolFallbackModuleFilenameTemplate:e.devtoolFallbackModuleFilenameTemplate,devtoolModuleFilenameTemplate:e.devtoolModuleFilenameTemplate,devtoolNamespace:e.devtoolNamespace,ecmaVersion:i(e.ecmaVersion),enabledLibraryTypes:c(e.enabledLibraryTypes,e=>[...e]),filename:e.filename,globalObject:e.globalObject,hashDigest:e.hashDigest,hashDigestLength:e.hashDigestLength,hashFunction:e.hashFunction,hashSalt:e.hashSalt,hotUpdateChunkFilename:e.hotUpdateChunkFilename,hotUpdateFunction:e.hotUpdateFunction,hotUpdateMainFilename:e.hotUpdateMainFilename,iife:e.iife,importFunctionName:e.importFunctionName,jsonpFunction:e.jsonpFunction,scriptType:e.scriptType,library:r&&{type:e.libraryTarget!==undefined?e.libraryTarget:r.type,auxiliaryComment:e.auxiliaryComment!==undefined?e.auxiliaryComment:r.auxiliaryComment,export:e.libraryExport!==undefined?e.libraryExport:r.export,name:r.name,umdNamedDefine:e.umdNamedDefine!==undefined?e.umdNamedDefine:r.umdNamedDefine},module:e.module,path:e.path,pathinfo:e.pathinfo,publicPath:e.publicPath,sourceMapFilename:e.sourceMapFilename,sourcePrefix:e.sourcePrefix,strictModuleExceptionHandling:e.strictModuleExceptionHandling,uniqueName:e.uniqueName,webassemblyModuleFilename:e.webassemblyModuleFilename};return s}),parallelism:e.parallelism,performance:a(e.performance,e=>{if(e===false)return false;return{...e}}),plugins:c(e.plugins,e=>[...e]),profile:e.profile,recordsInputPath:e.recordsInputPath!==undefined?e.recordsInputPath:e.recordsPath,recordsOutputPath:e.recordsOutputPath!==undefined?e.recordsOutputPath:e.recordsPath,resolve:o(e.resolve,e=>({...e,byDependency:l(e.byDependency,e=>({...e}))})),resolveLoader:o(e.resolveLoader,e=>({...e})),stats:o(e.stats,e=>{if(e===false){return{preset:"none"}}if(e===true){return{preset:"normal"}}if(typeof e==="string"){return{preset:e}}return{...e}}),target:e.target,watch:e.watch,watchOptions:o(e.watchOptions,e=>({...e}))}};const p=e=>{if(typeof e==="string"){return{main:{import:[e]}}}if(Array.isArray(e)){return{main:{import:e}}}const t={};for(const n of Object.keys(e)){const r=e[n];if(typeof r==="string"){t[n]={import:[r]}}else if(Array.isArray(r)){t[n]={import:r}}else{t[n]={import:r.import&&(Array.isArray(r.import)?r.import:[r.import]),filename:r.filename,runtime:r.runtime,dependOn:r.dependOn&&(Array.isArray(r.dependOn)?r.dependOn:[r.dependOn]),library:r.library}}}return t};const d=e=>{if(e===undefined)return undefined;if(e===false)return false;if(e==="single"){return{name:()=>"runtime"}}if(e===true||e==="multiple"){return{name:e=>`runtime~${e.name}`}}const{name:t}=e;return{name:typeof t==="function"?t:()=>t}};t.getNormalizedWebpackOptions=f},76041:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);class ContainerEntryDependency extends r{constructor(e,t,n){super();this.name=e;this.exposes=t;this.shareScope=n}getResourceIdentifier(){return`container-entry-${this.name}`}get type(){return"container entry"}get category(){return"esm"}}i(ContainerEntryDependency,"webpack/lib/container/ContainerEntryDependency");e.exports=ContainerEntryDependency},89591:(e,t,n)=>{"use strict";const{OriginalSource:r}=n(48135);const i=n(98221);const s=n(53453);const o=n(76150);const a=n(58159);const c=n(56202);const u=n(4523);const l=new Set(["javascript"]);class ContainerEntryModule extends s{constructor(e,t,n){super("javascript/dynamic",null);this._name=e;this._exposes=t;this._shareScope=n}getSourceTypes(){return l}identifier(){return`container entry (${this._shareScope}) ${JSON.stringify(this._exposes)}`}readableIdentifier(e){return`container entry`}libIdent(e){return`webpack/container/entry/${this._name}`}needBuild(e,t){return t(null,!this.buildMeta)}build(e,t,n,r,s){this.buildMeta={};this.buildInfo={strict:true};this.clearDependenciesAndBlocks();for(const[e,t]of this._exposes){const n=new i(undefined,{name:e},t.import[t.import.length-1]);let r=0;for(const i of t.import){const t=new u(e,i);t.loc={name:e,index:r++};n.addDependency(t)}this.addBlock(n)}s()}codeGeneration({moduleGraph:e,chunkGraph:t,runtimeTemplate:n}){const i=new Map;const s=new Set([o.definePropertyGetters,o.hasOwnProperty,o.exports]);const c=[];for(const r of this.blocks){const{dependencies:i}=r;const o=i.map(t=>{const n=t;return{name:n.exposedName,module:e.getModule(n),request:n.userRequest}});let a;if(o.some(e=>!e.module)){a=n.throwMissingModuleErrorBlock({request:o.map(e=>e.request).join(", ")})}else{a=`return ${n.blockPromise({block:r,message:"",chunkGraph:t,runtimeRequirements:s})}.then(${n.returningFunction(n.returningFunction(`(${o.map(({module:e,request:r})=>n.moduleRaw({module:e,chunkGraph:t,request:r,weak:false,runtimeRequirements:s})).join(", ")})`))});`}c.push(`${JSON.stringify(o[0].name)}: ${n.basicFunction("",a)}`)}const u=a.asString([`var moduleMap = {`,a.indent(c.join(",\n")),"};",`var get = ${n.basicFunction("module",["return (",a.indent([`${o.hasOwnProperty}(moduleMap, module)`,a.indent(["? moduleMap[module]()",`: Promise.resolve().then(${n.basicFunction("","throw new Error('Module \"' + module + '\" does not exist in container.');")})`])]),");"])};`,`var init = ${n.basicFunction("shareScope",[`var oldScope = ${o.shareScopeMap}[${JSON.stringify(this._shareScope)}];`,`var name = ${JSON.stringify(this._shareScope)}`,`if(oldScope && oldScope !== shareScope) throw new Error("Container initialization failed as it has already been initialized with a different share scope");`,`${o.shareScopeMap}[name] = shareScope;`,`return ${o.initializeSharing}(name);`])};`,"","// This exports getters to disallow modifications",`${o.definePropertyGetters}(exports, {`,a.indent([`get: ${n.returningFunction("get")},`,`init: ${n.returningFunction("init")}`]),"});"]);i.set("javascript",new r(u,"webpack/container-entry"));return{sources:i,runtimeRequirements:s}}size(e){return 42}serialize(e){const{write:t}=e;t(this._name);t(this._exposes);t(this._shareScope);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new ContainerEntryModule(t(),t(),t());n.deserialize(e);return n}}c(ContainerEntryModule,"webpack/lib/container/ContainerEntryModule");e.exports=ContainerEntryModule},76912:(e,t,n)=>{"use strict";const r=n(40674);const i=n(89591);e.exports=class ContainerEntryModuleFactory extends r{create({dependencies:[e]},t){const n=e;t(null,{module:new i(n.name,n.exposes,n.shareScope)})}}},4523:(e,t,n)=>{"use strict";const r=n(79983);const i=n(56202);class ContainerExposedDependency extends r{constructor(e,t){super(t);this.exposedName=e}get type(){return"container exposed"}get category(){return"esm"}getResourceIdentifier(){return`exposed dependency ${this.exposedName}=${this.request}`}serialize(e){e.write(this.exposedName);super.serialize(e)}deserialize(e){this.exposedName=e.read();super.deserialize(e)}}i(ContainerExposedDependency,"webpack/lib/container/ContainerExposedDependency");e.exports=ContainerExposedDependency},10419:(e,t,n)=>{"use strict";const r=n(15235);const i=n(19593);const s=n(76041);const o=n(76912);const a=n(4523);const{parseOptions:c}=n(97264);const u="ContainerPlugin";class ContainerPlugin{constructor(e){r(i,e,{name:"Container Plugin"});this._options={name:e.name,shareScope:e.shareScope||"default",library:e.library||{type:"var",name:e.name},filename:e.filename||undefined,exposes:c(e.exposes,e=>({import:Array.isArray(e)?e:[e]}),e=>({import:Array.isArray(e.import)?e.import:[e.import]}))}}apply(e){const{name:t,exposes:n,shareScope:r,filename:i,library:c}=this._options;e.options.output.enabledLibraryTypes.push(c.type);e.hooks.make.tapAsync(u,(e,o)=>{const a=new s(t,n,r);a.loc={name:t};e.addEntry(e.options.context,a,{name:t,filename:i,library:c},e=>{if(e)return o(e);o()})});e.hooks.thisCompilation.tap(u,(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(s,new o);e.dependencyFactories.set(a,t)})}}e.exports=ContainerPlugin},68839:(e,t,n)=>{"use strict";const r=n(15235);const i=n(39101);const s=n(61050);const o=n(76150);const a=n(50940);const c=n(55525);const u=n(68005);const l=n(68679);const f=n(31122);const p=n(44742);const{parseOptions:d}=n(97264);const h="/".charCodeAt(0);class ContainerReferencePlugin{constructor(e){r(i,e,{name:"Container Reference Plugin"});this._remoteType=e.remoteType;this._remotes=d(e.remotes,t=>({external:Array.isArray(t)?t:[t],shareScope:e.shareScope||"default"}),t=>({external:Array.isArray(t.external)?t.external:[t.external],shareScope:t.shareScope||e.shareScope||"default"}))}apply(e){const{_remotes:t,_remoteType:n}=this;const r={};for(const[e,n]of t){let t=0;for(const i of n.external){if(i.startsWith("internal "))continue;r[`webpack/container/reference/${e}${t?`/fallback-${t}`:""}`]=i;t++}}new s(n,r).apply(e);e.hooks.compilation.tap("ContainerReferencePlugin",(e,{normalModuleFactory:n})=>{e.dependencyFactories.set(p,n);e.dependencyFactories.set(c,n);e.dependencyFactories.set(a,new u);n.hooks.factorize.tap("ContainerReferencePlugin",e=>{if(!e.request.includes("!")){for(const[n,r]of t){if(e.request.startsWith(`${n}`)&&(e.request.length===n.length||e.request.charCodeAt(n.length)===h)){return new l(e.request,r.external.map((e,t)=>e.startsWith("internal ")?e.slice(9):`webpack/container/reference/${n}${t?`/fallback-${t}`:""}`),`.${e.request.slice(n.length)}`,r.shareScope)}}}});e.hooks.runtimeRequirementInTree.for(o.ensureChunkHandlers).tap("ContainerReferencePlugin",(t,n)=>{n.add(o.module);n.add(o.moduleFactoriesAddOnly);n.add(o.hasOwnProperty);n.add(o.initializeSharing);n.add(o.shareScopeMap);e.addRuntimeModule(t,new f)})})}}e.exports=ContainerReferencePlugin},50940:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);class FallbackDependency extends r{constructor(e){super();this.requests=e}getResourceIdentifier(){return`fallback ${this.requests.join(" ")}`}get type(){return"fallback"}get category(){return"esm"}serialize(e){const{write:t}=e;t(this.requests);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new FallbackDependency(t());n.deserialize(e);return n}}i(FallbackDependency,"webpack/lib/container/FallbackDependency");e.exports=FallbackDependency},55525:(e,t,n)=>{"use strict";const r=n(79983);const i=n(56202);class FallbackItemDependency extends r{constructor(e){super(e)}get type(){return"fallback item"}get category(){return"esm"}}i(FallbackItemDependency,"webpack/lib/container/FallbackItemDependency");e.exports=FallbackItemDependency},13386:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(53453);const s=n(76150);const o=n(58159);const a=n(56202);const c=n(55525);const u=new Set(["javascript"]);const l=new Set([s.module]);class FallbackModule extends i{constructor(e){super("fallback-module");this.requests=e;this._identifier=`fallback ${this.requests.join(" ")}`}identifier(){return this._identifier}readableIdentifier(e){return this._identifier}libIdent(e){return`webpack/container/fallback/${this.requests[0]}/and ${this.requests.length-1} more`}chunkCondition(e,{chunkGraph:t}){return t.getNumberOfEntryModules(e)>0}needBuild(e,t){t(null,!this.buildInfo)}build(e,t,n,r,i){this.buildMeta={};this.buildInfo={strict:true};this.clearDependenciesAndBlocks();for(const e of this.requests)this.addDependency(new c(e));i()}size(e){return this.requests.length*5+42}getSourceTypes(){return u}codeGeneration({runtimeTemplate:e,moduleGraph:t,chunkGraph:n}){const i=this.dependencies.map(e=>n.getModuleId(t.getModule(e)));const s=o.asString([`var ids = ${JSON.stringify(i)};`,"var error, result, i = 0;",`var loop = ${e.basicFunction("next",["while(i < ids.length) {",o.indent(["try { next = __webpack_require__(ids[i++]); } catch(e) { return handleError(e); }","if(next) return next.then ? next.then(handleResult, handleError) : handleResult(next);"]),"}","if(error) throw error;"])}`,`var handleResult = ${e.basicFunction("result",["if(result) return result;","return loop();"])};`,`var handleError = ${e.basicFunction("e",["error = e;","return loop();"])};`,"module.exports = loop();"]);const a=new Map;a.set("javascript",new r(s));return{sources:a,runtimeRequirements:l}}serialize(e){const{write:t}=e;t(this.requests);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new FallbackModule(t());n.deserialize(e);return n}}a(FallbackModule,"webpack/lib/container/FallbackModule");e.exports=FallbackModule},68005:(e,t,n)=>{"use strict";const r=n(40674);const i=n(13386);e.exports=class FallbackModuleFactory extends r{create({dependencies:[e]},t){const n=e;t(null,{module:new i(n.requests)})}}},8019:(e,t,n)=>{"use strict";const r=n(15235);const i=n(7265);const s=n(16471);const o=n(10419);const a=n(68839);class ModuleFederationPlugin{constructor(e){r(i,e,{name:"Module Federation Plugin"});this._options=e}apply(e){const{_options:t}=this;const n=t.library||{type:"var",name:t.name};const r=t.remoteType||(t.library?t.library.type:"script");if(n&&!e.options.output.enabledLibraryTypes.includes(n.type)){e.options.output.enabledLibraryTypes.push(n.type)}e.hooks.afterPlugins.tap("ModuleFederationPlugin",()=>{if(t.exposes&&(Array.isArray(t.exposes)?t.exposes.length>0:Object.keys(t.exposes).length>0)){new o({name:t.name,library:n,filename:t.filename,exposes:t.exposes}).apply(e)}if(t.remotes&&(Array.isArray(t.remotes)?t.remotes.length>0:Object.keys(t.remotes).length>0)){new a({remoteType:r,remotes:t.remotes}).apply(e)}if(t.shared){new s({shared:t.shared,shareScope:t.shareScope}).apply(e)}})}}e.exports=ModuleFederationPlugin},68679:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(53453);const s=n(76150);const o=n(56202);const a=n(50940);const c=n(44742);const u=new Set(["remote","share-init"]);const l=new Set([s.module]);class RemoteModule extends i{constructor(e,t,n,r){super("remote-module");this.request=e;this.externalRequests=t;this.internalRequest=n;this.shareScope=r;this._identifier=`remote (${r}) ${this.externalRequests.join(" ")} ${this.internalRequest}`}identifier(){return this._identifier}readableIdentifier(e){return`remote ${this.request}`}libIdent(e){return`webpack/container/remote/${this.request}`}needBuild(e,t){t(null,!this.buildInfo)}build(e,t,n,r,i){this.buildMeta={};this.buildInfo={strict:true};this.clearDependenciesAndBlocks();if(this.externalRequests.length===1){this.addDependency(new c(this.externalRequests[0]))}else{this.addDependency(new a(this.externalRequests))}i()}size(e){return 6}getSourceTypes(){return u}nameForCondition(){return this.request}codeGeneration({runtimeTemplate:e,moduleGraph:t,chunkGraph:n}){const i=t.getModule(this.dependencies[0]);const s=i&&n.getModuleId(i);const o=new Map;o.set("remote",new r(""));const a=new Map;a.set("share-init",[{shareScope:this.shareScope,initStage:20,init:s===undefined?"":`initExternal(${JSON.stringify(s)});`}]);return{sources:o,data:a,runtimeRequirements:l}}serialize(e){const{write:t}=e;t(this.request);t(this.externalRequests);t(this.internalRequest);t(this.shareScope);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new RemoteModule(t(),t(),t(),t());n.deserialize(e);return n}}o(RemoteModule,"webpack/lib/container/RemoteModule");e.exports=RemoteModule},31122:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class RemoteRuntimeModule extends i{constructor(){super("remotes loading")}generate(){const{runtimeTemplate:e,chunkGraph:t,moduleGraph:n}=this.compilation;const i={};const o={};for(const e of this.chunk.getAllAsyncChunks()){const r=t.getChunkModulesIterableBySourceType(e,"remote");if(!r)continue;const s=i[e.id]=[];for(const e of r){const r=e;const i=r.internalRequest;const a=t.getModuleId(r);const c=r.shareScope;const u=r.dependencies[0];const l=n.getModule(u);const f=l&&t.getModuleId(l);s.push(a);o[a]=[c,i,f]}}return s.asString(["var installedModules = {};",`var chunkMapping = ${JSON.stringify(i,null,"\t")};`,`var idToExternalAndNameMapping = ${JSON.stringify(o,null,"\t")};`,`${r.ensureChunkHandlers}.remotes = ${e.basicFunction("chunkId, promises",[`if(${r.hasOwnProperty}(chunkMapping, chunkId)) {`,s.indent([`chunkMapping[chunkId].forEach(${e.basicFunction("id",[`if(installedModules[id]) return promises.push(installedModules[id]);`,"var data = idToExternalAndNameMapping[id];",`var onError = ${e.basicFunction("error",['if(!error) error = new Error("Container missing");','if(typeof error.message === "string")',s.indent(`error.message += '\\nwhile loading "' + data[1] + '" from ' + data[2];`),`__webpack_modules__[id] = ${e.basicFunction("",["throw error;"])}`,"installedModules[id] = 0;"])};`,`var handleFunction = ${e.basicFunction("fn, key, data, next, first",["try {",s.indent(["var promise = fn(key, data);","if(promise && promise.then) {",s.indent([`var p = promise.then(${e.returningFunction("next(result, data)","result")}, onError);`,`if(first) promises.push(installedModules[id] = p); else return p;`]),"} else {",s.indent(["return next(promise, data, first);"]),"}"]),"} catch(error) {",s.indent(["onError(error);"]),"}"])}`,`var onExternal = ${e.returningFunction(`external ? handleFunction(${r.initializeSharing}, data[0], external, onInitialized, first) : onError()`,"external, _, first")};`,`var onInitialized = ${e.returningFunction(`handleFunction(external.get, data[1], external, onFactory, first)`,"_, external, first")};`,`var onFactory = ${e.basicFunction("factory",["installedModules[id] = 1;",`__webpack_modules__[id] = ${e.basicFunction("module",["module.exports = factory();"])}`])};`,"handleFunction(__webpack_require__, data[2], 1, onExternal, 1);"])});`]),"}"])}`])}}e.exports=RemoteRuntimeModule},44742:(e,t,n)=>{"use strict";const r=n(79983);const i=n(56202);class RemoteToExternalDependency extends r{constructor(e){super(e)}get type(){return"remote to external"}get category(){return"esm"}}i(RemoteToExternalDependency,"webpack/lib/container/RemoteToExternalDependency");e.exports=RemoteToExternalDependency},97264:(e,t)=>{"use strict";const n=(e,t,n,r)=>{const i=e=>{for(const n of e){if(typeof n==="string"){r(n,t(n,n))}else if(n&&typeof n==="object"){s(n)}else{throw new Error("Unexpected options format")}}};const s=e=>{for(const[i,s]of Object.entries(e)){if(typeof s==="string"||Array.isArray(s)){r(i,t(s,i))}else{r(i,n(s,i))}}};if(!e){return}else if(Array.isArray(e)){i(e)}else if(typeof e==="object"){s(e)}else{throw new Error("Unexpected options format")}};const r=(e,t,r)=>{const i=[];n(e,t,r,(e,t)=>{i.push([e,t])});return i};const i=(e,t)=>{const r={};n(t,e=>e,e=>e,(t,n)=>{r[t.startsWith("./")?`${e}${t.slice(1)}`:`${e}/${t}`]=n});return r};t.parseOptions=r;t.scope=i},26802:(e,t,n)=>{"use strict";const{Tracer:r}=n(25954);const i=n(15235);const s=n(8462);const{dirname:o,mkdirpSync:a}=n(95396);let c=undefined;try{c=n(57012)}catch(e){console.log("Unable to CPU profile in < node 8.0")}class Profiler{constructor(e){this.session=undefined;this.inspector=e}hasSession(){return this.session!==undefined}startProfiling(){if(this.inspector===undefined){return Promise.resolve()}try{this.session=new c.Session;this.session.connect()}catch(e){this.session=undefined;return Promise.resolve()}return Promise.all([this.sendCommand("Profiler.setSamplingInterval",{interval:100}),this.sendCommand("Profiler.enable"),this.sendCommand("Profiler.start")])}sendCommand(e,t){if(this.hasSession()){return new Promise((n,r)=>{return this.session.post(e,t,(e,t)=>{if(e!==null){r(e)}else{n(t)}})})}else{return Promise.resolve()}}destroy(){if(this.hasSession()){this.session.disconnect()}return Promise.resolve()}stopProfiling(){return this.sendCommand("Profiler.stop")}}const u=(e,t)=>{const n=new r({noStream:true});const i=new Profiler(c);if(/\/|\\/.test(t)){const n=o(e,t);a(e,n)}const s=e.createWriteStream(t);let u=0;n.pipe(s);n.instantEvent({name:"TracingStartedInPage",id:++u,cat:["disabled-by-default-devtools.timeline"],args:{data:{sessionId:"-1",page:"0xfff",frames:[{frame:"0xfff",url:"webpack",name:""}]}}});n.instantEvent({name:"TracingStartedInBrowser",id:++u,cat:["disabled-by-default-devtools.timeline"],args:{data:{sessionId:"-1"}}});return{trace:n,counter:u,profiler:i,end:e=>{s.on("close",()=>{e()});n.push(null)}}};const l="ProfilingPlugin";class ProfilingPlugin{constructor(e={}){i(s,e,{name:"Profiling Plugin",baseDataPath:"options"});this.outputPath=e.outputPath||"events.json"}apply(e){const t=u(e.intermediateFileSystem,this.outputPath);t.profiler.startProfiling();Object.keys(e.hooks).forEach(n=>{e.hooks[n].intercept(h("Compiler",t)(n))});Object.keys(e.resolverFactory.hooks).forEach(n=>{e.resolverFactory.hooks[n].intercept(h("Resolver",t)(n))});e.hooks.compilation.tap(l,(e,{normalModuleFactory:n,contextModuleFactory:r})=>{f(e,t,"Compilation");f(n,t,"Normal Module Factory");f(r,t,"Context Module Factory");p(n,t);d(e,t)});e.hooks.done.tapAsync({name:l,stage:Infinity},(e,n)=>{t.profiler.stopProfiling().then(e=>{if(e===undefined){t.profiler.destroy();t.trace.flush();t.end(n);return}const r=e.profile.startTime;const i=e.profile.endTime;t.trace.completeEvent({name:"TaskQueueManager::ProcessTaskFromWorkQueue",id:++t.counter,cat:["toplevel"],ts:r,args:{src_file:"../../ipc/ipc_moji_bootstrap.cc",src_func:"Accept"}});t.trace.completeEvent({name:"EvaluateScript",id:++t.counter,cat:["devtools.timeline"],ts:r,dur:i-r,args:{data:{url:"webpack",lineNumber:1,columnNumber:1,frame:"0xFFF"}}});t.trace.instantEvent({name:"CpuProfile",id:++t.counter,cat:["disabled-by-default-devtools.timeline"],ts:i,args:{data:{cpuProfile:e.profile}}});t.profiler.destroy();t.trace.flush();t.end(n)})})}}const f=(e,t,n)=>{if(Reflect.has(e,"hooks")){Object.keys(e.hooks).forEach(r=>{const i=e.hooks[r];if(!i._fakeHook){i.intercept(h(n,t)(r))}})}};const p=(e,t)=>{const n=["javascript/auto","javascript/dynamic","javascript/esm","json","webassembly/async","webassembly/sync"];n.forEach(n=>{e.hooks.parser.for(n).tap("ProfilingPlugin",(e,n)=>{f(e,t,"Parser")})})};const d=(e,t)=>{f({hooks:n(18161).getCompilationHooks(e)},t,"JavascriptModulesPlugin")};const h=(e,t)=>e=>({register:({name:n,type:r,context:i,fn:s})=>{const o=m(e,t,{name:n,type:r,fn:s});return{name:n,type:r,context:i,fn:o}}});const m=(e,t,{name:n,type:r,fn:i})=>{const s=["blink.user_timing"];switch(r){case"promise":return(...e)=>{const r=++t.counter;t.trace.begin({name:n,id:r,cat:s});const o=i(...e);return o.then(e=>{t.trace.end({name:n,id:r,cat:s});return e})};case"async":return(...e)=>{const r=++t.counter;t.trace.begin({name:n,id:r,cat:s});const o=e.pop();i(...e,(...e)=>{t.trace.end({name:n,id:r,cat:s});o(...e)})};case"sync":return(...e)=>{const r=++t.counter;if(n===l){return i(...e)}t.trace.begin({name:n,id:r,cat:s});let o;try{o=i(...e)}catch(e){t.trace.end({name:n,id:r,cat:s});throw e}t.trace.end({name:n,id:r,cat:s});return o};default:break}};e.exports=ProfilingPlugin;e.exports.Profiler=Profiler},46960:(e,t,n)=>{"use strict";const r=n(76150);const i=n(56202);const s=n(12197);const o={f:{definition:"var __WEBPACK_AMD_DEFINE_RESULT__;",content:`!(__WEBPACK_AMD_DEFINE_RESULT__ = (#).call(exports, __webpack_require__, exports, module),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,requests:[r.require,r.exports,r.module]},o:{definition:"",content:"!(module.exports = #)",requests:[r.module]},of:{definition:"var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;",content:`!(__WEBPACK_AMD_DEFINE_FACTORY__ = (#),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,requests:[r.require,r.exports,r.module]},af:{definition:"var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;",content:`!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, __WEBPACK_AMD_DEFINE_RESULT__ = (#).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,requests:[r.exports,r.module]},ao:{definition:"",content:"!(#, module.exports = #)",requests:[r.module]},aof:{definition:"var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;",content:`!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, __WEBPACK_AMD_DEFINE_FACTORY__ = (#),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`,requests:[r.exports,r.module]},lf:{definition:"var XXX, XXXmodule;",content:"!(XXXmodule = { id: YYY, exports: {}, loaded: false }, XXX = #.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule), XXXmodule.loaded = true, XXX === undefined && (XXX = XXXmodule.exports))",requests:[r.require,r.module]},lo:{definition:"var XXX;",content:"!(XXX = #)",requests:[]},lof:{definition:"var XXX, XXXfactory, XXXmodule;",content:"!(XXXfactory = (#), (typeof XXXfactory === 'function' ? (XXXmodule = { id: YYY, exports: {}, loaded: false }), (XXX = XXXfactory.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule)), (XXXmodule.loaded = true), XXX === undefined && (XXX = XXXmodule.exports) : XXX = XXXfactory))",requests:[r.require,r.module]},laf:{definition:"var __WEBPACK_AMD_DEFINE_ARRAY__, XXX, XXXexports;",content:"!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, XXX = (#).apply(XXXexports = {}, __WEBPACK_AMD_DEFINE_ARRAY__), XXX === undefined && (XXX = XXXexports))",requests:[]},lao:{definition:"var XXX;",content:"!(#, XXX = #)",requests:[]},laof:{definition:"var XXXarray, XXXfactory, XXXexports, XXX;",content:`!(XXXarray = #, XXXfactory = (#),\n\t\t(typeof XXXfactory === 'function' ?\n\t\t\t((XXX = XXXfactory.apply(XXXexports = {}, XXXarray)), XXX === undefined && (XXX = XXXexports)) :\n\t\t\t(XXX = XXXfactory)\n\t\t))`,requests:[]}};class AMDDefineDependency extends s{constructor(e,t,n,r,i){super();this.range=e;this.arrayRange=t;this.functionRange=n;this.objectRange=r;this.namedModule=i;this.localModule=null}get type(){return"amd define"}serialize(e){const{write:t}=e;t(this.range);t(this.arrayRange);t(this.functionRange);t(this.objectRange);t(this.namedModule);t(this.localModule);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.arrayRange=t();this.functionRange=t();this.objectRange=t();this.namedModule=t();this.localModule=t();super.deserialize(e)}}i(AMDDefineDependency,"webpack/lib/dependencies/AMDDefineDependency");AMDDefineDependency.Template=class AMDDefineDependencyTemplate extends s.Template{apply(e,t,{runtimeRequirements:n}){const r=e;const i=this.branch(r);const{definition:s,content:a,requests:c}=o[i];for(const e of c){n.add(e)}this.replace(r,t,s,a)}localModuleVar(e){return e.localModule&&e.localModule.used&&e.localModule.variableName()}branch(e){const t=this.localModuleVar(e)?"l":"";const n=e.arrayRange?"a":"";const r=e.objectRange?"o":"";const i=e.functionRange?"f":"";return t+n+r+i}replace(e,t,n,r){const i=this.localModuleVar(e);if(i){r=r.replace(/XXX/g,i.replace(/\$/g,"$$$$"));n=n.replace(/XXX/g,i.replace(/\$/g,"$$$$"))}if(e.namedModule){r=r.replace(/YYY/g,JSON.stringify(e.namedModule))}const s=r.split("#");if(n)t.insert(0,n);let o=e.range[0];if(e.arrayRange){t.replace(o,e.arrayRange[0]-1,s.shift());o=e.arrayRange[1]}if(e.objectRange){t.replace(o,e.objectRange[0]-1,s.shift());o=e.objectRange[1]}else if(e.functionRange){t.replace(o,e.functionRange[0]-1,s.shift());o=e.functionRange[1]}t.replace(o,e.range[1]-1,s.shift());if(s.length>0)throw new Error("Implementation error")}};e.exports=AMDDefineDependency},98915:(e,t,n)=>{"use strict";const r=n(76150);const i=n(46960);const s=n(95715);const o=n(38145);const a=n(29022);const c=n(66298);const u=n(95601);const l=n(28140);const f=n(14229);const{addLocalModule:p,getLocalModule:d}=n(61701);const h=e=>{if(e.type!=="CallExpression")return false;if(e.callee.type!=="MemberExpression")return false;if(e.callee.computed)return false;if(e.callee.object.type!=="FunctionExpression")return false;if(e.callee.property.type!=="Identifier")return false;if(e.callee.property.name!=="bind")return false;return true};const m=e=>{if(e.type==="FunctionExpression")return true;if(e.type==="ArrowFunctionExpression")return true;return false};const g=e=>{if(m(e))return true;if(h(e))return true;return false};class AMDDefineDependencyParserPlugin{constructor(e){this.options=e}apply(e){e.hooks.call.for("define").tap("AMDDefineDependencyParserPlugin",this.processCallDefine.bind(this,e))}processArray(e,t,n,r,i){if(n.isArray()){n.items.forEach((n,s)=>{if(n.isString()&&["require","module","exports"].includes(n.string))r[s]=n.string;const o=this.processItem(e,t,n,i);if(o===undefined){this.processContext(e,t,n)}});return true}else if(n.isConstArray()){const i=[];n.array.forEach((n,s)=>{let o;let a;if(n==="require"){r[s]=n;o="__webpack_require__"}else if(["exports","module"].includes(n)){r[s]=n;o=n}else if(a=d(e.state,n)){a.flagUsed();o=new f(a,undefined,false);o.loc=t.loc;e.state.module.addPresentationalDependency(o)}else{o=this.newRequireItemDependency(n);o.loc=t.loc;o.optional=!!e.scope.inTry;e.state.current.addDependency(o)}i.push(o)});const s=this.newRequireArrayDependency(i,n.range);s.loc=t.loc;s.optional=!!e.scope.inTry;e.state.module.addPresentationalDependency(s);return true}}processItem(e,t,n,i){if(n.isConditional()){n.options.forEach(n=>{const r=this.processItem(e,t,n);if(r===undefined){this.processContext(e,t,n)}});return true}else if(n.isString()){let s,o;if(n.string==="require"){s=new c("__webpack_require__",n.range,[r.require])}else if(n.string==="exports"){s=new c("exports",n.range,[r.exports])}else if(n.string==="module"){s=new c("module",n.range,[r.module])}else if(o=d(e.state,n.string,i)){o.flagUsed();s=new f(o,n.range,false)}else{s=this.newRequireItemDependency(n.string,n.range);s.optional=!!e.scope.inTry;e.state.current.addDependency(s);return true}s.loc=t.loc;e.state.module.addPresentationalDependency(s);return true}}processContext(e,t,n){const r=u.create(o,n.range,n,t,this.options,{category:"amd"},e);if(!r)return;r.loc=t.loc;r.optional=!!e.scope.inTry;e.state.current.addDependency(r);return true}processCallDefine(e,t){let n,r,i,s;switch(t.arguments.length){case 1:if(g(t.arguments[0])){r=t.arguments[0]}else if(t.arguments[0].type==="ObjectExpression"){i=t.arguments[0]}else{i=r=t.arguments[0]}break;case 2:if(t.arguments[0].type==="Literal"){s=t.arguments[0].value;if(g(t.arguments[1])){r=t.arguments[1]}else if(t.arguments[1].type==="ObjectExpression"){i=t.arguments[1]}else{i=r=t.arguments[1]}}else{n=t.arguments[0];if(g(t.arguments[1])){r=t.arguments[1]}else if(t.arguments[1].type==="ObjectExpression"){i=t.arguments[1]}else{i=r=t.arguments[1]}}break;case 3:s=t.arguments[0].value;n=t.arguments[1];if(g(t.arguments[2])){r=t.arguments[2]}else if(t.arguments[2].type==="ObjectExpression"){i=t.arguments[2]}else{i=r=t.arguments[2]}break;default:return}l.bailout(e.state);let o=null;let a=0;if(r){if(m(r)){o=r.params}else if(h(r)){o=r.callee.object.params;a=r.arguments.length-1;if(a<0){a=0}}}let c=new Map;if(n){const r={};const i=e.evaluateExpression(n);const u=this.processArray(e,t,i,r,s);if(!u)return;if(o){o=o.slice(a).filter((t,n)=>{if(r[n]){c.set(t.name,e.getVariableInfo(r[n]));return false}return true})}}else{const t=["require","exports","module"];if(o){o=o.slice(a).filter((n,r)=>{if(t[r]){c.set(n.name,e.getVariableInfo(t[r]));return false}return true})}}let u;if(r&&m(r)){u=e.scope.inTry;e.inScope(o,()=>{for(const[t,n]of c){e.setVariable(t,n)}e.scope.inTry=u;if(r.body.type==="BlockStatement"){e.walkStatement(r.body)}else{e.walkExpression(r.body)}})}else if(r&&h(r)){u=e.scope.inTry;e.inScope(r.callee.object.params.filter(e=>!["require","module","exports"].includes(e.name)),()=>{for(const[t,n]of c){e.setVariable(t,n)}e.scope.inTry=u;if(r.callee.object.body.type==="BlockStatement"){e.walkStatement(r.callee.object.body)}else{e.walkExpression(r.callee.object.body)}});if(r.arguments){e.walkExpressions(r.arguments)}}else if(r||i){e.walkExpression(r||i)}const f=this.newDefineDependency(t.range,n?n.range:null,r?r.range:null,i?i.range:null,s?s:null);f.loc=t.loc;if(s){f.localModule=p(e.state,s)}e.state.module.addPresentationalDependency(f);return true}newDefineDependency(e,t,n,r,s){return new i(e,t,n,r,s)}newRequireArrayDependency(e,t){return new s(e,t)}newRequireItemDependency(e,t){return new a(e,t)}}e.exports=AMDDefineDependencyParserPlugin},19765:(e,t,n)=>{"use strict";const r=n(76150);const{approve:i,evaluateToIdentifier:s,evaluateToString:o,toConstantDependency:a}=n(48472);const c=n(46960);const u=n(98915);const l=n(95715);const f=n(38145);const p=n(19041);const d=n(45167);const h=n(29022);const{AMDDefineRuntimeModule:m,AMDOptionsRuntimeModule:g}=n(29035);const y=n(66298);const v=n(14229);const _=n(12584);class AMDPlugin{constructor(e,t){this.options=e;this.amdOptions=t}apply(e){const t=this.options;const n=this.amdOptions;e.hooks.compilation.tap("AMDPlugin",(e,{contextModuleFactory:b,normalModuleFactory:E})=>{e.dependencyTemplates.set(d,new d.Template);e.dependencyFactories.set(h,E);e.dependencyTemplates.set(h,new h.Template);e.dependencyTemplates.set(l,new l.Template);e.dependencyFactories.set(f,b);e.dependencyTemplates.set(f,new f.Template);e.dependencyTemplates.set(c,new c.Template);e.dependencyTemplates.set(_,new _.Template);e.dependencyTemplates.set(v,new v.Template);e.hooks.runtimeRequirementInModule.for(r.amdDefine).tap("AMDPlugin",(e,t)=>{t.add(r.require)});e.hooks.runtimeRequirementInModule.for(r.amdOptions).tap("AMDPlugin",(e,t)=>{t.add(r.requireScope)});e.hooks.runtimeRequirementInTree.for(r.amdDefine).tap("AMDPlugin",(t,n)=>{e.addRuntimeModule(t,new m)});e.hooks.runtimeRequirementInTree.for(r.amdOptions).tap("AMDPlugin",(t,r)=>{e.addRuntimeModule(t,new g(n))});const w=(e,n)=>{if(n.amd!==undefined&&!n.amd)return;const c=(t,n,i)=>{e.hooks.expression.for(t).tap("AMDPlugin",a(e,r.amdOptions,[r.amdOptions]));e.hooks.evaluateIdentifier.for(t).tap("AMDPlugin",s(t,n,i,true));e.hooks.evaluateTypeof.for(t).tap("AMDPlugin",o("object"));e.hooks.typeof.for(t).tap("AMDPlugin",a(e,JSON.stringify("object")))};new p(t).apply(e);new u(t).apply(e);c("define.amd","define",()=>"amd");c("require.amd","require",()=>["amd"]);c("__webpack_amd_options__","__webpack_amd_options__",()=>[]);e.hooks.expression.for("define").tap("AMDPlugin",t=>{const n=new y(r.amdDefine,t.range,[r.amdDefine]);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true});e.hooks.typeof.for("define").tap("AMDPlugin",a(e,JSON.stringify("function")));e.hooks.evaluateTypeof.for("define").tap("AMDPlugin",o("function"));e.hooks.canRename.for("define").tap("AMDPlugin",i);e.hooks.rename.for("define").tap("AMDPlugin",t=>{const n=new y(r.amdDefine,t.range,[r.amdDefine]);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return false});e.hooks.typeof.for("require").tap("AMDPlugin",a(e,JSON.stringify("function")));e.hooks.evaluateTypeof.for("require").tap("AMDPlugin",o("function"))};E.hooks.parser.for("javascript/auto").tap("AMDPlugin",w);E.hooks.parser.for("javascript/dynamic").tap("AMDPlugin",w)})}}e.exports=AMDPlugin},95715:(e,t,n)=>{"use strict";const r=n(84304);const i=n(56202);const s=n(12197);class AMDRequireArrayDependency extends s{constructor(e,t){super();this.depsArray=e;this.range=t}get type(){return"amd require array"}get category(){return"amd"}serialize(e){const{write:t}=e;t(this.depsArray);t(this.range);super.serialize(e)}deserialize(e){const{read:t}=e;this.depsArray=t();this.range=t();super.deserialize(e)}}i(AMDRequireArrayDependency,"webpack/lib/dependencies/AMDRequireArrayDependency");AMDRequireArrayDependency.Template=class AMDRequireArrayDependencyTemplate extends r{apply(e,t,n){const r=e;const i=this.getContent(r,n);t.replace(r.range[0],r.range[1]-1,i)}getContent(e,t){const n=e.depsArray.map(e=>{return this.contentForDependency(e,t)});return`[${n.join(", ")}]`}contentForDependency(e,{runtimeTemplate:t,moduleGraph:n,chunkGraph:r,runtimeRequirements:i}){if(typeof e==="string"){return e}if(e.localModule){return e.localModule.variableName()}else{return t.moduleExports({module:n.getModule(e),chunkGraph:r,request:e.request,runtimeRequirements:i})}}};e.exports=AMDRequireArrayDependency},38145:(e,t,n)=>{"use strict";const r=n(56202);const i=n(400);class AMDRequireContextDependency extends i{constructor(e,t,n){super(e);this.range=t;this.valueRange=n}get type(){return"amd require context"}get category(){return"amd"}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();super.deserialize(e)}}r(AMDRequireContextDependency,"webpack/lib/dependencies/AMDRequireContextDependency");AMDRequireContextDependency.Template=n(42740);e.exports=AMDRequireContextDependency},83842:(e,t,n)=>{"use strict";const r=n(98221);const i=n(56202);class AMDRequireDependenciesBlock extends r{constructor(e,t){super(null,e,t)}}i(AMDRequireDependenciesBlock,"webpack/lib/dependencies/AMDRequireDependenciesBlock");e.exports=AMDRequireDependenciesBlock},19041:(e,t,n)=>{"use strict";const r=n(76150);const i=n(53558);const s=n(95715);const o=n(38145);const a=n(83842);const c=n(45167);const u=n(29022);const l=n(66298);const f=n(95601);const p=n(14229);const{getLocalModule:d}=n(61701);const h=n(12584);const m=n(36134);class AMDRequireDependenciesBlockParserPlugin{constructor(e){this.options=e}processFunctionArgument(e,t){let n=true;const r=m(t);if(r){e.inScope(r.fn.params.filter(e=>{return!["require","module","exports"].includes(e.name)}),()=>{if(r.fn.body.type==="BlockStatement"){e.walkStatement(r.fn.body)}else{e.walkExpression(r.fn.body)}});e.walkExpressions(r.expressions);if(r.needThis===false){n=false}}else{e.walkExpression(t)}return n}apply(e){e.hooks.call.for("require").tap("AMDRequireDependenciesBlockParserPlugin",this.processCallRequire.bind(this,e))}processArray(e,t,n){if(n.isArray()){for(const r of n.items){const n=this.processItem(e,t,r);if(n===undefined){this.processContext(e,t,r)}}return true}else if(n.isConstArray()){const r=[];for(const i of n.array){let n,s;if(i==="require"){n="__webpack_require__"}else if(["exports","module"].includes(i)){n=i}else if(s=d(e.state,i)){s.flagUsed();n=new p(s,undefined,false);n.loc=t.loc;e.state.module.addPresentationalDependency(n)}else{n=this.newRequireItemDependency(i);n.loc=t.loc;n.optional=!!e.scope.inTry;e.state.current.addDependency(n)}r.push(n)}const i=this.newRequireArrayDependency(r,n.range);i.loc=t.loc;i.optional=!!e.scope.inTry;e.state.module.addPresentationalDependency(i);return true}}processItem(e,t,n){if(n.isConditional()){for(const r of n.options){const n=this.processItem(e,t,r);if(n===undefined){this.processContext(e,t,r)}}return true}else if(n.isString()){let i,s;if(n.string==="require"){i=new l("__webpack_require__",n.string,[r.require])}else if(n.string==="module"){i=new l(e.state.module.buildInfo.moduleArgument,n.range,[r.module])}else if(n.string==="exports"){i=new l(e.state.module.buildInfo.exportsArgument,n.range,[r.exports])}else if(s=d(e.state,n.string)){s.flagUsed();i=new p(s,n.range,false)}else{i=this.newRequireItemDependency(n.string,n.range);i.loc=t.loc;i.optional=!!e.scope.inTry;e.state.current.addDependency(i);return true}i.loc=t.loc;e.state.module.addPresentationalDependency(i);return true}}processContext(e,t,n){const r=f.create(o,n.range,n,t,this.options,{category:"amd"},e);if(!r)return;r.loc=t.loc;r.optional=!!e.scope.inTry;e.state.current.addDependency(r);return true}processArrayForRequestString(e){if(e.isArray()){const t=e.items.map(e=>this.processItemForRequestString(e));if(t.every(Boolean))return t.join(" ")}else if(e.isConstArray()){return e.array.join(" ")}}processItemForRequestString(e){if(e.isConditional()){const t=e.options.map(e=>this.processItemForRequestString(e));if(t.every(Boolean))return t.join("|")}else if(e.isString()){return e.string}}processCallRequire(e,t){let n;let r;let s;let o;const a=e.state.current;if(t.arguments.length>=1){n=e.evaluateExpression(t.arguments[0]);r=this.newRequireDependenciesBlock(t.loc,this.processArrayForRequestString(n));s=this.newRequireDependency(t.range,n.range,t.arguments.length>1?t.arguments[1].range:null,t.arguments.length>2?t.arguments[2].range:null);s.loc=t.loc;r.addDependency(s);e.state.current=r}if(t.arguments.length===1){e.inScope([],()=>{o=this.processArray(e,t,n)});e.state.current=a;if(!o)return;e.state.current.addBlock(r);return true}if(t.arguments.length===2||t.arguments.length===3){try{e.inScope([],()=>{o=this.processArray(e,t,n)});if(!o){const n=new h("unsupported",t.range);a.addPresentationalDependency(n);if(e.state.module){e.state.module.addError(new i("Cannot statically analyse 'require(…, …)' in line "+t.loc.start.line,t.loc))}r=null;return true}s.functionBindThis=this.processFunctionArgument(e,t.arguments[1]);if(t.arguments.length===3){s.errorCallbackBindThis=this.processFunctionArgument(e,t.arguments[2])}}finally{e.state.current=a;if(r)e.state.current.addBlock(r)}return true}}newRequireDependenciesBlock(e,t){return new a(e,t)}newRequireDependency(e,t,n,r){return new c(e,t,n,r)}newRequireItemDependency(e,t){return new u(e,t)}newRequireArrayDependency(e,t){return new s(e,t)}}e.exports=AMDRequireDependenciesBlockParserPlugin},45167:(e,t,n)=>{"use strict";const r=n(76150);const i=n(56202);const s=n(12197);class AMDRequireDependency extends s{constructor(e,t,n,r){super();this.outerRange=e;this.arrayRange=t;this.functionRange=n;this.errorCallbackRange=r;this.functionBindThis=false;this.errorCallbackBindThis=false}get category(){return"amd"}serialize(e){const{write:t}=e;t(this.outerRange);t(this.arrayRange);t(this.functionRange);t(this.errorCallbackRange);t(this.functionBindThis);t(this.errorCallbackBindThis);super.serialize(e)}deserialize(e){const{read:t}=e;this.outerRange=t();this.arrayRange=t();this.functionRange=t();this.errorCallbackRange=t();this.functionBindThis=t();this.errorCallbackBindThis=t();super.deserialize(e)}}i(AMDRequireDependency,"webpack/lib/dependencies/AMDRequireDependency");AMDRequireDependency.Template=class AMDRequireDependencyTemplate extends s.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:i,chunkGraph:s,runtimeRequirements:o}){const a=e;const c=i.getParentBlock(a);const u=n.blockPromise({chunkGraph:s,block:c,message:"AMD require",runtimeRequirements:o});if(a.arrayRange&&!a.functionRange){const e=`${u}.then(function() {`;const n=`;}).catch(${r.uncaughtErrorHandler})`;o.add(r.uncaughtErrorHandler);t.replace(a.outerRange[0],a.arrayRange[0]-1,e);t.replace(a.arrayRange[1],a.outerRange[1]-1,n);return}if(a.functionRange&&!a.arrayRange){const e=`${u}.then((`;const n=`).bind(exports, __webpack_require__, exports, module)).catch(${r.uncaughtErrorHandler})`;o.add(r.uncaughtErrorHandler);t.replace(a.outerRange[0],a.functionRange[0]-1,e);t.replace(a.functionRange[1],a.outerRange[1]-1,n);return}if(a.arrayRange&&a.functionRange&&a.errorCallbackRange){const e=`${u}.then(function() { `;const n=`}${a.functionBindThis?".bind(this)":""}).catch(`;const r=`${a.errorCallbackBindThis?".bind(this)":""})`;t.replace(a.outerRange[0],a.arrayRange[0]-1,e);t.insert(a.arrayRange[0]+.9,"var __WEBPACK_AMD_REQUIRE_ARRAY__ = ");t.replace(a.arrayRange[1],a.functionRange[0]-1,"; (");t.insert(a.functionRange[1],").apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);");t.replace(a.functionRange[1],a.errorCallbackRange[0]-1,n);t.replace(a.errorCallbackRange[1],a.outerRange[1]-1,r);return}if(a.arrayRange&&a.functionRange){const e=`${u}.then(function() { `;const n=`}${a.functionBindThis?".bind(this)":""}).catch(${r.uncaughtErrorHandler})`;o.add(r.uncaughtErrorHandler);t.replace(a.outerRange[0],a.arrayRange[0]-1,e);t.insert(a.arrayRange[0]+.9,"var __WEBPACK_AMD_REQUIRE_ARRAY__ = ");t.replace(a.arrayRange[1],a.functionRange[0]-1,"; (");t.insert(a.functionRange[1],").apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);");t.replace(a.functionRange[1],a.outerRange[1]-1,n)}}};e.exports=AMDRequireDependency},29022:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(87283);class AMDRequireItemDependency extends i{constructor(e,t){super(e);this.range=t}get type(){return"amd require"}get category(){return"amd"}}r(AMDRequireItemDependency,"webpack/lib/dependencies/AMDRequireItemDependency");AMDRequireItemDependency.Template=s;e.exports=AMDRequireItemDependency},29035:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class AMDDefineRuntimeModule extends i{constructor(){super("amd define")}generate(){return s.asString([`${r.amdDefine} = function () {`,s.indent("throw new Error('define cannot be used indirect');"),"};"])}}class AMDOptionsRuntimeModule extends i{constructor(e){super("amd options");this.options=e}generate(){return s.asString([`${r.amdOptions} = ${JSON.stringify(this.options)};`])}}t.AMDDefineRuntimeModule=AMDDefineRuntimeModule;t.AMDOptionsRuntimeModule=AMDOptionsRuntimeModule},59455:(e,t,n)=>{"use strict";const r=n(84304);const i=n(63272);const s=n(56202);const o=n(12197);class CachedConstDependency extends o{constructor(e,t,n){super();this.expression=e;this.range=t;this.identifier=n}updateHash(e,t){e.update(this.identifier+"");e.update(this.range+"");e.update(this.expression+"")}serialize(e){const{write:t}=e;t(this.expression);t(this.range);t(this.identifier);super.serialize(e)}deserialize(e){const{read:t}=e;this.expression=t();this.range=t();this.identifier=t();super.deserialize(e)}}s(CachedConstDependency,"webpack/lib/dependencies/CachedConstDependency");CachedConstDependency.Template=class CachedConstDependencyTemplate extends r{apply(e,t,{runtimeTemplate:n,dependencyTemplates:r,initFragments:s}){const o=e;s.push(new i(`var ${o.identifier} = ${o.expression};\n`,i.STAGE_CONSTANTS,0,`const ${o.identifier}`));if(typeof o.range==="number"){t.insert(o.range,o.identifier);return}t.replace(o.range[0],o.range[1]-1,o.identifier)}};e.exports=CachedConstDependency},73456:(e,t,n)=>{"use strict";const r=n(76150);t.handleDependencyBase=((e,t,n)=>{let i=undefined;let s;switch(e){case"exports":n.add(r.exports);i=t.exportsArgument;s="expression";break;case"module.exports":n.add(r.module);i=`${t.moduleArgument}.exports`;s="expression";break;case"this":n.add(r.thisAsExports);i="this";s="expression";break;case"Object.defineProperty(exports)":n.add(r.exports);i=t.exportsArgument;s="Object.defineProperty";break;case"Object.defineProperty(module.exports)":n.add(r.module);i=`${t.moduleArgument}.exports`;s="Object.defineProperty";break;case"Object.defineProperty(this)":n.add(r.thisAsExports);i="this";s="Object.defineProperty";break;default:throw new Error(`Unsupported base ${e}`)}return[s,i]})},1248:(e,t,n)=>{"use strict";const r=n(28706);const{UsageState:i}=n(76632);const s=n(58159);const{equals:o}=n(73910);const a=n(56202);const c=n(68038);const{handleDependencyBase:u}=n(73456);const l=n(79983);const f=n(18971);const p=Symbol("CommonJsExportRequireDependency.ids");const d={};class CommonJsExportRequireDependency extends l{constructor(e,t,n,r,i,s,o){super(i);this.range=e;this.valueRange=t;this.base=n;this.names=r;this.ids=s;this.resultUsed=o;this.asiSafe=false}get type(){return"cjs export require"}getIds(e){return e.getMeta(this)[p]||this.ids}setIds(e,t){e.getMeta(this)[p]=t}getReferencedExports(e,t){const n=this.getIds(e);const s=()=>{if(n.length===0){return r.EXPORTS_OBJECT_REFERENCED}else{return[{name:n,canMangle:false}]}};if(this.resultUsed)return s();let o=e.getExportsInfo(e.getParentModule(this));for(const e of this.names){const n=o.getReadOnlyExportInfo(e);const a=n.getUsed(t);if(a===i.Unused)return r.NO_EXPORTS_REFERENCED;if(a!==i.OnlyPropertiesUsed)return s();o=n.exportsInfo;if(!o)return s()}if(o.otherExportsInfo.getUsed(t)!==i.Unused){return s()}const a=[];for(const e of o.orderedExports){f(t,a,n.concat(e.name),e,false)}return a.map(e=>({name:e,canMangle:false}))}getExports(e){const t=this.getIds(e);if(this.names.length===1){const n=this.names[0];const r=e.getModule(this);return{exports:[{name:n,from:r,export:t.length===0?null:t,canMangle:!(n in d)&&false}],dependencies:[r]}}else if(this.names.length>0){const e=this.names[0];return{exports:[{name:e,canMangle:!(e in d)&&false}],dependencies:undefined}}else{const n=e.getModule(this);const r=this.getStarReexports(e,undefined,n);if(r){return{exports:Array.from(r.exports,e=>{return{name:e,from:n,export:t.concat(e),canMangle:!(e in d)&&false}}),dependencies:[n]}}else{return{exports:true,from:t.length===0?n:undefined,canMangle:false,dependencies:[n]}}}}getStarReexports(e,t,n=e.getModule(this)){let r=e.getExportsInfo(n);const s=this.getIds(e);if(s.length>0)r=r.getNestedExportsInfo(s);let o=e.getExportsInfo(e.getParentModule(this));if(this.names.length>0)o=o.getNestedExportsInfo(this.names);const a=r&&r.otherExportsInfo.provided===false;const c=o&&o.otherExportsInfo.getUsed(t)===i.Unused;if(!a&&!c){return}const u=n.getExportsType(e,false)==="namespace";const l=new Set;const f=new Set;if(c){for(const e of o.orderedExports){const n=e.name;if(e.getUsed(t)===i.Unused)continue;if(n==="__esModule"&&u){l.add(n)}else if(r){const e=r.getReadOnlyExportInfo(n);if(e.provided===false)continue;l.add(n);if(e.provided===true)continue;f.add(n)}else{l.add(n);f.add(n)}}}else if(a){for(const e of r.orderedExports){const n=e.name;if(e.provided===false)continue;if(o){const e=o.getReadOnlyExportInfo(n);if(e.getUsed(t)===i.Unused)continue}l.add(n);if(e.provided===true)continue;f.add(n)}if(u){l.add("__esModule");f.delete("__esModule")}}return{exports:l,checked:f}}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);t(this.base);t(this.names);t(this.ids);t(this.resultUsed);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();this.base=t();this.names=t();this.ids=t();this.resultUsed=t();super.deserialize(e)}}a(CommonJsExportRequireDependency,"webpack/lib/dependencies/CommonJsExportRequireDependency");CommonJsExportRequireDependency.Template=class CommonJsExportRequireDependencyTemplate extends l.Template{apply(e,t,{module:n,runtimeTemplate:r,chunkGraph:i,moduleGraph:a,runtimeRequirements:l,runtime:f}){const p=e;const d=a.getExportsInfo(n).getUsedName(p.names,f);const[h,m]=u(p.base,n,l);const g=a.getModule(p);let y=r.moduleExports({module:g,chunkGraph:i,request:p.request,weak:p.weak,runtimeRequirements:l});const v=p.getIds(a);const _=a.getExportsInfo(g).getUsedName(v,f);if(_){const e=o(_,v)?"":s.toNormalComment(c(v))+" ";y+=`${e}${c(_)}`}switch(h){case"expression":t.replace(p.range[0],p.range[1]-1,d?`${m}${c(d)} = ${y}`:`/* unused reexport */ ${y}`);return;case"Object.defineProperty":throw new Error("TODO");default:throw new Error("Unexpected type")}}};e.exports=CommonJsExportRequireDependency},26702:(e,t,n)=>{"use strict";const r=n(63272);const i=n(56202);const s=n(68038);const{handleDependencyBase:o}=n(73456);const a=n(12197);const c={};class CommonJsExportsDependency extends a{constructor(e,t,n,r){super();this.range=e;this.valueRange=t;this.base=n;this.names=r}get type(){return"cjs exports"}getExports(e){const t=this.names[0];return{exports:[{name:t,canMangle:!(t in c)}],dependencies:undefined}}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);t(this.base);t(this.names);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();this.base=t();this.names=t();super.deserialize(e)}}i(CommonJsExportsDependency,"webpack/lib/dependencies/CommonJsExportsDependency");CommonJsExportsDependency.Template=class CommonJsExportsDependencyTemplate extends a.Template{apply(e,t,{module:n,moduleGraph:i,initFragments:a,runtimeRequirements:c,runtime:u}){const l=e;const f=i.getExportsInfo(n).getUsedName(l.names,u);const[p,d]=o(l.base,n,c);switch(p){case"expression":if(!f){a.push(new r("var __webpack_unused_export__;\n",r.STAGE_CONSTANTS,0,"__webpack_unused_export__"));t.replace(l.range[0],l.range[1]-1,"__webpack_unused_export__");return}t.replace(l.range[0],l.range[1]-1,`${d}${s(f)}`);return;case"Object.defineProperty":if(!f){a.push(new r("var __webpack_unused_export__;\n",r.STAGE_CONSTANTS,0,"__webpack_unused_export__"));t.replace(l.range[0],l.valueRange[0]-1,"__webpack_unused_export__ = (");t.replace(l.valueRange[1],l.range[1]-1,")");return}t.replace(l.range[0],l.valueRange[0]-1,`Object.defineProperty(${d}${s(f.slice(0,-1))}, ${JSON.stringify(f[f.length-1])}, (`);t.replace(l.valueRange[1],l.range[1]-1,"))");return}}};e.exports=CommonJsExportsDependency},48235:(e,t,n)=>{"use strict";const r=n(76150);const i=n(72380);const{evaluateToString:s}=n(48472);const o=n(68038);const a=n(1248);const c=n(26702);const u=n(94147);const l=n(28140);const f=n(25702);const p=n(2706);const d=e=>{if(e.type!=="ObjectExpression")return;for(const t of e.properties){if(t.computed)continue;const e=t.key;if(e.type!=="Identifier"||e.name!=="value")continue;return t.value}};const h=e=>{switch(e.type){case"Literal":return!!e.value;case"UnaryExpression":if(e.operator==="!")return m(e.argument)}return false};const m=e=>{switch(e.type){case"Literal":return!e.value;case"UnaryExpression":if(e.operator==="!")return h(e.argument)}return false};const g=(e,t)=>{const n=[];while(t.type==="MemberExpression"){if(t.object.type==="Super")return;if(!t.property)return;const e=t.property;if(t.computed){if(e.type!=="Literal")return;n.push(`${e.value}`)}else{if(e.type!=="Identifier")return;n.push(e.name)}t=t.object}if(t.type!=="CallExpression"||t.arguments.length!==1)return;const r=t.callee;if(r.type!=="Identifier"||e.getVariableInfo(r.name)!=="require"){return}const i=t.arguments[0];if(i.type==="SpreadElement")return;const s=e.evaluateExpression(i);return{argument:s,ids:n.reverse()}};class CommonJsExportsParserPlugin{constructor(e){this.moduleGraph=e}apply(e){const t=()=>{l.enable(e.state)};const n=(t,n,r)=>{if(!l.isEnabled(e.state))return;if(n.length>0&&n[0]==="__esModule"){if(h(r)&&t){l.setFlagged(e.state)}else{l.setDynamic(e.state)}}};const m=t=>{l.bailout(e.state);if(t)y(t)};const y=t=>{this.moduleGraph.getOptimizationBailout(e.state.module).push(`CommonJS bailout: ${t}`)};e.hooks.evaluateTypeof.for("module").tap("CommonJsExportsParserPlugin",s("object"));e.hooks.evaluateTypeof.for("exports").tap("CommonJsPlugin",s("object"));const v=(r,i,s)=>{if(f.isEnabled(e.state))return;const o=g(e,r.right);if(o&&o.argument.isString()&&(s.length===0||s[0]!=="__esModule")){t();if(s.length===0)l.setDynamic(e.state);const n=new a(r.range,null,i,s,o.argument.string,o.ids,!e.isStatementLevelExpression(r));n.loc=r.loc;n.optional=!!e.scope.inTry;e.state.module.addDependency(n);return true}if(s.length===0)return;t();const u=s;n(e.statementPath.length===1&&e.isStatementLevelExpression(r),u,r.right);const p=new c(r.left.range,null,i,u);p.loc=r.loc;e.state.module.addDependency(p);e.walkExpression(r.right);return true};e.hooks.assignMemberChain.for("exports").tap("CommonJsExportsParserPlugin",(e,t)=>{return v(e,"exports",t)});e.hooks.assignMemberChain.for("this").tap("CommonJsExportsParserPlugin",(t,n)=>{if(!e.scope.topLevelScope)return;return v(t,"this",n)});e.hooks.assignMemberChain.for("module").tap("CommonJsExportsParserPlugin",(e,t)=>{if(t[0]!=="exports")return;return v(e,"module.exports",t.slice(1))});e.hooks.call.for("Object.defineProperty").tap("CommonJsExportsParserPlugin",r=>{const i=r;if(!e.isStatementLevelExpression(i))return;if(i.arguments.length!==3)return;if(i.arguments[0].type==="SpreadElement")return;if(i.arguments[1].type==="SpreadElement")return;if(i.arguments[2].type==="SpreadElement")return;const s=e.evaluateExpression(i.arguments[0]);if(!s||!s.isIdentifier())return;if(s.identifier!=="exports"&&s.identifier!=="module.exports"&&(s.identifier!=="this"||!e.scope.topLevelScope)){return}const o=e.evaluateExpression(i.arguments[1]);if(!o)return;const a=o.asString();if(typeof a!=="string")return;t();const u=i.arguments[2];n(e.statementPath.length===1,[a],d(u));const l=new c(i.range,i.arguments[2].range,`Object.defineProperty(${s.identifier})`,[a]);l.loc=i.loc;e.state.module.addDependency(l);e.walkExpression(i.arguments[2]);return true});const _=(t,n,r,s=undefined)=>{if(f.isEnabled(e.state))return;if(r.length===0){m(`${n} is used directly at ${i(t.loc)}`)}if(s&&r.length===1){y(`${n}${o(r)}(...) prevents optimization as ${n} is passed as call context as ${i(t.loc)}`)}const a=new u(t.range,n,r,!!s);a.loc=t.loc;e.state.module.addDependency(a);if(s){e.walkExpressions(s.arguments)}return true};e.hooks.callMemberChain.for("exports").tap("CommonJsExportsParserPlugin",(e,t)=>{return _(e.callee,"exports",t,e)});e.hooks.expressionMemberChain.for("exports").tap("CommonJsExportsParserPlugin",(e,t)=>{return _(e,"exports",t)});e.hooks.expression.for("exports").tap("CommonJsExportsParserPlugin",e=>{return _(e,"exports",[])});e.hooks.callMemberChain.for("module").tap("CommonJsExportsParserPlugin",(e,t)=>{if(t[0]!=="exports")return;return _(e.callee,"module.exports",t.slice(1),e)});e.hooks.expressionMemberChain.for("module").tap("CommonJsExportsParserPlugin",(e,t)=>{if(t[0]!=="exports")return;return _(e,"module.exports",t.slice(1))});e.hooks.expression.for("module.exports").tap("CommonJsExportsParserPlugin",e=>{return _(e,"module.exports",[])});e.hooks.callMemberChain.for("this").tap("CommonJsExportsParserPlugin",(t,n)=>{if(!e.scope.topLevelScope)return;return _(t.callee,"this",n,t)});e.hooks.expressionMemberChain.for("this").tap("CommonJsExportsParserPlugin",(t,n)=>{if(!e.scope.topLevelScope)return;return _(t,"this",n)});e.hooks.expression.for("this").tap("CommonJsExportsParserPlugin",t=>{if(!e.scope.topLevelScope)return;return _(t,"this",[])});e.hooks.expression.for("module").tap("CommonJsPlugin",t=>{m();const n=f.isEnabled(e.state);const i=new p(n?r.harmonyModuleDecorator:r.nodeModuleDecorator,!n);i.loc=t.loc;e.state.module.addDependency(i);return true})}}e.exports=CommonJsExportsParserPlugin},87519:(e,t,n)=>{"use strict";const r=n(58159);const{equals:i}=n(73910);const s=n(56202);const o=n(68038);const a=n(79983);class CommonJsFullRequireDependency extends a{constructor(e,t,n){super(e);this.range=t;this.names=n;this.call=false;this.asiSafe=false}getReferencedExports(e,t){if(this.call){const t=e.getModule(this);if(!t||t.getExportsType(e,false)!=="namespace"){return[this.names.slice(0,-1)]}}return[this.names]}serialize(e){const{write:t}=e;t(this.names);t(this.call);t(this.asiSafe);super.serialize(e)}deserialize(e){const{read:t}=e;this.names=t();this.call=t();this.asiSafe=t();super.deserialize(e)}get type(){return"cjs full require"}get category(){return"commonjs"}}CommonJsFullRequireDependency.Template=class CommonJsFullRequireDependencyTemplate extends a.Template{apply(e,t,{module:n,runtimeTemplate:s,moduleGraph:a,chunkGraph:c,runtimeRequirements:u,runtime:l,initFragments:f}){const p=e;if(!p.range)return;const d=a.getModule(p);let h=s.moduleExports({module:d,chunkGraph:c,request:p.request,weak:p.weak,runtimeRequirements:u});const m=p.names;const g=a.getExportsInfo(d).getUsedName(m,l);if(g){const e=i(g,m)?"":r.toNormalComment(o(m))+" ";h+=`${e}${o(g)}`}t.replace(p.range[0],p.range[1]-1,h)}};s(CommonJsFullRequireDependency,"webpack/lib/dependencies/CommonJsFullRequireDependency");e.exports=CommonJsFullRequireDependency},42218:(e,t,n)=>{"use strict";const r=n(76150);const{evaluateToIdentifier:i,evaluateToString:s,expressionIsUnsupported:o,toConstantDependency:a}=n(48472);const c=n(87519);const u=n(51454);const l=n(37313);const f=n(66298);const p=n(95601);const d=n(14229);const{getLocalModule:h}=n(61701);const m=n(70340);const g=n(84817);const y=n(76913);const v=n(23380);class CommonJsImportsParserPlugin{constructor(e){this.options=e}apply(e){const t=this.options;const n=(t,n)=>{e.hooks.typeof.for(t).tap("CommonJsPlugin",a(e,JSON.stringify("function")));e.hooks.evaluateTypeof.for(t).tap("CommonJsPlugin",s("function"));e.hooks.evaluateIdentifier.for(t).tap("CommonJsPlugin",i(t,"require",n,true))};n("require",()=>[]);n("require.resolve",()=>["resolve"]);n("require.resolveWeak",()=>["resolveWeak"]);e.hooks.assign.for("require").tap("CommonJsPlugin",t=>{const n=new f("var require;",0);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true});e.hooks.expression.for("require.main.require").tap("CommonJsPlugin",o(e,"require.main.require is not supported by webpack."));e.hooks.call.for("require.main.require").tap("CommonJsPlugin",o(e,"require.main.require is not supported by webpack."));e.hooks.expression.for("module.parent.require").tap("CommonJsPlugin",o(e,"module.parent.require is not supported by webpack."));e.hooks.call.for("module.parent.require").tap("CommonJsPlugin",o(e,"module.parent.require is not supported by webpack."));e.hooks.canRename.for("require").tap("CommonJsPlugin",()=>true);e.hooks.rename.for("require").tap("CommonJsPlugin",t=>{const n=new f("undefined",t.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return false});e.hooks.expression.for("require.cache").tap("CommonJsImportsParserPlugin",a(e,r.moduleCache,[r.moduleCache,r.moduleId,r.moduleLoaded]));e.hooks.expression.for("require").tap("CommonJsImportsParserPlugin",n=>{const r=new u({request:t.unknownContextRequest,recursive:t.unknownContextRecursive,regExp:t.unknownContextRegExp,mode:"sync"},n.range);r.critical=t.unknownContextCritical&&"require function is used in a way in which dependencies cannot be statically extracted";r.loc=n.loc;r.optional=!!e.scope.inTry;e.state.current.addDependency(r);return true});const _=(t,n)=>{if(n.isString()){const r=new l(n.string,n.range);r.loc=t.loc;r.optional=!!e.scope.inTry;e.state.current.addDependency(r);return true}};const b=(n,r)=>{const i=p.create(u,n.range,r,n,t,{category:"commonjs"},e);if(!i)return;i.loc=n.loc;i.optional=!!e.scope.inTry;e.state.current.addDependency(i);return true};const E=t=>n=>{if(n.arguments.length!==1)return;let r;const i=e.evaluateExpression(n.arguments[0]);if(i.isConditional()){let t=false;for(const e of i.options){const r=_(n,e);if(r===undefined){t=true}}if(!t){const t=new m(n.callee.range);t.loc=n.loc;e.state.module.addPresentationalDependency(t);return true}}if(i.isString()&&(r=h(e.state,i.string))){r.flagUsed();const i=new d(r,n.range,t);i.loc=n.loc;e.state.module.addPresentationalDependency(i);return true}else{const t=_(n,i);if(t===undefined){b(n,i)}else{const t=new m(n.callee.range);t.loc=n.loc;e.state.module.addPresentationalDependency(t)}return true}};e.hooks.call.for("require").tap("CommonJsImportsParserPlugin",E(false));e.hooks.new.for("require").tap("CommonJsImportsParserPlugin",E(true));e.hooks.call.for("module.require").tap("CommonJsImportsParserPlugin",E(false));e.hooks.new.for("module.require").tap("CommonJsImportsParserPlugin",E(true));const w=(t,n,r,i)=>{if(r.arguments.length!==1)return;const s=e.evaluateExpression(r.arguments[0]);if(s.isString()&&!h(e.state,s.string)){const n=new c(s.string,t.range,i);n.asiSafe=!e.isAsiPosition(t.range[0]);n.loc=t.loc;e.state.module.addDependency(n);return true}};const S=(t,n,r,i)=>{if(r.arguments.length!==1)return;const s=e.evaluateExpression(r.arguments[0]);if(s.isString()&&!h(e.state,s.string)){const n=new c(s.string,t.callee.range,i);n.call=true;n.asiSafe=!e.isAsiPosition(t.range[0]);n.loc=t.callee.loc;e.state.module.addDependency(n);e.walkExpressions(t.arguments);return true}};e.hooks.memberChainOfCallMemberChain.for("require").tap("CommonJsImportsParserPlugin",w);e.hooks.memberChainOfCallMemberChain.for("module.require").tap("CommonJsImportsParserPlugin",w);e.hooks.callMemberChainOfCallMemberChain.for("require").tap("CommonJsImportsParserPlugin",S);e.hooks.callMemberChainOfCallMemberChain.for("module.require").tap("CommonJsImportsParserPlugin",S);const k=(t,n)=>{if(t.arguments.length!==1)return;const r=e.evaluateExpression(t.arguments[0]);if(r.isConditional()){for(const e of r.options){const r=D(t,e,n);if(r===undefined){x(t,e,n)}}const i=new v(t.callee.range);i.loc=t.loc;e.state.module.addPresentationalDependency(i);return true}else{const i=D(t,r,n);if(i===undefined){x(t,r,n)}const s=new v(t.callee.range);s.loc=t.loc;e.state.module.addPresentationalDependency(s);return true}};const D=(t,n,r)=>{if(n.isString()){const i=new y(n.string,n.range);i.loc=t.loc;i.optional=!!e.scope.inTry;i.weak=r;e.state.current.addDependency(i);return true}};const x=(n,r,i)=>{const s=p.create(g,r.range,r,n,t,{category:"commonjs",mode:i?"weak":"sync"},e);if(!s)return;s.loc=n.loc;s.optional=!!e.scope.inTry;e.state.current.addDependency(s);return true};e.hooks.call.for("require.resolve").tap("RequireResolveDependencyParserPlugin",e=>{return k(e,false)});e.hooks.call.for("require.resolveWeak").tap("RequireResolveDependencyParserPlugin",e=>{return k(e,true)})}}e.exports=CommonJsImportsParserPlugin},91630:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(31141);const o=n(58159);const a=n(26702);const c=n(87519);const u=n(51454);const l=n(37313);const f=n(94147);const p=n(2706);const d=n(70340);const h=n(84817);const m=n(76913);const g=n(23380);const y=n(35424);const v=n(48235);const _=n(42218);const{evaluateToIdentifier:b,toConstantDependency:E}=n(48472);const w=n(1248);class CommonJsPlugin{constructor(e){this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("CommonJsPlugin",(e,{contextModuleFactory:n,normalModuleFactory:i})=>{e.dependencyFactories.set(l,i);e.dependencyTemplates.set(l,new l.Template);e.dependencyFactories.set(c,i);e.dependencyTemplates.set(c,new c.Template);e.dependencyFactories.set(u,n);e.dependencyTemplates.set(u,new u.Template);e.dependencyFactories.set(m,i);e.dependencyTemplates.set(m,new m.Template);e.dependencyFactories.set(h,n);e.dependencyTemplates.set(h,new h.Template);e.dependencyTemplates.set(g,new g.Template);e.dependencyTemplates.set(d,new d.Template);e.dependencyTemplates.set(a,new a.Template);e.dependencyFactories.set(w,i);e.dependencyTemplates.set(w,new w.Template);const o=new s(e.moduleGraph);e.dependencyFactories.set(f,o);e.dependencyTemplates.set(f,new f.Template);e.dependencyFactories.set(p,o);e.dependencyTemplates.set(p,new p.Template);e.hooks.runtimeRequirementInModule.for(r.harmonyModuleDecorator).tap("CommonJsPlugin",(e,t)=>{t.add(r.module);t.add(r.requireScope)});e.hooks.runtimeRequirementInModule.for(r.nodeModuleDecorator).tap("CommonJsPlugin",(e,t)=>{t.add(r.module);t.add(r.requireScope)});e.hooks.runtimeRequirementInTree.for(r.harmonyModuleDecorator).tap("CommonJsPlugin",(t,n)=>{e.addRuntimeModule(t,new HarmonyModuleDecoratorRuntimeModule)});e.hooks.runtimeRequirementInTree.for(r.nodeModuleDecorator).tap("CommonJsPlugin",(t,n)=>{e.addRuntimeModule(t,new NodeModuleDecoratorRuntimeModule)});const S=(n,i)=>{if(i.commonjs!==undefined&&!i.commonjs)return;n.hooks.typeof.for("module").tap("CommonJsPlugin",E(n,JSON.stringify("object")));n.hooks.expression.for("require.main").tap("CommonJsPlugin",E(n,`${r.moduleCache}[${r.entryModuleId}]`,[r.moduleCache,r.entryModuleId]));n.hooks.expression.for("module.loaded").tap("CommonJsPlugin",e=>{n.state.module.buildInfo.moduleConcatenationBailout="module.loaded";const t=new y([r.moduleLoaded]);t.loc=e.loc;n.state.module.addPresentationalDependency(t);return true});n.hooks.expression.for("module.id").tap("CommonJsPlugin",e=>{n.state.module.buildInfo.moduleConcatenationBailout="module.id";const t=new y([r.moduleId]);t.loc=e.loc;n.state.module.addPresentationalDependency(t);return true});n.hooks.evaluateIdentifier.for("module.hot").tap("CommonJsPlugin",b("module.hot","module",()=>["hot"],null));new _(t).apply(n);new v(e.moduleGraph).apply(n)};i.hooks.parser.for("javascript/auto").tap("CommonJsPlugin",S);i.hooks.parser.for("javascript/dynamic").tap("CommonJsPlugin",S)})}}class HarmonyModuleDecoratorRuntimeModule extends i{constructor(){super("harmony module decorator")}generate(){const{runtimeTemplate:e}=this.compilation;return o.asString([`${r.harmonyModuleDecorator} = ${e.basicFunction("module",["module = Object.create(module);","if (!module.children) module.children = [];","Object.defineProperty(module, 'exports', {",o.indent(["enumerable: true,",`set: ${e.basicFunction("",["throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);"])}`]),"});","return module;"])};`])}}class NodeModuleDecoratorRuntimeModule extends i{constructor(){super("node module decorator")}generate(){const{runtimeTemplate:e}=this.compilation;return o.asString([`${r.nodeModuleDecorator} = ${e.basicFunction("module",["module.paths = [];","if (!module.children) module.children = [];","return module;"])};`])}}e.exports=CommonJsPlugin},51454:(e,t,n)=>{"use strict";const r=n(56202);const i=n(400);const s=n(42740);class CommonJsRequireContextDependency extends i{constructor(e,t,n){super(e);this.range=t;this.valueRange=n}get type(){return"cjs require context"}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();super.deserialize(e)}}r(CommonJsRequireContextDependency,"webpack/lib/dependencies/CommonJsRequireContextDependency");CommonJsRequireContextDependency.Template=s;e.exports=CommonJsRequireContextDependency},37313:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(80791);class CommonJsRequireDependency extends i{constructor(e,t){super(e);this.range=t}get type(){return"cjs require"}get category(){return"commonjs"}}CommonJsRequireDependency.Template=s;r(CommonJsRequireDependency,"webpack/lib/dependencies/CommonJsRequireDependency");e.exports=CommonJsRequireDependency},94147:(e,t,n)=>{"use strict";const r=n(76150);const{equals:i}=n(73910);const s=n(56202);const o=n(68038);const a=n(12197);class CommonJsSelfReferenceDependency extends a{constructor(e,t,n,r){super();this.range=e;this.base=t;this.names=n;this.call=r}get type(){return"cjs self exports reference"}get category(){return"self"}getResourceIdentifier(){return`self`}getReferencedExports(e,t){return[this.call?this.names.slice(0,-1):this.names]}serialize(e){const{write:t}=e;t(this.range);t(this.base);t(this.names);t(this.call);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.base=t();this.names=t();this.call=t();super.deserialize(e)}}s(CommonJsSelfReferenceDependency,"webpack/lib/dependencies/CommonJsSelfReferenceDependency");CommonJsSelfReferenceDependency.Template=class CommonJsSelfReferenceDependencyTemplate extends a.Template{apply(e,t,{module:n,moduleGraph:s,runtime:a,runtimeRequirements:c}){const u=e;let l;if(u.names.length===0){l=u.names}else{l=s.getExportsInfo(n).getUsedName(u.names,a)}if(!l){throw new Error("Self-reference dependency has unused export name: This should not happen")}let f=undefined;switch(u.base){case"exports":c.add(r.exports);f=n.exportsArgument;break;case"module.exports":c.add(r.module);f=`${n.moduleArgument}.exports`;break;case"this":c.add(r.thisAsExports);f="this";break;default:throw new Error(`Unsupported base ${u.base}`)}if(f===u.base&&i(l,u.names)){return}t.replace(u.range[0],u.range[1]-1,`${f}${o(l)}`)}};e.exports=CommonJsSelfReferenceDependency},66298:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class ConstDependency extends i{constructor(e,t,n){super();this.expression=e;this.range=t;this.runtimeRequirements=n?new Set(n):null}updateHash(e,t){e.update(this.range+"");e.update(this.expression+"");if(this.runtimeRequirements)e.update(Array.from(this.runtimeRequirements).join()+"")}serialize(e){const{write:t}=e;t(this.expression);t(this.range);t(this.runtimeRequirements);super.serialize(e)}deserialize(e){const{read:t}=e;this.expression=t();this.range=t();this.runtimeRequirements=t();super.deserialize(e)}}r(ConstDependency,"webpack/lib/dependencies/ConstDependency");ConstDependency.Template=class ConstDependencyTemplate extends i.Template{apply(e,t,n){const r=e;if(r.runtimeRequirements){for(const e of r.runtimeRequirements){n.runtimeRequirements.add(e)}}if(typeof r.range==="number"){t.insert(r.range,r.expression);return}t.replace(r.range[0],r.range[1]-1,r.expression)}};e.exports=ConstDependency},400:(e,t,n)=>{"use strict";const r=n(28706);const i=n(84304);const s=n(56202);const o=n(27503);const a=o(()=>n(75314));const c=e=>e?e+"":"";class ContextDependency extends r{constructor(e){super();this.options=e;this.userRequest=this.options&&this.options.request;this.critical=false;this.hadGlobalOrStickyRegExp=false;if(this.options&&(this.options.regExp.global||this.options.regExp.sticky)){this.options={...this.options,regExp:null};this.hadGlobalOrStickyRegExp=true}this.request=undefined;this.range=undefined;this.valueRange=undefined;this.replaces=undefined}get category(){return"commonjs"}getResourceIdentifier(){return`context${this.options.request} ${this.options.recursive} `+`${c(this.options.regExp)} ${c(this.options.include)} ${c(this.options.exclude)} `+`${this.options.mode} ${this.options.chunkName} `+`${JSON.stringify(this.options.groupOptions)}`}getWarnings(e){let t=super.getWarnings(e);if(this.critical){if(!t)t=[];const e=a();t.push(new e(this.critical))}if(this.hadGlobalOrStickyRegExp){if(!t)t=[];const e=a();t.push(new e("Contexts can't use RegExps with the 'g' or 'y' flags."))}return t}serialize(e){const{write:t}=e;t(this.options);t(this.userRequest);t(this.critical);t(this.hadGlobalOrStickyRegExp);t(this.request);t(this.range);t(this.valueRange);t(this.prepend);t(this.replaces);super.serialize(e)}deserialize(e){const{read:t}=e;this.options=t();this.userRequest=t();this.critical=t();this.hadGlobalOrStickyRegExp=t();this.request=t();this.range=t();this.valueRange=t();this.prepend=t();this.replaces=t();super.deserialize(e)}}s(ContextDependency,"webpack/lib/dependencies/ContextDependency");ContextDependency.Template=i;e.exports=ContextDependency},95601:(e,t,n)=>{"use strict";const{parseResource:r}=n(49197);const i=e=>{return e.replace(/[-[\]\\/{}()*+?.^$|]/g,"\\$&")};const s=e=>{const t=e.lastIndexOf("/");let n=".";if(t>=0){n=e.substr(0,t);e=`.${e.substr(t)}`}return{context:n,prefix:e}};t.create=((e,t,n,o,a,c,u)=>{if(n.isTemplateString()){let l=n.quasis[0].string;let f=n.quasis.length>1?n.quasis[n.quasis.length-1].string:"";const p=n.range;const{context:d,prefix:h}=s(l);const{path:m,query:g,fragment:y}=r(f,u);const v=n.quasis.slice(1,n.quasis.length-1);const _=a.wrappedContextRegExp.source+v.map(e=>i(e.string)+a.wrappedContextRegExp.source).join("");const b=new RegExp(`^${i(h)}${_}${i(m)}$`);const E=new e({request:d+g+y,recursive:a.wrappedContextRecursive,regExp:b,mode:"sync",...c},t,p);E.loc=o.loc;const w=[];n.parts.forEach((e,t)=>{if(t%2===0){let r=e.range;let i=e.string;if(n.templateStringKind==="cooked"){i=JSON.stringify(i);i=i.slice(1,i.length-1)}if(t===0){i=h;r=[n.range[0],e.range[1]];i=(n.templateStringKind==="cooked"?"`":"String.raw`")+i}else if(t===n.parts.length-1){i=m;r=[e.range[0],n.range[1]];i=i+"`"}else if(e.expression&&e.expression.type==="TemplateElement"&&e.expression.value.raw===i){return}w.push({range:r,value:i})}else{u.walkExpression(e.expression)}});E.replaces=w;E.critical=a.wrappedContextCritical&&"a part of the request of a dependency is an expression";return E}else if(n.isWrapped()&&(n.prefix&&n.prefix.isString()||n.postfix&&n.postfix.isString())){let l=n.prefix&&n.prefix.isString()?n.prefix.string:"";let f=n.postfix&&n.postfix.isString()?n.postfix.string:"";const p=n.prefix&&n.prefix.isString()?n.prefix.range:null;const d=n.postfix&&n.postfix.isString()?n.postfix.range:null;const h=n.range;const{context:m,prefix:g}=s(l);const{path:y,query:v,fragment:_}=r(f,u);const b=new RegExp(`^${i(g)}${a.wrappedContextRegExp.source}${i(y)}$`);const E=new e({request:m+v+_,recursive:a.wrappedContextRecursive,regExp:b,mode:"sync",...c},t,h);E.loc=o.loc;const w=[];if(p){w.push({range:p,value:JSON.stringify(g)})}if(d){w.push({range:d,value:JSON.stringify(y)})}E.replaces=w;E.critical=a.wrappedContextCritical&&"a part of the request of a dependency is an expression";if(u&&n.wrappedInnerExpressions){for(const e of n.wrappedInnerExpressions){if(e.expression)u.walkExpression(e.expression)}}return E}else{const r=new e({request:a.exprContextRequest,recursive:a.exprContextRecursive,regExp:a.exprContextRegExp,mode:"sync",...c},t,n.range);r.loc=o.loc;r.critical=a.exprContextCritical&&"the request of a dependency is an expression";u.walkExpression(n.expression);return r}})},94148:(e,t,n)=>{"use strict";const r=n(400);class ContextDependencyTemplateAsId extends r.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:r,chunkGraph:i,runtimeRequirements:s}){const o=e;const a=n.moduleExports({module:r.getModule(o),chunkGraph:i,request:o.request,weak:o.weak,runtimeRequirements:s});if(r.getModule(o)){if(o.valueRange){if(Array.isArray(o.replaces)){for(let e=0;e<o.replaces.length;e++){const n=o.replaces[e];t.replace(n.range[0],n.range[1]-1,n.value)}}t.replace(o.valueRange[1],o.range[1]-1,")");t.replace(o.range[0],o.valueRange[0]-1,`${a}.resolve(`)}else{t.replace(o.range[0],o.range[1]-1,`${a}.resolve`)}}else{t.replace(o.range[0],o.range[1]-1,a)}}}e.exports=ContextDependencyTemplateAsId},42740:(e,t,n)=>{"use strict";const r=n(400);class ContextDependencyTemplateAsRequireCall extends r.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:r,chunkGraph:i,runtimeRequirements:s}){const o=e;const a=n.moduleExports({module:r.getModule(o),chunkGraph:i,request:o.request,runtimeRequirements:s});if(r.getModule(o)){if(o.valueRange){if(Array.isArray(o.replaces)){for(let e=0;e<o.replaces.length;e++){const n=o.replaces[e];t.replace(n.range[0],n.range[1]-1,n.value)}}t.replace(o.valueRange[1],o.range[1]-1,")");t.replace(o.range[0],o.valueRange[0]-1,`${a}(`)}else{t.replace(o.range[0],o.range[1]-1,a)}}else{t.replace(o.range[0],o.range[1]-1,a)}}}e.exports=ContextDependencyTemplateAsRequireCall},90872:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);const s=n(79983);class ContextElementDependency extends s{constructor(e,t,n,r){super(e);this.referencedExports=r;this._category=n;if(t){this.userRequest=t}}get type(){return"context element"}get category(){return this._category}getReferencedExports(e,t){return this.referencedExports?this.referencedExports.map(e=>({name:e,canMangle:false})):r.EXPORTS_OBJECT_REFERENCED}serialize(e){e.write(this.referencedExports);super.serialize(e)}deserialize(e){this.referencedExports=e.read();super.deserialize(e)}}i(ContextElementDependency,"webpack/lib/dependencies/ContextElementDependency");e.exports=ContextElementDependency},75314:(e,t,n)=>{"use strict";const r=n(81627);const i=n(56202);class CriticalDependencyWarning extends r{constructor(e){super();this.name="CriticalDependencyWarning";this.message="Critical dependency: "+e;Error.captureStackTrace(this,this.constructor)}}i(CriticalDependencyWarning,"webpack/lib/dependencies/CriticalDependencyWarning");e.exports=CriticalDependencyWarning},49422:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);class DelegatedSourceDependency extends i{constructor(e){super(e)}get type(){return"delegated source"}get category(){return"esm"}}r(DelegatedSourceDependency,"webpack/lib/dependencies/DelegatedSourceDependency");e.exports=DelegatedSourceDependency},95189:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);class DllEntryDependency extends r{constructor(e,t){super();this.dependencies=e;this.name=t}get type(){return"dll entry"}serialize(e){const{write:t}=e;t(this.dependencies);t(this.name);super.serialize(e)}deserialize(e){const{read:t}=e;this.dependencies=t();this.name=t();super.deserialize(e)}}i(DllEntryDependency,"webpack/lib/dependencies/DllEntryDependency");e.exports=DllEntryDependency},28140:(e,t)=>{"use strict";const n=new WeakMap;t.bailout=(e=>{const t=n.get(e);n.set(e,false);if(t===true){e.module.buildMeta.exportsType=undefined;e.module.buildMeta.defaultObject=false}});t.enable=(e=>{const t=n.get(e);if(t===false)return;n.set(e,true);if(t!==true){e.module.buildMeta.exportsType="default";e.module.buildMeta.defaultObject="redirect"}});t.setFlagged=(e=>{const t=n.get(e);if(t!==true)return;const r=e.module.buildMeta;if(r.exportsType==="dynamic")return;r.exportsType="flagged"});t.setDynamic=(e=>{const t=n.get(e);if(t!==true)return;e.module.buildMeta.exportsType="dynamic"});t.isEnabled=(e=>{const t=n.get(e);return t===true})},66583:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);class EntryDependency extends i{constructor(e){super(e)}get type(){return"entry"}get category(){return"esm"}}r(EntryDependency,"webpack/lib/dependencies/EntryDependency");e.exports=EntryDependency},51420:(e,t,n)=>{"use strict";const{UsageState:r}=n(76632);const i=n(56202);const s=n(12197);const o=(e,t,n,i,s)=>{if(!n){switch(i){case"usedExports":{const n=e.getExportsInfo(t).getUsedExports(s);if(typeof n==="boolean"||n===undefined||n===null){return n}return Array.from(n).sort()}}}switch(i){case"used":return e.getExportsInfo(t).getUsed(n,s)!==r.Unused;case"useInfo":{const i=e.getExportsInfo(t).getUsed(n,s);switch(i){case r.Used:case r.OnlyPropertiesUsed:return true;case r.Unused:return false;case r.NoInfo:return undefined;case r.Unknown:return null;default:throw new Error(`Unexpected UsageState ${i}`)}}case"provideInfo":return e.getExportsInfo(t).isExportProvided(n)}return undefined};class ExportsInfoDependency extends s{constructor(e,t,n){super();this.range=e;this.exportName=t;this.property=n}updateHash(e,t){const{chunkGraph:n,runtime:r}=t;const{moduleGraph:i}=n;const s=i.getParentModule(this);const a=o(i,s,this.exportName,this.property,r);e.update(a===undefined?"undefined":JSON.stringify(a))}serialize(e){const{write:t}=e;t(this.range);t(this.exportName);t(this.property);super.serialize(e)}static deserialize(e){const t=new ExportsInfoDependency(e.read(),e.read(),e.read());t.deserialize(e);return t}}i(ExportsInfoDependency,"webpack/lib/dependencies/ExportsInfoDependency");ExportsInfoDependency.Template=class ExportsInfoDependencyTemplate extends s.Template{apply(e,t,{module:n,moduleGraph:r,runtime:i}){const s=e;const a=o(r,n,s.exportName,s.property,i);t.replace(s.range[0],s.range[1]-1,a===undefined?"undefined":JSON.stringify(a))}};e.exports=ExportsInfoDependency},27790:(e,t,n)=>{"use strict";const r=n(56202);const i=n(37359);const s=n(12197);class HarmonyAcceptDependency extends s{constructor(e,t,n){super();this.range=e;this.dependencies=t;this.hasCallback=n}get type(){return"accepted harmony modules"}serialize(e){const{write:t}=e;t(this.range);t(this.dependencies);t(this.hasCallback);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.dependencies=t();this.hasCallback=t();super.deserialize(e)}}r(HarmonyAcceptDependency,"webpack/lib/dependencies/HarmonyAcceptDependency");HarmonyAcceptDependency.Template=class HarmonyAcceptDependencyTemplate extends s.Template{apply(e,t,n){const r=e;const{module:s,runtimeTemplate:o}=n;const a=r.dependencies.filter(e=>i.Template.isImportEmitted(e,s)).map(e=>{const t=e.getImportStatement(true,n);return t[0]+t[1]}).join("");if(r.hasCallback){if(o.supportsArrowFunction()){t.insert(r.range[0],`__WEBPACK_OUTDATED_DEPENDENCIES__ => { ${a}(`);t.insert(r.range[1],")(__WEBPACK_OUTDATED_DEPENDENCIES__); }")}else{t.insert(r.range[0],`function(__WEBPACK_OUTDATED_DEPENDENCIES__) { ${a}(`);t.insert(r.range[1],")(__WEBPACK_OUTDATED_DEPENDENCIES__); }.bind(this)")}return}const c=o.supportsArrowFunction();t.insert(r.range[1]-.5,`, ${c?"() =>":"function()"} { ${a} }`)}};e.exports=HarmonyAcceptDependency},80654:(e,t,n)=>{"use strict";const r=n(56202);const i=n(37359);class HarmonyAcceptImportDependency extends i{constructor(e){super(e,NaN);this.weak=true}get type(){return"harmony accept"}}r(HarmonyAcceptImportDependency,"webpack/lib/dependencies/HarmonyAcceptImportDependency");HarmonyAcceptImportDependency.Template=class HarmonyAcceptImportDependencyTemplate extends i.Template{};e.exports=HarmonyAcceptImportDependency},54290:(e,t,n)=>{"use strict";const{UsageState:r}=n(76632);const i=n(63272);const s=n(76150);const o=n(56202);const a=n(12197);class HarmonyCompatibilityDependency extends a{get type(){return"harmony export header"}}o(HarmonyCompatibilityDependency,"webpack/lib/dependencies/HarmonyCompatibilityDependency");HarmonyCompatibilityDependency.Template=class HarmonyExportDependencyTemplate extends a.Template{apply(e,t,{module:n,runtimeTemplate:o,moduleGraph:a,initFragments:c,runtimeRequirements:u,runtime:l}){const f=a.getExportsInfo(n);if(f.getReadOnlyExportInfo("__esModule").getUsed(l)!==r.Unused){const e=o.defineEsModuleFlagStatement({exportsArgument:n.exportsArgument,runtimeRequirements:u});c.push(new i(e,i.STAGE_HARMONY_EXPORTS,0,"harmony compatibility"))}if(a.isAsync(n)){u.add(s.module);const e=f.isUsed(l);if(e)u.add(s.exports);c.push(new i(`${n.moduleArgument}.exports = (async () => {\n`,i.STAGE_ASYNC_BOUNDARY,0,undefined,e?`\nreturn ${n.exportsArgument};\n})();`:"\n})();"))}}};e.exports=HarmonyCompatibilityDependency},11720:(e,t,n)=>{"use strict";const r=n(28140);const i=n(54290);const s=n(25702);e.exports=class HarmonyDetectionParserPlugin{constructor(e){const{topLevelAwait:t=false}=e||{};this.topLevelAwait=t}apply(e){e.hooks.program.tap("HarmonyDetectionParserPlugin",t=>{const n=e.state.module.type==="javascript/esm";const o=n||t.body.some(e=>e.type==="ImportDeclaration"||e.type==="ExportDefaultDeclaration"||e.type==="ExportNamedDeclaration"||e.type==="ExportAllDeclaration");if(o){const t=e.state.module;const o=new i;o.loc={start:{line:-1,column:0},end:{line:-1,column:0},index:-3};t.addPresentationalDependency(o);r.bailout(e.state);s.enable(e.state,n);e.scope.isStrict=true}});e.hooks.topLevelAwait.tap("HarmonyDetectionParserPlugin",()=>{const t=e.state.module;if(!this.topLevelAwait){throw new Error("The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)")}if(!s.isEnabled(e.state)){throw new Error("Top-level-await is only supported in EcmaScript Modules")}t.buildMeta.async=true});const t=()=>{if(s.isEnabled(e.state)){return true}};const n=()=>{if(s.isEnabled(e.state)){return null}};const o=["define","exports"];for(const r of o){e.hooks.evaluateTypeof.for(r).tap("HarmonyDetectionParserPlugin",n);e.hooks.typeof.for(r).tap("HarmonyDetectionParserPlugin",t);e.hooks.evaluate.for(r).tap("HarmonyDetectionParserPlugin",n);e.hooks.expression.for(r).tap("HarmonyDetectionParserPlugin",t);e.hooks.call.for(r).tap("HarmonyDetectionParserPlugin",t)}}}},16081:(e,t,n)=>{"use strict";const r=n(58018);const i=n(66298);const s=n(55037);const o=n(48752);const a=n(44576);const c=n(14696);const{harmonySpecifierTag:u}=n(29381);const l=n(69707);e.exports=class HarmonyExportDependencyParserPlugin{constructor(e){const{module:t}=e;this.strictExportPresence=t.strictExportPresence}apply(e){e.hooks.export.tap("HarmonyExportDependencyParserPlugin",t=>{const n=new o(t.declaration&&t.declaration.range,t.range);n.loc=Object.create(t.loc);n.loc.index=-1;e.state.module.addPresentationalDependency(n);return true});e.hooks.exportImport.tap("HarmonyExportDependencyParserPlugin",(t,n)=>{e.state.lastHarmonyImportOrder=(e.state.lastHarmonyImportOrder||0)+1;const r=new i("",t.range);r.loc=Object.create(t.loc);r.loc.index=-1;e.state.module.addPresentationalDependency(r);const s=new l(n,e.state.lastHarmonyImportOrder);s.loc=Object.create(t.loc);s.loc.index=-1;e.state.current.addDependency(s);return true});e.hooks.exportExpression.tap("HarmonyExportDependencyParserPlugin",(t,n)=>{const i=n.type==="FunctionDeclaration";const o=e.getComments([t.range[0],n.range[0]]);const a=new s(n.range,t.range,o.map(e=>{switch(e.type){case"Block":return`/*${e.value}*/`;case"Line":return`//${e.value}\n`}return""}).join(""),n.type.endsWith("Declaration")&&n.id?n.id.name:i?{id:n.id?n.id.name:undefined,range:[n.range[0],n.params.length>0?n.params[0].range[0]:n.body.range[0]],prefix:`${n.async?"async ":""}function `,suffix:`${n.generator?"*":""}(${n.params.length>0?"":") "}`}:undefined);a.loc=Object.create(t.loc);a.loc.index=-1;e.state.current.addDependency(a);r.addVariableUsage(e,n.type.endsWith("Declaration")&&n.id?n.id.name:"*default*","default");return true});e.hooks.exportSpecifier.tap("HarmonyExportDependencyParserPlugin",(t,n,i,s)=>{const o=e.getTagData(n,u);let l;const f=e.state.harmonyNamedExports=e.state.harmonyNamedExports||new Set;f.add(i);r.addVariableUsage(e,n,i);if(o){l=new a(o.source,o.sourceOrder,o.ids,i,f,null,this.strictExportPresence)}else{l=new c(n,i)}l.loc=Object.create(t.loc);l.loc.index=s;e.state.current.addDependency(l);return true});e.hooks.exportImportSpecifier.tap("HarmonyExportDependencyParserPlugin",(t,n,r,i,s)=>{const o=e.state.harmonyNamedExports=e.state.harmonyNamedExports||new Set;let c=null;if(i){o.add(i)}else{c=e.state.harmonyStarExports=e.state.harmonyStarExports||[]}const u=new a(n,e.state.lastHarmonyImportOrder,r?[r]:[],i,o,c&&c.slice(),this.strictExportPresence);if(c){c.push(u)}u.loc=Object.create(t.loc);u.loc.index=s;e.state.current.addDependency(u);return true})}}},55037:(e,t,n)=>{"use strict";const r=n(76150);const i=n(56202);const s=n(82296);const o=n(12197);class HarmonyExportExpressionDependency extends o{constructor(e,t,n,r){super();this.range=e;this.rangeStatement=t;this.prefix=n;this.declarationId=r}get type(){return"harmony export expression"}getExports(e){return{exports:["default"],terminalBinding:true,dependencies:undefined}}serialize(e){const{write:t}=e;t(this.range);t(this.rangeStatement);t(this.prefix);t(this.declarationId);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.rangeStatement=t();this.prefix=t();this.declarationId=t();super.deserialize(e)}}i(HarmonyExportExpressionDependency,"webpack/lib/dependencies/HarmonyExportExpressionDependency");HarmonyExportExpressionDependency.Template=class HarmonyExportDependencyTemplate extends o.Template{apply(e,t,{module:n,moduleGraph:i,runtimeTemplate:o,runtimeRequirements:a,initFragments:c,runtime:u}){const l=e;const f=i.getExportsInfo(n).getUsedName("default",u);const{declarationId:p}=l;const d=n.exportsArgument;if(p){let e;if(typeof p==="string"){e=p}else{e="__WEBPACK_DEFAULT_EXPORT__";t.replace(p.range[0],p.range[1]-1,`${p.prefix}${e}${p.suffix}`)}if(f){const t=new Map;t.set(f,`/* export default binding */ ${e}`);c.push(new s(d,t))}t.replace(l.rangeStatement[0],l.range[0]-1,`/* harmony default export */ ${l.prefix}`)}else{let e;if(f){a.add(r.exports);if(o.supportsConst()){const t="__WEBPACK_DEFAULT_EXPORT__";e=`/* harmony default export */ const ${t} = `;const n=new Map;n.set(f,t);c.push(new s(d,n))}else{e=`/* harmony default export */ ${d}[${JSON.stringify(f)}] = `}}else{e="/* unused harmony default export */ var _unused_webpack_default_export = "}if(l.range){t.replace(l.rangeStatement[0],l.range[0]-1,e+"("+l.prefix);t.replace(l.range[1],l.rangeStatement[1]-.5,");");return}t.replace(l.rangeStatement[0],l.rangeStatement[1]-1,e)}}};e.exports=HarmonyExportExpressionDependency},48752:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class HarmonyExportHeaderDependency extends i{constructor(e,t){super();this.range=e;this.rangeStatement=t}get type(){return"harmony export header"}serialize(e){const{write:t}=e;t(this.range);t(this.rangeStatement);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.rangeStatement=t();super.deserialize(e)}}r(HarmonyExportHeaderDependency,"webpack/lib/dependencies/HarmonyExportHeaderDependency");HarmonyExportHeaderDependency.Template=class HarmonyExportDependencyTemplate extends i.Template{apply(e,t,n){const r=e;const i="";const s=r.range?r.range[0]-1:r.rangeStatement[1]-1;t.replace(r.rangeStatement[0],s,i)}};e.exports=HarmonyExportHeaderDependency},44576:(e,t,n)=>{"use strict";const r=n(28706);const{UsageState:i}=n(76632);const s=n(36756);const o=n(63272);const a=n(76150);const c=n(58159);const u=n(56202);const l=n(68038);const f=n(82296);const p=n(37359);const d=n(18971);const h=Symbol("HarmonyExportImportedSpecifierDependency.ids");class NormalReexportItem{constructor(e,t,n,r){this.name=e;this.ids=t;this.exportInfo=n;this.checked=r}}class ExportMode{constructor(e){this.type=e;this.items=null;this.name=null;this.partialNamespaceExportInfo=null;this.ignored=null;this.userRequest=null;this.fakeType=0}}class HarmonyExportImportedSpecifierDependency extends p{constructor(e,t,n,r,i,s,o){super(e,t);this.ids=n;this.name=r;this.activeExports=i;this.otherStarExports=s;this.strictExportPresence=o}get id(){throw new Error("id was renamed to ids and type changed to string[]")}getId(){throw new Error("id was renamed to ids and type changed to string[]")}setId(){throw new Error("id was renamed to ids and type changed to string[]")}get type(){return"harmony export imported specifier"}getIds(e){return e.getMeta(this)[h]||this.ids}setIds(e,t){e.getMeta(this)[h]=t}getMode(e,t){const n=this.name;const r=this.getIds(e);const s=e.getParentModule(this);const o=e.getModule(this);const a=e.getExportsInfo(s);if(!o){const e=new ExportMode("missing");e.userRequest=this.userRequest;return e}if(n?a.getUsed(n,t)===i.Unused:a.isUsed(t)===false){const e=new ExportMode("unused");e.name=n||"*";return e}const c=o.getExportsType(e,s.buildMeta.strictHarmonyModule);if(n&&r.length>0&&r[0]==="default"){switch(c){case"dynamic":{const e=new ExportMode("reexport-dynamic-default");e.name=n;return e}case"default-only":case"default-with-named":{const e=a.getReadOnlyExportInfo(n);const t=new ExportMode("reexport-named-default");t.name=n;t.partialNamespaceExportInfo=e;return t}}}if(n){let e;const t=a.getReadOnlyExportInfo(n);if(r.length>0){switch(c){case"default-only":e=new ExportMode("reexport-undefined");e.name=n;break;default:e=new ExportMode("normal-reexport");e.items=[new NormalReexportItem(n,r,t,false)];break}}else{switch(c){case"default-only":e=new ExportMode("reexport-fake-namespace-object");e.name=n;e.partialNamespaceExportInfo=t;e.fakeType=0;break;case"default-with-named":e=new ExportMode("reexport-fake-namespace-object");e.name=n;e.partialNamespaceExportInfo=t;e.fakeType=2;break;case"dynamic":e=new ExportMode("reexport-fake-namespace-object");e.name=n;e.partialNamespaceExportInfo=t;e.fakeType=6;break;default:e=new ExportMode("reexport-namespace-object");e.name=n;e.partialNamespaceExportInfo=t}}return e}const{ignoredExports:u,exports:l,checked:f}=this.getStarReexports(e,t,a,o);if(!l){const e=new ExportMode("dynamic-reexport");e.ignored=u;return e}if(l.size===0){const e=new ExportMode("empty-star");return e}const p=new ExportMode("normal-reexport");p.items=Array.from(l,e=>new NormalReexportItem(e,[e],a.getReadOnlyExportInfo(e),f.has(e)));return p}getStarReexports(e,t,n=e.getExportsInfo(e.getParentModule(this)),r=e.getModule(this)){const s=e.getExportsInfo(r);const o=s.otherExportsInfo.provided===false;const a=n.otherExportsInfo.getUsed(t)===i.Unused;const c=new Set(["default",...this.activeExports,...this._discoverActiveExportsFromOtherStarExports(e).keys()]);if(!o&&!a){return{ignoredExports:c}}const u=new Set;const l=new Set;if(a){for(const e of n.orderedExports){const n=e.name;if(c.has(n))continue;if(e.getUsed(t)===i.Unused)continue;const r=s.getReadOnlyExportInfo(n);if(r.provided===false)continue;u.add(n);if(r.provided===true)continue;l.add(n)}}else if(o){for(const e of s.orderedExports){const r=e.name;if(c.has(r))continue;if(e.provided===false)continue;const s=n.getReadOnlyExportInfo(r);if(s.getUsed(t)===i.Unused)continue;u.add(r);if(e.provided===true)continue;l.add(r)}}return{ignoredExports:c,exports:u,checked:l}}getCondition(e){return(t,n)=>{const r=this.getMode(e,n);return r.type!=="unused"&&r.type!=="empty-star"}}getReferencedExports(e,t){const n=this.getMode(e,t);switch(n.type){case"missing":case"unused":case"empty-star":case"reexport-undefined":return r.NO_EXPORTS_REFERENCED;case"reexport-dynamic-default":return r.EXPORTS_OBJECT_REFERENCED;case"reexport-named-default":{if(!n.partialNamespaceExportInfo)return r.EXPORTS_OBJECT_REFERENCED;const e=[];d(t,e,[],n.partialNamespaceExportInfo);return e}case"reexport-namespace-object":case"reexport-fake-namespace-object":{if(!n.partialNamespaceExportInfo)return r.EXPORTS_OBJECT_REFERENCED;const e=[];d(t,e,[],n.partialNamespaceExportInfo,n.type==="reexport-fake-namespace-object");return e}case"dynamic-reexport":return r.EXPORTS_OBJECT_REFERENCED;case"normal-reexport":{const e=[];for(const{ids:r,exportInfo:i}of n.items){d(t,e,r,i,false)}return e}default:throw new Error(`Unknown mode ${n.type}`)}}_discoverActiveExportsFromOtherStarExports(e){if(!this.otherStarExports){return new Map}const t=new Map;for(const n of this.otherStarExports){const r=e.getModule(n);if(r){const i=e.getExportsInfo(r);for(const e of i.exports){if(e.provided===true&&!t.has(e.name)){t.set(e.name,n)}}}}return t}getExports(e){const t=this.getMode(e,undefined);switch(t.type){case"missing":return undefined;case"dynamic-reexport":{const n=e.getModule(this);return{exports:true,from:n,canMangle:false,excludeExports:t.ignored,dependencies:[n]}}case"empty-star":return{exports:[],dependencies:[e.getModule(this)]};case"normal-reexport":{const n=e.getModule(this);return{exports:Array.from(t.items,e=>({name:e.name,from:n,export:e.ids})),dependencies:[n]}}case"reexport-dynamic-default":{const n=e.getModule(this);return{exports:[{name:t.name,from:n,export:["default"]}],dependencies:[n]}}case"reexport-undefined":return{exports:[t.name],dependencies:[e.getModule(this)]};case"reexport-fake-namespace-object":return{exports:[{name:t.name,from:e.getModule(this),export:null,exports:[{name:"default",canMangle:false,from:e.getModule(this),export:null}]}],dependencies:[e.getModule(this)]};case"reexport-namespace-object":return{exports:[{name:t.name,from:e.getModule(this),export:null}],dependencies:[e.getModule(this)]};case"reexport-named-default":return{exports:[{name:t.name,from:e.getModule(this),export:["default"]}],dependencies:[e.getModule(this)]};default:throw new Error(`Unknown mode ${t.type}`)}}getWarnings(e){if(this.strictExportPresence||e.getParentModule(this).buildMeta.strictHarmonyModule){return null}return this._getErrors(e)}getErrors(e){if(this.strictExportPresence||e.getParentModule(this).buildMeta.strictHarmonyModule){return this._getErrors(e)}return null}_getErrors(e){const t=this.getIds(e);let n=this.getLinkingErrors(e,t,`(reexported as '${this.name}')`);if(t.length===0&&this.name===null){const t=this._discoverActiveExportsFromOtherStarExports(e);if(t.size>0){const r=e.getModule(this);if(r){const i=e.getExportsInfo(r);const o=new Map;for(const n of i.orderedExports){if(n.provided!==true)continue;if(n.name==="default")continue;if(this.activeExports.has(n.name))continue;const i=t.get(n.name);if(!i)continue;const s=n.getTerminalBinding(e);if(!s)continue;const a=e.getModule(i);if(a===r)continue;const c=e.getExportInfo(a,n.name);const u=c.getTerminalBinding(e);if(!u)continue;if(s===u)continue;const l=o.get(i.request);if(l===undefined){o.set(i.request,[n.name])}else{l.push(n.name)}}for(const[e,t]of o){if(!n)n=[];n.push(new s(`The requested module '${this.request}' contains conflicting star exports for the ${t.length>1?"names":"name"} ${t.map(e=>`'${e}'`).join(", ")} with the previous requested module '${e}'`))}}}}return n}updateHash(e,t){const{chunkGraph:n,runtime:r}=t;super.updateHash(e,t);const i=this.getMode(n.moduleGraph,r);e.update(i.type);if(i.items){for(const t of i.items){e.update(t.name);e.update(t.ids.join());if(t.checked)e.update("checked")}}if(i.ignored){e.update("ignored");for(const t of i.ignored){e.update(t)}}e.update(i.name||"")}serialize(e){const{write:t}=e;t(this.ids);t(this.name);t(this.activeExports);t(this.otherStarExports);t(this.strictExportPresence);super.serialize(e)}deserialize(e){const{read:t}=e;this.ids=t();this.name=t();this.activeExports=t();this.otherStarExports=t();this.strictExportPresence=t();super.deserialize(e)}}u(HarmonyExportImportedSpecifierDependency,"webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency");e.exports=HarmonyExportImportedSpecifierDependency;HarmonyExportImportedSpecifierDependency.Template=class HarmonyExportImportedSpecifierDependencyTemplate extends p.Template{apply(e,t,n){const r=e;const i=r.getMode(n.moduleGraph,n.runtime);if(i.type!=="unused"&&i.type!=="empty-star"){super.apply(e,t,n);this._addExportFragments(n.initFragments,r,i,n.module,n.moduleGraph,n.runtime,n.runtimeTemplate,n.runtimeRequirements)}}_addExportFragments(e,t,n,r,i,s,u,l){const f=i.getModule(t);const p=t.getImportVar(i);switch(n.type){case"missing":case"empty-star":e.push(new o("/* empty/unused harmony star reexport */\n",o.STAGE_HARMONY_EXPORTS,1));break;case"unused":e.push(new o(`${c.toNormalComment(`unused harmony reexport ${n.name}`)}\n`,o.STAGE_HARMONY_EXPORTS,1));break;case"reexport-dynamic-default":e.push(this.getReexportFragment(r,"reexport default from dynamic",i.getExportsInfo(r).getUsedName(n.name,s),p,null,l));break;case"reexport-fake-namespace-object":e.push(...this.getReexportFakeNamespaceObjectFragments(r,i.getExportsInfo(r).getUsedName(n.name,s),p,n.fakeType,l));break;case"reexport-undefined":e.push(this.getReexportFragment(r,"reexport non-default export from non-harmony",i.getExportsInfo(r).getUsedName(n.name,s),"undefined","",l));break;case"reexport-named-default":e.push(this.getReexportFragment(r,"reexport default export from named module",i.getExportsInfo(r).getUsedName(n.name,s),p,"",l));break;case"reexport-namespace-object":e.push(this.getReexportFragment(r,"reexport module object",i.getExportsInfo(r).getUsedName(n.name,s),p,"",l));break;case"normal-reexport":for(const{name:a,ids:c,checked:u}of n.items){if(u){e.push(new o("/* harmony reexport (checked) */ "+this.getConditionalReexportStatement(r,a,p,c,l),o.STAGE_HARMONY_IMPORTS,t.sourceOrder))}else{e.push(this.getReexportFragment(r,"reexport safe",i.getExportsInfo(r).getUsedName(a,s),p,i.getExportsInfo(f).getUsedName(c,s),l))}}break;case"dynamic-reexport":{const i=n.ignored;const s=u.supportsConst()&&u.supportsArrowFunction();let c="/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n"+`/* harmony reexport (unknown) */ for(${s?"const":"var"} __WEBPACK_IMPORT_KEY__ in ${p}) `;if(i.size>1){c+="if("+JSON.stringify(Array.from(i))+".indexOf(__WEBPACK_IMPORT_KEY__) < 0) "}else if(i.size===1){c+=`if(__WEBPACK_IMPORT_KEY__ !== ${JSON.stringify(i.values().next().value)}) `}c+=`__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = `;if(s){c+=`() => ${p}[__WEBPACK_IMPORT_KEY__]`}else{c+=`function(key) { return ${p}[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)`}l.add(a.exports);l.add(a.definePropertyGetters);const f=r.exportsArgument;e.push(new o(`${c}\n/* harmony reexport (unknown) */ ${a.definePropertyGetters}(${f}, __WEBPACK_REEXPORT_OBJECT__);\n`,o.STAGE_HARMONY_IMPORTS,t.sourceOrder));break}default:throw new Error(`Unknown mode ${n.type}`)}}getReexportFragment(e,t,n,r,i,s){const o=this.getReturnValue(r,i);s.add(a.exports);s.add(a.definePropertyGetters);const c=new Map;c.set(n,`/* ${t} */ ${o}`);return new f(e.exportsArgument,c)}getReexportFakeNamespaceObjectFragments(e,t,n,r,i){i.add(a.exports);i.add(a.definePropertyGetters);i.add(a.createFakeNamespaceObject);const s=new Map;s.set(t,`/* reexport fake namespace object from non-harmony */ ${n}_namespace_cache || (${n}_namespace_cache = ${a.createFakeNamespaceObject}(${n}${r?`, ${r}`:""}))`);return[new o(`var ${n}_namespace_cache;\n`,o.STAGE_CONSTANTS,-1,`${n}_namespace_cache`),new f(e.exportsArgument,s)]}getConditionalReexportStatement(e,t,n,r,i){if(r===false){return"/* unused export */\n"}const s=e.exportsArgument;const o=this.getReturnValue(n,r);i.add(a.exports);i.add(a.definePropertyGetters);i.add(a.hasOwnProperty);return`if(${a.hasOwnProperty}(${n}, ${JSON.stringify(r[0])})) ${a.definePropertyGetters}(${s}, { ${JSON.stringify(t)}: function() { return ${o}; } });\n`}getReturnValue(e,t){if(t===null){return`${e}_default.a`}if(t===""){return e}if(t===false){return"/* unused export */ undefined"}return`${e}${l(t)}`}}},82296:(e,t,n)=>{"use strict";const r=n(63272);const i=n(76150);const s=e=>{let t="";let n=true;for(const r of e){if(n){n=false}else{t+=", "}t+=r}return t};const o=new Map;const a=new Set;class HarmonyExportInitFragment extends r{constructor(e,t=o,n=a){super(undefined,r.STAGE_HARMONY_EXPORTS,1,"harmony-exports");this.exportsArgument=e;this.exportMap=t;this.unusedExports=n}merge(e){let t;if(this.exportMap.size===0){t=e.exportMap}else if(e.exportMap.size===0){t=this.exportMap}else{t=new Map(e.exportMap);for(const[e,n]of this.exportMap){if(!t.has(e))t.set(e,n)}}let n;if(this.unusedExports.size===0){n=e.unusedExports}else if(e.unusedExports.size===0){n=this.unusedExports}else{n=new Set(e.unusedExports);for(const e of this.unusedExports){n.add(e)}}return new HarmonyExportInitFragment(this.exportsArgument,t,n)}getContent({runtimeTemplate:e,runtimeRequirements:t}){t.add(i.exports);t.add(i.definePropertyGetters);const n=this.unusedExports.size>1?`/* unused harmony exports ${s(this.unusedExports)} */\n`:this.unusedExports.size>0?`/* unused harmony export ${this.unusedExports.values().next().value} */\n`:"";const r=[];for(const[t,n]of this.exportMap){r.push(`\n/* harmony export */ ${JSON.stringify(t)}: ${e.returningFunction(n)}`)}const o=this.exportMap.size>0?`/* harmony export */ ${i.definePropertyGetters}(${this.exportsArgument}, {${r.join(",")}\n/* harmony export */ });\n`:"";return`${o}${n}`}}e.exports=HarmonyExportInitFragment},14696:(e,t,n)=>{"use strict";const r=n(56202);const i=n(82296);const s=n(12197);class HarmonyExportSpecifierDependency extends s{constructor(e,t){super();this.id=e;this.name=t}get type(){return"harmony export specifier"}getExports(e){return{exports:[this.name],terminalBinding:true,dependencies:undefined}}serialize(e){const{write:t}=e;t(this.id);t(this.name);super.serialize(e)}deserialize(e){const{read:t}=e;this.id=t();this.name=t();super.deserialize(e)}}r(HarmonyExportSpecifierDependency,"webpack/lib/dependencies/HarmonyExportSpecifierDependency");HarmonyExportSpecifierDependency.Template=class HarmonyExportSpecifierDependencyTemplate extends s.Template{apply(e,t,{module:n,moduleGraph:r,initFragments:s,runtimeRequirements:o,runtime:a}){const c=e;const u=r.getExportsInfo(n).getUsedName(c.name,a);if(!u){const e=new Set;e.add(c.name||"namespace");s.push(new i(n.exportsArgument,undefined,e));return}const l=new Map;l.set(u,`/* binding */ ${c.id}`);s.push(new i(n.exportsArgument,l,undefined))}};e.exports=HarmonyExportSpecifierDependency},25702:(e,t)=>{"use strict";const n=new WeakMap;t.enable=((e,t)=>{const r=n.get(e);if(r===false)return;n.set(e,true);if(r!==true){e.module.buildMeta.exportsType="namespace";e.module.buildInfo.strict=true;e.module.buildInfo.exportsArgument="__webpack_exports__";if(t){e.module.buildMeta.strictHarmonyModule=true;e.module.buildInfo.moduleArgument="__webpack_module__"}}});t.isEnabled=(e=>{const t=n.get(e);return t===true})},37359:(e,t,n)=>{"use strict";const r=n(28706);const i=n(36756);const s=n(63272);const o=n(58159);const a=n(10813);const c=n(79983);class HarmonyImportDependency extends c{constructor(e,t){super(e);this.sourceOrder=t}get category(){return"esm"}getReferencedExports(e,t){return r.NO_EXPORTS_REFERENCED}getImportVar(e){const t=e.getParentModule(this);const n=e.getMeta(t);let r=n.importVarMap;if(!r)n.importVarMap=r=new Map;let i=r.get(e.getModule(this));if(i)return i;i=`${o.toIdentifier(`${this.userRequest}`)}__WEBPACK_IMPORTED_MODULE_${r.size}__`;r.set(e.getModule(this),i);return i}getImportStatement(e,{runtimeTemplate:t,module:n,moduleGraph:r,chunkGraph:i,runtimeRequirements:s}){return t.importStatement({update:e,module:r.getModule(this),chunkGraph:i,importVar:this.getImportVar(r),request:this.request,originModule:n,runtimeRequirements:s})}getLinkingErrors(e,t,n){const r=e.getModule(this);if(!r||r.getNumberOfErrors()>0){return}const s=e.getParentModule(this);const o=r.getExportsType(e,s.buildMeta.strictHarmonyModule);switch(o){case"default-only":if(t.length>0&&t[0]!=="default"){return[new i(`Can't import the named export ${t.map(e=>`'${e}'`).join(".")} ${n} from default-exporting module (only default export is available)`)]}return;case"default-with-named":if(t.length>0&&t[0]!=="default"&&r.buildMeta.defaultObject==="redirect-warn"){return[new i(`Should not import the named export ${t.map(e=>`'${e}'`).join(".")} ${n} from default-exporting module (only default export is available soon)`)]}return;case"namespace":{if(t.length===0){return}if(e.isExportProvided(r,t)!==false){return}let s=0;let o=e.getExportsInfo(r);while(s<t.length&&o){const e=t[s++];const r=o.getReadOnlyExportInfo(e);if(r.provided===false){const e=o.getProvidedExports();const r=Array.isArray(e)?` (possible exports: ${e.join(", ")})`:" (possible exports unknown)";return[new i(`export ${t.slice(0,s).map(e=>`'${e}'`).join(".")} ${n} was not found in '${this.userRequest}'${r}`)]}o=r.getNestedExportsInfo()}return[new i(`export ${t.map(e=>`'${e}'`).join(".")} ${n} was not found in '${this.userRequest}'`)]}}}updateHash(e,t){const{chunkGraph:n}=t;const{moduleGraph:r}=n;super.updateHash(e,t);const i=r.getModule(this);if(i){const t=r.getParentModule(this);e.update(i.getExportsType(r,t.buildMeta&&t.buildMeta.strictHarmonyModule));if(r.isAsync(i))e.update("async")}e.update(`${this.sourceOrder}`)}serialize(e){const{write:t}=e;t(this.sourceOrder);super.serialize(e)}deserialize(e){const{read:t}=e;this.sourceOrder=t();super.deserialize(e)}}e.exports=HarmonyImportDependency;const u=new WeakMap;HarmonyImportDependency.Template=class HarmonyImportDependencyTemplate extends c.Template{apply(e,t,n){const r=e;const{module:i,moduleGraph:o,runtime:c}=n;const l=o.getConnection(r);if(l&&!l.isActive(c))return;const f=l&&l.module;const p=f?f.identifier():r.request;const d=`harmony import ${p}`;if(i){let e=u.get(r);if(e===undefined){e=new WeakSet;u.set(r,e)}e.add(i)}const h=r.getImportStatement(false,n);if(n.moduleGraph.isAsync(f)){n.initFragments.push(new s(h[0],s.STAGE_HARMONY_IMPORTS,r.sourceOrder,d));n.initFragments.push(new a(new Set([r.getImportVar(n.moduleGraph)])));n.initFragments.push(new s(h[1],s.STAGE_ASYNC_HARMONY_IMPORTS,r.sourceOrder,d+" compat"))}else{n.initFragments.push(new s(h[0]+h[1],s.STAGE_HARMONY_IMPORTS,r.sourceOrder,d))}}static isImportEmitted(e,t){const n=u.get(e);return n!==undefined&&n.has(t)}}},29381:(e,t,n)=>{"use strict";const r=n(79972);const i=n(58018);const s=n(66298);const o=n(27790);const a=n(80654);const c=n(25702);const u=n(69707);const l=n(2230);const f=Symbol("harmony import");e.exports=class HarmonyImportDependencyParserPlugin{constructor(e){const{module:t}=e;this.strictExportPresence=t.strictExportPresence;this.strictThisContextOnImports=t.strictThisContextOnImports}apply(e){e.hooks.import.tap("HarmonyImportDependencyParserPlugin",(t,n)=>{e.state.lastHarmonyImportOrder=(e.state.lastHarmonyImportOrder||0)+1;const r=new s("",t.range);r.loc=t.loc;e.state.module.addPresentationalDependency(r);const i=new u(n,e.state.lastHarmonyImportOrder);i.loc=t.loc;e.state.module.addDependency(i);return true});e.hooks.importSpecifier.tap("HarmonyImportDependencyParserPlugin",(t,n,r,i)=>{const s=r===null?[]:[r];e.tagVariable(i,f,{name:i,source:n,ids:s,sourceOrder:e.state.lastHarmonyImportOrder});return true});e.hooks.expression.for(f).tap("HarmonyImportDependencyParserPlugin",t=>{const n=e.currentTagData;const r=new l(n.source,n.sourceOrder,n.ids,n.name,t.range,this.strictExportPresence);r.shorthand=e.scope.inShorthand;r.directImport=true;r.asiSafe=!e.isAsiPosition(t.range[0]);r.loc=t.loc;e.state.module.addDependency(r);i.onUsage(e.state,e=>r.usedByExports=e);return true});e.hooks.expressionMemberChain.for(f).tap("HarmonyImportDependencyParserPlugin",(t,n)=>{const r=e.currentTagData;const s=r.ids.concat(n);const o=new l(r.source,r.sourceOrder,s,r.name,t.range,this.strictExportPresence);o.asiSafe=!e.isAsiPosition(t.range[0]);o.loc=t.loc;e.state.module.addDependency(o);i.onUsage(e.state,e=>o.usedByExports=e);return true});e.hooks.callMemberChain.for(f).tap("HarmonyImportDependencyParserPlugin",(t,n)=>{const r=t.arguments;t=t.callee;const s=e.currentTagData;const o=s.ids.concat(n);const a=new l(s.source,s.sourceOrder,o,s.name,t.range,this.strictExportPresence);a.directImport=n.length===0;a.call=true;a.asiSafe=!e.isAsiPosition(t.range[0]);a.namespaceObjectAsContext=n.length>0&&this.strictThisContextOnImports;a.loc=t.loc;e.state.module.addDependency(a);if(r)e.walkExpressions(r);i.onUsage(e.state,e=>a.usedByExports=e);return true});const{hotAcceptCallback:t,hotAcceptWithoutCallback:n}=r.getParserHooks(e);t.tap("HarmonyImportDependencyParserPlugin",(t,n)=>{if(!c.isEnabled(e.state)){return}const r=n.map(n=>{const r=new a(n);r.loc=t.loc;e.state.module.addDependency(r);return r});if(r.length>0){const n=new o(t.range,r,true);n.loc=t.loc;e.state.module.addDependency(n)}});n.tap("HarmonyImportDependencyParserPlugin",(t,n)=>{if(!c.isEnabled(e.state)){return}const r=n.map(n=>{const r=new a(n);r.loc=t.loc;e.state.module.addDependency(r);return r});if(r.length>0){const n=new o(t.range,r,false);n.loc=t.loc;e.state.module.addDependency(n)}})}};e.exports.harmonySpecifierTag=f},69707:(e,t,n)=>{"use strict";const r=n(56202);const i=n(37359);class HarmonyImportSideEffectDependency extends i{constructor(e,t){super(e,t)}get type(){return"harmony side effect evaluation"}getCondition(e){return e=>{const t=e.resolvedModule;return!t||t.factoryMeta===undefined||!t.factoryMeta.sideEffectFree}}}r(HarmonyImportSideEffectDependency,"webpack/lib/dependencies/HarmonyImportSideEffectDependency");HarmonyImportSideEffectDependency.Template=i.Template;e.exports=HarmonyImportSideEffectDependency},2230:(e,t,n)=>{"use strict";const r=n(28706);const{UsageState:i}=n(76632);const s=n(56202);const o=n(37359);const a=Symbol("HarmonyImportSpecifierDependency.ids");class HarmonyImportSpecifierDependency extends o{constructor(e,t,n,r,i,s){super(e,t);this.ids=n;this.name=r;this.range=i;this.strictExportPresence=s;this.namespaceObjectAsContext=false;this.call=undefined;this.directImport=undefined;this.shorthand=undefined;this.asiSafe=false;this.usedByExports=undefined}get id(){throw new Error("id was renamed to ids and type changed to string[]")}getId(){throw new Error("id was renamed to ids and type changed to string[]")}setId(){throw new Error("id was renamed to ids and type changed to string[]")}get type(){return"harmony import specifier"}getIds(e){return e.getMeta(this)[a]||this.ids}setIds(e,t){e.getMeta(this)[a]=t}getCondition(e){return(t,n)=>this.checkUsedByExports(e,n)}checkUsedByExports(e,t){if(this.usedByExports===false)return false;if(this.usedByExports!==true&&this.usedByExports!==undefined){const n=e.getParentModule(this);const r=e.getExportsInfo(n);let s=false;for(const e of this.usedByExports){if(r.getUsed(e,t)!==i.Unused)s=true}if(!s)return false}return true}getReferencedExports(e,t){let n=this.getIds(e);if(n.length>0&&n[0]==="default"){const t=e.getParentModule(this);const i=e.getModule(this);switch(i.getExportsType(e,t.buildMeta.strictHarmonyModule)){case"default-only":case"default-with-named":if(n.length===1)return r.EXPORTS_OBJECT_REFERENCED;n=n.slice(1);break;case"dynamic":return r.EXPORTS_OBJECT_REFERENCED}}if(this.namespaceObjectAsContext){if(n.length===1)return r.EXPORTS_OBJECT_REFERENCED;n=n.slice(0,-1)}return[n]}getWarnings(e){if(this.strictExportPresence||e.getParentModule(this).buildMeta.strictHarmonyModule){return null}return this._getErrors(e)}getErrors(e){if(this.strictExportPresence||e.getParentModule(this).buildMeta.strictHarmonyModule){return this._getErrors(e)}return null}_getErrors(e){const t=this.getIds(e);return this.getLinkingErrors(e,t,`(imported as '${this.name}')`)}getNumberOfIdOccurrences(){return 0}updateHash(e,t){const{chunkGraph:n}=t;super.updateHash(e,t);const r=n.moduleGraph;const i=r.getModule(this);const s=this.getIds(r);e.update(s.join());if(i){const n=r.getExportsInfo(i);e.update(`${n.getUsedName(s,t.runtime)}`)}}serialize(e){const{write:t}=e;t(this.ids);t(this.name);t(this.range);t(this.strictExportPresence);t(this.namespaceObjectAsContext);t(this.call);t(this.directImport);t(this.shorthand);t(this.asiSafe);t(this.usedByExports);super.serialize(e)}deserialize(e){const{read:t}=e;this.ids=t();this.name=t();this.range=t();this.strictExportPresence=t();this.namespaceObjectAsContext=t();this.call=t();this.directImport=t();this.shorthand=t();this.asiSafe=t();this.usedByExports=t();super.deserialize(e)}}s(HarmonyImportSpecifierDependency,"webpack/lib/dependencies/HarmonyImportSpecifierDependency");HarmonyImportSpecifierDependency.Template=class HarmonyImportSpecifierDependencyTemplate extends o.Template{apply(e,t,n){const r=e;const{moduleGraph:i,runtime:s}=n;const o=i.getConnection(r);if(o&&!o.isActive(s))return;super.apply(e,t,n);const{runtimeTemplate:a,module:c,initFragments:u,runtimeRequirements:l}=n;const f=r.getIds(i);const p=a.exportFromImport({moduleGraph:i,module:i.getModule(r),request:r.request,exportName:f,originModule:c,asiSafe:r.asiSafe||r.shorthand,isCall:r.call,callContext:!r.directImport,defaultInterop:true,importVar:r.getImportVar(i),initFragments:u,runtime:s,runtimeRequirements:l});if(r.shorthand){t.insert(r.range[1],`: ${p}`)}else{t.replace(r.range[0],r.range[1]-1,p)}}};e.exports=HarmonyImportSpecifierDependency},26165:(e,t,n)=>{"use strict";const r=n(27790);const i=n(80654);const s=n(54290);const o=n(55037);const a=n(48752);const c=n(44576);const u=n(14696);const l=n(69707);const f=n(2230);const p=n(11720);const d=n(16081);const h=n(29381);const m=n(13197);class HarmonyModulesPlugin{constructor(e){this.options=e}apply(e){e.hooks.compilation.tap("HarmonyModulesPlugin",(e,{normalModuleFactory:t})=>{e.dependencyTemplates.set(s,new s.Template);e.dependencyFactories.set(l,t);e.dependencyTemplates.set(l,new l.Template);e.dependencyFactories.set(f,t);e.dependencyTemplates.set(f,new f.Template);e.dependencyTemplates.set(a,new a.Template);e.dependencyTemplates.set(o,new o.Template);e.dependencyTemplates.set(u,new u.Template);e.dependencyFactories.set(c,t);e.dependencyTemplates.set(c,new c.Template);e.dependencyTemplates.set(r,new r.Template);e.dependencyFactories.set(i,t);e.dependencyTemplates.set(i,new i.Template);const n=(e,t)=>{if(t.harmony!==undefined&&!t.harmony)return;new p(this.options).apply(e);new h(this.options).apply(e);new d(this.options).apply(e);(new m).apply(e)};t.hooks.parser.for("javascript/auto").tap("HarmonyModulesPlugin",n);t.hooks.parser.for("javascript/esm").tap("HarmonyModulesPlugin",n)})}}e.exports=HarmonyModulesPlugin},13197:(e,t,n)=>{"use strict";const r=n(66298);const i=n(25702);class HarmonyTopLevelThisParserPlugin{apply(e){e.hooks.expression.for("this").tap("HarmonyTopLevelThisParserPlugin",t=>{if(!e.scope.topLevelScope)return;if(i.isEnabled(e.state)){const n=new r("undefined",t.range,null);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return this}})}}e.exports=HarmonyTopLevelThisParserPlugin},4828:(e,t,n)=>{"use strict";const r=n(56202);const i=n(400);const s=n(42740);class ImportContextDependency extends i{constructor(e,t,n){super(e);this.range=t;this.valueRange=n}get type(){return`import() context ${this.options.mode}`}get category(){return"esm"}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();super.deserialize(e)}}r(ImportContextDependency,"webpack/lib/dependencies/ImportContextDependency");ImportContextDependency.Template=s;e.exports=ImportContextDependency},20013:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);const s=n(79983);class ImportDependency extends s{constructor(e,t,n){super(e);this.range=t;this.referencedExports=n}get type(){return"import()"}get category(){return"esm"}getReferencedExports(e,t){return this.referencedExports?this.referencedExports.map(e=>({name:e,canMangle:false})):r.EXPORTS_OBJECT_REFERENCED}serialize(e){e.write(this.range);e.write(this.referencedExports);super.serialize(e)}deserialize(e){this.range=e.read();this.referencedExports=e.read();super.deserialize(e)}}i(ImportDependency,"webpack/lib/dependencies/ImportDependency");ImportDependency.Template=class ImportDependencyTemplate extends s.Template{apply(e,t,{runtimeTemplate:n,module:r,moduleGraph:i,chunkGraph:s,runtimeRequirements:o}){const a=e;const c=i.getParentBlock(a);const u=n.moduleNamespacePromise({chunkGraph:s,block:c,module:i.getModule(a),request:a.request,strict:r.buildMeta.strictHarmonyModule,message:"import()",runtimeRequirements:o});t.replace(a.range[0],a.range[1]-1,u)}};e.exports=ImportDependency},75708:(e,t,n)=>{"use strict";const r=n(56202);const i=n(20013);class ImportEagerDependency extends i{constructor(e,t,n){super(e,t,n)}get type(){return"import() eager"}get category(){return"esm"}}r(ImportEagerDependency,"webpack/lib/dependencies/ImportEagerDependency");ImportEagerDependency.Template=class ImportEagerDependencyTemplate extends i.Template{apply(e,t,{runtimeTemplate:n,module:r,moduleGraph:i,chunkGraph:s,runtimeRequirements:o}){const a=e;const c=n.moduleNamespacePromise({chunkGraph:s,module:i.getModule(a),request:a.request,strict:r.buildMeta.strictHarmonyModule,message:"import() eager",runtimeRequirements:o});t.replace(a.range[0],a.range[1]-1,c)}};e.exports=ImportEagerDependency},76302:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(80791);class ImportMetaHotAcceptDependency extends i{constructor(e,t){super(e);this.range=t;this.weak=true}get type(){return"import.meta.webpackHot.accept"}get category(){return"esm"}}r(ImportMetaHotAcceptDependency,"webpack/lib/dependencies/ImportMetaHotAcceptDependency");ImportMetaHotAcceptDependency.Template=s;e.exports=ImportMetaHotAcceptDependency},5389:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(80791);class ImportMetaHotDeclineDependency extends i{constructor(e,t){super(e);this.range=t;this.weak=true}get type(){return"import.meta.webpackHot.decline"}get category(){return"esm"}}r(ImportMetaHotDeclineDependency,"webpack/lib/dependencies/ImportMetaHotDeclineDependency");ImportMetaHotDeclineDependency.Template=s;e.exports=ImportMetaHotDeclineDependency},38586:(e,t,n)=>{"use strict";const{pathToFileURL:r}=n(78835);const i=n(23280);const s=n(58159);const o=n(87250);const{evaluateToIdentifier:a,toConstantDependency:c,evaluateToString:u,evaluateToNumber:l}=n(48472);const f=n(27503);const p=n(68038);const d=n(66298);const h=f(()=>n(75314));class ImportMetaPlugin{apply(e){e.hooks.compilation.tap("ImportMetaPlugin",(e,{normalModuleFactory:t})=>{const f=e=>{return r(e.resource).toString()};const m=(e,t)=>{e.hooks.typeof.for("import.meta").tap("ImportMetaPlugin",c(e,JSON.stringify("object")));e.hooks.metaProperty.tap("ImportMetaPlugin",c(e,"Object()"));e.hooks.metaProperty.tap("ImportMetaPlugin",t=>{const n=h();e.state.module.addWarning(new i(e.state.module,new n("Accessing import.meta directly is unsupported (only property access is supported)"),t.loc));const r=new d("Object()",t.range);r.loc=t.loc;e.state.module.addPresentationalDependency(r);return true});e.hooks.evaluateTypeof.for("import.meta").tap("ImportMetaPlugin",u("object"));e.hooks.evaluateIdentifier.for("import.meta").tap("ImportMetaPlugin",a("import.meta","import.meta",()=>[],true));e.hooks.typeof.for("import.meta.url").tap("ImportMetaPlugin",c(e,JSON.stringify("string")));e.hooks.expression.for("import.meta.url").tap("ImportMetaPlugin",t=>{const n=new d(JSON.stringify(f(e.state.module)),t.range);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true});e.hooks.evaluateTypeof.for("import.meta.url").tap("ImportMetaPlugin",u("string"));e.hooks.evaluateIdentifier.for("import.meta.url").tap("ImportMetaPlugin",t=>{return(new o).setString(f(e.state.module)).setRange(t.range)});const r=parseInt(n(61733).i8,10);e.hooks.typeof.for("import.meta.webpack").tap("ImportMetaPlugin",c(e,JSON.stringify("number")));e.hooks.expression.for("import.meta.webpack").tap("ImportMetaPlugin",c(e,JSON.stringify(r)));e.hooks.evaluateTypeof.for("import.meta.webpack").tap("ImportMetaPlugin",u("number"));e.hooks.evaluateIdentifier.for("import.meta.webpack").tap("ImportMetaPlugin",l(r));e.hooks.unhandledExpressionMemberChain.for("import.meta").tap("ImportMetaPlugin",(t,n)=>{const r=new d(`${s.toNormalComment("unsupported import.meta."+n.join("."))} undefined${p(n,1)}`,t.range);r.loc=t.loc;e.state.module.addPresentationalDependency(r);return true});e.hooks.evaluate.for("MemberExpression").tap("ImportMetaPlugin",e=>{const t=e;if(t.object.type==="MetaProperty"&&t.property.type===(t.computed?"Literal":"Identifier")){return(new o).setUndefined().setRange(t.range)}})};t.hooks.parser.for("javascript/auto").tap("ImportMetaPlugin",m);t.hooks.parser.for("javascript/esm").tap("ImportMetaPlugin",m)})}}e.exports=ImportMetaPlugin},81467:(e,t,n)=>{"use strict";const r=n(98221);const i=n(47207);const s=n(53558);const o=n(95601);const a=n(4828);const c=n(20013);const u=n(75708);const l=n(12849);class ImportParserPlugin{constructor(e){this.options=e}apply(e){e.hooks.importCall.tap("ImportParserPlugin",t=>{const n=e.evaluateExpression(t.source);let f=null;let p="lazy";let d=null;let h=null;let m=null;const g={};const{options:y,errors:v}=e.parseCommentOptions(t.range);if(v){for(const t of v){const{comment:n}=t;e.state.module.addWarning(new i(`Compilation error while processing magic comment(-s): /*${n.value}*/: ${t.message}`,n.loc))}}if(y){if(y.webpackIgnore!==undefined){if(typeof y.webpackIgnore!=="boolean"){e.state.module.addWarning(new s(`\`webpackIgnore\` expected a boolean, but received: ${y.webpackIgnore}.`,t.loc))}else{if(y.webpackIgnore){return false}}}if(y.webpackChunkName!==undefined){if(typeof y.webpackChunkName!=="string"){e.state.module.addWarning(new s(`\`webpackChunkName\` expected a string, but received: ${y.webpackChunkName}.`,t.loc))}else{f=y.webpackChunkName}}if(y.webpackMode!==undefined){if(typeof y.webpackMode!=="string"){e.state.module.addWarning(new s(`\`webpackMode\` expected a string, but received: ${y.webpackMode}.`,t.loc))}else{p=y.webpackMode}}if(y.webpackPrefetch!==undefined){if(y.webpackPrefetch===true){g.prefetchOrder=0}else if(typeof y.webpackPrefetch==="number"){g.prefetchOrder=y.webpackPrefetch}else{e.state.module.addWarning(new s(`\`webpackPrefetch\` expected true or a number, but received: ${y.webpackPrefetch}.`,t.loc))}}if(y.webpackPreload!==undefined){if(y.webpackPreload===true){g.preloadOrder=0}else if(typeof y.webpackPreload==="number"){g.preloadOrder=y.webpackPreload}else{e.state.module.addWarning(new s(`\`webpackPreload\` expected true or a number, but received: ${y.webpackPreload}.`,t.loc))}}if(y.webpackInclude!==undefined){if(!y.webpackInclude||y.webpackInclude.constructor.name!=="RegExp"){e.state.module.addWarning(new s(`\`webpackInclude\` expected a regular expression, but received: ${y.webpackInclude}.`,t.loc))}else{d=new RegExp(y.webpackInclude)}}if(y.webpackExclude!==undefined){if(!y.webpackExclude||y.webpackExclude.constructor.name!=="RegExp"){e.state.module.addWarning(new s(`\`webpackExclude\` expected a regular expression, but received: ${y.webpackExclude}.`,t.loc))}else{h=new RegExp(y.webpackExclude)}}if(y.webpackExports!==undefined){if(!(typeof y.webpackExports==="string"||Array.isArray(y.webpackExports)&&y.webpackExports.every(e=>typeof e==="string"))){e.state.module.addWarning(new s(`\`webpackExports\` expected a string or an array of strings, but received: ${y.webpackExports}.`,t.loc))}else{if(typeof y.webpackExports==="string"){m=[[y.webpackExports]]}else{m=Array.from(y.webpackExports,e=>[e])}}}}if(n.isString()){if(p!=="lazy"&&p!=="eager"&&p!=="weak"){e.state.module.addWarning(new s(`\`webpackMode\` expected 'lazy', 'eager' or 'weak', but received: ${p}.`,t.loc))}if(p==="eager"){const r=new u(n.string,t.range,m);e.state.current.addDependency(r)}else if(p==="weak"){const r=new l(n.string,t.range,m);e.state.current.addDependency(r)}else{const i=new r({...g,name:f},t.loc,n.string);const s=new c(n.string,t.range,m);s.loc=t.loc;i.addDependency(s);e.state.current.addBlock(i)}return true}else{if(p!=="lazy"&&p!=="lazy-once"&&p!=="eager"&&p!=="weak"){e.state.module.addWarning(new s(`\`webpackMode\` expected 'lazy', 'lazy-once', 'eager' or 'weak', but received: ${p}.`,t.loc));p="lazy"}if(p==="weak"){p="async-weak"}const r=o.create(a,t.range,n,t,this.options,{chunkName:f,groupOptions:g,include:d,exclude:h,mode:p,namespaceObject:e.state.module.buildMeta.strictHarmonyModule?"strict":true,category:"esm",referencedExports:m},e);if(!r)return;r.loc=t.loc;r.optional=!!e.scope.inTry;e.state.current.addDependency(r);return true}})}}e.exports=ImportParserPlugin},54975:(e,t,n)=>{"use strict";const r=n(4828);const i=n(20013);const s=n(75708);const o=n(81467);const a=n(12849);class ImportPlugin{constructor(e){this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("ImportPlugin",(e,{contextModuleFactory:n,normalModuleFactory:c})=>{e.dependencyFactories.set(i,c);e.dependencyTemplates.set(i,new i.Template);e.dependencyFactories.set(s,c);e.dependencyTemplates.set(s,new s.Template);e.dependencyFactories.set(a,c);e.dependencyTemplates.set(a,new a.Template);e.dependencyFactories.set(r,n);e.dependencyTemplates.set(r,new r.Template);const u=(e,n)=>{if(n.import!==undefined&&!n.import)return;new o(t).apply(e)};c.hooks.parser.for("javascript/auto").tap("ImportPlugin",u);c.hooks.parser.for("javascript/dynamic").tap("ImportPlugin",u);c.hooks.parser.for("javascript/esm").tap("ImportPlugin",u)})}}e.exports=ImportPlugin},12849:(e,t,n)=>{"use strict";const r=n(56202);const i=n(20013);class ImportWeakDependency extends i{constructor(e,t,n){super(e,t,n);this.weak=true}get type(){return"import() weak"}}r(ImportWeakDependency,"webpack/lib/dependencies/ImportWeakDependency");ImportWeakDependency.Template=class ImportDependencyTemplate extends i.Template{apply(e,t,{runtimeTemplate:n,module:r,moduleGraph:i,chunkGraph:s,runtimeRequirements:o}){const a=e;const c=n.moduleNamespacePromise({chunkGraph:s,module:i.getModule(a),request:a.request,strict:r.buildMeta.strictHarmonyModule,message:"import() weak",weak:true,runtimeRequirements:o});t.replace(a.range[0],a.range[1]-1,c)}};e.exports=ImportWeakDependency},38895:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);const s=e=>{if(e&&typeof e==="object"){if(Array.isArray(e)){return e.map((e,t)=>{return{name:`${t}`,canMangle:true,exports:s(e)}})}else{const t=[];for(const n of Object.keys(e)){t.push({name:n,canMangle:true,exports:s(e[n])})}return t}}return undefined};class JsonExportsDependency extends i{constructor(e){super();this.exports=e}get type(){return"json exports"}getExports(e){return{exports:this.exports,dependencies:undefined}}updateHash(e,t){e.update(this.exports?JSON.stringify(this.exports):"undefined");super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this.exports);super.serialize(e)}deserialize(e){const{read:t}=e;this.exports=t();super.deserialize(e)}}r(JsonExportsDependency,"webpack/lib/dependencies/JsonExportsDependency");e.exports=JsonExportsDependency;e.exports.getExportsFromData=s},32876:(e,t,n)=>{"use strict";const r=n(79983);class LoaderDependency extends r{constructor(e){super(e)}get type(){return"loader"}get category(){return"loader"}}e.exports=LoaderDependency},2451:(e,t,n)=>{"use strict";const r=n(53520);const i=n(32876);class LoaderPlugin{apply(e){e.hooks.compilation.tap("LoaderPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(i,t)});e.hooks.compilation.tap("LoaderPlugin",e=>{const t=e.moduleGraph;r.getCompilationHooks(e).loader.tap("LoaderPlugin",n=>{n.loadModule=((r,s)=>{const o=new i(r);o.loc={name:r};const a=e.dependencyFactories.get(o.constructor);if(a===undefined){return s(new Error(`No module factory available for dependency type: ${o.constructor.name}`))}e.buildQueue.increaseParallelism();e.handleModuleCreation({factory:a,dependencies:[o],originModule:n._module,context:n.context,recursive:false},r=>{e.buildQueue.decreaseParallelism();if(r){return s(r)}const i=t.getModule(o);if(!i){return s(new Error("Cannot load the module"))}const a=i.originalSource();if(!a){throw new Error("The module created for a LoaderDependency must have an original source")}let c,u;if(a.sourceAndMap){const e=a.sourceAndMap();u=e.map;c=e.source}else{u=a.map();c=a.source()}if(i.buildInfo.fileDependencies){for(const e of i.buildInfo.fileDependencies){n.addDependency(e)}}if(i.buildInfo.contextDependencies){for(const e of i.buildInfo.contextDependencies){n.addContextDependency(e)}}return s(null,c,u,i)})})})})}}e.exports=LoaderPlugin},77230:(e,t,n)=>{"use strict";const r=n(56202);class LocalModule{constructor(e,t){this.name=e;this.idx=t;this.used=false}flagUsed(){this.used=true}variableName(){return"__WEBPACK_LOCAL_MODULE_"+this.idx+"__"}serialize(e){const{write:t}=e;t(this.name);t(this.idx);t(this.used)}deserialize(e){const{read:t}=e;this.name=t();this.idx=t();this.used=t()}}r(LocalModule,"webpack/lib/dependencies/LocalModule");e.exports=LocalModule},14229:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class LocalModuleDependency extends i{constructor(e,t,n){super();this.localModule=e;this.range=t;this.callNew=n}serialize(e){const{write:t}=e;t(this.localModule);t(this.range);t(this.callNew);super.serialize(e)}deserialize(e){const{read:t}=e;this.localModule=t();this.range=t();this.callNew=t();super.deserialize(e)}}r(LocalModuleDependency,"webpack/lib/dependencies/LocalModuleDependency");LocalModuleDependency.Template=class LocalModuleDependencyTemplate extends i.Template{apply(e,t,n){const r=e;if(!r.range)return;const i=r.callNew?`new (function () { return ${r.localModule.variableName()}; })()`:r.localModule.variableName();t.replace(r.range[0],r.range[1]-1,i)}};e.exports=LocalModuleDependency},61701:(e,t,n)=>{"use strict";const r=n(77230);const i=(e,t)=>{if(t.charAt(0)!==".")return t;var n=e.split("/");var r=t.split("/");n.pop();for(let e=0;e<r.length;e++){const t=r[e];if(t===".."){n.pop()}else if(t!=="."){n.push(t)}}return n.join("/")};t.addLocalModule=((e,t)=>{if(!e.localModules){e.localModules=[]}const n=new r(t,e.localModules.length);e.localModules.push(n);return n});t.getLocalModule=((e,t,n)=>{if(!e.localModules)return null;if(n){t=i(n,t)}for(let n=0;n<e.localModules.length;n++){if(e.localModules[n].name===t){return e.localModules[n]}}return null})},2706:(e,t,n)=>{"use strict";const r=n(28706);const i=n(63272);const s=n(76150);const o=n(56202);const a=n(12197);class ModuleDecoratorDependency extends a{constructor(e,t){super();this.decorator=e;this.allowExportsAccess=t}get type(){return"module decorator"}get category(){return"self"}getResourceIdentifier(){return`self`}getReferencedExports(e,t){return this.allowExportsAccess?r.EXPORTS_OBJECT_REFERENCED:r.NO_EXPORTS_REFERENCED}updateHash(e,t){super.updateHash(e,t);e.update(this.decorator);e.update(`${this.allowExportsAccess}`)}serialize(e){const{write:t}=e;t(this.decorator);t(this.allowExportsAccess);super.serialize(e)}deserialize(e){const{read:t}=e;this.decorator=t();this.allowExportsAccess=t();super.deserialize(e)}}o(ModuleDecoratorDependency,"webpack/lib/dependencies/ModuleDecoratorDependency");ModuleDecoratorDependency.Template=class ModuleDecoratorDependencyTemplate extends a.Template{apply(e,t,{module:n,chunkGraph:r,initFragments:o,runtimeRequirements:a}){const c=e;a.add(s.moduleLoaded);a.add(s.moduleId);a.add(s.module);a.add(c.decorator);o.push(new i(`/* module decorator */ ${n.moduleArgument} = ${c.decorator}(${n.moduleArgument});\n`,i.STAGE_PROVIDES,0,`module decorator ${r.getModuleId(n)}`))}};e.exports=ModuleDecoratorDependency},79983:(e,t,n)=>{"use strict";const r=n(28706);const i=n(84304);class ModuleDependency extends r{constructor(e){super();this.request=e;this.userRequest=e;this.range=undefined}getResourceIdentifier(){return`module${this.request}`}serialize(e){const{write:t}=e;t(this.request);t(this.userRequest);t(this.range);super.serialize(e)}deserialize(e){const{read:t}=e;this.request=t();this.userRequest=t();this.range=t();super.deserialize(e)}}ModuleDependency.Template=i;e.exports=ModuleDependency},80791:(e,t,n)=>{"use strict";const r=n(79983);class ModuleDependencyTemplateAsId extends r.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:r,chunkGraph:i}){const s=e;if(!s.range)return;const o=n.moduleId({module:r.getModule(s),chunkGraph:i,request:s.request,weak:s.weak});t.replace(s.range[0],s.range[1]-1,o)}}e.exports=ModuleDependencyTemplateAsId},87283:(e,t,n)=>{"use strict";const r=n(79983);class ModuleDependencyTemplateAsRequireId extends r.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:r,chunkGraph:i,runtimeRequirements:s}){const o=e;if(!o.range)return;const a=n.moduleExports({module:r.getModule(o),chunkGraph:i,request:o.request,weak:o.weak,runtimeRequirements:s});t.replace(o.range[0],o.range[1]-1,a)}}e.exports=ModuleDependencyTemplateAsRequireId},21809:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(80791);class ModuleHotAcceptDependency extends i{constructor(e,t){super(e);this.range=t;this.weak=true}get type(){return"module.hot.accept"}get category(){return"commonjs"}}r(ModuleHotAcceptDependency,"webpack/lib/dependencies/ModuleHotAcceptDependency");ModuleHotAcceptDependency.Template=s;e.exports=ModuleHotAcceptDependency},73158:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(80791);class ModuleHotDeclineDependency extends i{constructor(e,t){super(e);this.range=t;this.weak=true}get type(){return"module.hot.decline"}get category(){return"commonjs"}}r(ModuleHotDeclineDependency,"webpack/lib/dependencies/ModuleHotDeclineDependency");ModuleHotDeclineDependency.Template=s;e.exports=ModuleHotDeclineDependency},12197:(e,t,n)=>{"use strict";const r=n(28706);const i=n(84304);class NullDependency extends r{get type(){return"null"}updateHash(e,t){}serialize({write:e}){e(this.loc)}deserialize({read:e}){this.loc=e()}}NullDependency.Template=class NullDependencyTemplate extends i{apply(e,t,n){}};e.exports=NullDependency},88281:(e,t,n)=>{"use strict";const r=n(79983);class PrefetchDependency extends r{constructor(e){super(e)}get type(){return"prefetch"}get category(){return"esm"}}e.exports=PrefetchDependency},1335:(e,t,n)=>{"use strict";const r=n(63272);const i=n(56202);const s=n(79983);const o=e=>e!==null&&e.length>0?e.map(e=>`[${JSON.stringify(e)}]`).join(""):"";class ProvidedDependency extends s{constructor(e,t,n,r){super(e);this.identifier=t;this.path=n;this.range=r}get type(){return"provided"}get category(){return"esm"}updateHash(e,t){super.updateHash(e,t);e.update(this.identifier);e.update(this.path?this.path.join(","):"null")}serialize(e){const{write:t}=e;t(this.identifier);t(this.path);super.serialize(e)}deserialize(e){const{read:t}=e;this.identifier=t();this.path=t();super.deserialize(e)}}i(ProvidedDependency,"webpack/lib/dependencies/ProvidedDependency");class ProvidedDependencyTemplate extends s.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:i,chunkGraph:s,initFragments:a,runtimeRequirements:c}){const u=e;a.push(new r(`/* provided dependency */ var ${u.identifier} = ${n.moduleExports({module:i.getModule(u),chunkGraph:s,request:u.request,runtimeRequirements:c})}${o(u.path)};\n`,r.STAGE_PROVIDES,1,`provided ${u.identifier}`));t.replace(u.range[0],u.range[1]-1,u.identifier)}}ProvidedDependency.Template=ProvidedDependencyTemplate;e.exports=ProvidedDependency},53567:(e,t,n)=>{"use strict";const{UsageState:r}=n(76632);const i=n(56202);const s=n(12197);class PureExpressionDependency extends s{constructor(e){super();this.range=e;this.usedByExports=false}updateHash(e,t){e.update(this.range+"")}serialize(e){const{write:t}=e;t(this.range);t(this.usedByExports);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.usedByExports=t();super.deserialize(e)}}i(PureExpressionDependency,"webpack/lib/dependencies/PureExpressionDependency");PureExpressionDependency.Template=class PureExpressionDependencyTemplate extends s.Template{apply(e,t,{moduleGraph:n,runtime:i}){const s=e;if(s.usedByExports!==false){const e=n.getParentModule(s);const t=n.getExportsInfo(e);for(const e of s.usedByExports){if(t.getUsed(e,i)!==r.Unused){return}}}t.insert(s.range[0],"(/* unused pure expression or super */ null && (");t.insert(s.range[1],"))")}};e.exports=PureExpressionDependency},19204:(e,t,n)=>{"use strict";const r=n(56202);const i=n(400);const s=n(87283);class RequireContextDependency extends i{constructor(e,t){super(e);this.range=t}get type(){return"require.context"}serialize(e){const{write:t}=e;t(this.range);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();super.deserialize(e)}}r(RequireContextDependency,"webpack/lib/dependencies/RequireContextDependency");RequireContextDependency.Template=s;e.exports=RequireContextDependency},38947:(e,t,n)=>{"use strict";const r=n(19204);e.exports=class RequireContextDependencyParserPlugin{apply(e){e.hooks.call.for("require.context").tap("RequireContextDependencyParserPlugin",t=>{let n=/^\.\/.*$/;let i=true;let s="sync";switch(t.arguments.length){case 4:{const n=e.evaluateExpression(t.arguments[3]);if(!n.isString())return;s=n.string}case 3:{const r=e.evaluateExpression(t.arguments[2]);if(!r.isRegExp())return;n=r.regExp}case 2:{const n=e.evaluateExpression(t.arguments[1]);if(!n.isBoolean())return;i=n.bool}case 1:{const o=e.evaluateExpression(t.arguments[0]);if(!o.isString())return;const a=new r({request:o.string,recursive:i,regExp:n,mode:s},t.range);a.loc=t.loc;a.optional=!!e.scope.inTry;e.state.current.addDependency(a);return true}}})}}},67634:(e,t,n)=>{"use strict";const{cachedSetProperty:r}=n(90149);const i=n(90872);const s=n(19204);const o=n(38947);const a={};class RequireContextPlugin{apply(e){e.hooks.compilation.tap("RequireContextPlugin",(t,{contextModuleFactory:n,normalModuleFactory:c})=>{t.dependencyFactories.set(s,n);t.dependencyTemplates.set(s,new s.Template);t.dependencyFactories.set(i,c);const u=(e,t)=>{if(t.requireContext!==undefined&&!t.requireContext)return;(new o).apply(e)};c.hooks.parser.for("javascript/auto").tap("RequireContextPlugin",u);c.hooks.parser.for("javascript/dynamic").tap("RequireContextPlugin",u);n.hooks.alternativeRequests.tap("RequireContextPlugin",(t,n)=>{if(t.length===0)return t;const i=e.resolverFactory.get("normal",r(n.resolveOptions||a,"dependencyType",n.category)).options;let s;if(!i.fullySpecified){s=[];for(const e of t){const{request:t,context:n}=e;for(const e of i.extensions){if(t.endsWith(e)){s.push({context:n,request:t.slice(0,-e.length)})}}if(!i.enforceExtension){s.push(e)}}t=s;s=[];for(const e of t){const{request:t,context:n}=e;for(const e of i.mainFiles){if(t.endsWith(`/${e}`)){s.push({context:n,request:t.slice(0,-e.length)});s.push({context:n,request:t.slice(0,-e.length-1)})}}s.push(e)}t=s}s=[];for(const e of t){let t=false;for(const n of i.modules){if(Array.isArray(n)){for(const r of n){if(e.request.startsWith(`./${r}/`)){s.push({context:e.context,request:e.request.slice(r.length+3)});t=true}}}else{const t=n.replace(/\\/g,"/");const r=e.context.replace(/\\/g,"/")+e.request.slice(1);if(r.startsWith(t)){s.push({context:e.context,request:r.slice(t.length+1)})}}}if(!t){s.push(e)}}return s})})}}e.exports=RequireContextPlugin},15196:(e,t,n)=>{"use strict";const r=n(98221);const i=n(56202);class RequireEnsureDependenciesBlock extends r{constructor(e,t){super(e,t,null)}}i(RequireEnsureDependenciesBlock,"webpack/lib/dependencies/RequireEnsureDependenciesBlock");e.exports=RequireEnsureDependenciesBlock},90616:(e,t,n)=>{"use strict";const r=n(15196);const i=n(15427);const s=n(81058);const o=n(36134);e.exports=class RequireEnsureDependenciesBlockParserPlugin{apply(e){e.hooks.call.for("require.ensure").tap("RequireEnsureDependenciesBlockParserPlugin",t=>{let n=null;let a=null;let c=null;switch(t.arguments.length){case 4:{const r=e.evaluateExpression(t.arguments[3]);if(!r.isString())return;n=r.string}case 3:{a=t.arguments[2];c=o(a);if(!c&&!n){const r=e.evaluateExpression(t.arguments[2]);if(!r.isString())return;n=r.string}}case 2:{const u=e.evaluateExpression(t.arguments[0]);const l=u.isArray()?u.items:[u];const f=t.arguments[1];const p=o(f);if(p){e.walkExpressions(p.expressions)}if(c){e.walkExpressions(c.expressions)}const d=new r(n,t.loc);const h=t.arguments.length===4||!n&&t.arguments.length===3;const m=new i(t.range,t.arguments[1].range,h&&t.arguments[2].range);m.loc=t.loc;d.addDependency(m);const g=e.state.current;e.state.current=d;try{let n=false;e.inScope([],()=>{for(const e of l){if(e.isString()){const n=new s(e.string);n.loc=e.loc||t.loc;d.addDependency(n)}else{n=true}}});if(n){return}if(p){if(p.fn.body.type==="BlockStatement"){e.walkStatement(p.fn.body)}else{e.walkExpression(p.fn.body)}}g.addBlock(d)}finally{e.state.current=g}if(!p){e.walkExpression(f)}if(c){if(c.fn.body.type==="BlockStatement"){e.walkStatement(c.fn.body)}else{e.walkExpression(c.fn.body)}}else if(a){e.walkExpression(a)}return true}}})}}},15427:(e,t,n)=>{"use strict";const r=n(76150);const i=n(56202);const s=n(12197);class RequireEnsureDependency extends s{constructor(e,t,n){super();this.range=e;this.contentRange=t;this.errorHandlerRange=n}get type(){return"require.ensure"}serialize(e){const{write:t}=e;t(this.range);t(this.contentRange);t(this.errorHandlerRange);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.contentRange=t();this.errorHandlerRange=t();super.deserialize(e)}}i(RequireEnsureDependency,"webpack/lib/dependencies/RequireEnsureDependency");RequireEnsureDependency.Template=class RequireEnsureDependencyTemplate extends s.Template{apply(e,t,{runtimeTemplate:n,moduleGraph:i,chunkGraph:s,runtimeRequirements:o}){const a=e;const c=i.getParentBlock(a);const u=n.blockPromise({chunkGraph:s,block:c,message:"require.ensure",runtimeRequirements:o});const l=a.range;const f=a.contentRange;const p=a.errorHandlerRange;t.replace(l[0],f[0]-1,`${u}.then((`);if(p){t.replace(f[1],p[0]-1,").bind(null, __webpack_require__)).catch(");t.replace(p[1],l[1]-1,")")}else{t.replace(f[1],l[1]-1,`).bind(null, __webpack_require__)).catch(${r.uncaughtErrorHandler})`)}}};e.exports=RequireEnsureDependency},81058:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);const s=n(12197);class RequireEnsureItemDependency extends i{constructor(e){super(e)}get type(){return"require.ensure item"}get category(){return"commonjs"}}r(RequireEnsureItemDependency,"webpack/lib/dependencies/RequireEnsureItemDependency");RequireEnsureItemDependency.Template=s.Template;e.exports=RequireEnsureItemDependency},51727:(e,t,n)=>{"use strict";const r=n(15427);const i=n(81058);const s=n(90616);const{evaluateToString:o,toConstantDependency:a}=n(48472);class RequireEnsurePlugin{apply(e){e.hooks.compilation.tap("RequireEnsurePlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(i,t);e.dependencyTemplates.set(i,new i.Template);e.dependencyTemplates.set(r,new r.Template);const n=(e,t)=>{if(t.requireEnsure!==undefined&&!t.requireEnsure)return;(new s).apply(e);e.hooks.evaluateTypeof.for("require.ensure").tap("RequireEnsurePlugin",o("function"));e.hooks.typeof.for("require.ensure").tap("RequireEnsurePlugin",a(e,JSON.stringify("function")))};t.hooks.parser.for("javascript/auto").tap("RequireEnsurePlugin",n);t.hooks.parser.for("javascript/dynamic").tap("RequireEnsurePlugin",n)})}}e.exports=RequireEnsurePlugin},70340:(e,t,n)=>{"use strict";const r=n(76150);const i=n(56202);const s=n(12197);class RequireHeaderDependency extends s{constructor(e){super();if(!Array.isArray(e))throw new Error("range must be valid");this.range=e}serialize(e){const{write:t}=e;t(this.range);super.serialize(e)}static deserialize(e){const t=new RequireHeaderDependency(e.read());t.deserialize(e);return t}}i(RequireHeaderDependency,"webpack/lib/dependencies/RequireHeaderDependency");RequireHeaderDependency.Template=class RequireHeaderDependencyTemplate extends s.Template{apply(e,t,{runtimeRequirements:n}){const i=e;n.add(r.require);t.replace(i.range[0],i.range[1]-1,"__webpack_require__")}};e.exports=RequireHeaderDependency},63556:(e,t,n)=>{"use strict";const r=n(28706);const i=n(58159);const s=n(56202);const o=n(79983);class RequireIncludeDependency extends o{constructor(e,t){super(e);this.range=t}getReferencedExports(e,t){return r.NO_EXPORTS_REFERENCED}get type(){return"require.include"}get category(){return"commonjs"}}s(RequireIncludeDependency,"webpack/lib/dependencies/RequireIncludeDependency");RequireIncludeDependency.Template=class RequireIncludeDependencyTemplate extends o.Template{apply(e,t,{runtimeTemplate:n}){const r=e;const s=n.outputOptions.pathinfo?i.toComment(`require.include ${n.requestShortener.shorten(r.request)}`):"";t.replace(r.range[0],r.range[1]-1,`undefined${s}`)}};e.exports=RequireIncludeDependency},1913:(e,t,n)=>{"use strict";const r=n(81627);const{evaluateToString:i,toConstantDependency:s}=n(48472);const o=n(56202);const a=n(63556);e.exports=class RequireIncludeDependencyParserPlugin{constructor(e){this.warn=e}apply(e){const{warn:t}=this;e.hooks.call.for("require.include").tap("RequireIncludeDependencyParserPlugin",n=>{if(n.arguments.length!==1)return;const r=e.evaluateExpression(n.arguments[0]);if(!r.isString())return;if(t){e.state.module.addWarning(new RequireIncludeDeprecationWarning(n.loc))}const i=new a(r.string,n.range);i.loc=n.loc;e.state.current.addDependency(i);return true});e.hooks.evaluateTypeof.for("require.include").tap("RequireIncludePlugin",n=>{if(t){e.state.module.addWarning(new RequireIncludeDeprecationWarning(n.loc))}return i("function")(n)});e.hooks.typeof.for("require.include").tap("RequireIncludePlugin",n=>{if(t){e.state.module.addWarning(new RequireIncludeDeprecationWarning(n.loc))}return s(e,JSON.stringify("function"))(n)})}};class RequireIncludeDeprecationWarning extends r{constructor(e){super("require.include() is deprecated and will be removed soon.");this.name="RequireIncludeDeprecationWarning";this.loc=e;Error.captureStackTrace(this,this.constructor)}}o(RequireIncludeDeprecationWarning,"webpack/lib/dependencies/RequireIncludeDependencyParserPlugin","RequireIncludeDeprecationWarning")},3085:(e,t,n)=>{"use strict";const r=n(63556);const i=n(1913);class RequireIncludePlugin{apply(e){e.hooks.compilation.tap("RequireIncludePlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(r,t);e.dependencyTemplates.set(r,new r.Template);const n=(e,t)=>{if(t.requireInclude===false)return;const n=t.requireInclude===undefined;new i(n).apply(e)};t.hooks.parser.for("javascript/auto").tap("RequireIncludePlugin",n);t.hooks.parser.for("javascript/dynamic").tap("RequireIncludePlugin",n)})}}e.exports=RequireIncludePlugin},84817:(e,t,n)=>{"use strict";const r=n(56202);const i=n(400);const s=n(94148);class RequireResolveContextDependency extends i{constructor(e,t,n){super(e);this.range=t;this.valueRange=n}get type(){return"amd require context"}serialize(e){const{write:t}=e;t(this.range);t(this.valueRange);super.serialize(e)}deserialize(e){const{read:t}=e;this.range=t();this.valueRange=t();super.deserialize(e)}}r(RequireResolveContextDependency,"webpack/lib/dependencies/RequireResolveContextDependency");RequireResolveContextDependency.Template=s;e.exports=RequireResolveContextDependency},76913:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);const s=n(79983);const o=n(80791);class RequireResolveDependency extends s{constructor(e,t){super(e);this.range=t}get type(){return"require.resolve"}get category(){return"commonjs"}getReferencedExports(e,t){return r.NO_EXPORTS_REFERENCED}}i(RequireResolveDependency,"webpack/lib/dependencies/RequireResolveDependency");RequireResolveDependency.Template=o;e.exports=RequireResolveDependency},23380:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class RequireResolveHeaderDependency extends i{constructor(e){super();if(!Array.isArray(e))throw new Error("range must be valid");this.range=e}serialize(e){const{write:t}=e;t(this.range);super.serialize(e)}static deserialize(e){const t=new RequireResolveHeaderDependency(e.read());t.deserialize(e);return t}}r(RequireResolveHeaderDependency,"webpack/lib/dependencies/RequireResolveHeaderDependency");RequireResolveHeaderDependency.Template=class RequireResolveHeaderDependencyTemplate extends i.Template{apply(e,t,n){const r=e;t.replace(r.range[0],r.range[1]-1,"/*require.resolve*/")}applyAsTemplateArgument(e,t,n){n.replace(t.range[0],t.range[1]-1,"/*require.resolve*/")}};e.exports=RequireResolveHeaderDependency},35424:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class RuntimeRequirementsDependency extends i{constructor(e){super();this.runtimeRequirements=new Set(e)}updateHash(e,t){e.update(Array.from(this.runtimeRequirements).join()+"")}serialize(e){const{write:t}=e;t(this.runtimeRequirements);super.serialize(e)}deserialize(e){const{read:t}=e;this.runtimeRequirements=t();super.deserialize(e)}}r(RuntimeRequirementsDependency,"webpack/lib/dependencies/RuntimeRequirementsDependency");RuntimeRequirementsDependency.Template=class RuntimeRequirementsDependencyTemplate extends i.Template{apply(e,t,{runtimeRequirements:n}){const r=e;for(const e of r.runtimeRequirements){n.add(e)}}};e.exports=RuntimeRequirementsDependency},96076:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class StaticExportsDependency extends i{constructor(e,t){super();this.exports=e;this.canMangle=t}get type(){return"static exports"}getExports(e){return{exports:this.exports,canMangle:this.canMangle,dependencies:undefined}}updateHash(e,t){e.update(JSON.stringify(this.exports));if(this.canMangle)e.update("canMangle");super.updateHash(e,t)}serialize(e){const{write:t}=e;t(this.exports);t(this.canMangle);super.serialize(e)}deserialize(e){const{read:t}=e;this.exports=t();this.canMangle=t();super.deserialize(e)}}r(StaticExportsDependency,"webpack/lib/dependencies/StaticExportsDependency");e.exports=StaticExportsDependency},62630:(e,t,n)=>{"use strict";const r=n(76150);const i=n(81627);const{evaluateToString:s,expressionIsUnsupported:o,toConstantDependency:a}=n(48472);const c=n(56202);const u=n(66298);const l=n(60125);class SystemPlugin{constructor(e){this.options=e}apply(e){e.hooks.compilation.tap("SystemPlugin",(e,{normalModuleFactory:t})=>{e.hooks.runtimeRequirementInModule.for(r.system).tap("SystemPlugin",(e,t)=>{t.add(r.requireScope)});e.hooks.runtimeRequirementInTree.for(r.system).tap("SystemPlugin",(t,n)=>{e.addRuntimeModule(t,new l)});const n=(e,t)=>{if(t.system===undefined||!t.system){return}const n=t=>{e.hooks.evaluateTypeof.for(t).tap("SystemPlugin",s("undefined"));e.hooks.expression.for(t).tap("SystemPlugin",o(e,t+" is not supported by webpack."))};e.hooks.typeof.for("System.import").tap("SystemPlugin",a(e,JSON.stringify("function")));e.hooks.evaluateTypeof.for("System.import").tap("SystemPlugin",s("function"));e.hooks.typeof.for("System").tap("SystemPlugin",a(e,JSON.stringify("object")));e.hooks.evaluateTypeof.for("System").tap("SystemPlugin",s("object"));n("System.set");n("System.get");n("System.register");e.hooks.expression.for("System").tap("SystemPlugin",t=>{const n=new u(r.system,t.range,[r.system]);n.loc=t.loc;e.state.module.addPresentationalDependency(n);return true});e.hooks.call.for("System.import").tap("SystemPlugin",t=>{e.state.module.addWarning(new SystemImportDeprecationWarning(t.loc));return e.hooks.importCall.call({type:"ImportExpression",source:t.arguments[0],loc:t.loc,range:t.range})})};t.hooks.parser.for("javascript/auto").tap("SystemPlugin",n);t.hooks.parser.for("javascript/dynamic").tap("SystemPlugin",n)})}}class SystemImportDeprecationWarning extends i{constructor(e){super("System.import() is deprecated and will be removed soon. Use import() instead.\n"+"For more info visit https://webpack.js.org/guides/code-splitting/");this.name="SystemImportDeprecationWarning";this.loc=e;Error.captureStackTrace(this,this.constructor)}}c(SystemImportDeprecationWarning,"webpack/lib/dependencies/SystemPlugin","SystemImportDeprecationWarning");e.exports=SystemPlugin;e.exports.SystemImportDeprecationWarning=SystemImportDeprecationWarning},60125:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class SystemRuntimeModule extends i{constructor(){super("system")}generate(){return s.asString([`${r.system} = {`,s.indent(["import: function () {",s.indent("throw new Error('System.import cannot be used indirectly');"),"}"]),"};"])}}e.exports=SystemRuntimeModule},12584:(e,t,n)=>{"use strict";const r=n(56202);const i=n(12197);class UnsupportedDependency extends i{constructor(e,t){super();this.request=e;this.range=t}serialize(e){const{write:t}=e;t(this.request);t(this.range);super.serialize(e)}deserialize(e){const{read:t}=e;this.request=t();this.range=t();super.deserialize(e)}}r(UnsupportedDependency,"webpack/lib/dependencies/UnsupportedDependency");UnsupportedDependency.Template=class UnsupportedDependencyTemplate extends i.Template{apply(e,t,{runtimeTemplate:n}){const r=e;t.replace(r.range[0],r.range[1],n.missingModule({request:r.request}))}};e.exports=UnsupportedDependency},30697:(e,t,n)=>{"use strict";const r=n(56202);const i=n(79983);class WebAssemblyExportImportedDependency extends i{constructor(e,t,n,r){super(t);this.exportName=e;this.name=n;this.valueType=r}getReferencedExports(e,t){return[[this.name]]}get type(){return"wasm export import"}get category(){return"wasm"}serialize(e){const{write:t}=e;t(this.exportName);t(this.name);t(this.valueType);super.serialize(e)}deserialize(e){const{read:t}=e;this.exportName=t();this.name=t();this.valueType=t();super.deserialize(e)}}r(WebAssemblyExportImportedDependency,"webpack/lib/dependencies/WebAssemblyExportImportedDependency");e.exports=WebAssemblyExportImportedDependency},33081:(e,t,n)=>{"use strict";const r=n(56202);const i=n(87132);const s=n(79983);class WebAssemblyImportDependency extends s{constructor(e,t,n,r){super(e);this.name=t;this.description=n;this.onlyDirectImport=r}get type(){return"wasm import"}get category(){return"wasm"}getReferencedExports(e,t){return[[this.name]]}getErrors(e){const t=e.getModule(this);if(this.onlyDirectImport&&t&&!t.type.startsWith("webassembly")){return[new i(`Import "${this.name}" from "${this.request}" with ${this.onlyDirectImport} can only be used for direct wasm to wasm dependencies`)]}}serialize(e){const{write:t}=e;t(this.name);t(this.description);t(this.onlyDirectImport);super.serialize(e)}deserialize(e){const{read:t}=e;this.name=t();this.description=t();this.onlyDirectImport=t();super.deserialize(e)}}r(WebAssemblyImportDependency,"webpack/lib/dependencies/WebAssemblyImportDependency");e.exports=WebAssemblyImportDependency},36134:e=>{"use strict";e.exports=(e=>{if(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"){return{fn:e,expressions:[],needThis:false}}if(e.type==="CallExpression"&&e.callee.type==="MemberExpression"&&e.callee.object.type==="FunctionExpression"&&e.callee.property.type==="Identifier"&&e.callee.property.name==="bind"&&e.arguments.length===1){return{fn:e.callee.object,expressions:[e.arguments[0]],needThis:undefined}}if(e.type==="CallExpression"&&e.callee.type==="FunctionExpression"&&e.callee.body.type==="BlockStatement"&&e.arguments.length===1&&e.arguments[0].type==="ThisExpression"&&e.callee.body.body&&e.callee.body.body.length===1&&e.callee.body.body[0].type==="ReturnStatement"&&e.callee.body.body[0].argument&&e.callee.body.body[0].argument.type==="FunctionExpression"){return{fn:e.callee.body.body[0].argument,expressions:[],needThis:true}}})},18971:(e,t,n)=>{"use strict";const{UsageState:r}=n(76632);const i=(e,t,n,s,o=false,a=new Set)=>{if(!s){t.push(n);return}const c=s.getUsed(e);if(c===r.Unused)return;if(a.has(s)){t.push(n);return}a.add(s);if(c!==r.OnlyPropertiesUsed||!s.exportsInfo||s.exportsInfo.otherExportsInfo.getUsed(e)!==r.Unused){a.delete(s);t.push(n);return}const u=s.exportsInfo;for(const r of u.orderedExports){i(e,t,o&&r.name==="default"?n:n.concat(r.name),r,false,a)}a.delete(s)};e.exports=i},25726:(e,t,n)=>{"use strict";const r=n(61050);class ElectronTargetPlugin{constructor(e){this._main=e}apply(e){new r("commonjs",this._main?["app","auto-updater","browser-window","clipboard","content-tracing","crash-reporter","dialog","electron","global-shortcut","ipc","ipc-main","menu","menu-item","native-image","original-fs","power-monitor","power-save-blocker","protocol","screen","session","shell","tray","web-contents"]:["clipboard","crash-reporter","desktop-capturer","electron","ipc","ipc-renderer","native-image","original-fs","remote","screen","shell","web-frame"]).apply(e)}}e.exports=ElectronTargetPlugin},44547:(e,t,n)=>{"use strict";const r=n(81627);class BuildCycleError extends r{constructor(e){super("There is a circular build dependency, which makes it impossible to create this module");this.name="BuildCycleError";this.module=e;Error.captureStackTrace(this,this.constructor)}}e.exports=BuildCycleError},72380:e=>{"use strict";const t=e=>{if(e&&typeof e==="object"){if("line"in e&&"column"in e){return`${e.line}:${e.column}`}else if("line"in e){return`${e.line}:?`}}return""};const n=e=>{if(e&&typeof e==="object"){if("start"in e&&e.start&&"end"in e&&e.end){if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column==="number"&&e.start.line===e.end.line){return`${t(e.start)}-${e.end.column}`}else if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.start.column!=="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column!=="number"){return`${e.start.line}-${e.end.line}`}else{return`${t(e.start)}-${t(e.end)}`}}if("start"in e&&e.start){return t(e.start)}if("name"in e&&"index"in e){return`${e.name}[${e.index}]`}if("name"in e){return e.name}}return""};e.exports=n},49464:e=>{"use strict";var t=undefined;var n=undefined;var r=undefined;var i=undefined;var s=undefined;var o=undefined;var a=undefined;e.exports=function(){var e={};var c=n;var u;var l=[];var f=[];var p="idle";var d;var h;var m;r=e;t.push(function(e){var t=e.module;var n=createRequire(e.require,e.id);t.hot=createModuleHotObject(e.id,t);t.parents=l;t.children=[];l=[];e.require=n});s={};o={};function createRequire(e,t){var n=c[t];if(!n)return e;var r=function(r){if(n.hot.active){if(c[r]){var i=c[r].parents;if(i.indexOf(t)===-1){i.push(t)}}else{l=[t];u=r}if(n.children.indexOf(r)===-1){n.children.push(r)}}else{console.trace("[HMR] unexpected require("+r+") from disposed module "+t);l=[]}return e(r)};var i=function(t){return{configurable:true,enumerable:true,get:function(){return e[t]},set:function(n){e[t]=n}}};for(var s in e){if(Object.prototype.hasOwnProperty.call(e,s)&&s!=="e"){Object.defineProperty(r,s,i(s))}}r.e=function(t){return trackBlockingPromise(e.e(t))};return r}function createModuleHotObject(t,n){var r={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:false,_selfDeclined:false,_selfInvalidated:false,_disposeHandlers:[],_main:u!==t,_requireSelf:function(){l=n.parents.slice();u=t;a(t)},active:true,accept:function(e,t){if(e===undefined)r._selfAccepted=true;else if(typeof e==="function")r._selfAccepted=e;else if(typeof e==="object"&&e!==null)for(var n=0;n<e.length;n++)r._acceptedDependencies[e[n]]=t||function(){};else r._acceptedDependencies[e]=t||function(){}},decline:function(e){if(e===undefined)r._selfDeclined=true;else if(typeof e==="object"&&e!==null)for(var t=0;t<e.length;t++)r._declinedDependencies[e[t]]=true;else r._declinedDependencies[e]=true},dispose:function(e){r._disposeHandlers.push(e)},addDisposeHandler:function(e){r._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=r._disposeHandlers.indexOf(e);if(t>=0)r._disposeHandlers.splice(t,1)},invalidate:function(){this._selfInvalidated=true;switch(p){case"idle":h=[];Object.keys(o).forEach(function(e){o[e](t,h)});setStatus("ready");break;case"ready":Object.keys(o).forEach(function(e){o[e](t,h)});break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t);break;default:break}},check:hotCheck,apply:hotApply,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);if(t>=0)f.splice(t,1)},data:e[t]};u=undefined;return r}function setStatus(e){p=e;for(var t=0;t<f.length;t++)f[t].call(null,e)}function trackBlockingPromise(e){switch(p){case"ready":setStatus("prepare");d.push(e);waitForBlockingPromises(function(){setStatus("ready")});return e;case"prepare":d.push(e);return e;default:return e}}function waitForBlockingPromises(e){if(d.length===0)return e();var t=d;d=[];return Promise.all(t).then(function(){return waitForBlockingPromises(e)})}function hotCheck(e){if(p!=="idle"){throw new Error("check() is only allowed in idle status")}setStatus("check");return i().then(function(t){if(!t){setStatus(applyInvalidatedModules()?"ready":"idle");return null}setStatus("prepare");var n=[];d=[];h=[];return Promise.all(Object.keys(s).reduce(function(e,r){s[r](t.c,t.r,t.m,e,h,n);return e},[])).then(function(){return waitForBlockingPromises(function(){if(e){return internalApply(e)}else{setStatus("ready");return n}})})})}function hotApply(e){if(p!=="ready"){return Promise.resolve().then(function(){throw new Error("apply() is only allowed in ready status")})}return internalApply(e)}function internalApply(e){e=e||{};applyInvalidatedModules();var t=h.map(function(t){return t(e)});h=undefined;var n=t.map(function(e){return e.error}).filter(Boolean);if(n.length>0){setStatus("abort");return Promise.resolve().then(function(){throw n[0]})}setStatus("dispose");t.forEach(function(e){if(e.dispose)e.dispose()});setStatus("apply");var r;var i=function(e){if(!r)r=e};var s=[];t.forEach(function(e){if(e.apply){var t=e.apply(i);if(t){for(var n=0;n<t.length;n++){s.push(t[n])}}}});if(r){setStatus("fail");return Promise.resolve().then(function(){throw r})}if(m){return internalApply(e).then(function(e){s.forEach(function(t){if(e.indexOf(t)<0)e.push(t)});return e})}setStatus("idle");return Promise.resolve(s)}function applyInvalidatedModules(){if(m){if(!h)h=[];Object.keys(o).forEach(function(e){m.forEach(function(t){o[e](t,h)})});m=undefined;return true}}}},79838:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class HotModuleReplacementRuntimeModule extends i{constructor(){super("hot module replacement",5)}generate(){return s.getFunctionContent(n(49464)).replace(/\$getFullHash\$/g,r.getFullHash).replace(/\$interceptModuleExecution\$/g,r.interceptModuleExecution).replace(/\$moduleCache\$/g,r.moduleCache).replace(/\$hmrModuleData\$/g,r.hmrModuleData).replace(/\$hmrDownloadManifest\$/g,r.hmrDownloadManifest).replace(/\$hmrInvalidateModuleHandlers\$/g,r.hmrInvalidateModuleHandlers).replace(/\$hmrDownloadUpdateHandlers\$/g,r.hmrDownloadUpdateHandlers)}}e.exports=HotModuleReplacementRuntimeModule},22215:e=>{"use strict";var t=undefined;var n=undefined;var r=undefined;var i=undefined;var s=undefined;var o=undefined;var a=undefined;var c=undefined;var u=undefined;var l=undefined;e.exports=function(){var e;var f;var p;var d;function applyHandler(n){if(s)delete s.$key$Hmr;e=undefined;function getAffectedModuleEffects(e){var t=[e];var n={};var i=t.map(function(e){return{chain:[e],id:e}});while(i.length>0){var s=i.pop();var o=s.id;var a=s.chain;var c=r[o];if(!c||c.hot._selfAccepted&&!c.hot._selfInvalidated)continue;if(c.hot._selfDeclined){return{type:"self-declined",chain:a,moduleId:o}}if(c.hot._main){return{type:"unaccepted",chain:a,moduleId:o}}for(var u=0;u<c.parents.length;u++){var l=c.parents[u];var f=r[l];if(!f)continue;if(f.hot._declinedDependencies[o]){return{type:"declined",chain:a.concat([l]),moduleId:o,parentId:l}}if(t.indexOf(l)!==-1)continue;if(f.hot._acceptedDependencies[o]){if(!n[l])n[l]=[];addAllToSet(n[l],[o]);continue}delete n[l];t.push(l);i.push({chain:a.concat([l]),id:l})}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function addAllToSet(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.indexOf(r)===-1)e.push(r)}}var c={};var u=[];var h={};var m=function warnUnexpectedRequire(){console.warn("[HMR] unexpected require("+v.moduleId+") to disposed module")};for(var g in f){if(o(f,g)){var y=f[g];var v;if(y){v=getAffectedModuleEffects(g)}else{v={type:"disposed",moduleId:g}}var _=false;var b=false;var E=false;var w="";if(v.chain){w="\nUpdate propagation: "+v.chain.join(" -> ")}switch(v.type){case"self-declined":if(n.onDeclined)n.onDeclined(v);if(!n.ignoreDeclined)_=new Error("Aborted because of self decline: "+v.moduleId+w);break;case"declined":if(n.onDeclined)n.onDeclined(v);if(!n.ignoreDeclined)_=new Error("Aborted because of declined dependency: "+v.moduleId+" in "+v.parentId+w);break;case"unaccepted":if(n.onUnaccepted)n.onUnaccepted(v);if(!n.ignoreUnaccepted)_=new Error("Aborted because "+g+" is not accepted"+w);break;case"accepted":if(n.onAccepted)n.onAccepted(v);b=true;break;case"disposed":if(n.onDisposed)n.onDisposed(v);E=true;break;default:throw new Error("Unexception type "+v.type)}if(_){return{error:_}}if(b){h[g]=y;addAllToSet(u,v.outdatedModules);for(g in v.outdatedDependencies){if(o(v.outdatedDependencies,g)){if(!c[g])c[g]=[];addAllToSet(c[g],v.outdatedDependencies[g])}}}if(E){addAllToSet(u,[v.moduleId]);h[g]=m}}}f=undefined;var S=[];for(var k=0;k<u.length;k++){var D=u[k];if(r[D]&&r[D].hot._selfAccepted&&h[D]!==m&&!r[D].hot._selfInvalidated){S.push({module:D,require:r[D].hot._requireSelf,errorHandler:r[D].hot._selfAccepted})}}var x;return{dispose:function(){p.forEach(function(e){delete t[e]});p=undefined;var e;var n=u.slice();while(n.length>0){var i=n.pop();var s=r[i];if(!s)continue;var l={};var f=s.hot._disposeHandlers;for(k=0;k<f.length;k++){f[k].call(null,l)}a[i]=l;s.hot.active=false;delete r[i];delete c[i];for(k=0;k<s.children.length;k++){var d=r[s.children[k]];if(!d)continue;e=d.parents.indexOf(i);if(e>=0){d.parents.splice(e,1)}}}var h;for(var m in c){if(o(c,m)){s=r[m];if(s){x=c[m];for(k=0;k<x.length;k++){h=x[k];e=s.children.indexOf(h);if(e>=0)s.children.splice(e,1)}}}}},apply:function(e){for(var t in h){if(o(h,t)){i[t]=h[t]}}for(var s=0;s<d.length;s++){d[s](l)}for(var a in c){if(o(c,a)){var f=r[a];if(f){x=c[a];var p=[];var m=[];for(var g=0;g<x.length;g++){var y=x[g];var v=f.hot._acceptedDependencies[y];if(v){if(p.indexOf(v)!==-1)continue;p.push(v);m.push(y)}}for(var _=0;_<p.length;_++){try{p[_].call(null,x)}catch(t){if(n.onErrored){n.onErrored({type:"accept-errored",moduleId:a,dependencyId:m[_],error:t})}if(!n.ignoreErrored){e(t)}}}}}}for(var b=0;b<S.length;b++){var E=S[b];var w=E.module;try{E.require(w)}catch(t){if(typeof E.errorHandler==="function"){try{E.errorHandler(t)}catch(r){if(n.onErrored){n.onErrored({type:"self-accept-error-handler-errored",moduleId:w,error:r,originalError:t})}if(!n.ignoreErrored){e(r)}e(t)}}else{if(n.onErrored){n.onErrored({type:"self-accept-errored",moduleId:w,error:t})}if(!n.ignoreErrored){e(t)}}}}return u}}}u.$key$=function(e,t){if(!f){f={};d=[];p=[];t.push(applyHandler)}if(!o(f,e)){f[e]=i[e]}};c.$key$=function(r,i,a,c,u,l){u.push(applyHandler);e={};p=i;f=a.reduce(function(e,t){e[t]=false;return e},{});d=[];r.forEach(function(r){if(o(t,r)&&t[r]!==undefined){c.push(n(r,l));e[r]=true}});if(s){s.$key$Hmr=function(r,i){if(e&&!o(e,r)&&o(t,r)&&t[r]!==undefined){i.push(n(r));e[r]=true}}}}}},30484:(e,t,n)=>{"use strict";const{find:r}=n(26221);const{compareModulesByPreOrderIndexOrIdentifier:i,compareModulesByPostOrderIndexOrIdentifier:s}=n(68673);class ChunkModuleIdRangePlugin{constructor(e){this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("ChunkModuleIdRangePlugin",e=>{const n=e.moduleGraph;e.hooks.moduleIds.tap("ChunkModuleIdRangePlugin",o=>{const a=e.chunkGraph;const c=r(e.chunks,e=>e.name===t.name);if(!c){throw new Error(`ChunkModuleIdRangePlugin: Chunk with name '${t.name}"' was not found`)}let u;if(t.order){let e;switch(t.order){case"index":case"preOrderIndex":e=i(n);break;case"index2":case"postOrderIndex":e=s(n);break;default:throw new Error("ChunkModuleIdRangePlugin: unexpected value of order")}u=a.getOrderedChunkModules(c,e)}else{u=Array.from(o).filter(e=>{return a.isModuleInChunk(e,c)}).sort(i(n))}let l=t.start||0;for(let e=0;e<u.length;e++){const n=u[e];if(n.needId&&a.getModuleId(n)===null){a.setModuleId(n,l++)}if(t.end&&l>t.end)break}})})}}e.exports=ChunkModuleIdRangePlugin},90444:(e,t,n)=>{"use strict";const{compareChunksNatural:r}=n(68673);const{getFullChunkName:i,getUsedChunkIds:s,assignDeterministicIds:o}=n(30328);class DeterministicChunkIdsPlugin{constructor(e){this.options=e||{}}apply(e){e.hooks.compilation.tap("DeterministicChunkIdsPlugin",t=>{t.hooks.chunkIds.tap("DeterministicChunkIdsPlugin",n=>{const a=t.chunkGraph;const c=this.options.context?this.options.context:e.context;const u=this.options.maxLength||3;const l=r(a);const f=s(t);o(Array.from(n).filter(e=>{return e.id===null}),t=>i(t,a,c,e.root),l,(e,t)=>{const n=f.size;f.add(`${t}`);if(n===f.size)return false;e.id=t;e.ids=[t];return true},[Math.pow(10,u)],10,f.size)})})}}e.exports=DeterministicChunkIdsPlugin},35579:(e,t,n)=>{"use strict";const{compareModulesByPreOrderIndexOrIdentifier:r}=n(68673);const{getUsedModuleIds:i,getFullModuleName:s,assignDeterministicIds:o}=n(30328);class DeterministicModuleIdsPlugin{constructor(e){this.options=e||{}}apply(e){e.hooks.compilation.tap("DeterministicModuleIdsPlugin",t=>{t.hooks.moduleIds.tap("DeterministicModuleIdsPlugin",n=>{const a=t.chunkGraph;const c=this.options.context?this.options.context:e.context;const u=this.options.maxLength||3;const l=i(t);o(Array.from(n).filter(e=>{if(!e.needId)return false;if(a.getNumberOfModuleChunks(e)===0)return false;return a.getModuleId(e)===null}),t=>s(t,c,e.root),r(t.moduleGraph),(e,t)=>{const n=l.size;l.add(`${t}`);if(n===l.size)return false;a.setModuleId(e,t);return true},[Math.pow(10,u)],10,l.size)})})}}e.exports=DeterministicModuleIdsPlugin},35853:(e,t,n)=>{"use strict";e=n.nmd(e);const r=n(15235);const i=n(1842);const{compareModulesByPreOrderIndexOrIdentifier:s}=n(68673);const o=n(35891);const{getUsedModuleIds:a,getFullModuleName:c}=n(30328);class HashedModuleIdsPlugin{constructor(e={}){r(i,e,{name:"Hashed Module Ids Plugin",baseDataPath:"options"});this.options={context:null,hashFunction:"md4",hashDigest:"base64",hashDigestLength:4,...e}}apply(t){const n=this.options;t.hooks.compilation.tap("HashedModuleIdsPlugin",r=>{r.hooks.moduleIds.tap("HashedModuleIdsPlugin",i=>{const u=r.chunkGraph;const l=this.options.context?this.options.context:t.context;const f=a(r);const p=Array.from(i).filter(t=>{if(!t.needId)return false;if(u.getNumberOfModuleChunks(t)===0)return false;return u.getModuleId(e)===null}).sort(s(r.moduleGraph));for(const e of p){const r=c(e,l,t.root);const i=o(n.hashFunction);i.update(r||"");const s=i.digest(n.hashDigest);let a=n.hashDigestLength;while(f.has(s.substr(0,a)))a++;const p=s.substr(0,a);u.setModuleId(e,p);f.add(p)}})})}}e.exports=HashedModuleIdsPlugin},30328:(e,t,n)=>{"use strict";const r=n(35891);const{makePathsRelative:i}=n(49197);const s=n(12631);const o=(e,t)=>{const n=r("md4");n.update(e);const i=n.digest("hex");return i.substr(0,t)};const a=e=>{if(e.length>21)return e;const t=e.charCodeAt(0);if(t<49){if(t!==45)return e}else if(t>57){return e}if(e===+e+""){return`_${e}`}return e};const c=e=>{return e.replace(/^(\.\.?\/)+/,"").replace(/(^[.-]|[^a-zA-Z0-9_-])+/g,"_")};t.requestToId=c;const u=(e,t)=>{if(e.length<100)return e;return e.slice(0,100-6-t.length)+t+o(e,6)};const l=(e,t,n)=>{return a(e.libIdent({context:t,associatedObjectForCache:n})||"")};t.getShortModuleName=l;const f=(e,t,n,r)=>{const i=p(t,n,r);return`${e}?${o(i,4)}`};t.getLongModuleName=f;const p=(e,t,n)=>{return i(t,e.identifier(),n)};t.getFullModuleName=p;const d=(e,t,n,r,i)=>{const s=t.getChunkRootModules(e);const o=s.map(e=>c(l(e,n,i)));e.idNameHints.sort();const a=Array.from(e.idNameHints).concat(o).join(r);return u(a,r)};t.getShortChunkName=d;const h=(e,t,n,r,i)=>{const s=t.getChunkRootModules(e);const o=s.map(e=>c(l(e,n,i)));const a=s.map(e=>c(f("",e,n,i)));e.idNameHints.sort();const p=Array.from(e.idNameHints).concat(o,a).join(r);return u(p,r)};t.getLongChunkName=h;const m=(e,t,n,r)=>{if(e.name)return e.name;const s=t.getChunkRootModules(e);const o=s.map(e=>i(n,e.identifier(),r));return o.join()};t.getFullChunkName=m;const g=(e,t,n)=>{let r=e.get(t);if(r===undefined){r=[];e.set(t,r)}r.push(n)};const y=e=>{const t=e.chunkGraph;const n=new Set;if(e.usedModuleIds){for(const t of e.usedModuleIds){n.add(t+"")}}for(const r of e.modules){const e=t.getModuleId(r);if(e!==null){n.add(e+"")}}return n};t.getUsedModuleIds=y;const v=e=>{const t=new Set;if(e.usedChunkIds){for(const n of e.usedChunkIds){t.add(n+"")}}for(const n of e.chunks){const e=n.id;if(e!==null){t.add(e+"")}}return t};t.getUsedChunkIds=v;const _=(e,t,n,r,i,s)=>{const o=new Map;for(const n of e){const e=t(n);g(o,e,n)}const a=new Map;for(const[e,t]of o){if(t.length>1||!e){for(const r of t){const t=n(r,e);g(a,t,r)}}else{g(a,e,t[0])}}const c=[];for(const[e,t]of a){if(!e){for(const e of t){c.push(e)}}else if(t.length===1&&!i.has(e)){s(t[0],e);i.add(e)}else{t.sort(r);let n=0;for(const r of t){while(a.has(e+n)&&i.has(e+n))n++;s(r,e+n);i.add(e+n);n++}}}c.sort(r);return c};t.assignNames=_;const b=(e,t,n,r,i=[10],o=10,a=0)=>{e.sort(n);const c=Math.min(Math.ceil(e.length*20)+a,Number.MAX_SAFE_INTEGER);let u=0;let l=i[u];while(l<c){u++;if(u<i.length){l=Math.min(i[u],Number.MAX_SAFE_INTEGER)}else{l=Math.min(l*o,Number.MAX_SAFE_INTEGER)}}for(const n of e){const e=t(n);let i;let o=0;do{i=s(e+o++,l)}while(!r(n,i))}};t.assignDeterministicIds=b;const E=(e,t)=>{const n=t.chunkGraph;const r=y(t);let i=0;let s;if(r.size>0){s=(e=>{if(n.getModuleId(e)===null){while(r.has(i+""))i++;n.setModuleId(e,i++)}})}else{s=(e=>{if(n.getModuleId(e)===null){n.setModuleId(e,i++)}})}for(const t of e){s(t)}};t.assignAscendingModuleIds=E;const w=(e,t)=>{const n=v(t);let r=0;if(n.size>0){for(const t of e){if(t.id===null){while(n.has(r+""))r++;t.id=r;t.ids=[r];r++}}}else{for(const t of e){if(t.id===null){t.id=r;t.ids=[r];r++}}}};t.assignAscendingChunkIds=w},64779:(e,t,n)=>{"use strict";const{compareChunksNatural:r}=n(68673);const{getShortChunkName:i,getLongChunkName:s,assignNames:o,getUsedChunkIds:a,assignAscendingChunkIds:c}=n(30328);class NamedChunkIdsPlugin{constructor(e){this.delimiter=e&&e.delimiter||"-";this.context=e&&e.context}apply(e){e.hooks.compilation.tap("NamedChunkIdsPlugin",t=>{t.hooks.chunkIds.tap("NamedChunkIdsPlugin",n=>{const u=t.chunkGraph;const l=this.context?this.context:e.context;const f=this.delimiter;const p=o(Array.from(n).filter(e=>{if(e.name){e.id=e.name;e.ids=[e.name]}return e.id===null}),t=>i(t,u,l,f,e.root),t=>s(t,u,l,f,e.root),r(u),a(t),(e,t)=>{e.id=t;e.ids=[t]});if(p.length>0){c(p,t)}})})}}e.exports=NamedChunkIdsPlugin},9297:(e,t,n)=>{"use strict";const{compareModulesByIdentifier:r}=n(68673);const{getShortModuleName:i,getLongModuleName:s,assignNames:o,getUsedModuleIds:a,assignAscendingModuleIds:c}=n(30328);class NamedModuleIdsPlugin{constructor(e){this.options=e||{}}apply(e){const{root:t}=e;e.hooks.compilation.tap("NamedModuleIdsPlugin",n=>{n.hooks.moduleIds.tap("NamedModuleIdsPlugin",u=>{const l=n.chunkGraph;const f=this.options.context?this.options.context:e.context;const p=o(Array.from(u).filter(e=>{if(!e.needId)return false;if(l.getNumberOfModuleChunks(e)===0)return false;return l.getModuleId(e)===null}),e=>i(e,f,t),(e,n)=>s(n,e,f,t),r,a(n),(e,t)=>l.setModuleId(e,t));if(p.length>0){c(p,n)}})})}}e.exports=NamedModuleIdsPlugin},18298:(e,t,n)=>{"use strict";const{compareChunksNatural:r}=n(68673);const{assignAscendingChunkIds:i}=n(30328);class NaturalChunkIdsPlugin{apply(e){e.hooks.compilation.tap("NaturalChunkIdsPlugin",e=>{e.hooks.chunkIds.tap("NaturalChunkIdsPlugin",t=>{const n=e.chunkGraph;const s=r(n);const o=Array.from(t).sort(s);i(o,e)})})}}e.exports=NaturalChunkIdsPlugin},97781:(e,t,n)=>{"use strict";const{compareModulesByPreOrderIndexOrIdentifier:r}=n(68673);const{assignAscendingModuleIds:i}=n(30328);class NaturalModuleIdsPlugin{apply(e){e.hooks.compilation.tap("NaturalModuleIdsPlugin",e=>{e.hooks.moduleIds.tap("NaturalModuleIdsPlugin",t=>{const n=e.chunkGraph;const s=Array.from(t).filter(e=>e.needId&&n.getNumberOfModuleChunks(e)>0&&n.getModuleId(e)===null).sort(r(e.moduleGraph));i(s,e)})})}}e.exports=NaturalModuleIdsPlugin},86169:(e,t,n)=>{"use strict";const r=n(15235);const i=n(66451);const{compareChunksNatural:s}=n(68673);const{assignAscendingChunkIds:o}=n(30328);class OccurrenceChunkIdsPlugin{constructor(e={}){r(i,e,{name:"Occurrence Order Chunk Ids Plugin",baseDataPath:"options"});this.options=e}apply(e){const t=this.options.prioritiseInitial;e.hooks.compilation.tap("OccurrenceChunkIdsPlugin",e=>{e.hooks.chunkIds.tap("OccurrenceChunkIdsPlugin",n=>{const r=e.chunkGraph;const i=new Map;const a=s(r);for(const e of n){let t=0;for(const n of e.groupsIterable){for(const e of n.parentsIterable){if(e.isInitial())t++}}i.set(e,t)}const c=Array.from(n).sort((e,n)=>{if(t){const t=i.get(e);const r=i.get(n);if(t>r)return-1;if(t<r)return 1}const r=e.getNumberOfGroups();const s=n.getNumberOfGroups();if(r>s)return-1;if(r<s)return 1;return a(e,n)});o(c,e)})})}}e.exports=OccurrenceChunkIdsPlugin},76059:(e,t,n)=>{"use strict";const r=n(15235);const i=n(25049);const{compareModulesByPreOrderIndexOrIdentifier:s}=n(68673);const{assignAscendingModuleIds:o}=n(30328);class OccurrenceModuleIdsPlugin{constructor(e={}){r(i,e,{name:"Occurrence Order Module Ids Plugin",baseDataPath:"options"});this.options=e}apply(e){const t=this.options.prioritiseInitial;e.hooks.compilation.tap("OccurrenceModuleIdsPlugin",e=>{const n=e.moduleGraph;e.hooks.moduleIds.tap("OccurrenceModuleIdsPlugin",r=>{const i=e.chunkGraph;const a=Array.from(r).filter(e=>e.needId&&i.getNumberOfModuleChunks(e)>0&&i.getModuleId(e)===null);const c=new Map;const u=new Map;const l=new Map;const f=new Map;for(const e of a){let t=0;let n=0;for(const r of i.getModuleChunksIterable(e)){if(r.canBeInitial())t++;if(i.isEntryModuleInChunk(e,r))n++}l.set(e,t);f.set(e,n)}const p=e=>{let t=0;for(const n of e){if(!n.isActive(undefined))continue;if(!n.originModule)continue;t+=l.get(n.originModule)}return t};const d=e=>{let t=0;for(const n of e){if(!n.isActive(undefined))continue;if(!n.originModule)continue;if(!n.dependency)continue;const e=n.dependency.getNumberOfIdOccurrences();if(e===0)continue;t+=e*i.getNumberOfModuleChunks(n.originModule)}return t};if(t){for(const e of a){const t=p(n.getIncomingConnections(e))+l.get(e)+f.get(e);c.set(e,t)}}for(const e of r){const t=d(n.getIncomingConnections(e))+i.getNumberOfModuleChunks(e)+f.get(e);u.set(e,t)}const h=s(e.moduleGraph);a.sort((e,n)=>{if(t){const t=c.get(e);const r=c.get(n);if(t>r)return-1;if(t<r)return 1}const r=u.get(e);const i=u.get(n);if(r>i)return-1;if(r<i)return 1;return h(e,n)});o(a,e)})})}}e.exports=OccurrenceModuleIdsPlugin},86443:(e,t,n)=>{"use strict";const r=n(31669);const i=n(27503);const s=e=>{const t=i(e);const n=(...e)=>{return t()(...e)};return n};const o=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);for(const t of Object.keys(n)){const r=n[t];if(r.get){const n=r.get;Object.defineProperty(e,t,{configurable:false,enumerable:true,get:i(n)})}else if(typeof r.value==="object"){Object.defineProperty(e,t,{configurable:false,enumerable:true,writable:false,value:o({},r.value)})}else{throw new Error("Exposed values must be either a getter or an nested object")}}return Object.freeze(e)};const a=s(()=>n(2982));e.exports=o(a,{get webpack(){return n(2982)},get validate(){const e=n(33316);const t=n(76518);return n=>e(t,n)},get validateSchema(){const e=n(33316);return e},get version(){return n(61733).i8},get cli(){return n(61634)},get AutomaticPrefetchPlugin(){return n(20383)},get BannerPlugin(){return n(58779)},get Cache(){return n(54725)},get Chunk(){return n(62433)},get ChunkGraph(){return n(45137)},get Compilation(){return n(3080)},get Compiler(){return n(63076)},get ContextExclusionPlugin(){return n(51709)},get ContextReplacementPlugin(){return n(26552)},get DefinePlugin(){return n(24820)},get DelegatedPlugin(){return n(82354)},get Dependency(){return n(28706)},get DllPlugin(){return n(73887)},get DllReferencePlugin(){return n(83515)},get EntryPlugin(){return n(59674)},get EnvironmentPlugin(){return n(64856)},get EvalDevToolModulePlugin(){return n(91331)},get EvalSourceMapDevToolPlugin(){return n(23641)},get ExternalModule(){return n(16734)},get ExternalsPlugin(){return n(61050)},get Generator(){return n(36253)},get HotModuleReplacementPlugin(){return n(79972)},get IgnorePlugin(){return n(69276)},get JavascriptModulesPlugin(){return r.deprecate(()=>n(18161),"webpack.JavascriptModulesPlugin has moved to webpack.javascript.JavascriptModulesPlugin","DEP_WEBPACK_JAVASCRIPT_MODULES_PLUGIN")()},get LibManifestPlugin(){return n(77750)},get LibraryTemplatePlugin(){return r.deprecate(()=>n(43351),"webpack.LibraryTemplatePlugin is deprecated and has been replaced by compilation.outputOptions.library or compilation.addEntry + passing a library option","DEP_WEBPACK_LIBRARY_TEMPLATE_PLUGIN")()},get LoaderOptionsPlugin(){return n(19674)},get LoaderTargetPlugin(){return n(97736)},get Module(){return n(53453)},get ModuleFilenameHelpers(){return n(70354)},get ModuleGraph(){return n(75412)},get NoEmitOnErrorsPlugin(){return n(66962)},get NormalModule(){return n(53520)},get NormalModuleReplacementPlugin(){return n(92234)},get MultiCompiler(){return n(63433)},get Parser(){return n(2172)},get PrefetchPlugin(){return n(13125)},get ProgressPlugin(){return n(52923)},get ProvidePlugin(){return n(40313)},get RuntimeGlobals(){return n(76150)},get RuntimeModule(){return n(66804)},get SingleEntryPlugin(){return r.deprecate(()=>n(59674),"SingleEntryPlugin was renamed to EntryPlugin","DEP_WEBPACK_SINGLE_ENTRY_PLUGIN")()},get SourceMapDevToolPlugin(){return n(2e4)},get Stats(){return n(10140)},get Template(){return n(58159)},get UsageState(){return n(76632).UsageState},get WatchIgnorePlugin(){return n(91265)},get WebpackOptionsApply(){return n(81721)},get WebpackOptionsDefaulter(){return r.deprecate(()=>n(94820),"webpack.WebpackOptionsDefaulter is deprecated and has been replaced by webpack.config.getNormalizedWebpackOptions and webpack.config.applyWebpackOptionsDefaults","DEP_WEBPACK_OPTIONS_DEFAULTER")()},get WebpackOptionsValidationError(){return n(15235).ValidationError},get ValidationError(){return n(15235).ValidationError},cache:{get MemoryCachePlugin(){return n(47786)}},config:{get getNormalizedWebpackOptions(){return n(96590).getNormalizedWebpackOptions},get applyWebpackOptionsDefaults(){return n(54411).applyWebpackOptionsDefaults}},ids:{get ChunkModuleIdRangePlugin(){return n(30484)},get NaturalModuleIdsPlugin(){return n(97781)},get OccurrenceModuleIdsPlugin(){return n(76059)},get NamedModuleIdsPlugin(){return n(9297)},get DeterministicChunkIdsPlugin(){return n(90444)},get DeterministicModuleIdsPlugin(){return n(35579)},get NamedChunkIdsPlugin(){return n(64779)},get OccurrenceChunkIdsPlugin(){return n(86169)},get HashedModuleIdsPlugin(){return n(35853)}},javascript:{get JavascriptModulesPlugin(){return n(18161)}},optimize:{get AggressiveMergingPlugin(){return n(61332)},get AggressiveSplittingPlugin(){return r.deprecate(()=>n(94827),"AggressiveSplittingPlugin is deprecated in favor of SplitChunksPlugin","DEP_WEBPACK_AGGRESSIVE_SPLITTING_PLUGIN")()},get LimitChunkCountPlugin(){return n(92922)},get MinChunkSizePlugin(){return n(52383)},get ModuleConcatenationPlugin(){return n(35442)},get RuntimeChunkPlugin(){return n(4674)},get SideEffectsFlagPlugin(){return n(63410)},get SplitChunksPlugin(){return n(40051)}},runtime:{get LoadScriptRuntimeModule(){return n(67104)}},prefetch:{get ChunkPrefetchPreloadPlugin(){return n(5538)}},web:{get FetchCompileAsyncWasmPlugin(){return n(52687)},get FetchCompileWasmPlugin(){return n(71100)},get JsonpTemplatePlugin(){return n(58421)}},webworker:{get WebWorkerTemplatePlugin(){return n(67439)}},node:{get NodeEnvironmentPlugin(){return n(93632)},get NodeSourcePlugin(){return n(92662)},get NodeTargetPlugin(){return n(84980)},get NodeTemplatePlugin(){return n(91591)},get ReadFileCompileWasmPlugin(){return n(71049)}},electron:{get ElectronTargetPlugin(){return n(25726)}},wasm:{get AsyncWebAssemblyModulesPlugin(){return n(82422)}},library:{get AbstractLibraryPlugin(){return n(9786)},get EnableLibraryPlugin(){return n(13984)}},container:{get ContainerPlugin(){return n(10419)},get ContainerReferencePlugin(){return n(68839)},get ModuleFederationPlugin(){return n(8019)},get scope(){return n(97264).scope}},sharing:{get ConsumeSharedPlugin(){return n(71968)},get ProvideSharedPlugin(){return n(48151)},get SharePlugin(){return n(16471)},get scope(){return n(97264).scope}},debug:{get ProfilingPlugin(){return n(26802)}},util:{get createHash(){return n(35891)},get comparators(){return n(68673)},get serialization(){return n(24568)}},get sources(){return n(48135)},experiments:{schemes:{get HttpUriPlugin(){return n(7201)},get HttpsUriPlugin(){return n(1161)}}}})},87250:e=>{"use strict";const t=0;const n=1;const r=2;const i=3;const s=4;const o=5;const a=6;const c=7;const u=8;const l=9;const f=10;const p=11;const d=12;const h=13;class BasicEvaluatedExpression{constructor(){this.type=t;this.range=undefined;this.falsy=false;this.truthy=false;this.nullish=undefined;this.sideEffects=true;this.bool=undefined;this.number=undefined;this.bigint=undefined;this.regExp=undefined;this.string=undefined;this.quasis=undefined;this.parts=undefined;this.array=undefined;this.items=undefined;this.options=undefined;this.prefix=undefined;this.postfix=undefined;this.wrappedInnerExpressions=undefined;this.identifier=undefined;this.rootInfo=undefined;this.getMembers=undefined;this.expression=undefined}isUnknown(){return this.type===t}isNull(){return this.type===r}isUndefined(){return this.type===n}isString(){return this.type===i}isNumber(){return this.type===s}isBigInt(){return this.type===h}isBoolean(){return this.type===o}isRegExp(){return this.type===a}isConditional(){return this.type===c}isArray(){return this.type===u}isConstArray(){return this.type===l}isIdentifier(){return this.type===f}isWrapped(){return this.type===p}isTemplateString(){return this.type===d}isPrimitiveType(){switch(this.type){case n:case r:case i:case s:case o:case h:case p:case d:return true;case a:case u:case l:return false;default:return undefined}}isCompileTimeValue(){switch(this.type){case n:case r:case i:case s:case o:case a:case l:case h:return true;default:return false}}asCompileTimeValue(){switch(this.type){case n:return undefined;case r:return null;case i:return this.string;case s:return this.number;case o:return this.bool;case a:return this.regExp;case l:return this.array;case h:return this.bigint;default:throw new Error("asCompileTimeValue must only be called for compile-time values")}}isTruthy(){return this.truthy}isFalsy(){return this.falsy}isNullish(){return this.nullish}couldHaveSideEffects(){return this.sideEffects}asBool(){if(this.truthy)return true;if(this.falsy||this.nullish)return false;if(this.isBoolean())return this.bool;if(this.isNull())return false;if(this.isUndefined())return false;if(this.isString())return this.string!=="";if(this.isNumber())return this.number!==0;if(this.isBigInt())return this.bigint!==BigInt(0);if(this.isRegExp())return true;if(this.isArray())return true;if(this.isConstArray())return true;if(this.isWrapped()){return this.prefix&&this.prefix.asBool()||this.postfix&&this.postfix.asBool()?true:undefined}if(this.isTemplateString()){const e=this.asString();if(typeof e==="string")return e!==""}return undefined}asNullish(){const e=this.isNullish();if(e===true||this.isNull()||this.isUndefined())return true;if(e===false)return false;if(this.isTruthy())return false;if(this.isBoolean())return false;if(this.isString())return false;if(this.isNumber())return false;if(this.isBigInt())return false;if(this.isRegExp())return false;if(this.isArray())return false;if(this.isConstArray())return false;if(this.isTemplateString())return false;if(this.isRegExp())return false;return undefined}asString(){if(this.isBoolean())return`${this.bool}`;if(this.isNull())return"null";if(this.isUndefined())return"undefined";if(this.isString())return this.string;if(this.isNumber())return`${this.number}`;if(this.isBigInt())return`${this.bigint}`;if(this.isRegExp())return`${this.regExp}`;if(this.isArray()){let e=[];for(const t of this.items){const n=t.asString();if(n===undefined)return undefined;e.push(n)}return`${e}`}if(this.isConstArray())return`${this.array}`;if(this.isTemplateString()){let e="";for(const t of this.parts){const n=t.asString();if(n===undefined)return undefined;e+=n}return e}return undefined}setString(e){this.type=i;this.string=e;this.sideEffects=false;return this}setUndefined(){this.type=n;this.sideEffects=false;return this}setNull(){this.type=r;this.sideEffects=false;return this}setNumber(e){this.type=s;this.number=e;this.sideEffects=false;return this}setBigInt(e){this.type=h;this.bigint=e;this.sideEffects=false;return this}setBoolean(e){this.type=o;this.bool=e;this.sideEffects=false;return this}setRegExp(e){this.type=a;this.regExp=e;this.sideEffects=false;return this}setIdentifier(e,t,n){this.type=f;this.identifier=e;this.rootInfo=t;this.getMembers=n;this.sideEffects=true;return this}setWrapped(e,t,n){this.type=p;this.prefix=e;this.postfix=t;this.wrappedInnerExpressions=n;this.sideEffects=true;return this}setOptions(e){this.type=c;this.options=e;this.sideEffects=true;return this}addOptions(e){if(!this.options){this.type=c;this.options=[];this.sideEffects=true}for(const t of e){this.options.push(t)}return this}setItems(e){this.type=u;this.items=e;this.sideEffects=e.some(e=>e.couldHaveSideEffects());return this}setArray(e){this.type=l;this.array=e;this.sideEffects=false;return this}setTemplateString(e,t,n){this.type=d;this.quasis=e;this.parts=t;this.templateStringKind=n;this.sideEffects=t.some(e=>e.sideEffects);return this}setTruthy(){this.falsy=false;this.truthy=true;this.nullish=false;return this}setFalsy(){this.falsy=true;this.truthy=false;return this}setNullish(e){this.nullish=e;return this}setRange(e){this.range=e;return this}setSideEffects(e=true){this.sideEffects=e;return this}setExpression(e){this.expression=e;return this}}e.exports=BasicEvaluatedExpression},99371:(e,t,n)=>{"use strict";const r=n(31669);const{RawSource:i,ReplaceSource:s}=n(48135);const o=n(36253);const a=n(63272);const c=r.deprecate((e,t,n)=>e.getInitFragments(t,n),"DependencyTemplate.getInitFragment is deprecated (use apply(dep, source, { initFragments }) instead)","DEP_WEBPACK_JAVASCRIPT_GENERATOR_GET_INIT_FRAGMENTS");const u=new Set(["javascript"]);class JavascriptGenerator extends o{getTypes(e){return u}getSize(e,t){const n=e.originalSource();if(!n){return 39}return n.size()}generate(e,t){const n=e.originalSource();if(!n){return new i("throw new Error('No source available');")}const r=new s(n);const o=[];this.sourceModule(e,o,r,t);return a.addToSource(r,o,t)}sourceModule(e,t,n,r){for(const i of e.dependencies){this.sourceDependency(e,i,t,n,r)}if(e.presentationalDependencies!==undefined){for(const i of e.presentationalDependencies){this.sourceDependency(e,i,t,n,r)}}for(const i of e.blocks){this.sourceBlock(e,i,t,n,r)}}sourceBlock(e,t,n,r,i){for(const s of t.dependencies){this.sourceDependency(e,s,n,r,i)}for(const s of t.blocks){this.sourceBlock(e,s,n,r,i)}}sourceDependency(e,t,n,r,i){const s=t.constructor;const o=i.dependencyTemplates.get(s);if(!o){throw new Error("No template for dependency: "+t.constructor.name)}const a={runtimeTemplate:i.runtimeTemplate,dependencyTemplates:i.dependencyTemplates,moduleGraph:i.moduleGraph,chunkGraph:i.chunkGraph,module:e,runtime:i.runtime,runtimeRequirements:i.runtimeRequirements,initFragments:n};o.apply(t,r,a);if("getInitFragments"in o){const e=c(o,t,a);if(e){for(const t of e){n.push(t)}}}}}e.exports=JavascriptGenerator},18161:(e,t,n)=>{"use strict";const{SyncWaterfallHook:r,SyncHook:i}=n(92960);const{ConcatSource:s,OriginalSource:o,PrefixSource:a,RawSource:c,CachedSource:u}=n(48135);const l=n(3080);const{tryRunOrWebpackError:f}=n(3728);const p=n(22352);const d=n(76150);const h=n(58159);const m=n(14146);const{compareModulesByIdentifier:g}=n(68673);const y=n(35891);const v=n(99371);const _=n(3711);const b=(e,t)=>{for(const n of e){if(t(n))return true}return false};const E=(e,t)=>{if(t.getNumberOfEntryModules(e)>0)return true;return t.getChunkModulesIterableBySourceType(e,"javascript")?true:false};const w=new WeakMap;class JavascriptModulesPlugin{static getCompilationHooks(e){if(!(e instanceof l)){throw new TypeError("The 'compilation' argument must be an instance of Compilation")}let t=w.get(e);if(t===undefined){t={renderModuleContent:new r(["source","module","renderContext"]),renderModuleContainer:new r(["source","module","renderContext"]),renderModulePackage:new r(["source","module","renderContext"]),render:new r(["source","renderContext"]),renderChunk:new r(["source","renderContext"]),renderMain:new r(["source","renderContext"]),renderRequire:new r(["code","renderContext"]),chunkHash:new i(["chunk","hash","context"])};w.set(e,t)}return t}constructor(e={}){this.options=e;this._moduleFactoryCache=new WeakMap}apply(e){e.hooks.compilation.tap("JavascriptModulesPlugin",(e,{normalModuleFactory:t})=>{const n=JavascriptModulesPlugin.getCompilationHooks(e);t.hooks.createParser.for("javascript/auto").tap("JavascriptModulesPlugin",e=>{return new _(e,"auto")});t.hooks.createParser.for("javascript/dynamic").tap("JavascriptModulesPlugin",e=>{return new _(e,"script")});t.hooks.createParser.for("javascript/esm").tap("JavascriptModulesPlugin",e=>{return new _(e,"module")});t.hooks.createGenerator.for("javascript/auto").tap("JavascriptModulesPlugin",()=>{return new v});t.hooks.createGenerator.for("javascript/dynamic").tap("JavascriptModulesPlugin",()=>{return new v});t.hooks.createGenerator.for("javascript/esm").tap("JavascriptModulesPlugin",()=>{return new v});e.hooks.renderManifest.tap("JavascriptModulesPlugin",(e,t)=>{const{hash:r,chunk:i,chunkGraph:s,moduleGraph:o,runtimeTemplate:a,dependencyTemplates:c,outputOptions:u,codeGenerationResults:l}=t;const f=i instanceof p?i:null;let d;const h=JavascriptModulesPlugin.getChunkFilenameTemplate(i,u);if(f){d=(()=>this.renderChunk({chunk:i,dependencyTemplates:c,runtimeTemplate:a,moduleGraph:o,chunkGraph:s,codeGenerationResults:l},n))}else if(i.hasRuntime()){d=(()=>this.renderMain({hash:r,chunk:i,dependencyTemplates:c,runtimeTemplate:a,moduleGraph:o,chunkGraph:s,codeGenerationResults:l},n))}else{if(!E(i,s)){return e}d=(()=>this.renderChunk({chunk:i,dependencyTemplates:c,runtimeTemplate:a,moduleGraph:o,chunkGraph:s,codeGenerationResults:l},n))}e.push({render:d,filenameTemplate:h,pathOptions:{hash:r,runtime:i.runtime,chunk:i,contentHashType:"javascript"},identifier:f?`hotupdatechunk${i.id}`:`chunk${i.id}`,hash:i.hash});return e});e.hooks.chunkHash.tap("JavascriptModulesPlugin",(e,t,r)=>{n.chunkHash.call(e,t,r);if(e.hasRuntime()){const i=this.renderBootstrap({hash:"0000",chunk:e,chunkGraph:r.chunkGraph,moduleGraph:r.moduleGraph,runtimeTemplate:r.runtimeTemplate},n);for(const e of Object.keys(i)){t.update(e);if(Array.isArray(i[e])){for(const n of i[e]){t.update(n)}}else{t.update(JSON.stringify(i[e]))}}}});e.hooks.contentHash.tap("JavascriptModulesPlugin",t=>{const{chunkGraph:r,moduleGraph:i,runtimeTemplate:s,outputOptions:{hashSalt:o,hashDigest:a,hashDigestLength:c,hashFunction:u}}=e;const l=t instanceof p?t:null;const f=y(u);if(o)f.update(o);f.update(`${t.id} `);f.update(t.ids?t.ids.join(","):"");n.chunkHash.call(t,f,{chunkGraph:r,moduleGraph:i,runtimeTemplate:s});const d=r.getChunkModulesIterableBySourceType(t,"javascript");if(d){const e=new m;for(const n of d){e.add(r.getModuleHash(n,t.runtime))}e.updateHash(f)}const h=r.getChunkModulesIterableBySourceType(t,"runtime");if(h){const e=new m;for(const n of h){e.add(r.getModuleHash(n,t.runtime))}e.updateHash(f)}if(l){f.update(JSON.stringify(l.removedModules))}const g=f.digest(a);t.contentHash.javascript=g.substr(0,c)})})}static getChunkFilenameTemplate(e,t){if(e.filenameTemplate){return e.filenameTemplate}else if(e instanceof p){return t.hotUpdateChunkFilename}else if(e.hasRuntime()||e.isOnlyInitial()){return t.filename}else{return t.chunkFilename}}renderModule(e,t,n,r){const{chunk:i,chunkGraph:o,runtimeTemplate:a,codeGenerationResults:c}=t;try{const l=c.getSource(e,i.runtime,"javascript");if(!l)return null;const p=f(()=>n.renderModuleContent.call(l,e,t),"JavascriptModulesPlugin.getCompilationHooks().renderModuleContent");let h;if(r){const c=o.getModuleRuntimeRequirements(e,i.runtime);const l=c.has(d.module);const m=c.has(d.exports);const g=c.has(d.require)||c.has(d.requireScope);const y=c.has(d.thisAsExports);const v=e.buildInfo.strict&&r!=="strict";const _=this._moduleFactoryCache.get(p);let b;if(_&&_.needModule===l&&_.needExports===m&&_.needRequire===g&&_.needThisAsExports===y&&_.needStrict===v){b=_.source}else{const t=new s;const n=[];if(m||g||l)n.push(l?e.moduleArgument:"__unused_webpack_"+e.moduleArgument);if(m||g)n.push(m?e.exportsArgument:"__unused_webpack_"+e.exportsArgument);if(g)n.push("__webpack_require__");if(!y&&a.supportsArrowFunction()){t.add("/***/ (("+n.join(", ")+") => {\n\n")}else{t.add("/***/ (function("+n.join(", ")+") {\n\n")}if(v){t.add('"use strict";\n')}t.add(p);t.add("\n\n/***/ })");b=new u(t);this._moduleFactoryCache.set(p,{source:b,needModule:l,needExports:m,needRequire:g,needThisAsExports:y,needStrict:v})}h=f(()=>n.renderModuleContainer.call(b,e,t),"JavascriptModulesPlugin.getCompilationHooks().renderModuleContainer")}else{h=p}return f(()=>n.renderModulePackage.call(h,e,t),"JavascriptModulesPlugin.getCompilationHooks().renderModulePackage")}catch(t){t.module=e;throw t}}renderChunk(e,t){const{chunk:n,chunkGraph:r}=e;const i=r.getOrderedChunkModulesIterableBySourceType(n,"javascript",g);const o=h.renderChunkModules(e,i?Array.from(i):[],n=>this.renderModule(n,e,t,true))||new c("{}");let a=f(()=>t.renderChunk.call(o,e),"JavascriptModulesPlugin.getCompilationHooks().renderChunk");a=f(()=>t.render.call(a,e),"JavascriptModulesPlugin.getCompilationHooks().render");n.rendered=true;return new s(a,";")}renderMain(e,t){const{chunk:n,chunkGraph:r,runtimeTemplate:i}=e;const c=r.getTreeRuntimeRequirements(n);const u=i.isIIFE();const l=this.renderBootstrap(e,t);const p=Array.from(r.getOrderedChunkModulesIterableBySourceType(n,"javascript",g)||[]);const m=p.every(e=>e.buildInfo.strict);let y;if(l.allowInlineStartup){y=new Set(r.getChunkEntryModulesIterable(n))}let v=new s;let _;if(u){if(i.supportsArrowFunction()){v.add("/******/ (() => { // webpackBootstrap\n")}else{v.add("/******/ (function() { // webpackBootstrap\n")}_="/******/ \t"}else{_="/******/ "}if(m){v.add(_+'"use strict";\n')}const b=h.renderChunkModules(e,y?p.filter(e=>!y.has(e)):p,n=>this.renderModule(n,e,t,m?"strict":true),_);if(b||c.has(d.moduleFactories)||c.has(d.moduleFactoriesAddOnly)){v.add(_+"var __webpack_modules__ = (");v.add(b||"{}");v.add(");\n");v.add("/************************************************************************/\n")}if(l.header.length>0){v.add(new a(_,new o(h.asString(l.header)+"\n","webpack/bootstrap")));v.add("/************************************************************************/\n")}const E=e.chunkGraph.getChunkRuntimeModulesInOrder(n);if(E.length>0){v.add(new a(_,h.renderRuntimeModules(E,e)));v.add("/************************************************************************/\n")}if(y){for(const n of y){const r=this.renderModule(n,e,t,false);if(r){const e=!m&&n.buildInfo.strict;const t=e||y.size>1||b;if(t){if(i.supportsArrowFunction()){v.add("(() => {\n");if(e)v.add('"use strict";\n');v.add(r);v.add("\n})();\n\n")}else{v.add("!function() {\n");if(e)v.add('"use strict";\n');v.add(r);v.add("\n}();\n")}}else{v.add(r);v.add("\n")}}}}else{v.add(new a(_,new o(h.asString(l.startup)+"\n","webpack/startup")))}if(u){v.add("/******/ })()\n")}let w=f(()=>t.renderMain.call(v,e),"JavascriptModulesPlugin.getCompilationHooks().renderMain");if(!w){throw new Error("JavascriptModulesPlugin error: JavascriptModulesPlugin.getCompilationHooks().renderMain plugins should return something")}w=f(()=>t.render.call(w,e),"JavascriptModulesPlugin.getCompilationHooks().render");if(!w){throw new Error("JavascriptModulesPlugin error: JavascriptModulesPlugin.getCompilationHooks().render plugins should return something")}n.rendered=true;return u?new s(w,";"):w}renderBootstrap(e,t){const{chunkGraph:n,moduleGraph:r,chunk:i,runtimeTemplate:s}=e;const o=n.getTreeRuntimeRequirements(i);const a=o.has(d.require);const c=o.has(d.moduleCache);const u=o.has(d.moduleFactories);const l=o.has(d.module);const f=o.has(d.exports);const p=o.has(d.requireScope);const m=o.has(d.interceptModuleExecution);const g=o.has(d.returnExportsFromRuntime);const y=a||m||g||l||f;const v={header:[],startup:[],allowInlineStartup:true};let _=v.header;let E=v.startup;if(v.allowInlineStartup&&u){E.push("// module factories are used so entry inlining is disabled");v.allowInlineStartup=false}if(v.allowInlineStartup&&c){E.push("// module cache are used so entry inlining is disabled");v.allowInlineStartup=false}if(v.allowInlineStartup&&m){E.push("// module execution is intercepted so entry inlining is disabled");v.allowInlineStartup=false}if(v.allowInlineStartup&&g){E.push("// module exports must be returned from runtime so entry inlining is disabled");v.allowInlineStartup=false}if(y||c){_.push("// The module cache");_.push("var __webpack_module_cache__ = {};");_.push("")}if(y){_.push("// The require function");_.push(`function __webpack_require__(moduleId) {`);_.push(h.indent(this.renderRequire(e,t)));_.push("}");_.push("")}else if(o.has(d.requireScope)){_.push("// The require scope");_.push("var __webpack_require__ = {};");_.push("")}if(u||o.has(d.moduleFactoriesAddOnly)){_.push("// expose the modules object (__webpack_modules__)");_.push(`${d.moduleFactories} = __webpack_modules__;`);_.push("")}if(c){_.push("// expose the module cache");_.push(`${d.moduleCache} = __webpack_module_cache__;`);_.push("")}if(m){_.push("// expose the module execution interceptor");_.push(`${d.interceptModuleExecution} = [];`);_.push("")}if(!o.has(d.startupNoDefault)){if(n.getNumberOfEntryModules(i)>0){const e=[];const t=n.getTreeRuntimeRequirements(i);e.push(g?"// Load entry module and return exports":"// Load entry module");let o=n.getNumberOfEntryModules(i);for(const s of n.getChunkEntryModulesIterable(i)){if(v.allowInlineStartup&&b(r.getIncomingConnections(s),e=>e.originModule&&e.isActive(i.runtime))){e.push("// This entry module is referenced by other modules so it can't be inlined");v.allowInlineStartup=false}const a=--o===0&&g?"return ":"";const c=n.getModuleId(s);const u=n.getModuleRuntimeRequirements(s,i.runtime);let l=JSON.stringify(c);if(t.has(d.entryModuleId)){l=`${d.entryModuleId} = ${l}`}if(y){e.push(`${a}__webpack_require__(${l});`);if(v.allowInlineStartup){if(u.has(d.module)){v.allowInlineStartup=false;e.push("// This entry module used 'module' so it can't be inlined")}else if(u.has(d.exports)){e.push("// This entry module used 'exports' so it can't be inlined");v.allowInlineStartup=false}}}else if(p){e.push(`__webpack_modules__[${l}](0, 0, __webpack_require__);`)}else{e.push(`__webpack_modules__[${l}]();`)}}if(t.has(d.startup)){v.allowInlineStartup=false;_.push(h.asString(["// the startup function",`${d.startup} = ${s.basicFunction("",e)};`]));_.push("");E.push("// run startup");E.push(`return ${d.startup}();`)}else{E.push(h.asString(["// startup",h.asString(e)]))}}else if(o.has(d.startup)){_.push(h.asString(["// the startup function","// It's empty as no entry modules are in this chunk",`${d.startup} = ${s.basicFunction("","")}`]));_.push("")}}else if(o.has(d.startup)){v.allowInlineStartup=false;E.push("// run startup");E.push(`return ${d.startup}();`)}return v}renderRequire(e,t){const{chunk:n,chunkGraph:r,runtimeTemplate:{outputOptions:i}}=e;const s=r.getTreeRuntimeRequirements(n);const o=s.has(d.interceptModuleExecution)?h.asString(["var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };",`${d.interceptModuleExecution}.forEach(function(handler) { handler(execOptions); });`,"module = execOptions.module;","execOptions.factory.call(module.exports, module, module.exports, execOptions.require);"]):s.has(d.thisAsExports)?h.asString(["__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);"]):h.asString(["__webpack_modules__[moduleId](module, module.exports, __webpack_require__);"]);const a=s.has(d.moduleId);const c=s.has(d.moduleLoaded);const u=h.asString(["// Check if module is in cache","if(__webpack_module_cache__[moduleId]) {",h.indent("return __webpack_module_cache__[moduleId].exports;"),"}","// Create a new module (and put it into the cache)","var module = __webpack_module_cache__[moduleId] = {",h.indent([a?"id: moduleId,":"// no module.id needed",c?"loaded: false,":"// no module.loaded needed","exports: {}"]),"};","",i.strictModuleExceptionHandling?h.asString(["// Execute the module function","var threw = true;","try {",h.indent([o,"threw = false;"]),"} finally {",h.indent(["if(threw) delete __webpack_module_cache__[moduleId];"]),"}"]):h.asString(["// Execute the module function",o]),c?h.asString(["","// Flag the module as loaded","module.loaded = true;",""]):"","// Return the exports of the module","return module.exports;"]);return f(()=>t.renderRequire.call(u,e),"JavascriptModulesPlugin.getCompilationHooks().renderRequire")}}e.exports=JavascriptModulesPlugin;e.exports.chunkHasJs=E},3711:(e,t,n)=>{"use strict";const{Parser:r}=n(20976);const{SyncBailHook:i,HookMap:s}=n(92960);const o=n(92184);const a=n(2172);const c=n(80371);const u=n(27503);const l=n(87250);const f=[];const p=r;class VariableInfo{constructor(e,t,n){this.declaredScope=e;this.freeName=t;this.tagInfo=n}}const d=(e,t)=>{if(!t)return e;if(!e)return t;return[e[0],t[1]]};const h=(e,t)=>{let n=e;for(let e=t.length-1;e>=0;e--){n=n+"."+t[e]}return n};const m=e=>{switch(e.type){case"Identifier":return e.name;case"ThisExpression":return"this";case"MetaProperty":return"import.meta";default:return undefined}};const g={ranges:true,locations:true,ecmaVersion:11,sourceType:"module",allowAwaitOutsideFunction:true,onComment:null};const y=new RegExp(/(^|\W)webpack[A-Z]{1,}[A-Za-z]{1,}:/);const v={options:null,errors:null};class JavascriptParser extends a{constructor(e,t="auto"){super();this.hooks=Object.freeze({evaluateTypeof:new s(()=>new i(["expression"])),evaluate:new s(()=>new i(["expression"])),evaluateIdentifier:new s(()=>new i(["expression"])),evaluateDefinedIdentifier:new s(()=>new i(["expression"])),evaluateCallExpressionMember:new s(()=>new i(["expression","param"])),preStatement:new i(["statement"]),blockPreStatement:new i(["declaration"]),statement:new i(["statement"]),statementIf:new i(["statement"]),classExtendsExpression:new i(["expression","statement"]),classBodyElement:new i(["element","statement"]),label:new s(()=>new i(["statement"])),import:new i(["statement","source"]),importSpecifier:new i(["statement","source","exportName","identifierName"]),export:new i(["statement"]),exportImport:new i(["statement","source"]),exportDeclaration:new i(["statement","declaration"]),exportExpression:new i(["statement","declaration"]),exportSpecifier:new i(["statement","identifierName","exportName","index"]),exportImportSpecifier:new i(["statement","source","identifierName","exportName","index"]),preDeclarator:new i(["declarator","statement"]),declarator:new i(["declarator","statement"]),varDeclaration:new s(()=>new i(["declaration"])),varDeclarationLet:new s(()=>new i(["declaration"])),varDeclarationConst:new s(()=>new i(["declaration"])),varDeclarationVar:new s(()=>new i(["declaration"])),pattern:new s(()=>new i(["pattern"])),canRename:new s(()=>new i(["initExpression"])),rename:new s(()=>new i(["initExpression"])),assign:new s(()=>new i(["expression"])),assignMemberChain:new s(()=>new i(["expression","members"])),typeof:new s(()=>new i(["expression"])),importCall:new i(["expression"]),topLevelAwait:new i(["expression"]),call:new s(()=>new i(["expression"])),callMemberChain:new s(()=>new i(["expression","members"])),memberChainOfCallMemberChain:new s(()=>new i(["expression","calleeMembers","callExpression","members"])),callMemberChainOfCallMemberChain:new s(()=>new i(["expression","calleeMembers","innerCallExpression","members"])),optionalChaining:new i(["optionalChaining"]),new:new s(()=>new i(["expression"])),metaProperty:new i(["metaProperty"]),expression:new s(()=>new i(["expression"])),expressionMemberChain:new s(()=>new i(["expression","members"])),unhandledExpressionMemberChain:new s(()=>new i(["expression","members"])),expressionConditionalOperator:new i(["expression"]),expressionLogicalOperator:new i(["expression"]),program:new i(["ast","comments"]),finish:new i(["ast","comments"])});this.options=e;this.sourceType=t;this.scope=undefined;this.state=undefined;this.comments=undefined;this.semicolons=undefined;this.statementPath=undefined;this.prevStatement=undefined;this.currentTagData=undefined;this.initializeEvaluating()}initializeEvaluating(){this.hooks.evaluate.for("Literal").tap("JavascriptParser",e=>{const t=e;switch(typeof t.value){case"number":return(new l).setNumber(t.value).setRange(t.range);case"bigint":return(new l).setBigInt(t.value).setRange(t.range);case"string":return(new l).setString(t.value).setRange(t.range);case"boolean":return(new l).setBoolean(t.value).setRange(t.range)}if(t.value===null){return(new l).setNull().setRange(t.range)}if(t.value instanceof RegExp){return(new l).setRegExp(t.value).setRange(t.range)}});this.hooks.evaluate.for("LogicalExpression").tap("JavascriptParser",e=>{const t=e;const n=this.evaluateExpression(t.left);if(!n)return;if(t.operator==="&&"){const e=n.asBool();if(e===false)return n.setRange(t.range);if(e!==true)return}else if(t.operator==="||"){const e=n.asBool();if(e===true)return n.setRange(t.range);if(e!==false)return}else if(t.operator==="??"){const e=n.asNullish();if(e===false)return n.setRange(t.range);if(e!==true)return}else return;const r=this.evaluateExpression(t.right);if(!r)return;if(n.couldHaveSideEffects())r.setSideEffects();return r.setRange(t.range)});const e=(e,t,n)=>{switch(typeof e){case"boolean":return(new l).setBoolean(e).setSideEffects(n).setRange(t.range);case"number":return(new l).setNumber(e).setSideEffects(n).setRange(t.range);case"bigint":return(new l).setBigInt(e).setSideEffects(n).setRange(t.range);case"string":return(new l).setString(e).setSideEffects(n).setRange(t.range)}};this.hooks.evaluate.for("BinaryExpression").tap("JavascriptParser",t=>{const n=t;const r=t=>{const r=this.evaluateExpression(n.left);if(!r||!r.isCompileTimeValue())return;const i=this.evaluateExpression(n.right);if(!i||!i.isCompileTimeValue())return;const s=t(r.asCompileTimeValue(),i.asCompileTimeValue());return e(s,n,r.couldHaveSideEffects()||i.couldHaveSideEffects())};const i=(e,t)=>e===true&&t===false||e===false&&t===true;const s=(e,t,n,r)=>{const i=e=>{let t="";for(const n of e){const e=n.asString();if(e!==undefined)t+=e;else break}return t};const s=e=>{let t="";for(let n=e.length-1;n>=0;n--){const r=e[n].asString();if(r!==undefined)t=r+t;else break}return t};const o=i(e.parts);const a=i(t.parts);const c=s(e.parts);const u=s(t.parts);const l=Math.min(o.length,a.length);const f=Math.min(c.length,u.length);if(o.slice(0,l)!==a.slice(0,l)||c.slice(-f)!==u.slice(-f)){return n.setBoolean(!r).setSideEffects(e.couldHaveSideEffects()||t.couldHaveSideEffects())}};const o=e=>{const t=this.evaluateExpression(n.left);if(!t)return;const r=this.evaluateExpression(n.right);if(!r)return;const o=new l;o.setRange(n.range);const a=t.isCompileTimeValue();const c=r.isCompileTimeValue();if(a&&c){return o.setBoolean(e===(t.asCompileTimeValue()===r.asCompileTimeValue())).setSideEffects(t.couldHaveSideEffects()||r.couldHaveSideEffects())}if(t.isArray()&&r.isArray()){return o.setBoolean(!e).setSideEffects(t.couldHaveSideEffects()||r.couldHaveSideEffects())}if(t.isTemplateString()&&r.isTemplateString()){return s(t,r,o,e)}const u=t.isPrimitiveType();const f=r.isPrimitiveType();if(u===false&&(a||f===true)||f===false&&(c||u===true)||i(t.asBool(),r.asBool())||i(t.asNullish(),r.asNullish())){return o.setBoolean(!e).setSideEffects(t.couldHaveSideEffects()||r.couldHaveSideEffects())}};const a=e=>{const t=this.evaluateExpression(n.left);if(!t)return;const r=this.evaluateExpression(n.right);if(!r)return;const i=new l;i.setRange(n.range);const o=t.isCompileTimeValue();const a=r.isCompileTimeValue();if(o&&a){return i.setBoolean(e===(t.asCompileTimeValue()==r.asCompileTimeValue())).setSideEffects(t.couldHaveSideEffects()||r.couldHaveSideEffects())}if(t.isArray()&&r.isArray()){return i.setBoolean(!e).setSideEffects(t.couldHaveSideEffects()||r.couldHaveSideEffects())}if(t.isTemplateString()&&r.isTemplateString()){return s(t,r,i,e)}};if(n.operator==="+"){const e=this.evaluateExpression(n.left);if(!e)return;const t=this.evaluateExpression(n.right);if(!t)return;const r=new l;if(e.isString()){if(t.isString()){r.setString(e.string+t.string)}else if(t.isNumber()){r.setString(e.string+t.number)}else if(t.isWrapped()&&t.prefix&&t.prefix.isString()){r.setWrapped((new l).setString(e.string+t.prefix.string).setRange(d(e.range,t.prefix.range)),t.postfix,t.wrappedInnerExpressions)}else if(t.isWrapped()){r.setWrapped(e,t.postfix,t.wrappedInnerExpressions)}else{r.setWrapped(e,null,[t])}}else if(e.isNumber()){if(t.isString()){r.setString(e.number+t.string)}else if(t.isNumber()){r.setNumber(e.number+t.number)}else{return}}else if(e.isBigInt()){if(t.isBigInt()){r.setBigInt(e.bigint+t.bigint)}}else if(e.isWrapped()){if(e.postfix&&e.postfix.isString()&&t.isString()){r.setWrapped(e.prefix,(new l).setString(e.postfix.string+t.string).setRange(d(e.postfix.range,t.range)),e.wrappedInnerExpressions)}else if(e.postfix&&e.postfix.isString()&&t.isNumber()){r.setWrapped(e.prefix,(new l).setString(e.postfix.string+t.number).setRange(d(e.postfix.range,t.range)),e.wrappedInnerExpressions)}else if(t.isString()){r.setWrapped(e.prefix,t,e.wrappedInnerExpressions)}else if(t.isNumber()){r.setWrapped(e.prefix,(new l).setString(t.number+"").setRange(t.range),e.wrappedInnerExpressions)}else if(t.isWrapped()){r.setWrapped(e.prefix,t.postfix,e.wrappedInnerExpressions&&t.wrappedInnerExpressions&&e.wrappedInnerExpressions.concat(e.postfix?[e.postfix]:[]).concat(t.prefix?[t.prefix]:[]).concat(t.wrappedInnerExpressions))}else{r.setWrapped(e.prefix,null,e.wrappedInnerExpressions&&e.wrappedInnerExpressions.concat(e.postfix?[e.postfix,t]:[t]))}}else{if(t.isString()){r.setWrapped(null,t,[e])}else if(t.isWrapped()){r.setWrapped(null,t.postfix,t.wrappedInnerExpressions&&(t.prefix?[e,t.prefix]:[e]).concat(t.wrappedInnerExpressions))}else{return}}if(e.couldHaveSideEffects()||t.couldHaveSideEffects())r.setSideEffects();r.setRange(n.range);return r}else if(n.operator==="-"){return r((e,t)=>e-t)}else if(n.operator==="*"){return r((e,t)=>e*t)}else if(n.operator==="/"){return r((e,t)=>e/t)}else if(n.operator==="**"){return r((e,t)=>e**t)}else if(n.operator==="==="){return o(true)}else if(n.operator==="=="){return a(true)}else if(n.operator==="!=="){return o(false)}else if(n.operator==="!="){return a(false)}else if(n.operator==="&"){return r((e,t)=>e&t)}else if(n.operator==="|"){return r((e,t)=>e|t)}else if(n.operator==="^"){return r((e,t)=>e^t)}else if(n.operator===">>>"){return r((e,t)=>e>>>t)}else if(n.operator===">>"){return r((e,t)=>e>>t)}else if(n.operator==="<<"){return r((e,t)=>e<<t)}else if(n.operator==="<"){return r((e,t)=>e<t)}else if(n.operator===">"){return r((e,t)=>e>t)}else if(n.operator==="<="){return r((e,t)=>e<=t)}else if(n.operator===">="){return r((e,t)=>e>=t)}});this.hooks.evaluate.for("UnaryExpression").tap("JavascriptParser",t=>{const n=t;const r=t=>{const r=this.evaluateExpression(n.argument);if(!r||!r.isCompileTimeValue())return;const i=t(r.asCompileTimeValue());return e(i,n,r.couldHaveSideEffects())};if(n.operator==="typeof"){switch(n.argument.type){case"Identifier":{const e=this.callHooksForName(this.hooks.evaluateTypeof,n.argument.name,n);if(e!==undefined)return e;break}case"MetaProperty":{const e=this.callHooksForName(this.hooks.evaluateTypeof,"import.meta",n);if(e!==undefined)return e;break}case"MemberExpression":{const e=this.callHooksForExpression(this.hooks.evaluateTypeof,n.argument,n);if(e!==undefined)return e;break}case"ChainExpression":{const e=this.callHooksForExpression(this.hooks.evaluateTypeof,n.argument.expression,n);if(e!==undefined)return e;break}case"FunctionExpression":{return(new l).setString("function").setRange(n.range)}}const e=this.evaluateExpression(n.argument);if(e.isUnknown())return;if(e.isString()){return(new l).setString("string").setRange(n.range)}if(e.isWrapped()){return(new l).setString("string").setSideEffects().setRange(n.range)}if(e.isUndefined()){return(new l).setString("undefined").setRange(n.range)}if(e.isNumber()){return(new l).setString("number").setRange(n.range)}if(e.isBigInt()){return(new l).setString("bigint").setRange(n.range)}if(e.isBoolean()){return(new l).setString("boolean").setRange(n.range)}if(e.isConstArray()||e.isRegExp()||e.isNull()){return(new l).setString("object").setRange(n.range)}if(e.isArray()){return(new l).setString("object").setSideEffects(e.couldHaveSideEffects()).setRange(n.range)}}else if(n.operator==="!"){const e=this.evaluateExpression(n.argument);if(!e)return;const t=e.asBool();if(typeof t!=="boolean")return;return(new l).setBoolean(!t).setSideEffects(e.couldHaveSideEffects()).setRange(n.range)}else if(n.operator==="~"){return r(e=>~e)}else if(n.operator==="+"){return r(e=>+e)}else if(n.operator==="-"){return r(e=>-e)}});this.hooks.evaluateTypeof.for("undefined").tap("JavascriptParser",e=>{return(new l).setString("undefined").setRange(e.range)});const t=(e,t)=>{let n=undefined;let r=undefined;this.hooks.evaluate.for(e).tap("JavascriptParser",e=>{const i=e;const s=t(e);if(s!==undefined){return this.callHooksForInfoWithFallback(this.hooks.evaluateIdentifier,s.name,e=>{n=i;r=s},e=>{const t=this.hooks.evaluateDefinedIdentifier.get(e);if(t!==undefined){return t.call(i)}},i)}});this.hooks.evaluate.for(e).tap({name:"JavascriptParser",stage:100},e=>{const i=n===e?r:t(e);if(i!==undefined){return(new l).setIdentifier(i.name,i.rootInfo,i.getMembers).setRange(e.range)}})};t("Identifier",e=>{const t=this.getVariableInfo(e.name);if(typeof t==="string"||t instanceof VariableInfo&&typeof t.freeName==="string"){return{name:t,rootInfo:t,getMembers:()=>[]}}});t("ThisExpression",e=>{const t=this.getVariableInfo("this");if(typeof t==="string"||t instanceof VariableInfo&&typeof t.freeName==="string"){return{name:t,rootInfo:t,getMembers:()=>[]}}});this.hooks.evaluate.for("MetaProperty").tap("JavascriptParser",e=>{const t=e;return this.callHooksForName(this.hooks.evaluateIdentifier,"import.meta",t)});t("MemberExpression",e=>this.getMemberExpressionInfo(e,["expression"]));this.hooks.evaluate.for("CallExpression").tap("JavascriptParser",e=>{const t=e;if(t.callee.type!=="MemberExpression"||t.callee.property.type!==(t.callee.computed?"Literal":"Identifier")){return}const n=this.evaluateExpression(t.callee.object);if(!n)return;const r=t.callee.property.type==="Literal"?`${t.callee.property.value}`:t.callee.property.name;const i=this.hooks.evaluateCallExpressionMember.get(r);if(i!==undefined){return i.call(t,n)}});this.hooks.evaluateCallExpressionMember.for("indexOf").tap("JavascriptParser",(e,t)=>{if(!t.isString())return;if(e.arguments.length===0)return;const[n,r]=e.arguments;if(n.type==="SpreadElement")return;const i=this.evaluateExpression(n);if(!i.isString())return;const s=i.string;let o;if(r){if(r.type==="SpreadElement")return;const e=this.evaluateExpression(r);if(!e.isNumber())return;o=t.string.indexOf(s,e.number)}else{o=t.string.indexOf(s)}return(new l).setNumber(o).setSideEffects(t.couldHaveSideEffects()).setRange(e.range)});this.hooks.evaluateCallExpressionMember.for("replace").tap("JavascriptParser",(e,t)=>{if(!t.isString())return;if(e.arguments.length!==2)return;if(e.arguments[0].type==="SpreadElement")return;if(e.arguments[1].type==="SpreadElement")return;let n=this.evaluateExpression(e.arguments[0]);let r=this.evaluateExpression(e.arguments[1]);if(!n.isString()&&!n.isRegExp())return;const i=n.regExp||n.string;if(!r.isString())return;const s=r.string;return(new l).setString(t.string.replace(i,s)).setSideEffects(t.couldHaveSideEffects()).setRange(e.range)});["substr","substring","slice"].forEach(e=>{this.hooks.evaluateCallExpressionMember.for(e).tap("JavascriptParser",(t,n)=>{if(!n.isString())return;let r;let i,s=n.string;switch(t.arguments.length){case 1:if(t.arguments[0].type==="SpreadElement")return;r=this.evaluateExpression(t.arguments[0]);if(!r.isNumber())return;i=s[e](r.number);break;case 2:{if(t.arguments[0].type==="SpreadElement")return;if(t.arguments[1].type==="SpreadElement")return;r=this.evaluateExpression(t.arguments[0]);const n=this.evaluateExpression(t.arguments[1]);if(!r.isNumber())return;if(!n.isNumber())return;i=s[e](r.number,n.number);break}default:return}return(new l).setString(i).setSideEffects(n.couldHaveSideEffects()).setRange(t.range)})});const n=(e,t)=>{const n=[];const r=[];for(let i=0;i<t.quasis.length;i++){const s=t.quasis[i];const o=s.value[e];if(i>0){const e=r[r.length-1];const n=this.evaluateExpression(t.expressions[i-1]);const a=n.asString();if(typeof a==="string"&&!n.couldHaveSideEffects()){e.setString(e.string+a+o);e.setRange([e.range[0],s.range[1]]);e.setExpression(undefined);continue}r.push(n)}const a=(new l).setString(o).setRange(s.range).setExpression(s);n.push(a);r.push(a)}return{quasis:n,parts:r}};this.hooks.evaluate.for("TemplateLiteral").tap("JavascriptParser",e=>{const t=e;const{quasis:r,parts:i}=n("cooked",t);if(i.length===1){return i[0].setRange(t.range)}return(new l).setTemplateString(r,i,"cooked").setRange(t.range)});this.hooks.evaluate.for("TaggedTemplateExpression").tap("JavascriptParser",e=>{const t=e;const r=this.evaluateExpression(t.tag);if(r.isIdentifier()&&r.identifier!=="String.raw")return;const{quasis:i,parts:s}=n("raw",t.quasi);return(new l).setTemplateString(i,s,"raw").setRange(t.range)});this.hooks.evaluateCallExpressionMember.for("concat").tap("JavascriptParser",(e,t)=>{if(!t.isString()&&!t.isWrapped())return;let n=null;let r=false;const i=[];for(let t=e.arguments.length-1;t>=0;t--){const s=e.arguments[t];if(s.type==="SpreadElement")return;const o=this.evaluateExpression(s);if(r||!o.isString()&&!o.isNumber()){r=true;i.push(o);continue}const a=o.isString()?o.string:""+o.number;const c=a+(n?n.string:"");const u=[o.range[0],(n||o).range[1]];n=(new l).setString(c).setSideEffects(n&&n.couldHaveSideEffects()||o.couldHaveSideEffects()).setRange(u)}if(r){const r=t.isString()?t:t.prefix;const s=t.isWrapped()&&t.wrappedInnerExpressions?t.wrappedInnerExpressions.concat(i.reverse()):i.reverse();return(new l).setWrapped(r,n,s).setRange(e.range)}else if(t.isWrapped()){const r=n||t.postfix;const s=t.wrappedInnerExpressions?t.wrappedInnerExpressions.concat(i.reverse()):i.reverse();return(new l).setWrapped(t.prefix,r,s).setRange(e.range)}else{const r=t.string+(n?n.string:"");return(new l).setString(r).setSideEffects(n&&n.couldHaveSideEffects()||t.couldHaveSideEffects()).setRange(e.range)}});this.hooks.evaluateCallExpressionMember.for("split").tap("JavascriptParser",(e,t)=>{if(!t.isString())return;if(e.arguments.length!==1)return;if(e.arguments[0].type==="SpreadElement")return;let n;const r=this.evaluateExpression(e.arguments[0]);if(r.isString()){n=t.string.split(r.string)}else if(r.isRegExp()){n=t.string.split(r.regExp)}else{return}return(new l).setArray(n).setSideEffects(t.couldHaveSideEffects()).setRange(e.range)});this.hooks.evaluate.for("ConditionalExpression").tap("JavascriptParser",e=>{const t=e;const n=this.evaluateExpression(t.test);const r=n.asBool();let i;if(r===undefined){const e=this.evaluateExpression(t.consequent);const n=this.evaluateExpression(t.alternate);if(!e||!n)return;i=new l;if(e.isConditional()){i.setOptions(e.options)}else{i.setOptions([e])}if(n.isConditional()){i.addOptions(n.options)}else{i.addOptions([n])}}else{i=this.evaluateExpression(r?t.consequent:t.alternate);if(n.couldHaveSideEffects())i.setSideEffects()}i.setRange(t.range);return i});this.hooks.evaluate.for("ArrayExpression").tap("JavascriptParser",e=>{const t=e;const n=t.elements.map(e=>{return e!==null&&e.type!=="SpreadElement"&&this.evaluateExpression(e)});if(!n.every(Boolean))return;return(new l).setItems(n).setRange(t.range)});this.hooks.evaluate.for("ChainExpression").tap("JavascriptParser",e=>{const t=e;const n=[];let r=t.expression;while(r.type==="MemberExpression"||r.type==="CallExpression"){if(r.type==="MemberExpression"){if(r.optional){n.push(r.object)}r=r.object}else{if(r.optional){n.push(r.callee)}r=r.callee}}while(n.length>0){const t=n.pop();const r=this.evaluateExpression(t);if(r&&r.asNullish()){return r.setRange(e.range)}}return this.evaluateExpression(t.expression)})}getRenameIdentifier(e){const t=this.evaluateExpression(e);if(t&&t.isIdentifier()){return t.identifier}}walkClass(e){if(e.superClass){if(!this.hooks.classExtendsExpression.call(e.superClass,e)){this.walkExpression(e.superClass)}}if(e.body&&e.body.type==="ClassBody"){const t=this.scope.topLevelScope;for(const n of e.body.body){if(!this.hooks.classBodyElement.call(n,e)){if(n.type==="MethodDefinition"){this.scope.topLevelScope=false;this.walkMethodDefinition(n);this.scope.topLevelScope=t}}}}}walkMethodDefinition(e){if(e.computed&&e.key){this.walkExpression(e.key)}if(e.value){this.walkExpression(e.value)}}preWalkStatements(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];this.preWalkStatement(n)}}blockPreWalkStatements(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];this.blockPreWalkStatement(n)}}walkStatements(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];this.walkStatement(n)}}preWalkStatement(e){if(this.hooks.preStatement.call(e))return;switch(e.type){case"BlockStatement":this.preWalkBlockStatement(e);break;case"DoWhileStatement":this.preWalkDoWhileStatement(e);break;case"ForInStatement":this.preWalkForInStatement(e);break;case"ForOfStatement":this.preWalkForOfStatement(e);break;case"ForStatement":this.preWalkForStatement(e);break;case"FunctionDeclaration":this.preWalkFunctionDeclaration(e);break;case"IfStatement":this.preWalkIfStatement(e);break;case"LabeledStatement":this.preWalkLabeledStatement(e);break;case"SwitchStatement":this.preWalkSwitchStatement(e);break;case"TryStatement":this.preWalkTryStatement(e);break;case"VariableDeclaration":this.preWalkVariableDeclaration(e);break;case"WhileStatement":this.preWalkWhileStatement(e);break;case"WithStatement":this.preWalkWithStatement(e);break}}blockPreWalkStatement(e){if(this.hooks.blockPreStatement.call(e))return;switch(e.type){case"ImportDeclaration":this.blockPreWalkImportDeclaration(e);break;case"ExportAllDeclaration":this.blockPreWalkExportAllDeclaration(e);break;case"ExportDefaultDeclaration":this.blockPreWalkExportDefaultDeclaration(e);break;case"ExportNamedDeclaration":this.blockPreWalkExportNamedDeclaration(e);break;case"VariableDeclaration":this.blockPreWalkVariableDeclaration(e);break;case"ClassDeclaration":this.blockPreWalkClassDeclaration(e);break}}walkStatement(e){this.statementPath.push(e);if(this.hooks.statement.call(e)!==undefined){this.prevStatement=this.statementPath.pop();return}switch(e.type){case"BlockStatement":this.walkBlockStatement(e);break;case"ClassDeclaration":this.walkClassDeclaration(e);break;case"DoWhileStatement":this.walkDoWhileStatement(e);break;case"ExportDefaultDeclaration":this.walkExportDefaultDeclaration(e);break;case"ExportNamedDeclaration":this.walkExportNamedDeclaration(e);break;case"ExpressionStatement":this.walkExpressionStatement(e);break;case"ForInStatement":this.walkForInStatement(e);break;case"ForOfStatement":this.walkForOfStatement(e);break;case"ForStatement":this.walkForStatement(e);break;case"FunctionDeclaration":this.walkFunctionDeclaration(e);break;case"IfStatement":this.walkIfStatement(e);break;case"LabeledStatement":this.walkLabeledStatement(e);break;case"ReturnStatement":this.walkReturnStatement(e);break;case"SwitchStatement":this.walkSwitchStatement(e);break;case"ThrowStatement":this.walkThrowStatement(e);break;case"TryStatement":this.walkTryStatement(e);break;case"VariableDeclaration":this.walkVariableDeclaration(e);break;case"WhileStatement":this.walkWhileStatement(e);break;case"WithStatement":this.walkWithStatement(e);break}this.prevStatement=this.statementPath.pop()}preWalkBlockStatement(e){this.preWalkStatements(e.body)}walkBlockStatement(e){this.inBlockScope(()=>{const t=e.body;this.blockPreWalkStatements(t);this.walkStatements(t)})}walkExpressionStatement(e){this.walkExpression(e.expression)}preWalkIfStatement(e){this.preWalkStatement(e.consequent);if(e.alternate){this.preWalkStatement(e.alternate)}}walkIfStatement(e){const t=this.hooks.statementIf.call(e);if(t===undefined){this.walkExpression(e.test);this.walkStatement(e.consequent);if(e.alternate){this.walkStatement(e.alternate)}}else{if(t){this.walkStatement(e.consequent)}else if(e.alternate){this.walkStatement(e.alternate)}}}preWalkLabeledStatement(e){this.preWalkStatement(e.body)}walkLabeledStatement(e){const t=this.hooks.label.get(e.label.name);if(t!==undefined){const n=t.call(e);if(n===true)return}this.walkStatement(e.body)}preWalkWithStatement(e){this.preWalkStatement(e.body)}walkWithStatement(e){this.walkExpression(e.object);this.walkStatement(e.body)}preWalkSwitchStatement(e){this.preWalkSwitchCases(e.cases)}walkSwitchStatement(e){this.walkExpression(e.discriminant);this.walkSwitchCases(e.cases)}walkTerminatingStatement(e){if(e.argument)this.walkExpression(e.argument)}walkReturnStatement(e){this.walkTerminatingStatement(e)}walkThrowStatement(e){this.walkTerminatingStatement(e)}preWalkTryStatement(e){this.preWalkStatement(e.block);if(e.handler)this.preWalkCatchClause(e.handler);if(e.finializer)this.preWalkStatement(e.finializer)}walkTryStatement(e){if(this.scope.inTry){this.walkStatement(e.block)}else{this.scope.inTry=true;this.walkStatement(e.block);this.scope.inTry=false}if(e.handler)this.walkCatchClause(e.handler);if(e.finalizer)this.walkStatement(e.finalizer)}preWalkWhileStatement(e){this.preWalkStatement(e.body)}walkWhileStatement(e){this.walkExpression(e.test);this.walkStatement(e.body)}preWalkDoWhileStatement(e){this.preWalkStatement(e.body)}walkDoWhileStatement(e){this.walkStatement(e.body);this.walkExpression(e.test)}preWalkForStatement(e){if(e.init){if(e.init.type==="VariableDeclaration"){this.preWalkStatement(e.init)}}this.preWalkStatement(e.body)}walkForStatement(e){this.inBlockScope(()=>{if(e.init){if(e.init.type==="VariableDeclaration"){this.blockPreWalkVariableDeclaration(e.init);this.walkStatement(e.init)}else{this.walkExpression(e.init)}}if(e.test){this.walkExpression(e.test)}if(e.update){this.walkExpression(e.update)}const t=e.body;if(t.type==="BlockStatement"){this.blockPreWalkStatements(t.body);this.walkStatements(t.body)}else{this.walkStatement(t)}})}preWalkForInStatement(e){if(e.left.type==="VariableDeclaration"){this.preWalkVariableDeclaration(e.left)}this.preWalkStatement(e.body)}walkForInStatement(e){this.inBlockScope(()=>{if(e.left.type==="VariableDeclaration"){this.blockPreWalkVariableDeclaration(e.left);this.walkVariableDeclaration(e.left)}else{this.walkPattern(e.left)}this.walkExpression(e.right);const t=e.body;if(t.type==="BlockStatement"){this.blockPreWalkStatements(t.body);this.walkStatements(t.body)}else{this.walkStatement(t)}})}preWalkForOfStatement(e){if(e.await&&this.scope.topLevelScope===true){this.hooks.topLevelAwait.call(e)}if(e.left.type==="VariableDeclaration"){this.preWalkVariableDeclaration(e.left)}this.preWalkStatement(e.body)}walkForOfStatement(e){this.inBlockScope(()=>{if(e.left.type==="VariableDeclaration"){this.blockPreWalkVariableDeclaration(e.left);this.walkVariableDeclaration(e.left)}else{this.walkPattern(e.left)}this.walkExpression(e.right);const t=e.body;if(t.type==="BlockStatement"){this.blockPreWalkStatements(t.body);this.walkStatements(t.body)}else{this.walkStatement(t)}})}preWalkFunctionDeclaration(e){if(e.id){this.defineVariable(e.id.name)}}walkFunctionDeclaration(e){const t=this.scope.topLevelScope;this.scope.topLevelScope=false;this.inFunctionScope(true,e.params,()=>{for(const t of e.params){this.walkPattern(t)}if(e.body.type==="BlockStatement"){this.detectMode(e.body.body);this.preWalkStatement(e.body);this.walkStatement(e.body)}else{this.walkExpression(e.body)}});this.scope.topLevelScope=t}blockPreWalkImportDeclaration(e){const t=e.source.value;this.hooks.import.call(e,t);for(const n of e.specifiers){const r=n.local.name;switch(n.type){case"ImportDefaultSpecifier":if(!this.hooks.importSpecifier.call(e,t,"default",r)){this.defineVariable(r)}break;case"ImportSpecifier":if(!this.hooks.importSpecifier.call(e,t,n.imported.name,r)){this.defineVariable(r)}break;case"ImportNamespaceSpecifier":if(!this.hooks.importSpecifier.call(e,t,null,r)){this.defineVariable(r)}break;default:this.defineVariable(r)}}}enterDeclaration(e,t){switch(e.type){case"VariableDeclaration":for(const n of e.declarations){switch(n.type){case"VariableDeclarator":{this.enterPattern(n.id,t);break}}}break;case"FunctionDeclaration":this.enterPattern(e.id,t);break;case"ClassDeclaration":this.enterPattern(e.id,t);break}}blockPreWalkExportNamedDeclaration(e){let t;if(e.source){t=e.source.value;this.hooks.exportImport.call(e,t)}else{this.hooks.export.call(e)}if(e.declaration){if(!this.hooks.exportDeclaration.call(e,e.declaration)){this.preWalkStatement(e.declaration);this.blockPreWalkStatement(e.declaration);let t=0;this.enterDeclaration(e.declaration,n=>{this.hooks.exportSpecifier.call(e,n,n,t++)})}}if(e.specifiers){for(let n=0;n<e.specifiers.length;n++){const r=e.specifiers[n];switch(r.type){case"ExportSpecifier":{const i=r.exported.name;if(t){this.hooks.exportImportSpecifier.call(e,t,r.local.name,i,n)}else{this.hooks.exportSpecifier.call(e,r.local.name,i,n)}break}}}}}walkExportNamedDeclaration(e){if(e.declaration){this.walkStatement(e.declaration)}}blockPreWalkExportDefaultDeclaration(e){this.preWalkStatement(e.declaration);this.blockPreWalkStatement(e.declaration);if(e.declaration.id&&e.declaration.type!=="FunctionExpression"&&e.declaration.type!=="ClassExpression"){this.hooks.exportSpecifier.call(e,e.declaration.id.name,"default",undefined)}}walkExportDefaultDeclaration(e){this.hooks.export.call(e);if(e.declaration.id&&e.declaration.type!=="FunctionExpression"&&e.declaration.type!=="ClassExpression"){if(!this.hooks.exportDeclaration.call(e,e.declaration)){this.walkStatement(e.declaration)}}else{if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){this.walkStatement(e.declaration)}else{this.walkExpression(e.declaration)}if(!this.hooks.exportExpression.call(e,e.declaration)){this.hooks.exportSpecifier.call(e,e.declaration,"default",undefined)}}}blockPreWalkExportAllDeclaration(e){const t=e.source.value;const n=e.exported?e.exported.name:null;this.hooks.exportImport.call(e,t);this.hooks.exportImportSpecifier.call(e,t,null,n,0)}preWalkVariableDeclaration(e){if(e.kind!=="var")return;this._preWalkVariableDeclaration(e,this.hooks.varDeclarationVar)}blockPreWalkVariableDeclaration(e){if(e.kind==="var")return;const t=e.kind==="const"?this.hooks.varDeclarationConst:this.hooks.varDeclarationLet;this._preWalkVariableDeclaration(e,t)}_preWalkVariableDeclaration(e,t){for(const n of e.declarations){switch(n.type){case"VariableDeclarator":{if(!this.hooks.preDeclarator.call(n,e)){this.enterPattern(n.id,(e,n)=>{let r=t.get(e);if(r===undefined||!r.call(n)){r=this.hooks.varDeclaration.get(e);if(r===undefined||!r.call(n)){this.defineVariable(e)}}})}break}}}}walkVariableDeclaration(e){for(const t of e.declarations){switch(t.type){case"VariableDeclarator":{const n=t.init&&this.getRenameIdentifier(t.init);if(n&&t.id.type==="Identifier"){const e=this.hooks.canRename.get(n);if(e!==undefined&&e.call(t.init)){const e=this.hooks.rename.get(n);if(e===undefined||!e.call(t.init)){this.setVariable(t.id.name,n)}break}}if(!this.hooks.declarator.call(t,e)){this.walkPattern(t.id);if(t.init)this.walkExpression(t.init)}break}}}}blockPreWalkClassDeclaration(e){if(e.id){this.defineVariable(e.id.name)}}walkClassDeclaration(e){this.walkClass(e)}preWalkSwitchCases(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];this.preWalkStatements(n.consequent)}}walkSwitchCases(e){this.inBlockScope(()=>{const t=e.length;for(let n=0;n<t;n++){const t=e[n];if(t.consequent.length>0){this.blockPreWalkStatements(t.consequent)}}for(let n=0;n<t;n++){const t=e[n];if(t.test){this.walkExpression(t.test)}if(t.consequent.length>0){this.walkStatements(t.consequent)}}})}preWalkCatchClause(e){this.preWalkStatement(e.body)}walkCatchClause(e){this.inBlockScope(()=>{if(e.param!==null){this.enterPattern(e.param,e=>{this.defineVariable(e)});this.walkPattern(e.param)}this.blockPreWalkStatement(e.body);this.walkStatement(e.body)})}walkPattern(e){switch(e.type){case"ArrayPattern":this.walkArrayPattern(e);break;case"AssignmentPattern":this.walkAssignmentPattern(e);break;case"MemberExpression":this.walkMemberExpression(e);break;case"ObjectPattern":this.walkObjectPattern(e);break;case"RestElement":this.walkRestElement(e);break}}walkAssignmentPattern(e){this.walkExpression(e.right);this.walkPattern(e.left)}walkObjectPattern(e){for(let t=0,n=e.properties.length;t<n;t++){const n=e.properties[t];if(n){if(n.computed)this.walkExpression(n.key);if(n.value)this.walkPattern(n.value)}}}walkArrayPattern(e){for(let t=0,n=e.elements.length;t<n;t++){const n=e.elements[t];if(n)this.walkPattern(n)}}walkRestElement(e){this.walkPattern(e.argument)}walkExpressions(e){for(const t of e){if(t){this.walkExpression(t)}}}walkExpression(e){switch(e.type){case"ArrayExpression":this.walkArrayExpression(e);break;case"ArrowFunctionExpression":this.walkArrowFunctionExpression(e);break;case"AssignmentExpression":this.walkAssignmentExpression(e);break;case"AwaitExpression":this.walkAwaitExpression(e);break;case"BinaryExpression":this.walkBinaryExpression(e);break;case"CallExpression":this.walkCallExpression(e);break;case"ChainExpression":this.walkChainExpression(e);break;case"ClassExpression":this.walkClassExpression(e);break;case"ConditionalExpression":this.walkConditionalExpression(e);break;case"FunctionExpression":this.walkFunctionExpression(e);break;case"Identifier":this.walkIdentifier(e);break;case"ImportExpression":this.walkImportExpression(e);break;case"LogicalExpression":this.walkLogicalExpression(e);break;case"MetaProperty":this.walkMetaProperty(e);break;case"MemberExpression":this.walkMemberExpression(e);break;case"NewExpression":this.walkNewExpression(e);break;case"ObjectExpression":this.walkObjectExpression(e);break;case"SequenceExpression":this.walkSequenceExpression(e);break;case"SpreadElement":this.walkSpreadElement(e);break;case"TaggedTemplateExpression":this.walkTaggedTemplateExpression(e);break;case"TemplateLiteral":this.walkTemplateLiteral(e);break;case"ThisExpression":this.walkThisExpression(e);break;case"UnaryExpression":this.walkUnaryExpression(e);break;case"UpdateExpression":this.walkUpdateExpression(e);break;case"YieldExpression":this.walkYieldExpression(e);break}}walkAwaitExpression(e){if(this.scope.topLevelScope===true)this.hooks.topLevelAwait.call(e);this.walkExpression(e.argument)}walkArrayExpression(e){if(e.elements){this.walkExpressions(e.elements)}}walkSpreadElement(e){if(e.argument){this.walkExpression(e.argument)}}walkObjectExpression(e){for(let t=0,n=e.properties.length;t<n;t++){const n=e.properties[t];if(n.type==="SpreadElement"){this.walkExpression(n.argument);continue}if(n.computed){this.walkExpression(n.key)}if(n.shorthand&&n.value&&n.value.type==="Identifier"){this.scope.inShorthand=n.value.name;this.walkIdentifier(n.value);this.scope.inShorthand=false}else{this.walkExpression(n.value)}}}walkFunctionExpression(e){const t=this.scope.topLevelScope;this.scope.topLevelScope=false;const n=e.params;if(e.id){n.push(e.id.name)}this.inFunctionScope(true,n,()=>{for(const t of e.params){this.walkPattern(t)}if(e.body.type==="BlockStatement"){this.detectMode(e.body.body);this.preWalkStatement(e.body);this.walkStatement(e.body)}else{this.walkExpression(e.body)}});this.scope.topLevelScope=t}walkArrowFunctionExpression(e){const t=this.scope.topLevelScope;this.scope.topLevelScope=t?"arrow":false;this.inFunctionScope(false,e.params,()=>{for(const t of e.params){this.walkPattern(t)}if(e.body.type==="BlockStatement"){this.detectMode(e.body.body);this.preWalkStatement(e.body);this.walkStatement(e.body)}else{this.walkExpression(e.body)}});this.scope.topLevelScope=t}walkSequenceExpression(e){if(!e.expressions)return;const t=this.statementPath[this.statementPath.length-1];if(t===e||t.type==="ExpressionStatement"&&t.expression===e){const t=this.statementPath.pop();for(const t of e.expressions){this.statementPath.push(t);this.walkExpression(t);this.statementPath.pop()}this.statementPath.push(t)}else{this.walkExpressions(e.expressions)}}walkUpdateExpression(e){this.walkExpression(e.argument)}walkUnaryExpression(e){if(e.operator==="typeof"){const t=this.callHooksForExpression(this.hooks.typeof,e.argument,e);if(t===true)return;if(e.argument.type==="ChainExpression"){const t=this.callHooksForExpression(this.hooks.typeof,e.argument.expression,e);if(t===true)return}}this.walkExpression(e.argument)}walkLeftRightExpression(e){this.walkExpression(e.left);this.walkExpression(e.right)}walkBinaryExpression(e){this.walkLeftRightExpression(e)}walkLogicalExpression(e){const t=this.hooks.expressionLogicalOperator.call(e);if(t===undefined){this.walkLeftRightExpression(e)}else{if(t){this.walkExpression(e.right)}}}walkAssignmentExpression(e){if(e.left.type==="Identifier"){const t=this.getRenameIdentifier(e.right);if(t){if(this.callHooksForInfo(this.hooks.canRename,t,e.right)){if(!this.callHooksForInfo(this.hooks.rename,t,e.right)){this.setVariable(e.left.name,this.getVariableInfo(t))}return}}this.walkExpression(e.right);this.enterPattern(e.left,(t,n)=>{if(!this.callHooksForName(this.hooks.assign,t,e)){this.walkExpression(e.left)}});return}if(e.left.type.endsWith("Pattern")){this.walkExpression(e.right);this.enterPattern(e.left,(t,n)=>{if(!this.callHooksForName(this.hooks.assign,t,e)){this.defineVariable(t)}});this.walkPattern(e.left)}else if(e.left.type==="MemberExpression"){const t=this.getMemberExpressionInfo(e.left,["expression"]);if(t){if(this.callHooksForInfo(this.hooks.assignMemberChain,t.rootInfo,e,t.getMembers())){return}}this.walkExpression(e.right);this.walkExpression(e.left)}else{this.walkExpression(e.right);this.walkExpression(e.left)}}walkConditionalExpression(e){const t=this.hooks.expressionConditionalOperator.call(e);if(t===undefined){this.walkExpression(e.test);this.walkExpression(e.consequent);if(e.alternate){this.walkExpression(e.alternate)}}else{if(t){this.walkExpression(e.consequent)}else if(e.alternate){this.walkExpression(e.alternate)}}}walkNewExpression(e){const t=this.callHooksForExpression(this.hooks.new,e.callee,e);if(t===true)return;this.walkExpression(e.callee);if(e.arguments){this.walkExpressions(e.arguments)}}walkYieldExpression(e){if(e.argument){this.walkExpression(e.argument)}}walkTemplateLiteral(e){if(e.expressions){this.walkExpressions(e.expressions)}}walkTaggedTemplateExpression(e){if(e.tag){this.walkExpression(e.tag)}if(e.quasi&&e.quasi.expressions){this.walkExpressions(e.quasi.expressions)}}walkClassExpression(e){this.walkClass(e)}walkChainExpression(e){const t=this.hooks.optionalChaining.call(e);if(t===undefined){if(e.expression.type==="CallExpression"){this.walkCallExpression(e.expression)}else{this.walkMemberExpression(e.expression)}}}_walkIIFE(e,t,n){const r=e=>{const t=this.getRenameIdentifier(e);if(t){if(this.callHooksForInfo(this.hooks.canRename,t,e)){if(!this.callHooksForInfo(this.hooks.rename,t,e)){return this.getVariableInfo(t)}}}this.walkExpression(e)};const{params:i}=e;const s=n?r(n):null;const o=t.map(r);const a=this.scope.topLevelScope;this.scope.topLevelScope=false;const c=i.filter((e,t)=>!o[t]);if(e.id){c.push(e.id.name)}this.inFunctionScope(true,c,()=>{if(s){this.setVariable("this",s)}for(let e=0;e<o.length;e++){const t=o[e];if(!t)continue;if(!i[e]||i[e].type!=="Identifier")continue;this.setVariable(i[e].name,t)}if(e.body.type==="BlockStatement"){this.detectMode(e.body.body);this.preWalkStatement(e.body);this.walkStatement(e.body)}else{this.walkExpression(e.body)}});this.scope.topLevelScope=a}walkImportExpression(e){let t=this.hooks.importCall.call(e);if(t===true)return;this.walkExpression(e.source)}walkCallExpression(e){if(e.callee.type==="MemberExpression"&&e.callee.object.type==="FunctionExpression"&&!e.callee.computed&&(e.callee.property.name==="call"||e.callee.property.name==="bind")&&e.arguments.length>0){this._walkIIFE(e.callee.object,e.arguments.slice(1),e.arguments[0])}else if(e.callee.type==="FunctionExpression"){this._walkIIFE(e.callee,e.arguments,null)}else{if(e.callee.type==="MemberExpression"){const t=this.getMemberExpressionInfo(e.callee,["call"]);if(t&&t.type==="call"){const n=this.callHooksForInfo(this.hooks.callMemberChainOfCallMemberChain,t.rootInfo,e,t.getCalleeMembers(),t.call,t.getMembers());if(n===true)return}}const t=this.evaluateExpression(e.callee);if(t.isIdentifier()){const n=this.callHooksForInfo(this.hooks.callMemberChain,t.rootInfo,e,t.getMembers());if(n===true)return;const r=this.callHooksForInfo(this.hooks.call,t.identifier,e);if(r===true)return}if(e.callee){if(e.callee.type==="MemberExpression"){this.walkExpression(e.callee.object);if(e.callee.computed===true)this.walkExpression(e.callee.property)}else{this.walkExpression(e.callee)}}if(e.arguments)this.walkExpressions(e.arguments)}}walkMemberExpression(e){const t=this.getMemberExpressionInfo(e,["call","expression"]);if(t){switch(t.type){case"expression":{const n=this.callHooksForInfo(this.hooks.expression,t.name,e);if(n===true)return;const r=t.getMembers();const i=this.callHooksForInfo(this.hooks.expressionMemberChain,t.rootInfo,e,r);if(i===true)return;this.walkMemberExpressionWithExpressionName(e,t.name,t.rootInfo,r.slice(),()=>this.callHooksForInfo(this.hooks.unhandledExpressionMemberChain,t.rootInfo,e,r));return}case"call":{const n=this.callHooksForInfo(this.hooks.memberChainOfCallMemberChain,t.rootInfo,e,t.getCalleeMembers(),t.call,t.getMembers());if(n===true)return;this.walkExpression(t.call);return}}}this.walkExpression(e.object);if(e.computed===true)this.walkExpression(e.property)}walkMemberExpressionWithExpressionName(e,t,n,r,i){if(e.object.type==="MemberExpression"){const s=e.property.name||`${e.property.value}`;t=t.slice(0,-s.length-1);r.pop();const o=this.callHooksForInfo(this.hooks.expression,t,e.object);if(o===true)return;this.walkMemberExpressionWithExpressionName(e.object,t,n,r,i)}else if(!i||!i()){this.walkExpression(e.object)}if(e.computed===true)this.walkExpression(e.property)}walkThisExpression(e){this.callHooksForName(this.hooks.expression,"this",e)}walkIdentifier(e){this.callHooksForName(this.hooks.expression,e.name,e)}walkMetaProperty(e){this.hooks.metaProperty.call(e)}callHooksForExpression(e,t,...n){const r=this.getMemberExpressionInfo(t,["expression"]);if(r!==undefined){return this.callHooksForInfoWithFallback(e,r.name,undefined,undefined,...n)}}callHooksForExpressionWithFallback(e,t,n,r,...i){const s=this.getMemberExpressionInfo(t,["expression"]);if(s!==undefined){return this.callHooksForInfoWithFallback(e,s.name,n&&(e=>n(e,s.rootInfo,s.getMembers)),r&&(()=>r(s.name)),...i)}}callHooksForName(e,t,...n){return this.callHooksForNameWithFallback(e,t,undefined,undefined,...n)}callHooksForInfo(e,t,...n){return this.callHooksForInfoWithFallback(e,t,undefined,undefined,...n)}callHooksForInfoWithFallback(e,t,n,r,...i){let s;if(typeof t==="string"){s=t}else{if(!(t instanceof VariableInfo)){if(r!==undefined){return r()}return}let n=t.tagInfo;while(n!==undefined){const t=e.get(n.tag);if(t!==undefined){this.currentTagData=n.data;const e=t.call(...i);this.currentTagData=undefined;if(e!==undefined)return e}n=n.next}if(t.freeName===true){if(r!==undefined){return r()}return}s=t.freeName}const o=e.get(s);if(o!==undefined){const e=o.call(...i);if(e!==undefined)return e}if(n!==undefined){return n(s)}}callHooksForNameWithFallback(e,t,n,r,...i){return this.callHooksForInfoWithFallback(e,this.getVariableInfo(t),n,r,...i)}inScope(e,t){const n=this.scope;this.scope={topLevelScope:n.topLevelScope,inTry:false,inShorthand:false,isStrict:n.isStrict,isAsmJs:n.isAsmJs,definitions:n.definitions.createChild()};this.undefineVariable("this");this.enterPatterns(e,(e,t)=>{this.defineVariable(e)});t();this.scope=n}inFunctionScope(e,t,n){const r=this.scope;this.scope={topLevelScope:r.topLevelScope,inTry:false,inShorthand:false,isStrict:r.isStrict,isAsmJs:r.isAsmJs,definitions:r.definitions.createChild()};if(e){this.undefineVariable("this")}this.enterPatterns(t,(e,t)=>{this.defineVariable(e)});n();this.scope=r}inBlockScope(e){const t=this.scope;this.scope={topLevelScope:t.topLevelScope,inTry:t.inTry,inShorthand:false,isStrict:t.isStrict,isAsmJs:t.isAsmJs,definitions:t.definitions.createChild()};e();this.scope=t}detectMode(e){const t=e.length>=1&&e[0].type==="ExpressionStatement"&&e[0].expression.type==="Literal";if(t&&e[0].expression.value==="use strict"){this.scope.isStrict=true}if(t&&e[0].expression.value==="use asm"){this.scope.isAsmJs=true}}enterPatterns(e,t){for(const n of e){if(typeof n!=="string"){this.enterPattern(n,t)}else if(n){t(n)}}}enterPattern(e,t){if(!e)return;switch(e.type){case"ArrayPattern":this.enterArrayPattern(e,t);break;case"AssignmentPattern":this.enterAssignmentPattern(e,t);break;case"Identifier":this.enterIdentifier(e,t);break;case"ObjectPattern":this.enterObjectPattern(e,t);break;case"RestElement":this.enterRestElement(e,t);break;case"Property":if(e.shorthand&&e.value.type==="Identifier"){this.scope.inShorthand=e.value.name;this.enterIdentifier(e.value,t);this.scope.inShorthand=false}else{this.enterPattern(e.value,t)}break}}enterIdentifier(e,t){if(!this.callHooksForName(this.hooks.pattern,e.name,e)){t(e.name,e)}}enterObjectPattern(e,t){for(let n=0,r=e.properties.length;n<r;n++){const r=e.properties[n];this.enterPattern(r,t)}}enterArrayPattern(e,t){for(let n=0,r=e.elements.length;n<r;n++){const r=e.elements[n];this.enterPattern(r,t)}}enterRestElement(e,t){this.enterPattern(e.argument,t)}enterAssignmentPattern(e,t){this.enterPattern(e.left,t)}evaluateExpression(e){try{const t=this.hooks.evaluate.get(e.type);if(t!==undefined){const n=t.call(e);if(n!==undefined){if(n){n.setExpression(e)}return n}}}catch(e){console.warn(e)}return(new l).setRange(e.range).setExpression(e)}parseString(e){switch(e.type){case"BinaryExpression":if(e.operator==="+"){return this.parseString(e.left)+this.parseString(e.right)}break;case"Literal":return e.value+""}throw new Error(e.type+" is not supported as parameter for require")}parseCalculatedString(e){switch(e.type){case"BinaryExpression":if(e.operator==="+"){const t=this.parseCalculatedString(e.left);const n=this.parseCalculatedString(e.right);if(t.code){return{range:t.range,value:t.value,code:true,conditional:false}}else if(n.code){return{range:[t.range[0],n.range?n.range[1]:t.range[1]],value:t.value+n.value,code:true,conditional:false}}else{return{range:[t.range[0],n.range[1]],value:t.value+n.value,code:false,conditional:false}}}break;case"ConditionalExpression":{const t=this.parseCalculatedString(e.consequent);const n=this.parseCalculatedString(e.alternate);const r=[];if(t.conditional){r.push(...t.conditional)}else if(!t.code){r.push(t)}else{break}if(n.conditional){r.push(...n.conditional)}else if(!n.code){r.push(n)}else{break}return{range:undefined,value:"",code:true,conditional:r}}case"Literal":return{range:e.range,value:e.value+"",code:false,conditional:false}}return{range:undefined,value:"",code:true,conditional:false}}parse(e,t){let n;let r;const i=new Set;if(e===null){throw new Error("source must not be null")}if(Buffer.isBuffer(e)){e=e.toString("utf-8")}if(typeof e==="object"){n=e;r=e.comments}else{r=[];n=JavascriptParser.parse(e,{sourceType:this.sourceType,onComment:r,onInsertedSemicolon:e=>i.add(e)})}const s=this.scope;const o=this.state;const a=this.comments;const u=this.semicolons;const l=this.statementPath;const f=this.prevStatement;this.scope={topLevelScope:true,inTry:false,inShorthand:false,isStrict:false,isAsmJs:false,definitions:new c};this.state=t;this.comments=r;this.semicolons=i;this.statementPath=[];this.prevStatement=undefined;if(this.hooks.program.call(n,r)===undefined){this.detectMode(n.body);this.preWalkStatements(n.body);this.blockPreWalkStatements(n.body);this.walkStatements(n.body)}this.hooks.finish.call(n,r);this.scope=s;this.state=o;this.comments=a;this.semicolons=u;this.statementPath=l;this.prevStatement=f;return t}evaluate(e){const t=JavascriptParser.parse("("+e+")",{sourceType:this.sourceType,locations:false});if(t.body.length!==1||t.body[0].type!=="ExpressionStatement"){throw new Error("evaluate: Source is not a expression")}return this.evaluateExpression(t.body[0].expression)}getComments(e){return this.comments.filter(t=>t.range[0]>=e[0]&&t.range[1]<=e[1])}isAsiPosition(e){if(this.prevStatement===undefined)return false;const t=this.statementPath[this.statementPath.length-1];return t.range[0]===e&&this.semicolons.has(this.prevStatement.range[1])}isStatementLevelExpression(e){const t=this.statementPath[this.statementPath.length-1];return e===t||t.type==="ExpressionStatement"&&t.expression===e}getTagData(e,t){const n=this.scope.definitions.get(e);if(n instanceof VariableInfo){let e=n.tagInfo;while(e!==undefined){if(e.tag===t)return e.data;e=e.next}}}tagVariable(e,t,n){const r=this.scope.definitions.get(e);let i;if(r===undefined){i=new VariableInfo(this.scope,e,{tag:t,data:n,next:undefined})}else if(r instanceof VariableInfo){i=new VariableInfo(r.declaredScope,r.freeName,{tag:t,data:n,next:r.tagInfo})}else{i=new VariableInfo(r,true,{tag:t,data:n,next:undefined})}this.scope.definitions.set(e,i)}defineVariable(e){const t=this.scope.definitions.get(e);if(t instanceof VariableInfo&&t.declaredScope===this.scope)return;this.scope.definitions.set(e,this.scope)}undefineVariable(e){this.scope.definitions.delete(e)}isVariableDefined(e){const t=this.scope.definitions.get(e);if(t===undefined)return false;if(t instanceof VariableInfo){return t.freeName===true}return true}getVariableInfo(e){const t=this.scope.definitions.get(e);if(t===undefined){return e}else{return t}}setVariable(e,t){if(typeof t==="string"){if(t===e){this.scope.definitions.delete(e)}else{this.scope.definitions.set(e,new VariableInfo(this.scope,t,undefined))}}else{this.scope.definitions.set(e,t)}}parseCommentOptions(e){const t=this.getComments(e);if(t.length===0){return v}let n={};let r=[];for(const e of t){const{value:t}=e;if(t&&y.test(t)){try{const i=o.runInNewContext(`(function(){return {${t}};})()`);Object.assign(n,i)}catch(t){t.comment=e;r.push(t)}}}return{options:n,errors:r}}extractMemberExpressionChain(e){let t=e;const n=[];while(t.type==="MemberExpression"){if(t.computed){if(t.property.type!=="Literal")break;n.push(`${t.property.value}`)}else{if(t.property.type!=="Identifier")break;n.push(t.property.name)}t=t.object}return{members:n,object:t}}getFreeInfoFromVariable(e){const t=this.getVariableInfo(e);let n;if(t instanceof VariableInfo){n=t.freeName;if(typeof n!=="string")return undefined}else if(typeof t!=="string"){return undefined}else{n=t}return{info:t,name:n}}getMemberExpressionInfo(e,t){const n=new Set(t);const{object:r,members:i}=this.extractMemberExpressionChain(e);switch(r.type){case"CallExpression":{if(!n.has("call"))return undefined;let e=r.callee;let t=f;if(e.type==="MemberExpression"){({object:e,members:t}=this.extractMemberExpressionChain(e))}const s=m(e);if(!s)return undefined;const o=this.getFreeInfoFromVariable(s);if(!o)return undefined;const{info:a,name:c}=o;const l=h(c,t);return{type:"call",call:r,calleeName:l,rootInfo:a,getCalleeMembers:u(()=>t.reverse()),name:h(`${l}()`,i),getMembers:u(()=>i.reverse())}}case"Identifier":case"MetaProperty":case"ThisExpression":{if(!n.has("expression"))return undefined;const e=m(r);if(!e)return undefined;const t=this.getFreeInfoFromVariable(e);if(!t)return undefined;const{info:s,name:o}=t;return{type:"expression",name:h(o,i),rootInfo:s,getMembers:u(()=>i.reverse())}}}}getNameForExpression(e){return this.getMemberExpressionInfo(e,["expression"])}static parse(e,t){const n=t?t.sourceType:"module";const r={...g,allowReturnOutsideFunction:n==="script",...t,sourceType:n==="auto"?"module":n};let i;let s;let o=false;try{i=p.parse(e,r)}catch(e){s=e;o=true}if(o&&n==="auto"){r.sourceType="script";if(!("allowReturnOutsideFunction"in t)){r.allowReturnOutsideFunction=true}if(Array.isArray(r.onComment)){r.onComment.length=0}try{i=p.parse(e,r);o=false}catch(e){}}if(o){throw s}return i}}e.exports=JavascriptParser},48472:(e,t,n)=>{"use strict";const r=n(53558);const i=n(66298);const s=n(87250);t.toConstantDependency=((e,t,n)=>{return function constDependency(r){const s=new i(t,r.range,n);s.loc=r.loc;e.state.module.addPresentationalDependency(s);return true}});t.evaluateToString=(e=>{return function stringExpression(t){return(new s).setString(e).setRange(t.range)}});t.evaluateToNumber=(e=>{return function stringExpression(t){return(new s).setNumber(e).setRange(t.range)}});t.evaluateToBoolean=(e=>{return function booleanExpression(t){return(new s).setBoolean(e).setRange(t.range)}});t.evaluateToIdentifier=((e,t,n,r)=>{return function identifierExpression(i){let o=(new s).setIdentifier(e,t,n).setSideEffects(false).setRange(i.range);switch(r){case true:o.setTruthy();o.setNullish(false);break;case null:o.setFalsy();o.setNullish(true);break;case false:o.setFalsy();break}return o}});t.expressionIsUnsupported=((e,t)=>{return function unsupportedExpression(n){const s=new i("(void 0)",n.range,null);s.loc=n.loc;e.state.module.addPresentationalDependency(s);if(!e.state.module)return;e.state.module.addWarning(new r(t,n.loc));return true}});t.skipTraversal=(()=>true);t.approve=(()=>true)},79279:(e,t,n)=>{"use strict";const{ConcatSource:r,RawSource:i}=n(48135);const{UsageState:s}=n(76632);const o=n(36253);const a=n(76150);const c=e=>{const t=JSON.stringify(e);if(!t){return undefined}return t.replace(/\u2028|\u2029/g,e=>e==="\u2029"?"\\u2029":"\\u2028")};const u=(e,t,n)=>{if(t.otherExportsInfo.getUsed(n)!==s.Unused)return e;const r=Array.isArray(e)?[]:{};for(const n of t.exports){if(n.name in r)return e}for(const i of Object.keys(e)){const o=t.getReadOnlyExportInfo(i);const a=o.getUsed(n);if(a===s.Unused)continue;let c;if(a===s.OnlyPropertiesUsed&&o.exportsInfo){c=u(e[i],o.exportsInfo,n)}else{c=e[i]}const l=o.getUsedName(i,n);r[l]=c}if(Array.isArray(r)){let e=0;for(let t=0;t<r.length;t++){if(r[t]===undefined){e-=2}else{e+=`${t}`.length+3}}if(e<0)return Object.assign({},r);for(let e=0;e<r.length;e++){if(r[e]===undefined){r[e]=0}}}return r};const l=new Set(["javascript"]);class JsonGenerator extends o{getTypes(e){return l}getSize(e,t){let n=e.buildInfo.jsonData;if(!n)return 0;return c(n).length+10}generate(e,{moduleGraph:t,runtimeTemplate:n,runtimeRequirements:o,runtime:l}){const f=new r;const p=e.buildInfo.jsonData;if(p===undefined){return new i(n.missingModuleStatement({request:e.rawRequest}))}o.add(a.module);const d=t.getExportsInfo(e);let h=typeof p==="object"&&p&&d.otherExportsInfo.getUsed(l)===s.Unused?u(p,d,l):p;const m=c(h);const g=m.length>20&&typeof h==="object"?`JSON.parse(${JSON.stringify(m)})`:m;f.add(`${e.moduleArgument}.exports = ${g};`);return f}}e.exports=JsonGenerator},9483:(e,t,n)=>{"use strict";const r=n(15235);const i=n(27503);const s=n(79279);const o=n(79232);const a=i(()=>n(18496));class JsonModulesPlugin{apply(e){e.hooks.compilation.tap("JsonModulesPlugin",(e,{normalModuleFactory:t})=>{t.hooks.createParser.for("json").tap("JsonModulesPlugin",e=>{r(a(),e,{name:"Json Modules Plugin",baseDataPath:"parser"});return new o(e)});t.hooks.createGenerator.for("json").tap("JsonModulesPlugin",()=>{return new s})})}}e.exports=JsonModulesPlugin},79232:(e,t,n)=>{"use strict";const r=n(78688);const i=n(2172);const s=n(38895);class JsonParser extends i{constructor(e){super();this.options=e||{}}parse(e,t){if(Buffer.isBuffer(e)){e=e.toString("utf-8")}const n=typeof this.options.parse==="function"?this.options.parse:r;const i=typeof e==="object"?e:n(e[0]==="\ufeff"?e.slice(1):e);t.module.buildInfo.jsonData=i;t.module.buildInfo.strict=true;t.module.buildMeta.exportsType="default";t.module.buildMeta.defaultObject=typeof i==="object"?"redirect-warn":false;t.module.addDependency(new s(s.getExportsFromData(i)));return t}}e.exports=JsonParser},9786:(e,t,n)=>{"use strict";const r=n(76150);const i=n(18161);class AbstractLibraryPlugin{constructor({pluginName:e,type:t}){this._pluginName=e;this._type=t;this._parseCache=new WeakMap}apply(e){const{_pluginName:t}=this;e.hooks.thisCompilation.tap(t,e=>{e.hooks.finishModules.tap(t,()=>{for(const[t,{dependencies:n,options:{library:r}}]of e.entries){const i=this._parseOptionsCached(r!==undefined?r:e.outputOptions.library);if(i!==false){const r=n[n.length-1];if(r){const n=e.moduleGraph.getModule(r);if(n){this.finishEntryModule(n,t,{options:i,compilation:e})}}}}});const n=t=>{if(e.chunkGraph.getNumberOfEntryModules(t)===0)return false;const n=e.entries.get(t.name);const r=n&&n.options.library;return this._parseOptionsCached(r!==undefined?r:e.outputOptions.library)};e.hooks.additionalChunkRuntimeRequirements.tap(t,(t,r)=>{const i=n(t);if(i!==false){this.runtimeRequirements(t,r,{options:i,compilation:e})}});const r=i.getCompilationHooks(e);r.render.tap(t,(t,r)=>{const i=n(r.chunk);if(i===false)return t;return this.render(t,r,{options:i,compilation:e})});r.chunkHash.tap(t,(t,r,i)=>{const s=n(t);if(s===false)return;this.chunkHash(t,r,i,{options:s,compilation:e})})})}_parseOptionsCached(e){if(!e)return false;if(e.type!==this._type)return false;const t=this._parseCache.get(e);if(t!==undefined)return t;const n=this.parseOptions(e);this._parseCache.set(e,n);return n}parseOptions(e){const t=n(75884);throw new t}finishEntryModule(e,t,n){}runtimeRequirements(e,t,n){t.add(r.returnExportsFromRuntime)}render(e,t,n){return e}chunkHash(e,t,n,r){const i=this._parseOptionsCached(r.compilation.outputOptions.library);t.update(this._pluginName);t.update(JSON.stringify(i))}}e.exports=AbstractLibraryPlugin},17982:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=n(16734);const s=n(58159);const o=n(9786);class AmdLibraryPlugin extends o{constructor(e){super({pluginName:"AmdLibraryPlugin",type:e.type});this.requireAsWrapper=e.requireAsWrapper}parseOptions(e){const{name:t}=e;if(this.requireAsWrapper){if(t){throw new Error("AMD library name must be unset")}}else{if(t&&typeof t!=="string"){throw new Error("AMD library name must be a simple string or unset")}}return{name:t}}render(e,{chunkGraph:t,chunk:n,runtimeTemplate:o},{options:a,compilation:c}){const u=o.supportsArrowFunction();const l=t.getChunkModules(n).filter(e=>e instanceof i);const f=l;const p=JSON.stringify(f.map(e=>typeof e.request==="object"&&!Array.isArray(e.request)?e.request.amd:e.request));const d=f.map(e=>`__WEBPACK_EXTERNAL_MODULE_${s.toIdentifier(`${t.getModuleId(e)}`)}__`).join(", ");const h=u?`(${d}) => `:`function(${d}) { return `;const m=u?"":"}";if(this.requireAsWrapper){return new r(`require(${p}, ${h}`,e,`${m});`)}else if(a.name){const t=c.getPath(a.name,{chunk:n});return new r(`define(${JSON.stringify(t)}, ${p}, ${h}`,e,`${m});`)}else if(d){return new r(`define(${p}, ${h}`,e,`${m});`)}else{return new r(`define(${h}`,e,`${m});`)}}chunkHash(e,t,n,{options:r,compilation:i}){t.update("AmdLibraryPlugin");if(this.requireAsWrapper){t.update("requireAsWrapper")}else if(r.name){t.update("named");const n=i.getPath(r.name,{chunk:e});t.update(n)}}}e.exports=AmdLibraryPlugin},69444:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=n(68038);const s=n(9786);const o=(e,t,n=false)=>{const r=e[0];if(e.length===1&&!n)return r;let s=t>0?r:`(${r} = typeof ${r} === "undefined" ? {} : ${r})`;let o=1;let a;if(t>o){a=e.slice(1,t);o=t;s+=i(a)}else{a=[]}const c=n?e.length:e.length-1;for(;o<c;o++){const t=e[o];a.push(t);s=`(${s}${i([t])} = ${r}${i(a)} || {})`}if(o<e.length)s=`${s}${i([e[e.length-1]])}`;return s};class AssignLibraryPlugin extends s{constructor(e){super({pluginName:"AssignLibraryPlugin",type:e.type});this.prefix=e.prefix;this.declare=e.declare;this.unnamed=e.unnamed}parseOptions(e){const{name:t}=e;if(this.unnamed==="error"){if(typeof t!=="string"&&!Array.isArray(t)){throw new Error("Library name must be a string or string array")}}else{if(t&&typeof t!=="string"&&!Array.isArray(t)){throw new Error("Library name must be a string, string array or unset")}}return{name:t}}render(e,{chunkGraph:t,moduleGraph:n,chunk:i},{options:s,compilation:a}){const c=this.prefix==="global"?[a.outputOptions.globalObject]:this.prefix;const u=s.name?c.concat(s.name):c;const l=u.map(e=>a.getPath(e,{chunk:i}));const f=new r;if(this.declare){const e=l[0];f.add(`${this.declare} ${e};`)}if(!s.name&&this.unnamed==="copy"){f.add(`(function(e, a) { for(var i in a) e[i] = a[i]; if(a.__esModule) Object.defineProperty(e, "__esModule", { value: true }); }(${o(l,c.length,true)},\n`);f.add(e);f.add("\n))")}else{f.add(`${o(l,c.length,false)} =\n`);f.add(e)}return f}chunkHash(e,t,n,{options:r,compilation:i}){t.update("AssignLibraryPlugin");const s=this.prefix==="global"?[i.outputOptions.globalObject]:this.prefix;const o=r.name?s.concat(r.name):s;const a=o.map(t=>i.getPath(t,{chunk:e}));if(!r.name&&this.unnamed==="copy"){t.update("copy")}if(this.declare){t.update(this.declare)}t.update(a.join("."))}}e.exports=AssignLibraryPlugin},13984:(e,t,n)=>{"use strict";const r=new WeakMap;const i=e=>{let t=r.get(e);if(t===undefined){t=new Set;r.set(e,t)}return t};class EnableLibraryPlugin{constructor(e){this.type=e}static checkEnabled(e,t){if(!i(e).has(t)){throw new Error(`Library type "${t}" is not enabled. `+"EnableLibraryPlugin need to be used to enable this type of library. "+'This usually happens through the "output.enabledLibraryTypes" option. '+'If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". '+Array.from(i(e)).join(", "))}}apply(e){const{type:t}=this;const r=i(e);if(r.has(t))return;r.add(t);if(typeof t==="string"){const r=n(97140);new r({type:t,nsObjectUsed:t!=="module"}).apply(e);switch(t){case"var":{const r=n(69444);new r({type:t,prefix:[],declare:"var",unnamed:"error"}).apply(e);break}case"assign":{const r=n(69444);new r({type:t,prefix:[],declare:false,unnamed:"error"}).apply(e);break}case"this":{const r=n(69444);new r({type:t,prefix:["this"],declare:false,unnamed:"copy"}).apply(e);break}case"window":{const r=n(69444);new r({type:t,prefix:["window"],declare:false,unnamed:"copy"}).apply(e);break}case"self":{const r=n(69444);new r({type:t,prefix:["self"],declare:false,unnamed:"copy"}).apply(e);break}case"global":{const r=n(69444);new r({type:t,prefix:"global",declare:false,unnamed:"copy"}).apply(e);break}case"commonjs":{const r=n(69444);new r({type:t,prefix:["exports"],declare:false,unnamed:"copy"}).apply(e);break}case"commonjs2":case"commonjs-module":{const r=n(69444);new r({type:t,prefix:["module","exports"],declare:false,unnamed:"assign"}).apply(e);break}case"amd":case"amd-require":{const r=n(17982);new r({type:t,requireAsWrapper:t==="amd-require"}).apply(e);break}case"umd":case"umd2":{const r=n(76456);new r({type:t,optionalAmdExternalAsGlobal:t==="umd2"}).apply(e);break}case"system":{const r=n(59405);new r({type:t}).apply(e);break}case"jsonp":{const r=n(63154);new r({type:t}).apply(e);break}case"module":break;default:throw new Error(`Unsupported library type ${t}`)}}else{}}}e.exports=EnableLibraryPlugin},97140:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const{UsageState:i}=n(76632);const s=n(68038);const{getEntryRuntime:o}=n(37416);const a=n(9786);class ExportPropertyLibraryPlugin extends a{constructor({type:e,nsObjectUsed:t}){super({pluginName:"ExportPropertyLibraryPlugin",type:e});this.nsObjectUsed=t}parseOptions(e){return{export:e.export}}finishEntryModule(e,t,{options:n,compilation:r,compilation:{moduleGraph:s}}){const a=o(r,t);if(n.export){const t=s.getExportInfo(e,Array.isArray(n.export)?n.export[0]:n.export);t.setUsed(i.Used,a);t.canMangleUse=false}else{const t=s.getExportsInfo(e);if(this.nsObjectUsed){t.setUsedInUnknownWay(a)}else{t.setAllKnownExportsUsed(a)}}s.addExtraReason(e,"used as library export")}render(e,t,{options:n}){if(!n.export)return e;const i=s(Array.isArray(n.export)?n.export:[n.export]);return new r(e,i)}}e.exports=ExportPropertyLibraryPlugin},63154:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=n(9786);class JsonpLibraryPlugin extends i{constructor(e){super({pluginName:"JsonpLibraryPlugin",type:e.type})}parseOptions(e){const{name:t}=e;if(typeof t!=="string"){throw new Error("Jsonp library name must be a simple string")}return{name:t}}render(e,{chunk:t},{options:n,compilation:i}){const s=i.getPath(n.name,{chunk:t});return new r(`${s}(`,e,")")}chunkHash(e,t,n,{options:r,compilation:i}){t.update("JsonpLibraryPlugin");t.update(i.getPath(r.name,{chunk:e}))}}e.exports=JsonpLibraryPlugin},59405:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const{UsageState:i}=n(76632);const s=n(16734);const o=n(58159);const a=n(68038);const c=n(9786);class SystemLibraryPlugin extends c{constructor(e){super({pluginName:"SystemLibraryPlugin",type:e.type})}parseOptions(e){const{name:t}=e;if(t&&typeof t!=="string"){throw new Error("System.js library name must be a simple string or unset")}return{name:t}}render(e,{chunkGraph:t,moduleGraph:n,chunk:c},{options:u,compilation:l}){const f=t.getChunkModules(c).filter(e=>e instanceof s);const p=f;const d=u.name?`${JSON.stringify(l.getPath(u.name,{chunk:c}))}, `:"";const h=JSON.stringify(p.map(e=>typeof e.request==="object"&&!Array.isArray(e.request)?e.request.amd:e.request));const m="__WEBPACK_DYNAMIC_EXPORT__";const g=p.map(e=>`__WEBPACK_EXTERNAL_MODULE_${o.toIdentifier(`${t.getModuleId(e)}`)}__`);const y=g.map(e=>`var ${e} = {};`).join("\n");const v=[];const _=g.length===0?"":o.asString(["setters: [",o.indent(p.map((e,t)=>{const r=g[t];const s=n.getExportsInfo(e);const u=s.otherExportsInfo.getUsed(c.runtime)===i.Unused;const l=[];const f=[];for(const e of s.orderedExports){const t=e.getUsedName(undefined,c.runtime);if(t){if(u||t!==e.name){l.push(`${r}${a([t])} = module${a([e.name])};`);f.push(e.name)}}else{f.push(e.name)}}if(!u){if(!Array.isArray(e.request)||e.request.length===1){v.push(`Object.defineProperty(${r}, "__esModule", { value: true });`)}if(f.length>0){const e=`${r}handledNames`;v.push(`var ${e} = ${JSON.stringify(f)};`);l.push(o.asString(["Object.keys(module).forEach(function(key) {",o.indent([`if(${e}.indexOf(key) >= 0)`,o.indent(`${r}[key] = module[key];`)]),"});"]))}else{l.push(o.asString(["Object.keys(module).forEach(function(key) {",o.indent([`${r}[key] = module[key];`]),"});"]))}}if(l.length===0)return"function() {}";return o.asString(["function(module) {",o.indent(l),"}"])}).join(",\n")),"],"]);return new r(o.asString([`System.register(${d}${h}, function(${m}, __system_context__) {`,o.indent([y,o.asString(v),"return {",o.indent([_,"execute: function() {",o.indent(`${m}(`)])]),""]),e,o.asString(["",o.indent([o.indent([o.indent([");"]),"}"]),"};"]),"})"]))}chunkHash(e,t,n,{options:r,compilation:i}){t.update("SystemLibraryPlugin");if(r.name){t.update(i.getPath(r.name,{chunk:e}))}}}e.exports=SystemLibraryPlugin},76456:(e,t,n)=>{"use strict";const{ConcatSource:r,OriginalSource:i}=n(48135);const s=n(16734);const o=n(58159);const a=n(9786);const c=e=>{return e.map(e=>`[${JSON.stringify(e)}]`).join("")};const u=(e,t,n=", ")=>{const r=Array.isArray(t)?t:[t];return r.map((t,n)=>{const i=e?e+c(r.slice(0,n+1)):r[0]+c(r.slice(1,n+1));if(n===r.length-1)return i;if(n===0&&e===undefined)return`${i} = typeof ${i} === "object" ? ${i} : {}`;return`${i} = ${i} || {}`}).join(n)};class UmdLibraryPlugin extends a{constructor(e){super({pluginName:"UmdLibraryPlugin",type:e.type});this.optionalAmdExternalAsGlobal=e.optionalAmdExternalAsGlobal}parseOptions(e){let t;let n;if(typeof e.name==="object"&&!Array.isArray(e.name)){t=e.name.root||e.name.amd||e.name.commonjs;n=e.name}else{t=e.name;const r=Array.isArray(t)?t[0]:t;n={commonjs:r,root:e.name,amd:r}}return{name:t,names:n,auxiliaryComment:e.auxiliaryComment,namedDefine:e.umdNamedDefine}}render(e,{chunkGraph:t,runtimeTemplate:n,chunk:a,moduleGraph:l},{options:f,compilation:p}){const d=t.getChunkModules(a).filter(e=>e instanceof s&&(e.externalType==="umd"||e.externalType==="umd2"));let h=d;const m=[];let g=[];if(this.optionalAmdExternalAsGlobal){for(const e of h){if(e.isOptional(l)){m.push(e)}else{g.push(e)}}h=g.concat(m)}else{g=h}const y=e=>{return p.getPath(e,{chunk:a})};const v=e=>{return`[${y(e.map(e=>JSON.stringify(typeof e.request==="object"?e.request.amd:e.request)).join(", "))}]`};const _=e=>{return y(e.map(e=>{let t=e.request;if(typeof t==="object")t=t.root;return`root${c([].concat(t))}`}).join(", "))};const b=e=>{return y(h.map(t=>{let n;let r=t.request;if(typeof r==="object"){r=r[e]}if(r===undefined){throw new Error("Missing external configuration for type:"+e)}if(Array.isArray(r)){n=`require(${JSON.stringify(r[0])})${c(r.slice(1))}`}else{n=`require(${JSON.stringify(r)})`}if(t.isOptional(l)){n=`(function webpackLoadOptionalExternalModule() { try { return ${n}; } catch(e) {} }())`}return n}).join(", "))};const E=e=>{return e.map(e=>`__WEBPACK_EXTERNAL_MODULE_${o.toIdentifier(`${t.getModuleId(e)}`)}__`).join(", ")};const w=e=>{return JSON.stringify(y([].concat(e).pop()))};let S;if(m.length>0){const e=E(g);const t=g.length>0?E(g)+", "+_(m):_(m);S=`function webpackLoadOptionalExternalModuleAmd(${e}) {\n`+`\t\t\treturn factory(${t});\n`+"\t\t}"}else{S="factory"}const{auxiliaryComment:k,namedDefine:D,names:x}=f;const C=e=>{if(k){if(typeof k==="string")return"\t//"+k+"\n";if(k[e])return"\t//"+k[e]+"\n"}return""};return new r(new i("(function webpackUniversalModuleDefinition(root, factory) {\n"+C("commonjs2")+"\tif(typeof exports === 'object' && typeof module === 'object')\n"+"\t\tmodule.exports = factory("+b("commonjs2")+");\n"+C("amd")+"\telse if(typeof define === 'function' && define.amd)\n"+(g.length>0?x.amd&&D===true?"\t\tdefine("+w(x.amd)+", "+v(g)+", "+S+");\n":"\t\tdefine("+v(g)+", "+S+");\n":x.amd&&D===true?"\t\tdefine("+w(x.amd)+", [], "+S+");\n":"\t\tdefine([], "+S+");\n")+(x.root||x.commonjs?C("commonjs")+"\telse if(typeof exports === 'object')\n"+"\t\texports["+w(x.commonjs||x.root)+"] = factory("+b("commonjs")+");\n"+C("root")+"\telse\n"+"\t\t"+y(u("root",x.root||x.commonjs))+" = factory("+_(h)+");\n":"\telse {\n"+(h.length>0?"\t\tvar a = typeof exports === 'object' ? factory("+b("commonjs")+") : factory("+_(h)+");\n":"\t\tvar a = factory();\n")+"\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n"+"\t}\n")+`})(${n.outputOptions.globalObject}, function(${E(h)}) {\nreturn `,"webpack/universalModuleDefinition"),e,";\n})")}}e.exports=UmdLibraryPlugin},78539:(e,t)=>{"use strict";const n=Object.freeze({error:"error",warn:"warn",info:"info",log:"log",debug:"debug",trace:"trace",group:"group",groupCollapsed:"groupCollapsed",groupEnd:"groupEnd",profile:"profile",profileEnd:"profileEnd",time:"time",clear:"clear",status:"status"});t.LogType=n;const r=Symbol("webpack logger raw log method");const i=Symbol("webpack logger times");const s=Symbol("webpack logger aggregated times");class WebpackLogger{constructor(e,t){this[r]=e;this.getChildLogger=t}error(...e){this[r](n.error,e)}warn(...e){this[r](n.warn,e)}info(...e){this[r](n.info,e)}log(...e){this[r](n.log,e)}debug(...e){this[r](n.debug,e)}assert(e,...t){if(!e){this[r](n.error,t)}}trace(){this[r](n.trace,["Trace"])}clear(){this[r](n.clear)}status(...e){this[r](n.status,e)}group(...e){this[r](n.group,e)}groupCollapsed(...e){this[r](n.groupCollapsed,e)}groupEnd(...e){this[r](n.groupEnd,e)}profile(e){this[r](n.profile,[e])}profileEnd(e){this[r](n.profileEnd,[e])}time(e){this[i]=this[i]||new Map;this[i].set(e,process.hrtime())}timeLog(e){const t=this[i]&&this[i].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeLog()`)}const s=process.hrtime(t);this[r](n.time,[e,...s])}timeEnd(e){const t=this[i]&&this[i].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeEnd()`)}const s=process.hrtime(t);this[i].delete(e);this[r](n.time,[e,...s])}timeAggregate(e){const t=this[i]&&this[i].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeAggregate()`)}const n=process.hrtime(t);this[i].delete(e);this[s]=this[s]||new Map;const r=this[s].get(e);if(r!==undefined){if(n[1]+r[1]>1e9){n[0]+=r[0]+1;n[1]=n[1]-1e9+r[1]}else{n[0]+=r[0];n[1]+=r[1]}}this[s].set(e,n)}timeAggregateEnd(e){if(this[s]===undefined)return;const t=this[s].get(e);if(t===undefined)return;this[r](n.time,[e,...t])}}t.Logger=WebpackLogger},70108:(e,t,n)=>{"use strict";const{LogType:r}=n(78539);const i=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const s={none:6,false:6,error:5,warn:4,info:3,log:2,true:2,verbose:1};e.exports=(({level:e="info",debug:t=false,console:n})=>{const o=typeof t==="boolean"?[()=>t]:[].concat(t).map(i);const a=s[`${e}`]||0;const c=(e,t,i)=>{const c=()=>{if(Array.isArray(i)){if(i.length>0&&typeof i[0]==="string"){return[`[${e}] ${i[0]}`,...i.slice(1)]}else{return[`[${e}]`,...i]}}else{return[]}};const u=o.some(t=>t(e));switch(t){case r.debug:if(!u)return;if(typeof n.debug==="function"){n.debug(...c())}else{n.log(...c())}break;case r.log:if(!u&&a>s.log)return;n.log(...c());break;case r.info:if(!u&&a>s.info)return;n.info(...c());break;case r.warn:if(!u&&a>s.warn)return;n.warn(...c());break;case r.error:if(!u&&a>s.error)return;n.error(...c());break;case r.trace:if(!u)return;n.trace();break;case r.groupCollapsed:if(!u&&a>s.log)return;if(!u&&a>s.verbose){if(typeof n.groupCollapsed==="function"){n.groupCollapsed(...c())}else{n.log(...c())}break}case r.group:if(!u&&a>s.log)return;if(typeof n.group==="function"){n.group(...c())}else{n.log(...c())}break;case r.groupEnd:if(!u&&a>s.log)return;if(typeof n.groupEnd==="function"){n.groupEnd()}break;case r.time:{if(!u&&a>s.log)return;const t=i[1]*1e3+i[2]/1e6;const r=`[${e}] ${i[0]}: ${t} ms`;if(typeof n.logTime==="function"){n.logTime(r)}else{n.log(r)}break}case r.profile:if(typeof n.profile==="function"){n.profile(...c())}break;case r.profileEnd:if(typeof n.profileEnd==="function"){n.profileEnd(...c())}break;case r.clear:if(!u&&a>s.log)return;if(typeof n.clear==="function"){n.clear()}break;case r.status:if(!u&&a>s.info)return;if(typeof n.status==="function"){if(i.length===0){n.status()}else{n.status(...c())}}else{if(i.length!==0){n.info(...c())}}break;default:throw new Error(`Unexpected LogType ${t}`)}};return c})},50595:e=>{"use strict";const t=e=>{let t=0;for(const n of e)t+=n;return t};const n=(e,r)=>{const i=e.map(e=>`${e}`.length);const s=r-i.length+1;if(s>0&&e.length===1){if(s>=e[0].length){return e}else if(s>3){return["..."+e[0].slice(-s+3)]}else{return[e[0].slice(-s)]}}if(s<t(i.map(e=>Math.min(e,6)))){if(e.length>1)return n(e.slice(0,e.length-1),r);return[]}let o=t(i);if(o<=s)return e;while(o>s){const e=Math.max(...i);const t=i.filter(t=>t!==e);const n=t.length>0?Math.max(...t):0;const r=e-n;let a=i.length-t.length;let c=o-s;for(let t=0;t<i.length;t++){if(i[t]===e){const e=Math.min(Math.floor(c/a),r);i[t]-=e;o-=e;c-=e;a--}}}return e.map((e,t)=>{const n=`${e}`;const r=i[t];if(n.length===r){return n}else if(r>5){return"..."+n.slice(-r+3)}else if(r>0){return n.slice(-r)}else{return""}})};e.exports=n},93632:(e,t,n)=>{"use strict";const r=n(76537);const i=n(15808);const s=n(70108);const o=n(2255);const a=n(56642);class NodeEnvironmentPlugin{constructor(e){this.options=e||{}}apply(e){e.infrastructureLogger=s(Object.assign({level:"info",debug:false,console:a},this.options.infrastructureLogging));e.inputFileSystem=new r(i,6e4);const t=e.inputFileSystem;e.outputFileSystem=i;e.intermediateFileSystem=i;e.watchFileSystem=new o(e.inputFileSystem);e.hooks.beforeRun.tap("NodeEnvironmentPlugin",e=>{if(e.inputFileSystem===t){t.purge()}})}}e.exports=NodeEnvironmentPlugin},92662:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66298);e.exports=class NodeSourcePlugin{constructor(e){this._options=e}apply(e){const t=this._options;if(t===false){return}e.hooks.compilation.tap("NodeSourcePlugin",(e,{normalModuleFactory:n})=>{const s=(e,n)=>{if(n.node===false)return;let s=t;if(n.node){s={...s,...n.node}}if(s.global){e.hooks.expression.for("global").tap("NodeSourcePlugin",t=>{const n=new i(r.global,t.range,[r.global]);n.loc=t.loc;e.state.module.addPresentationalDependency(n)})}};n.hooks.parser.for("javascript/auto").tap("NodeSourcePlugin",s);n.hooks.parser.for("javascript/dynamic").tap("NodeSourcePlugin",s);n.hooks.parser.for("javascript/esm").tap("NodeSourcePlugin",s)})}}},84980:(e,t,n)=>{"use strict";const r=n(61050);const i=n(32282).builtinModules||Object.keys(process.binding("natives"));class NodeTargetPlugin{apply(e){new r("commonjs",i).apply(e)}}e.exports=NodeTargetPlugin},91591:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=n(76150);const s=n(58159);const o=n(18161);const{getChunkFilenameTemplate:a}=n(18161);const c=n(64997);class NodeTemplatePlugin{constructor(e){e=e||{};this.asyncChunkLoading=e.asyncChunkLoading}apply(e){const t=this.asyncChunkLoading?n(26020):n(75491);new c({asyncChunkLoading:this.asyncChunkLoading,exposedGlobal:"module.exports"}).apply(e);e.hooks.thisCompilation.tap("NodeTemplatePlugin",e=>{const n=o.getCompilationHooks(e);n.renderChunk.tap("NodeTemplatePlugin",(t,n)=>{const{chunk:o,chunkGraph:c,runtimeTemplate:u}=n;const l=new r;l.add(`exports.id = ${JSON.stringify(o.id)};\n`);l.add(`exports.ids = ${JSON.stringify(o.ids)};\n`);l.add(`exports.modules = `);l.add(t);l.add(";\n");const f=c.getChunkRuntimeModulesInOrder(o);if(f.length>0){l.add("exports.runtime =\n");l.add(s.renderChunkRuntimeModules(f,n))}const p=Array.from(c.getChunkEntryModulesWithChunkGroupIterable(o));if(p.length>0){const t=p[0][1].getRuntimeChunk();const n=e.getPath(a(o,e.outputOptions),{chunk:o,contentHashType:"javascript"}).split("/");const s=e.getPath(a(t,e.outputOptions),{chunk:t,contentHashType:"javascript"}).split("/");n.pop();while(n.length>0&&s.length>0&&n[0]===s[0]){n.shift();s.shift()}const f=(n.length>0?"../".repeat(n.length):"./")+s.join("/");const d=new r;d.add(`(${u.supportsArrowFunction()?"() => ":"function() "}{\n`);d.add("var exports = {};\n");d.add(l);d.add(";\n\n// load runtime\n");d.add(`var __webpack_require__ = require(${JSON.stringify(f)});\n`);d.add(`${i.externalInstallChunk}(exports);\n`);for(let e=0;e<p.length;e++){const[n,r]=p[e];d.add(`${e===p.length-1?"return ":""}${i.startupEntrypoint}(${JSON.stringify(r.chunks.filter(e=>e!==o&&e!==t).map(e=>e.id))}, ${JSON.stringify(c.getModuleId(n))});\n`)}d.add("})()");return d}return l});n.render.tap("NodeTemplatePlugin",(e,t)=>{const{chunk:n,chunkGraph:r}=t;if(!n.hasRuntime())return e;if(r.getNumberOfEntryModules(n)>0)return e});n.chunkHash.tap("NodeTemplatePlugin",(e,t)=>{if(e.hasRuntime())return;t.update("node");t.update("1")});const c=new WeakSet;const u=(n,r)=>{if(c.has(n))return;c.add(n);r.add(i.moduleFactoriesAddOnly);r.add(i.hasOwnProperty);e.addRuntimeModule(n,new t(r))};e.hooks.additionalTreeRuntimeRequirements.tap("NodeTemplatePlugin",(t,n)=>{if(Array.from(t.getAllReferencedChunks()).some(n=>n!==t&&e.chunkGraph.getNumberOfEntryModules(n)>0)){n.add(i.startupEntrypoint);n.add(i.externalInstallChunk)}});e.hooks.runtimeRequirementInTree.for(i.ensureChunkHandlers).tap("NodeTemplatePlugin",u);e.hooks.runtimeRequirementInTree.for(i.hmrDownloadUpdateHandlers).tap("NodeTemplatePlugin",u);e.hooks.runtimeRequirementInTree.for(i.hmrDownloadManifest).tap("NodeTemplatePlugin",u);e.hooks.runtimeRequirementInTree.for(i.ensureChunkHandlers).tap("NodeTemplatePlugin",(e,t)=>{t.add(i.getChunkScriptFilename)});e.hooks.runtimeRequirementInTree.for(i.hmrDownloadUpdateHandlers).tap("NodeTemplatePlugin",(e,t)=>{t.add(i.getChunkUpdateScriptFilename);t.add(i.moduleCache);t.add(i.hmrModuleData);t.add(i.moduleFactoriesAddOnly)});e.hooks.runtimeRequirementInTree.for(i.hmrDownloadManifest).tap("NodeTemplatePlugin",(e,t)=>{t.add(i.getUpdateManifestFilename)})})}}e.exports=NodeTemplatePlugin},2255:(e,t,n)=>{"use strict";const r=n(92512);class NodeWatchFileSystem{constructor(e){this.inputFileSystem=e;this.watcherOptions={aggregateTimeout:0};this.watcher=new r(this.watcherOptions)}watch(e,t,n,i,s,o,a){if(!e||typeof e[Symbol.iterator]!=="function"){throw new Error("Invalid arguments: 'files'")}if(!t||typeof t[Symbol.iterator]!=="function"){throw new Error("Invalid arguments: 'directories'")}if(!n||typeof n[Symbol.iterator]!=="function"){throw new Error("Invalid arguments: 'missing'")}if(typeof o!=="function"){throw new Error("Invalid arguments: 'callback'")}if(typeof i!=="number"&&i){throw new Error("Invalid arguments: 'startTime'")}if(typeof s!=="object"){throw new Error("Invalid arguments: 'options'")}if(typeof a!=="function"&&a){throw new Error("Invalid arguments: 'callbackUndelayed'")}const c=this.watcher;this.watcher=new r(s);if(a){this.watcher.once("change",a)}this.watcher.once("aggregated",(e,t)=>{if(this.inputFileSystem&&this.inputFileSystem.purge){for(const t of e){this.inputFileSystem.purge(t)}for(const e of t){this.inputFileSystem.purge(e)}}const n=this.watcher.getTimeInfoEntries();o(null,n,n,e,t)});this.watcher.watch({files:e,directories:t,missing:n,startTime:i});if(c){c.close()}return{close:()=>{if(this.watcher){this.watcher.close();this.watcher=null}},pause:()=>{if(this.watcher){this.watcher.pause()}},getFileTimeInfoEntries:()=>{if(this.watcher){return this.watcher.getTimeInfoEntries()}else{return new Map}},getContextTimeInfoEntries:()=>{if(this.watcher){return this.watcher.getTimeInfoEntries()}else{return new Map}}}}}e.exports=NodeWatchFileSystem},26020:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{chunkHasJs:o,getChunkFilenameTemplate:a}=n(18161);const c=n(87274);const{getUndoPath:u}=n(49197);class ReadFileChunkLoadingRuntimeModule extends i{constructor(e){super("readFile chunk loading",10);this.runtimeRequirements=e}generate(){const{chunk:e}=this;const{chunkGraph:t,runtimeTemplate:i}=this.compilation;const l=r.ensureChunkHandlers;const f=this.runtimeRequirements.has(r.externalInstallChunk);const p=this.runtimeRequirements.has(r.ensureChunkHandlers);const d=this.runtimeRequirements.has(r.hmrDownloadUpdateHandlers);const h=this.runtimeRequirements.has(r.hmrDownloadManifest);const m=c(t.getChunkConditionMap(e,o));const g=this.compilation.getPath(a(e,this.compilation.outputOptions),{chunk:e,contentHashType:"javascript"});const y=u(g,false);return s.asString(["// object to store loaded chunks",'// "0" means "already loaded", Promise means loading',"var installedChunks = {",s.indent(e.ids.map(e=>`${JSON.stringify(e)}: 0`).join(",\n")),"};","",p||f?`var installChunk = ${i.basicFunction("chunk",["var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;","for(var moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent([`${r.moduleFactories}[moduleId] = moreModules[moduleId];`]),"}"]),"}",`if(runtime) runtime(__webpack_require__);`,"var callbacks = [];","for(var i = 0; i < chunkIds.length; i++) {",s.indent(["if(installedChunks[chunkIds[i]])",s.indent(["callbacks = callbacks.concat(installedChunks[chunkIds[i]][0]);"]),"installedChunks[chunkIds[i]] = 0;"]),"}","for(i = 0; i < callbacks.length; i++)",s.indent("callbacks[i]();")])};`:"// no chunk install function needed","",p?s.asString(["// ReadFile + VM.run chunk loading for javascript",`${l}.readFileVm = function(chunkId, promises) {`,m!==false?s.indent(["","var installedChunkData = installedChunks[chunkId];",'if(installedChunkData !== 0) { // 0 means "already installed".',s.indent(['// array of [resolve, reject, promise] means "currently loading"',"if(installedChunkData) {",s.indent(["promises.push(installedChunkData[2]);"]),"} else {",s.indent([m===true?"if(true) { // all chunks have JS":`if(${m("chunkId")}) {`,s.indent(["// load the chunk and return promise to it","var promise = new Promise(function(resolve, reject) {",s.indent(["installedChunkData = installedChunks[chunkId] = [resolve, reject];",`var filename = require('path').join(__dirname, ${JSON.stringify(y)} + ${r.getChunkScriptFilename}(chunkId));`,"require('fs').readFile(filename, 'utf-8', function(err, content) {",s.indent(["if(err) return reject(err);","var chunk = {};","require('vm').runInThisContext('(function(exports, require, __dirname, __filename) {' + content + '\\n})', filename)"+"(chunk, require, require('path').dirname(filename), filename);","installChunk(chunk);"]),"});"]),"});","promises.push(installedChunkData[2] = promise);"]),"} else installedChunks[chunkId] = 0;"]),"}"]),"}"]):s.indent(["installedChunks[chunkId] = 0;"]),"};"]):"// no chunk loading","",f?s.asString(["module.exports = __webpack_require__;",`${r.externalInstallChunk} = installChunk;`]):"// no external install chunk","",d?s.asString(["function loadUpdateChunk(chunkId, updatedModulesList) {",s.indent(["return new Promise(function(resolve, reject) {",s.indent([`var filename = require('path').join(__dirname, ${JSON.stringify(y)} + ${r.getChunkUpdateScriptFilename}(chunkId));`,"require('fs').readFile(filename, 'utf-8', function(err, content) {",s.indent(["if(err) return reject(err);","var update = {};","require('vm').runInThisContext('(function(exports, require, __dirname, __filename) {' + content + '\\n})', filename)"+"(update, require, require('path').dirname(filename), filename);","var updatedModules = update.modules;","var runtime = update.runtime;","for(var moduleId in updatedModules) {",s.indent([`if(${r.hasOwnProperty}(updatedModules, moduleId)) {`,s.indent([`currentUpdate[moduleId] = updatedModules[moduleId];`,"if(updatedModulesList) updatedModulesList.push(moduleId);"]),"}"]),"}","if(runtime) currentUpdateRuntime.push(runtime);","resolve();"]),"});"]),"});"]),"}","",s.getFunctionContent(n(22215)).replace(/\$key\$/g,"readFileVm").replace(/\$installedChunks\$/g,"installedChunks").replace(/\$loadUpdateChunk\$/g,"loadUpdateChunk").replace(/\$moduleCache\$/g,r.moduleCache).replace(/\$moduleFactories\$/g,r.moduleFactories).replace(/\$ensureChunkHandlers\$/g,r.ensureChunkHandlers).replace(/\$hasOwnProperty\$/g,r.hasOwnProperty).replace(/\$hmrModuleData\$/g,r.hmrModuleData).replace(/\$hmrDownloadUpdateHandlers\$/g,r.hmrDownloadUpdateHandlers).replace(/\$hmrInvalidateModuleHandlers\$/g,r.hmrInvalidateModuleHandlers)]):"// no HMR","",h?s.asString([`${r.hmrDownloadManifest} = function() {`,s.indent(["return new Promise(function(resolve, reject) {",s.indent([`var filename = require('path').join(__dirname, ${JSON.stringify(y)} + ${r.getUpdateManifestFilename}());`,"require('fs').readFile(filename, 'utf-8', function(err, content) {",s.indent(["if(err) {",s.indent(['if(err.code === "ENOENT") return resolve();',"return reject(err);"]),"}","try { resolve(JSON.parse(content)); }","catch(e) { reject(e); }"]),"});"]),"});"]),"}"]):"// no HMR manifest"])}}e.exports=ReadFileChunkLoadingRuntimeModule},21273:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(21941);class ReadFileCompileAsyncWasmPlugin{apply(e){e.hooks.thisCompilation.tap("ReadFileCompileAsyncWasmPlugin",e=>{const t=e=>i.asString(["new Promise(function (resolve, reject) {",i.indent(["var { readFile } = require('fs');","var { join } = require('path');","","try {",i.indent([`readFile(join(__dirname, ${e}), function(err, buffer){`,i.indent(["if (err) return reject(err);","","// Fake fetch response","resolve({",i.indent(["arrayBuffer() { return buffer; }"]),"});"]),"});"]),"} catch (err) { reject(err); }"]),"})"]);e.hooks.runtimeRequirementInTree.for(r.instantiateWasm).tap("ReadFileCompileAsyncWasmPlugin",(n,i)=>{const o=e.chunkGraph;if(!o.hasModuleInGraph(n,e=>e.type==="webassembly/async")){return}i.add(r.publicPath);e.addRuntimeModule(n,new s({generateLoadBinaryCode:t,supportsStreaming:false}))})})}}e.exports=ReadFileCompileAsyncWasmPlugin},71049:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(95982);class ReadFileCompileWasmPlugin{constructor(e){this.options=e||{}}apply(e){e.hooks.thisCompilation.tap("ReadFileCompileWasmPlugin",e=>{const t=e=>i.asString(["new Promise(function (resolve, reject) {",i.indent(["var { readFile } = require('fs');","var { join } = require('path');","","try {",i.indent([`readFile(join(__dirname, ${e}), function(err, buffer){`,i.indent(["if (err) return reject(err);","","// Fake fetch response","resolve({",i.indent(["arrayBuffer() { return buffer; }"]),"});"]),"});"]),"} catch (err) { reject(err); }"]),"})"]);e.hooks.runtimeRequirementInTree.for(r.ensureChunkHandlers).tap("ReadFileCompileWasmPlugin",(n,i)=>{const o=e.chunkGraph;if(!o.hasModuleInGraph(n,e=>e.type==="webassembly/sync")){return}i.add(r.moduleCache);e.addRuntimeModule(n,new s({generateLoadBinaryCode:t,supportsStreaming:false,mangleImports:this.options.mangleImports}))})})}}e.exports=ReadFileCompileWasmPlugin},75491:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{chunkHasJs:o,getChunkFilenameTemplate:a}=n(18161);const c=n(87274);const{getUndoPath:u}=n(49197);class RequireChunkLoadingRuntimeModule extends i{constructor(e){super("require chunk loading",10);this.runtimeRequirements=e}generate(){const{chunk:e}=this;const{chunkGraph:t,runtimeTemplate:i}=this.compilation;const l=r.ensureChunkHandlers;const f=this.runtimeRequirements.has(r.externalInstallChunk);const p=this.runtimeRequirements.has(r.ensureChunkHandlers);const d=this.runtimeRequirements.has(r.hmrDownloadUpdateHandlers);const h=this.runtimeRequirements.has(r.hmrDownloadManifest);const m=c(t.getChunkConditionMap(e,o));const g=this.compilation.getPath(a(e,this.compilation.outputOptions),{chunk:e,contentHashType:"javascript"});const y=u(g,true);return s.asString(["// object to store loaded chunks",'// "1" means "loaded", otherwise not loaded yet',"var installedChunks = {",s.indent(e.ids.map(e=>`${JSON.stringify(e)}: 1`).join(",\n")),"};","",p||f?`var installChunk = ${i.basicFunction("chunk",["var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;","for(var moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent([`${r.moduleFactories}[moduleId] = moreModules[moduleId];`]),"}"]),"}",`if(runtime) runtime(__webpack_require__);`,"for(var i = 0; i < chunkIds.length; i++)",s.indent("installedChunks[chunkIds[i]] = 1;")])};`:"// no chunk install function needed","",p?s.asString(["// require() chunk loading for javascript",`${l}.require = function(chunkId, promises) {`,m!==false?s.indent(["",'// "1" is the signal for "already loaded"',"if(!installedChunks[chunkId]) {",s.indent([m===true?"if(true) { // all chunks have JS":`if(${m("chunkId")}) {`,s.indent([`installChunk(require(${JSON.stringify(y)} + ${r.getChunkScriptFilename}(chunkId)));`]),"} else installedChunks[chunkId] = 1;",""]),"}"]):"installedChunks[chunkId] = 1;","};"]):"// no chunk loading","",f?s.asString(["module.exports = __webpack_require__;",`${r.externalInstallChunk} = installChunk;`]):"// no external install chunk","",d?s.asString(["function loadUpdateChunk(chunkId, updatedModulesList) {",s.indent([`var update = require(${JSON.stringify(y)} + ${r.getChunkUpdateScriptFilename}(chunkId));`,"var updatedModules = update.modules;","var runtime = update.runtime;","for(var moduleId in updatedModules) {",s.indent([`if(${r.hasOwnProperty}(updatedModules, moduleId)) {`,s.indent([`currentUpdate[moduleId] = updatedModules[moduleId];`,"if(updatedModulesList) updatedModulesList.push(moduleId);"]),"}"]),"}","if(runtime) currentUpdateRuntime.push(runtime);"]),"}","",s.getFunctionContent(n(22215)).replace(/\$key\$/g,"require").replace(/\$installedChunks\$/g,"installedChunks").replace(/\$loadUpdateChunk\$/g,"loadUpdateChunk").replace(/\$moduleCache\$/g,r.moduleCache).replace(/\$moduleFactories\$/g,r.moduleFactories).replace(/\$ensureChunkHandlers\$/g,r.ensureChunkHandlers).replace(/\$hasOwnProperty\$/g,r.hasOwnProperty).replace(/\$hmrModuleData\$/g,r.hmrModuleData).replace(/\$hmrDownloadUpdateHandlers\$/g,r.hmrDownloadUpdateHandlers).replace(/\$hmrInvalidateModuleHandlers\$/g,r.hmrInvalidateModuleHandlers)]):"// no HMR","",h?s.asString([`${r.hmrDownloadManifest} = function() {`,s.indent(["return Promise.resolve().then(function() {",s.indent([`return require(${JSON.stringify(y)} + ${r.getUpdateManifestFilename}());`]),'}).catch(function(err) { if(err.code !== "MODULE_NOT_FOUND") throw err; });']),"}"]):"// no HMR manifest"])}}e.exports=RequireChunkLoadingRuntimeModule},56642:(e,t,n)=>{"use strict";const r=n(31669);const i=n(50595);const s=process.stderr.isTTY&&process.env.TERM!=="dumb";let o=undefined;let a=false;let c="";let u=0;const l=(e,t,n,r)=>{if(e==="")return e;t=c+t;if(s){return t+n+e.replace(/\n/g,r+"\n"+t+n)+r}else{return t+e.replace(/\n/g,"\n"+t)}};const f=()=>{if(a){process.stderr.write("[2K\r");a=false}};const p=()=>{if(!o)return;const e=process.stderr.columns;const t=e?i(o,e-1):o;const n=t.join(" ");const r=`[1m${n}[39m[22m`;process.stderr.write(`[2K\r${r}`);a=true};const d=(e,t,n)=>{return(...i)=>{if(u>0)return;f();const s=l(r.format(...i),e,t,n);process.stderr.write(s+"\n");p()}};const h=d("<-> ","[1m[36m","[39m[22m");const m=d("<+> ","[1m[36m","[39m[22m");e.exports={log:d(" ","[1m","[22m"),debug:d(" ","",""),trace:d(" ","",""),info:d("<i> ","[1m[32m","[39m[22m"),warn:d("<w> ","[1m[33m","[39m[22m"),error:d("<e> ","[1m[31m","[39m[22m"),logTime:d("<t> ","[1m[35m","[39m[22m"),group:(...e)=>{h(...e);if(u>0){u++}else{c+=" "}},groupCollapsed:(...e)=>{m(...e);u++},groupEnd:()=>{if(u>0)u--;else if(c.length>=2)c=c.slice(0,c.length-2)},profile:console.profile&&(e=>console.profile(e)),profileEnd:console.profileEnd&&(e=>console.profileEnd(e)),clear:s&&console.clear&&(()=>{f();console.clear();p()}),status:s?(e,...t)=>{t=t.filter(Boolean);if(e===undefined&&t.length===0){f();o=undefined}else if(typeof e==="string"&&e.startsWith("[webpack.Progress] ")){o=[e.slice(19),...t];p()}else if(e==="[webpack.Progress]"){o=[...t];p()}else{o=[e,...t];p()}}:d("<s> ","","")}},61332:(e,t,n)=>{"use strict";const{STAGE_ADVANCED:r}=n(82414);class AggressiveMergingPlugin{constructor(e){if(e!==undefined&&typeof e!=="object"||Array.isArray(e)){throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.js.org/plugins/")}this.options=e||{}}apply(e){const t=this.options;const n=t.minSizeReduce||1.5;e.hooks.thisCompilation.tap("AggressiveMergingPlugin",e=>{e.hooks.optimizeChunks.tap({name:"AggressiveMergingPlugin",stage:r},t=>{const r=e.chunkGraph;let i=[];for(const e of t){if(e.canBeInitial())continue;for(const n of t){if(n.canBeInitial())continue;if(n===e)break;if(!r.canChunksBeIntegrated(e,n)){continue}const t=r.getChunkSize(n,{chunkOverhead:0});const s=r.getChunkSize(e,{chunkOverhead:0});const o=r.getIntegratedChunksSize(n,e,{chunkOverhead:0});const a=(t+s)/o;i.push({a:e,b:n,improvement:a})}}i.sort((e,t)=>{return t.improvement-e.improvement});const s=i[0];if(!s)return;if(s.improvement<n)return;r.integrateChunks(s.b,s.a);e.chunks.delete(s.a);return true})})}}e.exports=AggressiveMergingPlugin},94827:(e,t,n)=>{"use strict";const r=n(15235);const i=n(69127);const{STAGE_ADVANCED:s}=n(82414);const{intersect:o}=n(26221);const{compareModulesByIdentifier:a,compareChunks:c}=n(68673);const u=n(49197);const l=(e,t,n)=>{return r=>{e.disconnectChunkAndModule(t,r);e.connectChunkAndModule(n,r)}};const f=(e,t)=>{return n=>{return!e.isEntryModuleInChunk(n,t)}};const p=new WeakSet;class AggressiveSplittingPlugin{constructor(e={}){r(i,e,{name:"Aggressive Splitting Plugin",baseDataPath:"options"});this.options=e;if(typeof this.options.minSize!=="number"){this.options.minSize=30*1024}if(typeof this.options.maxSize!=="number"){this.options.maxSize=50*1024}if(typeof this.options.chunkOverhead!=="number"){this.options.chunkOverhead=0}if(typeof this.options.entryChunkMultiplicator!=="number"){this.options.entryChunkMultiplicator=1}}static wasChunkRecorded(e){return p.has(e)}apply(e){e.hooks.thisCompilation.tap("AggressiveSplittingPlugin",t=>{let n=false;let r;let i;let d;t.hooks.optimize.tap("AggressiveSplittingPlugin",()=>{r=[];i=new Set;d=new Map});t.hooks.optimizeChunks.tap({name:"AggressiveSplittingPlugin",stage:s},n=>{const s=t.chunkGraph;const p=new Map;const h=new Map;const m=u.makePathsRelative.bindContextCache(e.context,e.root);for(const e of t.modules){const t=m(e.identifier());p.set(t,e);h.set(e,t)}const g=new Set;for(const e of n){g.add(e.id)}const y=t.records&&t.records.aggressiveSplits||[];const v=r?y.concat(r):y;const _=this.options.minSize;const b=this.options.maxSize;const E=e=>{if(e.id!==undefined&&g.has(e.id)){return false}const n=e.modules.map(e=>p.get(e));if(!n.every(Boolean))return false;let r=0;for(const e of n)r+=e.size();if(r!==e.size)return false;const a=o(n.map(e=>new Set(s.getModuleChunksIterable(e))));if(a.size===0)return false;if(a.size===1&&s.getNumberOfChunkModules(Array.from(a)[0])===n.length){const t=Array.from(a)[0];if(i.has(t))return false;i.add(t);d.set(t,e);return true}const c=t.addChunk();c.chunkReason="aggressive splitted";for(const e of a){n.forEach(l(s,e,c));e.split(c);e.name=null}i.add(c);d.set(c,e);if(e.id!==null&&e.id!==undefined){c.id=e.id;c.ids=[e.id]}return true};let w=false;for(let e=0;e<v.length;e++){const t=v[e];if(E(t))w=true}const S=c(s);const k=Array.from(n).sort((e,t)=>{const n=s.getChunkModulesSize(t)-s.getChunkModulesSize(e);if(n)return n;const r=s.getNumberOfChunkModules(e)-s.getNumberOfChunkModules(t);if(r)return r;return S(e,t)});for(const e of k){if(i.has(e))continue;const t=s.getChunkModulesSize(e);if(t>b&&s.getNumberOfChunkModules(e)>1){const t=s.getOrderedChunkModules(e,a).filter(f(s,e));const n=[];let i=0;for(let e=0;e<t.length;e++){const r=t[e];const s=i+r.size();if(s>b&&i>=_){break}i=s;n.push(r)}if(n.length===0)continue;const o={modules:n.map(e=>h.get(e)).sort(),size:i};if(E(o)){r=(r||[]).concat(o);w=true}}}if(w)return true});t.hooks.recordHash.tap("AggressiveSplittingPlugin",e=>{const r=new Set;const i=new Set;for(const e of t.chunks){const t=d.get(e);if(t!==undefined){if(t.hash&&e.hash!==t.hash){i.add(t)}}}if(i.size>0){e.aggressiveSplits=e.aggressiveSplits.filter(e=>!i.has(e));n=true}else{for(const e of t.chunks){const t=d.get(e);if(t!==undefined){t.hash=e.hash;t.id=e.id;r.add(t);p.add(e)}}const s=t.records&&t.records.aggressiveSplits;if(s){for(const e of s){if(!i.has(e))r.add(e)}}e.aggressiveSplits=Array.from(r);n=false}});t.hooks.needAdditionalSeal.tap("AggressiveSplittingPlugin",()=>{if(n){n=false;return true}})})}}e.exports=AggressiveSplittingPlugin},95734:(e,t,n)=>{"use strict";const r=n(19579);const{CachedSource:i,ConcatSource:s,ReplaceSource:o}=n(48135);const a=n(84304);const{UsageState:c}=n(76632);const u=n(53453);const l=n(76150);const f=n(58159);const p=n(54290);const d=n(55037);const h=n(44576);const m=n(14696);const g=n(37359);const y=n(69707);const v=n(2230);const _=n(3711);const{equals:b}=n(73910);const E=n(83379);const{concatComparators:w,keepOriginalOrder:S}=n(68673);const k=n(35891);const D=n(49197).contextify;const x=n(56202);const C=n(68038);const A=["__WEBPACK_MODULE_DEFAULT_EXPORT__","abstract,arguments,async,await,boolean,break,byte,case,catch,char,class,const,continue","debugger,default,delete,do,double,else,enum,eval,export,extends,false,final,finally,float","for,function,goto,if,implements,import,in,instanceof,int,interface,let,long,native,new,null","package,private,protected,public,return,short,static,super,switch,synchronized,this,throw","throws,transient,true,try,typeof,var,void,volatile,while,with,yield","module,__dirname,__filename,exports","Array,Date,eval,function,hasOwnProperty,Infinity,isFinite,isNaN,isPrototypeOf,length,Math","NaN,name,Number,Object,prototype,String,toString,undefined,valueOf","alert,all,anchor,anchors,area,assign,blur,button,checkbox,clearInterval,clearTimeout","clientInformation,close,closed,confirm,constructor,crypto,decodeURI,decodeURIComponent","defaultStatus,document,element,elements,embed,embeds,encodeURI,encodeURIComponent,escape","event,fileUpload,focus,form,forms,frame,innerHeight,innerWidth,layer,layers,link,location","mimeTypes,navigate,navigator,frames,frameRate,hidden,history,image,images,offscreenBuffering","open,opener,option,outerHeight,outerWidth,packages,pageXOffset,pageYOffset,parent,parseFloat","parseInt,password,pkcs11,plugin,prompt,propertyIsEnum,radio,reset,screenX,screenY,scroll","secure,select,self,setInterval,setTimeout,status,submit,taint,text,textarea,top,unescape","untaint,window","onblur,onclick,onerror,onfocus,onkeydown,onkeypress,onkeyup,onmouseover,onload,onmouseup,onmousedown,onsubmit"].join(",").split(",");const T=(e,t)=>{const n=e.sourceOrder;const r=t.sourceOrder;if(isNaN(n)){if(!isNaN(r)){return 1}}else{if(isNaN(r)){return-1}if(n!==r){return n<r?-1:1}}return 0};const M=e=>{let t="";let n=true;for(const r of e){if(n){n=false}else{t+=", "}t+=r}return t};const O=(e,t,n,r,i,s,o)=>{const a=t.namespaceObjectName;if(!t.hasNamespaceObject){t.hasNamespaceObject=true;const c=[];const u=e.getExportsInfo(t.module);for(const a of u.orderedExports){const u=a.getUsedName(undefined,r);if(u){const l=P(e,t,[a.name],n,r,i,s,false,undefined,o,true);c.push(`\n ${JSON.stringify(u)}: ${s.returningFunction(l)}`)}}t.namespaceObjectSource=`var ${a} = {};\n${l.makeNamespaceObject}(${a});\n${l.definePropertyGetters}(${a}, {${c.join(",")}\n});\n`}return a};const F=(e,t,n,r,i,s,o,a,c)=>{let u=n.name;const l=t.getExportsType(e,a);if(r.length===0){switch(l){case"default-only":case"default-with-named":n.interopNamespaceObjectUsed=true;u=n.interopNamespaceObjectName;break;case"namespace":case"dynamic":break;default:throw new Error(`Unexpected exportsType ${l}`)}}else{switch(l){case"namespace":break;case"default-with-named":if(r[0]==="default"){u=n.name;r=r.slice(1)}break;case"default-only":if(r[0]==="default"){u=n.name}else{u="/* non-default import from default-exporting module */undefined"}r=r.slice(1);break;case"dynamic":if(r[0]==="default"){n.interopDefaultAccessUsed=true;u=s?`${n.interopDefaultAccessName}()`:c?`(${n.interopDefaultAccessName}())`:`${n.interopDefaultAccessName}.a`;r=r.slice(1)}break;default:throw new Error(`Unexpected exportsType ${l}`)}}const p=r.length===0||e.getExportsInfo(t).getUsedName(r,i);if(!p)return"/* unused export */undefined";const d=b(p,r)?"":f.toNormalComment(`${r.join(".")}`);const h=`${u}${d}${C(p)}`;if(s&&o===false){return c?`(0,${h})`:`Object(${h})`}return h};const I=(e,t,n)=>{if(e.has(n)){throw new Error(`Circular reexports ${Array.from(e,e=>`"${e.module.readableIdentifier(t)}".${e.exportName.join(".")}`).join(" --\x3e ")} -(circular)-> "${n.module.readableIdentifier(t)}".${n.exportName.join(".")}`)}e.add(n)};const R=(e,t,n,r,i=new Set)=>{switch(e.type){case"concatenated":{if(t.length===0){return{info:e,ids:t,exportName:t}}const s=t[0];const o=e.exportMap.get(s);if(o){return{info:e,ids:[o,...t.slice(1)],exportName:t}}const a=e.reexportMap.get(s);if(a){I(i,r,a);const e=n.get(a.module);if(e){return R(e,[...a.exportName,...t.slice(1)],n,r,i)}}return{info:e,ids:null,exportName:t}}case"external":{return{info:e,ids:t,exportName:t}}}};const P=(e,t,n,r,i,s,o,a,u,l,p)=>{const d=R(t,n,r,s);switch(d.info.type){case"concatenated":{const{info:t,ids:n,exportName:a}=d;if(!n){const e=`Cannot get final name for export "${a}" in "${t.module.readableIdentifier(s)}"`+` (known exports: ${Array.from(t.exportMap.keys()).join(" ")}, `+`known reexports: ${Array.from(t.reexportMap.keys()).join(" ")})`;return`${f.toNormalComment(e)} undefined${C(a,1)}`}if(n.length===0){return O(e,t,r,i,s,o,l)}const u=n[0];const p=e.getExportsInfo(t.module);if(p.getUsed(a,i)===c.Unused){return`/* unused export */ undefined${C(a,1)}`}const h=t.internalNames.get(u);if(!h){throw new Error(`The export "${u}" in "${t.module.readableIdentifier(s)}" has no internal name`)}return`${h}${C(a,1)}`}case"external":{const{info:t,ids:n}=d;const r=t.module;return F(e,r,t,n,i,a,u,l,p)}}};const N=(e,t,n,r)=>{let i=e;while(i){if(n.has(i))break;if(r.has(i))break;n.add(i);for(const e of i.variables){t.add(e.name)}i=i.upper}};const L=e=>{let t=e.references;const n=new Set(e.identifiers);for(const r of e.scope.childScopes){for(const e of r.variables){if(e.identifiers.some(e=>n.has(e))){t=t.concat(e.references);break}}}return t};const B=(e,t)=>{if(e===t){return[]}const n=t.range;const r=e=>{if(!e)return undefined;const r=e.range;if(r){if(r[0]<=n[0]&&r[1]>=n[1]){const n=B(e,t);if(n){n.push(e);return n}}}return undefined};if(Array.isArray(e)){for(let t=0;t<e.length;t++){const n=r(e[t]);if(n!==undefined)return n}}else if(e&&typeof e==="object"){const n=Object.keys(e);for(let i=0;i<n.length;i++){const s=e[n[i]];if(Array.isArray(s)){const e=B(s,t);if(e!==undefined)return e}else if(s&&typeof s==="object"){const e=r(s);if(e!==undefined)return e}}}};const j=e=>{const t=new Map;for(const n of e){t.set(n.module,n)}return t};const U=({info:e,ids:t=undefined,call:n=false,directImport:r=false,strict:i=false,asiSafe:s=false})=>{const o=n?"_call":"";const a=r?"_directImport":"";const c=i?"_strict":"";const u=s?"_asiSafe":"";const l=t?Buffer.from(JSON.stringify(t),"utf-8").toString("hex"):"ns";return`__WEBPACK_MODULE_REFERENCE__${e.index}_${l}${o}${a}${c}${u}__`};const z=/^__WEBPACK_MODULE_REFERENCE__(\d+)_([\da-f]+|ns)(_call)?(_directImport)?(_strict)?(_asiSafe)?__$/;const H=e=>{return z.test(e)};const V=(e,t)=>{const n=z.exec(e);if(!n)return null;const r=+n[1];return{index:r,info:t[r],ids:n[2]==="ns"?[]:JSON.parse(Buffer.from(n[2],"hex").toString("utf-8")),call:!!n[3],directImport:!!n[4],strict:!!n[5],asiSafe:!!n[6]}};const G=new Set(["javascript"]);const q=(e,t,n)=>{const r=t.getModule(e);if(!r)return[];const i=e.getIds(t);if(i.length>0){return[{name:e.name,ids:i}]}if(e.name){return[{name:e.name,ids:[]}]}const{exports:s}=e.getStarReexports(t,n,undefined,r);if(s){return Array.from(s,e=>{return{name:e,ids:[e]}})}throw new Error("ConcatenatedModule: unknown exports")};class ConcatenatedModule extends u{static create(e,t,n){const r=ConcatenatedModule._createIdentifier(e,t,n);return new ConcatenatedModule({identifier:r,rootModule:e,modules:t})}constructor({identifier:e,rootModule:t,modules:n}){super("javascript/esm",null);this._identifier=e;this.rootModule=t;this._modules=n;this.factoryMeta=t&&t.factoryMeta}updateCacheModule(e){super.updateCacheModule(e);const t=e;this._identifier=t._identifier;this.rootModule=t.rootModule;this._modules=t._modules}getSourceTypes(){return G}get modules(){return Array.from(this._modules)}identifier(){return this._identifier}readableIdentifier(e){return this.rootModule.readableIdentifier(e)+` + ${this._modules.size-1} modules`}libIdent(e){return this.rootModule.libIdent(e)}nameForCondition(){return this.rootModule.nameForCondition()}build(e,t,n,r,i){const{rootModule:s}=this;this.buildInfo={strict:true,cacheable:true,moduleArgument:s.buildInfo.moduleArgument,exportsArgument:s.buildInfo.exportsArgument,fileDependencies:new E,contextDependencies:new E,missingDependencies:new E,assets:undefined};this.buildMeta=s.buildMeta;this.clearDependenciesAndBlocks();this.clearWarningsAndErrors();for(const e of this._modules){if(!e.buildInfo.cacheable){this.buildInfo.cacheable=false}for(const n of e.dependencies.filter(e=>!(e instanceof g)||!this._modules.has(t.moduleGraph.getModule(e)))){this.dependencies.push(n)}for(const t of e.blocks){this.blocks.push(t)}if(e.buildInfo.fileDependencies){this.buildInfo.fileDependencies.addAll(e.buildInfo.fileDependencies)}if(e.buildInfo.contextDependencies){this.buildInfo.contextDependencies.addAll(e.buildInfo.contextDependencies)}if(e.buildInfo.missingDependencies){this.buildInfo.missingDependencies.addAll(e.buildInfo.missingDependencies)}const n=e.getWarnings();if(n!==undefined){for(const e of n){this.addWarning(e)}}const r=e.getErrors();if(r!==undefined){for(const e of r){this.addError(e)}}if(e.buildInfo.assets){if(this.buildInfo.assets===undefined){this.buildInfo.assets=Object.create(null)}Object.assign(this.buildInfo.assets,e.buildInfo.assets)}if(e.buildInfo.assetsInfo){if(this.buildInfo.assetsInfo===undefined){this.buildInfo.assetsInfo=new Map}for(const[t,n]of e.buildInfo.assetsInfo){this.buildInfo.assetsInfo.set(t,n)}}}i()}size(e){let t=0;for(const n of this._modules){t+=n.size(e)}return t}_createConcatenationList(e,t,n,r){const i=[];const s=new Set;const o=t=>{let i=Array.from(r.getOutgoingConnections(t));if(t===e){for(const e of r.getOutgoingConnections(this))i.push(e)}const s=i.filter(e=>{if(!(e.dependency instanceof g))return false;return e&&e.module&&e.isActive(n)}).map(e=>({connection:e,sourceOrder:e.dependency.sourceOrder}));s.sort(w(T,S(s)));return s.map(({connection:e})=>e)};const a=e=>{const n=e.module;if(!n)return;if(s.has(n)){return}if(t.has(n)){s.add(n);const t=o(n);t.forEach(a);i.push({type:"concatenated",module:e.module})}else{s.add(e.module);i.push({type:"external",get module(){return e.module}})}};s.add(e);const c=o(e);c.forEach(a);i.push({type:"concatenated",module:e});return i}static _createIdentifier(e,t,n){const r=D.bindContextCache(e.context,n);let i=[];for(const e of t){i.push(r(e.identifier()))}i.sort();const s=k("md4");s.update(i.join(" "));return e.identifier()+"|"+s.digest("hex")}codeGeneration({dependencyTemplates:e,runtimeTemplate:t,moduleGraph:n,chunkGraph:r,runtime:o}){const a=new Set;const u=t.requestShortener;const f=this._getModulesWithInfo(n,o);const p=j(f);const g=this._getInnerDependencyTemplates(e,p);for(const e of f){this._analyseModule(e,g,t,n,r,o)}const y=new Set(A);const v=new Map;const _=(e,t)=>{const n=`${e}-${t}`;let r=v.get(n);if(r===undefined){r={usedNames:new Set,alreadyCheckedScopes:new Set};v.set(n,r)}return r};const b=new Set;for(const e of f){if(e.type==="concatenated"){const t=[];if(e.moduleScope){b.add(e.moduleScope);for(const n of e.moduleScope.childScopes){if(n.type!=="class")continue;const e=n.block;if((e.type==="ClassDeclaration"||e.type==="ClassExpression")&&e.superClass){t.push({range:e.superClass.range,variables:n.variables})}}}if(e.globalScope){for(const n of e.globalScope.through){const e=n.identifier.name;if(H(e)){const r=V(e,f);if(!r||r.ids.length<1)continue;const i=R(r.info,r.ids,p,u);if(!i.ids)continue;const{usedNames:s,alreadyCheckedScopes:o}=_(i.info.module.identifier(),i.info.type==="external"?"external":i.ids.length>0?i.ids[0]:"");for(const e of t){if(e.range[0]<=n.identifier.range[0]&&e.range[1]>=n.identifier.range[1]){for(const t of e.variables){s.add(t.name)}}}N(n.from,s,o,b)}else{y.add(e)}}}}}for(const e of f){switch(e.type){case"concatenated":{const{usedNames:t}=_(e.module.identifier(),"");const n=this.findNewName("namespaceObject",y,t,e.module.readableIdentifier(u));y.add(n);e.namespaceObjectName=n;for(const t of e.moduleScope.variables){const n=t.name;const{usedNames:r,alreadyCheckedScopes:i}=_(e.module.identifier(),n);if(y.has(n)||r.has(n)){const s=L(t);for(const e of s){N(e.from,r,i,b)}const o=this.findNewName(n,y,r,e.module.readableIdentifier(u));y.add(o);e.internalNames.set(n,o);const a=e.source;const c=new Set(s.map(e=>e.identifier).concat(t.identifiers));for(const t of c){const n=t.range;const r=B(e.ast,t);if(r&&r.length>1&&r[1].type==="Property"&&r[1].shorthand){a.insert(n[1],`: ${o}`)}else{a.replace(n[0],n[1]-1,o)}}}else{y.add(n);e.internalNames.set(n,n)}}break}case"external":{const{usedNames:t}=_(e.module.identifier(),"external");const n=this.findNewName("",y,t,e.module.readableIdentifier(u));y.add(n);e.name=n;if(e.module.buildMeta.exportsType==="default"||e.module.buildMeta.exportsType==="flagged"||e.module.buildMeta.exportsType==="dynamic"||!e.module.buildMeta.exportsType){const n=this.findNewName("namespaceObject",y,t,e.module.readableIdentifier(u));y.add(n);e.interopNamespaceObjectName=n}if(e.module.buildMeta.exportsType==="dynamic"||!e.module.buildMeta.exportsType){const n=this.findNewName("default",y,t,e.module.readableIdentifier(u));y.add(n);e.interopDefaultAccessName=n}break}}}for(const e of f){if(e.type==="concatenated"){for(const r of e.globalScope.through){const i=r.identifier.name;const s=V(i,f);if(s){const i=P(n,s.info,s.ids,p,o,u,t,s.call,!s.directImport,s.strict,s.asiSafe);const a=r.identifier.range;const c=e.source;c.replace(a[0],a[1]-1,i)}}}}const E=new Map;const w=new Set;const S=p.get(this.rootModule);for(const e of this.rootModule.dependencies){if(e instanceof m){const t=n.getExportsInfo(this.rootModule).getUsedName(e.name,o);if(t){if(!E.has(t)){E.set(t,()=>`/* binding */ ${S.internalNames.get(e.id)}`)}}else{w.add(e.name||"namespace")}}else if(e instanceof d){const t=n.getExportsInfo(this.rootModule).getUsedName("default",o);if(t){if(!E.has(t)){E.set(t,()=>`/* default */ ${S.internalNames.get(typeof e.declarationId==="string"?e.declarationId:"__WEBPACK_MODULE_DEFAULT_EXPORT__")}`)}}else{w.add("default")}}else if(e instanceof h){const r=q(e,n,o);for(const i of r){const r=n.getModule(e);const s=n.getExportsInfo(this.rootModule).getUsedName(i.name,o);if(s){if(!E.has(s)){const e=p.get(r);if(!e){throw new Error(`Imported module ${r.identifier()} is not in moduleToInfoMap: ${Array.from(p.keys(),e=>e.identifier()).join(", ")}`)}E.set(s,r=>{const s=P(n,e,i.ids,p,o,r,t,false,false,this.rootModule.buildMeta.strictHarmonyModule,true);return`/* reexport */ ${s}`})}}else{w.add(i.name)}}}}const k=new s;if(n.getExportsInfo(this).otherExportsInfo.getUsed(o)!==c.Unused){k.add(`// ESM COMPAT FLAG\n`);k.add(t.defineEsModuleFlagStatement({exportsArgument:this.exportsArgument,runtimeRequirements:a}))}if(E.size>0){a.add(l.exports);a.add(l.definePropertyGetters);const e=[];for(const[n,r]of E){e.push(`\n ${JSON.stringify(n)}: ${t.returningFunction(r(u))}`)}k.add(`\n// EXPORTS\n`);k.add(`${l.definePropertyGetters}(${this.exportsArgument}, {${e.join(",")}\n});\n`)}if(w.size>0){k.add(`\n// UNUSED EXPORTS: ${M(w)}\n`)}for(const e of f){if(e.type==="concatenated"&&e.namespaceObjectSource){k.add(`\n// NAMESPACE OBJECT: ${e.module.readableIdentifier(u)}\n`);k.add(e.namespaceObjectSource);a.add(l.makeNamespaceObject);a.add(l.definePropertyGetters)}}for(const e of f){switch(e.type){case"concatenated":{k.add(`\n// CONCATENATED MODULE: ${e.module.readableIdentifier(u)}\n`);k.add(e.source);if(e.runtimeRequirements){for(const t of e.runtimeRequirements){a.add(t)}}break}case"external":k.add(`\n// EXTERNAL MODULE: ${e.module.readableIdentifier(u)}\n`);a.add(l.require);k.add(`var ${e.name} = __webpack_require__(${JSON.stringify(r.getModuleId(e.module))});\n`);if(e.interopNamespaceObjectUsed){if(e.module.buildMeta.exportsType==="default"){a.add(l.createFakeNamespaceObject);k.add(`var ${e.interopNamespaceObjectName} = /*#__PURE__*/${l.createFakeNamespaceObject}(${e.name}, 2);\n`)}else if(e.module.buildMeta.exportsType==="flagged"||e.module.buildMeta.exportsType==="dynamic"||!e.module.buildMeta.exportsType){a.add(l.createFakeNamespaceObject);k.add(`var ${e.interopNamespaceObjectName} = /*#__PURE__*/${l.createFakeNamespaceObject}(${e.name});\n`)}}if(e.interopDefaultAccessUsed){a.add(l.compatGetDefaultExport);k.add(`var ${e.interopDefaultAccessName} = /*#__PURE__*/${l.compatGetDefaultExport}(${e.name});\n`)}break;default:throw new Error(`Unsupported concatenation entry type ${e.type}`)}}const D={sources:new Map([["javascript",new i(k)]]),runtimeRequirements:a};return D}_analyseModule(e,t,n,i,s,a){if(e.type==="concatenated"){const c=e.module;try{const u=c.codeGeneration({dependencyTemplates:t,runtimeTemplate:n,moduleGraph:i,chunkGraph:s,runtime:a});const l=u.sources.get("javascript");const f=l.source().toString();let p;try{p=_.parse(f,{sourceType:"module"})}catch(e){if(e.loc&&typeof e.loc==="object"&&typeof e.loc.line==="number"){const t=e.loc.line;const n=f.split("\n");e.message+="\n| "+n.slice(Math.max(0,t-3),t+2).join("\n| ")}throw e}const d=r.analyze(p,{ecmaVersion:6,sourceType:"module",optimistic:true,ignoreEval:true,impliedStrict:true});const h=d.acquire(p);const m=h.childScopes[0];const g=new o(l);e.runtimeRequirements=u.runtimeRequirements;e.ast=p;e.internalSource=l;e.source=g;e.globalScope=h;e.moduleScope=m}catch(e){e.message+=`\nwhile analysing module ${c.identifier()} for concatenation`;throw e}}}_getHashDigest(e,t,n){const r=e.getModuleHash(this,n);const i=t.getHash();return`${r}-${i}`}_getModulesWithInfo(e,t){const n=[];let r=0;const i=this._createConcatenationList(this.rootModule,this._modules,undefined,e);for(const s of i){switch(s.type){case"concatenated":{const i=new Map;const o=new Map;for(const n of s.module.dependencies){if(n instanceof m){if(!i.has(n.name)){i.set(n.name,n.id)}}else if(n instanceof d){if(!i.has("default")){i.set("default",typeof n.declarationId==="string"?n.declarationId:"__WEBPACK_MODULE_DEFAULT_EXPORT__")}}else if(n instanceof h){const r=n.name;const i=n.getIds(e);const s=e.getModule(n);if(r){if(!o.has(r)){o.set(r,{module:s,exportName:i,dependency:n})}}else if(s){const{exports:r}=n.getStarReexports(e,t,undefined,s);if(r){for(const e of r){if(!o.has(e)){o.set(e,{module:s,exportName:[e],dependency:n})}}}}}}n.push({type:"concatenated",module:s.module,index:r++,ast:undefined,internalSource:undefined,runtimeRequirements:undefined,source:undefined,globalScope:undefined,moduleScope:undefined,internalNames:new Map,exportMap:i,reexportMap:o,hasNamespaceObject:false,namespaceObjectName:undefined,namespaceObjectSource:null});break}case"external":n.push({type:"external",module:s.module,index:r++,name:undefined,interopNamespaceObjectUsed:false,interopNamespaceObjectName:undefined,interopDefaultAccessUsed:false,interopDefaultAccessName:undefined});break;default:throw new Error(`Unsupported concatenation entry type ${s.type}`)}}return n}_getInnerDependencyTemplates(e,t){const n=e.clone();n.set(v,new HarmonyImportSpecifierDependencyConcatenatedTemplate(e.get(v),t));n.set(y,new HarmonyImportSideEffectDependencyConcatenatedTemplate(e.get(y),t));n.set(m,new NullTemplate);n.set(d,new HarmonyExportExpressionDependencyConcatenatedTemplate(e.get(d),this.rootModule,t));n.set(h,new NullTemplate);n.set(p,new NullTemplate);n.updateHash(this.identifier());return n}findNewName(e,t,n,r){let i=e;if(i==="__WEBPACK_MODULE_DEFAULT_EXPORT__")i="";r=r.replace(/\.+\/|(\/index)?\.([a-zA-Z0-9]{1,4})($|\s|\?)|\s*\+\s*\d+\s*modules/g,"");const s=r.split("/");while(s.length){i=s.pop()+(i?"_"+i:"");const e=f.toIdentifier(i);if(!t.has(e)&&(!n||!n.has(e)))return e}let o=0;let a=f.toIdentifier(`${i}_${o}`);while(t.has(a)||n&&n.has(a)){o++;a=f.toIdentifier(`${i}_${o}`)}return a}updateHash(e,t){const{chunkGraph:n,runtime:r}=t;for(const i of this._createConcatenationList(this.rootModule,this._modules,r,n.moduleGraph)){switch(i.type){case"concatenated":i.module.updateHash(e,t);break;case"external":e.update(`${n.getModuleId(i.module)}`);break}}super.updateHash(e,t)}static deserialize(e){const t=new ConcatenatedModule({identifier:undefined,rootModule:undefined,modules:undefined});t.deserialize(e);return t}}x(ConcatenatedModule,"webpack/lib/optimize/ConcatenatedModule");class HarmonyImportSpecifierDependencyConcatenatedTemplate extends a{constructor(e,t){super();this.originalTemplate=e;this.modulesMap=t}apply(e,t,n){const{moduleGraph:r,module:i}=n;const s=e;const o=r.getModule(s);const a=this.modulesMap.get(o);if(!a){this.originalTemplate.apply(e,t,n);return}let c;const u=s.getIds(r);if(u.length===0){c=U({info:a,strict:i.buildMeta.strictHarmonyModule,asiSafe:s.asiSafe})}else if(s.namespaceObjectAsContext&&u.length===1){c=U({info:a,strict:i.buildMeta.strictHarmonyModule,asiSafe:s.asiSafe})+C(u)}else{c=U({info:a,ids:u,call:s.call,directImport:s.directImport,strict:i.buildMeta.strictHarmonyModule,asiSafe:s.asiSafe})}if(s.shorthand){t.insert(s.range[1],": "+c)}else{t.replace(s.range[0],s.range[1]-1,c)}}}class HarmonyImportSideEffectDependencyConcatenatedTemplate extends a{constructor(e,t){super();this.originalTemplate=e;this.modulesMap=t}apply(e,t,n){const{moduleGraph:r}=n;const i=e;const s=r.getModule(i);const o=this.modulesMap.get(s);if(!o){this.originalTemplate.apply(e,t,n);return}}}class HarmonyExportExpressionDependencyConcatenatedTemplate extends a{constructor(e,t,n,r,i){super();this.originalTemplate=e;this.rootModule=t;this.modulesMap=n;this.exportsMap=r;this.unusedExports=i}apply(e,t,{module:n,moduleGraph:r,runtimeTemplate:i,initFragments:s}){const o=e;const{declarationId:a}=o;if(a){let e;if(typeof a==="string"){e=a}else{e="__WEBPACK_MODULE_DEFAULT_EXPORT__";t.replace(a.range[0],a.range[1]-1,`${a.prefix}${e}${a.suffix}`)}t.replace(o.rangeStatement[0],o.range[0]-1,`/* harmony default export */ ${o.prefix}`)}else{const e=`/* harmony default export */ ${i.supportsConst()?"const":"var"} __WEBPACK_MODULE_DEFAULT_EXPORT__ = `;if(o.range){t.replace(o.rangeStatement[0],o.range[0]-1,e+"("+o.prefix);t.replace(o.range[1],o.rangeStatement[1]-.5,");");return}t.replace(o.rangeStatement[0],o.rangeStatement[1]-1,e+o.prefix)}}}class NullTemplate{apply(){}}e.exports=ConcatenatedModule},38173:(e,t,n)=>{"use strict";const{STAGE_BASIC:r}=n(82414);class EnsureChunkConditionsPlugin{apply(e){e.hooks.compilation.tap("EnsureChunkConditionsPlugin",e=>{const t=t=>{const n=e.chunkGraph;const r=new Set;const i=new Set;for(const t of e.modules){for(const s of n.getModuleChunksIterable(t)){if(!t.chunkCondition(s,e)){r.add(s);for(const e of s.groupsIterable){i.add(e)}}}if(r.size===0)continue;const s=new Set;e:for(const n of i){for(const r of n.chunks){if(t.chunkCondition(r,e)){s.add(r);continue e}}if(n.isInitial()){throw new Error("Cannot fullfil chunk condition of "+t.identifier())}for(const e of n.parentsIterable){i.add(e)}}for(const e of r){n.disconnectChunkAndModule(e,t)}for(const e of s){n.connectChunkAndModule(e,t)}r.clear();i.clear()}};e.hooks.optimizeChunks.tap({name:"EnsureChunkConditionsPlugin",stage:r},t)})}}e.exports=EnsureChunkConditionsPlugin},76627:e=>{"use strict";class FlagIncludedChunksPlugin{apply(e){e.hooks.compilation.tap("FlagIncludedChunksPlugin",e=>{e.hooks.optimizeChunkIds.tap("FlagIncludedChunksPlugin",t=>{const n=e.chunkGraph;const r=new WeakMap;const i=e.modules.size;const s=1/Math.pow(1/i,1/31);const o=Array.from({length:31},(e,t)=>Math.pow(s,t)|0);let a=0;for(const t of e.modules){let e=30;while(a%o[e]!==0){e--}r.set(t,1<<e);a++}const c=new WeakMap;for(const e of t){let t=0;for(const i of n.getChunkModulesIterable(e)){t|=r.get(i)}c.set(e,t)}for(const e of t){const t=c.get(e);const r=n.getNumberOfChunkModules(e);if(r===0)continue;let i=undefined;for(const t of n.getChunkModulesIterable(e)){if(i===undefined||n.getNumberOfModuleChunks(i)>n.getNumberOfModuleChunks(t))i=t}e:for(const s of n.getModuleChunksIterable(i)){if(e===s)continue;const i=n.getNumberOfChunkModules(s);if(i===0)continue;if(r>i)continue;const o=c.get(s);if((o&t)!==t)continue;for(const t of n.getChunkModulesIterable(e)){if(!n.isModuleInChunk(t,s))continue e}s.ids.push(e.id)}}})})}}e.exports=FlagIncludedChunksPlugin},58018:(e,t)=>{"use strict";const n=new WeakMap;const r=Symbol("top level symbol");function getState(e){return n.get(e)}t.bailout=(e=>{n.set(e,false)});t.enable=(e=>{const t=n.get(e);if(t===false){return}n.set(e,{innerGraph:new Map,currentTopLevelSymbol:undefined,usageCallbackMap:new Map})});t.isEnabled=(e=>{const t=n.get(e);return!!t});t.addUsage=((e,t,n)=>{const r=getState(e);if(r){const{innerGraph:e}=r;const i=e.get(t);if(n===true){e.set(t,true)}else if(i===undefined){e.set(t,new Set([n]))}else if(i!==true){i.add(n)}}});t.addVariableUsage=((e,n,i)=>{const s=e.getTagData(n,r);if(s){t.addUsage(e.state,s,i)}});t.inferDependencyUsage=(e=>{const t=getState(e);if(!t){return}const{innerGraph:n,usageCallbackMap:r}=t;const i=new Set(n.keys());while(i.size>0){for(const e of i){let t=new Set;let r=true;const s=n.get(e);if(s!==true&&s!==undefined){for(const i of s){if(typeof i==="string"){t.add(i)}else{const o=n.get(i);if(o===true){t=true;break}if(o!==undefined){for(const n of o){if(n===e)continue;if(s.has(n))continue;t.add(n);if(typeof n!=="string"){r=false}}}}}if(t===true){n.set(e,true)}else if(t.size===0){n.set(e,undefined)}else{n.set(e,t)}}if(r){i.delete(e)}}}for(const[e,t]of r){const r=n.get(e);for(const e of t){e(r===undefined?false:r)}}});t.onUsage=((e,t)=>{const n=getState(e);if(n){const{usageCallbackMap:e,currentTopLevelSymbol:r}=n;if(r){let n=e.get(r);if(n===undefined){n=new Set;e.set(r,n)}n.add(t)}else{t(true)}}else{t(undefined)}});t.setTopLevelSymbol=((e,t)=>{const n=getState(e);if(n){n.currentTopLevelSymbol=t}});t.getTopLevelSymbol=(e=>{const t=getState(e);if(t){return t.currentTopLevelSymbol}});t.tagTopLevelSymbol=((e,t)=>{const n=getState(e.state);if(!n)return;e.defineVariable(t);const i=e.getTagData(t,r);if(i){return i}const s=new TopLevelSymbol(t);e.tagVariable(t,r,s);return s});class TopLevelSymbol{constructor(e){this.name=e}}t.TopLevelSymbol=TopLevelSymbol;t.topLevelSymbolTag=r},10032:(e,t,n)=>{"use strict";const{harmonySpecifierTag:r}=n(29381);const i=n(53567);const s=n(58018);const{topLevelSymbolTag:o}=s;const a=(e,t,n)=>{switch(e.type){case"Identifier":return t.isVariableDefined(e.name)||t.getTagData(e.name,r);case"ClassDeclaration":case"ClassExpression":if(e.body.type!=="ClassBody")return false;if(e.superClass&&!a(e.superClass,t,e.range[0])){return false}return e.body.body.every(e=>{switch(e.type){case"ClassProperty":if(e.static)return a(e.value,t,e.range[0]);break}return true});case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"Literal":return true;case"ConditionalExpression":return a(e.test,t,n)&&a(e.consequent,t,e.test.range[1])&&a(e.alternate,t,e.consequent.range[1]);case"SequenceExpression":return e.expressions.every(e=>{const r=a(e,t,n);n=e.range[1];return r});case"CallExpression":{const r=e.range[0]-n>12&&t.getComments([n,e.range[0]]).some(e=>e.type==="Block"&&/^\s*(#|@)__PURE__\s*$/.test(e.value));if(!r)return false;n=e.callee.range[1];return e.arguments.every(e=>{if(e.type==="SpreadElement")return false;const r=a(e,t,n);n=e.range[1];return r})}}return false};class InnerGraphPlugin{apply(e){e.hooks.compilation.tap("InnerGraphPlugin",(e,{normalModuleFactory:t})=>{const n=e.getLogger("webpack.InnerGraphPlugin");e.dependencyTemplates.set(i,new i.Template);const r=(e,t)=>{const r=t=>{s.onUsage(e.state,n=>{switch(n){case undefined:case true:return;default:{const r=new i(t.range);r.loc=t.loc;r.usedByExports=n;e.state.module.addDependency(r);break}}})};e.hooks.program.tap("InnerGraphPlugin",()=>{s.enable(e.state)});e.hooks.finish.tap("InnerGraphPlugin",()=>{if(!s.isEnabled(e.state))return;n.time("infer dependency usage");s.inferDependencyUsage(e.state);n.timeAggregate("infer dependency usage")});const c=new WeakMap;const u=new WeakMap;const l=new WeakMap;const f=new WeakMap;const p=new WeakSet;e.hooks.preStatement.tap("InnerGraphPlugin",t=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true){if(t.type==="FunctionDeclaration"){const n=t.id?t.id.name:"*default*";const r=s.tagTopLevelSymbol(e,n);c.set(t,r);return true}}});e.hooks.blockPreStatement.tap("InnerGraphPlugin",t=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true){if(t.type==="ClassDeclaration"){const n=t.id?t.id.name:"*default*";const r=s.tagTopLevelSymbol(e,n);l.set(t,r);return true}if(t.type==="ExportDefaultDeclaration"){const n="*default*";const r=s.tagTopLevelSymbol(e,n);const i=t.declaration;if(i.type==="ClassExpression"||i.type==="ClassDeclaration"){l.set(i,r)}else if(a(i,e,i.range[1])){c.set(t,r);if(!i.type.endsWith("FunctionExpression")&&!i.type.endsWith("Declaration")&&i.type!=="Literal"){u.set(t,i)}}}}});e.hooks.preDeclarator.tap("InnerGraphPlugin",(t,n)=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true&&t.init&&t.id.type==="Identifier"){const n=t.id.name;if(t.init.type==="ClassExpression"){const r=s.tagTopLevelSymbol(e,n);l.set(t.init,r)}else if(a(t.init,e,t.id.range[1])){const r=s.tagTopLevelSymbol(e,n);f.set(t,r);if(!t.init.type.endsWith("FunctionExpression")&&t.init.type!=="Literal"){p.add(t)}return true}}});e.hooks.statement.tap("InnerGraphPlugin",t=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true){s.setTopLevelSymbol(e.state,undefined);const n=c.get(t);if(n){s.setTopLevelSymbol(e.state,n);const r=u.get(t);if(r){s.onUsage(e.state,n=>{switch(n){case undefined:case true:return;default:{const s=new i(r.range);s.loc=t.loc;s.usedByExports=n;e.state.module.addDependency(s);break}}})}}}});e.hooks.classExtendsExpression.tap("InnerGraphPlugin",(t,n)=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true){const i=l.get(n);if(i&&a(t,e,n.id?n.id.range[1]:n.range[0])){s.setTopLevelSymbol(e.state,i);r(t)}}});e.hooks.classBodyElement.tap("InnerGraphPlugin",(t,n)=>{if(!s.isEnabled(e.state))return;if(e.scope.topLevelScope===true){const r=l.get(n);if(r){if(t.type==="MethodDefinition"){s.setTopLevelSymbol(e.state,r)}else if(t.type==="ClassProperty"&&!t.static){s.setTopLevelSymbol(e.state,r)}else{s.setTopLevelSymbol(e.state,undefined)}}}});e.hooks.declarator.tap("InnerGraphPlugin",(t,n)=>{if(!s.isEnabled(e.state))return;const o=f.get(t);if(o){s.setTopLevelSymbol(e.state,o);if(p.has(t)){if(t.init.type==="ClassExpression"){if(t.init.superClass){r(t.init.superClass)}}else{s.onUsage(e.state,n=>{switch(n){case undefined:case true:return;default:{const r=new i(t.init.range);r.loc=t.loc;r.usedByExports=n;e.state.module.addDependency(r);break}}})}}e.walkExpression(t.init);s.setTopLevelSymbol(e.state,undefined);return true}});e.hooks.expression.for(o).tap("InnerGraphPlugin",()=>{const t=e.currentTagData;const n=s.getTopLevelSymbol(e.state);s.addUsage(e.state,t,n||true)});e.hooks.assign.for(o).tap("InnerGraphPlugin",t=>{if(!s.isEnabled(e.state))return;if(t.operator==="=")return true})};t.hooks.parser.for("javascript/auto").tap("InnerGraphPlugin",r);t.hooks.parser.for("javascript/esm").tap("InnerGraphPlugin",r);e.hooks.finishModules.tap("InnerGraphPlugin",()=>{n.timeAggregateEnd("infer dependency usage")})})}}e.exports=InnerGraphPlugin},92922:(e,t,n)=>{"use strict";const r=n(15235);const i=n(97350);const{STAGE_ADVANCED:s}=n(82414);const o=n(37496);const{compareChunks:a}=n(68673);const c=(e,t,n)=>{const r=e.get(t);if(r===undefined){e.set(t,new Set([n]))}else{r.add(n)}};class LimitChunkCountPlugin{constructor(e){r(i,e,{name:"Limit Chunk Count Plugin",baseDataPath:"options"});this.options=e}apply(e){const t=this.options;e.hooks.compilation.tap("LimitChunkCountPlugin",e=>{e.hooks.optimizeChunks.tap({name:"LimitChunkCountPlugin",stage:s},n=>{const r=e.chunkGraph;const i=t.maxChunks;if(!i)return;if(i<1)return;if(e.chunks.size<=i)return;let s=e.chunks.size-i;const u=a(r);const l=Array.from(n).sort(u);const f=new o(e=>e.sizeDiff,(e,t)=>t-e,e=>e.integratedSize,(e,t)=>e-t,e=>e.bIdx-e.aIdx,(e,t)=>e-t,(e,t)=>e.bIdx-t.bIdx);const p=new Map;l.forEach((e,n)=>{for(let i=0;i<n;i++){const s=l[i];if(!r.canChunksBeIntegrated(s,e))continue;const o=r.getIntegratedChunksSize(s,e,t);const a=r.getChunkSize(s,t);const u=r.getChunkSize(e,t);const d={deleted:false,sizeDiff:a+u-o,integratedSize:o,a:s,b:e,aIdx:i,bIdx:n,aSize:a,bSize:u};f.add(d);c(p,s,d);c(p,e,d)}return f});const d=new Set;let h=false;e:while(true){const n=f.popFirst();if(n===undefined)break;n.deleted=true;const{a:i,b:o,integratedSize:a}=n;if(d.size>0){const e=new Set(i.groupsIterable);for(const t of o.groupsIterable){e.add(t)}for(const t of e){for(const e of d){if(e!==i&&e!==o&&e.isInGroup(t)){s--;if(s<=0)break e;d.add(i);d.add(o);continue e}}for(const n of t.parentsIterable){e.add(n)}}}if(i.integrate(o,"limit")){e.chunks.delete(o);d.add(i);h=true;s--;if(s<=0)break;for(const e of p.get(i)){if(e.deleted)continue;e.deleted=true;f.delete(e)}for(const e of p.get(o)){if(e.deleted)continue;if(e.a===o){if(!r.canChunksBeIntegrated(i,e.b)){e.deleted=true;f.delete(e);continue}const n=i.integratedSize(e.b,t);const s=f.startUpdate(e);e.a=i;e.integratedSize=n;e.aSize=a;e.sizeDiff=e.bSize+a-n;s()}else if(e.b===o){if(!r.canChunksBeIntegrated(e.a,i)){e.deleted=true;f.delete(e);continue}const n=e.a.integratedSize(i,t);const s=f.startUpdate(e);e.b=i;e.integratedSize=n;e.bSize=a;e.sizeDiff=a+e.aSize-n;s()}}p.set(i,p.get(o));p.delete(o)}}if(h)return true})})}}e.exports=LimitChunkCountPlugin},41694:(e,t,n)=>{"use strict";const{UsageState:r}=n(76632);const{numberToIdentifier:i,NUMBER_OF_IDENTIFIER_START_CHARS:s,NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS:o}=n(58159);const{assignDeterministicIds:a}=n(30328);const{compareSelect:c,compareStringsNumeric:u}=n(68673);const l=[];const f=[];const p=e=>{if(e.otherExportsInfo.getUsed(undefined)!==r.Unused)return false;let t=false;for(const n of e.exports){if(n.canMangle===true){t=true}}return t};const d=c(e=>e.name,u);const h=(e,t,n)=>{if(!p(t))return;const c=new Set;const u=[];const m=n?f:l;for(const n of t.ownedExports){const t=n.name;if(!n.hasUsedName()){if(n.canMangle!==true||t.length===1&&/^[a-zA-Z0-9_$]/.test(t)||e&&t.length===2&&/^[a-zA-Z_$][a-zA-Z0-9_$]|^[1-9][0-9]/.test(t)||n.provided!==true&&n.name in m||n.provided===false&&n.getUsed(undefined)===r.Unused){n.setUsedName(t);c.add(t)}else{u.push(n)}}if(n.exportsInfoOwned){const t=n.getUsed(undefined);if(t===r.OnlyPropertiesUsed||t===r.Unused){h(e,n.exportsInfo,true)}}}if(e){a(u,e=>e.name,d,(e,t)=>{const n=i(t);const r=c.size;c.add(n);if(r===c.size)return false;e.setUsedName(n);return true},[s,s*o],o,c.size)}else{const e=[];const t=[];for(const n of u){if(n.getUsed(undefined)===r.Unused){t.push(n)}else{e.push(n)}}e.sort(d);t.sort(d);let n=0;for(const r of[e,t]){for(const e of r){let t;do{t=i(n++)}while(c.has(t));e.setUsedName(t)}}}};class MangleExportsPlugin{constructor(e){this._deterministic=e}apply(e){const{_deterministic:t}=this;e.hooks.compilation.tap("MangleExportsPlugin",e=>{const n=e.moduleGraph;e.hooks.optimizeCodeGeneration.tap("MangleExportsPlugin",e=>{for(const r of e){const e=n.getExportsInfo(r);h(t,e,false)}})})}}e.exports=MangleExportsPlugin},70026:(e,t,n)=>{"use strict";const{STAGE_BASIC:r}=n(82414);const{runtimeEqual:i}=n(37416);class MergeDuplicateChunksPlugin{apply(e){e.hooks.compilation.tap("MergeDuplicateChunksPlugin",e=>{e.hooks.optimizeChunks.tap({name:"MergeDuplicateChunksPlugin",stage:r},t=>{const{chunkGraph:n,moduleGraph:r}=e;const s=new Set;for(const o of t){let t;for(const e of n.getChunkModulesIterable(o)){if(t===undefined){for(const r of n.getModuleChunksIterable(e)){if(r!==o&&n.getNumberOfChunkModules(o)===n.getNumberOfChunkModules(r)&&!s.has(r)){if(t===undefined){t=new Set}t.add(r)}}if(t===undefined)break}else{for(const r of t){if(!n.isModuleInChunk(e,r)){t.delete(r)}}if(t.size===0)break}}if(t!==undefined&&t.size>0){e:for(const s of t){if(s.hasRuntime()!==o.hasRuntime())continue;if(n.getNumberOfEntryModules(o)>0)continue;if(n.getNumberOfEntryModules(s)>0)continue;if(!i(o.runtime,s.runtime)){for(const e of n.getChunkModulesIterable(o)){const t=r.getExportsInfo(e);if(!t.isEquallyUsed(o.runtime,s.runtime)){continue e}}}if(n.canChunksBeIntegrated(o,s)){n.integrateChunks(o,s);e.chunks.delete(s)}}}s.add(o)}})})}}e.exports=MergeDuplicateChunksPlugin},52383:(e,t,n)=>{"use strict";const r=n(15235);const i=n(84796);const{STAGE_ADVANCED:s}=n(82414);class MinChunkSizePlugin{constructor(e){r(i,e,{name:"Min Chunk Size Plugin",baseDataPath:"options"});this.options=e}apply(e){const t=this.options;const n=t.minChunkSize;e.hooks.compilation.tap("MinChunkSizePlugin",e=>{e.hooks.optimizeChunks.tap({name:"MinChunkSizePlugin",stage:s},r=>{const i=e.chunkGraph;const s={chunkOverhead:1,entryChunkMultiplicator:1};const o=new Map;const a=[];const c=[];const u=[];for(const e of r){if(i.getChunkSize(e,s)<n){c.push(e);for(const t of u){if(i.canChunksBeIntegrated(t,e))a.push([t,e])}}else{for(const t of c){if(i.canChunksBeIntegrated(t,e))a.push([t,e])}}o.set(e,i.getChunkSize(e,t));u.push(e)}const l=a.map(e=>{const n=o.get(e[0]);const r=o.get(e[1]);const s=i.getIntegratedChunksSize(e[0],e[1],t);const a=[n+r-s,s,e[0],e[1]];return a}).sort((e,t)=>{const n=t[0]-e[0];if(n!==0)return n;return e[1]-t[1]});if(l.length===0)return;const f=l[0];i.integrateChunks(f[2],f[3]);e.chunks.delete(f[3]);return true})})}}e.exports=MinChunkSizePlugin},1697:(e,t,n)=>{"use strict";const r=n(9192);const i=n(81627);class MinMaxSizeWarning extends i{constructor(e,t,n){let i="Fallback cache group";if(e){i=e.length>1?`Cache groups ${e.sort().join(", ")}`:`Cache group ${e[0]}`}super(`SplitChunksPlugin\n`+`${i}\n`+`Configured minSize (${r.formatSize(t)}) is `+`bigger than maxSize (${r.formatSize(n)}).\n`+"This seem to be a invalid optimization.splitChunks configuration.")}}e.exports=MinMaxSizeWarning},35442:(e,t,n)=>{"use strict";const r=n(62355);const i=n(45137);const s=n(75412);const o=n(2210);const a=n(31467);const c=n(53520);const{STAGE_DEFAULT:u}=n(82414);const l=n(54290);const f=n(37359);const p=n(21809);const d=n(73158);const h=n(80371);const{compareModulesByIdentifier:m}=n(68673);const{intersectRuntime:g,mergeRuntimeOwned:y}=n(37416);const v=n(95734);const _=e=>{return"ModuleConcatenation bailout: "+e};class ModuleConcatenationPlugin{constructor(e){if(typeof e!=="object")e={};this.options=e}apply(e){e.hooks.compilation.tap("ModuleConcatenationPlugin",(t,{normalModuleFactory:n})=>{const h=t.moduleGraph;const m=new Map;const g=t.getCache("ModuleConcatenationPlugin");const b=(e,t)=>{E(e,t);h.getOptimizationBailout(e).push(typeof t==="function"?e=>_(t(e)):_(t))};const E=(e,t)=>{m.set(e,t)};const w=(e,t)=>{const n=m.get(e);if(typeof n==="function")return n(t);return n};const S=(e,t)=>n=>{if(typeof t==="function"){return _(`Cannot concat with ${e.readableIdentifier(n)}: ${t(n)}`)}const r=w(e,n);const i=r?`: ${r}`:"";if(e===t){return _(`Cannot concat with ${e.readableIdentifier(n)}${i}`)}else{return _(`Cannot concat with ${e.readableIdentifier(n)} because of ${t.readableIdentifier(n)}${i}`)}};t.hooks.optimizeChunkModules.tapAsync({name:"ModuleConcatenationPlugin",stage:u},(n,u,m)=>{const _=t.getLogger("ModuleConcatenationPlugin");const w=t.chunkGraph;const k=[];const D=new Set;_.time("select relevant modules");for(const e of u){if(!e.buildMeta||e.buildMeta.exportsType!=="namespace"||e.presentationalDependencies===undefined||!e.presentationalDependencies.some(e=>e instanceof l)){b(e,"Module is not an ECMAScript module");continue}if(e.buildInfo&&e.buildInfo.moduleConcatenationBailout){b(e,`Module uses ${e.buildInfo.moduleConcatenationBailout}`);continue}if(!(e instanceof c)){b(e,`Module is not a normal module`);continue}if(h.isAsync(e)){b(e,`Module is async`);continue}const t=h.getExportsInfo(e);if(!t.hasStaticExportsList(undefined)){b(e,"Module exports are unknown");continue}if(e.dependencies.some(e=>e instanceof p||e instanceof d)){b(e,"Module uses Hot Module Replacement");continue}if(w.getNumberOfModuleChunks(e)===0){b(e,"Module is not in any chunk");continue}k.push(e);if(w.isEntryModule(e)){E(e,"Module is an entry point");continue}D.add(e)}_.timeEnd("select relevant modules");_.debug(`${k.length} potential root modules, ${D.size} potential inner modules`);_.time("sort relevant modules");k.sort((e,t)=>{return h.getDepth(e)-h.getDepth(t)});_.timeEnd("sort relevant modules");_.time("find modules to concatenate");const x=[];const C=new Set;for(const e of k){if(C.has(e))continue;let n=undefined;for(const t of w.getModuleRuntimes(e)){n=y(n,t)}const r=new ConcatConfiguration(e);const i=new Map;const s=new Set;for(const r of this._getImports(t,e,n)){s.add(r)}for(const e of s){const o=r.snapshot();const a=new Set;const c=this._tryToAdd(t,r,e,n,D,a,i,w);if(c){i.set(e,c);r.addWarning(e,c);r.rollback(o)}else{for(const e of a){s.add(e)}}}if(!r.isEmpty()){x.push(r);for(const e of r.getModules()){if(e!==r.rootModule){C.add(e)}}}else{const t=h.getOptimizationBailout(e);for(const e of r.getWarningsSorted()){t.push(S(e[0],e[1]))}}}_.timeEnd("find modules to concatenate");_.debug(`${x.length} concat configurations`);_.time(`sort concat configurations`);x.sort((e,t)=>{return t.modules.size-e.modules.size});_.timeEnd(`sort concat configurations`);const A=new Set;_.time("create concatenated modules");r.each(x,(n,r)=>{const c=n.rootModule;if(A.has(c))return r();const u=n.getModules();for(const e of u){A.add(e)}let l=v.create(c,u,e.root);const p=g.getItemCache(l.identifier(),null);const d=()=>{p.get((e,t)=>{if(e){return r(new o(l,e))}if(t){t.updateCacheModule(l);l=t}m()})};const m=()=>{l.build(e.options,t,null,null,e=>{if(e){if(!e.module){e.module=l}return r(e)}y()})};const y=()=>{i.setChunkGraphForModule(l,w);s.setModuleGraphForModule(l,h);for(const e of n.getWarningsSorted()){h.getOptimizationBailout(l).push(S(e[0],e[1]))}h.cloneModuleAttributes(c,l);for(const e of u){if(t.builtModules.has(e)){t.builtModules.add(l)}if(e!==c){h.copyOutgoingModuleConnections(e,l,t=>{return t.originModule===e&&!(t.dependency instanceof f&&u.has(t.module))});for(const t of w.getModuleChunksIterable(c)){w.disconnectChunkAndModule(t,e)}}}t.modules.delete(c);w.replaceModule(c,l);h.moveModuleConnections(c,l,e=>{const t=e.module===c?e.originModule:e.module;const n=e.dependency instanceof f&&u.has(t);return!n});t.modules.add(l);p.store(l,e=>{if(e){return r(new a(l,e))}r()})};d()},e=>{_.timeEnd("create concatenated modules");process.nextTick(()=>m(e))})})})}_getImports(e,t,n){const r=e.moduleGraph;const i=new Set;for(const s of t.dependencies){if(!(s instanceof f))continue;const o=r.getConnection(s);if(!o||!o.module||!o.isActive(n)){continue}const a=e.getDependencyReferencedExports(s,undefined);if(a.every(e=>Array.isArray(e)?e.length>0:e.name.length>0)||Array.isArray(r.getProvidedExports(t))){i.add(o.module)}}return i}_tryToAdd(e,t,n,r,i,s,o,a){const c=o.get(n);if(c){return c}if(t.has(n)){return null}if(!i.has(n)){o.set(n,n);return n}const u=Array.from(a.getModuleChunksIterable(t.rootModule)).filter(e=>!a.isModuleInChunk(n,e)).map(e=>e.name||"unnamed chunk(s)");if(u.length>0){const e=Array.from(new Set(u)).sort();const t=Array.from(new Set(Array.from(a.getModuleChunksIterable(n)).map(e=>e.name||"unnamed chunk(s)"))).sort();const r=r=>`Module ${n.readableIdentifier(r)} is not in the same chunk(s) (expected in chunk(s) ${e.join(", ")}, module is in chunk(s) ${t.join(", ")})`;o.set(n,r);return r}t.add(n);const l=e.moduleGraph;const p=Array.from(l.getIncomingConnections(n)).filter(e=>{if(!e.isActive(r))return false;if(!e.originModule)return true;if(a.getNumberOfModuleChunks(e.originModule)===0)return false;let t=undefined;for(const n of a.getModuleRuntimes(e.originModule)){t=y(t,n)}return g(r,t)});const d=p.filter(e=>!e.originModule||!e.dependency||!(e.dependency instanceof f));if(d.length>0){const e=e=>{const t=new Set(d.map(e=>e.originModule).filter(Boolean));const r=new Set(d.map(e=>e.explanation).filter(Boolean));const i=new Map(Array.from(t).map(e=>[e,new Set(d.filter(t=>t.originModule===e).map(e=>e.dependency.type).sort())]));const s=Array.from(t).map(t=>`${t.readableIdentifier(e)} (referenced with ${Array.from(i.get(t)).join(", ")})`).sort();const o=Array.from(r).sort();if(s.length>0&&o.length===0){return`Module ${n.readableIdentifier(e)} is referenced from these modules with unsupported syntax: ${s.join(", ")}`}else if(s.length===0&&o.length>0){return`Module ${n.readableIdentifier(e)} is referenced by: ${o.join(", ")}`}else if(s.length>0&&o.length>0){return`Module ${n.readableIdentifier(e)} is referenced from these modules with unsupported syntax: ${s.join(", ")} and by: ${o.join(", ")}`}else{return`Module ${n.readableIdentifier(e)} is referenced in a unsupported way`}};o.set(n,e);return e}const h=p.filter(e=>{for(const n of a.getModuleChunksIterable(t.rootModule)){if(!a.isModuleInChunk(e.originModule,n)){return true}}return false});if(h.length>0){const e=e=>{const t=new Set(h.map(e=>e.originModule));const r=Array.from(t).map(t=>t.readableIdentifier(e)).sort();return`Module ${n.readableIdentifier(e)} is referenced from different chunks by these modules: ${r.join(", ")}`};o.set(n,e);return e}const v=Array.from(new Set(p.map(e=>e.originModule))).sort(m);for(const c of v){const u=this._tryToAdd(e,t,c,r,i,s,o,a);if(u){o.set(n,u);return u}}for(const t of this._getImports(e,n,r)){s.add(t)}return null}}class ConcatConfiguration{constructor(e){this.rootModule=e;this.modules=new h;this.modules.set(e,true);this.warnings=new h}add(e){this.modules.set(e,true)}has(e){return this.modules.has(e)}isEmpty(){return this.modules.size===1}addWarning(e,t){this.warnings.set(e,t)}getWarningsSorted(){return new Map(this.warnings.asPairArray().sort((e,t)=>{const n=e[0].identifier();const r=t[0].identifier();if(n<r)return-1;if(n>r)return 1;return 0}))}getModules(){return this.modules.asSet()}snapshot(){const e=this.modules;this.modules=this.modules.createChild();return e}rollback(e){this.modules=e}}e.exports=ModuleConcatenationPlugin},30699:(e,t,n)=>{"use strict";const{RawSource:r,CachedSource:i,CompatSource:s}=n(48135);const o=n(3080);const{compareSelect:a,compareStrings:c}=n(68673);const u=n(35891);const l=new Set;const f=(e,t)=>{if(Array.isArray(e)){for(const n of e){t.add(n)}}else if(e){t.add(e)}};const p=e=>{return e.replace(/[-[\]\\/{}()*+?.^$|]/g,"\\$&")};const d=new WeakMap;const h=e=>{if(e instanceof i){return e}const t=d.get(e);if(t!==undefined)return t;const n=new i(s.from(e));d.set(e,n);return n};class RealContentHashPlugin{constructor({hashFunction:e,hashDigest:t}){this._hashFunction=e;this._hashDigest=t}apply(e){e.hooks.compilation.tap("RealContentHashPlugin",e=>{const t=e.getCache("RealContentHashPlugin|analyse");const n=e.getCache("RealContentHashPlugin|generate");e.hooks.processAssets.tapPromise({name:"RealContentHashPlugin",stage:o.PROCESS_ASSETS_STAGE_OPTIMIZE_HASH},async()=>{const i=e.getAssets();const s=[];const o=new Map;for(const{source:e,info:t,name:n}of i){const r=h(e);const i=r.source();const a=new Set;f(t.contenthash,a);const c={name:n,info:t,source:r,newSource:undefined,content:i,hasOwnHash:false,contentComputePromise:false,referencedHashes:undefined,hashes:a};s.push(c);for(const e of a){const t=o.get(e);if(t===undefined){o.set(e,[c])}else{t.push(c)}}}if(o.size===0)return;const d=new RegExp(Array.from(o.keys(),p).join("|"),"g");await Promise.all(s.map(async e=>{const{name:n,source:r,content:i,hashes:s}=e;if(Buffer.isBuffer(i)){e.referencedHashes=l;return}const o=t.mergeEtags(t.getLazyHashedEtag(r),Array.from(s).join("|"));e.referencedHashes=await t.providePromise(n,o,()=>{const t=new Set;const n=i.match(d);if(n){for(const r of n){if(s.has(r)){e.hasOwnHash=true;continue}t.add(r)}}return t})}));const m=e=>{const t=o.get(e);const n=new Set;for(const{referencedHashes:e}of t){for(const t of e){n.add(t)}}return n};const g=e=>{const t=o.get(e);return`${e} (${Array.from(t,e=>e.name)})`};const y=new Set;for(const e of o.keys()){const t=(e,n)=>{const r=m(e);n.add(e);for(const e of r){if(y.has(e))continue;if(n.has(e)){throw new Error(`Circular hash dependency ${Array.from(n,g).join(" -> ")} -> ${g(e)}`)}t(e,n)}y.add(e);n.delete(e)};if(y.has(e))continue;t(e,new Set)}const v=new Map;const _=(e,t)=>{if(e.contentComputePromise)return e.contentComputePromise;return e.contentComputePromise=(async()=>{if(e.hasOwnHash||Array.from(e.referencedHashes).some(e=>v.get(e)!==e)){const i=e.name+(t&&e.hasOwnHash?"|with-own":"");const s=n.mergeEtags(n.getLazyHashedEtag(e.source),Array.from(e.referencedHashes,e=>v.get(e)).join("|"));e.newSource=await n.providePromise(i,s,()=>{const n=e.content.replace(d,n=>{if(!t&&e.hashes.has(n)){return""}return v.get(n)});return new r(n)})}})()};const b=a(e=>e.name,c);for(const e of y){const t=o.get(e);t.sort(b);const n=u(this._hashFunction);await Promise.all(t.map(_));for(const e of t){n.update(e.newSource?e.newSource.buffer():e.source.buffer())}const r=n.digest(this._hashDigest);const i=r.slice(0,e.length);v.set(e,i)}await Promise.all(s.map(async t=>{if(t.hasOwnHash){t.contentComputePromise=undefined}await _(t,true);const n=t.name.replace(d,e=>v.get(e));const r={};const i=t.info.contenthash;r.contenthash=Array.isArray(i)?i.map(e=>v.get(e)):v.get(i);if(t.newSource!==undefined){e.updateAsset(t.name,t.newSource,r)}else{e.updateAsset(t.name,t.source,r)}if(t.name!==n){e.renameAsset(t.name,n)}}))})})}}e.exports=RealContentHashPlugin},62665:(e,t,n)=>{"use strict";const{STAGE_BASIC:r,STAGE_ADVANCED:i}=n(82414);class RemoveEmptyChunksPlugin{apply(e){e.hooks.compilation.tap("RemoveEmptyChunksPlugin",e=>{const t=t=>{const n=e.chunkGraph;for(const r of t){if(n.getNumberOfChunkModules(r)===0&&!r.hasRuntime()&&n.getNumberOfEntryModules(r)===0){e.chunkGraph.disconnectChunk(r);e.chunks.delete(r)}}};e.hooks.optimizeChunks.tap({name:"RemoveEmptyChunksPlugin",stage:r},t);e.hooks.optimizeChunks.tap({name:"RemoveEmptyChunksPlugin",stage:i},t)})}}e.exports=RemoveEmptyChunksPlugin},78016:(e,t,n)=>{"use strict";const{STAGE_BASIC:r}=n(82414);const i=n(39541);const{intersect:s}=n(26221);class RemoveParentModulesPlugin{apply(e){e.hooks.compilation.tap("RemoveParentModulesPlugin",e=>{const t=(t,n)=>{const r=e.chunkGraph;const o=new i;const a=new WeakMap;for(const t of e.entrypoints.values()){a.set(t,new Set);for(const e of t.childrenIterable){o.enqueue(e)}}while(o.length>0){const e=o.dequeue();let t=a.get(e);let n=false;for(const i of e.parentsIterable){const s=a.get(i);if(s!==undefined){if(t===undefined){t=new Set(s);for(const e of i.chunks){for(const n of r.getChunkModulesIterable(e)){t.add(n)}}a.set(e,t);n=true}else{for(const e of t){if(!r.isModuleInChunkGroup(e,i)&&!s.has(e)){t.delete(e);n=true}}}}}if(n){for(const t of e.childrenIterable){o.enqueue(t)}}}for(const e of t){const t=Array.from(e.groupsIterable,e=>a.get(e));if(t.some(e=>e===undefined))continue;const n=t.length===1?t[0]:s(t);const i=r.getNumberOfChunkModules(e);const o=new Set;if(i<n.size){for(const t of r.getChunkModulesIterable(e)){if(n.has(t)){o.add(t)}}}else{for(const t of n){if(r.isModuleInChunk(t,e)){o.add(t)}}}for(const t of o){r.disconnectChunkAndModule(e,t)}}};e.hooks.optimizeChunks.tap({name:"RemoveParentModulesPlugin",stage:r},t)})}}e.exports=RemoveParentModulesPlugin},4674:e=>{"use strict";class RuntimeChunkPlugin{constructor(e){this.options={name:e=>`runtime~${e.name}`,...e}}apply(e){e.hooks.thisCompilation.tap("RuntimeChunkPlugin",e=>{e.hooks.addEntry.tap("RuntimeChunkPlugin",(t,{name:n})=>{const r=e.entries.get(n);if(!r.options.runtime&&!r.options.dependOn){let e=this.options.name;if(typeof e==="function"){e=e({name:n})}r.options.runtime=e}})})}}e.exports=RuntimeChunkPlugin},63410:(e,t,n)=>{"use strict";const r=n(70554);const{STAGE_DEFAULT:i}=n(82414);const s=n(44576);const o=n(2230);const a=new WeakMap;const c=(e,t)=>{const n=t.get(e);if(n!==undefined)return n;if(!e.includes("/")){e=`**/${e}`}const i=r(e,{globstar:true,extended:true});const s=i.source;const o=new RegExp("^(\\./)?"+s.slice(1));t.set(e,o);return o};class SideEffectsFlagPlugin{apply(e){let t=a.get(e.root);if(t===undefined){t=new Map;a.set(e.root,t)}e.hooks.normalModuleFactory.tap("SideEffectsFlagPlugin",e=>{e.hooks.module.tap("SideEffectsFlagPlugin",(e,n)=>{const r=n.resourceResolveData;if(r&&r.descriptionFileData&&r.relativePath){const n=r.descriptionFileData.sideEffects;const i=SideEffectsFlagPlugin.moduleHasSideEffects(r.relativePath,n,t);if(!i){if(e.factoryMeta===undefined){e.factoryMeta={}}e.factoryMeta.sideEffectFree=true}}return e});e.hooks.module.tap("SideEffectsFlagPlugin",(e,t)=>{if(t.settings.sideEffects===false){if(e.factoryMeta===undefined){e.factoryMeta={}}e.factoryMeta.sideEffectFree=true}else if(t.settings.sideEffects===true){if(e.factoryMeta!==undefined){e.factoryMeta.sideEffectFree=false}}return e})});e.hooks.compilation.tap("SideEffectsFlagPlugin",e=>{const t=e.moduleGraph;e.hooks.optimizeDependencies.tap({name:"SideEffectsFlagPlugin",stage:i},n=>{const r=e.getLogger("webpack.SideEffectsFlagPlugin");r.time("update dependencies");for(const e of n){if(e.factoryMeta!==undefined&&e.factoryMeta.sideEffectFree){const n=t.getExportsInfo(e);for(const r of t.getIncomingConnections(e)){const e=r.dependency;if(e instanceof s||e instanceof o&&!e.namespaceObjectAsContext){const r=e.getIds(t);if(r.length>0){const i=n.getExportInfo(r[0]);const s=i.getTarget(t,({module:e})=>e.factoryMeta!==undefined&&e.factoryMeta.sideEffectFree);if(!s)continue;t.updateModule(e,s.module);t.addExplanation(e,"(skipped side-effect-free modules)");e.setIds(t,s.export?[...s.export,...r.slice(1)]:r.slice(1))}}}}}r.timeEnd("update dependencies")})})}static moduleHasSideEffects(e,t,n){switch(typeof t){case"undefined":return true;case"boolean":return t;case"string":return c(t,n).test(e);case"object":return t.some(t=>SideEffectsFlagPlugin.moduleHasSideEffects(e,t,n))}}}e.exports=SideEffectsFlagPlugin},40051:(e,t,n)=>{"use strict";const r=n(62433);const{STAGE_ADVANCED:i}=n(82414);const s=n(81627);const{requestToId:o}=n(30328);const{isSubset:a}=n(26221);const c=n(16102);const{compareModulesByIdentifier:u,compareIterables:l}=n(68673);const f=n(35891);const p=n(44648);const d=n(49197).contextify;const h=n(27503);const m=n(1697);const g=()=>{};const y=p;const v=new WeakMap;const _=(e,t)=>{const n=f(t.hashFunction).update(e).digest(t.hashDigest);return n.slice(0,8)};const b=e=>{let t=0;for(const n of e.groupsIterable){t=Math.max(t,n.chunks.length)}return t};const E=(e,t)=>{const n=Object.create(null);for(const r of Object.keys(e)){n[r]=t(e[r],r)}return n};const w=(e,t)=>{for(const n of e){if(t.has(n))return true}return false};const S=l(u);const k=(e,t)=>{const n=e.cacheGroup.priority-t.cacheGroup.priority;if(n)return n;const r=e.chunks.size-t.chunks.size;if(r)return r;const i=I(e.sizes)*(e.chunks.size-1);const s=I(t.sizes)*(t.chunks.size-1);const o=i-s;if(o)return o;const a=e.cacheGroupIndex-t.cacheGroupIndex;if(a)return a;const c=e.modules;const u=t.modules;const l=c.size-u.size;if(l)return l;c.sort();u.sort();return S(c,u)};const D=e=>e.canBeInitial();const x=e=>!e.canBeInitial();const C=e=>true;const A=e=>{if(typeof e==="number"){return{javascript:e,unknown:e}}else if(typeof e==="object"&&e!==null){return{...e}}else{return{}}};const T=(...e)=>{let t={};for(let n=e.length-1;n>=0;n--){t=Object.assign(t,A(e[n]))}return t};const M=e=>{for(const t of Object.keys(e)){if(e[t]>0)return true}return false};const O=(e,t,n)=>{const r=new Set(Object.keys(e));const i=new Set(Object.keys(t));const s={};for(const o of r){if(i.has(o)){s[o]=n(e[o],t[o])}else{s[o]=e[o]}}for(const e of i){if(!r.has(e)){s[e]=t[e]}}return s};const F=(e,t)=>{for(const n of Object.keys(t)){const r=e[n];if(r===undefined||r===0)continue;if(r<t[n])return false}return true};const I=e=>{let t=0;for(const n of Object.keys(e)){t+=e[n]}return t};const R=e=>{if(typeof e==="string"){return()=>e}if(typeof e==="function"){return e}};const P=e=>{if(e==="initial"){return D}if(e==="async"){return x}if(e==="all"){return C}if(typeof e==="function"){return e}};const N=e=>{if(typeof e==="function"){return e}if(typeof e==="object"&&e!==null){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r===false){continue}if(typeof r==="string"||r instanceof RegExp){const e=z({},n);t.push((t,n,i)=>{if(L(r,t,n)){i.push(e)}})}else if(typeof r==="function"){t.push((e,t,i)=>{const s=r(e);if(s){const e=Array.isArray(s)?s:[s];for(const t of e){i.push(U(t,n))}}})}else{const e=z(r,n);t.push((t,n,i)=>{if(L(r.test,t,n)&&B(r.type,t)){i.push(e)}})}}const n=(e,n)=>{let r=[];for(const i of t){i(e,n,r)}return r};return n}return()=>null};const L=(e,t,n)=>{if(e===undefined)return true;if(typeof e==="function"){return e(t,n)}if(typeof e==="boolean")return e;if(typeof e==="string"){const n=t.nameForCondition();return n&&n.startsWith(e)}if(e instanceof RegExp){const n=t.nameForCondition();return n&&e.test(n)}return false};const B=(e,t)=>{if(e===undefined)return true;if(typeof e==="function"){return e(t.type)}if(typeof e==="string"){const n=t.type;return e===n}if(e instanceof RegExp){const n=t.type;return e.test(n)}return false};const j=new WeakMap;const U=(e,t)=>{let n=j.get(e);if(n!==undefined){const e=n.get(t);if(e!==undefined)return e}else{n=new Map;j.set(e,n)}const r=z(e,t);n.set(t,r);return r};const z=(e,t)=>{return{key:t,priority:e.priority,getName:R(e.name),chunksFilter:P(e.chunks),enforce:e.enforce,minSize:A(e.minSize),minRemainingSize:T(e.minRemainingSize,e.minSize),enforceSizeThreshold:A(e.enforceSizeThreshold),maxAsyncSize:T(e.maxAsyncSize,e.maxSize),maxInitialSize:T(e.maxInitialSize,e.maxSize),minChunks:e.minChunks,maxAsyncRequests:e.maxAsyncRequests,maxInitialRequests:e.maxInitialRequests,filename:e.filename,idHint:e.idHint,automaticNameDelimiter:e.automaticNameDelimiter,reuseExistingChunk:e.reuseExistingChunk,usedExports:e.usedExports}};e.exports=class SplitChunksPlugin{constructor(e={}){const t=e.fallbackCacheGroup||{};this.options={chunksFilter:P(e.chunks||"all"),minSize:A(e.minSize),minRemainingSize:T(e.minRemainingSize,e.minSize),enforceSizeThreshold:A(e.enforceSizeThreshold),maxAsyncSize:T(e.maxAsyncSize,e.maxSize),maxInitialSize:T(e.maxInitialSize,e.maxSize),minChunks:e.minChunks||1,maxAsyncRequests:e.maxAsyncRequests||1,maxInitialRequests:e.maxInitialRequests||1,hidePathInfo:e.hidePathInfo||false,filename:e.filename||undefined,getCacheGroups:N(e.cacheGroups),getName:e.name?R(e.name):g,automaticNameDelimiter:e.automaticNameDelimiter,usedExports:e.usedExports,fallbackCacheGroup:{minSize:T(t.minSize,e.minSize),maxAsyncSize:T(t.maxAsyncSize,t.maxSize,e.maxAsyncSize,e.maxSize),maxInitialSize:T(t.maxInitialSize,t.maxSize,e.maxInitialSize,e.maxSize),automaticNameDelimiter:t.automaticNameDelimiter||e.automaticNameDelimiter||"~"}};this._cacheGroupCache=new WeakMap}_getCacheGroup(e){const t=this._cacheGroupCache.get(e);if(t!==undefined)return t;const n=T(e.minSize,e.enforce?undefined:this.options.minSize);const r=T(e.minRemainingSize,e.enforce?undefined:this.options.minRemainingSize);const i=T(e.enforceSizeThreshold,e.enforce?undefined:this.options.enforceSizeThreshold);const s={key:e.key,priority:e.priority||0,chunksFilter:e.chunksFilter||this.options.chunksFilter,minSize:n,minRemainingSize:r,enforceSizeThreshold:i,maxAsyncSize:T(e.maxAsyncSize,e.enforce?undefined:this.options.maxAsyncSize),maxInitialSize:T(e.maxInitialSize,e.enforce?undefined:this.options.maxInitialSize),minChunks:e.minChunks!==undefined?e.minChunks:e.enforce?1:this.options.minChunks,maxAsyncRequests:e.maxAsyncRequests!==undefined?e.maxAsyncRequests:e.enforce?Infinity:this.options.maxAsyncRequests,maxInitialRequests:e.maxInitialRequests!==undefined?e.maxInitialRequests:e.enforce?Infinity:this.options.maxInitialRequests,getName:e.getName!==undefined?e.getName:this.options.getName,usedExports:e.usedExports!==undefined?e.usedExports:this.options.usedExports,filename:e.filename!==undefined?e.filename:this.options.filename,automaticNameDelimiter:e.automaticNameDelimiter!==undefined?e.automaticNameDelimiter:this.options.automaticNameDelimiter,idHint:e.idHint!==undefined?e.idHint:e.key,reuseExistingChunk:e.reuseExistingChunk||false,_validateSize:M(n),_validateRemainingSize:M(r),_minSizeForMaxSize:T(e.minSize,this.options.minSize),_conditionalEnforce:M(i)};this._cacheGroupCache.set(e,s);return s}apply(e){const t=d.bindContextCache(e.context,e.root);e.hooks.thisCompilation.tap("SplitChunksPlugin",e=>{const n=e.getLogger("webpack.SplitChunksPlugin");let l=false;e.hooks.unseal.tap("SplitChunksPlugin",()=>{l=false});e.hooks.optimizeChunks.tap({name:"SplitChunksPlugin",stage:i},i=>{if(l)return;l=true;n.time("prepare");const f=e.chunkGraph;const p=e.moduleGraph;const d=new Map;const g=BigInt("0");const S=BigInt("1");let D=S;for(const e of i){d.set(e,D);D=D<<S}const x=e=>{const t=e[Symbol.iterator]();let n=t.next();if(n.done)return g;const r=n.value;n=t.next();if(n.done)return r;let i=d.get(r)|d.get(n.value);while(!(n=t.next()).done){i=i|d.get(n.value)}return i};const C=e=>{if(typeof e==="bigint")return e.toString(16);return d.get(e).toString(16)};const A=h(()=>{const t=new Map;const n=new Set;for(const r of e.modules){const e=f.getModuleChunksIterable(r);const i=x(e);if(typeof i==="bigint"){if(!t.has(i)){t.set(i,new Set(e))}}else{n.add(i)}}return{chunkSetsInGraph:t,singleChunkSets:n}});const T=e=>{const t=p.getExportsInfo(e);const n=new Map;for(const r of f.getModuleChunksIterable(e)){const e=t.getUsageKey(r.runtime);const i=n.get(e);if(i!==undefined){i.push(r)}else{n.set(e,[r])}}return n.values()};const M=new Map;const I=h(()=>{const t=new Map;const n=new Set;for(const r of e.modules){const e=Array.from(T(r));M.set(r,e);for(const r of e){if(r.length===1){n.add(r[0])}else{const e=x(r);if(!t.has(e)){t.set(e,new Set(r))}}}}return{chunkSetsInGraph:t,singleChunkSets:n}});const R=e=>{const t=new Map;for(const n of e){const e=n.size;let r=t.get(e);if(r===undefined){r=[];t.set(e,r)}r.push(n)}return t};const P=h(()=>R(A().chunkSetsInGraph.values()));const N=h(()=>R(I().chunkSetsInGraph.values()));const L=(e,t,n)=>{const i=new Map;return s=>{const o=i.get(s);if(o!==undefined)return o;if(s instanceof r){const e=[s];i.set(s,e);return e}const c=e.get(s);const u=[c];for(const[e,t]of n){if(e<c.size){for(const e of t){if(a(c,e)){u.push(e)}}}}for(const e of t){if(c.has(e)){u.push(e)}}i.set(s,u);return u}};const B=h(()=>{const{chunkSetsInGraph:e,singleChunkSets:t}=A();return L(e,t,P())});const j=e=>B()(e);const U=h(()=>{const{chunkSetsInGraph:e,singleChunkSets:t}=I();return L(e,t,N())});const z=e=>U()(e);const H=new WeakMap;const V=(e,t)=>{let n=H.get(e);if(n===undefined){n=new WeakMap;H.set(e,n)}let i=n.get(t);if(i===undefined){const s=[];if(e instanceof r){if(t(e))s.push(e)}else{for(const n of e){if(t(n))s.push(n)}}i={chunks:s,key:x(s)};n.set(t,i)}return i};const G=new Set;const q=new Map;const W=(t,n,r,i,o)=>{if(r.length<t.minChunks)return;const a=t.getName(o,r,t.key);if(!G.has(a)){G.add(a);if(e.namedChunks.has(a)){e.errors.push(new s("SplitChunksPlugin\n"+`Cache group "${t.key}" conflicts with existing chunk.\n`+`Both have the same name "${a}".\n`+"Use a different name for the cache group.\n"+'HINT: You can omit "name" to automatically create a name.\n'+"BREAKING CHANGE: webpack < 5 used to allow to use the "+"entrypoint as splitChunk. This is no longer allowed. "+"Remove this entrypoint and add modules to cache group's 'test' instead. "+"If you need modules to be evaluated on startup, add them to the existing entrypoints (make them arrays). "+"See migration guide of more info."))}}const l=t.key+(a?` name:${a}`:` chunks:${C(i)}`);let f=q.get(l);if(f===undefined){q.set(l,f={modules:new c(undefined,u),cacheGroup:t,cacheGroupIndex:n,name:a,sizes:{},chunks:new Set,reuseableChunks:new Set,chunksKeys:new Set})}f.modules.add(o);for(const e of o.getSourceTypes()){f.sizes[e]=(f.sizes[e]||0)+o.size(e)}if(!f.chunksKeys.has(i)){f.chunksKeys.add(i);for(const e of r){f.chunks.add(e)}}};const K={moduleGraph:p,chunkGraph:f};n.timeEnd("prepare");n.time("modules");for(const t of e.modules){let e=this.options.getCacheGroups(t,K);if(!Array.isArray(e)||e.length===0){continue}const n=h(()=>{const e=f.getModuleChunksIterable(t);const n=x(e);return j(n)});const i=h(()=>{I();const e=new Set;const n=M.get(t);for(const t of n){const n=x(t);for(const t of z(n))e.add(t)}return e});let s=0;for(const o of e){const e=this._getCacheGroup(o);const a=e.usedExports?i():n();for(const n of a){const i=n instanceof r?1:n.size;if(i<e.minChunks)continue;const{chunks:o,key:a}=V(n,e.chunksFilter);W(e,s,o,a,t)}s++}}n.timeEnd("modules");n.time("queue");for(const[e,t]of q){if(t.cacheGroup._validateSize&&!F(t.sizes,t.cacheGroup.minSize)){q.delete(e)}}const X=new Map;while(q.size>0){let t;let n;for(const e of q){const r=e[0];const i=e[1];if(n===undefined||k(n,i)<0){n=i;t=r}}const r=n;q.delete(t);let i=r.name;let s;let o=false;let a=false;if(i){const t=e.namedChunks.get(i);if(t!==undefined){s=t;const e=r.chunks.size;r.chunks.delete(s);o=r.chunks.size!==e}}else if(r.cacheGroup.reuseExistingChunk){e:for(const e of r.chunks){if(f.getNumberOfChunkModules(e)!==r.modules.size){continue}if(f.getNumberOfEntryModules(e)>0){continue}for(const t of r.modules){if(!f.isModuleInChunk(t,e)){continue e}}if(!s||!s.name){s=e}else if(e.name&&e.name.length<s.name.length){s=e}else if(e.name&&e.name.length===s.name.length&&e.name<s.name){s=e}}if(s){r.chunks.delete(s);i=undefined;o=true;a=true}}const c=r.cacheGroup._conditionalEnforce&&F(r.sizes,r.cacheGroup.enforceSizeThreshold);const u=new Set(r.chunks);if(!c&&(Number.isFinite(r.cacheGroup.maxInitialRequests)||Number.isFinite(r.cacheGroup.maxAsyncRequests))){for(const e of u){const t=e.isOnlyInitial()?r.cacheGroup.maxInitialRequests:e.canBeInitial()?Math.min(r.cacheGroup.maxInitialRequests,r.cacheGroup.maxAsyncRequests):r.cacheGroup.maxAsyncRequests;if(isFinite(t)&&b(e)>=t){u.delete(e)}}}e:for(const e of u){for(const t of r.modules){if(f.isModuleInChunk(t,e))continue e}u.delete(e)}if(u.size<r.chunks.size){if(o)u.add(s);if(u.size>=r.cacheGroup.minChunks){const e=Array.from(u);for(const t of r.modules){W(r.cacheGroup,r.cacheGroupIndex,e,x(u),t)}}continue}if(!c&&r.cacheGroup._validateRemainingSize&&u.size===1){const[e]=u;let t=Object.create(null);for(const n of f.getChunkModulesIterable(e)){if(!r.modules.has(n)){for(const e of n.getSourceTypes()){t[e]=(t[e]||0)+n.size(e)}}}if(!F(t,r.cacheGroup.minRemainingSize)){continue}}if(s===undefined){s=e.addChunk(i)}for(const e of u){e.split(s)}s.chunkReason=(s.chunkReason?s.chunkReason+", ":"")+(a?"reused as split chunk":"split chunk");if(r.cacheGroup.key){s.chunkReason+=` (cache group: ${r.cacheGroup.key})`}if(i){s.chunkReason+=` (name: ${i})`;const t=e.entrypoints.get(i);if(t){e.entrypoints.delete(i);t.remove();f.disconnectEntries(s)}}if(r.cacheGroup.filename){s.filenameTemplate=r.cacheGroup.filename}if(r.cacheGroup.idHint){s.idNameHints.add(r.cacheGroup.idHint)}if(!a){for(const t of r.modules){if(!t.chunkCondition(s,e))continue;f.connectChunkAndModule(s,t);for(const e of u){f.disconnectChunkAndModule(e,t)}}}else{for(const e of r.modules){for(const t of u){f.disconnectChunkAndModule(t,e)}}}if(Object.keys(r.cacheGroup.maxAsyncSize).length>0||Object.keys(r.cacheGroup.maxInitialSize).length>0){const e=X.get(s);X.set(s,{minSize:e?O(e.minSize,r.cacheGroup._minSizeForMaxSize,Math.max):r.cacheGroup.minSize,maxAsyncSize:e?O(e.maxAsyncSize,r.cacheGroup.maxAsyncSize,Math.min):r.cacheGroup.maxAsyncSize,maxInitialSize:e?O(e.maxInitialSize,r.cacheGroup.maxInitialSize,Math.min):r.cacheGroup.maxInitialSize,automaticNameDelimiter:r.cacheGroup.automaticNameDelimiter,keys:e?e.keys.concat(r.cacheGroup.key):[r.cacheGroup.key]})}for(const[e,t]of q){if(w(t.chunks,u)){let n=false;for(const e of r.modules){if(t.modules.has(e)){t.modules.delete(e);for(const n of e.getSourceTypes()){t.sizes[n]-=e.size(n)}n=true}}if(n){if(t.modules.size===0){q.delete(e);continue}if(t.cacheGroup._validateSize&&!F(t.sizes,t.cacheGroup.minSize)){q.delete(e)}}}}}n.timeEnd("queue");n.time("maxSize");const J=new Set;const{outputOptions:Y}=e;for(const n of Array.from(e.chunks)){const r=X.get(n);const{minSize:i,maxAsyncSize:s,maxInitialSize:a,automaticNameDelimiter:c}=r||this.options.fallbackCacheGroup;let u;if(n.isOnlyInitial()){u=a}else if(n.canBeInitial()){u=O(s,a,Math.min)}else{u=s}if(Object.keys(u).length===0){continue}for(const t of Object.keys(u)){const n=u[t];const s=i[t];if(typeof s==="number"&&s>n){const t=r&&r.keys;const i=`${t&&t.join()} ${s} ${n}`;if(!J.has(i)){J.add(i);e.warnings.push(new m(t,s,n))}}}const l=y({minSize:i,maxSize:E(u,(e,t)=>{const n=i[t];return typeof n==="number"?Math.max(e,n):e}),items:f.getChunkModulesIterable(n),getKey(e){const n=v.get(e);if(n!==undefined)return n;const r=t(e.identifier());const i=e.nameForCondition&&e.nameForCondition();const s=i?t(i):r.replace(/^.*!|\?[^?!]*$/g,"");const a=s+c+_(r,Y);const u=o(a);v.set(e,u);return u},getSize(e){const t=Object.create(null);for(const n of e.getSourceTypes()){t[n]=e.size(n)}return t}});if(l.length<=1){continue}for(let t=0;t<l.length;t++){const r=l[t];const i=this.options.hidePathInfo?_(r.key,Y):r.key;let s=n.name?n.name+c+i:null;if(s&&s.length>100){s=s.slice(0,100)+c+_(s,Y)}if(t!==l.length-1){const t=e.addChunk(s);n.split(t);t.chunkReason=n.chunkReason;for(const i of r.items){if(!i.chunkCondition(t,e)){continue}f.connectChunkAndModule(t,i);f.disconnectChunkAndModule(n,i)}}else{n.name=s}}}n.timeEnd("maxSize")})})}}},15787:(e,t,n)=>{"use strict";const{formatSize:r}=n(9192);const i=n(81627);e.exports=class AssetsOverSizeLimitWarning extends i{constructor(e,t){const n=e.map(e=>`\n ${e.name} (${r(e.size)})`).join("");super(`asset size limit: The following asset(s) exceed the recommended size limit (${r(t)}).\nThis can impact web performance.\nAssets: ${n}`);this.name="AssetsOverSizeLimitWarning";this.assets=e;Error.captureStackTrace(this,this.constructor)}}},84116:(e,t,n)=>{"use strict";const{formatSize:r}=n(9192);const i=n(81627);e.exports=class EntrypointsOverSizeLimitWarning extends i{constructor(e,t){const n=e.map(e=>`\n ${e.name} (${r(e.size)})\n${e.files.map(e=>` ${e}`).join("\n")}`).join("");super(`entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (${r(t)}). This can impact web performance.\nEntrypoints:${n}\n`);this.name="EntrypointsOverSizeLimitWarning";this.entrypoints=e;Error.captureStackTrace(this,this.constructor)}}},23529:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class NoAsyncChunksWarning extends r{constructor(){super("webpack performance recommendations: \n"+"You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\n"+"For more info visit https://webpack.js.org/guides/code-splitting/");this.name="NoAsyncChunksWarning";Error.captureStackTrace(this,this.constructor)}}},20625:(e,t,n)=>{"use strict";const{find:r}=n(26221);const i=n(15787);const s=n(84116);const o=n(23529);const a=new WeakSet;const c=(e,t,n)=>!n.development;e.exports=class SizeLimitsPlugin{constructor(e){this.hints=e.hints;this.maxAssetSize=e.maxAssetSize;this.maxEntrypointSize=e.maxEntrypointSize;this.assetFilter=e.assetFilter}static isOverSizeLimit(e){return a.has(e)}apply(e){const t=this.maxEntrypointSize;const n=this.maxAssetSize;const u=this.hints;const l=this.assetFilter||c;e.hooks.afterEmit.tap("SizeLimitsPlugin",e=>{const c=[];const f=t=>{let n=0;for(const r of t.getFiles()){const t=e.getAsset(r);if(t&&l(t.name,t.source,t.info)&&t.source){n+=t.info.size||t.source.size()}}return n};const p=[];for(const{name:t,source:r,info:i}of e.getAssets()){if(!l(t,r,i)||!r){continue}const e=i.size||r.size();if(e>n){p.push({name:t,size:e});a.add(r)}}const d=t=>{const n=e.getAsset(t);return n&&l(n.name,n.source,n.info)};const h=[];for(const[n,r]of e.entrypoints){const e=f(r);if(e>t){h.push({name:n,size:e,files:r.getFiles().filter(d)});a.add(r)}}if(u){if(p.length>0){c.push(new i(p,n))}if(h.length>0){c.push(new s(h,t))}if(c.length>0){const t=r(e.chunks,e=>!e.canBeInitial());if(!t){c.push(new o)}if(u==="error"){e.errors.push(...c)}else{e.warnings.push(...c)}}}})}}},63890:(e,t,n)=>{"use strict";const r=n(66804);const i=n(58159);class ChunkPrefetchFunctionRuntimeModule extends r{constructor(e,t,n){super(`chunk ${e} function`,5);this.childType=e;this.runtimeFunction=t;this.runtimeHandlers=n}generate(){const{runtimeFunction:e,runtimeHandlers:t}=this;const{runtimeTemplate:n}=this.compilation;return i.asString([`${t} = {};`,`${e} = ${n.basicFunction("chunkId",[`Object.keys(${t}).map(${n.basicFunction("key",`${t}[key](chunkId);`)});`])}`])}}e.exports=ChunkPrefetchFunctionRuntimeModule},5538:(e,t,n)=>{"use strict";const r=n(76150);const i=n(63890);const s=n(2235);const o=n(86400);class ChunkPrefetchPreloadPlugin{apply(e){e.hooks.compilation.tap("ChunkPrefetchPreloadPlugin",e=>{e.hooks.additionalChunkRuntimeRequirements.tap("ChunkPrefetchPreloadPlugin",(t,n)=>{const{chunkGraph:i}=e;if(i.getNumberOfEntryModules(t)===0)return;const o=t.getChildIdsByOrders(i);if(o.prefetch){n.add(r.prefetchChunk);n.add(r.startup);e.addRuntimeModule(t,new s("prefetch",r.prefetchChunk,o.prefetch))}});e.hooks.additionalTreeRuntimeRequirements.tap("ChunkPrefetchPreloadPlugin",(t,n)=>{const{chunkGraph:i}=e;const s=t.getChildIdsByOrdersMap(i,false);if(s.prefetch){n.add(r.prefetchChunk);e.addRuntimeModule(t,new o("prefetch",r.prefetchChunk,s.prefetch,true))}if(s.preload){n.add(r.preloadChunk);e.addRuntimeModule(t,new o("preload",r.preloadChunk,s.preload,false))}});e.hooks.runtimeRequirementInTree.for(r.prefetchChunk).tap("ChunkPrefetchPreloadPlugin",(t,n)=>{e.addRuntimeModule(t,new i("prefetch",r.prefetchChunk,r.prefetchChunkHandlers));n.add(r.prefetchChunkHandlers)});e.hooks.runtimeRequirementInTree.for(r.preloadChunk).tap("ChunkPrefetchPreloadPlugin",(t,n)=>{e.addRuntimeModule(t,new i("preload",r.preloadChunk,r.preloadChunkHandlers));n.add(r.preloadChunkHandlers)})})}}e.exports=ChunkPrefetchPreloadPlugin},2235:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class ChunkPrefetchStartupRuntimeModule extends i{constructor(e,t,n){super(`startup ${e}`,5);this.childType=e;this.runtimeFunction=t;this.startupChunks=n}generate(){const{runtimeFunction:e,startupChunks:t}=this;const{runtimeTemplate:n}=this.compilation;return s.asString([`var startup = ${r.startup};`,`${r.startup} = ${n.basicFunction("",["var result = startup();",s.asString(t.length<3?t.map(t=>`${e}(${JSON.stringify(t)});`):`${JSON.stringify(t)}.map(${e});`),"return result;"])};`])}}e.exports=ChunkPrefetchStartupRuntimeModule},86400:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class ChunkPrefetchTriggerRuntimeModule extends i{constructor(e,t,n,r){super(`chunk ${e} trigger`,20);this.childType=e;this.runtimeFunction=t;this.chunkMap=n;this.afterChunkLoad=r}generate(){const{childType:e,runtimeFunction:t,chunkMap:n,afterChunkLoad:i}=this;const{runtimeTemplate:o}=this.compilation;const a=["var chunks = chunkToChildrenMap[chunkId];","for (var i = 0; Array.isArray(chunks) && i < chunks.length; i++) {",s.indent(`${t}(chunks[i]);`),"}"];return s.asString([n?s.asString([`var chunkToChildrenMap = ${JSON.stringify(n,null,"\t")};`,`${r.ensureChunkHandlers}.${e} = ${i?o.basicFunction("chunkId, promises",[`Promise.all(promises).then(${o.basicFunction("",a)});`]):o.basicFunction("chunkId",a)};`]):`// no chunks to automatically ${e} specified in graph`])}}e.exports=ChunkPrefetchTriggerRuntimeModule},94288:e=>{"use strict";class BasicEffectRulePlugin{constructor(e,t){this.ruleProperty=e;this.effectType=t||e}apply(e){e.hooks.rule.tap("BasicEffectRulePlugin",(e,t,n,r,i)=>{if(n.has(this.ruleProperty)){n.delete(this.ruleProperty);const e=t[this.ruleProperty];r.effects.push({type:this.effectType,value:e})}})}}e.exports=BasicEffectRulePlugin},1976:e=>{"use strict";class BasicMatcherRulePlugin{constructor(e,t,n){this.ruleProperty=e;this.dataProperty=t||e;this.invert=n||false}apply(e){e.hooks.rule.tap("BasicMatcherRulePlugin",(t,n,r,i)=>{if(r.has(this.ruleProperty)){r.delete(this.ruleProperty);const s=n[this.ruleProperty];const o=e.compileCondition(`${t}.${this.ruleProperty}`,s);const a=o.fn;i.conditions.push({property:this.dataProperty,matchWhenEmpty:this.invert?!o.matchWhenEmpty:o.matchWhenEmpty,fn:this.invert?e=>!a(e):a})}})}}e.exports=BasicMatcherRulePlugin},92299:e=>{"use strict";const t="descriptionData";class DescriptionDataMatcherRulePlugin{apply(e){e.hooks.rule.tap("DescriptionDataMatcherRulePlugin",(n,r,i,s)=>{if(i.has(t)){i.delete(t);const o=r[t];for(const r of Object.keys(o)){const i=r.split(".");const a=e.compileCondition(`${n}.${t}.${r}`,o[r]);s.conditions.push({property:["descriptionData",...i],matchWhenEmpty:a.matchWhenEmpty,fn:a.fn})}}})}}e.exports=DescriptionDataMatcherRulePlugin},73817:(e,t,n)=>{"use strict";const{SyncHook:r}=n(92960);class RuleSetCompiler{constructor(e){this.hooks=Object.freeze({rule:new r(["path","rule","unhandledProperties","compiledRule","references"])});if(e){for(const t of e){t.apply(this)}}}compile(e){const t=new Map;const n=this.compileRules("ruleSet",e,t);const r=(e,t,n)=>{for(const n of t.conditions){const t=n.property;if(Array.isArray(t)){let r=e;for(const e of t){if(r&&typeof r==="object"&&Object.prototype.hasOwnProperty.call(r,e)){r=r[e]}else{r=undefined;break}}if(r!==undefined){if(!n.fn(r))return false;continue}}else if(t in e){const r=e[t];if(!n.fn(r))return false;continue}if(!n.matchWhenEmpty){return false}}for(const r of t.effects){if(typeof r==="function"){const t=r(e);for(const e of t){n.push(e)}}else{n.push(r)}}if(t.rules){for(const i of t.rules){r(e,i,n)}}if(t.oneOf){for(const i of t.oneOf){if(r(e,i,n)){break}}}return true};return{references:t,exec:e=>{const t=[];for(const i of n){r(e,i,t)}return t}}}compileRules(e,t,n){return t.map((t,r)=>this.compileRule(`${e}[${r}]`,t,n))}compileRule(e,t,n){const r=new Set(Object.keys(t).filter(e=>t[e]!==undefined));const i={conditions:[],effects:[],rules:undefined,oneOf:undefined};this.hooks.rule.call(e,t,r,i,n);if(r.has("rules")){r.delete("rules");const s=t.rules;if(!Array.isArray(s))throw this.error(e,s,"Rule.rules must be an array of rules");i.rules=this.compileRules(`${e}.rules`,s,n)}if(r.has("oneOf")){r.delete("oneOf");const s=t.oneOf;if(!Array.isArray(s))throw this.error(e,s,"Rule.oneOf must be an array of rules");i.oneOf=this.compileRules(`${e}.oneOf`,s,n)}if(r.size>0){throw this.error(e,t,`Properties ${Array.from(r).join(", ")} are unknown`)}return i}compileCondition(e,t){if(!t){throw this.error(e,t,"Expected condition but got falsy value")}if(typeof t==="string"){return{matchWhenEmpty:t.length===0,fn:e=>e.startsWith(t)}}if(typeof t==="function"){try{return{matchWhenEmpty:t(""),fn:t}}catch(n){throw this.error(e,t,"Evaluation of condition function threw error")}}if(t instanceof RegExp){return{matchWhenEmpty:t.test(""),fn:e=>t.test(e)}}if(Array.isArray(t)){const n=t.map((t,n)=>this.compileCondition(`${e}[${n}]`,t));return this.combineConditionsOr(n)}if(typeof t!=="object"){throw this.error(e,t,`Unexpected ${typeof t} when condition was expected`)}const n=[];for(const r of Object.keys(t)){const i=t[r];switch(r){case"or":if(i){if(!Array.isArray(i)){throw this.error(`${e}.or`,t.and,"Expected array of conditions")}n.push(this.compileCondition(`${e}.or`,i))}break;case"and":if(i){if(!Array.isArray(i)){throw this.error(`${e}.and`,t.and,"Expected array of conditions")}let r=0;for(const t of i){n.push(this.compileCondition(`${e}.and[${r}]`,t));r++}}break;case"not":if(i){const t=this.compileCondition(`${e}.not`,i);const r=t.fn;n.push({matchWhenEmpty:!t.matchWhenEmpty,fn:e=>!r(e)})}break;default:throw this.error(`${e}.${r}`,t[r],`Unexpected property ${r} in condition`)}}if(n.length===0){throw this.error(e,t,"Expected condition, but got empty thing")}return this.combineConditionsAnd(n)}combineConditionsOr(e){if(e.length===0){return{matchWhenEmpty:false,fn:()=>false}}else if(e.length===1){return e[0]}else{return{matchWhenEmpty:e.some(e=>e.matchWhenEmpty),fn:t=>e.some(e=>e.fn(t))}}}combineConditionsAnd(e){if(e.length===0){return{matchWhenEmpty:false,fn:()=>false}}else if(e.length===1){return e[0]}else{return{matchWhenEmpty:e.every(e=>e.matchWhenEmpty),fn:t=>e.every(e=>e.fn(t))}}}error(e,t,n){return new Error(`Compiling RuleSet failed: ${n} (at ${e}: ${t})`)}}e.exports=RuleSetCompiler},19311:(e,t,n)=>{"use strict";const r=n(31669);class UseEffectRulePlugin{apply(e){e.hooks.rule.tap("UseEffectRulePlugin",(t,n,i,s,o)=>{const a=(r,s)=>{if(i.has(r)){throw e.error(`${t}.${r}`,n[r],`A Rule must not have a '${r}' property when it has a '${s}' property`)}};if(i.has("use")){i.delete("use");i.delete("enforce");a("loader","use");a("options","use");const e=n.use;const c=n.enforce;const u=c?`use-${c}`:"use";const l=(e,t,n)=>{if(typeof n==="function"){return t=>p(e,n(t))}else{return f(e,t,n)}};const f=(e,t,n)=>{if(typeof n==="string"){return{type:u,value:{loader:n,options:undefined,ident:undefined}}}else{const i=n.loader;const s=n.options;let a=n.ident;if(s&&typeof s==="object"){if(!a)a=t;o.set(a,s)}if(typeof s==="string"){r.deprecate(()=>{},`Using a string as loader options is deprecated (${e}.options)`,"DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING")()}return{type:c?`use-${c}`:"use",value:{loader:i,options:s,ident:a}}}};const p=(e,t)=>{if(Array.isArray(t)){return t.map((t,n)=>f(`${e}[${n}]`,"[[missing ident]]",t))}return[f(e,"[[missing ident]]",t)]};const d=(e,t)=>{if(Array.isArray(t)){return t.map((t,n)=>{const r=`${e}[${n}]`;return l(r,r,t)})}return[l(e,e,t)]};if(typeof e==="function"){s.effects.push(n=>p(`${t}.use`,e(n)))}else{for(const n of d(`${t}.use`,e)){s.effects.push(n)}}}if(i.has("loader")){i.delete("loader");i.delete("options");i.delete("enforce");const a=n.loader;const c=n.options;const u=n.enforce;if(a.includes("!")){throw e.error(`${t}.loader`,a,"Exclamation mark separated loader lists has been removed in favor of the 'use' property with arrays")}if(a.includes("?")){throw e.error(`${t}.loader`,a,"Query arguments on 'loader' has been removed in favor of the 'options' property")}if(typeof c==="string"){r.deprecate(()=>{},`Using a string as loader options is deprecated (${t}.options)`,"DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING")()}const l=c&&typeof c==="object"?t:undefined;o.set(l,c);s.effects.push({type:u?`use-${u}`:"use",value:{loader:a,options:c,ident:l}})}})}useItemToEffects(e,t){}}e.exports=UseEffectRulePlugin},64255:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class ChunkNameRuntimeModule extends i{constructor(e){super("chunkName");this.chunkName=e}generate(){return`${r.chunkName} = ${JSON.stringify(this.chunkName)};`}}e.exports=ChunkNameRuntimeModule},90202:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(9851);class CompatGetDefaultExportRuntimeModule extends s{constructor(){super("compat get default export")}generate(){const{runtimeTemplate:e}=this.compilation;const t=r.compatGetDefaultExport;return i.asString(["// getDefaultExport function for compatibility with non-harmony modules",`${t} = ${e.basicFunction("module",["var getter = module && module.__esModule ?",i.indent([`${e.returningFunction("module['default']")} :`,`${e.returningFunction("module")};`]),`${r.definePropertyGetters}(getter, { a: getter });`,"return getter;"])};`])}}e.exports=CompatGetDefaultExportRuntimeModule},16710:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class CompatRuntimeModule extends i{constructor(){super("compat",10)}generate(){const{chunk:e,compilation:t}=this;const{chunkGraph:n,runtimeTemplate:i,mainTemplate:s,moduleTemplates:o,dependencyTemplates:a}=t;const c=s.hooks.bootstrap.call("",e,t.hash||"XXXX",o.javascript,a);const u=s.hooks.localVars.call("",e,t.hash||"XXXX");const l=s.hooks.requireExtensions.call("",e,t.hash||"XXXX");const f=n.getTreeRuntimeRequirements(e);let p="";if(f.has(r.ensureChunk)){const n=s.hooks.requireEnsure.call("",e,t.hash||"XXXX","chunkId");if(n){p=`${r.ensureChunkHandlers}.compat = ${i.basicFunction("chunkId, promises",n)};`}}return[c,u,p,l].filter(Boolean).join("\n")}shouldIsolate(){return false}}e.exports=CompatRuntimeModule},3236:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(9851);class CreateFakeNamespaceObjectRuntimeModule extends s{constructor(){super("create fake namespace object")}generate(){const{runtimeTemplate:e}=this.compilation;const t=e.supportsArrowFunction()&&e.supportsConst();const n=r.createFakeNamespaceObject;return i.asString(["// create a fake namespace object","// mode & 1: value is a module id, require it","// mode & 2: merge all properties of value into the ns","// mode & 4: return value when already ns object","// mode & 8|1: behave like require",`${n} = function(value, mode) {`,i.indent([`if(mode & 1) value = this(value);`,`if(mode & 8) return value;`,"if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;","var ns = Object.create(null);",`${r.makeNamespaceObject}(ns);`,"var def = {};","if(mode & 2 && typeof value == 'object' && value) {",i.indent([t?`for(const key in value) def[key] = () => value[key];`:`for(var key in value) def[key] = function(key) { return value[key]; }.bind(null, key);`]),"}",t?"def['default'] = () => value;":"def['default'] = function() { return value; };",`${r.definePropertyGetters}(ns, def);`,"return ns;"]),"};"])}}e.exports=CreateFakeNamespaceObjectRuntimeModule},58957:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(9851);class DefinePropertyGettersRuntimeModule extends s{constructor(){super("define property getters")}generate(){const{runtimeTemplate:e}=this.compilation;const t=r.definePropertyGetters;return i.asString(["// define getter functions for harmony exports",`${t} = ${e.basicFunction("exports, definition",[`for(var key in definition) {`,i.indent([`if(${r.hasOwnProperty}(definition, key) && !${r.hasOwnProperty}(exports, key)) {`,i.indent(["Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });"]),"}"]),"}"])};`])}}e.exports=DefinePropertyGettersRuntimeModule},59179:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class EnsureChunkRuntimeModule extends i{constructor(e){super("ensure chunk");this.runtimeRequirements=e}generate(){const{runtimeTemplate:e}=this.compilation;if(this.runtimeRequirements.has(r.ensureChunkHandlers)){const t=r.ensureChunkHandlers;return s.asString([`${t} = {};`,"// This file contains only the entry chunk.","// The chunk loading function for additional chunks",`${r.ensureChunk} = ${e.basicFunction("chunkId",[`return Promise.all(Object.keys(${t}).reduce(${e.basicFunction("promises, key",[`${t}[key](chunkId, promises);`,"return promises;"])}, []));`])};`])}else{return s.asString(["// The chunk loading function for additional chunks","// Since all referenced chunks are already included","// in this file, this function is empty here.",`${r.ensureChunk} = ${e.returningFunction("Promise.resolve()")};`])}}}e.exports=EnsureChunkRuntimeModule},9609:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class GetChunkFilenameRuntimeModule extends i{constructor(e,t,n,r,i){super(`get ${t} chunk filename`);this.contentType=e;this.global=n;this.getFilenameForChunk=r;this.allChunks=i}generate(){const{global:e,chunk:t,contentType:n,getFilenameForChunk:i,allChunks:o,compilation:a}=this;const{runtimeTemplate:c}=a;const u=new Map;let l=0;let f;const p=e=>{const t=i(e);if(t){let n=u.get(t);if(n===undefined){u.set(t,n=new Set)}n.add(e);if(typeof t==="string"){if(n.size<l)return;if(n.size===l){if(t.length<f.length)return;if(t.length===f.length){if(t<f)return}}l=n.size;f=t}}};const d=[];if(o){d.push("all chunks");for(const e of t.getAllReferencedChunks()){p(e)}}else{d.push("async chunks");for(const e of t.getAllAsyncChunks()){p(e)}const e=a.chunkGraph.getTreeRuntimeRequirements(t).has(r.ensureChunkIncludeEntries);if(e){d.push("sibling chunks for the entrypoint");for(const e of a.chunkGraph.getChunkEntryDependentChunksIterable(t)){p(e)}}}const h=new Map;const m=new Set;const g=(e,t)=>{const i=t=>{const n=`${t}`;if(n.length>=5&&n===`${e.id}`){return'" + chunkId + "'}const r=JSON.stringify(n);return r.slice(1,r.length-1)};const s=e=>t=>i(`${e}`.slice(0,t));const o=typeof t==="function"?JSON.stringify(t({chunk:e,contentHashType:n})):JSON.stringify(t);const c=a.getPath(o,{hash:`" + ${r.getFullHash}() + "`,hashWithLength:e=>`" + ${r.getFullHash}().slice(0, ${e}) + "`,chunk:{id:i(e.id),hash:i(e.renderedHash),hashWithLength:s(e.renderedHash),name:i(e.name||e.id),contentHash:{[n]:i(e.contentHash[n])},contentHashWithLength:{[n]:s(e.contentHash[n])}},contentHashType:n});let u=h.get(c);if(u===undefined){h.set(c,u=new Set)}u.add(e.id)};for(const[e,t]of u){if(e!==f){for(const n of t)g(n,e)}else{for(const e of t)m.add(e)}}const y=e=>{const t={};let n=false;let r;let i=0;for(const s of m){const o=e(s);if(o===s.id){n=true}else{t[s.id]=o;r=s.id;i++}}if(i===0)return"chunkId";if(i===1){return n?`(chunkId === ${JSON.stringify(r)} ? ${JSON.stringify(t[r])} : chunkId)`:JSON.stringify(t[r])}return n?`(${JSON.stringify(t)}[chunkId] || chunkId)`:`${JSON.stringify(t)}[chunkId]`};const v=e=>{return`" + ${y(e)} + "`};const _=e=>t=>{return`" + ${y(n=>`${e(n)}`.slice(0,t))} + "`};const b=f&&a.getPath(JSON.stringify(f),{hash:`" + ${r.getFullHash}() + "`,hashWithLength:e=>`" + ${r.getFullHash}().slice(0, ${e}) + "`,chunk:{id:`" + chunkId + "`,hash:v(e=>e.renderedHash),hashWithLength:_(e=>e.renderedHash),name:v(e=>e.name||e.id),contentHash:{[n]:v(e=>e.contentHash[n])},contentHashWithLength:{[n]:_(e=>e.contentHash[n])}},contentHashType:n});return s.asString([`// This function allow to reference ${d.join(" and ")}`,`${e} = ${c.basicFunction("chunkId",h.size>0?["// return url for filenames not based on template",s.asString(Array.from(h,([e,t])=>{const n=t.size===1?`chunkId === ${JSON.stringify(t.values().next().value)}`:`{${Array.from(t,e=>`${JSON.stringify(e)}:1`).join(",")}}[chunkId]`;return`if (${n}) return ${e};`})),"// return url for filenames based on template",`return ${b};`]:["// return url for filenames based on template",`return ${b};`])};`])}}e.exports=GetChunkFilenameRuntimeModule},75948:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class GetFullHashRuntimeModule extends i{constructor(){super("getFullHash")}generate(){const{runtimeTemplate:e}=this.compilation;return`${r.getFullHash} = ${e.returningFunction(JSON.stringify(this.compilation.hash||"XXXX"))}`}}e.exports=GetFullHashRuntimeModule},36100:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class GetMainFilenameRuntimeModule extends i{constructor(e,t,n){super(`get ${e} filename`);this.global=t;this.filename=n}generate(){const{global:e,filename:t,compilation:n}=this;const{runtimeTemplate:i}=n;const o=n.getPath(JSON.stringify(t),{hash:`" + ${r.getFullHash}() + "`,hashWithLength:e=>`" + ${r.getFullHash}().slice(0, ${e}) + "`});return s.asString([`${e} = ${i.returningFunction(o)};`])}}e.exports=GetMainFilenameRuntimeModule},13376:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class GlobalRuntimeModule extends i{constructor(){super("global")}generate(){return s.asString([`${r.global} = (function() {`,s.indent(["if (typeof globalThis === 'object') return globalThis;","try {",s.indent("return this || new Function('return this')();"),"} catch (e) {",s.indent("if (typeof window === 'object') return window;"),"}"]),"})();"])}}e.exports=GlobalRuntimeModule},37522:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class HasOwnPropertyRuntimeModule extends i{constructor(){super("hasOwnProperty shorthand")}generate(){const{runtimeTemplate:e}=this.compilation;return s.asString([`${r.hasOwnProperty} = ${e.returningFunction("Object.prototype.hasOwnProperty.call(obj, prop)","obj, prop")}`])}}e.exports=HasOwnPropertyRuntimeModule},9851:(e,t,n)=>{"use strict";const r=n(66804);class HelperRuntimeModule extends r{constructor(e){super(e)}}e.exports=HelperRuntimeModule},67104:(e,t,n)=>{"use strict";const{SyncWaterfallHook:r}=n(92960);const i=n(3080);const s=n(76150);const o=n(58159);const a=n(9851);const c=new WeakMap;class LoadScriptRuntimeModule extends a{static getCompilationHooks(e){if(!(e instanceof i)){throw new TypeError("The 'compilation' argument must be an instance of Compilation")}let t=c.get(e);if(t===undefined){t={createScript:new r(["source","chunk"])};c.set(e,t)}return t}constructor(){super("load script")}generate(){const{compilation:e}=this;const{runtimeTemplate:t,outputOptions:n}=e;const{scriptType:r,chunkLoadTimeout:i,crossOriginLoading:a,uniqueName:c,charset:u}=n;const l=s.loadScript;const{createScript:f}=LoadScriptRuntimeModule.getCompilationHooks(e);const p=o.asString(["script = document.createElement('script');",r?`script.type = ${JSON.stringify(r)};`:"",u?"script.charset = 'utf-8';":"",`script.timeout = ${i/1e3};`,`if (${s.scriptNonce}) {`,o.indent(`script.setAttribute("nonce", ${s.scriptNonce});`),"}",c?'script.setAttribute("data-webpack", dataWebpackPrefix + key);':"",`script.src = url;`,a?o.asString(["if (script.src.indexOf(window.location.origin + '/') !== 0) {",o.indent(`script.crossOrigin = ${JSON.stringify(a)};`),"}"]):""]);return o.asString(["var inProgress = {};",c?`var dataWebpackPrefix = ${JSON.stringify(c+":")};`:"// data-webpack is not used as build has no uniqueName","// loadScript function to load a script via script tag",`${l} = ${t.basicFunction("url, done, key",["if(inProgress[url]) { inProgress[url].push(done); return; }","var script, needAttach;","if(key !== undefined) {",o.indent(['var scripts = document.getElementsByTagName("script");',"for(var i = 0; i < scripts.length; i++) {",o.indent(["var s = scripts[i];",`if(s.getAttribute("src") == url${c?' || s.getAttribute("data-webpack") == dataWebpackPrefix + key':""}) { script = s; break; }`]),"}"]),"}","if(!script) {",o.indent(["needAttach = true;",f.call(p,this.chunk)]),"}","inProgress[url] = [done];","var onScriptComplete = "+t.basicFunction("prev, event",o.asString(["// avoid mem leaks in IE.","script.onerror = script.onload = null;","clearTimeout(timeout);","var doneFns = inProgress[url];","delete inProgress[url];","script.parentNode && script.parentNode.removeChild(script);",`doneFns && doneFns.forEach(${t.returningFunction("fn(event)","fn")});`,"if(prev) return prev(event);"])),";",`var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), ${i});`,"script.onerror = onScriptComplete.bind(null, script.onerror);","script.onload = onScriptComplete.bind(null, script.onload);","needAttach && document.head.appendChild(script);"])};`])}}e.exports=LoadScriptRuntimeModule},14676:(e,t,n)=>{"use strict";const r=n(76150);const i=n(58159);const s=n(9851);class MakeNamespaceObjectRuntimeModule extends s{constructor(){super("make namespace object")}generate(){const{runtimeTemplate:e}=this.compilation;const t=r.makeNamespaceObject;return i.asString(["// define __esModule on exports",`${t} = ${e.basicFunction("exports",["if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {",i.indent(["Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });"]),"}","Object.defineProperty(exports, '__esModule', { value: true });"])};`])}}e.exports=MakeNamespaceObjectRuntimeModule},48977:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class PublicPathRuntimeModule extends i{constructor(){super("publicPath")}generate(){return`${r.publicPath} = ${JSON.stringify(this.compilation.getPath(this.compilation.outputOptions.publicPath||"",{hash:this.compilation.hash||"XXXX"}))};`}}e.exports=PublicPathRuntimeModule},64997:(e,t,n)=>{"use strict";const r=n(76150);const i=n(55616);const s=n(34487);class StartupChunkDependenciesPlugin{constructor(e){this.asyncChunkLoading=e&&typeof e.asyncChunkLoading==="boolean"?e.asyncChunkLoading:true}apply(e){e.hooks.thisCompilation.tap("StartupChunkDependenciesPlugin",e=>{e.hooks.additionalTreeRuntimeRequirements.tap("StartupChunkDependenciesPlugin",(t,n)=>{if(e.chunkGraph.hasChunkEntryDependentChunks(t)){n.add(r.startup);n.add(r.ensureChunk);n.add(r.ensureChunkIncludeEntries);e.addRuntimeModule(t,new i(this.asyncChunkLoading))}});e.hooks.runtimeRequirementInTree.for(r.startupEntrypoint).tap("StartupChunkDependenciesPlugin",(t,n)=>{n.add(r.ensureChunk);n.add(r.ensureChunkIncludeEntries);e.addRuntimeModule(t,new s(this.asyncChunkLoading))})})}}e.exports=StartupChunkDependenciesPlugin},55616:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class StartupChunkDependenciesRuntimeModule extends i{constructor(e){super("startup chunk dependencies");this.asyncChunkLoading=e}generate(){const{chunk:e,compilation:t}=this;const{chunkGraph:n,runtimeTemplate:i}=t;const o=Array.from(n.getChunkEntryDependentChunksIterable(e)).map(e=>{return e.id});return s.asString([`var next = ${r.startup};`,`${r.startup} = ${i.basicFunction("",!this.asyncChunkLoading?o.map(e=>`${r.ensureChunk}(${JSON.stringify(e)});`).concat("return next();"):o.length===1?`return ${r.ensureChunk}(${JSON.stringify(o[0])}).then(next);`:o.length>2?[`return Promise.all(${JSON.stringify(o)}.map(${r.ensureChunk}, __webpack_require__)).then(next);`]:["return Promise.all([",s.indent(o.map(e=>`${r.ensureChunk}(${JSON.stringify(e)})`).join(",\n")),"]).then(next);"])};`])}}e.exports=StartupChunkDependenciesRuntimeModule},34487:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class StartupEntrypointRuntimeModule extends i{constructor(e){super("startup entrypoint");this.asyncChunkLoading=e}generate(){const{compilation:e}=this;const{runtimeTemplate:t}=e;return`${r.startupEntrypoint} = ${t.basicFunction("chunkIds, moduleId",this.asyncChunkLoading?`return Promise.all(chunkIds.map(${r.ensureChunk}, __webpack_require__)).then(${t.returningFunction("__webpack_require__(moduleId)")})`:[`chunkIds.map(${r.ensureChunk}, __webpack_require__)`,"return __webpack_require__(moduleId)"])}`}}e.exports=StartupEntrypointRuntimeModule},76752:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);class SystemContextRuntimeModule extends i{constructor(){super("__system_context__")}generate(){return`${r.systemContext} = __system_context__;`}}e.exports=SystemContextRuntimeModule},68495:(e,t,n)=>{"use strict";const r=n(53520);const{getMimetype:i,decodeDataURI:s}=n(51145);class DataUriPlugin{apply(e){e.hooks.compilation.tap("DataUriPlugin",(e,{normalModuleFactory:t})=>{t.hooks.resolveForScheme.for("data").tap("DataUriPlugin",e=>{e.data.mimetype=i(e.resource)});r.getCompilationHooks(e).readResourceForScheme.for("data").tap("DataUriPlugin",e=>s(e))})}}e.exports=DataUriPlugin},99184:(e,t,n)=>{"use strict";const{URL:r,fileURLToPath:i}=n(78835);class FileUriPlugin{apply(e){e.hooks.compilation.tap("FileUriPlugin",(e,{normalModuleFactory:t})=>{t.hooks.resolveForScheme.for("file").tap("FileUriPlugin",e=>{const t=new r(e.resource);const n=i(t);const s=t.search;const o=t.hash;e.path=n;e.query=s;e.fragment=o;e.resource=n+s+o;return true})})}}e.exports=FileUriPlugin},7201:(e,t,n)=>{"use strict";const{URL:r}=n(78835);const i=n(53520);class HttpUriPlugin{apply(e){e.hooks.compilation.tap("HttpUriPlugin",(e,{normalModuleFactory:t})=>{t.hooks.resolveForScheme.for("http").tap("HttpUriPlugin",e=>{const t=new r(e.resource);e.path=t.origin+t.pathname;e.query=t.search;e.fragment=t.hash;return true});i.getCompilationHooks(e).readResourceForScheme.for("http").tapAsync("HttpUriPlugin",(e,t,i)=>{return n(98605).get(new r(e),e=>{if(e.statusCode!==200){e.destroy();return i(new Error(`http request status code = ${e.statusCode}`))}const t=[];e.on("data",e=>{t.push(e)});e.on("end",()=>{if(!e.complete){return i(new Error("http request was terminated"))}i(null,Buffer.concat(t))})})})})}}e.exports=HttpUriPlugin},1161:(e,t,n)=>{"use strict";const{URL:r}=n(78835);const i=n(53520);class HttpsUriPlugin{apply(e){e.hooks.compilation.tap("HttpsUriPlugin",(e,{normalModuleFactory:t})=>{t.hooks.resolveForScheme.for("https").tap("HttpsUriPlugin",e=>{const t=new r(e.resource);e.path=t.origin+t.pathname;e.query=t.search;e.fragment=t.hash;return true});i.getCompilationHooks(e).readResourceForScheme.for("https").tapAsync("HttpsUriPlugin",(e,t,i)=>{return n(57211).get(new r(e),e=>{if(e.statusCode!==200){e.destroy();return i(new Error(`https request status code = ${e.statusCode}`))}const t=[];e.on("data",e=>{t.push(e)});e.on("end",()=>{if(!e.complete){return i(new Error("https request was terminated"))}i(null,Buffer.concat(t))})})})})}}e.exports=HttpsUriPlugin},22324:e=>{"use strict";class ArraySerializer{serialize(e,{write:t}){t(e.length);for(const n of e)t(n)}deserialize({read:e}){const t=e();const n=[];for(let r=0;r<t;r++){n.push(e())}return n}}e.exports=ArraySerializer},88692:(e,t,n)=>{"use strict";const r=n(27503);const i=n(43065);const s=11;const o=12;const a=13;const c=14;const u=15;const l=16;const f=96;const p=64;const d=32;const h=128;const m=240;const g=224;const y=31;const v=15;const _=127;const b=1;const E=1;const w=4;const S=8;const k=Symbol("MEASURE_START_OPERATION");const D=Symbol("MEASURE_END_OPERATION");const x=e=>{if(e===(e|0)){if(e<=127&&e>=-128)return 0;if(e<=2147483647&&e>=-2147483648)return 1}return 2};class BinaryMiddleware extends i{serialize(e,t){return this._serialize(e,t)}_serialize(e,t){let n=null;let r=0;const m=[];const g=(e,t=false)=>{if(n!==null){if(n.length-r>=e)return;y()}n=Buffer.allocUnsafe(t?e:Math.max(e,1024))};const y=()=>{if(n!==null){m.push(n.slice(0,r));n=null;r=0}};const v=e=>{n.writeUInt8(e,r++)};const _=e=>{n.writeUInt32LE(e,r);r+=4};const C=[];const A=()=>{C.push(m.length,r)};const T=()=>{const e=C.pop();const t=C.pop();let n=r-e;for(let e=t;e<m.length;e++){n+=m[e].length}return n};const M=e=>{for(let C=0;C<e.length;C++){const O=e[C];switch(typeof O){case"function":{if(!i.isLazy(O))throw new Error("Unexpected function "+O);const e=i.getLazySerializedValue(O);if(e!==undefined){if(typeof e==="function"){y();m.push(e)}else{M(e);g(5);v(s);_(e.length)}}else if(i.isLazy(O,this)){const e=this._serialize(O(),t);i.setLazySerializedValue(O,e);M(e);g(5);v(s);_(e.length)}else{y();m.push(i.serializeLazy(O,e=>this._serialize(e,t)))}break}case"string":{const e=Buffer.byteLength(O);if(e>=128){g(e+b+w);v(c);_(e)}else{g(e+b);v(h|e)}n.write(O,r);r+=e;break}case"number":{const t=x(O);if(t===0&&O>=0&&O<=10){g(E);v(O);break}let i=1;for(;i<32&&C+i<e.length;i++){const n=e[C+i];if(typeof n!=="number")break;if(x(n)!==t)break}switch(t){case 0:g(b+E*i);v(f|i-1);while(i>0){n.writeInt8(e[C],r);r+=E;i--;C++}break;case 1:g(b+w*i);v(p|i-1);while(i>0){n.writeInt32LE(e[C],r);r+=w;i--;C++}break;case 2:g(b+S*i);v(d|i-1);while(i>0){n.writeDoubleLE(e[C],r);r+=S;i--;C++}break}C--;break}case"boolean":g(b);v(O===true?o:a);break;case"object":{if(O===null){let t;for(t=1;t<16&&C+t<e.length;t++){const n=e[C+t];if(n!==null)break}g(b);v(l|t-1);C+=t-1}else if(Buffer.isBuffer(O)){g(b+w,true);v(u);_(O.length);y();m.push(O)}break}case"symbol":{if(O===k){A()}else if(O===D){const e=T();g(b+w);v(p);n.writeInt32LE(e,r);r+=w}break}}}};M(e);y();return m}deserialize(e,t){return this._deserialize(e,t)}_deserialize(e,t){let n=0;let b=e[0];let k=Buffer.isBuffer(b);let D=0;const x=()=>{if(D>=b.length){D=0;n++;b=n<e.length?e[n]:null;k=Buffer.isBuffer(b)}};const C=e=>{return k&&e+D<=b.length};const A=e=>{if(!k){throw new Error(b===null?"Unexpected end of stream":"Unexpected lazy element in stream")}const t=b.length-D;if(t<e){return Buffer.concat([A(t),A(e-t)])}const n=b.slice(D,D+e);D+=e;x();return n};const T=()=>{if(!k){throw new Error(b===null?"Unexpected end of stream":"Unexpected lazy element in stream")}const e=b.readUInt8(D);D+=E;x();return e};const M=()=>{return A(w).readUInt32LE(0)};const O=[];while(b!==null){if(typeof b==="function"){O.push(i.deserializeLazy(b,e=>this._deserialize(e,t)));n++;b=n<e.length?e[n]:null;k=Buffer.isBuffer(b);continue}const F=T();switch(F){case s:{const e=M();const n=O.length-e;const s=O.slice(n);O.length=n;O.push(i.createLazy(r(()=>this._deserialize(s,t)),this,undefined,s));break}case u:{const e=M();O.push(A(e));break}case o:O.push(true);break;case a:O.push(false);break;case c:{const e=M();const t=A(e);O.push(t.toString());break}default:if(F<=10){O.push(F)}else if((F&h)===h){const e=F&_;const t=A(e);O.push(t.toString())}else if((F&g)===d){const e=(F&y)+1;const t=S*e;if(C(t)){for(let t=0;t<e;t++){O.push(b.readDoubleLE(D));D+=S}x()}else{const n=A(t);for(let t=0;t<e;t++){O.push(n.readDoubleLE(t*S))}}}else if((F&g)===p){const e=(F&y)+1;const t=w*e;if(C(t)){for(let t=0;t<e;t++){O.push(b.readInt32LE(D));D+=w}x()}else{const n=A(t);for(let t=0;t<e;t++){O.push(n.readInt32LE(t*w))}}}else if((F&g)===f){const e=(F&y)+1;const t=E*e;if(C(t)){for(let t=0;t<e;t++){O.push(b.readInt8(D));D+=E}x()}else{const n=A(t);for(let t=0;t<e;t++){O.push(n.readInt8(t*E))}}}else if((F&m)===l){const e=(F&v)+1;for(let t=0;t<e;t++){O.push(null)}}else{throw new Error(`Unexpected header byte 0x${F.toString(16)}`)}break}}return O}}e.exports=BinaryMiddleware;e.exports.MEASURE_START_OPERATION=k;e.exports.MEASURE_END_OPERATION=D},93524:e=>{"use strict";class DateObjectSerializer{serialize(e,{write:t}){t(e.getTime())}deserialize({read:e}){return new Date(e())}}e.exports=DateObjectSerializer},12020:e=>{"use strict";class ErrorObjectSerializer{constructor(e){this.Type=e}serialize(e,{write:t}){t(e.message);t(e.stack)}deserialize({read:e}){const t=new this.Type;t.message=e();t.stack=e();return t}}e.exports=ErrorObjectSerializer},13829:(e,t,n)=>{"use strict";const r=n(35891);const{dirname:i,join:s,mkdirp:o}=n(95396);const a=n(27503);const c=n(43065);const u=6516855;const l=e=>{const t=r("md4");for(const n of e)t.update(n);return t.digest("hex")};const f=async(e,t,n,r)=>{const i=[];const s=new WeakMap;let o=undefined;for(const n of await t){if(typeof n==="function"){if(!c.isLazy(n))throw new Error("Unexpected function");if(!c.isLazy(n,e)){throw new Error("Unexpected lazy value with non-this target (can't pass through lazy values)")}o=undefined;const t=c.getLazySerializedValue(n);if(t){if(typeof t==="function"){throw new Error("Unexpected lazy value with non-this target (can't pass through lazy values)")}else{i.push(t)}}else{const t=n();if(t){const o=c.getLazyOptions(n);i.push(f(e,t,o&&o.name||true,r).then(e=>{n.options.size=e.size;s.set(e,n);return e}))}else{throw new Error("Unexpected falsy value returned by lazy value function")}}}else if(n){if(o){o.push(n)}else{o=[n];i.push(o)}}else{throw new Error("Unexpected falsy value in items array")}}const a=[];const p=(await Promise.all(i)).map(e=>{if(Array.isArray(e)||Buffer.isBuffer(e))return e;a.push(e.backgroundJob);const t=e.name;const n=Buffer.from(t);const r=Buffer.allocUnsafe(4+n.length);r.writeUInt32LE(e.size,0);n.copy(r,4,0);const i=s.get(e);c.setLazySerializedValue(i,r);return r});const d=p.map(e=>{if(Array.isArray(e)){let t=0;for(const n of e)t+=n.length;return t}else if(e){return-e.length}else{throw new Error("Unexpected falsy value in resolved data "+e)}});const h=Buffer.allocUnsafe(8+d.length*4);h.writeUInt32LE(u,0);h.writeUInt32LE(d.length,4);for(let e=0;e<d.length;e++){h.writeInt32LE(d[e],8+e*4)}const m=[h];for(const e of p){if(Array.isArray(e)){for(const t of e)m.push(t)}else if(e){m.push(e)}}if(n===true){n=l(m)}a.push(r(n,m));let g=0;for(const e of m)g+=e.length;return{size:g,name:n,backgroundJob:a.length===1?a[0]:Promise.all(a)}};const p=async(e,t,n)=>{const r=await n(t);if(r.length===0)throw new Error("Empty file "+t);const i=r.readUInt32LE(0);if(i!==u){throw new Error("Invalid file version")}const s=r.readUInt32LE(4);const o=[];for(let e=0;e<s;e++){o.push(r.readInt32LE(8+4*e))}let l=s*4+8;const f=o.map(t=>{const i=Math.abs(t);const s=r.slice(l,l+i);l+=i;if(t<0){const t=Buffer.from(s);const r=s.readUInt32LE(0);const i=t.slice(4);const o=i.toString();return c.createLazy(a(()=>p(e,o,n)),e,{name:o,size:r},t)}else{return s}});return f};class FileMiddleware extends c{constructor(e){super();this.fs=e}serialize(e,{filename:t,extension:n=""}){return new Promise((r,a)=>{o(this.fs,i(this.fs,t),i=>{if(i)return a(i);const o=new Set;const c=async(e,r)=>{const i=e?s(this.fs,t,`../${e}${n}`):t;await new Promise((e,t)=>{const n=this.fs.createWriteStream(i+"_");for(const e of r)n.write(e);n.end();n.on("error",e=>t(e));n.on("finish",()=>e())});if(e)o.add(i)};r(f(this,e,false,c).then(async({backgroundJob:e})=>{await e;await new Promise(e=>this.fs.rename(t,t+".old",t=>{e()}));await Promise.all(Array.from(o,e=>new Promise((t,n)=>{this.fs.rename(e+"_",e,e=>{if(e)return n(e);t()})})));await new Promise(e=>{this.fs.rename(t+"_",t,t=>{if(t)return a(t);e()})});return true}))})})}deserialize(e,{filename:t,extension:n=""}){const r=e=>new Promise((r,i)=>{const o=e?s(this.fs,t,`../${e}${n}`):t;return this.fs.readFile(o,(e,t)=>{if(e)return i(e);r(t)})});return p(this,false,r)}}e.exports=FileMiddleware},58461:e=>{"use strict";class MapObjectSerializer{serialize(e,{write:t}){t(e.size);for(const n of e.keys()){t(n)}for(const n of e.values()){t(n)}}deserialize({read:e}){let t=e();const n=new Map;const r=[];for(let n=0;n<t;n++){r.push(e())}for(let i=0;i<t;i++){n.set(r[i],e())}return n}}e.exports=MapObjectSerializer},78176:e=>{"use strict";class NullPrototypeObjectSerializer{serialize(e,{write:t}){const n=Object.keys(e);for(const e of n){t(e)}t(null);for(const r of n){t(e[r])}}deserialize({read:e}){const t=Object.create(null);const n=[];let r=e();while(r!==null){n.push(r);r=e()}for(const r of n){t[r]=e()}return t}}e.exports=NullPrototypeObjectSerializer},30991:(e,t,n)=>{"use strict";const r=n(22324);const i=n(93524);const s=n(12020);const o=n(58461);const a=n(78176);const c=n(11900);const u=n(46690);const l=n(43065);const f=n(25402);const p=(e,t)=>{let n=0;for(const r of e){if(n++>=t){e.delete(r)}}};const d=(e,t)=>{let n=0;for(const r of e.keys()){if(n++>=t){e.delete(r)}}};const h=null;const m=null;const g=true;const y=false;const v=2;const _=new Map;const b=new Map;const E=new Set;const w={};const S=new Map;S.set(Object,new c);S.set(Array,new r);S.set(null,new a);S.set(Map,new o);S.set(Set,new f);S.set(Date,new i);S.set(RegExp,new u);S.set(Error,new s(Error));S.set(EvalError,new s(EvalError));S.set(RangeError,new s(RangeError));S.set(ReferenceError,new s(ReferenceError));S.set(SyntaxError,new s(SyntaxError));S.set(TypeError,new s(TypeError));if(t.constructor!==Object){const e=t.constructor;const n=e.constructor;for(const[e,t]of Array.from(S)){if(e){const r=new n(`return ${e.name};`)();S.set(r,t)}}}{let e=1;for(const[t,n]of S){_.set(t,{request:"",name:e++,serializer:n})}}for(const{request:e,name:t,serializer:n}of _.values()){b.set(`${e}/${t}`,n)}const k=new Map;class ObjectMiddleware extends l{constructor(e){super();this.extendContext=e}static registerLoader(e,t){k.set(e,t)}static register(e,t,n,r){const i=t+"/"+n;if(_.has(e)){throw new Error(`ObjectMiddleware.register: serializer for ${e.name} is already registered`)}if(b.has(i)){throw new Error(`ObjectMiddleware.register: serializer for ${i} is already registered`)}_.set(e,{request:t,name:n,serializer:r});b.set(i,r)}static registerNotSerializable(e){if(_.has(e)){throw new Error(`ObjectMiddleware.registerNotSerializable: serializer for ${e.name} is already registered`)}_.set(e,w)}static getSerializerFor(e){let t=e.constructor;if(!t){if(Object.getPrototypeOf(e)===null){t=null}else{throw new Error("Serialization of objects with prototype without valid constructor property not possible")}}const n=_.get(t);if(!n)throw new Error(`No serializer registered for ${t.name}`);if(n===w)throw w;return n}static getDeserializerFor(e,t){const n=e+"/"+t;const r=b.get(n);if(r===undefined){throw new Error(`No deserializer registered for ${n}`)}return r}serialize(e,t){const n=[v];let r=0;const i=new Map;const s=e=>{i.set(e,r++)};let o=0;const a=new Map;const c=new Set;const u=e=>{const t=Array.from(c);t.push(e);return t.map(e=>{if(typeof e==="string"){if(e.length>100){return`String ${JSON.stringify(e.slice(0,100)).slice(0,-1)}..."`}return`String ${JSON.stringify(e)}`}try{const{request:t,name:n}=ObjectMiddleware.getSerializerFor(e);if(t){return`${t}${n?`.${n}`:""}`}}catch(e){}if(typeof e==="object"&&e!==null){if(e.constructor){if(e.constructor===Object)return`Object { ${Object.keys(e).join(", ")} }`;if(e.constructor===Map)return`Map { ${e.size} items }`;if(e.constructor===Array)return`Array { ${e.length} items }`;if(e.constructor===Set)return`Set { ${e.size} items }`;if(e.constructor===RegExp)return e.toString();return`${e.constructor.name}`}return`Object [null prototype] { ${Object.keys(e).join(", ")} }`}try{return`${e}`}catch(e){return`(${e.message})`}}).join(" -> ")};let f;const _={write(e,t){try{b(e)}catch(t){if(f===undefined)f=new WeakSet;if(!f.has(t)){t.message+=`\nwhile serializing ${u(e)}`;f.add(t)}throw t}},snapshot(){return{length:n.length,cycleStackSize:c.size,referenceableSize:i.size,currentPos:r,objectTypeLookupSize:a.size,currentPosTypeLookup:o}},rollback(e){n.length=e.length;p(c,e.cycleStackSize);d(i,e.referenceableSize);r=e.currentPos;d(a,e.objectTypeLookupSize);o=e.currentPosTypeLookup},...t};this.extendContext(_);const b=e=>{const u=i.get(e);if(u!==undefined){n.push(h,u-r);return}if(Buffer.isBuffer(e)){s(e);n.push(e)}else if(typeof e==="object"&&e!==null){if(c.has(e)){throw new Error(`Circular references can't be serialized`)}const{request:t,name:r,serializer:i}=ObjectMiddleware.getSerializerFor(e);const u=`${t}/${r}`;const l=a.get(u);if(l===undefined){a.set(u,o++);n.push(h,t,r)}else{n.push(h,o-l)}c.add(e);try{i.serialize(e,_)}finally{c.delete(e)}n.push(h,g);s(e)}else if(typeof e==="string"){if(e!==""){s(e)}if(e.length>102400&&t.logger){t.logger.warn(`Serializing big strings (${Math.round(e.length/1024)}kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)`)}n.push(e)}else if(e===h){n.push(h,m)}else if(typeof e==="function"){if(!l.isLazy(e))throw new Error("Unexpected function "+e);const r=l.getLazySerializedValue(e);if(r!==undefined){if(typeof r==="function"){n.push(r)}else{throw new Error("Not implemented")}}else if(l.isLazy(e,this)){throw new Error("Not implemented")}else{n.push(l.serializeLazy(e,e=>this.serialize([e],t)))}}else if(e===undefined){n.push(h,y)}else{n.push(e)}};try{for(const t of e){b(t)}}catch(e){if(e===w)return null;throw e}return n}deserialize(e,t){let n=0;const r=()=>{if(n>=e.length)throw new Error("Unexpected end of stream");return e[n++]};if(r()!==v)throw new Error("Version mismatch, serializer changed");let i=0;const s=[];const o=e=>{s.push(e);i++};let a=0;const c=[];const u=[];const f={read(){return p()},...t};this.extendContext(f);const p=()=>{const e=r();if(e===h){const e=r();if(e===m){return h}else if(e===y){return undefined}else if(e===g){throw new Error(`Unexpected end of object at position ${n-1}`)}else if(typeof e==="number"&&e<0){return s[i+e]}else{const t=e;let i;if(typeof t==="number"){i=c[a-t]}else{if(typeof t!=="string"){throw new Error(`Unexpected type (${typeof t}) of request `+`at position ${n-1}`)}const e=r();if(t&&!E.has(t)){let e=false;for(const[n,r]of k){if(n.test(t)){if(r(t)){e=true;break}}}if(!e){require(t)}E.add(t)}i=ObjectMiddleware.getDeserializerFor(t,e);c.push(i);a++}try{const e=i.deserialize(f);const t=r();if(t!==h){throw new Error("Expected end of object")}const n=r();if(n!==g){throw new Error("Expected end of object")}o(e);return e}catch(e){let t;for(const e of _){if(e[1].serializer===i){t=e;break}}const n=!t?"unknown":!t[1].request?t[0].name:t[1].name?`${t[1].request} ${t[1].name}`:t[1].request;e.message+=`\n(during deserialization of ${n})`;throw e}}}else if(typeof e==="string"){if(e!==""){o(e)}return e}else if(Buffer.isBuffer(e)){o(e);return e}else if(typeof e==="function"){return l.deserializeLazy(e,e=>this.deserialize(e,t)[0])}else{return e}};while(n<e.length){u.push(p())}return u}}e.exports=ObjectMiddleware;e.exports.NOT_SERIALIZABLE=w},11900:e=>{"use strict";const t=new WeakMap;class ObjectStructure{constructor(e){this.keys=e;this.children=new Map}getKeys(){return this.keys}key(e){const t=this.children.get(e);if(t!==undefined)return t;const n=new ObjectStructure(this.keys.concat(e));this.children.set(e,n);return n}}const n=(e,n)=>{let r=t.get(n);if(r===undefined){r=new ObjectStructure([]);t.set(n,r)}let i=r;for(const t of e){i=i.key(t)}return i.getKeys()};class PlainObjectSerializer{serialize(e,{write:t}){const r=Object.keys(e);if(r.length>1){t(n(r,t));for(const n of r){t(e[n])}}else if(r.length===1){const n=r[0];t(n);t(e[n])}else{t(null)}}deserialize({read:e}){const t=e();const n={};if(Array.isArray(t)){for(const r of t){n[r]=e()}}else if(t!==null){n[t]=e()}return n}}e.exports=PlainObjectSerializer},46690:e=>{"use strict";class RegExpObjectSerializer{serialize(e,{write:t}){t(e.source);t(e.flags)}deserialize({read:e}){return new RegExp(e(),e())}}e.exports=RegExpObjectSerializer},15261:e=>{"use strict";class Serializer{constructor(e,t){this.serializeMiddlewares=e.slice();this.deserializeMiddlewares=e.slice().reverse();this.context=t}serialize(e,t){const n={...t,...this.context};let r=e;for(const e of this.serializeMiddlewares){if(r instanceof Promise){r=r.then(n=>n&&e.serialize(n,t))}else if(r){try{r=e.serialize(r,n)}catch(e){r=Promise.reject(e)}}else break}return r}deserialize(e,t){const n={...t,...this.context};let r=e;for(const e of this.deserializeMiddlewares){if(r instanceof Promise){r=r.then(n=>e.deserialize(n,t))}else{r=e.deserialize(r,n)}}return r}}e.exports=Serializer},43065:(e,t,n)=>{"use strict";const r=n(27503);const i=Symbol("lazy serialization target");const s=Symbol("lazy serialization data");class SerializerMiddleware{serialize(e,t){const r=n(75884);throw new r}deserialize(e,t){const r=n(75884);throw new r}static createLazy(e,t,n={},r){if(SerializerMiddleware.isLazy(e,t))return e;const o=typeof e==="function"?e:()=>e;o[i]=t;o.options=n;o[s]=r;return o}static isLazy(e,t){if(typeof e!=="function")return false;const n=e[i];return t?n===t:!!n}static getLazyOptions(e){if(typeof e!=="function")return undefined;return e.options}static getLazySerializedValue(e){if(typeof e!=="function")return undefined;return e[s]}static setLazySerializedValue(e,t){e[s]=t}static serializeLazy(e,t){const n=r(()=>{const n=e();if(n instanceof Promise)return n.then(e=>e&&t(e));if(n)return t(n);return null});n[i]=e[i];n.options=e.options;e[s]=n;return n}static deserializeLazy(e,t){const n=r(()=>{const n=e();if(n instanceof Promise)return n.then(e=>t(e));return t(n)});n[i]=e[i];n.options=e.options;n[s]=e;return n}}e.exports=SerializerMiddleware},25402:e=>{"use strict";class SetObjectSerializer{serialize(e,{write:t}){t(e.size);for(const n of e){t(n)}}deserialize({read:e}){let t=e();const n=new Set;for(let r=0;r<t;r++){n.add(e())}return n}}e.exports=SetObjectSerializer},79308:(e,t,n)=>{"use strict";const r=n(43065);class SingleItemMiddleware extends r{serialize(e,t){return[e]}deserialize(e,t){return e[0]}}e.exports=SingleItemMiddleware},86827:(e,t,n)=>{"use strict";const r=n(79983);const i=n(56202);class ConsumeSharedFallbackDependency extends r{constructor(e){super(e)}get type(){return"consume shared fallback"}get category(){return"esm"}}i(ConsumeSharedFallbackDependency,"webpack/lib/sharing/ConsumeSharedFallbackDependency");e.exports=ConsumeSharedFallbackDependency},21606:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(98221);const s=n(53453);const o=n(76150);const a=n(56202);const{rangeToString:c,stringifyHoley:u}=n(9293);const l=n(86827);const f=new Set(["consume-shared"]);class ConsumeSharedModule extends s{constructor(e,t){super("consume-shared-module",e);this.options=t}identifier(){const{shareKey:e,shareScope:t,importResolved:n,requiredVersion:r,strictVersion:i,singleton:s,eager:o}=this.options;return`consume-shared-module|${t}|${e}|${r&&c(r)}|${i}|${n}|${s}|${o}`}readableIdentifier(e){const{shareKey:t,shareScope:n,importResolved:r,requiredVersion:i,strictVersion:s,singleton:o,eager:a}=this.options;return`consume shared module (${n}) ${t}@${i?c(i):"*"}${s?" (strict)":""}${o?" (singleton)":""}${r?` (fallback: ${e.shorten(r)})`:""}${a?" (eager)":""}`}libIdent(e){const{shareKey:t,shareScope:n,import:r}=this.options;return`webpack/sharing/consume/${n}/${t}${r?`/${r}`:""}`}needBuild(e,t){t(null,!this.buildInfo)}build(e,t,n,r,s){this.buildMeta={};this.buildInfo={};if(this.options.import){const e=new l(this.options.import);if(this.options.eager){this.addDependency(e)}else{const t=new i({});t.addDependency(e);this.addBlock(t)}}s()}getSourceTypes(){return f}size(e){return 42}updateHash(e,t){e.update(JSON.stringify(this.options));super.updateHash(e,t)}codeGeneration({chunkGraph:e,moduleGraph:t,runtimeTemplate:n}){const i=new Set([o.shareScopeMap]);const{shareScope:s,shareKey:a,strictVersion:c,requiredVersion:l,import:f,singleton:p,eager:d}=this.options;let h;if(f){if(d){const t=this.dependencies[0];h=n.syncModuleFactory({dependency:t,chunkGraph:e,runtimeRequirements:i,request:this.options.import})}else{const t=this.blocks[0];h=n.asyncModuleFactory({block:t,chunkGraph:e,runtimeRequirements:i,request:this.options.import})}}let m="load";const g=[JSON.stringify(s),JSON.stringify(a)];if(l){if(c){m+="Strict"}if(p){m+="Singleton"}g.push(u(l));m+="VersionCheck"}if(h){m+="Fallback";g.push(h)}const y=n.returningFunction(`${m}(${g.join(", ")})`);const v=new Map;v.set("consume-shared",new r(y));return{runtimeRequirements:i,sources:v}}serialize(e){const{write:t}=e;t(this.options);super.serialize(e)}deserialize(e){const{read:t}=e;this.options=t();super.deserialize(e)}}a(ConsumeSharedModule,"webpack/lib/sharing/ConsumeSharedModule");e.exports=ConsumeSharedModule},71968:(e,t,n)=>{"use strict";const r=n(15235);const i=n(16308);const s=n(54032);const o=n(76150);const a=n(81627);const{parseOptions:c}=n(97264);const u=n(83379);const{parseRange:l}=n(9293);const f=n(86827);const p=n(21606);const d=n(20428);const h=n(31095);const{resolveMatchedConfigs:m}=n(57870);const{isRequiredVersion:g,getDescriptionFile:y,getRequiredVersionFromDescriptionFile:v}=n(37650);const _={dependencyType:"esm"};const b="ConsumeSharedPlugin";class ConsumeSharedPlugin{constructor(e){if(typeof e!=="string"){r(i,e,{name:"Consumes Shared Plugin"})}this._consumes=c(e.consumes,(t,n)=>{if(Array.isArray(t))throw new Error("Unexpected array in options");let r=t===n||!g(t)?{import:n,shareScope:e.shareScope||"default",shareKey:n,requiredVersion:undefined,packageName:undefined,strictVersion:false,singleton:false,eager:false}:{import:n,shareScope:e.shareScope||"default",shareKey:n,requiredVersion:l(t),strictVersion:true,packageName:undefined,singleton:false,eager:false};return r},(t,n)=>({import:t.import===false?undefined:t.import||n,shareScope:t.shareScope||e.shareScope||"default",shareKey:t.shareKey||n,requiredVersion:typeof t.requiredVersion==="string"?l(t.requiredVersion):t.requiredVersion,strictVersion:typeof t.strictVersion==="boolean"?t.strictVersion:t.import!==false&&!t.singleton,packageName:t.packageName,singleton:!!t.singleton,eager:!!t.eager}))}apply(e){e.hooks.thisCompilation.tap(b,(t,{normalModuleFactory:n})=>{t.dependencyFactories.set(f,n);let r,i,c;const g=m(t,this._consumes).then(({resolved:e,unresolved:t,prefixed:n})=>{i=e;r=t;c=n});const E=t.resolverFactory.get("normal",_);const w=(n,r,i)=>{const o=e=>{const n=new a(`No required version specified and unable to automatically determine one. ${e}`);n.file=`shared module ${r}`;t.warnings.push(n)};const c=i.import&&/^(\.\.?(\/|$)|\/|[A-Za-z]:|\\\\)/.test(i.import);return Promise.all([new Promise(o=>{if(!i.import)return o();const a={fileDependencies:new u,contextDependencies:new u,missingDependencies:new u};E.resolve({},c?e.context:n,i.import,a,(e,n)=>{t.contextDependencies.addAll(a.contextDependencies);t.fileDependencies.addAll(a.fileDependencies);t.missingDependencies.addAll(a.missingDependencies);if(e){t.errors.push(new s(null,e,{name:`resolving fallback for shared module ${r}`}));return o()}o(n)})}),new Promise(e=>{if(i.requiredVersion!==undefined)return e(i.requiredVersion);let s=i.packageName;if(s===undefined){if(/^(\/|[A-Za-z]:|\\\\)/.test(r)){return e()}const t=/^((?:@[^\\/]+[\\/])?[^\\/]+)/.exec(r);if(!t){o("Unable to extract the package name from request.");return e()}s=t[0]}y(t.inputFileSystem,n,["package.json"],(t,r)=>{if(t){o(`Unable to read description file: ${t}`);return e()}const{data:i,path:a}=r;if(!i){o(`Unable to find description file in ${n}.`);return e()}const c=v(i,s);if(typeof c!=="string"){o(`Unable to find required version for "${s}" in description file (${a}). It need to be in dependencies, devDependencies or peerDependencies.`);return e()}e(l(c))})})]).then(([t,r])=>{return new p(c?e.context:n,{...i,importResolved:t,import:t?i.import:undefined,requiredVersion:r})})};n.hooks.factorize.tapPromise(b,({context:e,request:t,dependencies:n})=>g.then(()=>{if(n[0]instanceof f||n[0]instanceof h){return}const i=r.get(t);if(i!==undefined){return w(e,t,i)}for(const[n,r]of c){if(t.startsWith(n)){const i=t.slice(n.length);return w(e,t,{...r,import:r.import?r.import+i:undefined,shareKey:r.shareKey+i})}}}));n.hooks.createModule.tapPromise(b,({resource:e},{context:t,dependencies:n})=>{if(n[0]instanceof f||n[0]instanceof h){return Promise.resolve()}const r=i.get(e);if(r!==undefined){return w(t,e,r)}return Promise.resolve()});t.hooks.additionalTreeRuntimeRequirements.tap(b,(e,n)=>{n.add(o.module);n.add(o.moduleFactoriesAddOnly);n.add(o.shareScopeMap);n.add(o.initializeSharing);n.add(o.hasOwnProperty);t.addRuntimeModule(e,new d(n))})})}}e.exports=ConsumeSharedPlugin},20428:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{parseVersionRuntimeCode:o,versionLtRuntimeCode:a,rangeToStringRuntimeCode:c,satisfyRuntimeCode:u}=n(9293);class ConsumeSharedRuntimeModule extends i{constructor(e){super("consumes",10);this._runtimeRequirements=e}generate(){const{runtimeTemplate:e,chunkGraph:t,codeGenerationResults:n}=this.compilation;const i={};const l=new Map;const f=[];const p=(e,r,i)=>{for(const s of e){const e=s;const o=t.getModuleId(e);i.push(o);l.set(o,n.getSource(e,r.runtime,"consume-shared"))}};for(const e of this.chunk.getAllAsyncChunks()){const n=t.getChunkModulesIterableBySourceType(e,"consume-shared");if(!n)continue;p(n,e,i[e.id]=[])}for(const e of this.chunk.getAllInitialChunks()){const n=t.getChunkModulesIterableBySourceType(e,"consume-shared");if(!n)continue;p(n,e,f)}if(l.size===0)return null;return s.asString([o(e),a(e),c(e),u(e),`var ensureExistence = ${e.basicFunction("scopeName, key",[`var scope = ${r.shareScopeMap}[scopeName];`,`if(!scope || !${r.hasOwnProperty}(scope, key)) throw new Error("Shared module " + key + " doesn't exist in shared scope " + scopeName);`,"return scope;"])};`,`var findVersion = ${e.basicFunction("scope, key",["var versions = scope[key];",`var key = Object.keys(versions).reduce(${e.basicFunction("a, b",["return !a || versionLt(a, b) ? b : a;"])}, 0);`,"return key && versions[key]"])};`,`var findSingletonVersionKey = ${e.basicFunction("scope, key",["var versions = scope[key];",`return Object.keys(versions).reduce(${e.basicFunction("a, b",["return !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;"])}, 0);`])};`,`var getInvalidSingletonVersionMessage = ${e.basicFunction("key, version, requiredVersion",[`return "Unsatisfied version " + version + " of shared singleton module " + key + " (required " + rangeToString(requiredVersion) + ")"`])};`,`var getSingletonVersion = ${e.basicFunction("scope, scopeName, key, requiredVersion",["var version = findSingletonVersionKey(scope, key);","if (!satisfy(requiredVersion, version)) "+'typeof console !== "undefined" && console.warn && console.warn(getInvalidSingletonVersionMessage(key, version, requiredVersion));',"return get(scope[key][version]);"])};`,`var getStrictSingletonVersion = ${e.basicFunction("scope, scopeName, key, requiredVersion",["var version = findSingletonVersionKey(scope, key);","if (!satisfy(requiredVersion, version)) "+"throw new Error(getInvalidSingletonVersionMessage(key, version, requiredVersion));","return get(scope[key][version]);"])};`,`var findValidVersion = ${e.basicFunction("scope, key, requiredVersion",["var versions = scope[key];",`var key = Object.keys(versions).reduce(${e.basicFunction("a, b",["if (!satisfy(requiredVersion, b)) return a;","return !a || versionLt(a, b) ? b : a;"])}, 0);`,"return key && versions[key]"])};`,`var getInvalidVersionMessage = ${e.basicFunction("scope, scopeName, key, requiredVersion",["var versions = scope[key];",'return "No satisfying version (" + rangeToString(requiredVersion) + ") of shared module " + key + " found in shared scope " + scopeName + ".\\n" +',`\t"Available versions: " + Object.keys(versions).map(${e.basicFunction("key",['return key + " from " + versions[key].from;'])}).join(", ");`])};`,`var getValidVersion = ${e.basicFunction("scope, scopeName, key, requiredVersion",["var entry = findValidVersion(scope, key, requiredVersion);","if(entry) return get(entry);","throw new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));"])};`,`var warnInvalidVersion = ${e.basicFunction("scope, scopeName, key, requiredVersion",['typeof console !== "undefined" && console.warn && console.warn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));'])};`,`var get = ${e.basicFunction("entry",["entry.loaded = 1;","return entry.get()"])};`,`var init = ${e.returningFunction(s.asString(["function(scopeName, a, b, c) {",s.indent([`var promise = ${r.initializeSharing}(scopeName);`,`if (promise.then) return promise.then(fn.bind(fn, scopeName, ${r.shareScopeMap}[scopeName], a, b, c));`,`return fn(scopeName, ${r.shareScopeMap}[scopeName], a, b, c);`]),"}"]),"fn")};`,"",`var load = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key",["ensureExistence(scopeName, key);","return get(findVersion(scope, key));"])});`,`var loadFallback = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, fallback",[`return scope && ${r.hasOwnProperty}(scope, key) ? get(findVersion(scope, key)) : fallback();`])});`,`var loadVersionCheck = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version",["ensureExistence(scopeName, key);","return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));"])});`,`var loadSingletonVersionCheck = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version",["ensureExistence(scopeName, key);","return getSingletonVersion(scope, scopeName, key, version);"])});`,`var loadStrictVersionCheck = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version",["ensureExistence(scopeName, key);","return getValidVersion(scope, scopeName, key, version);"])});`,`var loadStrictSingletonVersionCheck = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version",["ensureExistence(scopeName, key);","return getStrictSingletonVersion(scope, scopeName, key, version);"])});`,`var loadVersionCheckFallback = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version, fallback",[`if(!scope || !${r.hasOwnProperty}(scope, key)) return fallback();`,"return get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));"])});`,`var loadSingletonVersionCheckFallback = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version, fallback",[`if(!scope || !${r.hasOwnProperty}(scope, key)) return fallback();`,"return getSingletonVersion(scope, scopeName, key, version);"])});`,`var loadStrictVersionCheckFallback = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version, fallback",[`var entry = scope && ${r.hasOwnProperty}(scope, key) && findValidVersion(scope, key, version);`,`return entry ? get(entry) : fallback();`])});`,`var loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init(${e.basicFunction("scopeName, scope, key, version, fallback",[`if(!scope || !${r.hasOwnProperty}(scope, key)) return fallback();`,"return getStrictSingletonVersion(scope, scopeName, key, version);"])});`,"var installedModules = {};","var moduleToHandlerMapping = {",s.indent(Array.from(l,([e,t])=>`${JSON.stringify(e)}: ${t.source()}`).join(",\n")),"};",f.length>0?s.asString([`var initialConsumes = ${JSON.stringify(f)};`,`initialConsumes.forEach(${e.basicFunction("id",[`__webpack_modules__[id] = ${e.basicFunction("module",["// Handle case when module is used sync","installedModules[id] = 0;","delete __webpack_module_cache__[id];","var factory = moduleToHandlerMapping[id]();",'if(typeof factory !== "function") throw new Error("Shared module is not available for eager consumption: " + id);',`module.exports = factory();`])}`])});`]):"// no consumes in initial chunks",this._runtimeRequirements.has(r.ensureChunkHandlers)?s.asString([`var chunkMapping = ${JSON.stringify(i,null,"\t")};`,`${r.ensureChunkHandlers}.consumes = ${e.basicFunction("chunkId, promises",[`if(${r.hasOwnProperty}(chunkMapping, chunkId)) {`,s.indent([`chunkMapping[chunkId].forEach(${e.basicFunction("id",[`if(${r.hasOwnProperty}(installedModules, id)) return promises.push(installedModules[id]);`,`var onFactory = ${e.basicFunction("factory",["installedModules[id] = 0;",`__webpack_modules__[id] = ${e.basicFunction("module",["delete __webpack_module_cache__[id];","module.exports = factory();"])}`])};`,`var onError = ${e.basicFunction("error",["delete installedModules[id];",`__webpack_modules__[id] = ${e.basicFunction("module",["delete __webpack_module_cache__[id];","throw error;"])}`])};`,"try {",s.indent(["var promise = moduleToHandlerMapping[id]();","if(promise.then) {",s.indent(`promises.push(installedModules[id] = promise.then(onFactory).catch(onError));`),"} else onFactory(promise);"]),"} catch(e) { onError(e); }"])});`]),"}"])}`]):"// no chunk loading of consumes"])}}e.exports=ConsumeSharedRuntimeModule},31095:(e,t,n)=>{"use strict";const r=n(79983);const i=n(56202);class ProvideForSharedDependency extends r{constructor(e){super(e)}get type(){return"provide module for shared"}get category(){return"esm"}}i(ProvideForSharedDependency,"webpack/lib/sharing/ProvideForSharedDependency");e.exports=ProvideForSharedDependency},56049:(e,t,n)=>{"use strict";const r=n(28706);const i=n(56202);class ProvideSharedDependency extends r{constructor(e,t,n,r,i){super();this.shareScope=e;this.name=t;this.version=n;this.request=r;this.eager=i}get type(){return"provide shared module"}getResourceIdentifier(){return`provide module (${this.shareScope}) ${this.request} as ${this.name} @ ${this.version}${this.eager?" (eager)":""}`}serialize(e){e.write(this.shareScope);e.write(this.name);e.write(this.request);e.write(this.version);e.write(this.eager);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new ProvideSharedDependency(t(),t(),t(),t(),t());this.shareScope=e.read();n.deserialize(e);return n}}i(ProvideSharedDependency,"webpack/lib/sharing/ProvideSharedDependency");e.exports=ProvideSharedDependency},99114:(e,t,n)=>{"use strict";const r=n(98221);const i=n(53453);const s=n(76150);const o=n(56202);const a=n(31095);const c=new Set(["share-init"]);class ProvideSharedModule extends i{constructor(e,t,n,r,i){super("provide-module");this._shareScope=e;this._name=t;this._version=n;this._request=r;this._eager=i}identifier(){return`provide module (${this._shareScope}) ${this._name}@${this._version} = ${this._request}`}readableIdentifier(e){return`provide shared module (${this._shareScope}) ${this._name}@${this._version} = ${e.shorten(this._request)}`}libIdent(e){return`webpack/sharing/provide/${this._shareScope}/${this._name}`}needBuild(e,t){t(null,!this.buildInfo)}build(e,t,n,i,s){this.buildMeta={};this.buildInfo={strict:true};this.clearDependenciesAndBlocks();const o=new a(this._request);if(this._eager){this.addDependency(o)}else{const e=new r({});e.addDependency(o);this.addBlock(e)}s()}size(e){return 42}getSourceTypes(){return c}codeGeneration({runtimeTemplate:e,moduleGraph:t,chunkGraph:n}){const r=new Set([s.initializeSharing]);const i=`register(${JSON.stringify(this._name)}, ${JSON.stringify(this._version||"0")}, ${this._eager?e.syncModuleFactory({dependency:this.dependencies[0],chunkGraph:n,request:this._request,runtimeRequirements:r}):e.asyncModuleFactory({block:this.blocks[0],chunkGraph:n,request:this._request,runtimeRequirements:r})});`;const o=new Map;const a=new Map;a.set("share-init",[{shareScope:this._shareScope,initStage:10,init:i}]);return{sources:o,data:a,runtimeRequirements:r}}serialize(e){const{write:t}=e;t(this._shareScope);t(this._name);t(this._version);t(this._request);t(this._eager);super.serialize(e)}static deserialize(e){const{read:t}=e;const n=new ProvideSharedModule(t(),t(),t(),t(),t());n.deserialize(e);return n}}o(ProvideSharedModule,"webpack/lib/sharing/ProvideSharedModule");e.exports=ProvideSharedModule},96295:(e,t,n)=>{"use strict";const r=n(40674);const i=n(99114);class ProvideSharedModuleFactory extends r{create(e,t){const n=e.dependencies[0];t(null,{module:new i(n.shareScope,n.name,n.version,n.request,n.eager)})}}e.exports=ProvideSharedModuleFactory},48151:(e,t,n)=>{"use strict";const r=n(15235);const i=n(23288);const s=n(81627);const{parseOptions:o}=n(97264);const a=n(31095);const c=n(56049);const u=n(96295);class ProvideSharedPlugin{constructor(e){r(i,e,{name:"Provide Shared Plugin"});this._provides=o(e.provides,t=>{if(Array.isArray(t))throw new Error("Unexpected array of provides");const n={shareKey:t,version:undefined,shareScope:e.shareScope||"default",eager:false};return n},t=>({shareKey:t.shareKey,version:t.version,shareScope:t.shareScope||e.shareScope||"default",eager:!!t.eager}));this._provides.sort(([e],[t])=>{if(e<t)return-1;if(t<e)return 1;return 0})}apply(e){const t=new WeakMap;e.hooks.compilation.tap("ProvideSharedPlugin",(e,{normalModuleFactory:n})=>{const r=new Map;const i=new Map;const o=new Map;for(const[e,t]of this._provides){if(/^(\/|[A-Za-z]:\\|\\\\|\.\.?(\/|$))/.test(e)){r.set(e,{config:t,version:t.version})}else if(/^(\/|[A-Za-z]:\\|\\\\)/.test(e)){r.set(e,{config:t,version:t.version})}else if(e.endsWith("/")){o.set(e,t)}else{i.set(e,t)}}t.set(e,r);const a=(t,n,i,o)=>{let a=n.version;if(a===undefined){let n="";if(!o){n=`No resolve data provided from resolver.`}else{const e=o.descriptionFileData;if(!e){n="No description file (usually package.json) found. Add description file with name and version, or manually specify version in shared config."}else if(!e.version){n="No version in description file (usually package.json). Add version to description file, or manually specify version in shared config."}else{a=e.version}}if(!a){const r=new s(`No version specified and unable to automatically determine one. ${n}`);r.file=`shared module ${t} -> ${i}`;e.warnings.push(r)}}r.set(i,{config:n,version:a})};n.hooks.module.tap("ProvideSharedPlugin",(e,{resource:t,resourceResolveData:n},s)=>{if(r.has(t)){return e}const{request:c}=s;{const e=i.get(c);if(e!==undefined){a(c,e,t,n);s.cacheable=false}}for(const[e,r]of o){if(c.startsWith(e)){const i=c.slice(e.length);a(t,{...r,shareKey:r.shareKey+i},t,n);s.cacheable=false}}return e})});e.hooks.finishMake.tapPromise("ProvideSharedPlugin",n=>{const r=t.get(n);if(!r)return Promise.resolve();return Promise.all(Array.from(r,([t,{config:r,version:i}])=>new Promise((s,o)=>{n.addInclude(e.context,new c(r.shareScope,r.shareKey,i||false,t,r.eager),{name:undefined},e=>{if(e)return o(e);s()})}))).then(()=>{})});e.hooks.compilation.tap("ProvideSharedPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(a,t);e.dependencyFactories.set(c,new u)})}}e.exports=ProvideSharedPlugin},16471:(e,t,n)=>{"use strict";const{parseOptions:r}=n(97264);const i=n(71968);const s=n(48151);const{isRequiredVersion:o}=n(37650);class SharePlugin{constructor(e){const t=r(e.shared,(e,t)=>{if(typeof e!=="string")throw new Error("Unexpected array in shared");const n=e===t||!o(e)?{import:e}:{import:t,requiredVersion:e};return n},e=>e);const n=t.map(([e,t])=>({[e]:{import:t.import,shareKey:t.shareKey||e,shareScope:t.shareScope,requiredVersion:t.requiredVersion,strictVersion:t.strictVersion,singleton:t.singleton,packageName:t.packageName,eager:t.eager}}));const i=t.filter(([,e])=>e.import!==false).map(([e,t])=>({[t.import||e]:{shareKey:t.shareKey||e,shareScope:t.shareScope,version:t.version,eager:t.eager}}));this._shareScope=e.shareScope;this._consumes=n;this._provides=i}apply(e){new i({shareScope:this._shareScope,consumes:this._consumes}).apply(e);new s({shareScope:this._shareScope,provides:this._provides}).apply(e)}}e.exports=SharePlugin},54825:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{compareModulesByIdentifier:o,compareStrings:a}=n(68673);class ShareRuntimeModule extends i{constructor(){super("sharing")}generate(){const{runtimeTemplate:e,chunkGraph:t,codeGenerationResults:n,outputOptions:{uniqueName:i}}=this.compilation;const c=new Map;for(const e of this.chunk.getAllReferencedChunks()){const r=t.getOrderedChunkModulesIterableBySourceType(e,"share-init",o);if(!r)continue;for(const t of r){const r=n.getData(t,e.runtime,"share-init");if(!r)continue;for(const e of r){const{shareScope:t,initStage:n,init:r}=e;let i=c.get(t);if(i===undefined){c.set(t,i=new Map)}let s=i.get(n||0);if(s===undefined){i.set(n||0,s=new Set)}s.add(r)}}}return s.asString([`${r.shareScopeMap} = {};`,"var initPromises = {};",`${r.initializeSharing} = ${e.basicFunction("name",["// only runs once","if(initPromises[name]) return initPromises[name];","// handling circular init calls","initPromises[name] = 1;","// creates a new share scope if needed",`if(!${r.hasOwnProperty}(${r.shareScopeMap}, name)) ${r.shareScopeMap}[name] = {};`,"// runs all init snippets from all modules reachable",`var scope = ${r.shareScopeMap}[name];`,`var warn = ${e.returningFunction('typeof console !== "undefined" && console.warn && console.warn(msg);',"msg")};`,`var uniqueName = ${JSON.stringify(i||undefined)};`,`var register = ${e.basicFunction("name, version, factory",["var versions = scope[name] = scope[name] || {};","var activeVersion = versions[version];","if(!activeVersion || !activeVersion.loaded && uniqueName > activeVersion.from) versions[version] = { get: factory, from: uniqueName };"])};`,`var initExternal = ${e.basicFunction("id",[`var handleError = ${e.returningFunction('warn("Initialization of sharing external failed: " + err)',"err")};`,"try {",s.indent(["var module = __webpack_require__(id);","if(!module) return;",`var initFn = ${e.returningFunction(`module && module.init && module.init(${r.shareScopeMap}[name])`,"module")}`,"if(module.then) return promises.push(module.then(initFn, handleError));","var initResult = initFn(module);","if(initResult && initResult.then) return promises.push(initResult.catch(handleError));"]),"} catch(err) { handleError(err); }"])}`,"var promises = [];","switch(name) {",...Array.from(c).sort(([e],[t])=>a(e,t)).map(([e,t])=>s.indent([`case ${JSON.stringify(e)}: {`,s.indent(Array.from(t).sort(([e],[t])=>e-t).map(([,e])=>s.asString(Array.from(e)))),"}","break;"])),"}",`return promises.length && (initPromises[name] = Promise.all(promises).then(${e.returningFunction("initPromises[name] = 1")}));`])};`])}}e.exports=ShareRuntimeModule},57870:(e,t,n)=>{"use strict";const r=n(54032);const i=n(83379);const s={dependencyType:"esm"};t.resolveMatchedConfigs=((e,t)=>{const n=new Map;const o=new Map;const a=new Map;const c={fileDependencies:new i,contextDependencies:new i,missingDependencies:new i};const u=e.resolverFactory.get("normal",s);const l=e.compiler.context;return Promise.all(t.map(([t,i])=>{if(/^\.\.?(\/|$)/.test(t)){return new Promise(s=>{u.resolve({},l,t,c,(o,a)=>{if(o||a===false){o=o||new Error(`Can't resolve ${t}`);e.errors.push(new r(null,o,{name:`shared module ${t}`}));return s()}n.set(a,i);s()})})}else if(/^(\/|[A-Za-z]:\\|\\\\)/.test(t)){n.set(t,i)}else if(t.endsWith("/")){a.set(t,i)}else{o.set(t,i)}})).then(()=>{e.contextDependencies.addAll(c.contextDependencies);e.fileDependencies.addAll(c.fileDependencies);e.missingDependencies.addAll(c.missingDependencies);return{resolved:n,unresolved:o,prefixed:a}})})},37650:(e,t,n)=>{"use strict";const{join:r,dirname:i,readJson:s}=n(95396);t.isRequiredVersion=(e=>{return/^([\d^=v<>~]|[*xX]$)/.test(e)});const o=(e,t,n,a)=>{let c=0;const u=()=>{if(c>=n.length){const r=i(e,t);if(!r||r===t)return a();return o(e,r,n,a)}const l=r(e,t,n[c]);s(e,l,(e,t)=>{if(e){if("code"in e&&e.code==="ENOENT"){c++;return u()}return a(e)}if(!t||typeof t!=="object"||Array.isArray(t)){return a(new Error(`Description file ${l} is not an object`))}a(null,{data:t,path:l})})};u()};t.getDescriptionFile=o;t.getRequiredVersionFromDescriptionFile=((e,t)=>{if(e.optionalDependencies&&typeof e.optionalDependencies==="object"&&t in e.optionalDependencies){return e.optionalDependencies[t]}if(e.dependencies&&typeof e.dependencies==="object"&&t in e.dependencies){return e.dependencies[t]}if(e.peerDependencies&&typeof e.peerDependencies==="object"&&t in e.peerDependencies){return e.peerDependencies[t]}if(e.devDependencies&&typeof e.devDependencies==="object"&&t in e.devDependencies){return e.devDependencies[t]}})},9054:(e,t,n)=>{"use strict";const r=n(79983);const i=n(72380);const{LogType:s}=n(78539);const o=n(94827);const a=n(95734);const c=n(20625);const{compareLocations:u,compareChunksById:l,compareNumbers:f,compareIds:p,concatComparators:d,compareSelect:h,compareModulesByIdentifier:m}=n(68673);const g=n(49197);const y=(e,t)=>{const n=new Set;for(const r of e){for(const e of t(r)){n.add(e)}}return Array.from(n)};const v=(e,t,n)=>{return y(e,t).sort(n)};const _=(e,t)=>{const n=Object.create(null);for(const r of Object.keys(e)){n[r]=t(e[r],r)}return n};const b=e=>{let t=0;for(const n of e)t++;return t};const E={_:(e,t,n,{requestShortener:r})=>{if(typeof t==="string"){e.message=t}else{if(t.chunk){e.chunkName=t.chunk.name;e.chunkEntry=t.chunk.hasRuntime();e.chunkInitial=t.chunk.canBeInitial()}if(t.file){e.file=t.file}if(t.module){e.moduleIdentifier=t.module.identifier();e.moduleName=t.module.readableIdentifier(r)}if(t.loc){e.loc=i(t.loc)}e.message=t.message}},ids:(e,t,{compilation:{chunkGraph:n}})=>{if(typeof t!=="string"){if(t.chunk){e.chunkId=t.chunk.id}if(t.module){e.moduleId=n.getModuleId(t.module)}}},moduleTrace:(e,t,n,r,i)=>{if(typeof t!=="string"&&t.module){const{type:r,compilation:{moduleGraph:s}}=n;const o=new Set;const a=[];let c=t.module;while(c){if(o.has(c))break;o.add(c);const e=s.getIssuer(c);if(!e)break;a.push({origin:e,module:c});c=e}e.moduleTrace=i.create(`${r}.moduleTrace`,a,n)}},errorDetails:(e,t)=>{if(typeof t!=="string"){e.details=t.details}},errorStack:(e,t)=>{if(typeof t!=="string"){e.stack=t.stack}}};const w={compilation:{_:(e,t)=>{if(t.name){e.name=t.name}if(t.needAdditionalPass){e.needAdditionalPass=true}},hash:(e,t)=>{e.hash=t.hash},version:e=>{e.version=n(61733).i8},env:(e,t,n,{_env:r})=>{e.env=r},timings:(e,t,{startTime:n,endTime:r})=>{e.time=r-n},builtAt:(e,t,{endTime:n})=>{e.builtAt=n},publicPath:(e,t)=>{e.publicPath=t.getPath(t.outputOptions.publicPath)},outputPath:(e,t)=>{e.outputPath=t.outputOptions.path},assets:(e,t,n,r,i)=>{const{type:s}=n;const o=new Map;const a=new Map;for(const e of t.chunks){for(const t of e.files){let n=o.get(t);if(n===undefined){n=[];o.set(t,n)}n.push(e)}for(const t of e.auxiliaryFiles){let n=a.get(t);if(n===undefined){n=[];a.set(t,n)}n.push(e)}}const c=new Map;const u=new Set;for(const e of t.getAssets()){const t={...e,type:"asset",related:undefined};u.add(t);c.set(e.name,t)}for(const e of c.values()){const t=e.info.related;if(!t)continue;for(const n of Object.keys(t)){const r=t[n];const i=Array.isArray(r)?r:[r];for(const t of i){const r=c.get(t);if(!r)continue;u.delete(r);r.type=n;e.related=e.related||[];e.related.push(r)}}}e.assets=i.create(`${s}.assets`,Array.from(u),{...n,compilationFileToChunks:o,compilationAuxiliaryFileToChunks:a});e.filteredAssets=u.size-e.assets.length;e.assetsByChunkName={};for(const t of e.assets){for(const n of t.chunkNames){if(!Object.prototype.hasOwnProperty.call(e.assetsByChunkName,n)){e.assetsByChunkName[n]=[]}e.assetsByChunkName[n].push(t.name)}}},chunks:(e,t,n,r,i)=>{const{type:s}=n;e.chunks=i.create(`${s}.chunks`,Array.from(t.chunks),n)},modules:(e,t,n,r,i)=>{const{type:s}=n;const o=Array.from(t.modules);e.modules=i.create(`${s}.modules`,o,n);e.filteredModules=o.length-e.modules.length},entrypoints:(e,t,n,r,i)=>{const{type:s}=n;const o=Array.from(t.entrypoints,([e,t])=>({name:e,chunkGroup:t}));e.entrypoints=i.create(`${s}.entrypoints`,o,n)},chunkGroups:(e,t,n,r,i)=>{const{type:s}=n;const o=Array.from(t.namedChunkGroups,([e,t])=>({name:e,chunkGroup:t}));e.namedChunkGroups=i.create(`${s}.namedChunkGroups`,o,n)},errors:(e,t,n,r,i)=>{const{type:s}=n;e.errors=i.create(`${s}.errors`,t.errors,n)},warnings:(e,t,n,r,i)=>{const{type:s}=n;e.warnings=i.create(`${s}.warnings`,t.warnings,n)},logging:(e,t,r,i,o)=>{const a=n(31669);const{loggingDebug:c,loggingTrace:u,context:l}=i;e.logging={};let f;let p=false;switch(i.logging){case"none":f=new Set([]);break;case"error":f=new Set([s.error]);break;case"warn":f=new Set([s.error,s.warn]);break;case"info":f=new Set([s.error,s.warn,s.info]);break;case"log":f=new Set([s.error,s.warn,s.info,s.log,s.group,s.groupEnd,s.groupCollapsed,s.clear]);break;case"verbose":f=new Set([s.error,s.warn,s.info,s.log,s.group,s.groupEnd,s.groupCollapsed,s.profile,s.profileEnd,s.time,s.status,s.clear]);p=true;break}const d=g.makePathsRelative.bindContextCache(l,t.compiler.root);let h=0;for(const[n,r]of t.logging){const t=c.some(e=>e(n));const i=[];const o=[];let l=o;let m=0;for(const e of r){let n=e.type;if(!t&&!f.has(n))continue;if(n===s.groupCollapsed&&(t||p))n=s.group;if(h===0){m++}if(n===s.groupEnd){i.pop();if(i.length>0){l=i[i.length-1].children}else{l=o}if(h>0)h--;continue}let r=undefined;if(e.type===s.time){r=`${e.args[0]}: ${e.args[1]*1e3+e.args[2]/1e6} ms`}else if(e.args&&e.args.length>0){r=a.format(e.args[0],...e.args.slice(1))}const c={...e,type:n,message:r,trace:u?e.trace:undefined,children:n===s.group||n===s.groupCollapsed?[]:undefined};l.push(c);if(c.children){i.push(c);l=c.children;if(h>0){h++}else if(n===s.groupCollapsed){h=1}}}let g=d(n).replace(/\|/g," ");if(g in e.logging){let t=1;while(`${g}#${t}`in e.logging){t++}g=`${g}#${t}`}e.logging[g]={entries:o,filteredEntries:r.length-m,debug:t}}},children:(e,t,n,r,i)=>{const{type:s}=n;e.children=i.create(`${s}.children`,t.children,n)}},asset:{_:(e,t,{compilation:n,compilationFileToChunks:r,compilationAuxiliaryFileToChunks:i})=>{e.type=t.type;e.name=t.name;e.size=t.source.size();const s=r.get(t.name)||[];const o=i.get(t.name)||[];e.chunkNames=v(s,e=>e.name?[e.name]:[],p);e.chunkIdHints=v(s,e=>Array.from(e.idNameHints),p);e.auxiliaryChunkNames=v(o,e=>e.name?[e.name]:[],p);e.auxiliaryChunkIdHints=v(o,e=>Array.from(e.idNameHints),p);e.emitted=n.emittedAssets.has(t.name);e.comparedForEmit=n.comparedForEmitAssets.has(t.name);e.info=t.info;e.filteredRelated=t.related?t.related.length:undefined},relatedAssets:(e,t,n,r,i)=>{const{type:s}=n;e.related=i.create(`${s}.related`,t.related,n);e.filteredRelated=t.related?t.related.length-e.related.length:undefined},ids:(e,t,{compilationFileToChunks:n,compilationAuxiliaryFileToChunks:r})=>{const i=n.get(t.name)||[];const s=r.get(t.name)||[];e.chunks=v(i,e=>e.ids,p);e.auxiliaryChunks=v(s,e=>e.ids,p)},performance:(e,t)=>{e.isOverSizeLimit=c.isOverSizeLimit(t.source)}},chunkGroup:{_:(e,{name:t,chunkGroup:n},{compilation:{moduleGraph:r,chunkGraph:i}})=>{const s=n.getChildrenByOrders(r,i);Object.assign(e,{name:t,chunks:n.chunks.map(e=>e.id),assets:y(n.chunks,e=>e.files),auxiliaryAssets:v(n.chunks,e=>e.auxiliaryFiles,p),children:_(s,e=>e.map(e=>({name:e.name,chunks:e.chunks.map(e=>e.id),assets:y(e.chunks,e=>e.files),auxiliaryAssets:v(e.chunks,e=>e.auxiliaryFiles,p)}))),childAssets:_(s,e=>{const t=new Set;for(const n of e){for(const e of n.chunks){for(const n of e.files){t.add(n)}}}return Array.from(t)})})},performance:(e,{chunkGroup:t})=>{e.isOverSizeLimit=c.isOverSizeLimit(t)}},module:{_:(e,t,n,{requestShortener:r},i)=>{const{compilation:s,type:o}=n;const{moduleGraph:a}=s;const c=[];const u=a.getIssuer(t);let l=u;while(l){c.push(l);l=a.getIssuer(l)}c.reverse();const f=a.getProfile(t);const p=t.getErrors();const d=p!==undefined?b(p):0;const h=t.getWarnings();const m=h!==undefined?b(h):0;const g={};for(const e of t.getSourceTypes()){g[e]=t.size(e)}Object.assign(e,{identifier:t.identifier(),name:t.readableIdentifier(r),index:a.getPreOrderIndex(t),preOrderIndex:a.getPreOrderIndex(t),index2:a.getPostOrderIndex(t),postOrderIndex:a.getPostOrderIndex(t),size:t.size(),sizes:g,cacheable:t.buildInfo.cacheable,built:s.builtModules.has(t),optional:t.isOptional(a),runtime:t.type==="runtime",issuer:u&&u.identifier(),issuerName:u&&u.readableIdentifier(r),issuerPath:u&&i.create(`${o}.issuerPath`,c,n),failed:d>0,errors:d,warnings:m});if(f){e.profile=i.create(`${o}.profile`,f,n)}},ids:(e,t,{compilation:{chunkGraph:n,moduleGraph:r}})=>{e.id=n.getModuleId(t);const i=r.getIssuer(t);e.issuerId=i&&n.getModuleId(i);e.chunks=Array.from(n.getOrderedModuleChunksIterable(t,l),e=>e.id)},orphanModules:(e,t,{compilation:n,type:r})=>{if(!r.endsWith("module.modules[].module")){e.orphan=n.chunkGraph.getNumberOfModuleChunks(t)===0}},moduleAssets:(e,t)=>{e.assets=t.buildInfo.assets?Object.keys(t.buildInfo.assets):[]},reasons:(e,t,n,r,i)=>{const{type:s,compilation:{moduleGraph:o}}=n;e.reasons=i.create(`${s}.reasons`,Array.from(o.getIncomingConnections(t)),n)},usedExports:(e,t,{runtime:n,compilation:{moduleGraph:r}})=>{const i=r.getUsedExports(t,n);if(i===null){e.usedExports=null}else if(typeof i==="boolean"){e.usedExports=i}else{e.usedExports=Array.from(i)}},providedExports:(e,t,{compilation:{moduleGraph:n}})=>{const r=n.getProvidedExports(t);e.providedExports=Array.isArray(r)?r:null},optimizationBailout:(e,t,{compilation:{moduleGraph:n}},{requestShortener:r})=>{e.optimizationBailout=n.getOptimizationBailout(t).map(e=>{if(typeof e==="function")return e(r);return e})},depth:(e,t,{compilation:{moduleGraph:n}})=>{e.depth=n.getDepth(t)},nestedModules:(e,t,n,r,i)=>{const{type:s}=n;if(t instanceof a){const r=t.modules;e.modules=i.create(`${s}.modules`,r,n);e.filteredModules=r.length-e.modules.length}},source:(e,t)=>{const n=t.originalSource();if(n){e.source=n.source()}}},profile:{_:(e,t)=>{Object.assign(e,{total:t.factory+t.restoring+t.integration+t.building+t.storing,resolving:t.factory,restoring:t.restoring,building:t.building,integration:t.integration,storing:t.storing,additionalResolving:t.additionalFactories,additionalIntegration:t.additionalIntegration,factory:t.factory,dependencies:t.additionalFactories})}},moduleIssuer:{_:(e,t,n,{requestShortener:r},i)=>{const{compilation:s,type:o}=n;const{moduleGraph:a}=s;const c=a.getProfile(t);Object.assign(e,{identifier:t.identifier(),name:t.readableIdentifier(r)});if(c){e.profile=i.create(`${o}.profile`,c,n)}},ids:(e,t,{compilation:{chunkGraph:n}})=>{e.id=n.getModuleId(t)}},moduleReason:{_:(e,t,{runtime:n},{requestShortener:s})=>{const o=t.dependency;const a=o&&o instanceof r?o:undefined;Object.assign(e,{moduleIdentifier:t.originModule?t.originModule.identifier():null,module:t.originModule?t.originModule.readableIdentifier(s):null,moduleName:t.originModule?t.originModule.readableIdentifier(s):null,resolvedModuleIdentifier:t.resolvedOriginModule?t.resolvedOriginModule.identifier():null,resolvedModule:t.resolvedOriginModule?t.resolvedOriginModule.readableIdentifier(s):null,type:t.dependency?t.dependency.type:null,active:t.isActive(n),explanation:t.explanation,userRequest:a&&a.userRequest||null});if(t.dependency){const n=i(t.dependency.loc);if(n){e.loc=n}}},ids:(e,t,{compilation:{chunkGraph:n}})=>{e.moduleId=t.originModule?n.getModuleId(t.originModule):null;e.resolvedModuleId=t.resolvedOriginModule?n.getModuleId(t.resolvedOriginModule):null}},chunk:{_:(e,t,{compilation:{chunkGraph:n}})=>{const r=t.getChildIdsByOrders(n);Object.assign(e,{rendered:t.rendered,initial:t.canBeInitial(),entry:t.hasRuntime(),recorded:o.wasChunkRecorded(t),reason:t.chunkReason,size:n.getChunkModulesSize(t),sizes:n.getChunkModulesSizes(t),names:t.name?[t.name]:[],idHints:Array.from(t.idNameHints),runtime:t.runtime===undefined?undefined:typeof t.runtime==="string"?[t.runtime]:Array.from(t.runtime.sort()),files:Array.from(t.files),auxiliaryFiles:Array.from(t.auxiliaryFiles).sort(p),hash:t.renderedHash,childrenByOrder:r})},ids:(e,t)=>{e.id=t.id},chunkRelations:(e,t,{compilation:{chunkGraph:n}})=>{const r=new Set;const i=new Set;const s=new Set;for(const e of t.groupsIterable){for(const t of e.parentsIterable){for(const e of t.chunks){r.add(e.id)}}for(const t of e.childrenIterable){for(const e of t.chunks){i.add(e.id)}}for(const n of e.chunks){if(n!==t)s.add(n.id)}}e.siblings=Array.from(s).sort(p);e.parents=Array.from(r).sort(p);e.children=Array.from(i).sort(p)},chunkModules:(e,t,n,r,i)=>{const{type:s,compilation:{chunkGraph:o}}=n;const a=o.getChunkModules(t);e.modules=i.create(`${s}.modules`,a,{...n,runtime:t.runtime});e.filteredModules=a.length-e.modules.length},chunkRootModules:(e,t,n,r,i)=>{const{type:s,compilation:{chunkGraph:o}}=n;const a=o.getChunkRootModules(t);e.rootModules=i.create(`${s}.rootModules`,a,n);e.filteredRootModules=a.length-e.rootModules.length;e.nonRootModules=o.getNumberOfChunkModules(t)-a.length},chunkOrigins:(e,t,n,r,s)=>{const{type:o,compilation:{chunkGraph:a}}=n;const c=new Set;const u=[];for(const e of t.groupsIterable){u.push(...e.origins)}const l=u.filter(e=>{const t=[e.module?a.getModuleId(e.module):undefined,i(e.loc),e.request].join();if(c.has(t))return false;c.add(t);return true});e.origins=s.create(`${o}.origins`,l,n)}},chunkOrigin:{_:(e,t,n,{requestShortener:r})=>{Object.assign(e,{module:t.module?t.module.identifier():"",moduleIdentifier:t.module?t.module.identifier():"",moduleName:t.module?t.module.readableIdentifier(r):"",loc:i(t.loc),request:t.request})},ids:(e,t,{compilation:{chunkGraph:n}})=>{e.moduleId=t.module?n.getModuleId(t.module):undefined}},error:E,warning:E,moduleTraceItem:{_:(e,{origin:t,module:n},r,{requestShortener:i},s)=>{const{type:o,compilation:{moduleGraph:a}}=r;e.originIdentifier=t.identifier();e.originName=t.readableIdentifier(i);e.moduleIdentifier=n.identifier();e.moduleName=n.readableIdentifier(i);const c=Array.from(a.getIncomingConnections(n)).filter(e=>e.resolvedOriginModule===t&&e.dependency).map(e=>e.dependency);e.dependencies=s.create(`${o}.dependencies`,Array.from(new Set(c)),r)},ids:(e,{origin:t,module:n},{compilation:{chunkGraph:r}})=>{e.originId=r.getModuleId(t);e.moduleId=r.getModuleId(n)}},moduleTraceDependency:{_:(e,t)=>{e.loc=i(t.loc)}}};const S=e=>(t,n,{excludeModules:r,requestShortener:i})=>{const s=t.nameForCondition();if(!s)return;const o=i.shorten(s);const a=r.some(n=>n(o,t,e));if(a)return false};const k={"!cached":(e,{compilation:t})=>{if(!t.builtModules.has(e))return false},"!runtime":e=>{if(e.type==="runtime")return false}};const D={excludeAssets:(e,t,{excludeAssets:n})=>{const r=e.name;const i=n.some(t=>t(r,e));if(i)return false},"!cachedAssets":(e,{compilation:t})=>{if(!t.emittedAssets.has(e.name)&&!t.comparedForEmitAssets.has(e.name)){return false}}};const x={"compilation.assets":D,"asset.related":D,"compilation.modules":{excludeModules:S("module"),"!orphanModules":(e,{compilation:{chunkGraph:t}})=>{if(t.getNumberOfModuleChunks(e)===0)return false},...k},"module.modules":{excludeModules:S("nested"),...k},"chunk.modules":{excludeModules:S("chunk"),...k},"chunk.rootModules":{excludeModules:S("root-of-chunk"),...k},"module.reasons":{"!orphanModules":(e,{compilation:{chunkGraph:t}})=>{if(e.originModule&&t.getNumberOfModuleChunks(e.originModule)===0){return false}}}};const C={maxModules:(e,t,{maxModules:n},r,i)=>{if(i>=n)return false}};const A={"compilation.modules":C,"modules.modules":C,"chunk.modules":C,"chunk.rootModules":C};const T={"compilation.warnings":{warningsFilter:(e,t,{warningsFilter:n})=>{const r=Object.keys(e).map(t=>`${e[t]}`).join("\n");return!n.some(t=>t(e,r))}}};const M={_:(e,{compilation:{moduleGraph:t}})=>{e.push(h(e=>t.getDepth(e),f),h(e=>t.getPreOrderIndex(e),f),h(e=>e.identifier(),p))}};const O={"compilation.chunks":{_:e=>{e.push(h(e=>e.id,p))}},"compilation.modules":M,"chunk.rootModules":M,"chunk.modules":M,"module.modules":M,"module.reasons":{_:(e,{compilation:{chunkGraph:t}})=>{e.push(h(e=>e.originModule,m));e.push(h(e=>e.resolvedOriginModule,m));e.push(h(e=>e.dependency,d(h(e=>e.loc,u),h(e=>e.type,p))))}},"chunk.origins":{_:(e,{compilation:{chunkGraph:t}})=>{e.push(h(e=>e.module?t.getModuleId(e.module):undefined,p),h(e=>i(e.loc),p),h(e=>e.request,p))}}};const F=e=>{if(e[0]==="!"){return e.substr(1)}return e};const I=e=>{if(e[0]==="!"){return false}return true};const R=e=>{if(!e){const e=(e,t)=>0;return e}const t=F(e);let n=h(e=>e[t],p);const r=I(e);if(!r){const e=n;n=((t,n)=>e(n,t))}return n};const P={assetsSort:(e,t,{assetsSort:n})=>{e.push(R(n))},_:e=>{e.push(h(e=>e.name,p))}};const N={"compilation.chunks":{chunksSort:(e,t,{chunksSort:n})=>{e.push(R(n))}},"compilation.modules":{modulesSort:(e,t,{modulesSort:n})=>{e.push(R(n))}},"chunk.rootModules":{chunkRootModulesSort:(e,t,{chunkRootModulesSort:n})=>{e.push(R(n))}},"chunk.modules":{chunkModulesSort:(e,t,{chunkModulesSort:n})=>{e.push(R(n))}},"module.modules":{nestedModulesSort:(e,t,{nestedModulesSort:n})=>{e.push(R(n))}},"compilation.assets":P,"asset.related":P};const L=(e,t,n)=>{for(const r of Object.keys(e)){const i=e[r];for(const e of Object.keys(i)){if(e!=="_"){if(e.startsWith("!")){if(t[e.slice(1)])continue}else{const n=t[e];if(n===false||n===undefined||Array.isArray(n)&&n.length===0)continue}}n(r,i[e])}}};const B={"compilation.children[]":"compilation","compilation.modules[]":"module","compilation.entrypoints[]":"chunkGroup","compilation.namedChunkGroups[]":"chunkGroup","compilation.errors[]":"error","compilation.warnings[]":"warning","chunk.modules[]":"module","chunk.rootModules[]":"module","chunk.origins[]":"chunkOrigin","compilation.chunks[]":"chunk","compilation.assets[]":"asset","asset.related[]":"asset","module.issuerPath[]":"moduleIssuer","module.reasons[]":"moduleReason","module.modules[]":"module","moduleTrace[]":"moduleTraceItem","moduleTraceItem.dependencies[]":"moduleTraceDependency"};const j=e=>{const t=Object.create(null);for(const n of e){t[n.name]=n}return t};const U={"compilation.entrypoints":j,"compilation.namedChunkGroups":j};class DefaultStatsFactoryPlugin{apply(e){e.hooks.compilation.tap("DefaultStatsFactoryPlugin",e=>{e.hooks.statsFactory.tap("DefaultStatsFactoryPlugin",(t,n,r)=>{L(w,n,(e,r)=>{t.hooks.extract.for(e).tap("DefaultStatsFactoryPlugin",(e,i,s)=>r(e,i,s,n,t))});L(x,n,(e,r)=>{t.hooks.filter.for(e).tap("DefaultStatsFactoryPlugin",(e,t,i,s)=>r(e,t,n,i,s))});L(A,n,(e,r)=>{t.hooks.filterSorted.for(e).tap("DefaultStatsFactoryPlugin",(e,t,i,s)=>r(e,t,n,i,s))});L(T,n,(e,r)=>{t.hooks.filterResults.for(e).tap("DefaultStatsFactoryPlugin",(e,t,i,s)=>r(e,t,n,i,s))});L(O,n,(e,r)=>{t.hooks.sort.for(e).tap("DefaultStatsFactoryPlugin",(e,t)=>r(e,t,n))});L(N,n,(e,r)=>{t.hooks.sortResults.for(e).tap("DefaultStatsFactoryPlugin",(e,t)=>r(e,t,n))});for(const e of Object.keys(B)){const n=B[e];t.hooks.getItemName.for(e).tap("DefaultStatsFactoryPlugin",()=>n)}for(const e of Object.keys(U)){const n=U[e];t.hooks.merge.for(e).tap("DefaultStatsFactoryPlugin",n)}if(n.children){if(Array.isArray(n.children)){t.hooks.getItemFactory.for("compilation.children[].compilation").tap("DefaultStatsFactoryPlugin",(t,{_index:i})=>{if(i<n.children.length){return e.createStatsFactory(e.createStatsOptions(n.children[i],r))}})}else if(n.children!==true){const i=e.createStatsFactory(e.createStatsOptions(n.children,r));t.hooks.getItemFactory.for("compilation.children[].compilation").tap("DefaultStatsFactoryPlugin",()=>{return i})}}})})}}e.exports=DefaultStatsFactoryPlugin},7391:(e,t,n)=>{"use strict";const r=n(80910);const i=(e,t)=>{for(const n of Object.keys(t)){if(typeof e[n]==="undefined"){e[n]=t[n]}}};const s={verbose:{relatedAssets:true,entrypoints:true,chunkGroups:true,ids:true,modules:false,chunks:true,chunkRelations:true,chunkModules:true,chunkRootModules:false,chunkOrigins:true,depth:true,env:true,reasons:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,errorStack:true,publicPath:true,logging:"verbose",orphanModules:true,runtime:true,exclude:false,maxModules:Infinity},detailed:{relatedAssets:true,entrypoints:true,chunkGroups:true,ids:true,chunks:true,chunkRelations:true,chunkModules:false,chunkRootModules:false,chunkOrigins:true,depth:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:true,runtimeModules:true,runtime:true,exclude:false,maxModules:Infinity},minimal:{all:false,modules:true,maxModules:0,errors:true,warnings:true,logging:"warn"},"errors-only":{all:false,errors:true,moduleTrace:true,logging:"error"},"errors-warnings":{all:false,errors:true,warnings:true,logging:"warn"},none:{all:false}};const o=({all:e})=>e!==false;const a=({all:e})=>e===true;const c=({all:e},{forToString:t})=>t?e===true:e!==false;const u={context:(e,t,n)=>n.compiler.context,requestShortener:(e,t,n)=>n.compiler.context===e.context?n.requestShortener:new r(e.context,n.compiler.root),performance:o,hash:o,env:a,version:o,timings:o,builtAt:o,assets:o,entrypoints:o,chunkGroups:c,chunks:c,chunkRelations:c,chunkModules:c,chunkRootModules:({all:e,chunkModules:t},{forToString:n})=>{if(e===false)return false;if(e===true)return true;if(n&&t)return false;return true},chunkOrigins:c,ids:c,modules:({all:e,chunks:t,chunkRootModules:n,chunkModules:r},{forToString:i})=>{if(e===false)return false;if(e===true)return true;if(i&&t&&(r||n))return false;return true},nestedModules:c,relatedAssets:c,orphanModules:a,moduleAssets:c,depth:c,cached:o,runtime:c,cachedAssets:c,reasons:c,usedExports:c,providedExports:c,optimizationBailout:c,children:c,source:a,moduleTrace:o,errors:o,errorDetails:c,errorStack:c,warnings:o,publicPath:c,logging:({all:e},{forToString:t})=>t&&e!==false?"info":false,loggingDebug:()=>[],loggingTrace:c,excludeModules:()=>[],excludeAssets:()=>[],maxModules:(e,{forToString:t})=>t?15:Infinity,modulesSort:()=>"depth",chunkModulesSort:()=>"name",chunkRootModulesSort:()=>"name",nestedModulesSort:()=>false,chunksSort:()=>false,assetsSort:()=>"name",outputPath:c,colors:()=>false};const l=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const f={excludeModules:e=>{if(!Array.isArray(e)){e=e?[e]:[]}return e.map(l)},excludeAssets:e=>{if(!Array.isArray(e)){e=e?[e]:[]}return e.map(l)},warningsFilter:e=>{if(!Array.isArray(e)){e=e?[e]:[]}return e.map(e=>{if(typeof e==="string"){return(t,n)=>n.includes(e)}if(e instanceof RegExp){return(t,n)=>e.test(n)}if(typeof e==="function"){return e}throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${e})`)})},logging:e=>{if(e===true)e="log";return e},loggingDebug:e=>{if(!Array.isArray(e)){e=e?[e]:[]}return e.map(l)}};class DefaultStatsPresetPlugin{apply(e){e.hooks.compilation.tap("DefaultStatsPresetPlugin",e=>{for(const t of Object.keys(s)){const n=s[t];e.hooks.statsPreset.for(t).tap("DefaultStatsPresetPlugin",(e,t)=>{i(e,n)})}e.hooks.statsNormalize.tap("DefaultStatsPresetPlugin",(t,n)=>{for(const r of Object.keys(u)){if(t[r]===undefined)t[r]=u[r](t,n,e)}for(const e of Object.keys(f)){t[e]=f[e](t[e])}})})}}e.exports=DefaultStatsPresetPlugin},61762:(e,t,n)=>{"use strict";const r=(e,t,n)=>e===1?t:n;const i=(e,{formatSize:t})=>{const n=Object.keys(e);if(n.length>1){return n.map(n=>`${t(e[n])} (${n})`).join(" ")}else if(n.length===1){return t(e[n[0]])}};const s=(e,t)=>e.split("\n").map(t).join("\n");const o=e=>e>=10?`${e}`:`0${e}`;const a=e=>{return typeof e==="number"||e};const c={"compilation.hash":(e,{bold:t,type:n})=>n==="compilation.hash"?`Hash: ${t(e)}`:undefined,"compilation.version":(e,{bold:t,type:n})=>n==="compilation.version"?`Version: webpack ${t(e)}`:undefined,"compilation.time":(e,{formatTime:t})=>`Time: ${t(e,true)}`,"compilation.builtAt":(e,{bold:t})=>{const n=new Date(e);const r=o;const i=`${n.getFullYear()}-${r(n.getMonth()+1)}-${r(n.getDate())}`;const s=`${r(n.getHours())}:${r(n.getMinutes())}:${r(n.getSeconds())}`;return`Built at: ${i} ${t(s)}`},"compilation.env":(e,{bold:t})=>e?`Environment (--env): ${t(JSON.stringify(e,null,2))}`:undefined,"compilation.publicPath":(e,{bold:t})=>`PublicPath: ${t(e||"(none)")}`,"compilation.entrypoints":(e,t,n)=>Array.isArray(e)?undefined:n.print(t.type,Object.values(e),{...t,chunkGroupKind:"Entrypoint"}),"compilation.namedChunkGroups":(e,t,n)=>{if(!Array.isArray(e)){const{compilation:{entrypoints:r}}=t;let i=Object.values(e);if(r){i=i.filter(e=>!Object.prototype.hasOwnProperty.call(r,e.name))}return n.print(t.type,i,{...t,chunkGroupKind:"Chunk Group"})}},"compilation.assetsByChunkName":()=>"","compilation.modules":(e,t)=>{let n=0;for(const t of e){if(typeof t.id==="number"){if(n<t.id)n=t.id}}t.maxModuleId=n},"compilation.filteredModules":(e,{compilation:{modules:t}})=>e>0?` ${t&&t.length>0?` + ${e} hidden`:e} ${r(e,"module","modules")}`:undefined,"compilation.filteredAssets":(e,{compilation:{assets:t}})=>e>0?`${t&&t.length>0?` + ${e} hidden`:e} ${r(e,"asset","assets")}`:undefined,"compilation.logging":(e,t,n)=>Array.isArray(e)?undefined:n.print(t.type,Object.entries(e).map(([e,t])=>({...t,name:e})),t),"compilation.children[].compilation.name":e=>e?`Child ${e}:`:"Child","asset.type":e=>e,"asset.name":(e,{formatFilename:t,asset:{isOverSizeLimit:n}})=>t(e,n),"asset.size":(e,{asset:{isOverSizeLimit:t},yellow:n,green:r,formatSize:i})=>t?n(i(e)):i(e),"asset.emitted":(e,{green:t,formatFlag:n})=>e?t(n("emitted")):undefined,"asset.comparedForEmit":(e,{yellow:t,formatFlag:n})=>e?t(n("compared for emit")):undefined,"asset.isOverSizeLimit":(e,{yellow:t,formatFlag:n})=>e?t(n("big")):undefined,"asset.info.immutable":(e,{green:t,formatFlag:n})=>e?t(n("immutable")):undefined,"asset.info.development":(e,{green:t,formatFlag:n})=>e?t(n("dev")):undefined,"asset.info.hotModuleReplacement":(e,{green:t,formatFlag:n})=>e?t(n("hmr")):undefined,"asset.separator!":()=>"\n","asset.filteredRelated":(e,{asset:{related:t}})=>e>0?`${t&&t.length>0?` + ${e} hidden`:e} ${r(e,"related asset","related assets")}`:undefined,assetChunk:(e,{formatChunkId:t})=>t(e),assetChunkName:e=>e,assetChunkIdHint:e=>e,"module.id":(e,{formatModuleId:t})=>a(e)?t(e):undefined,"module.name":(e,{bold:t})=>t(e),"module.identifier":e=>e,"module.sizes":i,"module.chunks[]":(e,{formatChunkId:t})=>t(e),"module.depth":(e,{formatFlag:t})=>e!==null?t(`depth ${e}`):undefined,"module.cacheable":(e,{formatFlag:t,red:n})=>e===false?n(t("not cacheable")):undefined,"module.orphan":(e,{formatFlag:t,yellow:n})=>e?n(t("orphan")):undefined,"module.runtime":(e,{formatFlag:t,yellow:n})=>e?n(t("runtime")):undefined,"module.optional":(e,{formatFlag:t,yellow:n})=>e?n(t("optional")):undefined,"module.built":(e,{formatFlag:t,green:n})=>e?n(t("built")):undefined,"module.assets":(e,{formatFlag:t,magenta:n})=>e&&e.length?n(t(`${e.length} ${r(e.length,"asset","assets")}`)):undefined,"module.failed":(e,{formatFlag:t,red:n})=>e?n(t("failed")):undefined,"module.warnings":(e,{formatFlag:t,yellow:n})=>e?n(t(`${e} ${r(e,"warning","warnings")}`)):undefined,"module.errors":(e,{formatFlag:t,red:n})=>e?n(t(`${e} ${r(e,"error","errors")}`)):undefined,"module.providedExports":(e,{formatFlag:t,cyan:n})=>{if(Array.isArray(e)){if(e.length===0)return n(t("no exports"));return n(t(`exports: ${e.join(", ")}`))}},"module.usedExports":(e,{formatFlag:t,cyan:n,module:r})=>{if(e!==true){if(e===null)return n(t("used exports unknown"));if(e===false)return n(t("module unused"));if(Array.isArray(e)){if(e.length===0)return n(t("no exports used"));const i=Array.isArray(r.providedExports)?r.providedExports.length:null;if(i!==null&&i===r.usedExports.length){return n(t("all exports used"))}else{return n(t(`only some exports used: ${e.join(", ")}`))}}}},"module.optimizationBailout[]":(e,{yellow:t})=>t(e),"module.issuerPath":(e,{module:t})=>t.profile?undefined:"","module.profile":e=>undefined,"module.modules":(e,t)=>{let n=0;for(const t of e){if(typeof t.id==="number"){if(n<t.id)n=t.id}}t.maxModuleId=n},"module.filteredModules":(e,{compilation:{modules:t}})=>e>0?` ${t&&t.length>0?` + ${e} hidden`:e} nested ${r(e,"module","modules")}`:undefined,"module.separator!":()=>"\n","moduleIssuer.id":(e,{formatModuleId:t})=>t(e),"moduleIssuer.profile.total":(e,{formatTime:t})=>t(e),"moduleReason.type":e=>e,"moduleReason.userRequest":(e,{cyan:t})=>t(e),"moduleReason.moduleId":(e,{formatModuleId:t})=>a(e)?t(e):undefined,"moduleReason.module":(e,{magenta:t})=>t(e),"moduleReason.loc":e=>e,"moduleReason.explanation":(e,{cyan:t})=>t(e),"moduleReason.active":(e,{formatFlag:t})=>e?undefined:t("inactive"),"moduleReason.resolvedModule":(e,{magenta:t})=>t(e),"module.profile.total":(e,{formatTime:t})=>t(e),"module.profile.resolving":(e,{formatTime:t})=>`resolving: ${t(e)}`,"module.profile.restoring":(e,{formatTime:t})=>`restoring: ${t(e)}`,"module.profile.integration":(e,{formatTime:t})=>`integration: ${t(e)}`,"module.profile.building":(e,{formatTime:t})=>`building: ${t(e)}`,"module.profile.storing":(e,{formatTime:t})=>`storing: ${t(e)}`,"module.profile.additionalResolving":(e,{formatTime:t})=>e?`additional resolving: ${t(e)}`:undefined,"module.profile.additionalIntegration":(e,{formatTime:t})=>e?`additional integration: ${t(e)}`:undefined,"chunkGroup.kind!":(e,{chunkGroupKind:t})=>t,"chunkGroup.name":(e,{bold:t})=>t(e),"chunkGroup.isOverSizeLimit":(e,{formatFlag:t,yellow:n})=>e?n(t("big")):undefined,"chunkGroup.separator!":()=>"=","chunkGroup.assets[]":(e,{green:t})=>t(e),"chunkGroup.auxiliaryAssets[]":(e,{green:t})=>t(e),"chunkGroup.childAssets":(e,t,n)=>Array.isArray(e)?undefined:n.print(t.type,Object.keys(e).map(t=>({type:t,children:e[t]})),t),"chunkGroup.childAssets[].type":e=>`${e}:`,"chunkGroup.childAssets[].children[]":(e,{formatFilename:t})=>t(e),"chunk.id":(e,{formatChunkId:t})=>t(e),"chunk.files[]":(e,{formatFilename:t})=>t(e),"chunk.names[]":e=>e,"chunk.idHints[]":e=>e,"chunk.runtime[]":e=>e,"chunk.sizes":(e,t)=>i(e,t),"chunk.parents[]":(e,t)=>t.formatChunkId(e,"parent"),"chunk.siblings[]":(e,t)=>t.formatChunkId(e,"sibling"),"chunk.children[]":(e,t)=>t.formatChunkId(e,"child"),"chunk.childrenByOrder":(e,t,n)=>Array.isArray(e)?undefined:n.print(t.type,Object.keys(e).map(t=>({type:t,children:e[t]})),t),"chunk.childrenByOrder[].type":e=>`${e}:`,"chunk.childrenByOrder[].children[]":(e,{formatChunkId:t})=>a(e)?t(e):undefined,"chunk.entry":(e,{formatFlag:t,yellow:n})=>e?n(t("entry")):undefined,"chunk.initial":(e,{formatFlag:t,yellow:n})=>e?n(t("initial")):undefined,"chunk.rendered":(e,{formatFlag:t,green:n})=>e?n(t("rendered")):undefined,"chunk.recorded":(e,{formatFlag:t,green:n})=>e?n(t("recorded")):undefined,"chunk.reason":(e,{yellow:t})=>e?t(e):undefined,"chunk.rootModules":(e,t)=>{let n=0;for(const t of e){if(typeof t.id==="number"){if(n<t.id)n=t.id}}t.maxModuleId=n},"chunk.filteredRootModules":(e,{chunk:{rootModules:t}})=>e>0?` ${t&&t.length>0?` + ${e} hidden`:e} root ${r(e,"module","modules")}`:undefined,"chunk.nonRootModules":(e,{chunk:{filteredRootModules:t,rootModules:n}})=>e>0?` ${n&&n.length>0||t>0?` + ${e} hidden`:e} dependent ${r(e,"module","modules")}`:undefined,"chunk.modules":(e,t)=>{let n=0;for(const t of e){if(typeof t.id==="number"){if(n<t.id)n=t.id}}t.maxModuleId=n},"chunk.filteredModules":(e,{chunk:{modules:t}})=>e>0?` ${t&&t.length>0?` + ${e} hidden`:e} chunk ${r(e,"module","modules")}`:undefined,"chunk.separator!":()=>"\n","chunkOrigin.request":e=>e,"chunkOrigin.moduleId":(e,{formatModuleId:t})=>a(e)?t(e):undefined,"chunkOrigin.moduleName":(e,{bold:t})=>t(e),"chunkOrigin.loc":e=>e,"error.compilerPath":(e,{bold:t})=>e?t(`(${e})`):undefined,"error.chunkId":(e,{formatChunkId:t})=>a(e)?t(e):undefined,"error.chunkEntry":(e,{formatFlag:t})=>e?t("entry"):undefined,"error.chunkInitial":(e,{formatFlag:t})=>e?t("initial"):undefined,"error.file":(e,{bold:t})=>t(e),"error.moduleName":(e,{bold:t})=>{return e.includes("!")?`${t(e.replace(/^(\s|\S)*!/,""))} (${e})`:`${t(e)}`},"error.loc":(e,{green:t})=>t(e),"error.message":(e,{bold:t})=>t(e),"error.details":e=>e,"error.stack":e=>e,"error.moduleTrace":e=>undefined,"error.separator!":()=>"\n","loggingEntry(error).loggingEntry.message":(e,{red:t})=>s(e,e=>`<e> ${t(e)}`),"loggingEntry(warn).loggingEntry.message":(e,{yellow:t})=>s(e,e=>`<w> ${t(e)}`),"loggingEntry(info).loggingEntry.message":(e,{green:t})=>s(e,e=>`<i> ${t(e)}`),"loggingEntry(log).loggingEntry.message":(e,{bold:t})=>s(e,e=>` ${t(e)}`),"loggingEntry(debug).loggingEntry.message":e=>s(e,e=>` ${e}`),"loggingEntry(trace).loggingEntry.message":e=>s(e,e=>` ${e}`),"loggingEntry(status).loggingEntry.message":(e,{magenta:t})=>s(e,e=>`<s> ${t(e)}`),"loggingEntry(profile).loggingEntry.message":(e,{magenta:t})=>s(e,e=>`<p> ${t(e)}`),"loggingEntry(profileEnd).loggingEntry.message":(e,{magenta:t})=>s(e,e=>`</p> ${t(e)}`),"loggingEntry(time).loggingEntry.message":(e,{magenta:t})=>s(e,e=>`<t> ${t(e)}`),"loggingEntry(group).loggingEntry.message":(e,{cyan:t})=>s(e,e=>`<-> ${t(e)}`),"loggingEntry(groupCollapsed).loggingEntry.message":(e,{cyan:t})=>s(e,e=>`<+> ${t(e)}`),"loggingEntry(clear).loggingEntry":()=>" -------","loggingEntry(groupCollapsed).loggingEntry.children":()=>"","loggingEntry.trace[]":e=>e?s(e,e=>`| ${e}`):undefined,"moduleTraceItem.originName":e=>e,loggingGroup:e=>e.entries.length===0?"":undefined,"loggingGroup.debug":(e,{red:t})=>e?t("DEBUG"):undefined,"loggingGroup.name":(e,{bold:t})=>t(`LOG from ${e}`),"loggingGroup.separator!":()=>"\n","loggingGroup.filteredEntries":e=>e>0?`+ ${e} hidden lines`:undefined,"moduleTraceDependency.loc":e=>e};const u={"compilation.assets[]":"asset","compilation.modules[]":"module","compilation.chunks[]":"chunk","compilation.entrypoints[]":"chunkGroup","compilation.namedChunkGroups[]":"chunkGroup","compilation.errors[]":"error","compilation.warnings[]":"error","compilation.logging[]":"loggingGroup","compilation.children[]":"compilation","asset.related[]":"asset","asset.chunks[]":"assetChunk","asset.auxiliaryChunks[]":"assetChunk","asset.chunkNames[]":"assetChunkName","asset.chunkIdHints[]":"assetChunkIdHint","asset.auxiliaryChunkNames[]":"assetChunkName","asset.auxiliaryChunkIdHints[]":"assetChunkIdHint","module.modules[]":"module","module.reasons[]":"moduleReason","module.issuerPath[]":"moduleIssuer","chunk.origins[]":"chunkOrigin","chunk.rootModules[]":"module","chunk.modules[]":"module","loggingGroup.entries[]":e=>`loggingEntry(${e.type}).loggingEntry`,"loggingEntry.children[]":e=>`loggingEntry(${e.type}).loggingEntry`,"error.moduleTrace[]":"moduleTraceItem","moduleTraceItem.dependencies[]":"moduleTraceDependency"};const l=["compilerPath","chunkId","chunkEntry","chunkInitial","file","separator!","moduleName","loc","separator!","message","separator!","details","separator!","stack","separator!","missing","separator!","moduleTrace"];const f={compilation:["name","hash","version","time","builtAt","env","publicPath","assets","filteredAssets","entrypoints","namedChunkGroups","chunks","modules","filteredModules","logging","warnings","errors","children","needAdditionalPass"],asset:["type","name","size","chunks","auxiliaryChunks","emitted","comparedForEmit","info","isOverSizeLimit","chunkNames","auxiliaryChunkNames","chunkIdHints","auxiliaryChunkIdHints","related","filteredChildren"],"asset.info":["immutable","development","hotModuleReplacement"],chunkGroup:["kind!","name","isOverSizeLimit","separator!","assets","auxiliaryAssets","childAssets"],module:["id","name","identifier","sizes","chunks","depth","cacheable","orphan","runtime","optional","built","assets","failed","warnings","errors","separator!","providedExports","separator!","usedExports","separator!","optimizationBailout","separator!","reasons","separator!","issuerPath","profile","separator!","modules"],moduleReason:["active","type","userRequest","moduleId","module","resolvedModule","loc","explanation"],"module.profile":["total","separator!","resolving","restoring","integration","building","storing","additionalResolving","additionalIntegration"],chunk:["id","runtime","files","names","idHints","sizes","parents","siblings","children","childrenByOrder","entry","initial","rendered","recorded","reason","separator!","origins","separator!","rootModules","separator!","filteredRootModules","separator!","nonRootModules","separator!","modules","separator!","filteredModules"],chunkOrigin:["request","moduleId","moduleName","loc"],error:l,warning:l,"chunk.childrenByOrder[]":["type","children"],loggingGroup:["debug","name","separator!","entries","separator!","filteredEntries"],loggingEntry:["message","trace","children"],"chunkGroup.childAssets[]":["type","children"]};const p=e=>e.filter(Boolean).join(" ");const d=e=>e.length>0?`(${e.filter(Boolean).join(" ")})`:undefined;const h=e=>e.filter(Boolean).join("\n\n");const m=e=>e.filter(Boolean).join(", ");const g=e=>e.length>0?`(${e.filter(Boolean).join(", ")})`:undefined;const y=e=>t=>t.length>0?`(${e}: ${t.filter(Boolean).join(", ")})`:undefined;const v={"chunk.parents":p,"chunk.siblings":p,"chunk.children":p,"chunk.names":g,"chunk.idHints":y("id hint"),"chunk.runtime":y("runtime"),"chunk.files":m,"chunk.childrenByOrder":p,"chunk.childrenByOrder[].children":p,"chunkGroup.assets":p,"chunkGroup.auxiliaryAssets":d,"chunkGroup.childAssets":p,"chunkGroup.childAssets[].children":p,"asset.chunks":m,"asset.auxiliaryChunks":g,"asset.chunkNames":y("name"),"asset.auxiliaryChunkNames":y("auxiliary name"),"asset.chunkIdHints":y("id hint"),"asset.auxiliaryChunkIdHints":y("auxiliary id hint"),"module.chunks":p,"module.issuerPath":e=>e.filter(Boolean).map(e=>`${e} ->`).join(" "),"compilation.errors":h,"compilation.warnings":h,"compilation.logging":h,"moduleTraceItem.dependencies":p,"loggingEntry.children":e=>E(e.filter(Boolean).join("\n")," ",false),"compilation.children":e=>e.map(e=>E(e," ",true)).join("\n")};const _=e=>e.map(e=>e.content).filter(Boolean).join(" ");const b=e=>{const t=[];let n=0;for(const r of e){if(r.element==="separator!"){switch(n){case 0:case 1:n+=2;break;case 4:t.push(")");n=3;break}}if(!r.content)continue;switch(n){case 0:n=1;break;case 1:t.push(" ");break;case 2:t.push("(");n=4;break;case 3:t.push(" (");n=4;break;case 4:t.push(", ");break}t.push(r.content)}if(n===4)t.push(")");return t.join("")};const E=(e,t,n)=>{const r=e.replace(/\n([^\n])/g,"\n"+t+"$1");if(n)return r;const i=e[0]==="\n"?"":t;return i+r};const w=(e,t)=>{let n=true;let r=true;return e.map(e=>{if(!e.content)return;let i=E(e.content,r?"":t,!n);if(n){i=i.replace(/^\n+/,"")}if(!i)return;r=false;const s=n||i.startsWith("\n");n=i.endsWith("\n");return s?i:" "+i}).filter(Boolean).join("").trim()};const S=e=>(t,{red:n,yellow:r})=>`${e?n("ERROR"):r("WARNING")} in ${w(t,"")}`;const k={compilation:e=>{const t=[];let n=false;for(const r of e){if(!r.content)continue;const e=r.element==="warnings"||r.element==="errors"||r.element==="logging";if(t.length!==0){t.push(e||n?"\n\n":"\n")}t.push(r.content);n=e}if(n)t.push("\n");return t.join("")},asset:e=>w(e.map(e=>{if(e.element==="related"&&e.content){return{content:`\n${e.content}\n`}}return e})," "),"asset.info":_,module:(e,{module:t,maxModuleId:n})=>{let r=false;let i=" ";if(n>=10)i+=" ";if(n>=100)i+=" ";if(n>=1e3)i+=" ";let s="";if(typeof t.id==="number"){if(t.id<1e3&&n>=1e3)s+=" ";if(t.id<100&&n>=100)s+=" ";if(t.id<10&&n>=10)s+=" "}else if(typeof t.id==="string"&&t.id!==""){if(n>=1e3)s+=" ";if(n>=100)s+=" ";if(n>=10)s+=" "}return s+w(e.filter(e=>{switch(e.element){case"id":if(t.id===t.name&&e.content)r=true;break;case"name":case"identifier":if(r)return false;if(e.content)r=true;break}return true}),i)},chunk:e=>{let t=false;return"chunk "+w(e.filter(e=>{switch(e.element){case"entry":if(e.content)t=true;break;case"initial":if(t)return false;break}return true})," ")},"chunk.childrenByOrder[]":e=>`(${_(e)})`,chunkGroup:_,"chunkGroup.childAssets[]":e=>`(${_(e)})`,moduleReason:(e,{moduleReason:t})=>{let n=false;return _(e.filter(e=>{switch(e.element){case"moduleId":if(t.moduleId===t.module&&e.content)n=true;break;case"module":if(n)return false;break;case"resolvedModule":return t.module!==t.resolvedModule&&e.content}return true}))},"module.profile":b,moduleIssuer:_,chunkOrigin:e=>" > "+_(e),"errors[].error":S(true),"warnings[].error":S(false),loggingGroup:e=>w(e,"").trimRight(),moduleTraceItem:e=>" @ "+_(e),moduleTraceDependency:_};const D={bold:"[1m",yellow:"[1m[33m",red:"[1m[31m",green:"[1m[32m",cyan:"[1m[36m",magenta:"[1m[35m"};const x={formatChunkId:(e,{yellow:t},n)=>{switch(n){case"parent":return`<{${t(e)}}>`;case"sibling":return`={${t(e)}}=`;case"child":return`>{${t(e)}}<`;default:return`{${t(e)}}`}},formatModuleId:e=>`[${e}]`,formatFilename:(e,{green:t,yellow:n},r)=>(r?n:t)(e),formatFlag:e=>`[${e}]`,formatSize:n(9192).formatSize,formatTime:(e,{timeReference:t,bold:n,green:r,yellow:i,red:s},o)=>{const a=" ms";if(t&&e!==t){const o=[t/2,t/4,t/8,t/16];if(e<o[3])return`${e}${a}`;else if(e<o[2])return n(`${e}${a}`);else if(e<o[1])return r(`${e}${a}`);else if(e<o[0])return i(`${e}${a}`);else return s(`${e}${a}`)}else{return`${o?n(e):e}${a}`}}};const C={"module.modules":e=>{return E(e,"| ")}};const A=(e,t)=>{const n=e.slice();const r=new Set(e);const i=new Set;e.length=0;for(const n of t){if(n.endsWith("!")||r.has(n)){e.push(n);i.add(n)}}for(const t of n){if(!i.has(t)){e.push(t)}}return e};class DefaultStatsPrinterPlugin{apply(e){e.hooks.compilation.tap("DefaultStatsPrinterPlugin",e=>{e.hooks.statsPrinter.tap("DefaultStatsPrinterPlugin",(e,t,n)=>{e.hooks.print.for("compilation").tap("DefaultStatsPrinterPlugin",(e,n)=>{for(const e of Object.keys(D)){let r;if(t.colors){if(typeof t.colors==="object"&&typeof t.colors[e]==="string"){r=t.colors[e]}else{r=D[e]}}if(r){n[e]=(e=>`${r}${e}[39m[22m`)}else{n[e]=(e=>e)}}for(const e of Object.keys(x)){n[e]=((t,...r)=>x[e](t,n,...r))}n.timeReference=e.time});for(const t of Object.keys(c)){e.hooks.print.for(t).tap("DefaultStatsPrinterPlugin",(n,r)=>c[t](n,r,e))}for(const t of Object.keys(f)){const n=f[t];e.hooks.sortElements.for(t).tap("DefaultStatsPrinterPlugin",(e,t)=>{A(e,n)})}for(const t of Object.keys(u)){const n=u[t];e.hooks.getItemName.for(t).tap("DefaultStatsPrinterPlugin",typeof n==="string"?()=>n:n)}for(const t of Object.keys(v)){const n=v[t];e.hooks.printItems.for(t).tap("DefaultStatsPrinterPlugin",n)}for(const t of Object.keys(k)){const n=k[t];e.hooks.printElements.for(t).tap("DefaultStatsPrinterPlugin",n)}for(const t of Object.keys(C)){const n=C[t];e.hooks.result.for(t).tap("DefaultStatsPrinterPlugin",n)}})})}}e.exports=DefaultStatsPrinterPlugin},87279:(e,t,n)=>{"use strict";const{HookMap:r,SyncBailHook:i,SyncWaterfallHook:s}=n(92960);const{concatComparators:o,keepOriginalOrder:a}=n(68673);class StatsFactory{constructor(){this.hooks=Object.freeze({extract:new r(()=>new i(["object","data","context"])),filter:new r(()=>new i(["item","context","index","unfilteredIndex"])),sort:new r(()=>new i(["comparators","context"])),filterSorted:new r(()=>new i(["item","context","index","unfilteredIndex"])),sortResults:new r(()=>new i(["comparators","context"])),filterResults:new r(()=>new i(["item","context","index","unfilteredIndex"])),merge:new r(()=>new i(["items","context"])),result:new r(()=>new s(["result","context"])),getItemName:new r(()=>new i(["item","context"])),getItemFactory:new r(()=>new i(["item","context"]))});this._levelHookCache=new Map;this._inCreate=false}_getAllLevelHooks(e,t){let n=this._levelHookCache.get(e);if(n===undefined){n=new Map;this._levelHookCache.set(e,n)}const r=n.get(t);if(r!==undefined){return r}const i=[];const s=t.split(".");for(let t=0;t<s.length;t++){const n=e.get(s.slice(t).join("."));if(n){i.push(n)}}n.set(t,i);return i}_forEachLevel(e,t,n){for(const r of this._getAllLevelHooks(e,t)){const e=n(r);if(e!==undefined)return e}}_forEachLevelWaterfall(e,t,n,r){for(const i of this._getAllLevelHooks(e,t)){n=r(i,n)}return n}_forEachLevelFilter(e,t,n,r,i){const s=this._getAllLevelHooks(e,t);if(s.length===0)return i?n.slice():n;let o=0;return n.filter((e,t)=>{for(const n of s){const i=r(n,e,t,o);if(i!==undefined){if(i)o++;return i}}o++;return true})}create(e,t,n){if(this._inCreate){return this._create(e,t,n)}else{try{this._inCreate=true;return this._create(e,t,n)}finally{this._levelHookCache.clear();this._inCreate=false}}}_create(e,t,n){const r={...n,type:e,[e]:t};if(Array.isArray(t)){const n=this._forEachLevelFilter(this.hooks.filter,e,t,(e,t,n,i)=>e.call(t,r,n,i),true);const i=[];this._forEachLevel(this.hooks.sort,e,e=>e.call(i,r));if(i.length>0){n.sort(o(...i,a(n)))}const s=this._forEachLevelFilter(this.hooks.filterSorted,e,n,(e,t,n,i)=>e.call(t,r,n,i),false);const c=s.map((t,n)=>{const i={...r,_index:n};const s=this._forEachLevel(this.hooks.getItemName,`${e}[]`,e=>e.call(t,i));if(s)i[s]=t;const o=s?`${e}[].${s}`:`${e}[]`;const a=this._forEachLevel(this.hooks.getItemFactory,o,e=>e.call(t,i))||this;return a.create(o,t,i)});const u=[];this._forEachLevel(this.hooks.sortResults,e,e=>e.call(u,r));if(u.length>0){c.sort(o(...u,a(c)))}const l=this._forEachLevelFilter(this.hooks.filterResults,e,c,(e,t,n,i)=>e.call(t,r,n,i),false);let f=this._forEachLevel(this.hooks.merge,e,e=>e.call(l,r));if(f===undefined)f=l;return this._forEachLevelWaterfall(this.hooks.result,e,f,(e,t)=>e.call(t,r))}else{const n={};this._forEachLevel(this.hooks.extract,e,e=>e.call(n,t,r));return this._forEachLevelWaterfall(this.hooks.result,e,n,(e,t)=>e.call(t,r))}}}e.exports=StatsFactory},30533:(e,t,n)=>{"use strict";const{HookMap:r,SyncWaterfallHook:i,SyncBailHook:s}=n(92960);class StatsPrinter{constructor(){this.hooks=Object.freeze({sortElements:new r(()=>new s(["elements","context"])),printElements:new r(()=>new s(["printedElements","context"])),sortItems:new r(()=>new s(["items","context"])),getItemName:new r(()=>new s(["item","context"])),printItems:new r(()=>new s(["printedItems","context"])),print:new r(()=>new s(["object","context"])),result:new r(()=>new i(["result","context"]))});this._levelHookCache=new Map;this._inPrint=false}_getAllLevelHooks(e,t){let n=this._levelHookCache.get(e);if(n===undefined){n=new Map;this._levelHookCache.set(e,n)}const r=n.get(t);if(r!==undefined){return r}const i=[];const s=t.split(".");for(let t=0;t<s.length;t++){const n=e.get(s.slice(t).join("."));if(n){i.push(n)}}n.set(t,i);return i}_forEachLevel(e,t,n){for(const r of this._getAllLevelHooks(e,t)){const e=n(r);if(e!==undefined)return e}}_forEachLevelWaterfall(e,t,n,r){for(const i of this._getAllLevelHooks(e,t)){n=r(i,n)}return n}print(e,t,n){if(this._inPrint){return this._print(e,t,n)}else{try{this._inPrint=true;return this._print(e,t,n)}finally{this._levelHookCache.clear();this._inPrint=false}}}_print(e,t,n){const r={...n,type:e,[e]:t};let i=this._forEachLevel(this.hooks.print,e,e=>e.call(t,r));if(i===undefined){if(Array.isArray(t)){const n=t.slice();this._forEachLevel(this.hooks.sortItems,e,e=>e.call(n,r));const s=n.map((t,n)=>{const i={...r,_index:n};const s=this._forEachLevel(this.hooks.getItemName,`${e}[]`,e=>e.call(t,i));if(s)i[s]=t;return this.print(s?`${e}[].${s}`:`${e}[]`,t,i)});i=this._forEachLevel(this.hooks.printItems,e,e=>e.call(s,r));if(i===undefined){const e=s.filter(Boolean);if(e.length>0)i=e.join("\n")}}else if(t!==null&&typeof t==="object"){const n=Object.keys(t);this._forEachLevel(this.hooks.sortElements,e,e=>e.call(n,r));const s=n.map(n=>{const i=this.print(`${e}.${n}`,t[n],{...r,_parent:t,_element:n,[n]:t[n]});return{element:n,content:i}});i=this._forEachLevel(this.hooks.printElements,e,e=>e.call(s,r));if(i===undefined){const e=s.map(e=>e.content).filter(Boolean);if(e.length>0)i=e.join("\n")}}}return this._forEachLevelWaterfall(this.hooks.result,e,i,(e,t)=>e.call(t,r))}}e.exports=StatsPrinter},73910:(e,t)=>{"use strict";t.equals=((e,t)=>{if(e.length!==t.length)return false;for(let n=0;n<e.length;n++){if(e[n]!==t[n])return false}return true})},9738:(e,t,n)=>{"use strict";const{SyncHook:r,AsyncSeriesHook:i}=n(92960);const s=0;const o=1;const a=2;let c=0;class AsyncQueueEntry{constructor(e,t){this.item=e;this.state=s;this.callback=t;this.callbacks=undefined;this.result=undefined;this.error=undefined}}class AsyncQueue{constructor({name:e,parallelism:t,processor:n,getKey:s}){this._name=e;this._parallelism=t;this._processor=n;this._getKey=s||(e=>e);this._entries=new Map;this._queued=[];this._activeTasks=0;this._willEnsureProcessing=false;this._stopped=false;this.hooks={beforeAdd:new i(["item"]),added:new r(["item"]),beforeStart:new i(["item"]),started:new r(["item"]),result:new r(["item","error","result"])};this._ensureProcessing=this._ensureProcessing.bind(this)}add(e,t){if(this._stopped)return t(new Error("Queue was stopped"));this.hooks.beforeAdd.callAsync(e,n=>{if(n){t(n);return}const r=this._getKey(e);const i=this._entries.get(r);if(i!==undefined){if(i.state===a){process.nextTick(()=>t(i.error,i.result))}else if(i.callbacks===undefined){i.callbacks=[t]}else{i.callbacks.push(t)}return}const s=new AsyncQueueEntry(e,t);if(this._stopped){this.hooks.added.call(e);this._activeTasks++;process.nextTick(()=>this._handleResult(s,new Error("Queue was stopped")))}else{this._entries.set(r,s);this._queued.push(s);if(this._willEnsureProcessing===false){this._willEnsureProcessing=true;setImmediate(this._ensureProcessing)}this.hooks.added.call(e)}})}invalidate(e){const t=this._getKey(e);const n=this._entries.get(t);this._entries.delete(t);if(n.state===s){const e=this._queued.indexOf(n);if(e>=0){this._queued.splice(e,1)}}}stop(){this._stopped=true;const e=this._queued;this._queued=[];for(const t of e){this._entries.delete(this._getKey(t.item));this._activeTasks++;this._handleResult(t,new Error("Queue was stopped"))}}increaseParallelism(){this._parallelism++;if(this._willEnsureProcessing===false&&this._queued.length>0){this._willEnsureProcessing=true;setImmediate(this._ensureProcessing)}}decreaseParallelism(){this._parallelism--}isProcessing(e){const t=this._getKey(e);const n=this._entries.get(t);return n!==undefined&&n.state===o}isQueued(e){const t=this._getKey(e);const n=this._entries.get(t);return n!==undefined&&n.state===s}isDone(e){const t=this._getKey(e);const n=this._entries.get(t);return n!==undefined&&n.state===a}_ensureProcessing(){while(this._activeTasks<this._parallelism&&this._queued.length>0){const e=this._queued.pop();this._activeTasks++;e.state=o;this._startProcessing(e)}this._willEnsureProcessing=false}_startProcessing(e){this.hooks.beforeStart.callAsync(e.item,t=>{if(t){this._handleResult(e,t);return}let n=false;try{this._processor(e.item,(t,r)=>{n=true;this._handleResult(e,t,r)})}catch(t){if(n)throw t;this._handleResult(e,t,null)}this.hooks.started.call(e.item)})}_handleResult(e,t,n){this.hooks.result.callAsync(e.item,t,n,r=>{const i=r||t;const s=e.callback;const o=e.callbacks;e.state=a;e.callback=undefined;e.callbacks=undefined;e.result=n;e.error=i;this._activeTasks--;if(this._willEnsureProcessing===false&&this._queued.length>0){this._willEnsureProcessing=true;setImmediate(this._ensureProcessing)}if(c++>3){process.nextTick(()=>{s(i,n);if(o!==undefined){for(const e of o){e(i,n)}}})}else{s(i,n);if(o!==undefined){for(const e of o){e(i,n)}}}c--})}}e.exports=AsyncQueue},51145:e=>{"use strict";const t=/^data:([^;,]+)?((?:;(?:[^;,]+))*?)(;base64)?,(.*)$/i;const n=e=>{const n=t.exec(e);if(!n)return null;const r=n[3];const i=n[4];return r?Buffer.from(i,"base64"):Buffer.from(decodeURIComponent(i),"ascii")};const r=e=>{const n=t.exec(e);if(!n)return"";return n[1]||"text/plain"};e.exports={decodeDataURI:n,getMimetype:r}},75066:(e,t,n)=>{"use strict";class Hash{update(e,t){const r=n(75884);throw new r}digest(e){const t=n(75884);throw new t}}e.exports=Hash},37496:(e,t,n)=>{"use strict";const r=n(16102);class LazyBucketSortedSet{constructor(e,t,...n){this._getKey=e;this._innerArgs=n;this._leaf=n.length<=1;this._keys=new r(undefined,t);this._map=new Map;this._unsortedItems=new Set;this.size=0}add(e){this.size++;this._unsortedItems.add(e)}_addInternal(e,t){let n=this._map.get(e);if(n===undefined){n=this._leaf?new r(undefined,this._innerArgs[0]):new LazyBucketSortedSet(...this._innerArgs);this._keys.add(e);this._map.set(e,n)}n.add(t)}delete(e){this.size--;if(this._unsortedItems.has(e)){this._unsortedItems.delete(e);return}const t=this._getKey(e);const n=this._map.get(t);n.delete(e);if(n.size===0){this._deleteKey(t)}}_deleteKey(e){this._keys.delete(e);this._map.delete(e)}popFirst(){if(this.size===0)return undefined;this.size--;if(this._unsortedItems.size>0){for(const e of this._unsortedItems){const t=this._getKey(e);this._addInternal(t,e)}this._unsortedItems.clear()}this._keys.sort();const e=this._keys.values().next().value;const t=this._map.get(e);if(this._leaf){const n=t;n.sort();const r=n.values().next().value;n.delete(r);if(n.size===0){this._deleteKey(e)}return r}else{const n=t;const r=n.popFirst();if(n.size===0){this._deleteKey(e)}return r}}startUpdate(e){if(this._unsortedItems.has(e)){return t=>{if(t){this._unsortedItems.delete(e);this.size--;return}}}const t=this._getKey(e);if(this._leaf){const n=this._map.get(t);return r=>{if(r){this.size--;n.delete(e);if(n.size===0){this._deleteKey(t)}return}const i=this._getKey(e);if(t===i){n.add(e)}else{n.delete(e);if(n.size===0){this._deleteKey(t)}this._addInternal(i,e)}}}else{const n=this._map.get(t);const r=n.startUpdate(e);return i=>{if(i){this.size--;r(true);if(n.size===0){this._deleteKey(t)}return}const s=this._getKey(e);if(t===s){r()}else{r(true);if(n.size===0){this._deleteKey(t)}this._addInternal(s,e)}}}}_appendIterators(e){if(this._unsortedItems.size>0)e.push(this._unsortedItems[Symbol.iterator]());for(const t of this._keys){const n=this._map.get(t);if(this._leaf){const t=n;const r=t[Symbol.iterator]();e.push(r)}else{const t=n;t._appendIterators(e)}}}[Symbol.iterator](){const e=[];this._appendIterators(e);e.reverse();let t=e.pop();return{next:()=>{const n=t.next();if(n.done){if(e.length===0)return n;t=e.pop();return t.next()}return n}}}}e.exports=LazyBucketSortedSet},83379:(e,t,n)=>{"use strict";const r=n(56202);const i=(e,t)=>{for(const n of t){for(const t of n){e.add(t)}}};const s=(e,t)=>{for(const n of t){if(n instanceof LazySet){e.add(n._set);if(n._needMerge){for(const t of n._toMerge){e.add(t)}s(e,n._toDeepMerge)}}else{e.add(n)}}};class LazySet{constructor(e){this._set=new Set(e);this._toMerge=new Set;this._toDeepMerge=new Set;this._needMerge=false;this._deopt=false}_flatten(){s(this._toMerge,this._toDeepMerge);this._toDeepMerge.clear()}_merge(){this._flatten();i(this._set,this._toMerge);this._toMerge.clear();this._needMerge=false}get size(){if(this._needMerge)this._merge();return this._set.size}add(e){this._set.add(e);return this}addAll(e){if(this._deopt){const t=this._set;for(const n of e){t.add(n)}}else{this._toDeepMerge.add(e);this._needMerge=true;if(this._toDeepMerge.size>1e5){this._flatten();if(this._toMerge.size>1e5)this._merge()}}return this}clear(){this._set.clear();this._toMerge.clear();this._toDeepMerge.clear();this._needMerge=false;this._deopt=false}delete(e){if(this._needMerge)this._merge();return this._set.delete(e)}entries(){this._deopt=true;if(this._needMerge)this._merge();return this._set.entries()}forEach(e,t){this._deopt=true;if(this._needMerge)this._merge();this._set.forEach(e,t)}has(e){if(this._needMerge)this._merge();return this._set.has(e)}keys(){this._deopt=true;if(this._needMerge)this._merge();return this._set.keys()}values(){this._deopt=true;if(this._needMerge)this._merge();return this._set.values()}[Symbol.iterator](){this._deopt=true;if(this._needMerge)this._merge();return this._set[Symbol.iterator]()}get[Symbol.toStringTag](){return"LazySet"}serialize({write:e}){if(this._needMerge)this._merge();e(this._set.size);for(const t of this._set)e(t)}static deserialize({read:e}){const t=e();const n=[];for(let r=0;r<t;r++){n.push(e())}return new LazySet(n)}}r(LazySet,"webpack/lib/util/LazySet");e.exports=LazySet},39541:e=>{"use strict";class Queue{constructor(e){this._set=new Set(e);this._iterator=this._set[Symbol.iterator]()}get length(){return this._set.size}enqueue(e){this._set.add(e)}dequeue(){const e=this._iterator.next();if(e.done)return undefined;this._set.delete(e.value);return e.value}}e.exports=Queue},26221:(e,t)=>{"use strict";const n=e=>{if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=Infinity;let n=-1;for(let r=0;r<e.length;r++){const i=e[r].size;if(i<t){n=r;t=i}}const r=new Set(e[n]);for(let t=0;t<e.length;t++){if(t===n)continue;const i=e[t];for(const e of r){if(!i.has(e)){r.delete(e)}}}return r};const r=(e,t)=>{if(e.size<t.size)return false;for(const n of t){if(!e.has(n))return false}return true};const i=(e,t)=>{for(const n of e){if(t(n))return n}};t.intersect=n;t.isSubset=r;t.find=i},16102:e=>{"use strict";const t=Symbol("not sorted");class SortableSet extends Set{constructor(e,n){super(e);this._sortFn=n;this._lastActiveSortFn=t;this._cache=undefined;this._cacheOrderIndependent=undefined}add(e){this._lastActiveSortFn=t;this._invalidateCache();this._invalidateOrderedCache();super.add(e);return this}delete(e){this._invalidateCache();this._invalidateOrderedCache();return super.delete(e)}clear(){this._invalidateCache();this._invalidateOrderedCache();return super.clear()}sortWith(e){if(this.size<=1||e===this._lastActiveSortFn){return}const t=Array.from(this).sort(e);super.clear();for(let e=0;e<t.length;e+=1){super.add(t[e])}this._lastActiveSortFn=e;this._invalidateCache()}sort(){this.sortWith(this._sortFn);return this}getFromCache(e){if(this._cache===undefined){this._cache=new Map}else{const t=this._cache.get(e);const n=t;if(n!==undefined){return n}}const t=e(this);this._cache.set(e,t);return t}getFromUnorderedCache(e){if(this._cacheOrderIndependent===undefined){this._cacheOrderIndependent=new Map}else{const t=this._cacheOrderIndependent.get(e);const n=t;if(n!==undefined){return n}}const t=e(this);this._cacheOrderIndependent.set(e,t);return t}_invalidateCache(){if(this._cache!==undefined){this._cache.clear()}}_invalidateOrderedCache(){if(this._cacheOrderIndependent!==undefined){this._cacheOrderIndependent.clear()}}toJSON(){return Array.from(this)}}e.exports=SortableSet},80371:e=>{"use strict";const t=Symbol("tombstone");const n=Symbol("undefined");const r=e=>{const r=e[0];const i=e[1];if(i===n||i===t){return[r,undefined]}else{return e}};class StackedMap{constructor(e){this.map=new Map;this.stack=e===undefined?[]:e.slice();this.stack.push(this.map)}set(e,t){this.map.set(e,t===undefined?n:t)}delete(e){if(this.stack.length>1){this.map.set(e,t)}else{this.map.delete(e)}}has(e){const n=this.map.get(e);if(n!==undefined){return n!==t}if(this.stack.length>1){for(let n=this.stack.length-2;n>=0;n--){const r=this.stack[n].get(e);if(r!==undefined){this.map.set(e,r);return r!==t}}this.map.set(e,t)}return false}get(e){const r=this.map.get(e);if(r!==undefined){return r===t||r===n?undefined:r}if(this.stack.length>1){for(let r=this.stack.length-2;r>=0;r--){const i=this.stack[r].get(e);if(i!==undefined){this.map.set(e,i);return i===t||i===n?undefined:i}}this.map.set(e,t)}return undefined}_compress(){if(this.stack.length===1)return;this.map=new Map;for(const e of this.stack){for(const n of e){if(n[1]===t){this.map.delete(n[0])}else{this.map.set(n[0],n[1])}}}this.stack=[this.map]}asArray(){this._compress();return Array.from(this.map.keys())}asSet(){this._compress();return new Set(this.map.keys())}asPairArray(){this._compress();return Array.from(this.map.entries(),r)}asMap(){return new Map(this.asPairArray())}get size(){this._compress();return this.map.size}createChild(){return new StackedMap(this.stack)}}e.exports=StackedMap},14146:e=>{"use strict";class StringXor{constructor(){this._value=undefined;this._buffer=undefined}add(e){let t=this._buffer;let n;if(t===undefined){t=this._buffer=Buffer.from(e,"latin1");this._value=Buffer.from(t);return}else if(t.length!==e.length){n=this._value;t=this._buffer=Buffer.from(e,"latin1");if(n.length<t.length){this._value=Buffer.allocUnsafe(t.length);n.copy(this._value);this._value.fill(0,n.length);n=this._value}}else{n=this._value;t.write(e,"latin1")}const r=t.length;for(let e=0;e<r;e++){n[e]=n[e]^t[e]}}toString(){return this._value===undefined?"":this._value.toString("latin1")}updateHash(e){if(this._value!==undefined)e.update(this._value)}}e.exports=StringXor},34194:(e,t,n)=>{"use strict";const r=n(86949);class TupleQueue{constructor(e){this._set=new r(e);this._iterator=this._set[Symbol.iterator]()}get length(){return this._set.size}enqueue(...e){this._set.add(...e)}dequeue(){const e=this._iterator.next();if(e.done){if(this._set.size>0){this._iterator=this._set[Symbol.iterator]();const e=this._iterator.next().value;this._set.delete(...e);return e}return undefined}this._set.delete(...e.value);return e.value}}e.exports=TupleQueue},86949:e=>{"use strict";class TupleSet{constructor(e){this._map=new Map;this.size=0;if(e){for(const t of e){this.add(...t)}}}add(...e){let t=this._map;for(let n=0;n<e.length-2;n++){const r=e[n];const i=t.get(r);if(i===undefined){t.set(r,t=new Map)}else{t=i}}const n=e[e.length-2];let r=t.get(n);if(r===undefined){t.set(n,r=new Set)}const i=e[e.length-1];this.size-=r.size;r.add(i);this.size+=r.size}has(...e){let t=this._map;for(let n=0;n<e.length-2;n++){const r=e[n];t=t.get(r);if(t===undefined){return false}}const n=e[e.length-2];let r=t.get(n);if(r===undefined){return false}const i=e[e.length-1];return r.has(i)}delete(...e){let t=this._map;for(let n=0;n<e.length-2;n++){const r=e[n];t=t.get(r);if(t===undefined){return}}const n=e[e.length-2];let r=t.get(n);if(r===undefined){return}const i=e[e.length-1];this.size-=r.size;r.delete(i);this.size+=r.size}[Symbol.iterator](){const e=[];const t=[];let n=undefined;const r=i=>{const s=i.next();if(s.done){if(e.length===0)return false;t.pop();return r(e.pop())}const[o,a]=s.value;e.push(i);t.push(o);if(a instanceof Set){n=a[Symbol.iterator]();return true}else{return r(a[Symbol.iterator]())}};r(this._map[Symbol.iterator]());return{next(){while(n){const i=n.next();if(i.done){t.pop();if(!r(e.pop())){n=undefined}}else{return{done:false,value:t.concat(i.value)}}}return{done:true,value:undefined}}}}}e.exports=TupleSet},45754:(e,t)=>{"use strict";const n="\\".charCodeAt(0);const r="/".charCodeAt(0);const i="a".charCodeAt(0);const s="z".charCodeAt(0);const o="A".charCodeAt(0);const a="Z".charCodeAt(0);const c="0".charCodeAt(0);const u="9".charCodeAt(0);const l="+".charCodeAt(0);const f="-".charCodeAt(0);const p=":".charCodeAt(0);const d="#".charCodeAt(0);const h="?".charCodeAt(0);function getScheme(e){const t=e.charCodeAt(0);if((t<i||t>s)&&(t<o||t>a)){return undefined}let m=1;let g=e.charCodeAt(m);while(g>=i&&g<=s||g>=o&&g<=a||g>=c&&g<=u||g===l||g===f){if(++m===e.length)return undefined;g=e.charCodeAt(m)}if(g!==p)return undefined;if(m===1){const t=m+1<e.length?e.charCodeAt(m+1):0;if(t===0||t===n||t===r||t===d||t===h){return undefined}}return e.slice(0,m).toLowerCase()}function getProtocol(e){const t=getScheme(e);return t===undefined?undefined:t+":"}t.getScheme=getScheme;t.getProtocol=getProtocol},90149:(e,t)=>{"use strict";const n=new WeakMap;const r=new WeakMap;const i=Symbol("DELETE");const s=(e,t)=>{let r=n.get(e);if(r===undefined){r=new WeakMap;n.set(e,r)}const i=r.get(t);if(i!==undefined)return i;const s=y(e,t,true);r.set(t,s);return s};const o=(e,t,n)=>{let i=r.get(e);if(i===undefined){i=new Map;r.set(e,i)}let s=i.get(t);if(s===undefined){s=new Map;i.set(t,s)}let o=s.get(n);if(o)return o;o={...e,[t]:n};s.set(n,o);return o};const a=new WeakMap;const c=e=>{const t=a.get(e);if(t!==undefined)return t;const n=u(e);a.set(e,n);return n};const u=e=>{const t=new Map;const n=e=>{const n=t.get(e);if(n!==undefined)return n;const r={base:undefined,byProperty:undefined,byValues:undefined};t.set(e,r);return r};for(const t of Object.keys(e)){if(t.startsWith("by")){const r=t;const i=e[r];for(const e of Object.keys(i)){const t=i[e];for(const s of Object.keys(t)){const o=n(s);if(o.byProperty===undefined){o.byProperty=r;o.byValues=new Map}else if(o.byProperty!==r){throw new Error(`${r} and ${o.byProperty} for a single property is not supported`)}o.byValues.set(e,t[s]);if(e==="default"){for(const e of Object.keys(i)){if(!o.byValues.has(e))o.byValues.set(e,undefined)}}}}}else{const r=n(t);r.base=e[t]}}return t};const l=e=>{const t={};for(const n of e.values()){if(n.byProperty!==undefined){const e=t[n.byProperty]=t[n.byProperty]||{};for(const t of n.byValues.keys()){e[t]=e[t]||{}}}}for(const[n,r]of e){if(r.base!==undefined){t[n]=r.base}if(r.byProperty!==undefined){const e=t[r.byProperty]=t[r.byProperty]||{};for(const t of Object.keys(e)){const i=_(r.byValues,t);if(i!==undefined)e[t][n]=i}}}return t};const f=0;const p=1;const d=2;const h=3;const m=4;const g=e=>{if(e===undefined){return f}else if(e===i){return m}else if(Array.isArray(e)){if(e.lastIndexOf("...")!==-1)return d;return p}else if(typeof e==="object"&&e!==null&&(!e.constructor||e.constructor===Object)){return h}return p};const y=(e,t,n=false)=>{if(t===undefined)return e;if(e===undefined)return t;const r=n?c(e):u(e);const i=n?c(t):u(t);const s=new Map;for(const[e,t]of r){const r=i.get(e);const o=r!==undefined?v(t,r,n):t;s.set(e,o)}for(const[e,t]of i){if(!r.has(e)){s.set(e,t)}}return l(s)};const v=(e,t,n)=>{switch(g(t.base)){case p:case m:return t;case f:if(!e.byProperty){return{base:e.base,byProperty:t.byProperty,byValues:t.byValues}}else if(e.byProperty!==t.byProperty){throw new Error(`${e.byProperty} and ${t.byProperty} for a single property is not supported`)}else{const r=new Map(e.byValues);for(const[i,s]of t.byValues){const t=_(e.byValues,i);r.set(i,b(t,s,n))}return{base:e.base,byProperty:e.byProperty,byValues:r}}default:{if(!e.byProperty){return{base:b(e.base,t.base,n),byProperty:t.byProperty,byValues:t.byValues}}let r;const i=new Map(e.byValues);for(const[e,r]of i){i.set(e,b(r,t.base,n))}if(Array.from(e.byValues.values()).every(e=>{const t=g(e);return t===p||t===m})){r=b(e.base,t.base,n)}else{r=e.base;if(!i.has("default"))i.set("default",t.base)}if(!t.byProperty){return{base:r,byProperty:e.byProperty,byValues:i}}else if(e.byProperty!==t.byProperty){throw new Error(`${e.byProperty} and ${t.byProperty} for a single property is not supported`)}const s=new Map(i);for(const[e,r]of t.byValues){const t=_(i,e);s.set(e,b(t,r,n))}return{base:r,byProperty:e.byProperty,byValues:s}}}};const _=(e,t)=>{if(t!=="default"&&e.has(t)){return e.get(t)}return e.get("default")};const b=(e,t,n)=>{const r=g(t);const i=g(e);switch(r){case m:case p:return t;case h:{return i!==h?t:n?s(e,t):y(e,t)}case f:return e;case d:switch(i!==p?i:Array.isArray(e)?d:h){case f:return t;case m:return t.filter(e=>e!=="...");case d:{const n=[];for(const r of t){if(r==="..."){for(const t of e){n.push(t)}}else{n.push(r)}}return n}case h:return t.map(t=>t==="..."?e:t);default:throw new Error("Not implemented")}default:throw new Error("Not implemented")}};const E=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];const i=g(r);switch(i){case f:case m:break;case h:t[n]=E(r);break;case d:t[n]=r.filter(e=>e!=="...");break;default:t[n]=r;break}}return t};t.cachedSetProperty=o;t.cachedCleverMerge=s;t.cleverMerge=y;t.removeOperations=E;t.DELETE=i},68673:(e,t,n)=>{"use strict";const{compareRuntime:r}=n(37416);const i=e=>{const t=new WeakMap;return n=>{const r=t.get(n);if(r!==undefined)return r;const i=(t,r)=>{return e(n,t,r)};t.set(n,i);return i}};t.compareChunksById=((e,t)=>{return p(e.id,t.id)});t.compareModulesByIdentifier=((e,t)=>{return p(e.identifier(),t.identifier())});const s=(e,t,n)=>{return p(e.getModuleId(t),e.getModuleId(n))};t.compareModulesById=i(s);const o=(e,t)=>{if(typeof e!==typeof t){return typeof e<typeof t?-1:1}if(e<t)return-1;if(e>t)return 1;return 0};t.compareNumbers=o;const a=(e,t)=>{const n=e.split(/(\d+)/);const r=t.split(/(\d+)/);const i=Math.min(n.length,r.length);for(let e=0;e<i;e++){const t=n[e];const i=r[e];if(e%2===0){if(t.length>i.length){if(t.slice(0,i.length)>i)return 1;return-1}else if(i.length>t.length){if(i.slice(0,t.length)>t)return-1;return 1}else{if(t<i)return-1;if(t>i)return 1}}else{const e=+t;const n=+i;if(e<n)return-1;if(e>n)return 1}}if(r.length<n.length)return 1;if(r.length>n.length)return-1;return 0};t.compareStringsNumeric=a;const c=(e,t,n)=>{const r=o(e.getPostOrderIndex(t),e.getPostOrderIndex(n));if(r!==0)return r;return p(t.identifier(),n.identifier())};t.compareModulesByPostOrderIndexOrIdentifier=i(c);const u=(e,t,n)=>{const r=o(e.getPreOrderIndex(t),e.getPreOrderIndex(n));if(r!==0)return r;return p(t.identifier(),n.identifier())};t.compareModulesByPreOrderIndexOrIdentifier=i(u);const l=(e,t,n)=>{const r=p(e.getModuleId(t),e.getModuleId(n));if(r!==0)return r;return p(t.identifier(),n.identifier())};t.compareModulesByIdOrIdentifier=i(l);const f=(e,t,n)=>{return e.compareChunks(t,n)};t.compareChunks=i(f);const p=(e,t)=>{if(typeof e!==typeof t){return typeof e<typeof t?-1:1}if(e<t)return-1;if(e>t)return 1;return 0};t.compareIds=p;const d=(e,t)=>{if(e<t)return-1;if(e>t)return 1;return 0};t.compareStrings=d;const h=(e,t)=>{return e.index<t.index?-1:1};t.compareChunkGroupsByIndex=h;class TwoKeyWeakMap{constructor(){this._map=new WeakMap}get(e,t){const n=this._map.get(e);if(n===undefined){return undefined}return n.get(t)}set(e,t,n){let r=this._map.get(e);if(r===undefined){r=new WeakMap;this._map.set(e,r)}r.set(t,n)}}const m=new TwoKeyWeakMap;const g=(e,t,...n)=>{if(n.length>0){const[r,...i]=n;return g(e,g(t,r,...i))}const r=m.get(e,t);if(r!==undefined)return r;const i=(n,r)=>{const i=e(n,r);if(i!==0)return i;return t(n,r)};m.set(e,t,i);return i};t.concatComparators=g;const y=new TwoKeyWeakMap;const v=(e,t)=>{const n=y.get(e,t);if(n!==undefined)return n;const r=(n,r)=>{const i=e(n);const s=e(r);if(i!==undefined&&i!==null){if(s!==undefined&&s!==null){return t(i,s)}return-1}else{if(s!==undefined&&s!==null){return 1}return 0}};y.set(e,t,r);return r};t.compareSelect=v;const _=new WeakMap;const b=e=>{const t=_.get(e);if(t!==undefined)return t;const n=(t,n)=>{const r=t[Symbol.iterator]();const i=n[Symbol.iterator]();while(true){const t=r.next();const n=i.next();if(t.done){return n.done?0:-1}else if(n.done){return 1}const s=e(t.value,n.value);if(s!==0)return s}};_.set(e,n);return n};t.compareIterables=b;t.keepOriginalOrder=(e=>{const t=new Map;let n=0;for(const r of e){t.set(r,n++)}return(e,n)=>o(t.get(e),t.get(n))});t.compareChunksNatural=(e=>{const n=t.compareModulesById(e);const i=b(n);return g(v(e=>e.name,p),v(e=>e.runtime,r),v(t=>e.getOrderedChunkModulesIterable(t,n),i))});t.compareLocations=((e,t)=>{let n=typeof e==="object"&&e!==null;let r=typeof t==="object"&&t!==null;if(!n||!r){if(n)return 1;if(r)return-1;return 0}if("start"in e&&"start"in t){const n=e.start;const r=t.start;if(n.line<r.line)return-1;if(n.line>r.line)return 1;if(n.column<r.column)return-1;if(n.column>r.column)return 1}if("name"in e&&"name"in t){if(e.name<t.name)return-1;if(e.name>t.name)return 1}if("index"in e&&"index"in t){if(e.index<t.index)return-1;if(e.index>t.index)return 1}return 0})},87274:e=>{"use strict";const t=e=>{return e.replace(/[-[\]\\/{}()*+?.^$|]/g,"\\$&")};const n=e=>{if(`${+e}`===e){return e}return JSON.stringify(e)};const r=e=>{const t=Object.keys(e).filter(t=>e[t]);const r=Object.keys(e).filter(t=>!e[t]);if(t.length===0)return false;if(r.length===0)return true;if(t.length===1)return e=>`${n(t[0])} == ${e}`;if(r.length===1)return e=>`${n(r[0])} != ${e}`;const i=a(t);const s=a(r);if(i.length<=s.length){return e=>`/^${i}$/.test(${e})`}else{return e=>`!/^${s}$/.test(${e})`}};const i=(e,t,n)=>{const r=new Map;for(const n of e){const e=t(n);if(e){let t=r.get(e);if(t===undefined){t=[];r.set(e,t)}t.push(n)}}const i=[];for(const t of r.values()){if(n(t)){for(const n of t){e.delete(n)}i.push(t)}}return i};const s=e=>{let t=e[0];for(let n=1;n<e.length;n++){const r=e[n];for(let e=0;e<t.length;e++){if(r[e]!==t[e]){t=t.slice(0,e);break}}}return t};const o=e=>{let t=e[0];for(let n=1;n<e.length;n++){const r=e[n];for(let e=r.length-1,n=t.length-1;n>=0;e--,n--){if(r[e]!==t[n]){t=t.slice(n+1);break}}}return t};const a=e=>{if(e.length===1){return t(e[0])}const n=[];let r=0;for(const t of e){if(t.length===1){r++}}if(r===e.length){return`[${t(e.sort().join(""))}]`}const c=new Set(e.sort());if(r>2){let e="";for(const t of c){if(t.length===1){e+=t;c.delete(t)}}n.push(`[${t(e)}]`)}if(n.length===0&&c.size===2){const n=s(e);const r=o(e);if(n.length>0||r.length>0){return`${t(n)}${a(e.map(e=>e.slice(n.length,-r.length||undefined)))}${t(r)}`}}if(n.length===0&&c.size===2){const e=c[Symbol.iterator]();const n=e.next().value;const r=e.next().value;if(n.length>0&&r.length>0&&n.slice(-1)===r.slice(-1)){return`${a([n.slice(0,-1),r.slice(0,-1)])}${t(n.slice(-1))}`}}const u=i(c,e=>e.length>=1?e[0]:false,e=>{if(e.length>=3)return true;if(e.length<=1)return false;return e[0][1]===e[1][1]});for(const e of u){const r=s(e);n.push(`${t(r)}${a(e.map(e=>e.slice(r.length)))}`)}const l=i(c,e=>e.length>=1?e.slice(-1):false,e=>{if(e.length>=3)return true;if(e.length<=1)return false;return e[0].slice(-2)===e[1].slice(-2)});for(const e of l){const r=o(e);n.push(`${a(e.map(e=>e.slice(0,-r.length)))}${t(r)}`)}const f=n.concat(Array.from(c,t));if(f.length===1)return f[0];return`(${f.join("|")})`};e.exports=r;e.exports.itemsToRegexp=a},35891:(e,t,n)=>{"use strict";const r=n(75066);const i=1e3;const s=new Map;class BulkUpdateDecorator extends r{constructor(e,t){super();this.hashKey=t;if(typeof e==="function"){this.hashFactory=e;this.hash=undefined}else{this.hashFactory=undefined;this.hash=e}this.buffer=""}update(e,t){if(t!==undefined||typeof e!=="string"||e.length>i){if(this.hash===undefined)this.hash=this.hashFactory();if(this.buffer.length>0){this.hash.update(this.buffer);this.buffer=""}this.hash.update(e,t)}else{this.buffer+=e;if(this.buffer.length>i){if(this.hash===undefined)this.hash=this.hashFactory();this.hash.update(this.buffer);this.buffer=""}}return this}digest(e){let t;if(this.hash===undefined){t=`${this.hashKey}-${e}-${this.buffer}`;const n=s.get(t);if(n!==undefined)return n;this.hash=this.hashFactory()}if(this.buffer.length>0){this.hash.update(this.buffer)}const n=this.hash.digest(e);const r=typeof n==="string"?n:n.toString();if(t!==undefined){s.set(t,r)}return r}}class DebugHash extends r{constructor(){super();this.string=""}update(e,t){if(typeof e!=="string")e=e.toString("utf-8");if(e.startsWith("debug-digest-")){e=Buffer.from(e.slice("debug-digest-".length),"hex").toString()}this.string+=`[${e}](${(new Error).stack.split("\n",3)[2]})\n`;return this}digest(e){return"debug-digest-"+Buffer.from(this.string).toString("hex")}}let o=undefined;e.exports=(e=>{if(typeof e==="function"){return new BulkUpdateDecorator(()=>new e)}switch(e){case"debug":return new DebugHash;default:if(o===undefined)o=n(76417);return new BulkUpdateDecorator(()=>o.createHash(e),e)}})},16595:(e,t,n)=>{"use strict";const r=n(31669);const i=new Map;const s=(e,t)=>{const n=i.get(e);if(n!==undefined)return n;const s=r.deprecate(()=>{},e,"DEP_WEBPACK_DEPRECATION_"+t);i.set(e,s);return s};const o=["concat","entry","filter","find","findIndex","includes","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some"];const a=["copyWithin","entries","fill","keys","pop","reverse","shift","splice","sort","unshift"];t.arrayToSetDeprecation=((e,t)=>{for(const n of o){if(e[n])continue;const r=s(`${t} was changed from Array to Set (using Array method '${n}' is deprecated)`,"ARRAY_TO_SET");e[n]=function(){r();const e=Array.from(this);return Array.prototype[n].apply(e,arguments)}}const n=s(`${t} was changed from Array to Set (using Array method 'push' is deprecated)`,"ARRAY_TO_SET_PUSH");const r=s(`${t} was changed from Array to Set (using Array property 'length' is deprecated)`,"ARRAY_TO_SET_LENGTH");const i=s(`${t} was changed from Array to Set (indexing Array is deprecated)`,"ARRAY_TO_SET_INDEXER");e.push=function(){n();for(const e of Array.from(arguments)){this.add(e)}return this.size};for(const n of a){if(e[n])continue;e[n]=(()=>{throw new Error(`${t} was changed from Array to Set (using Array method '${n}' is not possible)`)})}const c=e=>{const t=function(){i();let t=0;for(const n of this){if(t++===e)return n}return undefined};return t};let u=0;Object.defineProperty(e,"length",{get(){r();const n=this.size;for(u;u<n;u++){Object.defineProperty(e,u,{get:c(u),set(e){throw new Error(`${t} was changed from Array to Set (indexing Array with write is not possible)`)}})}return n},set(e){throw new Error(`${t} was changed from Array to Set (writing to Array property 'length' is not possible)`)}});e[Symbol.isConcatSpreadable]=true});t.createArrayToSetDeprecationSet=(e=>{class SetDeprecatedArray extends Set{}t.arrayToSetDeprecation(SetDeprecatedArray.prototype,e);return SetDeprecatedArray});t.soonFrozenObjectDeprecation=((e,t,n,i="")=>{const s=`${t} will be frozen in future, all modifications are deprecated.${i&&`\n${i}`}`;return new Proxy(e,{set:r.deprecate((e,t,n,r)=>Reflect.set(e,t,n,r),s,n),defineProperty:r.deprecate((e,t,n)=>Reflect.defineProperty(e,t,n),s,n),deleteProperty:r.deprecate((e,t)=>Reflect.deleteProperty(e,t),s,n),setPrototypeOf:r.deprecate((e,t)=>Reflect.setPrototypeOf(e,t),s,n)})});const c=(e,t,n)=>{const i={};const s=Object.getOwnPropertyDescriptors(e);for(const e of Object.keys(s)){const o=s[e];if(typeof o.value==="function"){Object.defineProperty(i,e,{...o,value:r.deprecate(o.value,t,n)})}else if(o.get||o.set){Object.defineProperty(i,e,{...o,get:o.get&&r.deprecate(o.get,t,n),set:o.set&&r.deprecate(o.set,t,n)})}else{let s=o.value;Object.defineProperty(i,e,{configurable:o.configurable,enumerable:o.enumerable,get:r.deprecate(()=>s,t,n),set:o.writable?r.deprecate(e=>s=e,t,n):undefined})}}return i};t.deprecateAllProperties=c;t.createFakeHook=((e,t,n)=>{if(t&&n){e=c(e,t,n)}return Object.freeze(Object.assign(e,{_fakeHook:true}))})},44648:e=>{"use strict";const t=(e,t)=>{const n=Math.min(e.length,t.length);let r=0;for(let i=0;i<n;i++){const n=e.charCodeAt(i);const s=t.charCodeAt(i);r+=Math.max(0,10-Math.abs(n-s))}return r};const n=(e,t,n)=>{const r=Math.min(e.length,t.length);let i=0;while(i<r){if(e.charCodeAt(i)!==t.charCodeAt(i)){i++;break}i++}while(i<r){const t=e.slice(0,i);const r=t.toLowerCase();if(!n.has(r)){n.add(r);return t}i++}return e};const r=(e,t)=>{for(const n of Object.keys(t)){e[n]=(e[n]||0)+t[n]}};const i=e=>{const t=Object.create(null);for(const n of e){r(t,n.size)}return t};const s=(e,t)=>{for(const n of Object.keys(e)){const r=t[n];if(typeof r==="number"){if(e[n]>r)return true}}return false};const o=(e,t)=>{for(const n of Object.keys(e)){const r=t[n];if(typeof r==="number"){if(e[n]<r)return true}}return false};const a=(e,t)=>{const n=new Set;for(const r of Object.keys(e)){const i=t[r];if(typeof i==="number"){if(e[r]<i)n.add(r)}}return n};const c=(e,t)=>{let n=0;for(const r of Object.keys(e)){if(t.has(r))n++}return n};const u=(e,t)=>{let n=0;for(const r of Object.keys(e)){if(t.has(r))n+=e[r]}return n};class Node{constructor(e,t,n){this.item=e;this.key=t;this.size=n}}class Group{constructor(e,t,n){this.nodes=e;this.similarities=t;this.size=n||i(e);this.key=undefined}popNodes(e){const n=[];const r=[];const s=[];let o;for(let i=0;i<this.nodes.length;i++){const a=this.nodes[i];if(e(a)){s.push(a)}else{if(n.length>0){r.push(o===this.nodes[i-1]?this.similarities[i-1]:t(o.key,a.key))}n.push(a);o=a}}this.nodes=n;this.similarities=r;this.size=i(n);return s}}const l=e=>{const n=[];let r=undefined;for(const i of e){if(r!==undefined){n.push(t(r.key,i.key))}r=i}return n};e.exports=(({maxSize:e,minSize:t,items:i,getSize:f,getKey:p})=>{const d=[];const h=Array.from(i,e=>new Node(e,p(e),f(e)));const m=[];h.sort((e,t)=>{if(e.key<t.key)return-1;if(e.key>t.key)return 1;return 0});for(const n of h){if(s(n.size,e)&&!o(n.size,t)){d.push(new Group([n],[]))}else{m.push(n)}}if(m.length>0){const n=new Group(m,l(m));const i=a(n.size,t);if(i.size>0){const e=n.popNodes(e=>c(e.size,i)>0);const t=d.filter(e=>c(e.size,i)>0);if(t.length>0){const n=t.reduce((e,t)=>{const n=c(e);const r=c(t);if(n!==r)return n<r?t:e;if(u(e.size,i)>u(t.size,i))return t;return e});for(const t of e)n.nodes.push(t);n.nodes.sort((e,t)=>{if(e.key<t.key)return-1;if(e.key>t.key)return 1;return 0})}else{d.push(new Group(e,null))}}if(n.nodes.length>0){const i=[n];while(i.length){const n=i.pop();if(!s(n.size,e)){d.push(n);continue}let a=1;let c=Object.create(null);r(c,n.nodes[0].size);while(o(c,t)){r(c,n.nodes[a].size);a++}let u=n.nodes.length-2;let l=Object.create(null);r(l,n.nodes[n.nodes.length-1].size);while(o(l,t)){r(l,n.nodes[u].size);u--}if(a-1>u){d.push(n);continue}if(a<=u){let e=a-1;let t=n.similarities[e];for(let r=a;r<=u;r++){const i=n.similarities[r];if(i<t){e=r;t=i}}a=e+1;u=e}const f=[n.nodes[u+1]];const p=[];for(let e=u+2;e<n.nodes.length;e++){p.push(n.similarities[e-1]);f.push(n.nodes[e])}i.push(new Group(f,p));const h=[n.nodes[0]];const m=[];for(let e=1;e<a;e++){m.push(n.similarities[e-1]);h.push(n.nodes[e])}i.push(new Group(h,m))}}}d.sort((e,t)=>{if(e.nodes[0].key<t.nodes[0].key)return-1;if(e.nodes[0].key>t.nodes[0].key)return 1;return 0});const g=new Set;for(let e=0;e<d.length;e++){const t=d[e];if(t.nodes.length===1){t.key=t.nodes[0].key}else{const e=t.nodes[0];const r=t.nodes[t.nodes.length-1];const i=n(e.key,r.key,g);t.key=i}}return d.map(e=>{return{key:e.key,items:e.nodes.map(e=>e.item),size:e.size}})})},10004:e=>{"use strict";e.exports=function extractUrlAndGlobal(e){const t=e.indexOf("@");return[e.substring(t+1),e.substring(0,t)]}},62598:e=>{"use strict";const t=0;const n=1;const r=2;const i=3;const s=4;class Node{constructor(e){this.item=e;this.dependencies=new Set;this.marker=t;this.cycle=undefined;this.incoming=0}}class Cycle{constructor(){this.nodes=new Set}}e.exports=((e,o)=>{const a=new Map;for(const t of e){const e=new Node(t);a.set(t,e)}if(a.size<=1)return e;for(const e of a.values()){for(const t of o(e.item)){const n=a.get(t);if(n!==undefined){e.dependencies.add(n)}}}const c=new Set;const u=new Set;for(const e of a.values()){if(e.marker===t){e.marker=n;const o=[{node:e,openEdges:Array.from(e.dependencies)}];while(o.length>0){const e=o[o.length-1];if(e.openEdges.length>0){const a=e.openEdges.pop();switch(a.marker){case t:o.push({node:a,openEdges:Array.from(a.dependencies)});a.marker=n;break;case n:{let e=a.cycle;if(!e){e=new Cycle;e.nodes.add(a);a.cycle=e}for(let t=o.length-1;o[t].node!==a;t--){const n=o[t].node;if(n.cycle){if(n.cycle!==e){for(const t of n.cycle.nodes){t.cycle=e;e.nodes.add(t)}}}else{n.cycle=e;e.nodes.add(n)}}break}case s:a.marker=r;c.delete(a);break;case i:u.delete(a.cycle);a.marker=r;break}}else{o.pop();e.node.marker=r}}const a=e.cycle;if(a){for(const e of a.nodes){e.marker=i}u.add(a)}else{e.marker=s;c.add(e)}}}for(const e of u){let t=0;const n=new Set;const r=e.nodes;for(const e of r){for(const i of e.dependencies){if(r.has(i)){i.incoming++;if(i.incoming<t)continue;if(i.incoming>t){n.clear();t=i.incoming}n.add(i)}}}for(const e of n){c.add(e)}}if(c.size>0){return Array.from(c,e=>e.item)}else{throw new Error("Implementation of findGraphRoots is broken")}})},95396:(e,t,n)=>{"use strict";const r=n(85622);const i=(e,t,n)=>{if(e&&e.relative){return e.relative(t,n)}else if(t.startsWith("/")){return r.posix.relative(t,n)}else if(t.length>1&&t[1]===":"){return r.win32.relative(t,n)}else{throw new Error(`${t} is neither a posix nor a windows path, and there is no 'relative' method defined in the file system`)}};t.relative=i;const s=(e,t,n)=>{if(e&&e.join){return e.join(t,n)}else if(t.startsWith("/")){return r.posix.join(t,n)}else if(t.length>1&&t[1]===":"){return r.win32.join(t,n)}else{throw new Error(`${t} is neither a posix nor a windows path, and there is no 'join' method defined in the file system`)}};t.join=s;const o=(e,t)=>{if(e&&e.dirname){return e.dirname(t)}else if(t.startsWith("/")){return r.posix.dirname(t)}else if(t.length>1&&t[1]===":"){return r.win32.dirname(t)}else{throw new Error(`${t} is neither a posix nor a windows path, and there is no 'dirname' method defined in the file system`)}};t.dirname=o;const a=(e,t,n)=>{e.mkdir(t,r=>{if(r){if(r.code==="ENOENT"){const i=o(e,t);if(i===t){n(r);return}a(e,i,r=>{if(r){n(r);return}e.mkdir(t,e=>{if(e){if(e.code==="EEXIST"){n();return}n(e);return}n()})});return}else if(r.code==="EEXIST"){n();return}n(r);return}n()})};t.mkdirp=a;const c=(e,t)=>{try{e.mkdirSync(t)}catch(n){if(n){if(n.code==="ENOENT"){const r=o(e,t);if(r===t){throw n}c(e,r);e.mkdirSync(t);return}else if(n.code==="EEXIST"){return}throw n}}};t.mkdirpSync=c;const u=(e,t,n)=>{if("readJson"in e)return e.readJson(t,n);e.readFile(t,(e,t)=>{if(e)return n(e);let r;try{r=JSON.parse(t.toString("utf-8"))}catch(e){return n(e)}return n(null,r)})};t.readJson=u},49197:(e,t,n)=>{"use strict";const r=n(85622);const i=/^[a-zA-Z]:[\\/]/;const s=/([|!])/;const o=/\\/g;const a=(e,t)=>{if(t[0]==="/"){if(t.length>1&&t[t.length-1]==="/"){return t}const n=t.indexOf("?");let i=n===-1?t:t.slice(0,n);i=r.posix.relative(e,i);if(!i.startsWith("../")){i="./"+i}return n===-1?i:i+t.slice(n)}if(i.test(t)){const n=t.indexOf("?");let s=n===-1?t:t.slice(0,n);s=r.win32.relative(e,s);if(!i.test(s)){s=s.replace(o,"/");if(!s.startsWith("../")){s="./"+s}}return n===-1?s:s+t.slice(n)}return t};const c=(e,t)=>{if(t.startsWith("./")||t.startsWith("../"))return r.join(e,t);return t};const u=e=>{const t=new WeakMap;const n=(n,r,i)=>{if(!i)return e(n,r);let s=t.get(i);if(s===undefined){s=new Map;t.set(i,s)}let o;let a=s.get(n);if(a===undefined){s.set(n,a=new Map)}else{o=a.get(r)}if(o!==undefined){return o}else{const t=e(n,r);a.set(r,t);return t}};n.bindCache=(n=>{let r;if(n){r=t.get(n);if(r===undefined){r=new Map;t.set(n,r)}}else{r=new Map}const i=(t,n)=>{let i;let s=r.get(t);if(s===undefined){r.set(t,s=new Map)}else{i=s.get(n)}if(i!==undefined){return i}else{const r=e(t,n);s.set(n,r);return r}};return i});n.bindContextCache=((n,r)=>{let i;if(r){let e=t.get(r);if(e===undefined){e=new Map;t.set(r,e)}i=e.get(n);if(i===undefined){e.set(n,i=new Map)}}else{i=new Map}const s=t=>{const r=i.get(t);if(r!==undefined){return r}else{const r=e(n,t);i.set(t,r);return r}};return s});return n};const l=(e,t)=>{return t.split(s).map(t=>a(e,t)).join("")};t.makePathsRelative=u(l);const f=(e,t)=>{return t.split("!").map(t=>a(e,t)).join("!")};const p=u(f);t.contextify=p;const d=(e,t)=>{return t.split("!").map(t=>c(e,t)).join("!")};const h=u(d);t.absolutify=h;const m=/^([^?#]*)(\?[^#]*)?(#.*)?$/;const g=e=>{const t=m.exec(e);return{resource:e,path:t[1],query:t[2]||"",fragment:t[3]||""}};t.parseResource=(e=>{const t=new WeakMap;const n=e=>{const n=t.get(e);if(n!==undefined)return n;const r=new Map;t.set(e,r);return r};const r=(t,r)=>{if(!r)return e(t);const i=n(r);const s=i.get(t);if(s!==undefined)return s;const o=e(t);i.set(t,o);return o};r.bindCache=(t=>{const r=n(t);return t=>{const n=r.get(t);if(n!==undefined)return n;const i=e(t);r.set(t,i);return i}});return r})(g);t.getUndoPath=((e,t)=>{let n=-1;for(const t of e.split(/[/\\]+/)){if(t!=="."){n+=t===".."?-1:1}}return n>0?"../".repeat(n):t?"./":""})},90331:(e,t,n)=>{"use strict";e.exports={AsyncDependenciesBlock:()=>n(98221),CommentCompilationWarning:()=>n(47207),ContextModule:()=>n(58126),"cache/PackFileCacheStrategy":()=>n(83793),"cache/ResolverCachePlugin":()=>n(13653),"container/ContainerEntryDependency":()=>n(76041),"container/ContainerEntryModule":()=>n(89591),"container/ContainerExposedDependency":()=>n(4523),"container/FallbackDependency":()=>n(50940),"container/FallbackItemDependency":()=>n(55525),"container/FallbackModule":()=>n(13386),"container/RemoteModule":()=>n(68679),"container/RemoteToExternalDependency":()=>n(44742),"dependencies/AMDDefineDependency":()=>n(46960),"dependencies/AMDRequireArrayDependency":()=>n(95715),"dependencies/AMDRequireContextDependency":()=>n(38145),"dependencies/AMDRequireDependenciesBlock":()=>n(83842),"dependencies/AMDRequireDependency":()=>n(45167),"dependencies/AMDRequireItemDependency":()=>n(29022),"dependencies/CachedConstDependency":()=>n(59455),"dependencies/CommonJsRequireContextDependency":()=>n(51454),"dependencies/CommonJsExportRequireDependency":()=>n(1248),"dependencies/CommonJsExportsDependency":()=>n(26702),"dependencies/CommonJsFullRequireDependency":()=>n(87519),"dependencies/CommonJsRequireDependency":()=>n(37313),"dependencies/CommonJsSelfReferenceDependency":()=>n(94147),"dependencies/ConstDependency":()=>n(66298),"dependencies/ContextDependency":()=>n(400),"dependencies/ContextElementDependency":()=>n(90872),"dependencies/CriticalDependencyWarning":()=>n(75314),"dependencies/DelegatedSourceDependency":()=>n(49422),"dependencies/DllEntryDependency":()=>n(95189),"dependencies/EntryDependency":()=>n(66583),"dependencies/ExportsInfoDependency":()=>n(51420),"dependencies/HarmonyAcceptDependency":()=>n(27790),"dependencies/HarmonyAcceptImportDependency":()=>n(80654),"dependencies/HarmonyCompatibilityDependency":()=>n(54290),"dependencies/HarmonyExportExpressionDependency":()=>n(55037),"dependencies/HarmonyExportHeaderDependency":()=>n(48752),"dependencies/HarmonyExportImportedSpecifierDependency":()=>n(44576),"dependencies/HarmonyExportSpecifierDependency":()=>n(14696),"dependencies/HarmonyImportSideEffectDependency":()=>n(69707),"dependencies/HarmonyImportSpecifierDependency":()=>n(2230),"dependencies/ImportContextDependency":()=>n(4828),"dependencies/ImportDependency":()=>n(20013),"dependencies/ImportEagerDependency":()=>n(75708),"dependencies/ImportWeakDependency":()=>n(12849),"dependencies/JsonExportsDependency":()=>n(38895),"dependencies/LocalModule":()=>n(77230),"dependencies/LocalModuleDependency":()=>n(14229),"dependencies/ModuleDecoratorDependency":()=>n(2706),"dependencies/ModuleHotAcceptDependency":()=>n(21809),"dependencies/ModuleHotDeclineDependency":()=>n(73158),"dependencies/ImportMetaHotAcceptDependency":()=>n(76302),"dependencies/ImportMetaHotDeclineDependency":()=>n(5389),"dependencies/ProvidedDependency":()=>n(1335),"dependencies/PureExpressionDependency":()=>n(53567),"dependencies/RequireContextDependency":()=>n(19204),"dependencies/RequireEnsureDependenciesBlock":()=>n(15196),"dependencies/RequireEnsureDependency":()=>n(15427),"dependencies/RequireEnsureItemDependency":()=>n(81058),"dependencies/RequireHeaderDependency":()=>n(70340),"dependencies/RequireIncludeDependency":()=>n(63556),"dependencies/RequireIncludeDependencyParserPlugin":()=>n(1913),"dependencies/RequireResolveContextDependency":()=>n(84817),"dependencies/RequireResolveDependency":()=>n(76913),"dependencies/RequireResolveHeaderDependency":()=>n(23380),"dependencies/RuntimeRequirementsDependency":()=>n(35424),"dependencies/StaticExportsDependency":()=>n(96076),"dependencies/SystemPlugin":()=>n(62630),"dependencies/UnsupportedDependency":()=>n(12584),"dependencies/WebAssemblyExportImportedDependency":()=>n(30697),"dependencies/WebAssemblyImportDependency":()=>n(33081),"optimize/ConcatenatedModule":()=>n(95734),DelegatedModule:()=>n(3955),DependenciesBlock:()=>n(32448),DllModule:()=>n(44593),ExternalModule:()=>n(16734),Module:()=>n(53453),ModuleBuildError:()=>n(26509),ModuleError:()=>n(91613),ModuleGraph:()=>n(75412),ModuleParseError:()=>n(14489),ModuleWarning:()=>n(8893),NormalModule:()=>n(53520),RawModule:()=>n(22804),"sharing/ConsumeSharedModule":()=>n(21606),"sharing/ConsumeSharedFallbackDependency":()=>n(86827),"sharing/ProvideSharedModule":()=>n(99114),"sharing/ProvideSharedDependency":()=>n(56049),"sharing/ProvideForSharedDependency":()=>n(31095),UnsupportedFeatureWarning:()=>n(53558),"util/LazySet":()=>n(83379),UnhandledSchemeError:()=>n(77090),WebpackError:()=>n(81627),"util/registerExternalSerializer":()=>{}}},56202:(e,t,n)=>{"use strict";const{register:r}=n(24568);class ClassSerializer{constructor(e){this.Constructor=e;this.hash=null}serialize(e,t){e.serialize(t)}deserialize(e){if(typeof this.Constructor.deserialize==="function"){return this.Constructor.deserialize(e)}const t=new this.Constructor;t.deserialize(e);return t}}e.exports=((e,t,n=null)=>{r(e,t,n,new ClassSerializer(e))})},27503:e=>{"use strict";const t=e=>{let t=false;let n=undefined;return()=>{if(t){return n}else{n=e();t=true;e=undefined;return n}}};e.exports=t},76174:e=>{"use strict";e.exports=(e=>{let t=e;if(t===2009){return 5}if(t>=2015){t-=2009}return t})},12631:e=>{"use strict";const t=2147483648;const n=t-1;const r=4;const i=[0,0,0,0,0];const s=[3,7,17,19];e.exports=((e,o)=>{i.fill(0);for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);for(let e=0;e<r;e++){const t=(e+r-1)%r;i[e]=i[e]+o*s[e]+i[t]&n}for(let e=0;e<r;e++){const t=i[e]%r;i[e]=i[e]^i[t]>>1}}if(o<=n){let e=0;for(let t=0;t<r;t++){e=(e+i[t])%o}return e}else{let e=0;let s=0;const a=Math.floor(o/t);for(let t=0;t<r;t+=2){e=e+i[t]&n}for(let e=1;e<r;e+=2){s=(s+i[e])%a}return(s*t+e)%o}})},68038:e=>{"use strict";const t=/^[_a-zA-Z$][_a-zA-z$0-9]*$/;const n=(e,n=0)=>{let r="";for(let i=n;i<e.length;i++){const n=e[i];if(`${+n}`===n){r+=`[${n}]`}else if(t.test(n)){r+=`.${n}`}else{r+=`[${JSON.stringify(n)}]`}}return r};e.exports=n},48077:(e,t,n)=>{"use strict";const{register:r}=n(24568);const i=n(20976).Position;const s=n(20976).SourceLocation;const{ValidationError:o}=n(15235);const{CachedSource:a,ConcatSource:c,OriginalSource:u,PrefixSource:l,RawSource:f,ReplaceSource:p,SourceMapSource:d}=n(48135);const h="webpack/lib/util/registerExternalSerializer";r(a,h,"webpack-sources/CachedSource",new class CachedSourceSerializer{serialize(e,{write:t}){t(e.original());t(e.getCachedData())}deserialize({read:e}){const t=e();const n=e();return new a(t,n)}});r(f,h,"webpack-sources/RawSource",new class RawSourceSerializer{serialize(e,{write:t}){t(e.buffer());t(!e.isBuffer())}deserialize({read:e}){const t=e();const n=e();return new f(t,n)}});r(c,h,"webpack-sources/ConcatSource",new class ConcatSourceSerializer{serialize(e,{write:t}){t(e.getChildren())}deserialize({read:e}){const t=new c;t.addAllSkipOptimizing(e());return t}});r(l,h,"webpack-sources/PrefixSource",new class PrefixSourceSerializer{serialize(e,{write:t}){t(e.getPrefix());t(e.original())}deserialize({read:e}){return new l(e(),e())}});r(p,h,"webpack-sources/ReplaceSource",new class ReplaceSourceSerializer{serialize(e,{write:t}){t(e.original());t(e.getName());const n=e.getReplacements();t(n.length);for(const e of n){t(e.start);t(e.end)}for(const e of n){t(e.content);t(e.name)}}deserialize({read:e}){const t=new p(e(),e());const n=e();const r=[];for(let t=0;t<n;t++){r.push(e(),e())}let i=0;for(let s=0;s<n;s++){t.replace(r[i++],r[i++],e(),e())}return t}});r(u,h,"webpack-sources/OriginalSource",new class OriginalSourceSerializer{serialize(e,{write:t}){t(e.buffer());t(e.getName())}deserialize({read:e}){const t=e();const n=e();return new u(t,n)}});r(s,h,"acorn/SourceLocation",new class SourceLocationSerializer{serialize(e,{write:t}){t(e.start.line);t(e.start.column);t(e.end.line);t(e.end.column)}deserialize({read:e}){return{start:{line:e(),column:e()},end:{line:e(),column:e()}}}});r(i,h,"acorn/Position",new class PositionSerializer{serialize(e,{write:t}){t(e.line);t(e.column)}deserialize({read:e}){return{line:e(),column:e()}}});r(d,h,"webpack-sources/SourceMapSource",new class SourceMapSourceSerializer{serialize(e,{write:t}){t(e.getArgsAsBuffers())}deserialize({read:e}){return new d(...e())}});r(o,h,"schema-util/ValidationError",new class ValidationErrorSerializer{serialize(e,{write:t}){t(e.errors);t(e.schema);t({name:e.headerName,baseDataPath:e.baseDataPath,postFormatter:e.postFormatter})}deserialize({read:e}){return new o(e(),e(),e())}})},37416:(e,t,n)=>{"use strict";const r=n(16102);t.getEntryRuntime=((e,t,n)=>{let r;let i;if(n){({dependOn:r,runtime:i}=n)}else{const n=e.entries.get(t);if(!n)return t;({dependOn:r,runtime:i}=n.options)}if(r){let t=undefined;const n=new Set(r);for(const r of n){const i=e.entries.get(r);if(!i)continue;const{dependOn:s,runtime:o}=i.options;if(s){for(const e of s){n.add(e)}}else{t=c(t,o||r)}}return t}else{return i||t}});t.forEachRuntime=((e,t)=>{if(e===undefined){t(undefined)}else if(typeof e==="string"){t(e)}else{for(const n of e){t(n)}}});const i=e=>{e.sort();return Array.from(e).join("\n")};const s=e=>{if(e===undefined)return"*";if(typeof e==="string")return e;return e.getFromUnorderedCache(i)};t.getRuntimeKey=s;const o=e=>{e.sort();return Array.from(e).join("+")};t.runtimeToString=(e=>{if(e===undefined)return"*";if(typeof e==="string")return e;return e.getFromUnorderedCache(o)});t.runtimeEqual=((e,t)=>{if(e===t){return true}else if(e===undefined||t===undefined||typeof e==="string"||typeof t==="string"){return false}else if(e.size!==t.size){return false}else{e.sort();t.sort();const n=e[Symbol.iterator]();const r=t[Symbol.iterator]();for(;;){const e=n.next();if(e.done)return true;const t=r.next();if(e.value!==t.value)return false}}});t.compareRuntime=((e,t)=>{if(e===t){return 0}else if(e===undefined){return-1}else if(t===undefined){return 1}else{const n=s(e);const r=s(t);if(n<r)return-1;if(n>r)return 1;return 0}});const a=(e,t)=>{if(e===undefined){return t}else if(t===undefined){return e}else if(e===t){return e}else if(typeof e==="string"){if(typeof t==="string"){const n=new r;n.add(e);n.add(t);return n}else if(t.has(e)){return t}else{const n=new r(t);n.add(e);return n}}else{if(typeof t==="string"){if(e.has(t))return e;const n=new r(e);n.add(t);return n}else{const n=new r(e);for(const e of t)n.add(e);if(n.size===e.size)return e;return n}}};t.mergeRuntime=a;const c=(e,t)=>{if(t===undefined){return e}else if(e===t){return e}else if(e===undefined){if(typeof t==="string"){const e=new r;e.add(t);return e}else{return new r(t)}}else if(typeof e==="string"){if(typeof t==="string"){const n=new r;n.add(e);n.add(t);return n}else{const n=new r(t);n.add(e);return n}}else{if(typeof t==="string"){e.add(t);return e}else{for(const n of t)e.add(n);return e}}};t.mergeRuntimeOwned=c;t.intersectRuntime=((e,t)=>{if(e===undefined){return t}else if(t===undefined){return e}else if(e===t){return e}else if(typeof e==="string"){if(typeof t==="string"){return undefined}else if(t.has(e)){return e}else{return undefined}}else{if(typeof t==="string"){if(e.has(t))return t;return undefined}else{const n=new r;for(const r of t){if(e.has(r))n.add(r)}if(n.size===0)return undefined;if(n.size===1)for(const e of n)return e;return n}}});class RuntimeSpecMap{constructor(e){this._map=new Map(e?e._map:undefined)}get(e){const t=s(e);return this._map.get(t)}has(e){const t=s(e);return this._map.has(t)}set(e,t){this._map.set(s(e),t)}delete(e){this._map.delete(s(e))}update(e,t){const n=s(e);const r=this._map.get(n);const i=t(r);if(i!==r)this._map.set(n,i)}keys(){return Array.from(this._map.keys(),e=>{if(e==="*")return undefined;const t=e.split("\n");if(t.length===1)return t[0];return new r(t)})}values(){return this._map.values()}}t.RuntimeSpecMap=RuntimeSpecMap;class RuntimeSpecSet{constructor(e){this._map=new Map;if(e){for(const t of e){this.add(t)}}}add(e){this._map.set(s(e),e)}[Symbol.iterator](){return this._map.values()}get size(){return this._map.size}}t.RuntimeSpecSet=RuntimeSpecSet},9293:function(e,t){"use strict";const n=e=>{var t=function(e){return e.split(".").map(function(e){return+e==e?+e:e})};var n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e);var r=n[1]?t(n[1]):[];if(n[2]){r.length++;r.push.apply(r,t(n[2]))}if(n[3]){r.push([]);r.push.apply(r,t(n[3]))}return r};t.parseVersion=n;const r=(e,t)=>{e=n(e);t=n(t);var r=0;for(;;){if(r>=e.length)return r<t.length&&(typeof t[r])[0]!="u";var i=e[r];var s=(typeof i)[0];if(r>=t.length)return s=="u";var o=t[r];var a=(typeof o)[0];if(s==a){if(s!="o"&&s!="u"&&i!=o){return i<o}r++}else{if(s=="o"&&a=="n")return true;return a=="s"||s=="u"}}};t.versionLt=r;t.parseRange=(e=>{const t=e=>{return e.split(".").map(e=>`${+e}`===e?+e:e)};const n=e=>{const n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e);const r=n[1]?[0,...t(n[1])]:[0];if(n[2]){r.length++;r.push.apply(r,t(n[2]))}let i=r[r.length-1];while(r.length&&(i===undefined||/^[*xX]$/.test(i))){r.pop();i=r[r.length-1]}return r};const r=e=>{if(e.length===1){return[0]}else if(e.length===2){return[1,...e.slice(1)]}else if(e.length===3){return[2,...e.slice(1)]}else{return[e.length,...e.slice(1)]}};const i=e=>{return[-e[0]-1,...e.slice(1)]};const s=e=>{const t=/^(\^|~|<=|<|>=|>|=|v|!)/.exec(e);const s=t?t[0]:"";const o=n(e.slice(s.length));switch(s){case"^":if(o.length>1&&o[1]===0){if(o.length>2&&o[2]===0){return[3,...o.slice(1)]}return[2,...o.slice(1)]}return[1,...o.slice(1)];case"~":return[2,...o.slice(1)];case">=":return o;case"=":case"v":case"":return r(o);case"<":return i(o);case">":{const e=r(o);return[,e,0,o,2]}case"<=":return[,r(o),i(o),1];case"!":{const e=r(o);return[,e,0]}default:throw new Error("Unexpected start value")}};const o=(e,t)=>{if(e.length===1)return e[0];const n=[];for(const t of e.slice().reverse()){if(0 in t){n.push(t)}else{n.push(...t.slice(1))}}return[,...n,...e.slice(1).map(()=>t)]};const a=e=>{const t=e.split(" - ");if(t.length===1){const t=e.trim().split(/\s+/g).map(s);return o(t,2)}const a=n(t[0]);const c=n(t[1]);return[,r(c),i(c),1,a,2]};const c=e=>{const t=e.split(/\s*\|\|\s*/).map(a);return o(t,1)};return c(e)});const i=e=>{if(e.length===1){return"*"}else if(0 in e){var t="";var n=e[0];t+=n==0?">=":n==-1?"<":n==1?"^":n==2?"~":n>0?"=":"!=";var r=1;for(var s=1;s<e.length;s++){var o=e[s];var a=(typeof o)[0];r--;t+=a=="u"?"-":(r>0?".":"")+(r=2,o)}return t}else{var c=[];for(var s=1;s<e.length;s++){var o=e[s];c.push(o===0?"not("+pop()+")":o===1?"("+pop()+" || "+pop()+")":o===2?c.pop()+" "+c.pop():i(o))}return pop()}function pop(){return c.pop().replace(/^\((.+)\)$/,"$1")}};t.rangeToString=i;const s=(e,t)=>{if(0 in e){t=n(t);var r=e[0];var i=r<0;if(i)r=-r-1;for(var o=0,a=1,c=true;;a++,o++){var u=a<e.length?(typeof e[a])[0]:"";var l;var f;if(o>=t.length||(l=t[o],(f=(typeof l)[0])=="o")){if(!c)return true;if(u=="u")return a>r&&!i;return u==""!=i}if(f=="u"){if(!c||u!="u"){return false}}else if(c){if(u==f){if(a<=r){if(l!=e[a]){return false}}else{if(i?l>e[a]:l<e[a]){return false}if(l!=e[a])c=false}}else if(u!="s"&&u!="n"){if(i||a<=r)return false;c=false;a--}else if(a<=r||f<u!=i){return false}else{c=false}}else{if(u!="s"&&u!="n"){c=false;a--}}}}var p=[];var d=p.pop.bind(p);for(var o=1;o<e.length;o++){var h=e[o];p.push(h==1?d()|d():h==2?d()&d():h?s(h,t):!d())}return!!d()};t.satisfy=s;t.stringifyHoley=(e=>{switch(typeof e){case"undefined":return"";case"object":if(Array.isArray(e)){let t="[";for(let n=0;n<e.length;n++){if(n!==0)t+=",";t+=this.stringifyHoley(e[n])}t+="]";return t}else{return JSON.stringify(e)}default:return JSON.stringify(e)}});t.parseVersionRuntimeCode=(e=>`var parseVersion = ${e.basicFunction("str",["// see webpack/lib/util/semver.js for original code",`var p=${e.supportsArrowFunction()?"p=>":"function(p)"}{return p.split(".").map((${e.supportsArrowFunction()?"p=>":"function(p)"}{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;`])}`);t.versionLtRuntimeCode=(e=>`var versionLt = ${e.basicFunction("a, b",["// see webpack/lib/util/semver.js for original code",'a=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&"u"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return"u"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return"o"==n&&"n"==f||("s"==f||"u"==n);if("o"!=n&&"u"!=n&&e!=t)return e<t;r++}'])}`);t.rangeToStringRuntimeCode=(e=>`var rangeToString = ${e.basicFunction("range",["// see webpack/lib/util/semver.js for original code",'if(1===range.length)return"*";if(0 in range){var r="",n=range[0];r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var e=1,a=1;a<range.length;a++){e--,r+="u"==(typeof(t=range[a]))[0]?"-":(e>0?".":"")+(e=2,t)}return r}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?"not("+o()+")":1===t?"("+o()+" || "+o()+")":2===t?g.pop()+" "+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,"$1")}'])}`);t.satisfyRuntimeCode=(e=>`var satisfy = ${e.basicFunction("range, version",["// see webpack/lib/util/semver.js for original code",'if(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:"";if(n>=version.length||"o"==(s=(typeof(f=version[n]))[0]))return!a||("u"==g?i>e&&!r:""==g!=r);if("u"==s){if(!a||"u"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if("s"!=g&&"n"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else"s"!=g&&"n"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();'])}`)},24568:(e,t,n)=>{"use strict";const r=n(88692);const i=n(13829);const s=n(30991);const o=n(15261);const a=n(43065);const c=n(79308);const u=n(90331);const{register:l,registerLoader:f,registerNotSerializable:p}=s;const d=new r;t.register=l;t.registerLoader=f;t.registerNotSerializable=p;t.NOT_SERIALIZABLE=s.NOT_SERIALIZABLE;t.MEASURE_START_OPERATION=r.MEASURE_START_OPERATION;t.MEASURE_END_OPERATION=r.MEASURE_END_OPERATION;t.buffersSerializer=new o([new c,new s(e=>{if(e.write){e.writeLazy=(t=>{e.write(a.createLazy(t,d))})}}),d]);t.createFileSerializer=(e=>{const t=new i(e);return new o([new c,new s(e=>{if(e.write){e.writeLazy=(t=>{e.write(a.createLazy(t,d))});e.writeSeparate=((n,r)=>{e.write(a.createLazy(n,t,r))})}}),d,t])});n(48077);f(/^webpack\/lib\//,e=>{const t=u[e.slice("webpack/lib/".length)];if(t){t()}else{console.warn(`${e} not found in internalSerializables`)}return true})},33316:(e,t,n)=>{"use strict";const r=n(15235);const i={rules:"module.rules",loaders:"module.rules or module.rules.*.use",noParse:"module.noParse",filename:"output.filename or module.rules.*.generator.filename",file:"output.filename",chunkFilename:"output.chunkFilename",chunkfilename:"output.chunkFilename",ecmaVersion:"output.ecmaVersion",ecmaversion:"output.ecmaVersion",ecma:"output.ecmaVersion",path:"output.path",pathinfo:"output.pathinfo",pathInfo:"output.pathinfo",splitChunks:"optimization.splitChunks",hashedModuleIds:'optimization.moduleIds: "hashed" (BREAKING CHANGE since webpack 5)',namedChunks:'optimization.chunkIds: "named" (BREAKING CHANGE since webpack 5)',occurrenceOrder:'optimization.chunkIds: "size" and optimization.moduleIds: "size" (BREAKING CHANGE since webpack 5)',automaticNamePrefix:"optimization.splitChunks.[cacheGroups.*].idHint (BREAKING CHANGE since webpack 5)",noEmitOnErrors:"optimization.emitOnErrors (BREAKING CHANGE since webpack 5: logic is inverted to avoid negative flags)"};const s=(e,t)=>{r(e,t,{name:"Webpack",postFormatter:(e,t)=>{const n=t.children;if(n&&n.some(e=>e.keyword==="absolutePath"&&e.dataPath===".output.filename")){return`${e}\nPlease use output.path to specify absolute path and output.filename for the file name.`}if(n&&n.some(e=>e.keyword==="pattern"&&e.dataPath===".devtool")){return`${e}\n`+"BREAKING CHANGE since webpack 5: The devtool option is more strict.\n"+"Please strictly follow the order of the keywords in the pattern."}if(t.keyword==="additionalProperties"){const n=t.params;if(Object.prototype.hasOwnProperty.call(i,n.additionalProperty)){return`${e}\nDid you mean ${i[n.additionalProperty]}?`}if(!t.dataPath){if(n.additionalProperty==="debug"){return`${e}\n`+"The 'debug' property was removed in webpack 2.0.0.\n"+"Loaders should be updated to allow passing this option via loader options in module.rules.\n"+"Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode:\n"+"plugins: [\n"+" new webpack.LoaderOptionsPlugin({\n"+" debug: true\n"+" })\n"+"]"}if(n.additionalProperty){return`${e}\n`+"For typos: please correct them.\n"+"For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.\n"+" Loaders should be updated to allow passing options via loader options in module.rules.\n"+" Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:\n"+" plugins: [\n"+" new webpack.LoaderOptionsPlugin({\n"+" // test: /\\.xxx$/, // may apply this only for some modules\n"+" options: {\n"+` ${n.additionalProperty}: …\n`+" }\n"+" })\n"+" ]"}}}return e}})};e.exports=s},21941:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);class AsyncWasmChunkLoadingRuntimeModule extends i{constructor({generateLoadBinaryCode:e,supportsStreaming:t}){super("wasm chunk loading",10);this.generateLoadBinaryCode=e;this.supportsStreaming=t}generate(){const{compilation:e,chunk:t}=this;const{outputOptions:n,runtimeTemplate:i}=e;const o=r.instantiateWasm;const a=e.getPath(JSON.stringify(n.webassemblyModuleFilename),{hash:`" + ${r.getFullHash}() + "`,hashWithLength:e=>`" + ${r.getFullHash}}().slice(0, ${e}) + "`,module:{id:'" + wasmModuleId + "',hash:`" + wasmModuleHash + "`,hashWithLength(e){return`" + wasmModuleHash.slice(0, ${e}) + "`}},runtime:t.runtime});return`${o} = ${i.basicFunction("exports, wasmModuleId, wasmModuleHash, importsObj",[`var req = ${this.generateLoadBinaryCode(a)};`,this.supportsStreaming?s.asString(["if (typeof WebAssembly.instantiateStreaming === 'function') {",s.indent(["return WebAssembly.instantiateStreaming(req, importsObj)",s.indent([`.then(${i.returningFunction("Object.assign(exports, res.instance.exports)","res")});`])]),"}"]):"// no support for streaming compilation","return req",s.indent([`.then(${i.returningFunction("x.arrayBuffer()","x")})`,`.then(${i.returningFunction("WebAssembly.instantiate(bytes, importsObj)","bytes")})`,`.then(${i.returningFunction("Object.assign(exports, res.instance.exports)","res")});`])])};`}}e.exports=AsyncWasmChunkLoadingRuntimeModule},10136:(e,t,n)=>{"use strict";const r=n(36253);const i=new Set(["webassembly"]);class AsyncWebAssemblyGenerator extends r{constructor(e){super();this.options=e}getTypes(e){return i}getSize(e,t){const n=e.originalSource();if(!n){return 0}return n.size()}generate(e,t){return e.originalSource()}}e.exports=AsyncWebAssemblyGenerator},75462:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(36253);const s=n(63272);const o=n(76150);const a=n(58159);const c=n(33081);const u=new Set(["webassembly"]);class AsyncWebAssemblyJavascriptGenerator extends i{constructor(e){super();this.filenameTemplate=e}getTypes(e){return u}getSize(e,t){return 40+e.dependencies.length*10}generate(e,t){const{runtimeTemplate:n,chunkGraph:i,moduleGraph:u,runtimeRequirements:l,runtime:f}=t;l.add(o.module);l.add(o.moduleId);l.add(o.exports);l.add(o.instantiateWasm);const p=[];const d=new Map;const h=new Map;for(const t of e.dependencies){if(t instanceof c){const e=u.getModule(t);if(!d.has(e)){d.set(e,{request:t.request,importVar:`WEBPACK_IMPORTED_MODULE_${d.size}`})}let n=h.get(t.request);if(n===undefined){n=[];h.set(t.request,n)}n.push(t)}}const m=[];const g=Array.from(d,([t,{request:r,importVar:s}])=>{if(u.isAsync(t)){m.push(s)}return n.importStatement({update:false,module:t,chunkGraph:i,request:r,originModule:e,importVar:s,runtimeRequirements:l})});const y=g.map(([e])=>e).join("");const v=g.map(([e,t])=>t).join("");const _=Array.from(h,([t,r])=>{const i=r.map(r=>{const i=u.getModule(r);const s=d.get(i).importVar;return`${JSON.stringify(r.name)}: ${n.exportFromImport({moduleGraph:u,module:i,request:t,exportName:r.name,originModule:e,asiSafe:true,isCall:false,callContext:false,defaultInterop:true,importVar:s,initFragments:p,runtime:f,runtimeRequirements:l})}`});return a.asString([`${JSON.stringify(t)}: {`,a.indent(i.join(",\n")),"}"])});const b=_.length>0?a.asString(["{",a.indent(_.join(",\n")),"}"]):undefined;const E=`${o.instantiateWasm}(${e.exportsArgument}, ${e.moduleArgument}.id, ${JSON.stringify(i.getRenderedModuleHash(e,f))}`+(b?`, ${b})`:`)`);const w=new r(`${y}${m.length>1?a.asString([`${e.moduleArgument}.exports = Promise.all([${m.join(", ")}]).then(${n.basicFunction(`[${m.join(", ")}]`,`${v}return ${E};`)})`]):m.length===1?a.asString([`${e.moduleArgument}.exports = Promise.resolve(${m[0]}).then(${n.basicFunction(m[0],`${v}return ${E};`)})`]):`${v}${e.moduleArgument}.exports = ${E}`}`);return s.addToSource(w,p,t)}}e.exports=AsyncWebAssemblyJavascriptGenerator},82422:(e,t,n)=>{"use strict";const{SyncWaterfallHook:r}=n(92960);const i=n(3080);const s=n(36253);const{tryRunOrWebpackError:o}=n(3728);const a=n(33081);const{compareModulesByIdentifier:c}=n(68673);const u=n(27503);const l=u(()=>n(10136));const f=u(()=>n(75462));const p=u(()=>n(96263));const d=new WeakMap;class AsyncWebAssemblyModulesPlugin{static getCompilationHooks(e){if(!(e instanceof i)){throw new TypeError("The 'compilation' argument must be an instance of Compilation")}let t=d.get(e);if(t===undefined){t={renderModuleContent:new r(["source","module","renderContext"])};d.set(e,t)}return t}constructor(e){this.options=e}apply(e){e.hooks.compilation.tap("AsyncWebAssemblyModulesPlugin",(e,{normalModuleFactory:t})=>{const n=AsyncWebAssemblyModulesPlugin.getCompilationHooks(e);e.dependencyFactories.set(a,t);t.hooks.createParser.for("webassembly/async").tap("AsyncWebAssemblyModulesPlugin",()=>{const e=p();return new e});t.hooks.createGenerator.for("webassembly/async").tap("AsyncWebAssemblyModulesPlugin",()=>{const t=f();const n=l();return s.byType({javascript:new t(e.outputOptions.webassemblyModuleFilename),webassembly:new n(this.options)})});e.hooks.renderManifest.tap("WebAssemblyModulesPlugin",(t,r)=>{const{moduleGraph:i,chunkGraph:s,runtimeTemplate:o}=e;const{chunk:a,outputOptions:u,dependencyTemplates:l,codeGenerationResults:f}=r;for(const e of s.getOrderedChunkModulesIterable(a,c)){if(e.type==="webassembly/async"){const r=u.webassemblyModuleFilename;t.push({render:()=>this.renderModule(e,{chunk:a,dependencyTemplates:l,runtimeTemplate:o,moduleGraph:i,chunkGraph:s,codeGenerationResults:f},n),filenameTemplate:r,pathOptions:{module:e,runtime:a.runtime,chunkGraph:s},auxiliary:true,identifier:`webassemblyAsyncModule${s.getModuleId(e)}`,hash:s.getModuleHash(e,a.runtime)})}}return t})})}renderModule(e,t,n){const{codeGenerationResults:r,chunk:i}=t;try{const s=r.getSource(e,i.runtime,"webassembly");return o(()=>n.renderModuleContent.call(s,e,t),"AsyncWebAssemblyModulesPlugin.getCompilationHooks().renderModuleContent")}catch(t){t.module=e;throw t}}}e.exports=AsyncWebAssemblyModulesPlugin},96263:(e,t,n)=>{"use strict";const r=n(98093);const{decode:i}=n(73432);const s=n(2172);const o=n(96076);const a=n(33081);const c={ignoreCodeSection:true,ignoreDataSection:true,ignoreCustomNameSection:true};class WebAssemblyParser extends s{constructor(e){super();this.hooks=Object.freeze({});this.options=e}parse(e,t){if(!Buffer.isBuffer(e)){throw new Error("WebAssemblyParser input must be a Buffer")}t.module.buildInfo.strict=true;t.module.buildMeta.exportsType="namespace";t.module.buildMeta.async=true;const n=i(e,c);const s=n.body[0];const u=[];r.traverse(s,{ModuleExport({node:e}){u.push(e.name)},ModuleImport({node:e}){const n=new a(e.module,e.name,e.descr,false);t.module.addDependency(n)}});t.module.addDependency(new o(u,false));return t}}e.exports=WebAssemblyParser},87132:(e,t,n)=>{"use strict";const r=n(81627);e.exports=class UnsupportedWebAssemblyFeatureError extends r{constructor(e){super(e);this.name="UnsupportedWebAssemblyFeatureError";this.hideStack=true;Error.captureStackTrace(this,this.constructor)}}},95982:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{compareModulesByIdentifier:o}=n(68673);const a=n(45676);const c=(e,t,n)=>{const r=n.getAllAsyncChunks();const i=[];for(const e of r){for(const n of t.getOrderedChunkModulesIterable(e,o)){if(n.type.startsWith("webassembly")){i.push(n)}}}return i};const u=(e,t,n,i,o)=>{const c=e.moduleGraph;const u=new Map;const l=[];const f=a.getUsedDependencies(c,t,n);for(const t of f){const n=t.dependency;const a=c.getModule(n);const f=n.name;const p=a&&c.getExportsInfo(a).getUsedName(f,o);const d=n.description;const h=n.onlyDirectImport;const m=t.module;const g=t.name;if(h){const t=`m${u.size}`;u.set(t,e.getModuleId(a));l.push({module:m,name:g,value:`${t}[${JSON.stringify(p)}]`})}else{const t=d.signature.params.map((e,t)=>"p"+t+e.valtype);const n=`${r.moduleCache}[${JSON.stringify(e.getModuleId(a))}]`;const o=`${n}.exports`;const c=`wasmImportedFuncCache${i.length}`;i.push(`var ${c};`);l.push({module:m,name:g,value:s.asString([(a.type.startsWith("webassembly")?`${n} ? ${o}[${JSON.stringify(p)}] : `:"")+`function(${t}) {`,s.indent([`if(${c} === undefined) ${c} = ${o};`,`return ${c}[${JSON.stringify(p)}](${t});`]),"}"])})}}let p;if(n){p=["return {",s.indent([l.map(e=>`${JSON.stringify(e.name)}: ${e.value}`).join(",\n")]),"};"]}else{const e=new Map;for(const t of l){let n=e.get(t.module);if(n===undefined){e.set(t.module,n=[])}n.push(t)}p=["return {",s.indent([Array.from(e,([e,t])=>{return s.asString([`${JSON.stringify(e)}: {`,s.indent([t.map(e=>`${JSON.stringify(e.name)}: ${e.value}`).join(",\n")]),"}"])}).join(",\n")]),"};"]}const d=JSON.stringify(e.getModuleId(t));if(u.size===1){const e=Array.from(u.values())[0];const t=`installedWasmModules[${JSON.stringify(e)}]`;const n=Array.from(u.keys())[0];return s.asString([`${d}: function() {`,s.indent([`return promiseResolve().then(function() { return ${t}; }).then(function(${n}) {`,s.indent(p),"});"]),"},"])}else if(u.size>0){const e=Array.from(u.values(),e=>`installedWasmModules[${JSON.stringify(e)}]`).join(", ");const t=Array.from(u.keys(),(e,t)=>`${e} = array[${t}]`).join(", ");return s.asString([`${d}: function() {`,s.indent([`return promiseResolve().then(function() { return Promise.all([${e}]); }).then(function(array) {`,s.indent([`var ${t};`,...p]),"});"]),"},"])}else{return s.asString([`${d}: function() {`,s.indent(p),"},"])}};class WasmChunkLoadingRuntimeModule extends i{constructor({generateLoadBinaryCode:e,supportsStreaming:t,mangleImports:n}){super("wasm chunk loading",10);this.generateLoadBinaryCode=e;this.supportsStreaming=t;this.mangleImports=n}generate(){const{compilation:e,chunk:t,mangleImports:n}=this;const{chunkGraph:i,moduleGraph:o,outputOptions:l}=e;const f=r.ensureChunkHandlers;const p=c(o,i,t);const d=[];const h=p.map(e=>{return u(i,e,this.mangleImports,d,t.runtime)});const m=i.getChunkModuleIdMap(t,e=>e.type.startsWith("webassembly"));const g=e=>n?`{ ${JSON.stringify(a.MANGLED_MODULE)}: ${e} }`:e;const y=e.getPath(JSON.stringify(l.webassemblyModuleFilename),{hash:`" + ${r.getFullHash}() + "`,hashWithLength:e=>`" + ${r.getFullHash}}().slice(0, ${e}) + "`,module:{id:'" + wasmModuleId + "',hash:`" + ${JSON.stringify(i.getChunkModuleRenderedHashMap(t,e=>e.type.startsWith("webassembly")))}[chunkId][wasmModuleId] + "`,hashWithLength(e){return`" + ${JSON.stringify(i.getChunkModuleRenderedHashMap(t,e=>e.type.startsWith("webassembly"),e))}[chunkId][wasmModuleId] + "`}},runtime:t.runtime});return s.asString(["// object to store loaded and loading wasm modules","var installedWasmModules = {};","","function promiseResolve() { return Promise.resolve(); }","",s.asString(d),"var wasmImportObjects = {",s.indent(h),"};","",`var wasmModuleMap = ${JSON.stringify(m,undefined,"\t")};`,"","// object with all WebAssembly.instance exports",`${r.wasmInstances} = {};`,"","// Fetch + compile chunk loading for webassembly",`${f}.wasm = function(chunkId, promises) {`,s.indent(["",`var wasmModules = wasmModuleMap[chunkId] || [];`,"","wasmModules.forEach(function(wasmModuleId, idx) {",s.indent(["var installedWasmModuleData = installedWasmModules[wasmModuleId];","",'// a Promise means "currently loading" or "already loaded".',"if(installedWasmModuleData)",s.indent(["promises.push(installedWasmModuleData);"]),"else {",s.indent([`var importObject = wasmImportObjects[wasmModuleId]();`,`var req = ${this.generateLoadBinaryCode(y)};`,"var promise;",this.supportsStreaming?s.asString(["if(importObject instanceof Promise && typeof WebAssembly.compileStreaming === 'function') {",s.indent(["promise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {",s.indent([`return WebAssembly.instantiate(items[0], ${g("items[1]")});`]),"});"]),"} else if(typeof WebAssembly.instantiateStreaming === 'function') {",s.indent([`promise = WebAssembly.instantiateStreaming(req, ${g("importObject")});`])]):s.asString(["if(importObject instanceof Promise) {",s.indent(["var bytesPromise = req.then(function(x) { return x.arrayBuffer(); });","promise = Promise.all([",s.indent(["bytesPromise.then(function(bytes) { return WebAssembly.compile(bytes); }),","importObject"]),"]).then(function(items) {",s.indent([`return WebAssembly.instantiate(items[0], ${g("items[1]")});`]),"});"])]),"} else {",s.indent(["var bytesPromise = req.then(function(x) { return x.arrayBuffer(); });","promise = bytesPromise.then(function(bytes) {",s.indent([`return WebAssembly.instantiate(bytes, ${g("importObject")});`]),"});"]),"}","promises.push(installedWasmModules[wasmModuleId] = promise.then(function(res) {",s.indent([`return ${r.wasmInstances}[wasmModuleId] = (res.instance || res).exports;`]),"}));"]),"}"]),"});"]),"};"])}}e.exports=WasmChunkLoadingRuntimeModule},7577:(e,t,n)=>{"use strict";const r=n(72380);const i=n(87132);class WasmFinalizeExportsPlugin{apply(e){e.hooks.compilation.tap("WasmFinalizeExportsPlugin",e=>{e.hooks.finishModules.tap("WasmFinalizeExportsPlugin",t=>{for(const n of t){if(n.type.startsWith("webassembly")===true){const t=n.buildMeta.jsIncompatibleExports;if(t===undefined){continue}for(const s of e.moduleGraph.getIncomingConnections(n)){if(s.isActive(undefined)&&s.originModule.type.startsWith("webassembly")===false){const o=e.getDependencyReferencedExports(s.dependency,undefined);for(const a of o){const o=Array.isArray(a)?a:a.name;if(o.length===0)continue;const c=o[0];if(typeof c==="object")continue;if(Object.prototype.hasOwnProperty.call(t,c)){const o=new i(`Export "${c}" with ${t[c]} can only be used for direct wasm to wasm dependencies\n`+`It's used from ${s.originModule.readableIdentifier(e.requestShortener)} at ${r(s.dependency.loc)}.`);o.module=n;e.errors.push(o)}}}}}}})})}}e.exports=WasmFinalizeExportsPlugin},93080:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const i=n(36253);const s=n(45676);const o=n(98093);const{moduleContextFromModuleAST:a}=n(67852);const{editWithAST:c,addWithAST:u}=n(226);const{decode:l}=n(73432);const f=n(30697);const p=(...e)=>{return e.reduce((e,t)=>{return n=>t(e(n))},e=>e)};const d=e=>t=>{return c(e.ast,t,{Start(e){e.remove()}})};const h=e=>{const t=[];o.traverse(e,{ModuleImport({node:e}){if(o.isGlobalType(e.descr)){t.push(e)}}});return t};const m=e=>{let t=0;o.traverse(e,{ModuleImport({node:e}){if(o.isFuncImportDescr(e.descr)){t++}}});return t};const g=e=>{const t=o.getSectionMetadata(e,"type");if(t===undefined){return o.indexLiteral(0)}return o.indexLiteral(t.vectorOfSize.value)};const y=(e,t)=>{const n=o.getSectionMetadata(e,"func");if(n===undefined){return o.indexLiteral(0+t)}const r=n.vectorOfSize.value;return o.indexLiteral(r+t)};const v=e=>{if(e.valtype[0]==="i"){return o.objectInstruction("const",e.valtype,[o.numberLiteralFromRaw(66)])}else if(e.valtype[0]==="f"){return o.objectInstruction("const",e.valtype,[o.floatLiteral(66,false,false,"66")])}else{throw new Error("unknown type: "+e.valtype)}};const _=e=>t=>{const n=e.additionalInitCode;const r=[];t=c(e.ast,t,{ModuleImport(e){if(o.isGlobalType(e.node.descr)){const t=e.node.descr;t.mutability="var";const n=[v(t),o.instruction("end")];r.push(o.global(t,n));e.remove()}},Global(e){const{node:t}=e;const[i]=t.init;if(i.id==="get_global"){t.globalType.mutability="var";const e=i.args[0];t.init=[v(t.globalType),o.instruction("end")];n.push(o.instruction("get_local",[e]),o.instruction("set_global",[o.indexLiteral(r.length)]))}r.push(t);e.remove()}});return u(e.ast,t,r)};const b=({ast:e,moduleGraph:t,module:n,externalExports:r,runtime:i})=>s=>{return c(e,s,{ModuleExport(e){const s=r.has(e.node.name);if(s){e.remove();return}const o=t.getExportsInfo(n).getUsedName(e.node.name,i);if(!o){e.remove();return}e.node.name=o}})};const E=({ast:e,usedDependencyMap:t})=>n=>{return c(e,n,{ModuleImport(e){const n=t.get(e.node.module+":"+e.node.name);if(n!==undefined){e.node.module=n.module;e.node.name=n.name}}})};const w=({ast:e,initFuncId:t,startAtFuncOffset:n,importedGlobals:r,additionalInitCode:i,nextFuncIndex:s,nextTypeIndex:a})=>c=>{const l=r.map(e=>{const t=o.identifier(`${e.module}.${e.name}`);return o.funcParam(e.descr.valtype,t)});const f=[];r.forEach((e,t)=>{const n=[o.indexLiteral(t)];const r=[o.instruction("get_local",n),o.instruction("set_global",n)];f.push(...r)});if(typeof n==="number"){f.push(o.callInstruction(o.numberLiteralFromRaw(n)))}for(const e of i){f.push(e)}f.push(o.instruction("end"));const p=[];const d=o.signature(l,p);const h=o.func(t,d,f);const m=o.typeInstruction(undefined,d);const g=o.indexInFuncSection(a);const y=o.moduleExport(t.value,o.moduleExportDescr("Func",s));return u(e,c,[h,y,g,m])};const S=(e,t,n)=>{const r=new Map;for(const i of s.getUsedDependencies(e,t,n)){const e=i.dependency;const t=e.request;const n=e.name;r.set(t+":"+n,i)}return r};const k=new Set(["webassembly"]);class WebAssemblyGenerator extends i{constructor(e){super();this.options=e}getTypes(e){return k}getSize(e,t){const n=e.originalSource();if(!n){return 0}return n.size()}generate(e,{moduleGraph:t,runtime:n}){const i=e.originalSource().source();const s=o.identifier("");const c=l(i,{ignoreDataSection:true,ignoreCodeSection:true,ignoreCustomNameSection:true});const u=a(c.body[0]);const v=h(c);const k=m(c);const D=u.getStart();const x=y(c,k);const C=g(c);const A=S(t,e,this.options.mangleImports);const T=new Set(e.dependencies.filter(e=>e instanceof f).map(e=>{const t=e;return t.exportName}));const M=[];const O=p(b({ast:c,moduleGraph:t,module:e,externalExports:T,runtime:n}),d({ast:c}),_({ast:c,additionalInitCode:M}),E({ast:c,usedDependencyMap:A}),w({ast:c,initFuncId:s,importedGlobals:v,additionalInitCode:M,startAtFuncOffset:D,nextFuncIndex:x,nextTypeIndex:C}));const F=O(i);const I=Buffer.from(F);return new r(I)}}e.exports=WebAssemblyGenerator},39596:(e,t,n)=>{"use strict";const r=n(81627);const i=(e,t,n,r)=>{const i=[{head:e,message:e.readableIdentifier(r)}];const s=new Set;const o=new Set;const a=new Set;for(const e of i){const{head:c,message:u}=e;let l=true;const f=new Set;for(const e of t.getIncomingConnections(c)){const t=e.originModule;if(t){if(!n.getModuleChunks(t).some(e=>e.canBeInitial()))continue;l=false;if(f.has(t))continue;f.add(t);const s=t.readableIdentifier(r);const c=e.explanation?` (${e.explanation})`:"";const p=`${s}${c} --\x3e ${u}`;if(a.has(t)){o.add(`... --\x3e ${p}`);continue}a.add(t);i.push({head:t,message:p})}else{l=false;const t=e.explanation?`(${e.explanation}) --\x3e ${u}`:u;s.add(t)}}if(l){s.add(u)}}for(const e of o){s.add(e)}return Array.from(s)};e.exports=class WebAssemblyInInitialChunkError extends r{constructor(e,t,n,r){const s=i(e,t,n,r);const o=`WebAssembly module is included in initial chunk.\nThis is not allowed, because WebAssembly download and compilation must happen asynchronous.\nAdd an async split point (i. e. import()) somewhere between your entrypoint and the WebAssembly module:\n${s.map(e=>`* ${e}`).join("\n")}`;super(o);this.name="WebAssemblyInInitialChunkError";this.hideStack=true;this.module=e;Error.captureStackTrace(this,this.constructor)}}},31267:(e,t,n)=>{"use strict";const{RawSource:r}=n(48135);const{UsageState:i}=n(76632);const s=n(36253);const o=n(63272);const a=n(76150);const c=n(58159);const u=n(79983);const l=n(30697);const f=n(33081);const p=new Set(["webassembly"]);class WebAssemblyJavascriptGenerator extends s{getTypes(e){return p}getSize(e,t){return 95+e.dependencies.length*5}generate(e,t){const{runtimeTemplate:n,moduleGraph:s,chunkGraph:p,runtimeRequirements:d,runtime:h}=t;const m=[];const g=s.getExportsInfo(e);let y=false;const v=new Map;const _=[];let b=0;for(const t of e.dependencies){const r=t&&t instanceof u?t:undefined;if(s.getModule(t)){let i=v.get(s.getModule(t));if(i===undefined){v.set(s.getModule(t),i={importVar:`m${b}`,index:b,request:r&&r.userRequest||undefined,names:new Set,reexports:[]});b++}if(t instanceof f){i.names.add(t.name);if(t.description.type==="GlobalType"){const r=t.name;const o=s.getModule(t);if(o){const a=s.getExportsInfo(o).getUsedName(r,h);if(a){_.push(n.exportFromImport({moduleGraph:s,module:o,request:t.request,importVar:i.importVar,originModule:e,exportName:t.name,asiSafe:true,isCall:false,callContext:null,defaultInterop:true,initFragments:m,runtime:h,runtimeRequirements:d}))}}}}if(t instanceof l){i.names.add(t.name);const r=s.getExportsInfo(e).getUsedName(t.exportName,h);if(r){d.add(a.exports);const o=`${e.exportsArgument}[${JSON.stringify(r)}]`;const u=c.asString([`${o} = ${n.exportFromImport({moduleGraph:s,module:s.getModule(t),request:t.request,importVar:i.importVar,originModule:e,exportName:t.name,asiSafe:true,isCall:false,callContext:null,defaultInterop:true,initFragments:m,runtime:h,runtimeRequirements:d})};`,`if(WebAssembly.Global) ${o} = `+`new WebAssembly.Global({ value: ${JSON.stringify(t.valueType)} }, ${o});`]);i.reexports.push(u);y=true}}}}const E=c.asString(Array.from(v,([e,{importVar:t,request:r,reexports:i}])=>{const s=n.importStatement({module:e,chunkGraph:p,request:r,importVar:t,originModule:e,runtimeRequirements:d});return s[0]+s[1]+i.join("\n")}));const w=g.otherExportsInfo.getUsed(h)===i.Unused&&!y;d.add(a.module);d.add(a.moduleId);d.add(a.wasmInstances);if(g.otherExportsInfo.getUsed(h)!==i.Unused){d.add(a.makeNamespaceObject);d.add(a.exports)}if(!w){d.add(a.exports)}const S=new r(['"use strict";',"// Instantiate WebAssembly module",`var wasmExports = ${a.wasmInstances}[${e.moduleArgument}.id];`,g.otherExportsInfo.getUsed(h)!==i.Unused?`${a.makeNamespaceObject}(${e.exportsArgument});`:"","// export exports from WebAssembly module",w?`${e.moduleArgument}.exports = wasmExports;`:"for(var name in wasmExports) "+`if(name) `+`${e.exportsArgument}[name] = wasmExports[name];`,"// exec imports from WebAssembly module (for esm order)",E,"","// exec wasm module",`wasmExports[""](${_.join(", ")})`].join("\n"));return o.addToSource(S,m,t)}}e.exports=WebAssemblyJavascriptGenerator},63576:(e,t,n)=>{"use strict";const r=n(36253);const i=n(30697);const s=n(33081);const{compareModulesByIdentifier:o}=n(68673);const a=n(27503);const c=n(39596);const u=a(()=>n(93080));const l=a(()=>n(31267));const f=a(()=>n(87307));class WebAssemblyModulesPlugin{constructor(e){this.options=e}apply(e){e.hooks.compilation.tap("WebAssemblyModulesPlugin",(e,{normalModuleFactory:t})=>{e.dependencyFactories.set(s,t);e.dependencyFactories.set(i,t);t.hooks.createParser.for("webassembly/sync").tap("WebAssemblyModulesPlugin",()=>{const e=f();return new e});t.hooks.createGenerator.for("webassembly/sync").tap("WebAssemblyModulesPlugin",()=>{const e=l();const t=u();return r.byType({javascript:new e,webassembly:new t(this.options)})});e.hooks.renderManifest.tap("WebAssemblyModulesPlugin",(t,n)=>{const{chunkGraph:r}=e;const{chunk:i,outputOptions:s,codeGenerationResults:a}=n;for(const e of r.getOrderedChunkModulesIterable(i,o)){if(e.type==="webassembly/sync"){const n=s.webassemblyModuleFilename;t.push({render:()=>a.getSource(e,i.runtime,"webassembly"),filenameTemplate:n,pathOptions:{module:e,runtime:i.runtime,chunkGraph:r},auxiliary:true,identifier:`webassemblyModule${r.getModuleId(e)}`,hash:r.getModuleHash(e,i.runtime)})}}return t});e.hooks.afterChunks.tap("WebAssemblyModulesPlugin",()=>{const t=e.chunkGraph;const n=new Set;for(const r of e.chunks){if(r.canBeInitial()){for(const e of t.getChunkModulesIterable(r)){if(e.type==="webassembly/sync"){n.add(e)}}}}for(const t of n){e.errors.push(new c(t,e.moduleGraph,e.chunkGraph,e.requestShortener))}})})}}e.exports=WebAssemblyModulesPlugin},87307:(e,t,n)=>{"use strict";const r=n(98093);const{moduleContextFromModuleAST:i}=n(67852);const{decode:s}=n(73432);const o=n(2172);const a=n(96076);const c=n(30697);const u=n(33081);const l=new Set(["i32","f32","f64"]);const f=e=>{for(const t of e.params){if(!l.has(t.valtype)){return`${t.valtype} as parameter`}}for(const t of e.results){if(!l.has(t))return`${t} as result`}return null};const p=e=>{for(const t of e.args){if(!l.has(t)){return`${t} as parameter`}}for(const t of e.result){if(!l.has(t))return`${t} as result`}return null};const d={ignoreCodeSection:true,ignoreDataSection:true,ignoreCustomNameSection:true};class WebAssemblyParser extends o{constructor(e){super();this.hooks=Object.freeze({});this.options=e}parse(e,t){if(!Buffer.isBuffer(e)){throw new Error("WebAssemblyParser input must be a Buffer")}t.module.buildInfo.strict=true;t.module.buildMeta.exportsType="namespace";const n=s(e,d);const o=n.body[0];const h=i(o);const m=[];let g=t.module.buildMeta.jsIncompatibleExports=undefined;const y=[];r.traverse(o,{ModuleExport({node:e}){const n=e.descr;if(n.exportType==="Func"){const r=n.id.value;const i=h.getFunction(r);const s=p(i);if(s){if(g===undefined){g=t.module.buildMeta.jsIncompatibleExports={}}g[e.name]=s}}m.push(e.name);if(e.descr&&e.descr.exportType==="Global"){const n=y[e.descr.id.value];if(n){const r=new c(e.name,n.module,n.name,n.descr.valtype);t.module.addDependency(r)}}},Global({node:e}){const t=e.init[0];let n=null;if(t.id==="get_global"){const e=t.args[0].value;if(e<y.length){n=y[e]}}y.push(n)},ModuleImport({node:e}){let n=false;if(r.isMemory(e.descr)===true){n="Memory"}else if(r.isTable(e.descr)===true){n="Table"}else if(r.isFuncImportDescr(e.descr)===true){const t=f(e.descr.signature);if(t){n=`Non-JS-compatible Func Signature (${t})`}}else if(r.isGlobalType(e.descr)===true){const t=e.descr.valtype;if(!l.has(t)){n=`Non-JS-compatible Global Type (${t})`}}const i=new u(e.module,e.name,e.descr,n);t.module.addDependency(i);if(r.isGlobalType(e.descr)){y.push(e)}}});t.module.addDependency(new a(m,false));return t}}e.exports=WebAssemblyParser},45676:(e,t,n)=>{"use strict";const r=n(58159);const i=n(33081);const s="a";const o=(e,t,n)=>{const o=[];let a=0;for(const c of t.dependencies){if(c instanceof i){if(c.description.type==="GlobalType"||e.getModule(c)===null){continue}const t=c.name;if(n){o.push({dependency:c,name:r.numberToIdentifier(a++),module:s})}else{o.push({dependency:c,name:t,module:c.request})}}}return o};t.getUsedDependencies=o;t.MANGLED_MODULE=s},52687:(e,t,n)=>{"use strict";const r=n(76150);const i=n(21941);class FetchCompileAsyncWasmPlugin{apply(e){e.hooks.thisCompilation.tap("FetchCompileAsyncWasmPlugin",e=>{const t=e=>`fetch(${r.publicPath} + ${e})`;e.hooks.runtimeRequirementInTree.for(r.instantiateWasm).tap("FetchCompileAsyncWasmPlugin",(n,s)=>{const o=e.chunkGraph;if(!o.hasModuleInGraph(n,e=>e.type==="webassembly/async")){return}s.add(r.publicPath);e.addRuntimeModule(n,new i({generateLoadBinaryCode:t,supportsStreaming:true}))})})}}e.exports=FetchCompileAsyncWasmPlugin},71100:(e,t,n)=>{"use strict";const r=n(76150);const i=n(95982);class FetchCompileWasmPlugin{constructor(e){this.options=e||{}}apply(e){e.hooks.thisCompilation.tap("FetchCompileWasmPlugin",e=>{const t=e=>`fetch(${r.publicPath} + ${e})`;e.hooks.runtimeRequirementInTree.for(r.ensureChunkHandlers).tap("FetchCompileWasmPlugin",(n,s)=>{const o=e.chunkGraph;if(!o.hasModuleInGraph(n,e=>e.type==="webassembly/sync")){return}s.add(r.moduleCache);s.add(r.publicPath);e.addRuntimeModule(n,new i({generateLoadBinaryCode:t,supportsStreaming:true,mangleImports:this.options.mangleImports}))})})}}e.exports=FetchCompileWasmPlugin},4038:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const o=n(18161).chunkHasJs;const a=n(87274);const{getEntryInfo:c,needEntryDeferringCode:u}=n(7091);class JsonpChunkLoadingRuntimeModule extends i{constructor(e,t,n){super("jsonp chunk loading",10);this.runtimeRequirements=e;this.linkPreload=t;this.linkPrefetch=n}generate(){const{compilation:e,chunk:t,linkPreload:i,linkPrefetch:l}=this;const{runtimeTemplate:f,chunkGraph:p,outputOptions:d}=e;const h=r.ensureChunkHandlers;const m=this.runtimeRequirements.has(r.ensureChunkHandlers);const g=u(e,t);const y=this.runtimeRequirements.has(r.hmrDownloadUpdateHandlers);const v=this.runtimeRequirements.has(r.hmrDownloadManifest);const _=this.runtimeRequirements.has(r.prefetchChunkHandlers);const b=this.runtimeRequirements.has(r.preloadChunkHandlers);const E=c(p,t,e=>o(e,p));const w=`${d.globalObject}[${JSON.stringify(d.jsonpFunction)}]`;const S=a(p.getChunkConditionMap(t,o));return s.asString(["// object to store loaded and loading chunks","// undefined = chunk not loaded, null = chunk preloaded/prefetched","// Promise = chunk loading, 0 = chunk loaded","var installedChunks = {",s.indent(t.ids.map(e=>`${JSON.stringify(e)}: 0`).join(",\n")),"};","",g?s.asString(["var deferredModules = [",s.indent(E.map(e=>JSON.stringify(e)).join(",\n")),"];"]):"",m?s.asString([`${h}.j = ${f.basicFunction("chunkId, promises",S!==false?s.indent(["// JSONP chunk loading for javascript",`var installedChunkData = ${r.hasOwnProperty}(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;`,'if(installedChunkData !== 0) { // 0 means "already installed".',s.indent(["",'// a Promise means "currently loading".',"if(installedChunkData) {",s.indent(["promises.push(installedChunkData[2]);"]),"} else {",s.indent([S===true?"if(true) { // all chunks have JS":`if(${S("chunkId")}) {`,s.indent(["// setup Promise in chunk cache",`var promise = new Promise(${f.basicFunction("resolve, reject",[`installedChunkData = installedChunks[chunkId] = [resolve, reject];`])});`,"promises.push(installedChunkData[2] = promise);","","// start chunk loading",`var url = ${r.publicPath} + ${r.getChunkScriptFilename}(chunkId);`,"// create error before stack unwound to get useful stacktrace later","var error = new Error();",`var loadingEnded = ${f.basicFunction("event",[`if(${r.hasOwnProperty}(installedChunks, chunkId)) {`,s.indent(["installedChunkData = installedChunks[chunkId];","if(installedChunkData !== 0) installedChunks[chunkId] = undefined;","if(installedChunkData) {",s.indent(["var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realSrc = event && event.target && event.target.src;","error.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';","error.name = 'ChunkLoadError';","error.type = errorType;","error.request = realSrc;","installedChunkData[1](error);"]),"}"]),"}"])};`,`${r.loadScript}(url, loadingEnded, "chunk-" + chunkId);`]),"} else installedChunks[chunkId] = 0;"]),"}"]),"}"]):s.indent(["installedChunks[chunkId] = 0;"]))};`]):"// no chunk on demand loading","",_&&S!==false?`${r.prefetchChunkHandlers}.j = ${f.basicFunction("chunkId",[`if((!${r.hasOwnProperty}(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && ${S===true?"true":S("chunkId")}) {`,s.indent(["installedChunks[chunkId] = null;",l.call("",t),"document.head.appendChild(link);"]),"}"])};`:"// no prefetching","",b&&S!==false?`${r.preloadChunkHandlers}.j = ${f.basicFunction("chunkId",[`if((!${r.hasOwnProperty}(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && ${S===true?"true":S("chunkId")}) {`,s.indent(["installedChunks[chunkId] = null;",i.call("",t),"document.head.appendChild(link);"]),"}"])};`:"// no preloaded","",y?s.asString(["var currentUpdatedModulesList;","var waitingUpdateResolves = {};","function loadUpdateChunk(chunkId) {",s.indent([`return new Promise(${f.basicFunction("resolve, reject",["waitingUpdateResolves[chunkId] = resolve;","// start update chunk loading",`var url = ${r.publicPath} + ${r.getChunkUpdateScriptFilename}(chunkId);`,"// create error before stack unwound to get useful stacktrace later","var error = new Error();",`var loadingEnded = ${f.basicFunction("event",["if(waitingUpdateResolves[chunkId]) {",s.indent(["waitingUpdateResolves[chunkId] = undefined","var errorType = event && (event.type === 'load' ? 'missing' : event.type);","var realSrc = event && event.target && event.target.src;","error.message = 'Loading hot update chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';","error.name = 'ChunkLoadError';","error.type = errorType;","error.request = realSrc;","reject(error);"]),"}"])};`,`${r.loadScript}(url, loadingEnded);`])});`]),"}","",`${d.globalObject}[${JSON.stringify(d.hotUpdateFunction)}] = ${f.basicFunction("chunkId, moreModules, runtime",["for(var moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent(["currentUpdate[moduleId] = moreModules[moduleId];","if(currentUpdatedModulesList) currentUpdatedModulesList.push(moduleId);"]),"}"]),"}","if(runtime) currentUpdateRuntime.push(runtime);","if(waitingUpdateResolves[chunkId]) {",s.indent(["waitingUpdateResolves[chunkId]();","waitingUpdateResolves[chunkId] = undefined;"]),"}"])};`,"",s.getFunctionContent(n(22215)).replace(/\$key\$/g,"jsonp").replace(/\$installedChunks\$/g,"installedChunks").replace(/\$loadUpdateChunk\$/g,"loadUpdateChunk").replace(/\$moduleCache\$/g,r.moduleCache).replace(/\$moduleFactories\$/g,r.moduleFactories).replace(/\$ensureChunkHandlers\$/g,r.ensureChunkHandlers).replace(/\$hasOwnProperty\$/g,r.hasOwnProperty).replace(/\$hmrModuleData\$/g,r.hmrModuleData).replace(/\$hmrDownloadUpdateHandlers\$/g,r.hmrDownloadUpdateHandlers).replace(/\$hmrInvalidateModuleHandlers\$/g,r.hmrInvalidateModuleHandlers)]):"// no HMR","",v?s.asString([`${r.hmrDownloadManifest} = ${f.basicFunction("",['if (typeof fetch === "undefined") throw new Error("No browser support: need fetch API");',`return fetch(${r.publicPath} + ${r.getUpdateManifestFilename}()).then(${f.basicFunction("response",["if(response.status === 404) return; // no update available",'if(!response.ok) throw new Error("Failed to fetch update manifest " + response.statusText);',"return response.json();"])});`])};`]):"// no HMR manifest","",g?s.asString([`var checkDeferredModules = ${f.basicFunction("","")};`,"function checkDeferredModulesImpl() {",s.indent(["var result;","for(var i = 0; i < deferredModules.length; i++) {",s.indent(["var deferredModule = deferredModules[i];","var fulfilled = true;","for(var j = 1; j < deferredModule.length; j++) {",s.indent(["var depId = deferredModule[j];","if(installedChunks[depId] !== 0) fulfilled = false;"]),"}","if(fulfilled) {",s.indent(["deferredModules.splice(i--, 1);","result = "+"__webpack_require__("+`${r.entryModuleId} = deferredModule[0]);`]),"}"]),"}","if(deferredModules.length === 0) {",s.indent([`${r.startup}();`,`${r.startup} = ${f.basicFunction("","")}`]),"}","return result;"]),"}",`${r.startup} = ${f.basicFunction("",["// reset startup function so it can be called again when more startup code is added",`${r.startup} = ${f.basicFunction("","")}`,"jsonpArray = jsonpArray.slice();","for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);","return (checkDeferredModules = checkDeferredModulesImpl)();"])};`]):"// no deferred startup","",g||m?s.asString(["// install a JSONP callback for chunk loading","function webpackJsonpCallback(data) {",s.indent(["var chunkIds = data[0];","var moreModules = data[1];",g?"var executeModules = data[2];":"","var runtime = data[3];",'// add "moreModules" to the modules object,','// then flag all "chunkIds" as loaded and fire callback',"var moduleId, chunkId, i = 0, resolves = [];","for(;i < chunkIds.length; i++) {",s.indent(["chunkId = chunkIds[i];",`if(${r.hasOwnProperty}(installedChunks, chunkId) && installedChunks[chunkId]) {`,s.indent("resolves.push(installedChunks[chunkId][0]);"),"}","installedChunks[chunkId] = 0;"]),"}","for(moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent(`${r.moduleFactories}[moduleId] = moreModules[moduleId];`),"}"]),"}","if(runtime) runtime(__webpack_require__);","if(parentJsonpFunction) parentJsonpFunction(data);","while(resolves.length) {",s.indent("resolves.shift()();"),"}",g?s.asString(["","// add entry modules from loaded chunk to deferred list","if(executeModules) deferredModules.push.apply(deferredModules, executeModules);","","// run deferred modules when all chunks ready","return checkDeferredModules();"]):""]),"};","",`var jsonpArray = ${w} = ${w} || [];`,"var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);","jsonpArray.push = webpackJsonpCallback;","var parentJsonpFunction = oldJsonpFunction;"]):"// no jsonp function"])}}e.exports=JsonpChunkLoadingRuntimeModule},7091:(e,t)=>{"use strict";const n=e=>{const t=new Set([e]);const n=new Set;for(const e of t){for(const t of e.chunks){n.add(t)}for(const n of e.parentsIterable){t.add(n)}}return n};t.getEntryInfo=((e,t,r)=>{return Array.from(e.getChunkEntryModulesWithChunkGroupIterable(t)).map(([i,s])=>{const o=[e.getModuleId(i)];for(const e of n(s)){if(!r(e)&&!e.hasRuntime())continue;const n=e.id;if(n===t.id)continue;o.push(n)}return o})});t.needEntryDeferringCode=((e,t)=>{for(const n of e.entrypoints.values()){if(n.getRuntimeChunk()===t){if(n.chunks.some(e=>e!==t))return true}}return false})},58421:(e,t,n)=>{"use strict";const{SyncWaterfallHook:r}=n(92960);const{ConcatSource:i}=n(48135);const s=n(3080);const o=n(22352);const a=n(76150);const c=n(58159);const u=n(18161);const l=n(18161).chunkHasJs;const f=n(4038);const{getEntryInfo:p,needEntryDeferringCode:d}=n(7091);const h=new WeakMap;class JsonpTemplatePlugin{static getCompilationHooks(e){if(!(e instanceof s)){throw new TypeError("The 'compilation' argument must be an instance of Compilation")}let t=h.get(e);if(t===undefined){t={linkPreload:new r(["source","chunk","hash"]),linkPrefetch:new r(["source","chunk","hash"])};h.set(e,t)}return t}apply(e){e.hooks.thisCompilation.tap("JsonpTemplatePlugin",e=>{const t=u.getCompilationHooks(e);t.renderChunk.tap("JsonpTemplatePlugin",(e,t)=>{const{chunk:n,chunkGraph:r,runtimeTemplate:s}=t;const a=n instanceof o?n:null;const u=s.outputOptions.globalObject;const f=new i;const d=r.getChunkRuntimeModulesInOrder(n);const h=d.length>0&&c.renderChunkRuntimeModules(d,t);if(a){const t=s.outputOptions.hotUpdateFunction;f.add(`${u}[${JSON.stringify(t)}](`);f.add(`${JSON.stringify(n.id)},`);f.add(e);if(h){f.add(",\n");f.add(h)}f.add(")")}else{const t=s.outputOptions.jsonpFunction;f.add(`(${u}[${JSON.stringify(t)}] = ${u}[${JSON.stringify(t)}] || []).push([`);f.add(`${JSON.stringify(n.ids)},`);f.add(e);const i=p(r,n,e=>l(e,r));const o=i.length>0&&`,${JSON.stringify(i)}`;if(o||h){f.add(o||",0")}if(h){f.add(",\n");f.add(h)}f.add("])")}return f});t.chunkHash.tap("JsonpTemplatePlugin",(e,t,{chunkGraph:n,runtimeTemplate:r})=>{if(e.hasRuntime())return;t.update("JsonpTemplatePlugin");t.update("1");t.update(JSON.stringify(p(n,e,e=>l(e,n))));t.update(`${r.outputOptions.jsonpFunction}`);t.update(`${r.outputOptions.hotUpdateFunction}`);t.update(`${r.outputOptions.globalObject}`)});const{linkPreload:n,linkPrefetch:r}=JsonpTemplatePlugin.getCompilationHooks(e);n.tap("JsonpTemplatePlugin",(t,n,r)=>{const{crossOriginLoading:i,scriptType:s}=e.outputOptions;return c.asString(["var link = document.createElement('link');",s?`link.type = ${JSON.stringify(s)};`:"","link.charset = 'utf-8';",`if (${a.scriptNonce}) {`,c.indent(`link.setAttribute("nonce", ${a.scriptNonce});`),"}",'link.rel = "preload";','link.as = "script";',`link.href = ${a.publicPath} + ${a.getChunkScriptFilename}(chunkId);`,i?c.asString(["if (link.href.indexOf(window.location.origin + '/') !== 0) {",c.indent(`link.crossOrigin = ${JSON.stringify(i)};`),"}"]):""])});r.tap("JsonpTemplatePlugin",(t,n,r)=>{const{crossOriginLoading:i}=e.outputOptions;return c.asString(["var link = document.createElement('link');",i?`link.crossOrigin = ${JSON.stringify(i)};`:"",`if (${a.scriptNonce}) {`,c.indent(`link.setAttribute("nonce", ${a.scriptNonce});`),"}",'link.rel = "prefetch";','link.as = "script";',`link.href = ${a.publicPath} + ${a.getChunkScriptFilename}(chunkId);`])});const s=new WeakSet;const h=(t,i)=>{if(s.has(t))return;s.add(t);i.add(a.moduleFactoriesAddOnly);i.add(a.hasOwnProperty);e.addRuntimeModule(t,new f(i,n,r))};a.ensureChunkHandlers;a.hmrDownloadUpdateHandlers;e.hooks.runtimeRequirementInTree.for(a.ensureChunkHandlers).tap("JsonpTemplatePlugin",h);e.hooks.runtimeRequirementInTree.for(a.hmrDownloadUpdateHandlers).tap("JsonpTemplatePlugin",h);e.hooks.runtimeRequirementInTree.for(a.hmrDownloadManifest).tap("JsonpTemplatePlugin",h);e.hooks.runtimeRequirementInTree.for(a.ensureChunkHandlers).tap("JsonpTemplatePlugin",(e,t)=>{t.add(a.publicPath);t.add(a.loadScript);t.add(a.getChunkScriptFilename)});e.hooks.runtimeRequirementInTree.for(a.hmrDownloadUpdateHandlers).tap("JsonpTemplatePlugin",(e,t)=>{t.add(a.publicPath);t.add(a.loadScript);t.add(a.getChunkUpdateScriptFilename);t.add(a.moduleCache);t.add(a.hmrModuleData);t.add(a.moduleFactoriesAddOnly)});e.hooks.runtimeRequirementInTree.for(a.hmrDownloadManifest).tap("JsonpTemplatePlugin",(e,t)=>{t.add(a.publicPath);t.add(a.getUpdateManifestFilename)});e.hooks.additionalTreeRuntimeRequirements.tap("JsonpTemplatePlugin",(t,n)=>{const r=d(e,t);if(r){n.add(a.startup);n.add(a.startupNoDefault);h(t,n)}if(r){n.add(a.require)}})})}}e.exports=JsonpTemplatePlugin},2982:(e,t,n)=>{"use strict";const r=n(76518);const i=n(63076);const s=n(63433);const o=n(81721);const{applyWebpackOptionsDefaults:a,applyWebpackOptionsBaseDefaults:c}=n(54411);const{getNormalizedWebpackOptions:u}=n(96590);const l=n(93632);const f=n(33316);const p=e=>{const t=e.map(e=>d(e));const n=new s(t);for(const e of t){if(e.options.dependencies){n.setDependencies(e,e.options.dependencies)}}return n};const d=e=>{const t=u(e);c(t);const n=new i(t.context);n.options=t;new l({infrastructureLogging:t.infrastructureLogging}).apply(n);if(Array.isArray(t.plugins)){for(const e of t.plugins){if(typeof e==="function"){e.call(n,n)}else{e.apply(n)}}}a(t);n.hooks.environment.call();n.hooks.afterEnvironment.call();(new o).process(t,n);n.hooks.initialize.call();return n};const h=(e,t)=>{f(r,e);let n;let i=false;let s;if(Array.isArray(e)){n=p(e);i=e.some(e=>e.watch);s=e.map(e=>e.watchOptions||{})}else{n=d(e);i=e.watch;s=e.watchOptions||{}}if(t){if(i){n.watch(s,t)}else{n.run((e,r)=>{n.close(n=>{t(e||n,r)})})}}return n};e.exports=h},92208:(e,t,n)=>{"use strict";const r=n(76150);const i=n(66804);const s=n(58159);const{getChunkFilenameTemplate:o}=n(18161);const{getUndoPath:a}=n(49197);class ImportScriptsChunkLoadingRuntimeModule extends i{constructor(e){super("importScripts chunk loading",10);this.runtimeRequirements=e}generate(){const{chunk:e,compilation:{outputOptions:{globalObject:t,chunkCallbackName:i,hotUpdateFunction:c}}}=this;const u=r.ensureChunkHandlers;const l=this.runtimeRequirements.has(r.ensureChunkHandlers);const f=this.runtimeRequirements.has(r.hmrDownloadUpdateHandlers);const p=this.runtimeRequirements.has(r.hmrDownloadManifest);const d=this.compilation.getPath(o(e,this.compilation.outputOptions),{chunk:e,contentHashType:"javascript"});const h=a(d,false);return s.asString(["// object to store loaded chunks",'// "1" means "already loaded"',"var installedChunks = {",s.indent(e.ids.map(e=>`${JSON.stringify(e)}: 1`).join(",\n")),"};","",l?s.asString(["// importScripts chunk loading",`${u}.i = function(chunkId, promises) {`,s.indent(['// "1" is the signal for "already loaded"',"if(!installedChunks[chunkId]) {",s.indent([`${t}[${JSON.stringify(i)}] = function webpackChunkCallback(chunkIds, moreModules, runtime) {`,s.indent(["for(var moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent(`${r.moduleFactories}[moduleId] = moreModules[moduleId];`),"}"]),"}","if(runtime) runtime(__webpack_require__);","while(chunkIds.length)",s.indent("installedChunks[chunkIds.pop()] = 1;")]),"};",`importScripts(${JSON.stringify(h)} + ${r.getChunkScriptFilename}(chunkId));`]),"}"]),"};"]):"// no chunk loading","",f?s.asString(["function loadUpdateChunk(chunkId, updatedModulesList) {",s.indent(["var success = false;",`${t}[${JSON.stringify(c)}] = function(moreModules, runtime) {`,s.indent(["for(var moduleId in moreModules) {",s.indent([`if(${r.hasOwnProperty}(moreModules, moduleId)) {`,s.indent(["currentUpdate[moduleId] = moreModules[moduleId];","if(updatedModulesList) updatedModulesList.push(moduleId);"]),"}"]),"}","if(runtime) currentUpdateRuntime.push(runtime);","success = true;"]),"};","// start update chunk loading",`importScripts(${JSON.stringify(h)} + ${r.getChunkUpdateScriptFilename}(chunkId));`,'if(!success) throw new Error("Loading update chunk failed for unknown reason");']),"}","",s.getFunctionContent(n(22215)).replace(/\$key\$/g,"importScrips").replace(/\$installedChunks\$/g,"installedChunks").replace(/\$loadUpdateChunk\$/g,"loadUpdateChunk").replace(/\$moduleCache\$/g,r.moduleCache).replace(/\$moduleFactories\$/g,r.moduleFactories).replace(/\$ensureChunkHandlers\$/g,r.ensureChunkHandlers).replace(/\$hasOwnProperty\$/g,r.hasOwnProperty).replace(/\$hmrModuleData\$/g,r.hmrModuleData).replace(/\$hmrDownloadUpdateHandlers\$/g,r.hmrDownloadUpdateHandlers).replace(/\$hmrInvalidateModuleHandlers\$/g,r.hmrInvalidateModuleHandlers)]):"// no HMR","",p?s.asString([`${r.hmrDownloadManifest} = function() {`,s.indent(['if (typeof fetch === "undefined") throw new Error("No browser support: need fetch API");',`return fetch(${r.publicPath} + ${r.getUpdateManifestFilename}()).then(function(response) {`,s.indent(["if(response.status === 404) return; // no update available",'if(!response.ok) throw new Error("Failed to fetch update manifest " + response.statusText);',"return response.json();"]),"});"]),"};"]):"// no HMR manifest"])}}e.exports=ImportScriptsChunkLoadingRuntimeModule},67439:(e,t,n)=>{"use strict";const{ConcatSource:r}=n(48135);const i=n(22352);const s=n(76150);const o=n(58159);const a=n(18161);const c=n(64997);const u=n(92208);class WebWorkerTemplatePlugin{apply(e){new c({asyncChunkLoading:true}).apply(e);e.hooks.thisCompilation.tap("WebWorkerTemplatePlugin",e=>{const t=a.getCompilationHooks(e);t.renderChunk.tap("WebWorkerTemplatePlugin",(e,t)=>{const{chunk:n,chunkGraph:s,runtimeTemplate:a}=t;const c=n instanceof i?n:null;const u=a.outputOptions.globalObject;const l=new r;const f=s.getChunkRuntimeModulesInOrder(n);const p=f.length>0&&o.renderChunkRuntimeModules(f,t);if(c){const t=a.outputOptions.hotUpdateFunction;l.add(`${u}[${JSON.stringify(t)}](`);l.add(e);if(p){l.add(",\n");l.add(p)}l.add(")")}else{const t=a.outputOptions.chunkCallbackName;l.add(`${u}[${JSON.stringify(t)}](`);l.add(`${JSON.stringify(n.ids)},`);l.add(e);if(p){l.add(",\n");l.add(p)}l.add(")")}return l});t.chunkHash.tap("WebWorkerTemplatePlugin",(e,t,{runtimeTemplate:n})=>{if(e.hasRuntime())return;t.update("webworker");t.update("1");t.update(`${n.outputOptions.chunkCallbackName}`);t.update(`${n.outputOptions.hotUpdateFunction}`);t.update(`${n.outputOptions.globalObject}`)});const n=new WeakSet;const c=(t,r)=>{if(n.has(t))return;n.add(t);r.add(s.moduleFactoriesAddOnly);r.add(s.hasOwnProperty);e.addRuntimeModule(t,new u(r))};e.hooks.runtimeRequirementInTree.for(s.ensureChunkHandlers).tap("WebWorkerTemplatePlugin",c);e.hooks.runtimeRequirementInTree.for(s.hmrDownloadUpdateHandlers).tap("WebWorkerTemplatePlugin",c);e.hooks.runtimeRequirementInTree.for(s.hmrDownloadManifest).tap("WebWorkerTemplatePlugin",c);e.hooks.runtimeRequirementInTree.for(s.ensureChunkHandlers).tap("WebWorkerTemplatePlugin",(e,t)=>{t.add(s.publicPath);t.add(s.getChunkScriptFilename)});e.hooks.runtimeRequirementInTree.for(s.hmrDownloadUpdateHandlers).tap("WebWorkerTemplatePlugin",(e,t)=>{t.add(s.publicPath);t.add(s.getChunkUpdateScriptFilename);t.add(s.moduleCache);t.add(s.hmrModuleData);t.add(s.moduleFactoriesAddOnly)});e.hooks.runtimeRequirementInTree.for(s.hmrDownloadManifest).tap("WebWorkerTemplatePlugin",(e,t)=>{t.add(s.publicPath);t.add(s.getUpdateManifestFilename)})})}}e.exports=WebWorkerTemplatePlugin},22170:(e,t,n)=>{"use strict";const r=n(73154);const i=n(43040);e.exports=class AliasFieldPlugin{constructor(e,t,n){this.source=e;this.field=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasFieldPlugin",(n,s,o)=>{if(!n.descriptionFileData)return o();const a=i(e,n);if(!a)return o();const c=r.getField(n.descriptionFileData,this.field);if(c===null||typeof c!=="object"){if(s.log)s.log("Field '"+this.field+"' doesn't contain a valid alias configuration");return o()}const u=c[a];const l=c[a.replace(/^\.\//,"")];const f=typeof u!=="undefined"?u:l;if(f===a)return o();if(f===undefined)return o();if(f===false){const e={...n,path:false};return o(null,e)}const p={...n,path:n.descriptionFileRoot,request:f,fullySpecified:false};e.doResolve(t,p,"aliased from description file "+n.descriptionFilePath+" with mapping '"+a+"' to '"+f+"'",s,(e,t)=>{if(e)return o(e);if(t===undefined)return o(null,null);o(null,t)})})}}},1037:(e,t,n)=>{"use strict";const r=n(86373);e.exports=class AliasPlugin{constructor(e,t,n){this.source=e;this.options=Array.isArray(t)?t:[t];this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasPlugin",(n,i,s)=>{const o=n.request||n.path;if(!o)return s();r(this.options,(s,a)=>{let c=false;if(o===s.name||!s.onlyModule&&o.startsWith(s.name+"/")){const u=o.substr(s.name.length);const l=(r,a)=>{if(r===false){const e={...n,path:false};return a(null,e)}if(o!==r&&!o.startsWith(r+"/")){c=true;const o=r+u;const l={...n,request:o,fullySpecified:false};return e.doResolve(t,l,"aliased with mapping '"+s.name+"': '"+r+"' to '"+o+"'",i,(e,t)=>{if(e)return a(e);if(t)return a(null,t);return a()})}return a()};const f=(e,t)=>{if(e)return a(e);if(t)return a(null,t);if(c)return a(null,null);return a()};if(Array.isArray(s.alias)){return r(s.alias,l,f)}else{return l(s.alias,f)}}return a()},s)})}}},44296:e=>{"use strict";e.exports=class AppendPlugin{constructor(e,t,n){this.source=e;this.appending=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AppendPlugin",(n,r,i)=>{const s={...n,path:n.path+this.appending,relativePath:n.relativePath&&n.relativePath+this.appending};e.doResolve(t,s,this.appending,r,i)})}}},76537:e=>{"use strict";const t=e=>{let t=e.length-1;while(t>=0){const n=e.charCodeAt(t);if(n===47||n===92)break;t--}if(t<0)return"";return e.slice(0,t)};const n=(e,t,n)=>{if(e.length===1)return e[0](t,n);let r;for(const i of e){try{i(t,n)}catch(e){if(!r)r=e}}e.length=0;if(r)throw r};class OperationMergerBackend{constructor(e,t,r){this._provider=e;this._syncProvider=t;this._providerContext=r;this._activeAsyncOperations=new Map;this.provide=this._provider?(t,r,i)=>{if(typeof r==="function"){i=r;r=undefined}if(r){return this._provider.call(this._providerContext,t,r,i)}if(typeof t!=="string"){i(new TypeError("path must be a string"));return}let s=this._activeAsyncOperations.get(t);if(s){s.push(i);return}this._activeAsyncOperations.set(t,s=[i]);e(t,(e,r)=>{this._activeAsyncOperations.delete(t);n(s,e,r)})}:null;this.provideSync=this._syncProvider?(e,t)=>{return this._syncProvider.call(this._providerContext,e,t)}:null}purge(){}purgeParent(){}}const r=0;const i=1;const s=2;class CacheBackend{constructor(e,t,n,i){this._duration=e;this._provider=t;this._syncProvider=n;this._providerContext=i;this._activeAsyncOperations=new Map;this._data=new Map;this._levels=[];for(let e=0;e<10;e++)this._levels.push(new Set);for(let t=5e3;t<e;t+=500)this._levels.push(new Set);this._currentLevel=0;this._tickInterval=Math.floor(e/this._levels.length);this._mode=r;this._timeout=undefined;this._nextDecay=undefined;this.provide=this.provide.bind(this);this.provideSync=this.provideSync.bind(this)}provide(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(typeof e!=="string"){r(new TypeError("path must be a string"));return}if(t){return this._provider.call(this._providerContext,e,t,r)}if(this._mode===i){this._enterAsyncMode()}let s=this._data.get(e);if(s!==undefined){if(s.err)return r(s.err);return r(null,s.result)}let o=this._activeAsyncOperations.get(e);if(o!==undefined){o.push(r);return}this._activeAsyncOperations.set(e,o=[r]);this._provider.call(this._providerContext,e,(t,r)=>{this._activeAsyncOperations.delete(e);this._storeResult(e,t,r);this._enterAsyncMode();n(o,t,r)})}provideSync(e,t){if(typeof e!=="string"){throw new TypeError("path must be a string")}if(t){return this._syncProvider.call(this._providerContext,e,t)}if(this._mode===i){this._runDecays()}let r=this._data.get(e);if(r!==undefined){if(r.err)throw r.err;return r.result}const s=this._activeAsyncOperations.get(e);this._activeAsyncOperations.delete(e);let o;try{o=this._syncProvider.call(this._providerContext,e)}catch(t){this._storeResult(e,t,undefined);this._enterSyncModeWhenIdle();if(s)n(s,t,undefined);throw t}this._storeResult(e,undefined,o);this._enterSyncModeWhenIdle();if(s)n(s,undefined,o);return o}purge(e){if(!e){if(this._mode!==r){this._data.clear();for(const e of this._levels){e.clear()}this._enterIdleMode()}}else if(typeof e==="string"){for(let[t,n]of this._data){if(t.startsWith(e)){this._data.delete(t);n.level.delete(t)}}if(this._data.size===0){this._enterIdleMode()}}else{for(let[t,n]of this._data){for(const r of e){if(t.startsWith(r)){this._data.delete(t);n.level.delete(t);break}}}if(this._data.size===0){this._enterIdleMode()}}}purgeParent(e){if(!e){this.purge()}else if(typeof e==="string"){this.purge(t(e))}else{const n=new Set;for(const r of e){n.add(t(r))}this.purge(n)}}_storeResult(e,t,n){if(this._data.has(e))return;const r=this._levels[this._currentLevel];this._data.set(e,{err:t,result:n,level:r});r.add(e)}_decayLevel(){const e=(this._currentLevel+1)%this._levels.length;const t=this._levels[e];this._currentLevel=e;for(let e of t){this._data.delete(e)}t.clear();if(this._data.size===0){this._enterIdleMode()}else{this._nextDecay+=this._tickInterval}}_runDecays(){while(this._nextDecay<=Date.now()&&this._mode!==r){this._decayLevel()}}_enterAsyncMode(){let e=0;switch(this._mode){case s:return;case r:this._nextDecay=Date.now()+this._tickInterval;e=this._tickInterval;break;case i:this._runDecays();if(this._mode===r)return;e=Math.max(0,this._nextDecay-Date.now());break}this._mode=s;const t=setTimeout(()=>{this._mode=i;this._runDecays()},e);if(t.unref)t.unref();this._timeout=t}_enterSyncModeWhenIdle(){if(this._mode===r){this._mode=i;this._nextDecay=Date.now()+this._tickInterval}}_enterIdleMode(){this._mode=r;this._nextDecay=undefined;if(this._timeout)clearTimeout(this._timeout)}}const o=(e,t,n,r)=>{if(e>0){return new CacheBackend(e,t,n,r)}return new OperationMergerBackend(t,n,r)};e.exports=class CachedInputFileSystem{constructor(e,t){this.fileSystem=e;this._statBackend=o(t,this.fileSystem.stat,this.fileSystem.statSync,this.fileSystem);this.stat=this._statBackend.provide;this.statSync=this._statBackend.provideSync;this._readdirBackend=o(t,this.fileSystem.readdir,this.fileSystem.readdirSync,this.fileSystem);this.readdir=this._readdirBackend.provide;this.readdirSync=this._readdirBackend.provideSync;this._readFileBackend=o(t,this.fileSystem.readFile,this.fileSystem.readFileSync,this.fileSystem);this.readFile=this._readFileBackend.provide;this.readFileSync=this._readFileBackend.provideSync;this._readJsonBackend=o(t,this.fileSystem.readJson||this.readFile&&((e,t)=>{this.readFile(e,(e,n)=>{if(e)return t(e);if(!n||n.length===0)return t(new Error("No file content"));let r;try{r=JSON.parse(n.toString("utf-8"))}catch(e){return t(e)}t(null,r)})}),this.fileSystem.readJsonSync||this.readFileSync&&(e=>{const t=this.readFileSync(e);const n=JSON.parse(t.toString("utf-8"));return n}),this.fileSystem);this.readJson=this._readJsonBackend.provide;this.readJsonSync=this._readJsonBackend.provideSync;this._readlinkBackend=o(t,this.fileSystem.readlink,this.fileSystem.readlinkSync,this.fileSystem);this.readlink=this._readlinkBackend.provide;this.readlinkSync=this._readlinkBackend.provideSync}purge(e){this._statBackend.purge(e);this._readdirBackend.purgeParent(e);this._readFileBackend.purge(e);this._readlinkBackend.purge(e);this._readJsonBackend.purge(e)}}},35142:(e,t,n)=>{"use strict";const r=n(62848).basename;e.exports=class CloneBasenamePlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("CloneBasenamePlugin",(n,i,s)=>{const o=r(n.path);const a=e.join(n.path,o);const c={...n,path:a,relativePath:n.relativePath&&e.join(n.relativePath,o)};e.doResolve(t,c,"using path: "+a,i,s)})}}},74636:e=>{"use strict";e.exports=class ConditionalPlugin{constructor(e,t,n,r,i){this.source=e;this.test=t;this.message=n;this.allowAlternatives=r;this.target=i}apply(e){const t=e.ensureHook(this.target);const{test:n,message:r,allowAlternatives:i}=this;e.getHook(this.source).tapAsync("ConditionalPlugin",(s,o,a)=>{for(const e of Object.keys(n)){if(!s[e]===n[e])return a()}e.doResolve(t,s,r,o,i?a:(e,t)=>{if(e)return a(e);if(t===undefined)return a(null,null);a(null,t)})})}}},71929:(e,t,n)=>{"use strict";const r=n(73154);e.exports=class DescriptionFilePlugin{constructor(e,t,n,r){this.source=e;this.filenames=t;this.pathIsFile=n;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DescriptionFilePlugin",(n,i,s)=>{const o=n.path;if(!o)return s();const a=this.pathIsFile?r.cdUp(o):o;if(!a)return s();r.loadDescriptionFile(e,a,this.filenames,n.descriptionFilePath?{path:n.descriptionFilePath,content:n.descriptionFileData,directory:n.descriptionFileRoot}:undefined,i,(r,c)=>{if(r)return s(r);if(!c){if(i.log)i.log(`No description file found in ${a} or above`);return s()}const u="."+o.substr(c.directory.length).replace(/\\/g,"/");const l={...n,descriptionFilePath:c.path,descriptionFileData:c.content,descriptionFileRoot:c.directory,relativePath:u};e.doResolve(t,l,"using description file: "+c.path+" (relative path: "+u+")",i,(e,t)=>{if(e)return s(e);if(t===undefined)return s(null,null);s(null,t)})})})}}},73154:(e,t,n)=>{"use strict";const r=n(86373);function loadDescriptionFile(e,t,n,i,s,o){(function findDescriptionFile(){if(i&&i.directory===t){return o(null,i)}r(n,(n,r)=>{const i=e.join(t,n);if(e.fileSystem.readJson){e.fileSystem.readJson(i,(e,t)=>{if(e){if(typeof e.code!=="undefined"){if(s.missingDependencies){s.missingDependencies.add(i)}return r()}if(s.fileDependencies){s.fileDependencies.add(i)}return onJson(e)}if(s.fileDependencies){s.fileDependencies.add(i)}onJson(null,t)})}else{e.fileSystem.readFile(i,(e,t)=>{if(e){if(s.missingDependencies){s.missingDependencies.add(i)}return r()}if(s.fileDependencies){s.fileDependencies.add(i)}let n;if(t){try{n=JSON.parse(t.toString())}catch(e){return onJson(e)}}else{return onJson(new Error("No content in file"))}onJson(null,n)})}function onJson(e,n){if(e){if(s.log)s.log(i+" (directory description file): "+e);else e.message=i+" (directory description file): "+e;return r(e)}r(null,{content:n,directory:t,path:i})}},(e,n)=>{if(e)return o(e);if(n){return o(null,n)}else{const e=cdUp(t);if(!e){return o()}else{t=e;return findDescriptionFile()}}})})()}function getField(e,t){if(!e)return undefined;if(Array.isArray(t)){let n=e;for(let e=0;e<t.length;e++){if(n===null||typeof n!=="object"){n=null;break}n=n[t[e]]}return n}else{return e[t]}}function cdUp(e){if(e==="/")return null;const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\");const r=t<0?n:n<0?t:t<n?n:t;if(r<0)return null;return e.substr(0,r||1)}t.loadDescriptionFile=loadDescriptionFile;t.getField=getField;t.cdUp=cdUp},78613:e=>{"use strict";e.exports=class DirectoryExistsPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DirectoryExistsPlugin",(n,r,i)=>{const s=e.fileSystem;const o=n.path;if(!o)return i();s.stat(o,(s,a)=>{if(s||!a){if(r.missingDependencies)r.missingDependencies.add(o);if(r.log)r.log(o+" doesn't exist");return i()}if(!a.isDirectory()){if(r.missingDependencies)r.missingDependencies.add(o);if(r.log)r.log(o+" is not a directory");return i()}if(r.fileDependencies)r.fileDependencies.add(o);e.doResolve(t,n,`existing directory ${o}`,r,i)})})}}},92410:(e,t,n)=>{"use strict";const r=n(85622);const i=n(73154);const s=n(86373);const{checkExportsFieldTarget:o}=n(63210);const a=n(6252);e.exports=class ExportsFieldPlugin{constructor(e,t,n,r){this.source=e;this.target=r;this.conditionNames=t;this.fieldName=n;this.exportsFieldProcessorCache=new WeakMap}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ExportsFieldPlugin",(n,c,u)=>{if(!n.descriptionFilePath)return u();if(n.relativePath!=="."||n.request===undefined)return u();const l=n.query||n.fragment?(n.request==="."?"./":n.request)+n.query+n.fragment:n.request;const f=i.getField(n.descriptionFileData,this.fieldName);if(!f)return u();if(n.directory){return u(new Error(`Resolving to directories is not possible with the exports field (request was ${l}/)`))}let p;try{let e=this.exportsFieldProcessorCache.get(n.descriptionFileData);if(e===undefined){e=a(f);this.exportsFieldProcessorCache.set(n.descriptionFileData,e)}p=e(l,this.conditionNames)}catch(e){if(c.log){c.log(`Exports field in ${n.descriptionFilePath} can't be processed: ${e}`)}return u(e)}if(p.length===0){return u(new Error(`Package path ${l} is not exported from package ${n.descriptionFileRoot} (see exports field in ${n.descriptionFilePath})`))}s(p,(i,s)=>{const a=/^([^?#]*)(\?[^#]*)?(#.*)?$/.exec(i);if(!a)return s();const[,u,l,f]=a;const p=o(u);if(p){return s(p)}const d={...n,request:undefined,path:r.join(n.descriptionFileRoot,u),relativePath:u,query:l||"",fragment:f||""};e.doResolve(t,d,"using exports field: "+i,c,s)},(e,t)=>u(e,t||null))})}}},27426:e=>{"use strict";e.exports=class FileExistsPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);const n=e.fileSystem;e.getHook(this.source).tapAsync("FileExistsPlugin",(r,i,s)=>{const o=r.path;if(!o)return s();n.stat(o,(n,a)=>{if(n||!a){if(i.missingDependencies)i.missingDependencies.add(o);if(i.log)i.log(o+" doesn't exist");return s()}if(!a.isFile()){if(i.missingDependencies)i.missingDependencies.add(o);if(i.log)i.log(o+" is not a file");return s()}if(i.fileDependencies)i.fileDependencies.add(o);e.doResolve(t,r,"existing file: "+o,i,s)})})}}},24587:e=>{"use strict";const t="@".charCodeAt(0);e.exports=class JoinRequestPartPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const n=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPartPlugin",(r,i,s)=>{const o=r.request||"";let a=o.indexOf("/",3);if(a>=0&&o.charCodeAt(2)===t){a=o.indexOf("/",a+1)}let c,u,l;if(a<0){c=o;u=".";l=false}else{c=o.slice(0,a);u="."+o.slice(a);l=r.fullySpecified}const f={...r,path:e.join(r.path,c),relativePath:r.relativePath&&e.join(r.relativePath,c),request:u,fullySpecified:l};e.doResolve(n,f,null,i,s)})}}},15241:e=>{"use strict";e.exports=class JoinRequestPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPlugin",(n,r,i)=>{const s={...n,path:e.join(n.path,n.request),relativePath:n.relativePath&&e.join(n.relativePath,n.request),request:undefined};e.doResolve(t,s,null,r,i)})}}},41529:e=>{"use strict";e.exports=class LogInfoPlugin{constructor(e){this.source=e}apply(e){const t=this.source;e.getHook(this.source).tapAsync("LogInfoPlugin",(e,n,r)=>{if(!n.log)return r();const i=n.log;const s="["+t+"] ";if(e.path)i(s+"Resolving in directory: "+e.path);if(e.request)i(s+"Resolving request: "+e.request);if(e.module)i(s+"Request is an module request.");if(e.directory)i(s+"Request is a directory request.");if(e.query)i(s+"Resolving request query: "+e.query);if(e.fragment)i(s+"Resolving request fragment: "+e.fragment);if(e.descriptionFilePath)i(s+"Has description data from "+e.descriptionFilePath);if(e.relativePath)i(s+"Relative path from description file is: "+e.relativePath);r()})}}},78253:(e,t,n)=>{"use strict";const r=n(85622);const i=n(73154);const s=Symbol("alreadyTriedMainField");e.exports=class MainFieldPlugin{constructor(e,t,n){this.source=e;this.options=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("MainFieldPlugin",(n,o,a)=>{if(n.path!==n.descriptionFileRoot||n[s]===n.descriptionFilePath||!n.descriptionFilePath)return a();const c=r.basename(n.descriptionFilePath);let u=i.getField(n.descriptionFileData,this.options.name);if(!u||typeof u!=="string"||u==="."||u==="./"){return a()}if(this.options.forceRelative&&!/^\.\.?\//.test(u))u="./"+u;const l={...n,request:u,module:false,directory:u.endsWith("/"),[s]:n.descriptionFilePath};return e.doResolve(t,l,"use "+u+" from "+this.options.name+" in "+c,o,a)})}}},25535:(e,t,n)=>{"use strict";const r=n(86373);const i=n(62848);e.exports=class ModulesInHierachicDirectoriesPlugin{constructor(e,t,n){this.source=e;this.directories=[].concat(t);this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInHierachicDirectoriesPlugin",(n,s,o)=>{const a=e.fileSystem;const c=i(n.path).paths.map(t=>{return this.directories.map(n=>e.join(t,n))}).reduce((e,t)=>{e.push.apply(e,t);return e},[]);r(c,(r,i)=>{a.stat(r,(o,a)=>{if(!o&&a&&a.isDirectory()){const o={...n,path:r,request:"./"+n.request,module:false};const a="looking for modules in "+r;return e.doResolve(t,o,a,s,i)}if(s.log)s.log(r+" doesn't exist or is not a directory");if(s.missingDependencies)s.missingDependencies.add(r);return i()})},o)})}}},90435:e=>{"use strict";e.exports=class ModulesInRootPlugin{constructor(e,t,n){this.source=e;this.path=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInRootPlugin",(n,r,i)=>{const s={...n,path:this.path,request:"./"+n.request,module:false};e.doResolve(t,s,"looking for modules in "+this.path,r,i)})}}},24561:e=>{"use strict";e.exports=class NextPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("NextPlugin",(n,r,i)=>{e.doResolve(t,n,null,r,i)})}}},19749:e=>{"use strict";e.exports=class ParsePlugin{constructor(e,t,n){this.source=e;this.requestOptions=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ParsePlugin",(n,r,i)=>{const s=e.parse(n.request);const o={...n,...s,...this.requestOptions};if(n.query&&!s.query){o.query=n.query}if(n.fragment&&!s.fragment){o.fragment=n.fragment}if(s&&r.log){if(s.module)r.log("Parsed request is a module");if(s.directory)r.log("Parsed request is a directory")}e.doResolve(t,o,null,r,i)})}}},33014:e=>{"use strict";e.exports=class PnpPlugin{constructor(e,t,n){this.source=e;this.pnpApi=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("PnpPlugin",(n,r,i)=>{const s=n.request;if(!s)return i();const o=`${n.path}/`;let a;let c;try{a=this.pnpApi.resolveToUnqualified(s,o,{considerBuiltins:false});if(r.fileDependencies){c=this.pnpApi.resolveToUnqualified("pnpapi",o,{considerBuiltins:false})}}catch(e){return i(e)}if(a===s)return i();if(c&&r.fileDependencies){r.fileDependencies.add(c)}const u={...n,path:a,request:undefined,ignoreSymlinks:true};e.doResolve(t,u,`resolved by pnp to ${a}`,r,(e,t)=>{if(e)return i(e);if(t)return i(null,t);return i(null,null)})})}}},67230:(e,t,n)=>{"use strict";const{AsyncSeriesBailHook:r,AsyncSeriesHook:i,SyncHook:s}=n(92960);const o=n(2828);const{normalize:a,cachedJoin:c,getType:u,PathType:l}=n(63210);function toCamelCase(e){return e.replace(/-([a-z])/g,e=>e.substr(1).toUpperCase())}class Resolver{static createStackEntry(e,t){return e.name+": ("+t.path+") "+(t.request||"")+(t.query||"")+(t.fragment||"")+(t.directory?" directory":"")+(t.module?" module":"")}constructor(e,t){this.fileSystem=e;this.options=t;this.hooks={resolveStep:new s(["hook","request"],"resolveStep"),noResolve:new s(["request","error"],"noResolve"),resolve:new r(["request","resolveContext"],"resolve"),result:new i(["result","resolveContext"],"result")}}ensureHook(e){if(typeof e!=="string"){return e}e=toCamelCase(e);if(/^before/.test(e)){return this.ensureHook(e[6].toLowerCase()+e.substr(7)).withOptions({stage:-10})}if(/^after/.test(e)){return this.ensureHook(e[5].toLowerCase()+e.substr(6)).withOptions({stage:10})}const t=this.hooks[e];if(!t){return this.hooks[e]=new r(["request","resolveContext"],e)}return t}getHook(e){if(typeof e!=="string"){return e}e=toCamelCase(e);if(/^before/.test(e)){return this.getHook(e[6].toLowerCase()+e.substr(7)).withOptions({stage:-10})}if(/^after/.test(e)){return this.getHook(e[5].toLowerCase()+e.substr(6)).withOptions({stage:10})}const t=this.hooks[e];if(!t){throw new Error(`Hook ${e} doesn't exist`)}return t}resolveSync(e,t,n){let r=undefined;let i=undefined;let s=false;this.resolve(e,t,n,{},(e,t)=>{r=e;i=t;s=true});if(!s){throw new Error("Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!")}if(r)throw r;if(i===undefined)throw new Error("No result");return i}resolve(e,t,n,r,i){const s={context:e,path:t,request:n};const o=`resolve '${n}' in '${t}'`;const a=e=>{return i(null,e.path===false?false:`${e.path}${e.query||""}${e.fragment||""}`,e)};const c=e=>{const t=new Error("Can't "+o);t.details=e.join("\n");this.hooks.noResolve.call(s,t);return i(t)};if(r.log){const e=r.log;const t=[];return this.doResolve(this.hooks.resolve,s,o,{log:n=>{e(n);t.push(n)},fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},(e,n)=>{if(e)return i(e);if(n)return a(n);return c(t)})}else{return this.doResolve(this.hooks.resolve,s,o,{log:undefined,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},(e,t)=>{if(e)return i(e);if(t)return a(t);const n=[];return this.doResolve(this.hooks.resolve,s,o,{log:e=>n.push(e),stack:r.stack},(e,t)=>{if(e)return i(e);return c(n)})})}}doResolve(e,t,n,r,i){const s=Resolver.createStackEntry(e,t);let a;if(r.stack){a=new Set(r.stack);if(r.stack.has(s)){const e=new Error("Recursion in resolving\nStack:\n "+Array.from(a).join("\n "));e.recursion=true;if(r.log)r.log("abort resolving because of recursion");return i(e)}a.add(s)}else{a=new Set([s])}this.hooks.resolveStep.call(e,t);if(e.isUsed()){const s=o({log:r.log,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:a},n);return e.callAsync(t,s,(e,t)=>{if(e)return i(e);if(t)return i(null,t);i()})}else{i()}}parse(e){const t={request:"",query:"",fragment:"",module:false,directory:false,file:false};const n=/^([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);if(!n)return t;t.request=n[1]||"";t.query=n[2]||"";t.fragment=n[3]||"";if(t.request){t.module=this.isModule(t.request);t.directory=this.isDirectory(t.request);if(t.directory){t.request=t.request.substr(0,t.request.length-1)}}return t}isModule(e){return u(e)===l.Normal}isDirectory(e){return e.endsWith("/")}join(e,t){return c(e,t)}normalize(e){return a(e)}}e.exports=Resolver},34739:(e,t,n)=>{"use strict";const r=n(67230);const{getType:i,PathType:s}=n(63210);const o=n(82728);const a=n(22170);const c=n(1037);const u=n(44296);const l=n(74636);const f=n(71929);const p=n(78613);const d=n(92410);const h=n(27426);const m=n(24587);const g=n(15241);const y=n(78253);const v=n(25535);const _=n(90435);const b=n(24561);const E=n(19749);const w=n(33014);const S=n(31801);const k=n(51078);const D=n(70821);const x=n(63888);const C=n(86293);const A=n(91434);const T=n(16004);const M=n(36142);function processPnpApiOption(e){if(e===undefined&&process.versions.pnp){return n(98063)}return e||null}function createOptions(e){const t=new Set(e.mainFields||["main"]);const n=[];for(const e of t){if(typeof e==="string"){n.push({name:[e],forceRelative:true})}else if(Array.isArray(e)){n.push({name:e,forceRelative:true})}else{n.push({name:Array.isArray(e.name)?e.name:[e.name],forceRelative:e.forceRelative})}}return{alias:typeof e.alias==="object"&&!Array.isArray(e.alias)&&e.alias!==null?aliasOptionsToArray(e.alias):e.alias||[],aliasFields:new Set(e.aliasFields),cachePredicate:e.cachePredicate||function(){return true},cacheWithContext:typeof e.cacheWithContext!=="undefined"?e.cacheWithContext:true,exportsFields:new Set(e.exportsFields||["exports"]),conditionNames:new Set(e.conditionNames),descriptionFiles:Array.from(new Set(e.descriptionFiles||["package.json"])),enforceExtension:e.enforceExtension||false,extensions:new Set(e.extensions||[".js",".json",".node"]),fileSystem:e.useSyncFileSystemCalls?new o(e.fileSystem):e.fileSystem,unsafeCache:e.unsafeCache&&typeof e.unsafeCache!=="object"?{}:e.unsafeCache||false,symlinks:typeof e.symlinks!=="undefined"?e.symlinks:true,resolver:e.resolver,modules:mergeFilteredToArray(Array.isArray(e.modules)?e.modules:e.modules?[e.modules]:["node_modules"],e=>{const t=i(e);return t===s.Normal||t===s.Relative}),mainFields:n,mainFiles:new Set(e.mainFiles||["index"]),plugins:e.plugins||[],pnpApi:processPnpApiOption(e.pnpApi),roots:new Set(e.roots||undefined),fullySpecified:e.fullySpecified||false,resolveToContext:e.resolveToContext||false,restrictions:new Set(e.restrictions)}}t.createResolver=function(e){const t=createOptions(e);const{alias:n,aliasFields:i,cachePredicate:s,cacheWithContext:o,conditionNames:O,descriptionFiles:F,enforceExtension:I,exportsFields:R,extensions:P,fileSystem:N,fullySpecified:L,mainFields:B,mainFiles:j,modules:U,plugins:z,pnpApi:H,resolveToContext:V,symlinks:G,unsafeCache:q,resolver:W,restrictions:K,roots:X}=t;const J=z.slice();const Y=W?W:new r(N,t);Y.ensureHook("resolve");Y.ensureHook("internalResolve");Y.ensureHook("newInteralResolve");Y.ensureHook("parsedResolve");Y.ensureHook("describedResolve");Y.ensureHook("rawModule");Y.ensureHook("module");Y.ensureHook("resolveAsModule");Y.ensureHook("undescribedResolveInPackage");Y.ensureHook("resolveInPackage");Y.ensureHook("resolveInExistingDirectory");Y.ensureHook("relative");Y.ensureHook("describedRelative");Y.ensureHook("directory");Y.ensureHook("undescribedExistingDirectory");Y.ensureHook("existingDirectory");Y.ensureHook("undescribedRawFile");Y.ensureHook("rawFile");Y.ensureHook("file");Y.ensureHook("finalFile");Y.ensureHook("existingFile");Y.ensureHook("resolved");for(const{source:e,resolveOptions:t}of[{source:"resolve",resolveOptions:{fullySpecified:L}},{source:"internal-resolve",resolveOptions:{fullySpecified:false}}]){if(q){J.push(new T(e,s,q,o,`new-${e}`));J.push(new E(`new-${e}`,t,"parsed-resolve"))}else{J.push(new E(e,t,"parsed-resolve"))}}J.push(new f("parsed-resolve",F,false,"described-resolve"));J.push(new b("after-parsed-resolve","described-resolve"));if(n.length>0)J.push(new c("described-resolve",n,"internal-resolve"));i.forEach(e=>{J.push(new a("described-resolve",e,"internal-resolve"))});J.push(new l("after-described-resolve",{module:true},"resolve as module",false,"raw-module"));if(X.size>0){J.push(new D("after-described-resolve",X,"relative"))}J.push(new g("after-described-resolve","relative"));R.forEach(e=>{J.push(new x("raw-module",e,"resolve-as-module"))});if(H){J.push(new w("raw-module",H,"relative"))}U.forEach(e=>{if(Array.isArray(e))J.push(new v("raw-module",e,"module"));else J.push(new _("raw-module",e,"module"))});J.push(new m("module","resolve-as-module"));if(!V){J.push(new l("resolve-as-module",{directory:false},"single file module",true,"undescribed-raw-file"))}J.push(new p("resolve-as-module","undescribed-resolve-in-package"));J.push(new f("undescribed-resolve-in-package",F,false,"resolve-in-package"));J.push(new b("after-undescribed-resolve-in-package","resolve-in-package"));R.forEach(e=>{J.push(new d("resolve-in-package",O,e,"final-file"))});J.push(new b("resolve-in-package","resolve-in-existing-directory"));J.push(new g("resolve-in-existing-directory","relative"));J.push(new f("relative",F,true,"described-relative"));J.push(new b("after-relative","described-relative"));if(V){J.push(new b("described-relative","directory"))}else{J.push(new l("described-relative",{directory:false},null,true,"raw-file"));J.push(new l("described-relative",{fullySpecified:false},"as directory",true,"directory"))}J.push(new p("directory","undescribed-existing-directory"));if(V){J.push(new b("undescribed-existing-directory","resolved"))}else{J.push(new f("undescribed-existing-directory",F,false,"existing-directory"));j.forEach(e=>{J.push(new M("undescribed-existing-directory",e,"undescribed-raw-file"))});B.forEach(e=>{J.push(new y("existing-directory",e,"resolve-in-existing-directory"))});j.forEach(e=>{J.push(new M("existing-directory",e,"undescribed-raw-file"))});J.push(new f("undescribed-raw-file",F,true,"raw-file"));J.push(new b("after-undescribed-raw-file","raw-file"));J.push(new l("raw-file",{fullySpecified:true},null,false,"file"));if(!I){J.push(new A("raw-file","no extension","file"))}P.forEach(e=>{J.push(new u("raw-file",e,"file"))});if(n.length>0)J.push(new c("file",n,"internal-resolve"));i.forEach(e=>{J.push(new a("file",e,"internal-resolve"))});J.push(new b("file","final-file"));J.push(new h("final-file","existing-file"));if(G)J.push(new C("existing-file","existing-file"));J.push(new b("existing-file","resolved"))}if(K.size>0){J.push(new S(Y.hooks.resolved,K))}J.push(new k(Y.hooks.resolved));for(const e of J){if(typeof e==="function"){e.call(Y,Y)}else{e.apply(Y)}}return Y};function aliasOptionsToArray(e){return Object.keys(e).map(t=>{const n={name:t,onlyModule:false,alias:e[t]};if(/\$$/.test(t)){n.onlyModule=true;n.name=t.substr(0,t.length-1)}return n})}function mergeFilteredToArray(e,t){const n=[];const r=new Set(e);for(const e of r){if(t(e)){const t=n.length>0?n[n.length-1]:undefined;if(Array.isArray(t)){t.push(e)}else{n.push([e])}}else{n.push(e)}}return n}},31801:e=>{"use strict";const t="/".charCodeAt(0);const n="\\".charCodeAt(0);const r=(e,r)=>{if(!e.startsWith(r))return false;if(e.length===r.length)return true;const i=e.charCodeAt(r.length);return i===t||i===n};e.exports=class RestrictionsPlugin{constructor(e,t){this.source=e;this.restrictions=t}apply(e){e.getHook(this.source).tapAsync("RestrictionsPlugin",(e,t,n)=>{if(typeof e.path==="string"){const i=e.path;for(const e of this.restrictions){if(typeof e==="string"){if(!r(i,e)){if(t.log){t.log(`${i} is not inside of the restriction ${e}`)}return n(null,null)}}else if(!e.test(i)){if(t.log){t.log(`${i} doesn't match the restriction ${e}`)}return n(null,null)}}}n()})}}},51078:e=>{"use strict";e.exports=class ResultPlugin{constructor(e){this.source=e}apply(e){this.source.tapAsync("ResultPlugin",(t,n,r)=>{const i={...t};if(n.log)n.log("reporting result "+i.path);e.hooks.result.callAsync(i,n,e=>{if(e)return r(e);r(null,i)})})}}},70821:(e,t,n)=>{"use strict";const r=n(86373);class RootsPlugin{constructor(e,t,n){this.roots=Array.from(t);this.source=e;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("RootsPlugin",(n,i,s)=>{const o=n.request;if(!o)return s();if(!o.startsWith("/"))return s();r(this.roots,(r,s)=>{const a=e.join(r,o.slice(1));const c={...n,path:a,relativePath:n.relativePath&&a};e.doResolve(t,c,`root path ${r}`,i,s)},s)})}}e.exports=RootsPlugin},63888:(e,t,n)=>{"use strict";const r=n(73154);const i="/".charCodeAt(0);e.exports=class SelfReferencePlugin{constructor(e,t,n){this.source=e;this.target=n;this.fieldName=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("SelfReferencePlugin",(n,s,o)=>{if(!n.descriptionFilePath)return o();const a=n.request;if(!a)return o();const c=r.getField(n.descriptionFileData,this.fieldName);if(!c)return o();const u=r.getField(n.descriptionFileData,"name");if(typeof u!=="string")return o();if(a.startsWith(u)&&(a.length===u.length||a.charCodeAt(u.length)===i)){const r=`.${a.slice(u.length)}`;const i={...n,request:r,path:n.descriptionFileRoot,relativePath:"."};e.doResolve(t,i,"self reference",s,o)}else{return o()}})}}},86293:(e,t,n)=>{"use strict";const r=n(86373);const i=n(62848);const{getType:s,PathType:o}=n(63210);e.exports=class SymlinkPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);const n=e.fileSystem;e.getHook(this.source).tapAsync("SymlinkPlugin",(a,c,u)=>{if(a.ignoreSymlinks)return u();const l=i(a.path);const f=l.seqments;const p=l.paths;let d=false;let h=-1;r(p,(e,t)=>{h++;if(c.fileDependencies)c.fileDependencies.add(e);n.readlink(e,(e,n)=>{if(!e&&n){f[h]=n;d=true;const e=s(n.toString());if(e===o.AbsoluteWin||e===o.AbsolutePosix){return t(null,h)}}t()})},(n,r)=>{if(!d)return u();const i=typeof r==="number"?f.slice(0,r+1):f.slice();const s=i.reduceRight((t,n)=>{return e.join(t,n)});const o={...a,path:s};e.doResolve(t,o,"resolved symlink to "+s,c,u)})})}}},82728:e=>{"use strict";function SyncAsyncFileSystemDecorator(e){this.fs=e;if(e.statSync){this.stat=((t,n)=>{let r;try{r=e.statSync(t)}catch(e){return n(e)}n(null,r)});this.statSync=(t=>e.statSync(t))}if(e.readdirSync){this.readdir=((t,n)=>{let r;try{r=e.readdirSync(t)}catch(e){return n(e)}n(null,r)});this.readdirSync=(t=>e.readdirSync(t))}if(e.readFileSync){this.readFile=((t,n)=>{let r;try{r=e.readFileSync(t)}catch(e){return n(e)}n(null,r)});this.readFileSync=(t=>e.readFileSync(t))}if(e.readlinkSync){this.readlink=((t,n)=>{let r;try{r=e.readlinkSync(t)}catch(e){return n(e)}n(null,r)});this.readlinkSync=(t=>e.readlinkSync(t))}if(e.readJsonSync){this.readJson=((t,n)=>{let r;try{r=e.readJsonSync(t)}catch(e){return n(e)}n(null,r)});this.readJsonSync=(t=>e.readJsonSync(t))}}e.exports=SyncAsyncFileSystemDecorator},91434:e=>{"use strict";e.exports=class TryNextPlugin{constructor(e,t,n){this.source=e;this.message=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("TryNextPlugin",(n,r,i)=>{e.doResolve(t,n,this.message,r,i)})}}},16004:e=>{"use strict";function getCacheId(e,t){return JSON.stringify({context:t?e.context:"",path:e.path,query:e.query,fragment:e.fragment,request:e.request})}e.exports=class UnsafeCachePlugin{constructor(e,t,n,r,i){this.source=e;this.filterPredicate=t;this.withContext=r;this.cache=n;this.target=i}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UnsafeCachePlugin",(n,r,i)=>{if(!this.filterPredicate(n))return i();const s=getCacheId(n,this.withContext);const o=this.cache[s];if(o){return i(null,o)}e.doResolve(t,n,null,r,(e,t)=>{if(e)return i(e);if(t)return i(null,this.cache[s]=t);i()})})}}},36142:e=>{"use strict";e.exports=class UseFilePlugin{constructor(e,t,n){this.source=e;this.filename=t;this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UseFilePlugin",(n,r,i)=>{const s=e.join(n.path,this.filename);const o={...n,path:s,relativePath:n.relativePath&&e.join(n.relativePath,this.filename)};e.doResolve(t,o,"using path: "+s,r,i)})}}},2828:e=>{"use strict";e.exports=function createInnerContext(e,t,n){let r=false;let i=undefined;if(e.log){if(t){i=(n=>{if(!r){e.log(t);r=true}e.log(" "+n)})}else{i=e.log}}const s={log:i,fileDependencies:e.fileDependencies,contextDependencies:e.contextDependencies,missingDependencies:e.missingDependencies,stack:e.stack};return s}},86373:e=>{"use strict";e.exports=function forEachBail(e,t,n){if(e.length===0)return n();let r=0;let i=true;let s;const o=(a,c)=>{if(a||c!==undefined){if(i){s=[a,c];return}n(a,c);return}if(i){s=true;return}i=true;while(true){if(r===e.length)return n();t(e[r++],o);if(s!==undefined){if(s!==true){return n(...s)}s=undefined}else{i=false;return}}};i=true;while(true){if(r===e.length)return n();t(e[r++],o);if(s!==undefined){if(s!==true){return n(...s)}s=undefined}else{i=false;return}}}},43040:e=>{"use strict";e.exports=function getInnerRequest(e,t){if(typeof t.__innerRequest==="string"&&t.__innerRequest_request===t.request&&t.__innerRequest_relativePath===t.relativePath)return t.__innerRequest;let n;if(t.request){n=t.request;if(/^\.\.?\//.test(n)&&t.relativePath){n=e.join(t.relativePath,n)}}else{n=t.relativePath}t.__innerRequest_request=t.request;t.__innerRequest_relativePath=t.relativePath;return t.__innerRequest=n}},62848:e=>{"use strict";e.exports=function getPaths(e){const t=e.split(/(.*?[\\/]+)/);const n=[e];const r=[t[t.length-1]];let i=t[t.length-1];e=e.substr(0,e.length-i.length-1);for(let s=t.length-2;s>2;s-=2){n.push(e);i=t[s];e=e.substr(0,e.length-i.length)||"/";r.push(i.substr(0,i.length-1))}i=t[1];r.push(i);n.push(i);return{paths:n,seqments:r}};e.exports.basename=function basename(e){const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\");const r=t<0?n:n<0?t:t<n?n:t;if(r<0)return null;const i=e.substr(r+1);return i}},2357:(e,t,n)=>{"use strict";const r=n(35747);const i=n(76537);const s=n(34739);const o=new i(r,4e3);const a={environments:["node+es3+es5+process+native"]};const c=s.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],fileSystem:o});function resolve(e,t,n,r,i){if(typeof e==="string"){i=r;r=n;n=t;t=e;e=a}if(typeof i!=="function"){i=r}c.resolve(e,t,n,r,i)}const u=s.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],useSyncFileSystemCalls:true,fileSystem:o});function resolveSync(e,t,n){if(typeof e==="string"){n=t;t=e;e=a}return u.resolveSync(e,t,n)}function create(e){e={fileSystem:o,...e};const t=s.createResolver(e);return function(e,n,r,i,s){if(typeof e==="string"){s=i;i=r;r=n;n=e;e=a}if(typeof s!=="function"){s=i}t.resolve(e,n,r,i,s)}}function createSync(e){e={useSyncFileSystemCalls:true,fileSystem:o,...e};const t=s.createResolver(e);return function(e,n,r){if(typeof e==="string"){r=n;n=e;e=a}return t.resolveSync(e,n,r)}}const l=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);Object.defineProperties(e,n);return Object.freeze(e)};e.exports=l(resolve,{get sync(){return resolveSync},create:l(create,{get sync(){return createSync}}),ResolverFactory:s,CachedInputFileSystem:i,get CloneBasenamePlugin(){return n(35142)},get LogInfoPlugin(){return n(41529)},get forEachBail(){return n(86373)}})},63210:(e,t,n)=>{"use strict";const r=n(85622);const i="/".charCodeAt(0);const s="\\".charCodeAt(0);const o="A".charCodeAt(0);const a="Z".charCodeAt(0);const c="a".charCodeAt(0);const u="z".charCodeAt(0);const l=".".charCodeAt(0);const f=":".charCodeAt(0);const p=r.posix.normalize;const d=r.win32.normalize;const h=Object.freeze({Empty:0,Normal:1,Relative:2,AbsoluteWin:3,AbsolutePosix:4});t.PathType=h;const m=e=>{switch(e.length){case 0:return h.Empty;case 1:{const t=e.charCodeAt(0);switch(t){case l:return h.Relative;case i:return h.AbsolutePosix}return h.Normal}case 2:{const t=e.charCodeAt(0);switch(t){case l:{const t=e.charCodeAt(1);switch(t){case l:case i:return h.Relative}return h.Normal}case i:return h.AbsolutePosix}const n=e.charCodeAt(1);if(n===f){if(t>=o&&t<=a||t>=c&&t<=u){return h.AbsoluteWin}}return h.Normal}}const t=e.charCodeAt(0);switch(t){case l:{const t=e.charCodeAt(1);switch(t){case i:return h.Relative;case l:{const t=e.charCodeAt(2);if(t===i)return h.Relative;return h.Normal}}return h.Normal}case i:return h.AbsolutePosix}const n=e.charCodeAt(1);if(n===f){const n=e.charCodeAt(2);if((n===s||n===i)&&(t>=o&&t<=a||t>=c&&t<=u)){return h.AbsoluteWin}}return h.Normal};t.getType=m;const g=e=>{switch(m(e)){case h.Empty:return e;case h.AbsoluteWin:return d(e);case h.Relative:{const t=p(e);return m(t)===h.Relative?t:`./${t}`}}return p(e)};t.normalize=g;const y=(e,t)=>{if(!t)return g(e);const n=m(t);switch(n){case h.AbsolutePosix:return p(t);case h.AbsoluteWin:return d(t)}switch(m(e)){case h.Normal:case h.Relative:case h.AbsolutePosix:return p(`${e}/${t}`);case h.AbsoluteWin:return d(`${e}\\${t}`)}switch(n){case h.Empty:return e;case h.Relative:{const t=p(e);return m(t)===h.Relative?t:`./${t}`}}return p(e)};t.join=y;const v=new Map;const _=(e,t)=>{let n;let r=v.get(e);if(r===undefined){v.set(e,r=new Map)}else{n=r.get(t);if(n!==undefined)return n}n=y(e,t);r.set(t,n);return n};t.cachedJoin=_;const b=e=>{let t=2;let n=e.indexOf("/",2);let r=0;while(n!==-1){const i=e.slice(t,n);switch(i){case"..":{r--;if(r<0)return new Error(`Trying to access out of package scope. Requesting ${e}`);break}default:r++;break}t=n+1;n=e.indexOf("/",t)}};t.checkExportsFieldTarget=b},6252:e=>{"use strict";const t="/".charCodeAt(0);const n=".".charCodeAt(0);e.exports=function processExportsField(e){const t=buildPathTree(e);return function exportsFieldProcessor(e,n){assertRequest(e);const r=findMatch(e,t);if(r===null)return[];let i=null;const[s,o]=r;if(isConditionalMapping(s)){i=conditionalMapping(s,n);if(i===null)return[]}else{i=s}const a=o!==e.length?e.slice(o):undefined;return directMapping(a,i,n)}};function assertRequest(e){if(e.charCodeAt(0)!==n){throw new Error('Request should be relative path and start with "."')}if(e.length===1)return;if(e.charCodeAt(1)!==t){throw new Error('Request should be relative path and start with "./"')}if(e.charCodeAt(e.length-1)===t){throw new Error("Only requesting file allowed")}}function findMatch(e,t){if(e.length===1){const e=t.files.get("*root*");return e?[e,1]:null}if(t.children===null&&t.folder===null){const n=t.files.get(e.slice(2));return n?[n,e.length]:null}let n=t;let r=2;let i=e.indexOf("/",2);let s=null;while(i!==-1){const t=e.slice(r,i);const o=n.folder;if(o){s=[o,r]}if(n.children===null)return s;const a=n.children.get(t);if(!a){const e=n.folder;return e?[e,r]:null}n=a;r=i+1;i=e.indexOf("/",r)}const o=n.files.get(e.slice(r));if(o){return[o,e.length]}const a=n.folder;if(a){return[a,r]}return s}function assertExport(e,r){if(e.charCodeAt(0)===t||e.charCodeAt(0)===n&&e.charCodeAt(1)!==t){throw new Error(`Export should be relative path and start with "./", got ${JSON.stringify(e)}.`)}const i=e.charCodeAt(e.length-1)===t;if(i!==r){throw new Error(r?`Expecting folder to folder mapping. ${JSON.stringify(e)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(e)} should not end with "/"`)}}function isConditionalMapping(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function directMapping(e,t,n){if(t===null)return[];const r=e!==undefined;if(typeof t==="string"){assertExport(t,r);return r?[`${t}${e}`]:[t]}const i=[];for(const s of t){if(typeof s==="string"){assertExport(s,r);i.push(r?`${s}${e}`:s);continue}const t=conditionalMapping(s,n);if(!t)continue;const o=directMapping(e,t,n);for(const e of o){i.push(e)}}return i}function conditionalMapping(e,t){let n=[[e,Object.keys(e),0]];e:while(n.length>0){const[e,r,i]=n[n.length-1];const s=r.length-1;for(let o=i;o<r.length;o++){const i=r[o];if(o!==s){if(i==="default"){throw new Error("Default condition should be last one")}}else if(i==="default"){const t=e[i];if(isConditionalMapping(t)){const e=t;n[n.length-1][2]=o+1;n.push([e,Object.keys(e),0]);continue e}return t}if(t.has(i)){const t=e[i];if(isConditionalMapping(t)){const e=t;n[n.length-1][2]=o+1;n.push([e,Object.keys(e),0]);continue e}return t}}n.pop()}return null}function buildPathTree(e){const r={children:null,folder:null,files:new Map};if(typeof e==="string"){r.files.set("*root*",e);return r}else if(Array.isArray(e)){r.files.set("*root*",e.slice());return r}const i=Object.keys(e);for(let s=0;s<i.length;s++){const o=i[s];if(o.charCodeAt(0)!==n){if(s===0){while(s<i.length){const e=i[s].charCodeAt(0);if(e===n||e===t){throw new Error(`Export field key should be relative path and start with "." (key: ${JSON.stringify(o)})`)}s++}r.files.set("*root*",e);return r}throw new Error(`Export field key should be relative path and start with "." (key: ${JSON.stringify(o)})`)}if(o.length===1){r.files.set("*root*",e[o]);continue}if(o.charCodeAt(1)!==t){throw new Error(`Export field key should be relative path and start with "./" (key: ${JSON.stringify(o)})`)}let a=r;let c=2;let u=o.indexOf("/",2);while(u!==-1){const e=o.slice(c,u);let t;if(a.children===null){t={children:null,folder:null,files:new Map};a.children=new Map;a.children.set(e,t)}else{t=a.children.get(e);if(!t){t={children:null,folder:null,files:new Map};a.children.set(e,t)}}a=t;c=u+1;u=o.indexOf("/",c)}if(c<o.length){a.files.set(o.slice(c),e[o])}else{a.folder=e[o]}}return r}},90571:(e,t,n)=>{e.exports=n(95890)},80018:(e,t,n)=>{"use strict";var r=n(90571);var i=n(85622).extname;var s=/^\s*([^;\s]*)(?:;|\s|$)/;var o=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=s.exec(e);var n=t&&r[t[1].toLowerCase()];if(n&&n.charset){return n.charset}if(t&&o.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var n=e.indexOf("/")===-1?t.lookup(e):e;if(!n){return false}if(n.indexOf("charset")===-1){var r=t.charset(n);if(r)n+="; charset="+r.toLowerCase()}return n}function extension(e){if(!e||typeof e!=="string"){return false}var n=s.exec(e);var r=n&&t.extensions[n[1].toLowerCase()];if(!r||!r.length){return false}return r[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var n=i("x."+e).toLowerCase().substr(1);if(!n){return false}return t.types[n]||false}function populateMaps(e,t){var n=["nginx","apache",undefined,"iana"];Object.keys(r).forEach(function forEachMimeType(i){var s=r[i];var o=s.extensions;if(!o||!o.length){return}e[i]=o;for(var a=0;a<o.length;a++){var c=o[a];if(t[c]){var u=n.indexOf(r[t[c]].source);var l=n.indexOf(s.source);if(t[c]!=="application/octet-stream"&&(u>l||u===l&&t[c].substr(0,12)==="application/")){continue}}t[c]=i}})}},76185:(e,t,n)=>{"use strict";const r=n(33839);const i=e=>{if(typeof e!=="object"||!e)return e;const t=Object.assign({},e);if(e.mappings){t.mappings=Buffer.from(e.mappings,"utf-8")}if(e.sourcesContent){t.sourcesContent=e.sourcesContent.map(e=>e&&Buffer.from(e,"utf-8"))}return t};const s=e=>{if(typeof e!=="object"||!e)return e;const t=Object.assign({},e);if(e.mappings){t.mappings=e.mappings.toString("utf-8")}if(e.sourcesContent){t.sourcesContent=e.sourcesContent.map(e=>e&&e.toString("utf-8"))}return t};class CachedSource extends r{constructor(e,t){super();this._source=e;this._cachedSourceType=t?t.source:undefined;this._cachedSource=undefined;this._cachedBuffer=t?t.buffer:undefined;this._cachedSize=t?t.size:undefined;this._cachedMaps=t?t.maps:new Map}getCachedData(){if(this._cachedSource){this.buffer()}const e=new Map;for(const t of this._cachedMaps){if(t[1].bufferedMap===undefined){t[1].bufferedMap=i(t[1].map)}e.set(t[0],{map:undefined,bufferedMap:t[1].bufferedMap})}return{buffer:this._cachedBuffer,source:this._cachedSourceType!==undefined?this._cachedSourceType:typeof this._cachedSource==="string"?true:Buffer.isBuffer(this._cachedSource)?false:undefined,size:this._cachedSize,maps:e}}original(){return this._source}_ensureSource(){}source(){if(this._cachedSource!==undefined)return this._cachedSource;if(this._cachedBuffer&&this._cachedSourceType!==undefined){return this._cachedSource=this._cachedSourceType?this._cachedBuffer.toString("utf-8"):this._cachedBuffer}else{return this._cachedSource=this._source.source()}}buffer(){if(typeof this._cachedBuffer!=="undefined")return this._cachedBuffer;if(typeof this._cachedSource!=="undefined"){if(Buffer.isBuffer(this._cachedSource)){return this._cachedBuffer=this._cachedSource}return this._cachedBuffer=Buffer.from(this._cachedSource,"utf-8")}if(typeof this._source.buffer==="function"){return this._cachedBuffer=this._source.buffer()}const e=this.source();if(Buffer.isBuffer(e)){return this._cachedBuffer=e}return this._cachedBuffer=Buffer.from(e,"utf-8")}size(){if(typeof this._cachedSize!=="undefined")return this._cachedSize;if(typeof this._cachedSource!=="undefined"){return this._cachedSize=Buffer.byteLength(this._cachedSource)}if(typeof this._cachedBuffer!=="undefined"){return this._cachedSize=this._cachedBuffer.length}return this._cachedSize=this._source.size()}sourceAndMap(e){const t=e?JSON.stringify(e):"{}";let n=this._cachedMaps.get(t);if(n&&n.map===undefined){n.map=s(n.bufferedMap)}if(typeof this._cachedSource!=="undefined"){if(n===undefined){const n=this._source.map(e);this._cachedMaps.set(t,{map:n,bufferedMap:undefined});return{source:this._cachedSource,map:n}}else{return{source:this._cachedSource,map:n.map}}}else if(n!==undefined){return{source:this._cachedSource=this._source.source(),map:n.map}}else{const n=this._source.sourceAndMap(e);this._cachedSource=n.source;this._cachedMaps.set(t,{map:n.map,bufferedMap:undefined});return n}}map(e){const t=e?JSON.stringify(e):"{}";let n=this._cachedMaps.get(t);if(n!==undefined){if(n.map===undefined){n.map=s(n.bufferedMap)}return n.map}const r=this._source.map(e);this._cachedMaps.set(t,{map:r,bufferedMap:undefined});return r}updateHash(e){this._source.updateHash(e)}}e.exports=CachedSource},7961:(e,t,n)=>{"use strict";const r=n(33839);class CompatSource extends r{static from(e){return e instanceof r?e:new CompatSource(e)}constructor(e){super();this._sourceLike=e}source(){return this._sourceLike.source()}buffer(){if(typeof this._sourceLike.buffer==="function"){return this._sourceLike.buffer()}return super.buffer()}size(){if(typeof this._sourceLike.size==="function"){return this._sourceLike.size()}return super.size()}map(e){if(typeof this._sourceLike.map==="function"){return this._sourceLike.map(e)}return super.map(e)}sourceAndMap(e){if(typeof this._sourceLike.sourceAndMap==="function"){return this._sourceLike.sourceAndMap(e)}return super.sourceAndMap(e)}updateHash(e){if(typeof this._sourceLike.updateHash==="function"){return this._sourceLike.updateHash(e)}if(typeof this._sourceLike.map==="function"){throw new Error("A Source-like object with a 'map' method must also provide an 'updateHash' method")}e.update(this.buffer())}}e.exports=CompatSource},96123:(e,t,n)=>{"use strict";const r=n(33839);const i=n(76274);const{SourceNode:s,SourceMapConsumer:o}=n(99596);const{SourceListMap:a,fromStringWithSourceMap:c}=n(6900);const{getSourceAndMap:u,getMap:l}=n(89588);const f=new WeakSet;class ConcatSource extends r{constructor(){super();this._children=[];for(let e=0;e<arguments.length;e++){const t=arguments[e];if(t instanceof ConcatSource){for(const e of t._children){this._children.push(e)}}else{this._children.push(t)}}this._isOptimized=arguments.length===0}getChildren(){if(!this._isOptimized)this._optimize();return this._children}add(e){if(e instanceof ConcatSource){for(const t of e._children){this._children.push(t)}}else{this._children.push(e)}this._isOptimized=false}addAllSkipOptimizing(e){for(const t of e){this._children.push(t)}}buffer(){if(!this._isOptimized)this._optimize();const e=[];for(const t of this._children){if(typeof t.buffer==="function"){e.push(t.buffer())}else{const n=t.source();if(Buffer.isBuffer(n)){e.push(n)}else{e.push(Buffer.from(n,"utf-8"))}}}return Buffer.concat(e)}source(){if(!this._isOptimized)this._optimize();let e="";for(const t of this._children){e+=t.source()}return e}size(){if(!this._isOptimized)this._optimize();let e=0;for(const t of this._children){e+=t.size()}return e}map(e){return l(this,e)}sourceAndMap(e){return u(this,e)}node(e){if(!this._isOptimized)this._optimize();const t=new s(null,null,null,this._children.map(function(t){if(typeof t.node==="function")return t.node(e);const n=t.sourceAndMap(e);if(n.map){return s.fromStringWithSourceMap(n.source,new o(n.map))}else{return n.source}}));return t}listMap(e){if(!this._isOptimized)this._optimize();const t=new a;for(const n of this._children){if(typeof n==="string"){t.add(n)}else if(typeof n.listMap==="function"){t.add(n.listMap(e))}else{const r=n.sourceAndMap(e);if(r.map){t.add(c(r.source,r.map))}else{t.add(r.source)}}}return t}updateHash(e){if(!this._isOptimized)this._optimize();e.update("ConcatSource");for(const t of this._children){t.updateHash(e)}}_optimize(){const e=[];let t=undefined;let n=undefined;const r=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e)}else{n=[typeof n==="string"?n:n.source(),e]}};const s=e=>{if(n===undefined){n=e}else if(Array.isArray(n)){n.push(e.source())}else{n=[typeof n==="string"?n:n.source(),e.source()]}};const o=()=>{if(Array.isArray(n)){const t=new i(n.join(""));f.add(t);e.push(t)}else if(typeof n==="string"){const t=new i(n);f.add(t);e.push(t)}else{e.push(n)}};for(const i of this._children){if(typeof i==="string"){if(t===undefined){t=i}else{t+=i}}else{if(t!==undefined){r(t);t=undefined}if(f.has(i)){s(i)}else{if(n!==undefined){o();n=undefined}e.push(i)}}}if(t!==undefined){r(t)}if(n!==undefined){o()}this._children=e;this._isOptimized=true}}e.exports=ConcatSource},11176:(e,t,n)=>{"use strict";const r=n(33839);const{SourceNode:i}=n(99596);const{SourceListMap:s}=n(6900);const{getSourceAndMap:o,getMap:a}=n(89588);const c=/(?!$)[^\n\r;{}]*[\n\r;{}]*/g;function _splitCode(e){return e.match(c)||[]}class OriginalSource extends r{constructor(e,t){super();const n=Buffer.isBuffer(e);this._value=n?undefined:e;this._valueAsBuffer=n?e:undefined;this._name=t}getName(){return this._name}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(e){return a(this,e)}sourceAndMap(e){return o(this,e)}node(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}const t=this._value;const n=this._name;const r=t.split("\n");const s=new i(null,null,null,r.map(function(t,s){let o=0;if(e&&e.columns===false){const e=t+(s!==r.length-1?"\n":"");return new i(s+1,0,n,e)}return new i(null,null,null,_splitCode(t+(s!==r.length-1?"\n":"")).map(function(e){if(/^\s*$/.test(e)){o+=e.length;return e}const t=new i(s+1,o,n,e);o+=e.length;return t}))}));s.setSourceContent(n,t);return s}listMap(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new s(this._value,this._name,this._value)}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("OriginalSource");e.update(this._valueAsBuffer);e.update(this._name||"")}}e.exports=OriginalSource},96276:(e,t,n)=>{"use strict";const r=n(33839);const i=n(76274);const{SourceNode:s}=n(99596);const{getSourceAndMap:o,getMap:a}=n(89588);const c=/\n(?=.|\s)/g;class PrefixSource extends r{constructor(e,t){super();this._source=typeof t==="string"||Buffer.isBuffer(t)?new i(t,true):t;this._prefix=e}getPrefix(){return this._prefix}original(){return this._source}source(){const e=this._source.source();const t=this._prefix;return t+e.replace(c,"\n"+t)}map(e){return a(this,e)}sourceAndMap(e){return o(this,e)}node(e){const t=this._source.node(e);const n=this._prefix;const r=[];const i=new s;t.walkSourceContents(function(e,t){i.setSourceContent(e,t)});let o=true;t.walk(function(e,t){const i=e.split(/(\n)/);for(let e=0;e<i.length;e+=2){const a=e+1<i.length;const c=i[e]+(a?"\n":"");if(c){if(o){r.push(n)}r.push(new s(t.line,t.column,t.source,c,t.name));o=a}}});i.add(r);return i}listMap(e){const t=this._prefix;const n=this._source.listMap(e);let r=true;return n.mapGeneratedCode(function(e){let n=e.replace(c,"\n"+t);if(r)n=t+n;r=e.charCodeAt(e.length-1)===10;return n})}updateHash(e){e.update("PrefixSource");this._source.updateHash(e);e.update(this._prefix)}}e.exports=PrefixSource},76274:(e,t,n)=>{"use strict";const r=n(33839);const{SourceNode:i}=n(99596);const{SourceListMap:s}=n(6900);class RawSource extends r{constructor(e,t=false){super();const n=Buffer.isBuffer(e);if(!n&&typeof e!=="string"){throw new TypeError("argument 'value' must be either string of Buffer")}this._valueIsBuffer=!t&&n;this._value=t&&n?undefined:e;this._valueAsBuffer=n?e:undefined}isBuffer(){return this._valueIsBuffer}source(){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return this._value}buffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}return this._valueAsBuffer}map(e){return null}node(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new i(null,null,null,this._value)}listMap(e){if(this._value===undefined){this._value=this._valueAsBuffer.toString("utf-8")}return new s(this._value)}updateHash(e){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._value,"utf-8")}e.update("RawSource");e.update(this._valueAsBuffer)}}e.exports=RawSource},79722:(e,t,n)=>{"use strict";const r=n(33839);const{SourceNode:i}=n(99596);const{getSourceAndMap:s,getMap:o,getNode:a,getListMap:c}=n(89588);class Replacement{constructor(e,t,n,r,i){this.start=e;this.end=t;this.content=n;this.insertIndex=r;this.name=i}}class ReplaceSource extends r{constructor(e,t){super();this._source=e;this._name=t;this._replacements=[];this._isSorted=true}getName(){return this._name}getReplacements(){const e=Array.from(this._replacements);e.sort((e,t)=>{return e.insertIndex-t.insertIndex});return e}replace(e,t,n,r){if(typeof n!=="string")throw new Error("insertion must be a string, but is a "+typeof n);this._replacements.push(new Replacement(e,t,n,this._replacements.length,r));this._isSorted=false}insert(e,t,n){if(typeof t!=="string")throw new Error("insertion must be a string, but is a "+typeof t+": "+t);this._replacements.push(new Replacement(e,e-1,t,this._replacements.length,n));this._isSorted=false}source(){return this._replaceString(this._source.source())}map(e){if(this._replacements.length===0){return this._source.map(e)}return o(this,e)}sourceAndMap(e){if(this._replacements.length===0){return this._source.sourceAndMap(e)}return s(this,e)}original(){return this._source}_sortReplacements(){if(this._isSorted)return;this._replacements.sort(function(e,t){const n=t.end-e.end;if(n!==0)return n;const r=t.start-e.start;if(r!==0)return r;return t.insertIndex-e.insertIndex});this._isSorted=true}_replaceString(e){if(typeof e!=="string")throw new Error("str must be a string, but is a "+typeof e+": "+e);this._sortReplacements();const t=[e];this._replacements.forEach(function(e){const n=t.pop();const r=this._splitString(n,Math.floor(e.end+1));const i=this._splitString(r[0],Math.floor(e.start));t.push(r[1],e.content,i[0])},this);let n="";for(let e=t.length-1;e>=0;--e){n+=t[e]}return n}node(e){const t=a(this._source,e);if(this._replacements.length===0){return t}this._sortReplacements();const n=new ReplacementEnumerator(this._replacements);const r=[];let s=0;const o=Object.create(null);const c=Object.create(null);const u=new i;t.walkSourceContents(function(e,t){u.setSourceContent(e,t);o["$"+e]=t});const l=this._replaceInStringNode.bind(this,r,n,function getOriginalSource(e){const t="$"+e.source;let n=c[t];if(!n){const e=o[t];if(!e)return null;n=e.split("\n").map(function(e){return e+"\n"});c[t]=n}if(e.line>n.length)return null;const r=n[e.line-1];return r.substr(e.column)});t.walk(function(e,t){s=l(e,s,t)});const f=n.footer();if(f){r.push(f)}u.add(r);return u}listMap(e){let t=c(this._source,e);this._sortReplacements();let n=0;const r=this._replacements;let i=r.length-1;let s=0;t=t.mapGeneratedCode(function(e){const t=n+e.length;if(s>e.length){s-=e.length;e=""}else{if(s>0){e=e.substr(s);n+=s;s=0}let o="";while(i>=0&&r[i].start<t){const a=r[i];const c=Math.floor(a.start);const u=Math.floor(a.end+1);const l=e.substr(0,Math.max(0,c-n));if(u<=t){const t=e.substr(Math.max(0,u-n));o+=l+a.content;e=t;n=Math.max(n,u)}else{o+=l+a.content;e="";s=u-t}i--}e=o+e}n=t;return e});let o="";while(i>=0){o+=r[i].content;i--}if(o){t.add(o)}return t}_splitString(e,t){return t<=0?["",e]:[e.substr(0,t),e.substr(t)]}_replaceInStringNode(e,t,n,r,s,o){let a=undefined;do{let c=t.position-s;if(c<0){c=0}if(c>=r.length||t.done){if(t.emit){const t=new i(o.line,o.column,o.source,r,o.name);e.push(t)}return s+r.length}const u=o.column;let l;if(c>0){l=r.slice(0,c);if(a===undefined){a=n(o)}if(a&&a.length>=c&&a.startsWith(l)){o.column+=c;a=a.substr(c)}}const f=t.next();if(!f){if(c>0){const t=new i(o.line,u,o.source,l,o.name);e.push(t)}if(t.value){e.push(new i(o.line,o.column,o.source,t.value,o.name||t.name))}}r=r.substr(c);s+=c}while(true)}updateHash(e){this._sortReplacements();e.update("ReplaceSource");this._source.updateHash(e);e.update(this._name||"");for(const t of this._replacements){e.update(`${t.start}`);e.update(`${t.end}`);e.update(`${t.content}`);e.update(`${t.insertIndex}`);e.update(`${t.name}`)}}}class ReplacementEnumerator{constructor(e){this.replacements=e||[];this.index=this.replacements.length;this.done=false;this.emit=false;this.next()}next(){if(this.done)return true;if(this.emit){const e=this.replacements[this.index];const t=Math.floor(e.end+1);this.position=t;this.value=e.content;this.name=e.name}else{this.index--;if(this.index<0){this.done=true}else{const e=this.replacements[this.index];const t=Math.floor(e.start);this.position=t}}if(this.position<0)this.position=0;this.emit=!this.emit;return this.emit}footer(){if(!this.done&&!this.emit)this.next();if(this.done){return[]}else{let e="";for(let t=this.index;t>=0;t--){const n=this.replacements[t];e+=n.content}return e}}}e.exports=ReplaceSource},93883:(e,t,n)=>{"use strict";const r=n(33839);class SizeOnlySource extends r{constructor(e){super();this._size=e}_error(){return new Error("Content and Map of this Source is not available (only size() is supported)")}size(){return this._size}source(){throw this._error()}buffer(){throw this._error()}map(e){throw this._error()}updateHash(){throw this._error()}}e.exports=SizeOnlySource},33839:e=>{"use strict";class Source{source(){throw new Error("Abstract")}buffer(){const e=this.source();if(Buffer.isBuffer(e))return e;return Buffer.from(e,"utf-8")}size(){return this.buffer().length}map(e){return null}sourceAndMap(e){return{source:this.source(),map:this.map(e)}}updateHash(e){throw new Error("Abstract")}}e.exports=Source},82340:(e,t,n)=>{"use strict";const r=n(33839);const{SourceNode:i,SourceMapConsumer:s}=n(99596);const{SourceListMap:o,fromStringWithSourceMap:a}=n(6900);const{getSourceAndMap:c,getMap:u}=n(89588);const l=n(70701);class SourceMapSource extends r{constructor(e,t,n,r,i,s){super();const o=Buffer.isBuffer(e);this._valueAsString=o?undefined:e;this._valueAsBuffer=o?e:undefined;this._name=t;this._hasSourceMap=!!n;const a=Buffer.isBuffer(n);const c=typeof n==="string";this._sourceMapAsObject=a||c?undefined:n;this._sourceMapAsString=c?n:undefined;this._sourceMapAsBuffer=a?n:undefined;this._hasOriginalSource=!!r;const u=Buffer.isBuffer(r);this._originalSourceAsString=u?undefined:r;this._originalSourceAsBuffer=u?r:undefined;this._hasInnerSourceMap=!!i;const l=Buffer.isBuffer(i);const f=typeof i==="string";this._innerSourceMapAsObject=l||f?undefined:i;this._innerSourceMapAsString=f?i:undefined;this._innerSourceMapAsBuffer=l?i:undefined;this._removeOriginalSource=s}_ensureValueBuffer(){if(this._valueAsBuffer===undefined){this._valueAsBuffer=Buffer.from(this._valueAsString,"utf-8")}}_ensureValueString(){if(this._valueAsString===undefined){this._valueAsString=this._valueAsBuffer.toString("utf-8")}}_ensureOriginalSourceBuffer(){if(this._originalSourceAsBuffer===undefined&&this._hasOriginalSource){this._originalSourceAsBuffer=Buffer.from(this._originalSourceAsString,"utf-8")}}_ensureOriginalSourceString(){if(this._originalSourceAsString===undefined&&this._hasOriginalSource){this._originalSourceAsString=this._originalSourceAsBuffer.toString("utf-8")}}_ensureInnerSourceMapObject(){if(this._innerSourceMapAsObject===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsObject=JSON.parse(this._innerSourceMapAsString)}}_ensureInnerSourceMapBuffer(){if(this._innerSourceMapAsBuffer===undefined&&this._hasInnerSourceMap){this._ensureInnerSourceMapString();this._innerSourceMapAsBuffer=Buffer.from(this._innerSourceMapAsString,"utf-8")}}_ensureInnerSourceMapString(){if(this._innerSourceMapAsString===undefined&&this._hasInnerSourceMap){if(this._innerSourceMapAsBuffer!==undefined){this._innerSourceMapAsString=this._innerSourceMapAsBuffer.toString("utf-8")}else{this._innerSourceMapAsString=JSON.stringify(this._innerSourceMapAsObject)}}}_ensureSourceMapObject(){if(this._sourceMapAsObject===undefined){this._ensureSourceMapString();this._sourceMapAsObject=JSON.parse(this._sourceMapAsString)}}_ensureSourceMapBuffer(){if(this._sourceMapAsBuffer===undefined){this._ensureSourceMapString();this._sourceMapAsBuffer=Buffer.from(this._sourceMapAsString,"utf-8")}}_ensureSourceMapString(){if(this._sourceMapAsString===undefined){if(this._sourceMapAsBuffer!==undefined){this._sourceMapAsString=this._sourceMapAsBuffer.toString("utf-8")}else{this._sourceMapAsString=JSON.stringify(this._sourceMapAsObject)}}}getArgsAsBuffers(){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();return[this._valueAsBuffer,this._name,this._sourceMapAsBuffer,this._originalSourceAsBuffer,this._innerSourceMapAsBuffer,this._removeOriginalSource]}source(){this._ensureValueString();return this._valueAsString}map(e){if(!this._hasInnerSourceMap){this._ensureSourceMapObject();return this._sourceMapAsObject}return u(this,e)}sourceAndMap(e){if(!this._hasInnerSourceMap){this._ensureValueString();this._ensureSourceMapObject();return{source:this._valueAsString,map:this._sourceMapAsObject}}return c(this,e)}node(e){this._ensureValueString();this._ensureSourceMapObject();this._ensureOriginalSourceString();let t=i.fromStringWithSourceMap(this._valueAsString,new s(this._sourceMapAsObject));t.setSourceContent(this._name,this._originalSourceAsString);if(this._hasInnerSourceMap){this._ensureInnerSourceMapObject();t=l(t,new s(this._innerSourceMapAsObject),this._name,this._removeOriginalSource)}return t}listMap(e){this._ensureValueString();this._ensureSourceMapObject();e=e||{};if(e.module===false)return new o(this._valueAsString,this._name,this._valueAsString);return a(this._valueAsString,this._sourceMapAsObject)}updateHash(e){this._ensureValueBuffer();this._ensureSourceMapBuffer();this._ensureOriginalSourceBuffer();this._ensureInnerSourceMapBuffer();e.update("SourceMapSource");e.update(this._valueAsBuffer);e.update(this._sourceMapAsBuffer);if(this._hasOriginalSource){e.update(this._originalSourceAsBuffer)}if(this._hasInnerSourceMap){e.update(this._innerSourceMapAsBuffer)}e.update(this._removeOriginalSource?"true":"false")}}e.exports=SourceMapSource},70701:(e,t,n)=>{"use strict";const r=n(99596).SourceNode;const i=n(99596).SourceMapConsumer;const s=function(e,t,n,s){const o=new r;const a=[];const c={};const u={};const l={};const f={};t.eachMapping(function(e){(u[e.generatedLine]=u[e.generatedLine]||[]).push(e)},null,i.GENERATED_ORDER);e.walkSourceContents(function(e,t){c["$"+e]=t});const p=c["$"+n];const d=p?p.split("\n"):undefined;e.walk(function(e,i){if(i.source===n&&i.line&&u[i.line]){let n;const s=u[i.line];for(let e=0;e<s.length;e++){if(s[e].generatedColumn<=i.column){n=s[e]}}if(n){let s=false;let c;let u;let p;const h=n.source;if(d&&h&&(c=d[n.generatedLine-1])&&((p=f[h])||(u=t.sourceContentFor(h,true)))){if(!p){p=f[h]=u.split("\n")}const e=p[n.originalLine-1];if(e){const t=i.column-n.generatedColumn;if(t>0){const r=c.slice(n.generatedColumn,i.column);const s=e.slice(n.originalColumn,n.originalColumn+t);if(r===s){n=Object.assign({},n,{originalColumn:n.originalColumn+t,generatedColumn:i.column,name:undefined})}}if(!n.name&&i.name){s=e.slice(n.originalColumn,n.originalColumn+i.name.length)===i.name}}}const m=n.source;a.push(new r(n.originalLine,n.originalColumn,m,e,s?i.name:n.name));if(!("$"+m in l)){l["$"+m]=true;const e=t.sourceContentFor(m);if(e){o.setSourceContent(m,e)}}return}}if(s&&i.source===n||!i.source){a.push(e);return}const p=i.source;a.push(new r(i.line,i.column,p,e,i.name));if("$"+p in c){if(!("$"+p in l)){o.setSourceContent(p,c["$"+p]);delete c["$"+p]}}});o.add(a);return o};e.exports=s},89588:(e,t,n)=>{"use strict";const{SourceNode:r,SourceMapConsumer:i}=n(99596);const{SourceListMap:s,fromStringWithSourceMap:o}=n(6900);t.getSourceAndMap=((e,t)=>{if(t&&t.columns===false){return e.listMap(t).toStringWithSourceMap({file:"x"})}const n=e.node(t).toStringWithSourceMap({file:"x"});return{source:n.code,map:n.map.toJSON()}});t.getMap=((e,t)=>{if(t&&t.columns===false){return e.listMap(t).toStringWithSourceMap({file:"x"}).map}return e.node(t).toStringWithSourceMap({file:"x"}).map.toJSON()});t.getNode=((e,t)=>{if(typeof e.node==="function"){return e.node(t)}else{const n=e.sourceAndMap(t);if(n.map){return r.fromStringWithSourceMap(n.source,new i(n.map))}else{return new r(null,null,null,n.source)}}});t.getListMap=((e,t)=>{if(typeof e.listMap==="function"){return e.listMap(t)}else{const n=e.sourceAndMap(t);if(n.map){return o(n.source,n.map)}else{return new s(n.source)}}})},48135:(e,t,n)=>{const r=(e,n)=>{let r;Object.defineProperty(t,e,{get:()=>{if(n!==undefined){r=n();n=undefined}return r},configurable:true})};r("Source",()=>n(33839));r("RawSource",()=>n(76274));r("OriginalSource",()=>n(11176));r("SourceMapSource",()=>n(82340));r("CachedSource",()=>n(76185));r("ConcatSource",()=>n(96123));r("ReplaceSource",()=>n(79722));r("PrefixSource",()=>n(96276));r("SizeOnlySource",()=>n(93883));r("CompatSource",()=>n(7961))},83687:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;n<t.length;n++){t[n]=arguments[n]}var r=e.apply(this,t);var i=t[t.length-1];if(typeof r==="function"&&r!==i){Object.keys(i).forEach(function(e){r[e]=i[e]})}return r}}},64200:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},83314:(e,t,n)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var n=0,r=arguments.length;n<r;n++){t.push(arguments[n])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var n=e.prev;if(t){t.prev=n}if(n){n.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=n}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++){e.call(t,n.value,r,this);n=n.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--){e.call(t,n.value,r,this);n=n.prev}};Yallist.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++){n=n.next}if(t===e&&n!==null){return n.value}};Yallist.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++){n=n.prev}if(t===e&&n!==null){return n.value}};Yallist.prototype.map=function(e,t){t=t||this;var n=new Yallist;for(var r=this.head;r!==null;){n.push(e.call(t,r.value,this));r=r.next}return n};Yallist.prototype.mapReverse=function(e,t){t=t||this;var n=new Yallist;for(var r=this.tail;r!==null;){n.push(e.call(t,r.value,this));r=r.prev}return n};Yallist.prototype.reduce=function(e,t){var n;var r=this.head;if(arguments.length>1){n=t}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;r!==null;i++){n=e(n,r.value,i);r=r.next}return n};Yallist.prototype.reduceReverse=function(e,t){var n;var r=this.tail;if(arguments.length>1){n=t}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;r!==null;i--){n=e(n,r.value,i);r=r.prev}return n};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var r=0,i=this.head;i!==null&&r<e;r++){i=i.next}for(;i!==null&&r<t;r++,i=i.next){n.push(i.value)}return n};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var r=this.length,i=this.tail;i!==null&&r>t;r--){i=i.prev}for(;i!==null&&r>e;r--,i=i.prev){n.push(i.value)}return n};Yallist.prototype.splice=function(e,t,...n){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,i=this.head;i!==null&&r<e;r++){i=i.next}var s=[];for(var r=0;i&&r<t;r++){s.push(i.value);i=this.removeNode(i)}if(i===null){i=this.tail}if(i!==this.head&&i!==this.tail){i=i.prev}for(var r=0;r<n.length;r++){i=insert(this,i,n[r])}return s};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next;n.next=r}this.head=t;this.tail=e;return this};function insert(e,t,n){var r=t===e.head?new Node(n,null,t,e):new Node(n,t,t.next,e);if(r.next===null){e.tail=r}if(r.prev===null){e.head=r}e.length++;return r}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,n,r){if(!(this instanceof Node)){return new Node(e,t,n,r)}this.list=r;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(n){n.prev=this;this.next=n}else{this.next=null}}try{n(64200)(Yallist)}catch(e){}},77086:(module,__unused_webpack_exports,__webpack_require__)=>{const resolve=__webpack_require__(47030);const fs=__webpack_require__(15808);const crypto=__webpack_require__(76417);const{join:join,dirname:dirname,extname:extname,relative:relative}=__webpack_require__(85622);const webpack=__webpack_require__(86443);const MemoryFS=__webpack_require__(56342);const terser=__webpack_require__(38033);const tsconfigPaths=__webpack_require__(46543);const{loadTsconfig:loadTsconfig}=__webpack_require__(9492);const TsconfigPathsPlugin=__webpack_require__(96217);const shebangRegEx=__webpack_require__(89681);const nccCacheDir=__webpack_require__(13946);const LicenseWebpackPlugin=__webpack_require__(58907).s;const{version:nccVersion}=__webpack_require__(60306);fs.gracefulify(__webpack_require__(35747));const SUPPORTED_EXTENSIONS=[".js",".json",".node",".mjs",".ts",".tsx"];const hashOf=e=>{return crypto.createHash("md4").update(e).digest("hex").slice(0,10)};const defaultPermissions=438;const relocateLoader=eval('require(__dirname + "/loaders/relocate-loader.js")');module.exports=((entry,{cache:cache,externals:externals=[],filename:filename="index"+(entry.endsWith(".cjs")?".cjs":".js"),minify:minify=false,sourceMap:sourceMap=false,sourceMapRegister:sourceMapRegister=true,sourceMapBasePrefix:sourceMapBasePrefix="../",watch:watch=false,v8cache:v8cache=false,filterAssetBase:filterAssetBase=process.cwd(),quiet:quiet=false,debugLog:debugLog=false,transpileOnly:transpileOnly=false,license:license=""}={})=>{const ext=extname(filename);if(!quiet){console.log(`ncc: Version ${nccVersion}`);console.log(`ncc: Compiling file ${filename}`)}const resolvedEntry=resolve.sync(entry);process.env.TYPESCRIPT_LOOKUP_PATH=resolvedEntry;const shebangMatch=fs.readFileSync(resolvedEntry).toString().match(shebangRegEx);const mfs=new MemoryFS;const existingAssetNames=[filename];if(sourceMap){existingAssetNames.push(`${filename}.map`);existingAssetNames.push(`sourcemap-register${ext}`)}if(v8cache){existingAssetNames.push(`${filename}.cache`);existingAssetNames.push(`${filename}.cache${ext}`)}const resolvePlugins=[];try{const e=tsconfigPaths.loadConfig();const t=loadTsconfig(e.configFileAbsolutePath);const n={silent:true};if(t.compilerOptions.allowJs){n.extensions=SUPPORTED_EXTENSIONS}resolvePlugins.push(new TsconfigPathsPlugin(n));if(e.resultType==="success"){tsconfigMatchPath=tsconfigPaths.createMatchPath(e.absoluteBaseUrl,e.paths)}}catch(e){}resolvePlugins.push({apply(e){const t=e.resolve;e.resolve=function(e,n,r,i,s){const o=this;t.call(o,e,n,r,i,function(a,c,u){if(u)return s(null,c,u);if(a&&!a.message.startsWith("Can't resolve"))return s(a);if(r.endsWith(".js")&&e.issuer&&(e.issuer.endsWith(".ts")||e.issuer.endsWith(".tsx"))){return t.call(o,e,n,r.slice(0,-3),i,function(e,t,n){if(n)return s(null,t,n);if(e&&!e.message.startsWith("Can't resolve"))return s(e);s(null,__dirname+"/@@notfound.js?"+(externalMap.get(r)||r),r)})}s(null,__dirname+"/@@notfound.js?"+(externalMap.get(r)||r),r)})}}});const externalMap=new Map;if(Array.isArray(externals))externals.forEach(e=>externalMap.set(e,e));else if(typeof externals==="object")Object.keys(externals).forEach(e=>externalMap.set(e,externals[e]));let watcher,watchHandler,rebuildHandler;var plugins=[{apply(e){e.hooks.compilation.tap("relocate-loader",e=>relocateLoader.initAssetCache(e));e.hooks.watchRun.tap("ncc",()=>{if(rebuildHandler)rebuildHandler()});e.hooks.normalModuleFactory.tap("ncc",e=>{function handler(e){e.hooks.assign.for("require").intercept({register:e=>{if(e.name!=="CommonJsPlugin"){return e}e.fn=(()=>{});return e}})}e.hooks.parser.for("javascript/auto").tap("ncc",handler);e.hooks.parser.for("javascript/dynamic").tap("ncc",handler);return e})}}];if(typeof license==="string"&&license.length>0){plugins.push(new LicenseWebpackPlugin({outputFilename:license}))}const compiler=webpack({entry:entry,cache:cache===false?undefined:{type:"filesystem",cacheDirectory:typeof cache==="string"?cache:nccCacheDir,name:`ncc_${hashOf(entry)}`,version:nccVersion},amd:false,optimization:{nodeEnv:false,minimize:false,moduleIds:"deterministic",chunkIds:"deterministic",mangleExports:true,concatenateModules:true,innerGraph:true,sideEffects:true},devtool:sourceMap?"cheap-module-source-map":false,mode:"production",target:"node",stats:{logging:"error"},infrastructureLogging:{level:"error"},output:{path:"/",filename:ext===".cjs"?filename+".js":filename,libraryTarget:"commonjs2",strictModuleExceptionHandling:true},resolve:{extensions:SUPPORTED_EXTENSIONS,mainFields:["main"],plugins:resolvePlugins},node:false,externals:async({context:e,request:t},n)=>{if(externalMap.has(t))return n(null,`commonjs ${externalMap.get(t)}`);return n()},module:{rules:[{test:/@@notfound\.js$/,use:[{loader:eval('__dirname + "/loaders/notfound-loader.js"')}]},{test:/\.(js|mjs|tsx?|node)$/,use:[{loader:eval('__dirname + "/loaders/empty-loader.js"')},{loader:eval('__dirname + "/loaders/relocate-loader.js"'),options:{filterAssetBase:filterAssetBase,existingAssetNames:existingAssetNames,escapeNonAnalyzableRequires:true,wrapperCompatibility:true,debugLog:debugLog}}]},{test:/\.tsx?$/,use:[{loader:eval('__dirname + "/loaders/uncacheable.js"')},{loader:eval('__dirname + "/loaders/ts-loader.js"'),options:{transpileOnly:transpileOnly,compiler:eval('__dirname + "/typescript.js"'),compilerOptions:{outDir:"//",noEmit:false}}}]},{parser:{amd:false},exclude:/\.(node|json)$/,use:[{loader:eval('__dirname + "/loaders/shebang-loader.js"')}]}]},plugins:plugins});compiler.outputFileSystem=mfs;if(!watch){return new Promise((e,t)=>{compiler.run((n,r)=>{if(n)return t(n);compiler.close(n=>{if(n)return t(n);if(r.hasErrors()){const e=r.compilation.errors.map(e=>e.message).join("\n");return t(new Error(e))}e(r)})})}).then(finalizeHandler)}else{if(typeof watch==="object"){if(!watch.watch)throw new Error("Watcher class must be a valid Webpack WatchFileSystem class instance (https://github.com/webpack/webpack/blob/master/lib/node/NodeWatchFileSystem.js)");compiler.watchFileSystem=watch;watch.inputFileSystem=compiler.inputFileSystem}let e;watcher=compiler.watch({},(t,n)=>{if(t)return watchHandler({err:t});if(n.hasErrors())return watchHandler({err:n.toString()});const r=finalizeHandler(n);if(watchHandler)watchHandler(r);else e=r});let t=false;return{close(){if(!watcher)throw new Error("No watcher to close.");if(t)throw new Error("Watcher already closed.");t=true;watcher.close()},handler(t){if(watchHandler)throw new Error("Watcher handler already provided.");watchHandler=t;if(e){t(e);e=null}},rebuild(e){if(rebuildHandler)throw new Error("Rebuild handler already provided.");rebuildHandler=e}}}function finalizeHandler(e){const t=Object.create(null);getFlatFiles(mfs.data,t,relocateLoader.getAssetPermissions);const n=Object.create(null);for(const[e,r]of Object.entries(relocateLoader.getSymlinks())){const i=join(dirname(e),r);if(i in t)n[e]=r}delete t[filename+(ext===".cjs"?".js":"")];delete t[`${filename}${ext===".cjs"?".js":""}.map`];let r=mfs.readFileSync(`/${filename}${ext===".cjs"?".js":""}`,"utf8");let i=sourceMap?mfs.readFileSync(`/${filename}${ext===".cjs"?".js":""}.map`,"utf8"):null;if(i){i=JSON.parse(i);i.sources=i.sources.map(e=>{while(e.startsWith("webpack:///"))e=e.slice(11);if(e.startsWith("//"))e=e.slice(1);if(e.startsWith("/"))e=relative(process.cwd(),e).replace(/\\/g,"/");if(e.startsWith("external "))e="node:"+e.slice(9);if(e.startsWith("./"))e=e.slice(2);if(e.startsWith("(webpack)"))e="webpack"+e.slice(9);if(e.startsWith("webpack/"))return"/webpack/"+e.slice(8);return sourceMapBasePrefix+e})}if(minify){const e=terser.minify(r,{compress:false,mangle:{keep_classnames:true,keep_fnames:true},sourceMap:sourceMap?{content:i,filename:filename,url:`${filename}.map`}:false});if(e.code!==undefined)({code:r,map:i}={code:e.code,map:sourceMap?JSON.parse(e.map):undefined})}if(v8cache){const{Script:e}=__webpack_require__(92184);t[`${filename}.cache`]={source:new e(r).createCachedData(),permissions:defaultPermissions};t[`${filename}.cache${ext}`]={source:r,permissions:defaultPermissions};if(i){t[filename+".map"]={source:JSON.stringify(i),permissions:defaultPermissions};i=undefined}const n=-"(function (exports, require, module, __filename, __dirname) { ".length;r=`const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module');\n`+`const basename = __dirname + '/${filename}';\n`+`const source = readFileSync(basename + '.cache${ext}', 'utf-8');\n`+`const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache');\n`+`const scriptOpts = { filename: basename + '.cache${ext}', columnOffset: ${n} }\n`+`const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts);\n`+`(script.runInThisContext())(exports, require, module, __filename, __dirname);\n`+`if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} });\n`}if(sourceMap&&sourceMapRegister){r=`require('./sourcemap-register${ext}');`+r;t[`sourcemap-register${ext}`]={source:fs.readFileSync(`${__dirname}/sourcemap-register.js.cache.js`),permissions:defaultPermissions}}if(shebangMatch){r=shebangMatch[0]+r;if(i)i.mappings=";"+i.mappings}return{code:r,map:i?JSON.stringify(i):undefined,assets:t,symlinks:n,stats:e}}});function getFlatFiles(e,t,n,r=""){for(const i of Object.keys(e)){const s=e[i];const o=`${r}/${i}`;if(s[""]===true)getFlatFiles(s,t,n,o);else if(!o.endsWith("/")){t[o.substr(1)]={source:e[i],permissions:n(o.substr(1))}}}}},13946:(e,t,n)=>{e.exports=n(12087).tmpdir()+"/ncc-cache"},89681:e=>{e.exports=/^#![^\n\r]*[\r\n]/},98063:module=>{module.exports=eval("require")("pnpapi")},42357:e=>{"use strict";e.exports=require("assert")},77303:e=>{"use strict";e.exports=require("async_hooks")},64293:e=>{"use strict";e.exports=require("buffer")},63129:e=>{"use strict";e.exports=require("child_process")},57082:e=>{"use strict";e.exports=require("console")},27619:e=>{"use strict";e.exports=require("constants")},76417:e=>{"use strict";e.exports=require("crypto")},28614:e=>{"use strict";e.exports=require("events")},35747:e=>{"use strict";e.exports=require("fs")},98605:e=>{"use strict";e.exports=require("http")},57211:e=>{"use strict";e.exports=require("https")},57012:e=>{"use strict";e.exports=require("inspector")},32282:e=>{"use strict";e.exports=require("module")},12087:e=>{"use strict";e.exports=require("os")},85622:e=>{"use strict";e.exports=require("path")},71191:e=>{"use strict";e.exports=require("querystring")},92413:e=>{"use strict";e.exports=require("stream")},24304:e=>{"use strict";e.exports=require("string_decoder")},33867:e=>{"use strict";e.exports=require("tty")},78835:e=>{"use strict";e.exports=require("url")},31669:e=>{"use strict";e.exports=require("util")},92184:e=>{"use strict";e.exports=require("vm")},65013:e=>{"use strict";e.exports=require("worker_threads")}};var __webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var t=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var n=true;try{__webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}t.loaded=true;return t.exports}(()=>{__webpack_require__.nmd=(e=>{e.paths=[];if(!e.children)e.children=[];return e})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(77086)})();
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/empty-loader.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/empty-loader.js new file mode 100644 index 0000000..d6926e3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/empty-loader.js @@ -0,0 +1,31 @@ +// returns the base-level package folder based on detecting "node_modules" +// package name boundaries +const pkgNameRegEx = /^(@[^\\\/]+[\\\/])?[^\\\/]+/; +function getPackageBase(id) { + const pkgIndex = id.lastIndexOf('node_modules'); + if (pkgIndex !== -1 && + (id[pkgIndex - 1] === '/' || id[pkgIndex - 1] === '\\') && + (id[pkgIndex + 12] === '/' || id[pkgIndex + 12] === '\\')) { + const pkgNameMatch = id.substr(pkgIndex + 13).match(pkgNameRegEx); + if (pkgNameMatch) + return id.substr(0, pkgIndex + 13 + pkgNameMatch[0].length); + } +} + +const emptyModules = { 'uglify-js': true, 'uglify-es': true }; + +module.exports = function (input, map) { + const id = this.resourcePath; + const pkgBase = getPackageBase(id); + if (pkgBase) { + const baseParts = pkgBase.split('/'); + if (baseParts[baseParts.length - 2] === 'node_modules') { + const pkgName = baseParts[baseParts.length - 1]; + if (pkgName in emptyModules) { + console.warn(`ncc: Ignoring build of ${pkgName}, as it is not statically analyzable. Build with "--external ${pkgName}" if this package is needed.`); + return ''; + } + } + } + this.callback(null, input, map); +}; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/notfound-loader.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/notfound-loader.js new file mode 100644 index 0000000..5b925fa --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/notfound-loader.js @@ -0,0 +1,7 @@ +module.exports = function (input, map) { + if (this.cacheable) + this.cacheable(); + const id = this.resourceQuery.substr(1); + input = input.replace('\'UNKNOWN\'', JSON.stringify(id)); + this.callback(null, input, map); +}; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/readme.md b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/readme.md new file mode 100644 index 0000000..98cad61 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/readme.md @@ -0,0 +1,11 @@ +# About this directory + +This directory will contain: + +- `relocate-loader.js` the ncc loader for handling CommonJS asset and reference relocations +- `shebang-loader.js` the ncc loader to ensure proper hash bang support in Node.js CLI files +- `ts-loader.js` the ncc loader for handling TypeScript + +These are generated by the `build` step defined in `../../../package.json`. + +These files are published to npm. diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js new file mode 100644 index 0000000..e6e9f73 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js @@ -0,0 +1,8 @@ +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/relocate-loader.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache Binary files differnew file mode 100644 index 0000000..2d24e55 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache.js new file mode 100644 index 0000000..d11d3f5 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache.js @@ -0,0 +1 @@ +module.exports=(()=>{var __webpack_modules__={225:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function(e,t){"use strict";var r={};function __nested_webpack_require_220__(t){if(r[t]){return r[t].exports}var i=r[t]={i:t,l:false,exports:{}};e[t].call(i.exports,i,i.exports,__nested_webpack_require_220__);i.l=true;return i.exports}function startup(){return __nested_webpack_require_220__(379)}return startup()}({12:function(e){"use strict";if(!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,i){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var n=arguments.length;var s,a;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function afterTickOne(){e.call(null,t)});case 3:return process.nextTick(function afterTickTwo(){e.call(null,t,r)});case 4:return process.nextTick(function afterTickThree(){e.call(null,t,r,i)});default:s=new Array(n-1);a=0;while(a<s.length){s[a++]=arguments[a]}return process.nextTick(function afterTick(){e.apply(null,s)})}}},16:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var i=e.apply(this,t);var n=t[t.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach(function(e){i[e]=n[e]})}return i}}},20:function(e){e.exports=function(e,r){var i=[];for(var n=0;n<e.length;n++){var s=r(e[n],n);if(t(s))i.push.apply(i,s);else i.push(s)}return i};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},22:function(e,t,r){"use strict";var i=r(656);var n=r(817);var s=r(211);e.exports=function(e){if(typeof e!=="string"||e.length===0){return 0}var t=0;e=i(e);for(var r=0;r<e.length;r++){var a=n(e,r);if(a<=31||a>=127&&a<=159){continue}if(a>=65536){r++}if(s(a)){t+=2}else{t++}}return t}},30:function(e,t,r){"use strict";var i=r(64);var n=r(285);var s=r(468);var a=r(358);var u=e.exports=function(e,t,r){n.Transform.call(this,r);this.tracker=new a(e,t);this.name=e;this.id=this.tracker.id;this.tracker.on("change",delegateChange(this))};i.inherits(u,n.Transform);function delegateChange(e){return function(t,r,i){e.emit("change",t,r,e)}}u.prototype._transform=function(e,t,r){this.tracker.completeWork(e.length?e.length:1);this.push(e);r()};u.prototype._flush=function(e){this.tracker.finish();e()};s(u.prototype,"tracker").method("completed").method("addWork").method("finish")},55:function(e,t,r){var i=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var t=e.split(" ");var r=t.length>1?t[0]:"=";var n=(t.length>1?t[1]:t[0]).split(".");for(var s=0;s<3;++s){var a=Number(i[s]||0);var u=Number(n[s]||0);if(a===u){continue}if(r==="<"){return a<u}else if(r===">="){return a>=u}else{return false}}return r===">="}function matchesRange(e){var t=e.split(/ ?&& ?/);if(t.length===0){return false}for(var r=0;r<t.length;++r){if(!specifierIncluded(t[r])){return false}}return true}function versionIncluded(e){if(typeof e==="boolean"){return e}if(e&&typeof e==="object"){for(var t=0;t<e.length;++t){if(matchesRange(e[t])){return true}}return false}return matchesRange(e)}var n=r(347);var s={};for(var a in n){if(Object.prototype.hasOwnProperty.call(n,a)){s[a]=versionIncluded(n[a])}}e.exports=s},64:function(e){e.exports=__webpack_require__(669)},66:function(e){e.exports=__webpack_require__(747)},68:function(e){e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;Error.prepareStackTrace=e;return t[2].getFileName()}},72:function(e,t,r){"use strict";const i=r(589);function isUrlRequest(e,t){if(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!i.win32.isAbsolute(e)){return false}if(/^\/\//.test(e)){return false}if(/^[{}[\]#*;,'§$%&(=?`´^°<>]/.test(e)){return false}if((t===undefined||t===false)&&/^\//.test(e)){return false}return true}e.exports=isUrlRequest},77:function(e){e.exports=__webpack_require__(835)},83:function(e,t,r){var i=r(16);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},86:function(e,t,r){"use strict";var i=r(12);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;var s;Writable.WritableState=WritableState;var a=r(683);a.inherits=r(207);var u={deprecate:r(507)};var o=r(569);var l=r(945).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof f}var h=r(972);a.inherits(Writable,o);function nop(){}function WritableState(e,t){s=s||r(98);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;var n=e.highWaterMark;var a=e.writableHighWaterMark;var u=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=u;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var o=e.decodeStrings===false;this.decodeStrings=!o;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var c;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){c=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(c.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{c=function(e){return e instanceof this}}function Writable(e){s=s||r(98);if(!c.call(Writable,this)&&!(this instanceof s)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}o.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function validChunk(e,t,r,n){var s=true;var a=false;if(r===null){a=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){a=new TypeError("Invalid non-string/buffer chunk")}if(a){e.emit("error",a);i.nextTick(n,a);s=false}return s}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var s=!i.objectMode&&_isUint8Array(e);if(s&&!l.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ended)writeAfterEnd(this,r);else if(s||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,s,e,t,r)}return n};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=l.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,s){if(!r){var a=decodeChunk(t,i,n);if(i!==a){r=true;n="buffer";i=a}}var u=t.objectMode?1:i.length;t.length+=u;var o=t.length<t.highWaterMark;if(!o)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,u,i,n,s)}return o}function doWrite(e,t,r,i,n,s,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,s){--t.pendingcb;if(r){i.nextTick(s,n);i.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{s(n);e._writableState.errorEmitted=true;e.emit("error",n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var s=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,s);else{var a=needFinish(r);if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){n(afterWrite,e,r,a,s)}else{afterWrite(e,r,a,s)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var s=t.corkedRequestsFree;s.entry=r;var a=0;var u=true;while(r){n[a]=r;if(!r.isBuf)u=false;r=r.next;a+=1}n.allBuffers=u;doWrite(e,t,true,t.length,n,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var o=r.chunk;var l=r.encoding;var f=r.callback;var h=t.objectMode?1:o.length;doWrite(e,t,false,h,o,l,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending&&!i.finished)endWritable(this,i,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)})}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}if(t.corkedRequestsFree){t.corkedRequestsFree.next=e}else{t.corkedRequestsFree=e}}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},98:function(e,t,r){"use strict";var i=r(12);var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var s=r(683);s.inherits=r(207);var a=r(923);var u=r(86);s.inherits(Duplex,a);{var o=n(u.prototype);for(var l=0;l<o.length;l++){var f=o[l];if(!Duplex.prototype[f])Duplex.prototype[f]=u.prototype[f]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);a.call(this,e);u.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();i.nextTick(t,e)}},106:function(e,t,r){"use strict";const i=r(146);function getOptions(e){const t=e.query;if(typeof t==="string"&&t!==""){return i(e.query)}if(!t||typeof t!=="object"){return null}return t}e.exports=getOptions},113:function(e){"use strict";const t=/^[A-Z]:[/\\]|^\\\\/i;function urlToRequest(e,r){if(e===""){return""}const i=/^[^?]*~/;let n;if(t.test(e)){n=e}else if(r!==undefined&&r!==false&&/^\//.test(e)){switch(typeof r){case"string":if(i.test(r)){n=r.replace(/([^~/])$/,"$1/")+e.slice(1)}else{n=r+e}break;case"boolean":n=e;break;default:throw new Error("Unexpected parameters to loader-utils 'urlToRequest': url = "+e+", root = "+r+".")}}else if(/^\.\.?\//.test(e)){n=e}else{n="./"+e}if(i.test(n)){n=n.replace(i,"")}return n}e.exports=urlToRequest},129:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(66);var n=i.realpath;var s=i.realpathSync;var a=process.version;var u=/^v[0-5]\./.test(a);var o=r(544);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(u){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,function(i,n){if(newError(i)){o.realpath(e,t,r)}else{r(i,n)}})}function realpathSync(e,t){if(u){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return o.realpathSync(e,t)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},131:function(e,t,r){var i=r(589).sep||"/";e.exports=fileUriToPath;function fileUriToPath(e){if("string"!=typeof e||e.length<=7||"file://"!=e.substring(0,7)){throw new TypeError("must pass in a file:// URI to convert to a file path")}var t=decodeURI(e.substring(7));var r=t.indexOf("/");var n=t.substring(0,r);var s=t.substring(r+1);if("localhost"==n)n="";if(n){n=i+i+n}s=s.replace(/^(.+)\|/,"$1:");if(i=="\\"){s=s.replace(/\//g,"\\")}if(/^.+\:/.test(s)){}else{s=i+s}return n+s}},140:function(e,t,r){"use strict";const i=Object.getPrototypeOf||(e=>e.__proto__);const n=e=>{if(e.acorn)return e.acorn;const t=r(996);if(t.version.indexOf("6.")!=0&&t.version.indexOf("6.0.")==0&&t.version.indexOf("7.")!=0){throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${t.version}`)}for(let r=e;r&&r!==t.Parser;r=i(r)){if(r!==t.Parser){throw new Error("acorn-private-class-elements does not support mixing different acorn copies")}}return t};e.exports=function(e){if(e.prototype.parsePrivateName){return e}const t=n(e);e=class extends e{_branch(){this.__branch=this.__branch||new e({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;return this.__branch}parsePrivateClassElementName(e){e.computed=false;e.key=this.parsePrivateName();if(e.key.name=="constructor")this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind];const r=this._privateBoundNames;if(Object.prototype.hasOwnProperty.call(r,e.key.name)&&r[e.key.name]!==t){this.raise(e.start,"Duplicate private element")}r[e.key.name]=e.kind||true;delete this._unresolvedPrivateNames[e.key.name];return e.key}parsePrivateName(){const e=this.startNode();e.name=this.value;this.next();this.finishNode(e,"PrivateName");if(this.options.allowReserved=="never")this.checkUnreserved(e);return e}getTokenFromCode(e){if(e===35){++this.pos;const e=this.readWord1();return this.finishToken(this.privateNameToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const r=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames;this._privateBoundNames=Object.create(this._privateBoundNames||null);const i=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames;this._unresolvedPrivateNames=Object.create(null);const n=super.parseClass(e,t);const s=this._unresolvedPrivateNames;this._privateBoundNames=this._outerPrivateBoundNames;this._outerPrivateBoundNames=r;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=i;if(!this._unresolvedPrivateNames){const e=Object.keys(s);if(e.length){e.sort((e,t)=>s[e]-s[t]);this.raise(s[e[0]],"Usage of undeclared private name")}}else Object.assign(this._unresolvedPrivateNames,s);return n}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const r=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const i=super.parseClassSuper(e);this._privateBoundNames=t;this._unresolvedPrivateNames=r;return i}parseSubscript(e,r,i,n,s){if(!this.eat(t.tokTypes.dot)){return super.parseSubscript(e,r,i,n,s)}let a=this.startNodeAt(r,i);a.object=e;a.computed=false;if(this.type==this.privateNameToken){if(e.type=="Super"){this.raise(this.start,"Cannot access private element on super")}a.property=this.parsePrivateName();if(!this._privateBoundNames||!this._privateBoundNames[a.property.name]){if(!this._unresolvedPrivateNames){this.raise(a.property.start,"Usage of undeclared private name")}this._unresolvedPrivateNames[a.property.name]=a.property.start}}else{a.property=this.parseIdent(true)}return this.finishNode(a,"MemberExpression")}parseMaybeUnary(e,t){const r=super.parseMaybeUnary(e,t);if(r.operator=="delete"){if(r.argument.type=="MemberExpression"&&r.argument.property.type=="PrivateName"){this.raise(r.start,"Private elements may not be deleted")}}return r}};e.prototype.privateNameToken=new t.TokenType("privateName");return e}},146:function(e,t,r){"use strict";const i=r(722);const n={null:null,true:true,false:false};function parseQuery(e){if(e.substr(0,1)!=="?"){throw new Error("A valid query string passed to parseQuery should begin with '?'")}e=e.substr(1);if(!e){return{}}if(e.substr(0,1)==="{"&&e.substr(-1)==="}"){return i.parse(e)}const t=e.split(/[,&]/g);const r={};t.forEach(e=>{const t=e.indexOf("=");if(t>=0){let i=e.substr(0,t);let s=decodeURIComponent(e.substr(t+1));if(n.hasOwnProperty(s)){s=n[s]}if(i.substr(-2)==="[]"){i=decodeURIComponent(i.substr(0,i.length-2));if(!Array.isArray(r[i])){r[i]=[]}r[i].push(s)}else{i=decodeURIComponent(i);r[i]=s}}else{if(e.substr(0,1)==="-"){r[decodeURIComponent(e.substr(1))]=false}else if(e.substr(0,1)==="+"){r[decodeURIComponent(e.substr(1))]=true}else{r[decodeURIComponent(e)]=true}}});return r}e.exports=parseQuery},150:function(e){"use strict";e.exports=function spin(e,t){return e[t%e.length]}},156:function(e){"use strict";var t=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var i=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if(i.join("")!=="0123456789"){return false}var n={};"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e});if(Object.keys(Object.assign({},n)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,n){var s;var a=toObject(e);var u;for(var o=1;o<arguments.length;o++){s=Object(arguments[o]);for(var l in s){if(r.call(s,l)){a[l]=s[l]}}if(t){u=t(s);for(var f=0;f<u.length;f++){if(i.call(s,u[f])){a[u[f]]=s[u[f]]}}}}return a}},160:function(e,t,r){"use strict";var i=r(156);e.exports=function(){return n.newThemeSet()};var n={};n.baseTheme=r(609);n.newTheme=function(e,t){if(!t){t=e;e=this.baseTheme}return i({},e,t)};n.getThemeNames=function(){return Object.keys(this.themes)};n.addTheme=function(e,t,r){this.themes[e]=this.newTheme(t,r)};n.addToAllThemes=function(e){var t=this.themes;Object.keys(t).forEach(function(r){i(t[r],e)});i(this.baseTheme,e)};n.getTheme=function(e){if(!this.themes[e])throw this.newMissingThemeError(e);return this.themes[e]};n.setDefault=function(e,t){if(t==null){t=e;e={}}var r=e.platform==null?"fallback":e.platform;var i=!!e.hasUnicode;var n=!!e.hasColor;if(!this.defaults[r])this.defaults[r]={true:{},false:{}};this.defaults[r][i][n]=t};n.getDefault=function(e){if(!e)e={};var t=e.platform||process.platform;var r=this.defaults[t]||this.defaults.fallback;var n=!!e.hasUnicode;var s=!!e.hasColor;if(!r)throw this.newMissingDefaultThemeError(t,n,s);if(!r[n][s]){if(n&&s&&r[!n][s]){n=false}else if(n&&s&&r[n][!s]){s=false}else if(n&&s&&r[!n][!s]){n=false;s=false}else if(n&&!s&&r[!n][s]){n=false}else if(!n&&s&&r[n][!s]){s=false}else if(r===this.defaults.fallback){throw this.newMissingDefaultThemeError(t,n,s)}}if(r[n][s]){return this.getTheme(r[n][s])}else{return this.getDefault(i({},e,{platform:"fallback"}))}};n.newMissingThemeError=function newMissingThemeError(e){var t=new Error('Could not find a gauge theme named "'+e+'"');Error.captureStackTrace.call(t,newMissingThemeError);t.theme=e;t.code="EMISSINGTHEME";return t};n.newMissingDefaultThemeError=function newMissingDefaultThemeError(e,t,r){var i=new Error("Could not find a gauge theme for your platform/unicode/color use combo:\n"+" platform = "+e+"\n"+" hasUnicode = "+t+"\n"+" hasColor = "+r);Error.captureStackTrace.call(i,newMissingDefaultThemeError);i.platform=e;i.hasUnicode=t;i.hasColor=r;i.code="EMISSINGTHEME";return i};n.newThemeSet=function(){var e=function(t){return e.getDefault(t)};return i(e,n,{themes:i({},this.themes),baseTheme:i({},this.baseTheme),defaults:JSON.parse(JSON.stringify(this.defaults||{}))})}},203:function(e,t,r){"use strict";var i=r(814);var n=r(765);var s=r(649);var a=r(22);e.exports=function(e,t,r){i("ONN",[e,t,r]);if(r<0)r=0;if(r>1)r=1;if(t<=0)return"";var s=Math.round(t*r);var a=t-s;var u=[{type:"complete",value:repeat(e.complete,s),length:s},{type:"remaining",value:repeat(e.remaining,a),length:a}];return n(t,u,e)};function repeat(e,t){var r="";var i=t;do{if(i%2){r+=e}i=Math.floor(i/2);e+=e}while(i&&a(r)<t);return s(r,t)}},204:function(e){e.exports=__webpack_require__(129)},205:function(e,t,r){"use strict";var i=r(64);var n=t.User=function User(e){var t=new Error(e);Error.captureStackTrace(t,User);t.code="EGAUGE";return t};t.MissingTemplateValue=function MissingTemplateValue(e,t){var r=new n(i.format('Missing template value "%s"',e.type));Error.captureStackTrace(r,MissingTemplateValue);r.template=e;r.values=t;return r};t.Internal=function Internal(e){var t=new Error(e);Error.captureStackTrace(t,Internal);t.code="EGAUGEINTERNAL";return t}},207:function(e,t,r){try{var i=r(64);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(714)}},211:function(e,t,r){"use strict";var i=r(877);e.exports=function(e){if(i(e)){return false}if(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false}},228:function(e,t,r){const{encode:i,decode:n}=r(899);function traceSegment(e,t,r,i,n){const s=t[r];if(!s)return null;let a=0;let u=s.length-1;while(a<=u){const t=a+u>>1;const r=s[t];if(r[0]===i){return{source:r[1],line:r[2],column:r[3],name:e.names[r[4]]||n}}if(r[0]>i)u=t-1;else a=t+1}return null}e.exports=function(e,t){const r=[];const s=[];const a=[];const u=[];const o=n(e.mappings);for(const i of n(t.mappings)){const n=[];for(const u of i){const i=traceSegment(e,o,u[2],u[3],t.names[u[4]]);if(i){const t=e.sources[i.source];let o=r.lastIndexOf(t);if(o===-1){o=r.length;r.push(t);s[o]=e.sourcesContent[i.source]}else if(s[o]==null){s[o]=e.sourcesContent[i.source]}const l=[u[0],o,i.line,i.column];if(i.name){let e=a.indexOf(i.name);if(e===-1){e=a.length;a.push(i.name)}l[4]=e}n.push(l)}}u.push(n)}return{version:3,file:null,sources:r,mappings:i(u),names:a,sourcesContent:s}}},238:function(e,t,r){"use strict";t.TrackerGroup=r(604);t.Tracker=r(358);t.TrackerStream=r(30)},254:function(e,t,r){"use strict";var i=r(354);var n=r(160);var s=e.exports=new n;s.addTheme("ASCII",{preProgressbar:"[",postProgressbar:"]",progressbarTheme:{complete:"#",remaining:"."},activityIndicatorTheme:"-\\|/",preSubsection:">"});s.addTheme("colorASCII",s.getTheme("ASCII"),{progressbarTheme:{preComplete:i.color("inverse"),complete:" ",postComplete:i.color("stopInverse"),preRemaining:i.color("brightBlack"),remaining:".",postRemaining:i.color("reset")}});s.addTheme("brailleSpinner",{preProgressbar:"⸨",postProgressbar:"⸩",progressbarTheme:{complete:"░",remaining:"⠂"},activityIndicatorTheme:"⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏",preSubsection:">"});s.addTheme("colorBrailleSpinner",s.getTheme("brailleSpinner"),{progressbarTheme:{preComplete:i.color("inverse"),complete:" ",postComplete:i.color("stopInverse"),preRemaining:i.color("brightBlack"),remaining:"░",postRemaining:i.color("reset")}});s.setDefault({},"ASCII");s.setDefault({hasColor:true},"colorASCII");s.setDefault({platform:"darwin",hasUnicode:true},"brailleSpinner");s.setDefault({platform:"darwin",hasUnicode:true,hasColor:true},"colorBrailleSpinner")},285:function(e,t,r){var i=r(688);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i;t=e.exports=i.Readable;t.Readable=i.Readable;t.Writable=i.Writable;t.Duplex=i.Duplex;t.Transform=i.Transform;t.PassThrough=i.PassThrough;t.Stream=i}else{t=e.exports=r(923);t.Stream=i||t;t.Readable=t;t.Writable=r(86);t.Duplex=r(98);t.Transform=r(955);t.PassThrough=r(502)}},287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=parse;var n=r(320);var s=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}var a=void 0;var u=void 0;var o=void 0;var l=void 0;var f=void 0;var h=void 0;var c=void 0;var p=void 0;var d=void 0;function parse(e,t){a=String(e);u="start";o=[];l=0;f=1;h=0;c=undefined;p=undefined;d=undefined;do{c=lex();E[u]()}while(c.type!=="eof");if(typeof t==="function"){return internalize({"":d},"",t)}return d}function internalize(e,t,r){var n=e[t];if(n!=null&&(typeof n==="undefined"?"undefined":i(n))==="object"){for(var s in n){var a=internalize(n,s,r);if(a===undefined){delete n[s]}else{n[s]=a}}}return r.call(e,t,n)}var v=void 0;var y=void 0;var g=void 0;var b=void 0;var _=void 0;function lex(){v="default";y="";g=false;b=1;for(;;){_=peek();var e=m[v]();if(e){return e}}}function peek(){if(a[l]){return String.fromCodePoint(a.codePointAt(l))}}function read(){var e=peek();if(e==="\n"){f++;h=0}else if(e){h+=e.length}else{h++}if(e){l+=e.length}return e}var m={default:function _default(){switch(_){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();v="comment";return;case undefined:read();return newToken("eof")}if(s.isSpaceSeparator(_)){read();return}return m[u]()},comment:function comment(){switch(_){case"*":read();v="multiLineComment";return;case"/":read();v="singleLineComment";return}throw invalidChar(read())},multiLineComment:function multiLineComment(){switch(_){case"*":read();v="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk:function multiLineCommentAsterisk(){switch(_){case"*":read();return;case"/":read();v="default";return;case undefined:throw invalidChar(read())}read();v="multiLineComment"},singleLineComment:function singleLineComment(){switch(_){case"\n":case"\r":case"\u2028":case"\u2029":read();v="default";return;case undefined:read();return newToken("eof")}read()},value:function value(){switch(_){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){b=-1}v="sign";return;case".":y=read();v="decimalPointLeading";return;case"0":y=read();v="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y=read();v="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":g=read()==='"';y="";v="string";return}throw invalidChar(read())},identifierNameStartEscape:function identifierNameStartEscape(){if(_!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!s.isIdStartChar(e)){throw invalidIdentifier()}break}y+=e;v="identifierName"},identifierName:function identifierName(){switch(_){case"$":case"_":case"":case"":y+=read();return;case"\\":read();v="identifierNameEscape";return}if(s.isIdContinueChar(_)){y+=read();return}return newToken("identifier",y)},identifierNameEscape:function identifierNameEscape(){if(_!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":case"":case"":break;default:if(!s.isIdContinueChar(e)){throw invalidIdentifier()}break}y+=e;v="identifierName"},sign:function sign(){switch(_){case".":y=read();v="decimalPointLeading";return;case"0":y=read();v="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y=read();v="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",b*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero:function zero(){switch(_){case".":y+=read();v="decimalPoint";return;case"e":case"E":y+=read();v="decimalExponent";return;case"x":case"X":y+=read();v="hexadecimal";return}return newToken("numeric",b*0)},decimalInteger:function decimalInteger(){switch(_){case".":y+=read();v="decimalPoint";return;case"e":case"E":y+=read();v="decimalExponent";return}if(s.isDigit(_)){y+=read();return}return newToken("numeric",b*Number(y))},decimalPointLeading:function decimalPointLeading(){if(s.isDigit(_)){y+=read();v="decimalFraction";return}throw invalidChar(read())},decimalPoint:function decimalPoint(){switch(_){case"e":case"E":y+=read();v="decimalExponent";return}if(s.isDigit(_)){y+=read();v="decimalFraction";return}return newToken("numeric",b*Number(y))},decimalFraction:function decimalFraction(){switch(_){case"e":case"E":y+=read();v="decimalExponent";return}if(s.isDigit(_)){y+=read();return}return newToken("numeric",b*Number(y))},decimalExponent:function decimalExponent(){switch(_){case"+":case"-":y+=read();v="decimalExponentSign";return}if(s.isDigit(_)){y+=read();v="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign:function decimalExponentSign(){if(s.isDigit(_)){y+=read();v="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger:function decimalExponentInteger(){if(s.isDigit(_)){y+=read();return}return newToken("numeric",b*Number(y))},hexadecimal:function hexadecimal(){if(s.isHexDigit(_)){y+=read();v="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger:function hexadecimalInteger(){if(s.isHexDigit(_)){y+=read();return}return newToken("numeric",b*Number(y))},string:function string(){switch(_){case"\\":read();y+=escape();return;case'"':if(g){read();return newToken("string",y)}y+=read();return;case"'":if(!g){read();return newToken("string",y)}y+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(_);break;case undefined:throw invalidChar(read())}y+=read()},start:function start(){switch(_){case"{":case"[":return newToken("punctuator",read())}v="value"},beforePropertyName:function beforePropertyName(){switch(_){case"$":case"_":y=read();v="identifierName";return;case"\\":read();v="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":g=read()==='"';v="string";return}if(s.isIdStartChar(_)){y+=read();v="identifierName";return}throw invalidChar(read())},afterPropertyName:function afterPropertyName(){if(_===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue:function beforePropertyValue(){v="value"},afterPropertyValue:function afterPropertyValue(){switch(_){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue:function beforeArrayValue(){if(_==="]"){return newToken("punctuator",read())}v="value"},afterArrayValue:function afterArrayValue(){switch(_){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end:function end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:f,column:h}}function literal(e){var t=true;var r=false;var i=undefined;try{for(var n=e[Symbol.iterator](),s;!(t=(s=n.next()).done);t=true){var a=s.value;var u=peek();if(u!==a){throw invalidChar(read())}read()}}catch(e){r=true;i=e}finally{try{if(!t&&n.return){n.return()}}finally{if(r){throw i}}}}function escape(){var e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(s.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){var e="";var t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){var e="";var t=4;while(t-- >0){var r=peek();if(!s.isHexDigit(r)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}var E={start:function start(){if(c.type==="eof"){throw invalidEOF()}push()},beforePropertyName:function beforePropertyName(){switch(c.type){case"identifier":case"string":p=c.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName:function afterPropertyName(){if(c.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue:function beforePropertyValue(){if(c.type==="eof"){throw invalidEOF()}push()},beforeArrayValue:function beforeArrayValue(){if(c.type==="eof"){throw invalidEOF()}if(c.type==="punctuator"&&c.value==="]"){pop();return}push()},afterPropertyValue:function afterPropertyValue(){if(c.type==="eof"){throw invalidEOF()}switch(c.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue:function afterArrayValue(){if(c.type==="eof"){throw invalidEOF()}switch(c.value){case",":u="beforeArrayValue";return;case"]":pop()}},end:function end(){}};function push(){var e=void 0;switch(c.type){case"punctuator":switch(c.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=c.value;break}if(d===undefined){d=e}else{var t=o[o.length-1];if(Array.isArray(t)){t.push(e)}else{t[p]=e}}if(e!==null&&(typeof e==="undefined"?"undefined":i(e))==="object"){o.push(e);if(Array.isArray(e)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{var r=o[o.length-1];if(r==null){u="end"}else if(Array.isArray(r)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){o.pop();var e=o[o.length-1];if(e==null){u="end"}else if(Array.isArray(e)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError("JSON5: invalid end of input at "+f+":"+h)}return syntaxError("JSON5: invalid character '"+formatChar(e)+"' at "+f+":"+h)}function invalidEOF(){return syntaxError("JSON5: invalid end of input at "+f+":"+h)}function invalidIdentifier(){h-=5;return syntaxError("JSON5: invalid identifier character at "+f+":"+h)}function separatorChar(e){console.warn("JSON5: '"+e+"' is not valid ECMAScript; consider escaping")}function formatChar(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){var r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function syntaxError(e){var t=new SyntaxError(e);t.lineNumber=f;t.columnNumber=h;return t}e.exports=t["default"]},288:function(e,t,r){const i=r(589);e.exports=function(e,t,r){const n=i.extname(e);let s=e,a=0;while(s in r&&r[s]!==t)s=e.substr(0,e.length-n.length)+ ++a+n;r[s]=t;return s}},298:function(e){e.exports=__webpack_require__(417)},300:function(e){"use strict";function getRemainingRequest(e){if(e.remainingRequest){return e.remainingRequest}const t=e.loaders.slice(e.loaderIndex+1).map(e=>e.request).concat([e.resource]);return t.join("!")}e.exports=getRemainingRequest},308:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var i=r(589);var n=_interopDefault(i);var s=r(825);var a=_interopDefault(r(64));const u=function addExtension(e,t=".js"){if(!i.extname(e))e+=t;return e};const o={ArrayPattern(e,t){for(const r of t.elements){if(r)o[r.type](e,r)}},AssignmentPattern(e,t){o[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties){if(r.type==="RestElement"){o.RestElement(e,r)}else{o[r.value.type](e,r.value)}}},RestElement(e,t){o[t.argument.type](e,t.argument)}};const l=function extractAssignedNames(e){const t=[];o[e.type](t,e);return t};const f={const:true,let:true};class Scope{constructor(e={}){this.parent=e.parent;this.isBlockScope=!!e.block;this.declarations=Object.create(null);if(e.params){e.params.forEach(e=>{l(e).forEach(e=>{this.declarations[e]=true})})}}addDeclaration(e,t,r){if(!t&&this.isBlockScope){this.parent.addDeclaration(e,t,r)}else if(e.id){l(e.id).forEach(e=>{this.declarations[e]=true})}}contains(e){return this.declarations[e]||(this.parent?this.parent.contains(e):false)}}const h=function attachScopes(e,t="scope"){let r=new Scope;s.walk(e,{enter(e,i){if(/(Function|Class)Declaration/.test(e.type)){r.addDeclaration(e,false,false)}if(e.type==="VariableDeclaration"){const t=e.kind;const i=f[t];e.declarations.forEach(e=>{r.addDeclaration(e,i,true)})}let n;if(/Function/.test(e.type)){n=new Scope({parent:r,block:false,params:e.params});if(e.type==="FunctionExpression"&&e.id){n.addDeclaration(e,false,false)}}if(e.type==="BlockStatement"&&!/Function/.test(i.type)){n=new Scope({parent:r,block:true})}if(e.type==="CatchClause"){n=new Scope({parent:r,params:e.param?[e.param]:[],block:true})}if(n){Object.defineProperty(e,t,{value:n,configurable:true});r=n}},leave(e){if(e[t])r=r.parent}});return r};function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var c=createCommonjsModule(function(e,t){t.isInteger=(e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false});t.find=((e,t)=>e.nodes.find(e=>e.type===t));t.exceedsLimit=((e,r,i=1,n)=>{if(n===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(i)>=n});t.escapeNode=((e,t=0,r)=>{let i=e.nodes[t];if(!i)return;if(r&&i.type===r||i.type==="open"||i.type==="close"){if(i.escaped!==true){i.value="\\"+i.value;i.escaped=true}}});t.encloseBrace=(e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false});t.isInvalidBrace=(e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false});t.isOpenOrClose=(e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true});t.reduce=(e=>e.reduce((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e},[]));t.flatten=((...e)=>{const t=[];const r=e=>{for(let i=0;i<e.length;i++){let n=e[i];Array.isArray(n)?r(n,t):n!==void 0&&t.push(n)}return t};r(e);return t})});var p=c.isInteger;var d=c.find;var v=c.exceedsLimit;var y=c.escapeNode;var g=c.encloseBrace;var b=c.isInvalidBrace;var _=c.isOpenOrClose;var m=c.reduce;var E=c.flatten;var D=(e,t={})=>{let r=(e,i={})=>{let n=t.escapeInvalid&&c.isInvalidBrace(i);let s=e.invalid===true&&t.escapeInvalid===true;let a="";if(e.value){if((n||s)&&c.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){a+=r(t)}}return a};return r(e)};var w=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false};const A=(e,t,r)=>{if(w(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(w(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let i=Object.assign({relaxZeros:true},r);if(typeof i.strictZeros==="boolean"){i.relaxZeros=i.strictZeros===false}let n=String(i.relaxZeros);let s=String(i.shorthand);let a=String(i.capture);let u=String(i.wrap);let o=e+":"+t+"="+n+s+a+u;if(A.cache.hasOwnProperty(o)){return A.cache[o].result}let l=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(l-f)===1){let r=e+"|"+t;if(i.capture){return`(${r})`}if(i.wrap===false){return r}return`(?:${r})`}let h=hasPadding(e)||hasPadding(t);let c={min:e,max:t,a:l,b:f};let p=[];let d=[];if(h){c.isPadded=h;c.maxLen=String(c.max).length}if(l<0){let e=f<0?Math.abs(f):1;d=splitToPatterns(e,Math.abs(l),c,i);l=c.a=0}if(f>=0){p=splitToPatterns(l,f,c,i)}c.negatives=d;c.positives=p;c.result=collatePatterns(d,p,i);if(i.capture===true){c.result=`(${c.result})`}else if(i.wrap!==false&&p.length+d.length>1){c.result=`(?:${c.result})`}A.cache[o]=c;return c.result};function collatePatterns(e,t,r){let i=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let s=filterPatterns(e,t,"-?",true,r)||[];let a=i.concat(s).concat(n);return a.join("|")}function splitToRanges(e,t){let r=1;let i=1;let n=countNines(e,r);let s=new Set([t]);while(e<=n&&n<=t){s.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,i)-1;while(e<n&&n<=t){s.add(n);i+=1;n=countZeros(t+1,i)-1}s=[...s];s.sort(compare);return s}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let i=zip(e,t);let n=i.length;let s="";let a=0;for(let e=0;e<n;e++){let[t,n]=i[e];if(t===n){s+=t}else if(t!=="0"||n!=="9"){s+=toCharacterClass(t,n,r)}else{a++}}if(a){s+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:s,count:[a],digits:n}}function splitToPatterns(e,t,r,i){let n=splitToRanges(e,t);let s=[];let a=e;let u;for(let e=0;e<n.length;e++){let t=n[e];let o=rangeToPattern(String(a),String(t),i);let l="";if(!r.isPadded&&u&&u.pattern===o.pattern){if(u.count.length>1){u.count.pop()}u.count.push(o.count[0]);u.string=u.pattern+toQuantifier(u.count);a=t+1;continue}if(r.isPadded){l=padZeros(t,r,i)}o.string=l+o.pattern+toQuantifier(o.count);s.push(o);a=t+1;u=o}return s}function filterPatterns(e,t,r,i,n){let s=[];for(let n of e){let{string:e}=n;if(!i&&!contains(t,"string",e)){s.push(r+e)}if(i&&contains(t,"string",e)){s.push(r+e)}}return s}function zip(e,t){let r=[];for(let i=0;i<e.length;i++)r.push([e[i],t[i]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some(e=>e[t]===r)}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let i=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${i}}`:`0{${i}}`}}}A.cache={};A.clearCache=(()=>A.cache={});var C=A;const x=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const S=e=>{return t=>e===true?Number(t):String(t)};const k=e=>{return typeof e==="number"||typeof e==="string"&&e!==""};const F=e=>Number.isInteger(+e);const R=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const T=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const O=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const I=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const B=(e,t)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0);e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r=t.capture?"":"?:";let i="";let n="";let s;if(e.positives.length){i=e.positives.join("|")}if(e.negatives.length){n=`-(${r}${e.negatives.join("|")})`}if(i&&n){s=`${i}|${n}`}else{s=i||n}if(t.wrap){return`(${r}${s})`}return s};const N=(e,t,r,i)=>{if(r){return C(e,t,Object.assign({wrap:false},i))}let n=String.fromCharCode(e);if(e===t)return n;let s=String.fromCharCode(t);return`[${n}-${s}]`};const L=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let i=r.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return C(e,t,r)};const P=(...e)=>{return new RangeError("Invalid range arguments: "+a.inspect(...e))};const j=(e,t,r)=>{if(r.strictRanges===true)throw P([e,t]);return[]};const q=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const $=(e,t,r=1,i={})=>{let n=Number(e);let s=Number(t);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===true)throw P([e,t]);return[]}if(n===0)n=0;if(s===0)s=0;let a=n>s;let u=String(e);let o=String(t);let l=String(r);r=Math.max(Math.abs(r),1);let f=R(u)||R(o)||R(l);let h=f?Math.max(u.length,o.length,l.length):0;let c=f===false&&T(e,t,i)===false;let p=i.transform||S(c);if(i.toRegex&&r===1){return N(I(e,h),I(t,h),true,i)}let d={negatives:[],positives:[]};let v=e=>d[e<0?"negatives":"positives"].push(Math.abs(e));let y=[];let g=0;while(a?n>=s:n<=s){if(i.toRegex===true&&r>1){v(n)}else{y.push(O(p(n,g),h,c))}n=a?n-r:n+r;g++}if(i.toRegex===true){return r>1?B(d,i):L(y,null,Object.assign({wrap:false},i))}return y};const M=(e,t,r=1,i={})=>{if(!F(e)&&e.length>1||!F(t)&&t.length>1){return j(e,t,i)}let n=i.transform||(e=>String.fromCharCode(e));let s=`${e}`.charCodeAt(0);let a=`${t}`.charCodeAt(0);let u=s>a;let o=Math.min(s,a);let l=Math.max(s,a);if(i.toRegex&&r===1){return N(o,l,false,i)}let f=[];let h=0;while(u?s>=a:s<=a){f.push(n(s,h));s=u?s-r:s+r;h++}if(i.toRegex===true){return L(f,null,{wrap:false,options:i})}return f};const U=(e,t,r,i={})=>{if(t==null&&k(e)){return[e]}if(!k(e)||!k(t)){return j(e,t,i)}if(typeof r==="function"){return U(e,t,1,{transform:r})}if(x(r)){return U(e,t,0,r)}let n=Object.assign({},i);if(n.capture===true)n.wrap=true;r=r||n.step||1;if(!F(r)){if(r!=null&&!x(r))return q(r,n);return U(e,t,1,r)}if(F(e)&&F(t)){return $(e,t,r,n)}return M(e,t,Math.max(Math.abs(r),1),n)};var H=U;const W=(e,t={})=>{let r=(e,i={})=>{let n=c.isInvalidBrace(i);let s=e.invalid===true&&t.escapeInvalid===true;let a=n===true||s===true;let u=t.escapeInvalid===true?"\\":"";let o="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){return u+e.value}if(e.type==="open"){return a?u+e.value:"("}if(e.type==="close"){return a?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=c.reduce(e.nodes);let i=H(...r,Object.assign({},t,{wrap:false,toRegex:true}));if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(e.nodes){for(let t of e.nodes){o+=r(t,e)}}return o};return r(e)};var G=W;const V=(e="",t="",r=false)=>{let i=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?c.flatten(t).map(e=>`{${e}}`):t}for(let n of e){if(Array.isArray(n)){for(let e of n){i.push(V(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;i.push(Array.isArray(e)?V(n,e,r):n+e)}}}return c.flatten(i)};const z=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let i=(e,n={})=>{e.queue=[];let s=n;let a=n.queue;while(s.type!=="brace"&&s.type!=="root"&&s.parent){s=s.parent;a=s.queue}if(e.invalid||e.dollar){a.push(V(a.pop(),D(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){a.push(V(a.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let i=c.reduce(e.nodes);if(c.exceedsLimit(...i,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let n=H(...i,t);if(n.length===0){n=D(e,t)}a.push(V(a.pop(),n));e.nodes=[];return}let u=c.encloseBrace(e);let o=e.queue;let l=e;while(l.type!=="brace"&&l.type!=="root"&&l.parent){l=l.parent;o=l.queue}for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)o.push("");o.push("");continue}if(r.type==="close"){a.push(V(a.pop(),o,u));continue}if(r.value&&r.type!=="open"){o.push(V(o.pop(),r.value));continue}if(r.nodes){i(r,e)}}return o};return c.flatten(i(e))};var K=z;var Q={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};const{MAX_LENGTH:X,CHAR_BACKSLASH:Z,CHAR_BACKTICK:J,CHAR_COMMA:Y,CHAR_DOT:ee,CHAR_LEFT_PARENTHESES:te,CHAR_RIGHT_PARENTHESES:re,CHAR_LEFT_CURLY_BRACE:ie,CHAR_RIGHT_CURLY_BRACE:ne,CHAR_LEFT_SQUARE_BRACKET:se,CHAR_RIGHT_SQUARE_BRACKET:ae,CHAR_DOUBLE_QUOTE:ue,CHAR_SINGLE_QUOTE:oe,CHAR_NO_BREAK_SPACE:le,CHAR_ZERO_WIDTH_NOBREAK_SPACE:fe}=Q;const he=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let i=typeof r.maxLength==="number"?Math.min(X,r.maxLength):X;if(e.length>i){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`)}let n={type:"root",input:e,nodes:[]};let s=[n];let a=n;let u=n;let o=0;let l=e.length;let f=0;let h=0;let c;const p=()=>e[f++];const d=e=>{if(e.type==="text"&&u.type==="dot"){u.type="text"}if(u&&u.type==="text"&&e.type==="text"){u.value+=e.value;return}a.nodes.push(e);e.parent=a;e.prev=u;u=e;return e};d({type:"bos"});while(f<l){a=s[s.length-1];c=p();if(c===fe||c===le){continue}if(c===Z){d({type:"text",value:(t.keepEscaping?c:"")+p()});continue}if(c===ae){d({type:"text",value:"\\"+c});continue}if(c===se){o++;let e;while(f<l&&(e=p())){c+=e;if(e===se){o++;continue}if(e===Z){c+=p();continue}if(e===ae){o--;if(o===0){break}}}d({type:"text",value:c});continue}if(c===te){a=d({type:"paren",nodes:[]});s.push(a);d({type:"text",value:c});continue}if(c===re){if(a.type!=="paren"){d({type:"text",value:c});continue}a=s.pop();d({type:"text",value:c});a=s[s.length-1];continue}if(c===ue||c===oe||c===J){let e=c;let r;if(t.keepQuotes!==true){c=""}while(f<l&&(r=p())){if(r===Z){c+=r+p();continue}if(r===e){if(t.keepQuotes===true)c+=r;break}c+=r}d({type:"text",value:c});continue}if(c===ie){h++;let e=u.value&&u.value.slice(-1)==="$"||a.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:h,commas:0,ranges:0,nodes:[]};a=d(t);s.push(a);d({type:"open",value:c});continue}if(c===ne){if(a.type!=="brace"){d({type:"text",value:c});continue}let e="close";a=s.pop();a.close=true;d({type:e,value:c});h--;a=s[s.length-1];continue}if(c===Y&&h>0){if(a.ranges>0){a.ranges=0;let e=a.nodes.shift();a.nodes=[e,{type:"text",value:D(a)}]}d({type:"comma",value:c});a.commas++;continue}if(c===ee&&h>0&&a.commas===0){let e=a.nodes;if(h===0||e.length===0){d({type:"text",value:c});continue}if(u.type==="dot"){a.range=[];u.value+=c;u.type="range";if(a.nodes.length!==3&&a.nodes.length!==5){a.invalid=true;a.ranges=0;u.type="text";continue}a.ranges++;a.args=[];continue}if(u.type==="range"){e.pop();let t=e[e.length-1];t.value+=u.value+c;u=t;a.ranges--;continue}d({type:"dot",value:c});continue}d({type:"text",value:c})}do{a=s.pop();if(a.type!=="root"){a.nodes.forEach(e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}});let e=s[s.length-1];let t=e.nodes.indexOf(a);e.nodes.splice(t,1,...a.nodes)}}while(s.length>0);d({type:"eos"});return n};var ce=he;const pe=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let i of e){let e=pe.create(i,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(pe.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};pe.parse=((e,t={})=>ce(e,t));pe.stringify=((e,t={})=>{if(typeof e==="string"){return D(pe.parse(e,t),t)}return D(e,t)});pe.compile=((e,t={})=>{if(typeof e==="string"){e=pe.parse(e,t)}return G(e,t)});pe.expand=((e,t={})=>{if(typeof e==="string"){e=pe.parse(e,t)}let r=K(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r});pe.create=((e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?pe.compile(e,t):pe.expand(e,t)});var de=pe;const ve="\\\\/";const ye=`[^${ve}]`;const ge="\\.";const be="\\+";const _e="\\?";const me="\\/";const Ee="(?=.)";const De="[^/]";const we=`(?:${me}|$)`;const Ae=`(?:^|${me})`;const Ce=`${ge}{1,2}${we}`;const xe=`(?!${ge})`;const Se=`(?!${Ae}${Ce})`;const ke=`(?!${ge}{0,1}${we})`;const Fe=`(?!${Ce})`;const Re=`[^.${me}]`;const Te=`${De}*?`;const Oe={DOT_LITERAL:ge,PLUS_LITERAL:be,QMARK_LITERAL:_e,SLASH_LITERAL:me,ONE_CHAR:Ee,QMARK:De,END_ANCHOR:we,DOTS_SLASH:Ce,NO_DOT:xe,NO_DOTS:Se,NO_DOT_SLASH:ke,NO_DOTS_SLASH:Fe,QMARK_NO_DOT:Re,STAR:Te,START_ANCHOR:Ae};const Ie=Object.assign({},Oe,{SLASH_LITERAL:`[${ve}]`,QMARK:ye,STAR:`${ye}*?`,DOTS_SLASH:`${ge}{1,2}(?:[${ve}]|$)`,NO_DOT:`(?!${ge})`,NO_DOTS:`(?!(?:^|[${ve}])${ge}{1,2}(?:[${ve}]|$))`,NO_DOT_SLASH:`(?!${ge}{0,1}(?:[${ve}]|$))`,NO_DOTS_SLASH:`(?!${ge}{1,2}(?:[${ve}]|$))`,QMARK_NO_DOT:`[^.${ve}]`,START_ANCHOR:`(?:^|[${ve}])`,END_ANCHOR:`(?:[${ve}]|$)`});const Be={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ne={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Be,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHAR:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?Ie:Oe}};var Le=createCommonjsModule(function(e,t){const r=process.platform==="win32";const{REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:s,REGEX_REMOVE_BACKSLASH:a}=Ne;t.isObject=(e=>e!==null&&typeof e==="object"&&!Array.isArray(e));t.hasRegexChars=(e=>i.test(e));t.isRegexChar=(e=>e.length===1&&t.hasRegexChars(e));t.escapeRegex=(e=>e.replace(s,"\\$1"));t.toPosixSlashes=(e=>e.replace(/\\/g,"/"));t.removeBackslashes=(e=>{return e.replace(a,e=>{return e==="\\"?"":e})});t.supportsLookbehinds=(()=>{let e=process.version.slice(1).split(".");if(e.length===3&&+e[0]>=9||+e[0]===8&&+e[1]>=10){return true}return false});t.isWindows=(e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return r===true||n.sep==="\\"});t.escapeLast=((e,r,i)=>{let n=e.lastIndexOf(r,i);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return e.slice(0,n)+"\\"+e.slice(n)})});var Pe=Le.isObject;var je=Le.hasRegexChars;var qe=Le.isRegexChar;var $e=Le.escapeRegex;var Me=Le.toPosixSlashes;var Ue=Le.removeBackslashes;var He=Le.supportsLookbehinds;var We=Le.isWindows;var Ge=Le.escapeLast;const{CHAR_ASTERISK:Ve,CHAR_AT:ze,CHAR_BACKWARD_SLASH:Ke,CHAR_COMMA:Qe,CHAR_DOT:Xe,CHAR_EXCLAMATION_MARK:Ze,CHAR_FORWARD_SLASH:Je,CHAR_LEFT_CURLY_BRACE:Ye,CHAR_LEFT_PARENTHESES:et,CHAR_LEFT_SQUARE_BRACKET:tt,CHAR_PLUS:rt,CHAR_QUESTION_MARK:it,CHAR_RIGHT_CURLY_BRACE:nt,CHAR_RIGHT_PARENTHESES:st,CHAR_RIGHT_SQUARE_BRACKET:at}=Ne;const ut=e=>{return e===Je||e===Ke};var ot=(e,t)=>{let r=t||{};let i=e.length-1;let n=-1;let s=0;let a=0;let u=false;let o=false;let l=false;let f=0;let h;let c;let p=false;let d=()=>n>=i;let v=()=>{h=c;return e.charCodeAt(++n)};while(n<i){c=v();let t;if(c===Ke){o=true;t=v();if(t===Ye){p=true}continue}if(p===true||c===Ye){f++;while(!d()&&(t=v())){if(t===Ke){o=true;t=v();continue}if(t===Ye){f++;continue}if(!p&&t===Xe&&(t=v())===Xe){u=true;break}if(!p&&t===Qe){u=true;break}if(t===nt){f--;if(f===0){p=false;break}}}}if(c===Je){if(h===Xe&&n===s+1){s+=2;continue}a=n+1;continue}if(c===Ve){u=true;break}if(c===Ve||c===it){u=true;break}if(c===tt){while(!d()&&(t=v())){if(t===Ke){o=true;t=v();continue}if(t===at){u=true;break}}}let r=c===rt||c===ze||c===Ze;if(r&&e.charCodeAt(n+1)===et){u=true;break}if(c===Ze&&n===s){l=true;s++;continue}if(c===et){while(!d()&&(t=v())){if(t===Ke){o=true;t=v();continue}if(t===st){u=true;break}}}if(u){break}}let y="";let g=e;let b=e;let _="";if(s>0){y=e.slice(0,s);e=e.slice(s);a-=s}if(b&&u===true&&a>0){b=e.slice(0,a);_=e.slice(a)}else if(u===true){b="";_=e}else{b=e}if(b&&b!==""&&b!=="/"&&b!==e){if(ut(b.charCodeAt(b.length-1))){b=b.slice(0,-1)}}if(r.unescape===true){if(_)_=Le.removeBackslashes(_);if(b&&o===true){b=Le.removeBackslashes(b)}}return{prefix:y,input:g,base:b,glob:_,negated:l,isGlob:u}};const{MAX_LENGTH:lt,POSIX_REGEX_SOURCE:ft,REGEX_NON_SPECIAL_CHAR:ht,REGEX_SPECIAL_CHARS_BACKREF:ct,REPLACEMENTS:pt}=Ne;const dt=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();let r=`[${e.join("-")}]`;try{}catch(t){return e.map(e=>Le.escapeRegex(e)).join("..")}return r};const vt=e=>{let t=1;while(e.peek()==="!"&&(e.peek(2)!=="("||e.peek(3)==="?")){e.advance();e.start++;t++}if(t%2===0){return false}e.negated=true;e.start++;return true};const yt=(e,t)=>{return`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`};const gt=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=pt[e]||e;let r=Object.assign({},t);let i=typeof r.maxLength==="number"?Math.min(lt,r.maxLength):lt;let n=e.length;if(n>i){throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`)}let s={type:"bos",value:"",output:r.prepend||""};let a=[s];let u=r.capture?"":"?:";let o=Le.isWindows(t);const l=Ne.globChars(o);const f=Ne.extglobChars(l);const{DOT_LITERAL:h,PLUS_LITERAL:c,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:v,NO_DOT:y,NO_DOT_SLASH:g,NO_DOTS_SLASH:b,QMARK:_,QMARK_NO_DOT:m,STAR:E,START_ANCHOR:D}=l;const w=e=>{return`(${u}(?:(?!${D}${e.dot?v:h}).)*?)`};let A=r.dot?"":y;let C=r.bash===true?w(r):E;let x=r.dot?_:m;if(r.capture){C=`(${C})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}let S={index:-1,start:0,consumed:"",output:"",backtrack:false,brackets:0,braces:0,parens:0,quotes:0,tokens:a};let k=[];let F=[];let R=s;let T;const O=()=>S.index===n-1;const I=S.peek=((t=1)=>e[S.index+t]);const B=S.advance=(()=>e[++S.index]);const N=e=>{S.output+=e.output!=null?e.output:e.value;S.consumed+=e.value||""};const L=e=>{S[e]++;F.push(e)};const P=e=>{S[e]--;F.pop()};const j=e=>{if(R.type==="globstar"){let t=S.braces>0&&(e.type==="comma"||e.type==="brace");let r=k.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){S.output=S.output.slice(0,-R.output.length);R.type="star";R.value="*";R.output=C;S.output+=R.output}}if(k.length&&e.type!=="paren"&&!f[e.value]){k[k.length-1].inner+=e.value}if(e.value||e.output)N(e);if(R&&R.type==="text"&&e.type==="text"){R.value+=e.value;return}e.prev=R;a.push(e);R=e};const q=(e,t)=>{let i=Object.assign({},f[t],{conditions:1,inner:""});i.prev=R;i.parens=S.parens;i.output=S.output;let n=(r.capture?"(":"")+i.open;j({type:e,value:t,output:S.output?"":d});j({type:"paren",extglob:true,value:B(),output:n});L("parens");k.push(i)};const $=t=>{let i=t.close+(r.capture?")":"");if(t.type==="negate"){let n=C;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){n=w(r)}if(n!==C||O()||/^\)+$/.test(e.slice(S.index+1))){i=t.close=")$))"+n}if(t.prev.type==="bos"&&O()){S.negatedExtglob=true}}j({type:"paren",extglob:true,value:T,output:i});P("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/{[()\]}"])/.test(e)){let t=false;let i=e.replace(ct,(e,r,i,n,s,a)=>{if(n==="\\"){t=true;return e}if(n==="?"){if(r){return r+n+(s?_.repeat(s.length):"")}if(a===0){return x+(s?_.repeat(s.length):"")}return _.repeat(i.length)}if(n==="."){return h.repeat(i.length)}if(n==="*"){if(r){return r+n+(s?C:"")}return C}return r?e:"\\"+e});if(t===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,e=>{return e.length%2===0?"\\\\":e?"\\":""})}}S.output=i;return S}while(!O()){T=B();if(T==="\0"){continue}if(T==="\\"){let t=I();if(t==="/"&&r.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){T+="\\";j({type:"text",value:T});continue}let i=/^\\+/.exec(e.slice(S.index+1));let n=0;if(i&&i[0].length>2){n=i[0].length;S.index+=n;if(n%2!==0){T+="\\"}}if(r.unescape===true){T=B()||""}else{T+=B()||""}if(S.brackets===0){j({type:"text",value:T});continue}}if(S.brackets>0&&(T!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==false&&T===":"){let e=R.value.slice(1);if(e.includes("[")){R.posix=true;if(e.includes(":")){let e=R.value.lastIndexOf("[");let t=R.value.slice(0,e);let r=R.value.slice(e+2);let i=ft[r];if(i){R.value=t+i;S.backtrack=true;B();if(!s.output&&a.indexOf(R)===1){s.output=d}continue}}}}if(T==="["&&I()!==":"||T==="-"&&I()==="]"){T="\\"+T}if(T==="]"&&(R.value==="["||R.value==="[^")){T="\\"+T}if(r.posix===true&&T==="!"&&R.value==="["){T="^"}R.value+=T;N({value:T});continue}if(S.quotes===1&&T!=='"'){T=Le.escapeRegex(T);R.value+=T;N({value:T});continue}if(T==='"'){S.quotes=S.quotes===1?0:1;if(r.keepQuotes===true){j({type:"text",value:T})}continue}if(T==="("){j({type:"paren",value:T});L("parens");continue}if(T===")"){if(S.parens===0&&r.strictBrackets===true){throw new SyntaxError(yt("opening","("))}let e=k[k.length-1];if(e&&S.parens===e.parens+1){$(k.pop());continue}j({type:"paren",value:T,output:S.parens?")":"\\)"});P("parens");continue}if(T==="["){if(r.nobracket===true||!e.slice(S.index+1).includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(yt("closing","]"))}T="\\"+T}else{L("brackets")}j({type:"bracket",value:T});continue}if(T==="]"){if(r.nobracket===true||R&&R.type==="bracket"&&R.value.length===1){j({type:"text",value:T,output:"\\"+T});continue}if(S.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(yt("opening","["))}j({type:"text",value:T,output:"\\"+T});continue}P("brackets");let e=R.value.slice(1);if(R.posix!==true&&e[0]==="^"&&!e.includes("/")){T="/"+T}R.value+=T;N({value:T});if(r.literalBrackets===false||Le.hasRegexChars(e)){continue}let t=Le.escapeRegex(R.value);S.output=S.output.slice(0,-R.value.length);if(r.literalBrackets===true){S.output+=t;R.value=t;continue}R.value=`(${u}${t}|${R.value})`;S.output+=R.value;continue}if(T==="{"&&r.nobrace!==true){j({type:"brace",value:T,output:"("});L("braces");continue}if(T==="}"){if(r.nobrace===true||S.braces===0){j({type:"text",value:T,output:"\\"+T});continue}let e=")";if(S.dots===true){let t=a.slice();let i=[];for(let e=t.length-1;e>=0;e--){a.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){i.unshift(t[e].value)}}e=dt(i,r);S.backtrack=true}j({type:"brace",value:T,output:e});P("braces");continue}if(T==="|"){if(k.length>0){k[k.length-1].conditions++}j({type:"text",value:T});continue}if(T===","){let e=T;if(S.braces>0&&F[F.length-1]==="braces"){e="|"}j({type:"comma",value:T,output:e});continue}if(T==="/"){if(R.type==="dot"&&S.index===1){S.start=S.index+1;S.consumed="";S.output="";a.pop();R=s;continue}j({type:"slash",value:T,output:p});continue}if(T==="."){if(S.braces>0&&R.type==="dot"){if(R.value===".")R.output=h;R.type="dots";R.output+=T;R.value+=T;S.dots=true;continue}j({type:"dot",value:T,output:h});continue}if(T==="?"){if(R&&R.type==="paren"){let e=I();let t=T;if(e==="<"&&!Le.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(R.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/[!=]/.test(I(2))){t="\\"+T}j({type:"text",value:T,output:t});continue}if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){q("qmark",T);continue}if(r.dot!==true&&(R.type==="slash"||R.type==="bos")){j({type:"qmark",value:T,output:m});continue}j({type:"qmark",value:T,output:_});continue}if(T==="!"){if(r.noextglob!==true&&I()==="("){if(I(2)!=="?"||!/[!=<:]/.test(I(3))){q("negate",T);continue}}if(r.nonegate!==true&&S.index===0){vt(S);continue}}if(T==="+"){if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){q("plus",T);continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")){let e=R.extglob===true?"\\"+T:T;j({type:"plus",value:T,output:e});continue}if(S.parens>0&&r.regex!==false){j({type:"plus",value:T});continue}j({type:"plus",value:c});continue}if(T==="@"){if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){j({type:"at",value:T,output:""});continue}j({type:"text",value:T});continue}if(T!=="*"){if(T==="$"||T==="^"){T="\\"+T}let t=ht.exec(e.slice(S.index+1));if(t){T+=t[0];S.index+=t[0].length}j({type:"text",value:T});continue}if(R&&(R.type==="globstar"||R.star===true)){R.type="star";R.star=true;R.value+=T;R.output=C;S.backtrack=true;S.consumed+=T;continue}if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){q("star",T);continue}if(R.type==="star"){if(r.noglobstar===true){S.consumed+=T;continue}let t=R.prev;let i=t.prev;let n=t.type==="slash"||t.type==="bos";let s=i&&(i.type==="star"||i.type==="globstar");if(r.bash===true&&(!n||!O()&&I()!=="/")){j({type:"star",value:T,output:""});continue}let a=S.braces>0&&(t.type==="comma"||t.type==="brace");let u=k.length&&(t.type==="pipe"||t.type==="paren");if(!n&&t.type!=="paren"&&!a&&!u){j({type:"star",value:T,output:""});continue}while(e.slice(S.index+1,S.index+4)==="/**"){let t=e[S.index+4];if(t&&t!=="/"){break}S.consumed+="/**";S.index+=3}if(t.type==="bos"&&O()){R.type="globstar";R.value+=T;R.output=w(r);S.output=R.output;S.consumed+=T;continue}if(t.type==="slash"&&t.prev.type!=="bos"&&!s&&O()){S.output=S.output.slice(0,-(t.output+R.output).length);t.output="(?:"+t.output;R.type="globstar";R.output=w(r)+"|$)";R.value+=T;S.output+=t.output+R.output;S.consumed+=T;continue}let o=I();if(t.type==="slash"&&t.prev.type!=="bos"&&o==="/"){let e=I(2)!==void 0?"|$":"";S.output=S.output.slice(0,-(t.output+R.output).length);t.output="(?:"+t.output;R.type="globstar";R.output=`${w(r)}${p}|${p}${e})`;R.value+=T;S.output+=t.output+R.output;S.consumed+=T+B();j({type:"slash",value:T,output:""});continue}if(t.type==="bos"&&o==="/"){R.type="globstar";R.value+=T;R.output=`(?:^|${p}|${w(r)}${p})`;S.output=R.output;S.consumed+=T+B();j({type:"slash",value:T,output:""});continue}S.output=S.output.slice(0,-R.output.length);R.type="globstar";R.output=w(r);R.value+=T;S.output+=R.output;S.consumed+=T;continue}let t={type:"star",value:T,output:C};if(r.bash===true){t.output=".*?";if(R.type==="bos"||R.type==="slash"){t.output=A+t.output}j(t);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===true){t.output=T;j(t);continue}if(S.index===S.start||R.type==="slash"||R.type==="dot"){if(R.type==="dot"){S.output+=g;R.output+=g}else if(r.dot===true){S.output+=b;R.output+=b}else{S.output+=A;R.output+=A}if(I()!=="*"){S.output+=d;R.output+=d}}j(t)}while(S.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(yt("closing","]"));S.output=Le.escapeLast(S.output,"[");P("brackets")}while(S.parens>0){if(r.strictBrackets===true)throw new SyntaxError(yt("closing",")"));S.output=Le.escapeLast(S.output,"(");P("parens")}while(S.braces>0){if(r.strictBrackets===true)throw new SyntaxError(yt("closing","}"));S.output=Le.escapeLast(S.output,"{");P("braces")}if(r.strictSlashes!==true&&(R.type==="star"||R.type==="bracket")){j({type:"maybe_slash",value:"",output:`${p}?`})}if(S.backtrack===true){S.output="";for(let e of S.tokens){S.output+=e.output!=null?e.output:e.value;if(e.suffix){S.output+=e.suffix}}}return S};gt.fastpaths=((e,t)=>{let r=Object.assign({},t);let i=typeof r.maxLength==="number"?Math.min(lt,r.maxLength):lt;let n=e.length;if(n>i){throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`)}e=pt[e]||e;let s=Le.isWindows(t);const{DOT_LITERAL:a,SLASH_LITERAL:u,ONE_CHAR:o,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:c,STAR:p,START_ANCHOR:d}=Ne.globChars(s);let v=r.capture?"":"?:";let y=r.bash===true?".*?":p;let g=r.dot?h:f;let b=r.dot?c:f;if(r.capture){y=`(${y})`}const _=e=>{return`(${v}(?:(?!${d}${e.dot?l:a}).)*?)`};const m=e=>{switch(e){case"*":return`${g}${o}${y}`;case".*":return`${a}${o}${y}`;case"*.*":return`${g}${y}${a}${o}${y}`;case"*/*":return`${g}${y}${u}${o}${b}${y}`;case"**":return g+_(r);case"**/*":return`(?:${g}${_(r)}${u})?${b}${o}${y}`;case"**/*.*":return`(?:${g}${_(r)}${u})?${b}${y}${a}${o}${y}`;case"**/.*":return`(?:${g}${_(r)}${u})?${a}${o}${y}`;default:{let r=/^(.*?)\.(\w+)$/.exec(e);if(!r)return;let i=m(r[1],t);if(!i)return;return i+a+r[2]}}};let E=m(e);if(E&&r.strictSlashes!==true){E+=`${u}?`}return E});var bt=gt;const _t=(e,t,r=false)=>{if(Array.isArray(e)){let i=e.map(e=>_t(e,t,r));return e=>{for(let t of i){let r=t(e);if(r)return r}return false}}if(typeof e!=="string"||e===""){throw new TypeError("Expected pattern to be a non-empty string")}let i=t||{};let n=Le.isWindows(t);let s=_t.makeRe(e,t,false,true);let a=s.state;delete s.state;let u=()=>false;if(i.ignore){let e=Object.assign({},t,{ignore:null,onMatch:null,onResult:null});u=_t(i.ignore,e,r)}const o=(r,o=false)=>{let{isMatch:l,match:f,output:h}=_t.test(r,s,t,{glob:e,posix:n});let c={glob:e,state:a,regex:s,posix:n,input:r,output:h,match:f,isMatch:l};if(typeof i.onResult==="function"){i.onResult(c)}if(l===false){c.isMatch=false;return o?c:false}if(u(r)){if(typeof i.onIgnore==="function"){i.onIgnore(c)}c.isMatch=false;return o?c:false}if(typeof i.onMatch==="function"){i.onMatch(c)}return o?c:true};if(r){o.state=a}return o};_t.test=((e,t,r,{glob:i,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}let s=r||{};let a=s.format||(n?Le.toPosixSlashes:null);let u=e===i;let o=u&&a?a(e):e;if(u===false){o=a?a(e):e;u=o===i}if(u===false||s.capture===true){if(s.matchBase===true||s.basename===true){u=_t.matchBase(e,t,r,n)}else{u=t.exec(o)}}return{isMatch:!!u,match:u,output:o}});_t.matchBase=((e,t,r,i=Le.isWindows(r))=>{let s=t instanceof RegExp?t:_t.makeRe(t,r);return s.test(n.basename(e))});_t.isMatch=((e,t,r)=>_t(t,r)(e));_t.parse=((e,t)=>bt(e,t));_t.scan=((e,t)=>ot(e,t));_t.makeRe=((e,t,r=false,i=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let n=t||{};let s=n.contains?"":"^";let a=n.contains?"":"$";let u={negated:false,fastpaths:true};let o="";let l;if(e.startsWith("./")){e=e.slice(2);o=u.prefix="./"}if(n.fastpaths!==false&&(e[0]==="."||e[0]==="*")){l=bt.fastpaths(e,t)}if(l===void 0){u=_t.parse(e,t);u.prefix=o+(u.prefix||"");l=u.output}if(r===true){return l}let f=`${s}(?:${l})${a}`;if(u&&u.negated===true){f=`^(?!${f}).*$`}let h=_t.toRegex(f,t);if(i===true){h.state=u}return h});_t.toRegex=((e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}});_t.constants=Ne;var mt=_t;var Et=mt;const Dt=e=>typeof e==="string"&&(e===""||e==="./");const wt=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let i=new Set;let n=new Set;let s=new Set;let a=0;let u=e=>{s.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let s=0;s<t.length;s++){let o=Et(String(t[s]),Object.assign({},r,{onResult:u}),true);let l=o.state.negated||o.state.negatedExtglob;if(l)a++;for(let t of e){let e=o(t,true);let r=l?!e.isMatch:e.isMatch;if(!r)continue;if(l){i.add(e.output)}else{i.delete(e.output);n.add(e.output)}}}let o=a===t.length?[...s]:[...n];let l=o.filter(e=>!i.has(e));if(r&&l.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}}return l};wt.match=wt;wt.matcher=((e,t)=>Et(e,t));wt.isMatch=((e,t,r)=>Et(t,r)(e));wt.any=wt.isMatch;wt.not=((e,t,r={})=>{t=[].concat(t).map(String);let i=new Set;let n=[];let s=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let a=wt(e,t,Object.assign({},r,{onResult:s}));for(let e of n){if(!a.includes(e)){i.add(e)}}return[...i]});wt.contains=((e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${a.inspect(e)}"`)}if(Array.isArray(t)){return t.some(t=>wt.contains(e,t,r))}if(typeof t==="string"){if(Dt(e)||Dt(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return wt.isMatch(e,t,Object.assign({},r,{contains:true}))});wt.matchKeys=((e,t,r)=>{if(!Le.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let i=wt(Object.keys(e),t,r);let n={};for(let t of i)n[t]=e[t];return n});wt.some=((e,t,r)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=Et(String(e),r);if(i.some(e=>t(e))){return true}}return false});wt.every=((e,t,r)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=Et(String(e),r);if(!i.every(e=>t(e))){return false}}return true});wt.all=((e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${a.inspect(e)}"`)}return[].concat(t).every(t=>Et(t,r)(e))});wt.capture=((e,t,r)=>{let i=Le.isWindows(r);let n=Et.makeRe(String(e),Object.assign({},r,{capture:true}));let s=n.exec(i?Le.toPosixSlashes(t):t);if(s){return s.slice(1).map(e=>e===void 0?"":e)}});wt.makeRe=((...e)=>Et.makeRe(...e));wt.scan=((...e)=>Et.scan(...e));wt.parse=((e,t)=>{let r=[];for(let i of[].concat(e||[])){for(let e of de(String(i),t)){r.push(Et.parse(e,t))}}return r});wt.braces=((e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return de(e,t)});wt.braceExpand=((e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return wt.braces(e,Object.assign({},t,{expand:true}))});var At=wt;function ensureArray(e){if(Array.isArray(e))return e;if(e==undefined)return[];return[e]}function getMatcherString(e,t){if(t===false){return e}return i.resolve(...typeof t==="string"?[t,e]:[e])}const Ct=function createFilter(e,t,r){const n=r&&r.resolve;const s=e=>{return e instanceof RegExp?e:{test:At.matcher(getMatcherString(e,n).split(i.sep).join("/"),{dot:true})}};const a=ensureArray(e).map(s);const u=ensureArray(t).map(s);return function(e){if(typeof e!=="string")return false;if(/\0/.test(e))return false;e=e.split(i.sep).join("/");for(let t=0;t<u.length;++t){const r=u[t];if(r.test(e))return false}for(let t=0;t<a.length;++t){const r=a[t];if(r.test(e))return true}return!a.length}};const xt="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public";const St="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl";const kt=new Set(`${xt} ${St}`.split(" "));kt.add("");const Ft=function makeLegalIdentifier(e){e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(e[0])||kt.has(e)){e=`_${e}`}return e||"_"};function stringify$2(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,e=>`\\u${("000"+e.charCodeAt(0).toString(16)).slice(-4)}`)}function serializeArray(e,t,r){let i="[";const n=t?"\n"+r+t:"";for(let s=0;s<e.length;s++){const a=e[s];i+=`${s>0?",":""}${n}${serialize(a,t,r+t)}`}return i+`${t?"\n"+r:""}]`}function serializeObject(e,t,r){let i="{";const n=t?"\n"+r+t:"";const s=Object.keys(e);for(let a=0;a<s.length;a++){const u=s[a];const o=Ft(u)===u?u:stringify$2(u);i+=`${a>0?",":""}${n}${o}:${t?" ":""}${serialize(e[u],t,r+t)}`}return i+`${t?"\n"+r:""}}`}function serialize(e,t,r){if(e===Infinity)return"Infinity";if(e===-Infinity)return"-Infinity";if(e===0&&1/e===-Infinity)return"-0";if(e instanceof Date)return"new Date("+e.getTime()+")";if(e instanceof RegExp)return e.toString();if(e!==e)return"NaN";if(Array.isArray(e))return serializeArray(e,t,r);if(e===null)return"null";if(typeof e==="object")return serializeObject(e,t,r);return stringify$2(e)}const Rt=function dataToEsm(e,t={}){const r=t.compact?"":"indent"in t?t.indent:"\t";const i=t.compact?"":" ";const n=t.compact?"":"\n";const s=t.preferConst?"const":"var";if(t.namedExports===false||typeof e!=="object"||Array.isArray(e)||e instanceof Date||e instanceof RegExp||e===null){const n=serialize(e,t.compact?null:r,"");const s=i||(/^[{[\-\/]/.test(n)?"":" ");return`export default${s}${n};`}let a="";const u=[];const o=Object.keys(e);for(let l=0;l<o.length;l++){const f=o[l];if(f===Ft(f)){if(t.objectShorthand)u.push(f);else u.push(`${f}:${i}${f}`);a+=`export ${s} ${f}${i}=${i}${serialize(e[f],t.compact?null:r,"")};${n}`}else{u.push(`${stringify$2(f)}:${i}${serialize(e[f],t.compact?null:r,"")}`)}}return a+`export default${i}{${n}${r}${u.join(`,${n}${r}`)}${n}};${n}`};t.addExtension=u;t.attachScopes=h;t.createFilter=Ct;t.dataToEsm=Rt;t.extractAssignedNames=l;t.makeLegalIdentifier=Ft},314:function(e){"use strict";e.exports=setInterval},320:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSpaceSeparator=isSpaceSeparator;t.isIdStartChar=isIdStartChar;t.isIdContinueChar=isIdContinueChar;t.isDigit=isDigit;t.isHexDigit=isHexDigit;var i=r(858);var n=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function isSpaceSeparator(e){return n.Space_Separator.test(e)}function isIdStartChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||n.ID_Start.test(e)}function isIdContinueChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||n.ID_Continue.test(e)}function isDigit(e){return/[0-9]/.test(e)}function isHexDigit(e){return/[0-9A-Fa-f]/.test(e)}},327:function(e,t,r){e.exports=glob;var i=r(66);var n=r(129);var s=r(620);var a=s.Minimatch;var u=r(207);var o=r(485).EventEmitter;var l=r(589);var f=r(393);var h=r(969);var c=r(487);var p=r(922);var d=p.alphasort;var v=p.alphasorti;var y=p.setopts;var g=p.ownProp;var b=r(408);var _=r(64);var m=p.childrenIgnored;var E=p.isIgnored;var D=r(83);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return c(e,t)}return new Glob(e,t,r)}glob.sync=c;var w=glob.GlobSync=c.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;u(Glob,o);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);y(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=D(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick(function(){n._finish()})}else{n._finish()}}}}Glob.prototype._finish=function(){f(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var s=this;var a=i.length;if(a===0)return t();var u=this.matches[e]=Object.create(null);i.forEach(function(r,i){r=s._makeAbs(r);n.realpath(r,s.realpathCache,function(i,n){if(!i)u[n]=true;else if(i.syscall==="stat")u[r]=true;else s.emit("error",i);if(--a===0){s.matches[e]=u;t()}})})};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){f(this instanceof Glob);f(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var n=0;while(typeof e[n]==="string"){n++}var a;switch(n){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:a=null;break;default:a=e.slice(0,n).join("/");break}var u=e.slice(n);var o;if(a===null)o=".";else if(h(a)||h(e.join("/"))){if(!a||!h(a))a="/"+a;o=a}else o=a;var l=this._makeAbs(o);if(m(this,o))return i();var c=u[0]===s.GLOBSTAR;if(c)this._processGlobStar(a,o,l,u,t,r,i);else this._processReaddir(a,o,l,u,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,s,a){var u=this;this._readdir(r,s,function(o,l){return u._processReaddir2(e,t,r,i,n,s,l,a)})};Glob.prototype._processReaddir2=function(e,t,r,i,n,s,a,u){if(!a)return u();var o=i[0];var f=!!this.minimatch.negate;var h=o._glob;var c=this.dot||h.charAt(0)===".";var p=[];for(var d=0;d<a.length;d++){var v=a[d];if(v.charAt(0)!=="."||c){var y;if(f&&!e){y=!v.match(o)}else{y=v.match(o)}if(y)p.push(v)}}var g=p.length;if(g===0)return u();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<g;d++){var v=p[d];if(e){if(e!=="/")v=e+"/"+v;else v=e+v}if(v.charAt(0)==="/"&&!this.nomount){v=l.join(this.root,v)}this._emitMatch(n,v)}return u()}i.shift();for(var d=0;d<g;d++){var v=p[d];var b;if(e){if(e!=="/")v=e+"/"+v;else v=e+v}this._process([v].concat(i),n,s,u)}u()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(E(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=h(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var s=b(r,lstatcb_);if(s)i.lstat(e,s);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var s=i&&i.isSymbolicLink();n.symlinks[e]=s;if(!s&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=b("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!g(this.symlinks,e))return this._readdirInGlobStar(e,r);if(g(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var s=this;i.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,s,a){var u=this;this._readdir(r,s,function(o,l){u._processGlobStar2(e,t,r,i,n,s,l,a)})};Glob.prototype._processGlobStar2=function(e,t,r,i,n,s,a,u){if(!a)return u();var o=i.slice(1);var l=e?[e]:[];var f=l.concat(o);this._process(f,n,false,u);var h=this.symlinks[r];var c=a.length;if(h&&s)return u();for(var p=0;p<c;p++){var d=a[p];if(d.charAt(0)==="."&&!this.dot)continue;var v=l.concat(a[p],o);this._process(v,n,true,u);var y=l.concat(a[p],i);this._process(y,n,true,u)}u()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,function(n,s){i._processSimple2(e,t,n,s,r)})};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&h(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&g(this.cache,r)){var s=this.cache[r];if(Array.isArray(s))s="DIR";if(!n||s==="DIR")return t(null,s);if(n&&s==="FILE")return t()}var a;var u=this.statCache[r];if(u!==undefined){if(u===false)return t(null,u);else{var o=u.isDirectory()?"DIR":"FILE";if(n&&o==="FILE")return t();else return t(null,o,u)}}var l=this;var f=b("stat\0"+r,lstatcb_);if(f)i.lstat(r,f);function lstatcb_(n,s){if(s&&s.isSymbolicLink()){return i.stat(r,function(i,n){if(i)l._stat2(e,r,null,s,t);else l._stat2(e,r,i,n,t)})}else{l._stat2(e,r,n,s,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var s=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},337:function(e,t,r){"use strict";const i=r(589);const n=r(607);const s=r(685);const a=/[\uD800-\uDFFF]./;const u=n.filter(e=>a.test(e));const o={};function encodeStringToEmoji(e,t){if(o[e]){return o[e]}t=t||1;const r=[];do{if(!u.length){throw new Error("Ran out of emoji")}const e=Math.floor(Math.random()*u.length);r.push(u[e]);u.splice(e,1)}while(--t>0);const i=r.join("");o[e]=i;return i}function interpolateName(e,t,r){let n;if(typeof t==="function"){n=t(e.resourcePath)}else{n=t||"[hash].[ext]"}const a=r.context;const u=r.content;const o=r.regExp;let l="bin";let f="file";let h="";let c="";if(e.resourcePath){const t=i.parse(e.resourcePath);let r=e.resourcePath;if(t.ext){l=t.ext.substr(1)}if(t.dir){f=t.name;r=t.dir+i.sep}if(typeof a!=="undefined"){h=i.relative(a,r+"_").replace(/\\/g,"/").replace(/\.\.(\/)?/g,"_$1");h=h.substr(0,h.length-1)}else{h=r.replace(/\\/g,"/").replace(/\.\.(\/)?/g,"_$1")}if(h.length===1){h=""}else if(h.length>1){c=i.basename(h)}}let p=n;if(u){p=p.replace(/\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,(e,t,r,i)=>s(u,t,r,parseInt(i,10))).replace(/\[emoji(?::(\d+))?\]/gi,(e,t)=>encodeStringToEmoji(u,parseInt(t,10)))}p=p.replace(/\[ext\]/gi,()=>l).replace(/\[name\]/gi,()=>f).replace(/\[path\]/gi,()=>h).replace(/\[folder\]/gi,()=>c);if(o&&e.resourcePath){const t=e.resourcePath.match(new RegExp(o));t&&t.forEach((e,t)=>{p=p.replace(new RegExp("\\["+t+"\\]","ig"),e)})}if(typeof e.options==="object"&&typeof e.options.customInterpolateName==="function"){p=e.options.customInterpolateName.call(e,p,t,r)}return p}e.exports=interpolateName},341:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},347:function(e){e.exports={assert:true,async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:true,child_process:true,cluster:true,console:true,constants:true,crypto:true,_debugger:"< 8",dgram:true,dns:true,domain:true,events:true,freelist:"< 6",fs:true,"fs/promises":">= 10 && < 10.1",_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:true,http2:">= 8.8",https:true,inspector:">= 8.0.0",_linklist:"< 8",module:true,net:true,"node-inspect/lib/_inspect":">= 7.6.0","node-inspect/lib/internal/inspect_client":">= 7.6.0","node-inspect/lib/internal/inspect_repl":">= 7.6.0",os:true,path:true,perf_hooks:">= 8.5",process:">= 1",punycode:true,querystring:true,readline:true,repl:true,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:true,string_decoder:true,sys:true,timers:true,_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:true,trace_events:">= 10",tty:true,url:true,util:true,"v8/tools/arguments":">= 10","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0"],v8:">= 1",vm:true,worker_threads:">= 11.7",zlib:true}},348:function(e,t,r){var i=r(20);var n=r(491);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var u="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(u).split("\\,").join(o).split("\\.").join(l)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(u).join("}").split(o).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var a=r.post;var u=i.split(",");u[u.length-1]+="{"+s+"}";var o=parseCommaParts(a);if(a.length){u[u.length-1]+=o.shift();u.push.apply(u,o)}t.push.apply(t,u);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=n("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=a||o;var f=s.body.indexOf(",")>=0;if(!l&&!f){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+u+s.post;return expand(e)}return[e]}var h;if(l){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var c=s.post.length?expand(s.post,false):[""];return c.map(function(e){return s.pre+h[0]+e})}}}var p=s.pre;var c=s.post.length?expand(s.post,false):[""];var d;if(l){var v=numeric(h[0]);var y=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var b=h.length==3?Math.abs(numeric(h[2])):1;var _=lte;var m=y<v;if(m){b*=-1;_=gte}var E=h.some(isPadded);d=[];for(var D=v;_(D,y);D+=b){var w;if(o){w=String.fromCharCode(D);if(w==="\\")w=""}else{w=String(D);if(E){var A=g-w.length;if(A>0){var C=new Array(A+1).join("0");if(D<0)w="-"+C+w.slice(1);else w=C+w}}}d.push(w)}}else{d=i(h,function(e){return expand(e,false)})}for(var x=0;x<d.length;x++){for(var S=0;S<c.length;S++){var k=p+d[x]+c[S];if(!t||l||k)r.push(k)}}return r}},353:function(e,t,r){var i=r(393);var n=r(631);var s=r(485);if(typeof s!=="function"){s=s.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new s;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){i.equal(typeof e,"function","a callback must be provided for exit handler");if(o===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var n=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return n};e.exports.unload=unload;function unload(){if(!o){return}o=false;n.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}});process.emit=f;process.reallyExit=l;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var u={};n.forEach(function(e){u[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}});e.exports.signals=function(){return n};e.exports.load=load;var o=false;function load(){if(o){return}o=true;a.count+=1;n=n.filter(function(e){try{process.on(e,u[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var f=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=f.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return f.apply(this,arguments)}}},354:function(e,t){"use strict";var r="[";t.up=function up(e){return r+(e||"")+"A"};t.down=function down(e){return r+(e||"")+"B"};t.forward=function forward(e){return r+(e||"")+"C"};t.back=function back(e){return r+(e||"")+"D"};t.nextLine=function nextLine(e){return r+(e||"")+"E"};t.previousLine=function previousLine(e){return r+(e||"")+"F"};t.horizontalAbsolute=function horizontalAbsolute(e){if(e==null)throw new Error("horizontalAboslute requires a column to position to");return r+e+"G"};t.eraseData=function eraseData(){return r+"J"};t.eraseLine=function eraseLine(){return r+"K"};t.goto=function(e,t){return r+t+";"+e+"H"};t.gotoSOL=function(){return"\r"};t.beep=function(){return""};t.hideCursor=function hideCursor(){return r+"?25l"};t.showCursor=function showCursor(){return r+"?25h"};var i={reset:0,bold:1,italic:3,underline:4,inverse:7,stopBold:22,stopItalic:23,stopUnderline:24,stopInverse:27,white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,bgWhite:47,bgBlack:40,bgBlue:44,bgCyan:46,bgGreen:42,bgMagenta:45,bgRed:41,bgYellow:43,grey:90,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97,bgGrey:100,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107};t.color=function color(e){if(arguments.length!==1||!Array.isArray(e)){e=Array.prototype.slice.call(arguments)}return r+e.map(colorNameToCode).join(";")+"m"};function colorNameToCode(e){if(i[e]!=null)return i[e];throw new Error("Unknown color or style name: "+e)}},358:function(e,t,r){"use strict";var i=r(64);var n=r(663);var s=e.exports=function(e,t){n.call(this,e);this.workDone=0;this.workTodo=t||0};i.inherits(s,n);s.prototype.completed=function(){return this.workTodo===0?0:this.workDone/this.workTodo};s.prototype.addWork=function(e){this.workTodo+=e;this.emit("change",this.name,this.completed(),this)};s.prototype.completeWork=function(e){this.workDone+=e;if(this.workDone>this.workTodo)this.workDone=this.workTodo;this.emit("change",this.name,this.completed(),this)};s.prototype.finish=function(){this.workTodo=this.workDone=1;this.emit("change",this.name,1,this)}},377:function(e,t,r){var i=r(55);var n=r(66);var s=r(589);var a=r(68);var u=r(807);var o=r(764);var l=function isFile(e){try{var t=n.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return t.isFile()||t.isFIFO()};e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Path must be a string.")}var r=o(e,t);var f=r.isFile||l;var h=r.readFileSync||n.readFileSync;var c=r.extensions||[".js"];var p=r.basedir||s.dirname(a());var d=r.filename||p;r.paths=r.paths||[];var v=s.resolve(p);if(r.preserveSymlinks===false){try{v=n.realpathSync(v)}catch(e){if(e.code!=="ENOENT"){throw e}}}if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var y=s.resolve(v,e);if(e===".."||e.slice(-1)==="/")y+="/";var g=loadAsFileSync(y)||loadAsDirectorySync(y);if(g)return g}else{var b=loadNodeModulesSync(e,v);if(b)return b}if(i[e])return e;var _=new Error("Cannot find module '"+e+"' from '"+d+"'");_.code="MODULE_NOT_FOUND";throw _;function loadAsFileSync(e){var t=loadpkg(s.dirname(e));if(t&&t.dir&&t.pkg&&r.pathFilter){var i=s.relative(t.dir,e);var n=r.pathFilter(t.pkg,e,i);if(n){e=s.resolve(t.dir,n)}}if(f(e)){return e}for(var a=0;a<c.length;a++){var u=e+c[a];if(f(u)){return u}}}function loadpkg(e){if(e===""||e==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return}if(/[/\\]node_modules[/\\]*$/.test(e))return;var t=s.join(e,"package.json");if(!f(t)){return loadpkg(s.dirname(e))}var i=h(t);try{var n=JSON.parse(i)}catch(e){}if(n&&r.packageFilter){n=r.packageFilter(n,e)}return{pkg:n,dir:e}}function loadAsDirectorySync(e){var t=s.join(e,"/package.json");if(f(t)){try{var i=h(t,"UTF8");var n=JSON.parse(i)}catch(e){}if(r.packageFilter){n=r.packageFilter(n,e)}if(n.main){if(typeof n.main!=="string"){var a=new TypeError("package “"+n.name+"” `main` must be a string");a.code="INVALID_PACKAGE_MAIN";throw a}if(n.main==="."||n.main==="./"){n.main="index"}try{var u=loadAsFileSync(s.resolve(e,n.main));if(u)return u;var o=loadAsDirectorySync(s.resolve(e,n.main));if(o)return o}catch(e){}}}return loadAsFileSync(s.join(e,"/index"))}function loadNodeModulesSync(e,t){var i=u(t,r,e);for(var n=0;n<i.length;n++){var a=i[n];var o=loadAsFileSync(s.join(a,"/",e));if(o)return o;var l=loadAsDirectorySync(s.join(a,"/",e));if(l)return l}}}},378:function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var i=r(393);var n=r(589);var s=r(66);var a=r(327);var u=parseInt("666",8);var o={nosort:true,silent:true};var l=0;var f=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(t){e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}e.disableGlob=e.disableGlob||false;e.glob=e.glob||o}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i.equal(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.equal(typeof t,"object","rimraf: options should be object");defaults(t);var n=0;var s=null;var u=0;if(t.disableGlob||!a.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,function(r,i){if(!r)return afterGlob(null,[e]);a(e,t.glob,afterGlob)});function next(e){s=s||e;if(--u===0)r(s)}function afterGlob(e,i){if(e)return r(e);u=i.length;if(u===0)return r();i.forEach(function(e){rimraf_(e,t,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<t.maxBusyTries){n++;var i=n*100;return setTimeout(function(){rimraf_(e,t,CB)},i)}if(r.code==="EMFILE"&&l<t.emfileWait){return setTimeout(function(){rimraf_(e,t,CB)},l++)}if(r.code==="ENOENT")r=null}l=0;next(r)})})}}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,function(i,n){if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&f)fixWinEPERM(e,t,i,r);if(n&&n.isDirectory())return rmdir(e,t,i,r);t.unlink(e,function(i){if(i){if(i.code==="ENOENT")return r(null);if(i.code==="EPERM")return f?fixWinEPERM(e,t,i,r):rmdir(e,t,i,r);if(i.code==="EISDIR")return rmdir(e,t,i,r)}return r(i)})})}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");if(r)i(r instanceof Error);t.chmod(e,u,function(i){if(i)n(i.code==="ENOENT"?null:r);else t.stat(e,function(i,s){if(i)n(i.code==="ENOENT"?null:r);else if(s.isDirectory())rmdir(e,t,r,n);else t.unlink(e,n)})})}function fixWinEPERMSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.chmodSync(e,u)}catch(e){if(e.code==="ENOENT")return;else throw r}try{var n=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)}function rmdir(e,t,r,n){i(e);i(t);if(r)i(r instanceof Error);i(typeof n==="function");t.rmdir(e,function(i){if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM"))rmkids(e,t,n);else if(i&&i.code==="ENOTDIR")n(r);else n(i)})}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,function(i,s){if(i)return r(i);var a=s.length;if(a===0)return t.rmdir(e,r);var u;s.forEach(function(i){rimraf(n.join(e,i),t,function(i){if(u)return;if(i)return r(u=i);if(--a===0)t.rmdir(e,r)})})})}function rimrafSync(e,t){t=t||{};defaults(t);i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!a.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(i){r=a.sync(e,t.glob)}}if(!r.length)return;for(var n=0;n<r.length;n++){var e=r[n];try{var s=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&f)fixWinEPERMSync(e,t,r)}try{if(s&&s.isDirectory())rmdirSync(e,t,null);else t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return f?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r);if(r.code!=="EISDIR")throw r;rmdirSync(e,t,r)}}}function rmdirSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.rmdirSync(e)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")rmkidsSync(e,t)}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach(function(r){rimrafSync(n.join(e,r),t)});var r=f?100:1;var s=0;do{var a=true;try{var u=t.rmdirSync(e,t);a=false;return u}finally{if(++s<r&&a)continue}}while(true)}},379:function(e,t,r){const i=r(589);const{readFileSync:n,readFile:s,stat:a,lstat:u,readlink:o,statSync:l}=r(813);const{walk:f}=r(825);const h=r(860);const{attachScopes:c}=r(308);const p=r(928);let d=r(996);const v=r(963);const y=r(288);const g=r(779);const b=r(327);const _=r(991);const m=r(755);const{pregyp:E,nbind:D}=r(781);const w=r(384);const{getOptions:A}=r(669);const C=r(564);const x=r(228);const S=r(431);const k=r(594);d=d.Parser.extend(r(668),r(392),r(906),r(872),r(389));const F=[".js",".json",".node"];const{UNKNOWN:R,FUNCTION:T,WILDCARD:O,wildcardRegEx:I}=p;function isIdentifierRead(e,t){switch(t.type){case"ObjectPattern":case"ArrayPattern":return false;case"AssignmentExpression":return t.right===e;case"MemberExpression":return t.computed||e===t.object;case"Property":return e===t.value;case"MethodDefinition":return false;case"VariableDeclarator":return t.id!==e;case"ExportSpecifier":return false;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":return false;default:return true}}function isVarLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"}function isLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="WhileStatement"||e.type==="DoWhileStatement"}const B=new Map;let N;function getAssetState(e,t){let r=B.get(t);if(!r){B.set(t,r={entryIds:getEntryIds(t),assets:Object.create(null),assetNames:Object.create(null),assetPermissions:Object.create(null),hadOptions:false})}if(!r.hadOptions){r.hadOptions=true;if(e&&e.existingAssetNames){e.existingAssetNames.forEach(e=>{r.assetNames[e]=true})}}return N=r}const L=e=>Array.prototype.concat.apply([],e);function getEntryIds(e){if(e.options.entry){if(typeof e.options.entry==="string"){try{return[C.sync(e.options.entry,{extensions:F})]}catch(e){return}}else if(typeof e.options.entry==="object"){try{return L(Object.values(e.options.entry).map(e=>{if(typeof e==="string"){return[e]}if(e&&Array.isArray(e.import)){return e.import}return[]})).map(e=>C.sync(e,{extensions:F}))}catch(e){return}}}}function assetBase(e){if(!e)return"";if(e.endsWith("/")||e.endsWith("\\"))return e;return e+"/"}const P={cwd:()=>{return J},env:{NODE_ENV:R,[R]:true},[R]:true};const j=Symbol();const q=Symbol();const $=Symbol();const M=Symbol();const U=Symbol();const H=Symbol();const W=Symbol();const G={access:M,accessSync:M,createReadStream:M,exists:M,existsSync:M,fstat:M,fstatSync:M,lstat:M,lstatSync:M,open:M,readFile:M,readFileSync:M,stat:M,statSync:M};const V=Object.assign(Object.create(null),{bindings:{default:H},express:{default:function(){return{[R]:true,set:j,engine:q}}},fs:{default:G,...G},process:{default:P,...P},path:{default:{}},os:{default:S,...S},"node-pre-gyp":E,"node-pre-gyp/lib/pre-binding":E,"node-pre-gyp/lib/pre-binding.js":E,"node-gyp-build":{default:W},nbind:{init:$,default:{init:$}},"resolve-from":{default:U}});const z={MONGOOSE_DRIVER_PATH:undefined};z.global=z.GLOBAL=z.globalThis=z;const K=Symbol();E.find[K]=true;const Q=V.path;Object.keys(i).forEach(e=>{const t=i[e];if(typeof t==="function"){const r=function(){return t.apply(this,arguments)};r[K]=true;Q[e]=Q.default[e]=r}else{Q[e]=Q.default[e]=t}});Q.resolve=Q.default.resolve=function(...e){return i.resolve.apply(this,[J,...e])};Q.resolve[K]=true;const X=new Set([".h",".cmake",".c",".cpp"]);const Z=new Set(["CHANGELOG.md","README.md","readme.md","changelog.md"]);let J;function backtrack(e,t){if(!t||t.type!=="ArrayExpression")return e.skip()}const Y=/^\/[^\/]+|^[a-z]:[\\/][^\\/]+/i;function isAbsolutePathStr(e){return typeof e==="string"&&e.match(Y)}const ee=Symbol();function generateWildcardRequire(e,t,r,n,s){const a=n.length;const u=t.endsWith(O);const o=t.indexOf(O);const l=t.substr(0,o);const f=t.substr(o+1);const h=f?"?(.@(js|json|node))":".@(js|json|node)";if(s)console.log("Generating wildcard requires for "+t.replace(O,"*"));let c=b.sync(l+"**"+f+h,{mark:true,ignore:"node_modules/**/*"});if(!c.length)return;const p=c.map((t,r)=>{const n=JSON.stringify(t.substring(l.length,t.lastIndexOf(f)));let s=i.relative(e,t).replace(/\\/g,"/");if(!s.startsWith("../"))s="./"+s;let a=r===0?" ":" else ";if(u&&n.endsWith('.js"'))a+=`if (arg === ${n} || arg === ${n.substr(0,n.length-4)}")`;else if(u&&n.endsWith('.json"'))a+=`if (arg === ${n} || arg === ${n.substr(0,n.length-6)}")`;else if(u&&n.endsWith('.node"'))a+=`if (arg === ${n} || arg === ${n.substr(0,n.length-6)}")`;else a+=`if (arg === ${n})`;a+=` return require(${JSON.stringify(s)});`;return a}).join("\n");n.push(`function __ncc_wildcard$${a} (arg) {\n${p}\n}`);return`__ncc_wildcard$${a}(${r})`}const te=new WeakSet;function injectPathHook(e,t){const{mainTemplate:r}=e;if(!te.has(r)){te.add(r);r.hooks.requireExtensions.tap("asset-relocator-loader",(e,r)=>{let n="";if(r.name){n=i.relative(i.dirname(r.name),".").replace(/\\/g,"/");if(n.length)n="/"+n}return`${e}\n__webpack_require__.ab = __dirname + ${JSON.stringify(n+"/"+assetBase(t))};`})}}e.exports=async function(e,t){if(this.cacheable)this.cacheable();this.async();const r=this.resourcePath;const E=i.dirname(r);const x=A(this);injectPathHook(this._compilation,x.outputAssetBase);if(r.endsWith(".node")){const t=getAssetState(x,this._compilation);const i=_(this.resourcePath)||E;await g(i,t,assetBase(x.outputAssetBase),this.emitFile);let n;if(!(n=t.assets[r]))n=t.assets[r]=y(r.substr(i.length+1).replace(/\\/g,"/"),r,t.assetNames);const s=await new Promise((e,t)=>a(r,(r,i)=>r?t(r):e(i.mode)));t.assetPermissions[n]=s;this.emitFile(assetBase(x.outputAssetBase)+n,e);this.callback(null,"module.exports = __non_webpack_require__(__webpack_require__.ab + "+JSON.stringify(n)+")");return}if(r.endsWith(".json"))return this.callback(null,S,t);let S=e.toString();if(typeof x.production==="boolean"&&P.env.NODE_ENV===R){P.env.NODE_ENV=x.production?"production":"dev"}if(!J){if(typeof x.cwd==="string")J=i.resolve(x.cwd);else J=process.cwd()}const B=getAssetState(x,this._compilation);const N=B.entryIds;const L=_(r);const G=e=>{let t=i.basename(e);if(e.endsWith(".node")){if(L)t=e.substr(L.length+1).replace(/\\/g,"/");const r=g(L,B,assetBase(x.outputAssetBase),this.emitFile);te=te.then(()=>{return r})}let n;if(!(n=B.assets[e])){n=B.assets[e]=y(t,e,B.assetNames);if(x.debugLog)console.log("Emitting "+e+" for static use in module "+r)}te=te.then(async()=>{const[t,r]=await Promise.all([new Promise((t,r)=>s(e,(e,i)=>e?r(e):t(i))),await new Promise((t,r)=>u(e,(e,i)=>e?r(e):t(i)))]);if(r.isSymbolicLink()){const t=await new Promise((t,r)=>{o(e,(e,i)=>e?r(e):t(i))});const r=i.dirname(e);B.assetSymlinks[assetBase(x.outputAssetBase)+n]=i.relative(r,i.resolve(r,t))}else{B.assetPermissions[assetBase(x.outputAssetBase)+n]=r.mode;this.addDependency(e);this.emitFile(assetBase(x.outputAssetBase)+n,t)}});return"__webpack_require__.ab + "+JSON.stringify(n)};const Q=(e,t)=>{const n=e.indexOf(O);const a=n===-1?e.length:e.lastIndexOf(i.sep,n);const l=e.substr(0,a);const f=e.substr(a);const h=f.replace(I,(e,t)=>{return f[t-1]===i.sep?"**/*":"*/**/*"})||"/**/*";if(x.debugLog)console.log("Emitting directory "+l+h+" for static use in module "+r);const c=i.basename(l);const p=B.assets[l]||(B.assets[l]=y(c,l,B.assetNames));B.assets[l]=p;const d=b.sync(l+h,{mark:true,ignore:"node_modules/**/*"}).filter(e=>!X.has(i.extname(e))&&!Z.has(i.basename(e))&&!e.endsWith("/"));if(!d.length)return;te=te.then(async()=>{await Promise.all(d.map(async e=>{const[t,r]=await Promise.all([new Promise((t,r)=>s(e,(e,i)=>e?r(e):t(i))),await new Promise((t,r)=>u(e,(e,i)=>e?r(e):t(i)))]);if(r.isSymbolicLink()){const t=await new Promise((t,r)=>{o(e,(e,i)=>e?r(e):t(i))});const r=i.dirname(e);B.assetSymlinks[assetBase(x.outputAssetBase)+p+e.substr(l.length)]=i.relative(r,i.resolve(r,t)).replace(/\\/g,"/")}else{B.assetPermissions[assetBase(x.outputAssetBase)+p+e.substr(l.length)]=r.mode;this.addDependency(e);this.emitFile(assetBase(x.outputAssetBase)+p+e.substr(l.length),t)}}))});let v="";let g="";if(t){let e=f;let r=true;for(const i of t){const t=e.indexOf(O);const n=e.substr(0,t);e=e.substr(t+1);if(r){g=n;r=false}else{v+=" + '"+JSON.stringify(n).slice(1,-1)+"'"}if(i.type==="SpreadElement")v+=" + "+S.substring(i.argument.start,i.argument.end)+".join('/')";else v+=" + "+S.substring(i.start,i.end)}if(e.length){v+=" + '"+JSON.stringify(e).slice(1,-1)+"'"}}return"__webpack_require__.ab + "+JSON.stringify(p+g)+v};let te=Promise.resolve();const re=new h(S);let ie,ne;try{ie=d.parse(S,{allowReturnOutsideFunction:true,ecmaVersion:2020});ne=false}catch(e){}if(!ie){try{ie=d.parse(S,{sourceType:"module",ecmaVersion:2020});ne=true}catch(e){return this.callback(null,S,t)}}let se=c(ie,"scope");let ae=false;const ue=Object.assign(Object.create(null),{__dirname:{shadowDepth:0,value:i.resolve(r,"..")},__filename:{shadowDepth:0,value:r},process:{shadowDepth:0,value:P}});if(!ne){ue.require={shadowDepth:0,value:{[T](e){const t=V[e];return t.default},resolve(e){return C.sync(e,{basedir:E,extensions:F})}}};ue.require.value.resolve[K]=true}let oe=[];function setKnownBinding(e,t){if(e==="require")return;ue[e]={shadowDepth:0,value:t}}function getKnownBinding(e){const t=ue[e];if(t){if(t.shadowDepth===0){return t.value}}}if(ne){for(const e of ie.body){if(e.type==="ImportDeclaration"){const t=e.source.value;const r=V[t];if(r){for(const t of e.specifiers){if(t.type==="ImportNamespaceSpecifier")setKnownBinding(t.local.name,r);else if(t.type==="ImportDefaultSpecifier"&&"default"in r)setKnownBinding(t.local.name,r.default);else if(t.type==="ImportSpecifier"&&t.imported.name in r)setKnownBinding(t.local.name,r[t.imported.name])}}}}}function computePureStaticValue(e,t=true){const r=Object.create(null);Object.keys(ue).forEach(e=>{r[e]=getKnownBinding(e)});Object.keys(z).forEach(e=>{r[e]=z[e]});const i=p(e,r,t);return i}let le,fe;let he=false;let ce;function isStaticRequire(e){return e&&e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="require"&&ue.require.shadowDepth===0&&e.arguments.length===1&&e.arguments[0].type==="Literal"}({ast:ie=ie,scope:se=se,transformed:ae=ae}=w({id:r,ast:ie,scope:se,pkgBase:L,magicString:re,options:x,emitAsset:G,emitAssetDirectory:Q})||{});f(ie,{enter(e,t){if(e.scope){se=e.scope;for(const t in e.scope.declarations){if(t in ue)ue[t].shadowDepth++}}if(le)return backtrack(this,t);if(e.type==="Identifier"){if(isIdentifierRead(e,t)){let r;if(typeof(r=getKnownBinding(e.name))==="string"&&r.match(Y)||r&&(typeof r==="function"||typeof r==="object")&&r[K]){fe={value:typeof r==="string"?r:undefined};le=e;return this.skip()}else if(!ne&&e.name==="require"&&ue.require.shadowDepth===0&&t.type!=="UnaryExpression"){re.overwrite(e.start,e.end,"__non_webpack_require__");ae=true;return this.skip()}else if(!ne&&e.name==="__non_webpack_require__"&&t.type!=="UnaryExpression"){re.overwrite(e.start,e.end,'eval("require")');ae=true;return this.skip()}}}else if(!ne&&e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="require"&&ue.require.shadowDepth===0&&e.arguments.length){const u=e.arguments[0];const{result:o,sawIdentifier:l}=computePureStaticValue(u,true);if(!o){if(u.type==="LogicalExpression"&&u.operator==="||"&&u.left.type==="Identifier"){ae=true;re.overwrite(u.start,u.end,S.substring(u.right.start,u.right.end));return this.skip()}ae=true;re.overwrite(e.callee.start,e.callee.end,"__non_webpack_require__");return this.skip()}else if(typeof o.value==="string"&&l){if(o.wildcards){const t=i.resolve(E,o.value);if(o.wildcards.length===1&&validAssetEmission(t)){const r=generateWildcardRequire(E,t,S.substring(o.wildcards[0].start,o.wildcards[0].end),oe,x.debugLog);if(r){re.overwrite(e.start,e.end,r);ae=true;return this.skip()}}}else if(o.value){re.overwrite(u.start,u.end,JSON.stringify(o.value));ae=true;return this.skip()}}else if(o&&typeof o.then==="string"&&typeof o.else==="string"&&l){const e=computePureStaticValue(o.test,true).result;if(e&&"value"in e){if(e){ae=true;re.overwrite(u.start,u.end,JSON.stringify(o.then));return this.skip()}else{ae=true;re.overwrite(u.start,u.end,JSON.stringify(o.else));return this.skip()}}else{const e=S.substring(o.test.start,o.test.end);ae=true;re.overwrite(u.start,u.end,`${e} ? ${JSON.stringify(o.then)} : ${JSON.stringify(o.else)}`);return this.skip()}}else if(t.type==="CallExpression"&&t.callee===e){if(o.value==="pkginfo"&&t.arguments.length&&t.arguments[0].type==="Identifier"&&t.arguments[0].name==="module"){let e=new Set;for(let r=1;r<t.arguments.length;r++){if(t.arguments[r].type==="Literal")e.add(t.arguments[r].value)}const i=m(r);if(i){try{var s=JSON.parse(n(i+"/package.json"));if(e.size){for(var a in s){if(!e.has(a))delete s[a]}}}catch(e){}if(s){ae=true;re.overwrite(t.start,t.end,`Object.assign(module.exports, ${JSON.stringify(s)})`);return this.skip()}}}return this.skip()}else{return this.skip()}}else if(!ne&&e.type==="MemberExpression"&&e.object.type==="Identifier"&&e.object.name==="require"&&ue.require.shadowDepth===0&&e.property.type==="Identifier"&&!e.computed){if(e.property.name==="main"&&t&&t.type==="BinaryExpression"&&(t.operator==="=="||t.operator==="===")){let i;i=t.right===e?t.left:t.right;if(i.type==="Identifier"&&i.name==="module"){if(N&&N.indexOf(r)!==-1){re.overwrite(i.start,i.end,"__non_webpack_require__.cache[eval('__filename')]")}else{re.overwrite(t.start,t.end,"false");ae=true;return this.skip()}}}if(e.property.name==="ensure"){return this.skip()}}else if(!ne&&e.type==="MemberExpression"&&e.object.type==="Identifier"&&e.object.name==="module"&&"module"in ue===false&&e.property.type==="Identifier"&&!e.computed&&e.property.name==="require"){re.overwrite(e.start,e.end,"require");e.type="Identifier";e.name="require";ae=true}else if(e.type==="CallExpression"){const r=computePureStaticValue(e.callee,false).result;if(r&&typeof r.value==="function"&&r.value[K]){fe=computePureStaticValue(e,true).result;if(fe){le=e;return backtrack(this,t)}}else if(r&&typeof r.value==="symbol"){switch(r.value){case ee:if(e.arguments.length===1&&e.arguments[0].type==="Literal"&&e.callee.type==="Identifier"&&ue.require.shadowDepth===0){ae=true;re.overwrite(e.callee.start,e.callee.end,"require");re.appendRight(e.start,ce+"(");re.appendLeft(e.end,", "+S.substring(e.arguments[0].start,e.arguments[0].end)+")");return this.skip()}break;case H:if(e.arguments.length){const r=computePureStaticValue(e.arguments[0],false).result;if(r&&r.value){let i=false;let n;if(typeof r.value==="object")n=r.value;else if(typeof r.value==="string")n={bindings:r.value};if(!n.path){i=true;n.path=true}n.module_root=L;let s;try{s=v(n)}catch(e){}if(s){fe={value:s};le=e;emitStaticChildAsset(i);return backtrack(this,t)}}}break;case W:if(e.arguments.length===1&&e.arguments[0].type==="Identifier"&&e.arguments[0].name==="__dirname"&&ue.__dirname.shadowDepth===0){ae=true;let r;try{r=k.path(E)}catch(e){}if(r){fe={value:r};le=e;emitStaticChildAsset(i);return backtrack(this,t)}}break;case U:if(e.arguments.length===2&&e.arguments[0].type==="Identifier"&&e.arguments[0].name==="__dirname"&&ue.__dirname.shadowDepth===0){ae=true;re.overwrite(e.start,e.arguments[0].end+1,"require.resolve(");return this.skip()}break;case $:if(e.arguments.length){const t=computePureStaticValue(e.arguments[0],false).result;if(t&&t.value){const r=D(t.value);if(r){r.path=i.relative(E,r.path);ae=true;const t=JSON.stringify(r.path.replace(/\\/g,"/"));re.overwrite(e.start,e.end,`({ bind: require(${t}).NBind.bind_value, lib: require(${t}) })`);return this.skip()}}}break;case j:if(e.arguments.length===2&&e.arguments[0].type==="Literal"&&e.arguments[0].value==="view engine"&&!he){ae=true;const t=S.substring(e.arguments[1].start,e.arguments[1].end);re.appendRight(e.callee.object.end,`.engine(${t}, require(${t}).__express)`);return this.skip()}break;case q:he=true;break;case M:if(e.arguments[0]){fe=computePureStaticValue(e.arguments[0],true).result;if(fe){le=e.arguments[0];return backtrack(this,t)}}break}}}else if(e.type==="VariableDeclaration"&&!isVarLoop(t)){for(const r of e.declarations){if(!r.init)continue;const e=computePureStaticValue(r.init,false).result;if(e&&"value"in e){if(r.id.type==="Identifier"){setKnownBinding(r.id.name,e.value)}else if(r.id.type==="ObjectPattern"){for(const t of r.id.properties){if(t.type!=="Property"||t.key.type!=="Identifier"||t.value.type!=="Identifier"||typeof e.value!=="object"||e.value===null||!(t.key.name in e.value))continue;setKnownBinding(t.value.name,e.value[t.key.name])}}if(isAbsolutePathStr(e.value)){fe=e;le=r.init;emitStaticChildAsset();return backtrack(this,t)}}}}else if(e.type==="AssignmentExpression"&&!isLoop(t)){const r=computePureStaticValue(e.right,false).result;if(r&&"value"in r){if(e.left.type==="Identifier"){setKnownBinding(e.left.name,r.value)}else if(e.left.type==="ObjectPattern"){for(const t of e.left.properties){if(t.type!=="Property"||t.key.type!=="Identifier"||t.value.type!=="Identifier"||typeof r.value!=="object"||r.value===null||!(t.key.name in r.value))continue;setKnownBinding(t.value.name,r.value[t.key.name])}}if(isAbsolutePathStr(r.value)){fe=r;le=e.right;emitStaticChildAsset();return backtrack(this,t)}}if(!ne&&e.right.type==="CallExpression"&&isStaticRequire(e.right.callee)&&e.right.callee.arguments[0].value==="esm"&&e.left.type==="Identifier"&&e.left.name==="require"){ae=true;re.overwrite(e.start,e.end,"");return this.skip()}}else if(!ne&&e.type==="ConditionalExpression"&&isStaticRequire(e.consequent)&&isStaticRequire(e.alternate)){const t=computePureStaticValue(e.test,false).result;if(t&&"value"in t){ae=true;if(t.value){re.overwrite(e.start,e.end,S.substring(e.consequent.start,e.consequent.end))}else{re.overwrite(e.start,e.end,S.substring(e.alternate.start,e.alternate.end))}return this.skip()}}else if(!ne&&(e.type==="FunctionDeclaration"||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression")&&(e.arguments||e.params)[0]&&(e.arguments||e.params)[0].type==="Identifier"){let r,i;if((e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression")&&t.type==="VariableDeclarator"&&t.id.type==="Identifier"){r=t.id;i=e.arguments||e.params}else if(e.id){r=e.id;i=e.arguments||e.params}if(r&&e.body.body){let n,s,a=false;for(let t=0;t<e.body.body.length;t++){if(e.body.body[t].type==="VariableDeclaration"&&!n){n=e.body.body[t].declarations.find(e=>e.id.type==="Identifier"&&e.init&&e.init.type==="CallExpression"&&e.init.callee.type==="Identifier"&&e.init.callee.name==="require"&&ue.require.shadowDepth===0&&e.init.arguments[0]&&e.init.arguments[0].type==="Identifier"&&e.init.arguments[0].name===i[0].name);if(n)s=e.body.body[t]}if(n&&e.body.body[t].type==="ReturnStatement"&&e.body.body[t].argument&&e.body.body[t].argument.type==="Identifier"&&e.body.body[t].argument.name===n.id.name){a=true;break}}if(a){let a=";";const u=e.type==="ArrowFunctionExpression"&&e.params[0].start===e.start;if(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"){e=t;a=","}ce=r.name+"$$mod";setKnownBinding(r.name,ee);const o=a+S.substring(e.start,r.start)+ce+S.substring(r.end,i[0].start+!u)+(u?"(":"")+n.id.name+", "+S.substring(i[0].start,i[i.length-1].end+!u)+(u?")":"")+S.substring(i[0].end+!u,s.start)+S.substring(s.end,e.end);re.appendRight(e.end,o)}}}},leave(e,t){if(e.scope){se=se.parent;for(const t in e.scope.declarations){if(t in ue){if(ue[t].shadowDepth>0)ue[t].shadowDepth--;else delete ue[t]}}}if(le){const t=computePureStaticValue(e,true).result;if(t){if("value"in t&&typeof t.value!=="symbol"||typeof t.then!=="symbol"&&typeof t.else!=="symbol"){fe=t;le=e;return}}emitStaticChildAsset()}}});if(!ae)return this.callback(null,S,t);te.then(()=>{if(oe.length)re.appendLeft(ie.body[0].start,oe.join("\n")+"\n");S=re.toString();t=t||re.generateMap();if(t){t.sources=[r]}this.callback(null,S,t)});function validAssetEmission(e){if(!e)return;if(e===r)return;let t="";if(e.endsWith(i.sep))t=i.sep;else if(e.endsWith(i.sep+O))t=i.sep+O;else if(e.endsWith(O))t=O;if(!x.emitDirnameAll&&e===E+t)return;if(!x.emitFilterAssetBaseAll&&e===(x.filterAssetBase||J)+t)return;if(e.endsWith(i.sep+"node_modules"+t))return;if(E.startsWith(e.substr(0,e.length-t.length)+i.sep))return;if(L){const t=r.substr(0,r.indexOf(i.sep+"node_modules"))+i.sep+"node_modules"+i.sep;if(!e.startsWith(t)){if(x.debugLog){if(assetEmission(e))console.log("Skipping asset emission of "+e.replace(I,"*")+" for "+r+" as it is outside the package base "+L)}return}}else if(!e.startsWith(x.filterAssetBase||J)){if(x.debugLog){if(assetEmission(e))console.log("Skipping asset emission of "+e.replace(I,"*")+" for "+r+" as it is outside the filterAssetBase directory "+(x.filterAssetBase||J))}return}return assetEmission(e)}function assetEmission(e){const t=e.indexOf(O);const r=t===-1?e.length:e.lastIndexOf(i.sep,t);const n=e.substr(0,r);try{const e=l(n);if(t!==-1&&e.isFile())return;if(e.isFile())return G;if(e.isDirectory())return Q}catch(e){return}}function emitStaticChildAsset(e=false){if(isAbsolutePathStr(fe.value)){let t;try{t=i.resolve(fe.value)}catch(e){}let r;if(r=validAssetEmission(t)){let i=r(t,fe.wildcards);if(i){if(e)i="__non_webpack_require__("+i+")";re.overwrite(le.start,le.end,i);ae=true}}}else if(isAbsolutePathStr(fe.then)&&isAbsolutePathStr(fe.else)){let t;try{t=i.resolve(fe.then)}catch(e){}let r;try{r=i.resolve(fe.else)}catch(e){}let n;if(!e&&(n=validAssetEmission(t))&&n===validAssetEmission(r)){const e=n(t);const i=n(r);if(e&&i){re.overwrite(le.start,le.end,`${S.substring(fe.test.start,fe.test.end)} ? ${e} : ${i}`);ae=true}}}le=fe=undefined}};e.exports.raw=true;e.exports.getAssetPermissions=function(e){if(N)return N.assetPermissions[e]};e.exports.getSymlinks=function(){if(N)return N.assetSymlinks};e.exports.initAssetCache=e.exports.initAssetPermissionsCache=function(e,t){injectPathHook(e,t);const r=getEntryIds(e);if(!r)return;const i=N={entryIds:r,assets:Object.create(null),assetNames:Object.create(null),assetPermissions:Object.create(null),assetSymlinks:Object.create(null),hadOptions:false};B.set(e,i);const n=e.getCache?e.getCache():e.cache;n.get("/RelocateLoader/AssetState/"+JSON.stringify(r),null,(e,t)=>{if(e)console.error(e);if(t){const e=JSON.parse(t);if(e.assetPermissions)i.assetPermissions=e.assetPermissions;if(e.assetSymlinks)i.assetSymlinks=e.assetSymlinks}});e.compiler.hooks.afterCompile.tap("relocate-loader",e=>{const t=e.getCache?e.getCache():e.cache;t.store("/RelocateLoader/AssetState/"+JSON.stringify(r),null,JSON.stringify({assetPermissions:i.assetPermissions,assetSymlinks:i.assetSymlinks}),e=>{if(e)console.error(e)})})}},384:function(e,t,r){const i=r(589);const n=r(564);const s=r(66);const a=r(708);e.exports=function({id:e,code:t,pkgBase:r,ast:u,scope:o,magicString:l,emitAssetDirectory:f}){let h;({transformed:h,ast:u,scope:o}=a(u,o,l));if(h)return{transformed:h,ast:u,scope:o};if(e.endsWith("google-gax/build/src/grpc.js")||global._unit&&e.includes("google-gax")){for(const t of u.body){if(t.type==="VariableDeclaration"&&t.declarations[0].id.type==="Identifier"&&t.declarations[0].id.name==="googleProtoFilesDir"){const r=f(i.resolve(i.dirname(e),global._unit?"./":"../../../google-proto-files"));if(r){l.overwrite(t.declarations[0].init.start,t.declarations[0].init.end,r);t.declarations[0].init=null;return{transformed:true}}}}}else if(e.endsWith("socket.io/lib/index.js")||global._unit&&e.includes("socket.io")){function replaceResolvePathStatement(t){if(t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&t.expression.operator==="="&&t.expression.right.type==="CallExpression"&&t.expression.right.callee.type==="Identifier"&&t.expression.right.callee.name==="read"&&t.expression.right.arguments.length>=1&&t.expression.right.arguments[0].type==="CallExpression"&&t.expression.right.arguments[0].callee.type==="Identifier"&&t.expression.right.arguments[0].callee.name==="resolvePath"&&t.expression.right.arguments[0].arguments.length===1&&t.expression.right.arguments[0].arguments[0].type==="Literal"){const s=t.expression.right.arguments[0].arguments[0].value;try{var r=n.sync(s,{basedir:i.dirname(e)})}catch(e){return{transformed:false}}const a="/"+i.relative(i.dirname(e),r);t.expression.right.arguments[0]={type:"BinaryExpression",start:t.expression.right.arguments[0].start,end:t.expression.right.arguments[0].end,operator:"+",left:{type:"Identifier",name:"__dirname"},right:{type:"Literal",value:a,raw:JSON.stringify(a)}};return{transformed:true}}return{transformed:false}}for(const e of u.body){if(e.type==="ExpressionStatement"&&e.expression.type==="AssignmentExpression"&&e.expression.operator==="="&&e.expression.left.type==="MemberExpression"&&e.expression.left.object.type==="MemberExpression"&&e.expression.left.object.object.type==="Identifier"&&e.expression.left.object.object.name==="Server"&&e.expression.left.object.property.type==="Identifier"&&e.expression.left.object.property.name==="prototype"&&e.expression.left.property.type==="Identifier"&&e.expression.left.property.name==="serveClient"&&e.expression.right.type==="FunctionExpression"){let t;for(const r of e.expression.right.body.body)if(r.type==="IfStatement")t=r;const r=t&&t.consequent.body;let i=false;if(r&&r[0]&&r[0].type==="ExpressionStatement")i=replaceResolvePathStatement(r[0]);const n=r&&r[1]&&r[1].type==="TryStatement"&&r[1].block.body;if(n&&n[0])i=replaceResolvePathStatement(n[0])||i;return{transformed:i}}}}else if(e.endsWith("oracledb/lib/oracledb.js")||global._unit&&e.includes("oracledb")){for(const t of u.body){if(t.type==="ForStatement"&&t.body.body&&t.body.body[0]&&t.body.body[0].type==="TryStatement"&&t.body.body[0].block.body[0]&&t.body.body[0].block.body[0].type==="ExpressionStatement"&&t.body.body[0].block.body[0].expression.type==="AssignmentExpression"&&t.body.body[0].block.body[0].expression.operator==="="&&t.body.body[0].block.body[0].expression.left.type==="Identifier"&&t.body.body[0].block.body[0].expression.left.name==="oracledbCLib"&&t.body.body[0].block.body[0].expression.right.type==="CallExpression"&&t.body.body[0].block.body[0].expression.right.callee.type==="Identifier"&&t.body.body[0].block.body[0].expression.right.callee.name==="require"&&t.body.body[0].block.body[0].expression.right.arguments.length===1&&t.body.body[0].block.body[0].expression.right.arguments[0].type==="MemberExpression"&&t.body.body[0].block.body[0].expression.right.arguments[0].computed===true&&t.body.body[0].block.body[0].expression.right.arguments[0].object.type==="Identifier"&&t.body.body[0].block.body[0].expression.right.arguments[0].object.name==="binaryLocations"&&t.body.body[0].block.body[0].expression.right.arguments[0].property.type==="Identifier"&&t.body.body[0].block.body[0].expression.right.arguments[0].property.name==="i"){const r=t.body.body[0].block.body[0].expression.right.arguments[0];t.body.body[0].block.body[0].expression.right.arguments=[{type:"Literal",value:"_"}];const i=global._unit?"3.0.0":JSON.parse(s.readFileSync(e.slice(0,-15)+"package.json")).version;const n=Number(i.slice(0,i.indexOf(".")))>=4;const a="oracledb-"+(n?i:"abi"+process.versions.modules)+"-"+process.platform+"-"+process.arch+".node";l.overwrite(r.start,r.end,global._unit?"'./oracledb.js'":"'../build/Release/"+a+"'");return{transformed:true}}}}return{transformed:false}}},387:function(e,t,r){"use strict";var i=r(238);var n=r(737);var s=r(485).EventEmitter;var a=t=e.exports=new s;var u=r(64);var o=r(745);var l=r(354);o(true);var f=process.stderr;Object.defineProperty(a,"stream",{set:function(e){f=e;if(this.gauge)this.gauge.setWriteTo(f,f)},get:function(){return f}});var h;a.useColor=function(){return h!=null?h:f.isTTY};a.enableColor=function(){h=true;this.gauge.setTheme({hasColor:h,hasUnicode:c})};a.disableColor=function(){h=false;this.gauge.setTheme({hasColor:h,hasUnicode:c})};a.level="info";a.gauge=new n(f,{enabled:false,theme:{hasColor:a.useColor()},template:[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",default:""},":",{type:"logline",kerning:1,default:""}]});a.tracker=new i.TrackerGroup;a.progressEnabled=a.gauge.isEnabled();var c;a.enableUnicode=function(){c=true;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:c})};a.disableUnicode=function(){c=false;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:c})};a.setGaugeThemeset=function(e){this.gauge.setThemeset(e)};a.setGaugeTemplate=function(e){this.gauge.setTemplate(e)};a.enableProgress=function(){if(this.progressEnabled)return;this.progressEnabled=true;this.tracker.on("change",this.showProgress);if(this._pause)return;this.gauge.enable()};a.disableProgress=function(){if(!this.progressEnabled)return;this.progressEnabled=false;this.tracker.removeListener("change",this.showProgress);this.gauge.disable()};var p=["newGroup","newItem","newStream"];var d=function(e){Object.keys(a).forEach(function(t){if(t[0]==="_")return;if(p.filter(function(e){return e===t}).length)return;if(e[t])return;if(typeof a[t]!=="function")return;var r=a[t];e[t]=function(){return r.apply(a,arguments)}});if(e instanceof i.TrackerGroup){p.forEach(function(t){var r=e[t];e[t]=function(){return d(r.apply(e,arguments))}})}return e};p.forEach(function(e){a[e]=function(){return d(this.tracker[e].apply(this.tracker,arguments))}});a.clearProgress=function(e){if(!this.progressEnabled)return e&&process.nextTick(e);this.gauge.hide(e)};a.showProgress=function(e,t){if(!this.progressEnabled)return;var r={};if(e)r.section=e;var i=a.record[a.record.length-1];if(i){r.subsection=i.prefix;var n=a.disp[i.level]||i.level;var s=this._format(n,a.style[i.level]);if(i.prefix)s+=" "+this._format(i.prefix,this.prefixStyle);s+=" "+i.message.split(/\r?\n/)[0];r.logline=s}r.completed=t||this.tracker.completed();this.gauge.show(r)}.bind(a);a.pause=function(){this._paused=true;if(this.progressEnabled)this.gauge.disable()};a.resume=function(){if(!this._paused)return;this._paused=false;var e=this._buffer;this._buffer=[];e.forEach(function(e){this.emitLog(e)},this);if(this.progressEnabled)this.gauge.enable()};a._buffer=[];var v=0;a.record=[];a.maxRecordSize=1e4;a.log=function(e,t,r){var i=this.levels[e];if(i===undefined){return this.emit("error",new Error(u.format("Undefined log level: %j",e)))}var n=new Array(arguments.length-2);var s=null;for(var a=2;a<arguments.length;a++){var o=n[a-2]=arguments[a];if(typeof o==="object"&&o&&o instanceof Error&&o.stack){Object.defineProperty(o,"stack",{value:s=o.stack+"",enumerable:true,writable:true})}}if(s)n.unshift(s+"\n");r=u.format.apply(u,n);var l={id:v++,level:e,prefix:String(t||""),message:r,messageRaw:n};this.emit("log",l);this.emit("log."+e,l);if(l.prefix)this.emit(l.prefix,l);this.record.push(l);var f=this.maxRecordSize;var h=this.record.length-f;if(h>f/10){var c=Math.floor(f*.9);this.record=this.record.slice(-1*c)}this.emitLog(l)}.bind(a);a.emitLog=function(e){if(this._paused){this._buffer.push(e);return}if(this.progressEnabled)this.gauge.pulse(e.prefix);var t=this.levels[e.level];if(t===undefined)return;if(t<this.levels[this.level])return;if(t>0&&!isFinite(t))return;var r=a.disp[e.level]!=null?a.disp[e.level]:e.level;this.clearProgress();e.message.split(/\r?\n/).forEach(function(t){if(this.heading){this.write(this.heading,this.headingStyle);this.write(" ")}this.write(r,a.style[e.level]);var i=e.prefix||"";if(i)this.write(" ");this.write(i,this.prefixStyle);this.write(" "+t+"\n")},this);this.showProgress()};a._format=function(e,t){if(!f)return;var r="";if(this.useColor()){t=t||{};var i=[];if(t.fg)i.push(t.fg);if(t.bg)i.push("bg"+t.bg[0].toUpperCase()+t.bg.slice(1));if(t.bold)i.push("bold");if(t.underline)i.push("underline");if(t.inverse)i.push("inverse");if(i.length)r+=l.color(i);if(t.beep)r+=l.beep()}r+=e;if(this.useColor()){r+=l.color("reset")}return r};a.write=function(e,t){if(!f)return;f.write(this._format(e,t))};a.addLevel=function(e,t,r,i){if(i==null)i=e;this.levels[e]=t;this.style[e]=r;if(!this[e]){this[e]=function(){var t=new Array(arguments.length+1);t[0]=e;for(var r=0;r<arguments.length;r++){t[r+1]=arguments[r]}return this.log.apply(this,t)}.bind(this)}this.disp[e]=i};a.prefixStyle={fg:"magenta"};a.headingStyle={fg:"white",bg:"black"};a.style={};a.levels={};a.disp={};a.addLevel("silly",-Infinity,{inverse:true},"sill");a.addLevel("verbose",1e3,{fg:"blue",bg:"black"},"verb");a.addLevel("info",2e3,{fg:"green"});a.addLevel("timing",2500,{fg:"green",bg:"black"});a.addLevel("http",3e3,{fg:"green",bg:"black"});a.addLevel("notice",3500,{fg:"blue",bg:"black"});a.addLevel("warn",4e3,{fg:"black",bg:"yellow"},"WARN");a.addLevel("error",5e3,{fg:"red",bg:"black"},"ERR!");a.addLevel("silent",Infinity);a.on("error",function(){})},389:function(e,t,r){"use strict";const i=r(140);e.exports=function(e){const t=i(e);const n=e.acorn||r(996);const s=n.tokTypes;return class extends t{_maybeParseFieldValue(e){if(this.eat(s.eq)){const t=this._inStaticFieldValue;this._inStaticFieldValue=true;e.value=this.parseExpression();this._inStaticFieldValue=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion<8||!this.isContextual("static")){return super.parseClassElement.apply(this,arguments)}const t=this._branch();t.next();if([s.name,s.bracketL,s.string,this.privateNameToken].indexOf(t.type)==-1){return super.parseClassElement.apply(this,arguments)}if(t.type==s.bracketL){let e=0;do{if(t.eat(s.bracketL))++e;else if(t.eat(s.bracketR))--e;else t.next()}while(e>0)}else t.next();if(t.type!=s.eq&&!t.canInsertSemicolon()&&t.type!=s.semi){return super.parseClassElement.apply(this,arguments)}const r=this.startNode();r.static=this.eatContextual("static");if(this.type==this.privateNameToken){this.parsePrivateClassElementName(r)}else{this.parsePropertyName(r)}if(r.key.type==="Identifier"&&r.key.name==="constructor"||r.key.type==="Literal"&&!r.computed&&r.key.value==="constructor"){this.raise(r.key.start,"Classes may not have a field called constructor")}if((r.key.name||r.key.value)==="prototype"&&!r.computed){this.raise(r.key.start,"Classes may not have a static property named prototype")}this._maybeParseFieldValue(r);this.finishNode(r,"FieldDefinition");this.semicolon();return r}parsePropertyName(e){if(e.static&&this.type==this.privateNameToken){this.parsePrivateClassElementName(e)}else{super.parsePropertyName(e)}}parseIdent(e,t){const r=super.parseIdent(e,t);if(this._inStaticFieldValue&&r.name=="arguments")this.raise(r.start,"A static class field initializer may not contain arguments");return r}}}},392:function(e,t,r){"use strict";const i=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const n=r(996).tokTypes;e.exports=function(e){return class extends e{parseExport(e,t){i.lastIndex=this.pos;const r=i.exec(this.input);const s=this.input.charAt(this.pos+r[0].length);if(s!=="*")return super.parseExport(e,t);this.next();const a=this.startNode();this.expect(n.star);if(this.eatContextual("as")){e.declaration=null;a.exported=this.parseIdent(true);this.checkExport(t,a.exported.name,this.lastTokStart);e.specifiers=[this.finishNode(a,"ExportNamespaceSpecifier")]}this.expectContextual("from");if(this.type!==n.string)this.unexpected();e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,e.specifiers?"ExportNamedDeclaration":"ExportAllDeclaration")}}}},393:function(e){e.exports=__webpack_require__(357)},402:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=r(945).Buffer;var n=r(64);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t};return BufferList}();if(n&&n.inspect&&n.inspect.custom){e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e}}},408:function(e,t,r){var i=r(16);var n=Object.create(null);var s=r(83);e.exports=i(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return s(function RES(){var t=n[e];var r=t.length;var i=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,i)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,i)})}else{delete n[e]}}})}function slice(e){var t=e.length;var r=[];for(var i=0;i<t;i++)r[i]=e[i];return r}},421:function(e,t,r){"use strict";var i=r(945).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},431:function(e){e.exports=__webpack_require__(87)},433:function(e,t,r){"use strict";var i=r(22);e.exports=TemplateItem;function isPercent(e){if(typeof e!=="string")return false;return e.slice(-1)==="%"}function percent(e){return Number(e.slice(0,-1))/100}function TemplateItem(e,t){this.overallOutputLength=t;this.finished=false;this.type=null;this.value=null;this.length=null;this.maxLength=null;this.minLength=null;this.kerning=null;this.align="left";this.padLeft=0;this.padRight=0;this.index=null;this.first=null;this.last=null;if(typeof e==="string"){this.value=e}else{for(var r in e)this[r]=e[r]}if(isPercent(this.length)){this.length=Math.round(this.overallOutputLength*percent(this.length))}if(isPercent(this.minLength)){this.minLength=Math.round(this.overallOutputLength*percent(this.minLength))}if(isPercent(this.maxLength)){this.maxLength=Math.round(this.overallOutputLength*percent(this.maxLength))}return this}TemplateItem.prototype={};TemplateItem.prototype.getBaseLength=function(){var e=this.length;if(e==null&&typeof this.value==="string"&&this.maxLength==null&&this.minLength==null){e=i(this.value)}return e};TemplateItem.prototype.getLength=function(){var e=this.getBaseLength();if(e==null)return null;return e+this.padLeft+this.padRight};TemplateItem.prototype.getMaxLength=function(){if(this.maxLength==null)return null;return this.maxLength+this.padLeft+this.padRight};TemplateItem.prototype.getMinLength=function(){if(this.minLength==null)return null;return this.minLength+this.padLeft+this.padRight}},445:function(e,t,r){"use strict";var i=r(66);var n=r(378);var s=r(387);e.exports=t;var a=process.version.substr(1).replace(/-.*$/,"").split(".").map(function(e){return+e});var u=["build","clean","configure","package","publish","reveal","testbinary","testpackage","unpublish"];var o="napi_build_version=";e.exports.get_napi_version=function(e){var t=process.versions.napi;if(!t){if(a[0]===9&&a[1]>=3)t=2;else if(a[0]===8)t=1}return t};e.exports.get_napi_version_as_string=function(t){var r=e.exports.get_napi_version(t);return r?""+r:""};e.exports.validate_package_json=function(t,r){var i=t.binary;var n=pathOK(i.module_path);var s=pathOK(i.remote_path);var a=pathOK(i.package_name);var u=e.exports.get_napi_build_versions(t,r,true);var o=e.exports.get_napi_build_versions_raw(t);if(u){u.forEach(function(e){if(!(parseInt(e,10)===e&&e>0)){throw new Error("All values specified in napi_versions must be positive integers.")}})}if(u&&(!n||!s&&!a)){throw new Error("When napi_versions is specified; module_path and either remote_path or "+"package_name must contain the substitution string '{napi_build_version}`.")}if((n||s||a)&&!o){throw new Error("When the substitution string '{napi_build_version}` is specified in "+"module_path, remote_path, or package_name; napi_versions must also be specified.")}if(u&&!e.exports.get_best_napi_build_version(t,r)&&e.exports.build_napi_only(t)){throw new Error("The N-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports N-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}if(o&&!u&&e.exports.build_napi_only(t)){throw new Error("The N-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports N-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}};function pathOK(e){return e&&(e.indexOf("{napi_build_version}")!==-1||e.indexOf("{node_napi_label}")!==-1)}e.exports.expand_commands=function(t,r,i){var n=[];var s=e.exports.get_napi_build_versions(t,r);i.forEach(function(i){if(s&&i.name==="install"){var a=e.exports.get_best_napi_build_version(t,r);var l=a?[o+a]:[];n.push({name:i.name,args:l})}else if(s&&u.indexOf(i.name)!==-1){s.forEach(function(e){var t=i.args.slice();t.push(o+e);n.push({name:i.name,args:t})})}else{n.push(i)}});return n};e.exports.get_napi_build_versions=function(t,r,i){var n=[];var a=e.exports.get_napi_version(r?r.target:undefined);if(t.binary&&t.binary.napi_versions){t.binary.napi_versions.forEach(function(e){var t=n.indexOf(e)!==-1;if(!t&&a&&e<=a){n.push(e)}else if(i&&!t&&a){s.info("This Node instance does not support builds for N-API version",e)}})}if(r&&r["build-latest-napi-version-only"]){var u=0;n.forEach(function(e){if(e>u)u=e});n=u?[u]:[]}return n.length?n:undefined};e.exports.get_napi_build_versions_raw=function(e){var t=[];if(e.binary&&e.binary.napi_versions){e.binary.napi_versions.forEach(function(e){if(t.indexOf(e)===-1){t.push(e)}})}return t.length?t:undefined};e.exports.get_command_arg=function(e){return o+e};e.exports.get_napi_build_version_from_command_args=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.indexOf(o)===0){return parseInt(r.substr(o.length),10)}}return undefined};e.exports.swap_build_dir_out=function(t){if(t){n.sync(e.exports.get_build_dir(t));i.renameSync("build",e.exports.get_build_dir(t))}};e.exports.swap_build_dir_in=function(t){if(t){n.sync("build");i.renameSync(e.exports.get_build_dir(t),"build")}};e.exports.get_build_dir=function(e){return"build-tmp-napi-v"+e};e.exports.get_best_napi_build_version=function(t,r){var i=0;var n=e.exports.get_napi_build_versions(t,r);if(n){var s=e.exports.get_napi_version(r?r.target:undefined);n.forEach(function(e){if(e>i&&e<=s){i=e}})}return i===0?undefined:i};e.exports.build_napi_only=function(e){return e.binary&&e.binary.package_name&&e.binary.package_name.indexOf("{node_napi_label}")===-1}},446:function(e){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},468:function(e){e.exports=Delegator;function Delegator(e,t){if(!(this instanceof Delegator))return new Delegator(e,t);this.proto=e;this.target=t;this.methods=[];this.getters=[];this.setters=[];this.fluents=[]}Delegator.prototype.method=function(e){var t=this.proto;var r=this.target;this.methods.push(e);t[e]=function(){return this[r][e].apply(this[r],arguments)};return this};Delegator.prototype.access=function(e){return this.getter(e).setter(e)};Delegator.prototype.getter=function(e){var t=this.proto;var r=this.target;this.getters.push(e);t.__defineGetter__(e,function(){return this[r][e]});return this};Delegator.prototype.setter=function(e){var t=this.proto;var r=this.target;this.setters.push(e);t.__defineSetter__(e,function(t){return this[r][e]=t});return this};Delegator.prototype.fluent=function(e){var t=this.proto;var r=this.target;this.fluents.push(e);t[e]=function(t){if("undefined"!=typeof t){this[r][e]=t;return this}else{return this[r][e]}};return this}},480:function(e){(function(t){"use strict";var r,i=20,n=1,s=1e6,a=1e6,u=-7,o=21,l="[big.js] ",f=l+"Invalid ",h=f+"decimal places",c=f+"rounding mode",p=l+"Division by zero",d={},v=void 0,y=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function Big(e){var t=this;if(!(t instanceof Big))return e===v?_Big_():new Big(e);if(e instanceof Big){t.s=e.s;t.e=e.e;t.c=e.c.slice()}else{parse(t,e)}t.constructor=Big}Big.prototype=d;Big.DP=i;Big.RM=n;Big.NE=u;Big.PE=o;Big.version="5.2.2";return Big}function parse(e,t){var r,i,n;if(t===0&&1/t<0)t="-0";else if(!y.test(t+=""))throw Error(f+"number");e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1;if((r=t.indexOf("."))>-1)t=t.replace(".","");if((i=t.search(/e/i))>0){if(r<0)r=i;r+=+t.slice(i+1);t=t.substring(0,i)}else if(r<0){r=t.length}n=t.length;for(i=0;i<n&&t.charAt(i)=="0";)++i;if(i==n){e.c=[e.e=0]}else{for(;n>0&&t.charAt(--n)=="0";);e.e=r-i-1;e.c=[];for(r=0;i<=n;)e.c[r++]=+t.charAt(i++)}return e}function round(e,t,r,i){var n=e.c,s=e.e+t+1;if(s<n.length){if(r===1){i=n[s]>=5}else if(r===2){i=n[s]>5||n[s]==5&&(i||s<0||n[s+1]!==v||n[s-1]&1)}else if(r===3){i=i||!!n[0]}else{i=false;if(r!==0)throw Error(c)}if(s<1){n.length=1;if(i){e.e=-t;n[0]=1}else{n[0]=e.e=0}}else{n.length=s--;if(i){for(;++n[s]>9;){n[s]=0;if(!s--){++e.e;n.unshift(1)}}}for(s=n.length;!n[--s];)n.pop()}}else if(r<0||r>3||r!==~~r){throw Error(c)}return e}function stringify(e,t,r,i){var n,a,u=e.constructor,o=!e.c[0];if(r!==v){if(r!==~~r||r<(t==3)||r>s){throw Error(t==3?f+"precision":h)}e=new u(e);r=i-e.e;if(e.c.length>++i)round(e,r,u.RM);if(t==2)i=e.e+r+1;for(;e.c.length<i;)e.c.push(0)}n=e.e;a=e.c.join("");r=a.length;if(t!=2&&(t==1||t==3&&i<=n||n<=u.NE||n>=u.PE)){a=a.charAt(0)+(r>1?"."+a.slice(1):"")+(n<0?"e":"e+")+n}else if(n<0){for(;++n;)a="0"+a;a="0."+a}else if(n>0){if(++n>r)for(n-=r;n--;)a+="0";else if(n<r)a=a.slice(0,n)+"."+a.slice(n)}else if(r>1){a=a.charAt(0)+"."+a.slice(1)}return e.s<0&&(!o||t==4)?"-"+a:a}d.abs=function(){var e=new this.constructor(this);e.s=1;return e};d.cmp=function(e){var t,r=this,i=r.c,n=(e=new r.constructor(e)).c,s=r.s,a=e.s,u=r.e,o=e.e;if(!i[0]||!n[0])return!i[0]?!n[0]?0:-a:s;if(s!=a)return s;t=s<0;if(u!=o)return u>o^t?1:-1;a=(u=i.length)<(o=n.length)?u:o;for(s=-1;++s<a;){if(i[s]!=n[s])return i[s]>n[s]^t?1:-1}return u==o?0:u>o^t?1:-1};d.div=function(e){var t=this,r=t.constructor,i=t.c,n=(e=new r(e)).c,a=t.s==e.s?1:-1,u=r.DP;if(u!==~~u||u<0||u>s)throw Error(h);if(!n[0])throw Error(p);if(!i[0])return new r(a*0);var o,l,f,c,d,y=n.slice(),g=o=n.length,b=i.length,_=i.slice(0,o),m=_.length,E=e,D=E.c=[],w=0,A=u+(E.e=t.e-e.e)+1;E.s=a;a=A<0?0:A;y.unshift(0);for(;m++<o;)_.push(0);do{for(f=0;f<10;f++){if(o!=(m=_.length)){c=o>m?1:-1}else{for(d=-1,c=0;++d<o;){if(n[d]!=_[d]){c=n[d]>_[d]?1:-1;break}}}if(c<0){for(l=m==o?n:y;m;){if(_[--m]<l[m]){d=m;for(;d&&!_[--d];)_[d]=9;--_[d];_[m]+=10}_[m]-=l[m]}for(;!_[0];)_.shift()}else{break}}D[w++]=c?f:++f;if(_[0]&&c)_[m]=i[g]||0;else _=[i[g]]}while((g++<b||_[0]!==v)&&a--);if(!D[0]&&w!=1){D.shift();E.e--}if(w>A)round(E,u,r.RM,_[0]!==v);return E};d.eq=function(e){return!this.cmp(e)};d.gt=function(e){return this.cmp(e)>0};d.gte=function(e){return this.cmp(e)>-1};d.lt=function(e){return this.cmp(e)<0};d.lte=function(e){return this.cmp(e)<1};d.minus=d.sub=function(e){var t,r,i,n,s=this,a=s.constructor,u=s.s,o=(e=new a(e)).s;if(u!=o){e.s=-o;return s.plus(e)}var l=s.c.slice(),f=s.e,h=e.c,c=e.e;if(!l[0]||!h[0]){return h[0]?(e.s=-o,e):new a(l[0]?s:0)}if(u=f-c){if(n=u<0){u=-u;i=l}else{c=f;i=h}i.reverse();for(o=u;o--;)i.push(0);i.reverse()}else{r=((n=l.length<h.length)?l:h).length;for(u=o=0;o<r;o++){if(l[o]!=h[o]){n=l[o]<h[o];break}}}if(n){i=l;l=h;h=i;e.s=-e.s}if((o=(r=h.length)-(t=l.length))>0)for(;o--;)l[t++]=0;for(o=t;r>u;){if(l[--r]<h[r]){for(t=r;t&&!l[--t];)l[t]=9;--l[t];l[r]+=10}l[r]-=h[r]}for(;l[--o]===0;)l.pop();for(;l[0]===0;){l.shift();--c}if(!l[0]){e.s=1;l=[c=0]}e.c=l;e.e=c;return e};d.mod=function(e){var t,r=this,i=r.constructor,n=r.s,s=(e=new i(e)).s;if(!e.c[0])throw Error(p);r.s=e.s=1;t=e.cmp(r)==1;r.s=n;e.s=s;if(t)return new i(r);n=i.DP;s=i.RM;i.DP=i.RM=0;r=r.div(e);i.DP=n;i.RM=s;return this.minus(r.times(e))};d.plus=d.add=function(e){var t,r=this,i=r.constructor,n=r.s,s=(e=new i(e)).s;if(n!=s){e.s=-s;return r.minus(e)}var a=r.e,u=r.c,o=e.e,l=e.c;if(!u[0]||!l[0])return l[0]?e:new i(u[0]?r:n*0);u=u.slice();if(n=a-o){if(n>0){o=a;t=l}else{n=-n;t=u}t.reverse();for(;n--;)t.push(0);t.reverse()}if(u.length-l.length<0){t=l;l=u;u=t}n=l.length;for(s=0;n;u[n]%=10)s=(u[--n]=u[n]+l[n]+s)/10|0;if(s){u.unshift(s);++o}for(n=u.length;u[--n]===0;)u.pop();e.c=u;e.e=o;return e};d.pow=function(e){var t=this,r=new t.constructor(1),i=r,n=e<0;if(e!==~~e||e<-a||e>a)throw Error(f+"exponent");if(n)e=-e;for(;;){if(e&1)i=i.times(t);e>>=1;if(!e)break;t=t.times(t)}return n?r.div(i):i};d.round=function(e,t){var r=this.constructor;if(e===v)e=0;else if(e!==~~e||e<-s||e>s)throw Error(h);return round(new r(this),e,t===v?r.RM:t)};d.sqrt=function(){var e,t,r,i=this,n=i.constructor,s=i.s,a=i.e,u=new n(.5);if(!i.c[0])return new n(i);if(s<0)throw Error(l+"No square root");s=Math.sqrt(i+"");if(s===0||s===1/0){t=i.c.join("");if(!(t.length+a&1))t+="0";s=Math.sqrt(t);a=((a+1)/2|0)-(a<0||a&1);e=new n((s==1/0?"1e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+a)}else{e=new n(s)}a=e.e+(n.DP+=4);do{r=e;e=u.times(r.plus(i.div(r)))}while(r.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return round(e,n.DP-=4,n.RM)};d.times=d.mul=function(e){var t,r=this,i=r.constructor,n=r.c,s=(e=new i(e)).c,a=n.length,u=s.length,o=r.e,l=e.e;e.s=r.s==e.s?1:-1;if(!n[0]||!s[0])return new i(e.s*0);e.e=o+l;if(a<u){t=n;n=s;s=t;l=a;a=u;u=l}for(t=new Array(l=a+u);l--;)t[l]=0;for(o=u;o--;){u=0;for(l=a+o;l>o;){u=t[l]+s[o]*n[l-o-1]+u;t[l--]=u%10;u=u/10|0}t[l]=(t[l]+u)%10}if(u)++e.e;else t.shift();for(o=t.length;!t[--o];)t.pop();e.c=t;return e};d.toExponential=function(e){return stringify(this,1,e,e)};d.toFixed=function(e){return stringify(this,2,e,this.e+e)};d.toPrecision=function(e){return stringify(this,3,e,e-1)};d.toString=function(){return stringify(this)};d.valueOf=d.toJSON=function(){return stringify(this,4)};r=_Big_();r["default"]=r.Big=r;if(typeof define==="function"&&define.amd){define(function(){return r})}else if(true&&e.exports){e.exports=r}else{t.Big=r}})(this)},485:function(e){e.exports=__webpack_require__(614)},487:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(66);var n=r(129);var s=r(620);var a=s.Minimatch;var u=r(327).Glob;var o=r(64);var l=r(589);var f=r(393);var h=r(969);var c=r(922);var p=c.alphasort;var d=c.alphasorti;var v=c.setopts;var y=c.ownProp;var g=c.childrenIgnored;var b=c.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);v(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){f(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var a=n.realpathSync(s,e.realpathCache);i[a]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(s)]=true;else throw t}}})}c.finish(this)};GlobSync.prototype._process=function(e,t,r){f(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var n;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:n=null;break;default:n=e.slice(0,i).join("/");break}var a=e.slice(i);var u;if(n===null)u=".";else if(h(n)||h(e.join("/"))){if(!n||!h(n))n="/"+n;u=n}else u=n;var o=this._makeAbs(u);if(g(this,u))return;var l=a[0]===s.GLOBSTAR;if(l)this._processGlobStar(n,u,o,a,t,r);else this._processReaddir(n,u,o,a,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var u=i[0];var o=!!this.minimatch.negate;var f=u._glob;var h=this.dot||f.charAt(0)===".";var c=[];for(var p=0;p<a.length;p++){var d=a[p];if(d.charAt(0)!=="."||h){var v;if(o&&!e){v=!d.match(u)}else{v=d.match(u)}if(v)c.push(d)}}var y=c.length;if(y===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var p=0;p<y;p++){var d=c[p];if(e){if(e.slice(-1)!=="/")d=e+"/"+d;else d=e+d}if(d.charAt(0)==="/"&&!this.nomount){d=l.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var p=0;p<y;p++){var d=c[p];var g;if(e)g=[e,d];else g=[d];this._process(g.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(e,t){if(b(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=i.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var s=r&&r.isSymbolicLink();this.symlinks[e]=s;if(!s&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!y(this.symlinks,e))return this._readdirInGlobStar(e);if(y(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,i.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var u=i.slice(1);var o=e?[e]:[];var l=o.concat(u);this._process(l,n,false);var f=a.length;var h=this.symlinks[r];if(h&&s)return;for(var c=0;c<f;c++){var p=a[c];if(p.charAt(0)==="."&&!this.dot)continue;var d=o.concat(a[c],u);this._process(d,n,true);var v=o.concat(a[c],i);this._process(v,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&h(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&y(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var s;var a=this.statCache[t];if(!a){var u;try{u=i.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(u&&u.isSymbolicLink()){try{a=i.statSync(t)}catch(e){a=u}}else{a=u}}this.statCache[t]=a;var n=true;if(a)n=a.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return c.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},491:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,n,s,a,u;var o=r.indexOf(e);var l=r.indexOf(t,o+1);var f=o;if(o>=0&&l>0){i=[];s=r.length;while(f>=0&&!u){if(f==o){i.push(f);o=r.indexOf(e,f+1)}else if(i.length==1){u=[i.pop(),l]}else{n=i.pop();if(n<s){s=n;a=l}l=r.indexOf(t,f+1)}f=o<l&&o>=0?o:l}if(i.length){u=[s,a]}}return u}},500:function(e){"use strict";e.exports=(()=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")})},502:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(955);var n=r(683);n.inherits=r(207);n.inherits(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},503:function(e,t,r){"use strict";e.exports=t;var i=r(589);var n=r(579);var s=r(77);var a=r(630);var u=r(445);var o;if(process.env.NODE_PRE_GYP_ABI_CROSSWALK){o=require(process.env.NODE_PRE_GYP_ABI_CROSSWALK)}else{o=r(590)}var l={};Object.keys(o).forEach(function(e){var t=e.split(".")[0];if(!l[t]){l[t]=e}});function get_electron_abi(e,t){if(!e){throw new Error("get_electron_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if electron is the target.")}var r=n.parse(t);return e+"-v"+r.major+"."+r.minor}e.exports.get_electron_abi=get_electron_abi;function get_node_webkit_abi(e,t){if(!e){throw new Error("get_node_webkit_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if node-webkit is the target.")}return e+"-v"+t}e.exports.get_node_webkit_abi=get_node_webkit_abi;function get_node_abi(e,t){if(!e){throw new Error("get_node_abi requires valid runtime arg")}if(!t){throw new Error("get_node_abi requires valid process.versions object")}var r=n.parse(t.node);if(r.major===0&&r.minor%2){return e+"-v"+t.node}else{return t.modules?e+"-v"+ +t.modules:"v8-"+t.v8.split(".").slice(0,2).join(".")}}e.exports.get_node_abi=get_node_abi;function get_runtime_abi(e,t){if(!e){throw new Error("get_runtime_abi requires valid runtime arg")}if(e==="node-webkit"){return get_node_webkit_abi(e,t||process.versions["node-webkit"])}else if(e==="electron"){return get_electron_abi(e,t||process.versions.electron)}else{if(e!="node"){throw new Error("Unknown Runtime: '"+e+"'")}if(!t){return get_node_abi(e,process.versions)}else{var r;if(o[t]){r=o[t]}else{var i=t.split(".").map(function(e){return+e});if(i.length!=3){throw new Error("Unknown target version: "+t)}var n=i[0];var s=i[1];var a=i[2];if(n===1){while(true){if(s>0)--s;if(a>0)--a;var u=""+n+"."+s+"."+a;if(o[u]){r=o[u];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+u+" as ABI compatible target");break}if(s===0&&a===0){break}}}else if(n>=2){if(l[n]){r=o[l[n]];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+l[n]+" as ABI compatible target")}}else if(n===0){if(i[1]%2===0){while(--a>0){var f=""+n+"."+s+"."+a;if(o[f]){r=o[f];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+f+" as ABI compatible target");break}}}}}if(!r){throw new Error("Unsupported target version: "+t)}var h={node:t,v8:r.v8+".0",modules:r.node_abi>1?r.node_abi:undefined};return get_node_abi(e,h)}}}e.exports.get_runtime_abi=get_runtime_abi;var f=["module_name","module_path","host"];function validate_config(e,t){var r=e.name+" package.json is not node-pre-gyp ready:\n";var i=[];if(!e.main){i.push("main")}if(!e.version){i.push("version")}if(!e.name){i.push("name")}if(!e.binary){i.push("binary")}var n=e.binary;f.forEach(function(e){if(i.indexOf("binary")>-1){i.pop("binary")}if(!n||n[e]===undefined||n[e]===""){i.push("binary."+e)}});if(i.length>=1){throw new Error(r+"package.json must declare these properties: \n"+i.join("\n"))}if(n){var a=s.parse(n.host).protocol;if(a==="http:"){throw new Error("'host' protocol ("+a+") is invalid - only 'https:' is accepted")}}u.validate_package_json(e,t)}e.exports.validate_config=validate_config;function eval_template(e,t){Object.keys(t).forEach(function(r){var i="{"+r+"}";while(e.indexOf(i)>-1){e=e.replace(i,t[r])}});return e}function fix_slashes(e){if(e.slice(-1)!="/"){return e+"/"}return e}function drop_double_slashes(e){return e.replace(/\/\//g,"/")}function get_process_runtime(e){var t="node";if(e["node-webkit"]){t="node-webkit"}else if(e.electron){t="electron"}return t}e.exports.get_process_runtime=get_process_runtime;var h="{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz";var c="";e.exports.evaluate=function(e,t,r){t=t||{};validate_config(e,t);var o=e.version;var l=n.parse(o);var f=t.runtime||get_process_runtime(process.versions);var p={name:e.name,configuration:Boolean(t.debug)?"Debug":"Release",debug:t.debug,module_name:e.binary.module_name,version:l.version,prerelease:l.prerelease.length?l.prerelease.join("."):"",build:l.build.length?l.build.join("."):"",major:l.major,minor:l.minor,patch:l.patch,runtime:f,node_abi:get_runtime_abi(f,t.target),node_abi_napi:u.get_napi_version(t.target)?"napi":get_runtime_abi(f,t.target),napi_version:u.get_napi_version(t.target),napi_build_version:r||"",node_napi_label:r?"napi-v"+r:get_runtime_abi(f,t.target),target:t.target||"",platform:t.target_platform||process.platform,target_platform:t.target_platform||process.platform,arch:t.target_arch||process.arch,target_arch:t.target_arch||process.arch,libc:t.target_libc||a.family||"unknown",module_main:e.main,toolset:t.toolset||""};var d=process.env["npm_config_"+p.module_name+"_binary_host_mirror"]||e.binary.host;p.host=fix_slashes(eval_template(d,p));p.module_path=eval_template(e.binary.module_path,p);if(t.module_root){p.module_path=i.join(t.module_root,p.module_path)}else{p.module_path=i.resolve(p.module_path)}p.module=i.join(p.module_path,p.module_name+".node");p.remote_path=e.binary.remote_path?drop_double_slashes(fix_slashes(eval_template(e.binary.remote_path,p))):c;var v=e.binary.package_name?e.binary.package_name:h;p.package_name=eval_template(v,p);p.staged_tarball=i.join("build/stage",p.remote_path,p.package_name);p.hosted_path=s.resolve(p.host,p.remote_path);p.hosted_tarball=s.resolve(p.hosted_path,p.package_name);return p}},507:function(e,t,r){e.exports=r(64).deprecate},513:function(e){"use strict";e.exports=isWin32()||isColorTerm();function isWin32(){return process.platform==="win32"}function isColorTerm(){var e=/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i;return!!process.env.COLORTERM||e.test(process.env.TERM)}},543:function(e,t,r){"use strict";const i=r(589);const n=/^\.\.?[/\\]/;function isAbsolutePath(e){return i.posix.isAbsolute(e)||i.win32.isAbsolute(e)}function isRelativePath(e){return n.test(e)}function stringifyRequest(e,t){const r=t.split("!");const n=e.context||e.options&&e.options.context;return JSON.stringify(r.map(e=>{const t=e.match(/^(.*?)(\?.*)/);const r=t?t[2]:"";let s=t?t[1]:e;if(isAbsolutePath(s)&&n){s=i.relative(n,s);if(isAbsolutePath(s)){return s+r}if(isRelativePath(s)===false){s="./"+s}}return s.replace(/\\/g,"/")+r}).join("!"))}e.exports=stringifyRequest},544:function(e,t,r){var i=r(589);var n=process.platform==="win32";var s=r(66);var a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(a){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var u=i.normalize;if(n){var o=/(.*?)(?:[\/\\]+|$)/g}else{var o=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,a={},u={};var f;var h;var c;var p;start();function start(){var t=l.exec(e);f=t[0].length;h=t[0];c=t[0];p="";if(n&&!u[c]){s.lstatSync(c);u[c]=true}}while(f<e.length){o.lastIndex=f;var d=o.exec(e);p=h;h+=d[0];c=p+d[1];f=o.lastIndex;if(u[c]||t&&t[c]===c){continue}var v;if(t&&Object.prototype.hasOwnProperty.call(t,c)){v=t[c]}else{var y=s.lstatSync(c);if(!y.isSymbolicLink()){u[c]=true;if(t)t[c]=c;continue}var g=null;if(!n){var b=y.dev.toString(32)+":"+y.ino.toString(32);if(a.hasOwnProperty(b)){g=a[b]}}if(g===null){s.statSync(c);g=s.readlinkSync(c)}v=i.resolve(p,g);if(t)t[c]=v;if(!n)a[b]=g}e=i.resolve(v,e.slice(f));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var a=e,u={},f={};var h;var c;var p;var d;start();function start(){var t=l.exec(e);h=t[0].length;c=t[0];p=t[0];d="";if(n&&!f[p]){s.lstat(p,function(e){if(e)return r(e);f[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[a]=e;return r(null,e)}o.lastIndex=h;var i=o.exec(e);d=c;c+=i[0];p=d+i[1];h=o.lastIndex;if(f[p]||t&&t[p]===p){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,p)){return gotResolvedLink(t[p])}return s.lstat(p,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){f[p]=true;if(t)t[p]=p;return process.nextTick(LOOP)}if(!n){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(u.hasOwnProperty(a)){return gotTarget(null,u[a],p)}}s.stat(p,function(e){if(e)return r(e);s.readlink(p,function(e,t){if(!n)u[a]=t;gotTarget(e,t)})})}function gotTarget(e,n,s){if(e)return r(e);var a=i.resolve(d,n);if(t)t[s]=a;gotResolvedLink(a)}function gotResolvedLink(t){e=i.resolve(t,e.slice(h));start()}}},564:function(e,t,r){var i=r(55);var n=r(572);n.core=i;n.isCore=function isCore(e){return i[e]};n.sync=r(377);t=n;e.exports=n},569:function(e,t,r){e.exports=r(688)},572:function(e,t,r){var i=r(55);var n=r(66);var s=r(589);var a=r(68);var u=r(807);var o=r(764);var l=function isFile(e,t){n.stat(e,function(e,r){if(!e){return t(null,r.isFile()||r.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return t(null,false);return t(e)})};e.exports=function resolve(e,t,r){var f=r;var h=t;if(typeof t==="function"){f=h;h={}}if(typeof e!=="string"){var c=new TypeError("Path must be a string.");return process.nextTick(function(){f(c)})}h=o(e,h);var p=h.isFile||l;var d=h.readFile||n.readFile;var v=h.extensions||[".js"];var y=h.basedir||s.dirname(a());var g=h.filename||y;h.paths=h.paths||[];var b=s.resolve(y);if(h.preserveSymlinks===false){n.realpath(b,function(e,t){if(e&&e.code!=="ENOENT")f(c);else init(e?b:t)})}else{init(b)}var _;function init(t){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){_=s.resolve(t,e);if(e===".."||e.slice(-1)==="/")_+="/";if(/\/$/.test(e)&&_===t){loadAsDirectory(_,h.package,onfile)}else loadAsFile(_,h.package,onfile)}else loadNodeModules(e,t,function(t,r,n){if(t)f(t);else if(r)f(null,r,n);else if(i[e])return f(null,e);else{var s=new Error("Cannot find module '"+e+"' from '"+g+"'");s.code="MODULE_NOT_FOUND";f(s)}})}function onfile(t,r,i){if(t)f(t);else if(r)f(null,r,i);else loadAsDirectory(_,function(t,r,i){if(t)f(t);else if(r)f(null,r,i);else{var n=new Error("Cannot find module '"+e+"' from '"+g+"'");n.code="MODULE_NOT_FOUND";f(n)}})}function loadAsFile(e,t,r){var i=t;var n=r;if(typeof i==="function"){n=i;i=undefined}var a=[""].concat(v);load(a,e,i);function load(e,t,r){if(e.length===0)return n(null,undefined,r);var i=t+e[0];var a=r;if(a)onpkg(null,a);else loadpkg(s.dirname(i),onpkg);function onpkg(r,u,o){a=u;if(r)return n(r);if(o&&a&&h.pathFilter){var l=s.relative(o,i);var f=l.slice(0,l.length-e[0].length);var c=h.pathFilter(a,t,f);if(c)return load([""].concat(v.slice()),s.resolve(o,c),a)}p(i,onex)}function onex(r,s){if(r)return n(r);if(s)return n(null,i,a);load(e.slice(1),t,a)}}}function loadpkg(e,t){if(e===""||e==="/")return t(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return t(null)}if(/[/\\]node_modules[/\\]*$/.test(e))return t(null);var r=s.join(e,"package.json");p(r,function(i,n){if(!n)return loadpkg(s.dirname(e),t);d(r,function(i,n){if(i)t(i);try{var s=JSON.parse(n)}catch(e){}if(s&&h.packageFilter){s=h.packageFilter(s,r)}t(null,s,e)})})}function loadAsDirectory(e,t,r){var i=r;var n=t;if(typeof n==="function"){i=n;n=h.package}var a=s.join(e,"package.json");p(a,function(t,r){if(t)return i(t);if(!r)return loadAsFile(s.join(e,"index"),n,i);d(a,function(t,r){if(t)return i(t);try{var n=JSON.parse(r)}catch(e){}if(h.packageFilter){n=h.packageFilter(n,a)}if(n.main){if(typeof n.main!=="string"){var u=new TypeError("package “"+n.name+"” `main` must be a string");u.code="INVALID_PACKAGE_MAIN";return i(u)}if(n.main==="."||n.main==="./"){n.main="index"}loadAsFile(s.resolve(e,n.main),n,function(t,r,n){if(t)return i(t);if(r)return i(null,r,n);if(!n)return loadAsFile(s.join(e,"index"),n,i);var a=s.resolve(e,n.main);loadAsDirectory(a,n,function(t,r,n){if(t)return i(t);if(r)return i(null,r,n);loadAsFile(s.join(e,"index"),n,i)})});return}loadAsFile(s.join(e,"/index"),n,i)})})}function processDirs(t,r){if(r.length===0)return t(null,undefined);var i=r[0];var n=s.join(i,e);loadAsFile(n,h.package,onfile);function onfile(r,n,a){if(r)return t(r);if(n)return t(null,n,a);loadAsDirectory(s.join(i,e),h.package,ondir)}function ondir(e,i,n){if(e)return t(e);if(i)return t(null,i,n);processDirs(t,r.slice(1))}}function loadNodeModules(e,t,r){processDirs(r,u(t,h,e))}}},579:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var n=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var a=t.re=[];var u=t.src=[];var o=0;var l=o++;u[l]="0|[1-9]\\d*";var f=o++;u[f]="[0-9]+";var h=o++;u[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var c=o++;u[c]="("+u[l]+")\\."+"("+u[l]+")\\."+"("+u[l]+")";var p=o++;u[p]="("+u[f]+")\\."+"("+u[f]+")\\."+"("+u[f]+")";var d=o++;u[d]="(?:"+u[l]+"|"+u[h]+")";var v=o++;u[v]="(?:"+u[f]+"|"+u[h]+")";var y=o++;u[y]="(?:-("+u[d]+"(?:\\."+u[d]+")*))";var g=o++;u[g]="(?:-?("+u[v]+"(?:\\."+u[v]+")*))";var b=o++;u[b]="[0-9A-Za-z-]+";var _=o++;u[_]="(?:\\+("+u[b]+"(?:\\."+u[b]+")*))";var m=o++;var E="v?"+u[c]+u[y]+"?"+u[_]+"?";u[m]="^"+E+"$";var D="[v=\\s]*"+u[p]+u[g]+"?"+u[_]+"?";var w=o++;u[w]="^"+D+"$";var A=o++;u[A]="((?:<|>)?=?)";var C=o++;u[C]=u[f]+"|x|X|\\*";var x=o++;u[x]=u[l]+"|x|X|\\*";var S=o++;u[S]="[v=\\s]*("+u[x]+")"+"(?:\\.("+u[x]+")"+"(?:\\.("+u[x]+")"+"(?:"+u[y]+")?"+u[_]+"?"+")?)?";var k=o++;u[k]="[v=\\s]*("+u[C]+")"+"(?:\\.("+u[C]+")"+"(?:\\.("+u[C]+")"+"(?:"+u[g]+")?"+u[_]+"?"+")?)?";var F=o++;u[F]="^"+u[A]+"\\s*"+u[S]+"$";var R=o++;u[R]="^"+u[A]+"\\s*"+u[k]+"$";var T=o++;u[T]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var O=o++;u[O]="(?:~>?)";var I=o++;u[I]="(\\s*)"+u[O]+"\\s+";a[I]=new RegExp(u[I],"g");var B="$1~";var N=o++;u[N]="^"+u[O]+u[S]+"$";var L=o++;u[L]="^"+u[O]+u[k]+"$";var P=o++;u[P]="(?:\\^)";var j=o++;u[j]="(\\s*)"+u[P]+"\\s+";a[j]=new RegExp(u[j],"g");var q="$1^";var $=o++;u[$]="^"+u[P]+u[S]+"$";var M=o++;u[M]="^"+u[P]+u[k]+"$";var U=o++;u[U]="^"+u[A]+"\\s*("+D+")$|^$";var H=o++;u[H]="^"+u[A]+"\\s*("+E+")$|^$";var W=o++;u[W]="(\\s*)"+u[A]+"\\s*("+D+"|"+u[S]+")";a[W]=new RegExp(u[W],"g");var G="$1$2$3";var V=o++;u[V]="^\\s*("+u[S]+")"+"\\s+-\\s+"+"("+u[S]+")"+"\\s*$";var z=o++;u[z]="^\\s*("+u[k]+")"+"\\s+-\\s+"+"("+u[k]+")"+"\\s*$";var K=o++;u[K]="(<|>)?=?\\s*\\*";for(var Q=0;Q<o;Q++){r(Q,u[Q]);if(!a[Q]){a[Q]=new RegExp(u[Q])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}var r=t.loose?a[w]:a[m];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?a[w]:a[m]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n){return t}}return e})}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var i=this.prerelease[t];var n=e.prerelease[t];r("prerelease compare",t,i,n);if(i===undefined&&n===undefined){return 0}else if(n===undefined){return 1}else if(i===undefined){return-1}else if(i===n){continue}else{return compareIdentifiers(i,n)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,i){if(typeof r==="string"){i=r;r=undefined}try{return new SemVer(e,r).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var i=parse(t);var n="";if(r.prerelease.length||i.prerelease.length){n="pre";var s="prerelease"}for(var a in r){if(a==="major"||a==="minor"||a==="patch"){if(r[a]!==i[a]){return n+a}}}return s}}t.compareIdentifiers=compareIdentifiers;var X=/^[0-9]+$/;function compareIdentifiers(e,t){var r=X.test(e);var i=X.test(t);if(r&&i){e=+e;t=+t}return e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,i){return t.compare(e,i,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,i){return t.rcompare(e,i,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,i);case"!=":return neq(e,r,i);case">":return gt(e,r,i);case">=":return gte(e,r,i);case"<":return lt(e,r,i);case"<=":return lte(e,r,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[U]:a[H];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Z}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Z){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var u=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var o=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||n||s&&a||u||o};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[z]:a[V];e=e.replace(i,hyphenReplace);r("hyphen replace",e);e=e.replace(a[W],G);r("comparator trim",e,a[W]);e=e.replace(a[I],B);e=e.replace(a[j],q);e=e.split(/\s+/).join(" ");var n=t?a[U]:a[H];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(n)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var i=t.loose?a[L]:a[N];return e.replace(i,function(t,i,n,s,a){r("tilde",e,t,i,n,s,a);var u;if(isX(i)){u=""}else if(isX(n)){u=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(s)){u=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0"}else if(a){r("replaceTilde pr",a);u=">="+i+"."+n+"."+s+"-"+a+" <"+i+"."+(+n+1)+".0"}else{u=">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0"}r("tilde return",u);return u})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var i=t.loose?a[M]:a[$];return e.replace(i,function(t,i,n,s,a){r("caret",e,t,i,n,s,a);var u;if(isX(i)){u=""}else if(isX(n)){u=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(s)){if(i==="0"){u=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0"}else{u=">="+i+"."+n+".0 <"+(+i+1)+".0.0"}}else if(a){r("replaceCaret pr",a);if(i==="0"){if(n==="0"){u=">="+i+"."+n+"."+s+"-"+a+" <"+i+"."+n+"."+(+s+1)}else{u=">="+i+"."+n+"."+s+"-"+a+" <"+i+"."+(+n+1)+".0"}}else{u=">="+i+"."+n+"."+s+"-"+a+" <"+(+i+1)+".0.0"}}else{r("no pr");if(i==="0"){if(n==="0"){u=">="+i+"."+n+"."+s+" <"+i+"."+n+"."+(+s+1)}else{u=">="+i+"."+n+"."+s+" <"+i+"."+(+n+1)+".0"}}else{u=">="+i+"."+n+"."+s+" <"+(+i+1)+".0.0"}}r("caret return",u);return u})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[R]:a[F];return e.replace(i,function(t,i,n,s,a,u){r("xRange",e,t,i,n,s,a,u);var o=isX(n);var l=o||isX(s);var f=l||isX(a);var h=f;if(i==="="&&h){i=""}if(o){if(i===">"||i==="<"){t="<0.0.0"}else{t="*"}}else if(i&&h){if(l){s=0}a=0;if(i===">"){i=">=";if(l){n=+n+1;s=0;a=0}else{s=+s+1;a=0}}else if(i==="<="){i="<";if(l){n=+n+1}else{s=+s+1}}t=i+n+"."+s+"."+a}else if(l){t=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(f){t=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(a[K],"")}function hyphenReplace(e,t,r,i,n,s,a,u,o,l,f,h,c){if(isX(r)){t=""}else if(isX(i)){t=">="+r+".0.0"}else if(isX(n)){t=">="+r+"."+i+".0"}else{t=">="+t}if(isX(o)){u=""}else if(isX(l)){u="<"+(+o+1)+".0.0"}else if(isX(f)){u="<"+o+"."+(+l+1)+".0"}else if(h){u="<="+o+"."+l+"."+f+"-"+h}else{u="<="+u}return(t+" "+u).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,i){for(var n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!i.includePrerelease){for(n=0;n<e.length;n++){r(e[n].semver);if(e[n].semver===Z){continue}if(e[n].semver.prerelease.length>0){var s=e[n].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var i=null;var n=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!i||n.compare(e)===-1){i=e;n=new SemVer(i,r)}}});return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var i=null;var n=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!i||n.compare(e)===1){i=e;n=new SemVer(i,r)}}});return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var i=0;i<e.set.length;++i){var n=e.set[i];n.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,i){e=new SemVer(e,i);t=new Range(t,i);var n,s,a,u,o;switch(r){case">":n=gt;s=lte;a=lt;u=">";o=">=";break;case"<":n=lt;s=gte;a=gt;u="<";o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var l=0;l<t.set.length;++l){var f=t.set[l];var h=null;var c=null;f.forEach(function(e){if(e.semver===Z){e=new Comparator(">=0.0.0")}h=h||e;c=c||e;if(n(e.semver,h.semver,i)){h=e}else if(a(e.semver,c.semver,i)){c=e}});if(h.operator===u||h.operator===o){return false}if((!c.operator||c.operator===u)&&s(e,c.semver)){return false}else if(c.operator===o&&a(e,c.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(a[T]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},589:function(e){e.exports=__webpack_require__(622)},590:function(e){e.exports={"0.1.14":{node_abi:null,v8:"1.3"},"0.1.15":{node_abi:null,v8:"1.3"},"0.1.16":{node_abi:null,v8:"1.3"},"0.1.17":{node_abi:null,v8:"1.3"},"0.1.18":{node_abi:null,v8:"1.3"},"0.1.19":{node_abi:null,v8:"2.0"},"0.1.20":{node_abi:null,v8:"2.0"},"0.1.21":{node_abi:null,v8:"2.0"},"0.1.22":{node_abi:null,v8:"2.0"},"0.1.23":{node_abi:null,v8:"2.0"},"0.1.24":{node_abi:null,v8:"2.0"},"0.1.25":{node_abi:null,v8:"2.0"},"0.1.26":{node_abi:null,v8:"2.0"},"0.1.27":{node_abi:null,v8:"2.1"},"0.1.28":{node_abi:null,v8:"2.1"},"0.1.29":{node_abi:null,v8:"2.1"},"0.1.30":{node_abi:null,v8:"2.1"},"0.1.31":{node_abi:null,v8:"2.1"},"0.1.32":{node_abi:null,v8:"2.1"},"0.1.33":{node_abi:null,v8:"2.1"},"0.1.90":{node_abi:null,v8:"2.2"},"0.1.91":{node_abi:null,v8:"2.2"},"0.1.92":{node_abi:null,v8:"2.2"},"0.1.93":{node_abi:null,v8:"2.2"},"0.1.94":{node_abi:null,v8:"2.2"},"0.1.95":{node_abi:null,v8:"2.2"},"0.1.96":{node_abi:null,v8:"2.2"},"0.1.97":{node_abi:null,v8:"2.2"},"0.1.98":{node_abi:null,v8:"2.2"},"0.1.99":{node_abi:null,v8:"2.2"},"0.1.100":{node_abi:null,v8:"2.2"},"0.1.101":{node_abi:null,v8:"2.3"},"0.1.102":{node_abi:null,v8:"2.3"},"0.1.103":{node_abi:null,v8:"2.3"},"0.1.104":{node_abi:null,v8:"2.3"},"0.2.0":{node_abi:1,v8:"2.3"},"0.2.1":{node_abi:1,v8:"2.3"},"0.2.2":{node_abi:1,v8:"2.3"},"0.2.3":{node_abi:1,v8:"2.3"},"0.2.4":{node_abi:1,v8:"2.3"},"0.2.5":{node_abi:1,v8:"2.3"},"0.2.6":{node_abi:1,v8:"2.3"},"0.3.0":{node_abi:1,v8:"2.5"},"0.3.1":{node_abi:1,v8:"2.5"},"0.3.2":{node_abi:1,v8:"3.0"},"0.3.3":{node_abi:1,v8:"3.0"},"0.3.4":{node_abi:1,v8:"3.0"},"0.3.5":{node_abi:1,v8:"3.0"},"0.3.6":{node_abi:1,v8:"3.0"},"0.3.7":{node_abi:1,v8:"3.0"},"0.3.8":{node_abi:1,v8:"3.1"},"0.4.0":{node_abi:1,v8:"3.1"},"0.4.1":{node_abi:1,v8:"3.1"},"0.4.2":{node_abi:1,v8:"3.1"},"0.4.3":{node_abi:1,v8:"3.1"},"0.4.4":{node_abi:1,v8:"3.1"},"0.4.5":{node_abi:1,v8:"3.1"},"0.4.6":{node_abi:1,v8:"3.1"},"0.4.7":{node_abi:1,v8:"3.1"},"0.4.8":{node_abi:1,v8:"3.1"},"0.4.9":{node_abi:1,v8:"3.1"},"0.4.10":{node_abi:1,v8:"3.1"},"0.4.11":{node_abi:1,v8:"3.1"},"0.4.12":{node_abi:1,v8:"3.1"},"0.5.0":{node_abi:1,v8:"3.1"},"0.5.1":{node_abi:1,v8:"3.4"},"0.5.2":{node_abi:1,v8:"3.4"},"0.5.3":{node_abi:1,v8:"3.4"},"0.5.4":{node_abi:1,v8:"3.5"},"0.5.5":{node_abi:1,v8:"3.5"},"0.5.6":{node_abi:1,v8:"3.6"},"0.5.7":{node_abi:1,v8:"3.6"},"0.5.8":{node_abi:1,v8:"3.6"},"0.5.9":{node_abi:1,v8:"3.6"},"0.5.10":{node_abi:1,v8:"3.7"},"0.6.0":{node_abi:1,v8:"3.6"},"0.6.1":{node_abi:1,v8:"3.6"},"0.6.2":{node_abi:1,v8:"3.6"},"0.6.3":{node_abi:1,v8:"3.6"},"0.6.4":{node_abi:1,v8:"3.6"},"0.6.5":{node_abi:1,v8:"3.6"},"0.6.6":{node_abi:1,v8:"3.6"},"0.6.7":{node_abi:1,v8:"3.6"},"0.6.8":{node_abi:1,v8:"3.6"},"0.6.9":{node_abi:1,v8:"3.6"},"0.6.10":{node_abi:1,v8:"3.6"},"0.6.11":{node_abi:1,v8:"3.6"},"0.6.12":{node_abi:1,v8:"3.6"},"0.6.13":{node_abi:1,v8:"3.6"},"0.6.14":{node_abi:1,v8:"3.6"},"0.6.15":{node_abi:1,v8:"3.6"},"0.6.16":{node_abi:1,v8:"3.6"},"0.6.17":{node_abi:1,v8:"3.6"},"0.6.18":{node_abi:1,v8:"3.6"},"0.6.19":{node_abi:1,v8:"3.6"},"0.6.20":{node_abi:1,v8:"3.6"},"0.6.21":{node_abi:1,v8:"3.6"},"0.7.0":{node_abi:1,v8:"3.8"},"0.7.1":{node_abi:1,v8:"3.8"},"0.7.2":{node_abi:1,v8:"3.8"},"0.7.3":{node_abi:1,v8:"3.9"},"0.7.4":{node_abi:1,v8:"3.9"},"0.7.5":{node_abi:1,v8:"3.9"},"0.7.6":{node_abi:1,v8:"3.9"},"0.7.7":{node_abi:1,v8:"3.9"},"0.7.8":{node_abi:1,v8:"3.9"},"0.7.9":{node_abi:1,v8:"3.11"},"0.7.10":{node_abi:1,v8:"3.9"},"0.7.11":{node_abi:1,v8:"3.11"},"0.7.12":{node_abi:1,v8:"3.11"},"0.8.0":{node_abi:1,v8:"3.11"},"0.8.1":{node_abi:1,v8:"3.11"},"0.8.2":{node_abi:1,v8:"3.11"},"0.8.3":{node_abi:1,v8:"3.11"},"0.8.4":{node_abi:1,v8:"3.11"},"0.8.5":{node_abi:1,v8:"3.11"},"0.8.6":{node_abi:1,v8:"3.11"},"0.8.7":{node_abi:1,v8:"3.11"},"0.8.8":{node_abi:1,v8:"3.11"},"0.8.9":{node_abi:1,v8:"3.11"},"0.8.10":{node_abi:1,v8:"3.11"},"0.8.11":{node_abi:1,v8:"3.11"},"0.8.12":{node_abi:1,v8:"3.11"},"0.8.13":{node_abi:1,v8:"3.11"},"0.8.14":{node_abi:1,v8:"3.11"},"0.8.15":{node_abi:1,v8:"3.11"},"0.8.16":{node_abi:1,v8:"3.11"},"0.8.17":{node_abi:1,v8:"3.11"},"0.8.18":{node_abi:1,v8:"3.11"},"0.8.19":{node_abi:1,v8:"3.11"},"0.8.20":{node_abi:1,v8:"3.11"},"0.8.21":{node_abi:1,v8:"3.11"},"0.8.22":{node_abi:1,v8:"3.11"},"0.8.23":{node_abi:1,v8:"3.11"},"0.8.24":{node_abi:1,v8:"3.11"},"0.8.25":{node_abi:1,v8:"3.11"},"0.8.26":{node_abi:1,v8:"3.11"},"0.8.27":{node_abi:1,v8:"3.11"},"0.8.28":{node_abi:1,v8:"3.11"},"0.9.0":{node_abi:1,v8:"3.11"},"0.9.1":{node_abi:10,v8:"3.11"},"0.9.2":{node_abi:10,v8:"3.11"},"0.9.3":{node_abi:10,v8:"3.13"},"0.9.4":{node_abi:10,v8:"3.13"},"0.9.5":{node_abi:10,v8:"3.13"},"0.9.6":{node_abi:10,v8:"3.15"},"0.9.7":{node_abi:10,v8:"3.15"},"0.9.8":{node_abi:10,v8:"3.15"},"0.9.9":{node_abi:11,v8:"3.15"},"0.9.10":{node_abi:11,v8:"3.15"},"0.9.11":{node_abi:11,v8:"3.14"},"0.9.12":{node_abi:11,v8:"3.14"},"0.10.0":{node_abi:11,v8:"3.14"},"0.10.1":{node_abi:11,v8:"3.14"},"0.10.2":{node_abi:11,v8:"3.14"},"0.10.3":{node_abi:11,v8:"3.14"},"0.10.4":{node_abi:11,v8:"3.14"},"0.10.5":{node_abi:11,v8:"3.14"},"0.10.6":{node_abi:11,v8:"3.14"},"0.10.7":{node_abi:11,v8:"3.14"},"0.10.8":{node_abi:11,v8:"3.14"},"0.10.9":{node_abi:11,v8:"3.14"},"0.10.10":{node_abi:11,v8:"3.14"},"0.10.11":{node_abi:11,v8:"3.14"},"0.10.12":{node_abi:11,v8:"3.14"},"0.10.13":{node_abi:11,v8:"3.14"},"0.10.14":{node_abi:11,v8:"3.14"},"0.10.15":{node_abi:11,v8:"3.14"},"0.10.16":{node_abi:11,v8:"3.14"},"0.10.17":{node_abi:11,v8:"3.14"},"0.10.18":{node_abi:11,v8:"3.14"},"0.10.19":{node_abi:11,v8:"3.14"},"0.10.20":{node_abi:11,v8:"3.14"},"0.10.21":{node_abi:11,v8:"3.14"},"0.10.22":{node_abi:11,v8:"3.14"},"0.10.23":{node_abi:11,v8:"3.14"},"0.10.24":{node_abi:11,v8:"3.14"},"0.10.25":{node_abi:11,v8:"3.14"},"0.10.26":{node_abi:11,v8:"3.14"},"0.10.27":{node_abi:11,v8:"3.14"},"0.10.28":{node_abi:11,v8:"3.14"},"0.10.29":{node_abi:11,v8:"3.14"},"0.10.30":{node_abi:11,v8:"3.14"},"0.10.31":{node_abi:11,v8:"3.14"},"0.10.32":{node_abi:11,v8:"3.14"},"0.10.33":{node_abi:11,v8:"3.14"},"0.10.34":{node_abi:11,v8:"3.14"},"0.10.35":{node_abi:11,v8:"3.14"},"0.10.36":{node_abi:11,v8:"3.14"},"0.10.37":{node_abi:11,v8:"3.14"},"0.10.38":{node_abi:11,v8:"3.14"},"0.10.39":{node_abi:11,v8:"3.14"},"0.10.40":{node_abi:11,v8:"3.14"},"0.10.41":{node_abi:11,v8:"3.14"},"0.10.42":{node_abi:11,v8:"3.14"},"0.10.43":{node_abi:11,v8:"3.14"},"0.10.44":{node_abi:11,v8:"3.14"},"0.10.45":{node_abi:11,v8:"3.14"},"0.10.46":{node_abi:11,v8:"3.14"},"0.10.47":{node_abi:11,v8:"3.14"},"0.10.48":{node_abi:11,v8:"3.14"},"0.11.0":{node_abi:12,v8:"3.17"},"0.11.1":{node_abi:12,v8:"3.18"},"0.11.2":{node_abi:12,v8:"3.19"},"0.11.3":{node_abi:12,v8:"3.19"},"0.11.4":{node_abi:12,v8:"3.20"},"0.11.5":{node_abi:12,v8:"3.20"},"0.11.6":{node_abi:12,v8:"3.20"},"0.11.7":{node_abi:12,v8:"3.20"},"0.11.8":{node_abi:13,v8:"3.21"},"0.11.9":{node_abi:13,v8:"3.22"},"0.11.10":{node_abi:13,v8:"3.22"},"0.11.11":{node_abi:14,v8:"3.22"},"0.11.12":{node_abi:14,v8:"3.22"},"0.11.13":{node_abi:14,v8:"3.25"},"0.11.14":{node_abi:14,v8:"3.26"},"0.11.15":{node_abi:14,v8:"3.28"},"0.11.16":{node_abi:14,v8:"3.28"},"0.12.0":{node_abi:14,v8:"3.28"},"0.12.1":{node_abi:14,v8:"3.28"},"0.12.2":{node_abi:14,v8:"3.28"},"0.12.3":{node_abi:14,v8:"3.28"},"0.12.4":{node_abi:14,v8:"3.28"},"0.12.5":{node_abi:14,v8:"3.28"},"0.12.6":{node_abi:14,v8:"3.28"},"0.12.7":{node_abi:14,v8:"3.28"},"0.12.8":{node_abi:14,v8:"3.28"},"0.12.9":{node_abi:14,v8:"3.28"},"0.12.10":{node_abi:14,v8:"3.28"},"0.12.11":{node_abi:14,v8:"3.28"},"0.12.12":{node_abi:14,v8:"3.28"},"0.12.13":{node_abi:14,v8:"3.28"},"0.12.14":{node_abi:14,v8:"3.28"},"0.12.15":{node_abi:14,v8:"3.28"},"0.12.16":{node_abi:14,v8:"3.28"},"0.12.17":{node_abi:14,v8:"3.28"},"0.12.18":{node_abi:14,v8:"3.28"},"1.0.0":{node_abi:42,v8:"3.31"},"1.0.1":{node_abi:42,v8:"3.31"},"1.0.2":{node_abi:42,v8:"3.31"},"1.0.3":{node_abi:42,v8:"4.1"},"1.0.4":{node_abi:42,v8:"4.1"},"1.1.0":{node_abi:43,v8:"4.1"},"1.2.0":{node_abi:43,v8:"4.1"},"1.3.0":{node_abi:43,v8:"4.1"},"1.4.1":{node_abi:43,v8:"4.1"},"1.4.2":{node_abi:43,v8:"4.1"},"1.4.3":{node_abi:43,v8:"4.1"},"1.5.0":{node_abi:43,v8:"4.1"},"1.5.1":{node_abi:43,v8:"4.1"},"1.6.0":{node_abi:43,v8:"4.1"},"1.6.1":{node_abi:43,v8:"4.1"},"1.6.2":{node_abi:43,v8:"4.1"},"1.6.3":{node_abi:43,v8:"4.1"},"1.6.4":{node_abi:43,v8:"4.1"},"1.7.1":{node_abi:43,v8:"4.1"},"1.8.1":{node_abi:43,v8:"4.1"},"1.8.2":{node_abi:43,v8:"4.1"},"1.8.3":{node_abi:43,v8:"4.1"},"1.8.4":{node_abi:43,v8:"4.1"},"2.0.0":{node_abi:44,v8:"4.2"},"2.0.1":{node_abi:44,v8:"4.2"},"2.0.2":{node_abi:44,v8:"4.2"},"2.1.0":{node_abi:44,v8:"4.2"},"2.2.0":{node_abi:44,v8:"4.2"},"2.2.1":{node_abi:44,v8:"4.2"},"2.3.0":{node_abi:44,v8:"4.2"},"2.3.1":{node_abi:44,v8:"4.2"},"2.3.2":{node_abi:44,v8:"4.2"},"2.3.3":{node_abi:44,v8:"4.2"},"2.3.4":{node_abi:44,v8:"4.2"},"2.4.0":{node_abi:44,v8:"4.2"},"2.5.0":{node_abi:44,v8:"4.2"},"3.0.0":{node_abi:45,v8:"4.4"},"3.1.0":{node_abi:45,v8:"4.4"},"3.2.0":{node_abi:45,v8:"4.4"},"3.3.0":{node_abi:45,v8:"4.4"},"3.3.1":{node_abi:45,v8:"4.4"},"4.0.0":{node_abi:46,v8:"4.5"},"4.1.0":{node_abi:46,v8:"4.5"},"4.1.1":{node_abi:46,v8:"4.5"},"4.1.2":{node_abi:46,v8:"4.5"},"4.2.0":{node_abi:46,v8:"4.5"},"4.2.1":{node_abi:46,v8:"4.5"},"4.2.2":{node_abi:46,v8:"4.5"},"4.2.3":{node_abi:46,v8:"4.5"},"4.2.4":{node_abi:46,v8:"4.5"},"4.2.5":{node_abi:46,v8:"4.5"},"4.2.6":{node_abi:46,v8:"4.5"},"4.3.0":{node_abi:46,v8:"4.5"},"4.3.1":{node_abi:46,v8:"4.5"},"4.3.2":{node_abi:46,v8:"4.5"},"4.4.0":{node_abi:46,v8:"4.5"},"4.4.1":{node_abi:46,v8:"4.5"},"4.4.2":{node_abi:46,v8:"4.5"},"4.4.3":{node_abi:46,v8:"4.5"},"4.4.4":{node_abi:46,v8:"4.5"},"4.4.5":{node_abi:46,v8:"4.5"},"4.4.6":{node_abi:46,v8:"4.5"},"4.4.7":{node_abi:46,v8:"4.5"},"4.5.0":{node_abi:46,v8:"4.5"},"4.6.0":{node_abi:46,v8:"4.5"},"4.6.1":{node_abi:46,v8:"4.5"},"4.6.2":{node_abi:46,v8:"4.5"},"4.7.0":{node_abi:46,v8:"4.5"},"4.7.1":{node_abi:46,v8:"4.5"},"4.7.2":{node_abi:46,v8:"4.5"},"4.7.3":{node_abi:46,v8:"4.5"},"4.8.0":{node_abi:46,v8:"4.5"},"4.8.1":{node_abi:46,v8:"4.5"},"4.8.2":{node_abi:46,v8:"4.5"},"4.8.3":{node_abi:46,v8:"4.5"},"4.8.4":{node_abi:46,v8:"4.5"},"4.8.5":{node_abi:46,v8:"4.5"},"4.8.6":{node_abi:46,v8:"4.5"},"4.8.7":{node_abi:46,v8:"4.5"},"4.9.0":{node_abi:46,v8:"4.5"},"4.9.1":{node_abi:46,v8:"4.5"},"5.0.0":{node_abi:47,v8:"4.6"},"5.1.0":{node_abi:47,v8:"4.6"},"5.1.1":{node_abi:47,v8:"4.6"},"5.2.0":{node_abi:47,v8:"4.6"},"5.3.0":{node_abi:47,v8:"4.6"},"5.4.0":{node_abi:47,v8:"4.6"},"5.4.1":{node_abi:47,v8:"4.6"},"5.5.0":{node_abi:47,v8:"4.6"},"5.6.0":{node_abi:47,v8:"4.6"},"5.7.0":{node_abi:47,v8:"4.6"},"5.7.1":{node_abi:47,v8:"4.6"},"5.8.0":{node_abi:47,v8:"4.6"},"5.9.0":{node_abi:47,v8:"4.6"},"5.9.1":{node_abi:47,v8:"4.6"},"5.10.0":{node_abi:47,v8:"4.6"},"5.10.1":{node_abi:47,v8:"4.6"},"5.11.0":{node_abi:47,v8:"4.6"},"5.11.1":{node_abi:47,v8:"4.6"},"5.12.0":{node_abi:47,v8:"4.6"},"6.0.0":{node_abi:48,v8:"5.0"},"6.1.0":{node_abi:48,v8:"5.0"},"6.2.0":{node_abi:48,v8:"5.0"},"6.2.1":{node_abi:48,v8:"5.0"},"6.2.2":{node_abi:48,v8:"5.0"},"6.3.0":{node_abi:48,v8:"5.0"},"6.3.1":{node_abi:48,v8:"5.0"},"6.4.0":{node_abi:48,v8:"5.0"},"6.5.0":{node_abi:48,v8:"5.1"},"6.6.0":{node_abi:48,v8:"5.1"},"6.7.0":{node_abi:48,v8:"5.1"},"6.8.0":{node_abi:48,v8:"5.1"},"6.8.1":{node_abi:48,v8:"5.1"},"6.9.0":{node_abi:48,v8:"5.1"},"6.9.1":{node_abi:48,v8:"5.1"},"6.9.2":{node_abi:48,v8:"5.1"},"6.9.3":{node_abi:48,v8:"5.1"},"6.9.4":{node_abi:48,v8:"5.1"},"6.9.5":{node_abi:48,v8:"5.1"},"6.10.0":{node_abi:48,v8:"5.1"},"6.10.1":{node_abi:48,v8:"5.1"},"6.10.2":{node_abi:48,v8:"5.1"},"6.10.3":{node_abi:48,v8:"5.1"},"6.11.0":{node_abi:48,v8:"5.1"},"6.11.1":{node_abi:48,v8:"5.1"},"6.11.2":{node_abi:48,v8:"5.1"},"6.11.3":{node_abi:48,v8:"5.1"},"6.11.4":{node_abi:48,v8:"5.1"},"6.11.5":{node_abi:48,v8:"5.1"},"6.12.0":{node_abi:48,v8:"5.1"},"6.12.1":{node_abi:48,v8:"5.1"},"6.12.2":{node_abi:48,v8:"5.1"},"6.12.3":{node_abi:48,v8:"5.1"},"6.13.0":{node_abi:48,v8:"5.1"},"6.13.1":{node_abi:48,v8:"5.1"},"6.14.0":{node_abi:48,v8:"5.1"},"6.14.1":{node_abi:48,v8:"5.1"},"6.14.2":{node_abi:48,v8:"5.1"},"6.14.3":{node_abi:48,v8:"5.1"},"6.14.4":{node_abi:48,v8:"5.1"},"7.0.0":{node_abi:51,v8:"5.4"},"7.1.0":{node_abi:51,v8:"5.4"},"7.2.0":{node_abi:51,v8:"5.4"},"7.2.1":{node_abi:51,v8:"5.4"},"7.3.0":{node_abi:51,v8:"5.4"},"7.4.0":{node_abi:51,v8:"5.4"},"7.5.0":{node_abi:51,v8:"5.4"},"7.6.0":{node_abi:51,v8:"5.5"},"7.7.0":{node_abi:51,v8:"5.5"},"7.7.1":{node_abi:51,v8:"5.5"},"7.7.2":{node_abi:51,v8:"5.5"},"7.7.3":{node_abi:51,v8:"5.5"},"7.7.4":{node_abi:51,v8:"5.5"},"7.8.0":{node_abi:51,v8:"5.5"},"7.9.0":{node_abi:51,v8:"5.5"},"7.10.0":{node_abi:51,v8:"5.5"},"7.10.1":{node_abi:51,v8:"5.5"},"8.0.0":{node_abi:57,v8:"5.8"},"8.1.0":{node_abi:57,v8:"5.8"},"8.1.1":{node_abi:57,v8:"5.8"},"8.1.2":{node_abi:57,v8:"5.8"},"8.1.3":{node_abi:57,v8:"5.8"},"8.1.4":{node_abi:57,v8:"5.8"},"8.2.0":{node_abi:57,v8:"5.8"},"8.2.1":{node_abi:57,v8:"5.8"},"8.3.0":{node_abi:57,v8:"6.0"},"8.4.0":{node_abi:57,v8:"6.0"},"8.5.0":{node_abi:57,v8:"6.0"},"8.6.0":{node_abi:57,v8:"6.0"},"8.7.0":{node_abi:57,v8:"6.1"},"8.8.0":{node_abi:57,v8:"6.1"},"8.8.1":{node_abi:57,v8:"6.1"},"8.9.0":{node_abi:57,v8:"6.1"},"8.9.1":{node_abi:57,v8:"6.1"},"8.9.2":{node_abi:57,v8:"6.1"},"8.9.3":{node_abi:57,v8:"6.1"},"8.9.4":{node_abi:57,v8:"6.1"},"8.10.0":{node_abi:57,v8:"6.2"},"8.11.0":{node_abi:57,v8:"6.2"},"8.11.1":{node_abi:57,v8:"6.2"},"8.11.2":{node_abi:57,v8:"6.2"},"8.11.3":{node_abi:57,v8:"6.2"},"8.11.4":{node_abi:57,v8:"6.2"},"8.12.0":{node_abi:57,v8:"6.2"},"9.0.0":{node_abi:59,v8:"6.2"},"9.1.0":{node_abi:59,v8:"6.2"},"9.2.0":{node_abi:59,v8:"6.2"},"9.2.1":{node_abi:59,v8:"6.2"},"9.3.0":{node_abi:59,v8:"6.2"},"9.4.0":{node_abi:59,v8:"6.2"},"9.5.0":{node_abi:59,v8:"6.2"},"9.6.0":{node_abi:59,v8:"6.2"},"9.6.1":{node_abi:59,v8:"6.2"},"9.7.0":{node_abi:59,v8:"6.2"},"9.7.1":{node_abi:59,v8:"6.2"},"9.8.0":{node_abi:59,v8:"6.2"},"9.9.0":{node_abi:59,v8:"6.2"},"9.10.0":{node_abi:59,v8:"6.2"},"9.10.1":{node_abi:59,v8:"6.2"},"9.11.0":{node_abi:59,v8:"6.2"},"9.11.1":{node_abi:59,v8:"6.2"},"9.11.2":{node_abi:59,v8:"6.2"},"10.0.0":{node_abi:64,v8:"6.6"},"10.1.0":{node_abi:64,v8:"6.6"},"10.2.0":{node_abi:64,v8:"6.6"},"10.2.1":{node_abi:64,v8:"6.6"},"10.3.0":{node_abi:64,v8:"6.6"},"10.4.0":{node_abi:64,v8:"6.7"},"10.4.1":{node_abi:64,v8:"6.7"},"10.5.0":{node_abi:64,v8:"6.7"},"10.6.0":{node_abi:64,v8:"6.7"},"10.7.0":{node_abi:64,v8:"6.7"},"10.8.0":{node_abi:64,v8:"6.7"},"10.9.0":{node_abi:64,v8:"6.8"},"10.10.0":{node_abi:64,v8:"6.8"},"10.11.0":{node_abi:64,v8:"6.8"},"10.12.0":{node_abi:64,v8:"6.8"},"10.13.0":{node_abi:64,v8:"6.8"},"11.0.0":{node_abi:67,v8:"7.0"},"11.1.0":{node_abi:67,v8:"7.0"}}},594:function(module,__unusedexports,__nested_webpack_require_466019__){var fs=__nested_webpack_require_466019__(66);var path=__nested_webpack_require_466019__(589);var os=__nested_webpack_require_466019__(431);var runtimeRequire=true?eval("require"):0;var vars=process.config&&process.config.variables||{};var prebuildsOnly=!!process.env.PREBUILDS_ONLY;var abi=process.versions.modules;var runtime=isElectron()?"electron":"node";var arch=os.arch();var platform=os.platform();var libc=process.env.LIBC||(isAlpine(platform)?"musl":"glibc");var armv=process.env.ARM_VERSION||(arch==="arm64"?"8":vars.arm_version)||"";var uv=(process.versions.uv||"").split(".")[0];module.exports=load;function load(e){return runtimeRequire(load.path(e))}load.path=function(e){e=path.resolve(e||".");try{var t=runtimeRequire(path.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");if(process.env[t+"_PREBUILD"])e=process.env[t+"_PREBUILD"]}catch(e){}if(!prebuildsOnly){var r=getFirst(path.join(e,"build/Release"),matchBuild);if(r)return r;var i=getFirst(path.join(e,"build/Debug"),matchBuild);if(i)return i}var n=resolve(e);if(n)return n;var s=resolve(path.dirname(process.execPath));if(s)return s;var a=["platform="+platform,"arch="+arch,"runtime="+runtime,"abi="+abi,"uv="+uv,armv?"armv="+armv:"","libc="+libc].filter(Boolean).join(" ");throw new Error("No native build was found for "+a);function resolve(e){var t=path.join(e,"prebuilds",platform+"-"+arch);var r=readdirSync(t).map(parseTags);var i=r.filter(matchTags(runtime,abi));var n=i.sort(compareTags(runtime))[0];if(n)return path.join(t,n.file)}};function readdirSync(e){try{return fs.readdirSync(e)}catch(e){return[]}}function getFirst(e,t){var r=readdirSync(e).filter(t);return r[0]&&path.join(e,r[0])}function matchBuild(e){return/\.node$/.test(e)}function parseTags(e){var t=e.split(".");var r=t.pop();var i={file:e,specificity:0};if(r!=="node")return;for(var n=0;n<t.length;n++){var s=t[n];if(s==="node"||s==="electron"||s==="node-webkit"){i.runtime=s}else if(s==="napi"){i.napi=true}else if(s.slice(0,3)==="abi"){i.abi=s.slice(3)}else if(s.slice(0,2)==="uv"){i.uv=s.slice(2)}else if(s.slice(0,4)==="armv"){i.armv=s.slice(4)}else if(s==="glibc"||s==="musl"){i.libc=s}else{continue}i.specificity++}return i}function matchTags(e,t){return function(r){if(r==null)return false;if(r.runtime!==e&&!runtimeAgnostic(r))return false;if(r.abi!==t&&!r.napi)return false;if(r.uv&&r.uv!==uv)return false;if(r.armv&&r.armv!==armv)return false;if(r.libc&&r.libc!==libc)return false;return true}}function runtimeAgnostic(e){return e.runtime==="node"&&e.napi}function compareTags(e){return function(t,r){if(t.runtime!==r.runtime){return t.runtime===e?-1:1}else if(t.abi!==r.abi){return t.abi?-1:1}else if(t.specificity!==r.specificity){return t.specificity>r.specificity?-1:1}else{return 0}}}function isElectron(){if(process.versions&&process.versions.electron)return true;if(process.env.ELECTRON_RUN_AS_NODE)return true;return typeof window!=="undefined"&&window.process&&window.process.type==="renderer"}function isAlpine(e){return e==="linux"&&fs.existsSync("/etc/alpine-release")}load.parseTags=parseTags;load.matchTags=matchTags;load.compareTags=compareTags},597:function(e,t,r){var i=r(688).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var a=0,u=s.length;a<u;a++){var o=s[a];this[o]=r[o]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var s=0,a=n.length;s<a;s++){var u=n[s];this[u]=r[u]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},604:function(e,t,r){"use strict";var i=r(64);var n=r(663);var s=r(358);var a=r(30);var u=e.exports=function(e){n.call(this,e);this.parentGroup=null;this.trackers=[];this.completion={};this.weight={};this.totalWeight=0;this.finished=false;this.bubbleChange=bubbleChange(this)};i.inherits(u,n);function bubbleChange(e){return function(t,r,i){e.completion[i.id]=r;if(e.finished)return;e.emit("change",t||e.name,e.completed(),e)}}u.prototype.nameInTree=function(){var e=[];var t=this;while(t){e.unshift(t.name);t=t.parentGroup}return e.join("/")};u.prototype.addUnit=function(e,t){if(e.addUnit){var r=this;while(r){if(e===r){throw new Error("Attempted to add tracker group "+e.name+" to tree that already includes it "+this.nameInTree(this))}r=r.parentGroup}e.parentGroup=this}this.weight[e.id]=t||1;this.totalWeight+=this.weight[e.id];this.trackers.push(e);this.completion[e.id]=e.completed();e.on("change",this.bubbleChange);if(!this.finished)this.emit("change",e.name,this.completion[e.id],e);return e};u.prototype.completed=function(){if(this.trackers.length===0)return 0;var e=1/this.totalWeight;var t=0;for(var r=0;r<this.trackers.length;r++){var i=this.trackers[r].id;t+=e*this.weight[i]*this.completion[i]}return t};u.prototype.newGroup=function(e,t){return this.addUnit(new u(e),t)};u.prototype.newItem=function(e,t,r){return this.addUnit(new s(e,t),r)};u.prototype.newStream=function(e,t,r){return this.addUnit(new a(e,t),r)};u.prototype.finish=function(){this.finished=true;if(!this.trackers.length)this.addUnit(new s,1,true);for(var e=0;e<this.trackers.length;e++){var t=this.trackers[e];t.finish();t.removeListener("change",this.bubbleChange)}this.emit("change",this.name,1,this)};var o=" ";u.prototype.debug=function(e){e=e||0;var t=e?o.substr(0,e):"";var r=t+(this.name||"top")+": "+this.completed()+"\n";this.trackers.forEach(function(i){if(i instanceof u){r+=i.debug(e+1)}else{r+=t+" "+i.name+": "+i.completed()+"\n"}});return r}},606:function(e){"use strict";e.exports=(e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false})},607:function(e){e.exports=["🀄","🃏","🅰","🅱","🅾","🅿","🆎","🆑","🆒","🆓","🆔","🆕","🆖","🆗","🆘","🆙","🆚","🇦🇨","🇦🇩","🇦🇪","🇦🇫","🇦🇬","🇦🇮","🇦🇱","🇦🇲","🇦🇴","🇦🇶","🇦🇷","🇦🇸","🇦🇹","🇦🇺","🇦🇼","🇦🇽","🇦🇿","🇦","🇧🇦","🇧🇧","🇧🇩","🇧🇪","🇧🇫","🇧🇬","🇧🇭","🇧🇮","🇧🇯","🇧🇱","🇧🇲","🇧🇳","🇧🇴","🇧🇶","🇧🇷","🇧🇸","🇧🇹","🇧🇻","🇧🇼","🇧🇾","🇧🇿","🇧","🇨🇦","🇨🇨","🇨🇩","🇨🇫","🇨🇬","🇨🇭","🇨🇮","🇨🇰","🇨🇱","🇨🇲","🇨🇳","🇨🇴","🇨🇵","🇨🇷","🇨🇺","🇨🇻","🇨🇼","🇨🇽","🇨🇾","🇨🇿","🇨","🇩🇪","🇩🇬","🇩🇯","🇩🇰","🇩🇲","🇩🇴","🇩🇿","🇩","🇪🇦","🇪🇨","🇪🇪","🇪🇬","🇪🇭","🇪🇷","🇪🇸","🇪🇹","🇪🇺","🇪","🇫🇮","🇫🇯","🇫🇰","🇫🇲","🇫🇴","🇫🇷","🇫","🇬🇦","🇬🇧","🇬🇩","🇬🇪","🇬🇫","🇬🇬","🇬🇭","🇬🇮","🇬🇱","🇬🇲","🇬🇳","🇬🇵","🇬🇶","🇬🇷","🇬🇸","🇬🇹","🇬🇺","🇬🇼","🇬🇾","🇬","🇭🇰","🇭🇲","🇭🇳","🇭🇷","🇭🇹","🇭🇺","🇭","🇮🇨","🇮🇩","🇮🇪","🇮🇱","🇮🇲","🇮🇳","🇮🇴","🇮🇶","🇮🇷","🇮🇸","🇮🇹","🇮","🇯🇪","🇯🇲","🇯🇴","🇯🇵","🇯","🇰🇪","🇰🇬","🇰🇭","🇰🇮","🇰🇲","🇰🇳","🇰🇵","🇰🇷","🇰🇼","🇰🇾","🇰🇿","🇰","🇱🇦","🇱🇧","🇱🇨","🇱🇮","🇱🇰","🇱🇷","🇱🇸","🇱🇹","🇱🇺","🇱🇻","🇱🇾","🇱","🇲🇦","🇲🇨","🇲🇩","🇲🇪","🇲🇫","🇲🇬","🇲🇭","🇲🇰","🇲🇱","🇲🇲","🇲🇳","🇲🇴","🇲🇵","🇲🇶","🇲🇷","🇲🇸","🇲🇹","🇲🇺","🇲🇻","🇲🇼","🇲🇽","🇲🇾","🇲🇿","🇲","🇳🇦","🇳🇨","🇳🇪","🇳🇫","🇳🇬","🇳🇮","🇳🇱","🇳🇴","🇳🇵","🇳🇷","🇳🇺","🇳🇿","🇳","🇴🇲","🇴","🇵🇦","🇵🇪","🇵🇫","🇵🇬","🇵🇭","🇵🇰","🇵🇱","🇵🇲","🇵🇳","🇵🇷","🇵🇸","🇵🇹","🇵🇼","🇵🇾","🇵","🇶🇦","🇶","🇷🇪","🇷🇴","🇷🇸","🇷🇺","🇷🇼","🇷","🇸🇦","🇸🇧","🇸🇨","🇸🇩","🇸🇪","🇸🇬","🇸🇭","🇸🇮","🇸🇯","🇸🇰","🇸🇱","🇸🇲","🇸🇳","🇸🇴","🇸🇷","🇸🇸","🇸🇹","🇸🇻","🇸🇽","🇸🇾","🇸🇿","🇸","🇹🇦","🇹🇨","🇹🇩","🇹🇫","🇹🇬","🇹🇭","🇹🇯","🇹🇰","🇹🇱","🇹🇲","🇹🇳","🇹🇴","🇹🇷","🇹🇹","🇹🇻","🇹🇼","🇹🇿","🇹","🇺🇦","🇺🇬","🇺🇲","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇺","🇻🇦","🇻🇨","🇻🇪","🇻🇬","🇻🇮","🇻🇳","🇻🇺","🇻","🇼🇫","🇼🇸","🇼","🇽🇰","🇽","🇾🇪","🇾🇹","🇾","🇿🇦","🇿🇲","🇿🇼","🇿","🈁","🈂","🈚","🈯","🈲","🈳","🈴","🈵","🈶","🈷","🈸","🈹","🈺","🉐","🉑","🌀","🌁","🌂","🌃","🌄","🌅","🌆","🌇","🌈","🌉","🌊","🌋","🌌","🌍","🌎","🌏","🌐","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","🌝","🌞","🌟","🌠","🌡","🌤","🌥","🌦","🌧","🌨","🌩","🌪","🌫","🌬","🌭","🌮","🌯","🌰","🌱","🌲","🌳","🌴","🌵","🌶","🌷","🌸","🌹","🌺","🌻","🌼","🌽","🌾","🌿","🍀","🍁","🍂","🍃","🍄","🍅","🍆","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍔","🍕","🍖","🍗","🍘","🍙","🍚","🍛","🍜","🍝","🍞","🍟","🍠","🍡","🍢","🍣","🍤","🍥","🍦","🍧","🍨","🍩","🍪","🍫","🍬","🍭","🍮","🍯","🍰","🍱","🍲","🍳","🍴","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍼","🍽","🍾","🍿","🎀","🎁","🎂","🎃","🎄","🎅🏻","🎅🏼","🎅🏽","🎅🏾","🎅🏿","🎅","🎆","🎇","🎈","🎉","🎊","🎋","🎌","🎍","🎎","🎏","🎐","🎑","🎒","🎓","🎖","🎗","🎙","🎚","🎛","🎞","🎟","🎠","🎡","🎢","🎣","🎤","🎥","🎦","🎧","🎨","🎩","🎪","🎫","🎬","🎭","🎮","🎯","🎰","🎱","🎲","🎳","🎴","🎵","🎶","🎷","🎸","🎹","🎺","🎻","🎼","🎽","🎾","🎿","🏀","🏁","🏂🏻","🏂🏼","🏂🏽","🏂🏾","🏂🏿","🏂","🏃🏻♀️","🏃🏻♂️","🏃🏻","🏃🏼♀️","🏃🏼♂️","🏃🏼","🏃🏽♀️","🏃🏽♂️","🏃🏽","🏃🏾♀️","🏃🏾♂️","🏃🏾","🏃🏿♀️","🏃🏿♂️","🏃🏿","🏃♀️","🏃♂️","🏃","🏄🏻♀️","🏄🏻♂️","🏄🏻","🏄🏼♀️","🏄🏼♂️","🏄🏼","🏄🏽♀️","🏄🏽♂️","🏄🏽","🏄🏾♀️","🏄🏾♂️","🏄🏾","🏄🏿♀️","🏄🏿♂️","🏄🏿","🏄♀️","🏄♂️","🏄","🏅","🏆","🏇🏻","🏇🏼","🏇🏽","🏇🏾","🏇🏿","🏇","🏈","🏉","🏊🏻♀️","🏊🏻♂️","🏊🏻","🏊🏼♀️","🏊🏼♂️","🏊🏼","🏊🏽♀️","🏊🏽♂️","🏊🏽","🏊🏾♀️","🏊🏾♂️","🏊🏾","🏊🏿♀️","🏊🏿♂️","🏊🏿","🏊♀️","🏊♂️","🏊","🏋🏻♀️","🏋🏻♂️","🏋🏻","🏋🏼♀️","🏋🏼♂️","🏋🏼","🏋🏽♀️","🏋🏽♂️","🏋🏽","🏋🏾♀️","🏋🏾♂️","🏋🏾","🏋🏿♀️","🏋🏿♂️","🏋🏿","🏋️♀️","🏋️♂️","🏋","🏌🏻♀️","🏌🏻♂️","🏌🏻","🏌🏼♀️","🏌🏼♂️","🏌🏼","🏌🏽♀️","🏌🏽♂️","🏌🏽","🏌🏾♀️","🏌🏾♂️","🏌🏾","🏌🏿♀️","🏌🏿♂️","🏌🏿","🏌️♀️","🏌️♂️","🏌","🏍","🏎","🏏","🏐","🏑","🏒","🏓","🏔","🏕","🏖","🏗","🏘","🏙","🏚","🏛","🏜","🏝","🏞","🏟","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏧","🏨","🏩","🏪","🏫","🏬","🏭","🏮","🏯","🏰","🏳️🌈","🏳","🏴☠️","🏴","🏵","🏷","🏸","🏹","🏺","🏻","🏼","🏽","🏾","🏿","🐀","🐁","🐂","🐃","🐄","🐅","🐆","🐇","🐈","🐉","🐊","🐋","🐌","🐍","🐎","🐏","🐐","🐑","🐒","🐓","🐔","🐕","🐖","🐗","🐘","🐙","🐚","🐛","🐜","🐝","🐞","🐟","🐠","🐡","🐢","🐣","🐤","🐥","🐦","🐧","🐨","🐩","🐪","🐫","🐬","🐭","🐮","🐯","🐰","🐱","🐲","🐳","🐴","🐵","🐶","🐷","🐸","🐹","🐺","🐻","🐼","🐽","🐾","🐿","👀","👁🗨","👁","👂🏻","👂🏼","👂🏽","👂🏾","👂🏿","👂","👃🏻","👃🏼","👃🏽","👃🏾","👃🏿","👃","👄","👅","👆🏻","👆🏼","👆🏽","👆🏾","👆🏿","👆","👇🏻","👇🏼","👇🏽","👇🏾","👇🏿","👇","👈🏻","👈🏼","👈🏽","👈🏾","👈🏿","👈","👉🏻","👉🏼","👉🏽","👉🏾","👉🏿","👉","👊🏻","👊🏼","👊🏽","👊🏾","👊🏿","👊","👋🏻","👋🏼","👋🏽","👋🏾","👋🏿","👋","👌🏻","👌🏼","👌🏽","👌🏾","👌🏿","👌","👍🏻","👍🏼","👍🏽","👍🏾","👍🏿","👍","👎🏻","👎🏼","👎🏽","👎🏾","👎🏿","👎","👏🏻","👏🏼","👏🏽","👏🏾","👏🏿","👏","👐🏻","👐🏼","👐🏽","👐🏾","👐🏿","👐","👑","👒","👓","👔","👕","👖","👗","👘","👙","👚","👛","👜","👝","👞","👟","👠","👡","👢","👣","👤","👥","👦🏻","👦🏼","👦🏽","👦🏾","👦🏿","👦","👧🏻","👧🏼","👧🏽","👧🏾","👧🏿","👧","👨🏻🌾","👨🏻🍳","👨🏻🎓","👨🏻🎤","👨🏻🎨","👨🏻🏫","👨🏻🏭","👨🏻💻","👨🏻💼","👨🏻🔧","👨🏻🔬","👨🏻🚀","👨🏻🚒","👨🏻⚕️","👨🏻⚖️","👨🏻✈️","👨🏻","👨🏼🌾","👨🏼🍳","👨🏼🎓","👨🏼🎤","👨🏼🎨","👨🏼🏫","👨🏼🏭","👨🏼💻","👨🏼💼","👨🏼🔧","👨🏼🔬","👨🏼🚀","👨🏼🚒","👨🏼⚕️","👨🏼⚖️","👨🏼✈️","👨🏼","👨🏽🌾","👨🏽🍳","👨🏽🎓","👨🏽🎤","👨🏽🎨","👨🏽🏫","👨🏽🏭","👨🏽💻","👨🏽💼","👨🏽🔧","👨🏽🔬","👨🏽🚀","👨🏽🚒","👨🏽⚕️","👨🏽⚖️","👨🏽✈️","👨🏽","👨🏾🌾","👨🏾🍳","👨🏾🎓","👨🏾🎤","👨🏾🎨","👨🏾🏫","👨🏾🏭","👨🏾💻","👨🏾💼","👨🏾🔧","👨🏾🔬","👨🏾🚀","👨🏾🚒","👨🏾⚕️","👨🏾⚖️","👨🏾✈️","👨🏾","👨🏿🌾","👨🏿🍳","👨🏿🎓","👨🏿🎤","👨🏿🎨","👨🏿🏫","👨🏿🏭","👨🏿💻","👨🏿💼","👨🏿🔧","👨🏿🔬","👨🏿🚀","👨🏿🚒","👨🏿⚕️","👨🏿⚖️","👨🏿✈️","👨🏿","👨🌾","👨🍳","👨🎓","👨🎤","👨🎨","👨🏫","👨🏭","👨👦👦","👨👦","👨👧👦","👨👧👧","👨👧","👨👨👦👦","👨👨👦","👨👨👧👦","👨👨👧👧","👨👨👧","👨👩👦👦","👨👩👦","👨👩👧👦","👨👩👧👧","👨👩👧","👨💻","👨💼","👨🔧","👨🔬","👨🚀","👨🚒","👨⚕️","👨⚖️","👨✈️","👨❤️👨","👨❤️💋👨","👨","👩🏻🌾","👩🏻🍳","👩🏻🎓","👩🏻🎤","👩🏻🎨","👩🏻🏫","👩🏻🏭","👩🏻💻","👩🏻💼","👩🏻🔧","👩🏻🔬","👩🏻🚀","👩🏻🚒","👩🏻⚕️","👩🏻⚖️","👩🏻✈️","👩🏻","👩🏼🌾","👩🏼🍳","👩🏼🎓","👩🏼🎤","👩🏼🎨","👩🏼🏫","👩🏼🏭","👩🏼💻","👩🏼💼","👩🏼🔧","👩🏼🔬","👩🏼🚀","👩🏼🚒","👩🏼⚕️","👩🏼⚖️","👩🏼✈️","👩🏼","👩🏽🌾","👩🏽🍳","👩🏽🎓","👩🏽🎤","👩🏽🎨","👩🏽🏫","👩🏽🏭","👩🏽💻","👩🏽💼","👩🏽🔧","👩🏽🔬","👩🏽🚀","👩🏽🚒","👩🏽⚕️","👩🏽⚖️","👩🏽✈️","👩🏽","👩🏾🌾","👩🏾🍳","👩🏾🎓","👩🏾🎤","👩🏾🎨","👩🏾🏫","👩🏾🏭","👩🏾💻","👩🏾💼","👩🏾🔧","👩🏾🔬","👩🏾🚀","👩🏾🚒","👩🏾⚕️","👩🏾⚖️","👩🏾✈️","👩🏾","👩🏿🌾","👩🏿🍳","👩🏿🎓","👩🏿🎤","👩🏿🎨","👩🏿🏫","👩🏿🏭","👩🏿💻","👩🏿💼","👩🏿🔧","👩🏿🔬","👩🏿🚀","👩🏿🚒","👩🏿⚕️","👩🏿⚖️","👩🏿✈️","👩🏿","👩🌾","👩🍳","👩🎓","👩🎤","👩🎨","👩🏫","👩🏭","👩👦👦","👩👦","👩👧👦","👩👧👧","👩👧","👩👩👦👦","👩👩👦","👩👩👧👦","👩👩👧👧","👩👩👧","👩💻","👩💼","👩🔧","👩🔬","👩🚀","👩🚒","👩⚕️","👩⚖️","👩✈️","👩❤️👨","👩❤️👩","👩❤️💋👨","👩❤️💋👩","👩","👪🏻","👪🏼","👪🏽","👪🏾","👪🏿","👪","👫🏻","👫🏼","👫🏽","👫🏾","👫🏿","👫","👬🏻","👬🏼","👬🏽","👬🏾","👬🏿","👬","👭🏻","👭🏼","👭🏽","👭🏾","👭🏿","👭","👮🏻♀️","👮🏻♂️","👮🏻","👮🏼♀️","👮🏼♂️","👮🏼","👮🏽♀️","👮🏽♂️","👮🏽","👮🏾♀️","👮🏾♂️","👮🏾","👮🏿♀️","👮🏿♂️","👮🏿","👮♀️","👮♂️","👮","👯🏻♀️","👯🏻♂️","👯🏻","👯🏼♀️","👯🏼♂️","👯🏼","👯🏽♀️","👯🏽♂️","👯🏽","👯🏾♀️","👯🏾♂️","👯🏾","👯🏿♀️","👯🏿♂️","👯🏿","👯♀️","👯♂️","👯","👰🏻","👰🏼","👰🏽","👰🏾","👰🏿","👰","👱🏻♀️","👱🏻♂️","👱🏻","👱🏼♀️","👱🏼♂️","👱🏼","👱🏽♀️","👱🏽♂️","👱🏽","👱🏾♀️","👱🏾♂️","👱🏾","👱🏿♀️","👱🏿♂️","👱🏿","👱♀️","👱♂️","👱","👲🏻","👲🏼","👲🏽","👲🏾","👲🏿","👲","👳🏻♀️","👳🏻♂️","👳🏻","👳🏼♀️","👳🏼♂️","👳🏼","👳🏽♀️","👳🏽♂️","👳🏽","👳🏾♀️","👳🏾♂️","👳🏾","👳🏿♀️","👳🏿♂️","👳🏿","👳♀️","👳♂️","👳","👴🏻","👴🏼","👴🏽","👴🏾","👴🏿","👴","👵🏻","👵🏼","👵🏽","👵🏾","👵🏿","👵","👶🏻","👶🏼","👶🏽","👶🏾","👶🏿","👶","👷🏻♀️","👷🏻♂️","👷🏻","👷🏼♀️","👷🏼♂️","👷🏼","👷🏽♀️","👷🏽♂️","👷🏽","👷🏾♀️","👷🏾♂️","👷🏾","👷🏿♀️","👷🏿♂️","👷🏿","👷♀️","👷♂️","👷","👸🏻","👸🏼","👸🏽","👸🏾","👸🏿","👸","👹","👺","👻","👼🏻","👼🏼","👼🏽","👼🏾","👼🏿","👼","👽","👾","👿","💀","💁🏻♀️","💁🏻♂️","💁🏻","💁🏼♀️","💁🏼♂️","💁🏼","💁🏽♀️","💁🏽♂️","💁🏽","💁🏾♀️","💁🏾♂️","💁🏾","💁🏿♀️","💁🏿♂️","💁🏿","💁♀️","💁♂️","💁","💂🏻♀️","💂🏻♂️","💂🏻","💂🏼♀️","💂🏼♂️","💂🏼","💂🏽♀️","💂🏽♂️","💂🏽","💂🏾♀️","💂🏾♂️","💂🏾","💂🏿♀️","💂🏿♂️","💂🏿","💂♀️","💂♂️","💂","💃🏻","💃🏼","💃🏽","💃🏾","💃🏿","💃","💄","💅🏻","💅🏼","💅🏽","💅🏾","💅🏿","💅","💆🏻♀️","💆🏻♂️","💆🏻","💆🏼♀️","💆🏼♂️","💆🏼","💆🏽♀️","💆🏽♂️","💆🏽","💆🏾♀️","💆🏾♂️","💆🏾","💆🏿♀️","💆🏿♂️","💆🏿","💆♀️","💆♂️","💆","💇🏻♀️","💇🏻♂️","💇🏻","💇🏼♀️","💇🏼♂️","💇🏼","💇🏽♀️","💇🏽♂️","💇🏽","💇🏾♀️","💇🏾♂️","💇🏾","💇🏿♀️","💇🏿♂️","💇🏿","💇♀️","💇♂️","💇","💈","💉","💊","💋","💌","💍","💎","💏","💐","💑","💒","💓","💔","💕","💖","💗","💘","💙","💚","💛","💜","💝","💞","💟","💠","💡","💢","💣","💤","💥","💦","💧","💨","💩","💪🏻","💪🏼","💪🏽","💪🏾","💪🏿","💪","💫","💬","💭","💮","💯","💰","💱","💲","💳","💴","💵","💶","💷","💸","💹","💺","💻","💼","💽","💾","💿","📀","📁","📂","📃","📄","📅","📆","📇","📈","📉","📊","📋","📌","📍","📎","📏","📐","📑","📒","📓","📔","📕","📖","📗","📘","📙","📚","📛","📜","📝","📞","📟","📠","📡","📢","📣","📤","📥","📦","📧","📨","📩","📪","📫","📬","📭","📮","📯","📰","📱","📲","📳","📴","📵","📶","📷","📸","📹","📺","📻","📼","📽","📿","🔀","🔁","🔂","🔃","🔄","🔅","🔆","🔇","🔈","🔉","🔊","🔋","🔌","🔍","🔎","🔏","🔐","🔑","🔒","🔓","🔔","🔕","🔖","🔗","🔘","🔙","🔚","🔛","🔜","🔝","🔞","🔟","🔠","🔡","🔢","🔣","🔤","🔥","🔦","🔧","🔨","🔩","🔪","🔫","🔬","🔭","🔮","🔯","🔰","🔱","🔲","🔳","🔴","🔵","🔶","🔷","🔸","🔹","🔺","🔻","🔼","🔽","🕉","🕊","🕋","🕌","🕍","🕎","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","🕯","🕰","🕳","🕴🏻","🕴🏼","🕴🏽","🕴🏾","🕴🏿","🕴","🕵🏻♀️","🕵🏻♂️","🕵🏻","🕵🏼♀️","🕵🏼♂️","🕵🏼","🕵🏽♀️","🕵🏽♂️","🕵🏽","🕵🏾♀️","🕵🏾♂️","🕵🏾","🕵🏿♀️","🕵🏿♂️","🕵🏿","🕵️♀️","🕵️♂️","🕵","🕶","🕷","🕸","🕹","🕺🏻","🕺🏼","🕺🏽","🕺🏾","🕺🏿","🕺","🖇","🖊","🖋","🖌","🖍","🖐🏻","🖐🏼","🖐🏽","🖐🏾","🖐🏿","🖐","🖕🏻","🖕🏼","🖕🏽","🖕🏾","🖕🏿","🖕","🖖🏻","🖖🏼","🖖🏽","🖖🏾","🖖🏿","🖖","🖤","🖥","🖨","🖱","🖲","🖼","🗂","🗃","🗄","🗑","🗒","🗓","🗜","🗝","🗞","🗡","🗣","🗨","🗯","🗳","🗺","🗻","🗼","🗽","🗾","🗿","😀","😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😯","😰","😱","😲","😳","😴","😵","😶","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙅🏻♀️","🙅🏻♂️","🙅🏻","🙅🏼♀️","🙅🏼♂️","🙅🏼","🙅🏽♀️","🙅🏽♂️","🙅🏽","🙅🏾♀️","🙅🏾♂️","🙅🏾","🙅🏿♀️","🙅🏿♂️","🙅🏿","🙅♀️","🙅♂️","🙅","🙆🏻♀️","🙆🏻♂️","🙆🏻","🙆🏼♀️","🙆🏼♂️","🙆🏼","🙆🏽♀️","🙆🏽♂️","🙆🏽","🙆🏾♀️","🙆🏾♂️","🙆🏾","🙆🏿♀️","🙆🏿♂️","🙆🏿","🙆♀️","🙆♂️","🙆","🙇🏻♀️","🙇🏻♂️","🙇🏻","🙇🏼♀️","🙇🏼♂️","🙇🏼","🙇🏽♀️","🙇🏽♂️","🙇🏽","🙇🏾♀️","🙇🏾♂️","🙇🏾","🙇🏿♀️","🙇🏿♂️","🙇🏿","🙇♀️","🙇♂️","🙇","🙈","🙉","🙊","🙋🏻♀️","🙋🏻♂️","🙋🏻","🙋🏼♀️","🙋🏼♂️","🙋🏼","🙋🏽♀️","🙋🏽♂️","🙋🏽","🙋🏾♀️","🙋🏾♂️","🙋🏾","🙋🏿♀️","🙋🏿♂️","🙋🏿","🙋♀️","🙋♂️","🙋","🙌🏻","🙌🏼","🙌🏽","🙌🏾","🙌🏿","🙌","🙍🏻♀️","🙍🏻♂️","🙍🏻","🙍🏼♀️","🙍🏼♂️","🙍🏼","🙍🏽♀️","🙍🏽♂️","🙍🏽","🙍🏾♀️","🙍🏾♂️","🙍🏾","🙍🏿♀️","🙍🏿♂️","🙍🏿","🙍♀️","🙍♂️","🙍","🙎🏻♀️","🙎🏻♂️","🙎🏻","🙎🏼♀️","🙎🏼♂️","🙎🏼","🙎🏽♀️","🙎🏽♂️","🙎🏽","🙎🏾♀️","🙎🏾♂️","🙎🏾","🙎🏿♀️","🙎🏿♂️","🙎🏿","🙎♀️","🙎♂️","🙎","🙏🏻","🙏🏼","🙏🏽","🙏🏾","🙏🏿","🙏","🚀","🚁","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚋","🚌","🚍","🚎","🚏","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🚝","🚞","🚟","🚠","🚡","🚢","🚣🏻♀️","🚣🏻♂️","🚣🏻","🚣🏼♀️","🚣🏼♂️","🚣🏼","🚣🏽♀️","🚣🏽♂️","🚣🏽","🚣🏾♀️","🚣🏾♂️","🚣🏾","🚣🏿♀️","🚣🏿♂️","🚣🏿","🚣♀️","🚣♂️","🚣","🚤","🚥","🚦","🚧","🚨","🚩","🚪","🚫","🚬","🚭","🚮","🚯","🚰","🚱","🚲","🚳","🚴🏻♀️","🚴🏻♂️","🚴🏻","🚴🏼♀️","🚴🏼♂️","🚴🏼","🚴🏽♀️","🚴🏽♂️","🚴🏽","🚴🏾♀️","🚴🏾♂️","🚴🏾","🚴🏿♀️","🚴🏿♂️","🚴🏿","🚴♀️","🚴♂️","🚴","🚵🏻♀️","🚵🏻♂️","🚵🏻","🚵🏼♀️","🚵🏼♂️","🚵🏼","🚵🏽♀️","🚵🏽♂️","🚵🏽","🚵🏾♀️","🚵🏾♂️","🚵🏾","🚵🏿♀️","🚵🏿♂️","🚵🏿","🚵♀️","🚵♂️","🚵","🚶🏻♀️","🚶🏻♂️","🚶🏻","🚶🏼♀️","🚶🏼♂️","🚶🏼","🚶🏽♀️","🚶🏽♂️","🚶🏽","🚶🏾♀️","🚶🏾♂️","🚶🏾","🚶🏿♀️","🚶🏿♂️","🚶🏿","🚶♀️","🚶♂️","🚶","🚷","🚸","🚹","🚺","🚻","🚼","🚽","🚾","🚿","🛀🏻","🛀🏼","🛀🏽","🛀🏾","🛀🏿","🛀","🛁","🛂","🛃","🛄","🛅","🛋","🛌🏻","🛌🏼","🛌🏽","🛌🏾","🛌🏿","🛌","🛍","🛎","🛏","🛐","🛑","🛒","🛠","🛡","🛢","🛣","🛤","🛥","🛩","🛫","🛬","🛰","🛳","🛴","🛵","🛶","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤘🏻","🤘🏼","🤘🏽","🤘🏾","🤘🏿","🤘","🤙🏻","🤙🏼","🤙🏽","🤙🏾","🤙🏿","🤙","🤚🏻","🤚🏼","🤚🏽","🤚🏾","🤚🏿","🤚","🤛🏻","🤛🏼","🤛🏽","🤛🏾","🤛🏿","🤛","🤜🏻","🤜🏼","🤜🏽","🤜🏾","🤜🏿","🤜","🤝🏻","🤝🏼","🤝🏽","🤝🏾","🤝🏿","🤝","🤞🏻","🤞🏼","🤞🏽","🤞🏾","🤞🏿","🤞","🤠","🤡","🤢","🤣","🤤","🤥","🤦🏻♀️","🤦🏻♂️","🤦🏻","🤦🏼♀️","🤦🏼♂️","🤦🏼","🤦🏽♀️","🤦🏽♂️","🤦🏽","🤦🏾♀️","🤦🏾♂️","🤦🏾","🤦🏿♀️","🤦🏿♂️","🤦🏿","🤦♀️","🤦♂️","🤦","🤧","🤰🏻","🤰🏼","🤰🏽","🤰🏾","🤰🏿","🤰","🤳🏻","🤳🏼","🤳🏽","🤳🏾","🤳🏿","🤳","🤴🏻","🤴🏼","🤴🏽","🤴🏾","🤴🏿","🤴","🤵🏻","🤵🏼","🤵🏽","🤵🏾","🤵🏿","🤵","🤶🏻","🤶🏼","🤶🏽","🤶🏾","🤶🏿","🤶","🤷🏻♀️","🤷🏻♂️","🤷🏻","🤷🏼♀️","🤷🏼♂️","🤷🏼","🤷🏽♀️","🤷🏽♂️","🤷🏽","🤷🏾♀️","🤷🏾♂️","🤷🏾","🤷🏿♀️","🤷🏿♂️","🤷🏿","🤷♀️","🤷♂️","🤷","🤸🏻♀️","🤸🏻♂️","🤸🏻","🤸🏼♀️","🤸🏼♂️","🤸🏼","🤸🏽♀️","🤸🏽♂️","🤸🏽","🤸🏾♀️","🤸🏾♂️","🤸🏾","🤸🏿♀️","🤸🏿♂️","🤸🏿","🤸♀️","🤸♂️","🤸","🤹🏻♀️","🤹🏻♂️","🤹🏻","🤹🏼♀️","🤹🏼♂️","🤹🏼","🤹🏽♀️","🤹🏽♂️","🤹🏽","🤹🏾♀️","🤹🏾♂️","🤹🏾","🤹🏿♀️","🤹🏿♂️","🤹🏿","🤹♀️","🤹♂️","🤹","🤺","🤼🏻♀️","🤼🏻♂️","🤼🏻","🤼🏼♀️","🤼🏼♂️","🤼🏼","🤼🏽♀️","🤼🏽♂️","🤼🏽","🤼🏾♀️","🤼🏾♂️","🤼🏾","🤼🏿♀️","🤼🏿♂️","🤼🏿","🤼♀️","🤼♂️","🤼","🤽🏻♀️","🤽🏻♂️","🤽🏻","🤽🏼♀️","🤽🏼♂️","🤽🏼","🤽🏽♀️","🤽🏽♂️","🤽🏽","🤽🏾♀️","🤽🏾♂️","🤽🏾","🤽🏿♀️","🤽🏿♂️","🤽🏿","🤽♀️","🤽♂️","🤽","🤾🏻♀️","🤾🏻♂️","🤾🏻","🤾🏼♀️","🤾🏼♂️","🤾🏼","🤾🏽♀️","🤾🏽♂️","🤾🏽","🤾🏾♀️","🤾🏾♂️","🤾🏾","🤾🏿♀️","🤾🏿♂️","🤾🏿","🤾♀️","🤾♂️","🤾","🥀","🥁","🥂","🥃","🥄","🥅","🥇","🥈","🥉","🥊","🥋","🥐","🥑","🥒","🥓","🥔","🥕","🥖","🥗","🥘","🥙","🥚","🥛","🥜","🥝","🥞","🦀","🦁","🦂","🦃","🦄","🦅","🦆","🦇","🦈","🦉","🦊","🦋","🦌","🦍","🦎","🦏","🦐","🦑","🧀","‼","⁉","™","ℹ","↔","↕","↖","↗","↘","↙","↩","↪","#⃣","⌚","⌛","⌨","⏏","⏩","⏪","⏫","⏬","⏭","⏮","⏯","⏰","⏱","⏲","⏳","⏸","⏹","⏺","Ⓜ","▪","▫","▶","◀","◻","◼","◽","◾","☀","☁","☂","☃","☄","☎","☑","☔","☕","☘","☝🏻","☝🏼","☝🏽","☝🏾","☝🏿","☝","☠","☢","☣","☦","☪","☮","☯","☸","☹","☺","♀","♂","♈","♉","♊","♋","♌","♍","♎","♏","♐","♑","♒","♓","♠","♣","♥","♦","♨","♻","♿","⚒","⚓","⚔","⚕","⚖","⚗","⚙","⚛","⚜","⚠","⚡","⚪","⚫","⚰","⚱","⚽","⚾","⛄","⛅","⛈","⛎","⛏","⛑","⛓","⛔","⛩","⛪","⛰","⛱","⛲","⛳","⛴","⛵","⛷🏻","⛷🏼","⛷🏽","⛷🏾","⛷🏿","⛷","⛸","⛹🏻♀️","⛹🏻♂️","⛹🏻","⛹🏼♀️","⛹🏼♂️","⛹🏼","⛹🏽♀️","⛹🏽♂️","⛹🏽","⛹🏾♀️","⛹🏾♂️","⛹🏾","⛹🏿♀️","⛹🏿♂️","⛹🏿","⛹️♀️","⛹️♂️","⛹","⛺","⛽","✂","✅","✈","✉","✊🏻","✊🏼","✊🏽","✊🏾","✊🏿","✊","✋🏻","✋🏼","✋🏽","✋🏾","✋🏿","✋","✌🏻","✌🏼","✌🏽","✌🏾","✌🏿","✌","✍🏻","✍🏼","✍🏽","✍🏾","✍🏿","✍","✏","✒","✔","✖","✝","✡","✨","✳","✴","❄","❇","❌","❎","❓","❔","❕","❗","❣","❤","➕","➖","➗","➡","➰","➿","⤴","⤵","*⃣","⬅","⬆","⬇","⬛","⬜","⭐","⭕","0⃣","〰","〽","1⃣","2⃣","㊗","㊙","3⃣","4⃣","5⃣","6⃣","7⃣","8⃣","9⃣","©","®",""]},609:function(e,t,r){"use strict";var i=r(150);var n=r(203);e.exports={activityIndicator:function(e,t,r){if(e.spun==null)return;return i(t,e.spun)},progressbar:function(e,t,r){if(e.completed==null)return;return n(t,r,e.completed)}}},620:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var i={sep:"/"};try{i=r(589)}catch(e){}var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(348);var a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var u="[^/]";var o=u+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var f="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var c=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,i,n){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach(function(e){r[e]=t[e]});Object.keys(e).forEach(function(t){r[t]=e[t]});return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,i,n){return t.minimatch(r,i,ext(e,n))};r.Minimatch=function Minimatch(r,i){return new t.Minimatch(r,ext(e,i))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(c)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,s=e.length;n<s&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return s(e)}Minimatch.prototype.parse=parse;var p={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return n;if(e==="")return"";var i="";var s=!!r.nocase;var l=false;var f=[];var c=[];var d;var v=false;var y=-1;var g=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(d){switch(d){case"*":i+=o;s=true;break;case"?":i+=u;s=true;break;default:i+="\\"+d;break}_.debug("clearStateChar %j %j",d,i);d=false}}for(var m=0,E=e.length,D;m<E&&(D=e.charAt(m));m++){this.debug("%s\t%s %s %j",e,m,i,D);if(l&&h[D]){i+="\\"+D;l=false;continue}switch(D){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,m,i,D);if(v){this.debug(" in class");if(D==="!"&&m===g+1)D="^";i+=D;continue}_.debug("call clearStateChar %j",d);clearStateChar();d=D;if(r.noext)clearStateChar();continue;case"(":if(v){i+="(";continue}if(!d){i+="\\(";continue}f.push({type:d,start:m-1,reStart:i.length,open:a[d].open,close:a[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(v||!f.length){i+="\\)";continue}clearStateChar();s=true;var w=f.pop();i+=w.close;if(w.type==="!"){c.push(w)}w.reEnd=i.length;continue;case"|":if(v||!f.length||l){i+="\\|";l=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(v){i+="\\"+D;continue}v=true;g=m;y=i.length;i+=D;continue;case"]":if(m===g+1||!v){i+="\\"+D;l=false;continue}if(v){var A=e.substring(g+1,m);try{RegExp("["+A+"]")}catch(e){var C=this.parse(A,p);i=i.substr(0,y)+"\\["+C[0]+"\\]";s=s||C[1];v=false;continue}}s=true;v=false;i+=D;continue;default:clearStateChar();if(l){l=false}else if(h[D]&&!(D==="^"&&v)){i+="\\"}i+=D}}if(v){A=e.substr(g+1);C=this.parse(A,p);i=i.substr(0,y)+"\\["+C[0];s=s||C[1]}for(w=f.pop();w;w=f.pop()){var x=i.slice(w.reStart+w.open.length);this.debug("setting tail",i,w);x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",x,x,w,i);var S=w.type==="*"?o:w.type==="?"?u:"\\"+w.type;s=true;i=i.slice(0,w.reStart)+S+"\\("+x}clearStateChar();if(l){i+="\\\\"}var k=false;switch(i.charAt(0)){case".":case"[":case"(":k=true}for(var F=c.length-1;F>-1;F--){var R=c[F];var T=i.slice(0,R.reStart);var O=i.slice(R.reStart,R.reEnd-8);var I=i.slice(R.reEnd-8,R.reEnd);var B=i.slice(R.reEnd);I+=B;var N=T.split("(").length-1;var L=B;for(m=0;m<N;m++){L=L.replace(/\)[+*?]?/,"")}B=L;var P="";if(B===""&&t!==p){P="$"}var j=T+O+B+P+I;i=j}if(i!==""&&s){i="(?=.)"+i}if(k){i=b+i}if(t===p){return[i,s]}if(!s){return globUnescape(e)}var q=r.nocase?"i":"";try{var $=new RegExp("^"+i+"$",q)}catch(e){return new RegExp("$.")}$._glob=e;$._src=i;return $}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?o:t.dot?l:f;var i=t.nocase?"i":"";var s=e.map(function(e){return e.map(function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var i=new Minimatch(t,r);e=e.filter(function(e){return i.match(e)});if(i.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(c);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s;var a;for(a=e.length-1;a>=0;a--){s=e[a];if(s)break}for(a=0;a<n.length;a++){var u=n[a];var o=e;if(r.matchBase&&u.length===1){o=[s]}var l=this.matchOne(o,u,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,a=0,u=e.length,o=t.length;s<u&&a<o;s++,a++){this.debug("matchOne loop");var l=t[a];var f=e[s];this.debug(t,l,f);if(l===false)return false;if(l===n){this.debug("GLOBSTAR",[t,l,f]);var h=s;var c=a+1;if(c===o){this.debug("** at the end");for(;s<u;s++){if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return false}return true}while(h<u){var p=e[h];this.debug("\nglobstar while",e,h,t,c,p);if(this.matchOne(e.slice(h),t.slice(c),r)){this.debug("globstar found match!",h,u,p);return true}else{if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,t,c);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,c);if(h===u)return true}return false}var d;if(typeof l==="string"){if(i.nocase){d=f.toLowerCase()===l.toLowerCase()}else{d=f===l}this.debug("string match",l,f,d)}else{d=f.match(l);this.debug("pattern match",l,f,d)}if(!d)return false}if(s===u&&a===o){return true}else if(s===u){return r}else if(a===o){var v=s===u-1&&e[s]==="";return v}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},630:function(e,t,r){"use strict";var i=r(431).platform();var n=r(204).spawnSync;var s=r(66).readdirSync;var a="glibc";var u="musl";var o={encoding:"utf8",env:process.env};if(!n){n=function(){return{status:126,stdout:"",stderr:""}}}function contains(e){return function(t){return t.indexOf(e)!==-1}}function versionFromMuslLdd(e){return e.split(/[\r\n]+/)[1].trim().split(/\s/)[1]}function safeReaddirSync(e){try{return s(e)}catch(e){}return[]}var l="";var f="";var h="";if(i==="linux"){var c=n("getconf",["GNU_LIBC_VERSION"],o);if(c.status===0){l=a;f=c.stdout.trim().split(" ")[1];h="getconf"}else{var p=n("ldd",["--version"],o);if(p.status===0&&p.stdout.indexOf(u)!==-1){l=u;f=versionFromMuslLdd(p.stdout);h="ldd"}else if(p.status===1&&p.stderr.indexOf(u)!==-1){l=u;f=versionFromMuslLdd(p.stderr);h="ldd"}else{var d=safeReaddirSync("/lib");if(d.some(contains("-linux-gnu"))){l=a;h="filesystem"}else if(d.some(contains("libc.musl-"))){l=u;h="filesystem"}else if(d.some(contains("ld-musl-"))){l=u;h="filesystem"}else{var v=safeReaddirSync("/usr/sbin");if(v.some(contains("glibc"))){l=a;h="filesystem"}}}}}var y=l!==""&&l!==a;e.exports={GLIBC:a,MUSL:u,family:l,version:f,method:h,isNonGlibcLinux:y}},631:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},645:function(e,t,r){"use strict";var i=r(354);var n=r(765);var s=r(814);var a=e.exports=function(e,t,r){if(!r)r=80;s("OAN",[e,t,r]);this.showing=false;this.theme=e;this.width=r;this.template=t};a.prototype={};a.prototype.setTheme=function(e){s("O",[e]);this.theme=e};a.prototype.setTemplate=function(e){s("A",[e]);this.template=e};a.prototype.setWidth=function(e){s("N",[e]);this.width=e};a.prototype.hide=function(){return i.gotoSOL()+i.eraseLine()};a.prototype.hideCursor=i.hideCursor;a.prototype.showCursor=i.showCursor;a.prototype.show=function(e){var t=Object.create(this.theme);for(var r in e){t[r]=e[r]}return n(this.width,this.template,t).trim()+i.color("reset")+i.eraseLine()+i.gotoSOL()}},649:function(e,t,r){"use strict";var i=r(22);var n=r(656);e.exports=wideTruncate;function wideTruncate(e,t){if(i(e)===0)return e;if(t<=0)return"";if(i(e)<=t)return e;var r=n(e);var s=e.length+r.length;var a=e.slice(0,t+s);while(i(a)>t){a=a.slice(0,-1)}return a}},656:function(e,t,r){"use strict";var i=r(446)();e.exports=function(e){return typeof e==="string"?e.replace(i,""):e}},663:function(e,t,r){"use strict";var i=r(485).EventEmitter;var n=r(64);var s=0;var a=e.exports=function(e){i.call(this);this.id=++s;this.name=e};n.inherits(a,i)},668:function(e,t,r){"use strict";const i=r(140);e.exports=function(e){const t=e.acorn||r(996);const n=t.tokTypes;e=i(e);return class extends e{_maybeParseFieldValue(e){if(this.eat(n.eq)){const t=this._inFieldValue;this._inFieldValue=true;e.value=this.parseExpression();this._inFieldValue=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==n.name||this.type==this.privateNameToken||this.type==n.bracketL||this.type==n.string)){const e=this._branch();if(e.type==n.bracketL){let t=0;do{if(e.eat(n.bracketL))++t;else if(e.eat(n.bracketR))--t;else e.next()}while(t>0)}else e.next();if(e.type==n.eq||e.canInsertSemicolon()||e.type==n.semi){const e=this.startNode();if(this.type==this.privateNameToken){this.parsePrivateClassElementName(e)}else{this.parsePropertyName(e)}if(e.key.type==="Identifier"&&e.key.name==="constructor"||e.key.type==="Literal"&&e.key.value==="constructor"){this.raise(e.key.start,"Classes may not have a field called constructor")}this.enterScope(64|2|1);this._maybeParseFieldValue(e);this.exitScope();this.finishNode(e,"FieldDefinition");this.semicolon();return e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const r=super.parseIdent(e,t);if(this._inFieldValue&&r.name=="arguments")this.raise(r.start,"A class field initializer may not contain arguments");return r}}}},669:function(e,t,r){"use strict";const i=r(106);const n=r(146);const s=r(543);const a=r(300);const u=r(692);const o=r(72);const l=r(113);const f=r(768);const h=r(685);const c=r(337);t.getOptions=i;t.parseQuery=n;t.stringifyRequest=s;t.getRemainingRequest=a;t.getCurrentRequest=u;t.isUrlRequest=o;t.urlToRequest=l;t.parseString=f;t.getHashDigest=h;t.interpolateName=c},683:function(e,t){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},684:function(e,t,r){"use strict";const i=r(743);const n=r(606);e.exports=(e=>{if(typeof e!=="string"||e.length===0){return 0}e=i(e);let t=0;for(let r=0;r<e.length;r++){const i=e.codePointAt(r);if(i<=31||i>=127&&i<=159){continue}if(i>=768&&i<=879){continue}if(i>65535){r++}t+=n(i)?2:1}return t})},685:function(e,t,r){"use strict";const i={26:"abcdefghijklmnopqrstuvwxyz",32:"123456789abcdefghjkmnpqrstuvwxyz",36:"0123456789abcdefghijklmnopqrstuvwxyz",49:"abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",52:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"};function encodeBufferToBase(e,t){const n=i[t];if(!n){throw new Error("Unknown encoding base"+t)}const s=e.length;const a=r(480);a.RM=a.DP=0;let u=new a(0);for(let t=s-1;t>=0;t--){u=u.times(256).plus(e[t])}let o="";while(u.gt(0)){o=n[u.mod(t)]+o;u=u.div(t)}a.DP=20;a.RM=1;return o}function getHashDigest(e,t,i,n){t=t||"md5";n=n||9999;const s=r(298).createHash(t);s.update(e);if(i==="base26"||i==="base32"||i==="base36"||i==="base49"||i==="base52"||i==="base58"||i==="base62"||i==="base64"){return encodeBufferToBase(s.digest(),i.substr(4)).substr(0,n)}else{return s.digest(i||"hex").substr(0,n)}}e.exports=getHashDigest},688:function(e){e.exports=__webpack_require__(413)},692:function(e){"use strict";function getCurrentRequest(e){if(e.currentRequest){return e.currentRequest}const t=e.loaders.slice(e.loaderIndex).map(e=>e.request).concat([e.resource]);return t.join("!")}e.exports=getCurrentRequest},708:function(e,t,r){const{walk:i}=r(825);function handleWrappers(e,t,r){let n=false;let s;if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="UnaryExpression"&&e.body[0].expression.operator==="!"&&e.body[0].expression.argument.type==="CallExpression"&&e.body[0].expression.argument.callee.type==="FunctionExpression"&&e.body[0].expression.argument.arguments.length===1)s=e.body[0].expression.argument;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="CallExpression"&&e.body[0].expression.callee.type==="FunctionExpression"&&e.body[0].expression.arguments.length===1)s=e.body[0].expression;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="AssgnmentExpression"&&e.body[0].expression.left.type==="MemberExpression"&&e.body[0].expression.left.object.type==="Identifier"&&e.body[0].expression.left.object.name==="module"&&e.body[0].expression.left.property.type==="Identifier"&&e.body[0].expression.left.property.name==="exports"&&e.body[0].expression.right.type==="CallExpression"&&e.body[0].expression.right.callee.type==="FunctionExpression"&&e.body[0].expression.right.arguments.length===1)s=e.body[0].expression.right;if(s){if(s.arguments[0].type==="ConditionalExpression"&&s.arguments[0].test.type==="LogicalExpression"&&s.arguments[0].test.operator==="&&"&&s.arguments[0].test.left.type==="BinaryExpression"&&s.arguments[0].test.left.operator==="==="&&s.arguments[0].test.left.left.type==="UnaryExpression"&&s.arguments[0].test.left.left.operator==="typeof"&&s.arguments[0].test.left.left.argument.name==="define"&&s.arguments[0].test.left.right.type==="Literal"&&s.arguments[0].test.left.right.value==="function"&&s.arguments[0].test.right.type==="MemberExpression"&&s.arguments[0].test.right.object.type==="Identifier"&&s.arguments[0].test.right.property.type==="Identifier"&&s.arguments[0].test.right.property.name==="amd"&&s.arguments[0].test.right.computed===false&&s.arguments[0].alternate.type==="FunctionExpression"&&s.arguments[0].alternate.params.length===1&&s.arguments[0].alternate.params[0].type==="Identifier"&&s.arguments[0].alternate.body.body.length===1&&s.arguments[0].alternate.body.body[0].type==="ExpressionStatement"&&s.arguments[0].alternate.body.body[0].expression.type==="AssignmentExpression"&&s.arguments[0].alternate.body.body[0].expression.left.type==="MemberExpression"&&s.arguments[0].alternate.body.body[0].expression.left.object.type==="Identifier"&&s.arguments[0].alternate.body.body[0].expression.left.object.name==="module"&&s.arguments[0].alternate.body.body[0].expression.left.property.type==="Identifier"&&s.arguments[0].alternate.body.body[0].expression.left.property.name==="exports"&&s.arguments[0].alternate.body.body[0].expression.left.computed===false&&s.arguments[0].alternate.body.body[0].expression.right.type==="CallExpression"&&s.arguments[0].alternate.body.body[0].expression.right.callee.type==="Identifier"&&s.arguments[0].alternate.body.body[0].expression.right.callee.name===s.arguments[0].alternate.params[0].name&&s.arguments[0].alternate.body.body[0].expression.right.arguments.length===1&&s.arguments[0].alternate.body.body[0].expression.right.arguments[0].type==="Identifier"&&s.arguments[0].alternate.body.body[0].expression.right.arguments[0].name==="require"){let e=s.callee.body.body;if(e[0].type==="ExpressionStatement"&&e[0].expression.type==="Literal"&&e[0].expression.value==="use strict"){e=e.slice(1)}if(e.length===1&&e[0].type==="ExpressionStatement"&&e[0].expression.type==="CallExpression"&&e[0].expression.callee.type==="Identifier"&&e[0].expression.callee.name===s.arguments[0].test.right.object.name&&e[0].expression.arguments.length===1&&e[0].expression.arguments[0].type==="FunctionExpression"&&e[0].expression.arguments[0].params.length===1&&e[0].expression.arguments[0].params[0].type==="Identifier"&&e[0].expression.arguments[0].params[0].name==="require"){r.remove(e[0].expression.arguments[0].params[0].start,e[0].expression.arguments[0].params[0].end);n=true}}else if(s.arguments[0].type==="FunctionExpression"&&s.arguments[0].params.length===0&&(s.arguments[0].body.body.length===1||s.arguments[0].body.body.length===2&&s.arguments[0].body.body[0].type==="VariableDeclaration"&&s.arguments[0].body.body[0].declarations.length===3&&s.arguments[0].body.body[0].declarations.every(e=>e.init===null&&e.id.type==="Identifier"))&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].type==="ReturnStatement"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.type==="CallExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.type==="CallExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.arguments.length&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.arguments.every(e=>e.type==="Literal"&&typeof e.value==="number")&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.callee.type==="CallExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.callee.callee.type==="FunctionExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.callee.arguments.length===0&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.arguments.length===3&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.arguments[0].type==="ObjectExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.arguments[1].type==="ObjectExpression"&&s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.arguments[2].type==="ArrayExpression"){const e=s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.arguments[0].properties;const t=s.arguments[0].body.body[s.arguments[0].body.body.length-1].argument.callee.callee.callee.body.body[0];let i;if(t.type==="FunctionDeclaration")i=t.body;else if(t.type==="ReturnStatement")i=t.argument.body;if(i){const e=i.body[0].body.body[0].consequent.body[0].consequent.body[0].declarations[0].init;const t=i.body[1].init.declarations[0].init;e.right.name="_";t.right.name="_";r.overwrite(e.start,e.end,"__non_webpack_require__");r.overwrite(t.start,t.end,"__non_webpack_require__");n=true}const a={};if(e.every(e=>{if(e.type!=="Property"||e.computed!==false||e.key.type!=="Literal"||typeof e.key.value!=="number"||e.value.type!=="ArrayExpression"||e.value.elements.length!==2||e.value.elements[0].type!=="FunctionExpression"||e.value.elements[1].type!=="ObjectExpression")return false;const t=e.value.elements[1].properties;for(const e of t){if(e.type!=="Property"||e.value.type!=="Identifier"&&e.value.type!=="Literal"||e.key.type!=="Literal"||typeof e.key.value!=="string"||e.computed)return false;if(e.value.type==="Identifier"&&e.value.name==="undefined")a[e.key.value]=true}return true})){const e=Object.keys(a);if(e.length){const t=s.arguments[0].body.body[1].argument.callee.arguments[1];const i=e.map(e=>`"${e}": { exports: require("${e}") }`).join(",\n ");r.appendRight(t.end-1,i);n=true}}}else if(s.arguments[0].type==="FunctionExpression"&&s.arguments[0].params.length===2&&s.arguments[0].params[0].type==="Identifier"&&s.arguments[0].params[1].type==="Identifier"&&s.callee.body.body.length===1){const e=s.callee.body.body[0];if(e.type==="IfStatement"&&e.test.type==="LogicalExpression"&&e.test.operator==="&&"&&e.test.left.type==="BinaryExpression"&&e.test.left.left.type==="UnaryExpression"&&e.test.left.left.operator==="typeof"&&e.test.left.left.argument.type==="Identifier"&&e.test.left.left.argument.name==="module"&&e.test.left.right.type==="Literal"&&e.test.left.right.value==="object"&&e.test.right.type==="BinaryExpression"&&e.test.right.left.type==="UnaryExpression"&&e.test.right.left.operator==="typeof"&&e.test.right.left.argument.type==="MemberExpression"&&e.test.right.left.argument.object.type==="Identifier"&&e.test.right.left.argument.object.name==="module"&&e.test.right.left.argument.property.type==="Identifier"&&e.test.right.left.argument.property.name==="exports"&&e.test.right.right.type==="Literal"&&e.test.right.right.value==="object"&&e.consequent.type==="BlockStatement"&&e.consequent.body.length>0){let t;if(e.consequent.body[0].type==="VariableDeclaration"&&e.consequent.body[0].declarations[0].init&&e.consequent.body[0].declarations[0].init.type==="CallExpression")t=e.consequent.body[0].declarations[0].init;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="CallExpression")t=e.consequent.body[0].expression;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="AssignmentExpression"&&e.consequent.body[0].expression.right.type==="CallExpression")t=e.consequent.body[0].expression.right;if(t&&t.callee.type==="Identifier"&&t.callee.name===s.callee.params[0].name&&t.arguments.length===2&&t.arguments[0].type==="Identifier"&&t.arguments[0].name==="require"&&t.arguments[1].type==="Identifier"&&t.arguments[1].name==="exports"){r.remove(s.arguments[0].params[0].start,s.arguments[0].params[s.arguments[0].params.length-1].end);n=true}}}else if(s.callee.type==="FunctionExpression"&&s.callee.params.length===1&&s.callee.body.body.length>2&&s.callee.body.body[0].type==="VariableDeclaration"&&s.callee.body.body[0].declarations.length===1&&s.callee.body.body[0].declarations[0].type==="VariableDeclarator"&&s.callee.body.body[0].declarations[0].id.type==="Identifier"&&s.callee.body.body[0].declarations[0].init.type==="ObjectExpression"&&s.callee.body.body[0].declarations[0].init.properties.length===0&&s.callee.body.body[1].type==="FunctionDeclaration"&&s.callee.body.body[1].params.length===1&&s.callee.body.body[1].body.body.length===3&&s.arguments[0].type==="ArrayExpression"&&s.arguments[0].elements.length>0&&s.arguments[0].elements.every(e=>e.type==="FunctionExpression")){const e=new Map;for(let t=0;t<s.arguments[0].elements.length;t++){const r=s.arguments[0].elements[t];if(r.body.body.length===1&&r.body.body[0].type==="ExpressionStatement"&&r.body.body[0].expression.type==="AssignmentExpression"&&r.body.body[0].expression.operator==="="&&r.body.body[0].expression.left.type==="MemberExpression"&&r.body.body[0].expression.left.object.type==="Identifier"&&r.body.body[0].expression.left.object.name===r.params[0].name&&r.body.body[0].expression.left.property.type==="Identifier"&&r.body.body[0].expression.left.property.name==="exports"&&r.body.body[0].expression.right.type==="CallExpression"&&r.body.body[0].expression.right.callee.type==="Identifier"&&r.body.body[0].expression.right.callee.name==="require"&&r.body.body[0].expression.right.arguments.length===1&&r.body.body[0].expression.right.arguments[0].type==="Literal"){e.set(t,r.body.body[0].expression.right.arguments[0].value)}}for(let t=0;t<s.arguments[0].elements.length;t++){const a=s.arguments[0].elements[t];if(a.params.length===3&&a.params[2].type==="Identifier"){i(a.body.body,{enter(t,i){if(t.type==="FunctionExpression"||t.type==="FunctionDeclaration"||t.type==="ArrowFunctionExpression"||t.type==="BlockStatement"||t.type==="TryStatement"){if(i)return this.skip()}if(t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name===a.params[2].name&&t.arguments.length===1&&t.arguments[0].type==="Literal"){const s=e.get(t.arguments[0].value);if(s){const e={type:"CallExpression",callee:{type:"Identifier",name:"require"},arguments:[{type:"Literal",value:s}]};r.overwrite(t.start,t.end,`require(${JSON.stringify(s)})`);n=true;if(i.right===t)i.right=e;else if(i.left===t)i.left=e;else if(i.object===t)i.object=e;else if(i.callee===t)i.callee=e;else if(i.arguments&&i.arguments.some(e=>e===t))i.arguments=i.arguments.map(r=>r===t?e:r);else if(i.init===t)i.init=e}}}})}}}}return{ast:e,scope:t,transformed:n}}e.exports=handleWrappers},714:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function inherits(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}},722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(287);var n=_interopRequireDefault(i);var s=r(809);var a=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default={parse:n.default,stringify:a.default};e.exports=t["default"]},735:function(e){"use strict";e.exports=process},737:function(e,t,r){"use strict";var i=r(645);var n=r(873);var s=r(513);var a=r(353);var u=r(254);var o=r(314);var l=r(735);var f=r(998);e.exports=Gauge;function callWith(e,t){return function(){return t.call(e)}}function Gauge(e,t){var r,n;if(e&&e.write){n=e;r=t||{}}else if(t&&t.write){n=t;r=e||{}}else{n=l.stderr;r=e||t||{}}this._status={spun:0,section:"",subsection:""};this._paused=false;this._disabled=true;this._showing=false;this._onScreen=false;this._needsRedraw=false;this._hideCursor=r.hideCursor==null?true:r.hideCursor;this._fixedFramerate=r.fixedFramerate==null?!/^v0\.8\./.test(l.version):r.fixedFramerate;this._lastUpdateAt=null;this._updateInterval=r.updateInterval==null?50:r.updateInterval;this._themes=r.themes||u;this._theme=r.theme;var s=this._computeTheme(r.theme);var a=r.template||[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",kerning:1,default:""},{type:"subsection",kerning:1,default:""}];this.setWriteTo(n,r.tty);var o=r.Plumbing||i;this._gauge=new o(s,a,this.getWidth());this._$$doRedraw=callWith(this,this._doRedraw);this._$$handleSizeChange=callWith(this,this._handleSizeChange);this._cleanupOnExit=r.cleanupOnExit==null||r.cleanupOnExit;this._removeOnExit=null;if(r.enabled||r.enabled==null&&this._tty&&this._tty.isTTY){this.enable()}else{this.disable()}}Gauge.prototype={};Gauge.prototype.isEnabled=function(){return!this._disabled};Gauge.prototype.setTemplate=function(e){this._gauge.setTemplate(e);if(this._showing)this._requestRedraw()};Gauge.prototype._computeTheme=function(e){if(!e)e={};if(typeof e==="string"){e=this._themes.getTheme(e)}else if(e&&(Object.keys(e).length===0||e.hasUnicode!=null||e.hasColor!=null)){var t=e.hasUnicode==null?n():e.hasUnicode;var r=e.hasColor==null?s:e.hasColor;e=this._themes.getDefault({hasUnicode:t,hasColor:r,platform:e.platform})}return e};Gauge.prototype.setThemeset=function(e){this._themes=e;this.setTheme(this._theme)};Gauge.prototype.setTheme=function(e){this._gauge.setTheme(this._computeTheme(e));if(this._showing)this._requestRedraw();this._theme=e};Gauge.prototype._requestRedraw=function(){this._needsRedraw=true;if(!this._fixedFramerate)this._doRedraw()};Gauge.prototype.getWidth=function(){return(this._tty&&this._tty.columns||80)-1};Gauge.prototype.setWriteTo=function(e,t){var r=!this._disabled;if(r)this.disable();this._writeTo=e;this._tty=t||e===l.stderr&&l.stdout.isTTY&&l.stdout||e.isTTY&&e||this._tty;if(this._gauge)this._gauge.setWidth(this.getWidth());if(r)this.enable()};Gauge.prototype.enable=function(){if(!this._disabled)return;this._disabled=false;if(this._tty)this._enableEvents();if(this._showing)this.show()};Gauge.prototype.disable=function(){if(this._disabled)return;if(this._showing){this._lastUpdateAt=null;this._showing=false;this._doRedraw();this._showing=true}this._disabled=true;if(this._tty)this._disableEvents()};Gauge.prototype._enableEvents=function(){if(this._cleanupOnExit){this._removeOnExit=a(callWith(this,this.disable))}this._tty.on("resize",this._$$handleSizeChange);if(this._fixedFramerate){this.redrawTracker=o(this._$$doRedraw,this._updateInterval);if(this.redrawTracker.unref)this.redrawTracker.unref()}};Gauge.prototype._disableEvents=function(){this._tty.removeListener("resize",this._$$handleSizeChange);if(this._fixedFramerate)clearInterval(this.redrawTracker);if(this._removeOnExit)this._removeOnExit()};Gauge.prototype.hide=function(e){if(this._disabled)return e&&l.nextTick(e);if(!this._showing)return e&&l.nextTick(e);this._showing=false;this._doRedraw();e&&f(e)};Gauge.prototype.show=function(e,t){this._showing=true;if(typeof e==="string"){this._status.section=e}else if(typeof e==="object"){var r=Object.keys(e);for(var i=0;i<r.length;++i){var n=r[i];this._status[n]=e[n]}}if(t!=null)this._status.completed=t;if(this._disabled)return;this._requestRedraw()};Gauge.prototype.pulse=function(e){this._status.subsection=e||"";this._status.spun++;if(this._disabled)return;if(!this._showing)return;this._requestRedraw()};Gauge.prototype._handleSizeChange=function(){this._gauge.setWidth(this._tty.columns-1);this._requestRedraw()};Gauge.prototype._doRedraw=function(){if(this._disabled||this._paused)return;if(!this._fixedFramerate){var e=Date.now();if(this._lastUpdateAt&&e-this._lastUpdateAt<this._updateInterval)return;this._lastUpdateAt=e}if(!this._showing&&this._onScreen){this._onScreen=false;var t=this._gauge.hide();if(this._hideCursor){t+=this._gauge.showCursor()}return this._writeTo.write(t)}if(!this._showing&&!this._onScreen)return;if(this._showing&&!this._onScreen){this._onScreen=true;this._needsRedraw=true;if(this._hideCursor){this._writeTo.write(this._gauge.hideCursor())}}if(!this._needsRedraw)return;if(!this._writeTo.write(this._gauge.show(this._status))){this._paused=true;this._writeTo.on("drain",callWith(this,function(){this._paused=false;this._doRedraw()}))}}},743:function(e,t,r){"use strict";const i=r(500);e.exports=(e=>typeof e==="string"?e.replace(i(),""):e)},745:function(e){e.exports=function(e){[process.stdout,process.stderr].forEach(function(t){if(t._handle&&t.isTTY&&typeof t._handle.setBlocking==="function"){t._handle.setBlocking(e)}})}},755:function(e,t,r){const{existsSync:i}=r(66);const{dirname:n}=r(589);e.exports=function getPackageScope(e){let t=n(e);do{e=t;t=n(e);if(i(e+"/package.json"))return e}while(e!==t)}},764:function(e){e.exports=function(e,t){return t||{}}},765:function(e,t,r){"use strict";var i=r(982);var n=r(814);var s=r(156);var a=r(649);var u=r(205);var o=r(433);function renderValueWithValues(e){return function(t){return renderValue(t,e)}}var l=e.exports=function(e,t,r){var n=prepareItems(e,t,r);var s=n.map(renderValueWithValues(r)).join("");return i.left(a(s,e),e)};function preType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"pre"+t}function postType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"post"+t}function hasPreOrPost(e,t){if(!e.type)return;return t[preType(e)]||t[postType(e)]}function generatePreAndPost(e,t){var r=s({},e);var i=Object.create(t);var n=[];var a=preType(r);var u=postType(r);if(i[a]){n.push({value:i[a]});i[a]=null}r.minLength=null;r.length=null;r.maxLength=null;n.push(r);i[r.type]=i[r.type];if(i[u]){n.push({value:i[u]});i[u]=null}return function(e,t,r){return l(r,n,i)}}function prepareItems(e,t,r){function cloneAndObjectify(t,i,n){var s=new o(t,e);var a=s.type;if(s.value==null){if(!(a in r)){if(s.default==null){throw new u.MissingTemplateValue(s,r)}else{s.value=s.default}}else{s.value=r[a]}}if(s.value==null||s.value==="")return null;s.index=i;s.first=i===0;s.last=i===n.length-1;if(hasPreOrPost(s,r))s.value=generatePreAndPost(s,r);return s}var i=t.map(cloneAndObjectify).filter(function(e){return e!=null});var n=0;var s=e;var a=i.length;function consumeSpace(e){if(e>s)e=s;n+=e;s-=e}function finishSizing(e,t){if(e.finished)throw new u.Internal("Tried to finish template item that was already finished");if(t===Infinity)throw new u.Internal("Length of template item cannot be infinity");if(t!=null)e.length=t;e.minLength=null;e.maxLength=null;--a;e.finished=true;if(e.length==null)e.length=e.getBaseLength();if(e.length==null)throw new u.Internal("Finished template items must have a length");consumeSpace(e.getLength())}i.forEach(function(e){if(!e.kerning)return;var t=e.first?0:i[e.index-1].padRight;if(!e.first&&t<e.kerning)e.padLeft=e.kerning-t;if(!e.last)e.padRight=e.kerning});i.forEach(function(e){if(e.getBaseLength()==null)return;finishSizing(e)});var l=0;var f;var h;do{f=false;h=Math.round(s/a);i.forEach(function(e){if(e.finished)return;if(!e.maxLength)return;if(e.getMaxLength()<h){finishSizing(e,e.maxLength);f=true}})}while(f&&l++<i.length);if(f)throw new u.Internal("Resize loop iterated too many times while determining maxLength");l=0;do{f=false;h=Math.round(s/a);i.forEach(function(e){if(e.finished)return;if(!e.minLength)return;if(e.getMinLength()>=h){finishSizing(e,e.minLength);f=true}})}while(f&&l++<i.length);if(f)throw new u.Internal("Resize loop iterated too many times while determining minLength");h=Math.round(s/a);i.forEach(function(e){if(e.finished)return;finishSizing(e,h)});return i}function renderFunction(e,t,r){n("OON",arguments);if(e.type){return e.value(t,t[e.type+"Theme"]||{},r)}else{return e.value(t,{},r)}}function renderValue(e,t){var r=e.getBaseLength();var n=typeof e.value==="function"?renderFunction(e,t,r):e.value;if(n==null||n==="")return"";var s=i[e.align]||i.left;var u=e.padLeft?i.left("",e.padLeft):"";var o=e.padRight?i.right("",e.padRight):"";var l=a(String(n),r);var f=s(l,r);return u+f+o}},768:function(e){"use strict";function parseString(e){try{if(e[0]==='"'){return JSON.parse(e)}if(e[0]==="'"&&e.substr(e.length-1)==="'"){return parseString(e.replace(/\\.|"/g,e=>e==='"'?'\\"':e).replace(/^'|'$/g,'"'))}return JSON.parse('"'+e+'"')}catch(t){return e}}e.exports=parseString},779:function(e,t,r){const i=r(431);const n=r(813);const s=r(327);const a=r(589);let u;switch(i.platform()){case"darwin":u="/**/*.@(dylib|so?(.*))";break;case"win32":u="/**/*.dll";break;default:u="/**/*.so?(.*)"}e.exports=async function(e,t,r,i,o){const l=await new Promise((t,r)=>s(e+u,{ignore:"node_modules/**/*"},(e,i)=>e?r(e):t(i)));await Promise.all(l.map(async s=>{const[u,l]=await Promise.all([new Promise((e,t)=>n.readFile(s,(r,i)=>r?t(r):e(i))),await new Promise((e,t)=>n.lstat(s,(r,i)=>r?t(r):e(i)))]);if(l.isSymbolicLink()){const i=await new Promise((e,t)=>{n.readlink(s,(r,i)=>r?t(r):e(i))});const u=a.dirname(s);t.assetSymlinks[r+s.substr(e.length+1)]=a.relative(u,a.resolve(u,i))}else{t.assetPermissions[s.substr(e.length)]=l.mode;if(o)console.log("Emitting "+s+" for shared library support in "+e);i(r+s.substr(e.length+1),u)}}))}},781:function(__unusedmodule,exports,__nested_webpack_require_585035__){const path=__nested_webpack_require_585035__(589);const fs=__nested_webpack_require_585035__(66);const versioning=__nested_webpack_require_585035__(503);const napi=__nested_webpack_require_585035__(445);const pregypFind=(e,t)=>{const r=JSON.parse(fs.readFileSync(e).toString());versioning.validate_config(r,t);var i;if(napi.get_napi_build_versions(r,t)){i=napi.get_best_napi_build_version(r,t)}t=t||{};if(!t.module_root)t.module_root=path.dirname(e);var n=versioning.evaluate(r,t,i);return n.module};exports.pregyp={default:{find:pregypFind},find:pregypFind};function makeModulePathList(e,t){return[[e,t],[e,"build",t],[e,"build","Debug",t],[e,"build","Release",t],[e,"out","Debug",t],[e,"Debug",t],[e,"out","Release",t],[e,"Release",t],[e,"build","default",t],[e,process.env["NODE_BINDINGS_COMPILED_DIR"]||"compiled",process.versions.node,process.platform,process.arch,t]]}function findCompiledModule(basePath,specList){var resolvedList=[];var ext=path.extname(basePath);for(var _i=0,specList_1=specList;_i<specList_1.length;_i++){var spec=specList_1[_i];if(ext==spec.ext){try{spec.path=eval("require.resolve(basePath)");return spec}catch(e){resolvedList.push(basePath)}}}for(var _a=0,specList_2=specList;_a<specList_2.length;_a++){var spec=specList_2[_a];for(var _b=0,_c=makeModulePathList(basePath,spec.name);_b<_c.length;_b++){var pathParts=_c[_b];var resolvedPath=path.resolve.apply(path,pathParts);try{spec.path=eval("require.resolve(resolvedPath)")}catch(e){resolvedList.push(resolvedPath);continue}return spec}}return null}function find(e=process.cwd()){const t=findCompiledModule(e,[{ext:".node",name:"nbind.node",type:"node"},{ext:".js",name:"nbind.js",type:"emcc"}]);return t}exports.nbind=find},807:function(e,t,r){var i=r(589);var n=i.parse||r(946);var s=function getNodeModulesDirs(e,t){var r="/";if(/^([A-Za-z]:)/.test(e)){r=""}else if(/^\\\\/.test(e)){r="\\\\"}var s=[e];var a=n(e);while(a.dir!==s[s.length-1]){s.push(a.dir);a=n(a.dir)}return s.reduce(function(e,n){return e.concat(t.map(function(e){return i.join(r,n,e)}))},[])};e.exports=function nodeModulesPaths(e,t,r){var i=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths==="function"){return t.paths(r,e,function(){return s(e,i)},t)}var n=s(e,i);return t&&t.paths?n.concat(t.paths):n}},809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=stringify;var n=r(320);var s=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function stringify(e,t,r){var n=[];var a="";var u=void 0;var o=void 0;var l="";var f=void 0;if(t!=null&&(typeof t==="undefined"?"undefined":i(t))==="object"&&!Array.isArray(t)){r=t.space;f=t.quote;t=t.replacer}if(typeof t==="function"){o=t}else if(Array.isArray(t)){u=[];var h=true;var c=false;var p=undefined;try{for(var d=t[Symbol.iterator](),v;!(h=(v=d.next()).done);h=true){var y=v.value;var g=void 0;if(typeof y==="string"){g=y}else if(typeof y==="number"||y instanceof String||y instanceof Number){g=String(y)}if(g!==undefined&&u.indexOf(g)<0){u.push(g)}}}catch(e){c=true;p=e}finally{try{if(!h&&d.return){d.return()}}finally{if(c){throw p}}}}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}if(typeof r==="number"){if(r>0){r=Math.min(10,Math.floor(r));l=" ".substr(0,r)}}else if(typeof r==="string"){l=r.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){var r=t[e];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(e)}else if(typeof r.toJSON==="function"){r=r.toJSON(e)}}if(o){r=o.call(t,e,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if((typeof r==="undefined"?"undefined":i(r))==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(e){var t={"'":.1,'"':.2};var r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var i="";var n=true;var s=false;var a=undefined;try{for(var u=e[Symbol.iterator](),o;!(n=(o=u.next()).done);n=true){var l=o.value;switch(l){case"'":case'"':t[l]++;i+=l;continue}if(r[l]){i+=r[l];continue}if(l<" "){var h=l.charCodeAt(0).toString(16);i+="\\x"+("00"+h).substring(h.length);continue}i+=l}}catch(e){s=true;a=e}finally{try{if(!n&&u.return){u.return()}}finally{if(s){throw a}}}var c=f||Object.keys(t).reduce(function(e,r){return t[e]<t[r]?e:r});i=i.replace(new RegExp(c,"g"),r[c]);return c+i+c}function serializeObject(e){if(n.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}n.push(e);var t=a;a=a+l;var r=u||Object.keys(e);var i=[];var s=true;var o=false;var f=undefined;try{for(var h=r[Symbol.iterator](),c;!(s=(c=h.next()).done);s=true){var p=c.value;var d=serializeProperty(p,e);if(d!==undefined){var v=serializeKey(p)+":";if(l!==""){v+=" "}v+=d;i.push(v)}}}catch(e){o=true;f=e}finally{try{if(!s&&h.return){h.return()}}finally{if(o){throw f}}}var y=void 0;if(i.length===0){y="{}"}else{var g=void 0;if(l===""){g=i.join(",");y="{"+g+"}"}else{var b=",\n"+a;g=i.join(b);y="{\n"+a+g+",\n"+t+"}"}}n.pop();a=t;return y}function serializeKey(e){if(e.length===0){return quoteString(e,true)}var t=String.fromCodePoint(e.codePointAt(0));if(!s.isIdStartChar(t)){return quoteString(e,true)}for(var r=t.length;r<e.length;r++){if(!s.isIdContinueChar(String.fromCodePoint(e.codePointAt(r)))){return quoteString(e,true)}}return e}function serializeArray(e){if(n.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}n.push(e);var t=a;a=a+l;var r=[];for(var i=0;i<e.length;i++){var s=serializeProperty(String(i),e);r.push(s!==undefined?s:"null")}var u=void 0;if(r.length===0){u="[]"}else{if(l===""){var o=r.join(",");u="["+o+"]"}else{var f=",\n"+a;var h=r.join(f);u="[\n"+a+h+",\n"+t+"]"}}n.pop();a=t;return u}}e.exports=t["default"]},813:function(e,t,r){var i=r(66);var n=r(832);var s=r(597);var a=r(840);var u=[];var o=r(64);function noop(){}var l=noop;if(o.debuglog)l=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(u);r(393).equal(u.length,0)})}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}e.exports.close=function(e){return function(t,r){return e.call(i,t,function(e){if(!e)retry();if(typeof r==="function")r.apply(this,arguments)})}}(i.close);e.exports.closeSync=function(e){return function(t){var r=e.apply(i,arguments);retry();return r}}(i.closeSync);if(!/\bgraceful-fs\b/.test(i.closeSync.toString())){i.closeSync=e.exports.closeSync;i.close=e.exports.close}function patch(e){n(e);e.gracefulify=patch;e.FileReadStream=ReadStream;e.FileWriteStream=WriteStream;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n){return r(e,t,i,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n){return i(e,t,r,function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var a=e.readdir;e.readdir=readdir;function readdir(e,t,r){var i=[e];if(typeof t!=="function"){i.push(t)}else{r=t}i.push(go$readdir$cb);return go$readdir(i);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[i]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return a.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var u=s(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var o=e.ReadStream;if(o){ReadStream.prototype=Object.create(o.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}e.ReadStream=ReadStream;e.WriteStream=WriteStream;function ReadStream(e,t){if(this instanceof ReadStream)return o.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(e,t){return new ReadStream(e,t)}function createWriteStream(e,t){return new WriteStream(e,t)}var f=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i){return f(e,t,r,function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);u.push(e)}function retry(){var e=u.shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},814:function(e){"use strict";function isArguments(e){return e!=null&&typeof e==="object"&&e.hasOwnProperty("callee")}var t={"*":{label:"any",check:function(){return true}},A:{label:"array",check:function(e){return Array.isArray(e)||isArguments(e)}},S:{label:"string",check:function(e){return typeof e==="string"}},N:{label:"number",check:function(e){return typeof e==="number"}},F:{label:"function",check:function(e){return typeof e==="function"}},O:{label:"object",check:function(e){return typeof e==="object"&&e!=null&&!t.A.check(e)&&!t.E.check(e)}},B:{label:"boolean",check:function(e){return typeof e==="boolean"}},E:{label:"error",check:function(e){return e instanceof Error}},Z:{label:"null",check:function(e){return e==null}}};function addSchema(e,t){var r=t[e.length]=t[e.length]||[];if(r.indexOf(e)===-1)r.push(e)}var r=e.exports=function(e,r){if(arguments.length!==2)throw wrongNumberOfArgs(["SA"],arguments.length);if(!e)throw missingRequiredArg(0,"rawSchemas");if(!r)throw missingRequiredArg(1,"args");if(!t.S.check(e))throw invalidType(0,["string"],e);if(!t.A.check(r))throw invalidType(1,["array"],r);var i=e.split("|");var n={};i.forEach(function(e){for(var r=0;r<e.length;++r){var i=e[r];if(!t[i])throw unknownType(r,i)}if(/E.*E/.test(e))throw moreThanOneError(e);addSchema(e,n);if(/E/.test(e)){addSchema(e.replace(/E.*$/,"E"),n);addSchema(e.replace(/E/,"Z"),n);if(e.length===1)addSchema("",n)}});var s=n[r.length];if(!s){throw wrongNumberOfArgs(Object.keys(n),r.length)}for(var a=0;a<r.length;++a){var u=s.filter(function(e){var i=e[a];var n=t[i].check;return n(r[a])});if(!u.length){var o=s.map(function(e){return t[e[a]].label}).filter(function(e){return e!=null});throw invalidType(a,o,r[a])}s=u}};function missingRequiredArg(e){return newException("EMISSINGARG","Missing required argument #"+(e+1))}function unknownType(e,t){return newException("EUNKNOWNTYPE","Unknown type "+t+" in argument #"+(e+1))}function invalidType(e,r,i){var n;Object.keys(t).forEach(function(e){if(t[e].check(i))n=t[e].label});return newException("EINVALIDTYPE","Argument #"+(e+1)+": Expected "+englishList(r)+" but got "+n)}function englishList(e){return e.join(", ").replace(/, ([^,]+)$/," or $1")}function wrongNumberOfArgs(e,t){var r=englishList(e);var i=e.every(function(e){return e.length===1})?"argument":"arguments";return newException("EWRONGARGCOUNT","Expected "+r+" "+i+" but got "+t)}function moreThanOneError(e){return newException("ETOOMANYERRORTYPES",'Only one error type per argument signature is allowed, more than one found in "'+e+'"')}function newException(e,t){var i=new Error(t);i.code=e;if(Error.captureStackTrace)Error.captureStackTrace(i,r);return i}},817:function(e){"use strict";e.exports=function(e,t){if(e===null||e===undefined){throw TypeError()}e=String(e);var r=e.length;var i=t?Number(t):0;if(Number.isNaN(i)){i=0}if(i<0||i>=r){return undefined}var n=e.charCodeAt(i);if(n>=55296&&n<=56319&&r>i+1){var s=e.charCodeAt(i+1);if(s>=56320&&s<=57343){return(n-55296)*1024+s-56320+65536}}return n}},825:function(e,t){(function(e,r){true?r(t):0})(this,function(e){"use strict";function walk(e,{enter:t,leave:r}){visit(e,null,t,r)}let t=false;const r={skip:()=>t=true};const i={};const n=Object.prototype.toString;function isArray(e){return n.call(e)==="[object Array]"}function visit(e,n,s,a,u,o){if(!e)return;if(s){const i=t;t=false;s.call(r,e,n,u,o);const a=t;t=i;if(a)return}const l=e.type&&i[e.type]||(i[e.type]=Object.keys(e).filter(t=>typeof e[t]==="object"));for(let t=0;t<l.length;t+=1){const r=l[t];const i=e[r];if(isArray(i)){for(let t=0;t<i.length;t+=1){i[t]&&i[t].type&&visit(i[t],e,s,a,r,t)}}else if(i&&i.type){visit(i,e,s,a,r,null)}}if(a){a(e,n,u,o)}}e.walk=walk;e.childKeys=i;Object.defineProperty(e,"__esModule",{value:true})})},832:function(e,t,r){var i=r(938);var n=process.cwd;var s=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=n.call(process);return s};try{process.cwd()}catch(e){}var u=process.chdir;process.chdir=function(e){s=null;u.call(process,e)};e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=function(t){return function(r,i,n){var s=Date.now();var a=0;t(r,i,function CB(u){if(u&&(u.code==="EACCES"||u.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){e.stat(i,function(e,s){if(e&&e.code==="ENOENT")t(r,i,CB);else n(u)})},a);if(a<100)a+=10;return}if(n)n(u)})}}(e.rename)}e.read=function(t){return function(r,i,n,s,a,u){var o;if(u&&typeof u==="function"){var l=0;o=function(f,h,c){if(f&&f.code==="EAGAIN"&&l<10){l++;return t.call(e,r,i,n,s,a,o)}u.apply(this,arguments)}}return t.call(e,r,i,n,s,a,o)}}(e.read);e.readSync=function(t){return function(r,i,n,s,a){var u=0;while(true){try{return t.call(e,r,i,n,s,a)}catch(e){if(e.code==="EAGAIN"&&u<10){u++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,function(t){e.close(i,function(e){if(n)n(t||e)})})})};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var s=true;var a;try{a=e.fchmodSync(n,r);s=false}finally{if(s){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,n,s){e.open(t,i.O_SYMLINK,function(t,i){if(t){if(s)s(t);return}e.futimes(i,r,n,function(t){e.close(i,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,r,n){var s=e.openSync(t,i.O_SYMLINK);var a;var u=true;try{a=e.futimesSync(s,r,n);u=false}finally{if(u){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return a}}else{e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,s){return t.call(e,r,i,n,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i){return t.call(e,r,function(e,t){if(!t)return i.apply(this,arguments);if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296;if(i)i.apply(this,arguments)})}}function statFixSync(t){if(!t)return t;return function(r){var i=t.call(e,r);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},840:function(e){"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}},858:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=t.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var i=t.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/;var n=t.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},860:function(e,t,r){"use strict";var i=r(899);var n=function Chunk(e,t,r){this.start=e;this.end=t;this.original=r;this.intro="";this.outro="";this.content=r;this.storeName=false;this.edited=false;Object.defineProperties(this,{previous:{writable:true,value:null},next:{writable:true,value:null}})};n.prototype.appendLeft=function appendLeft(e){this.outro+=e};n.prototype.appendRight=function appendRight(e){this.intro=this.intro+e};n.prototype.clone=function clone(){var e=new n(this.start,this.end,this.original);e.intro=this.intro;e.outro=this.outro;e.content=this.content;e.storeName=this.storeName;e.edited=this.edited;return e};n.prototype.contains=function contains(e){return this.start<e&&e<this.end};n.prototype.eachNext=function eachNext(e){var t=this;while(t){e(t);t=t.next}};n.prototype.eachPrevious=function eachPrevious(e){var t=this;while(t){e(t);t=t.previous}};n.prototype.edit=function edit(e,t,r){this.content=e;if(!r){this.intro="";this.outro=""}this.storeName=t;this.edited=true;return this};n.prototype.prependLeft=function prependLeft(e){this.outro=e+this.outro};n.prototype.prependRight=function prependRight(e){this.intro=e+this.intro};n.prototype.split=function split(e){var t=e-this.start;var r=this.original.slice(0,t);var i=this.original.slice(t);this.original=r;var s=new n(e,this.end,i);s.outro=this.outro;this.outro="";this.end=e;if(this.edited){s.edit("",false);this.content=""}else{this.content=r}s.next=this.next;if(s.next){s.next.previous=s}s.previous=this;this.next=s;return s};n.prototype.toString=function toString(){return this.intro+this.content+this.outro};n.prototype.trimEnd=function trimEnd(e){this.outro=this.outro.replace(e,"");if(this.outro.length){return true}var t=this.content.replace(e,"");if(t.length){if(t!==this.content){this.split(this.start+t.length).edit("",undefined,true)}return true}else{this.edit("",undefined,true);this.intro=this.intro.replace(e,"");if(this.intro.length){return true}}};n.prototype.trimStart=function trimStart(e){this.intro=this.intro.replace(e,"");if(this.intro.length){return true}var t=this.content.replace(e,"");if(t.length){if(t!==this.content){this.split(this.end-t.length);this.edit("",undefined,true)}return true}else{this.edit("",undefined,true);this.outro=this.outro.replace(e,"");if(this.outro.length){return true}}};var s=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};if(typeof window!=="undefined"&&typeof window.btoa==="function"){s=function(e){return window.btoa(unescape(encodeURIComponent(e)))}}else if(typeof Buffer==="function"){s=function(e){return Buffer.from(e,"utf-8").toString("base64")}}var a=function SourceMap(e){this.version=3;this.file=e.file;this.sources=e.sources;this.sourcesContent=e.sourcesContent;this.names=e.names;this.mappings=i.encode(e.mappings)};a.prototype.toString=function toString(){return JSON.stringify(this)};a.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+s(this.toString())};function guessIndent(e){var t=e.split("\n");var r=t.filter(function(e){return/^\t+/.test(e)});var i=t.filter(function(e){return/^ {2,}/.test(e)});if(r.length===0&&i.length===0){return null}if(r.length>=i.length){return"\t"}var n=i.reduce(function(e,t){var r=/^ +/.exec(t)[0].length;return Math.min(r,e)},Infinity);return new Array(n+1).join(" ")}function getRelativePath(e,t){var r=e.split(/[/\\]/);var i=t.split(/[/\\]/);r.pop();while(r[0]===i[0]){r.shift();i.shift()}if(r.length){var n=r.length;while(n--){r[n]=".."}}return r.concat(i).join("/")}var u=Object.prototype.toString;function isObject(e){return u.call(e)==="[object Object]"}function getLocator(e){var t=e.split("\n");var r=[];for(var i=0,n=0;i<t.length;i++){r.push(n);n+=t[i].length+1}return function locate(e){var t=0;var i=r.length;while(t<i){var n=t+i>>1;if(e<r[n]){i=n}else{t=n+1}}var s=t-1;var a=e-r[s];return{line:s,column:a}}}var o=function Mappings(e){this.hires=e;this.generatedCodeLine=0;this.generatedCodeColumn=0;this.raw=[];this.rawSegments=this.raw[this.generatedCodeLine]=[];this.pending=null};o.prototype.addEdit=function addEdit(e,t,r,i){if(t.length){var n=[this.generatedCodeColumn,e,r.line,r.column];if(i>=0){n.push(i)}this.rawSegments.push(n)}else if(this.pending){this.rawSegments.push(this.pending)}this.advance(t);this.pending=null};o.prototype.addUneditedChunk=function addUneditedChunk(e,t,r,i,n){var s=t.start;var a=true;while(s<t.end){if(this.hires||a||n[s]){this.rawSegments.push([this.generatedCodeColumn,e,i.line,i.column])}if(r[s]==="\n"){i.line+=1;i.column=0;this.generatedCodeLine+=1;this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}else{i.column+=1;this.generatedCodeColumn+=1}s+=1;a=false}this.pending=[this.generatedCodeColumn,e,i.line,i.column]};o.prototype.advance=function advance(e){if(!e){return}var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++){this.generatedCodeLine++;this.raw[this.generatedCodeLine]=this.rawSegments=[]}this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length};var l="\n";var f={insertLeft:false,insertRight:false,storeName:false};var h=function MagicString(e,t){if(t===void 0)t={};var r=new n(0,e.length,e);Object.defineProperties(this,{original:{writable:true,value:e},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:t.filename},indentExclusionRanges:{writable:true,value:t.indentExclusionRanges},sourcemapLocations:{writable:true,value:{}},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:guessIndent(e)}});this.byStart[0]=r;this.byEnd[e.length]=r};h.prototype.addSourcemapLocation=function addSourcemapLocation(e){this.sourcemapLocations[e]=true};h.prototype.append=function append(e){if(typeof e!=="string"){throw new TypeError("outro content must be a string")}this.outro+=e;return this};h.prototype.appendLeft=function appendLeft(e,t){if(typeof t!=="string"){throw new TypeError("inserted content must be a string")}this._split(e);var r=this.byEnd[e];if(r){r.appendLeft(t)}else{this.intro+=t}return this};h.prototype.appendRight=function appendRight(e,t){if(typeof t!=="string"){throw new TypeError("inserted content must be a string")}this._split(e);var r=this.byStart[e];if(r){r.appendRight(t)}else{this.outro+=t}return this};h.prototype.clone=function clone(){var e=new h(this.original,{filename:this.filename});var t=this.firstChunk;var r=e.firstChunk=e.lastSearchedChunk=t.clone();while(t){e.byStart[r.start]=r;e.byEnd[r.end]=r;var i=t.next;var n=i&&i.clone();if(n){r.next=n;n.previous=r;r=n}t=i}e.lastChunk=r;if(this.indentExclusionRanges){e.indentExclusionRanges=this.indentExclusionRanges.slice()}Object.keys(this.sourcemapLocations).forEach(function(t){e.sourcemapLocations[t]=true});return e};h.prototype.generateDecodedMap=function generateDecodedMap(e){var t=this;e=e||{};var r=0;var i=Object.keys(this.storedNames);var n=new o(e.hires);var s=getLocator(this.original);if(this.intro){n.advance(this.intro)}this.firstChunk.eachNext(function(e){var a=s(e.start);if(e.intro.length){n.advance(e.intro)}if(e.edited){n.addEdit(r,e.content,a,e.storeName?i.indexOf(e.original):-1)}else{n.addUneditedChunk(r,e,t.original,a,t.sourcemapLocations)}if(e.outro.length){n.advance(e.outro)}});return{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?getRelativePath(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:i,mappings:n.raw}};h.prototype.generateMap=function generateMap(e){return new a(this.generateDecodedMap(e))};h.prototype.getIndentString=function getIndentString(){return this.indentStr===null?"\t":this.indentStr};h.prototype.indent=function indent(e,t){var r=/^[^\r\n]/gm;if(isObject(e)){t=e;e=undefined}e=e!==undefined?e:this.indentStr||"\t";if(e===""){return this}t=t||{};var i={};if(t.exclude){var n=typeof t.exclude[0]==="number"?[t.exclude]:t.exclude;n.forEach(function(e){for(var t=e[0];t<e[1];t+=1){i[t]=true}})}var s=t.indentStart!==false;var a=function(t){if(s){return""+e+t}s=true;return t};this.intro=this.intro.replace(r,a);var u=0;var o=this.firstChunk;while(o){var l=o.end;if(o.edited){if(!i[u]){o.content=o.content.replace(r,a);if(o.content.length){s=o.content[o.content.length-1]==="\n"}}}else{u=o.start;while(u<l){if(!i[u]){var f=this.original[u];if(f==="\n"){s=true}else if(f!=="\r"&&s){s=false;if(u===o.start){o.prependRight(e)}else{this._splitChunk(o,u);o=o.next;o.prependRight(e)}}}u+=1}}u=o.end;o=o.next}this.outro=this.outro.replace(r,a);return this};h.prototype.insert=function insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")};h.prototype.insertLeft=function insertLeft(e,t){if(!f.insertLeft){console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead");f.insertLeft=true}return this.appendLeft(e,t)};h.prototype.insertRight=function insertRight(e,t){if(!f.insertRight){console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead");f.insertRight=true}return this.prependRight(e,t)};h.prototype.move=function move(e,t,r){if(r>=e&&r<=t){throw new Error("Cannot move a selection inside itself")}this._split(e);this._split(t);this._split(r);var i=this.byStart[e];var n=this.byEnd[t];var s=i.previous;var a=n.next;var u=this.byStart[r];if(!u&&n===this.lastChunk){return this}var o=u?u.previous:this.lastChunk;if(s){s.next=a}if(a){a.previous=s}if(o){o.next=i}if(u){u.previous=n}if(!i.previous){this.firstChunk=n.next}if(!n.next){this.lastChunk=i.previous;this.lastChunk.next=null}i.previous=o;n.next=u||null;if(!o){this.firstChunk=i}if(!u){this.lastChunk=n}return this};h.prototype.overwrite=function overwrite(e,t,r,i){if(typeof r!=="string"){throw new TypeError("replacement content must be a string")}while(e<0){e+=this.original.length}while(t<0){t+=this.original.length}if(t>this.original.length){throw new Error("end is out of bounds")}if(e===t){throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead")}this._split(e);this._split(t);if(i===true){if(!f.storeName){console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");f.storeName=true}i={storeName:true}}var s=i!==undefined?i.storeName:false;var a=i!==undefined?i.contentOnly:false;if(s){var u=this.original.slice(e,t);this.storedNames[u]=true}var o=this.byStart[e];var l=this.byEnd[t];if(o){if(t>o.end&&o.next!==this.byStart[o.end]){throw new Error("Cannot overwrite across a split point")}o.edit(r,s,a);if(o!==l){var h=o.next;while(h!==l){h.edit("",false);h=h.next}h.edit("",false)}}else{var c=new n(e,t,"").edit(r,s);l.next=c;c.previous=l}return this};h.prototype.prepend=function prepend(e){if(typeof e!=="string"){throw new TypeError("outro content must be a string")}this.intro=e+this.intro;return this};h.prototype.prependLeft=function prependLeft(e,t){if(typeof t!=="string"){throw new TypeError("inserted content must be a string")}this._split(e);var r=this.byEnd[e];if(r){r.prependLeft(t)}else{this.intro=t+this.intro}return this};h.prototype.prependRight=function prependRight(e,t){if(typeof t!=="string"){throw new TypeError("inserted content must be a string")}this._split(e);var r=this.byStart[e];if(r){r.prependRight(t)}else{this.outro=t+this.outro}return this};h.prototype.remove=function remove(e,t){while(e<0){e+=this.original.length}while(t<0){t+=this.original.length}if(e===t){return this}if(e<0||t>this.original.length){throw new Error("Character is out of bounds")}if(e>t){throw new Error("end must be greater than start")}this._split(e);this._split(t);var r=this.byStart[e];while(r){r.intro="";r.outro="";r.edit("");r=t>r.end?this.byStart[r.end]:null}return this};h.prototype.lastChar=function lastChar(){if(this.outro.length){return this.outro[this.outro.length-1]}var e=this.lastChunk;do{if(e.outro.length){return e.outro[e.outro.length-1]}if(e.content.length){return e.content[e.content.length-1]}if(e.intro.length){return e.intro[e.intro.length-1]}}while(e=e.previous);if(this.intro.length){return this.intro[this.intro.length-1]}return""};h.prototype.lastLine=function lastLine(){var e=this.outro.lastIndexOf(l);if(e!==-1){return this.outro.substr(e+1)}var t=this.outro;var r=this.lastChunk;do{if(r.outro.length>0){e=r.outro.lastIndexOf(l);if(e!==-1){return r.outro.substr(e+1)+t}t=r.outro+t}if(r.content.length>0){e=r.content.lastIndexOf(l);if(e!==-1){return r.content.substr(e+1)+t}t=r.content+t}if(r.intro.length>0){e=r.intro.lastIndexOf(l);if(e!==-1){return r.intro.substr(e+1)+t}t=r.intro+t}}while(r=r.previous);e=this.intro.lastIndexOf(l);if(e!==-1){return this.intro.substr(e+1)+t}return this.intro+t};h.prototype.slice=function slice(e,t){if(e===void 0)e=0;if(t===void 0)t=this.original.length;while(e<0){e+=this.original.length}while(t<0){t+=this.original.length}var r="";var i=this.firstChunk;while(i&&(i.start>e||i.end<=e)){if(i.start<t&&i.end>=t){return r}i=i.next}if(i&&i.edited&&i.start!==e){throw new Error("Cannot use replaced character "+e+" as slice start anchor.")}var n=i;while(i){if(i.intro&&(n!==i||i.start===e)){r+=i.intro}var s=i.start<t&&i.end>=t;if(s&&i.edited&&i.end!==t){throw new Error("Cannot use replaced character "+t+" as slice end anchor.")}var a=n===i?e-i.start:0;var u=s?i.content.length+t-i.end:i.content.length;r+=i.content.slice(a,u);if(i.outro&&(!s||i.end===t)){r+=i.outro}if(s){break}i=i.next}return r};h.prototype.snip=function snip(e,t){var r=this.clone();r.remove(0,e);r.remove(t,r.original.length);return r};h.prototype._split=function _split(e){if(this.byStart[e]||this.byEnd[e]){return}var t=this.lastSearchedChunk;var r=e>t.end;while(t){if(t.contains(e)){return this._splitChunk(t,e)}t=r?this.byStart[t.end]:this.byEnd[t.start]}};h.prototype._splitChunk=function _splitChunk(e,t){if(e.edited&&e.content.length){var r=getLocator(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var i=e.split(t);this.byEnd[t]=e;this.byStart[t]=i;this.byEnd[i.end]=i;if(e===this.lastChunk){this.lastChunk=i}this.lastSearchedChunk=e;return true};h.prototype.toString=function toString(){var e=this.intro;var t=this.firstChunk;while(t){e+=t.toString();t=t.next}return e+this.outro};h.prototype.isEmpty=function isEmpty(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim()){return false}}while(e=e.next);return true};h.prototype.length=function length(){var e=this.firstChunk;var length=0;do{length+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return length};h.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")};h.prototype.trim=function trim(e){return this.trimStart(e).trimEnd(e)};h.prototype.trimEndAborted=function trimEndAborted(e){var t=new RegExp((e||"\\s")+"+$");this.outro=this.outro.replace(t,"");if(this.outro.length){return true}var r=this.lastChunk;do{var i=r.end;var n=r.trimEnd(t);if(r.end!==i){if(this.lastChunk===r){this.lastChunk=r.next}this.byEnd[r.end]=r;this.byStart[r.next.start]=r.next;this.byEnd[r.next.end]=r.next}if(n){return true}r=r.previous}while(r);return false};h.prototype.trimEnd=function trimEnd(e){this.trimEndAborted(e);return this};h.prototype.trimStartAborted=function trimStartAborted(e){var t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(this.intro.length){return true}var r=this.firstChunk;do{var i=r.end;var n=r.trimStart(t);if(r.end!==i){if(r===this.lastChunk){this.lastChunk=r.next}this.byEnd[r.end]=r;this.byStart[r.next.start]=r.next;this.byEnd[r.next.end]=r.next}if(n){return true}r=r.next}while(r);return false};h.prototype.trimStart=function trimStart(e){this.trimStartAborted(e);return this};var c=Object.prototype.hasOwnProperty;var p=function Bundle(e){if(e===void 0)e={};this.intro=e.intro||"";this.separator=e.separator!==undefined?e.separator:"\n";this.sources=[];this.uniqueSources=[];this.uniqueSourceIndexByFilename={}};p.prototype.addSource=function addSource(e){if(e instanceof h){return this.addSource({content:e,filename:e.filename,separator:this.separator})}if(!isObject(e)||!e.content){throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`")}["filename","indentExclusionRanges","separator"].forEach(function(t){if(!c.call(e,t)){e[t]=e.content[t]}});if(e.separator===undefined){e.separator=this.separator}if(e.filename){if(!c.call(this.uniqueSourceIndexByFilename,e.filename)){this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length;this.uniqueSources.push({filename:e.filename,content:e.content.original})}else{var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content){throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}}}this.sources.push(e);return this};p.prototype.append=function append(e,t){this.addSource({content:new h(e),separator:t&&t.separator||""});return this};p.prototype.clone=function clone(){var e=new p({intro:this.intro,separator:this.separator});this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})});return e};p.prototype.generateDecodedMap=function generateDecodedMap(e){var t=this;if(e===void 0)e={};var r=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){if(!~r.indexOf(e)){r.push(e)}})});var i=new o(e.hires);if(this.intro){i.advance(this.intro)}this.sources.forEach(function(e,n){if(n>0){i.advance(t.separator)}var s=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1;var a=e.content;var u=getLocator(a.original);if(a.intro){i.advance(a.intro)}a.firstChunk.eachNext(function(t){var n=u(t.start);if(t.intro.length){i.advance(t.intro)}if(e.filename){if(t.edited){i.addEdit(s,t.content,n,t.storeName?r.indexOf(t.original):-1)}else{i.addUneditedChunk(s,t,a.original,n,a.sourcemapLocations)}}else{i.advance(t.content)}if(t.outro.length){i.advance(t.outro)}});if(a.outro){i.advance(a.outro)}});return{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?getRelativePath(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:r,mappings:i.raw}};p.prototype.generateMap=function generateMap(e){return new a(this.generateDecodedMap(e))};p.prototype.getIndentString=function getIndentString(){var e={};this.sources.forEach(function(t){var r=t.content.indentStr;if(r===null){return}if(!e[r]){e[r]=0}e[r]+=1});return Object.keys(e).sort(function(t,r){return e[t]-e[r]})[0]||"\t"};p.prototype.indent=function indent(e){var t=this;if(!arguments.length){e=this.getIndentString()}if(e===""){return this}var r=!this.intro||this.intro.slice(-1)==="\n";this.sources.forEach(function(i,n){var s=i.separator!==undefined?i.separator:t.separator;var a=r||n>0&&/\r?\n$/.test(s);i.content.indent(e,{exclude:i.indentExclusionRanges,indentStart:a});r=i.content.lastChar()==="\n"});if(this.intro){this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,r){return r>0?e+t:t})}return this};p.prototype.prepend=function prepend(e){this.intro=e+this.intro;return this};p.prototype.toString=function toString(){var e=this;var t=this.sources.map(function(t,r){var i=t.separator!==undefined?t.separator:e.separator;var n=(r>0?i:"")+t.content.toString();return n}).join("");return this.intro+t};p.prototype.isEmpty=function isEmpty(){if(this.intro.length&&this.intro.trim()){return false}if(this.sources.some(function(e){return!e.content.isEmpty()})){return false}return true};p.prototype.length=function length(){return this.sources.reduce(function(e,t){return e+t.content.length()},this.intro.length)};p.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")};p.prototype.trim=function trim(e){return this.trimStart(e).trimEnd(e)};p.prototype.trimStart=function trimStart(e){var t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(!this.intro){var r;var i=0;do{r=this.sources[i++];if(!r){break}}while(!r.content.trimStartAborted(e))}return this};p.prototype.trimEnd=function trimEnd(e){var t=new RegExp((e||"\\s")+"+$");var r;var i=this.sources.length-1;do{r=this.sources[i--];if(!r){this.intro=this.intro.replace(t,"");break}}while(!r.content.trimEndAborted(e));return this};h.Bundle=p;h.default=h;e.exports=h},872:function(e){"use strict";e.exports=function(e){return class extends e{readInt(e,t){if(t!=null)return super.readInt(e,t);let r=this.pos,i=0,n=false;for(;;){let t=this.input.charCodeAt(this.pos),r;if(t>=97)r=t-97+10;else if(t==95){if(!n)this.raise(this.pos,"Invalid numeric separator");++this.pos;n=false;continue}else if(t>=65)r=t-65+10;else if(t>=48&&t<=57)r=t-48;else r=Infinity;if(r>=e)break;++this.pos;i=i*e+r;n=true}if(this.pos===r)return null;if(!n)this.raise(this.pos-1,"Invalid numeric separator");return i}readNumber(e){const t=super.readNumber(e);let r=this.end-this.start>=2&&this.input.charCodeAt(this.start)===48;const i=this.getNumberInput(this.start,this.end);if(i.length<this.end-this.start){if(r)this.raise(this.start,"Invalid number");this.value=parseFloat(i)}return t}getNumberInput(e,t){return this.input.slice(e,t).replace(/_/g,"")}}}},873:function(e,t,r){"use strict";var i=r(431);var n=e.exports=function(){if(i.type()=="Windows_NT"){return false}var e=/UTF-?8$/i;var t=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return e.test(t)}},877:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},899:function(e,t){(function(e,r){true?r(t):0})(this,function(e){"use strict";var t={};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(var i=0;i<r.length;i++){t[r.charCodeAt(i)]=i}function decode(e){var r=0;var i=0;var n=0;var s=0;var a=0;var u=[];var o=[];var l=[];for(var f=0,h=0,c=0,p=0,d=e.length;f<d;f++){var v=e.charCodeAt(f);if(v===44){if(l.length)o.push(new Int32Array(l));l=[];h=0}else if(v===59){if(l.length)o.push(new Int32Array(l));l=[];h=0;u.push(o);o=[];r=0}else{var y=t[v];if(y===undefined){throw new Error("Invalid character ("+String.fromCharCode(v)+")")}var g=y&32;y&=31;p+=y<<c;if(g){c+=5}else{var b=p&1;p>>=1;var _=b?-p:p;if(h==0){r+=_;l.push(r)}else if(h===1){i+=_;l.push(i)}else if(h===2){n+=_;l.push(n)}else if(h===3){s+=_;l.push(s)}else if(h===4){a+=_;l.push(a)}h++;p=c=0}}}if(l.length)o.push(new Int32Array(l));u.push(o);return u}function encode(e){var t=0;var r=0;var i=0;var n=0;var s="";for(var a=0;a<e.length;a++){var u=e[a];if(a>0)s+=";";if(u.length===0)continue;var o=0;var l=[];for(var f=0,h=u;f<h.length;f++){var c=h[f];var p=encodeInteger(c[0]-o);o=c[0];if(c.length>1){p+=encodeInteger(c[1]-t)+encodeInteger(c[2]-r)+encodeInteger(c[3]-i);t=c[1];r=c[2];i=c[3]}if(c.length===5){p+=encodeInteger(c[4]-n);n=c[4]}l.push(p)}s+=l.join(",")}return s}function encodeInteger(e){var t="";e=e<0?-e<<1|1:e<<1;do{var i=e&31;e>>=5;if(e>0){i|=32}t+=r[i]}while(e>0);return t}e.decode=decode;e.encode=encode;Object.defineProperty(e,"__esModule",{value:true})})},906:function(e,t,r){"use strict";const i=r(996).tokTypes;const n=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const s=e=>{n.lastIndex=e.pos;let t=n.exec(e.input);let r=e.pos+t[0].length;return e.input.slice(r,r+1)==="."};e.exports=function(e){return class extends e{parseExprAtom(e){if(this.type!==i._import||!s(this))return super.parseExprAtom(e);if(!this.options.allowImportExportEverywhere&&!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}let t=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");t.meta=this.parseIdent(true);this.expect(i.dot);t.property=this.parseIdent(true);if(t.property.name!=="meta"){this.raiseRecoverable(t.property.start,"The only valid meta property for import is import.meta")}if(this.containsEsc){this.raiseRecoverable(t.property.start,'"meta" in import.meta must not contain escape sequences')}return this.finishNode(t,"MetaProperty")}parseStatement(e,t,r){if(this.type!==i._import||!s(this)){return super.parseStatement(e,t,r)}let n=this.startNode();let a=this.parseExpression();return this.parseExpressionStatement(n,a)}}}},922:function(e,t,r){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(589);var n=r(620);var s=r(969);var a=n.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var n=process.cwd();if(!ownProp(r,"cwd"))e.cwd=n;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==n}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new a(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[i];if(t)r.push(a);else r[a]=true}}else{var u=Object.keys(s);if(t)r.push.apply(r,u);else u.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var s=i==="DIR"||Array.isArray(i);var a=t.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==t){var u=makeAbs(e,n);e.statCache[u]=e.statCache[r];e.cache[u]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(s(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},923:function(e,t,r){"use strict";var i=r(12);e.exports=Readable;var n=r(341);var s;Readable.ReadableState=ReadableState;var a=r(485).EventEmitter;var u=function(e,t){return e.listeners(t).length};var o=r(569);var l=r(945).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof f}var h=r(683);h.inherits=r(207);var c=r(64);var p=void 0;if(c&&c.debuglog){p=c.debuglog("stream")}else{p=function(){}}var d=r(402);var v=r(972);var y;h.inherits(Readable,o);var g=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(n(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){s=s||r(98);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;var n=e.highWaterMark;var a=e.readableHighWaterMark;var u=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=u;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(421).StringDecoder;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){s=s||r(98);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=v.destroy;Readable.prototype._undestroy=v.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=l.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var a;if(!n)a=chunkInvalid(s,t);if(a){e.emit("error",a)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==l.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(s.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,s,t,true)}else if(s.ended){e.emit("error",new Error("stream.push() after EOF"))}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!i){s.reading=false}}return needMoreData(s)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!y)y=r(421).StringDecoder;this._readableState.decoder=new y(e);this._readableState.encoding=e;return this};var b=8388608;function computeNewHighWaterMark(e){if(e>=b){e=b}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){p("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){p("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;p("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;p("length less than watermark",i)}if(t.ended||t.reading){i=false;p("reading or ended",i)}else if(i){p("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){p("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)i.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){p("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){p("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;p("pipe count=%d opts=%j",n.pipesCount,t);var s=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var a=s?onend:unpipe;if(n.endEmitted)i.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){p("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){p("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var l=false;function cleanup(){p("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",o);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);l=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}var f=false;r.on("data",ondata);function ondata(t){p("ondata");f=false;var i=e.write(t);if(false===i&&!f){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!l){p("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;f=true}r.pause()}}function onerror(t){p("onerror",t);unpipe();e.removeListener("error",onerror);if(u(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){p("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){p("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){p("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&u(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<n;s++){i[s].emit("unpipe",this,r)}return this}var a=indexOf(t.pipes,e);if(a===-1)return this;t.pipes.splice(a,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){i.nextTick(nReadingNextTick,this)}else if(n.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){p("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){p("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){p("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){p("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){p("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;p("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",function(){p("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)});e.on("data",function(n){p("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var s=t.push(n);if(!s){i=true;e.pause()}});for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n)}}for(var s=0;s<g.length;s++){e.on(g[s],this.emit.bind(this,g[s]))}this._read=function(t){p("wrapped _read",t);if(i){i=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var i;if(e<t.head.data.length){i=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){i=t.shift()}else{i=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return i}function copyFromBufferString(e,t){var r=t.head;var i=1;var n=r.data;e-=n.length;while(r=r.next){var s=r.data;var a=e>s.length?s.length:e;if(a===s.length)n+=s;else n+=s.slice(0,e);e-=a;if(e===0){if(a===s.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=s.slice(a)}break}++i}t.length-=i;return n}function copyFromBuffer(e,t){var r=l.allocUnsafe(e);var i=t.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var s=i.data;var a=e>s.length?s.length:e;s.copy(r,r.length-e,0,a);e-=a;if(e===0){if(a===s.length){++n;if(i.next)t.head=i.next;else t.head=t.tail=null}else{t.head=i;i.data=s.slice(a)}break}++n}t.length-=n;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},928:function(e){e.exports=function(e,t={},r=true){const i={computeBranches:r,sawIdentifier:false,vars:t};const n=walk(e);return{result:n,sawIdentifier:i.sawIdentifier};function walk(e){const t=s[e.type];if(t)return t.call(i,e,walk)}};const t=e.exports.UNKNOWN=Symbol();const r=e.exports.FUNCTION=Symbol();const i=e.exports.WILDCARD="";const n=e.exports.wildcardRegEx=/\x1a/g;function countWildcards(e){n.lastIndex=0;let t=0;while(n.exec(e))t++;return t}const s={ArrayExpression(e,t){const r=[];for(let i=0,n=e.elements.length;i<n;i++){if(e.elements[i]===null){r.push(null);continue}const n=t(e.elements[i]);if(!n)return;if("value"in n===false)return;r.push(n.value)}return{value:r}},BinaryExpression(e,t){const r=e.operator;let n=t(e.left);if(!n&&r!=="+")return;let s=t(e.right);if(!n&&!s)return;if(!n){if(this.computeBranches&&typeof s.value==="string")return{value:i+s.value,wildcards:[e.left,...s.wildcards||[]]};return}if(!s){if(this.computeBranches&&r==="+"){if(typeof n.value==="string")return{value:n.value+i,wildcards:[...n.wildcards||[],e.right]}}if(!("test"in n)&&r==="||"&&n.value)return e.right;return}if("test"in n&&"test"in s)return;if("test"in n){s=s.value;if(r==="==")return{test:n.test,then:n.then==s,else:n.else==s};if(r==="===")return{test:n.test,then:n.then===s,else:n.else===s};if(r==="!=")return{test:n.test,then:n.then!=s,else:n.else!=s};if(r==="!==")return{test:n.test,then:n.then!==s,else:n.else!==s};if(r==="+")return{test:n.test,then:n.then+s,else:n.else+s};if(r==="-")return{test:n.test,then:n.then-s,else:n.else-s};if(r==="*")return{test:n.test,then:n.then*s,else:n.else*s};if(r==="/")return{test:n.test,then:n.then/s,else:n.else/s};if(r==="%")return{test:n.test,then:n.then%s,else:n.else%s};if(r==="<")return{test:n.test,then:n.then<s,else:n.else<s};if(r==="<=")return{test:n.test,then:n.then<=s,else:n.else<=s};if(r===">")return{test:n.test,then:n.then>s,else:n.else>s};if(r===">=")return{test:n.test,then:n.then>=s,else:n.else>=s};if(r==="|")return{test:n.test,then:n.then|s,else:n.else|s};if(r==="&")return{test:n.test,then:n.then&s,else:n.else&s};if(r==="^")return{test:n.test,then:n.then^s,else:n.else^s};if(r==="&&")return{test:n.test,then:n.then&&s,else:n.else&&s};if(r==="||")return{test:n.test,then:n.then||s,else:n.else||s}}else if("test"in s){n=n.value;if(r==="==")return{test:s.test,then:n==s.then,else:n==s.else};if(r==="===")return{test:s.test,then:n===s.then,else:n===s.else};if(r==="!=")return{test:s.test,then:n!=s.then,else:n!=s.else};if(r==="!==")return{test:s.test,then:n!==s.then,else:n!==s.else};if(r==="+")return{test:s.test,then:n+s.then,else:n+s.else};if(r==="-")return{test:s.test,then:n-s.then,else:n-s.else};if(r==="*")return{test:s.test,then:n*s.then,else:n*s.else};if(r==="/")return{test:s.test,then:n/s.then,else:n/s.else};if(r==="%")return{test:s.test,then:n%s.then,else:n%s.else};if(r==="<")return{test:s.test,then:n<s.then,else:n<s.else};if(r==="<=")return{test:s.test,then:n<=s.then,else:n<=s.else};if(r===">")return{test:s.test,then:n>s.then,else:n>s.else};if(r===">=")return{test:s.test,then:n>=s.then,else:n>=s.else};if(r==="|")return{test:s.test,then:n|s.then,else:n|s.else};if(r==="&")return{test:s.test,then:n&s.then,else:n&s.else};if(r==="^")return{test:s.test,then:n^s.then,else:n^s.else};if(r==="&&")return{test:s.test,then:n&&s.then,else:n&&s.else};if(r==="||")return{test:s.test,then:n||s.then,else:n||s.else}}else{if(r==="==")return{value:n.value==s.value};if(r==="===")return{value:n.value===s.value};if(r==="!=")return{value:n.value!=s.value};if(r==="!==")return{value:n.value!==s.value};if(r==="+"){const e={value:n.value+s.value};if(n.wildcards||s.wildcards)e.wildcards=[...n.wildcards||[],...s.wildcards||[]];return e}if(r==="-")return{value:n.value-s.value};if(r==="*")return{value:n.value*s.value};if(r==="/")return{value:n.value/s.value};if(r==="%")return{value:n.value%s.value};if(r==="<")return{value:n.value<s.value};if(r==="<=")return{value:n.value<=s.value};if(r===">")return{value:n.value>s.value};if(r===">=")return{value:n.value>=s.value};if(r==="|")return{value:n.value|s.value};if(r==="&")return{value:n.value&s.value};if(r==="^")return{value:n.value^s.value};if(r==="&&")return{value:n.value&&s.value};if(r==="||")return{value:n.value||s.value}}return},CallExpression(e,n){const s=n(e.callee);if(!s||"test"in s)return;let a=s.value;if(typeof a==="object"&&a!==null)a=a[r];if(typeof a!=="function")return;const u=e.callee.object&&n(e.callee.object).value||null;let o;let l=[];let f;let h=e.arguments.length>0;const c=[];for(let t=0,r=e.arguments.length;t<r;t++){let r=n(e.arguments[t]);if(r){h=false;if(typeof r.value==="string"&&r.wildcards)r.wildcards.forEach(e=>c.push(e))}else{if(!this.computeBranches)return;r={value:i};c.push(e.arguments[t])}if("test"in r){if(c.length)return;if(o)return;o=r.test;f=l.concat([]);l.push(r.then);f.push(r.else)}else{l.push(r.value);if(f)f.push(r.value)}}if(h)return;try{const e=a.apply(u,l);if(e===t)return;if(!o){if(c.length){if(typeof e!=="string"||countWildcards(e)!==c.length)return;return{value:e,wildcards:c}}return{value:e}}const r=a.apply(u,f);if(e===t)return;return{test:o,then:e,else:r}}catch(e){return}},ConditionalExpression(e,t){const r=t(e.test);if(r&&"value"in r)return r.value?t(e.consequent):t(e.alternate);if(!this.computeBranches)return;const i=t(e.consequent);if(!i||"wildcards"in i||"test"in i)return;const n=t(e.alternate);if(!n||"wildcards"in n||"test"in n)return;return{test:e.test,then:i.value,else:n.value}},ExpressionStatement(e,t){return t(e.expression)},Identifier(e){this.sawIdentifier=true;if(Object.hasOwnProperty.call(this.vars,e.name)){const r=this.vars[e.name];if(r===t)return;return{value:r}}return},Literal(e){return{value:e.value}},MemberExpression(e,r){const i=r(e.object);if(!i||"test"in i||typeof i.value==="function")return;if(e.property.type==="Identifier"){if(typeof i.value==="object"&&i.value!==null){if(e.property.name in i.value){const r=i.value[e.property.name];if(r===t)return;return{value:r}}else if(i.value[t])return}else{return{value:undefined}}}const n=r(e.property);if(!n||"test"in n)return;if(typeof i.value==="object"&&i.value!==null){if(n.value in i.value){const e=i.value[n.value];if(e===t)return;return{value:e}}else if(i.value[t]){return}}else{return{value:undefined}}},ObjectExpression(e,r){const i={};for(let n=0;n<e.properties.length;n++){const s=e.properties[n];const a=s.computed?r(s.key):s.key&&{value:s.key.name||s.key.value};if(!a||"test"in a)return;const u=r(s.value);if(!u||"test"in u)return;if(u.value===t)return;i[a.value]=u.value}return i},TemplateLiteral(e,t){let r={value:""};for(var n=0;n<e.expressions.length;n++){if("value"in r){r.value+=e.quasis[n].value.cooked}else{r.then+=e.quasis[n].value.cooked;r.else+=e.quasis[n].value.cooked}let s=t(e.expressions[n]);if(!s){if(!this.computeBranches)return;s={value:i,wildcards:[e.expressions[n]]}}if("value"in s){if("value"in r){r.value+=s.value;if(s.wildcards)r.wildcards=[...r.wildcards||[],...s.wildcards]}else{if(s.wildcards)return;r.then+=s.value;r.else+=s.value}}else{if("value"in r===false||r.wildcards)return;r={test:s.test,then:r.value+s.then,else:r.value+s.else}}}if("value"in r){r.value+=e.quasis[n].value.cooked}else{r.then+=e.quasis[n].value.cooked;r.else+=e.quasis[n].value.cooked}return r},ThisExpression(){if(Object.hasOwnProperty.call(this.vars,"this"))return{value:this.vars["this"]}},UnaryExpression(e,t){const r=t(e.argument);if(!r)return;if("value"in r&&"wildcards"in r===false){if(e.operator==="+")return{value:+r.value};if(e.operator==="-")return{value:-r.value};if(e.operator==="~")return{value:~r.value};if(e.operator==="!")return{value:!r.value}}else if("test"in r&&"wildcards"in r===false){if(e.operator==="+")return{test:r.test,then:+r.then,else:+r.else};if(e.operator==="-")return{test:r.test,then:-r.then,else:-r.else};if(e.operator==="~")return{test:r.test,then:~r.then,else:~r.else};if(e.operator==="!")return{test:r.test,then:!r.then,else:!r.else}}return}};s.LogicalExpression=s.BinaryExpression},938:function(e){e.exports=__webpack_require__(619)},942:function(e){e.exports=__webpack_require__(293)},945:function(e,t,r){var i=r(942);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},946:function(e){"use strict";var t=process.platform==="win32";var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;var n={};function win32SplitPath(e){var t=r.exec(e),n=(t[1]||"")+(t[2]||""),s=t[3]||"";var a=i.exec(s),u=a[1],o=a[2],l=a[3];return[n,u,o,l]}n.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var t=win32SplitPath(e);if(!t||t.length!==4){throw new TypeError("Invalid path '"+e+"'")}return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var a={};function posixSplitPath(e){return s.exec(e).slice(1)}a.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var t=posixSplitPath(e);if(!t||t.length!==4){throw new TypeError("Invalid path '"+e+"'")}t[1]=t[1]||"";t[2]=t[2]||"";t[3]=t[3]||"";return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};if(t)e.exports=n.parse;else e.exports=a.parse;e.exports.posix=a.parse;e.exports.win32=n.parse},955:function(e,t,r){"use strict";e.exports=Transform;var i=r(98);var n=r(683);n.inherits=r(207);n.inherits(Transform,i);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);i.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush(function(t,r){done(e,t,r)})}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return i.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,function(e){t(e);r.emit("close")})};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},963:function(module,exports,__nested_webpack_require_740784__){var fs=__nested_webpack_require_740784__(66),path=__nested_webpack_require_740784__(589),fileURLToPath=__nested_webpack_require_740784__(131),join=path.join,dirname=path.dirname,exists=fs.accessSync&&function(e){try{fs.accessSync(e)}catch(e){return false}return true}||fs.existsSync||path.existsSync,defaults={arrow:process.env.NODE_BINDINGS_ARROW||" → ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function bindings(opts){if(typeof opts=="string"){opts={bindings:opts}}else if(!opts){opts={}}Object.keys(defaults).map(function(e){if(!(e in opts))opts[e]=defaults[e]});if(!opts.module_root){opts.module_root=exports.getRoot(exports.getFileName())}if(path.extname(opts.bindings)!=".node"){opts.bindings+=".node"}var requireFunc=true?eval("require"):0;var tries=[],i=0,l=opts.try.length,n,b,err;for(;i<l;i++){n=join.apply(null,opts.try[i].map(function(e){return opts[e]||e}));tries.push(n);try{b=opts.path?requireFunc.resolve(n):requireFunc(n);if(!opts.path){b.path=n}return b}catch(e){if(e.code!=="MODULE_NOT_FOUND"&&e.code!=="QUALIFIED_PATH_RESOLUTION_FAILED"&&!/not find/i.test(e.message)){throw e}}}err=new Error("Could not locate the bindings file. Tried:\n"+tries.map(function(e){return opts.arrow+e}).join("\n"));err.tries=tries;throw err}module.exports=exports=bindings;exports.getFileName=function getFileName(e){var t=Error.prepareStackTrace,r=Error.stackTraceLimit,i={},n;Error.stackTraceLimit=10;Error.prepareStackTrace=function(t,r){for(var i=0,s=r.length;i<s;i++){n=r[i].getFileName();if(n!==__filename){if(e){if(n!==e){return}}else{return}}}};Error.captureStackTrace(i);i.stack;Error.prepareStackTrace=t;Error.stackTraceLimit=r;var s="file://";if(n.indexOf(s)===0){n=fileURLToPath(n)}return n};exports.getRoot=function getRoot(e){var t=dirname(e),r;while(true){if(t==="."){t=process.cwd()}if(exists(join(t,"package.json"))||exists(join(t,"node_modules"))){return t}if(r===t){throw new Error('Could not find module root given file: "'+e+'". Do you have a `package.json` file? ')}r=t;t=join(t,"..")}}},969:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},972:function(e,t,r){"use strict";var i=r(12);function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(n||s){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){i.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!t&&e){i.nextTick(emitErrorNT,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},982:function(e,t,r){"use strict";var i=r(684);t.center=alignCenter;t.left=alignLeft;t.right=alignRight;function createPadding(e){var t="";var r=" ";var i=e;do{if(i%2){t+=r}i=Math.floor(i/2);r+=r}while(i);return t}function alignLeft(e,t){var r=e.trimRight();if(r.length===0&&e.length>=t)return e;var n="";var s=i(r);if(s<t){n=createPadding(t-s)}return r+n}function alignRight(e,t){var r=e.trimLeft();if(r.length===0&&e.length>=t)return e;var n="";var s=i(r);if(s<t){n=createPadding(t-s)}return n+r}function alignCenter(e,t){var r=e.trim();if(r.length===0&&e.length>=t)return e;var n="";var s="";var a=i(r);if(a<t){var u=parseInt((t-a)/2,10);n=createPadding(u);s=createPadding(t-(a+u))}return n+r+s}},991:function(e){const t=/^(@[^\\\/]+[\\\/])?[^\\\/]+/;e.exports=function(e){const r=e.lastIndexOf("node_modules");if(r!==-1&&(e[r-1]==="/"||e[r-1]==="\\")&&(e[r+12]==="/"||e[r+12]==="\\")){const i=e.substr(r+13).match(t);if(i)return e.substr(0,r+13+i[0].length)}};e.exports.pkgNameRegEx=t},996:function(e,t){(function(e,r){true?r(t):0})(this,function(e){"use strict";var t={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"};var r="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";var i={5:r,"5module":r+" export import",6:r+" const class extends export import super"};var n=/^in(stanceof)?$/;var s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";var u=new RegExp("["+s+"]");var o=new RegExp("["+s+a+"]");s=a=null;var l=[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,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,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,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,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,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42710,42,4148,12,221,3,5761,15,7472,3104,541];var f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,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,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(e,t){var r=65536;for(var i=0;i<t.length;i+=2){r+=t[i];if(r>e){return false}r+=t[i+1];if(r>=e){return true}}}function isIdentifierStart(e,t){if(e<65){return e===36}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&u.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,l)}function isIdentifierChar(e,t){if(e<48){return e===36}if(e<58){return true}if(e<65){return false}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&o.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,l)||isInAstralSet(e,f)}var h=function TokenType(e,t){if(t===void 0)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 h(e,{beforeExpr:true,binop:t})}var c={beforeExpr:true},p={startsExpr:true};var d={};function kw(e,t){if(t===void 0)t={};t.keyword=e;return d[e]=new h(e,t)}var v={num:new h("num",p),regexp:new h("regexp",p),string:new h("string",p),name:new h("name",p),eof:new h("eof"),bracketL:new h("[",{beforeExpr:true,startsExpr:true}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:true,startsExpr:true}),braceR:new h("}"),parenL:new h("(",{beforeExpr:true,startsExpr:true}),parenR:new h(")"),comma:new h(",",c),semi:new h(";",c),colon:new h(":",c),dot:new h("."),question:new h("?",c),arrow:new h("=>",c),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",c),backQuote:new h("`",p),dollarBraceL:new h("${",{beforeExpr:true,startsExpr:true}),eq:new h("=",{beforeExpr:true,isAssign:true}),assign:new h("_=",{beforeExpr:true,isAssign:true}),incDec:new h("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new h("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),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 h("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new h("**",{beforeExpr:true}),_break:kw("break"),_case:kw("case",c),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",c),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",c),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",p),_if:kw("if"),_return:kw("return",c),_switch:kw("switch"),_throw:kw("throw",c),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",p),_super:kw("super",p),_class:kw("class",p),_extends:kw("extends",c),_export:kw("export"),_import:kw("import",p),_null:kw("null",p),_true:kw("true",p),_false:kw("false",p),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var y=/\r\n?|\n|\u2028|\u2029/;var g=new RegExp(y.source,"g");function isNewLine(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var b=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var _=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var m=Object.prototype;var E=m.hasOwnProperty;var D=m.toString;function has(e,t){return E.call(e,t)}var w=Array.isArray||function(e){return D.call(e)==="[object Array]"};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var A=function Position(e,t){this.line=e;this.column=t};A.prototype.offset=function offset(e){return new A(this.line,this.column+e)};var C=function SourceLocation(e,t,r){this.start=t;this.end=r;if(e.sourceFile!==null){this.source=e.sourceFile}};function getLineInfo(e,t){for(var r=1,i=0;;){g.lastIndex=i;var n=g.exec(e);if(n&&n.index<t){++r;i=n.index+n[0].length}else{return new A(r,t-i)}}}var x={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:false,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};function getOptions(e){var t={};for(var r in x){t[r]=e&&has(e,r)?e[r]:x[r]}if(t.ecmaVersion>=2015){t.ecmaVersion-=2009}if(t.allowReserved==null){t.allowReserved=t.ecmaVersion<5}if(w(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}if(w(t.onComment)){t.onComment=pushComment(t,t.onComment)}return t}function pushComment(e,t){return function(r,i,n,s,a,u){var o={type:r?"Block":"Line",value:i,start:n,end:s};if(e.locations){o.loc=new C(this,a,u)}if(e.ranges){o.range=[n,s]}t.push(o)}}var S=1,k=2,F=S|k,R=4,T=8,O=16,I=32,B=64,N=128;function functionFlags(e,t){return k|(e?R:0)|(t?T:0)}var L=0,P=1,j=2,q=3,$=4,M=5;var U=function Parser(e,r,n){this.options=e=getOptions(e);this.sourceFile=e.sourceFile;this.keywords=wordsRegexp(i[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var s="";if(e.allowReserved!==true){for(var a=e.ecmaVersion;;a--){if(s=t[a]){break}}if(e.sourceType==="module"){s+=" await"}}this.reservedWords=wordsRegexp(s);var u=(s?s+" ":"")+t.strict;this.reservedWordsStrict=wordsRegexp(u);this.reservedWordsStrictBind=wordsRegexp(u+" "+t.strictBind);this.input=String(r);this.containsEsc=false;if(n){this.pos=n;this.lineStart=this.input.lastIndexOf("\n",n-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(y).length}else{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=true;this.inModule=e.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports={};if(this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(S);this.regexpState=null};var H={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true}};U.prototype.parse=function parse(){var e=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(e)};H.inFunction.get=function(){return(this.currentVarScope().flags&k)>0};H.inGenerator.get=function(){return(this.currentVarScope().flags&T)>0};H.inAsync.get=function(){return(this.currentVarScope().flags&R)>0};H.allowSuper.get=function(){return(this.currentThisScope().flags&B)>0};H.allowDirectSuper.get=function(){return(this.currentThisScope().flags&N)>0};H.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};U.prototype.inNonArrowFunction=function inNonArrowFunction(){return(this.currentThisScope().flags&k)>0};U.extend=function extend(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var r=this;for(var i=0;i<e.length;i++){r=e[i](r)}return r};U.parse=function parse(e,t){return new this(t,e).parse()};U.parseExpressionAt=function parseExpressionAt(e,t,r){var i=new this(r,e,t);i.nextToken();return i.parseExpression()};U.tokenizer=function tokenizer(e,t){return new this(t,e)};Object.defineProperties(U.prototype,H);var W=U.prototype;var G=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;W.strictDirective=function(e){for(;;){_.lastIndex=e;e+=_.exec(this.input)[0].length;var t=G.exec(this.input.slice(e));if(!t){return false}if((t[1]||t[2])==="use strict"){return true}e+=t[0].length;_.lastIndex=e;e+=_.exec(this.input)[0].length;if(this.input[e]===";"){e++}}};W.eat=function(e){if(this.type===e){this.next();return true}else{return false}};W.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc};W.eatContextual=function(e){if(!this.isContextual(e)){return false}this.next();return true};W.expectContextual=function(e){if(!this.eatContextual(e)){this.unexpected()}};W.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||y.test(this.input.slice(this.lastTokEnd,this.start))};W.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};W.semicolon=function(){if(!this.eat(v.semi)&&!this.insertSemicolon()){this.unexpected()}};W.afterTrailingComma=function(e,t){if(this.type===e){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!t){this.next()}return true}};W.expect=function(e){this.eat(e)||this.unexpected()};W.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}W.checkPatternErrors=function(e,t){if(!e){return}if(e.trailingComma>-1){this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element")}var r=t?e.parenthesizedAssign:e.parenthesizedBind;if(r>-1){this.raiseRecoverable(r,"Parenthesized pattern")}};W.checkExpressionErrors=function(e,t){if(!e){return false}var r=e.shorthandAssign;var i=e.doubleProto;if(!t){return r>=0||i>=0}if(r>=0){this.raise(r,"Shorthand property assignments are valid only in destructuring patterns")}if(i>=0){this.raiseRecoverable(i,"Redefinition of __proto__ property")}};W.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)){this.raise(this.yieldPos,"Yield expression cannot be a default value")}if(this.awaitPos){this.raise(this.awaitPos,"Await expression cannot be a default value")}};W.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression"){return this.isSimpleAssignTarget(e.expression)}return e.type==="Identifier"||e.type==="MemberExpression"};var V=U.prototype;V.parseTopLevel=function(e){var t={};if(!e.body){e.body=[]}while(this.type!==v.eof){var r=this.parseStatement(null,true,t);e.body.push(r)}if(this.inModule){for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var s=n[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}}this.adaptDirectivePrologue(e.body);this.next();e.sourceType=this.options.sourceType;return this.finishNode(e,"Program")};var z={kind:"loop"},K={kind:"switch"};V.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let")){return false}_.lastIndex=this.pos;var t=_.exec(this.input);var r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(i===91){return true}if(e){return false}if(i===123){return true}if(isIdentifierStart(i,true)){var s=r+1;while(isIdentifierChar(this.input.charCodeAt(s),true)){++s}var a=this.input.slice(r,s);if(!n.test(a)){return true}}return false};V.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}_.lastIndex=this.pos;var e=_.exec(this.input);var t=this.pos+e[0].length;return!y.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!isIdentifierChar(this.input.charAt(t+8)))};V.parseStatement=function(e,t,r){var i=this.type,n=this.startNode(),s;if(this.isLet(e)){i=v._var;s="let"}switch(i){case v._break:case v._continue:return this.parseBreakContinueStatement(n,i.keyword);case v._debugger:return this.parseDebuggerStatement(n);case v._do:return this.parseDoStatement(n);case v._for:return this.parseForStatement(n);case v._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(n,false,!e);case v._class:if(e){this.unexpected()}return this.parseClass(n,true);case v._if:return this.parseIfStatement(n);case v._return:return this.parseReturnStatement(n);case v._switch:return this.parseSwitchStatement(n);case v._throw:return this.parseThrowStatement(n);case v._try:return this.parseTryStatement(n);case v._const:case v._var:s=s||this.value;if(e&&s!=="var"){this.unexpected()}return this.parseVarStatement(n,s);case v._while:return this.parseWhileStatement(n);case v._with:return this.parseWithStatement(n);case v.braceL:return this.parseBlock(true,n);case v.semi:return this.parseEmptyStatement(n);case v._export:case v._import:if(this.options.ecmaVersion>10&&i===v._import){_.lastIndex=this.pos;var a=_.exec(this.input);var u=this.pos+a[0].length,o=this.input.charCodeAt(u);if(o===40){return this.parseExpressionStatement(n,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!t){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return i===v._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction()){if(e){this.unexpected()}this.next();return this.parseFunctionStatement(n,true,!e)}var l=this.value,f=this.parseExpression();if(i===v.name&&f.type==="Identifier"&&this.eat(v.colon)){return this.parseLabeledStatement(n,l,f,e)}else{return this.parseExpressionStatement(n,f)}}};V.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next();if(this.eat(v.semi)||this.insertSemicolon()){e.label=null}else if(this.type!==v.name){this.unexpected()}else{e.label=this.parseIdent();this.semicolon()}var i=0;for(;i<this.labels.length;++i){var n=this.labels[i];if(e.label==null||n.name===e.label.name){if(n.kind!=null&&(r||n.kind==="loop")){break}if(e.label&&r){break}}}if(i===this.labels.length){this.raise(e.start,"Unsyntactic "+t)}return this.finishNode(e,r?"BreakStatement":"ContinueStatement")};V.parseDebuggerStatement=function(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")};V.parseDoStatement=function(e){this.next();this.labels.push(z);e.body=this.parseStatement("do");this.labels.pop();this.expect(v._while);e.test=this.parseParenExpression();if(this.options.ecmaVersion>=6){this.eat(v.semi)}else{this.semicolon()}return this.finishNode(e,"DoWhileStatement")};V.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(z);this.enterScope(0);this.expect(v.parenL);if(this.type===v.semi){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}var r=this.isLet();if(this.type===v._var||this.type===v._const||r){var i=this.startNode(),n=r?"let":this.value;this.next();this.parseVar(i,true,n);this.finishNode(i,"VariableDeclaration");if((this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===v._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}return this.parseForIn(e,i)}if(t>-1){this.unexpected(t)}return this.parseFor(e,i)}var s=new DestructuringErrors;var a=this.parseExpression(true,s);if(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")){if(this.options.ecmaVersion>=9){if(this.type===v._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}this.toAssignable(a,false,s);this.checkLVal(a);return this.parseForIn(e,a)}else{this.checkExpressionErrors(s,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,a)};V.parseFunctionStatement=function(e,t,r){this.next();return this.parseFunction(e,X|(r?0:Z),false,t)};V.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(v._else)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")};V.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(v.semi)||this.insertSemicolon()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};V.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(v.braceL);this.labels.push(K);this.enterScope(0);var t;for(var r=false;this.type!==v.braceR;){if(this.type===v._case||this.type===v._default){var i=this.type===v._case;if(t){this.finishNode(t,"SwitchCase")}e.cases.push(t=this.startNode());t.consequent=[];this.next();if(i){t.test=this.parseExpression()}else{if(r){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}r=true;t.test=null}this.expect(v.colon)}else{if(!t){this.unexpected()}t.consequent.push(this.parseStatement(null))}}this.exitScope();if(t){this.finishNode(t,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};V.parseThrowStatement=function(e){this.next();if(y.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var Q=[];V.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===v._catch){var t=this.startNode();this.next();if(this.eat(v.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?I:0);this.checkLVal(t.param,r?$:j);this.expect(v.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}t.param=null;this.enterScope(0)}t.body=this.parseBlock(false);this.exitScope();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(v._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,"Missing catch or finally clause")}return this.finishNode(e,"TryStatement")};V.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};V.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(z);e.body=this.parseStatement("while");this.labels.pop();return this.finishNode(e,"WhileStatement")};V.parseWithStatement=function(e){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();e.object=this.parseParenExpression();e.body=this.parseStatement("with");return this.finishNode(e,"WithStatement")};V.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};V.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n<s.length;n+=1){var a=s[n];if(a.name===t){this.raise(r.start,"Label '"+t+"' is already declared")}}var u=this.type.isLoop?"loop":this.type===v._switch?"switch":null;for(var o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start){l.statementStart=this.start;l.kind=u}else{break}}this.labels.push({name:t,kind:u,statementStart:this.start});e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label");this.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")};V.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};V.parseBlock=function(e,t){if(e===void 0)e=true;if(t===void 0)t=this.startNode();t.body=[];this.expect(v.braceL);if(e){this.enterScope(0)}while(!this.eat(v.braceR)){var r=this.parseStatement(null);t.body.push(r)}if(e){this.exitScope()}return this.finishNode(t,"BlockStatement")};V.parseFor=function(e,t){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();return this.finishNode(e,"ForStatement")};V.parseForIn=function(e,t){var r=this.type===v._in;this.next();if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer")}else if(t.type==="AssignmentPattern"){this.raise(t.start,"Invalid left-hand side in for-loop")}e.left=t;e.right=r?this.parseExpression():this.parseMaybeAssign();this.expect(v.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,r?"ForInStatement":"ForOfStatement")};V.parseVar=function(e,t,r){e.declarations=[];e.kind=r;for(;;){var i=this.startNode();this.parseVarId(i,r);if(this.eat(v.eq)){i.init=this.parseMaybeAssign(t)}else if(r==="const"&&!(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(i.id.type!=="Identifier"&&!(t&&(this.type===v._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{i.init=null}e.declarations.push(this.finishNode(i,"VariableDeclarator"));if(!this.eat(v.comma)){break}}return e};V.parseVarId=function(e,t){e.id=this.parseBindingAtom();this.checkLVal(e.id,t==="var"?P:j,false)};var X=1,Z=2,J=4;V.parseFunction=function(e,t,r,i){this.initFunction(e);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i){if(this.type===v.star&&t&Z){this.unexpected()}e.generator=this.eat(v.star)}if(this.options.ecmaVersion>=8){e.async=!!i}if(t&X){e.id=t&J&&this.type!==v.name?null:this.parseIdent();if(e.id&&!(t&Z)){this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?P:j:q)}}var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(e.async,e.generator));if(!(t&X)){e.id=this.type===v.name?this.parseIdent():null}this.parseFunctionParams(e);this.parseFunctionBody(e,r,false);this.yieldPos=n;this.awaitPos=s;this.awaitIdentPos=a;return this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")};V.parseFunctionParams=function(e){this.expect(v.parenL);e.params=this.parseBindingList(v.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};V.parseClass=function(e,t){this.next();var r=this.strict;this.strict=true;this.parseClassId(e,t);this.parseClassSuper(e);var i=this.startNode();var n=false;i.body=[];this.expect(v.braceL);while(!this.eat(v.braceR)){var s=this.parseClassElement(e.superClass!==null);if(s){i.body.push(s);if(s.type==="MethodDefinition"&&s.kind==="constructor"){if(n){this.raise(s.start,"Duplicate constructor in the same class")}n=true}}}e.body=this.finishNode(i,"ClassBody");this.strict=r;return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};V.parseClassElement=function(e){var t=this;if(this.eat(v.semi)){return null}var r=this.startNode();var i=function(e,i){if(i===void 0)i=false;var n=t.start,s=t.startLoc;if(!t.eatContextual(e)){return false}if(t.type!==v.parenL&&(!i||!t.canInsertSemicolon())){return true}if(r.key){t.unexpected()}r.computed=false;r.key=t.startNodeAt(n,s);r.key.name=e;t.finishNode(r.key,"Identifier");return false};r.kind="method";r.static=i("static");var n=this.eat(v.star);var s=false;if(!n){if(this.options.ecmaVersion>=8&&i("async",true)){s=true;n=this.options.ecmaVersion>=9&&this.eat(v.star)}else if(i("get")){r.kind="get"}else if(i("set")){r.kind="set"}}if(!r.key){this.parsePropertyName(r)}var a=r.key;var u=false;if(!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")){if(r.kind!=="method"){this.raise(a.start,"Constructor can't have get/set modifier")}if(n){this.raise(a.start,"Constructor can't be a generator")}if(s){this.raise(a.start,"Constructor can't be an async method")}r.kind="constructor";u=e}else if(r.static&&a.type==="Identifier"&&a.name==="prototype"){this.raise(a.start,"Classes may not have a static property named prototype")}this.parseClassMethod(r,n,s,u);if(r.kind==="get"&&r.value.params.length!==0){this.raiseRecoverable(r.value.start,"getter should have no params")}if(r.kind==="set"&&r.value.params.length!==1){this.raiseRecoverable(r.value.start,"setter should have exactly one param")}if(r.kind==="set"&&r.value.params[0].type==="RestElement"){this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")}return r};V.parseClassMethod=function(e,t,r,i){e.value=this.parseMethod(t,r,i);return this.finishNode(e,"MethodDefinition")};V.parseClassId=function(e,t){if(this.type===v.name){e.id=this.parseIdent();if(t){this.checkLVal(e.id,j,false)}}else{if(t===true){this.unexpected()}e.id=null}};V.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts():null};V.parseExport=function(e,t){this.next();if(this.eat(v.star)){this.expectContextual("from");if(this.type!==v.string){this.unexpected()}e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(v._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===v._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next();if(r){this.next()}e.declaration=this.parseFunction(i,X|J,false,r)}else if(this.type===v._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else{e.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(null);if(e.declaration.type==="VariableDeclaration"){this.checkVariableExport(t,e.declaration.declarations)}else{this.checkExport(t,e.declaration.id.name,e.declaration.id.start)}e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers(t);if(this.eatContextual("from")){if(this.type!==v.string){this.unexpected()}e.source=this.parseExprAtom()}else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var u=a[s];this.checkUnreserved(u.local);this.checkLocalExport(u.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};V.checkExport=function(e,t,r){if(!e){return}if(has(e,t)){this.raiseRecoverable(r,"Duplicate export '"+t+"'")}e[t]=true};V.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier"){this.checkExport(e,t.name,t.start)}else if(r==="ObjectPattern"){for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.checkPatternExport(e,s)}}else if(r==="ArrayPattern"){for(var a=0,u=t.elements;a<u.length;a+=1){var o=u[a];if(o){this.checkPatternExport(e,o)}}}else if(r==="Property"){this.checkPatternExport(e,t.value)}else if(r==="AssignmentPattern"){this.checkPatternExport(e,t.left)}else if(r==="RestElement"){this.checkPatternExport(e,t.argument)}else if(r==="ParenthesizedExpression"){this.checkPatternExport(e,t.expression)}};V.checkVariableExport=function(e,t){if(!e){return}for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}};V.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};V.parseExportSpecifiers=function(e){var t=[],r=true;this.expect(v.braceL);while(!this.eat(v.braceR)){if(!r){this.expect(v.comma);if(this.afterTrailingComma(v.braceR)){break}}else{r=false}var i=this.startNode();i.local=this.parseIdent(true);i.exported=this.eatContextual("as")?this.parseIdent(true):i.local;this.checkExport(e,i.exported.name,i.exported.start);t.push(this.finishNode(i,"ExportSpecifier"))}return t};V.parseImport=function(e){this.next();if(this.type===v.string){e.specifiers=Q;e.source=this.parseExprAtom()}else{e.specifiers=this.parseImportSpecifiers();this.expectContextual("from");e.source=this.type===v.string?this.parseExprAtom():this.unexpected()}this.semicolon();return this.finishNode(e,"ImportDeclaration")};V.parseImportSpecifiers=function(){var e=[],t=true;if(this.type===v.name){var r=this.startNode();r.local=this.parseIdent();this.checkLVal(r.local,j);e.push(this.finishNode(r,"ImportDefaultSpecifier"));if(!this.eat(v.comma)){return e}}if(this.type===v.star){var i=this.startNode();this.next();this.expectContextual("as");i.local=this.parseIdent();this.checkLVal(i.local,j);e.push(this.finishNode(i,"ImportNamespaceSpecifier"));return e}this.expect(v.braceL);while(!this.eat(v.braceR)){if(!t){this.expect(v.comma);if(this.afterTrailingComma(v.braceR)){break}}else{t=false}var n=this.startNode();n.imported=this.parseIdent(true);if(this.eatContextual("as")){n.local=this.parseIdent()}else{this.checkUnreserved(n.imported);n.local=n.imported}this.checkLVal(n.local,j);e.push(this.finishNode(n,"ImportSpecifier"))}return e};V.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t){e[t].directive=e[t].expression.raw.slice(1,-1)}};V.isDirectiveCandidate=function(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Y=U.prototype;Y.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e){switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await"){this.raise(e.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";if(r){this.checkPatternErrors(r,true)}for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.toAssignable(s,t);if(s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")){this.raise(s.argument.start,"Unexpected token")}}break;case"Property":if(e.kind!=="init"){this.raise(e.key.start,"Object pattern can't contain getter or setter")}this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern";if(r){this.checkPatternErrors(r,true)}this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement";this.toAssignable(e.argument,t);if(e.argument.type==="AssignmentPattern"){this.raise(e.argument.start,"Rest elements cannot have a default value")}break;case"AssignmentExpression":if(e.operator!=="="){this.raise(e.left.end,"Only '=' operator can be used for specifying default value.")}e.type="AssignmentPattern";delete e.operator;this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"MemberExpression":if(!t){break}default:this.raise(e.start,"Assigning to rvalue")}}else if(r){this.checkPatternErrors(r,true)}return e};Y.toAssignableList=function(e,t){var r=e.length;for(var i=0;i<r;i++){var n=e[i];if(n){this.toAssignable(n,t)}}if(r){var s=e[r-1];if(this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"){this.unexpected(s.argument.start)}}return e};Y.parseSpread=function(e){var t=this.startNode();this.next();t.argument=this.parseMaybeAssign(false,e);return this.finishNode(t,"SpreadElement")};Y.parseRestBinding=function(){var e=this.startNode();this.next();if(this.options.ecmaVersion===6&&this.type!==v.name){this.unexpected()}e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")};Y.parseBindingAtom=function(){if(this.options.ecmaVersion>=6){switch(this.type){case v.bracketL:var e=this.startNode();this.next();e.elements=this.parseBindingList(v.bracketR,true,true);return this.finishNode(e,"ArrayPattern");case v.braceL:return this.parseObj(true)}}return this.parseIdent()};Y.parseBindingList=function(e,t,r){var i=[],n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(v.comma)}if(t&&this.type===v.comma){i.push(null)}else if(r&&this.afterTrailingComma(e)){break}else if(this.type===v.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s);i.push(s);if(this.type===v.comma){this.raise(this.start,"Comma is not permitted after the rest element")}this.expect(e);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a);i.push(a)}}return i};Y.parseBindingListItem=function(e){return e};Y.parseMaybeDefault=function(e,t,r){r=r||this.parseBindingAtom();if(this.options.ecmaVersion<6||!this.eat(v.eq)){return r}var i=this.startNodeAt(e,t);i.left=r;i.right=this.parseMaybeAssign();return this.finishNode(i,"AssignmentPattern")};Y.checkLVal=function(e,t,r){if(t===void 0)t=L;switch(e.type){case"Identifier":if(t===j&&e.name==="let"){this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name")}if(this.strict&&this.reservedWordsStrictBind.test(e.name)){this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode")}if(r){if(has(r,e.name)){this.raiseRecoverable(e.start,"Argument name clash")}r[e.name]=true}if(t!==L&&t!==M){this.declareName(e.name,t,e.start)}break;case"MemberExpression":if(t){this.raiseRecoverable(e.start,"Binding member expression")}break;case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.checkLVal(s,t,r)}break;case"Property":this.checkLVal(e.value,t,r);break;case"ArrayPattern":for(var a=0,u=e.elements;a<u.length;a+=1){var o=u[a];if(o){this.checkLVal(o,t,r)}}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var ee=U.prototype;ee.checkPropClash=function(e,t,r){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement"){return}if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand)){return}var i=e.key;var n;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){if(n==="__proto__"&&s==="init"){if(t.proto){if(r){if(r.doubleProto<0){r.doubleProto=i.start}}else{this.raiseRecoverable(i.start,"Redefinition of __proto__ property")}}t.proto=true}return}n="$"+n;var a=t[n];if(a){var u;if(s==="init"){u=this.strict&&a.init||a.get||a.set}else{u=a.init||a[s]}if(u){this.raiseRecoverable(i.start,"Redefinition of property")}}else{a=t[n]={init:false,get:false,set:false}}a[s]=true};ee.parseExpression=function(e,t){var r=this.start,i=this.startLoc;var n=this.parseMaybeAssign(e,t);if(this.type===v.comma){var s=this.startNodeAt(r,i);s.expressions=[n];while(this.eat(v.comma)){s.expressions.push(this.parseMaybeAssign(e,t))}return this.finishNode(s,"SequenceExpression")}return n};ee.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator){return this.parseYield(e)}else{this.exprAllowed=false}}var i=false,n=-1,s=-1;if(t){n=t.parenthesizedAssign;s=t.trailingComma;t.parenthesizedAssign=t.trailingComma=-1}else{t=new DestructuringErrors;i=true}var a=this.start,u=this.startLoc;if(this.type===v.parenL||this.type===v.name){this.potentialArrowAt=this.start}var o=this.parseMaybeConditional(e,t);if(r){o=r.call(this,o,a,u)}if(this.type.isAssign){var l=this.startNodeAt(a,u);l.operator=this.value;l.left=this.type===v.eq?this.toAssignable(o,false,t):o;if(!i){t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1}if(t.shorthandAssign>=l.left.start){t.shorthandAssign=-1}this.checkLVal(o);this.next();l.right=this.parseMaybeAssign(e);return this.finishNode(l,"AssignmentExpression")}else{if(i){this.checkExpressionErrors(t,true)}}if(n>-1){t.parenthesizedAssign=n}if(s>-1){t.trailingComma=s}return o};ee.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc;var n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t)){return n}if(this.eat(v.question)){var s=this.startNodeAt(r,i);s.test=n;s.consequent=this.parseMaybeAssign();this.expect(v.colon);s.alternate=this.parseMaybeAssign(e);return this.finishNode(s,"ConditionalExpression")}return n};ee.parseExprOps=function(e,t){var r=this.start,i=this.startLoc;var n=this.parseMaybeUnary(t,false);if(this.checkExpressionErrors(t)){return n}return n.start===r&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,r,i,-1,e)};ee.parseExprOp=function(e,t,r,i,n){var s=this.type.binop;if(s!=null&&(!n||this.type!==v._in)){if(s>i){var a=this.type===v.logicalOR||this.type===v.logicalAND;var u=this.value;this.next();var o=this.start,l=this.startLoc;var f=this.parseExprOp(this.parseMaybeUnary(null,false),o,l,s,n);var h=this.buildBinary(t,r,e,f,u,a);return this.parseExprOp(h,t,r,i,n)}}return e};ee.buildBinary=function(e,t,r,i,n,s){var a=this.startNodeAt(e,t);a.left=r;a.operator=n;a.right=i;return this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};ee.parseMaybeUnary=function(e,t){var r=this.start,i=this.startLoc,n;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)){n=this.parseAwait();t=true}else if(this.type.prefix){var s=this.startNode(),a=this.type===v.incDec;s.operator=this.value;s.prefix=true;this.next();s.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(a){this.checkLVal(s.argument)}else if(this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"){this.raiseRecoverable(s.start,"Deleting local variable in strict mode")}else{t=true}n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{n=this.parseExprSubscripts(e);if(this.checkExpressionErrors(e)){return n}while(this.type.postfix&&!this.canInsertSemicolon()){var u=this.startNodeAt(r,i);u.operator=this.value;u.prefix=false;u.argument=n;this.checkLVal(n);this.next();n=this.finishNode(u,"UpdateExpression")}}if(!t&&this.eat(v.starstar)){return this.buildBinary(r,i,n,this.parseMaybeUnary(null,false),"**",false)}else{return n}};ee.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc;var i=this.parseExprAtom(e);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")"){return i}var n=this.parseSubscripts(i,t,r);if(e&&n.type==="MemberExpression"){if(e.parenthesizedAssign>=n.start){e.parenthesizedAssign=-1}if(e.parenthesizedBind>=n.start){e.parenthesizedBind=-1}}return n};ee.parseSubscripts=function(e,t,r,i){var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&this.input.slice(e.start,e.end)==="async";while(true){var s=this.parseSubscript(e,t,r,i,n);if(s===e||s.type==="ArrowFunctionExpression"){return s}e=s}};ee.parseSubscript=function(e,t,r,i,n){var s=this.eat(v.bracketL);if(s||this.eat(v.dot)){var a=this.startNodeAt(t,r);a.object=e;a.property=s?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never");a.computed=!!s;if(s){this.expect(v.bracketR)}e=this.finishNode(a,"MemberExpression")}else if(!i&&this.eat(v.parenL)){var u=new DestructuringErrors,o=this.yieldPos,l=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;var h=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,false,u);if(n&&!this.canInsertSemicolon()&&this.eat(v.arrow)){this.checkPatternErrors(u,false);this.checkYieldAwaitInDefaultParams();if(this.awaitIdentPos>0){this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function")}this.yieldPos=o;this.awaitPos=l;this.awaitIdentPos=f;return this.parseArrowExpression(this.startNodeAt(t,r),h,true)}this.checkExpressionErrors(u,true);this.yieldPos=o||this.yieldPos;this.awaitPos=l||this.awaitPos;this.awaitIdentPos=f||this.awaitIdentPos;var c=this.startNodeAt(t,r);c.callee=e;c.arguments=h;e=this.finishNode(c,"CallExpression")}else if(this.type===v.backQuote){var p=this.startNodeAt(t,r);p.tag=e;p.quasi=this.parseTemplate({isTagged:true});e=this.finishNode(p,"TaggedTemplateExpression")}return e};ee.parseExprAtom=function(e){if(this.type===v.slash){this.readRegexp()}var t,r=this.potentialArrowAt===this.start;switch(this.type){case v._super:if(!this.allowSuper){this.raise(this.start,"'super' keyword outside a method")}t=this.startNode();this.next();if(this.type===v.parenL&&!this.allowDirectSuper){this.raise(t.start,"super() call outside constructor of a subclass")}if(this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL){this.unexpected()}return this.finishNode(t,"Super");case v._this:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case v.name:var i=this.start,n=this.startLoc,s=this.containsEsc;var a=this.parseIdent(false);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(v._function)){return this.parseFunction(this.startNodeAt(i,n),0,false,true)}if(r&&!this.canInsertSemicolon()){if(this.eat(v.arrow)){return this.parseArrowExpression(this.startNodeAt(i,n),[a],false)}if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===v.name&&!s){a=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(v.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(i,n),[a],true)}}return a;case v.regexp:var u=this.value;t=this.parseLiteral(u.value);t.regex={pattern:u.pattern,flags:u.flags};return t;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:t=this.startNode();t.value=this.type===v._null?null:this.type===v._true;t.raw=this.type.keyword;this.next();return this.finishNode(t,"Literal");case v.parenL:var o=this.start,l=this.parseParenAndDistinguishExpression(r);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)){e.parenthesizedAssign=o}if(e.parenthesizedBind<0){e.parenthesizedBind=o}}return l;case v.bracketL:t=this.startNode();this.next();t.elements=this.parseExprList(v.bracketR,true,true,e);return this.finishNode(t,"ArrayExpression");case v.braceL:return this.parseObj(false,e);case v._function:t=this.startNode();this.next();return this.parseFunction(t,0);case v._class:return this.parseClass(this.startNode(),false);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};ee.parseExprImport=function(){var e=this.startNode();this.next();switch(this.type){case v.parenL:return this.parseDynamicImport(e);default:this.unexpected()}};ee.parseDynamicImport=function(e){this.next();e.source=this.parseMaybeAssign();if(!this.eat(v.parenR)){var t=this.start;if(this.eat(v.comma)&&this.eat(v.parenR)){this.raiseRecoverable(t,"Trailing comma is not allowed in import()")}else{this.unexpected(t)}}return this.finishNode(e,"ImportExpression")};ee.parseLiteral=function(e){var t=this.startNode();t.value=e;t.raw=this.input.slice(this.start,this.end);if(t.raw.charCodeAt(t.raw.length-1)===110){t.bigint=t.raw.slice(0,-1)}this.next();return this.finishNode(t,"Literal")};ee.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();this.expect(v.parenR);return e};ee.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc;var u=[],o=true,l=false;var f=new DestructuringErrors,h=this.yieldPos,c=this.awaitPos,p;this.yieldPos=0;this.awaitPos=0;while(this.type!==v.parenR){o?o=false:this.expect(v.comma);if(n&&this.afterTrailingComma(v.parenR,true)){l=true;break}else if(this.type===v.ellipsis){p=this.start;u.push(this.parseParenItem(this.parseRestBinding()));if(this.type===v.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{u.push(this.parseMaybeAssign(false,f,this.parseParenItem))}}var d=this.start,y=this.startLoc;this.expect(v.parenR);if(e&&!this.canInsertSemicolon()&&this.eat(v.arrow)){this.checkPatternErrors(f,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=h;this.awaitPos=c;return this.parseParenArrowList(t,r,u)}if(!u.length||l){this.unexpected(this.lastTokStart)}if(p){this.unexpected(p)}this.checkExpressionErrors(f,true);this.yieldPos=h||this.yieldPos;this.awaitPos=c||this.awaitPos;if(u.length>1){i=this.startNodeAt(s,a);i.expressions=u;this.finishNodeAt(i,"SequenceExpression",d,y)}else{i=u[0]}}else{i=this.parseParenExpression()}if(this.options.preserveParens){var g=this.startNodeAt(t,r);g.expression=i;return this.finishNode(g,"ParenthesizedExpression")}else{return i}};ee.parseParenItem=function(e){return e};ee.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var te=[];ee.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var e=this.startNode();var t=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(v.dot)){e.meta=t;var r=this.containsEsc;e.property=this.parseIdent(true);if(e.property.name!=="target"||r){this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target")}if(!this.inNonArrowFunction()){this.raiseRecoverable(e.start,"new.target can only be used in functions")}return this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc,s=this.type===v._import;e.callee=this.parseSubscripts(this.parseExprAtom(),i,n,true);if(s&&e.callee.type==="ImportExpression"){this.raise(i,"Cannot use new with import()")}if(this.eat(v.parenL)){e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,false)}else{e.arguments=te}return this.finishNode(e,"NewExpression")};ee.parseTemplateElement=function(e){var t=e.isTagged;var r=this.startNode();if(this.type===v.invalidTemplate){if(!t){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}r.value={raw:this.value,cooked:null}}else{r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();r.tail=this.type===v.backQuote;return this.finishNode(r,"TemplateElement")};ee.parseTemplate=function(e){if(e===void 0)e={};var t=e.isTagged;if(t===void 0)t=false;var r=this.startNode();this.next();r.expressions=[];var i=this.parseTemplateElement({isTagged:t});r.quasis=[i];while(!i.tail){if(this.type===v.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(v.dollarBraceL);r.expressions.push(this.parseExpression());this.expect(v.braceR);r.quasis.push(i=this.parseTemplateElement({isTagged:t}))}this.next();return this.finishNode(r,"TemplateLiteral")};ee.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(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)&&!y.test(this.input.slice(this.lastTokEnd,this.start))};ee.parseObj=function(e,t){var r=this.startNode(),i=true,n={};r.properties=[];this.next();while(!this.eat(v.braceR)){if(!i){this.expect(v.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR)){break}}else{i=false}var s=this.parseProperty(e,t);if(!e){this.checkPropClash(s,n,t)}r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};ee.parseProperty=function(e,t){var r=this.startNode(),i,n,s,a;if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis)){if(e){r.argument=this.parseIdent(false);if(this.type===v.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(r,"RestElement")}if(this.type===v.parenL&&t){if(t.parenthesizedAssign<0){t.parenthesizedAssign=this.start}if(t.parenthesizedBind<0){t.parenthesizedBind=this.start}}r.argument=this.parseMaybeAssign(false,t);if(this.type===v.comma&&t&&t.trailingComma<0){t.trailingComma=this.start}return this.finishNode(r,"SpreadElement")}if(this.options.ecmaVersion>=6){r.method=false;r.shorthand=false;if(e||t){s=this.start;a=this.startLoc}if(!e){i=this.eat(v.star)}}var u=this.containsEsc;this.parsePropertyName(r);if(!e&&!u&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)){n=true;i=this.options.ecmaVersion>=9&&this.eat(v.star);this.parsePropertyName(r,t)}else{n=false}this.parsePropertyValue(r,e,i,n,s,a,t,u);return this.finishNode(r,"Property")};ee.parsePropertyValue=function(e,t,r,i,n,s,a,u){if((r||i)&&this.type===v.colon){this.unexpected()}if(this.eat(v.colon)){e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,a);e.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===v.parenL){if(t){this.unexpected()}e.kind="init";e.method=true;e.value=this.parseMethod(r,i)}else if(!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==v.comma&&this.type!==v.braceR)){if(r||i){this.unexpected()}e.kind=e.key.name;this.parsePropertyName(e);e.value=this.parseMethod(false);var o=e.kind==="get"?0:1;if(e.value.params.length!==o){var l=e.value.start;if(e.kind==="get"){this.raiseRecoverable(l,"getter should have no params")}else{this.raiseRecoverable(l,"setter should have exactly one param")}}else{if(e.kind==="set"&&e.value.params[0].type==="RestElement"){this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(r||i){this.unexpected()}this.checkUnreserved(e.key);if(e.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=n}e.kind="init";if(t){e.value=this.parseMaybeDefault(n,s,e.key)}else if(this.type===v.eq&&a){if(a.shorthandAssign<0){a.shorthandAssign=this.start}e.value=this.parseMaybeDefault(n,s,e.key)}else{e.value=e.key}e.shorthand=true}else{this.unexpected()}};ee.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL)){e.computed=true;e.key=this.parseMaybeAssign();this.expect(v.bracketR);return e.key}else{e.computed=false}}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ee.initFunction=function(e){e.id=null;if(this.options.ecmaVersion>=6){e.generator=e.expression=false}if(this.options.ecmaVersion>=8){e.async=false}};ee.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;this.initFunction(i);if(this.options.ecmaVersion>=6){i.generator=e}if(this.options.ecmaVersion>=8){i.async=!!t}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t,i.generator)|B|(r?N:0));this.expect(v.parenL);i.params=this.parseBindingList(v.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(i,false,true);this.yieldPos=n;this.awaitPos=s;this.awaitIdentPos=a;return this.finishNode(i,"FunctionExpression")};ee.parseArrowExpression=function(e,t,r){var i=this.yieldPos,n=this.awaitPos,s=this.awaitIdentPos;this.enterScope(functionFlags(r,false)|O);this.initFunction(e);if(this.options.ecmaVersion>=8){e.async=!!r}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;e.params=this.toAssignableList(t,true);this.parseFunctionBody(e,true,false);this.yieldPos=i;this.awaitPos=n;this.awaitIdentPos=s;return this.finishNode(e,"ArrowFunctionExpression")};ee.parseFunctionBody=function(e,t,r){var i=t&&this.type!==v.braceL;var n=this.strict,s=false;if(i){e.body=this.parseMaybeAssign();e.expression=true;this.checkParams(e,false)}else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!n||a){s=this.strictDirective(this.end);if(s&&a){this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var u=this.labels;this.labels=[];if(s){this.strict=true}this.checkParams(e,!n&&!s&&!t&&!r&&this.isSimpleParamList(e.params));e.body=this.parseBlock(false);e.expression=false;this.adaptDirectivePrologue(e.body.body);this.labels=u}this.exitScope();if(this.strict&&e.id){this.checkLVal(e.id,M)}this.strict=n};ee.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var i=r[t];if(i.type!=="Identifier"){return false}}return true};ee.checkParams=function(e,t){var r={};for(var i=0,n=e.params;i<n.length;i+=1){var s=n[i];this.checkLVal(s,P,t?null:r)}};ee.parseExprList=function(e,t,r,i){var n=[],s=true;while(!this.eat(e)){if(!s){this.expect(v.comma);if(t&&this.afterTrailingComma(e)){break}}else{s=false}var a=void 0;if(r&&this.type===v.comma){a=null}else if(this.type===v.ellipsis){a=this.parseSpread(i);if(i&&this.type===v.comma&&i.trailingComma<0){i.trailingComma=this.start}}else{a=this.parseMaybeAssign(false,i)}n.push(a)}return n};ee.checkUnreserved=function(e){var t=e.start;var r=e.end;var i=e.name;if(this.inGenerator&&i==="yield"){this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator")}if(this.inAsync&&i==="await"){this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function")}if(this.keywords.test(i)){this.raise(t,"Unexpected keyword '"+i+"'")}if(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1){return}var n=this.strict?this.reservedWordsStrict:this.reservedWords;if(n.test(i)){if(!this.inAsync&&i==="await"){this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function")}this.raiseRecoverable(t,"The keyword '"+i+"' is reserved")}};ee.parseIdent=function(e,t){var r=this.startNode();if(this.type===v.name){r.name=this.value}else if(this.type.keyword){r.name=this.type.keyword;if((r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)){this.context.pop()}}else{this.unexpected()}this.next(!!e);this.finishNode(r,"Identifier");if(!e){this.checkUnreserved(r);if(r.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=r.start}}return r};ee.parseYield=function(e){if(!this.yieldPos){this.yieldPos=this.start}var t=this.startNode();this.next();if(this.type===v.semi||this.canInsertSemicolon()||this.type!==v.star&&!this.type.startsExpr){t.delegate=false;t.argument=null}else{t.delegate=this.eat(v.star);t.argument=this.parseMaybeAssign(e)}return this.finishNode(t,"YieldExpression")};ee.parseAwait=function(){if(!this.awaitPos){this.awaitPos=this.start}var e=this.startNode();this.next();e.argument=this.parseMaybeUnary(null,false);return this.finishNode(e,"AwaitExpression")};var re=U.prototype;re.raise=function(e,t){var r=getLineInfo(this.input,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);i.pos=e;i.loc=r;i.raisedAt=this.pos;throw i};re.raiseRecoverable=re.raise;re.curPosition=function(){if(this.options.locations){return new A(this.curLine,this.pos-this.lineStart)}};var ie=U.prototype;var ne=function Scope(e){this.flags=e;this.var=[];this.lexical=[];this.functions=[]};ie.enterScope=function(e){this.scopeStack.push(new ne(e))};ie.exitScope=function(){this.scopeStack.pop()};ie.treatFunctionsAsVarInScope=function(e){return e.flags&k||!this.inModule&&e.flags&S};ie.declareName=function(e,t,r){var i=false;if(t===j){var n=this.currentScope();i=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1;n.lexical.push(e);if(this.inModule&&n.flags&S){delete this.undefinedExports[e]}}else if(t===$){var s=this.currentScope();s.lexical.push(e)}else if(t===q){var a=this.currentScope();if(this.treatFunctionsAsVar){i=a.lexical.indexOf(e)>-1}else{i=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1}a.functions.push(e)}else{for(var u=this.scopeStack.length-1;u>=0;--u){var o=this.scopeStack[u];if(o.lexical.indexOf(e)>-1&&!(o.flags&I&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){i=true;break}o.var.push(e);if(this.inModule&&o.flags&S){delete this.undefinedExports[e]}if(o.flags&F){break}}}if(i){this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")}};ie.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1){this.undefinedExports[e.name]=e}};ie.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ie.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&F){return t}}};ie.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&F&&!(t.flags&O)){return t}}};var se=function Node(e,t,r){this.type="";this.start=t;this.end=0;if(e.options.locations){this.loc=new C(e,r)}if(e.options.directSourceFile){this.sourceFile=e.options.directSourceFile}if(e.options.ranges){this.range=[t,0]}};var ae=U.prototype;ae.startNode=function(){return new se(this,this.start,this.startLoc)};ae.startNodeAt=function(e,t){return new se(this,e,t)};function finishNodeAt(e,t,r,i){e.type=t;e.end=r;if(this.options.locations){e.loc.end=i}if(this.options.ranges){e.range[1]=r}return e}ae.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ae.finishNodeAt=function(e,t,r,i){return finishNodeAt.call(this,e,t,r,i)};var ue=function TokContext(e,t,r,i,n){this.token=e;this.isExpr=!!t;this.preserveSpace=!!r;this.override=i;this.generator=!!n};var oe={b_stat:new ue("{",false),b_expr:new ue("{",true),b_tmpl:new ue("${",false),p_stat:new ue("(",false),p_expr:new ue("(",true),q_tmpl:new ue("`",true,true,function(e){return e.tryReadTemplateToken()}),f_stat:new ue("function",false),f_expr:new ue("function",true),f_expr_gen:new ue("function",true,false,null,true),f_gen:new ue("function",false,false,null,true)};var le=U.prototype;le.initialContext=function(){return[oe.b_stat]};le.braceIsBlock=function(e){var t=this.curContext();if(t===oe.f_expr||t===oe.f_stat){return true}if(e===v.colon&&(t===oe.b_stat||t===oe.b_expr)){return!t.isExpr}if(e===v._return||e===v.name&&this.exprAllowed){return y.test(this.input.slice(this.lastTokEnd,this.start))}if(e===v._else||e===v.semi||e===v.eof||e===v.parenR||e===v.arrow){return true}if(e===v.braceL){return t===oe.b_stat}if(e===v._var||e===v._const||e===v.name){return false}return!this.exprAllowed};le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function"){return t.generator}}return false};le.updateContext=function(e){var t,r=this.type;if(r.keyword&&e===v.dot){this.exprAllowed=false}else if(t=r.updateContext){t.call(this,e)}else{this.exprAllowed=r.beforeExpr}};v.parenR.updateContext=v.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var e=this.context.pop();if(e===oe.b_stat&&this.curContext().token==="function"){e=this.context.pop()}this.exprAllowed=!e.isExpr};v.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?oe.b_stat:oe.b_expr);this.exprAllowed=true};v.dollarBraceL.updateContext=function(){this.context.push(oe.b_tmpl);this.exprAllowed=true};v.parenL.updateContext=function(e){var t=e===v._if||e===v._for||e===v._with||e===v._while;this.context.push(t?oe.p_stat:oe.p_expr);this.exprAllowed=true};v.incDec.updateContext=function(){};v._function.updateContext=v._class.updateContext=function(e){if(e.beforeExpr&&e!==v.semi&&e!==v._else&&!(e===v._return&&y.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===v.colon||e===v.braceL)&&this.curContext()===oe.b_stat)){this.context.push(oe.f_expr)}else{this.context.push(oe.f_stat)}this.exprAllowed=false};v.backQuote.updateContext=function(){if(this.curContext()===oe.q_tmpl){this.context.pop()}else{this.context.push(oe.q_tmpl)}this.exprAllowed=false};v.star.updateContext=function(e){if(e===v._function){var t=this.context.length-1;if(this.context[t]===oe.f_expr){this.context[t]=oe.f_expr_gen}else{this.context[t]=oe.f_gen}}this.exprAllowed=true};v.name.updateContext=function(e){var t=false;if(this.options.ecmaVersion>=6&&e!==v.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){t=true}}this.exprAllowed=t};var fe="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";var he=fe+" Extended_Pictographic";var ce=he;var pe={9:fe,10:he,11:ce};var de="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";var ve="Adlam Adlm Ahom 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 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";var ye=ve+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ge=ye+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var be={9:ve,10:ye,11:ge};var _e={};function buildUnicodeData(e){var t=_e[e]={binary:wordsRegexp(pe[e]+" "+de),nonBinary:{General_Category:wordsRegexp(de),Script:wordsRegexp(be[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}buildUnicodeData(9);buildUnicodeData(10);buildUnicodeData(11);var me=U.prototype;var Ee=function RegExpValidationState(e){this.parser=e;this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"");this.unicodeProperties=_e[e.options.ecmaVersion>=11?11:e.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};Ee.prototype.reset=function reset(e,t,r){var i=r.indexOf("u")!==-1;this.start=e|0;this.source=t+"";this.flags=r;this.switchU=i&&this.parser.options.ecmaVersion>=6;this.switchN=i&&this.parser.options.ecmaVersion>=9};Ee.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Ee.prototype.at=function at(e){var t=this.source;var r=t.length;if(e>=r){return-1}var i=t.charCodeAt(e);if(!this.switchU||i<=55295||i>=57344||e+1>=r){return i}var n=t.charCodeAt(e+1);return n>=56320&&n<=57343?(i<<10)+n-56613888:i};Ee.prototype.nextIndex=function nextIndex(e){var t=this.source;var r=t.length;if(e>=r){return r}var i=t.charCodeAt(e),n;if(!this.switchU||i<=55295||i>=57344||e+1>=r||(n=t.charCodeAt(e+1))<56320||n>57343){return e+1}return e+2};Ee.prototype.current=function current(){return this.at(this.pos)};Ee.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))};Ee.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)};Ee.prototype.eat=function eat(e){if(this.current()===e){this.advance();return true}return false};function codePointToString(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}me.validateRegExpFlags=function(e){var t=e.validFlags;var r=e.flags;for(var i=0;i<r.length;i++){var n=r.charAt(i);if(t.indexOf(n)===-1){this.raise(e.start,"Invalid regular expression flag")}if(r.indexOf(n,i+1)>-1){this.raise(e.start,"Duplicate regular expression flag")}}};me.validateRegExpPattern=function(e){this.regexp_pattern(e);if(!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0){e.switchN=true;this.regexp_pattern(e)}};me.regexp_pattern=function(e){e.pos=0;e.lastIntValue=0;e.lastStringValue="";e.lastAssertionIsQuantifiable=false;e.numCapturingParens=0;e.maxBackReference=0;e.groupNames.length=0;e.backReferenceNames.length=0;this.regexp_disjunction(e);if(e.pos!==e.source.length){if(e.eat(41)){e.raise("Unmatched ')'")}if(e.eat(93)||e.eat(125)){e.raise("Lone quantifier brackets")}}if(e.maxBackReference>e.numCapturingParens){e.raise("Invalid escape")}for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];if(e.groupNames.indexOf(i)===-1){e.raise("Invalid named capture referenced")}}};me.regexp_disjunction=function(e){this.regexp_alternative(e);while(e.eat(124)){this.regexp_alternative(e)}if(this.regexp_eatQuantifier(e,true)){e.raise("Nothing to repeat")}if(e.eat(123)){e.raise("Lone quantifier brackets")}};me.regexp_alternative=function(e){while(e.pos<e.source.length&&this.regexp_eatTerm(e)){}};me.regexp_eatTerm=function(e){if(this.regexp_eatAssertion(e)){if(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)){if(e.switchU){e.raise("Invalid quantifier")}}return true}if(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e)){this.regexp_eatQuantifier(e);return true}return false};me.regexp_eatAssertion=function(e){var t=e.pos;e.lastAssertionIsQuantifiable=false;if(e.eat(94)||e.eat(36)){return true}if(e.eat(92)){if(e.eat(66)||e.eat(98)){return true}e.pos=t}if(e.eat(40)&&e.eat(63)){var r=false;if(this.options.ecmaVersion>=9){r=e.eat(60)}if(e.eat(61)||e.eat(33)){this.regexp_disjunction(e);if(!e.eat(41)){e.raise("Unterminated group")}e.lastAssertionIsQuantifiable=!r;return true}}e.pos=t;return false};me.regexp_eatQuantifier=function(e,t){if(t===void 0)t=false;if(this.regexp_eatQuantifierPrefix(e,t)){e.eat(63);return true}return false};me.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};me.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)){i=e.lastIntValue;if(e.eat(44)&&this.regexp_eatDecimalDigits(e)){n=e.lastIntValue}if(e.eat(125)){if(n!==-1&&n<i&&!t){e.raise("numbers out of order in {} quantifier")}return true}}if(e.switchU&&!t){e.raise("Incomplete quantifier")}e.pos=r}return false};me.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};me.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e)){return true}e.pos=t}return false};me.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){this.regexp_disjunction(e);if(e.eat(41)){return true}e.raise("Unterminated group")}e.pos=t}return false};me.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9){this.regexp_groupSpecifier(e)}else if(e.current()===63){e.raise("Invalid group")}this.regexp_disjunction(e);if(e.eat(41)){e.numCapturingParens+=1;return true}e.raise("Unterminated group")}return false};me.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)};me.regexp_eatInvalidBracedQuantifier=function(e){if(this.regexp_eatBracedQuantifier(e,true)){e.raise("Nothing to repeat")}return false};me.regexp_eatSyntaxCharacter=function(e){var t=e.current();if(isSyntaxCharacter(t)){e.lastIntValue=t;e.advance();return true}return false};function isSyntaxCharacter(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}me.regexp_eatPatternCharacters=function(e){var t=e.pos;var r=0;while((r=e.current())!==-1&&!isSyntaxCharacter(r)){e.advance()}return e.pos!==t};me.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();if(t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124){e.advance();return true}return false};me.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){if(e.groupNames.indexOf(e.lastStringValue)!==-1){e.raise("Duplicate capture group name")}e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};me.regexp_eatGroupName=function(e){e.lastStringValue="";if(e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62)){return true}e.raise("Invalid capture group name")}return false};me.regexp_eatRegExpIdentifierName=function(e){e.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(e)){e.lastStringValue+=codePointToString(e.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(e)){e.lastStringValue+=codePointToString(e.lastIntValue)}return true}return false};me.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos;var r=e.current();e.advance();if(r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){r=e.lastIntValue}if(isRegExpIdentifierStart(r)){e.lastIntValue=r;return true}e.pos=t;return false};function isRegExpIdentifierStart(e){return isIdentifierStart(e,true)||e===36||e===95}me.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos;var r=e.current();e.advance();if(r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){r=e.lastIntValue}if(isRegExpIdentifierPart(r)){e.lastIntValue=r;return true}e.pos=t;return false};function isRegExpIdentifierPart(e){return isIdentifierChar(e,true)||e===36||e===95||e===8204||e===8205}me.regexp_eatAtomEscape=function(e){if(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)){return true}if(e.switchU){if(e.current()===99){e.raise("Invalid unicode escape")}e.raise("Invalid escape")}return false};me.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU){if(r>e.maxBackReference){e.maxBackReference=r}return true}if(r<=e.numCapturingParens){return true}e.pos=t}return false};me.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e)){e.backReferenceNames.push(e.lastStringValue);return true}e.raise("Invalid named reference")}return false};me.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)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};me.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e)){return true}e.pos=t}return false};me.regexp_eatZero=function(e){if(e.current()===48&&!isDecimalDigit(e.lookahead())){e.lastIntValue=0;e.advance();return true}return false};me.regexp_eatControlEscape=function(e){var t=e.current();if(t===116){e.lastIntValue=9;e.advance();return true}if(t===110){e.lastIntValue=10;e.advance();return true}if(t===118){e.lastIntValue=11;e.advance();return true}if(t===102){e.lastIntValue=12;e.advance();return true}if(t===114){e.lastIntValue=13;e.advance();return true}return false};me.regexp_eatControlLetter=function(e){var t=e.current();if(isControlLetter(t)){e.lastIntValue=t%32;e.advance();return true}return false};function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}me.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(n>=56320&&n<=57343){e.lastIntValue=(r-55296)*1024+(n-56320)+65536;return true}}e.pos=i;e.lastIntValue=r}return true}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue)){return true}if(e.switchU){e.raise("Invalid unicode escape")}e.pos=t}return false};function isValidUnicode(e){return e>=0&&e<=1114111}me.regexp_eatIdentityEscape=function(e){if(e.switchU){if(this.regexp_eatSyntaxCharacter(e)){return true}if(e.eat(47)){e.lastIntValue=47;return true}return false}var t=e.current();if(t!==99&&(!e.switchN||t!==107)){e.lastIntValue=t;e.advance();return true}return false};me.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 true}return false};me.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t)){e.lastIntValue=-1;e.advance();return true}if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){e.lastIntValue=-1;e.advance();if(e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125)){return true}e.raise("Invalid property name")}return false};function isCharacterClassEscape(e){return e===100||e===68||e===115||e===83||e===119||e===87}me.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(e,r,i);return true}}e.pos=t;if(this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(e,n);return true}return false};me.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){if(!has(e.unicodeProperties.nonBinary,t)){e.raise("Invalid property name")}if(!e.unicodeProperties.nonBinary[t].test(r)){e.raise("Invalid property value")}};me.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(!e.unicodeProperties.binary.test(t)){e.raise("Invalid property name")}};me.regexp_eatUnicodePropertyName=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyNameCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||e===95}me.regexp_eatUnicodePropertyValue=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyValueCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}me.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};me.regexp_eatCharacterClass=function(e){if(e.eat(91)){e.eat(94);this.regexp_classRanges(e);if(e.eat(93)){return true}e.raise("Unterminated character class")}return false};me.regexp_classRanges=function(e){while(this.regexp_eatClassAtom(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;if(e.switchU&&(t===-1||r===-1)){e.raise("Invalid character class")}if(t!==-1&&r!==-1&&t>r){e.raise("Range out of order in character class")}}}};me.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e)){return true}if(e.switchU){var r=e.current();if(r===99||isOctalDigit(r)){e.raise("Invalid class escape")}e.raise("Invalid escape")}e.pos=t}var i=e.current();if(i!==93){e.lastIntValue=i;e.advance();return true}return false};me.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98)){e.lastIntValue=8;return true}if(e.switchU&&e.eat(45)){e.lastIntValue=45;return true}if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e)){return true}e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};me.regexp_eatClassControlLetter=function(e){var t=e.current();if(isDecimalDigit(t)||t===95){e.lastIntValue=t%32;e.advance();return true}return false};me.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2)){return true}if(e.switchU){e.raise("Invalid escape")}e.pos=t}return false};me.regexp_eatDecimalDigits=function(e){var t=e.pos;var r=0;e.lastIntValue=0;while(isDecimalDigit(r=e.current())){e.lastIntValue=10*e.lastIntValue+(r-48);e.advance()}return e.pos!==t};function isDecimalDigit(e){return e>=48&&e<=57}me.regexp_eatHexDigits=function(e){var t=e.pos;var r=0;e.lastIntValue=0;while(isHexDigit(r=e.current())){e.lastIntValue=16*e.lastIntValue+hexToInt(r);e.advance()}return e.pos!==t};function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){if(e>=65&&e<=70){return 10+(e-65)}if(e>=97&&e<=102){return 10+(e-97)}return e-48}me.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;if(t<=3&&this.regexp_eatOctalDigit(e)){e.lastIntValue=t*64+r*8+e.lastIntValue}else{e.lastIntValue=t*8+r}}else{e.lastIntValue=t}return true}return false};me.regexp_eatOctalDigit=function(e){var t=e.current();if(isOctalDigit(t)){e.lastIntValue=t-48;e.advance();return true}e.lastIntValue=0;return false};function isOctalDigit(e){return e>=48&&e<=55}me.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var n=e.current();if(!isHexDigit(n)){e.pos=r;return false}e.lastIntValue=16*e.lastIntValue+hexToInt(n);e.advance()}return true};var De=function Token(e){this.type=e.type;this.value=e.value;this.start=e.start;this.end=e.end;if(e.options.locations){this.loc=new C(e,e.startLoc,e.endLoc)}if(e.options.ranges){this.range=[e.start,e.end]}};var we=U.prototype;we.next=function(e){if(!e&&this.type.keyword&&this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword)}if(this.options.onToken){this.options.onToken(new De(this))}this.lastTokEnd=this.end;this.lastTokStart=this.start;this.lastTokEndLoc=this.endLoc;this.lastTokStartLoc=this.startLoc;this.nextToken()};we.getToken=function(){this.next();return new De(this)};if(typeof Symbol!=="undefined"){we[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===v.eof,value:t}}}}}we.curContext=function(){return this.context[this.context.length-1]};we.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace){this.skipSpace()}this.start=this.pos;if(this.options.locations){this.startLoc=this.curPosition()}if(this.pos>=this.input.length){return this.finishToken(v.eof)}if(e.override){return e.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};we.readToken=function(e){if(isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92){return this.readWord()}return this.getTokenFromCode(e)};we.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344){return e}var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};we.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition();var t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=r+2;if(this.options.locations){g.lastIndex=t;var i;while((i=g.exec(this.input))&&i.index<this.pos){++this.curLine;this.lineStart=i.index+i[0].length}}if(this.options.onComment){this.options.onComment(true,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())}};we.skipLineComment=function(e){var t=this.pos;var r=this.options.onComment&&this.curPosition();var i=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!isNewLine(i)){i=this.input.charCodeAt(++this.pos)}if(this.options.onComment){this.options.onComment(false,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())}};we.skipSpace=function(){e:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10){++this.pos}case 10:case 8232:case 8233:++this.pos;if(this.options.locations){++this.curLine;this.lineStart=this.pos}break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&b.test(String.fromCharCode(e))){++this.pos}else{break e}}}};we.finishToken=function(e,t){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var r=this.type;this.type=e;this.value=t;this.updateContext(r)};we.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57){return this.readNumber(true)}var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46){this.pos+=3;return this.finishToken(v.ellipsis)}else{++this.pos;return this.finishToken(v.dot)}};we.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(e===61){return this.finishOp(v.assign,2)}return this.finishOp(v.slash,1)};we.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1);var r=1;var i=e===42?v.star:v.modulo;if(this.options.ecmaVersion>=7&&e===42&&t===42){++r;i=v.starstar;t=this.input.charCodeAt(this.pos+2)}if(t===61){return this.finishOp(v.assign,r+1)}return this.finishOp(i,r)};we.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){return this.finishOp(e===124?v.logicalOR:v.logicalAND,2)}if(t===61){return this.finishOp(v.assign,2)}return this.finishOp(e===124?v.bitwiseOR:v.bitwiseAND,1)};we.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61){return this.finishOp(v.assign,2)}return this.finishOp(v.bitwiseXOR,1)};we.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||y.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(v.incDec,2)}if(t===61){return this.finishOp(v.assign,2)}return this.finishOp(v.plusMin,1)};we.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1);var r=1;if(t===e){r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+r)===61){return this.finishOp(v.assign,r+1)}return this.finishOp(v.bitShift,r)}if(t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(t===61){r=2}return this.finishOp(v.relational,r)};we.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(v.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(e===61&&t===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(v.arrow)}return this.finishOp(e===61?v.eq:v.prefix,1)};we.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(v.parenL);case 41:++this.pos;return this.finishToken(v.parenR);case 59:++this.pos;return this.finishToken(v.semi);case 44:++this.pos;return this.finishToken(v.comma);case 91:++this.pos;return this.finishToken(v.bracketL);case 93:++this.pos;return this.finishToken(v.bracketR);case 123:++this.pos;return this.finishToken(v.braceL);case 125:++this.pos;return this.finishToken(v.braceR);case 58:++this.pos;return this.finishToken(v.colon);case 63:++this.pos;return this.finishToken(v.question);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(t===111||t===79){return this.readRadixNumber(8)}if(t===98||t===66){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(false);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 126:return this.finishOp(v.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(e)+"'")};we.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);this.pos+=t;return this.finishToken(e,r)};we.readRegexp=function(){var e,t,r=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(r,"Unterminated regular expression")}var i=this.input.charAt(this.pos);if(y.test(i)){this.raise(r,"Unterminated regular expression")}if(!e){if(i==="["){t=true}else if(i==="]"&&t){t=false}else if(i==="/"&&!t){break}e=i==="\\"}else{e=false}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos;var a=this.readWord1();if(this.containsEsc){this.unexpected(s)}var u=this.regexpState||(this.regexpState=new Ee(this));u.reset(r,n,a);this.validateRegExpFlags(u);this.validateRegExpPattern(u);var o=null;try{o=new RegExp(n,a)}catch(e){}return this.finishToken(v.regexp,{pattern:n,flags:a,value:o})};we.readInt=function(e,t){var r=this.pos,i=0;for(var n=0,s=t==null?Infinity:t;n<s;++n){var a=this.input.charCodeAt(this.pos),u=void 0;if(a>=97){u=a-97+10}else if(a>=65){u=a-65+10}else if(a>=48&&a<=57){u=a-48}else{u=Infinity}if(u>=e){break}++this.pos;i=i*e+u}if(this.pos===r||t!=null&&this.pos-r!==t){return null}return i};we.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);if(r==null){this.raise(this.start+2,"Expected number in radix "+e)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){r=typeof BigInt!=="undefined"?BigInt(this.input.slice(t,this.pos)):null;++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(v.num,r)};we.readNumber=function(e){var t=this.pos;if(!e&&this.readInt(10)===null){this.raise(t,"Invalid number")}var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;if(r&&this.strict){this.raise(t,"Invalid number")}var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var n=this.input.slice(t,this.pos);var s=typeof BigInt!=="undefined"?BigInt(n):null;++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(v.num,s)}if(r&&/[89]/.test(this.input.slice(t,this.pos))){r=false}if(i===46&&!r){++this.pos;this.readInt(10);i=this.input.charCodeAt(this.pos)}if((i===69||i===101)&&!r){i=this.input.charCodeAt(++this.pos);if(i===43||i===45){++this.pos}if(this.readInt(10)===null){this.raise(t,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var a=this.input.slice(t,this.pos);var u=r?parseInt(a,8):parseFloat(a);return this.finishToken(v.num,u)};we.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){if(this.options.ecmaVersion<6){this.unexpected()}var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(t>1114111){this.invalidStringToken(r,"Code point out of bounds")}}else{t=this.readHexChar(4)}return t};function codePointToString$1(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}we.readString=function(e){var t="",r=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var i=this.input.charCodeAt(this.pos);if(i===e){break}if(i===92){t+=this.input.slice(r,this.pos);t+=this.readEscapedChar(false);r=this.pos}else{if(isNewLine(i,this.options.ecmaVersion>=10)){this.raise(this.start,"Unterminated string constant")}++this.pos}}t+=this.input.slice(r,this.pos++);return this.finishToken(v.string,t)};var Ae={};we.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(e){if(e===Ae){this.readInvalidTemplateToken()}else{throw e}}this.inTemplateElement=false};we.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw Ae}else{this.raise(e,t)}};we.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===v.template||this.type===v.invalidTemplate)){if(r===36){this.pos+=2;return this.finishToken(v.dollarBraceL)}else{++this.pos;return this.finishToken(v.backQuote)}}e+=this.input.slice(t,this.pos);return this.finishToken(v.template,e)}if(r===92){e+=this.input.slice(t,this.pos);e+=this.readEscapedChar(true);t=this.pos}else if(isNewLine(r)){e+=this.input.slice(t,this.pos);++this.pos;switch(r){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:e+="\n";break;default:e+=String.fromCharCode(r);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}t=this.pos}else{++this.pos}}};we.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++){switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{"){break}case"`":return this.finishToken(v.invalidTemplate,this.input.slice(this.start,this.pos))}}this.raise(this.start,"Unterminated template")};we.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);++this.pos;switch(t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString$1(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:if(this.options.locations){this.lineStart=this.pos;++this.curLine}return"";case 56:case 57:if(e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string");return null}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var n=parseInt(i,8);if(n>255){i=i.slice(0,-1);n=parseInt(i,8)}this.pos+=i.length-1;t=this.input.charCodeAt(this.pos);if((i!=="0"||t===56||t===57)&&(this.strict||e)){this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(n)}if(isNewLine(t)){return""}return String.fromCharCode(t)}};we.readHexChar=function(e){var t=this.pos;var r=this.readInt(16,e);if(r===null){this.invalidStringToken(t,"Bad character escape sequence")}return r};we.readWord1=function(){this.containsEsc=false;var e="",t=true,r=this.pos;var i=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var n=this.fullCharCodeAtPos();if(isIdentifierChar(n,i)){this.pos+=n<=65535?1:2}else if(n===92){this.containsEsc=true;e+=this.input.slice(r,this.pos);var s=this.pos;if(this.input.charCodeAt(++this.pos)!==117){this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX")}++this.pos;var a=this.readCodePoint();if(!(t?isIdentifierStart:isIdentifierChar)(a,i)){this.invalidStringToken(s,"Invalid Unicode escape")}e+=codePointToString$1(a);r=this.pos}else{break}t=false}return e+this.input.slice(r,this.pos)};we.readWord=function(){var e=this.readWord1();var t=v.name;if(this.keywords.test(e)){t=d[e]}return this.finishToken(t,e)};var Ce="7.1.0";U.acorn={Parser:U,version:Ce,defaultOptions:x,Position:A,SourceLocation:C,getLineInfo:getLineInfo,Node:se,TokenType:h,tokTypes:v,keywordTypes:d,TokContext:ue,tokContexts:oe,isIdentifierChar:isIdentifierChar,isIdentifierStart:isIdentifierStart,Token:De,isNewLine:isNewLine,lineBreak:y,lineBreakG:g,nonASCIIwhitespace:b};function parse(e,t){return U.parse(e,t)}function parseExpressionAt(e,t,r){return U.parseExpressionAt(e,t,r)}function tokenizer(e,t){return U.tokenizer(e,t)}e.Node=se;e.Parser=U;e.Position=A;e.SourceLocation=C;e.TokContext=ue;e.Token=De;e.TokenType=h;e.defaultOptions=x;e.getLineInfo=getLineInfo;e.isIdentifierChar=isIdentifierChar;e.isIdentifierStart=isIdentifierStart;e.isNewLine=isNewLine;e.keywordTypes=d;e.lineBreak=y;e.lineBreakG=g;e.nonASCIIwhitespace=b;e.parse=parse;e.parseExpressionAt=parseExpressionAt;e.tokContexts=oe;e.tokTypes=v;e.tokenizer=tokenizer;e.version=Ce;Object.defineProperty(e,"__esModule",{value:true})})},998:function(e,t,r){"use strict";var i=r(735);try{e.exports=setImmediate}catch(t){e.exports=i.nextTick}}})},300:(e,t,r)=>{e.exports=r(225)},357:e=>{"use strict";e.exports=require("assert")},293:e=>{"use strict";e.exports=require("buffer")},129:e=>{"use strict";e.exports=require("child_process")},619:e=>{"use strict";e.exports=require("constants")},417:e=>{"use strict";e.exports=require("crypto")},614:e=>{"use strict";e.exports=require("events")},747:e=>{"use strict";e.exports=require("fs")},87:e=>{"use strict";e.exports=require("os")},622:e=>{"use strict";e.exports=require("path")},413:e=>{"use strict";e.exports=require("stream")},835:e=>{"use strict";e.exports=require("url")},669:e=>{"use strict";e.exports=require("util")}};var __webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var t=__webpack_module_cache__[e]={exports:{}};var r=true;try{__webpack_modules__[e](t,t.exports,__webpack_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return t.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(300)})();
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js new file mode 100644 index 0000000..a904f52 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js @@ -0,0 +1,8 @@ +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/shebang-loader.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache Binary files differnew file mode 100644 index 0000000..5f7e50f --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache.js new file mode 100644 index 0000000..2050d23 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={170:e=>{e.exports=function(e){this.cacheable&&this.cacheable();if(typeof e==="string"&&/^#!/.test(e)){e=e.replace(/^#![^\n\r]*[\r\n]/,"")}return e}},431:(e,r,t)=>{e.exports=t(170)}};var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var _=r[t]={exports:{}};var a=true;try{e[t](_,_.exports,__webpack_require__);a=false}finally{if(a)delete r[t]}return _.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(431)})();
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js new file mode 100644 index 0000000..d8cb47f --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js @@ -0,0 +1,8 @@ +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/ts-loader.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache Binary files differnew file mode 100644 index 0000000..c3a2b60 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js new file mode 100644 index 0000000..b775ea4 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={6253:e=>{"use strict";e.exports=function diff(e){var t=arguments.length;var r=0;while(++r<t){e=diffArray(e,arguments[r])}return e};function diffArray(e,t){if(!Array.isArray(t)){return e.slice()}var r=t.length;var n=e.length;var i=-1;var a=[];while(++i<n){var o=e[i];var s=false;for(var c=0;c<r;c++){var u=t[c];if(o===u){s=true;break}}if(s===false){a.push(o)}}return a}},7994:e=>{"use strict";e.exports=function(e){return flat(e,[])};function flat(e,t){var r=0,n;var i=e.length;for(;r<i;r++){n=e[r];Array.isArray(n)?flat(n,t):t.push(n)}return t}},8441:e=>{"use strict";e.exports=function union(e){if(!Array.isArray(e)){throw new TypeError("arr-union expects the first argument to be an array.")}var t=arguments.length;var r=0;while(++r<t){var n=arguments[r];if(!n)continue;if(!Array.isArray(n)){n=[n]}for(var i=0;i<n.length;i++){var a=n[i];if(e.indexOf(a)>=0){continue}e.push(a)}}return e}},6974:e=>{"use strict";e.exports=function unique(e){if(!Array.isArray(e)){throw new TypeError("array-unique expects an array.")}var t=e.length;var r=-1;while(r++<t){var n=r+1;for(;n<e.length;++n){if(e[r]===e[n]){e.splice(n--,1)}}}return e};e.exports.immutable=function uniqueImmutable(t){if(!Array.isArray(t)){throw new TypeError("array-unique expects an array.")}var r=t.length;var n=new Array(r);for(var i=0;i<r;i++){n[i]=t[i]}return e.exports(n)}},7954:e=>{"use strict";e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var i=arguments.length,a=0;while(++a<i){var o=Object(arguments[a]);var s=Object.getOwnPropertySymbols(o);for(var c=0;c<s.length;c++){var u=s[c];if(r.call(o,u)){n[u]=o[u]}}}return n}},731:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},7322:(e,t,r)=>{"use strict";var n=r(1669);var i=r(3479);var a=r(9184);var o=r(2045);var s=r(977);var c=r(9811);var u=r(771);var l=r(3010);function namespace(e){var t=e?a.namespace(e):a;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);o(Base);Base.prototype.initBase=function(t,n){this.options=c({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(s(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+u(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(s(e)){return this.visit("define",e)}i(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});i(Base,"use",function(e){r.push(e);return Base});i(Base,"run",function(e,t,r){var n=r.length,i=0;while(n--){e[t](r[i++])}return Base});i(Base,"extend",l.extend(Base,function(e,t){e.prototype.mixins=e.prototype.mixins||[];i(e,"mixin",function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e});i(e,"mixins",function(t){Base.run(t,"mixin",e.prototype.mixins);return e});e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base}));i(Base,"mixin",function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base});i(Base,"mixins",function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base});i(Base,"inherit",l.inherit);i(Base,"bubble",l.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},3479:(e,t,r)=>{"use strict";var n=r(8586);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},4495:(e,t,r)=>{"use strict";var n=r(9532);var i=r(6974);var a=r(8333);var o=r(6059);var s=r(5380);var c=r(4877);var u=r(3762);var l=1024*64;var f={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var a=t&&t.cache===false;if(!a&&f.hasOwnProperty(r)){return f[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!a){f[r]=n}return n}braces.expand=function(e,t){return braces.create(e,a({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var a=n.output;if(t&&t.noempty===true){a=a.filter(Boolean)}if(t&&t.nodupes===true){a=i(a)}Object.defineProperty(a,"result",{enumerable:false,value:n});return a}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=a({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){f=braces.cache={}};function memoize(e,t,r,n){var i=u.createKey(e+":"+t,r);var a=r&&r.cache===false;if(a){braces.clearCache();return n(t,r)}if(f.hasOwnProperty(i)){return f[i]}var o=n(t,r);f[i]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=s;braces.cache=f;e.exports=braces},4877:(e,t,r)=>{"use strict";var n=r(8333);var i=r(9769);var a=r(6059);var o=r(5380);var s=r(3762);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=s.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new i(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;a(this.snapdragon,t);o(this.snapdragon,t);s.define(this.snapdragon,"parse",function(e,t){var r=i.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){s.define(e,"parent",t);t.nodes.push(e)}s.define(r,"parser",this.parser);return r})};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},6059:(e,t,r)=>{"use strict";var n=r(3762);e.exports=function(e,t){e.compiler.set("bos",function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var i=e.negated;var a=e.inner;a=a.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(a==="]-"){a="\\]\\-"}if(i&&a.indexOf(".")===-1){a+="."}if(i&&a.indexOf("/")===-1){a+="/"}var o=r+i+a+t;var s=e.parent.queue;var c=n.arrayify(s.pop());s.push(n.join(c,o));s.push.apply(s,[])}).set("brace",function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)}).set("brace.open",function(e){e.parent.open=e.val}).set("text",function(e){var r=e.parent.queue;var i=e.escaped;var a=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){i=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var o=n.expand(e.val,t);a=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!a.length){var s=o.val||e.val;if(t.unescape!==false){s=s.replace(/\\([,.])/g,"$1");s=s.replace(/["'`]/g,"")}a=[s];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);a=[""]}else{a=["|"]}}else{i=true}if(i&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=a;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),a.shift()));r.push.apply(r,a)}).set("brace.close",function(e){var r=e.parent.queue;var i=e.parent.parent;var a=i.queue.pop();var o=e.parent.open;var s=e.val;if(o&&s&&isOptimized(e,t)){o="(";s=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(s&&typeof c==="string"&&c.length===1){o="";s=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,s))}if(typeof a==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(a,r)))}}).set("eos",function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]})};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},5380:(e,t,r)=>{"use strict";var n=r(4240);var i=r(3762);e.exports=function(e,t){e.parser.set("bos",function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}}).set("escape",function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var a=this.prev();var o=i.last(a.nodes);var s=e(new n({type:"text",multiplier:1,val:r[0]}));if(s.val==="\\\\"){return s}if(s.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);s.val+=l;if(l==="\\"){s.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){s.val=s.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=s.val;this.consume(1);return}return concatNodes.call(this,e,s,a,t)}).set("bracket",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var i=this.prev();var a=r[0];var o=r[1]?"^":"";var s=r[2]||"";var c=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=a}var u=this.input.slice(0,2);if(s===""&&u==="\\]"){s+=u;this.consume(2);var l=this.input;var f=-1;var d;while(d=l[++f]){this.consume(1);if(d==="]"){c=d;break}s+=d}}return t(new n({type:"bracket",val:a,escaped:c!=="]",negated:o,inner:s,close:c}))}).set("multiplier",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var a=this.prev();var o=i[0];if(e&&a.type==="brace"){a.text=a.text||"";a.text+=o}var s=r(new n({type:"text",multiplier:1,match:i,val:o}));return concatNodes.call(this,r,s,a,t)}).set("brace.open",function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var a=i.last(r.nodes);if(a&&a.val&&isExtglobChar(a.val.slice(-1))){a.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var s=e(new n({type:"brace",nodes:[]}));s.push(o);r.push(s);this.push("brace",s)}).set("brace.close",function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var a=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}a.type="text";a.multiplier=0;a.escaped=true;return a}var o=this.prev();var s=i.last(o.nodes);if(s.text){var c=i.last(s.nodes);if(c.val===")"&&/[!@*?+]\(/.test(s.text)){var u=s.nodes[0];var l=s.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var f=r.nodes[1];if(f.type==="text"&&f.val===","){r.nodes.splice(1,1);r.nodes.push(f)}}r.push(a)}).set("boundary",function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))}).set("nobrace",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var i=this.prev();var a=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=a}return t(new n({type:"text",multiplier:0,val:a}))}).set("text",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var a=this.prev();var o=i[0];if(e&&a.type==="brace"){a.text=a.text||"";a.text+=o}var s=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,s,a,t)})};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var a=this.prev();var o=i.last(a.nodes);var s=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);s=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(s&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var f=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=f.length;t.val=""}var d=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(d){o.val+=t.val;return}a.push(t)}},3762:(e,t,r)=>{"use strict";var n=r(6439);var i=e.exports;i.extend=r(8333);i.flatten=r(7994);i.isObject=r(977);i.fillRange=r(9430);i.repeat=r(193);i.unique=r(6974);i.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};i.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};i.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};i.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var i=0;i<n.length;i++){var a=n[i];r+=";"+a+"="+String(t[a])}return r};i.createOptions=function(e){var t=i.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};i.join=function(e,t,r){r=r||{};e=i.arrayify(e);t=i.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var a=-1;var o=[];while(++a<n){var s=e[a];if(Array.isArray(s)){for(var c=0;c<s.length;c++){s[c]=i.join(s[c],t,r)}o.push(s);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(i.join(s,l,r))}else{o.push(s+l)}}}return o};i.split=function(e,t){var r=i.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,i.escapeBrackets(r))};i.expand=function(e,t){var r=i.extend({rangeLimit:1e4},t);var n=i.split(e,r);var a={segs:n};if(i.isQuotedString(e)){return a}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){a.val=n[0];return a}a.segs=i.stringifyArray(a.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){a.val=a.segs[a.segs.length-1]||a.val||e;a.segs=[];return a}if(o.length===2&&o[0]===o[1]){a.escaped=true;a.val=o[0];a.segs=[];return a}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var s=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-s)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);a.segs=i.fillRange.apply(null,o);if(!a.segs.length){a.escaped=true;a.val=e;return a}if(r.optimize===true){a.segs=i.stringifyArray(a.segs)}if(a.segs===""){a.val=e}else{a.val=a.segs[0]}return a}}else{a.val=e}return a};i.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=i.extend({},e);var n=[];var a=[];var o=[];var s=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){s+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){a.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){a.pop();o.pop();if(!o.length){s+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){s+=l;break}}s+=l}t.split=false;t.val=s.slice(1);t.idx=u}};i.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};i.stringifyArray=function(e){return[i.arrayify(e).join("|")]};i.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};i.isString=function(e){return e!=null&&typeof e==="string"};i.last=function(e,t){return e[e.length-(t||1)]};i.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},6650:e=>{var t=Object.prototype.toString;var r=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return t.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0){throw new RangeError("'offset' is out of bounds")}if(n===undefined){n=i}else{n>>>=0;if(n>i){throw new RangeError("'length' is out of bounds")}}return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function fromString(e,t){if(typeof t!=="string"||t===""){t="utf8"}if(!Buffer.isEncoding(t)){throw new TypeError('"encoding" must be a valid string encoding')}return r?Buffer.from(e,t):new Buffer(e,t)}function bufferFrom(e,t,n){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,t,n)}if(typeof e==="string"){return fromString(e,t)}return r?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},9184:(e,t,r)=>{"use strict";var n=r(977);var i=r(2045);var a=r(5521);var o=r(3919);var s=r(5770);var c=r(2093);var u=r(3826);var l=r(3283);var f=r(6469);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}i(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{f(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}var n=e?this[e]:this;s(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);var i=typeof n!=="undefined";this.emit("has",t,i);return i};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{c(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){a(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},3010:(e,t,r)=>{"use strict";var n=r(1669);var i=r(8441);var a=r(4728);var o=r(1261);var s=r(977);var c=e.exports;c.isObject=function isObject(e){return s(e)||typeof e==="function"};c.has=function has(e,t){t=c.arrayify(t);var r=t.length;if(c.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=c.nativeKeys(e);return c.has(i,t)}if(Array.isArray(e)){var a=e;while(r--){if(a.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};c.hasAll=function hasAll(e,t){t=c.arrayify(t);var r=t.length;while(r--){if(!c.has(e,t[r])){return false}}return true};c.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};c.noop=function noop(){return};c.identity=function identity(e){return e};c.hasConstructor=function hasConstructor(e){return c.isObject(e)&&typeof e.constructor!=="undefined"};c.nativeKeys=function nativeKeys(e){if(!c.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};c.getDescriptor=function getDescriptor(e,t){if(!c.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};c.copyDescriptor=function copyDescriptor(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=c.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};c.copy=function copy(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var i=Object.keys(t);var o=n.length,s;r=c.arrayify(r);while(o--){s=n[o];if(c.has(i,s)){a(e,s,t[s])}else if(!(s in e)&&!c.has(r,s)){c.copyDescriptor(e,t,s)}}};c.inherit=function inherit(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var i in t){n.push(i);e[i]=t[i]}n=n.concat(c.arrayify(r));var a=t.prototype||t;var o=e.prototype||e;c.copy(o,a,n)};c.extend=function(){return o.apply(null,arguments)};c.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=i([],t,n)}var a=t.length;var o=-1;while(++o<a){var s=t[o];e.on(s,r.emit.bind(r,s))}c.bubble(r,t)}}},5521:(e,t,r)=>{"use strict";var n=r(4274);var i=r(8098);e.exports=function(e,t,r){var a;if(typeof r==="string"&&t in e){var o=[].slice.call(arguments,2);a=e[t].apply(e,o)}else if(Array.isArray(r)){a=i.apply(null,arguments)}else{a=n.apply(null,arguments)}if(typeof a!=="undefined"){return a}return e}},3644:(e,t,r)=>{var n=r(9187);var i={};for(var a in n){if(n.hasOwnProperty(a)){i[n[a]]=a}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in o){if(o.hasOwnProperty(s)){if(!("channels"in o[s])){throw new Error("missing channels property: "+s)}if(!("labels"in o[s])){throw new Error("missing channel labels property: "+s)}if(o[s].labels.length!==o[s].channels){throw new Error("channel and label counts mismatch: "+s)}var c=o[s].channels;var u=o[s].labels;delete o[s].channels;delete o[s].labels;Object.defineProperty(o[s],"channels",{value:c});Object.defineProperty(o[s],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var a=Math.max(t,r,n);var o=a-i;var s;var c;var u;if(a===i){s=0}else if(t===a){s=(r-n)/o}else if(r===a){s=2+(n-t)/o}else if(n===a){s=4+(t-r)/o}s=Math.min(s*60,360);if(s<0){s+=360}u=(i+a)/2;if(a===i){c=0}else if(u<=.5){c=o/(a+i)}else{c=o/(2-a-i)}return[s,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var i;var a;var o=e[0]/255;var s=e[1]/255;var c=e[2]/255;var u=Math.max(o,s,c);var l=u-Math.min(o,s,c);var f=function(e){return(u-e)/6/l+1/2};if(l===0){i=a=0}else{a=l/u;t=f(o);r=f(s);n=f(c);if(o===u){i=n-r}else if(s===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,a*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var a=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,a*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var a;var o;var s;s=Math.min(1-t,1-r,1-n);i=(1-t-s)/(1-s)||0;a=(1-r-s)/(1-s)||0;o=(1-n-s)/(1-s)||0;return[i*100,a*100,o*100,s*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var a;for(var o in n){if(n.hasOwnProperty(o)){var s=n[o];var c=comparativeDistance(e,s);if(c<r){r=c;a=o}}}return a};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var a=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var a;var s;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;a=116*n-16;s=500*(r-n);c=200*(n-i);return[a,s,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var a;var o;var s;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){a=n*(1+r)}else{a=n+r-n*r}i=2*n-a;s=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(a-i)*6*o}else if(2*o<1){c=a}else if(3*o<2){c=i+(a-i)*(2/3-o)*6}else{c=i}s[u]=c*255}return s};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var a=Math.max(n,.01);var o;var s;n*=2;r*=n<=1?n:2-n;i*=a<=1?a:2-a;s=(n+r)/2;o=n===0?2*i/(a+i):2*r/(n+r);return[t,o*100,s*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var a=t-Math.floor(t);var o=255*n*(1-r);var s=255*n*(1-r*a);var c=255*n*(1-r*(1-a));n*=255;switch(i){case 0:return[n,c,o];case 1:return[s,n,o];case 2:return[o,n,c];case 3:return[o,s,n];case 4:return[c,o,n];case 5:return[n,o,s]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var a;var o;var s;s=(2-r)*n;a=(2-r)*i;o=r*i;o/=a<=1?a:2-a;o=o||0;s/=2;return[t,o*100,s*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var a;var o;var s;var c;if(i>1){r/=i;n/=i}a=Math.floor(6*t);o=1-n;s=6*t-a;if((a&1)!==0){s=1-s}c=r+s*(o-r);var u;var l;var f;switch(a){default:case 6:case 0:u=o;l=c;f=r;break;case 1:u=c;l=o;f=r;break;case 2:u=r;l=o;f=c;break;case 3:u=r;l=c;f=o;break;case 4:u=c;l=r;f=o;break;case 5:u=o;l=r;f=c;break}return[u*255,l*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var a;var o;var s;a=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var a;var o;i=t*3.2406+r*-1.5372+n*-.4986;a=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);a=Math.min(Math.max(0,a),1);o=Math.min(Math.max(0,o),1);return[i*255,a*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;a=500*(t-r);o=200*(r-n);return[i,a,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var o;a=(t+16)/116;i=r/500+a;o=a-n/200;var s=Math.pow(a,3);var c=Math.pow(i,3);var u=Math.pow(o,3);a=s>.008856?s:(a-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;a*=100;o*=108.883;return[i,a,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var o;i=Math.atan2(n,r);a=i*360/2/Math.PI;if(a<0){a+=360}o=Math.sqrt(r*r+n*n);return[t,o,a]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);a=r*Math.sin(o);return[t,i,a]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var a=(t>>2&1)*r*255;return[n,i,a]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var a=r%6/5*255;return[n,i,a]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var a=n>>8&255;var o=n&255;return[i,a,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var a=Math.min(Math.min(t,r),n);var o=i-a;var s;var c;if(o<1){s=a/(1-o)}else{s=0}if(o<=0){c=0}else if(i===t){c=(r-n)/o%6}else if(i===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,s*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var a=t%1*6;var o=a%1;var s=1-o;var c=0;switch(Math.floor(a)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=s;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=s;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=s}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var a=0;if(i<1){a=(n-i)/(1-i)}return[e[0],i*100,a*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},8215:(e,t,r)=>{var n=r(3644);var i=r(2076);var a={};var o=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){a[e]={};Object.defineProperty(a[e],"channels",{value:n[e].channels});Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach(function(r){var n=t[r];a[e][r]=wrapRounded(n);a[e][r].raw=wrapRaw(n)})});e.exports=a},9187:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2076:(e,t,r)=>{var n=r(3644);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var a=Object.keys(n[i]);for(var o=a.length,s=0;s<o;s++){var c=a[s];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var a=t[e].parent;while(t[a].parent){r.unshift(t[a].parent);i=link(n[t[a].parent][a],i);a=t[a].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,a=0;a<i;a++){var o=n[a];var s=t[o];if(s.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},2045:e=>{if(true){e.exports=Emitter}function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype){e[t]=Emitter.prototype[t]}return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};Emitter.prototype.once=function(e,t){function on(){this.off(e,on);t.apply(this,arguments)}on.fn=t;this.on(e,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var n;for(var i=0;i<r.length;i++){n=r[i];if(n===t||n.fn===t){r.splice(i,1);break}}return this};Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),r=this._callbacks["$"+e];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n){r[n].apply(this,t)}}return this};Emitter.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length}},5320:e=>{"use strict";e.exports=function copyDescriptor(e,t,r,n){if(!isObject(t)&&typeof t!=="function"){n=r;r=t;t=e}if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected provider to be an object")}if(typeof n!=="string"){n=r}if(typeof r!=="string"){throw new TypeError("expected key to be a string")}if(!(r in t)){throw new Error('property "'+r+'" does not exist')}var i=Object.getOwnPropertyDescriptor(t,r);if(i)Object.defineProperty(e,n,i)};function isObject(e){return{}.toString.call(e)==="[object Object]"}},535:e=>{"use strict";var t="%[a-f0-9]{2}";var r=new RegExp(t,"gi");var n=new RegExp("("+t+")+","gi");function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(e.length===1){return e}t=t||1;var r=e.slice(0,t);var n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(i){var t=e.match(r);for(var n=1;n<t.length;n++){e=decodeComponents(t,n).join("");t=e.match(r)}return e}}function customDecodeURIComponent(e){var t={"%FE%FF":"��","%FF%FE":"��"};var r=n.exec(e);while(r){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=decode(r[0]);if(i!==r[0]){t[r[0]]=i}}r=n.exec(e)}t["%C2"]="�";var a=Object.keys(t);for(var o=0;o<a.length;o++){var s=a[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`")}try{e=e.replace(/\+/g," ");return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}},4728:(e,t,r)=>{"use strict";var n=r(6203);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},6398:(e,t,r)=>{"use strict";var n=r(2585);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[a]!=="function"&&typeof e[a]!=="undefined"){return false}for(var a in e){if(!i.hasOwnProperty(a)){continue}if(n(e[a])===i[a]){continue}if(typeof e[a]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},2585:(e,t,r)=>{var n=r(4950);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},7725:(e,t,r)=>{"use strict";var n=r(5060);var i={configurable:"boolean",enumerable:"boolean",writable:"boolean"};function isDataDescriptor(e,t){if(n(e)!=="object"){return false}if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var a in e){if(a==="value")continue;if(!i.hasOwnProperty(a)){continue}if(n(e[a])===i[a]){continue}if(typeof e[a]!=="undefined"){return false}}return true}e.exports=isDataDescriptor},5060:(e,t,r)=>{var n=r(4950);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},6203:(e,t,r)=>{"use strict";var n=r(1284);var i=r(6398);var a=r(7725);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return a(e,t)}},1284:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){var r=typeof e;if(r==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(r==="string"||e instanceof String){return"string"}if(r==="number"||e instanceof Number){return"number"}if(r==="function"||e instanceof Function){if(typeof e.constructor.name!=="undefined"&&e.constructor.name.slice(0,9)==="Generator"){return"generatorfunction"}return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}r=t.call(e);if(r==="[object RegExp]"){return"regexp"}if(r==="[object Date]"){return"date"}if(r==="[object Arguments]"){return"arguments"}if(r==="[object Error]"){return"error"}if(r==="[object Promise]"){return"promise"}if(isBuffer(e)){return"buffer"}if(r==="[object Set]"){return"set"}if(r==="[object WeakSet]"){return"weakset"}if(r==="[object Map]"){return"map"}if(r==="[object WeakMap]"){return"weakmap"}if(r==="[object Symbol]"){return"symbol"}if(r==="[object Map Iterator]"){return"mapiterator"}if(r==="[object Set Iterator]"){return"setiterator"}if(r==="[object String Iterator]"){return"stringiterator"}if(r==="[object Array Iterator]"){return"arrayiterator"}if(r==="[object Int8Array]"){return"int8array"}if(r==="[object Uint8Array]"){return"uint8array"}if(r==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(r==="[object Int16Array]"){return"int16array"}if(r==="[object Uint16Array]"){return"uint16array"}if(r==="[object Int32Array]"){return"int32array"}if(r==="[object Uint32Array]"){return"uint32array"}if(r==="[object Float32Array]"){return"float32array"}if(r==="[object Float64Array]"){return"float64array"}return"object"};function isBuffer(e){return e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}},1356:e=>{e.exports=["🀄","🃏","🅰","🅱","🅾","🅿","🆎","🆑","🆒","🆓","🆔","🆕","🆖","🆗","🆘","🆙","🆚","🇦🇨","🇦🇩","🇦🇪","🇦🇫","🇦🇬","🇦🇮","🇦🇱","🇦🇲","🇦🇴","🇦🇶","🇦🇷","🇦🇸","🇦🇹","🇦🇺","🇦🇼","🇦🇽","🇦🇿","🇦","🇧🇦","🇧🇧","🇧🇩","🇧🇪","🇧🇫","🇧🇬","🇧🇭","🇧🇮","🇧🇯","🇧🇱","🇧🇲","🇧🇳","🇧🇴","🇧🇶","🇧🇷","🇧🇸","🇧🇹","🇧🇻","🇧🇼","🇧🇾","🇧🇿","🇧","🇨🇦","🇨🇨","🇨🇩","🇨🇫","🇨🇬","🇨🇭","🇨🇮","🇨🇰","🇨🇱","🇨🇲","🇨🇳","🇨🇴","🇨🇵","🇨🇷","🇨🇺","🇨🇻","🇨🇼","🇨🇽","🇨🇾","🇨🇿","🇨","🇩🇪","🇩🇬","🇩🇯","🇩🇰","🇩🇲","🇩🇴","🇩🇿","🇩","🇪🇦","🇪🇨","🇪🇪","🇪🇬","🇪🇭","🇪🇷","🇪🇸","🇪🇹","🇪🇺","🇪","🇫🇮","🇫🇯","🇫🇰","🇫🇲","🇫🇴","🇫🇷","🇫","🇬🇦","🇬🇧","🇬🇩","🇬🇪","🇬🇫","🇬🇬","🇬🇭","🇬🇮","🇬🇱","🇬🇲","🇬🇳","🇬🇵","🇬🇶","🇬🇷","🇬🇸","🇬🇹","🇬🇺","🇬🇼","🇬🇾","🇬","🇭🇰","🇭🇲","🇭🇳","🇭🇷","🇭🇹","🇭🇺","🇭","🇮🇨","🇮🇩","🇮🇪","🇮🇱","🇮🇲","🇮🇳","🇮🇴","🇮🇶","🇮🇷","🇮🇸","🇮🇹","🇮","🇯🇪","🇯🇲","🇯🇴","🇯🇵","🇯","🇰🇪","🇰🇬","🇰🇭","🇰🇮","🇰🇲","🇰🇳","🇰🇵","🇰🇷","🇰🇼","🇰🇾","🇰🇿","🇰","🇱🇦","🇱🇧","🇱🇨","🇱🇮","🇱🇰","🇱🇷","🇱🇸","🇱🇹","🇱🇺","🇱🇻","🇱🇾","🇱","🇲🇦","🇲🇨","🇲🇩","🇲🇪","🇲🇫","🇲🇬","🇲🇭","🇲🇰","🇲🇱","🇲🇲","🇲🇳","🇲🇴","🇲🇵","🇲🇶","🇲🇷","🇲🇸","🇲🇹","🇲🇺","🇲🇻","🇲🇼","🇲🇽","🇲🇾","🇲🇿","🇲","🇳🇦","🇳🇨","🇳🇪","🇳🇫","🇳🇬","🇳🇮","🇳🇱","🇳🇴","🇳🇵","🇳🇷","🇳🇺","🇳🇿","🇳","🇴🇲","🇴","🇵🇦","🇵🇪","🇵🇫","🇵🇬","🇵🇭","🇵🇰","🇵🇱","🇵🇲","🇵🇳","🇵🇷","🇵🇸","🇵🇹","🇵🇼","🇵🇾","🇵","🇶🇦","🇶","🇷🇪","🇷🇴","🇷🇸","🇷🇺","🇷🇼","🇷","🇸🇦","🇸🇧","🇸🇨","🇸🇩","🇸🇪","🇸🇬","🇸🇭","🇸🇮","🇸🇯","🇸🇰","🇸🇱","🇸🇲","🇸🇳","🇸🇴","🇸🇷","🇸🇸","🇸🇹","🇸🇻","🇸🇽","🇸🇾","🇸🇿","🇸","🇹🇦","🇹🇨","🇹🇩","🇹🇫","🇹🇬","🇹🇭","🇹🇯","🇹🇰","🇹🇱","🇹🇲","🇹🇳","🇹🇴","🇹🇷","🇹🇹","🇹🇻","🇹🇼","🇹🇿","🇹","🇺🇦","🇺🇬","🇺🇲","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇺","🇻🇦","🇻🇨","🇻🇪","🇻🇬","🇻🇮","🇻🇳","🇻🇺","🇻","🇼🇫","🇼🇸","🇼","🇽🇰","🇽","🇾🇪","🇾🇹","🇾","🇿🇦","🇿🇲","🇿🇼","🇿","🈁","🈂","🈚","🈯","🈲","🈳","🈴","🈵","🈶","🈷","🈸","🈹","🈺","🉐","🉑","🌀","🌁","🌂","🌃","🌄","🌅","🌆","🌇","🌈","🌉","🌊","🌋","🌌","🌍","🌎","🌏","🌐","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","🌝","🌞","🌟","🌠","🌡","🌤","🌥","🌦","🌧","🌨","🌩","🌪","🌫","🌬","🌭","🌮","🌯","🌰","🌱","🌲","🌳","🌴","🌵","🌶","🌷","🌸","🌹","🌺","🌻","🌼","🌽","🌾","🌿","🍀","🍁","🍂","🍃","🍄","🍅","🍆","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍔","🍕","🍖","🍗","🍘","🍙","🍚","🍛","🍜","🍝","🍞","🍟","🍠","🍡","🍢","🍣","🍤","🍥","🍦","🍧","🍨","🍩","🍪","🍫","🍬","🍭","🍮","🍯","🍰","🍱","🍲","🍳","🍴","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍼","🍽","🍾","🍿","🎀","🎁","🎂","🎃","🎄","🎅🏻","🎅🏼","🎅🏽","🎅🏾","🎅🏿","🎅","🎆","🎇","🎈","🎉","🎊","🎋","🎌","🎍","🎎","🎏","🎐","🎑","🎒","🎓","🎖","🎗","🎙","🎚","🎛","🎞","🎟","🎠","🎡","🎢","🎣","🎤","🎥","🎦","🎧","🎨","🎩","🎪","🎫","🎬","🎭","🎮","🎯","🎰","🎱","🎲","🎳","🎴","🎵","🎶","🎷","🎸","🎹","🎺","🎻","🎼","🎽","🎾","🎿","🏀","🏁","🏂🏻","🏂🏼","🏂🏽","🏂🏾","🏂🏿","🏂","🏃🏻♀️","🏃🏻♂️","🏃🏻","🏃🏼♀️","🏃🏼♂️","🏃🏼","🏃🏽♀️","🏃🏽♂️","🏃🏽","🏃🏾♀️","🏃🏾♂️","🏃🏾","🏃🏿♀️","🏃🏿♂️","🏃🏿","🏃♀️","🏃♂️","🏃","🏄🏻♀️","🏄🏻♂️","🏄🏻","🏄🏼♀️","🏄🏼♂️","🏄🏼","🏄🏽♀️","🏄🏽♂️","🏄🏽","🏄🏾♀️","🏄🏾♂️","🏄🏾","🏄🏿♀️","🏄🏿♂️","🏄🏿","🏄♀️","🏄♂️","🏄","🏅","🏆","🏇🏻","🏇🏼","🏇🏽","🏇🏾","🏇🏿","🏇","🏈","🏉","🏊🏻♀️","🏊🏻♂️","🏊🏻","🏊🏼♀️","🏊🏼♂️","🏊🏼","🏊🏽♀️","🏊🏽♂️","🏊🏽","🏊🏾♀️","🏊🏾♂️","🏊🏾","🏊🏿♀️","🏊🏿♂️","🏊🏿","🏊♀️","🏊♂️","🏊","🏋🏻♀️","🏋🏻♂️","🏋🏻","🏋🏼♀️","🏋🏼♂️","🏋🏼","🏋🏽♀️","🏋🏽♂️","🏋🏽","🏋🏾♀️","🏋🏾♂️","🏋🏾","🏋🏿♀️","🏋🏿♂️","🏋🏿","🏋️♀️","🏋️♂️","🏋","🏌🏻♀️","🏌🏻♂️","🏌🏻","🏌🏼♀️","🏌🏼♂️","🏌🏼","🏌🏽♀️","🏌🏽♂️","🏌🏽","🏌🏾♀️","🏌🏾♂️","🏌🏾","🏌🏿♀️","🏌🏿♂️","🏌🏿","🏌️♀️","🏌️♂️","🏌","🏍","🏎","🏏","🏐","🏑","🏒","🏓","🏔","🏕","🏖","🏗","🏘","🏙","🏚","🏛","🏜","🏝","🏞","🏟","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏧","🏨","🏩","🏪","🏫","🏬","🏭","🏮","🏯","🏰","🏳️🌈","🏳","🏴☠️","🏴","🏵","🏷","🏸","🏹","🏺","🏻","🏼","🏽","🏾","🏿","🐀","🐁","🐂","🐃","🐄","🐅","🐆","🐇","🐈","🐉","🐊","🐋","🐌","🐍","🐎","🐏","🐐","🐑","🐒","🐓","🐔","🐕","🐖","🐗","🐘","🐙","🐚","🐛","🐜","🐝","🐞","🐟","🐠","🐡","🐢","🐣","🐤","🐥","🐦","🐧","🐨","🐩","🐪","🐫","🐬","🐭","🐮","🐯","🐰","🐱","🐲","🐳","🐴","🐵","🐶","🐷","🐸","🐹","🐺","🐻","🐼","🐽","🐾","🐿","👀","👁🗨","👁","👂🏻","👂🏼","👂🏽","👂🏾","👂🏿","👂","👃🏻","👃🏼","👃🏽","👃🏾","👃🏿","👃","👄","👅","👆🏻","👆🏼","👆🏽","👆🏾","👆🏿","👆","👇🏻","👇🏼","👇🏽","👇🏾","👇🏿","👇","👈🏻","👈🏼","👈🏽","👈🏾","👈🏿","👈","👉🏻","👉🏼","👉🏽","👉🏾","👉🏿","👉","👊🏻","👊🏼","👊🏽","👊🏾","👊🏿","👊","👋🏻","👋🏼","👋🏽","👋🏾","👋🏿","👋","👌🏻","👌🏼","👌🏽","👌🏾","👌🏿","👌","👍🏻","👍🏼","👍🏽","👍🏾","👍🏿","👍","👎🏻","👎🏼","👎🏽","👎🏾","👎🏿","👎","👏🏻","👏🏼","👏🏽","👏🏾","👏🏿","👏","👐🏻","👐🏼","👐🏽","👐🏾","👐🏿","👐","👑","👒","👓","👔","👕","👖","👗","👘","👙","👚","👛","👜","👝","👞","👟","👠","👡","👢","👣","👤","👥","👦🏻","👦🏼","👦🏽","👦🏾","👦🏿","👦","👧🏻","👧🏼","👧🏽","👧🏾","👧🏿","👧","👨🏻🌾","👨🏻🍳","👨🏻🎓","👨🏻🎤","👨🏻🎨","👨🏻🏫","👨🏻🏭","👨🏻💻","👨🏻💼","👨🏻🔧","👨🏻🔬","👨🏻🚀","👨🏻🚒","👨🏻⚕️","👨🏻⚖️","👨🏻✈️","👨🏻","👨🏼🌾","👨🏼🍳","👨🏼🎓","👨🏼🎤","👨🏼🎨","👨🏼🏫","👨🏼🏭","👨🏼💻","👨🏼💼","👨🏼🔧","👨🏼🔬","👨🏼🚀","👨🏼🚒","👨🏼⚕️","👨🏼⚖️","👨🏼✈️","👨🏼","👨🏽🌾","👨🏽🍳","👨🏽🎓","👨🏽🎤","👨🏽🎨","👨🏽🏫","👨🏽🏭","👨🏽💻","👨🏽💼","👨🏽🔧","👨🏽🔬","👨🏽🚀","👨🏽🚒","👨🏽⚕️","👨🏽⚖️","👨🏽✈️","👨🏽","👨🏾🌾","👨🏾🍳","👨🏾🎓","👨🏾🎤","👨🏾🎨","👨🏾🏫","👨🏾🏭","👨🏾💻","👨🏾💼","👨🏾🔧","👨🏾🔬","👨🏾🚀","👨🏾🚒","👨🏾⚕️","👨🏾⚖️","👨🏾✈️","👨🏾","👨🏿🌾","👨🏿🍳","👨🏿🎓","👨🏿🎤","👨🏿🎨","👨🏿🏫","👨🏿🏭","👨🏿💻","👨🏿💼","👨🏿🔧","👨🏿🔬","👨🏿🚀","👨🏿🚒","👨🏿⚕️","👨🏿⚖️","👨🏿✈️","👨🏿","👨🌾","👨🍳","👨🎓","👨🎤","👨🎨","👨🏫","👨🏭","👨👦👦","👨👦","👨👧👦","👨👧👧","👨👧","👨👨👦👦","👨👨👦","👨👨👧👦","👨👨👧👧","👨👨👧","👨👩👦👦","👨👩👦","👨👩👧👦","👨👩👧👧","👨👩👧","👨💻","👨💼","👨🔧","👨🔬","👨🚀","👨🚒","👨⚕️","👨⚖️","👨✈️","👨❤️👨","👨❤️💋👨","👨","👩🏻🌾","👩🏻🍳","👩🏻🎓","👩🏻🎤","👩🏻🎨","👩🏻🏫","👩🏻🏭","👩🏻💻","👩🏻💼","👩🏻🔧","👩🏻🔬","👩🏻🚀","👩🏻🚒","👩🏻⚕️","👩🏻⚖️","👩🏻✈️","👩🏻","👩🏼🌾","👩🏼🍳","👩🏼🎓","👩🏼🎤","👩🏼🎨","👩🏼🏫","👩🏼🏭","👩🏼💻","👩🏼💼","👩🏼🔧","👩🏼🔬","👩🏼🚀","👩🏼🚒","👩🏼⚕️","👩🏼⚖️","👩🏼✈️","👩🏼","👩🏽🌾","👩🏽🍳","👩🏽🎓","👩🏽🎤","👩🏽🎨","👩🏽🏫","👩🏽🏭","👩🏽💻","👩🏽💼","👩🏽🔧","👩🏽🔬","👩🏽🚀","👩🏽🚒","👩🏽⚕️","👩🏽⚖️","👩🏽✈️","👩🏽","👩🏾🌾","👩🏾🍳","👩🏾🎓","👩🏾🎤","👩🏾🎨","👩🏾🏫","👩🏾🏭","👩🏾💻","👩🏾💼","👩🏾🔧","👩🏾🔬","👩🏾🚀","👩🏾🚒","👩🏾⚕️","👩🏾⚖️","👩🏾✈️","👩🏾","👩🏿🌾","👩🏿🍳","👩🏿🎓","👩🏿🎤","👩🏿🎨","👩🏿🏫","👩🏿🏭","👩🏿💻","👩🏿💼","👩🏿🔧","👩🏿🔬","👩🏿🚀","👩🏿🚒","👩🏿⚕️","👩🏿⚖️","👩🏿✈️","👩🏿","👩🌾","👩🍳","👩🎓","👩🎤","👩🎨","👩🏫","👩🏭","👩👦👦","👩👦","👩👧👦","👩👧👧","👩👧","👩👩👦👦","👩👩👦","👩👩👧👦","👩👩👧👧","👩👩👧","👩💻","👩💼","👩🔧","👩🔬","👩🚀","👩🚒","👩⚕️","👩⚖️","👩✈️","👩❤️👨","👩❤️👩","👩❤️💋👨","👩❤️💋👩","👩","👪🏻","👪🏼","👪🏽","👪🏾","👪🏿","👪","👫🏻","👫🏼","👫🏽","👫🏾","👫🏿","👫","👬🏻","👬🏼","👬🏽","👬🏾","👬🏿","👬","👭🏻","👭🏼","👭🏽","👭🏾","👭🏿","👭","👮🏻♀️","👮🏻♂️","👮🏻","👮🏼♀️","👮🏼♂️","👮🏼","👮🏽♀️","👮🏽♂️","👮🏽","👮🏾♀️","👮🏾♂️","👮🏾","👮🏿♀️","👮🏿♂️","👮🏿","👮♀️","👮♂️","👮","👯🏻♀️","👯🏻♂️","👯🏻","👯🏼♀️","👯🏼♂️","👯🏼","👯🏽♀️","👯🏽♂️","👯🏽","👯🏾♀️","👯🏾♂️","👯🏾","👯🏿♀️","👯🏿♂️","👯🏿","👯♀️","👯♂️","👯","👰🏻","👰🏼","👰🏽","👰🏾","👰🏿","👰","👱🏻♀️","👱🏻♂️","👱🏻","👱🏼♀️","👱🏼♂️","👱🏼","👱🏽♀️","👱🏽♂️","👱🏽","👱🏾♀️","👱🏾♂️","👱🏾","👱🏿♀️","👱🏿♂️","👱🏿","👱♀️","👱♂️","👱","👲🏻","👲🏼","👲🏽","👲🏾","👲🏿","👲","👳🏻♀️","👳🏻♂️","👳🏻","👳🏼♀️","👳🏼♂️","👳🏼","👳🏽♀️","👳🏽♂️","👳🏽","👳🏾♀️","👳🏾♂️","👳🏾","👳🏿♀️","👳🏿♂️","👳🏿","👳♀️","👳♂️","👳","👴🏻","👴🏼","👴🏽","👴🏾","👴🏿","👴","👵🏻","👵🏼","👵🏽","👵🏾","👵🏿","👵","👶🏻","👶🏼","👶🏽","👶🏾","👶🏿","👶","👷🏻♀️","👷🏻♂️","👷🏻","👷🏼♀️","👷🏼♂️","👷🏼","👷🏽♀️","👷🏽♂️","👷🏽","👷🏾♀️","👷🏾♂️","👷🏾","👷🏿♀️","👷🏿♂️","👷🏿","👷♀️","👷♂️","👷","👸🏻","👸🏼","👸🏽","👸🏾","👸🏿","👸","👹","👺","👻","👼🏻","👼🏼","👼🏽","👼🏾","👼🏿","👼","👽","👾","👿","💀","💁🏻♀️","💁🏻♂️","💁🏻","💁🏼♀️","💁🏼♂️","💁🏼","💁🏽♀️","💁🏽♂️","💁🏽","💁🏾♀️","💁🏾♂️","💁🏾","💁🏿♀️","💁🏿♂️","💁🏿","💁♀️","💁♂️","💁","💂🏻♀️","💂🏻♂️","💂🏻","💂🏼♀️","💂🏼♂️","💂🏼","💂🏽♀️","💂🏽♂️","💂🏽","💂🏾♀️","💂🏾♂️","💂🏾","💂🏿♀️","💂🏿♂️","💂🏿","💂♀️","💂♂️","💂","💃🏻","💃🏼","💃🏽","💃🏾","💃🏿","💃","💄","💅🏻","💅🏼","💅🏽","💅🏾","💅🏿","💅","💆🏻♀️","💆🏻♂️","💆🏻","💆🏼♀️","💆🏼♂️","💆🏼","💆🏽♀️","💆🏽♂️","💆🏽","💆🏾♀️","💆🏾♂️","💆🏾","💆🏿♀️","💆🏿♂️","💆🏿","💆♀️","💆♂️","💆","💇🏻♀️","💇🏻♂️","💇🏻","💇🏼♀️","💇🏼♂️","💇🏼","💇🏽♀️","💇🏽♂️","💇🏽","💇🏾♀️","💇🏾♂️","💇🏾","💇🏿♀️","💇🏿♂️","💇🏿","💇♀️","💇♂️","💇","💈","💉","💊","💋","💌","💍","💎","💏","💐","💑","💒","💓","💔","💕","💖","💗","💘","💙","💚","💛","💜","💝","💞","💟","💠","💡","💢","💣","💤","💥","💦","💧","💨","💩","💪🏻","💪🏼","💪🏽","💪🏾","💪🏿","💪","💫","💬","💭","💮","💯","💰","💱","💲","💳","💴","💵","💶","💷","💸","💹","💺","💻","💼","💽","💾","💿","📀","📁","📂","📃","📄","📅","📆","📇","📈","📉","📊","📋","📌","📍","📎","📏","📐","📑","📒","📓","📔","📕","📖","📗","📘","📙","📚","📛","📜","📝","📞","📟","📠","📡","📢","📣","📤","📥","📦","📧","📨","📩","📪","📫","📬","📭","📮","📯","📰","📱","📲","📳","📴","📵","📶","📷","📸","📹","📺","📻","📼","📽","📿","🔀","🔁","🔂","🔃","🔄","🔅","🔆","🔇","🔈","🔉","🔊","🔋","🔌","🔍","🔎","🔏","🔐","🔑","🔒","🔓","🔔","🔕","🔖","🔗","🔘","🔙","🔚","🔛","🔜","🔝","🔞","🔟","🔠","🔡","🔢","🔣","🔤","🔥","🔦","🔧","🔨","🔩","🔪","🔫","🔬","🔭","🔮","🔯","🔰","🔱","🔲","🔳","🔴","🔵","🔶","🔷","🔸","🔹","🔺","🔻","🔼","🔽","🕉","🕊","🕋","🕌","🕍","🕎","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","🕯","🕰","🕳","🕴🏻","🕴🏼","🕴🏽","🕴🏾","🕴🏿","🕴","🕵🏻♀️","🕵🏻♂️","🕵🏻","🕵🏼♀️","🕵🏼♂️","🕵🏼","🕵🏽♀️","🕵🏽♂️","🕵🏽","🕵🏾♀️","🕵🏾♂️","🕵🏾","🕵🏿♀️","🕵🏿♂️","🕵🏿","🕵️♀️","🕵️♂️","🕵","🕶","🕷","🕸","🕹","🕺🏻","🕺🏼","🕺🏽","🕺🏾","🕺🏿","🕺","🖇","🖊","🖋","🖌","🖍","🖐🏻","🖐🏼","🖐🏽","🖐🏾","🖐🏿","🖐","🖕🏻","🖕🏼","🖕🏽","🖕🏾","🖕🏿","🖕","🖖🏻","🖖🏼","🖖🏽","🖖🏾","🖖🏿","🖖","🖤","🖥","🖨","🖱","🖲","🖼","🗂","🗃","🗄","🗑","🗒","🗓","🗜","🗝","🗞","🗡","🗣","🗨","🗯","🗳","🗺","🗻","🗼","🗽","🗾","🗿","😀","😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😯","😰","😱","😲","😳","😴","😵","😶","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙅🏻♀️","🙅🏻♂️","🙅🏻","🙅🏼♀️","🙅🏼♂️","🙅🏼","🙅🏽♀️","🙅🏽♂️","🙅🏽","🙅🏾♀️","🙅🏾♂️","🙅🏾","🙅🏿♀️","🙅🏿♂️","🙅🏿","🙅♀️","🙅♂️","🙅","🙆🏻♀️","🙆🏻♂️","🙆🏻","🙆🏼♀️","🙆🏼♂️","🙆🏼","🙆🏽♀️","🙆🏽♂️","🙆🏽","🙆🏾♀️","🙆🏾♂️","🙆🏾","🙆🏿♀️","🙆🏿♂️","🙆🏿","🙆♀️","🙆♂️","🙆","🙇🏻♀️","🙇🏻♂️","🙇🏻","🙇🏼♀️","🙇🏼♂️","🙇🏼","🙇🏽♀️","🙇🏽♂️","🙇🏽","🙇🏾♀️","🙇🏾♂️","🙇🏾","🙇🏿♀️","🙇🏿♂️","🙇🏿","🙇♀️","🙇♂️","🙇","🙈","🙉","🙊","🙋🏻♀️","🙋🏻♂️","🙋🏻","🙋🏼♀️","🙋🏼♂️","🙋🏼","🙋🏽♀️","🙋🏽♂️","🙋🏽","🙋🏾♀️","🙋🏾♂️","🙋🏾","🙋🏿♀️","🙋🏿♂️","🙋🏿","🙋♀️","🙋♂️","🙋","🙌🏻","🙌🏼","🙌🏽","🙌🏾","🙌🏿","🙌","🙍🏻♀️","🙍🏻♂️","🙍🏻","🙍🏼♀️","🙍🏼♂️","🙍🏼","🙍🏽♀️","🙍🏽♂️","🙍🏽","🙍🏾♀️","🙍🏾♂️","🙍🏾","🙍🏿♀️","🙍🏿♂️","🙍🏿","🙍♀️","🙍♂️","🙍","🙎🏻♀️","🙎🏻♂️","🙎🏻","🙎🏼♀️","🙎🏼♂️","🙎🏼","🙎🏽♀️","🙎🏽♂️","🙎🏽","🙎🏾♀️","🙎🏾♂️","🙎🏾","🙎🏿♀️","🙎🏿♂️","🙎🏿","🙎♀️","🙎♂️","🙎","🙏🏻","🙏🏼","🙏🏽","🙏🏾","🙏🏿","🙏","🚀","🚁","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚋","🚌","🚍","🚎","🚏","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🚝","🚞","🚟","🚠","🚡","🚢","🚣🏻♀️","🚣🏻♂️","🚣🏻","🚣🏼♀️","🚣🏼♂️","🚣🏼","🚣🏽♀️","🚣🏽♂️","🚣🏽","🚣🏾♀️","🚣🏾♂️","🚣🏾","🚣🏿♀️","🚣🏿♂️","🚣🏿","🚣♀️","🚣♂️","🚣","🚤","🚥","🚦","🚧","🚨","🚩","🚪","🚫","🚬","🚭","🚮","🚯","🚰","🚱","🚲","🚳","🚴🏻♀️","🚴🏻♂️","🚴🏻","🚴🏼♀️","🚴🏼♂️","🚴🏼","🚴🏽♀️","🚴🏽♂️","🚴🏽","🚴🏾♀️","🚴🏾♂️","🚴🏾","🚴🏿♀️","🚴🏿♂️","🚴🏿","🚴♀️","🚴♂️","🚴","🚵🏻♀️","🚵🏻♂️","🚵🏻","🚵🏼♀️","🚵🏼♂️","🚵🏼","🚵🏽♀️","🚵🏽♂️","🚵🏽","🚵🏾♀️","🚵🏾♂️","🚵🏾","🚵🏿♀️","🚵🏿♂️","🚵🏿","🚵♀️","🚵♂️","🚵","🚶🏻♀️","🚶🏻♂️","🚶🏻","🚶🏼♀️","🚶🏼♂️","🚶🏼","🚶🏽♀️","🚶🏽♂️","🚶🏽","🚶🏾♀️","🚶🏾♂️","🚶🏾","🚶🏿♀️","🚶🏿♂️","🚶🏿","🚶♀️","🚶♂️","🚶","🚷","🚸","🚹","🚺","🚻","🚼","🚽","🚾","🚿","🛀🏻","🛀🏼","🛀🏽","🛀🏾","🛀🏿","🛀","🛁","🛂","🛃","🛄","🛅","🛋","🛌🏻","🛌🏼","🛌🏽","🛌🏾","🛌🏿","🛌","🛍","🛎","🛏","🛐","🛑","🛒","🛠","🛡","🛢","🛣","🛤","🛥","🛩","🛫","🛬","🛰","🛳","🛴","🛵","🛶","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤘🏻","🤘🏼","🤘🏽","🤘🏾","🤘🏿","🤘","🤙🏻","🤙🏼","🤙🏽","🤙🏾","🤙🏿","🤙","🤚🏻","🤚🏼","🤚🏽","🤚🏾","🤚🏿","🤚","🤛🏻","🤛🏼","🤛🏽","🤛🏾","🤛🏿","🤛","🤜🏻","🤜🏼","🤜🏽","🤜🏾","🤜🏿","🤜","🤝🏻","🤝🏼","🤝🏽","🤝🏾","🤝🏿","🤝","🤞🏻","🤞🏼","🤞🏽","🤞🏾","🤞🏿","🤞","🤠","🤡","🤢","🤣","🤤","🤥","🤦🏻♀️","🤦🏻♂️","🤦🏻","🤦🏼♀️","🤦🏼♂️","🤦🏼","🤦🏽♀️","🤦🏽♂️","🤦🏽","🤦🏾♀️","🤦🏾♂️","🤦🏾","🤦🏿♀️","🤦🏿♂️","🤦🏿","🤦♀️","🤦♂️","🤦","🤧","🤰🏻","🤰🏼","🤰🏽","🤰🏾","🤰🏿","🤰","🤳🏻","🤳🏼","🤳🏽","🤳🏾","🤳🏿","🤳","🤴🏻","🤴🏼","🤴🏽","🤴🏾","🤴🏿","🤴","🤵🏻","🤵🏼","🤵🏽","🤵🏾","🤵🏿","🤵","🤶🏻","🤶🏼","🤶🏽","🤶🏾","🤶🏿","🤶","🤷🏻♀️","🤷🏻♂️","🤷🏻","🤷🏼♀️","🤷🏼♂️","🤷🏼","🤷🏽♀️","🤷🏽♂️","🤷🏽","🤷🏾♀️","🤷🏾♂️","🤷🏾","🤷🏿♀️","🤷🏿♂️","🤷🏿","🤷♀️","🤷♂️","🤷","🤸🏻♀️","🤸🏻♂️","🤸🏻","🤸🏼♀️","🤸🏼♂️","🤸🏼","🤸🏽♀️","🤸🏽♂️","🤸🏽","🤸🏾♀️","🤸🏾♂️","🤸🏾","🤸🏿♀️","🤸🏿♂️","🤸🏿","🤸♀️","🤸♂️","🤸","🤹🏻♀️","🤹🏻♂️","🤹🏻","🤹🏼♀️","🤹🏼♂️","🤹🏼","🤹🏽♀️","🤹🏽♂️","🤹🏽","🤹🏾♀️","🤹🏾♂️","🤹🏾","🤹🏿♀️","🤹🏿♂️","🤹🏿","🤹♀️","🤹♂️","🤹","🤺","🤼🏻♀️","🤼🏻♂️","🤼🏻","🤼🏼♀️","🤼🏼♂️","🤼🏼","🤼🏽♀️","🤼🏽♂️","🤼🏽","🤼🏾♀️","🤼🏾♂️","🤼🏾","🤼🏿♀️","🤼🏿♂️","🤼🏿","🤼♀️","🤼♂️","🤼","🤽🏻♀️","🤽🏻♂️","🤽🏻","🤽🏼♀️","🤽🏼♂️","🤽🏼","🤽🏽♀️","🤽🏽♂️","🤽🏽","🤽🏾♀️","🤽🏾♂️","🤽🏾","🤽🏿♀️","🤽🏿♂️","🤽🏿","🤽♀️","🤽♂️","🤽","🤾🏻♀️","🤾🏻♂️","🤾🏻","🤾🏼♀️","🤾🏼♂️","🤾🏼","🤾🏽♀️","🤾🏽♂️","🤾🏽","🤾🏾♀️","🤾🏾♂️","🤾🏾","🤾🏿♀️","🤾🏿♂️","🤾🏿","🤾♀️","🤾♂️","🤾","🥀","🥁","🥂","🥃","🥄","🥅","🥇","🥈","🥉","🥊","🥋","🥐","🥑","🥒","🥓","🥔","🥕","🥖","🥗","🥘","🥙","🥚","🥛","🥜","🥝","🥞","🦀","🦁","🦂","🦃","🦄","🦅","🦆","🦇","🦈","🦉","🦊","🦋","🦌","🦍","🦎","🦏","🦐","🦑","🧀","‼","⁉","™","ℹ","↔","↕","↖","↗","↘","↙","↩","↪","#⃣","⌚","⌛","⌨","⏏","⏩","⏪","⏫","⏬","⏭","⏮","⏯","⏰","⏱","⏲","⏳","⏸","⏹","⏺","Ⓜ","▪","▫","▶","◀","◻","◼","◽","◾","☀","☁","☂","☃","☄","☎","☑","☔","☕","☘","☝🏻","☝🏼","☝🏽","☝🏾","☝🏿","☝","☠","☢","☣","☦","☪","☮","☯","☸","☹","☺","♀","♂","♈","♉","♊","♋","♌","♍","♎","♏","♐","♑","♒","♓","♠","♣","♥","♦","♨","♻","♿","⚒","⚓","⚔","⚕","⚖","⚗","⚙","⚛","⚜","⚠","⚡","⚪","⚫","⚰","⚱","⚽","⚾","⛄","⛅","⛈","⛎","⛏","⛑","⛓","⛔","⛩","⛪","⛰","⛱","⛲","⛳","⛴","⛵","⛷🏻","⛷🏼","⛷🏽","⛷🏾","⛷🏿","⛷","⛸","⛹🏻♀️","⛹🏻♂️","⛹🏻","⛹🏼♀️","⛹🏼♂️","⛹🏼","⛹🏽♀️","⛹🏽♂️","⛹🏽","⛹🏾♀️","⛹🏾♂️","⛹🏾","⛹🏿♀️","⛹🏿♂️","⛹🏿","⛹️♀️","⛹️♂️","⛹","⛺","⛽","✂","✅","✈","✉","✊🏻","✊🏼","✊🏽","✊🏾","✊🏿","✊","✋🏻","✋🏼","✋🏽","✋🏾","✋🏿","✋","✌🏻","✌🏼","✌🏽","✌🏾","✌🏿","✌","✍🏻","✍🏼","✍🏽","✍🏾","✍🏿","✍","✏","✒","✔","✖","✝","✡","✨","✳","✴","❄","❇","❌","❎","❓","❔","❕","❗","❣","❤","➕","➖","➗","➡","➰","➿","⤴","⤵","*⃣","⬅","⬆","⬇","⬛","⬜","⭐","⭕","0⃣","〰","〽","1⃣","2⃣","㊗","㊙","3⃣","4⃣","5⃣","6⃣","7⃣","8⃣","9⃣","©","®",""]},7235:(e,t,r)=>{"use strict";const n=r(3881);const i=r(2471);e.exports=class AliasFieldPlugin{constructor(e,t,r){this.source=e;this.field=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasFieldPlugin",(r,a,o)=>{if(!r.descriptionFileData)return o();const s=i(e,r);if(!s)return o();const c=n.getField(r.descriptionFileData,this.field);if(typeof c!=="object"){if(a.log)a.log("Field '"+this.field+"' doesn't contain a valid alias configuration");return o()}const u=c[s];const l=c[s.replace(/^\.\//,"")];const f=typeof u!=="undefined"?u:l;if(f===s)return o();if(f===undefined)return o();if(f===false){const e=Object.assign({},r,{path:false});return o(null,e)}const d=Object.assign({},r,{path:r.descriptionFileRoot,request:f});e.doResolve(t,d,"aliased from description file "+r.descriptionFilePath+" with mapping '"+s+"' to '"+f+"'",a,(e,t)=>{if(e)return o(e);if(t===undefined)return o(null,null);o(null,t)})})}}},2002:e=>{"use strict";function startsWith(e,t){const r=e.length;const n=t.length;if(n>r){return false}let i=-1;while(++i<n){if(e.charCodeAt(i)!==t.charCodeAt(i)){return false}}return true}e.exports=class AliasPlugin{constructor(e,t,r){this.source=e;this.options=Array.isArray(t)?t:[t];this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasPlugin",(r,n,i)=>{const a=r.request||r.path;if(!a)return i();for(const o of this.options){if(a===o.name||!o.onlyModule&&startsWith(a,o.name+"/")){if(a!==o.alias&&!startsWith(a,o.alias+"/")){const s=o.alias+a.substr(o.name.length);const c=Object.assign({},r,{request:s});return e.doResolve(t,c,"aliased with mapping '"+o.name+"': '"+o.alias+"' to '"+s+"'",n,(e,t)=>{if(e)return i(e);if(t===undefined)return i(null,null);i(null,t)})}}}return i()})}}},803:e=>{"use strict";e.exports=class AppendPlugin{constructor(e,t,r){this.source=e;this.appending=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AppendPlugin",(r,n,i)=>{const a=Object.assign({},r,{path:r.path+this.appending,relativePath:r.relativePath&&r.relativePath+this.appending});e.doResolve(t,a,this.appending,n,i)})}}},7703:e=>{"use strict";class Storage{constructor(e){this.duration=e;this.running=new Map;this.data=new Map;this.levels=[];if(e>0){this.levels.push(new Set,new Set,new Set,new Set,new Set,new Set,new Set,new Set,new Set);for(let t=8e3;t<e;t+=500)this.levels.push(new Set)}this.count=0;this.interval=null;this.needTickCheck=false;this.nextTick=null;this.passive=true;this.tick=this.tick.bind(this)}ensureTick(){if(!this.interval&&this.duration>0&&!this.nextTick)this.interval=setInterval(this.tick,Math.floor(this.duration/this.levels.length))}finished(e,t,r){const n=this.running.get(e);this.running.delete(e);if(this.duration>0){this.data.set(e,[t,r]);const n=this.levels[0];this.count-=n.size;n.add(e);this.count+=n.size;this.ensureTick()}for(let e=0;e<n.length;e++){n[e](t,r)}}finishedSync(e,t,r){if(this.duration>0){this.data.set(e,[t,r]);const n=this.levels[0];this.count-=n.size;n.add(e);this.count+=n.size;this.ensureTick()}}provide(e,t,r){if(typeof e!=="string"){r(new TypeError("path must be a string"));return}let n=this.running.get(e);if(n){n.push(r);return}if(this.duration>0){this.checkTicks();const t=this.data.get(e);if(t){return process.nextTick(()=>{r.apply(null,t)})}}this.running.set(e,n=[r]);t(e,(t,r)=>{this.finished(e,t,r)})}provideSync(e,t){if(typeof e!=="string"){throw new TypeError("path must be a string")}if(this.duration>0){this.checkTicks();const t=this.data.get(e);if(t){if(t[0])throw t[0];return t[1]}}let r;try{r=t(e)}catch(t){this.finishedSync(e,t);throw t}this.finishedSync(e,null,r);return r}tick(){const e=this.levels.pop();for(let t of e){this.data.delete(t)}this.count-=e.size;e.clear();this.levels.unshift(e);if(this.count===0){clearInterval(this.interval);this.interval=null;this.nextTick=null;return true}else if(this.nextTick){this.nextTick+=Math.floor(this.duration/this.levels.length);const e=(new Date).getTime();if(this.nextTick>e){this.nextTick=null;this.interval=setInterval(this.tick,Math.floor(this.duration/this.levels.length));return true}}else if(this.passive){clearInterval(this.interval);this.interval=null;this.nextTick=(new Date).getTime()+Math.floor(this.duration/this.levels.length)}else{this.passive=true}}checkTicks(){this.passive=false;if(this.nextTick){while(!this.tick());}}purge(e){if(!e){this.count=0;clearInterval(this.interval);this.nextTick=null;this.data.clear();this.levels.forEach(e=>{e.clear()})}else if(typeof e==="string"){for(let t of this.data.keys()){if(t.startsWith(e))this.data.delete(t)}}else{for(let t=e.length-1;t>=0;t--){this.purge(e[t])}}}}e.exports=class CachedInputFileSystem{constructor(e,t){this.fileSystem=e;this._statStorage=new Storage(t);this._readdirStorage=new Storage(t);this._readFileStorage=new Storage(t);this._readJsonStorage=new Storage(t);this._readlinkStorage=new Storage(t);this._stat=this.fileSystem.stat?this.fileSystem.stat.bind(this.fileSystem):null;if(!this._stat)this.stat=null;this._statSync=this.fileSystem.statSync?this.fileSystem.statSync.bind(this.fileSystem):null;if(!this._statSync)this.statSync=null;this._readdir=this.fileSystem.readdir?this.fileSystem.readdir.bind(this.fileSystem):null;if(!this._readdir)this.readdir=null;this._readdirSync=this.fileSystem.readdirSync?this.fileSystem.readdirSync.bind(this.fileSystem):null;if(!this._readdirSync)this.readdirSync=null;this._readFile=this.fileSystem.readFile?this.fileSystem.readFile.bind(this.fileSystem):null;if(!this._readFile)this.readFile=null;this._readFileSync=this.fileSystem.readFileSync?this.fileSystem.readFileSync.bind(this.fileSystem):null;if(!this._readFileSync)this.readFileSync=null;if(this.fileSystem.readJson){this._readJson=this.fileSystem.readJson.bind(this.fileSystem)}else if(this.readFile){this._readJson=((e,t)=>{this.readFile(e,(e,r)=>{if(e)return t(e);let n;try{n=JSON.parse(r.toString("utf-8"))}catch(e){return t(e)}t(null,n)})})}else{this.readJson=null}if(this.fileSystem.readJsonSync){this._readJsonSync=this.fileSystem.readJsonSync.bind(this.fileSystem)}else if(this.readFileSync){this._readJsonSync=(e=>{const t=this.readFileSync(e);const r=JSON.parse(t.toString("utf-8"));return r})}else{this.readJsonSync=null}this._readlink=this.fileSystem.readlink?this.fileSystem.readlink.bind(this.fileSystem):null;if(!this._readlink)this.readlink=null;this._readlinkSync=this.fileSystem.readlinkSync?this.fileSystem.readlinkSync.bind(this.fileSystem):null;if(!this._readlinkSync)this.readlinkSync=null}stat(e,t){this._statStorage.provide(e,this._stat,t)}readdir(e,t){this._readdirStorage.provide(e,this._readdir,t)}readFile(e,t){this._readFileStorage.provide(e,this._readFile,t)}readJson(e,t){this._readJsonStorage.provide(e,this._readJson,t)}readlink(e,t){this._readlinkStorage.provide(e,this._readlink,t)}statSync(e){return this._statStorage.provideSync(e,this._statSync)}readdirSync(e){return this._readdirStorage.provideSync(e,this._readdirSync)}readFileSync(e){return this._readFileStorage.provideSync(e,this._readFileSync)}readJsonSync(e){return this._readJsonStorage.provideSync(e,this._readJsonSync)}readlinkSync(e){return this._readlinkStorage.provideSync(e,this._readlinkSync)}purge(e){this._statStorage.purge(e);this._readdirStorage.purge(e);this._readFileStorage.purge(e);this._readlinkStorage.purge(e);this._readJsonStorage.purge(e)}}},5810:(e,t,r)=>{"use strict";const n=r(4426);const i=r(3881);const a=r(3556);e.exports=class ConcordExtensionsPlugin{constructor(e,t,r){this.source=e;this.options=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ConcordExtensionsPlugin",(r,o,s)=>{const c=i.getField(r.descriptionFileData,"concord");if(!c)return s();const u=n.getExtensions(r.context,c);if(!u)return s();a(u,(n,i)=>{const a=Object.assign({},r,{path:r.path+n,relativePath:r.relativePath&&r.relativePath+n});e.doResolve(t,a,"concord extension: "+n,o,i)},(e,t)=>{if(e)return s(e);if(t===undefined)return s(null,null);s(null,t)})})}}},6683:(e,t,r)=>{"use strict";const n=r(5622);const i=r(4426);const a=r(3881);e.exports=class ConcordMainPlugin{constructor(e,t,r){this.source=e;this.options=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ConcordMainPlugin",(r,o,s)=>{if(r.path!==r.descriptionFileRoot)return s();const c=a.getField(r.descriptionFileData,"concord");if(!c)return s();const u=i.getMain(r.context,c);if(!u)return s();const l=Object.assign({},r,{request:u});const f=n.basename(r.descriptionFilePath);return e.doResolve(t,l,"use "+u+" from "+f,o,s)})}}},9912:(e,t,r)=>{"use strict";const n=r(4426);const i=r(3881);const a=r(2471);e.exports=class ConcordModulesPlugin{constructor(e,t,r){this.source=e;this.options=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ConcordModulesPlugin",(r,o,s)=>{const c=a(e,r);if(!c)return s();const u=i.getField(r.descriptionFileData,"concord");if(!u)return s();const l=n.matchModule(r.context,u,c);if(l===c)return s();if(l===undefined)return s();if(l===false){const e=Object.assign({},r,{path:false});return s(null,e)}const f=Object.assign({},r,{path:r.descriptionFileRoot,request:l});e.doResolve(t,f,"aliased from description file "+r.descriptionFilePath+" with mapping '"+c+"' to '"+l+"'",o,(e,t)=>{if(e)return s(e);if(t===undefined)return s(null,null);s(null,t)})})}}},5943:(e,t,r)=>{"use strict";const n=r(3881);e.exports=class DescriptionFilePlugin{constructor(e,t,r){this.source=e;this.filenames=[].concat(t);this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DescriptionFilePlugin",(r,i,a)=>{const o=r.path;n.loadDescriptionFile(e,o,this.filenames,i,(n,s)=>{if(n)return a(n);if(!s){if(i.missing){this.filenames.forEach(t=>{i.missing.add(e.join(o,t))})}if(i.log)i.log("No description file found");return a()}const c="."+r.path.substr(s.directory.length).replace(/\\/g,"/");const u=Object.assign({},r,{descriptionFilePath:s.path,descriptionFileData:s.content,descriptionFileRoot:s.directory,relativePath:c});e.doResolve(t,u,"using description file: "+s.path+" (relative path: "+c+")",i,(e,t)=>{if(e)return a(e);if(t===undefined)return a(null,null);a(null,t)})})})}}},3881:(e,t,r)=>{"use strict";const n=r(3556);function loadDescriptionFile(e,t,r,i,a){(function findDescriptionFile(){n(r,(r,n)=>{const a=e.join(t,r);if(e.fileSystem.readJson){e.fileSystem.readJson(a,(e,t)=>{if(e){if(typeof e.code!=="undefined")return n();return onJson(e)}onJson(null,t)})}else{e.fileSystem.readFile(a,(e,t)=>{if(e)return n();let r;try{r=JSON.parse(t)}catch(e){onJson(e)}onJson(null,r)})}function onJson(e,r){if(e){if(i.log)i.log(a+" (directory description file): "+e);else e.message=a+" (directory description file): "+e;return n(e)}n(null,{content:r,directory:t,path:a})}},(e,r)=>{if(e)return a(e);if(r){return a(null,r)}else{t=cdUp(t);if(!t){return a()}else{return findDescriptionFile()}}})})()}function getField(e,t){if(!e)return undefined;if(Array.isArray(t)){let r=e;for(let e=0;e<t.length;e++){if(r===null||typeof r!=="object"){r=null;break}r=r[t[e]]}if(typeof r==="object"){return r}}else{if(typeof e[t]==="object"){return e[t]}}}function cdUp(e){if(e==="/")return null;const t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");const n=t<0?r:r<0?t:t<r?r:t;if(n<0)return null;return e.substr(0,n||1)}t.loadDescriptionFile=loadDescriptionFile;t.getField=getField;t.cdUp=cdUp},2575:e=>{"use strict";e.exports=class DirectoryExistsPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DirectoryExistsPlugin",(r,n,i)=>{const a=e.fileSystem;const o=r.path;a.stat(o,(a,s)=>{if(a||!s){if(n.missing)n.missing.add(o);if(n.log)n.log(o+" doesn't exist");return i()}if(!s.isDirectory()){if(n.missing)n.missing.add(o);if(n.log)n.log(o+" is not a directory");return i()}e.doResolve(t,r,"existing directory",n,i)})})}}},7876:e=>{"use strict";e.exports=class FileExistsPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);const r=e.fileSystem;e.getHook(this.source).tapAsync("FileExistsPlugin",(n,i,a)=>{const o=n.path;r.stat(o,(r,s)=>{if(r||!s){if(i.missing)i.missing.add(o);if(i.log)i.log(o+" doesn't exist");return a()}if(!s.isFile()){if(i.missing)i.missing.add(o);if(i.log)i.log(o+" is not a file");return a()}e.doResolve(t,n,"existing file: "+o,i,a)})})}}},3072:e=>{"use strict";e.exports=class FileKindPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("FileKindPlugin",(r,n,i)=>{if(r.directory)return i();const a=Object.assign({},r);delete a.directory;e.doResolve(t,a,null,n,i)})}}},8277:e=>{"use strict";e.exports=class JoinRequestPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPlugin",(r,n,i)=>{const a=Object.assign({},r,{path:e.join(r.path,r.request),relativePath:r.relativePath&&e.join(r.relativePath,r.request),request:undefined});e.doResolve(t,a,null,n,i)})}}},6713:(e,t,r)=>{"use strict";const n=r(5622);e.exports=class MainFieldPlugin{constructor(e,t,r){this.source=e;this.options=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("MainFieldPlugin",(r,i,a)=>{if(r.path!==r.descriptionFileRoot)return a();if(r.alreadyTriedMainField===r.descriptionFilePath)return a();const o=r.descriptionFileData;const s=n.basename(r.descriptionFilePath);let c;const u=this.options.name;if(Array.isArray(u)){let e=o;for(let t=0;t<u.length;t++){if(e===null||typeof e!=="object"){e=null;break}e=e[u[t]]}if(typeof e==="string"){c=e}}else{if(typeof o[u]==="string"){c=o[u]}}if(!c)return a();if(this.options.forceRelative&&!/^\.\.?\//.test(c))c="./"+c;const l=Object.assign({},r,{request:c,alreadyTriedMainField:r.descriptionFilePath});return e.doResolve(t,l,"use "+c+" from "+this.options.name+" in "+s,i,a)})}}},2766:e=>{"use strict";e.exports=class ModuleAppendPlugin{constructor(e,t,r){this.source=e;this.appending=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModuleAppendPlugin",(r,n,i)=>{const a=r.request.indexOf("/"),o=r.request.indexOf("\\");const s=a<0?o:o<0?a:a<o?a:o;let c,u;if(s<0){c=r.request;u=""}else{c=r.request.substr(0,s);u=r.request.substr(s)}if(c==="."||c==="..")return i();const l=c+this.appending;const f=Object.assign({},r,{request:l+u});e.doResolve(t,f,"module variation "+l,n,i)})}}},6642:e=>{"use strict";e.exports=class ModuleKindPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModuleKindPlugin",(r,n,i)=>{if(!r.module)return i();const a=Object.assign({},r);delete a.module;e.doResolve(t,a,"resolve as module",n,(e,t)=>{if(e)return i(e);if(t===undefined)return i(null,null);i(null,t)})})}}},6067:(e,t,r)=>{"use strict";const n=r(3556);const i=r(9835);e.exports=class ModulesInHierachicDirectoriesPlugin{constructor(e,t,r){this.source=e;this.directories=[].concat(t);this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInHierachicDirectoriesPlugin",(r,a,o)=>{const s=e.fileSystem;const c=i(r.path).paths.map(t=>{return this.directories.map(r=>e.join(t,r))}).reduce((e,t)=>{e.push.apply(e,t);return e},[]);n(c,(n,i)=>{s.stat(n,(o,s)=>{if(!o&&s&&s.isDirectory()){const o=Object.assign({},r,{path:n,request:"./"+r.request});const s="looking for modules in "+n;return e.doResolve(t,o,s,a,i)}if(a.log)a.log(n+" doesn't exist or is not a directory");if(a.missing)a.missing.add(n);return i()})},o)})}}},2433:e=>{"use strict";e.exports=class ModulesInRootPlugin{constructor(e,t,r){this.source=e;this.path=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInRootPlugin",(r,n,i)=>{const a=Object.assign({},r,{path:this.path,request:"./"+r.request});e.doResolve(t,a,"looking for modules in "+this.path,n,i)})}}},2276:e=>{"use strict";e.exports=class NextPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("NextPlugin",(r,n,i)=>{e.doResolve(t,r,null,n,i)})}}},7365:(e,t,r)=>{"use strict";const n=r(5808);class NodeJsInputFileSystem{readdir(e,t){n.readdir(e,(e,r)=>{t(e,r&&r.map(e=>{return e.normalize?e.normalize("NFC"):e}))})}readdirSync(e){const t=n.readdirSync(e);return t&&t.map(e=>{return e.normalize?e.normalize("NFC"):e})}}const i=["stat","statSync","readFile","readFileSync","readlink","readlinkSync"];for(const e of i){Object.defineProperty(NodeJsInputFileSystem.prototype,e,{configurable:true,writable:true,value:n[e].bind(n)})}e.exports=NodeJsInputFileSystem},1121:e=>{"use strict";e.exports=class ParsePlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ParsePlugin",(r,n,i)=>{const a=e.parse(r.request);const o=Object.assign({},r,a);if(r.query&&!a.query){o.query=r.query}if(a&&n.log){if(a.module)n.log("Parsed request is a module");if(a.directory)n.log("Parsed request is a directory")}e.doResolve(t,o,null,n,i)})}}},3679:(e,t,r)=>{"use strict";const n=r(1669);const i=r(3460);const a=r(3575);const o=r(2980);const s=r(2039);const c=r(2227);const u=/^\.$|^\.[\\\/]|^\.\.$|^\.\.[\/\\]|^\/|^[A-Z]:[\\\/]/i;const l=/[\/\\]$/i;const f=r(9987);const d=new Map;const p=r(5369);function withName(e,t){t.name=e;return t}function toCamelCase(e){return e.replace(/-([a-z])/g,e=>e.substr(1).toUpperCase())}const g=n.deprecate((e,t)=>{e.add(t)},"Resolver: 'missing' is now a Set. Use add instead of push.");const _=n.deprecate(e=>{return e},"Resolver: The callback argument was splitted into resolveContext and callback.");const m=n.deprecate(e=>{return e},"Resolver#doResolve: The type arguments (string) is now a hook argument (Hook). Pass a reference to the hook instead.");class Resolver extends i{constructor(e){super();this.fileSystem=e;this.hooks={resolveStep:withName("resolveStep",new a(["hook","request"])),noResolve:withName("noResolve",new a(["request","error"])),resolve:withName("resolve",new o(["request","resolveContext"])),result:new s(["result","resolveContext"])};this._pluginCompat.tap("Resolver: before/after",e=>{if(/^before-/.test(e.name)){e.name=e.name.substr(7);e.stage=-10}else if(/^after-/.test(e.name)){e.name=e.name.substr(6);e.stage=10}});this._pluginCompat.tap("Resolver: step hooks",e=>{const t=e.name;const r=!/^resolve(-s|S)tep$|^no(-r|R)esolve$/.test(t);if(r){e.async=true;this.ensureHook(t);const r=e.fn;e.fn=((e,t,n)=>{const i=(e,t)=>{if(e)return n(e);if(t!==undefined)return n(null,t);n()};for(const e in t){i[e]=t[e]}r.call(this,e,i)})}})}ensureHook(e){if(typeof e!=="string")return e;e=toCamelCase(e);if(/^before/.test(e)){return this.ensureHook(e[6].toLowerCase()+e.substr(7)).withOptions({stage:-10})}if(/^after/.test(e)){return this.ensureHook(e[5].toLowerCase()+e.substr(6)).withOptions({stage:10})}const t=this.hooks[e];if(!t){return this.hooks[e]=withName(e,new o(["request","resolveContext"]))}return t}getHook(e){if(typeof e!=="string")return e;e=toCamelCase(e);if(/^before/.test(e)){return this.getHook(e[6].toLowerCase()+e.substr(7)).withOptions({stage:-10})}if(/^after/.test(e)){return this.getHook(e[5].toLowerCase()+e.substr(6)).withOptions({stage:10})}const t=this.hooks[e];if(!t){throw new Error(`Hook ${e} doesn't exist`)}return t}resolveSync(e,t,r){let n,i,a=false;this.resolve(e,t,r,{},(e,t)=>{n=e;i=t;a=true});if(!a)throw new Error("Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!");if(n)throw n;return i}resolve(e,t,r,n,i){if(typeof i!=="function"){i=_(n)}const a={context:e,path:t,request:r};const o="resolve '"+r+"' in '"+t+"'";return this.doResolve(this.hooks.resolve,a,o,{missing:n.missing,stack:n.stack},(e,t)=>{if(!e&&t){return i(null,t.path===false?false:t.path+(t.query||""),t)}const r=new Set;r.push=(e=>g(r,e));const s=[];return this.doResolve(this.hooks.resolve,a,o,{log:e=>{if(n.log){n.log(e)}s.push(e)},missing:r,stack:n.stack},(e,t)=>{if(e)return i(e);const n=new Error("Can't "+o);n.details=s.join("\n");n.missing=Array.from(r);this.hooks.noResolve.call(a,n);return i(n)})})}doResolve(e,t,r,n,i){if(typeof i!=="function"){i=_(n)}if(typeof e==="string"){const t=toCamelCase(e);e=m(this.hooks[t]);if(!e){throw new Error(`Hook "${t}" doesn't exist`)}}if(typeof i!=="function")throw new Error("callback is not a function "+Array.from(arguments));if(!n)throw new Error("resolveContext is not an object "+Array.from(arguments));const a=e.name+": ("+t.path+") "+(t.request||"")+(t.query||"")+(t.directory?" directory":"")+(t.module?" module":"");let o;if(n.stack){o=new Set(n.stack);if(n.stack.has(a)){const e=new Error("Recursion in resolving\nStack:\n "+Array.from(o).join("\n "));e.recursion=true;if(n.log)n.log("abort resolving because of recursion");return i(e)}o.add(a)}else{o=new Set([a])}this.hooks.resolveStep.call(e,t);if(e.isUsed()){const a=c({log:n.log,missing:n.missing,stack:o},r);return e.callAsync(t,a,(e,t)=>{if(e)return i(e);if(t)return i(null,t);i()})}else{i()}}parse(e){if(e==="")return null;const t={request:"",query:"",module:false,directory:false,file:false};const r=e.indexOf("?");if(r===0){t.query=e}else if(r>0){t.request=e.slice(0,r);t.query=e.slice(r)}else{t.request=e}if(t.request){t.module=this.isModule(t.request);t.directory=this.isDirectory(t.request);if(t.directory){t.request=t.request.substr(0,t.request.length-1)}}return t}isModule(e){return!u.test(e)}isDirectory(e){return l.test(e)}join(e,t){let r;let n=d.get(e);if(typeof n==="undefined"){d.set(e,n=new Map)}else{r=n.get(t);if(typeof r!=="undefined")return r}r=f(e,t);n.set(t,r);return r}normalize(e){return p(e)}}e.exports=Resolver},7934:(e,t,r)=>{"use strict";const n=r(3679);const i=r(4407);const a=r(1121);const o=r(5943);const s=r(2276);const c=r(8029);const u=r(6642);const l=r(3072);const f=r(8277);const d=r(6067);const p=r(2433);const g=r(2002);const _=r(7235);const m=r(5810);const y=r(6683);const h=r(9912);const v=r(2575);const T=r(7876);const S=r(4362);const b=r(6713);const x=r(5187);const C=r(803);const E=r(6182);const D=r(2766);const k=r(2216);t.createResolver=function(e){let t=e.modules||["node_modules"];const r=e.descriptionFiles||["package.json"];const N=e.plugins&&e.plugins.slice()||[];let A=e.mainFields||["main"];const O=e.aliasFields||[];const F=e.mainFiles||["index"];let P=e.extensions||[".js",".json",".node"];const I=e.enforceExtension||false;let w=e.moduleExtensions||[];const M=e.enforceModuleExtension||false;let L=e.alias||[];const R=typeof e.symlinks!=="undefined"?e.symlinks:true;const B=e.resolveToContext||false;let j=e.unsafeCache||false;const J=typeof e.cacheWithContext!=="undefined"?e.cacheWithContext:true;const W=e.concord||false;const U=e.cachePredicate||function(){return true};const z=e.fileSystem;const V=e.useSyncFileSystemCalls;let K=e.resolver;if(!K){K=new n(V?new i(z):z)}P=[].concat(P);w=[].concat(w);t=mergeFilteredToArray([].concat(t),e=>{return!isAbsolutePath(e)});A=A.map(e=>{if(typeof e==="string"||Array.isArray(e)){e={name:e,forceRelative:true}}return e});if(typeof L==="object"&&!Array.isArray(L)){L=Object.keys(L).map(e=>{let t=false;let r=L[e];if(/\$$/.test(e)){t=true;e=e.substr(0,e.length-1)}if(typeof r==="string"){r={alias:r}}r=Object.assign({name:e,onlyModule:t},r);return r})}if(j&&typeof j!=="object"){j={}}K.ensureHook("resolve");K.ensureHook("parsedResolve");K.ensureHook("describedResolve");K.ensureHook("rawModule");K.ensureHook("module");K.ensureHook("relative");K.ensureHook("describedRelative");K.ensureHook("directory");K.ensureHook("existingDirectory");K.ensureHook("undescribedRawFile");K.ensureHook("rawFile");K.ensureHook("file");K.ensureHook("existingFile");K.ensureHook("resolved");if(j){N.push(new k("resolve",U,j,J,"new-resolve"));N.push(new a("new-resolve","parsed-resolve"))}else{N.push(new a("resolve","parsed-resolve"))}N.push(new o("parsed-resolve",r,"described-resolve"));N.push(new s("after-parsed-resolve","described-resolve"));if(L.length>0)N.push(new g("described-resolve",L,"resolve"));if(W){N.push(new h("described-resolve",{},"resolve"))}O.forEach(e=>{N.push(new _("described-resolve",e,"resolve"))});N.push(new u("after-described-resolve","raw-module"));N.push(new f("after-described-resolve","relative"));w.forEach(e=>{N.push(new D("raw-module",e,"module"))});if(!M)N.push(new c("raw-module",null,"module"));t.forEach(e=>{if(Array.isArray(e))N.push(new d("module",e,"resolve"));else N.push(new p("module",e,"resolve"))});N.push(new o("relative",r,"described-relative"));N.push(new s("after-relative","described-relative"));N.push(new l("described-relative","raw-file"));N.push(new c("described-relative","as directory","directory"));N.push(new v("directory","existing-directory"));if(B){N.push(new s("existing-directory","resolved"))}else{if(W){N.push(new y("existing-directory",{},"resolve"))}A.forEach(e=>{N.push(new b("existing-directory",e,"resolve"))});F.forEach(e=>{N.push(new x("existing-directory",e,"undescribed-raw-file"))});N.push(new o("undescribed-raw-file",r,"raw-file"));N.push(new s("after-undescribed-raw-file","raw-file"));if(!I){N.push(new c("raw-file","no extension","file"))}if(W){N.push(new m("raw-file",{},"file"))}P.forEach(e=>{N.push(new C("raw-file",e,"file"))});if(L.length>0)N.push(new g("file",L,"resolve"));if(W){N.push(new h("file",{},"resolve"))}O.forEach(e=>{N.push(new _("file",e,"resolve"))});if(R)N.push(new S("file","relative"));N.push(new T("file","existing-file"));N.push(new s("existing-file","resolved"))}N.push(new E(K.hooks.resolved));N.forEach(e=>{e.apply(K)});return K};function mergeFilteredToArray(e,t){return e.reduce((e,r)=>{if(t(r)){const t=e[e.length-1];if(Array.isArray(t)){t.push(r)}else{e.push([r])}return e}else{e.push(r);return e}},[])}function isAbsolutePath(e){return/^[A-Z]:|^\//.test(e)}},6182:e=>{"use strict";e.exports=class ResultPlugin{constructor(e){this.source=e}apply(e){this.source.tapAsync("ResultPlugin",(t,r,n)=>{const i=Object.assign({},t);if(r.log)r.log("reporting result "+i.path);e.hooks.result.callAsync(i,r,e=>{if(e)return n(e);n(null,i)})})}}},4362:(e,t,r)=>{"use strict";const n=r(9835);const i=r(3556);e.exports=class SymlinkPlugin{constructor(e,t){this.source=e;this.target=t}apply(e){const t=e.ensureHook(this.target);const r=e.fileSystem;e.getHook(this.source).tapAsync("SymlinkPlugin",(a,o,s)=>{const c=n(a.path);const u=c.seqments;const l=c.paths;let f=false;i.withIndex(l,(e,t,n)=>{r.readlink(e,(e,r)=>{if(!e&&r){u[t]=r;f=true;if(/^(\/|[a-zA-Z]:($|\\))/.test(r))return n(null,t)}n()})},(r,n)=>{if(!f)return s();const i=typeof n==="number"?u.slice(0,n+1):u.slice();const c=i.reverse().reduce((t,r)=>{return e.join(t,r)});const l=Object.assign({},a,{path:c});e.doResolve(t,l,"resolved symlink to "+c,o,s)})})}}},4407:e=>{"use strict";function SyncAsyncFileSystemDecorator(e){this.fs=e;if(e.statSync){this.stat=function(t,r){let n;try{n=e.statSync(t)}catch(e){return r(e)}r(null,n)}}if(e.readdirSync){this.readdir=function(t,r){let n;try{n=e.readdirSync(t)}catch(e){return r(e)}r(null,n)}}if(e.readFileSync){this.readFile=function(t,r){let n;try{n=e.readFileSync(t)}catch(e){return r(e)}r(null,n)}}if(e.readlinkSync){this.readlink=function(t,r){let n;try{n=e.readlinkSync(t)}catch(e){return r(e)}r(null,n)}}if(e.readJsonSync){this.readJson=function(t,r){let n;try{n=e.readJsonSync(t)}catch(e){return r(e)}r(null,n)}}}e.exports=SyncAsyncFileSystemDecorator},8029:e=>{"use strict";e.exports=class TryNextPlugin{constructor(e,t,r){this.source=e;this.message=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("TryNextPlugin",(r,n,i)=>{e.doResolve(t,r,this.message,n,i)})}}},2216:e=>{"use strict";function getCacheId(e,t){return JSON.stringify({context:t?e.context:"",path:e.path,query:e.query,request:e.request})}e.exports=class UnsafeCachePlugin{constructor(e,t,r,n,i){this.source=e;this.filterPredicate=t;this.withContext=n;this.cache=r||{};this.target=i}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UnsafeCachePlugin",(r,n,i)=>{if(!this.filterPredicate(r))return i();const a=getCacheId(r,this.withContext);const o=this.cache[a];if(o){return i(null,o)}e.doResolve(t,r,null,n,(e,t)=>{if(e)return i(e);if(t)return i(null,this.cache[a]=t);i()})})}}},5187:e=>{"use strict";e.exports=class UseFilePlugin{constructor(e,t,r){this.source=e;this.filename=t;this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UseFilePlugin",(r,n,i)=>{const a=e.join(r.path,this.filename);const o=Object.assign({},r,{path:a,relativePath:r.relativePath&&e.join(r.relativePath,this.filename)});e.doResolve(t,o,"using path: "+a,n,i)})}}},4426:(e,t,r)=>{"use strict";const n=r(4353).P;function parseType(e){const t=e.split("+");const r=t.shift();return{type:r==="*"?null:r,features:t}}function isTypeMatched(e,t){if(typeof e==="string")e=parseType(e);if(typeof t==="string")t=parseType(t);if(t.type&&t.type!==e.type)return false;return t.features.every(t=>{return e.features.indexOf(t)>=0})}function isResourceTypeMatched(e,t){e=e.split("/");t=t.split("/");if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){if(!isTypeMatched(e[r],t[r]))return false}return true}function isResourceTypeSupported(e,t){return e.supportedResourceTypes&&e.supportedResourceTypes.some(e=>{return isResourceTypeMatched(e,t)})}function isEnvironment(e,t){return e.environments&&e.environments.every(e=>{return isTypeMatched(e,t)})}const i={};function getGlobRegExp(e){const t=i[e]||(i[e]=n(e));return t}function matchGlob(e,t){const r=getGlobRegExp(e);return r.exec(t)}function isGlobMatched(e,t){return!!matchGlob(e,t)}function isConditionMatched(e,t){const r=t.split("|");return r.some(function testFn(t){t=t.trim();const r=/^!/.test(t);if(r)return!testFn(t.substr(1));if(/^[a-z]+:/.test(t)){const r=/^([a-z]+):\s*/.exec(t);const n=t.substr(r[0].length);const i=r[1];switch(i){case"referrer":return isGlobMatched(n,e.referrer);default:return false}}else if(t.indexOf("/")>=0){return isResourceTypeSupported(e,t)}else{return isEnvironment(e,t)}})}function isKeyMatched(e,t){while(true){const r=/^\[([^\]]+)\]\s*/.exec(t);if(!r)return t;t=t.substr(r[0].length);const n=r[1];if(!isConditionMatched(e,n)){return false}}}function getField(e,t,r){let n;Object.keys(t).forEach(i=>{const a=isKeyMatched(e,i);if(a===r){n=t[i]}});return n}function getMain(e,t){return getField(e,t,"main")}function getExtensions(e,t){return getField(e,t,"extensions")}function matchModule(e,t,r){const n=getField(e,t,"modules");if(!n)return r;let i=r;const a=Object.keys(n);let o=0;let s;let c;for(let t=0;t<a.length;t++){const u=a[t];const l=isKeyMatched(e,u);s=matchGlob(l,i);if(s){const e=n[u];if(typeof e!=="string"){return e}else if(/^\(.+\)$/.test(l)){i=i.replace(getGlobRegExp(l),e)}else{c=1;i=e.replace(/(\/?\*)?\*/g,replaceMatcher)}t=-1;if(o++>a.length){throw new Error("Request '"+r+"' matches recursively")}}}return i;function replaceMatcher(e){switch(e){case"/**":{const e=s[c++];return e?"/"+e:""}case"**":case"*":return s[c++]}}}function matchType(e,t,r){const n=getField(e,t,"types");if(!n)return undefined;let i;Object.keys(n).forEach(t=>{const a=isKeyMatched(e,t);if(isGlobMatched(a,r)){const e=n[t];if(!i&&/\/\*$/.test(e))throw new Error("value ('"+e+"') of key '"+t+"' contains '*', but there is no previous value defined");i=e.replace(/\/\*$/,"/"+i)}});return i}t.parseType=parseType;t.isTypeMatched=isTypeMatched;t.isResourceTypeSupported=isResourceTypeSupported;t.isEnvironment=isEnvironment;t.isGlobMatched=isGlobMatched;t.isConditionMatched=isConditionMatched;t.isKeyMatched=isKeyMatched;t.getField=getField;t.getMain=getMain;t.getExtensions=getExtensions;t.matchModule=matchModule;t.matchType=matchType},2227:e=>{"use strict";e.exports=function createInnerContext(e,t,r){let n=false;const i={log:(()=>{if(!e.log)return undefined;if(!t)return e.log;const r=r=>{if(!n){e.log(t);n=true}e.log(" "+r)};return r})(),stack:e.stack,missing:e.missing};return i}},3556:e=>{"use strict";e.exports=function forEachBail(e,t,r){if(e.length===0)return r();let n=e.length;let i;let a=[];for(let r=0;r<e.length;r++){const i=createIteratorCallback(r);t(e[r],i);if(n===0)break}function createIteratorCallback(e){return(...t)=>{if(e>=n)return;a.push(e);if(t.length>0){n=e+1;a=a.filter(t=>{return t<=e});i=t}if(a.length===n){r.apply(null,i);n=0}}}};e.exports.withIndex=function forEachBailWithIndex(e,t,r){if(e.length===0)return r();let n=e.length;let i;let a=[];for(let r=0;r<e.length;r++){const i=createIteratorCallback(r);t(e[r],r,i);if(n===0)break}function createIteratorCallback(e){return(...t)=>{if(e>=n)return;a.push(e);if(t.length>0){n=e+1;a=a.filter(t=>{return t<=e});i=t}if(a.length===n){r.apply(null,i);n=0}}}}},2471:e=>{"use strict";e.exports=function getInnerRequest(e,t){if(typeof t.__innerRequest==="string"&&t.__innerRequest_request===t.request&&t.__innerRequest_relativePath===t.relativePath)return t.__innerRequest;let r;if(t.request){r=t.request;if(/^\.\.?\//.test(r)&&t.relativePath){r=e.join(t.relativePath,r)}}else{r=t.relativePath}t.__innerRequest_request=t.request;t.__innerRequest_relativePath=t.relativePath;return t.__innerRequest=r}},9835:e=>{"use strict";e.exports=function getPaths(e){const t=e.split(/(.*?[\\\/]+)/);const r=[e];const n=[t[t.length-1]];let i=t[t.length-1];e=e.substr(0,e.length-i.length-1);for(let a=t.length-2;a>2;a-=2){r.push(e);i=t[a];e=e.substr(0,e.length-i.length)||"/";n.push(i.substr(0,i.length-1))}i=t[1];n.push(i);r.push(i);return{paths:r,seqments:n}};e.exports.basename=function basename(e){const t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");const n=t<0?r:r<0?t:t<r?r:t;if(n<0)return null;const i=e.substr(n+1);return i}},4353:(e,t)=>{"use strict";function globToRegExp(e){if(/^\(.+\)$/.test(e)){return new RegExp(e.substr(1,e.length-2))}const t=tokenize(e);const r=createRoot();const n=t.map(r).join("");return new RegExp("^"+n+"$")}const r={"@(":"one","?(":"zero-one","+(":"one-many","*(":"zero-many","|":"segment-sep","/**/":"any-path-segments","**":"any-path","*":"any-path-segment","?":"any-char","{":"or","/":"path-sep",",":"comma",")":"closing-segment","}":"closing-or"};function tokenize(e){return e.split(/([@?+*]\(|\/\*\*\/|\*\*|[?*]|\[[\!\^]?(?:[^\]\\]|\\.)+\]|\{|,|\/|[|)}])/g).map(e=>{if(!e)return null;const t=r[e];if(t){return{type:t}}if(e[0]==="["){if(e[1]==="^"||e[1]==="!"){return{type:"inverted-char-set",value:e.substr(2,e.length-3)}}else{return{type:"char-set",value:e.substr(1,e.length-2)}}}return{type:"string",value:e}}).filter(Boolean).concat({type:"end"})}function createRoot(){const e=[];const t=createSeqment();let r=true;return function(n){switch(n.type){case"or":e.push(r);return"(";case"comma":if(e.length){r=e[e.length-1];return"|"}else{return t({type:"string",value:","},r)}case"closing-or":if(e.length===0)throw new Error("Unmatched '}'");e.pop();return")";case"end":if(e.length)throw new Error("Unmatched '{'");return t(n,r);default:{const e=t(n,r);r=false;return e}}}}function createSeqment(){const e=[];const t=createSimple();return function(r,n){switch(r.type){case"one":case"one-many":case"zero-many":case"zero-one":e.push(r.type);return"(";case"segment-sep":if(e.length){return"|"}else{return t({type:"string",value:"|"},n)}case"closing-segment":{const t=e.pop();switch(t){case"one":return")";case"one-many":return")+";case"zero-many":return")*";case"zero-one":return")?"}throw new Error("Unexcepted segment "+t)}case"end":if(e.length>0){throw new Error("Unmatched segment, missing ')'")}return t(r,n);default:return t(r,n)}}}function createSimple(){return function(e,t){switch(e.type){case"path-sep":return"[\\\\/]+";case"any-path-segments":return"[\\\\/]+(?:(.+)[\\\\/]+)?";case"any-path":return"(.*)";case"any-path-segment":if(t){return"\\.[\\\\/]+(?:.*[\\\\/]+)?([^\\\\/]+)"}else{return"([^\\\\/]*)"}case"any-char":return"[^\\\\/]";case"inverted-char-set":return"[^"+e.value+"]";case"char-set":return"["+e.value+"]";case"string":return e.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");case"end":return"";default:throw new Error("Unsupported token '"+e.type+"'")}}}t.P=globToRegExp},1324:(e,t,r)=>{"use strict";const n=r(7934);const i=r(7365);const a=r(7703);const o=new a(new i,4e3);const s={environments:["node+es3+es5+process+native"]};const c=n.createResolver({extensions:[".js",".json",".node"],fileSystem:o});e.exports=function resolve(e,t,r,n,i){if(typeof e==="string"){i=n;n=r;r=t;t=e;e=s}if(typeof i!=="function"){i=n}c.resolve(e,t,r,n,i)};const u=n.createResolver({extensions:[".js",".json",".node"],useSyncFileSystemCalls:true,fileSystem:o});e.exports.sync=function resolveSync(e,t,r){if(typeof e==="string"){r=t;t=e;e=s}return u.resolveSync(e,t,r)};const l=n.createResolver({extensions:[".js",".json",".node"],resolveToContext:true,fileSystem:o});e.exports.context=function resolveContext(e,t,r,resolveContext,n){if(typeof e==="string"){n=resolveContext;resolveContext=r;r=t;t=e;e=s}if(typeof n!=="function"){n=resolveContext}l.resolve(e,t,r,resolveContext,n)};const f=n.createResolver({extensions:[".js",".json",".node"],resolveToContext:true,useSyncFileSystemCalls:true,fileSystem:o});e.exports.context.sync=function resolveContextSync(e,t,r){if(typeof e==="string"){r=t;t=e;e=s}return f.resolveSync(e,t,r)};const d=n.createResolver({extensions:[".js",".json",".node"],moduleExtensions:["-loader"],mainFields:["loader","main"],fileSystem:o});e.exports.loader=function resolveLoader(e,t,r,n,i){if(typeof e==="string"){i=n;n=r;r=t;t=e;e=s}if(typeof i!=="function"){i=n}d.resolve(e,t,r,n,i)};const p=n.createResolver({extensions:[".js",".json",".node"],moduleExtensions:["-loader"],mainFields:["loader","main"],useSyncFileSystemCalls:true,fileSystem:o});e.exports.loader.sync=function resolveLoaderSync(e,t,r){if(typeof e==="string"){r=t;t=e;e=s}return p.resolveSync(e,t,r)};e.exports.create=function create(e){e=Object.assign({fileSystem:o},e);const t=n.createResolver(e);return function(e,r,n,i,a){if(typeof e==="string"){a=i;i=n;n=r;r=e;e=s}if(typeof a!=="function"){a=i}t.resolve(e,r,n,i,a)}};e.exports.create.sync=function createSync(e){e=Object.assign({useSyncFileSystemCalls:true,fileSystem:o},e);const t=n.createResolver(e);return function(e,r,n){if(typeof e==="string"){n=r;r=e;e=s}return t.resolveSync(e,r,n)}};e.exports.ResolverFactory=n;e.exports.NodeJsInputFileSystem=i;e.exports.CachedInputFileSystem=a},2980:(e,t,r)=>{"use strict";const n=r(528);const i=r(3207);class AsyncSeriesBailHookCodeFactory extends i{content({onError:e,onResult:t,onDone:r}){return this.callTapsSeries({onError:(t,r,n,i)=>e(r)+i(true),onResult:(e,r,n)=>`if(${r} !== undefined) {\n${t(r)};\n} else {\n${n()}}\n`,onDone:r})}}const a=new AsyncSeriesBailHookCodeFactory;class AsyncSeriesBailHook extends n{compile(e){a.setup(this,e);return a.create(e)}}Object.defineProperties(AsyncSeriesBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesBailHook},2039:(e,t,r)=>{"use strict";const n=r(528);const i=r(3207);class AsyncSeriesHookCodeFactory extends i{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,r,n,i)=>e(r)+i(true),onDone:t})}}const a=new AsyncSeriesHookCodeFactory;class AsyncSeriesHook extends n{compile(e){a.setup(this,e);return a.create(e)}}Object.defineProperties(AsyncSeriesHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesHook},528:e=>{"use strict";class Hook{constructor(e){if(!Array.isArray(e))e=[];this._args=e;this.taps=[];this.interceptors=[];this.call=this._call;this.promise=this._promise;this.callAsync=this._callAsync;this._x=undefined}compile(e){throw new Error("Abstract: should be overriden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}tap(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tap(options: Object, fn: function)");e=Object.assign({type:"sync",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tap");e=this._runRegisterInterceptors(e);this._insert(e)}tapAsync(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapAsync(options: Object, fn: function)");e=Object.assign({type:"async",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapAsync");e=this._runRegisterInterceptors(e);this._insert(e)}tapPromise(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapPromise(options: Object, fn: function)");e=Object.assign({type:"promise",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapPromise");e=this._runRegisterInterceptors(e);this._insert(e)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const r=t.register(e);if(r!==undefined)e=r}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);e=Object.assign({},e,this._withOptions);const r=this._withOptionsBase||this;const n=Object.create(r);n.tapAsync=((e,n)=>r.tapAsync(t(e),n)),n.tap=((e,n)=>r.tap(t(e),n));n.tapPromise=((e,n)=>r.tapPromise(t(e),n));n._withOptions=e;n._withOptionsBase=r;return n}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}}_resetCompilation(){this.call=this._call;this.callAsync=this._callAsync;this.promise=this._promise}_insert(e){this._resetCompilation();let t;if(typeof e.before==="string")t=new Set([e.before]);else if(Array.isArray(e.before)){t=new Set(e.before)}let r=0;if(typeof e.stage==="number")r=e.stage;let n=this.taps.length;while(n>0){n--;const e=this.taps[n];this.taps[n+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(i>r){continue}n++;break}this.taps[n]=e}}function createCompileDelegate(e,t){return function lazyCompileHook(...r){this[e]=this._createCall(t);return this[e](...r)}}Object.defineProperties(Hook.prototype,{_call:{value:createCompileDelegate("call","sync"),configurable:true,writable:true},_promise:{value:createCompileDelegate("promise","promise"),configurable:true,writable:true},_callAsync:{value:createCompileDelegate("callAsync","async"),configurable:true,writable:true}});e.exports=Hook},3207:e=>{"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.content({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.content({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e="";e+='"use strict";\n';e+="return new Promise((_resolve, _reject) => {\n";e+="var _sync = true;\n";e+=this.header();e+=this.content({onError:e=>{let t="";t+="if(_sync)\n";t+=`_resolve(Promise.resolve().then(() => { throw ${e}; }));\n`;t+="else\n";t+=`_reject(${e});\n`;return t},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});e+="_sync = false;\n";e+="});\n";t=new Function(this.args(),e);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t<this.options.interceptors.length;t++){const r=this.options.interceptors[t];if(r.call){e+=`${this.getInterceptor(t)}.call(${this.args({before:r.context?"_context":undefined})});\n`}}return e}needContext(){for(const e of this.options.taps)if(e.context)return true;return false}callTap(e,{onError:t,onResult:r,onDone:n,rethrowIfPossible:i}){let a="";let o=false;for(let t=0;t<this.options.interceptors.length;t++){const r=this.options.interceptors[t];if(r.tap){if(!o){a+=`var _tap${e} = ${this.getTap(e)};\n`;o=true}a+=`${this.getInterceptor(t)}.tap(${r.context?"_context, ":""}_tap${e});\n`}}a+=`var _fn${e} = ${this.getTapFn(e)};\n`;const s=this.options.taps[e];switch(s.type){case"sync":if(!i){a+=`var _hasError${e} = false;\n`;a+="try {\n"}if(r){a+=`var _result${e} = _fn${e}(${this.args({before:s.context?"_context":undefined})});\n`}else{a+=`_fn${e}(${this.args({before:s.context?"_context":undefined})});\n`}if(!i){a+="} catch(_err) {\n";a+=`_hasError${e} = true;\n`;a+=t("_err");a+="}\n";a+=`if(!_hasError${e}) {\n`}if(r){a+=r(`_result${e}`)}if(n){a+=n()}if(!i){a+="}\n"}break;case"async":let o="";if(r)o+=`(_err${e}, _result${e}) => {\n`;else o+=`_err${e} => {\n`;o+=`if(_err${e}) {\n`;o+=t(`_err${e}`);o+="} else {\n";if(r){o+=r(`_result${e}`)}if(n){o+=n()}o+="}\n";o+="}";a+=`_fn${e}(${this.args({before:s.context?"_context":undefined,after:o})});\n`;break;case"promise":a+=`var _hasResult${e} = false;\n`;a+=`var _promise${e} = _fn${e}(${this.args({before:s.context?"_context":undefined})});\n`;a+=`if (!_promise${e} || !_promise${e}.then)\n`;a+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;a+=`_promise${e}.then(_result${e} => {\n`;a+=`_hasResult${e} = true;\n`;if(r){a+=r(`_result${e}`)}if(n){a+=n()}a+=`}, _err${e} => {\n`;a+=`if(_hasResult${e}) throw _err${e};\n`;a+=t(`_err${e}`);a+="});\n";break}return a}callTapsSeries({onError:e,onResult:t,onDone:r,rethrowIfPossible:n}){if(this.options.taps.length===0)return r();const i=this.options.taps.findIndex(e=>e.type!=="sync");const a=o=>{if(o>=this.options.taps.length){return r()}const s=()=>a(o+1);const c=e=>{if(e)return"";return r()};return this.callTap(o,{onError:t=>e(o,t,s,c),onResult:t&&(e=>{return t(o,e,s,c)}),onDone:!t&&(()=>{return s()}),rethrowIfPossible:n&&(i<0||o<i)})};return a(0)}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:r}){if(this.options.taps.length===0)return t();const n=this.options.taps.every(e=>e.type==="sync");let i="";if(!n){i+="var _looper = () => {\n";i+="var _loopAsync = false;\n"}i+="var _loop;\n";i+="do {\n";i+="_loop = false;\n";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];if(t.loop){i+=`${this.getInterceptor(e)}.loop(${this.args({before:t.context?"_context":undefined})});\n`}}i+=this.callTapsSeries({onError:e,onResult:(e,t,r,i)=>{let a="";a+=`if(${t} !== undefined) {\n`;a+="_loop = true;\n";if(!n)a+="if(_loopAsync) _looper();\n";a+=i(true);a+=`} else {\n`;a+=r();a+=`}\n`;return a},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:r&&n});i+="} while(_loop);\n";if(!n){i+="_loopAsync = true;\n";i+="};\n";i+="_looper();\n"}return i}callTapsParallel({onError:e,onResult:t,onDone:r,rethrowIfPossible:n,onTap:i=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:r,rethrowIfPossible:n})}let a="";a+="do {\n";a+=`var _counter = ${this.options.taps.length};\n`;if(r){a+="var _done = () => {\n";a+=r();a+="};\n"}for(let o=0;o<this.options.taps.length;o++){const s=()=>{if(r)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const c=e=>{if(e||!r)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};a+="if(_counter <= 0) break;\n";a+=i(o,()=>this.callTap(o,{onError:t=>{let r="";r+="if(_counter > 0) {\n";r+=e(o,t,s,c);r+="}\n";return r},onResult:t&&(e=>{let r="";r+="if(_counter > 0) {\n";r+=t(o,e,s,c);r+="}\n";return r}),onDone:!t&&(()=>{return s()}),rethrowIfPossible:n}),s,c)}a+="} while(false);\n";return a}args({before:e,after:t}={}){let r=this._args;if(e)r=[e].concat(r);if(t)r=r.concat(t);if(r.length===0){return""}else{return r.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},1475:(e,t,r)=>{"use strict";const n=r(528);const i=r(3207);class SyncBailHookCodeFactory extends i{content({onError:e,onResult:t,onDone:r,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,r)=>e(r),onResult:(e,r,n)=>`if(${r} !== undefined) {\n${t(r)};\n} else {\n${n()}}\n`,onDone:r,rethrowIfPossible:n})}}const a=new SyncBailHookCodeFactory;class SyncBailHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncBailHook")}compile(e){a.setup(this,e);return a.create(e)}}e.exports=SyncBailHook},3575:(e,t,r)=>{"use strict";const n=r(528);const i=r(3207);class SyncHookCodeFactory extends i{content({onError:e,onResult:t,onDone:r,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,r)=>e(r),onDone:r,rethrowIfPossible:n})}}const a=new SyncHookCodeFactory;class SyncHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncHook")}compile(e){a.setup(this,e);return a.create(e)}}e.exports=SyncHook},3460:(e,t,r)=>{"use strict";const n=r(1669);const i=r(1475);function Tapable(){this._pluginCompat=new i(["options"]);this._pluginCompat.tap({name:"Tapable camelCase",stage:100},e=>{e.names.add(e.name.replace(/[- ]([a-z])/g,(e,t)=>t.toUpperCase()))});this._pluginCompat.tap({name:"Tapable this.hooks",stage:200},e=>{let t;for(const r of e.names){t=this.hooks[r];if(t!==undefined){break}}if(t!==undefined){const r={name:e.fn.name||"unnamed compat plugin",stage:e.stage||0};if(e.async)t.tapAsync(r,e.fn);else t.tap(r,e.fn);return true}})}e.exports=Tapable;Tapable.addCompatLayer=function addCompatLayer(e){Tapable.call(e);e.plugin=Tapable.prototype.plugin;e.apply=Tapable.prototype.apply};Tapable.prototype.plugin=n.deprecate(function plugin(e,t){if(Array.isArray(e)){e.forEach(function(e){this.plugin(e,t)},this);return}const r=this._pluginCompat.call({name:e,fn:t,names:new Set([e])});if(!r){throw new Error(`Plugin could not be registered at '${e}'. Hook was not found.\n`+"BREAKING CHANGE: There need to exist a hook at 'this.hooks'. "+"To create a compatibility layer for this hook, hook into 'this._pluginCompat'.")}},"Tapable.plugin is deprecated. Use new API on `.hooks` instead");Tapable.prototype.apply=n.deprecate(function apply(){for(var e=0;e<arguments.length;e++){arguments[e].apply(this)}},"Tapable.apply is deprecated. Call apply on the plugin directly instead")},8732:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},6030:(e,t,r)=>{"use strict";var n=r(7553);var i=r(572);var a=r(9641)("expand-brackets");var o=r(8333);var s=r(9769);var c=r(9532);function brackets(e,t){a("initializing from <%s>",__filename);var r=brackets.create(e,t);return r.output}brackets.match=function(e,t,r){e=[].concat(e);var n=o({},r);var i=brackets.matcher(t,n);var a=e.length;var s=-1;var c=[];while(++s<a){var u=e[s];if(i(u)){c.push(u)}}if(c.length===0){if(n.failglob===true){throw new Error('no matches found for "'+t+'"')}if(n.nonull===true||n.nullglob===true){return[t.split("\\").join("")]}}return c};brackets.isMatch=function(e,t,r){return brackets.matcher(t,r)(e)};brackets.matcher=function(e,t){var r=brackets.makeRe(e,t);return function(e){return r.test(e)}};brackets.makeRe=function(e,t){var r=brackets.create(e,t);var n=o({strictErrors:false},t);return c(r.output,n)};brackets.create=function(e,t){var r=t&&t.snapdragon||new s(t);n(r);i(r);var a=r.parse(e,t);a.input=e;var o=r.compile(a,t);o.input=e;return o};brackets.compilers=n;brackets.parsers=i;e.exports=brackets},7553:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(e){e.compiler.set("escape",function(e){return this.emit("\\"+e.val.replace(/^\\/,""),e)}).set("text",function(e){return this.emit(e.val.replace(/([{}])/g,"\\$1"),e)}).set("posix",function(e){if(e.val==="[::]"){return this.emit("\\[::\\]",e)}var t=n[e.inner];if(typeof t==="undefined"){t="["+e.inner+"]"}return this.emit(t,e)}).set("bracket",function(e){return this.mapVisit(e.nodes)}).set("bracket.open",function(e){return this.emit(e.val,e)}).set("bracket.inner",function(e){var t=e.val;if(t==="["||t==="]"){return this.emit("\\"+e.val,e)}if(t==="^]"){return this.emit("^\\]",e)}if(t==="^"){return this.emit("^",e)}if(/-/.test(t)&&!/(\d-\d|\w-\w)/.test(t)){t=t.split("-").join("\\-")}var r=t.charAt(0)==="^";if(r&&t.indexOf("/")===-1){t+="/"}if(r&&t.indexOf(".")===-1){t+="."}t=t.replace(/\\([1-9])/g,"$1");return this.emit(t,e)}).set("bracket.close",function(e){var t=e.val.replace(/^\\/,"");if(e.parent.escaped===true){return this.emit("\\"+t,e)}return this.emit(t,e)})}},572:(e,t,r)=>{"use strict";var n=r(126);var i=r(4728);var a="(\\[(?=.*\\])|\\])+";var o=n.createRegex(a);function parsers(e){e.state=e.state||{};e.parser.sets.bracket=e.parser.sets.bracket||[];e.parser.capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0]})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;return e({type:"text",val:t[0]})}).capture("posix",function(){var t=this.position();var r=this.match(/^\[:(.*?):\](?=.*\])/);if(!r)return;var n=this.isInside("bracket");if(n){e.posix++}return t({type:"posix",insideBracket:n,inner:r[1],val:r[0]})}).capture("bracket",function(){}).capture("bracket.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\[(?=.*\])/);if(!r)return;var a=this.prev();var o=n.last(a.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var s=t({type:"bracket.open",val:r[0]});if(o.type==="bracket.open"||this.isInside("bracket")){s.val="\\"+s.val;s.type="bracket.inner";s.escaped=true;return s}var c=t({type:"bracket",nodes:[s]});i(c,"parent",a);i(s,"parent",c);this.push("bracket",c);a.nodes.push(c)}).capture("bracket.inner",function(){if(!this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;var r=this.input.charAt(0);var n=t[0];var i=e({type:"bracket.inner",val:n});if(n==="\\\\"){return i}var a=n.charAt(0);var s=n.slice(-1);if(a==="!"){n="^"+n.slice(1)}if(s==="\\"||n==="^"&&r==="]"){n+=this.input[0];this.consume(1)}i.val=n;return i}).capture("bracket.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\]/);if(!r)return;var a=this.prev();var o=n.last(a.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var s=t({type:"bracket.close",rest:this.input,val:r[0]});if(o.type==="bracket.open"){s.type="bracket.inner";s.escaped=true;return s}var c=this.pop("bracket");if(!this.isType(c,"bracket")){if(this.options.strict){throw new Error('missing opening "["')}s.type="bracket.inner";s.escaped=true;return s}c.nodes.push(s);i(s,"parent",c)})}e.exports=parsers;e.exports.TEXT_REGEX=a},126:(e,t,r)=>{"use strict";var n=r(9532);var i=r(3089);var a;t.last=function(e){return e[e.length-1]};t.createRegex=function(e,t){if(a)return a;var r={contains:true,strictClose:false};var o=i.create(e,r);var s;if(typeof t==="string"){s=n("^(?:"+t+"|"+o+")",r)}else{s=n(o,r)}return a=s}},6157:(e,t,r)=>{t=e.exports=r(5763);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){a=i}});e.splice(a,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},5763:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(8888);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var a=new Array(arguments.length);for(var o=0;o<a.length;o++){a[o]=arguments[o]}a[0]=t.coerce(a[0]);if("string"!==typeof a[0]){a.unshift("%O")}var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;s++;var i=t.formatters[n];if("function"===typeof i){var o=a[s];r=i.call(e,o);a.splice(s,1);s--}return r});t.formatArgs.call(e,a);var c=debug.log||t.log||console.log.bind(console);c.apply(e,a)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},9641:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(6157)}else{e.exports=r(2681)}},2681:(e,t,r)=>{var n=r(8993);var i=r(1669);t=e.exports=r(5763);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var a=parseInt(process.env.DEBUG_FD,10)||2;if(1!==a&&2!==a){i.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var o=1===a?process.stdout:2===a?process.stderr:createWritableStdioStream(a);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(a)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var a=" [3"+i+";1m"+r+" "+"[0m";e[0]=a+e[0].split("\n").join("\n"+a);e.push("[3"+i+"m+"+t.humanize(this.diff)+"[0m")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var a=r(5747);t=new a.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},8888:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var s=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},8333:(e,t,r)=>{"use strict";var n=r(485);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},2655:(e,t,r)=>{"use strict";var n=r(8333);var i=r(6974);var a=r(9532);var o=r(569);var s=r(3041);var c=r(8992);var u=r(8366);var l=1024*64;function extglob(e,t){return extglob.create(e,t).output}extglob.match=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}e=u.arrayify(e);var n=extglob.matcher(t,r);var a=e.length;var o=-1;var s=[];while(++o<a){var c=e[o];if(n(c)){s.push(c)}}if(typeof r==="undefined"){return i(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[t.split("\\").join("")]}}return r.nodupes!==false?i(s):s};extglob.isMatch=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===e){return true}if(t===""||t===" "||t==="."){return t===e}var n=u.memoize("isMatch",t,r,extglob.matcher);return n(e)};extglob.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===""||t===" "||t==="."){return t===e}var i=n({},r,{contains:true});i.strictClose=false;i.strictOpen=false;return extglob.isMatch(e,t,i)};extglob.matcher=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function matcher(){var r=extglob.makeRe(e,t);return function(e){return r.test(e)}}return u.memoize("matcher",e,t,matcher)};extglob.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function create(){var r=new c(t);var n=r.parse(e,t);return r.compile(n,t)}return u.memoize("create",e,t,create)};extglob.capture=function(e,t,r){var i=extglob.makeRe(e,n({capture:true},r));function match(){return function(e){var t=i.exec(e);if(!t){return null}return t.slice(1)}}var a=u.memoize("capture",e,r,match);return a(t)};extglob.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=n({strictErrors:false},t);if(r.strictErrors===true)r.strict=true;var i=extglob.create(e,r);return a(i.output,r)}var r=u.memoize("makeRe",e,t,makeRe);if(r.source.length>l){throw new SyntaxError("potentially malicious regex detected")}return r};extglob.cache=u.cache;extglob.clearCache=function(){extglob.cache.__data__={}};extglob.Extglob=c;extglob.compilers=o;extglob.parsers=s;e.exports=extglob},569:(e,t,r)=>{"use strict";var n=r(6030);e.exports=function(e){function star(){if(typeof e.options.star==="function"){return e.options.star.apply(this,arguments)}if(typeof e.options.star==="string"){return e.options.star}return".*?"}e.use(n.compilers);e.compiler.set("escape",function(e){return this.emit(e.val,e)}).set("dot",function(e){return this.emit("\\"+e.val,e)}).set("qmark",function(e){var t="[^\\\\/.]";var r=this.prev();if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n!=="!"&&n!=="="&&n!==":"){return this.emit(t,e)}return this.emit(e.val,e)}if(r.type==="text"&&r.val){return this.emit(t,e)}if(e.val.length>1){t+="{"+e.val.length+"}"}return this.emit(t,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}var r=this.output.slice(-1);if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("star",function(e){var t=this.prev();var r=t.type!=="text"&&t.type!=="escape"?"(?!\\.)":"";return this.emit(r+star.call(this,e),e)}).set("paren",function(e){return this.mapVisit(e.nodes)}).set("paren.open",function(e){var t=this.options.capture?"(":"";switch(e.parent.prefix){case"!":case"^":return this.emit(t+"(?:(?!(?:",e);case"*":case"+":case"?":case"@":return this.emit(t+"(?:",e);default:{var r=e.val;if(this.options.bash===true){r="\\"+r}else if(!this.options.capture&&r==="("&&e.parent.rest[0]!=="?"){r+="?:"}return this.emit(r,e)}}}).set("paren.close",function(e){var t=this.options.capture?")":"";switch(e.prefix){case"!":case"^":var r=/^(\)|$)/.test(e.rest)?"$":"";var n=star.call(this,e);if(e.parent.hasSlash&&!this.options.star&&this.options.slash!==false){n=".*?"}return this.emit(r+("))"+n+")")+t,e);case"*":case"+":case"?":return this.emit(")"+e.prefix+t,e);case"@":return this.emit(")"+t,e);default:{var i=(this.options.bash===true?"\\":"")+")";return this.emit(i,e)}}}).set("text",function(e){var t=e.val.replace(/[\[\]]/g,"\\$&");return this.emit(t,e)})}},8992:(e,t,r)=>{"use strict";var n=r(9769);var i=r(5855);var a=r(8333);var o=r(569);var s=r(3041);function Extglob(e){this.options=a({source:"extglob"},e);this.snapdragon=this.options.snapdragon||new n(this.options);this.snapdragon.patterns=this.snapdragon.patterns||{};this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;o(this.snapdragon);s(this.snapdragon);i(this.snapdragon,"parse",function(e,t){var r=n.prototype.parse.apply(this,arguments);r.input=e;var a=this.parser.stack.pop();if(a&&this.options.strict!==true){var o=a.nodes[0];o.val="\\"+o.val;var s=o.parent.nodes[1];if(s.type==="star"){s.loose=true}}i(r,"parser",this.parser);return r});i(this,"parse",function(e,t){return this.snapdragon.parse.apply(this.snapdragon,arguments)});i(this,"compile",function(e,t){return this.snapdragon.compile.apply(this.snapdragon,arguments)})}e.exports=Extglob},3041:(e,t,r)=>{"use strict";var n=r(6030);var i=r(5855);var a=r(8366);var o="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+";var s=a.createRegex(o);function parsers(e){e.state=e.state||{};e.use(n.parsers);e.parser.sets.paren=e.parser.sets.paren||[];e.parser.capture("paren.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^([!@*?+])?\(/);if(!r)return;var n=this.prev();var a=r[1];var o=r[0];var s=t({type:"paren.open",parsed:e,val:o});var c=t({type:"paren",prefix:a,nodes:[s]});if(a==="!"&&n.type==="paren"&&n.prefix==="!"){n.prefix="@";c.prefix="@"}i(c,"rest",this.input);i(c,"parsed",e);i(c,"parent",n);i(s,"parent",c);this.push("paren",c);n.nodes.push(c)}).capture("paren.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\)/);if(!r)return;var n=this.pop("paren");var a=t({type:"paren.close",rest:this.input,parsed:e,val:r[0]});if(!this.isType(n,"paren")){if(this.options.strict){throw new Error('missing opening paren: "("')}a.escaped=true;return a}a.prefix=n.prefix;n.nodes.push(a);i(a,"parent",n)}).capture("escape",function(){var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0],ch:t[1]})}).capture("qmark",function(){var t=this.parsed;var r=this.position();var n=this.match(/^\?+(?!\()/);if(!n)return;e.state.metachar=true;return r({type:"qmark",rest:this.input,parsed:t,val:n[0]})}).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",s)}e.exports.TEXT_REGEX=o;e.exports=parsers},8366:(e,t,r)=>{"use strict";var n=r(3089);var i=r(9111);var a=e.exports;var o=a.cache=new i;a.arrayify=function(e){if(!Array.isArray(e)){return[e]}return e};a.memoize=function(e,t,r,n){var i=a.createKey(e+t,r);if(o.has(e,i)){return o.get(e,i)}var s=n(t,r);if(r&&r.cache===false){return s}o.set(e,i,s);return s};a.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}for(var n in t){r+=";"+n+"="+String(t[n])}return r};a.createRegex=function(e){var t={contains:true,strictClose:false};return n(e,t)}},5855:(e,t,r)=>{"use strict";var n=r(8586);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},9430:(e,t,r)=>{"use strict";var n=r(1669);var i=r(5552);var a=r(8333);var o=r(9437);var s=r(5837);function fillRange(e,t,r,o){if(typeof e==="undefined"){return[]}if(typeof t==="undefined"||e===t){var s=typeof e==="string";if(i(e)&&!toNumber(e)){return[s?"0":0]}return[e]}if(typeof r!=="number"&&typeof r!=="string"){o=r;r=undefined}if(typeof o==="function"){o={transform:o}}var c=a({step:r},o);if(c.step&&!isValidNumber(c.step)){if(c.strictRanges===true){throw new TypeError("expected options.step to be a number")}return[]}c.isNumber=isValidNumber(e)&&isValidNumber(t);if(!c.isNumber&&!isValid(e,t)){if(c.strictRanges===true){throw new RangeError("invalid range arguments: "+n.inspect([e,t]))}return[]}c.isPadded=isPadded(e)||isPadded(t);c.toString=c.stringify||typeof c.step==="string"||typeof e==="string"||typeof t==="string"||!c.isNumber;if(c.isPadded){c.maxLength=Math.max(String(e).length,String(t).length)}if(typeof c.optimize==="boolean")c.toRegex=c.optimize;if(typeof c.makeRe==="boolean")c.toRegex=c.makeRe;return expand(e,t,c)}function expand(e,t,r){var n=r.isNumber?toNumber(e):e.charCodeAt(0);var i=r.isNumber?toNumber(t):t.charCodeAt(0);var a=Math.abs(toNumber(r.step))||1;if(r.toRegex&&a===1){return toRange(n,i,e,t,r)}var o={greater:[],lesser:[]};var s=n<i;var c=new Array(Math.round((s?i-n:n-i)/a));var u=0;while(s?n<=i:n>=i){var l=r.isNumber?n:String.fromCharCode(n);if(r.toRegex&&(l>=0||!r.isNumber)){o.greater.push(l)}else{o.lesser.push(Math.abs(l))}if(r.isPadded){l=zeros(l,r)}if(r.toString){l=String(l)}if(typeof r.transform==="function"){c[u++]=r.transform(l,n,i,a,u,c,r)}else{c[u++]=l}if(s){n+=a}else{n-=a}}if(r.toRegex===true){return toSequence(c,o,r)}return c}function toRange(e,t,r,n,i){if(i.isPadded){return s(r,n,i)}if(i.isNumber){return s(Math.min(e,t),Math.max(e,t),i)}var r=String.fromCharCode(Math.min(e,t));var n=String.fromCharCode(Math.max(e,t));return"["+r+"-"+n+"]"}function toSequence(e,t,r){var n="",i="";if(t.greater.length){n=t.greater.join("|")}if(t.lesser.length){i="-("+t.lesser.join("|")+")"}var a=n&&i?n+"|"+i:n||i;if(r.capture){return"("+a+")"}return a}function zeros(e,t){if(t.isPadded){var r=String(e);var n=r.length;var i="";if(r.charAt(0)==="-"){i="-";r=r.slice(1)}var a=t.maxLength-n;var s=o("0",a);e=i+s+r}if(t.stringify){return String(e)}return e}function toNumber(e){return Number(e)||0}function isPadded(e){return/^-?0\d/.test(e)}function isValid(e,t){return(isValidNumber(e)||isValidLetter(e))&&(isValidNumber(t)||isValidLetter(t))}function isValidLetter(e){return typeof e==="string"&&e.length===1&&/^\w+$/.test(e)}function isValidNumber(e){return i(e)&&!/\./.test(e)}e.exports=fillRange},1718:e=>{"use strict";e.exports=function forIn(e,t,r){for(var n in e){if(t.call(r,e[n],n,e)===false){break}}}},9111:(e,t,r)=>{"use strict";var n=r(1637);function FragmentCache(e){this.caches=e||{}}FragmentCache.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new n)},set:function(e,t,r){var n=this.cache(e);n.set(t,r);return n},has:function(e,t){return typeof this.get(e,t)!=="undefined"},get:function(e,t){var r=this.cache(e);if(typeof t==="string"){return r.get(t)}return r}};t=e.exports=FragmentCache},3826:e=>{e.exports=function(e,t,r,n,i){if(!isObject(e)||!t){return e}t=toString(t);if(r)t+="."+toString(r);if(n)t+="."+toString(n);if(i)t+="."+toString(i);if(t in e){return e[t]}var a=t.split(".");var o=a.length;var s=-1;while(e&&++s<o){var c=a[s];while(c[c.length-1]==="\\"){c=c.slice(0,-1)+"."+a[++s]}e=e[c]}return e};function isObject(e){return e!==null&&(typeof e==="object"||typeof e==="function")}function toString(e){if(!e)return"";if(Array.isArray(e)){return e.join(".")}return e}},858:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}},5808:(e,t,r)=>{var n=r(5747);var i=r(2444);var a=r(4073);var o=r(858);var s=r(1669);var c;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var l=noop;if(s.debuglog)l=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[c]){var f=global[c]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[c]);r(2357).equal(n[c].length,0)})}}if(!global[c]){publishQueue(global,n[c])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,r){var n=[e];if(typeof t!=="function"){n.push(t)}else{r=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var s=a(e);ReadStream=s.ReadStream;WriteStream=s.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var f=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n){return d(e,t,r,function(i,a){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[c].push(e)}function retry(){var e=n[c].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},4073:(e,t,r)=>{var n=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var a=Object.keys(r);for(var o=0,s=a.length;o<s;o++){var c=a[o];this[c]=r[c]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var a=0,o=i.length;a<o;a++){var s=i[a];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},2444:(e,t,r)=>{var n=r(7619);var i=process.cwd;var a=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=i.call(process);return a};try{process.cwd()}catch(e){}var s=process.chdir;process.chdir=function(e){a=null;s.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(r,n,i){var a=Date.now();var o=0;t(r,n,function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-a<6e4){setTimeout(function(){e.stat(n,function(e,a){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)})},o);if(o<100)o+=10;return}if(i)i(s)})}}(e.rename)}e.read=function(t){function read(r,n,i,a,o,s){var c;if(s&&typeof s==="function"){var u=0;c=function(l,f,d){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,a,o,c)}s.apply(this,arguments)}}return t.call(e,r,n,i,a,o,c)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,n,i,a,o){var s=0;while(true){try{return t.call(e,r,n,i,a,o)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var a=true;var o;try{o=e.fchmodSync(i,r);a=false}finally{if(a){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(a)a(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){if(a)a(t||e)})})})};e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK);var o;var s=true;try{o=e.futimesSync(a,r,i);s=false}finally{if(s){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return o}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,a){return t.call(e,r,n,i,function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},3283:(e,t,r)=>{"use strict";var n=r(977);var i=r(2160);var a=r(3826);e.exports=function(e,t){return i(n(e)&&t?a(e,t):e)}},2160:(e,t,r)=>{"use strict";var n=r(7217);var i=r(5552);e.exports=function hasValue(e){if(i(e)){return true}switch(n(e)){case"null":case"boolean":case"function":return true;case"string":case"arguments":return e.length!==0;case"error":return e.message!=="";case"array":var t=e.length;if(t===0){return false}for(var r=0;r<t;r++){if(hasValue(e[r])){return true}}return false;case"file":case"map":case"set":return e.size!==0;case"object":var a=Object.keys(e);if(a.length===0){return false}for(var r=0;r<a.length;r++){var o=a[r];if(hasValue(e[o])){return true}}return false;default:{return false}}}},7217:(e,t,r)=>{var n=r(4950);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(t==="[object Promise]"){return"promise"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},1790:(e,t,r)=>{"use strict";var n=r(9948);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[a]!=="function"&&typeof e[a]!=="undefined"){return false}for(var a in e){if(!i.hasOwnProperty(a)){continue}if(n(e[a])===i[a]){continue}if(typeof e[a]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},9948:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return e.constructor?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},4950:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},9035:(e,t,r)=>{"use strict";var n=r(1275);e.exports=function isDataDescriptor(e,t){var r={configurable:"boolean",enumerable:"boolean",writable:"boolean"};if(n(e)!=="object"){return false}if(typeof t==="string"){var i=Object.getOwnPropertyDescriptor(e,t);return typeof i!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var a in e){if(a==="value")continue;if(!r.hasOwnProperty(a)){continue}if(n(e[a])===r[a]){continue}if(typeof e[a]!=="undefined"){return false}}return true}},1275:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return e.constructor?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},8586:(e,t,r)=>{"use strict";var n=r(9914);var i=r(1790);var a=r(9035);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return a(e,t)}},9914:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return e.constructor?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},485:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},5552:(e,t,r)=>{"use strict";var n=r(2046);e.exports=function isNumber(e){var t=n(e);if(t==="string"){if(!e.trim())return false}else if(t!=="number"){return false}return e-e+1>=0}},1221:(e,t,r)=>{"use strict";var n=r(977);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},7523:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},977:e=>{"use strict";e.exports=function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}},2046:(e,t,r)=>{var n=r(4950);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},6559:e=>{"use strict";function getCurrentRequest(e){if(e.currentRequest)return e.currentRequest;const t=e.loaders.slice(e.loaderIndex).map(e=>e.request).concat([e.resource]);return t.join("!")}e.exports=getCurrentRequest},2669:(e,t,r)=>{"use strict";const n={26:"abcdefghijklmnopqrstuvwxyz",32:"123456789abcdefghjkmnpqrstuvwxyz",36:"0123456789abcdefghijklmnopqrstuvwxyz",49:"abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",52:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",62:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"};function encodeBufferToBase(e,t){const i=n[t];if(!i)throw new Error("Unknown encoding base"+t);const a=e.length;const o=r(2558);o.RM=o.DP=0;let s=new o(0);for(let t=a-1;t>=0;t--){s=s.times(256).plus(e[t])}let c="";while(s.gt(0)){c=i[s.mod(t)]+c;s=s.div(t)}o.DP=20;o.RM=1;return c}function getHashDigest(e,t,n,i){t=t||"md5";i=i||9999;const a=r(6417).createHash(t);a.update(e);if(n==="base26"||n==="base32"||n==="base36"||n==="base49"||n==="base52"||n==="base58"||n==="base62"||n==="base64"){return encodeBufferToBase(a.digest(),n.substr(4)).substr(0,i)}else{return a.digest(n||"hex").substr(0,i)}}e.exports=getHashDigest},2245:(e,t,r)=>{"use strict";const n=r(9170);function getOptions(e){const t=e.query;if(typeof t==="string"&&t!==""){return n(e.query)}if(!t||typeof t!=="object"){return null}return t}e.exports=getOptions},2078:e=>{"use strict";function getRemainingRequest(e){if(e.remainingRequest)return e.remainingRequest;const t=e.loaders.slice(e.loaderIndex+1).map(e=>e.request).concat([e.resource]);return t.join("!")}e.exports=getRemainingRequest},8244:(e,t,r)=>{"use strict";const n=r(2245);const i=r(9170);const a=r(1412);const o=r(2078);const s=r(6559);const c=r(1077);const u=r(4608);const l=r(5231);const f=r(2669);const d=r(7872);t.getOptions=n;t.parseQuery=i;t.stringifyRequest=a;t.getRemainingRequest=o;t.getCurrentRequest=s;t.isUrlRequest=c;t.urlToRequest=u;t.parseString=l;t.getHashDigest=f;t.interpolateName=d},7872:(e,t,r)=>{"use strict";const n=r(5622);const i=r(1356);const a=r(2669);const o=/[\uD800-\uDFFF]./;const s=i.filter(e=>o.test(e));const c={};function encodeStringToEmoji(e,t){if(c[e])return c[e];t=t||1;const r=[];do{const e=Math.floor(Math.random()*s.length);r.push(s[e]);s.splice(e,1)}while(--t>0);const n=r.join("");c[e]=n;return n}function interpolateName(e,t,r){let i;if(typeof t==="function"){i=t(e.resourcePath)}else{i=t||"[hash].[ext]"}const o=r.context;const s=r.content;const c=r.regExp;let u="bin";let l="file";let f="";let d="";if(e.resourcePath){const t=n.parse(e.resourcePath);let r=e.resourcePath;if(t.ext){u=t.ext.substr(1)}if(t.dir){l=t.name;r=t.dir+n.sep}if(typeof o!=="undefined"){f=n.relative(o,r+"_").replace(/\\/g,"/").replace(/\.\.(\/)?/g,"_$1");f=f.substr(0,f.length-1)}else{f=r.replace(/\\/g,"/").replace(/\.\.(\/)?/g,"_$1")}if(f.length===1){f=""}else if(f.length>1){d=n.basename(f)}}let p=i;if(s){p=p.replace(/\[(?:(\w+):)?hash(?::([a-z]+\d*))?(?::(\d+))?\]/gi,(e,t,r,n)=>a(s,t,r,parseInt(n,10))).replace(/\[emoji(?::(\d+))?\]/gi,(e,t)=>encodeStringToEmoji(s,t))}p=p.replace(/\[ext\]/gi,()=>u).replace(/\[name\]/gi,()=>l).replace(/\[path\]/gi,()=>f).replace(/\[folder\]/gi,()=>d);if(c&&e.resourcePath){const t=e.resourcePath.match(new RegExp(c));t&&t.forEach((e,t)=>{p=p.replace(new RegExp("\\["+t+"\\]","ig"),e)})}if(typeof e.options==="object"&&typeof e.options.customInterpolateName==="function"){p=e.options.customInterpolateName.call(e,p,t,r)}return p}e.exports=interpolateName},1077:e=>{"use strict";function isUrlRequest(e,t){if(/^data:|^chrome-extension:|^(https?:)?\/\/|^[\{\}\[\]#*;,'§\$%&\(=?`´\^°<>]/.test(e))return false;if((t===undefined||t===false)&&/^\//.test(e))return false;return true}e.exports=isUrlRequest},9170:(e,t,r)=>{"use strict";const n=r(161);const i={null:null,true:true,false:false};function parseQuery(e){if(e.substr(0,1)!=="?"){throw new Error("A valid query string passed to parseQuery should begin with '?'")}e=e.substr(1);if(!e){return{}}if(e.substr(0,1)==="{"&&e.substr(-1)==="}"){return n.parse(e)}const t=e.split(/[,&]/g);const r={};t.forEach(e=>{const t=e.indexOf("=");if(t>=0){let n=e.substr(0,t);let a=decodeURIComponent(e.substr(t+1));if(i.hasOwnProperty(a)){a=i[a]}if(n.substr(-2)==="[]"){n=decodeURIComponent(n.substr(0,n.length-2));if(!Array.isArray(r[n]))r[n]=[];r[n].push(a)}else{n=decodeURIComponent(n);r[n]=a}}else{if(e.substr(0,1)==="-"){r[decodeURIComponent(e.substr(1))]=false}else if(e.substr(0,1)==="+"){r[decodeURIComponent(e.substr(1))]=true}else{r[decodeURIComponent(e)]=true}}});return r}e.exports=parseQuery},5231:e=>{"use strict";function parseString(e){try{if(e[0]==='"')return JSON.parse(e);if(e[0]==="'"&&e.substr(e.length-1)==="'"){return parseString(e.replace(/\\.|"/g,e=>e==='"'?'\\"':e).replace(/^'|'$/g,'"'))}return JSON.parse('"'+e+'"')}catch(t){return e}}e.exports=parseString},1412:(e,t,r)=>{"use strict";const n=r(5622);const i=/^\.\.?[/\\]/;function isAbsolutePath(e){return n.posix.isAbsolute(e)||n.win32.isAbsolute(e)}function isRelativePath(e){return i.test(e)}function stringifyRequest(e,t){const r=t.split("!");const i=e.context||e.options&&e.options.context;return JSON.stringify(r.map(e=>{const t=e.match(/^(.*?)(\?.*)/);let r=t?t[1]:e;const a=t?t[2]:"";if(isAbsolutePath(r)&&i){r=n.relative(i,r);if(isAbsolutePath(r)){return r+a}if(isRelativePath(r)===false){r="./"+r}}return r.replace(/\\/g,"/")+a}).join("!"))}e.exports=stringifyRequest},4608:e=>{"use strict";const t=/^[A-Z]:[/\\]|^\\\\/i;function urlToRequest(e,r){const n=/^[^?]*~/;let i;if(t.test(e)){i=e}else if(r!==undefined&&r!==false&&/^\//.test(e)){switch(typeof r){case"string":if(n.test(r)){i=r.replace(/([^~\/])$/,"$1/")+e.slice(1)}else{i=r+e}break;case"boolean":i=e;break;default:throw new Error("Unexpected parameters to loader-utils 'urlToRequest': url = "+e+", root = "+r+".")}}else if(/^\.\.?\//.test(e)){i=e}else{i="./"+e}if(n.test(i)){i=i.replace(n,"")}return i}e.exports=urlToRequest},2558:function(e){(function(t){"use strict";var r=20,n=1,i=1e6,a=1e6,o=-7,s=21,c={},u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,l;function bigFactory(){function Big(e){var t=this;if(!(t instanceof Big)){return e===void 0?bigFactory():new Big(e)}if(e instanceof Big){t.s=e.s;t.e=e.e;t.c=e.c.slice()}else{parse(t,e)}t.constructor=Big}Big.prototype=c;Big.DP=r;Big.RM=n;Big.E_NEG=o;Big.E_POS=s;return Big}function format(e,t,r){var n=e.constructor,i=t-(e=new n(e)).e,a=e.c;if(a.length>++t){rnd(e,i,n.RM)}if(!a[0]){++i}else if(r){i=t}else{a=e.c;i=e.e+i+1}for(;a.length<i;a.push(0)){}i=e.e;return r===1||r&&(t<=i||i<=n.E_NEG)?(e.s<0&&a[0]?"-":"")+(a.length>1?a[0]+"."+a.join("").slice(1):a[0])+(i<0?"e":"e+")+i:e.toString()}function parse(e,t){var r,n,i;if(t===0&&1/t<0){t="-0"}else if(!u.test(t+="")){throwErr(NaN)}e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1;if((r=t.indexOf("."))>-1){t=t.replace(".","")}if((n=t.search(/e/i))>0){if(r<0){r=n}r+=+t.slice(n+1);t=t.substring(0,n)}else if(r<0){r=t.length}i=t.length;for(n=0;n<i&&t.charAt(n)=="0";n++){}if(n==i){e.c=[e.e=0]}else{for(;i>0&&t.charAt(--i)=="0";){}e.e=r-n-1;e.c=[];for(;n<=i;e.c.push(+t.charAt(n++))){}}return e}function rnd(e,t,r,n){var i,a=e.c,o=e.e+t+1;if(r===1){n=a[o]>=5}else if(r===2){n=a[o]>5||a[o]==5&&(n||o<0||a[o+1]!==i||a[o-1]&1)}else if(r===3){n=n||a[o]!==i||o<0}else{n=false;if(r!==0){throwErr("!Big.RM!")}}if(o<1||!a[0]){if(n){e.e=-t;e.c=[1]}else{e.c=[e.e=0]}}else{a.length=o--;if(n){for(;++a[o]>9;){a[o]=0;if(!o--){++e.e;a.unshift(1)}}}for(o=a.length;!a[--o];a.pop()){}}return e}function throwErr(e){var t=new Error(e);t.name="BigError";throw t}c.abs=function(){var e=new this.constructor(this);e.s=1;return e};c.cmp=function(e){var t,r=this,n=r.c,i=(e=new r.constructor(e)).c,a=r.s,o=e.s,s=r.e,c=e.e;if(!n[0]||!i[0]){return!n[0]?!i[0]?0:-o:a}if(a!=o){return a}t=a<0;if(s!=c){return s>c^t?1:-1}a=-1;o=(s=n.length)<(c=i.length)?s:c;for(;++a<o;){if(n[a]!=i[a]){return n[a]>i[a]^t?1:-1}}return s==c?0:s>c^t?1:-1};c.div=function(e){var t=this,r=t.constructor,n=t.c,a=(e=new r(e)).c,o=t.s==e.s?1:-1,s=r.DP;if(s!==~~s||s<0||s>i){throwErr("!Big.DP!")}if(!n[0]||!a[0]){if(n[0]==a[0]){throwErr(NaN)}if(!a[0]){throwErr(o/0)}return new r(o*0)}var c,u,l,f,d,p,g=a.slice(),_=c=a.length,m=n.length,y=n.slice(0,c),h=y.length,v=e,T=v.c=[],S=0,b=s+(v.e=t.e-e.e)+1;v.s=o;o=b<0?0:b;g.unshift(0);for(;h++<c;y.push(0)){}do{for(l=0;l<10;l++){if(c!=(h=y.length)){f=c>h?1:-1}else{for(d=-1,f=0;++d<c;){if(a[d]!=y[d]){f=a[d]>y[d]?1:-1;break}}}if(f<0){for(u=h==c?a:g;h;){if(y[--h]<u[h]){d=h;for(;d&&!y[--d];y[d]=9){}--y[d];y[h]+=10}y[h]-=u[h]}for(;!y[0];y.shift()){}}else{break}}T[S++]=f?l:++l;if(y[0]&&f){y[h]=n[_]||0}else{y=[n[_]]}}while((_++<m||y[0]!==p)&&o--);if(!T[0]&&S!=1){T.shift();v.e--}if(S>b){rnd(v,s,r.RM,y[0]!==p)}return v};c.eq=function(e){return!this.cmp(e)};c.gt=function(e){return this.cmp(e)>0};c.gte=function(e){return this.cmp(e)>-1};c.lt=function(e){return this.cmp(e)<0};c.lte=function(e){return this.cmp(e)<1};c.sub=c.minus=function(e){var t,r,n,i,a=this,o=a.constructor,s=a.s,c=(e=new o(e)).s;if(s!=c){e.s=-c;return a.plus(e)}var u=a.c.slice(),l=a.e,f=e.c,d=e.e;if(!u[0]||!f[0]){return f[0]?(e.s=-c,e):new o(u[0]?a:0)}if(s=l-d){if(i=s<0){s=-s;n=u}else{d=l;n=f}n.reverse();for(c=s;c--;n.push(0)){}n.reverse()}else{r=((i=u.length<f.length)?u:f).length;for(s=c=0;c<r;c++){if(u[c]!=f[c]){i=u[c]<f[c];break}}}if(i){n=u;u=f;f=n;e.s=-e.s}if((c=(r=f.length)-(t=u.length))>0){for(;c--;u[t++]=0){}}for(c=t;r>s;){if(u[--r]<f[r]){for(t=r;t&&!u[--t];u[t]=9){}--u[t];u[r]+=10}u[r]-=f[r]}for(;u[--c]===0;u.pop()){}for(;u[0]===0;){u.shift();--d}if(!u[0]){e.s=1;u=[d=0]}e.c=u;e.e=d;return e};c.mod=function(e){var t,r=this,n=r.constructor,i=r.s,a=(e=new n(e)).s;if(!e.c[0]){throwErr(NaN)}r.s=e.s=1;t=e.cmp(r)==1;r.s=i;e.s=a;if(t){return new n(r)}i=n.DP;a=n.RM;n.DP=n.RM=0;r=r.div(e);n.DP=i;n.RM=a;return this.minus(r.times(e))};c.add=c.plus=function(e){var t,r=this,n=r.constructor,i=r.s,a=(e=new n(e)).s;if(i!=a){e.s=-a;return r.minus(e)}var o=r.e,s=r.c,c=e.e,u=e.c;if(!s[0]||!u[0]){return u[0]?e:new n(s[0]?r:i*0)}s=s.slice();if(i=o-c){if(i>0){c=o;t=u}else{i=-i;t=s}t.reverse();for(;i--;t.push(0)){}t.reverse()}if(s.length-u.length<0){t=u;u=s;s=t}i=u.length;for(a=0;i;){a=(s[--i]=s[i]+u[i]+a)/10|0;s[i]%=10}if(a){s.unshift(a);++c}for(i=s.length;s[--i]===0;s.pop()){}e.c=s;e.e=c;return e};c.pow=function(e){var t=this,r=new t.constructor(1),n=r,i=e<0;if(e!==~~e||e<-a||e>a){throwErr("!pow!")}e=i?-e:e;for(;;){if(e&1){n=n.times(t)}e>>=1;if(!e){break}t=t.times(t)}return i?r.div(n):n};c.round=function(e,t){var r=this,n=r.constructor;if(e==null){e=0}else if(e!==~~e||e<0||e>i){throwErr("!round!")}rnd(r=new n(r),e,t==null?n.RM:t);return r};c.sqrt=function(){var e,t,r,n=this,i=n.constructor,a=n.c,o=n.s,s=n.e,c=new i("0.5");if(!a[0]){return new i(n)}if(o<0){throwErr(NaN)}o=Math.sqrt(n.toString());if(o===0||o===1/0){e=a.join("");if(!(e.length+s&1)){e+="0"}t=new i(Math.sqrt(e).toString());t.e=((s+1)/2|0)-(s<0||s&1)}else{t=new i(o.toString())}o=t.e+(i.DP+=4);do{r=t;t=c.times(r.plus(n.div(r)))}while(r.c.slice(0,o).join("")!==t.c.slice(0,o).join(""));rnd(t,i.DP-=4,i.RM);return t};c.mul=c.times=function(e){var t,r=this,n=r.constructor,i=r.c,a=(e=new n(e)).c,o=i.length,s=a.length,c=r.e,u=e.e;e.s=r.s==e.s?1:-1;if(!i[0]||!a[0]){return new n(e.s*0)}e.e=c+u;if(o<s){t=i;i=a;a=t;u=o;o=s;s=u}for(t=new Array(u=o+s);u--;t[u]=0){}for(c=s;c--;){s=0;for(u=o+c;u>c;){s=t[u]+a[c]*i[u-c-1]+s;t[u--]=s%10;s=s/10|0}t[u]=(t[u]+s)%10}if(s){++e.e}if(!t[0]){t.shift()}for(c=t.length;!t[--c];t.pop()){}e.c=t;return e};c.toString=c.valueOf=c.toJSON=function(){var e=this,t=e.constructor,r=e.e,n=e.c.join(""),i=n.length;if(r<=t.E_NEG||r>=t.E_POS){n=n.charAt(0)+(i>1?"."+n.slice(1):"")+(r<0?"e":"e+")+r}else if(r<0){for(;++r;n="0"+n){}n="0."+n}else if(r>0){if(++r>i){for(r-=i;r--;n+="0"){}}else if(r<i){n=n.slice(0,r)+"."+n.slice(r)}}else if(i>1){n=n.charAt(0)+"."+n.slice(1)}return e.s<0&&e.c[0]?"-"+n:n};c.toExponential=function(e){if(e==null){e=this.c.length-1}else if(e!==~~e||e<0||e>i){throwErr("!toExp!")}return format(this,e,1)};c.toFixed=function(e){var t,r=this,n=r.constructor,a=n.E_NEG,o=n.E_POS;n.E_NEG=-(n.E_POS=1/0);if(e==null){t=r.toString()}else if(e===~~e&&e>=0&&e<=i){t=format(r,r.e+e);if(r.s<0&&r.c[0]&&t.indexOf("-")<0){t="-"+t}}n.E_NEG=a;n.E_POS=o;if(!t){throwErr("!toFix!")}return t};c.toPrecision=function(e){if(e==null){return this.toString()}else if(e!==~~e||e<1||e>i){throwErr("!toPre!")}return format(this,e-1,2)};l=bigFactory();if(typeof define==="function"&&define.amd){define(function(){return l})}else if(true&&e.exports){e.exports=l;e.exports.Big=l}else{t.Big=l}})(this)},161:(e,t)=>{var r=true?t:0;r.parse=function(){"use strict";var e,t,r,n,i={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=[" ","\t","\r","\n","\v","\f"," ","\ufeff"],o,s=function(e){return e===""?"EOF":"'"+e+"'"},c=function(n){var i=new SyntaxError;i.message=n+" at line "+t+" column "+r+" of the JSON5 data. Still to read: "+JSON.stringify(o.substring(e-1,e+19));i.at=e;i.lineNumber=t;i.columnNumber=r;throw i},u=function(i){if(i&&i!==n){c("Expected "+s(i)+" instead of "+s(n))}n=o.charAt(e);e++;r++;if(n==="\n"||n==="\r"&&l()!=="\n"){t++;r=0}return n},l=function(){return o.charAt(e)},f=function(){var e=n;if(n!=="_"&&n!=="$"&&(n<"a"||n>"z")&&(n<"A"||n>"Z")){c("Bad identifier as unquoted key")}while(u()&&(n==="_"||n==="$"||n>="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9")){e+=n}return e},d=function(){var e,t="",r="",i=10;if(n==="-"||n==="+"){t=n;u(n)}if(n==="I"){e=h();if(typeof e!=="number"||isNaN(e)){c("Unexpected word for number")}return t==="-"?-e:e}if(n==="N"){e=h();if(!isNaN(e)){c("expected word to be NaN")}return e}if(n==="0"){r+=n;u();if(n==="x"||n==="X"){r+=n;u();i=16}else if(n>="0"&&n<="9"){c("Octal literal")}}switch(i){case 10:while(n>="0"&&n<="9"){r+=n;u()}if(n==="."){r+=".";while(u()&&n>="0"&&n<="9"){r+=n}}if(n==="e"||n==="E"){r+=n;u();if(n==="-"||n==="+"){r+=n;u()}while(n>="0"&&n<="9"){r+=n;u()}}break;case 16:while(n>="0"&&n<="9"||n>="A"&&n<="F"||n>="a"&&n<="f"){r+=n;u()}break}if(t==="-"){e=-r}else{e=+r}if(!isFinite(e)){c("Bad number")}else{return e}},p=function(){var e,t,r="",a,o;if(n==='"'||n==="'"){a=n;while(u()){if(n===a){u();return r}else if(n==="\\"){u();if(n==="u"){o=0;for(t=0;t<4;t+=1){e=parseInt(u(),16);if(!isFinite(e)){break}o=o*16+e}r+=String.fromCharCode(o)}else if(n==="\r"){if(l()==="\n"){u()}}else if(typeof i[n]==="string"){r+=i[n]}else{break}}else if(n==="\n"){break}else{r+=n}}}c("Bad string")},g=function(){if(n!=="/"){c("Not an inline comment")}do{u();if(n==="\n"||n==="\r"){u();return}}while(n)},_=function(){if(n!=="*"){c("Not a block comment")}do{u();while(n==="*"){u("*");if(n==="/"){u("/");return}}}while(n);c("Unterminated block comment")},m=function(){if(n!=="/"){c("Not a comment")}u("/");if(n==="/"){g()}else if(n==="*"){_()}else{c("Unrecognized comment")}},y=function(){while(n){if(n==="/"){m()}else if(a.indexOf(n)>=0){u()}else{return}}},h=function(){switch(n){case"t":u("t");u("r");u("u");u("e");return true;case"f":u("f");u("a");u("l");u("s");u("e");return false;case"n":u("n");u("u");u("l");u("l");return null;case"I":u("I");u("n");u("f");u("i");u("n");u("i");u("t");u("y");return Infinity;case"N":u("N");u("a");u("N");return NaN}c("Unexpected "+s(n))},v,T=function(){var e=[];if(n==="["){u("[");y();while(n){if(n==="]"){u("]");return e}if(n===","){c("Missing array element")}else{e.push(v())}y();if(n!==","){u("]");return e}u(",");y()}}c("Bad array")},S=function(){var e,t={};if(n==="{"){u("{");y();while(n){if(n==="}"){u("}");return t}if(n==='"'||n==="'"){e=p()}else{e=f()}y();u(":");t[e]=v();y();if(n!==","){u("}");return t}u(",");y()}}c("Bad object")};v=function(){y();switch(n){case"{":return S();case"[":return T();case'"':case"'":return p();case"-":case"+":case".":return d();default:return n>="0"&&n<="9"?d():h()}};return function(i,a){var s;o=String(i);e=0;t=1;r=1;n=" ";s=v();y();if(n){c("Syntax error")}return typeof a==="function"?function walk(e,t){var r,n,i=e[t];if(i&&typeof i==="object"){for(r in i){if(Object.prototype.hasOwnProperty.call(i,r)){n=walk(i,r);if(n!==undefined){i[r]=n}else{delete i[r]}}}}return a.call(e,t,i)}({"":s},""):s}}();r.stringify=function(e,t,n){if(t&&(typeof t!=="function"&&!isArray(t))){throw new Error("Replacer must be a function or an array")}var i=function(e,r,n){var i=e[r];if(i&&i.toJSON&&typeof i.toJSON==="function"){i=i.toJSON()}if(typeof t==="function"){return t.call(e,r,i)}else if(t){if(n||isArray(e)||t.indexOf(r)>=0){return i}else{return undefined}}else{return i}};function isWordChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"||e==="$"}function isWordStart(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"||e==="$"}function isWord(e){if(typeof e!=="string"){return false}if(!isWordStart(e[0])){return false}var t=1,r=e.length;while(t<r){if(!isWordChar(e[t])){return false}t++}return true}r.isWord=isWord;function isArray(e){if(Array.isArray){return Array.isArray(e)}else{return Object.prototype.toString.call(e)==="[object Array]"}}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}var a=[];function checkForCircular(e){for(var t=0;t<a.length;t++){if(a[t]===e){throw new TypeError("Converting circular structure to JSON")}}}function makeIndent(e,t,r){if(!e){return""}if(e.length>10){e=e.substring(0,10)}var n=r?"":"\n";for(var i=0;i<t;i++){n+=e}return n}var o;if(n){if(typeof n==="string"){o=n}else if(typeof n==="number"&&n>=0){o=makeIndent(" ",n,true)}else{}}var s=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function escapeString(e){c.lastIndex=0;return c.test(e)?'"'+e.replace(c,function(e){var t=u[e];return typeof t==="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function internalStringify(e,t,r){var n,s;var c=i(e,t,r);if(c&&!isDate(c)){c=c.valueOf()}switch(typeof c){case"boolean":return c.toString();case"number":if(isNaN(c)||!isFinite(c)){return"null"}return c.toString();case"string":return escapeString(c.toString());case"object":if(c===null){return"null"}else if(isArray(c)){checkForCircular(c);n="[";a.push(c);for(var u=0;u<c.length;u++){s=internalStringify(c,u,false);n+=makeIndent(o,a.length);if(s===null||typeof s==="undefined"){n+="null"}else{n+=s}if(u<c.length-1){n+=","}else if(o){n+="\n"}}a.pop();if(c.length){n+=makeIndent(o,a.length,true)}n+="]"}else{checkForCircular(c);n="{";var l=false;a.push(c);for(var f in c){if(c.hasOwnProperty(f)){var d=internalStringify(c,f,false);r=false;if(typeof d!=="undefined"&&d!==null){n+=makeIndent(o,a.length);l=true;t=isWord(f)?f:escapeString(f);n+=t+":"+(o?" ":"")+d+","}}}a.pop();if(l){n=n.substring(0,n.length-1)+makeIndent(o,a.length)+"}"}else{n="{}"}}return n;default:return undefined}}var l={"":e};if(e===undefined){return i(l,"",true)}return internalStringify(l,"",true)}},1637:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},8098:(e,t,r)=>{"use strict";var n=r(1669);var i=r(4274);e.exports=function mapVisit(e,t,r){if(isObject(r)){return i.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var a=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var s=r[o];if(isObject(s)){i.apply(null,[e,t,s].concat(a))}else{e[t].apply(e,[s].concat(a))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},9987:(e,t,r)=>{var n=r(5369);var i=/^[A-Z]:([\\\/]|$)/i;var a=/^\//i;e.exports=function join(e,t){if(!t)return n(e);if(i.test(t))return n(t.replace(/\//g,"\\"));if(a.test(t))return n(t);if(e=="/")return n(e+t);if(i.test(e))return n(e.replace(/\//g,"\\")+"\\"+t.replace(/\//g,"\\"));if(a.test(e))return n(e+"/"+t);return n(e+"/"+t)}},5369:e=>{e.exports=function normalize(e){var t=e.split(/(\\+|\/+)/);if(t.length===1)return e;var r=[];var n=0;for(var i=0,a=false;i<t.length;i++,a=!a){var o=t[i];if(i===0&&/^([A-Z]:)?$/i.test(o)){r.push(o);n=2}else if(a){r.push(o[0])}else if(o===".."){switch(r.length){case 0:r.push(o);break;case 2:i++;a=!a;r.length=n;break;case 4:if(n===0){r.length-=3}else{i++;a=!a;r.length=2}break;default:r.length-=3;break}}else if(o==="."){switch(r.length){case 0:r.push(o);break;case 2:if(n===0){r.length--}else{i++;a=!a}break;default:r.length--;break}}else if(o){r.push(o)}}if(r.length===1&&/^[A-Za-z]:$/.test(r))return r[0]+"\\";return r.join("")}},9811:(e,t,r)=>{"use strict";var n=r(7459);var i=r(1718);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var a=arguments[n];if(isObject(a)){i(a,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},7459:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},5434:(e,t,r)=>{"use strict";var n=r(1669);var i=r(9532);var a=r(5577);var o=r(107);var s=r(2513);var c=r(520);var u=r(8063);var l=1024*64;function nanomatch(e,t,r){t=u.arrayify(t);e=u.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return nanomatch.match(e,t[0],r)}var i=false;var a=[];var o=[];var s=-1;while(++s<n){var c=t[s];if(typeof c==="string"&&c.charCodeAt(0)===33){a.push.apply(a,nanomatch.match(e,c.slice(1),r));i=true}else{o.push.apply(o,nanomatch.match(e,c,r))}}if(i&&o.length===0){if(r&&r.unixify===false){o=e.slice()}else{var l=u.unixify(r);for(var f=0;f<e.length;f++){o.push(l(e[f]))}}}var d=u.diff(o,a);if(!r||r.nodupes!==false){return u.unique(d)}return d}nanomatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=u.unixify(r);var i=memoize("match",t,r,nanomatch.matcher);var a=[];e=u.arrayify(e);var o=e.length;var s=-1;while(++s<o){var c=e[s];if(c===t||i(c)){a.push(u.value(c,n,r))}}if(typeof r==="undefined"){return u.unique(a)}if(a.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?u.unescape(t):t]}}if(r.ignore){a=nanomatch.not(a,r.ignore,r)}return r.nodupes!==false?u.unique(a):a};nanomatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(r);if(i(e)){return true}var a=memoize("isMatch",t,r,nanomatch.matcher);return a(e)};nanomatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length===1){return true}}return false};nanomatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length!==1){return false}}return true};nanomatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(nanomatch.isMatch(e,t[i],r)){return true}}return false};nanomatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!nanomatch.isMatch(e,t[i],r)){return false}}return true};nanomatch.not=function(e,t,r){var n=a({},r);var i=n.ignore;delete n.ignore;e=u.arrayify(e);var o=u.diff(e,nanomatch(e,t,n));if(i){o=u.diff(o,nanomatch(e,i))}return n.nodupes!==false?u.unique(o):o};nanomatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(t,r);if(i(e)){return true}var o=u.containsPattern(t,r);if(o(e)){return true}}var s=a({},r,{contains:true});return nanomatch.any(e,t,s)};nanomatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};nanomatch.matchKeys=function(e,t,r){if(!u.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=nanomatch(Object.keys(e),t,r);return u.pick(e,n)};nanomatch.matcher=function matcher(e,t){if(u.isEmptyString(e)){return function(){return false}}if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!u.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!u.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return u.matchPath(e,t)}var r=nanomatch.makeRe(e,t);if(nanomatch.matchBase(e,t)){return u.matchBasename(r,t)}function test(e){var r=u.equalsPattern(t);var n=u.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);u.define(n,"result",r.result);return n};nanomatch.capture=function(e,t,r){var n=nanomatch.makeRe(e,a({capture:true},r));var i=u.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var o=memoize("capture",e,r,match);return o(t)};nanomatch.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=u.extend({wrap:false},t);var n=nanomatch.create(e,r);var a=i(n.output,r);u.define(a,"result",n);return a}return memoize("makeRe",e,t,makeRe)};nanomatch.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(e,t),t)}return memoize("create",e,t,create)};nanomatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=u.instantiate(null,t);s(r,t);var n=r.parse(e,t);u.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};nanomatch.compile=function(e,t){if(typeof e==="string"){e=nanomatch.parse(e,t)}function compile(){var r=u.instantiate(e,t);o(r,t);return r.compile(e,t)}return memoize("compile",e.input,t,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++){n.push(r(e[a],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=u.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(c.has(e,i)){return c.get(e,i)}var a=n(t,r);c.set(e,i,a);return a}nanomatch.compilers=o;nanomatch.parsers=s;nanomatch.cache=c;e.exports=nanomatch},520:(e,t,r)=>{e.exports=new(r(9111))},107:e=>{"use strict";e.exports=function(e,t){function slash(){if(t&&typeof t.slash==="string"){return t.slash}if(t&&typeof t.slash==="function"){return t.slash.call(e)}return"\\\\/"}function star(){if(t&&typeof t.star==="string"){return t.star}if(t&&typeof t.star==="function"){return t.star.call(e)}return"[^"+slash()+"]*?"}var r=e.ast=e.parser.ast;r.state=e.parser.state;e.compiler.state=r.state;e.compiler.set("not",function(e){var t=this.prev();if(this.options.nonegate===true||t.type!=="bos"){return this.emit("\\"+e.val,e)}return this.emit(e.val,e)}).set("escape",function(e){if(this.options.unescape&&/^[-\w_.]/.test(e.val)){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("quoted",function(e){return this.emit(e.val,e)}).set("dollar",function(e){if(e.parent.type==="bracket"){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("dot",function(e){if(e.dotfiles===true)this.dotfiles=true;return this.emit("\\"+e.val,e)}).set("backslash",function(e){return this.emit(e.val,e)}).set("slash",function(e,t,r){var n="["+slash()+"]";var i=e.parent;var a=this.prev();while(i.type==="paren"&&!i.hasSlash){i.hasSlash=true;i=i.parent}if(a.addQmark){n+="?"}if(e.rest.slice(0,2)==="\\b"){return this.emit(n,e)}if(e.parsed==="**"||e.parsed==="./**"){this.output="(?:"+this.output;return this.emit(n+")?",e)}if(e.parsed==="!**"&&this.options.nonegate!==true){return this.emit(n+"?\\b",e)}return this.emit(n,e)}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var n=e.negated;var i=e.inner;var a=e.val;if(e.escaped===true){i=i.replace(/\\?(\W)/g,"\\$1");n=""}if(i==="]-"){i="\\]\\-"}if(n&&i.indexOf(".")===-1){i+="."}if(n&&i.indexOf("/")===-1){i+="/"}a=r+n+i+t;return this.emit(a,e)}).set("square",function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)}).set("qmark",function(e){var t=this.prev();var r="[^.\\\\/]";if(this.options.dot||t.type!=="bos"&&t.type!=="slash"){r="[^\\\\/]"}if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n==="!"||n==="="||n===":"){return this.emit(e.val,e)}}if(e.val.length>1){r+="{"+e.val.length+"}"}return this.emit(r,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}var r=this.output.slice(-1);if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("globstar",function(e,t,r){if(!this.output){this.state.leadingGlobstar=true}var n=this.prev();var i=this.prev(2);var a=this.next();var o=this.next(2);var s=n.type;var c=e.val;if(n.type==="slash"&&a.type==="slash"){if(i.type==="text"){this.output+="?";if(o.type!=="text"){this.output+="\\b"}}}var u=e.parsed;if(u.charAt(0)==="!"){u=u.slice(1)}var l=e.isInside.paren||e.isInside.brace;if(u&&s!=="slash"&&s!=="bos"&&!l){c=star()}else{c=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((s==="slash"||s==="bos")&&this.options.dot!==true){c="(?!\\.)"+c}if(n.type==="slash"&&a.type==="slash"&&i.type!=="text"){if(o.type==="text"||o.type==="star"){e.addQmark=true}}if(this.options.capture){c="("+c+")"}return this.emit(c,e)}).set("star",function(e,t,r){var n=t[r-2]||{};var i=this.prev();var a=this.next();var o=i.type;function isStart(e){return e.type==="bos"||e.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(o==="bracket"&&this.options.bash===false){var s=a&&a.type==="bracket"?star():"*?";if(!i.nodes||i.nodes[1].type!=="posix"){return this.emit(s,e)}}var c=!this.dotfiles&&o!=="text"&&o!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(i)||isStart(n)&&o==="not"){if(c!=="(?!\\.)"){c+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{c+="(?=.)"}}else if(c==="(?!\\.)"){c=""}if(i.type==="not"&&n.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var u=c+star();if(this.options.capture){u="("+u+")"}return this.emit(u,e)}).set("text",function(e){return this.emit(e.val,e)}).set("eos",function(e){var t=this.prev();var r=e.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&t.type!=="qmark"&&t.type!=="slash"){r+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(r,e)});if(t&&typeof t.compilers==="function"){t.compilers(e.compiler)}}},2513:(e,t,r)=>{"use strict";var n=r(3089);var i=r(9532);var a;var o="[\\[!*+?$^\"'.\\\\/]+";var s=createTextRegex(o);e.exports=function(e,t){var r=e.parser;var n=r.options;r.state={slashes:0,paths:[]};r.ast.state=r.state;r.capture("prefix",function(){if(this.parsed)return;var e=this.match(/^\.[\\/]/);if(!e)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true}).capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^(?:\\(.)|([$^]))/);if(!t)return;return e({type:"escape",val:t[2]||t[1]})}).capture("quoted",function(){var e=this.position();var t=this.match(/^["']/);if(!t)return;var r=t[0];if(this.input.indexOf(r)===-1){return e({type:"escape",val:r})}var n=advanceTo(this.input,r);this.consume(n.len);return e({type:"quoted",val:n.esc})}).capture("not",function(){var e=this.parsed;var t=this.position();var r=this.match(this.notRegex||/^!+/);if(!r)return;var n=r[0];var i=n.length%2===1;if(e===""&&!i){n=""}if(e===""&&i&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";n=""}return t({type:"not",val:n})}).capture("dot",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\.+/);if(!r)return;var n=r[0];this.state.dot=n==="."&&(e===""||e.slice(-1)==="/");return t({type:"dot",dotfiles:this.state.dot,val:n})}).capture("plus",/^\+(?!\()/).capture("qmark",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\?+(?!\()/);if(!r)return;this.state.metachar=true;this.state.qmark=true;return t({type:"qmark",parsed:e,val:r[0]})}).capture("globstar",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!r)return;var i=n.noglobstar!==true?"globstar":"star";var a=t({type:i,parsed:e});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}a.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(i==="globstar"){this.state.globstar=true;a.val="**"}else{this.state.star=true;a.val="*"}return a}).capture("star",function(){var e=this.position();var t=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var r=this.match(t);if(!r)return;this.state.metachar=true;this.state.star=true;return e({type:"star",val:r[0]})}).capture("slash",function(){var e=this.position();var t=this.match(/^\//);if(!t)return;this.state.slashes++;return e({type:"slash",val:t[0]})}).capture("backslash",function(){var e=this.position();var t=this.match(/^\\(?![*+?(){}[\]'"])/);if(!t)return;var r=t[0];if(this.isInside("bracket")){r="\\"}else if(r.length>1){r="\\\\"}return e({type:"backslash",val:r})}).capture("square",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\[([^!^\\])\]/);if(!t)return;return e({type:"square",val:t[1]})}).capture("bracket",function(){var e=this.position();var t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!t)return;var r=t[0];var n=t[1]?"^":"";var i=(t[2]||"").replace(/\\\\+/,"\\\\");var a=t[3]||"";if(t[2]&&i.length<t[2].length){r=r.replace(/\\\\+/,"\\\\")}var o=this.input.slice(0,2);if(i===""&&o==="\\]"){i+=o;this.consume(2);var s=this.input;var c=-1;var u;while(u=s[++c]){this.consume(1);if(u==="]"){a=u;break}i+=u}}return e({type:"bracket",val:r,escaped:a!=="]",negated:n,inner:i,close:a})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(s);if(!t||!t[0])return;return e({type:"text",val:t[0]})});if(t&&typeof t.parsers==="function"){t.parsers(e.parser)}};function advanceTo(e,t){var r=e.charAt(0);var n={len:1,val:"",esc:""};var i=0;function advance(){if(r!=="\\"){n.esc+="\\"+r;n.val+=r}r=e.charAt(++i);n.len++;if(r==="\\"){advance();advance()}}while(r&&r!==t){advance()}return n}function createTextRegex(e){if(a)return a;var t={contains:true,strictClose:false};var r=n.create(e,t);var o=i("^(?:[*]\\((?=.)|"+r+")",t);return a=o}e.exports.not=o},8063:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var a=r(7875)();var o=r(9769);n.define=r(4205);n.diff=r(6253);n.extend=r(5577);n.pick=r(5767);n.typeOf=r(740);n.unique=r(6974);n.isEmptyString=function(e){return String(e)===""||String(e)==="./"};n.isWindows=function(){return i.sep==="\\"||a===true};n.last=function(e,t){return e[e.length-(t||1)]};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new o(t)}n.define(r,"parse",function(e,t){var r=o.prototype.parse.call(this,e,t);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var a=i.nodes[0];var s=i.nodes[1];if(i.type==="bracket"){if(s.val.charAt(0)==="["){s.val="\\"+s.val}}else{a.val="\\"+a.val;var c=a.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(typeof t==="undefined"){return e}var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isRegex=function(e){return n.typeOf(e)==="regexp"};n.isObject=function(e){return n.typeOf(e)==="object"};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};n.combineDupes=function(e,t){t=n.arrayify(t).join("|").split("|");t=t.map(function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")});var r=t.join("|");var i=new RegExp("("+r+")(?=\\1)","g");return e.replace(i,"")};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripDrive=function(e){return n.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e};n.stripPrefix=function(e){if(e.charAt(0)==="."&&(e.charAt(1)==="/"||e.charAt(1)==="\\")){return e.slice(2)}return e};n.isSimpleChar=function(e){return e.trim()===""||e==="."};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var a=n._equals(i,r(i),e);if(a===true||t.nocase!==true){return a}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var a=n._contains(i,r(i),e);if(a===true||t.nocase!==true){return a}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(t)||e.test(i.basename(t))}};n.identity=function(e){return e};n.value=function(e,t,r){if(r&&r.unixify===false){return e}if(r&&typeof r.unixify==="function"){return r.unixify(e)}return t(e)};n.unixify=function(e){var t=e||{};return function(e){if(t.stripPrefix!==false){e=n.stripPrefix(e)}if(t.unescape===true){e=n.unescape(e)}if(t.unixify===true||n.isWindows()){e=n.toPosixPath(e)}return e}}},4205:(e,t,r)=>{"use strict";var n=r(977);var i=r(8586);var a=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){a(e,t,r);return e}a(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},5577:(e,t,r)=>{"use strict";var n=r(3603);var i=r(7954);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},3603:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},7875:(e,t)=>{(function(r){if(t&&typeof t==="object"&&"object"!=="undefined"){e.exports=r()}else if(typeof define==="function"&&define.amd){define([],r)}else if(typeof window!=="undefined"){window.isWindows=r()}else if(typeof global!=="undefined"){global.isWindows=r()}else if(typeof self!=="undefined"){self.isWindows=r()}else{this.isWindows=r()}})(function(){"use strict";return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})},740:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return e.constructor?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},3991:(e,t,r)=>{"use strict";var n=r(2046);var i=r(5320);var a=r(4728);function copy(e,t,r){if(!isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=nativeKeys(t);var o=Object.keys(t);var s=n.length;r=arrayify(r);while(s--){var c=n[s];if(has(o,c)){a(e,c,t[c])}else if(!(c in e)&&!has(r,c)){i(e,t,c)}}}function isObject(e){return n(e)==="object"||typeof e==="function"}function has(e,t){t=arrayify(t);var r=t.length;if(isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=nativeKeys(e);return has(i,t)}if(Array.isArray(e)){var a=e;while(r--){if(a.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}function hasConstructor(e){return isObject(e)&&typeof e.constructor!=="undefined"}function nativeKeys(e){if(!hasConstructor(e))return[];return Object.getOwnPropertyNames(e)}e.exports=copy;e.exports.has=has},4274:(e,t,r)=>{"use strict";var n=r(977);e.exports=function visit(e,t,r,i){if(!n(e)&&typeof e!=="function"){throw new Error("object-visit expects `thisArg` to be an object.")}if(typeof t!=="string"){throw new Error("object-visit expects `method` name to be a string")}if(typeof e[t]!=="function"){return e}var a=[].slice.call(arguments,3);r=r||{};for(var o in r){var s=[o,r[o]].concat(a);e[t].apply(e,s)}return e}},5767:(e,t,r)=>{"use strict";var n=r(977);e.exports=function pick(e,t){if(!n(e)&&typeof e!=="function"){return{}}var r={};if(typeof t==="string"){if(t in e){r[t]=e[t]}return r}var i=t.length;var a=-1;while(++a<i){var o=t[a];if(o in e){r[o]=e[o]}}return r}},771:e=>{function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=pascalcase},5419:e=>{"use strict";e.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},3089:(e,t,r)=>{"use strict";var n=r(9223);var i=r(3867);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var a=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var s=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+s}else{c="(?:(?!^(?:"+e+")$).)"+s}var u=a+c+o;if(r.safe===true&&i(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},9223:(e,t,r)=>{"use strict";var n=r(9150);var i=r(7954);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},9150:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},193:e=>{"use strict";e.exports=function repeat(e,t){var r=new Array(t);for(var n=0;n<t;n++){r[n]=e}return r}},9437:e=>{"use strict";var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var i=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=i){return t.substr(0,i)}while(i>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,i);return t}},6889:(e,t,r)=>{var n=r(3842);var i=r(5334);var a=r(533);var o=r(3503);e.exports=function(e){var t=0,r,s,c={type:i.ROOT,stack:[]},u=c,l=c.stack,f=[];var d=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){s=p[t++];switch(s){case"\\":s=p[t++];switch(s){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(a.words());break;case"W":l.push(a.notWords());break;case"d":l.push(a.ints());break;case"D":l.push(a.notInts());break;case"s":l.push(a.whitespace());break;case"S":l.push(a.notWhitespace());break;default:if(/\d/.test(s)){l.push({type:i.REFERENCE,value:parseInt(s,10)})}else{l.push({type:i.CHAR,value:s.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var g;if(p[t]==="^"){g=true;t++}else{g=false}var _=n.tokenizeClass(p.slice(t),e);t+=_[1];l.push({type:i.SET,set:_[0],not:g});break;case".":l.push(a.anyChar());break;case"(":var m={type:i.GROUP,stack:[],remember:true};s=p[t];if(s==="?"){s=p[t+1];t+=2;if(s==="="){m.followedBy=true}else if(s==="!"){m.notFollowedBy=true}else if(s!==":"){n.error(e,"Invalid group, character '"+s+"' after '?' at column "+(t-1))}m.remember=false}l.push(m);f.push(u);u=m;l=m.stack;break;case")":if(f.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=f.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var y=[];u.options.push(y);l=y;break;case"{":var h=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),v,T;if(h!==null){if(l.length===0){d(t)}v=parseInt(h[1],10);T=h[2]?h[3]?parseInt(h[3],10):Infinity:v;t+=h[0].length;l.push({type:i.REPETITION,min:v,max:T,value:l.pop()})}else{l.push({type:i.CHAR,value:123})}break;case"?":if(l.length===0){d(t)}l.push({type:i.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){d(t)}l.push({type:i.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){d(t)}l.push({type:i.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:i.CHAR,value:s.charCodeAt(0)})}}if(f.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=i},3503:(e,t,r)=>{var n=r(5334);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},533:(e,t,r)=>{var n=r(5334);var i=function(){return[{type:n.RANGE,from:48,to:57}]};var a=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(i())};var o=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var s=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:a(),not:false}};t.notWords=function(){return{type:n.SET,set:a(),not:true}};t.ints=function(){return{type:n.SET,set:i(),not:false}};t.notInts=function(){return{type:n.SET,set:i(),not:true}};t.whitespace=function(){return{type:n.SET,set:o(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:o(),not:true}};t.anyChar=function(){return{type:n.SET,set:s(),not:true}}},5334:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},3842:(e,t,r)=>{var n=r(5334);var i=r(533);var a="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,function(e,t,r,n,i,s,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):i?parseInt(i,16):s?parseInt(s,8):c?a.indexOf(c):o[u];var f=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(f)){f="\\"+f}return f});return e};t.tokenizeClass=function(e,r){var a=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var s,c;while((s=o.exec(e))!=null){if(s[1]){a.push(i.words())}else if(s[2]){a.push(i.ints())}else if(s[3]){a.push(i.whitespace())}else if(s[4]){a.push(i.notWords())}else if(s[5]){a.push(i.notInts())}else if(s[6]){a.push(i.notWhitespace())}else if(s[7]){a.push({type:n.RANGE,from:(s[8]||s[9]).charCodeAt(0),to:s[10].charCodeAt(0)})}else if(c=s[12]){a.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[a,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},3867:(e,t,r)=>{var n=r(6889);var i=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var a=0;return function walk(e,t){if(e.type===i.REPETITION){t++;a++;if(t>1)return false;if(a>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var s=walk({stack:e.options[n]},t);if(!s)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var s=walk(c[n],t);if(!s)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},2729:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var o=t.re=[];var s=t.src=[];var c=0;var u=c++;s[u]="0|[1-9]\\d*";var l=c++;s[l]="[0-9]+";var f=c++;s[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=c++;s[d]="("+s[u]+")\\."+"("+s[u]+")\\."+"("+s[u]+")";var p=c++;s[p]="("+s[l]+")\\."+"("+s[l]+")\\."+"("+s[l]+")";var g=c++;s[g]="(?:"+s[u]+"|"+s[f]+")";var _=c++;s[_]="(?:"+s[l]+"|"+s[f]+")";var m=c++;s[m]="(?:-("+s[g]+"(?:\\."+s[g]+")*))";var y=c++;s[y]="(?:-?("+s[_]+"(?:\\."+s[_]+")*))";var h=c++;s[h]="[0-9A-Za-z-]+";var v=c++;s[v]="(?:\\+("+s[h]+"(?:\\."+s[h]+")*))";var T=c++;var S="v?"+s[d]+s[m]+"?"+s[v]+"?";s[T]="^"+S+"$";var b="[v=\\s]*"+s[p]+s[y]+"?"+s[v]+"?";var x=c++;s[x]="^"+b+"$";var C=c++;s[C]="((?:<|>)?=?)";var E=c++;s[E]=s[l]+"|x|X|\\*";var D=c++;s[D]=s[u]+"|x|X|\\*";var k=c++;s[k]="[v=\\s]*("+s[D]+")"+"(?:\\.("+s[D]+")"+"(?:\\.("+s[D]+")"+"(?:"+s[m]+")?"+s[v]+"?"+")?)?";var N=c++;s[N]="[v=\\s]*("+s[E]+")"+"(?:\\.("+s[E]+")"+"(?:\\.("+s[E]+")"+"(?:"+s[y]+")?"+s[v]+"?"+")?)?";var A=c++;s[A]="^"+s[C]+"\\s*"+s[k]+"$";var O=c++;s[O]="^"+s[C]+"\\s*"+s[N]+"$";var F=c++;s[F]="(?:^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";var P=c++;s[P]="(?:~>?)";var I=c++;s[I]="(\\s*)"+s[P]+"\\s+";o[I]=new RegExp(s[I],"g");var w="$1~";var M=c++;s[M]="^"+s[P]+s[k]+"$";var L=c++;s[L]="^"+s[P]+s[N]+"$";var R=c++;s[R]="(?:\\^)";var B=c++;s[B]="(\\s*)"+s[R]+"\\s+";o[B]=new RegExp(s[B],"g");var j="$1^";var J=c++;s[J]="^"+s[R]+s[k]+"$";var W=c++;s[W]="^"+s[R]+s[N]+"$";var U=c++;s[U]="^"+s[C]+"\\s*("+b+")$|^$";var z=c++;s[z]="^"+s[C]+"\\s*("+S+")$|^$";var V=c++;s[V]="(\\s*)"+s[C]+"\\s*("+b+"|"+s[k]+")";o[V]=new RegExp(s[V],"g");var K="$1$2$3";var q=c++;s[q]="^\\s*("+s[k]+")"+"\\s+-\\s+"+"("+s[k]+")"+"\\s*$";var G=c++;s[G]="^\\s*("+s[N]+")"+"\\s+-\\s+"+"("+s[N]+")"+"\\s*$";var H=c++;s[H]="(<|>)?=?\\s*\\*";for(var Q=0;Q<c;Q++){r(Q,s[Q]);if(!o[Q]){o[Q]=new RegExp(s[Q])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[x]:o[T];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?o[x]:o[T]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=a[5]?a[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var a="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return a}}t.compareIdentifiers=compareIdentifiers;var $=/^[0-9]+$/;function compareIdentifiers(e,t){var r=$.test(e);var n=$.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===X){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var X={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[U]:o[z];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=X}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===X){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var s=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||a&&o||s||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[G]:o[q];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[V],K);r("comparator trim",e,o[V]);e=e.replace(o[I],w);e=e.replace(o[B],j);e=e.split(/\s+/).join(" ");var i=t?o[U]:o[z];var a=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter(function(e){return!!e.match(i)})}a=a.map(function(e){return new Comparator(e,this.options)},this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[L]:o[M];return e.replace(n,function(t,n,i,a,o){r("tilde",e,t,n,i,a,o);var s;if(isX(n)){s=""}else if(isX(i)){s=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);s=">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+(+i+1)+".0"}else{s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0"}r("tilde return",s);return s})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[W]:o[J];return e.replace(n,function(t,n,i,a,o){r("caret",e,t,n,i,a,o);var s;if(isX(n)){s=""}else if(isX(i)){s=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){if(n==="0"){s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{s=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){s=">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+i+"."+(+a+1)}else{s=">="+n+"."+i+"."+a+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{s=">="+n+"."+i+"."+a+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){s=">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1)}else{s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0"}}else{s=">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"}}r("caret return",s);return s})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[O]:o[A];return e.replace(n,function(t,n,i,a,o,s){r("xRange",e,t,n,i,a,o,s);var c=isX(i);var u=c||isX(a);var l=u||isX(o);var f=l;if(n==="="&&f){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){a=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;a=0;o=0}else{a=+a+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{a=+a+1}}t=n+i+"."+a+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[H],"")}function hyphenReplace(e,t,r,n,i,a,o,s,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){s=""}else if(isX(u)){s="<"+(+c+1)+".0.0"}else if(isX(l)){s="<"+c+"."+(+u+1)+".0"}else if(f){s="<="+c+"."+u+"."+l+"-"+f}else{s="<="+s}return(t+" "+s).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===X){continue}if(e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(a.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(a.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,a,o,s,c;switch(r){case">":i=gt;a=lte;o=lt;s=">";c=">=";break;case"<":i=lt;a=gte;o=gt;s="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var d=null;l.forEach(function(e){if(e.semver===X){e=new Comparator(">=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,d.semver,n)){d=e}});if(f.operator===s||f.operator===c){return false}if((!d.operator||d.operator===s)&&a(e,d.semver)){return false}else if(d.operator===c&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[F]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},6469:(e,t,r)=>{"use strict";var n=r(6439);var i=r(8333);var a=r(1221);var o=r(485);e.exports=function(e,t,r){if(!o(e)){return e}if(Array.isArray(t)){t=[].concat.apply([],t).join(".")}if(typeof t!=="string"){return e}var s=n(t,{sep:".",brackets:true});var c=s.length;var u=-1;var l=e;while(++u<c){var f=s[u];if(u!==c-1){if(!o(l[f])){l[f]={}}l=l[f];continue}if(a(l[f])&&a(r)){l[f]=i({},l[f],r)}else{l[f]=r}}return e}},4240:(e,t,r)=>{"use strict";var n=r(977);var i=r(3651);var a=r(8881);var o;function Node(e,t,r){if(typeof t!=="string"){r=t;t=null}i(this,"parent",r);i(this,"isNode",true);i(this,"expect",null);if(typeof t!=="string"&&n(e)){lazyKeys();var a=Object.keys(e);for(var s=0;s<a.length;s++){var c=a[s];if(o.indexOf(c)===-1){this[c]=e[c]}}}else{this.type=t;this.val=e}}Node.isNode=function(e){return a.isNode(e)};Node.prototype.define=function(e,t){i(this,e,t);return this};Node.prototype.isEmpty=function(e){return a.isEmpty(this,e)};Node.prototype.push=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.push(e)};Node.prototype.unshift=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.unshift(e)};Node.prototype.pop=function(){return this.nodes&&this.nodes.pop()};Node.prototype.shift=function(){return this.nodes&&this.nodes.shift()};Node.prototype.remove=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");this.nodes=this.nodes||[];var t=e.index;if(t!==-1){e.index=-1;return this.nodes.splice(t,1)}return null};Node.prototype.find=function(e){return a.findNode(this.nodes,e)};Node.prototype.isType=function(e){return a.isType(this,e)};Node.prototype.hasType=function(e){return a.hasType(this,e)};Object.defineProperty(Node.prototype,"siblings",{set:function(){throw new Error("node.siblings is a getter and cannot be defined")},get:function(){return this.parent?this.parent.nodes:null}});Object.defineProperty(Node.prototype,"index",{set:function(e){i(this,"idx",e)},get:function(){if(!Array.isArray(this.siblings)){return-1}var e=this.idx!==-1?this.siblings[this.idx]:null;if(e!==this){this.idx=this.siblings.indexOf(this)}return this.idx}});Object.defineProperty(Node.prototype,"prev",{set:function(){throw new Error("node.prev is a getter and cannot be defined")},get:function(){if(Array.isArray(this.siblings)){return this.siblings[this.index-1]||this.parent.prev}return null}});Object.defineProperty(Node.prototype,"next",{set:function(){throw new Error("node.next is a getter and cannot be defined")},get:function(){if(Array.isArray(this.siblings)){return this.siblings[this.index+1]||this.parent.next}return null}});Object.defineProperty(Node.prototype,"first",{get:function(){return this.nodes?this.nodes[0]:null}});Object.defineProperty(Node.prototype,"last",{get:function(){return this.nodes?a.last(this.nodes):null}});Object.defineProperty(Node.prototype,"scope",{get:function(){if(this.isScope!==true){return this.parent?this.parent.scope:this}return this}});function lazyKeys(){if(!o){o=Object.getOwnPropertyNames(Node.prototype)}}function assert(e,t){if(!e)throw new Error(t)}t=e.exports=Node},3651:(e,t,r)=>{"use strict";var n=r(8586);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},8881:(e,t,r)=>{"use strict";var n=r(2046);var i=e.exports;i.isNode=function(e){return n(e)==="object"&&e.isNode===true};i.noop=function(e){append(this,"",e)};i.identity=function(e){append(this,e.val,e)};i.append=function(e){return function(t){append(this,e,t)}};i.toNoop=function(e,t){if(t){e.nodes=t}else{delete e.nodes;e.type="text";e.val=""}};i.visit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected a visitor function");t(e);return e.nodes?i.mapVisit(e,t):e};i.mapVisit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isArray(e.nodes),"expected node.nodes to be an array");assert(isFunction(t),"expected a visitor function");for(var r=0;r<e.nodes.length;r++){i.visit(e.nodes[r],t)}return e};i.addOpen=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var a=new t({type:e.type+".open",val:r});var o=e.unshift||e.unshiftNode;if(typeof o==="function"){o.call(e,a)}else{i.unshiftNode(e,a)}return a};i.addClose=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var a=new t({type:e.type+".close",val:r});var o=e.push||e.pushNode;if(typeof o==="function"){o.call(e,a)}else{i.pushNode(e,a)}return a};i.wrapNodes=function(e,t,r){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");i.addOpen(e,t,r);i.addClose(e,t,r);return e};i.pushNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.push(t);return t};i.unshiftNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.unshift(t)};i.popNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.pop==="function"){return e.pop()}return e.nodes&&e.nodes.pop()};i.shiftNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.shift==="function"){return e.shift()}return e.nodes&&e.nodes.shift()};i.removeNode=function(e,t){assert(i.isNode(e),"expected parent.node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");if(!e.nodes){return null}if(typeof e.remove==="function"){return e.remove(t)}var r=e.nodes.indexOf(t);if(r!==-1){return e.nodes.splice(r,1)}};i.isType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");switch(n(t)){case"array":var r=t.slice();for(var a=0;a<r.length;a++){if(i.isType(e,r[a])){return true}}return false;case"string":return e.type===t;case"regexp":return t.test(e.type);default:{throw new TypeError('expected "type" to be an array, string or regexp')}}};i.hasType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes))return false;for(var r=0;r<e.nodes.length;r++){if(i.isType(e.nodes[r],t)){return true}}return false};i.firstOfType=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(i.isType(n,t)){return n}}};i.findNode=function(e,t){if(!Array.isArray(e)){return null}if(typeof t==="number"){return e[t]}return i.firstOfType(e,t)};i.isOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-5)===".open"};i.isClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-6)===".close"};i.hasOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.first||e.nodes?e.nodes[0]:null;if(i.isNode(t)){return t.type===e.type+".open"}return false};i.hasClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.last||e.nodes?e.nodes[e.nodes.length-1]:null;if(i.isNode(t)){return t.type===e.type+".close"}return false};i.hasOpenAndClose=function(e){return i.hasOpen(e)&&i.hasClose(e)};i.addType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.open$/,"");if(!e.hasOwnProperty("inside")){e.inside={}}if(!e.inside.hasOwnProperty(r)){e.inside[r]=[]}var n=e.inside[r];n.push(t);return n};i.removeType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.close$/,"");if(e.inside.hasOwnProperty(r)){return e.inside[r].pop()}};i.isEmpty=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes)){if(e.type!=="text"){return true}if(typeof t==="function"){return t(e,e.parent)}return!i.trim(e.val)}for(var r=0;r<e.nodes.length;r++){var n=e.nodes[r];if(i.isOpen(n)||i.isClose(n)){continue}if(!i.isEmpty(n,t)){return false}}return true};i.isInsideType=function(e,t){assert(isObject(e),"expected state to be an object");assert(isString(t),"expected type to be a string");if(!e.hasOwnProperty("inside")){return false}if(!e.inside.hasOwnProperty(t)){return false}return e.inside[t].length>0};i.isInside=function(e,t,r){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");if(Array.isArray(r)){for(var a=0;a<r.length;a++){if(i.isInside(e,t,r[a])){return true}}return false}var o=t.parent;if(typeof r==="string"){return o&&o.type===r||i.isInsideType(e,r)}if(n(r)==="regexp"){if(o&&o.type&&r.test(o.type)){return true}var s=Object.keys(e.inside);var c=s.length;var u=-1;while(++u<c){var l=s[u];var f=e.inside[l];if(Array.isArray(f)&&f.length!==0&&r.test(l)){return true}}}return false};i.last=function(e,t){return e[e.length-(t||1)]};i.arrayify=function(e){if(typeof e==="string"&&e!==""){return[e]}if(!Array.isArray(e)){return[]}return e};i.stringify=function(e){return i.arrayify(e).join(",")};i.trim=function(e){return typeof e==="string"?e.trim():""};function isObject(e){return n(e)==="object"}function isString(e){return typeof e==="string"}function isFunction(e){return typeof e==="function"}function isArray(e){return Array.isArray(e)}function append(e,t,r){if(typeof e.append!=="function"){return e.emit(t,r)}return e.append(t,r)}function assert(e,t){if(!e)throw new Error(t)}},9769:(e,t,r)=>{"use strict";var n=r(7322);var i=r(4728);var a=r(2635);var o=r(9142);var s=r(4414);var c={};var u={};function Snapdragon(e){n.call(this,null,e);this.options=s.extend({source:"string"},this.options);this.compiler=new a(this.options);this.parser=new o(this.options);Object.defineProperty(this,"compilers",{get:function(){return this.compiler.compilers}});Object.defineProperty(this,"parsers",{get:function(){return this.parser.parsers}});Object.defineProperty(this,"regex",{get:function(){return this.parser.regex}})}n.extend(Snapdragon);Snapdragon.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)};Snapdragon.prototype.use=function(e){e.call(this,this);return this};Snapdragon.prototype.parse=function(e,t){this.options=s.extend({},this.options,t);var r=this.parser.parse(e,this.options);i(r,"parser",this.parser);return r};Snapdragon.prototype.compile=function(e,t){this.options=s.extend({},this.options,t);var r=this.compiler.compile(e,this.options);i(r,"compiler",this.compiler);return r};e.exports=Snapdragon;e.exports.Compiler=a;e.exports.Parser=o},2635:(e,t,r)=>{"use strict";var n=r(1967);var i=r(4728);var a=r(7439)("snapdragon:compiler");var o=r(4414);function Compiler(e,t){a("initializing",__filename);this.options=o.extend({source:"string"},e);this.state=t||{};this.compilers={};this.output="";this.set("eos",function(e){return this.emit(e.val,e)});this.set("noop",function(e){return this.emit(e.val,e)});this.set("bos",function(e){return this.emit(e.val,e)});n(this)}Compiler.prototype={error:function(e,t){var r=t.position||{start:{column:0}};var n=this.options.source+" column:"+r.start.column+": "+e;var i=new Error(n);i.reason=e;i.column=r.start.column;i.source=this.pattern;if(this.options.silent){this.errors.push(i)}else{throw i}},define:function(e,t){i(this,e,t);return this},emit:function(e,t){this.output+=e;return e},set:function(e,t){this.compilers[e]=t;return this},get:function(e){return this.compilers[e]},prev:function(e){return this.ast.nodes[this.idx-(e||1)]||{type:"bos",val:""}},next:function(e){return this.ast.nodes[this.idx+(e||1)]||{type:"eos",val:""}},visit:function(e,t,r){var n=this.compilers[e.type];this.idx=r;if(typeof n!=="function"){throw this.error('compiler "'+e.type+'" is not registered',e)}return n.call(this,e,t,r)},mapVisit:function(e){if(!Array.isArray(e)){throw new TypeError("expected an array")}var t=e.length;var r=-1;while(++r<t){this.visit(e[r],e,r)}return this},compile:function(e,t){var n=o.extend({},this.options,t);this.ast=e;this.parsingErrors=this.ast.errors;this.output="";if(n.sourcemap){var i=r(456);i(this);this.mapVisit(this.ast.nodes);this.applySourceMaps();this.map=n.sourcemap==="generator"?this.map:this.map.toJSON();return this}this.mapVisit(this.ast.nodes);return this}};e.exports=Compiler},9142:(e,t,r)=>{"use strict";var n=r(1967);var i=r(1669);var a=r(1637);var o=r(4728);var s=r(7439)("snapdragon:parser");var c=r(4303);var u=r(4414);function Parser(e){s("initializing",__filename);this.options=u.extend({source:"string"},e);this.init(this.options);n(this)}Parser.prototype={constructor:Parser,init:function(e){this.orig="";this.input="";this.parsed="";this.column=1;this.line=1;this.regex=new a;this.errors=this.errors||[];this.parsers=this.parsers||{};this.types=this.types||[];this.sets=this.sets||{};this.fns=this.fns||[];this.currentType="root";var t=this.position();this.bos=t({type:"bos",val:""});this.ast={type:"root",errors:this.errors,nodes:[this.bos]};o(this.bos,"parent",this.ast);this.nodes=[this.ast];this.count=0;this.setCount=0;this.stack=[]},error:function(e,t){var r=t.position||{start:{column:0,line:0}};var n=r.start.line;var i=r.start.column;var a=this.options.source;var o=a+" <line:"+n+" column:"+i+">: "+e;var s=new Error(o);s.source=a;s.reason=e;s.pos=r;if(this.options.silent){this.errors.push(s)}else{throw s}},define:function(e,t){o(this,e,t);return this},position:function(){var e={line:this.line,column:this.column};var t=this;return function(r){o(r,"position",new c(e,t));return r}},set:function(e,t){if(this.types.indexOf(e)===-1){this.types.push(e)}this.parsers[e]=t.bind(this);return this},get:function(e){return this.parsers[e]},push:function(e,t){this.sets[e]=this.sets[e]||[];this.count++;this.stack.push(t);return this.sets[e].push(t)},pop:function(e){this.sets[e]=this.sets[e]||[];this.count--;this.stack.pop();return this.sets[e].pop()},isInside:function(e){this.sets[e]=this.sets[e]||[];return this.sets[e].length>0},isType:function(e,t){return e&&e.type===t},prev:function(e){return this.stack.length>0?u.last(this.stack,e):u.last(this.nodes,e)},consume:function(e){this.input=this.input.substr(e)},updatePosition:function(e,t){var r=e.match(/\n/g);if(r)this.line+=r.length;var n=e.lastIndexOf("\n");this.column=~n?t-n:this.column+t;this.parsed+=e;this.consume(t)},match:function(e){var t=e.exec(this.input);if(t){this.updatePosition(t[0],t[0].length);return t}},capture:function(e,t){if(typeof t==="function"){return this.set.apply(this,arguments)}this.regex.set(e,t);this.set(e,function(){var r=this.parsed;var n=this.position();var i=this.match(t);if(!i||!i[0])return;var a=this.prev();var s=n({type:e,val:i[0],parsed:r,rest:this.input});if(i[1]){s.inner=i[1]}o(s,"inside",this.stack.length>0);o(s,"parent",a);a.nodes.push(s)}.bind(this));return this},capturePair:function(e,t,r,n){this.sets[e]=this.sets[e]||[];this.set(e+".open",function(){var r=this.parsed;var i=this.position();var a=this.match(t);if(!a||!a[0])return;var s=a[0];this.setCount++;this.specialChars=true;var c=i({type:e+".open",val:s,rest:this.input});if(typeof a[1]!=="undefined"){c.inner=a[1]}var u=this.prev();var l=i({type:e,nodes:[c]});o(l,"rest",this.input);o(l,"parsed",r);o(l,"prefix",a[1]);o(l,"parent",u);o(c,"parent",l);if(typeof n==="function"){n.call(this,c,l)}this.push(e,l);u.nodes.push(l)});this.set(e+".close",function(){var t=this.position();var n=this.match(r);if(!n||!n[0])return;var i=this.pop(e);var a=t({type:e+".close",rest:this.input,suffix:n[1],val:n[0]});if(!this.isType(i,e)){if(this.options.strict){throw new Error('missing opening "'+e+'"')}this.setCount--;a.escaped=true;return a}if(a.suffix==="\\"){i.escaped=true;a.escaped=true}i.nodes.push(a);o(a,"parent",i)});return this},eos:function(){var e=this.position();if(this.input)return;var t=this.prev();while(t.type!=="root"&&!t.visited){if(this.options.strict===true){throw new SyntaxError("invalid syntax:"+i.inspect(t,null,2))}if(!hasDelims(t)){t.parent.escaped=true;t.escaped=true}visit(t,function(e){if(!hasDelims(e.parent)){e.parent.escaped=true;e.escaped=true}});t=t.parent}var r=e({type:"eos",val:this.append||""});o(r,"parent",this.ast);return r},next:function(){var e=this.parsed;var t=this.types.length;var r=-1;var n;while(++r<t){if(n=this.parsers[this.types[r]].call(this)){o(n,"rest",this.input);o(n,"parsed",e);this.last=n;return n}}},parse:function(e){if(typeof e!=="string"){throw new TypeError("expected a string")}this.init(this.options);this.orig=e;this.input=e;var t=this;function parse(){e=t.input;var r=t.next();if(r){var n=t.prev();if(n){o(r,"parent",n);if(n.nodes){n.nodes.push(r)}}if(t.sets.hasOwnProperty(n.type)){t.currentType=n.type}}if(t.input&&e===t.input){throw new Error('no parsers registered for: "'+t.input.slice(0,5)+'"')}}while(this.input)parse();if(this.stack.length&&this.options.strict){var r=this.stack.pop();throw this.error("missing opening "+r.type+': "'+this.orig+'"')}var n=this.eos();var i=this.prev();if(i.type!=="eos"){this.ast.nodes.push(n)}return this.ast}};function visit(e,t){if(!e.visited){o(e,"visited",true);return e.nodes?mapVisit(e.nodes,t):t(e)}return e}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}function hasOpen(e){return e.nodes&&e.nodes[0].type===e.type+".open"}function hasClose(e){return e.nodes&&u.last(e.nodes).type===e.type+".close"}function hasDelims(e){return hasOpen(e)&&hasClose(e)}e.exports=Parser},4303:(e,t,r)=>{"use strict";var n=r(4728);e.exports=function Position(e,t){this.start=e;this.end={line:t.line,column:t.column};n(this,"content",t.orig);n(this,"source",t.options.source)}},456:(e,t,r)=>{"use strict";var n=r(5747);var i=r(5622);var a=r(4728);var o=r(4414);e.exports=mixin;function mixin(e){a(e,"_comment",e.comment);e.map=new o.SourceMap.SourceMapGenerator;e.position={line:1,column:1};e.content={};e.files={};for(var r in t){a(e,r,t[r])}}t.updatePosition=function(e){var t=e.match(/\n/g);if(t)this.position.line+=t.length;var r=e.lastIndexOf("\n");this.position.column=~r?e.length-r:this.position.column+e.length};t.emit=function(e,t){var r=t.position||{};var n=r.source;if(n){if(r.filepath){n=o.unixify(r.filepath)}this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:r.start.line,column:r.start.column-1}});if(r.content){this.addContent(n,r)}if(r.filepath){this.addFile(n,r)}this.updatePosition(e);this.output+=e}return e};t.addFile=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.files,e))return;this.files[e]=t.content};t.addContent=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.content,e))return;this.map.setSourceContent(e,t.content)};t.applySourceMaps=function(){Object.keys(this.files).forEach(function(e){var t=this.files[e];this.map.setSourceContent(e,t);if(this.options.inputSourcemaps===true){var r=o.sourceMapResolve.resolveSync(t,e,n.readFileSync);if(r){var a=new o.SourceMap.SourceMapConsumer(r.map);var s=r.sourcesRelativeTo;this.map.applySourceMap(a,e,o.unixify(i.dirname(s)))}}},this)};t.comment=function(e){if(/^# sourceMappingURL=/.test(e.comment)){return this.emit("",e.position)}return this._comment(e)}},4414:(e,t,r)=>{"use strict";t.extend=r(8333);t.SourceMap=r(6160);t.sourceMapResolve=r(6769);t.unixify=function(e){return e.split(/\\+/).join("/")};t.isString=function(e){return e&&typeof e==="string"};t.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};t.last=function(e,t){return e[e.length-(t||1)]}},1911:(e,t,r)=>{t=e.exports=r(6202);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){a=i}});e.splice(a,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},6202:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(319);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var a=new Array(arguments.length);for(var o=0;o<a.length;o++){a[o]=arguments[o]}a[0]=t.coerce(a[0]);if("string"!==typeof a[0]){a.unshift("%O")}var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;s++;var i=t.formatters[n];if("function"===typeof i){var o=a[s];r=i.call(e,o);a.splice(s,1);s--}return r});t.formatArgs.call(e,a);var c=debug.log||t.log||console.log.bind(console);c.apply(e,a)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},7439:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(1911)}else{e.exports=r(2238)}},2238:(e,t,r)=>{var n=r(8993);var i=r(1669);t=e.exports=r(6202);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var a=parseInt(process.env.DEBUG_FD,10)||2;if(1!==a&&2!==a){i.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var o=1===a?process.stdout:2===a?process.stderr:createWritableStdioStream(a);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(a)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var a=" [3"+i+";1m"+r+" "+"[0m";e[0]=a+e[0].split("\n").join("\n"+a);e.push("[3"+i+"m+"+t.humanize(this.diff)+"[0m")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var a=r(5747);t=new a.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},319:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var s=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},4246:(e,t,r)=>{var n=r(1873);var i=Object.prototype.hasOwnProperty;var a=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=a?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n<i;n++){r.add(e[n],t)}return r};ArraySet.prototype.size=function ArraySet_size(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var r=a?e:n.toSetString(e);var o=a?this.has(e):i.call(this._set,r);var s=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(a){this._set.set(e,s)}else{this._set[r]=s}}};ArraySet.prototype.has=function ArraySet_has(e){if(a){return this._set.has(e)}else{var t=n.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(a){var t=this._set.get(e);if(t>=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},4310:(e,t,r)=>{var n=r(8541);var i=5;var a=1<<i;var o=a-1;var s=a;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var a=toVLQSigned(e);do{r=a&o;a>>>=i;if(a>0){r|=s}t+=n.encode(r)}while(a>0);return t};t.decode=function base64VLQ_decode(e,t,r){var a=e.length;var c=0;var u=0;var l,f;do{if(t>=a){throw new Error("Expected more digits in base 64 VLQ value.")}f=n.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}l=!!(f&s);f&=o;c=c+(f<<u);u+=i}while(l);r.value=fromVLQSigned(c);r.rest=t}},8541:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var r=90;var n=97;var i=122;var a=48;var o=57;var s=43;var c=47;var u=26;var l=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+u}if(a<=e&&e<=o){return e-a+l}if(e==s){return 62}if(e==c){return 63}return-1}},2913:(e,t)=>{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,a,o){var s=Math.floor((r-e)/2)+e;var c=a(n,i[s],true);if(c===0){return s}else if(c>0){if(r-s>1){return recursiveSearch(s,r,n,i,a,o)}if(o==t.LEAST_UPPER_BOUND){return r<i.length?r:-1}else{return s}}else{if(s-e>1){return recursiveSearch(e,s,n,i,a,o)}if(o==t.LEAST_UPPER_BOUND){return s}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var a=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0){return-1}while(a-1>=0){if(n(r[a],r[a-1],true)!==0){break}--a}return a}},3040:(e,t,r)=>{var n=r(1873);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var a=e.generatedColumn;var o=t.generatedColumn;return i>r||i==r&&o>=a||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},3474:(e,t)=>{function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r<n){var i=randomIntInRange(r,n);var a=r-1;swap(e,i,n);var o=e[n];for(var s=r;s<n;s++){if(t(e[s],o)<=0){a+=1;swap(e,a,s)}}swap(e,a+1,s);var c=a+1;doQuickSort(e,t,r,c-1);doQuickSort(e,t,c+1,n)}}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},6898:(e,t,r)=>{var n;var i=r(1873);var a=r(2913);var o=r(4246).I;var s=r(4310);var c=r(3474).U;function SourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}return t.sections!=null?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,r){var n=t||null;var a=r||SourceMapConsumer.GENERATED_ORDER;var o;switch(a){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);if(t!=null&&s!=null){t=i.join(s,t)}return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,n)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=i.getArg(e,"line");var r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};if(this.sourceRoot!=null){r.source=i.relative(this.sourceRoot,r.source)}if(!this._sources.has(r.source)){return[]}r.source=this._sources.indexOf(r.source);var n=[];var o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,a.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===undefined){var c=s.originalLine;while(s&&s.originalLine===c){n.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)});s=this._originalMappings[++o]}}else{var u=s.originalColumn;while(s&&s.originalLine===t&&s.originalColumn==u){n.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)});s=this._originalMappings[++o]}}}return n};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sources");var a=i.getArg(t,"names",[]);var s=i.getArg(t,"sourceRoot",null);var c=i.getArg(t,"sourcesContent",null);var u=i.getArg(t,"mappings");var l=i.getArg(t,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}n=n.map(String).map(i.normalize).map(function(e){return s&&i.isAbsolute(s)&&i.isAbsolute(e)?i.relative(s,e):e});this._names=o.fromArray(a.map(String),true);this._sources=o.fromArray(n,true);this.sourceRoot=s;this.sourcesContent=c;this._mappings=u;this.file=l}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e){var t=Object.create(BasicSourceMapConsumer.prototype);var r=t._names=o.fromArray(e._names.toArray(),true);var n=t._sources=o.fromArray(e._sources.toArray(),true);t.sourceRoot=e._sourceRoot;t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot);t.file=e._file;var a=e._mappings.toArray().slice();var s=t.__generatedMappings=[];var u=t.__originalMappings=[];for(var l=0,f=a.length;l<f;l++){var d=a[l];var p=new Mapping;p.generatedLine=d.generatedLine;p.generatedColumn=d.generatedColumn;if(d.source){p.source=n.indexOf(d.source);p.originalLine=d.originalLine;p.originalColumn=d.originalColumn;if(d.name){p.name=r.indexOf(d.name)}u.push(p)}s.push(p)}c(t.__originalMappings,i.compareByOriginalPositions);return t};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot!=null?i.join(this.sourceRoot,e):e},this)}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){var r=1;var n=0;var a=0;var o=0;var u=0;var l=0;var f=e.length;var d=0;var p={};var g={};var _=[];var m=[];var y,h,v,T,S;while(d<f){if(e.charAt(d)===";"){r++;d++;n=0}else if(e.charAt(d)===","){d++}else{y=new Mapping;y.generatedLine=r;for(T=d;T<f;T++){if(this._charIsMappingSeparator(e,T)){break}}h=e.slice(d,T);v=p[h];if(v){d+=h.length}else{v=[];while(d<T){s.decode(e,d,g);S=g.value;d=g.rest;v.push(S)}if(v.length===2){throw new Error("Found a source, but no line and column")}if(v.length===3){throw new Error("Found a source and line, but no column")}p[h]=v}y.generatedColumn=n+v[0];n=y.generatedColumn;if(v.length>1){y.source=u+v[1];u+=v[1];y.originalLine=a+v[2];a=y.originalLine;y.originalLine+=1;y.originalColumn=o+v[3];o=y.originalColumn;if(v.length>4){y.name=l+v[4];l+=v[4]}}m.push(y);if(typeof y.originalLine==="number"){_.push(y)}}}c(m,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=m;c(_,i.compareByOriginalPositions);this.__originalMappings=_};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,r,n,i,o){if(e[r]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[r])}if(e[n]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[n])}return a.search(e,t,i,o)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var a=i.getArg(n,"source",null);if(a!==null){a=this._sources.at(a);if(this.sourceRoot!=null){a=i.join(this.sourceRoot,a)}}var o=i.getArg(n,"name",null);if(o!==null){o=this._names.at(o)}return{source:a,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){e=i.relative(this.sourceRoot,e)}if(this._sources.has(e)){return this.sourcesContent[this._sources.indexOf(e)]}var r;if(this.sourceRoot!=null&&(r=i.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(n)){return this.sourcesContent[this._sources.indexOf(n)]}if((!r.path||r.path=="/")&&this._sources.has("/"+e)){return this.sourcesContent[this._sources.indexOf("/"+e)]}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=i.getArg(e,"source");if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(!this._sources.has(t)){return{line:null,column:null,lastColumn:null}}t=this._sources.indexOf(t);var r={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var a=this._originalMappings[n];if(a.source===r.source){return{line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};n=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new o;this._names=new o;var a={line:-1,column:0};this._sections=n.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var t=i.getArg(e,"offset");var r=i.getArg(t,"line");var n=i.getArg(t,"column");if(r<a.line||r===a.line&&n<a.column){throw new Error("Section offsets must be ordered and non-overlapping.")}a=t;return{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new SourceMapConsumer(i.getArg(e,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var r=0;r<this._sections[t].consumer.sources.length;r++){e.push(this._sections[t].consumer.sources[r])}}return e}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=a.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;if(r){return r}return e.generatedColumn-t.generatedOffset.generatedColumn});var n=this._sections[r];if(!n){return{source:null,line:null,column:null,name:null}}return n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var i=n.consumer.sourceContentFor(e,true);if(i){return i}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer.sources.indexOf(i.getArg(e,"source"))===-1){continue}var n=r.consumer.generatedPositionFor(e);if(n){var a={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return a}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var a=n.consumer._generatedMappings;for(var o=0;o<a.length;o++){var s=a[o];var u=n.consumer._sources.at(s.source);if(n.consumer.sourceRoot!==null){u=i.join(n.consumer.sourceRoot,u)}this._sources.add(u);u=this._sources.indexOf(u);var l=n.consumer._names.at(s.name);this._names.add(l);l=this._names.indexOf(l);var f={source:u,generatedLine:s.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(n.generatedOffset.generatedLine===s.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:l};this.__generatedMappings.push(f);if(typeof f.originalLine==="number"){this.__originalMappings.push(f)}}}c(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);c(this.__originalMappings,i.compareByOriginalPositions)};n=IndexedSourceMapConsumer},3165:(e,t,r)=>{var n=r(4310);var i=r(1873);var a=r(4246).I;var o=r(3040).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new a;this._names=new a;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){r.setSourceContent(t,n)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var a=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,a)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(a!=null){a=String(a);if(!this._names.has(a)){this._names.add(a)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:a})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var o=this._sourceRoot;if(o!=null){n=i.relative(o,n)}var s=new a;var c=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(a.source!=null){t.source=a.source;if(r!=null){t.source=i.join(r,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=a.line;t.originalColumn=a.column;if(a.name!=null){t.name=a.name}}}var u=t.source;if(u!=null&&!s.has(u)){s.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=s;this._names=c;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){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&&!r&&!n){return}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&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var a=0;var o=0;var s=0;var c="";var u;var l;var f;var d;var p=this._mappings.toArray();for(var g=0,_=p.length;g<_;g++){l=p[g];u="";if(l.generatedLine!==t){e=0;while(l.generatedLine!==t){u+=";";t++}}else{if(g>0){if(!i.compareByGeneratedPositionsInflated(l,p[g-1])){continue}u+=","}}u+=n.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){d=this._sources.indexOf(l.source);u+=n.encode(d-s);s=d;u+=n.encode(l.originalLine-1-a);a=l.originalLine-1;u+=n.encode(l.originalColumn-r);r=l.originalColumn;if(l.name!=null){f=this._names.indexOf(l.name);u+=n.encode(f-o);o=f}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},9263:(e,t,r)=>{var n=r(3165).SourceMapGenerator;var i=r(1873);var a=/(\r?\n)/;var o=10;var s="$$$isSourceNode$$$";function SourceNode(e,t,r,n,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=r==null?null:r;this.name=i==null?null:i;this[s]=true;if(n!=null)this.add(n)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,r){var n=new SourceNode;var o=e.split(a);var s=0;var c=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return s<o.length?o[s++]:undefined}};var u=1,l=0;var f=null;t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine){addMappingWithCode(f,c());u++;l=0}else{var t=o[s];var r=t.substr(0,e.generatedColumn-l);o[s]=t.substr(e.generatedColumn-l);l=e.generatedColumn;addMappingWithCode(f,r);f=e;return}}while(u<e.generatedLine){n.add(c());u++}if(l<e.generatedColumn){var t=o[s];n.add(t.substr(0,e.generatedColumn));o[s]=t.substr(e.generatedColumn);l=e.generatedColumn}f=e},this);if(s<o.length){if(f){addMappingWithCode(f,c())}n.add(o.splice(s).join(""))}t.sources.forEach(function(e){var a=t.sourceContentFor(e);if(a!=null){if(r!=null){e=i.join(r,e)}n.setSourceContent(e,a)}});return n;function addMappingWithCode(e,t){if(e===null||e.source===undefined){n.add(t)}else{var a=r?i.join(r,e.source):e.source;n.add(new SourceNode(e.originalLine,e.originalColumn,a,t,e.name))}}};SourceNode.prototype.add=function SourceNode_add(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[s]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[s]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var r=0,n=this.children.length;r<n;r++){t=this.children[r];if(t[s]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(e){var t;var r;var n=this.children.length;if(n>0){t=[];for(r=0;r<n-1;r++){t.push(this.children[r]);t.push(e)}t.push(this.children[r]);this.children=t}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(e,t){var r=this.children[this.children.length-1];if(r[s]){r.replaceRight(e,t)}else if(typeof r==="string"){this.children[this.children.length-1]=r.replace(e,t)}else{this.children.push("".replace(e,t))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(e){for(var t=0,r=this.children.length;t<r;t++){if(this.children[t][s]){this.children[t].walkSourceContents(e)}}var n=Object.keys(this.sourceContents);for(var t=0,r=n.length;t<r;t++){e(i.fromSetString(n[t]),this.sourceContents[n[t]])}};SourceNode.prototype.toString=function SourceNode_toString(){var e="";this.walk(function(t){e+=t});return e};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(e){var t={code:"",line:1,column:0};var r=new n(e);var i=false;var a=null;var s=null;var c=null;var u=null;this.walk(function(e,n){t.code+=e;if(n.source!==null&&n.line!==null&&n.column!==null){if(a!==n.source||s!==n.line||c!==n.column||u!==n.name){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}a=n.source;s=n.line;c=n.column;u=n.name;i=true}else if(i){r.addMapping({generated:{line:t.line,column:t.column}});a=null;i=false}for(var l=0,f=e.length;l<f;l++){if(e.charCodeAt(l)===o){t.line++;t.column=0;if(l+1===f){a=null;i=false}else if(i){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){r.setSourceContent(e,t)});return{code:t.code,map:r}};t.SourceNode=SourceNode},1873:(e,t)=>{function getArg(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e;var n=urlParse(e);if(n){if(!n.path){return e}r=n.path}var i=t.isAbsolute(r);var a=r.split(/\/+/);for(var o,s=0,c=a.length-1;c>=0;c--){o=a[c];if(o==="."){a.splice(c,1)}else if(o===".."){s++}else if(s>0){if(o===""){a.splice(c+1,s);s=0}else{a.splice(c,2);s--}}}r=a.join("/");if(r===""){r=i?"/":"."}if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var r=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(r&&!r.scheme){if(i){r.scheme=i.scheme}return urlGenerate(r)}if(r||t.match(n)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var a=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=a;return urlGenerate(i)}return a}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||!!e.match(r)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function compareByOriginalPositions(e,t,r){var n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return e.name-t.name}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return e.name-t.name}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated},6160:(e,t,r)=>{t.SourceMapGenerator=r(3165).SourceMapGenerator;t.SourceMapConsumer=r(6898).SourceMapConsumer;t.SourceNode=r(9263).SourceNode},3384:(e,t,r)=>{var n=r(535);function customDecodeUriComponent(e){return n(e.replace(/\+/g,"%2B"))}e.exports=customDecodeUriComponent},6224:(e,t,r)=>{var n=r(8835);function resolveUrl(){return Array.prototype.reduce.call(arguments,function(e,t){return n.resolve(e,t)})}e.exports=resolveUrl},6769:(e,t,r)=>{var n=r(1303);var i=r(6224);var a=r(3384);var o=r(6002);var s=r(731);function callbackAsync(e,t,r){setImmediate(function(){e(t,r)})}function parseMapToJSON(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){e.sourceMapData=t;throw e}}function readSync(e,t,r){var n=a(t);try{return String(e(n))}catch(e){e.sourceMapData=r;throw e}}function resolveSourceMap(e,t,r,n){var i;try{i=resolveSourceMapHelper(e,t)}catch(e){return callbackAsync(n,e)}if(!i||i.map){return callbackAsync(n,null,i)}var o=a(i.url);r(o,function(e,t){if(e){e.sourceMapData=i;return n(e)}i.map=String(t);try{i.map=parseMapToJSON(i.map,i)}catch(e){return n(e)}n(null,i)})}function resolveSourceMapSync(e,t,r){var n=resolveSourceMapHelper(e,t);if(!n||n.map){return n}n.map=readSync(r,n.url,n);n.map=parseMapToJSON(n.map,n);return n}var c=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/;var u=/^(?:application|text)\/json$/;function resolveSourceMapHelper(e,t){t=o(t);var r=n.getFrom(e);if(!r){return null}var a=r.match(c);if(a){var l=a[1];var f=a[2]||"";var d=a[3]||"";var p={sourceMappingURL:r,url:null,sourcesRelativeTo:t,map:d};if(!u.test(l)){var g=new Error("Unuseful data uri mime type: "+(l||"text/plain"));g.sourceMapData=p;throw g}p.map=parseMapToJSON(f===";base64"?s(d):decodeURIComponent(d),p);return p}var _=i(t,r);return{sourceMappingURL:r,url:_,sourcesRelativeTo:_,map:null}}function resolveSources(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}var o=e.sources?e.sources.length:0;var s={sourcesResolved:[],sourcesContent:[]};if(o===0){callbackAsync(i,null,s);return}var c=function(){o--;if(o===0){i(null,s)}};resolveSourcesHelper(e,t,n,function(e,t,n){s.sourcesResolved[n]=e;if(typeof t==="string"){s.sourcesContent[n]=t;callbackAsync(c,null)}else{var i=a(e);r(i,function(e,t){s.sourcesContent[n]=e?e:String(t);c()})}})}function resolveSourcesSync(e,t,r,n){var i={sourcesResolved:[],sourcesContent:[]};if(!e.sources||e.sources.length===0){return i}resolveSourcesHelper(e,t,n,function(e,t,n){i.sourcesResolved[n]=e;if(r!==null){if(typeof t==="string"){i.sourcesContent[n]=t}else{var o=a(e);try{i.sourcesContent[n]=String(r(o))}catch(e){i.sourcesContent[n]=e}}}});return i}var l=/\/?$/;function resolveSourcesHelper(e,t,r,n){r=r||{};t=o(t);var a;var s;var c;for(var u=0,f=e.sources.length;u<f;u++){c=null;if(typeof r.sourceRoot==="string"){c=r.sourceRoot}else if(typeof e.sourceRoot==="string"&&r.sourceRoot!==false){c=e.sourceRoot}if(c===null||c===""){a=i(t,e.sources[u])}else{a=i(t,c.replace(l,"/"),e.sources[u])}s=(e.sourcesContent||[])[u];n(a,s,u)}}function resolve(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}if(e===null){var o=t;var s={sourceMappingURL:null,url:o,sourcesRelativeTo:o,map:null};var c=a(o);r(c,function(e,t){if(e){e.sourceMapData=s;return i(e)}s.map=String(t);try{s.map=parseMapToJSON(s.map,s)}catch(e){return i(e)}_resolveSources(s)})}else{resolveSourceMap(e,t,r,function(e,t){if(e){return i(e)}if(!t){return i(null,null)}_resolveSources(t)})}function _resolveSources(e){resolveSources(e.map,e.sourcesRelativeTo,r,n,function(t,r){if(t){return i(t)}e.sourcesResolved=r.sourcesResolved;e.sourcesContent=r.sourcesContent;i(null,e)})}}function resolveSync(e,t,r,n){var i;if(e===null){var a=t;i={sourceMappingURL:null,url:a,sourcesRelativeTo:a,map:null};i.map=readSync(r,a,i);i.map=parseMapToJSON(i.map,i)}else{i=resolveSourceMapSync(e,t,r);if(!i){return null}}var o=resolveSourcesSync(i.map,i.sourcesRelativeTo,r,n);i.sourcesResolved=o.sourcesResolved;i.sourcesContent=o.sourcesContent;return i}e.exports={resolveSourceMap:resolveSourceMap,resolveSourceMapSync:resolveSourceMapSync,resolveSources:resolveSources,resolveSourcesSync:resolveSourcesSync,resolve:resolve,resolveSync:resolveSync,parseMapToJSON:parseMapToJSON}},2284:(e,t,r)=>{var n=r(9596).SourceMapConsumer;var i=r(5622);var a;try{a=r(5747);if(!a.existsSync||!a.readFileSync){a=null}}catch(e){}var o=r(6650);var s=false;var c=false;var u=false;var l="auto";var f={};var d={};var p=/^data:application\/json[^,]+base64,/;var g=[];var _=[];function isInBrowser(){if(l==="browser")return true;if(l==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function handlerExec(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n){return n}}return null}}var m=handlerExec(g);g.push(function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,function(e,t){return t?"":"/"})}if(e in f){return f[e]}var t="";try{if(!a){var r=new XMLHttpRequest;r.open("GET",e,false);r.send(null);if(r.readyState===4&&r.status===200){t=r.responseText}}else if(a.existsSync(e)){t=a.readFileSync(e,"utf8")}}catch(e){}return f[e]=t});function supportRelativeURL(e,t){if(!e)return t;var r=i.dirname(e);var n=/^\w+:\/\/[^\/]*/.exec(r);var a=n?n[0]:"";var o=r.slice(a.length);if(a&&/^\/\w\:/.test(o)){a+="/";return a+i.resolve(r.slice(a.length),t).replace(/\\/g,"/")}return a+i.resolve(r.slice(a.length),t)}function retrieveSourceMapURL(e){var t;if(isInBrowser()){try{var r=new XMLHttpRequest;r.open("GET",e,false);r.send(null);t=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n){return n}}catch(e){}}t=m(e);var i=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;var a,o;while(o=i.exec(t))a=o;if(!a)return null;return a[1]}var y=handlerExec(_);_.push(function(e){var t=retrieveSourceMapURL(e);if(!t)return null;var r;if(p.test(t)){var n=t.slice(t.indexOf(",")+1);r=o(n,"base64").toString();t=e}else{t=supportRelativeURL(e,t);r=m(t)}if(!r){return null}return{url:t,map:r}});function mapSourcePosition(e){var t=d[e.source];if(!t){var r=y(e.source);if(r){t=d[e.source]={url:r.url,map:new n(r.map)};if(t.map.sourcesContent){t.map.sources.forEach(function(e,r){var n=t.map.sourcesContent[r];if(n){var i=supportRelativeURL(t.url,e);f[i]=n}})}}else{t=d[e.source]={url:null,map:null}}}if(t&&t.map){var i=t.map.originalPositionFor(e);if(i.source!==null){i.source=supportRelativeURL(t.url,i.source);return i}}return e}function mapEvalOrigin(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=mapSourcePosition({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}t=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(t){return"eval at "+t[1]+" ("+mapEvalOrigin(t[2])+")"}return e}function CallSiteToString(){var e;var t="";if(this.isNative()){t="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){t=this.getEvalOrigin();t+=", "}if(e){t+=e}else{t+="<anonymous>"}var r=this.getLineNumber();if(r!=null){t+=":"+r;var n=this.getColumnNumber();if(n){t+=":"+n}}}var i="";var a=this.getFunctionName();var o=true;var s=this.isConstructor();var c=!(this.isToplevel()||s);if(c){var u=this.getTypeName();if(u==="[object Object]"){u="null"}var l=this.getMethodName();if(a){if(u&&a.indexOf(u)!=0){i+=u+"."}i+=a;if(l&&a.indexOf("."+l)!=a.length-l.length-1){i+=" [as "+l+"]"}}else{i+=u+"."+(l||"<anonymous>")}}else if(s){i+="new "+(a||"<anonymous>")}else if(a){i+=a}else{i+=t;o=false}if(o){i+=" ("+t+")"}return i}function cloneCallSite(e){var t={};Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]});t.toString=CallSiteToString;return t}function wrapCallSite(e){if(e.isNative()){return e}var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var r=e.getLineNumber();var n=e.getColumnNumber()-1;var i=62;if(r===1&&n>i&&!isInBrowser()&&!e.isEval()){n-=i}var a=mapSourcePosition({source:t,line:r,column:n});e=cloneCallSite(e);var o=e.getFunctionName;e.getFunctionName=function(){return a.name||o()};e.getFileName=function(){return a.source};e.getLineNumber=function(){return a.line};e.getColumnNumber=function(){return a.column+1};e.getScriptNameOrSourceURL=function(){return a.source};return e}var s=e.isEval()&&e.getEvalOrigin();if(s){s=mapEvalOrigin(s);e=cloneCallSite(e);e.getEvalOrigin=function(){return s};return e}return e}function prepareStackTrace(e,t){if(u){f={};d={}}return e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1];var n=+t[2];var i=+t[3];var o=f[r];if(!o&&a&&a.existsSync(r)){try{o=a.readFileSync(r,"utf8")}catch(e){o=""}}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[n-1];if(s){return r+":"+n+"\n"+s+"\n"+new Array(i).join(" ")+"^"}}}return null}function printErrorAndExit(e){var t=getErrorSource(e);if(process.stderr._handle&&process.stderr._handle.setBlocking){process.stderr._handle.setBlocking(true)}if(t){console.error();console.error(t)}console.error(e.stack);process.exit(1)}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack;var n=this.listeners(t).length>0;if(r&&!n){return printErrorAndExit(arguments[1])}}return e.apply(this,arguments)}}var h=g.slice(0);var v=_.slice(0);t.wrapCallSite=wrapCallSite;t.getErrorSource=getErrorSource;t.mapSourcePosition=mapSourcePosition;t.retrieveSourceMap=y;t.install=function(e){e=e||{};if(e.environment){l=e.environment;if(["node","browser","auto"].indexOf(l)===-1){throw new Error("environment "+l+" was unknown. Available options are {auto, browser, node}")}}if(e.retrieveFile){if(e.overrideRetrieveFile){g.length=0}g.unshift(e.retrieveFile)}if(e.retrieveSourceMap){if(e.overrideRetrieveSourceMap){_.length=0}_.unshift(e.retrieveSourceMap)}if(e.hookRequire&&!isInBrowser()){var t;try{t=r(2282)}catch(e){}var n=t.prototype._compile;if(!n.__sourceMapSupport){t.prototype._compile=function(e,t){f[t]=e;d[t]=undefined;return n.call(this,e,t)};t.prototype._compile.__sourceMapSupport=true}}if(!u){u="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:false}if(!s){s=true;Error.prepareStackTrace=prepareStackTrace}if(!c){var i="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:true;if(i&&hasGlobalProcessEventEmitter()){c=true;shimEmitUncaughtException()}}};t.resetRetrieveHandlers=function(){g.length=0;_.length=0;g=h.slice(0);_=v.slice(0)}},1303:function(e){void function(t,r){if(typeof define==="function"&&define.amd){define(r)}else if(true){e.exports=r()}else{}}(this,function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/;var t=RegExp("(?:"+"/\\*"+"(?:\\s*\r?\n(?://)?)?"+"(?:"+e.source+")"+"\\s*"+"\\*/"+"|"+"//(?:"+e.source+")"+")"+"\\s*");return{regex:t,_innerRegex:e,getFrom:function(e){var r=e.match(t);return r?r[1]||r[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,r){var n=e.match(t);if(n){return e.slice(0,n.index)+r+e.slice(n.index)}else{return e+r}}}})},6837:(e,t,r)=>{var n=r(1983);var i=Object.prototype.hasOwnProperty;var a=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=a?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n<i;n++){r.add(e[n],t)}return r};ArraySet.prototype.size=function ArraySet_size(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var r=a?e:n.toSetString(e);var o=a?this.has(e):i.call(this._set,r);var s=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(a){this._set.set(e,s)}else{this._set[r]=s}}};ArraySet.prototype.has=function ArraySet_has(e){if(a){return this._set.has(e)}else{var t=n.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(a){var t=this._set.get(e);if(t>=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},4215:(e,t,r)=>{var n=r(6537);var i=5;var a=1<<i;var o=a-1;var s=a;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var a=toVLQSigned(e);do{r=a&o;a>>>=i;if(a>0){r|=s}t+=n.encode(r)}while(a>0);return t};t.decode=function base64VLQ_decode(e,t,r){var a=e.length;var c=0;var u=0;var l,f;do{if(t>=a){throw new Error("Expected more digits in base 64 VLQ value.")}f=n.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}l=!!(f&s);f&=o;c=c+(f<<u);u+=i}while(l);r.value=fromVLQSigned(c);r.rest=t}},6537:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var r=90;var n=97;var i=122;var a=48;var o=57;var s=43;var c=47;var u=26;var l=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+u}if(a<=e&&e<=o){return e-a+l}if(e==s){return 62}if(e==c){return 63}return-1}},3164:(e,t)=>{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,a,o){var s=Math.floor((r-e)/2)+e;var c=a(n,i[s],true);if(c===0){return s}else if(c>0){if(r-s>1){return recursiveSearch(s,r,n,i,a,o)}if(o==t.LEAST_UPPER_BOUND){return r<i.length?r:-1}else{return s}}else{if(s-e>1){return recursiveSearch(e,s,n,i,a,o)}if(o==t.LEAST_UPPER_BOUND){return s}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var a=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0){return-1}while(a-1>=0){if(n(r[a],r[a-1],true)!==0){break}--a}return a}},1740:(e,t,r)=>{var n=r(1983);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var a=e.generatedColumn;var o=t.generatedColumn;return i>r||i==r&&o>=a||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},8226:(e,t)=>{function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r<n){var i=randomIntInRange(r,n);var a=r-1;swap(e,i,n);var o=e[n];for(var s=r;s<n;s++){if(t(e[s],o)<=0){a+=1;swap(e,a,s)}}swap(e,a+1,s);var c=a+1;doQuickSort(e,t,r,c-1);doQuickSort(e,t,c+1,n)}}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},6327:(e,t,r)=>{var n;var i=r(1983);var a=r(3164);var o=r(6837).I;var s=r(4215);var c=r(8226).U;function SourceMapConsumer(e,t){var r=e;if(typeof e==="string"){r=i.parseSourceMapInput(e)}return r.sections!=null?new IndexedSourceMapConsumer(r,t):new BasicSourceMapConsumer(r,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,r){var n=t||null;var a=r||SourceMapConsumer.GENERATED_ORDER;var o;switch(a){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);t=i.computeSourceURL(s,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,n)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=i.getArg(e,"line");var r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};r.source=this._findSourceIndex(r.source);if(r.source<0){return[]}var n=[];var o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,a.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===undefined){var c=s.originalLine;while(s&&s.originalLine===c){n.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)});s=this._originalMappings[++o]}}else{var u=s.originalColumn;while(s&&s.originalLine===t&&s.originalColumn==u){n.push({line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)});s=this._originalMappings[++o]}}}return n};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,t){var r=e;if(typeof e==="string"){r=i.parseSourceMapInput(e)}var n=i.getArg(r,"version");var a=i.getArg(r,"sources");var s=i.getArg(r,"names",[]);var c=i.getArg(r,"sourceRoot",null);var u=i.getArg(r,"sourcesContent",null);var l=i.getArg(r,"mappings");var f=i.getArg(r,"file",null);if(n!=this._version){throw new Error("Unsupported version: "+n)}if(c){c=i.normalize(c)}a=a.map(String).map(i.normalize).map(function(e){return c&&i.isAbsolute(c)&&i.isAbsolute(e)?i.relative(c,e):e});this._names=o.fromArray(s.map(String),true);this._sources=o.fromArray(a,true);this._absoluteSources=this._sources.toArray().map(function(e){return i.computeSourceURL(c,e,t)});this.sourceRoot=c;this.sourcesContent=u;this._mappings=l;this._sourceMapURL=t;this.file=f}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}var r;for(r=0;r<this._absoluteSources.length;++r){if(this._absoluteSources[r]==e){return r}}return-1};BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e,t){var r=Object.create(BasicSourceMapConsumer.prototype);var n=r._names=o.fromArray(e._names.toArray(),true);var a=r._sources=o.fromArray(e._sources.toArray(),true);r.sourceRoot=e._sourceRoot;r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot);r.file=e._file;r._sourceMapURL=t;r._absoluteSources=r._sources.toArray().map(function(e){return i.computeSourceURL(r.sourceRoot,e,t)});var s=e._mappings.toArray().slice();var u=r.__generatedMappings=[];var l=r.__originalMappings=[];for(var f=0,d=s.length;f<d;f++){var p=s[f];var g=new Mapping;g.generatedLine=p.generatedLine;g.generatedColumn=p.generatedColumn;if(p.source){g.source=a.indexOf(p.source);g.originalLine=p.originalLine;g.originalColumn=p.originalColumn;if(p.name){g.name=n.indexOf(p.name)}l.push(g)}u.push(g)}c(r.__originalMappings,i.compareByOriginalPositions);return r};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){var r=1;var n=0;var a=0;var o=0;var u=0;var l=0;var f=e.length;var d=0;var p={};var g={};var _=[];var m=[];var y,h,v,T,S;while(d<f){if(e.charAt(d)===";"){r++;d++;n=0}else if(e.charAt(d)===","){d++}else{y=new Mapping;y.generatedLine=r;for(T=d;T<f;T++){if(this._charIsMappingSeparator(e,T)){break}}h=e.slice(d,T);v=p[h];if(v){d+=h.length}else{v=[];while(d<T){s.decode(e,d,g);S=g.value;d=g.rest;v.push(S)}if(v.length===2){throw new Error("Found a source, but no line and column")}if(v.length===3){throw new Error("Found a source and line, but no column")}p[h]=v}y.generatedColumn=n+v[0];n=y.generatedColumn;if(v.length>1){y.source=u+v[1];u+=v[1];y.originalLine=a+v[2];a=y.originalLine;y.originalLine+=1;y.originalColumn=o+v[3];o=y.originalColumn;if(v.length>4){y.name=l+v[4];l+=v[4]}}m.push(y);if(typeof y.originalLine==="number"){_.push(y)}}}c(m,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=m;c(_,i.compareByOriginalPositions);this.__originalMappings=_};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,r,n,i,o){if(e[r]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[r])}if(e[n]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[n])}return a.search(e,t,i,o)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var a=i.getArg(n,"source",null);if(a!==null){a=this._sources.at(a);a=i.computeSourceURL(this.sourceRoot,a,this._sourceMapURL)}var o=i.getArg(n,"name",null);if(o!==null){o=this._names.at(o)}return{source:a,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}var r=this._findSourceIndex(e);if(r>=0){return this.sourcesContent[r]}var n=e;if(this.sourceRoot!=null){n=i.relative(this.sourceRoot,n)}var a;if(this.sourceRoot!=null&&(a=i.urlParse(this.sourceRoot))){var o=n.replace(/^file:\/\//,"");if(a.scheme=="file"&&this._sources.has(o)){return this.sourcesContent[this._sources.indexOf(o)]}if((!a.path||a.path=="/")&&this._sources.has("/"+n)){return this.sourcesContent[this._sources.indexOf("/"+n)]}}if(t){return null}else{throw new Error('"'+n+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=i.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var r={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var a=this._originalMappings[n];if(a.source===r.source){return{line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};n=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,t){var r=e;if(typeof e==="string"){r=i.parseSourceMapInput(e)}var n=i.getArg(r,"version");var a=i.getArg(r,"sections");if(n!=this._version){throw new Error("Unsupported version: "+n)}this._sources=new o;this._names=new o;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var r=i.getArg(e,"offset");var n=i.getArg(r,"line");var a=i.getArg(r,"column");if(n<s.line||n===s.line&&a<s.column){throw new Error("Section offsets must be ordered and non-overlapping.")}s=r;return{generatedOffset:{generatedLine:n+1,generatedColumn:a+1},consumer:new SourceMapConsumer(i.getArg(e,"map"),t)}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var r=0;r<this._sections[t].consumer.sources.length;r++){e.push(this._sections[t].consumer.sources[r])}}return e}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=a.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;if(r){return r}return e.generatedColumn-t.generatedOffset.generatedColumn});var n=this._sections[r];if(!n){return{source:null,line:null,column:null,name:null}}return n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var i=n.consumer.sourceContentFor(e,true);if(i){return i}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(i.getArg(e,"source"))===-1){continue}var n=r.consumer.generatedPositionFor(e);if(n){var a={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return a}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var a=n.consumer._generatedMappings;for(var o=0;o<a.length;o++){var s=a[o];var u=n.consumer._sources.at(s.source);u=i.computeSourceURL(n.consumer.sourceRoot,u,this._sourceMapURL);this._sources.add(u);u=this._sources.indexOf(u);var l=null;if(s.name){l=n.consumer._names.at(s.name);this._names.add(l);l=this._names.indexOf(l)}var f={source:u,generatedLine:s.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(n.generatedOffset.generatedLine===s.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:l};this.__generatedMappings.push(f);if(typeof f.originalLine==="number"){this.__originalMappings.push(f)}}}c(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);c(this.__originalMappings,i.compareByOriginalPositions)};n=IndexedSourceMapConsumer},1341:(e,t,r)=>{var n=r(4215);var i=r(1983);var a=r(6837).I;var o=r(1740).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new a;this._names=new a;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(n){var a=n;if(t!==null){a=i.relative(t,n)}if(!r._sources.has(a)){r._sources.add(a)}var o=e.sourceContentFor(n);if(o!=null){r.setSourceContent(n,o)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var a=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,a)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(a!=null){a=String(a);if(!this._names.has(a)){this._names.add(a)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:a})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var o=this._sourceRoot;if(o!=null){n=i.relative(o,n)}var s=new a;var c=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(a.source!=null){t.source=a.source;if(r!=null){t.source=i.join(r,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=a.line;t.originalColumn=a.column;if(a.name!=null){t.name=a.name}}}var u=t.source;if(u!=null&&!s.has(u)){s.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=s;this._names=c;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){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&&!r&&!n){return}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&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var a=0;var o=0;var s=0;var c="";var u;var l;var f;var d;var p=this._mappings.toArray();for(var g=0,_=p.length;g<_;g++){l=p[g];u="";if(l.generatedLine!==t){e=0;while(l.generatedLine!==t){u+=";";t++}}else{if(g>0){if(!i.compareByGeneratedPositionsInflated(l,p[g-1])){continue}u+=","}}u+=n.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){d=this._sources.indexOf(l.source);u+=n.encode(d-s);s=d;u+=n.encode(l.originalLine-1-a);a=l.originalLine-1;u+=n.encode(l.originalColumn-r);r=l.originalColumn;if(l.name!=null){f=this._names.indexOf(l.name);u+=n.encode(f-o);o=f}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.h=SourceMapGenerator},9990:(e,t,r)=>{var n;var i=r(1341).h;var a=r(1983);var o=/(\r?\n)/;var s=10;var c="$$$isSourceNode$$$";function SourceNode(e,t,r,n,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=r==null?null:r;this.name=i==null?null:i;this[c]=true;if(n!=null)this.add(n)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,r){var n=new SourceNode;var i=e.split(o);var s=0;var c=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return s<i.length?i[s++]:undefined}};var u=1,l=0;var f=null;t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine){addMappingWithCode(f,c());u++;l=0}else{var t=i[s]||"";var r=t.substr(0,e.generatedColumn-l);i[s]=t.substr(e.generatedColumn-l);l=e.generatedColumn;addMappingWithCode(f,r);f=e;return}}while(u<e.generatedLine){n.add(c());u++}if(l<e.generatedColumn){var t=i[s]||"";n.add(t.substr(0,e.generatedColumn));i[s]=t.substr(e.generatedColumn);l=e.generatedColumn}f=e},this);if(s<i.length){if(f){addMappingWithCode(f,c())}n.add(i.splice(s).join(""))}t.sources.forEach(function(e){var i=t.sourceContentFor(e);if(i!=null){if(r!=null){e=a.join(r,e)}n.setSourceContent(e,i)}});return n;function addMappingWithCode(e,t){if(e===null||e.source===undefined){n.add(t)}else{var i=r?a.join(r,e.source):e.source;n.add(new SourceNode(e.originalLine,e.originalColumn,i,t,e.name))}}};SourceNode.prototype.add=function SourceNode_add(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[c]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[c]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var r=0,n=this.children.length;r<n;r++){t=this.children[r];if(t[c]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(e){var t;var r;var n=this.children.length;if(n>0){t=[];for(r=0;r<n-1;r++){t.push(this.children[r]);t.push(e)}t.push(this.children[r]);this.children=t}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(e,t){var r=this.children[this.children.length-1];if(r[c]){r.replaceRight(e,t)}else if(typeof r==="string"){this.children[this.children.length-1]=r.replace(e,t)}else{this.children.push("".replace(e,t))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(e,t){this.sourceContents[a.toSetString(e)]=t};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(e){for(var t=0,r=this.children.length;t<r;t++){if(this.children[t][c]){this.children[t].walkSourceContents(e)}}var n=Object.keys(this.sourceContents);for(var t=0,r=n.length;t<r;t++){e(a.fromSetString(n[t]),this.sourceContents[n[t]])}};SourceNode.prototype.toString=function SourceNode_toString(){var e="";this.walk(function(t){e+=t});return e};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(e){var t={code:"",line:1,column:0};var r=new i(e);var n=false;var a=null;var o=null;var c=null;var u=null;this.walk(function(e,i){t.code+=e;if(i.source!==null&&i.line!==null&&i.column!==null){if(a!==i.source||o!==i.line||c!==i.column||u!==i.name){r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})}a=i.source;o=i.line;c=i.column;u=i.name;n=true}else if(n){r.addMapping({generated:{line:t.line,column:t.column}});a=null;n=false}for(var l=0,f=e.length;l<f;l++){if(e.charCodeAt(l)===s){t.line++;t.column=0;if(l+1===f){a=null;n=false}else if(n){r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){r.setSourceContent(e,t)});return{code:t.code,map:r}};n=SourceNode},1983:(e,t)=>{function getArg(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e;var n=urlParse(e);if(n){if(!n.path){return e}r=n.path}var i=t.isAbsolute(r);var a=r.split(/\/+/);for(var o,s=0,c=a.length-1;c>=0;c--){o=a[c];if(o==="."){a.splice(c,1)}else if(o===".."){s++}else if(s>0){if(o===""){a.splice(c+1,s);s=0}else{a.splice(c,2);s--}}}r=a.join("/");if(r===""){r=i?"/":"."}if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var r=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(r&&!r.scheme){if(i){r.scheme=i.scheme}return urlGenerate(r)}if(r||t.match(n)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var a=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=a;return urlGenerate(i)}return a}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||r.test(e)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function compareByOriginalPositions(e,t,r){var n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,t,r){t=t||"";if(e){if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}t=e+t}if(r){var n=urlParse(r);if(!n){throw new Error("sourceMapURL could not be parsed")}if(n.path){var i=n.path.lastIndexOf("/");if(i>=0){n.path=n.path.substring(0,i+1)}}t=join(urlGenerate(n),t)}return normalize(t)}t.computeSourceURL=computeSourceURL},9596:(e,t,r)=>{r(1341).h;t.SourceMapConsumer=r(6327).SourceMapConsumer;r(9990)},6439:(e,t,r)=>{"use strict";var n=r(4217);e.exports=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(typeof t==="function"){r=t;t=null}if(typeof t==="string"){t={sep:t}}var i=n({sep:"."},t);var a=i.quotes||['"',"'","`"];var o;if(i.brackets===true){o={"<":">","(":")","[":"]","{":"}"}}else if(i.brackets){o=i.brackets}var s=[];var c=[];var u=[""];var l=i.sep;var f=e.length;var d=-1;var p;function expected(){if(o&&c.length){return o[c[c.length-1]]}}while(++d<f){var g=e[d];var _=e[d+1];var m={val:g,idx:d,arr:u,str:e};s.push(m);if(g==="\\"){m.val=keepEscaping(i,e,d)===true?g+_:_;m.escaped=true;if(typeof r==="function"){r(m)}u[u.length-1]+=m.val;d++;continue}if(o&&o[g]){c.push(g);var y=expected();var h=d+1;if(e.indexOf(y,h+1)!==-1){while(c.length&&h<f){var v=e[++h];if(v==="\\"){v++;continue}if(a.indexOf(v)!==-1){h=getClosingQuote(e,v,h+1);continue}y=expected();if(c.length&&e.indexOf(y,h+1)===-1){break}if(o[v]){c.push(v);continue}if(y===v){c.pop()}}}p=h;if(p===-1){u[u.length-1]+=g;continue}g=e.slice(d,p+1);m.val=g;m.idx=d=p}if(a.indexOf(g)!==-1){p=getClosingQuote(e,g,d+1);if(p===-1){u[u.length-1]+=g;continue}if(keepQuotes(g,i)===true){g=e.slice(d,p+1)}else{g=e.slice(d+1,p)}m.val=g;m.idx=d=p}if(typeof r==="function"){r(m,s);g=m.val;d=m.idx}if(m.val===l&&m.split!==false){u.push("");continue}u[u.length-1]+=m.val}return u};function getClosingQuote(e,t,r,n){var i=e.indexOf(t,r);if(e.charAt(i-1)==="\\"){return getClosingQuote(e,t,i+1)}return i}function keepQuotes(e,t){if(t.keepDoubleQuotes===true&&e==='"')return true;if(t.keepSingleQuotes===true&&e==="'")return true;return t.keepQuotes}function keepEscaping(e,t,r){if(typeof e.keepEscaping==="function"){return e.keepEscaping(t,r)}return e.keepEscaping===true||t[r+1]==="\\"}},4217:(e,t,r)=>{"use strict";var n=r(2808);var i=r(7954);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},2808:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},1261:(e,t,r)=>{"use strict";var n=r(3991);var i=r(4728);var a=r(1669);function extend(e,t){if(typeof e!=="function"){throw new TypeError("expected Parent to be a function.")}return function(r,o){if(typeof r!=="function"){throw new TypeError("expected Ctor to be a function.")}a.inherits(r,e);n(r,e);if(typeof o==="object"){var s=Object.create(o);for(var c in s){r.prototype[c]=s[c]}}i(r.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return e.prototype}});if(typeof t==="function"){t(r,e)}r.extend=extend(r,t)}}e.exports=extend},3919:(e,t,r)=>{"use strict";var n=r(2046);e.exports=function toPath(e){if(n(e)!=="arguments"){e=arguments}return filter(e).join(".")};function filter(e){var t=e.length;var r=-1;var i=[];while(++r<t){var a=e[r];if(n(a)==="arguments"||Array.isArray(a)){i.push.apply(i,filter(a))}else if(typeof a==="string"){i.push(a)}}return i}},5837:(e,t,r)=>{"use strict";var n=r(9437);var i=r(5552);var a={};function toRegexRange(e,t,r){if(i(e)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof t==="undefined"||e===t){return String(e)}if(i(t)===false){throw new RangeError("toRegexRange: second argument is invalid.")}r=r||{};var n=String(r.relaxZeros);var o=String(r.shorthand);var s=String(r.capture);var c=e+":"+t+"="+n+o+s;if(a.hasOwnProperty(c)){return a[c].result}var u=Math.min(e,t);var l=Math.max(e,t);if(Math.abs(u-l)===1){var f=e+"|"+t;if(r.capture){return"("+f+")"}return f}var d=padding(e)||padding(t);var p=[];var g=[];var _={min:e,max:t,a:u,b:l};if(d){_.isPadded=d;_.maxLen=String(_.max).length}if(u<0){var m=l<0?Math.abs(l):1;var y=Math.abs(u);g=splitToPatterns(m,y,_,r);u=_.a=0}if(l>=0){p=splitToPatterns(u,l,_,r)}_.negatives=g;_.positives=p;_.result=siftPatterns(g,p,r);if(r.capture&&p.length+g.length>1){_.result="("+_.result+")"}a[c]=_;return _.result}function siftPatterns(e,t,r){var n=filterPatterns(e,t,"-",false,r)||[];var i=filterPatterns(t,e,"",false,r)||[];var a=filterPatterns(e,t,"-?",true,r)||[];var o=n.concat(a).concat(i);return o.join("|")}function splitToRanges(e,t){e=Number(e);t=Number(t);var r=1;var n=[t];var i=+countNines(e,r);while(e<=i&&i<=t){n=push(n,i);r+=1;i=+countNines(e,r)}var a=1;i=countZeros(t+1,a)-1;while(e<i&&i<=t){n=push(n,i);a+=1;i=countZeros(t+1,a)-1}n.sort(compare);return n}function rangeToPattern(e,t,r){if(e===t){return{pattern:String(e),digits:[]}}var n=zip(String(e),String(t));var i=n.length,a=-1;var o="";var s=0;while(++a<i){var c=n[a];var u=c[0];var l=c[1];if(u===l){o+=u}else if(u!=="0"||l!=="9"){o+=toCharacterClass(u,l)}else{s+=1}}if(s){o+=r.shorthand?"\\d":"[0-9]"}return{pattern:o,digits:[s]}}function splitToPatterns(e,t,r,n){var i=splitToRanges(e,t);var a=i.length;var o=-1;var s=[];var c=e;var u;while(++o<a){var l=i[o];var f=rangeToPattern(c,l,n);var d="";if(!r.isPadded&&u&&u.pattern===f.pattern){if(u.digits.length>1){u.digits.pop()}u.digits.push(f.digits[0]);u.string=u.pattern+toQuantifier(u.digits);c=l+1;continue}if(r.isPadded){d=padZeros(l,r)}f.string=d+f.pattern+toQuantifier(f.digits);s.push(f);c=l+1;u=f}return s}function filterPatterns(e,t,r,n,i){var a=[];for(var o=0;o<e.length;o++){var s=e[o];var c=s.string;if(i.relaxZeros!==false){if(r==="-"&&c.charAt(0)==="0"){if(c.charAt(1)==="{"){c="0*"+c.replace(/^0\{\d+\}/,"")}else{c="0*"+c.slice(1)}}}if(!n&&!contains(t,"string",c)){a.push(r+c)}if(n&&contains(t,"string",c)){a.push(r+c)}}return a}function zip(e,t){var r=[];for(var n in e)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function push(e,t){if(e.indexOf(t)===-1)e.push(t);return e}function contains(e,t,r){for(var n=0;n<e.length;n++){if(e[n][t]===r){return true}}return false}function countNines(e,t){return String(e).slice(0,-t)+n("9",t)}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){var t=e[0];var r=e[1]?","+e[1]:"";if(!r&&(!t||t===1)){return""}return"{"+t+r+"}"}function toCharacterClass(e,t){return"["+e+(t-e===1?"":"-")+t+"]"}function padding(e){return/^-?(0+)\d/.exec(e)}function padZeros(e,t){if(t.isPadded){var r=Math.abs(t.maxLen-String(e).length);switch(r){case 0:return"";case 1:return"0";default:{return"0{"+r+"}"}}}return e}e.exports=toRegexRange},9532:(e,t,r)=>{"use strict";var n=r(3867);var i=r(2383);var a=r(1681);var o=r(3089);var s=1024*64;var c={};e.exports=function(e,t){if(!Array.isArray(e)){return makeRe(e,t)}return makeRe(e.join("|"),t)};function makeRe(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected a string")}if(e.length>s){throw new Error("expected pattern to be less than "+s+" characters")}var r=e;if(!t||t&&t.cache!==false){r=createKey(e,t);if(c.hasOwnProperty(r)){return c[r]}}var i=a({},t);if(i.contains===true){if(i.negate===true){i.strictNegate=false}else{i.strict=false}}if(i.strict===false){i.strictOpen=false;i.strictClose=false}var u=i.strictOpen!==false?"^":"";var l=i.strictClose!==false?"$":"";var f=i.flags||"";var d;if(i.nocase===true&&!/i/.test(f)){f+="i"}try{if(i.negate||typeof i.strictNegate==="boolean"){e=o.create(e,i)}var p=u+"(?:"+e+")"+l;d=new RegExp(p,f);if(i.safe===true&&n(d)===false){throw new Error("potentially unsafe regular expression: "+d.source)}}catch(n){if(i.strictErrors===true||i.safe===true){n.key=r;n.pattern=e;n.originalOptions=t;n.createdOptions=i;throw n}try{d=new RegExp("^"+e.replace(/(\W)/g,"\\$1")+"$")}catch(e){d=/.^/}}if(i.cache!==false){memoize(d,r,e,i)}return d}function memoize(e,t,r,n){i(e,"cached",true);i(e,"pattern",r);i(e,"options",n);i(e,"key",t);c[t]=e}function createKey(e,t){if(!t)return e;var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r}e.exports.makeRe=makeRe},2383:(e,t,r)=>{"use strict";var n=r(977);var i=r(8586);var a=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){a(e,t,r);return e}a(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},1681:(e,t,r)=>{"use strict";var n=r(4466);var i=r(7954);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},4466:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},6619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const i=r(9635);const a=r(557);const o=r(6507);function makeAfterCompile(e,t){let r=true;let n=true;return(i,a)=>{if(i.compiler.isChild()){a();return}removeTSLoaderErrors(i.errors);provideCompilerOptionDiagnosticErrorsToWebpack(r,i,e,t);r=false;const o=determineModules(i);const s=determineFilesToCheckForErrors(n,e);n=false;const c=new Map;provideErrorsToWebpack(s,c,i,o,e);provideDeclarationFilesToWebpack(s,e,i);e.filesWithErrors=c;e.modifiedFiles=null;e.projectsMissingSourceMaps=new Set;a()}}t.makeAfterCompile=makeAfterCompile;function provideCompilerOptionDiagnosticErrorsToWebpack(e,t,r,n){if(e){const{languageService:e,loaderOptions:i,compiler:a,program:s}=r;const c=o.formatErrors(s===undefined?e.getCompilerOptionsDiagnostics():s.getOptionsDiagnostics(),i,r.colors,a,{file:n||"tsconfig.json"},t.compiler.context);t.errors.push(...c)}}function determineModules(e){const t=new Map;e.modules.forEach(e=>{if(e.resource){const r=n.normalize(e.resource);const i=t.get(r);if(i!==undefined){if(i.indexOf(e)===-1){i.push(e)}}else{t.set(r,[e])}}});return t}function determineFilesToCheckForErrors(e,t){const{files:r,modifiedFiles:n,filesWithErrors:i,otherFiles:a}=t;const s=new Map;if(e){for(const[e,t]of r){s.set(e,t)}for(const[e,t]of a){s.set(e,t)}}else if(n!==null&&n!==undefined){for(const e of n.keys()){o.collectAllDependants(t.reverseDependencyGraph,e).forEach(e=>{const t=r.get(e)||a.get(e);s.set(e,t)})}}if(i!==undefined){for(const[e,t]of i){s.set(e,t)}}return s}function provideErrorsToWebpack(e,t,r,n,a){const{compiler:s,program:c,languageService:u,files:l,loaderOptions:f,compilerOptions:d,otherFiles:p}=a;const g=d.checkJs===true?i.dtsTsTsxJsJsxRegex:i.dtsTsTsxRegex;for(const i of e.keys()){if(i.match(g)===null){continue}const e=c===undefined?undefined:c.getSourceFile(i);if(o.isUsingProjectReferences(a)&&e===undefined){continue}const d=c===undefined?[...u.getSyntacticDiagnostics(i),...u.getSemanticDiagnostics(i)]:[...c.getSyntacticDiagnostics(e),...c.getSemanticDiagnostics(e)];if(d.length>0){const e=l.get(i)||p.get(i);t.set(i,e)}const _=n.get(i);if(_!==undefined){_.forEach(e=>{removeTSLoaderErrors(e.errors);const t=o.formatErrors(d,f,a.colors,s,{module:e},r.compiler.context);e.errors.push(...t);r.errors.push(...t)})}else{const e=o.formatErrors(d,f,a.colors,s,{file:i},r.compiler.context);r.errors.push(...e)}}}function provideDeclarationFilesToWebpack(e,t,r){for(const o of e.keys()){if(o.match(i.tsTsxRegex)===null){continue}const e=a.getEmitOutput(t,o);const s=e.filter(e=>e.name.match(i.dtsDtsxOrDtsDtsxMapRegex));s.forEach(e=>{const t=n.relative(r.compiler.outputPath,e.name);r.assets[t]={source:()=>e.text,size:()=>e.text.length}})}}function removeTSLoaderErrors(e){let t=-1;let r=e.length;while(++t<r){if(e[t].loaderSource==="ts-loader"){e.splice(t--,1);r--}}}},7464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2729);const i=r(9635);function getCompiler(e,t){let r;let i;let a;let o=false;try{r=require(e.compiler)}catch(t){i=e.compiler==="typescript"?"Could not load TypeScript. Try installing with `yarn add typescript` or `npm install typescript`. If TypeScript is installed globally, try using `yarn link typescript` or `npm link typescript`.":`Could not load TypeScript compiler with NPM package name \`${e.compiler}\`. Are you sure it is correctly installed?`}if(i===undefined){a=`ts-loader: Using ${e.compiler}@${r.version}`;o=false;if(e.compiler==="typescript"){if(r.version!==undefined&&n.gte(r.version,"2.4.1")){o=true}else{t.logError(`${a}. This version is incompatible with ts-loader. Please upgrade to the latest version of TypeScript.`)}}else{t.logWarning(`${a}. This version may or may not be compatible with ts-loader.`)}}return{compiler:r,compilerCompatible:o,compilerDetailsLogMessage:a,errorMessage:i}}t.getCompiler=getCompiler;function getCompilerOptions(e){const t=Object.assign({},e.options,{skipLibCheck:true,suppressOutputPathCheck:true});if(t.module===undefined&&(t.target!==undefined&&t.target<i.ScriptTargetES2015)){t.module=i.ModuleKindCommonJs}return t}t.getCompilerOptions=getCompilerOptions},852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const i=r(6507);function getConfigFile(e,t,r,a,o,s,c){const u=findConfigFile(e,n.dirname(r.resourcePath),a.configFile);let l;let f;if(u!==undefined){if(o){s.logInfo(`${c} and ${u}`)}else{s.logInfo(`ts-loader: Using config file at ${u}`)}f=e.readConfigFile(u,e.sys.readFile);if(f.error!==undefined){l=i.formatErrors([f.error],a,t,e,{file:u},r.context)[0]}}else{if(o){s.logInfo(c)}f={config:{compilerOptions:{},files:[]}}}if(l===undefined){f.config.compilerOptions=Object.assign({},f.config.compilerOptions,a.compilerOptions)}return{configFilePath:u,configFile:f,configFileError:l}}t.getConfigFile=getConfigFile;function findConfigFile(e,t,r){if(n.isAbsolute(r)){return e.sys.fileExists(r)?r:undefined}if(r.match(/^\.\.?(\/|\\)/)!==null){const i=n.resolve(t,r);return e.sys.fileExists(i)?i:undefined}else{while(true){const i=n.join(t,r);if(e.sys.fileExists(i)){return i}const a=n.dirname(t);if(a===t){break}t=a}return undefined}}function getConfigParseResult(e,t,r){const n=e.parseJsonConfigFileContent(t.config,e.sys,r);return n}t.getConfigParseResult=getConfigParseResult},9635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2087);t.EOL=n.EOL;t.CarriageReturnLineFeed="\r\n";t.LineFeed="\n";t.CarriageReturnLineFeedCode=0;t.LineFeedCode=1;t.ScriptTargetES2015=2;t.ModuleKindCommonJs=1;t.extensionRegex=/\.[^.]+$/;t.tsxRegex=/\.tsx$/i;t.tsTsxRegex=/\.ts(x?)$/i;t.dtsDtsxOrDtsDtsxMapRegex=/\.d\.ts(x?)(\.map)?$/i;t.dtsTsTsxRegex=/(\.d)?\.ts(x?)$/i;t.dtsTsTsxJsJsxRegex=/((\.d)?\.ts(x?)|js(x?))$/i;t.tsTsxJsJsxRegex=/\.tsx?$|\.jsx?$/i;t.jsJsx=/\.js(x?)$/i;t.jsJsxMap=/\.js(x?)\.map$/i;t.jsonRegex=/\.json$/i;t.nodeModules=/node_modules/i},2956:(e,t,r)=>{"use strict";const n=r(8244);const i=r(5622);const a=r(9635);const o=r(557);const s=r(6507);const c=[];const u={};function loader(e){this.cacheable&&this.cacheable();const t=this.async();const r=getLoaderOptions(this);const n=o.getTypeScriptInstance(r,this);if(n.error!==undefined){t(new Error(n.error.message));return}return successLoader(this,e,t,r,n.instance)}function successLoader(e,t,r,n,a){const o=i.normalize(e.resourcePath);const c=n.appendTsSuffixTo.length>0||n.appendTsxSuffixTo.length>0?s.appendSuffixesIfMatch({".ts":n.appendTsSuffixTo,".tsx":n.appendTsxSuffixTo},o):o;const u=updateFileInCache(c,t,a);const l=s.getAndCacheProjectReference(c,a);if(l!==undefined){const[o,f]=[i.relative(e.rootContext,l.sourceFile.fileName),i.relative(e.rootContext,c)];if(l.commandLine.options.outFile!==undefined){throw new Error(`The referenced project at ${o} is using `+`the outFile' option, which is not supported with ts-loader.`)}const d=s.getAndCacheOutputJSFileName(c,l,a);const p=i.relative(e.rootContext,d);if(!a.compiler.sys.fileExists(d)){throw new Error(`Could not find output JavaScript file for input `+`${f} (looked at ${p}).\n`+`The input file is part of a project reference located at `+`${o}, so ts-loader is looking for the `+"project’s pre-built output on disk. Try running `tsc --build` "+"to build project references.")}e.clearDependencies();e.addDependency(d);s.validateSourceMapOncePerProject(a,e,d,l);const g=d+".map";const _=a.compiler.sys.readFile(d);const m=a.compiler.sys.readFile(g);makeSourceMapAndFinish(m,_,c,t,e,n,u,r)}else{const{outputText:i,sourceMapText:s}=n.transpileOnly?getTranspilationEmit(c,t,a,e):getEmit(o,c,a,e);makeSourceMapAndFinish(s,i,c,t,e,n,u,r)}}function makeSourceMapAndFinish(e,t,r,n,i,a,o,s){if(t===null||t===undefined){const e=!a.allowTsInNodeModules&&r.indexOf("node_modules")!==-1?" By default, ts-loader will not compile .ts files in node_modules.\n"+"You should not need to recompile .ts files there, but if you really want to, use the allowTsInNodeModules option.\n"+"See: https://github.com/Microsoft/TypeScript/issues/12358":"";throw new Error(`TypeScript emitted no output for ${r}.${e}`)}const{sourceMap:c,output:u}=makeSourceMap(e,t,r,n,i);if(!a.happyPackMode&&i._module.buildMeta!==undefined){i._module.buildMeta.tsLoaderFileVersion=o}s(null,u,c)}function getLoaderOptions(e){let t=c.indexOf(e._compiler);if(t===-1){t=c.push(e._compiler)-1}const r=n.getOptions(e)||{};const i=t+"_"+(r.instance||"default");if(!u.hasOwnProperty(i)){u[i]=new WeakMap}const a=u[i];if(a.has(r)){return a.get(r)}validateLoaderOptions(r);const o=makeLoaderOptions(i,r);a.set(r,o);return o}const l=["silent","logLevel","logInfoToStdOut","instance","compiler","context","configFile","transpileOnly","ignoreDiagnostics","errorFormatter","colors","compilerOptions","appendTsSuffixTo","appendTsxSuffixTo","onlyCompileBundledFiles","happyPackMode","getCustomTransformers","reportFiles","experimentalWatchApi","allowTsInNodeModules","experimentalFileCaching","projectReferences","resolveModuleName"];function validateLoaderOptions(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];const n=l.indexOf(r)===-1;if(n){throw new Error(`ts-loader was supplied with an unexpected loader option: ${r}\n\nPlease take a look at the options you are supplying; the following are valid options:\n${l.join(" / ")}\n`)}}if(e.context!==undefined&&!i.isAbsolute(e.context)){throw new Error(`Option 'context' has to be an absolute path. Given '${e.context}'.`)}}function makeLoaderOptions(e,t){const r=Object.assign({},{silent:false,logLevel:"WARN",logInfoToStdOut:false,compiler:"typescript",configFile:"tsconfig.json",context:undefined,transpileOnly:false,compilerOptions:{},appendTsSuffixTo:[],appendTsxSuffixTo:[],transformers:{},happyPackMode:false,colors:true,onlyCompileBundledFiles:false,reportFiles:[],experimentalWatchApi:false,allowTsInNodeModules:false,experimentalFileCaching:false},t);r.ignoreDiagnostics=s.arrify(r.ignoreDiagnostics).map(Number);r.logLevel=r.logLevel.toUpperCase();r.instance=e;r.transpileOnly=r.happyPackMode?true:r.transpileOnly;return r}function updateFileInCache(e,t,r){let n;let a=r.files.get(e);if(a===undefined){a=r.otherFiles.get(e);if(a!==undefined){r.otherFiles.delete(e);r.files.set(e,a)}else{if(r.watchHost!==undefined){n=r.compiler.FileWatcherEventKind.Created}a={version:0};r.files.set(e,a)}r.changedFilesList=true}if(r.watchHost!==undefined&&t===undefined){n=r.compiler.FileWatcherEventKind.Deleted}if(a.text!==t){a.version++;a.text=t;r.version++;if(r.watchHost!==undefined&&n===undefined){n=r.compiler.FileWatcherEventKind.Changed}}if(r.watchHost!==undefined&&n!==undefined){r.hasUnaccountedModifiedFiles=true;r.watchHost.invokeFileWatcher(e,n);r.watchHost.invokeDirectoryWatcher(i.dirname(e),e)}if(r.modifiedFiles===null||r.modifiedFiles===undefined){r.modifiedFiles=new Map}r.modifiedFiles.set(e,a);return a.version}function getEmit(e,t,r,n){const i=o.getEmitOutput(r,t);n.clearDependencies();n.addDependency(e);const c=[...r.files.keys()].filter(e=>e.match(a.dtsDtsxOrDtsDtsxMapRegex));const u=n.addDependency.bind(n);c.forEach(u);const l=r.dependencyGraph[t];const f=l===undefined?[]:l.map(({resolvedFileName:e,originalFileName:t})=>{const n=s.getAndCacheProjectReference(e,r);return n!==undefined?s.getAndCacheOutputJSFileName(e,n,r):t});if(f.length>0){f.forEach(u)}n._module.buildMeta.tsLoaderDefinitionFileVersions=c.concat(f).map(e=>e+"@"+(r.files.get(e)||{version:"?"}).version);const d=i.filter(e=>e.name.match(a.jsJsx)).pop();const p=d===undefined?undefined:d.text;const g=i.filter(e=>e.name.match(a.jsJsxMap)).pop();const _=g===undefined?undefined:g.text;return{outputText:p,sourceMapText:_}}function getTranspilationEmit(e,t,r,n){const{outputText:i,sourceMapText:a,diagnostics:o}=r.compiler.transpileModule(t,{compilerOptions:Object.assign({},r.compilerOptions,{rootDir:undefined}),transformers:r.transformers,reportDiagnostics:true,fileName:e});if(!r.loaderOptions.happyPackMode){const e=s.formatErrors(o,r.loaderOptions,r.colors,r.compiler,{module:n._module},n.context);n._module.errors.push(...e)}return{outputText:i,sourceMapText:a}}function makeSourceMap(e,t,r,i,a){if(e===undefined){return{output:t,sourceMap:undefined}}return{output:t.replace(/^\/\/# sourceMappingURL=[^\r\n]*/gm,""),sourceMap:Object.assign(JSON.parse(e),{sources:[n.getRemainingRequest(a)],file:r,sourcesContent:[i]})}}e.exports=loader},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3551);const i=r(5747);const a=r(5622);const o=r(6619);const s=r(7464);const c=r(852);const u=r(9635);const l=r(3686);const f=r(9674);const d=r(6507);const p=r(573);const g={};function getTypeScriptInstance(e,t){if(g.hasOwnProperty(e.instance)){const t=g[e.instance];d.ensureProgram(t);return{instance:g[e.instance]}}const r=new n.default.constructor({enabled:e.colors});const i=l.makeLogger(e,r);const a=s.getCompiler(e,i);if(a.errorMessage!==undefined){return{error:d.makeError(r.red(a.errorMessage),undefined)}}return successfulTypeScriptInstance(e,t,i,r,a.compiler,a.compilerCompatible,a.compilerDetailsLogMessage)}t.getTypeScriptInstance=getTypeScriptInstance;function successfulTypeScriptInstance(e,t,r,n,l,_,m){const y=c.getConfigFile(l,n,t,e,_,r,m);if(y.configFileError!==undefined){const{message:e,file:t}=y.configFileError;return{error:d.makeError(n.red("error while reading tsconfig.json:"+u.EOL+e),t)}}const{configFilePath:h,configFile:v}=y;const T=e.context||a.dirname(h||"");const S=c.getConfigParseResult(l,v,T);if(S.errors.length>0&&!e.happyPackMode){const r=d.formatErrors(S.errors,e,n,l,{file:h},t.context);t._module.errors.push(...r);return{error:d.makeError(n.red("error while parsing tsconfig.json"),h)}}const b=s.getCompilerOptions(S);const x=new Map;const C=new Map;let{getCustomTransformers:E}=e;let D=Function.prototype;if(typeof E==="function"){D=E}else if(typeof E==="string"){try{E=require(E)}catch(t){throw new Error(`Failed to load customTransformers from "${e.getCustomTransformers}": ${t.message}`)}if(typeof E!=="function"){throw new Error(`Custom transformers in "${e.getCustomTransformers}" should export a function, got ${typeof D}`)}D=E}if(e.transpileOnly){const r=S.projectReferences!==undefined?l.createProgram({rootNames:S.fileNames,options:S.options,projectReferences:S.projectReferences}):l.createProgram([],b);if(!e.happyPackMode){const i=r.getOptionsDiagnostics();const a=d.formatErrors(i,e,n,l,{file:h||"tsconfig.json"},t.context);t._module.errors.push(...a)}g[e.instance]={compiler:l,compilerOptions:b,loaderOptions:e,files:x,otherFiles:C,program:r,dependencyGraph:{},reverseDependencyGraph:{},transformers:D(),colors:n};return{instance:g[e.instance]}}let k;try{const t=e.onlyCompileBundledFiles?S.fileNames.filter(e=>u.dtsDtsxOrDtsDtsxMapRegex.test(e)):S.fileNames;t.forEach(e=>{k=a.normalize(e);x.set(k,{text:i.readFileSync(k,"utf-8"),version:0})})}catch(e){return{error:d.makeError(n.red(`A file specified in tsconfig.json could not be found: ${k}`),k)}}const N=S.options.allowJs===true?/\.tsx?$|\.jsx?$/i:/\.tsx?$/i;const A=g[e.instance]={compiler:l,compilerOptions:b,loaderOptions:e,files:x,otherFiles:C,languageService:null,version:0,transformers:D(),dependencyGraph:{},reverseDependencyGraph:{},modifiedFiles:null,colors:n};if(!t._compiler.hooks){throw new Error("You may be using an old version of webpack; please check you're using at least version 4")}if(e.experimentalWatchApi&&l.createWatchProgram){r.logInfo("Using watch api");A.watchHost=f.makeWatchHost(N,r,t,A,e.appendTsSuffixTo,e.appendTsxSuffixTo,S.projectReferences);A.watchOfFilesAndCompilerOptions=l.createWatchProgram(A.watchHost);A.program=A.watchOfFilesAndCompilerOptions.getProgram().getProgram()}else{const n=f.makeServicesHost(N,r,t,A,e.experimentalFileCaching,S.projectReferences);A.languageService=l.createLanguageService(n.servicesHost,l.createDocumentRegistry());if(n.clearCache!==null){t._compiler.hooks.watchRun.tap("ts-loader",n.clearCache)}}t._compiler.hooks.afterCompile.tapAsync("ts-loader",o.makeAfterCompile(A,h));t._compiler.hooks.watchRun.tapAsync("ts-loader",p.makeWatchRun(A));return{instance:A}}function getEmitOutput(e,t){const r=d.ensureProgram(e);if(r!==undefined){const n=[];const i=(e,t,r)=>n.push({name:e,writeByteOrderMark:r,text:t});const a=r.getSourceFile(t);if(a!==undefined||!d.isUsingProjectReferences(e)){r.emit(a,i,undefined,false,e.transformers)}return n}else{return e.languageService.getProgram().getSourceFile(t)===undefined?[]:e.languageService.getEmitOutput(t).outputFiles}}t.getEmitOutput=getEmitOutput},3686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7082);var i;(function(e){e[e["INFO"]=1]="INFO";e[e["WARN"]=2]="WARN";e[e["ERROR"]=3]="ERROR"})(i||(i={}));const a=new n.Console(process.stderr);const o=new n.Console(process.stdout);const s=e=>{};const c=e=>e.silent?(e,t)=>{}:(e,t)=>console.log.call(e,t);const u=(e,t)=>r=>t(e.logInfoToStdOut?o:a,r);const l=(e,t,r)=>i[e.logLevel]<=i.INFO?n=>t(e.logInfoToStdOut?o:a,r(n)):s;const f=(e,t,r)=>i[e.logLevel]<=i.ERROR?e=>t(a,r(e)):s;const d=(e,t,r)=>i[e.logLevel]<=i.WARN?e=>t(a,r(e)):s;function makeLogger(e,t){const r=c(e);return{log:u(e,r),logInfo:l(e,r,t.green),logWarning:d(e,r,t.yellow),logError:f(e,r,t.red)}}t.makeLogger=makeLogger},8535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1324);function makeResolver(e){return n.create.sync(e.resolve)}t.makeResolver=makeResolver},9674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const i=r(9635);const a=r(8535);const o=r(6507);function makeServicesHost(e,t,r,s,c,u){const{compiler:l,compilerOptions:f,files:d,loaderOptions:{appendTsSuffixTo:p,appendTsxSuffixTo:g,resolveModuleName:_}}=s;const m=f.newLine===i.CarriageReturnLineFeedCode?i.CarriageReturnLineFeed:f.newLine===i.LineFeedCode?i.LineFeed:i.EOL;const y=a.makeResolver(r._compiler.options);const h=(e,t)=>l.sys.readFile(e,t)||o.readFile(e,t);const v=e=>l.sys.fileExists(e)||o.readFile(e)!==undefined;const T={fileExists:v,readFile:h,realpath:l.sys.realpath,directoryExists:l.sys.directoryExists};const S=c?addCache(T):null;const b=()=>r.context;const x={getProjectVersion:()=>`${s.version}`,getProjectReferences:()=>u,getScriptFileNames:()=>[...d.keys()].filter(t=>t.match(e)),getScriptVersion:e=>{e=n.normalize(e);const t=d.get(e);return t===undefined?"":t.version.toString()},getScriptSnapshot:e=>{e=n.normalize(e);let t=d.get(e);if(t===undefined){const r=o.readFile(e);if(r===undefined){return undefined}t={version:0,text:r};d.set(e,t)}return l.ScriptSnapshot.fromString(t.text)},getDirectories:l.sys.getDirectories,directoryExists:T.directoryExists,useCaseSensitiveFileNames:()=>l.sys.useCaseSensitiveFileNames,realpath:T.realpath,fileExists:T.fileExists,readFile:T.readFile,readDirectory:l.sys.readDirectory,getCurrentDirectory:b,getCompilationSettings:()=>f,getDefaultLibFileName:e=>l.getDefaultLibFilePath(e),getNewLine:()=>m,trace:t.log,log:t.log,resolveModuleNames:(t,r)=>resolveModuleNames(y,T,p,g,e,s,t,r,getResolutionStrategy,_),getCustomTransformers:()=>s.transformers};return{servicesHost:x,clearCache:S}}t.makeServicesHost=makeServicesHost;function makeWatchHost(e,t,r,s,c,u,l){const{compiler:f,compilerOptions:d,files:p,otherFiles:g}=s;const _=d.newLine===i.CarriageReturnLineFeedCode?i.CarriageReturnLineFeed:d.newLine===i.LineFeedCode?i.LineFeed:i.EOL;const m=a.makeResolver(r._compiler.options);const y=(e,t)=>f.sys.readFile(e,t)||o.readFile(e,t);const h={fileExists:fileExists,readFile:y,realpath:f.sys.realpath};const v=()=>r.context;const T={};const S={};const b={};const x={rootFiles:getRootFileNames(),options:d,useCaseSensitiveFileNames:()=>f.sys.useCaseSensitiveFileNames,getNewLine:()=>_,getCurrentDirectory:v,getDefaultLibFileName:e=>f.getDefaultLibFilePath(e),fileExists:fileExists,readFile:readFileWithCachingText,directoryExists:e=>f.sys.directoryExists(n.normalize(e)),getDirectories:e=>f.sys.getDirectories(n.normalize(e)),readDirectory:(e,t,r,i,a)=>f.sys.readDirectory(n.normalize(e),t,r,i,a),realpath:e=>f.sys.resolvePath(n.normalize(e)),trace:e=>t.log(e),watchFile:watchFile,watchDirectory:watchDirectory,resolveModuleNames:(t,r)=>resolveModuleNames(m,h,c,u,e,s,t,r,getResolutionStrategy),invokeFileWatcher:invokeFileWatcher,invokeDirectoryWatcher:invokeDirectoryWatcher,updateRootFileNames:()=>{s.changedFilesList=false;if(s.watchOfFilesAndCompilerOptions!==undefined){s.watchOfFilesAndCompilerOptions.updateRootFileNames(getRootFileNames())}},createProgram:l===undefined?f.createAbstractBuilder:createBuilderProgramWithReferences};return x;function getRootFileNames(){return[...p.keys()].filter(t=>t.match(e))}function readFileWithCachingText(e,t){e=n.normalize(e);const r=p.get(e)||g.get(e);if(r!==undefined){return r.text}const i=y(e,t);if(i===undefined){return undefined}g.set(e,{version:0,text:i});return i}function fileExists(e){const t=n.normalize(e);return p.has(t)||f.sys.fileExists(t)}function invokeWatcherCallbacks(e,t,r){if(e!==undefined){const n=e.slice();for(const e of n){e(t,r)}}}function invokeFileWatcher(e,t){e=n.normalize(e);invokeWatcherCallbacks(T[e],e,t)}function invokeDirectoryWatcher(e,t){e=n.normalize(e);invokeWatcherCallbacks(S[e],t);invokeRecursiveDirectoryWatcher(e,t)}function invokeRecursiveDirectoryWatcher(e,t){e=n.normalize(e);invokeWatcherCallbacks(b[e],t);const r=n.dirname(e);if(e!==r){invokeRecursiveDirectoryWatcher(r,t)}}function createWatcher(e,t,r){e=n.normalize(e);const i=t[e];if(i===undefined){t[e]=[r]}else{i.push(r)}return{close:()=>{const n=t[e];if(n!==undefined){o.unorderedRemoveItem(n,r)}}}}function watchFile(e,t,r){return createWatcher(e,T,t)}function watchDirectory(e,t,r){return createWatcher(e,r===true?b:S,t)}function createBuilderProgramWithReferences(e,t,r,n,i){const a=f.createProgram({rootNames:e,options:t,host:r,oldProgram:n&&n.getProgram(),configFileParsingDiagnostics:i,projectReferences:l});const o=r;return f.createAbstractBuilder(a,o,n,i)}}t.makeWatchHost=makeWatchHost;function resolveModuleNames(e,t,r,n,i,a,o,s,c,u){const l=o.map(o=>resolveModuleName(e,t,r,n,i,a,o,s,c,u));populateDependencyGraphs(l,a,s);return l}function isJsImplementationOfTypings(e,t){return e.resolvedFileName.endsWith("js")&&/\.d\.ts$/.test(t.resolvedFileName)}function applyTsResolver(e,t,r,n,i){return e.resolveModuleName(t,r,n,i)}function resolveModuleName(e,t,r,i,a,s,c,u,l,f){const{compiler:d,compilerOptions:p}=s;let g;try{const t=e(undefined,n.normalize(n.dirname(u)),c);const s=r.length>0||i.length>0?o.appendSuffixesIfMatch({".ts":r,".tsx":i},t):t;if(s.match(a)!==null){g={resolvedFileName:s,originalFileName:t}}}catch(e){}const _=f!==undefined?f(c,u,p,t,(e,t,r,n)=>applyTsResolver(d,e,t,r,n)):applyTsResolver(d,c,u,p,t);if(_.resolvedModule!==undefined){const e=n.normalize(_.resolvedModule.resolvedFileName);const t={originalFileName:e,resolvedFileName:e,isExternalLibraryImport:_.resolvedModule.isExternalLibraryImport};return l(g,t)}return g}function getResolutionStrategy(e,t){return e===undefined||e.resolvedFileName===t.resolvedFileName||isJsImplementationOfTypings(e,t)?t:e}function populateDependencyGraphs(e,t,r){e=e.filter(e=>e!==null&&e!==undefined);t.dependencyGraph[n.normalize(r)]=e;e.forEach(e=>{if(t.reverseDependencyGraph[e.resolvedFileName]===undefined){t.reverseDependencyGraph[e.resolvedFileName]={}}t.reverseDependencyGraph[e.resolvedFileName][n.normalize(r)]=true})}const s=["fileExists","directoryExists","realpath"];function addCache(e){const t=[];s.forEach(r=>{const n=e[r];if(n!==undefined){const i=createCache(n);e[r]=i.getCached;t.push(i.clear)}});return()=>t.forEach(e=>e())}function createCache(e){const t=new Map;return{clear:()=>{t.clear()},getCached:r=>{let n=t.get(r);if(n!==undefined){return n}n=e(r);t.set(r,n);return n}}}},6507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(4930);const a=r(5622);const o=r(3779);const s=r(9635);function defaultErrorFormatter(e,t){const r=e.severity==="warning"?t.bold.yellow:t.bold.red;return t.grey("[tsl] ")+r(e.severity.toUpperCase())+(e.file===""?"":r(" in ")+t.bold.cyan(`${e.file}(${e.line},${e.character})`))+s.EOL+r(` TS${e.code}: ${e.content}`)}function formatErrors(e,t,r,n,o,c){return e===undefined?[]:e.filter(e=>{if(t.ignoreDiagnostics.indexOf(e.code)!==-1){return false}if(t.reportFiles.length>0&&e.file!==undefined){const r=a.relative(c,e.file.fileName);const n=i([r],t.reportFiles);if(n.length===0){return false}}return true}).map(e=>{const i=e.file;const u=i===undefined?undefined:i.getLineAndCharacterOfPosition(e.start);const l={code:e.code,severity:n.DiagnosticCategory[e.category].toLowerCase(),content:n.flattenDiagnosticMessageText(e.messageText,s.EOL),file:i===undefined?"":a.normalize(i.fileName),line:u===undefined?0:u.line+1,character:u===undefined?0:u.character+1,context:c};const f=t.errorFormatter===undefined?defaultErrorFormatter(l,r):t.errorFormatter(l,r);const d=makeError(f,o.file===undefined?l.file:o.file,u===undefined?undefined:{line:l.line,character:l.character});return Object.assign(d,o)})}t.formatErrors=formatErrors;function readFile(e,t="utf8"){e=a.normalize(e);try{return n.readFileSync(e,t)}catch(e){return undefined}}t.readFile=readFile;function makeError(e,t,r){return{message:e,location:r,file:t,loaderSource:"ts-loader"}}t.makeError=makeError;function appendSuffixIfMatch(e,t,r){if(e.length>0){for(const n of e){if(t.match(n)!==null){return t+r}}}return t}t.appendSuffixIfMatch=appendSuffixIfMatch;function appendSuffixesIfMatch(e,t){let r=t;for(const t in e){r=appendSuffixIfMatch(e[t],r,t)}return r}t.appendSuffixesIfMatch=appendSuffixesIfMatch;function unorderedRemoveItem(e,t){for(let r=0;r<e.length;r++){if(e[r]===t){e[r]=e[e.length-1];e.pop();return true}}return false}t.unorderedRemoveItem=unorderedRemoveItem;function collectAllDependants(e,t,r={}){const n={};n[t]=true;r[t]=true;const i=e[t];if(i!==undefined){Object.keys(i).forEach(t=>{if(!r[t]){collectAllDependants(e,t,r).forEach(e=>n[e]=true)}})}return Object.keys(n)}t.collectAllDependants=collectAllDependants;function collectAllDependencies(e,t,r={}){const n={};n[t]=true;r[t]=true;const i=e[t];if(i!==undefined){i.forEach(t=>{if(!r[t.originalFileName]){collectAllDependencies(e,t.resolvedFileName,r).forEach(e=>n[e]=true)}})}return Object.keys(n)}t.collectAllDependencies=collectAllDependencies;function arrify(e){if(e===null||e===undefined){return[]}return Array.isArray(e)?e:[e]}t.arrify=arrify;function ensureProgram(e){if(e&&e.watchHost){if(e.hasUnaccountedModifiedFiles){if(e.changedFilesList){e.watchHost.updateRootFileNames()}if(e.watchOfFilesAndCompilerOptions){e.program=e.watchOfFilesAndCompilerOptions.getProgram().getProgram()}e.hasUnaccountedModifiedFiles=false}return e.program}if(e.languageService){return e.languageService.getProgram()}return e.program}t.ensureProgram=ensureProgram;function supportsProjectReferences(e){const t=ensureProgram(e);return t&&!!t.getProjectReferences}t.supportsProjectReferences=supportsProjectReferences;function isUsingProjectReferences(e){if(e.loaderOptions.projectReferences&&supportsProjectReferences(e)){const t=ensureProgram(e);return Boolean(t&&t.getProjectReferences())}return false}t.isUsingProjectReferences=isUsingProjectReferences;function getAndCacheProjectReference(e,t){const r=t.files.get(e);if(r!==undefined&&r.projectReference){return r.projectReference.project}const n=getProjectReferenceForFile(e,t);if(r!==undefined){r.projectReference={project:n}}return n}t.getAndCacheProjectReference=getAndCacheProjectReference;function getResolvedProjectReferences(e){const t=e.getResolvedProjectReferences||e.getProjectReferences;if(t){return t()}return}function getProjectReferenceForFile(e,t){if(isUsingProjectReferences(t)){const r=ensureProgram(t);return r&&getResolvedProjectReferences(r).find(t=>t&&t.commandLine.fileNames.some(t=>a.normalize(t)===e)||false)}return}function validateSourceMapOncePerProject(e,t,r,n){const{projectsMissingSourceMaps:i=new Set}=e;if(!i.has(n.sourceFile.fileName)){e.projectsMissingSourceMaps=i;i.add(n.sourceFile.fileName);const o=r+".map";if(!e.compiler.sys.fileExists(o)){const[e,i]=[a.relative(t.rootContext,r),a.relative(t.rootContext,n.sourceFile.fileName)];t.emitWarning(new Error("Could not find source map file for referenced project output "+`${e}. Ensure the 'sourceMap' compiler option `+`is enabled in ${i} to ensure Webpack `+"can map project references to the appropriate source files."))}}}t.validateSourceMapOncePerProject=validateSourceMapOncePerProject;function getAndCacheOutputJSFileName(e,t,r){const n=r.files.get(e);if(n&&n.projectReference&&n.projectReference.outputFileName){return n.projectReference.outputFileName}const i=getOutputJavaScriptFileName(e,t);if(n!==undefined){n.projectReference=n.projectReference||{project:t};n.projectReference.outputFileName=i}return i}t.getAndCacheOutputJSFileName=getAndCacheOutputJSFileName;function getOutputJavaScriptFileName(e,t){const{options:r}=t.commandLine;const n=r.rootDir||a.dirname(t.sourceFile.fileName);const i=a.relative(n,e);const c=a.resolve(r.outDir||n,i);const u=s.jsonRegex.test(e)?".json":s.tsxRegex.test(e)&&r.jsx===o.JsxEmit.Preserve?".jsx":".js";return c.replace(s.extensionRegex,u)}},573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5622);const i=r(9635);const a=r(6507);function makeWatchRun(e){const t=new Map;const r=0;return(n,a)=>{if(null===e.modifiedFiles){e.modifiedFiles=new Map}const o=n.fileTimestamps;for(const[n,a]of o){if(a>(t.get(n)||r)&&n.match(i.tsTsxJsJsxRegex)!==null){continue}t.set(n,a);updateFile(e,n)}for(const t of e.files.keys()){if(t.match(i.dtsDtsxOrDtsDtsxMapRegex)!==null&&t.match(i.nodeModules)===null){updateFile(e,t)}}a()}}t.makeWatchRun=makeWatchRun;function updateFile(e,t){const r=n.normalize(t);const i=e.files.get(r)||e.otherFiles.get(r);if(i!==undefined){i.text=a.readFile(r)||"";i.version++;e.version++;e.modifiedFiles.set(r,i);if(e.watchHost!==undefined){e.watchHost.invokeFileWatcher(r,e.compiler.FileWatcherEventKind.Changed)}}}},2070:(e,t,r)=>{var n=r(2956);e.exports=n},9577:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(8215);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const a=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const o=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const s=(e,t,r)=>[e,t,r];t.color.close="[39m";t.bgColor.close="[49m";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:a(r,0)};t.color.ansi16m={rgb:o(s,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:a(r,10)};t.bgColor.ansi16m={rgb:o(s,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=a(r.ansi256,0);t.bgColor.ansi256[e]=a(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=o(r.rgb,0);t.bgColor.ansi16m[e]=o(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},3551:(e,t,r)=>{"use strict";const n=r(8732);const i=r(9577);const a=r(1816).stdout;const o=r(5333);const s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=a?a.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(s){i.blue.open="[94m"}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=f;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(s&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=a;e.exports.default=e.exports},5333:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return a.get(e)||e}function parseArguments(e,t){const r=[];const a=t.trim().split(/\s*,\s*/g);let o;for(const t of a){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=((e,r)=>{const n=[];const i=[];let a=[];r.replace(t,(t,r,o,s,c,u)=>{if(r){a.push(unescape(r))}else if(s){const t=a.join("");a=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(s)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(a.join("")));a=[];n.pop()}else{a.push(u)}});i.push(a.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},8394:(e,t,r)=>{"use strict";var n=r(977);var i=r(8586);var a=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){a(e,t,r);return e}a(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},7418:(e,t,r)=>{"use strict";var n=r(8530);var i=r(7954);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},7239:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)})},8530:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},5536:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return e.constructor?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},4930:(e,t,r)=>{"use strict";var n=r(1669);var i=r(4495);var a=r(9532);var o=r(7418);var s=r(7111);var c=r(9841);var u=r(4832);var l=r(5463);var f=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var i=[];var a=[];var o=-1;while(++o<n){var s=t[o];if(typeof s==="string"&&s.charCodeAt(0)===33){i.push.apply(i,micromatch.match(e,s.slice(1),r))}else{a.push.apply(a,micromatch.match(e,s,r))}}var c=l.diff(a,i);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var i=memoize("match",t,r,micromatch.matcher);var a=[];e=l.arrayify(e);var o=e.length;var s=-1;while(++s<o){var c=e[s];if(c===t||i(c)){a.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(a)}if(a.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){a=micromatch.not(a,r.ignore,r)}return r.nodupes!==false?l.unique(a):a};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(r);if(i(e)){return true}var a=memoize("isMatch",t,r,micromatch.matcher);return a(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(micromatch.isMatch(e,t[i],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!micromatch.isMatch(e,t[i],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var i=n.ignore;delete n.ignore;var a=l.unixify(n);e=l.arrayify(e).map(a);var s=l.diff(e,micromatch(e,t,n));if(i){s=l.diff(s,micromatch(e,i))}return n.nodupes!==false?l.unique(s):s};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(t,r);if(i(e)){return true}var a=l.containsPattern(t,r);if(a(e)){return true}}var s=o({},r,{contains:true});return micromatch.any(e,t,s)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var i=l.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var a=memoize("capture",e,r,match);return a(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>f){throw new Error("expected pattern to be less than "+f+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var i=r.map(function(e){e.ast.state=e.state;n.push(e.ast);return e.output});var o=a(i.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return i(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var i=[];while(++n<r){i.push(create(e[n],t))}return i})};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,function(){var r=l.instantiate(e,t);s(r,t);return r.compile(e,t)})};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var a=0;a<e.length;a++){n.push(r(e[a],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,i)){return u.get(e,i)}var a=n(t,r);u.set(e,i,a);return a}micromatch.compilers=s;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},4832:(e,t,r)=>{e.exports=new(r(9111))},7111:(e,t,r)=>{"use strict";var n=r(5434);var i=r(2655);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var a=t.escape;var o=t.qmark;var s=t.slash;var c=t.star;var u=t.text;var l=t.plus;var f=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(i.compilers)}e.use(function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}});e.compiler.set("dot",f).set("escape",a).set("plus",l).set("slash",s).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",function(e){var t="";visit(e,function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val});return this.emit(t,e)});function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},9841:(e,t,r)=>{"use strict";var n=r(2655);var i=r(5434);var a=r(3089);var o=r(9532);var s;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var u=function(e){return s||(s=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(i.parsers);var r=t.escape;var a=t.slash;var o=t.qmark;var s=t.plus;var c=t.star;var l=t.dot;e.use(n.parsers);e.parser.use(function(){this.notRegex=/^\!+(?!\()/}).capture("escape",r).capture("slash",a).capture("qmark",o).capture("star",c).capture("plus",s).capture("dot",l).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(u(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})})};function textRegex(e){var t=a.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},5463:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var a=r(9769);n.define=r(8394);n.diff=r(6253);n.extend=r(7418);n.pick=r(5767);n.typeOf=r(5536);n.unique=r(6974);n.isWindows=function(){return i.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new a(t)}n.define(r,"parse",function(e,t){var r=a.prototype.parse.apply(this,arguments);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var o=i.nodes[0];var s=i.nodes[1];if(i.type==="bracket"){if(s.val.charAt(0)==="["){s.val="\\"+s.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var i=Object.keys(t);for(var a=0;a<i.length;a++){var o=i[a];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var a=n._equals(i,r(i),e);if(a===true||t.nocase!==true){return a}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var a=n._contains(i,r(i),e);if(a===true||t.nocase!==true){return a}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(i.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},1816:(e,t,r)=>{"use strict";const n=r(2087);const i=r(7239);const a=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in a){o=a.FORCE_COLOR.length===0||parseInt(a.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in a)||a.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}if(a.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},3779:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var a=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var o=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();var s;(function(e){e.versionMajorMinor="3.2";e.version=e.versionMajorMinor+".2"})(s||(s={}));(function(e){var t;(function(e){e[e["LessThan"]=-1]="LessThan";e[e["EqualTo"]=0]="EqualTo";e[e["GreaterThan"]=1]="GreaterThan"})(t=e.Comparison||(e.Comparison={}))})(s||(s={}));(function(e){e.emptyArray=[];function createDictionaryObject(){var e=Object.create(null);e.__=undefined;delete e.__;return e}function createMap(){return new e.MapCtr}e.createMap=createMap;function createMapFromEntries(e){var t=createMap();for(var r=0,n=e;r<n.length;r++){var i=n[r],a=i[0],o=i[1];t.set(a,o)}return t}e.createMapFromEntries=createMapFromEntries;function createMapFromTemplate(r){var n=new e.MapCtr;for(var i in r){if(t.call(r,i)){n.set(i,r[i])}}return n}e.createMapFromTemplate=createMapFromTemplate;e.MapCtr=typeof Map!=="undefined"&&"entries"in Map.prototype?Map:shimMap();function shimMap(){var e=function(){function MapIterator(e,t){this.index=0;this.data=e;this.selector=t;this.keys=Object.keys(e)}MapIterator.prototype.next=function(){var e=this.index;if(e<this.keys.length){this.index++;return{value:this.selector(this.data,this.keys[e]),done:false}}return{value:undefined,done:true}};return MapIterator}();return function(){function class_1(){this.data=createDictionaryObject();this.size=0}class_1.prototype.get=function(e){return this.data[e]};class_1.prototype.set=function(e,t){if(!this.has(e)){this.size++}this.data[e]=t;return this};class_1.prototype.has=function(e){return e in this.data};class_1.prototype.delete=function(e){if(this.has(e)){this.size--;delete this.data[e];return true}return false};class_1.prototype.clear=function(){this.data=createDictionaryObject();this.size=0};class_1.prototype.keys=function(){return new e(this.data,function(e,t){return t})};class_1.prototype.values=function(){return new e(this.data,function(e,t){return e[t]})};class_1.prototype.entries=function(){return new e(this.data,function(e,t){return[t,e[t]]})};class_1.prototype.forEach=function(e){for(var t in this.data){e(this.data[t],t)}};return class_1}()}function length(e){return e?e.length:0}e.length=length;function forEach(e,t){if(e){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n){return n}}}return undefined}e.forEach=forEach;function firstDefined(e,t){if(e===undefined){return undefined}for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n!==undefined){return n}}return undefined}e.firstDefined=firstDefined;function firstDefinedIterator(e,t){while(true){var r=e.next(),n=r.value,i=r.done;if(i){return undefined}var a=t(n);if(a!==undefined){return a}}}e.firstDefinedIterator=firstDefinedIterator;function zipWith(e,t,r){var i=[];n.assertEqual(e.length,t.length);for(var a=0;a<e.length;a++){i.push(r(e[a],t[a],a))}return i}e.zipWith=zipWith;function zipToIterator(e,t){n.assertEqual(e.length,t.length);var r=0;return{next:function(){if(r===e.length){return{value:undefined,done:true}}r++;return{value:[e[r-1],t[r-1]],done:false}}}}e.zipToIterator=zipToIterator;function zipToMap(e,t){n.assert(e.length===t.length);var r=createMap();for(var i=0;i<e.length;++i){r.set(e[i],t[i])}return r}e.zipToMap=zipToMap;function every(e,t){if(e){for(var r=0;r<e.length;r++){if(!t(e[r],r)){return false}}}return true}e.every=every;function find(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r)){return n}}return undefined}e.find=find;function findLast(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r)){return n}}return undefined}e.findLast=findLast;function findIndex(e,t,r){for(var n=r||0;n<e.length;n++){if(t(e[n],n)){return n}}return-1}e.findIndex=findIndex;function findLastIndex(e,t,r){for(var n=r===undefined?e.length-1:r;n>=0;n--){if(t(e[n],n)){return n}}return-1}e.findLastIndex=findLastIndex;function findMap(e,t){for(var r=0;r<e.length;r++){var i=t(e[r],r);if(i){return i}}return n.fail()}e.findMap=findMap;function contains(e,t,r){if(r===void 0){r=equateValues}if(e){for(var n=0,i=e;n<i.length;n++){var a=i[n];if(r(a,t)){return true}}}return false}e.contains=contains;function arraysEqual(e,t,r){if(r===void 0){r=equateValues}return e.length===t.length&&e.every(function(e,n){return r(e,t[n])})}e.arraysEqual=arraysEqual;function indexOfAnyCharCode(e,t,r){for(var n=r||0;n<e.length;n++){if(contains(t,e.charCodeAt(n))){return n}}return-1}e.indexOfAnyCharCode=indexOfAnyCharCode;function countWhere(e,t){var r=0;if(e){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n)){r++}}}return r}e.countWhere=countWhere;function filter(e,t){if(e){var r=e.length;var n=0;while(n<r&&t(e[n]))n++;if(n<r){var i=e.slice(0,n);n++;while(n<r){var a=e[n];if(t(a)){i.push(a)}n++}return i}}return e}e.filter=filter;function filterMutate(e,t){var r=0;for(var n=0;n<e.length;n++){if(t(e[n],n,e)){e[r]=e[n];r++}}e.length=r}e.filterMutate=filterMutate;function clear(e){e.length=0}e.clear=clear;function map(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++){r.push(t(e[n],n))}}return r}e.map=map;function mapIterator(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:false}}}}e.mapIterator=mapIterator;function sameMap(e,t){if(e){for(var r=0;r<e.length;r++){var n=e[r];var i=t(n,r);if(n!==i){var a=e.slice(0,r);a.push(i);for(r++;r<e.length;r++){a.push(t(e[r],r))}return a}}}return e}e.sameMap=sameMap;function flatten(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i){if(isArray(i)){addRange(t,i)}else{t.push(i)}}}}return t}e.flatten=flatten;function flatMap(t,r){var n;if(t){for(var i=0;i<t.length;i++){var a=r(t[i],i);if(a){if(isArray(a)){n=addRange(n,a)}else{n=append(n,a)}}}}return n||e.emptyArray}e.flatMap=flatMap;function flatMapToMutable(e,t){var r=[];if(e){for(var n=0;n<e.length;n++){var i=t(e[n],n);if(i){if(isArray(i)){addRange(r,i)}else{r.push(i)}}}}return r}e.flatMapToMutable=flatMapToMutable;function flatMapIterator(t,r){var n=t.next();if(n.done){return e.emptyIterator}var i=getIterator(n.value);return{next:function(){while(true){var e=i.next();if(!e.done){return e}var r=t.next();if(r.done){return r}i=getIterator(r.value)}}};function getIterator(t){var n=r(t);return n===undefined?e.emptyIterator:isArray(n)?arrayIterator(n):n}}e.flatMapIterator=flatMapIterator;function sameFlatMap(e,t){var r;if(e){for(var n=0;n<e.length;n++){var i=e[n];var a=t(i,n);if(r||i!==a||isArray(a)){if(!r){r=e.slice(0,n)}if(isArray(a)){addRange(r,a)}else{r.push(a)}}}}return r||e}e.sameFlatMap=sameFlatMap;function mapAllOrFail(e,t){var r=[];for(var n=0;n<e.length;n++){var i=t(e[n],n);if(i===undefined){return undefined}r.push(i)}return r}e.mapAllOrFail=mapAllOrFail;function mapDefined(e,t){var r=[];if(e){for(var n=0;n<e.length;n++){var i=t(e[n],n);if(i!==undefined){r.push(i)}}}return r}e.mapDefined=mapDefined;function mapDefinedIterator(e,t){return{next:function(){while(true){var r=e.next();if(r.done){return r}var n=t(r.value);if(n!==undefined){return{value:n,done:false}}}}}}e.mapDefinedIterator=mapDefinedIterator;e.emptyIterator={next:function(){return{value:undefined,done:true}}};function singleIterator(e){var t=false;return{next:function(){var r=t;t=true;return r?{value:undefined,done:true}:{value:e,done:false}}}}e.singleIterator=singleIterator;function spanMap(e,t,r){var n;if(e){n=[];var i=e.length;var a=void 0;var o=void 0;var s=0;var c=0;while(s<i){while(c<i){var u=e[c];o=t(u,c);if(c===0){a=o}else if(o!==a){break}c++}if(s<c){var l=r(e.slice(s,c),a,s,c);if(l){n.push(l)}s=c}a=o;c++}}return n}e.spanMap=spanMap;function mapEntries(e,t){if(!e){return undefined}var r=createMap();e.forEach(function(e,n){var i=t(n,e),a=i[0],o=i[1];r.set(a,o)});return r}e.mapEntries=mapEntries;function some(e,t){if(e){if(t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(t(i)){return true}}}else{return e.length>0}}return false}e.some=some;function getRangesWhere(e,t,r){var n;for(var i=0;i<e.length;i++){if(t(e[i])){n=n===undefined?i:n}else{if(n!==undefined){r(n,i);n=undefined}}}if(n!==undefined)r(n,e.length)}e.getRangesWhere=getRangesWhere;function concatenate(e,t){if(!some(t))return e;if(!some(e))return t;return e.concat(t)}e.concatenate=concatenate;function deduplicateRelational(e,t,r){var n=e.map(function(e,t){return t});stableSortIndices(e,n,r);var i=e[n[0]];var a=[n[0]];for(var o=1;o<n.length;o++){var s=n[o];var c=e[s];if(!t(i,c)){a.push(s);i=c}}a.sort();return a.map(function(t){return e[t]})}function deduplicateEquality(e,t){var r=[];for(var n=0,i=e;n<i.length;n++){var a=i[n];pushIfUnique(r,a,t)}return r}function deduplicate(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?deduplicateRelational(e,t,r):deduplicateEquality(e,t)}e.deduplicate=deduplicate;function deduplicateSorted(t,r){if(t.length===0)return e.emptyArray;var i=t[0];var a=[i];for(var o=1;o<t.length;o++){var s=t[o];switch(r(s,i)){case true:case 0:continue;case-1:return n.fail("Array is unsorted.")}a.push(i=s)}return a}function insertSorted(e,t,r){if(e.length===0){e.push(t);return}var n=binarySearch(e,t,identity,r);if(n<0){e.splice(~n,0,t)}}e.insertSorted=insertSorted;function sortAndDeduplicate(e,t,r){return deduplicateSorted(sort(e,t),r||t||compareStringsCaseSensitive)}e.sortAndDeduplicate=sortAndDeduplicate;function arrayIsEqualTo(e,t,r){if(r===void 0){r=equateValues}if(!e||!t){return e===t}if(e.length!==t.length){return false}for(var n=0;n<e.length;n++){if(!r(e[n],t[n],n)){return false}}return true}e.arrayIsEqualTo=arrayIsEqualTo;function compact(e){var t;if(e){for(var r=0;r<e.length;r++){var n=e[r];if(t||!n){if(!t){t=e.slice(0,r)}if(n){t.push(n)}}}}return t||e}e.compact=compact;function relativeComplement(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;var i=[];e:for(var a=0,o=0;o<t.length;o++){if(o>0){n.assertGreaterThanOrEqual(r(t[o],t[o-1]),0)}t:for(var s=a;a<e.length;a++){if(a>s){n.assertGreaterThanOrEqual(r(e[a],e[a-1]),0)}switch(r(t[o],e[a])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}}return i}e.relativeComplement=relativeComplement;function sum(e,t){var r=0;for(var n=0,i=e;n<i.length;n++){var a=i[n];r+=a[t]}return r}e.sum=sum;function append(e,t){if(t===undefined)return e;if(e===undefined)return[t];e.push(t);return e}e.append=append;function toOffset(e,t){return t<0?e.length+t:t}function addRange(e,t,r,n){if(t===undefined||t.length===0)return e;if(e===undefined)return t.slice(r,n);r=r===undefined?0:toOffset(t,r);n=n===undefined?t.length:toOffset(t,n);for(var i=r;i<n&&i<t.length;i++){if(t[i]!==undefined){e.push(t[i])}}return e}e.addRange=addRange;function pushIfUnique(e,t,r){if(contains(e,t,r)){return false}else{e.push(t);return true}}e.pushIfUnique=pushIfUnique;function appendIfUnique(e,t,r){if(e){pushIfUnique(e,t,r);return e}else{return[t]}}e.appendIfUnique=appendIfUnique;function stableSortIndices(e,t,r){t.sort(function(t,n){return r(e[t],e[n])||compareValues(t,n)})}function sort(e,t){return e.length===0?e:e.slice().sort(t)}e.sort=sort;function arrayIterator(e){var t=0;return{next:function(){if(t===e.length){return{value:undefined,done:true}}else{t++;return{value:e[t-1],done:false}}}}}e.arrayIterator=arrayIterator;function stableSort(e,t){var r=e.map(function(e,t){return t});stableSortIndices(e,r,t);return r.map(function(t){return e[t]})}e.stableSort=stableSort;function rangeEquals(e,t,r,n){while(r<n){if(e[r]!==t[r]){return false}r++}return true}e.rangeEquals=rangeEquals;function elementAt(e,t){if(e){t=toOffset(e,t);if(t<e.length){return e[t]}}return undefined}e.elementAt=elementAt;function firstOrUndefined(e){return e.length===0?undefined:e[0]}e.firstOrUndefined=firstOrUndefined;function first(e){n.assert(e.length!==0);return e[0]}e.first=first;function lastOrUndefined(e){return e.length===0?undefined:e[e.length-1]}e.lastOrUndefined=lastOrUndefined;function last(e){n.assert(e.length!==0);return e[e.length-1]}e.last=last;function singleOrUndefined(e){return e&&e.length===1?e[0]:undefined}e.singleOrUndefined=singleOrUndefined;function singleOrMany(e){return e&&e.length===1?e[0]:e}e.singleOrMany=singleOrMany;function replaceElement(e,t,r){var n=e.slice(0);n[t]=r;return n}e.replaceElement=replaceElement;function binarySearch(e,t,r,n,i){return binarySearchKey(e,r(t),r,n,i)}e.binarySearch=binarySearch;function binarySearchKey(e,t,r,n,i){if(!some(e)){return-1}var a=i||0;var o=e.length-1;while(a<=o){var s=a+(o-a>>1);var c=r(e[s]);switch(n(c,t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1;break}}return~a}e.binarySearchKey=binarySearchKey;function reduceLeft(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=n===undefined||n<0?0:n;var s=i===undefined||o+i>a-1?a-1:o+i;var c=void 0;if(arguments.length<=2){c=e[o];o++}else{c=r}while(o<=s){c=t(c,e[o],o);o++}return c}}return r}e.reduceLeft=reduceLeft;var t=Object.prototype.hasOwnProperty;function hasProperty(e,r){return t.call(e,r)}e.hasProperty=hasProperty;function getProperty(e,r){return t.call(e,r)?e[r]:undefined}e.getProperty=getProperty;function getOwnKeys(e){var r=[];for(var n in e){if(t.call(e,n)){r.push(n)}}return r}e.getOwnKeys=getOwnKeys;function getOwnValues(e){var r=[];for(var n in e){if(t.call(e,n)){r.push(e[n])}}return r}e.getOwnValues=getOwnValues;function arrayFrom(e,t){var r;var n=[];for(var i=e.next(),a=i.value,o=i.done;!o;r=e.next(),a=r.value,o=r.done,r){n.push(t?t(a):a)}return n}e.arrayFrom=arrayFrom;function assign(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}for(var n=0,i=t;n<i.length;n++){var a=i[n];for(var o in a){if(hasProperty(a,o)){e[o]=a[o]}}}return e}e.assign=assign;function equalOwnProperties(e,r,n){if(n===void 0){n=equateValues}if(e===r)return true;if(!e||!r)return false;for(var i in e){if(t.call(e,i)){if(!t.call(r,i))return false;if(!n(e[i],r[i]))return false}}for(var i in r){if(t.call(r,i)){if(!t.call(e,i))return false}}return true}e.equalOwnProperties=equalOwnProperties;function arrayToMap(e,t,r){if(r===void 0){r=identity}var n=createMap();for(var i=0,a=e;i<a.length;i++){var o=a[i];var s=t(o);if(s!==undefined)n.set(s,r(o))}return n}e.arrayToMap=arrayToMap;function arrayToNumericMap(e,t,r){if(r===void 0){r=identity}var n=[];for(var i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n}e.arrayToNumericMap=arrayToNumericMap;function arrayToMultiMap(e,t,r){if(r===void 0){r=identity}var n=createMultiMap();for(var i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}e.arrayToMultiMap=arrayToMultiMap;function group(e,t){return arrayFrom(arrayToMultiMap(e,t).values())}e.group=group;function clone(e){var r={};for(var n in e){if(t.call(e,n)){r[n]=e[n]}}return r}e.clone=clone;function extend(e,r){var n={};for(var i in r){if(t.call(r,i)){n[i]=r[i]}}for(var i in e){if(t.call(e,i)){n[i]=e[i]}}return n}e.extend=extend;function createMultiMap(){var e=createMap();e.add=multiMapAdd;e.remove=multiMapRemove;return e}e.createMultiMap=createMultiMap;function multiMapAdd(e,t){var r=this.get(e);if(r){r.push(t)}else{this.set(e,r=[t])}return r}function multiMapRemove(e,t){var r=this.get(e);if(r){unorderedRemoveItem(r,t);if(!r.length){this.delete(e)}}}function isArray(e){return Array.isArray?Array.isArray(e):e instanceof Array}e.isArray=isArray;function toArray(e){return isArray(e)?e:[e]}e.toArray=toArray;function isString(e){return typeof e==="string"}e.isString=isString;function isNumber(e){return typeof e==="number"}e.isNumber=isNumber;function tryCast(e,t){return e!==undefined&&t(e)?e:undefined}e.tryCast=tryCast;function cast(e,t){if(e!==undefined&&t(e))return e;return n.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+n.getFunctionName(t)+"'.")}e.cast=cast;function noop(e){}e.noop=noop;function returnFalse(){return false}e.returnFalse=returnFalse;function returnTrue(){return true}e.returnTrue=returnTrue;function identity(e){return e}e.identity=identity;function toLowerCase(e){return e.toLowerCase()}e.toLowerCase=toLowerCase;function notImplemented(){throw new Error("Not implemented")}e.notImplemented=notImplemented;function memoize(e){var t;return function(){if(e){t=e();e=undefined}return t}}e.memoize=memoize;function chain(e,t,r,n,i){if(i){var a=[];for(var o=0;o<arguments.length;o++){a[o]=arguments[o]}return function(e){return compose.apply(void 0,map(a,function(t){return t(e)}))}}else if(n){return function(i){return compose(e(i),t(i),r(i),n(i))}}else if(r){return function(n){return compose(e(n),t(n),r(n))}}else if(t){return function(r){return compose(e(r),t(r))}}else if(e){return function(t){return compose(e(t))}}else{return function(e){return function(e){return e}}}}e.chain=chain;function compose(e,t,r,n,i){if(i){var a=[];for(var o=0;o<arguments.length;o++){a[o]=arguments[o]}return function(e){return reduceLeft(a,function(e,t){return t(e)},e)}}else if(n){return function(i){return n(r(t(e(i))))}}else if(r){return function(n){return r(t(e(n)))}}else if(t){return function(r){return t(e(r))}}else if(e){return function(t){return e(t)}}else{return function(e){return e}}}e.compose=compose;var r;(function(e){e[e["None"]=0]="None";e[e["Normal"]=1]="Normal";e[e["Aggressive"]=2]="Aggressive";e[e["VeryAggressive"]=3]="VeryAggressive"})(r=e.AssertionLevel||(e.AssertionLevel={}));var n;(function(e){e.currentAssertionLevel=0;e.isDebugging=false;function shouldAssert(t){return e.currentAssertionLevel>=t}e.shouldAssert=shouldAssert;function assert(e,t,r,n){if(!e){if(r){t+="\r\nVerbose Debug Information: "+(typeof r==="string"?r:r())}fail(t?"False expression: "+t:"False expression.",n||assert)}}e.assert=assert;function assertEqual(e,t,r,n){if(e!==t){var i=r?n?r+" "+n:r:"";fail("Expected "+e+" === "+t+". "+i)}}e.assertEqual=assertEqual;function assertLessThan(e,t,r){if(e>=t){fail("Expected "+e+" < "+t+". "+(r||""))}}e.assertLessThan=assertLessThan;function assertLessThanOrEqual(e,t){if(e>t){fail("Expected "+e+" <= "+t)}}e.assertLessThanOrEqual=assertLessThanOrEqual;function assertGreaterThanOrEqual(e,t){if(e<t){fail("Expected "+e+" >= "+t)}}e.assertGreaterThanOrEqual=assertGreaterThanOrEqual;function fail(e,t){debugger;var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");if(Error.captureStackTrace){Error.captureStackTrace(r,t||fail)}throw r}e.fail=fail;function assertDefined(e,t){if(e===undefined||e===null)return fail(t);return e}e.assertDefined=assertDefined;function assertEachDefined(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];assertDefined(i,t)}return e}e.assertEachDefined=assertEachDefined;function assertNever(t,r,n){if(r===void 0){r="Illegal value:"}var i="kind"in t&&"pos"in t?"SyntaxKind: "+e.showSyntaxKind(t):JSON.stringify(t);return fail(r+" "+i,n||assertNever)}e.assertNever=assertNever;function getFunctionName(e){if(typeof e!=="function"){return""}else if(e.hasOwnProperty("name")){return e.name}else{var t=Function.prototype.toString.call(e);var r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}}e.getFunctionName=getFunctionName})(n=e.Debug||(e.Debug={}));function equateValues(e,t){return e===t}e.equateValues=equateValues;function equateStringsCaseInsensitive(e,t){return e===t||e!==undefined&&t!==undefined&&e.toUpperCase()===t.toUpperCase()}e.equateStringsCaseInsensitive=equateStringsCaseInsensitive;function equateStringsCaseSensitive(e,t){return equateValues(e,t)}e.equateStringsCaseSensitive=equateStringsCaseSensitive;function compareComparableValues(e,t){return e===t?0:e===undefined?-1:t===undefined?1:e<t?-1:1}function compareValues(e,t){return compareComparableValues(e,t)}e.compareValues=compareValues;function min(e,t,r){return r(e,t)===-1?e:t}e.min=min;function compareStringsCaseInsensitive(e,t){if(e===t)return 0;if(e===undefined)return-1;if(t===undefined)return 1;e=e.toUpperCase();t=t.toUpperCase();return e<t?-1:e>t?1:0}e.compareStringsCaseInsensitive=compareStringsCaseInsensitive;function compareStringsCaseSensitive(e,t){return compareComparableValues(e,t)}e.compareStringsCaseSensitive=compareStringsCaseSensitive;function getStringComparer(e){return e?compareStringsCaseInsensitive:compareStringsCaseSensitive}e.getStringComparer=getStringComparer;var i=function(){var e;var t;var r=getStringComparerFactory();return createStringComparer;function compareWithCallback(e,t,r){if(e===t)return 0;if(e===undefined)return-1;if(t===undefined)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function createIntlCollatorStringComparer(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return compareWithCallback(e,r,t)}}function createLocaleCompareStringComparer(e){if(e!==undefined)return createFallbackStringComparer();return function(e,t){return compareWithCallback(e,t,compareStrings)};function compareStrings(e,t){return e.localeCompare(t)}}function createFallbackStringComparer(){return function(e,t){return compareWithCallback(e,t,compareDictionaryOrder)};function compareDictionaryOrder(e,t){return compareStrings(e.toUpperCase(),t.toUpperCase())||compareStrings(e,t)}function compareStrings(e,t){return e<t?-1:e>t?1:0}}function getStringComparerFactory(){if(typeof Intl==="object"&&typeof Intl.Collator==="function"){return createIntlCollatorStringComparer}if(typeof String.prototype.localeCompare==="function"&&typeof String.prototype.toLocaleUpperCase==="function"&&"a".localeCompare("B")<0){return createLocaleCompareStringComparer}return createFallbackStringComparer}function createStringComparer(n){if(n===undefined){return e||(e=r(n))}else if(n==="en-US"){return t||(t=r(n))}else{return r(n)}}}();var a;var o;function getUILocale(){return o}e.getUILocale=getUILocale;function setUILocale(e){if(o!==e){o=e;a=undefined}}e.setUILocale=setUILocale;function compareStringsCaseSensitiveUI(e,t){var r=a||(a=i(o));return r(e,t)}e.compareStringsCaseSensitiveUI=compareStringsCaseSensitiveUI;function compareProperties(e,t,r,n){return e===t?0:e===undefined?-1:t===undefined?1:n(e[r],t[r])}e.compareProperties=compareProperties;function compareBooleans(e,t){return compareValues(e?1:0,t?1:0)}e.compareBooleans=compareBooleans;function getSpellingSuggestion(e,t,r){var i=Math.min(2,Math.floor(e.length*.34));var a=Math.floor(e.length*.4)+1;var o;var s=false;var c=e.toLowerCase();for(var u=0,l=t;u<l.length;u++){var f=l[u];var d=r(f);if(d!==undefined&&Math.abs(d.length-c.length)<=i){var p=d.toLowerCase();if(p===c){if(d===e){continue}return f}if(s){continue}if(d.length<3){continue}var g=levenshteinWithMax(c,p,a-1);if(g===undefined){continue}if(g<3){s=true;o=f}else{n.assert(g<a);a=g;o=f}}}return o}e.getSpellingSuggestion=getSpellingSuggestion;function levenshteinWithMax(e,t,r){var n=new Array(t.length+1);var i=new Array(t.length+1);var a=r+1;for(var o=0;o<=t.length;o++){n[o]=o}for(var o=1;o<=e.length;o++){var s=e.charCodeAt(o-1);var c=o>r?o-r:1;var u=t.length>r+o?r+o:t.length;i[0]=o;var l=o;for(var f=1;f<c;f++){i[f]=a}for(var f=c;f<=u;f++){var d=s===t.charCodeAt(f-1)?n[f-1]:Math.min(n[f]+1,i[f-1]+1,n[f-1]+2);i[f]=d;l=Math.min(l,d)}for(var f=u+1;f<=t.length;f++){i[f]=a}if(l>r){return undefined}var p=n;n=i;i=p}var g=n[t.length];return g>r?undefined:g}function endsWith(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}e.endsWith=endsWith;function removeSuffix(e,t){return endsWith(e,t)?e.slice(0,e.length-t.length):e}e.removeSuffix=removeSuffix;function tryRemoveSuffix(e,t){return endsWith(e,t)?e.slice(0,e.length-t.length):undefined}e.tryRemoveSuffix=tryRemoveSuffix;function stringContains(e,t){return e.indexOf(t)!==-1}e.stringContains=stringContains;function fileExtensionIs(e,t){return e.length>t.length&&endsWith(e,t)}e.fileExtensionIs=fileExtensionIs;function fileExtensionIsOneOf(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(fileExtensionIs(e,i)){return true}}return false}e.fileExtensionIsOneOf=fileExtensionIsOneOf;function removeMinAndVersionNumbers(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")}e.removeMinAndVersionNumbers=removeMinAndVersionNumbers;function orderedRemoveItem(e,t){for(var r=0;r<e.length;r++){if(e[r]===t){orderedRemoveItemAt(e,r);return true}}return false}e.orderedRemoveItem=orderedRemoveItem;function orderedRemoveItemAt(e,t){for(var r=t;r<e.length-1;r++){e[r]=e[r+1]}e.pop()}e.orderedRemoveItemAt=orderedRemoveItemAt;function unorderedRemoveItemAt(e,t){e[t]=e[e.length-1];e.pop()}e.unorderedRemoveItemAt=unorderedRemoveItemAt;function unorderedRemoveItem(e,t){return unorderedRemoveFirstItemWhere(e,function(e){return e===t})}e.unorderedRemoveItem=unorderedRemoveItem;function unorderedRemoveFirstItemWhere(e,t){for(var r=0;r<e.length;r++){if(t(e[r])){unorderedRemoveItemAt(e,r);return true}}return false}function createGetCanonicalFileName(e){return e?identity:toLowerCase}e.createGetCanonicalFileName=createGetCanonicalFileName;function patternText(e){var t=e.prefix,r=e.suffix;return t+"*"+r}e.patternText=patternText;function matchedText(e,t){n.assert(isPatternMatch(e,t));return t.substring(e.prefix.length,t.length-e.suffix.length)}e.matchedText=matchedText;function findBestPatternMatch(e,t,r){var n;var i=-1;for(var a=0,o=e;a<o.length;a++){var s=o[a];var c=t(s);if(isPatternMatch(c,r)&&c.prefix.length>i){i=c.prefix.length;n=s}}return n}e.findBestPatternMatch=findBestPatternMatch;function startsWith(e,t){return e.lastIndexOf(t,0)===0}e.startsWith=startsWith;function removePrefix(e,t){return startsWith(e,t)?e.substr(t.length):e}e.removePrefix=removePrefix;function tryRemovePrefix(e,t,r){if(r===void 0){r=identity}return startsWith(r(e),r(t))?e.substring(t.length):undefined}e.tryRemovePrefix=tryRemovePrefix;function isPatternMatch(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&startsWith(t,r)&&endsWith(t,n)}function and(e,t){return function(r){return e(r)&&t(r)}}e.and=and;function or(e,t){return function(r){return e(r)||t(r)}}e.or=or;function assertType(e){}e.assertType=assertType;function singleElementArray(e){return e===undefined?undefined:[e]}e.singleElementArray=singleElementArray;function enumerateInsertsAndDeletes(e,t,r,n,i,a){a=a||noop;var o=0;var s=0;var c=e.length;var u=t.length;while(o<c&&s<u){var l=e[o];var f=t[s];var d=r(l,f);if(d===-1){n(l);o++}else if(d===1){i(f);s++}else{a(f,l);o++;s++}}while(o<c){n(e[o++])}while(s<u){i(t[s++])}}e.enumerateInsertsAndDeletes=enumerateInsertsAndDeletes;function fill(e,t){return new Array(e).fill(0).map(function(e,r){return t(r)})}e.fill=fill})(s||(s={}));var s;(function(e){e.timestamp=typeof performance!=="undefined"&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}})(s||(s={}));(function(e){var t;(function(t){var r=typeof onProfilerEvent==="function"&&onProfilerEvent.profiler===true?onProfilerEvent:function(){};var n=false;var i=0;var a;var o;var s;function createTimerIf(e,r,n,i){return e?createTimer(r,n,i):t.nullTimer}t.createTimerIf=createTimerIf;function createTimer(t,r,n){var i=0;return{enter:enter,exit:exit};function enter(){if(++i===1){mark(r)}}function exit(){if(--i===0){mark(n);measure(t,r,n)}else if(i<0){e.Debug.fail("enter/exit count does not match.")}}}t.createTimer=createTimer;t.nullTimer={enter:e.noop,exit:e.noop};function mark(t){if(n){o.set(t,e.timestamp());a.set(t,(a.get(t)||0)+1);r(t)}}t.mark=mark;function measure(t,r,a){if(n){var c=a&&o.get(a)||e.timestamp();var u=r&&o.get(r)||i;s.set(t,(s.get(t)||0)+(c-u))}}t.measure=measure;function getCount(e){return a&&a.get(e)||0}t.getCount=getCount;function getDuration(e){return s&&s.get(e)||0}t.getDuration=getDuration;function forEachMeasure(e){s.forEach(function(t,r){e(r,t)})}t.forEachMeasure=forEachMeasure;function enable(){a=e.createMap();o=e.createMap();s=e.createMap();n=true;i=e.timestamp()}t.enable=enable;function disable(){n=false}t.disable=disable})(t=e.performance||(e.performance={}))})(s||(s={}));var s;(function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i;var r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i;var n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i;var i=/^(0|[1-9]\d*)$/;var a=function(){function Version(t,i,a,o,s){if(i===void 0){i=0}if(a===void 0){a=0}if(o===void 0){o=""}if(s===void 0){s=""}if(typeof t==="string"){var c=e.Debug.assertDefined(tryParseComponents(t),"Invalid version");t=c.major,i=c.minor,a=c.patch,o=c.prerelease,s=c.build}e.Debug.assert(t>=0,"Invalid argument: major");e.Debug.assert(i>=0,"Invalid argument: minor");e.Debug.assert(a>=0,"Invalid argument: patch");e.Debug.assert(!o||r.test(o),"Invalid argument: prerelease");e.Debug.assert(!s||n.test(s),"Invalid argument: build");this.major=t;this.minor=i;this.patch=a;this.prerelease=o?o.split("."):e.emptyArray;this.build=s?s.split("."):e.emptyArray}Version.tryParse=function(e){var t=tryParseComponents(e);if(!t)return undefined;var r=t.major,n=t.minor,i=t.patch,a=t.prerelease,o=t.build;return new Version(r,n,i,a,o)};Version.prototype.compareTo=function(t){if(this===t)return 0;if(t===undefined)return 1;return e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||comparePrerelaseIdentifiers(this.prerelease,t.prerelease)};Version.prototype.increment=function(t){switch(t){case"major":return new Version(this.major+1,0,0);case"minor":return new Version(this.major,this.minor+1,0);case"patch":return new Version(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}};Version.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;if(e.some(this.prerelease))t+="-"+this.prerelease.join(".");if(e.some(this.build))t+="+"+this.build.join(".");return t};Version.zero=new Version(0,0,0);return Version}();e.Version=a;function tryParseComponents(e){var i=t.exec(e);if(!i)return undefined;var a=i[1],o=i[2],s=o===void 0?"0":o,c=i[3],u=c===void 0?"0":c,l=i[4],f=l===void 0?"":l,d=i[5],p=d===void 0?"":d;if(f&&!r.test(f))return undefined;if(p&&!n.test(p))return undefined;return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(u,10),prerelease:f,build:p}}function comparePrerelaseIdentifiers(t,r){if(t===r)return 0;if(t.length===0)return r.length===0?0:1;if(r.length===0)return-1;var n=Math.min(t.length,r.length);for(var a=0;a<n;a++){var o=t[a];var s=r[a];if(o===s)continue;var c=i.test(o);var u=i.test(s);if(c||u){if(c!==u)return c?-1:1;var l=e.compareValues(+o,+s);if(l)return l}else{var l=e.compareStringsCaseSensitive(o,s);if(l)return l}}return e.compareValues(t.length,r.length)}var o=function(){function VersionRange(t){this._alternatives=t?e.Debug.assertDefined(parseRange(t),"Invalid range spec."):e.emptyArray}VersionRange.tryParse=function(e){var t=parseRange(e);if(t){var r=new VersionRange("");r._alternatives=t;return r}return undefined};VersionRange.prototype.test=function(e){if(typeof e==="string")e=new a(e);return testDisjunction(e,this._alternatives)};VersionRange.prototype.toString=function(){return formatDisjunction(this._alternatives)};return VersionRange}();e.VersionRange=o;var s=/\s*\|\|\s*/g;var c=/\s+/g;var u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i;var l=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i;var f=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function parseRange(e){var t=[];for(var r=0,n=e.trim().split(s);r<n.length;r++){var i=n[r];if(!i)continue;var a=[];var o=l.exec(i);if(o){if(!parseHyphen(o[1],o[2],a))return undefined}else{for(var u=0,d=i.split(c);u<d.length;u++){var p=d[u];var g=f.exec(p);if(!g||!parseComparator(g[1],g[2],a))return undefined}}t.push(a)}return t}function parsePartial(e){var t=u.exec(e);if(!t)return undefined;var r=t[1],n=t[2],i=n===void 0?"*":n,o=t[3],s=o===void 0?"*":o,c=t[4],l=t[5];var f=new a(isWildcard(r)?0:parseInt(r,10),isWildcard(r)||isWildcard(i)?0:parseInt(i,10),isWildcard(r)||isWildcard(i)||isWildcard(s)?0:parseInt(s,10),c,l);return{version:f,major:r,minor:i,patch:s}}function parseHyphen(e,t,r){var n=parsePartial(e);if(!n)return false;var i=parsePartial(t);if(!i)return false;if(!isWildcard(n.major)){r.push(createComparator(">=",n.version))}if(!isWildcard(i.major)){r.push(isWildcard(i.minor)?createComparator("<",i.version.increment("major")):isWildcard(i.patch)?createComparator("<",i.version.increment("minor")):createComparator("<=",i.version))}return true}function parseComparator(e,t,r){var n=parsePartial(t);if(!n)return false;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(!isWildcard(o)){switch(e){case"~":r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(isWildcard(s)?"major":"minor")));break;case"^":r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(i.major>0||isWildcard(s)?"major":i.minor>0||isWildcard(c)?"minor":"patch")));break;case"<":case">=":r.push(createComparator(e,i));break;case"<=":case">":r.push(isWildcard(s)?createComparator(e==="<="?"<":">=",i.increment("major")):isWildcard(c)?createComparator(e==="<="?"<":">=",i.increment("minor")):createComparator(e,i));break;case"=":case undefined:if(isWildcard(s)||isWildcard(c)){r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(isWildcard(s)?"major":"minor")))}else{r.push(createComparator("=",i))}break;default:return false}}else if(e==="<"||e===">"){r.push(createComparator("<",a.zero))}return true}function isWildcard(e){return e==="*"||e==="x"||e==="X"}function createComparator(e,t){return{operator:e,operand:t}}function testDisjunction(e,t){if(t.length===0)return true;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(testAlternative(e,i))return true}return false}function testAlternative(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!testComparator(e,i.operator,i.operand))return false}return true}function testComparator(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return e.Debug.assertNever(r)}}function formatDisjunction(t){return e.map(t,formatAlternative).join(" || ")||"*"}function formatAlternative(t){return e.map(t,formatComparator).join(" ")}function formatComparator(e){return""+e.operator+e.operand}})(s||(s={}));var s;(function(e){var t;(function(e){e[e["Unknown"]=0]="Unknown";e[e["EndOfFileToken"]=1]="EndOfFileToken";e[e["SingleLineCommentTrivia"]=2]="SingleLineCommentTrivia";e[e["MultiLineCommentTrivia"]=3]="MultiLineCommentTrivia";e[e["NewLineTrivia"]=4]="NewLineTrivia";e[e["WhitespaceTrivia"]=5]="WhitespaceTrivia";e[e["ShebangTrivia"]=6]="ShebangTrivia";e[e["ConflictMarkerTrivia"]=7]="ConflictMarkerTrivia";e[e["NumericLiteral"]=8]="NumericLiteral";e[e["BigIntLiteral"]=9]="BigIntLiteral";e[e["StringLiteral"]=10]="StringLiteral";e[e["JsxText"]=11]="JsxText";e[e["JsxTextAllWhiteSpaces"]=12]="JsxTextAllWhiteSpaces";e[e["RegularExpressionLiteral"]=13]="RegularExpressionLiteral";e[e["NoSubstitutionTemplateLiteral"]=14]="NoSubstitutionTemplateLiteral";e[e["TemplateHead"]=15]="TemplateHead";e[e["TemplateMiddle"]=16]="TemplateMiddle";e[e["TemplateTail"]=17]="TemplateTail";e[e["OpenBraceToken"]=18]="OpenBraceToken";e[e["CloseBraceToken"]=19]="CloseBraceToken";e[e["OpenParenToken"]=20]="OpenParenToken";e[e["CloseParenToken"]=21]="CloseParenToken";e[e["OpenBracketToken"]=22]="OpenBracketToken";e[e["CloseBracketToken"]=23]="CloseBracketToken";e[e["DotToken"]=24]="DotToken";e[e["DotDotDotToken"]=25]="DotDotDotToken";e[e["SemicolonToken"]=26]="SemicolonToken";e[e["CommaToken"]=27]="CommaToken";e[e["LessThanToken"]=28]="LessThanToken";e[e["LessThanSlashToken"]=29]="LessThanSlashToken";e[e["GreaterThanToken"]=30]="GreaterThanToken";e[e["LessThanEqualsToken"]=31]="LessThanEqualsToken";e[e["GreaterThanEqualsToken"]=32]="GreaterThanEqualsToken";e[e["EqualsEqualsToken"]=33]="EqualsEqualsToken";e[e["ExclamationEqualsToken"]=34]="ExclamationEqualsToken";e[e["EqualsEqualsEqualsToken"]=35]="EqualsEqualsEqualsToken";e[e["ExclamationEqualsEqualsToken"]=36]="ExclamationEqualsEqualsToken";e[e["EqualsGreaterThanToken"]=37]="EqualsGreaterThanToken";e[e["PlusToken"]=38]="PlusToken";e[e["MinusToken"]=39]="MinusToken";e[e["AsteriskToken"]=40]="AsteriskToken";e[e["AsteriskAsteriskToken"]=41]="AsteriskAsteriskToken";e[e["SlashToken"]=42]="SlashToken";e[e["PercentToken"]=43]="PercentToken";e[e["PlusPlusToken"]=44]="PlusPlusToken";e[e["MinusMinusToken"]=45]="MinusMinusToken";e[e["LessThanLessThanToken"]=46]="LessThanLessThanToken";e[e["GreaterThanGreaterThanToken"]=47]="GreaterThanGreaterThanToken";e[e["GreaterThanGreaterThanGreaterThanToken"]=48]="GreaterThanGreaterThanGreaterThanToken";e[e["AmpersandToken"]=49]="AmpersandToken";e[e["BarToken"]=50]="BarToken";e[e["CaretToken"]=51]="CaretToken";e[e["ExclamationToken"]=52]="ExclamationToken";e[e["TildeToken"]=53]="TildeToken";e[e["AmpersandAmpersandToken"]=54]="AmpersandAmpersandToken";e[e["BarBarToken"]=55]="BarBarToken";e[e["QuestionToken"]=56]="QuestionToken";e[e["ColonToken"]=57]="ColonToken";e[e["AtToken"]=58]="AtToken";e[e["EqualsToken"]=59]="EqualsToken";e[e["PlusEqualsToken"]=60]="PlusEqualsToken";e[e["MinusEqualsToken"]=61]="MinusEqualsToken";e[e["AsteriskEqualsToken"]=62]="AsteriskEqualsToken";e[e["AsteriskAsteriskEqualsToken"]=63]="AsteriskAsteriskEqualsToken";e[e["SlashEqualsToken"]=64]="SlashEqualsToken";e[e["PercentEqualsToken"]=65]="PercentEqualsToken";e[e["LessThanLessThanEqualsToken"]=66]="LessThanLessThanEqualsToken";e[e["GreaterThanGreaterThanEqualsToken"]=67]="GreaterThanGreaterThanEqualsToken";e[e["GreaterThanGreaterThanGreaterThanEqualsToken"]=68]="GreaterThanGreaterThanGreaterThanEqualsToken";e[e["AmpersandEqualsToken"]=69]="AmpersandEqualsToken";e[e["BarEqualsToken"]=70]="BarEqualsToken";e[e["CaretEqualsToken"]=71]="CaretEqualsToken";e[e["Identifier"]=72]="Identifier";e[e["BreakKeyword"]=73]="BreakKeyword";e[e["CaseKeyword"]=74]="CaseKeyword";e[e["CatchKeyword"]=75]="CatchKeyword";e[e["ClassKeyword"]=76]="ClassKeyword";e[e["ConstKeyword"]=77]="ConstKeyword";e[e["ContinueKeyword"]=78]="ContinueKeyword";e[e["DebuggerKeyword"]=79]="DebuggerKeyword";e[e["DefaultKeyword"]=80]="DefaultKeyword";e[e["DeleteKeyword"]=81]="DeleteKeyword";e[e["DoKeyword"]=82]="DoKeyword";e[e["ElseKeyword"]=83]="ElseKeyword";e[e["EnumKeyword"]=84]="EnumKeyword";e[e["ExportKeyword"]=85]="ExportKeyword";e[e["ExtendsKeyword"]=86]="ExtendsKeyword";e[e["FalseKeyword"]=87]="FalseKeyword";e[e["FinallyKeyword"]=88]="FinallyKeyword";e[e["ForKeyword"]=89]="ForKeyword";e[e["FunctionKeyword"]=90]="FunctionKeyword";e[e["IfKeyword"]=91]="IfKeyword";e[e["ImportKeyword"]=92]="ImportKeyword";e[e["InKeyword"]=93]="InKeyword";e[e["InstanceOfKeyword"]=94]="InstanceOfKeyword";e[e["NewKeyword"]=95]="NewKeyword";e[e["NullKeyword"]=96]="NullKeyword";e[e["ReturnKeyword"]=97]="ReturnKeyword";e[e["SuperKeyword"]=98]="SuperKeyword";e[e["SwitchKeyword"]=99]="SwitchKeyword";e[e["ThisKeyword"]=100]="ThisKeyword";e[e["ThrowKeyword"]=101]="ThrowKeyword";e[e["TrueKeyword"]=102]="TrueKeyword";e[e["TryKeyword"]=103]="TryKeyword";e[e["TypeOfKeyword"]=104]="TypeOfKeyword";e[e["VarKeyword"]=105]="VarKeyword";e[e["VoidKeyword"]=106]="VoidKeyword";e[e["WhileKeyword"]=107]="WhileKeyword";e[e["WithKeyword"]=108]="WithKeyword";e[e["ImplementsKeyword"]=109]="ImplementsKeyword";e[e["InterfaceKeyword"]=110]="InterfaceKeyword";e[e["LetKeyword"]=111]="LetKeyword";e[e["PackageKeyword"]=112]="PackageKeyword";e[e["PrivateKeyword"]=113]="PrivateKeyword";e[e["ProtectedKeyword"]=114]="ProtectedKeyword";e[e["PublicKeyword"]=115]="PublicKeyword";e[e["StaticKeyword"]=116]="StaticKeyword";e[e["YieldKeyword"]=117]="YieldKeyword";e[e["AbstractKeyword"]=118]="AbstractKeyword";e[e["AsKeyword"]=119]="AsKeyword";e[e["AnyKeyword"]=120]="AnyKeyword";e[e["AsyncKeyword"]=121]="AsyncKeyword";e[e["AwaitKeyword"]=122]="AwaitKeyword";e[e["BooleanKeyword"]=123]="BooleanKeyword";e[e["ConstructorKeyword"]=124]="ConstructorKeyword";e[e["DeclareKeyword"]=125]="DeclareKeyword";e[e["GetKeyword"]=126]="GetKeyword";e[e["InferKeyword"]=127]="InferKeyword";e[e["IsKeyword"]=128]="IsKeyword";e[e["KeyOfKeyword"]=129]="KeyOfKeyword";e[e["ModuleKeyword"]=130]="ModuleKeyword";e[e["NamespaceKeyword"]=131]="NamespaceKeyword";e[e["NeverKeyword"]=132]="NeverKeyword";e[e["ReadonlyKeyword"]=133]="ReadonlyKeyword";e[e["RequireKeyword"]=134]="RequireKeyword";e[e["NumberKeyword"]=135]="NumberKeyword";e[e["ObjectKeyword"]=136]="ObjectKeyword";e[e["SetKeyword"]=137]="SetKeyword";e[e["StringKeyword"]=138]="StringKeyword";e[e["SymbolKeyword"]=139]="SymbolKeyword";e[e["TypeKeyword"]=140]="TypeKeyword";e[e["UndefinedKeyword"]=141]="UndefinedKeyword";e[e["UniqueKeyword"]=142]="UniqueKeyword";e[e["UnknownKeyword"]=143]="UnknownKeyword";e[e["FromKeyword"]=144]="FromKeyword";e[e["GlobalKeyword"]=145]="GlobalKeyword";e[e["BigIntKeyword"]=146]="BigIntKeyword";e[e["OfKeyword"]=147]="OfKeyword";e[e["QualifiedName"]=148]="QualifiedName";e[e["ComputedPropertyName"]=149]="ComputedPropertyName";e[e["TypeParameter"]=150]="TypeParameter";e[e["Parameter"]=151]="Parameter";e[e["Decorator"]=152]="Decorator";e[e["PropertySignature"]=153]="PropertySignature";e[e["PropertyDeclaration"]=154]="PropertyDeclaration";e[e["MethodSignature"]=155]="MethodSignature";e[e["MethodDeclaration"]=156]="MethodDeclaration";e[e["Constructor"]=157]="Constructor";e[e["GetAccessor"]=158]="GetAccessor";e[e["SetAccessor"]=159]="SetAccessor";e[e["CallSignature"]=160]="CallSignature";e[e["ConstructSignature"]=161]="ConstructSignature";e[e["IndexSignature"]=162]="IndexSignature";e[e["TypePredicate"]=163]="TypePredicate";e[e["TypeReference"]=164]="TypeReference";e[e["FunctionType"]=165]="FunctionType";e[e["ConstructorType"]=166]="ConstructorType";e[e["TypeQuery"]=167]="TypeQuery";e[e["TypeLiteral"]=168]="TypeLiteral";e[e["ArrayType"]=169]="ArrayType";e[e["TupleType"]=170]="TupleType";e[e["OptionalType"]=171]="OptionalType";e[e["RestType"]=172]="RestType";e[e["UnionType"]=173]="UnionType";e[e["IntersectionType"]=174]="IntersectionType";e[e["ConditionalType"]=175]="ConditionalType";e[e["InferType"]=176]="InferType";e[e["ParenthesizedType"]=177]="ParenthesizedType";e[e["ThisType"]=178]="ThisType";e[e["TypeOperator"]=179]="TypeOperator";e[e["IndexedAccessType"]=180]="IndexedAccessType";e[e["MappedType"]=181]="MappedType";e[e["LiteralType"]=182]="LiteralType";e[e["ImportType"]=183]="ImportType";e[e["ObjectBindingPattern"]=184]="ObjectBindingPattern";e[e["ArrayBindingPattern"]=185]="ArrayBindingPattern";e[e["BindingElement"]=186]="BindingElement";e[e["ArrayLiteralExpression"]=187]="ArrayLiteralExpression";e[e["ObjectLiteralExpression"]=188]="ObjectLiteralExpression";e[e["PropertyAccessExpression"]=189]="PropertyAccessExpression";e[e["ElementAccessExpression"]=190]="ElementAccessExpression";e[e["CallExpression"]=191]="CallExpression";e[e["NewExpression"]=192]="NewExpression";e[e["TaggedTemplateExpression"]=193]="TaggedTemplateExpression";e[e["TypeAssertionExpression"]=194]="TypeAssertionExpression";e[e["ParenthesizedExpression"]=195]="ParenthesizedExpression";e[e["FunctionExpression"]=196]="FunctionExpression";e[e["ArrowFunction"]=197]="ArrowFunction";e[e["DeleteExpression"]=198]="DeleteExpression";e[e["TypeOfExpression"]=199]="TypeOfExpression";e[e["VoidExpression"]=200]="VoidExpression";e[e["AwaitExpression"]=201]="AwaitExpression";e[e["PrefixUnaryExpression"]=202]="PrefixUnaryExpression";e[e["PostfixUnaryExpression"]=203]="PostfixUnaryExpression";e[e["BinaryExpression"]=204]="BinaryExpression";e[e["ConditionalExpression"]=205]="ConditionalExpression";e[e["TemplateExpression"]=206]="TemplateExpression";e[e["YieldExpression"]=207]="YieldExpression";e[e["SpreadElement"]=208]="SpreadElement";e[e["ClassExpression"]=209]="ClassExpression";e[e["OmittedExpression"]=210]="OmittedExpression";e[e["ExpressionWithTypeArguments"]=211]="ExpressionWithTypeArguments";e[e["AsExpression"]=212]="AsExpression";e[e["NonNullExpression"]=213]="NonNullExpression";e[e["MetaProperty"]=214]="MetaProperty";e[e["SyntheticExpression"]=215]="SyntheticExpression";e[e["TemplateSpan"]=216]="TemplateSpan";e[e["SemicolonClassElement"]=217]="SemicolonClassElement";e[e["Block"]=218]="Block";e[e["VariableStatement"]=219]="VariableStatement";e[e["EmptyStatement"]=220]="EmptyStatement";e[e["ExpressionStatement"]=221]="ExpressionStatement";e[e["IfStatement"]=222]="IfStatement";e[e["DoStatement"]=223]="DoStatement";e[e["WhileStatement"]=224]="WhileStatement";e[e["ForStatement"]=225]="ForStatement";e[e["ForInStatement"]=226]="ForInStatement";e[e["ForOfStatement"]=227]="ForOfStatement";e[e["ContinueStatement"]=228]="ContinueStatement";e[e["BreakStatement"]=229]="BreakStatement";e[e["ReturnStatement"]=230]="ReturnStatement";e[e["WithStatement"]=231]="WithStatement";e[e["SwitchStatement"]=232]="SwitchStatement";e[e["LabeledStatement"]=233]="LabeledStatement";e[e["ThrowStatement"]=234]="ThrowStatement";e[e["TryStatement"]=235]="TryStatement";e[e["DebuggerStatement"]=236]="DebuggerStatement";e[e["VariableDeclaration"]=237]="VariableDeclaration";e[e["VariableDeclarationList"]=238]="VariableDeclarationList";e[e["FunctionDeclaration"]=239]="FunctionDeclaration";e[e["ClassDeclaration"]=240]="ClassDeclaration";e[e["InterfaceDeclaration"]=241]="InterfaceDeclaration";e[e["TypeAliasDeclaration"]=242]="TypeAliasDeclaration";e[e["EnumDeclaration"]=243]="EnumDeclaration";e[e["ModuleDeclaration"]=244]="ModuleDeclaration";e[e["ModuleBlock"]=245]="ModuleBlock";e[e["CaseBlock"]=246]="CaseBlock";e[e["NamespaceExportDeclaration"]=247]="NamespaceExportDeclaration";e[e["ImportEqualsDeclaration"]=248]="ImportEqualsDeclaration";e[e["ImportDeclaration"]=249]="ImportDeclaration";e[e["ImportClause"]=250]="ImportClause";e[e["NamespaceImport"]=251]="NamespaceImport";e[e["NamedImports"]=252]="NamedImports";e[e["ImportSpecifier"]=253]="ImportSpecifier";e[e["ExportAssignment"]=254]="ExportAssignment";e[e["ExportDeclaration"]=255]="ExportDeclaration";e[e["NamedExports"]=256]="NamedExports";e[e["ExportSpecifier"]=257]="ExportSpecifier";e[e["MissingDeclaration"]=258]="MissingDeclaration";e[e["ExternalModuleReference"]=259]="ExternalModuleReference";e[e["JsxElement"]=260]="JsxElement";e[e["JsxSelfClosingElement"]=261]="JsxSelfClosingElement";e[e["JsxOpeningElement"]=262]="JsxOpeningElement";e[e["JsxClosingElement"]=263]="JsxClosingElement";e[e["JsxFragment"]=264]="JsxFragment";e[e["JsxOpeningFragment"]=265]="JsxOpeningFragment";e[e["JsxClosingFragment"]=266]="JsxClosingFragment";e[e["JsxAttribute"]=267]="JsxAttribute";e[e["JsxAttributes"]=268]="JsxAttributes";e[e["JsxSpreadAttribute"]=269]="JsxSpreadAttribute";e[e["JsxExpression"]=270]="JsxExpression";e[e["CaseClause"]=271]="CaseClause";e[e["DefaultClause"]=272]="DefaultClause";e[e["HeritageClause"]=273]="HeritageClause";e[e["CatchClause"]=274]="CatchClause";e[e["PropertyAssignment"]=275]="PropertyAssignment";e[e["ShorthandPropertyAssignment"]=276]="ShorthandPropertyAssignment";e[e["SpreadAssignment"]=277]="SpreadAssignment";e[e["EnumMember"]=278]="EnumMember";e[e["SourceFile"]=279]="SourceFile";e[e["Bundle"]=280]="Bundle";e[e["UnparsedSource"]=281]="UnparsedSource";e[e["InputFiles"]=282]="InputFiles";e[e["JSDocTypeExpression"]=283]="JSDocTypeExpression";e[e["JSDocAllType"]=284]="JSDocAllType";e[e["JSDocUnknownType"]=285]="JSDocUnknownType";e[e["JSDocNullableType"]=286]="JSDocNullableType";e[e["JSDocNonNullableType"]=287]="JSDocNonNullableType";e[e["JSDocOptionalType"]=288]="JSDocOptionalType";e[e["JSDocFunctionType"]=289]="JSDocFunctionType";e[e["JSDocVariadicType"]=290]="JSDocVariadicType";e[e["JSDocComment"]=291]="JSDocComment";e[e["JSDocTypeLiteral"]=292]="JSDocTypeLiteral";e[e["JSDocSignature"]=293]="JSDocSignature";e[e["JSDocTag"]=294]="JSDocTag";e[e["JSDocAugmentsTag"]=295]="JSDocAugmentsTag";e[e["JSDocClassTag"]=296]="JSDocClassTag";e[e["JSDocCallbackTag"]=297]="JSDocCallbackTag";e[e["JSDocEnumTag"]=298]="JSDocEnumTag";e[e["JSDocParameterTag"]=299]="JSDocParameterTag";e[e["JSDocReturnTag"]=300]="JSDocReturnTag";e[e["JSDocThisTag"]=301]="JSDocThisTag";e[e["JSDocTypeTag"]=302]="JSDocTypeTag";e[e["JSDocTemplateTag"]=303]="JSDocTemplateTag";e[e["JSDocTypedefTag"]=304]="JSDocTypedefTag";e[e["JSDocPropertyTag"]=305]="JSDocPropertyTag";e[e["SyntaxList"]=306]="SyntaxList";e[e["NotEmittedStatement"]=307]="NotEmittedStatement";e[e["PartiallyEmittedExpression"]=308]="PartiallyEmittedExpression";e[e["CommaListExpression"]=309]="CommaListExpression";e[e["MergeDeclarationMarker"]=310]="MergeDeclarationMarker";e[e["EndOfDeclarationMarker"]=311]="EndOfDeclarationMarker";e[e["Count"]=312]="Count";e[e["FirstAssignment"]=59]="FirstAssignment";e[e["LastAssignment"]=71]="LastAssignment";e[e["FirstCompoundAssignment"]=60]="FirstCompoundAssignment";e[e["LastCompoundAssignment"]=71]="LastCompoundAssignment";e[e["FirstReservedWord"]=73]="FirstReservedWord";e[e["LastReservedWord"]=108]="LastReservedWord";e[e["FirstKeyword"]=73]="FirstKeyword";e[e["LastKeyword"]=147]="LastKeyword";e[e["FirstFutureReservedWord"]=109]="FirstFutureReservedWord";e[e["LastFutureReservedWord"]=117]="LastFutureReservedWord";e[e["FirstTypeNode"]=163]="FirstTypeNode";e[e["LastTypeNode"]=183]="LastTypeNode";e[e["FirstPunctuation"]=18]="FirstPunctuation";e[e["LastPunctuation"]=71]="LastPunctuation";e[e["FirstToken"]=0]="FirstToken";e[e["LastToken"]=147]="LastToken";e[e["FirstTriviaToken"]=2]="FirstTriviaToken";e[e["LastTriviaToken"]=7]="LastTriviaToken";e[e["FirstLiteralToken"]=8]="FirstLiteralToken";e[e["LastLiteralToken"]=14]="LastLiteralToken";e[e["FirstTemplateToken"]=14]="FirstTemplateToken";e[e["LastTemplateToken"]=17]="LastTemplateToken";e[e["FirstBinaryOperator"]=28]="FirstBinaryOperator";e[e["LastBinaryOperator"]=71]="LastBinaryOperator";e[e["FirstNode"]=148]="FirstNode";e[e["FirstJSDocNode"]=283]="FirstJSDocNode";e[e["LastJSDocNode"]=305]="LastJSDocNode";e[e["FirstJSDocTagNode"]=294]="FirstJSDocTagNode";e[e["LastJSDocTagNode"]=305]="LastJSDocTagNode";e[e["FirstContextualKeyword"]=118]="FirstContextualKeyword";e[e["LastContextualKeyword"]=147]="LastContextualKeyword"})(t=e.SyntaxKind||(e.SyntaxKind={}));var r;(function(e){e[e["None"]=0]="None";e[e["Let"]=1]="Let";e[e["Const"]=2]="Const";e[e["NestedNamespace"]=4]="NestedNamespace";e[e["Synthesized"]=8]="Synthesized";e[e["Namespace"]=16]="Namespace";e[e["ExportContext"]=32]="ExportContext";e[e["ContainsThis"]=64]="ContainsThis";e[e["HasImplicitReturn"]=128]="HasImplicitReturn";e[e["HasExplicitReturn"]=256]="HasExplicitReturn";e[e["GlobalAugmentation"]=512]="GlobalAugmentation";e[e["HasAsyncFunctions"]=1024]="HasAsyncFunctions";e[e["DisallowInContext"]=2048]="DisallowInContext";e[e["YieldContext"]=4096]="YieldContext";e[e["DecoratorContext"]=8192]="DecoratorContext";e[e["AwaitContext"]=16384]="AwaitContext";e[e["ThisNodeHasError"]=32768]="ThisNodeHasError";e[e["JavaScriptFile"]=65536]="JavaScriptFile";e[e["ThisNodeOrAnySubNodesHasError"]=131072]="ThisNodeOrAnySubNodesHasError";e[e["HasAggregatedChildData"]=262144]="HasAggregatedChildData";e[e["PossiblyContainsDynamicImport"]=524288]="PossiblyContainsDynamicImport";e[e["PossiblyContainsImportMeta"]=1048576]="PossiblyContainsImportMeta";e[e["JSDoc"]=2097152]="JSDoc";e[e["Ambient"]=4194304]="Ambient";e[e["InWithStatement"]=8388608]="InWithStatement";e[e["JsonFile"]=16777216]="JsonFile";e[e["BlockScoped"]=3]="BlockScoped";e[e["ReachabilityCheckFlags"]=384]="ReachabilityCheckFlags";e[e["ReachabilityAndEmitFlags"]=1408]="ReachabilityAndEmitFlags";e[e["ContextFlags"]=12679168]="ContextFlags";e[e["TypeExcludesFlags"]=20480]="TypeExcludesFlags";e[e["PermanentlySetIncrementalFlags"]=1572864]="PermanentlySetIncrementalFlags"})(r=e.NodeFlags||(e.NodeFlags={}));var n;(function(e){e[e["None"]=0]="None";e[e["Export"]=1]="Export";e[e["Ambient"]=2]="Ambient";e[e["Public"]=4]="Public";e[e["Private"]=8]="Private";e[e["Protected"]=16]="Protected";e[e["Static"]=32]="Static";e[e["Readonly"]=64]="Readonly";e[e["Abstract"]=128]="Abstract";e[e["Async"]=256]="Async";e[e["Default"]=512]="Default";e[e["Const"]=2048]="Const";e[e["HasComputedFlags"]=536870912]="HasComputedFlags";e[e["AccessibilityModifier"]=28]="AccessibilityModifier";e[e["ParameterPropertyModifier"]=92]="ParameterPropertyModifier";e[e["NonPublicAccessibilityModifier"]=24]="NonPublicAccessibilityModifier";e[e["TypeScriptModifier"]=2270]="TypeScriptModifier";e[e["ExportDefault"]=513]="ExportDefault";e[e["All"]=3071]="All"})(n=e.ModifierFlags||(e.ModifierFlags={}));var i;(function(e){e[e["None"]=0]="None";e[e["IntrinsicNamedElement"]=1]="IntrinsicNamedElement";e[e["IntrinsicIndexedElement"]=2]="IntrinsicIndexedElement";e[e["IntrinsicElement"]=3]="IntrinsicElement"})(i=e.JsxFlags||(e.JsxFlags={}));var a;(function(e){e[e["Succeeded"]=1]="Succeeded";e[e["Failed"]=2]="Failed";e[e["FailedAndReported"]=3]="FailedAndReported"})(a=e.RelationComparisonResult||(e.RelationComparisonResult={}));var o;(function(e){e[e["None"]=0]="None";e[e["Auto"]=1]="Auto";e[e["Loop"]=2]="Loop";e[e["Unique"]=3]="Unique";e[e["Node"]=4]="Node";e[e["KindMask"]=7]="KindMask";e[e["ReservedInNestedScopes"]=8]="ReservedInNestedScopes";e[e["Optimistic"]=16]="Optimistic";e[e["FileLevel"]=32]="FileLevel"})(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var s;(function(e){e[e["None"]=0]="None";e[e["PrecedingLineBreak"]=1]="PrecedingLineBreak";e[e["PrecedingJSDocComment"]=2]="PrecedingJSDocComment";e[e["Unterminated"]=4]="Unterminated";e[e["ExtendedUnicodeEscape"]=8]="ExtendedUnicodeEscape";e[e["Scientific"]=16]="Scientific";e[e["Octal"]=32]="Octal";e[e["HexSpecifier"]=64]="HexSpecifier";e[e["BinarySpecifier"]=128]="BinarySpecifier";e[e["OctalSpecifier"]=256]="OctalSpecifier";e[e["ContainsSeparator"]=512]="ContainsSeparator";e[e["BinaryOrOctalSpecifier"]=384]="BinaryOrOctalSpecifier";e[e["NumericLiteralFlags"]=1008]="NumericLiteralFlags"})(s=e.TokenFlags||(e.TokenFlags={}));var c;(function(e){e[e["Unreachable"]=1]="Unreachable";e[e["Start"]=2]="Start";e[e["BranchLabel"]=4]="BranchLabel";e[e["LoopLabel"]=8]="LoopLabel";e[e["Assignment"]=16]="Assignment";e[e["TrueCondition"]=32]="TrueCondition";e[e["FalseCondition"]=64]="FalseCondition";e[e["SwitchClause"]=128]="SwitchClause";e[e["ArrayMutation"]=256]="ArrayMutation";e[e["Referenced"]=512]="Referenced";e[e["Shared"]=1024]="Shared";e[e["PreFinally"]=2048]="PreFinally";e[e["AfterFinally"]=4096]="AfterFinally";e[e["Label"]=12]="Label";e[e["Condition"]=96]="Condition"})(c=e.FlowFlags||(e.FlowFlags={}));var u=function(){function OperationCanceledException(){}return OperationCanceledException}();e.OperationCanceledException=u;var l;(function(e){e[e["Not"]=0]="Not";e[e["SafeModules"]=1]="SafeModules";e[e["Completely"]=2]="Completely"})(l=e.StructureIsReused||(e.StructureIsReused={}));var f;(function(e){e[e["Success"]=0]="Success";e[e["DiagnosticsPresent_OutputsSkipped"]=1]="DiagnosticsPresent_OutputsSkipped";e[e["DiagnosticsPresent_OutputsGenerated"]=2]="DiagnosticsPresent_OutputsGenerated"})(f=e.ExitStatus||(e.ExitStatus={}));var d;(function(e){e[e["None"]=0]="None";e[e["Literal"]=1]="Literal";e[e["Subtype"]=2]="Subtype"})(d=e.UnionReduction||(e.UnionReduction={}));var p;(function(e){e[e["None"]=0]="None";e[e["NoTruncation"]=1]="NoTruncation";e[e["WriteArrayAsGenericType"]=2]="WriteArrayAsGenericType";e[e["GenerateNamesForShadowedTypeParams"]=4]="GenerateNamesForShadowedTypeParams";e[e["UseStructuralFallback"]=8]="UseStructuralFallback";e[e["ForbidIndexedAccessSymbolReferences"]=16]="ForbidIndexedAccessSymbolReferences";e[e["WriteTypeArgumentsOfSignature"]=32]="WriteTypeArgumentsOfSignature";e[e["UseFullyQualifiedType"]=64]="UseFullyQualifiedType";e[e["UseOnlyExternalAliasing"]=128]="UseOnlyExternalAliasing";e[e["SuppressAnyReturnType"]=256]="SuppressAnyReturnType";e[e["WriteTypeParametersInQualifiedName"]=512]="WriteTypeParametersInQualifiedName";e[e["MultilineObjectLiterals"]=1024]="MultilineObjectLiterals";e[e["WriteClassExpressionAsTypeLiteral"]=2048]="WriteClassExpressionAsTypeLiteral";e[e["UseTypeOfFunction"]=4096]="UseTypeOfFunction";e[e["OmitParameterModifiers"]=8192]="OmitParameterModifiers";e[e["UseAliasDefinedOutsideCurrentScope"]=16384]="UseAliasDefinedOutsideCurrentScope";e[e["AllowThisInObjectLiteral"]=32768]="AllowThisInObjectLiteral";e[e["AllowQualifedNameInPlaceOfIdentifier"]=65536]="AllowQualifedNameInPlaceOfIdentifier";e[e["AllowAnonymousIdentifier"]=131072]="AllowAnonymousIdentifier";e[e["AllowEmptyUnionOrIntersection"]=262144]="AllowEmptyUnionOrIntersection";e[e["AllowEmptyTuple"]=524288]="AllowEmptyTuple";e[e["AllowUniqueESSymbolType"]=1048576]="AllowUniqueESSymbolType";e[e["AllowEmptyIndexInfoType"]=2097152]="AllowEmptyIndexInfoType";e[e["AllowNodeModulesRelativePaths"]=67108864]="AllowNodeModulesRelativePaths";e[e["DoNotIncludeSymbolChain"]=134217728]="DoNotIncludeSymbolChain";e[e["IgnoreErrors"]=70221824]="IgnoreErrors";e[e["InObjectTypeLiteral"]=4194304]="InObjectTypeLiteral";e[e["InTypeAlias"]=8388608]="InTypeAlias";e[e["InInitialEntityName"]=16777216]="InInitialEntityName";e[e["InReverseMappedType"]=33554432]="InReverseMappedType"})(p=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var g;(function(e){e[e["None"]=0]="None";e[e["NoTruncation"]=1]="NoTruncation";e[e["WriteArrayAsGenericType"]=2]="WriteArrayAsGenericType";e[e["UseStructuralFallback"]=8]="UseStructuralFallback";e[e["WriteTypeArgumentsOfSignature"]=32]="WriteTypeArgumentsOfSignature";e[e["UseFullyQualifiedType"]=64]="UseFullyQualifiedType";e[e["SuppressAnyReturnType"]=256]="SuppressAnyReturnType";e[e["MultilineObjectLiterals"]=1024]="MultilineObjectLiterals";e[e["WriteClassExpressionAsTypeLiteral"]=2048]="WriteClassExpressionAsTypeLiteral";e[e["UseTypeOfFunction"]=4096]="UseTypeOfFunction";e[e["OmitParameterModifiers"]=8192]="OmitParameterModifiers";e[e["UseAliasDefinedOutsideCurrentScope"]=16384]="UseAliasDefinedOutsideCurrentScope";e[e["AllowUniqueESSymbolType"]=1048576]="AllowUniqueESSymbolType";e[e["AddUndefined"]=131072]="AddUndefined";e[e["WriteArrowStyleSignature"]=262144]="WriteArrowStyleSignature";e[e["InArrayType"]=524288]="InArrayType";e[e["InElementType"]=2097152]="InElementType";e[e["InFirstTypeArgument"]=4194304]="InFirstTypeArgument";e[e["InTypeAlias"]=8388608]="InTypeAlias";e[e["WriteOwnNameForAnyLike"]=0]="WriteOwnNameForAnyLike";e[e["NodeBuilderFlagsMask"]=9469291]="NodeBuilderFlagsMask"})(g=e.TypeFormatFlags||(e.TypeFormatFlags={}));var _;(function(e){e[e["None"]=0]="None";e[e["WriteTypeParametersOrArguments"]=1]="WriteTypeParametersOrArguments";e[e["UseOnlyExternalAliasing"]=2]="UseOnlyExternalAliasing";e[e["AllowAnyNodeKind"]=4]="AllowAnyNodeKind";e[e["UseAliasDefinedOutsideCurrentScope"]=8]="UseAliasDefinedOutsideCurrentScope";e[e["DoNotIncludeSymbolChain"]=16]="DoNotIncludeSymbolChain"})(_=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var m;(function(e){e[e["Accessible"]=0]="Accessible";e[e["NotAccessible"]=1]="NotAccessible";e[e["CannotBeNamed"]=2]="CannotBeNamed"})(m=e.SymbolAccessibility||(e.SymbolAccessibility={}));var y;(function(e){e[e["UnionOrIntersection"]=0]="UnionOrIntersection";e[e["Spread"]=1]="Spread"})(y=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var h;(function(e){e[e["This"]=0]="This";e[e["Identifier"]=1]="Identifier"})(h=e.TypePredicateKind||(e.TypePredicateKind={}));var v;(function(e){e[e["Unknown"]=0]="Unknown";e[e["TypeWithConstructSignatureAndValue"]=1]="TypeWithConstructSignatureAndValue";e[e["VoidNullableOrNeverType"]=2]="VoidNullableOrNeverType";e[e["NumberLikeType"]=3]="NumberLikeType";e[e["BigIntLikeType"]=4]="BigIntLikeType";e[e["StringLikeType"]=5]="StringLikeType";e[e["BooleanType"]=6]="BooleanType";e[e["ArrayLikeType"]=7]="ArrayLikeType";e[e["ESSymbolType"]=8]="ESSymbolType";e[e["Promise"]=9]="Promise";e[e["TypeWithCallSignature"]=10]="TypeWithCallSignature";e[e["ObjectType"]=11]="ObjectType"})(v=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var T;(function(e){e[e["None"]=0]="None";e[e["FunctionScopedVariable"]=1]="FunctionScopedVariable";e[e["BlockScopedVariable"]=2]="BlockScopedVariable";e[e["Property"]=4]="Property";e[e["EnumMember"]=8]="EnumMember";e[e["Function"]=16]="Function";e[e["Class"]=32]="Class";e[e["Interface"]=64]="Interface";e[e["ConstEnum"]=128]="ConstEnum";e[e["RegularEnum"]=256]="RegularEnum";e[e["ValueModule"]=512]="ValueModule";e[e["NamespaceModule"]=1024]="NamespaceModule";e[e["TypeLiteral"]=2048]="TypeLiteral";e[e["ObjectLiteral"]=4096]="ObjectLiteral";e[e["Method"]=8192]="Method";e[e["Constructor"]=16384]="Constructor";e[e["GetAccessor"]=32768]="GetAccessor";e[e["SetAccessor"]=65536]="SetAccessor";e[e["Signature"]=131072]="Signature";e[e["TypeParameter"]=262144]="TypeParameter";e[e["TypeAlias"]=524288]="TypeAlias";e[e["ExportValue"]=1048576]="ExportValue";e[e["Alias"]=2097152]="Alias";e[e["Prototype"]=4194304]="Prototype";e[e["ExportStar"]=8388608]="ExportStar";e[e["Optional"]=16777216]="Optional";e[e["Transient"]=33554432]="Transient";e[e["Assignment"]=67108864]="Assignment";e[e["ModuleExports"]=134217728]="ModuleExports";e[e["All"]=67108863]="All";e[e["Enum"]=384]="Enum";e[e["Variable"]=3]="Variable";e[e["Value"]=67220415]="Value";e[e["Type"]=67897832]="Type";e[e["Namespace"]=1920]="Namespace";e[e["Module"]=1536]="Module";e[e["Accessor"]=98304]="Accessor";e[e["FunctionScopedVariableExcludes"]=67220414]="FunctionScopedVariableExcludes";e[e["BlockScopedVariableExcludes"]=67220415]="BlockScopedVariableExcludes";e[e["ParameterExcludes"]=67220415]="ParameterExcludes";e[e["PropertyExcludes"]=0]="PropertyExcludes";e[e["EnumMemberExcludes"]=68008959]="EnumMemberExcludes";e[e["FunctionExcludes"]=67219887]="FunctionExcludes";e[e["ClassExcludes"]=68008383]="ClassExcludes";e[e["InterfaceExcludes"]=67897736]="InterfaceExcludes";e[e["RegularEnumExcludes"]=68008191]="RegularEnumExcludes";e[e["ConstEnumExcludes"]=68008831]="ConstEnumExcludes";e[e["ValueModuleExcludes"]=110735]="ValueModuleExcludes";e[e["NamespaceModuleExcludes"]=0]="NamespaceModuleExcludes";e[e["MethodExcludes"]=67212223]="MethodExcludes";e[e["GetAccessorExcludes"]=67154879]="GetAccessorExcludes";e[e["SetAccessorExcludes"]=67187647]="SetAccessorExcludes";e[e["TypeParameterExcludes"]=67635688]="TypeParameterExcludes";e[e["TypeAliasExcludes"]=67897832]="TypeAliasExcludes";e[e["AliasExcludes"]=2097152]="AliasExcludes";e[e["ModuleMember"]=2623475]="ModuleMember";e[e["ExportHasLocal"]=944]="ExportHasLocal";e[e["BlockScoped"]=418]="BlockScoped";e[e["PropertyOrAccessor"]=98308]="PropertyOrAccessor";e[e["ClassMember"]=106500]="ClassMember";e[e["Classifiable"]=2885600]="Classifiable";e[e["LateBindingContainer"]=6240]="LateBindingContainer"})(T=e.SymbolFlags||(e.SymbolFlags={}));var S;(function(e){e[e["Numeric"]=0]="Numeric";e[e["Literal"]=1]="Literal"})(S=e.EnumKind||(e.EnumKind={}));var b;(function(e){e[e["Instantiated"]=1]="Instantiated";e[e["SyntheticProperty"]=2]="SyntheticProperty";e[e["SyntheticMethod"]=4]="SyntheticMethod";e[e["Readonly"]=8]="Readonly";e[e["Partial"]=16]="Partial";e[e["HasNonUniformType"]=32]="HasNonUniformType";e[e["ContainsPublic"]=64]="ContainsPublic";e[e["ContainsProtected"]=128]="ContainsProtected";e[e["ContainsPrivate"]=256]="ContainsPrivate";e[e["ContainsStatic"]=512]="ContainsStatic";e[e["Late"]=1024]="Late";e[e["ReverseMapped"]=2048]="ReverseMapped";e[e["OptionalParameter"]=4096]="OptionalParameter";e[e["RestParameter"]=8192]="RestParameter";e[e["Synthetic"]=6]="Synthetic"})(b=e.CheckFlags||(e.CheckFlags={}));var x;(function(e){e["Call"]="__call";e["Constructor"]="__constructor";e["New"]="__new";e["Index"]="__index";e["ExportStar"]="__export";e["Global"]="__global";e["Missing"]="__missing";e["Type"]="__type";e["Object"]="__object";e["JSXAttributes"]="__jsxAttributes";e["Class"]="__class";e["Function"]="__function";e["Computed"]="__computed";e["Resolving"]="__resolving__";e["ExportEquals"]="export=";e["Default"]="default";e["This"]="this"})(x=e.InternalSymbolName||(e.InternalSymbolName={}));var C;(function(e){e[e["TypeChecked"]=1]="TypeChecked";e[e["LexicalThis"]=2]="LexicalThis";e[e["CaptureThis"]=4]="CaptureThis";e[e["CaptureNewTarget"]=8]="CaptureNewTarget";e[e["SuperInstance"]=256]="SuperInstance";e[e["SuperStatic"]=512]="SuperStatic";e[e["ContextChecked"]=1024]="ContextChecked";e[e["AsyncMethodWithSuper"]=2048]="AsyncMethodWithSuper";e[e["AsyncMethodWithSuperBinding"]=4096]="AsyncMethodWithSuperBinding";e[e["CaptureArguments"]=8192]="CaptureArguments";e[e["EnumValuesComputed"]=16384]="EnumValuesComputed";e[e["LexicalModuleMergesWithClass"]=32768]="LexicalModuleMergesWithClass";e[e["LoopWithCapturedBlockScopedBinding"]=65536]="LoopWithCapturedBlockScopedBinding";e[e["ContainsCapturedBlockScopeBinding"]=131072]="ContainsCapturedBlockScopeBinding";e[e["CapturedBlockScopedBinding"]=262144]="CapturedBlockScopedBinding";e[e["BlockScopedBindingInLoop"]=524288]="BlockScopedBindingInLoop";e[e["ClassWithBodyScopedClassBinding"]=1048576]="ClassWithBodyScopedClassBinding";e[e["BodyScopedClassBinding"]=2097152]="BodyScopedClassBinding";e[e["NeedsLoopOutParameter"]=4194304]="NeedsLoopOutParameter";e[e["AssignmentsMarked"]=8388608]="AssignmentsMarked";e[e["ClassWithConstructorReference"]=16777216]="ClassWithConstructorReference";e[e["ConstructorReferenceInClass"]=33554432]="ConstructorReferenceInClass"})(C=e.NodeCheckFlags||(e.NodeCheckFlags={}));var E;(function(e){e[e["Any"]=1]="Any";e[e["Unknown"]=2]="Unknown";e[e["String"]=4]="String";e[e["Number"]=8]="Number";e[e["Boolean"]=16]="Boolean";e[e["Enum"]=32]="Enum";e[e["BigInt"]=64]="BigInt";e[e["StringLiteral"]=128]="StringLiteral";e[e["NumberLiteral"]=256]="NumberLiteral";e[e["BooleanLiteral"]=512]="BooleanLiteral";e[e["EnumLiteral"]=1024]="EnumLiteral";e[e["BigIntLiteral"]=2048]="BigIntLiteral";e[e["ESSymbol"]=4096]="ESSymbol";e[e["UniqueESSymbol"]=8192]="UniqueESSymbol";e[e["Void"]=16384]="Void";e[e["Undefined"]=32768]="Undefined";e[e["Null"]=65536]="Null";e[e["Never"]=131072]="Never";e[e["TypeParameter"]=262144]="TypeParameter";e[e["Object"]=524288]="Object";e[e["Union"]=1048576]="Union";e[e["Intersection"]=2097152]="Intersection";e[e["Index"]=4194304]="Index";e[e["IndexedAccess"]=8388608]="IndexedAccess";e[e["Conditional"]=16777216]="Conditional";e[e["Substitution"]=33554432]="Substitution";e[e["NonPrimitive"]=67108864]="NonPrimitive";e[e["ContainsWideningType"]=134217728]="ContainsWideningType";e[e["ContainsObjectLiteral"]=268435456]="ContainsObjectLiteral";e[e["ContainsAnyFunctionType"]=536870912]="ContainsAnyFunctionType";e[e["AnyOrUnknown"]=3]="AnyOrUnknown";e[e["Nullable"]=98304]="Nullable";e[e["Literal"]=2944]="Literal";e[e["Unit"]=109440]="Unit";e[e["StringOrNumberLiteral"]=384]="StringOrNumberLiteral";e[e["StringOrNumberLiteralOrUnique"]=8576]="StringOrNumberLiteralOrUnique";e[e["DefinitelyFalsy"]=117632]="DefinitelyFalsy";e[e["PossiblyFalsy"]=117724]="PossiblyFalsy";e[e["Intrinsic"]=67359327]="Intrinsic";e[e["Primitive"]=131068]="Primitive";e[e["StringLike"]=132]="StringLike";e[e["NumberLike"]=296]="NumberLike";e[e["BigIntLike"]=2112]="BigIntLike";e[e["BooleanLike"]=528]="BooleanLike";e[e["EnumLike"]=1056]="EnumLike";e[e["ESSymbolLike"]=12288]="ESSymbolLike";e[e["VoidLike"]=49152]="VoidLike";e[e["DisjointDomains"]=67238908]="DisjointDomains";e[e["UnionOrIntersection"]=3145728]="UnionOrIntersection";e[e["StructuredType"]=3670016]="StructuredType";e[e["TypeVariable"]=8650752]="TypeVariable";e[e["InstantiableNonPrimitive"]=58982400]="InstantiableNonPrimitive";e[e["InstantiablePrimitive"]=4194304]="InstantiablePrimitive";e[e["Instantiable"]=63176704]="Instantiable";e[e["StructuredOrInstantiable"]=66846720]="StructuredOrInstantiable";e[e["Narrowable"]=133970943]="Narrowable";e[e["NotUnionOrUnit"]=67637251]="NotUnionOrUnit";e[e["NotPrimitiveUnion"]=66994211]="NotPrimitiveUnion";e[e["RequiresWidening"]=402653184]="RequiresWidening";e[e["PropagatingFlags"]=939524096]="PropagatingFlags";e[e["NonWideningType"]=134217728]="NonWideningType";e[e["Wildcard"]=268435456]="Wildcard";e[e["EmptyObject"]=536870912]="EmptyObject";e[e["ConstructionFlags"]=939524096]="ConstructionFlags";e[e["GenericMappedType"]=134217728]="GenericMappedType"})(E=e.TypeFlags||(e.TypeFlags={}));var D;(function(e){e[e["Class"]=1]="Class";e[e["Interface"]=2]="Interface";e[e["Reference"]=4]="Reference";e[e["Tuple"]=8]="Tuple";e[e["Anonymous"]=16]="Anonymous";e[e["Mapped"]=32]="Mapped";e[e["Instantiated"]=64]="Instantiated";e[e["ObjectLiteral"]=128]="ObjectLiteral";e[e["EvolvingArray"]=256]="EvolvingArray";e[e["ObjectLiteralPatternWithComputedProperties"]=512]="ObjectLiteralPatternWithComputedProperties";e[e["ContainsSpread"]=1024]="ContainsSpread";e[e["ReverseMapped"]=2048]="ReverseMapped";e[e["JsxAttributes"]=4096]="JsxAttributes";e[e["MarkerType"]=8192]="MarkerType";e[e["JSLiteral"]=16384]="JSLiteral";e[e["FreshLiteral"]=32768]="FreshLiteral";e[e["ClassOrInterface"]=3]="ClassOrInterface"})(D=e.ObjectFlags||(e.ObjectFlags={}));var k;(function(e){e[e["Invariant"]=0]="Invariant";e[e["Covariant"]=1]="Covariant";e[e["Contravariant"]=2]="Contravariant";e[e["Bivariant"]=3]="Bivariant";e[e["Independent"]=4]="Independent"})(k=e.Variance||(e.Variance={}));var N;(function(e){e[e["Component"]=0]="Component";e[e["Function"]=1]="Function";e[e["Mixed"]=2]="Mixed"})(N=e.JsxReferenceKind||(e.JsxReferenceKind={}));var A;(function(e){e[e["Call"]=0]="Call";e[e["Construct"]=1]="Construct"})(A=e.SignatureKind||(e.SignatureKind={}));var O;(function(e){e[e["String"]=0]="String";e[e["Number"]=1]="Number"})(O=e.IndexKind||(e.IndexKind={}));var F;(function(e){e[e["NakedTypeVariable"]=1]="NakedTypeVariable";e[e["HomomorphicMappedType"]=2]="HomomorphicMappedType";e[e["MappedTypeConstraint"]=4]="MappedTypeConstraint";e[e["ReturnType"]=8]="ReturnType";e[e["LiteralKeyof"]=16]="LiteralKeyof";e[e["NoConstraints"]=32]="NoConstraints";e[e["AlwaysStrict"]=64]="AlwaysStrict";e[e["PriorityImpliesCombination"]=28]="PriorityImpliesCombination"})(F=e.InferencePriority||(e.InferencePriority={}));var P;(function(e){e[e["None"]=0]="None";e[e["NoDefault"]=1]="NoDefault";e[e["AnyDefault"]=2]="AnyDefault"})(P=e.InferenceFlags||(e.InferenceFlags={}));var I;(function(e){e[e["False"]=0]="False";e[e["Maybe"]=1]="Maybe";e[e["True"]=-1]="True"})(I=e.Ternary||(e.Ternary={}));var w;(function(e){e[e["None"]=0]="None";e[e["ExportsProperty"]=1]="ExportsProperty";e[e["ModuleExports"]=2]="ModuleExports";e[e["PrototypeProperty"]=3]="PrototypeProperty";e[e["ThisProperty"]=4]="ThisProperty";e[e["Property"]=5]="Property";e[e["Prototype"]=6]="Prototype";e[e["ObjectDefinePropertyValue"]=7]="ObjectDefinePropertyValue";e[e["ObjectDefinePropertyExports"]=8]="ObjectDefinePropertyExports";e[e["ObjectDefinePrototypeProperty"]=9]="ObjectDefinePrototypeProperty"})(w=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var M;(function(e){e[e["Warning"]=0]="Warning";e[e["Error"]=1]="Error";e[e["Suggestion"]=2]="Suggestion";e[e["Message"]=3]="Message"})(M=e.DiagnosticCategory||(e.DiagnosticCategory={}));function diagnosticCategoryName(e,t){if(t===void 0){t=true}var r=M[e.category];return t?r.toLowerCase():r}e.diagnosticCategoryName=diagnosticCategoryName;var L;(function(e){e[e["Classic"]=1]="Classic";e[e["NodeJs"]=2]="NodeJs"})(L=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var R;(function(e){e[e["None"]=0]="None";e[e["CommonJS"]=1]="CommonJS";e[e["AMD"]=2]="AMD";e[e["UMD"]=3]="UMD";e[e["System"]=4]="System";e[e["ES2015"]=5]="ES2015";e[e["ESNext"]=6]="ESNext"})(R=e.ModuleKind||(e.ModuleKind={}));var B;(function(e){e[e["None"]=0]="None";e[e["Preserve"]=1]="Preserve";e[e["React"]=2]="React";e[e["ReactNative"]=3]="ReactNative"})(B=e.JsxEmit||(e.JsxEmit={}));var j;(function(e){e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed";e[e["LineFeed"]=1]="LineFeed"})(j=e.NewLineKind||(e.NewLineKind={}));var J;(function(e){e[e["Unknown"]=0]="Unknown";e[e["JS"]=1]="JS";e[e["JSX"]=2]="JSX";e[e["TS"]=3]="TS";e[e["TSX"]=4]="TSX";e[e["External"]=5]="External";e[e["JSON"]=6]="JSON";e[e["Deferred"]=7]="Deferred"})(J=e.ScriptKind||(e.ScriptKind={}));var W;(function(e){e[e["ES3"]=0]="ES3";e[e["ES5"]=1]="ES5";e[e["ES2015"]=2]="ES2015";e[e["ES2016"]=3]="ES2016";e[e["ES2017"]=4]="ES2017";e[e["ES2018"]=5]="ES2018";e[e["ESNext"]=6]="ESNext";e[e["JSON"]=100]="JSON";e[e["Latest"]=6]="Latest"})(W=e.ScriptTarget||(e.ScriptTarget={}));var U;(function(e){e[e["Standard"]=0]="Standard";e[e["JSX"]=1]="JSX"})(U=e.LanguageVariant||(e.LanguageVariant={}));var z;(function(e){e[e["None"]=0]="None";e[e["Recursive"]=1]="Recursive"})(z=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var V;(function(e){e[e["nullCharacter"]=0]="nullCharacter";e[e["maxAsciiCharacter"]=127]="maxAsciiCharacter";e[e["lineFeed"]=10]="lineFeed";e[e["carriageReturn"]=13]="carriageReturn";e[e["lineSeparator"]=8232]="lineSeparator";e[e["paragraphSeparator"]=8233]="paragraphSeparator";e[e["nextLine"]=133]="nextLine";e[e["space"]=32]="space";e[e["nonBreakingSpace"]=160]="nonBreakingSpace";e[e["enQuad"]=8192]="enQuad";e[e["emQuad"]=8193]="emQuad";e[e["enSpace"]=8194]="enSpace";e[e["emSpace"]=8195]="emSpace";e[e["threePerEmSpace"]=8196]="threePerEmSpace";e[e["fourPerEmSpace"]=8197]="fourPerEmSpace";e[e["sixPerEmSpace"]=8198]="sixPerEmSpace";e[e["figureSpace"]=8199]="figureSpace";e[e["punctuationSpace"]=8200]="punctuationSpace";e[e["thinSpace"]=8201]="thinSpace";e[e["hairSpace"]=8202]="hairSpace";e[e["zeroWidthSpace"]=8203]="zeroWidthSpace";e[e["narrowNoBreakSpace"]=8239]="narrowNoBreakSpace";e[e["ideographicSpace"]=12288]="ideographicSpace";e[e["mathematicalSpace"]=8287]="mathematicalSpace";e[e["ogham"]=5760]="ogham";e[e["_"]=95]="_";e[e["$"]=36]="$";e[e["_0"]=48]="_0";e[e["_1"]=49]="_1";e[e["_2"]=50]="_2";e[e["_3"]=51]="_3";e[e["_4"]=52]="_4";e[e["_5"]=53]="_5";e[e["_6"]=54]="_6";e[e["_7"]=55]="_7";e[e["_8"]=56]="_8";e[e["_9"]=57]="_9";e[e["a"]=97]="a";e[e["b"]=98]="b";e[e["c"]=99]="c";e[e["d"]=100]="d";e[e["e"]=101]="e";e[e["f"]=102]="f";e[e["g"]=103]="g";e[e["h"]=104]="h";e[e["i"]=105]="i";e[e["j"]=106]="j";e[e["k"]=107]="k";e[e["l"]=108]="l";e[e["m"]=109]="m";e[e["n"]=110]="n";e[e["o"]=111]="o";e[e["p"]=112]="p";e[e["q"]=113]="q";e[e["r"]=114]="r";e[e["s"]=115]="s";e[e["t"]=116]="t";e[e["u"]=117]="u";e[e["v"]=118]="v";e[e["w"]=119]="w";e[e["x"]=120]="x";e[e["y"]=121]="y";e[e["z"]=122]="z";e[e["A"]=65]="A";e[e["B"]=66]="B";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["E"]=69]="E";e[e["F"]=70]="F";e[e["G"]=71]="G";e[e["H"]=72]="H";e[e["I"]=73]="I";e[e["J"]=74]="J";e[e["K"]=75]="K";e[e["L"]=76]="L";e[e["M"]=77]="M";e[e["N"]=78]="N";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["Q"]=81]="Q";e[e["R"]=82]="R";e[e["S"]=83]="S";e[e["T"]=84]="T";e[e["U"]=85]="U";e[e["V"]=86]="V";e[e["W"]=87]="W";e[e["X"]=88]="X";e[e["Y"]=89]="Y";e[e["Z"]=90]="Z";e[e["ampersand"]=38]="ampersand";e[e["asterisk"]=42]="asterisk";e[e["at"]=64]="at";e[e["backslash"]=92]="backslash";e[e["backtick"]=96]="backtick";e[e["bar"]=124]="bar";e[e["caret"]=94]="caret";e[e["closeBrace"]=125]="closeBrace";e[e["closeBracket"]=93]="closeBracket";e[e["closeParen"]=41]="closeParen";e[e["colon"]=58]="colon";e[e["comma"]=44]="comma";e[e["dot"]=46]="dot";e[e["doubleQuote"]=34]="doubleQuote";e[e["equals"]=61]="equals";e[e["exclamation"]=33]="exclamation";e[e["greaterThan"]=62]="greaterThan";e[e["hash"]=35]="hash";e[e["lessThan"]=60]="lessThan";e[e["minus"]=45]="minus";e[e["openBrace"]=123]="openBrace";e[e["openBracket"]=91]="openBracket";e[e["openParen"]=40]="openParen";e[e["percent"]=37]="percent";e[e["plus"]=43]="plus";e[e["question"]=63]="question";e[e["semicolon"]=59]="semicolon";e[e["singleQuote"]=39]="singleQuote";e[e["slash"]=47]="slash";e[e["tilde"]=126]="tilde";e[e["backspace"]=8]="backspace";e[e["formFeed"]=12]="formFeed";e[e["byteOrderMark"]=65279]="byteOrderMark";e[e["tab"]=9]="tab";e[e["verticalTab"]=11]="verticalTab"})(V=e.CharacterCodes||(e.CharacterCodes={}));var K;(function(e){e["Ts"]=".ts";e["Tsx"]=".tsx";e["Dts"]=".d.ts";e["Js"]=".js";e["Jsx"]=".jsx";e["Json"]=".json"})(K=e.Extension||(e.Extension={}));var q;(function(e){e[e["None"]=0]="None";e[e["TypeScript"]=1]="TypeScript";e[e["ContainsTypeScript"]=2]="ContainsTypeScript";e[e["ContainsJsx"]=4]="ContainsJsx";e[e["ContainsESNext"]=8]="ContainsESNext";e[e["ContainsES2017"]=16]="ContainsES2017";e[e["ContainsES2016"]=32]="ContainsES2016";e[e["ES2015"]=64]="ES2015";e[e["ContainsES2015"]=128]="ContainsES2015";e[e["Generator"]=256]="Generator";e[e["ContainsGenerator"]=512]="ContainsGenerator";e[e["DestructuringAssignment"]=1024]="DestructuringAssignment";e[e["ContainsDestructuringAssignment"]=2048]="ContainsDestructuringAssignment";e[e["ContainsTypeScriptClassSyntax"]=4096]="ContainsTypeScriptClassSyntax";e[e["ContainsLexicalThis"]=8192]="ContainsLexicalThis";e[e["ContainsCapturedLexicalThis"]=16384]="ContainsCapturedLexicalThis";e[e["ContainsLexicalThisInComputedPropertyName"]=32768]="ContainsLexicalThisInComputedPropertyName";e[e["ContainsDefaultValueAssignments"]=65536]="ContainsDefaultValueAssignments";e[e["ContainsRestOrSpread"]=131072]="ContainsRestOrSpread";e[e["ContainsObjectRestOrSpread"]=262144]="ContainsObjectRestOrSpread";e[e["ContainsComputedPropertyName"]=524288]="ContainsComputedPropertyName";e[e["ContainsBlockScopedBinding"]=1048576]="ContainsBlockScopedBinding";e[e["ContainsBindingPattern"]=2097152]="ContainsBindingPattern";e[e["ContainsYield"]=4194304]="ContainsYield";e[e["ContainsHoistedDeclarationOrCompletion"]=8388608]="ContainsHoistedDeclarationOrCompletion";e[e["ContainsDynamicImport"]=16777216]="ContainsDynamicImport";e[e["Super"]=33554432]="Super";e[e["ContainsSuper"]=67108864]="ContainsSuper";e[e["HasComputedFlags"]=536870912]="HasComputedFlags";e[e["AssertTypeScript"]=3]="AssertTypeScript";e[e["AssertJsx"]=4]="AssertJsx";e[e["AssertESNext"]=8]="AssertESNext";e[e["AssertES2017"]=16]="AssertES2017";e[e["AssertES2016"]=32]="AssertES2016";e[e["AssertES2015"]=192]="AssertES2015";e[e["AssertGenerator"]=768]="AssertGenerator";e[e["AssertDestructuringAssignment"]=3072]="AssertDestructuringAssignment";e[e["OuterExpressionExcludes"]=536872257]="OuterExpressionExcludes";e[e["PropertyAccessExcludes"]=570426689]="PropertyAccessExcludes";e[e["NodeExcludes"]=637535553]="NodeExcludes";e[e["ArrowFunctionExcludes"]=653604161]="ArrowFunctionExcludes";e[e["FunctionExcludes"]=653620545]="FunctionExcludes";e[e["ConstructorExcludes"]=653616449]="ConstructorExcludes";e[e["MethodOrAccessorExcludes"]=653616449]="MethodOrAccessorExcludes";e[e["ClassExcludes"]=638121281]="ClassExcludes";e[e["ModuleExcludes"]=647001409]="ModuleExcludes";e[e["TypeExcludes"]=-3]="TypeExcludes";e[e["ObjectLiteralExcludes"]=638358849]="ObjectLiteralExcludes";e[e["ArrayLiteralOrCallOrNewExcludes"]=637666625]="ArrayLiteralOrCallOrNewExcludes";e[e["VariableDeclarationListExcludes"]=639894849]="VariableDeclarationListExcludes";e[e["ParameterExcludes"]=637535553]="ParameterExcludes";e[e["CatchClauseExcludes"]=637797697]="CatchClauseExcludes";e[e["BindingPatternExcludes"]=637666625]="BindingPatternExcludes";e[e["ES2015FunctionSyntaxMask"]=81920]="ES2015FunctionSyntaxMask"})(q=e.TransformFlags||(e.TransformFlags={}));var G;(function(e){e[e["None"]=0]="None";e[e["SingleLine"]=1]="SingleLine";e[e["AdviseOnEmitNode"]=2]="AdviseOnEmitNode";e[e["NoSubstitution"]=4]="NoSubstitution";e[e["CapturesThis"]=8]="CapturesThis";e[e["NoLeadingSourceMap"]=16]="NoLeadingSourceMap";e[e["NoTrailingSourceMap"]=32]="NoTrailingSourceMap";e[e["NoSourceMap"]=48]="NoSourceMap";e[e["NoNestedSourceMaps"]=64]="NoNestedSourceMaps";e[e["NoTokenLeadingSourceMaps"]=128]="NoTokenLeadingSourceMaps";e[e["NoTokenTrailingSourceMaps"]=256]="NoTokenTrailingSourceMaps";e[e["NoTokenSourceMaps"]=384]="NoTokenSourceMaps";e[e["NoLeadingComments"]=512]="NoLeadingComments";e[e["NoTrailingComments"]=1024]="NoTrailingComments";e[e["NoComments"]=1536]="NoComments";e[e["NoNestedComments"]=2048]="NoNestedComments";e[e["HelperName"]=4096]="HelperName";e[e["ExportName"]=8192]="ExportName";e[e["LocalName"]=16384]="LocalName";e[e["InternalName"]=32768]="InternalName";e[e["Indented"]=65536]="Indented";e[e["NoIndentation"]=131072]="NoIndentation";e[e["AsyncFunctionBody"]=262144]="AsyncFunctionBody";e[e["ReuseTempVariableScope"]=524288]="ReuseTempVariableScope";e[e["CustomPrologue"]=1048576]="CustomPrologue";e[e["NoHoisting"]=2097152]="NoHoisting";e[e["HasEndOfDeclarationMarker"]=4194304]="HasEndOfDeclarationMarker";e[e["Iterator"]=8388608]="Iterator";e[e["NoAsciiEscaping"]=16777216]="NoAsciiEscaping";e[e["TypeScriptClassWrapper"]=33554432]="TypeScriptClassWrapper";e[e["NeverApplyImportHelper"]=67108864]="NeverApplyImportHelper"})(G=e.EmitFlags||(e.EmitFlags={}));var H;(function(e){e[e["Extends"]=1]="Extends";e[e["Assign"]=2]="Assign";e[e["Rest"]=4]="Rest";e[e["Decorate"]=8]="Decorate";e[e["Metadata"]=16]="Metadata";e[e["Param"]=32]="Param";e[e["Awaiter"]=64]="Awaiter";e[e["Generator"]=128]="Generator";e[e["Values"]=256]="Values";e[e["Read"]=512]="Read";e[e["Spread"]=1024]="Spread";e[e["Await"]=2048]="Await";e[e["AsyncGenerator"]=4096]="AsyncGenerator";e[e["AsyncDelegator"]=8192]="AsyncDelegator";e[e["AsyncValues"]=16384]="AsyncValues";e[e["ExportStar"]=32768]="ExportStar";e[e["MakeTemplateObject"]=65536]="MakeTemplateObject";e[e["FirstEmitHelper"]=1]="FirstEmitHelper";e[e["LastEmitHelper"]=65536]="LastEmitHelper";e[e["ForOfIncludes"]=256]="ForOfIncludes";e[e["ForAwaitOfIncludes"]=16384]="ForAwaitOfIncludes";e[e["AsyncGeneratorIncludes"]=6144]="AsyncGeneratorIncludes";e[e["AsyncDelegatorIncludes"]=26624]="AsyncDelegatorIncludes";e[e["SpreadIncludes"]=1536]="SpreadIncludes"})(H=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var Q;(function(e){e[e["SourceFile"]=0]="SourceFile";e[e["Expression"]=1]="Expression";e[e["IdentifierName"]=2]="IdentifierName";e[e["MappedTypeParameter"]=3]="MappedTypeParameter";e[e["Unspecified"]=4]="Unspecified";e[e["EmbeddedStatement"]=5]="EmbeddedStatement"})(Q=e.EmitHint||(e.EmitHint={}));var $;(function(e){e[e["None"]=0]="None";e[e["SingleLine"]=0]="SingleLine";e[e["MultiLine"]=1]="MultiLine";e[e["PreserveLines"]=2]="PreserveLines";e[e["LinesMask"]=3]="LinesMask";e[e["NotDelimited"]=0]="NotDelimited";e[e["BarDelimited"]=4]="BarDelimited";e[e["AmpersandDelimited"]=8]="AmpersandDelimited";e[e["CommaDelimited"]=16]="CommaDelimited";e[e["AsteriskDelimited"]=32]="AsteriskDelimited";e[e["DelimitersMask"]=60]="DelimitersMask";e[e["AllowTrailingComma"]=64]="AllowTrailingComma";e[e["Indented"]=128]="Indented";e[e["SpaceBetweenBraces"]=256]="SpaceBetweenBraces";e[e["SpaceBetweenSiblings"]=512]="SpaceBetweenSiblings";e[e["Braces"]=1024]="Braces";e[e["Parenthesis"]=2048]="Parenthesis";e[e["AngleBrackets"]=4096]="AngleBrackets";e[e["SquareBrackets"]=8192]="SquareBrackets";e[e["BracketsMask"]=15360]="BracketsMask";e[e["OptionalIfUndefined"]=16384]="OptionalIfUndefined";e[e["OptionalIfEmpty"]=32768]="OptionalIfEmpty";e[e["Optional"]=49152]="Optional";e[e["PreferNewLine"]=65536]="PreferNewLine";e[e["NoTrailingNewLine"]=131072]="NoTrailingNewLine";e[e["NoInterveningComments"]=262144]="NoInterveningComments";e[e["NoSpaceIfEmpty"]=524288]="NoSpaceIfEmpty";e[e["SingleElement"]=1048576]="SingleElement";e[e["Modifiers"]=262656]="Modifiers";e[e["HeritageClauses"]=512]="HeritageClauses";e[e["SingleLineTypeLiteralMembers"]=768]="SingleLineTypeLiteralMembers";e[e["MultiLineTypeLiteralMembers"]=32897]="MultiLineTypeLiteralMembers";e[e["TupleTypeElements"]=528]="TupleTypeElements";e[e["UnionTypeConstituents"]=516]="UnionTypeConstituents";e[e["IntersectionTypeConstituents"]=520]="IntersectionTypeConstituents";e[e["ObjectBindingPatternElements"]=525136]="ObjectBindingPatternElements";e[e["ArrayBindingPatternElements"]=524880]="ArrayBindingPatternElements";e[e["ObjectLiteralExpressionProperties"]=526226]="ObjectLiteralExpressionProperties";e[e["ArrayLiteralExpressionElements"]=8914]="ArrayLiteralExpressionElements";e[e["CommaListElements"]=528]="CommaListElements";e[e["CallExpressionArguments"]=2576]="CallExpressionArguments";e[e["NewExpressionArguments"]=18960]="NewExpressionArguments";e[e["TemplateExpressionSpans"]=262144]="TemplateExpressionSpans";e[e["SingleLineBlockStatements"]=768]="SingleLineBlockStatements";e[e["MultiLineBlockStatements"]=129]="MultiLineBlockStatements";e[e["VariableDeclarationList"]=528]="VariableDeclarationList";e[e["SingleLineFunctionBodyStatements"]=768]="SingleLineFunctionBodyStatements";e[e["MultiLineFunctionBodyStatements"]=1]="MultiLineFunctionBodyStatements";e[e["ClassHeritageClauses"]=0]="ClassHeritageClauses";e[e["ClassMembers"]=129]="ClassMembers";e[e["InterfaceMembers"]=129]="InterfaceMembers";e[e["EnumMembers"]=145]="EnumMembers";e[e["CaseBlockClauses"]=129]="CaseBlockClauses";e[e["NamedImportsOrExportsElements"]=525136]="NamedImportsOrExportsElements";e[e["JsxElementOrFragmentChildren"]=262144]="JsxElementOrFragmentChildren";e[e["JsxElementAttributes"]=262656]="JsxElementAttributes";e[e["CaseOrDefaultClauseStatements"]=163969]="CaseOrDefaultClauseStatements";e[e["HeritageClauseTypes"]=528]="HeritageClauseTypes";e[e["SourceFileStatements"]=131073]="SourceFileStatements";e[e["Decorators"]=49153]="Decorators";e[e["TypeArguments"]=53776]="TypeArguments";e[e["TypeParameters"]=53776]="TypeParameters";e[e["Parameters"]=2576]="Parameters";e[e["IndexSignatureParameters"]=8848]="IndexSignatureParameters";e[e["JSDocComment"]=33]="JSDocComment"})($=e.ListFormat||(e.ListFormat={}));var X;(function(e){e[e["None"]=0]="None";e[e["TripleSlashXML"]=1]="TripleSlashXML";e[e["SingleLine"]=2]="SingleLine";e[e["MultiLine"]=4]="MultiLine";e[e["All"]=7]="All";e[e["Default"]=7]="Default"})(X=e.PragmaKindFlags||(e.PragmaKindFlags={}));function _contextuallyTypePragmas(e){return e}e.commentPragmas=_contextuallyTypePragmas({reference:{args:[{name:"types",optional:true,captureSpan:true},{name:"lib",optional:true,captureSpan:true},{name:"path",optional:true,captureSpan:true},{name:"no-default-lib",optional:true}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:true}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}})})(s||(s={}));var s;(function(e){function setStackTraceLimit(){if(Error.stackTraceLimit<100){Error.stackTraceLimit=100}}e.setStackTraceLimit=setStackTraceLimit;var t;(function(e){e[e["Created"]=0]="Created";e[e["Changed"]=1]="Changed";e[e["Deleted"]=2]="Deleted"})(t=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var i;(function(e){e[e["High"]=2e3]="High";e[e["Medium"]=500]="Medium";e[e["Low"]=250]="Low"})(i=e.PollingInterval||(e.PollingInterval={}));e.missingFileModifiedTime=new Date(0);function createPollingIntervalBasedLevels(e){var t;return t={},t[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}var a={Low:32,Medium:64,High:256};var o=createPollingIntervalBasedLevels(a);e.unchangedPollThresholds=createPollingIntervalBasedLevels(a);function setCustomPollingValues(t){if(!t.getEnvironmentVariable){return}var r=setCustomLevels("TSC_WATCH_POLLINGINTERVAL",i);o=getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE",a)||o;e.unchangedPollThresholds=getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",a)||e.unchangedPollThresholds;function getLevel(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}function getCustomLevels(e){var t;setCustomLevel("Low");setCustomLevel("Medium");setCustomLevel("High");return t;function setCustomLevel(r){var n=getLevel(e,r);if(n){(t||(t={}))[r]=Number(n)}}}function setCustomLevels(e,t){var r=getCustomLevels(e);if(r){setLevel("Low");setLevel("Medium");setLevel("High");return true}return false;function setLevel(e){t[e]=r[e]||t[e]}}function getCustomPollingBasedLevels(e,t){var i=getCustomLevels(e);return(r||i)&&createPollingIntervalBasedLevels(i?n({},t,i):t)}}e.setCustomPollingValues=setCustomPollingValues;function createDynamicPriorityPollingWatchFile(t){var r=[];var n=[];var a=createPollingIntervalQueue(i.Low);var s=createPollingIntervalQueue(i.Medium);var c=createPollingIntervalQueue(i.High);return watchFile;function watchFile(t,n,i){var a={fileName:t,callback:n,unchangedPolls:0,mtime:getModifiedTime(t)};r.push(a);addToPollingIntervalQueue(a,i);return{close:function(){a.isClosed=true;e.unorderedRemoveItem(r,a)}}}function createPollingIntervalQueue(e){var t=[];t.pollingInterval=e;t.pollIndex=0;t.pollScheduled=false;return t}function pollPollingIntervalQueue(t){t.pollIndex=pollQueue(t,t.pollingInterval,t.pollIndex,o[t.pollingInterval]);if(t.length){scheduleNextPoll(t.pollingInterval)}else{e.Debug.assert(t.pollIndex===0);t.pollScheduled=false}}function pollLowPollingIntervalQueue(e){pollQueue(n,i.Low,0,n.length);pollPollingIntervalQueue(e);if(!e.pollScheduled&&n.length){scheduleNextPoll(i.Low)}}function pollQueue(t,r,a,o){var s=t.length;var c=a;for(var u=0;u<o&&s>0;nextPollIndex(),s--){var l=t[a];if(!l){continue}else if(l.isClosed){t[a]=undefined;continue}u++;var f=onWatchedFileStat(l,getModifiedTime(l.fileName));if(l.isClosed){t[a]=undefined}else if(f){l.unchangedPolls=0;if(t!==n){t[a]=undefined;addChangedFileToLowPollingIntervalQueue(l)}}else if(l.unchangedPolls!==e.unchangedPollThresholds[r]){l.unchangedPolls++}else if(t===n){l.unchangedPolls=1;t[a]=undefined;addToPollingIntervalQueue(l,i.Low)}else if(r!==i.High){l.unchangedPolls++;t[a]=undefined;addToPollingIntervalQueue(l,r===i.Low?i.Medium:i.High)}if(t[a]){if(c<a){t[c]=l;t[a]=undefined}c++}}return a;function nextPollIndex(){a++;if(a===t.length){if(c<a){t.length=c}a=0;c=0}}}function pollingIntervalQueue(e){switch(e){case i.Low:return a;case i.Medium:return s;case i.High:return c}}function addToPollingIntervalQueue(e,t){pollingIntervalQueue(t).push(e);scheduleNextPollIfNotAlreadyScheduled(t)}function addChangedFileToLowPollingIntervalQueue(e){n.push(e);scheduleNextPollIfNotAlreadyScheduled(i.Low)}function scheduleNextPollIfNotAlreadyScheduled(e){if(!pollingIntervalQueue(e).pollScheduled){scheduleNextPoll(e)}}function scheduleNextPoll(e){pollingIntervalQueue(e).pollScheduled=t.setTimeout(e===i.Low?pollLowPollingIntervalQueue:pollPollingIntervalQueue,e,pollingIntervalQueue(e))}function getModifiedTime(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}e.createDynamicPriorityPollingWatchFile=createDynamicPriorityPollingWatchFile;function onWatchedFileStat(e,t){var r=e.mtime.getTime();var n=t.getTime();if(r!==n){e.mtime=t;e.callback(e.fileName,getFileWatcherEventKind(r,n));return true}return false}e.onWatchedFileStat=onWatchedFileStat;function getFileWatcherEventKind(e,r){return e===0?t.Created:r===0?t.Deleted:t.Changed}e.getFileWatcherEventKind=getFileWatcherEventKind;function createRecursiveDirectoryWatcher(t){var r=e.createMap();var n=e.createMultiMap();var i=e.getStringComparer(!t.useCaseSensitiveFileNames);var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames);return createDirectoryWatcher;function createDirectoryWatcher(i,o){var s=a(i);var c=r.get(s);if(c){c.refCount++}else{c={watcher:t.watchDirectory(i,function(t){n.forEach(function(r,n){if(n===s||e.startsWith(s,n)&&s[n.length]===e.directorySeparator){r.forEach(function(e){return e(t)})}});updateChildWatches(i,s)}),refCount:1,childWatches:e.emptyArray};r.set(s,c);updateChildWatches(i,s)}if(o){n.add(s,o)}return{dirName:i,close:function(){var t=e.Debug.assertDefined(r.get(s));if(o)n.remove(s,o);t.refCount--;if(t.refCount)return;r.delete(s);e.closeFileWatcherOf(t);t.childWatches.forEach(e.closeFileWatcher)}}}function updateChildWatches(e,t){var n=r.get(t);if(n){n.childWatches=watchChildDirectories(e,n.childWatches)}}function watchChildDirectories(r,n){var a;e.enumerateInsertsAndDeletes(t.directoryExists(r)?e.mapDefined(t.getAccessibleSortedChildDirectories(r),function(n){var a=e.getNormalizedAbsolutePath(n,r);return i(a,e.normalizePath(t.realpath(a)))===0?a:undefined}):e.emptyArray,n,function(e,t){return i(e,t.dirName)},createAndAddChildDirectoryWatcher,e.closeFileWatcher,addChildDirectoryWatcher);return a||e.emptyArray;function createAndAddChildDirectoryWatcher(e){var t=createDirectoryWatcher(e);addChildDirectoryWatcher(t)}function addChildDirectoryWatcher(e){(a||(a=[])).push(e)}}}e.createRecursiveDirectoryWatcher=createRecursiveDirectoryWatcher;function getNodeMajorVersion(){if(typeof process==="undefined"){return undefined}var e=process.version;if(!e){return undefined}var t=e.indexOf(".");if(t===-1){return undefined}return parseInt(e.substring(1,t))}e.getNodeMajorVersion=getNodeMajorVersion;e.sys=function(){var n="\ufeff";function getNodeSystem(){var a=r(5747);var o=r(5622);var s=r(2087);var c;try{c=r(6417)}catch(e){c=undefined}var u=r(4293).Buffer;var l=getNodeMajorVersion();var f=l>=4;var d=s.platform();var p=isFileSystemCaseSensitive();var g;(function(e){e[e["File"]=0]="File";e[e["Directory"]=1]="Directory"})(g||(g={}));var _=process.env.TSC_NONPOLLING_WATCHER;var m=process.env.TSC_WATCHFILE;var y=process.env.TSC_WATCHDIRECTORY;var h;var v={args:process.argv.slice(2),newLine:s.EOL,useCaseSensitiveFileNames:p,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:readFile,writeFile:writeFile,watchFile:getWatchFile(),watchDirectory:getWatchDirectory(),resolvePath:function(e){return o.resolve(e)},fileExists:fileExists,directoryExists:directoryExists,createDirectory:function(e){if(!v.directoryExists(e)){a.mkdirSync(e)}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:getDirectories,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:readDirectory,getModifiedTime:getModifiedTime,setModifiedTime:setModifiedTime,deleteFile:deleteFile,createHash:c?createMD5HashUsingNativeCrypto:generateDjb2Hash,createSHA256Hash:c?createSHA256Hash:undefined,getMemoryUsage:function(){if(global.gc){global.gc()}return process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=a.statSync(e);if(t.isFile()){return t.size}}catch(e){}return 0},exit:function(e){process.exit(e)},realpath:realpath,debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{r(2284).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){if(process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking){process.stdout._handle.setBlocking(true)}},bufferFrom:bufferFrom,base64decode:function(e){return bufferFrom(e,"base64").toString("utf8")},base64encode:function(e){return bufferFrom(e).toString("base64")}};return v;function bufferFrom(e,t){return u.from&&u.from!==Int8Array.from?u.from(e,t):new u(e,t)}function isFileSystemCaseSensitive(){if(d==="win32"||d==="win64"){return false}return!fileExists(swapCase(__filename))}function swapCase(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function getWatchFile(){switch(m){case"PriorityPollingInterval":return fsWatchFile;case"DynamicPriorityPolling":return createDynamicPriorityPollingWatchFile({getModifiedTime:getModifiedTime,setTimeout:setTimeout});case"UseFsEvents":return watchFileUsingFsWatch;case"UseFsEventsWithFallbackDynamicPolling":h=createDynamicPriorityPollingWatchFile({getModifiedTime:getModifiedTime,setTimeout:setTimeout});return createWatchFileUsingDynamicWatchFile(h);case"UseFsEventsOnParentDirectory":return createNonPollingWatchFile()}return _?createNonPollingWatchFile():function(e,t){return fsWatchFile(e,t)}}function getWatchDirectory(){var e=f&&(process.platform==="win32"||process.platform==="darwin");if(e){return watchDirectoryUsingFsWatch}var t=y==="RecursiveDirectoryUsingFsWatchFile"?createWatchDirectoryUsing(fsWatchFile):y==="RecursiveDirectoryUsingDynamicPriorityPolling"?createWatchDirectoryUsing(h||createDynamicPriorityPollingWatchFile({getModifiedTime:getModifiedTime,setTimeout:setTimeout})):watchDirectoryUsingFsWatch;var r=createRecursiveDirectoryWatcher({useCaseSensitiveFileNames:p,directoryExists:directoryExists,getAccessibleSortedChildDirectories:function(e){return getAccessibleFileSystemEntries(e).directories},watchDirectory:t,realpath:realpath});return function(e,n,i){if(i){return r(e,n)}return t(e,n)}}function createNonPollingWatchFile(){var r=e.createMultiMap();var n=e.createMap();var i=e.createGetCanonicalFileName(p);return nonPollingWatchFile;function nonPollingWatchFile(t,a){var o=i(t);r.add(o,a);var s=e.getDirectoryPath(o)||".";var c=n.get(s)||createDirectoryWatcher(e.getDirectoryPath(t)||".",s);c.referenceCount++;return{close:function(){if(c.referenceCount===1){c.close();n.delete(s)}else{c.referenceCount--}r.remove(o,a)}}}function createDirectoryWatcher(a,o){var s=fsWatchDirectory(a,function(n,o){if(!e.isString(o)){return}var s=e.getNormalizedAbsolutePath(o,a);var c=s&&r.get(i(s));if(c){for(var u=0,l=c;u<l.length;u++){var f=l[u];f(s,t.Changed)}}});s.referenceCount=0;n.set(o,s);return s}}function fsWatchFile(e,r,n){a.watchFile(e,{persistent:true,interval:n||250},fileChanged);var i;return{close:function(){return a.unwatchFile(e,fileChanged)}};function fileChanged(n,a){var o=+a.mtime===0||i===t.Deleted;if(+n.mtime===0){if(o){return}i=t.Deleted}else if(o){i=t.Created}else if(+n.mtime===+a.mtime){return}else{i=t.Changed}r(e,i)}}function createFileWatcherCallback(e){return function(r,n){return e(n===t.Changed?"change":"rename","")}}function createFsWatchCallbackForFileWatcherCallback(e,r){return function(n){if(n==="rename"){r(e,fileExists(e)?t.Created:t.Deleted)}else{r(e,t.Changed)}}}function createFsWatchCallbackForDirectoryWatcherCallback(t,r){return function(n,i){if(n==="rename"){r(!i?t:e.normalizePath(e.combinePaths(t,i)))}}}function fsWatch(e,r,n,i,o,s){var c;var u=!fileSystemEntryExists(e,r)?watchMissingFileSystemEntry():watchPresentFileSystemEntry();return{close:function(){u.close();u=undefined}};function invokeCallbackAndUpdateWatcher(e){n("rename","");if(u){u.close();u=e()}}function watchPresentFileSystemEntry(){if(c===undefined){if(f&&(process.platform==="win32"||process.platform==="darwin")){c={persistent:true,recursive:!!i}}else{c={persistent:true}}}try{var t=a.watch(e,c,n);t.on("error",function(){return invokeCallbackAndUpdateWatcher(watchMissingFileSystemEntry)});return t}catch(e){return watchPresentFileSystemEntryWithFsWatchFile()}}function watchPresentFileSystemEntryWithFsWatchFile(){return o(e,createFileWatcherCallback(n),s)}function watchMissingFileSystemEntry(){return o(e,function(n,i){if(i===t.Created&&fileSystemEntryExists(e,r)){invokeCallbackAndUpdateWatcher(watchPresentFileSystemEntry)}},s)}}function watchFileUsingFsWatch(e,t,r){return fsWatch(e,0,createFsWatchCallbackForFileWatcherCallback(e,t),false,fsWatchFile,r)}function createWatchFileUsingDynamicWatchFile(e){return function(t,r,n){return fsWatch(t,0,createFsWatchCallbackForFileWatcherCallback(t,r),false,e,n)}}function fsWatchDirectory(e,t,r){return fsWatch(e,1,t,!!r,fsWatchFile)}function watchDirectoryUsingFsWatch(e,t,r){return fsWatchDirectory(e,createFsWatchCallbackForDirectoryWatcherCallback(e,t),r)}function createWatchDirectoryUsing(e){return function(t,r){return e(t,function(){return r(t)},i.Medium)}}function readFile(e,t){if(!fileExists(e)){return undefined}var r=a.readFileSync(e);var n=r.length;if(n>=2&&r[0]===254&&r[1]===255){n&=~1;for(var i=0;i<n;i+=2){var o=r[i];r[i]=r[i+1];r[i+1]=o}return r.toString("utf16le",2)}if(n>=2&&r[0]===255&&r[1]===254){return r.toString("utf16le",2)}if(n>=3&&r[0]===239&&r[1]===187&&r[2]===191){return r.toString("utf8",3)}return r.toString("utf8")}function writeFile(e,t,r){if(r){t=n+t}var i;try{i=a.openSync(e,"w");a.writeSync(i,t,undefined,"utf8")}finally{if(i!==undefined){a.closeSync(i)}}}function getAccessibleFileSystemEntries(t){try{var r=a.readdirSync(t||".").sort();var n=[];var i=[];for(var o=0,s=r;o<s.length;o++){var c=s[o];if(c==="."||c===".."){continue}var u=e.combinePaths(t,c);var l=void 0;try{l=a.statSync(u)}catch(e){continue}if(l.isFile()){n.push(c)}else if(l.isDirectory()){i.push(c)}}return{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function readDirectory(t,r,n,i,a){return e.matchFiles(t,r,n,i,p,process.cwd(),a,getAccessibleFileSystemEntries)}function fileSystemEntryExists(e,t){try{var r=a.statSync(e);switch(t){case 0:return r.isFile();case 1:return r.isDirectory();default:return false}}catch(e){return false}}function fileExists(e){return fileSystemEntryExists(e,0)}function directoryExists(e){return fileSystemEntryExists(e,1)}function getDirectories(t){return e.filter(a.readdirSync(t),function(r){return fileSystemEntryExists(e.combinePaths(t,r),1)})}function realpath(e){try{return a.realpathSync(e)}catch(t){return e}}function getModifiedTime(e){try{return a.statSync(e).mtime}catch(e){return undefined}}function setModifiedTime(e,t){try{a.utimesSync(e,t,t)}catch(e){return}}function deleteFile(e){try{return a.unlinkSync(e)}catch(e){return}}function generateDjb2Hash(e){var t=e.split("").map(function(e){return e.charCodeAt(0)});return""+t.reduce(function(e,t){return(e<<5)+e+t},5381)}function createMD5HashUsingNativeCrypto(e){var t=c.createHash("md5");t.update(e);return t.digest("hex")}function createSHA256Hash(e){var t=c.createHash("sha256");t.update(e);return t.digest("hex")}}function getChakraSystem(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){if(r){t=n+t}ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,deleteFile:ChakraHost.deleteFile,getModifiedTime:ChakraHost.getModifiedTime,setModifiedTime:ChakraHost.setModifiedTime,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}function recursiveCreateDirectory(t,r){var n=e.getDirectoryPath(t);var i=n!==""&&t!==n&&!r.directoryExists(n);if(i){recursiveCreateDirectory(n,r)}if(i||!r.directoryExists(t)){r.createDirectory(t)}}var a;if(typeof ChakraHost!=="undefined"){a=getChakraSystem()}else if(typeof process!=="undefined"&&process.nextTick&&!process.browser&&"function"!=="undefined"){a=getNodeSystem()}if(a){var o=a.writeFile;a.writeFile=function(t,r,n){var i=e.getDirectoryPath(e.normalizeSlashes(t));if(i&&!a.directoryExists(i)){recursiveCreateDirectory(i,a)}o.call(a,t,r,n)}}return a}();if(e.sys&&e.sys.getEnvironmentVariable){setCustomPollingValues(e.sys);e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0}if(e.sys&&e.sys.debugMode){e.Debug.isDebugging=true}})(s||(s={}));var s;(function(e){function diag(e,t,r,n,i){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}e.Diagnostics={Unterminated_string_literal:diag(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:diag(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:diag(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:diag(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:diag(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:diag(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:diag(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:diag(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:diag(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:diag(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:diag(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:diag(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:diag(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:diag(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:diag(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:diag(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:diag(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:diag(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:diag(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:diag(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:diag(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:diag(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:diag(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:diag(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:diag(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:diag(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:diag(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:diag(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:diag(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:diag(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:diag(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:diag(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:diag(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:diag(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:diag(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:diag(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:diag(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:diag(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:diag(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:diag(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:diag(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:diag(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:diag(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:diag(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:diag(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:diag(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:diag(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:diag(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:diag(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:diag(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:diag(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:diag(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:diag(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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}'."),An_accessor_cannot_be_declared_in_an_ambient_context:diag(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:diag(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:diag(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:diag(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:diag(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:diag(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:diag(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:diag(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:diag(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:diag(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:diag(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:diag(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:diag(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:diag(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:diag(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:diag(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:diag(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:diag(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:diag(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:diag(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:diag(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:diag(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:diag(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:diag(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:diag(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:diag(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:diag(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:diag(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:diag(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:diag(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:diag(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:diag(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:diag(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:diag(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:diag(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:diag(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:diag(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:diag(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:diag(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:diag(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:diag(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:diag(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:diag(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:diag(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:diag(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:diag(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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:diag(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),const_declarations_must_be_initialized:diag(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:diag(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:diag(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:diag(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:diag(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:diag(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:diag(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:diag(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:diag(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(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:diag(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:diag(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:diag(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:diag(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:diag(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:diag(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:diag(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:diag(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:diag(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:diag(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:diag(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:diag(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:diag(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:diag(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:diag(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:diag(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:diag(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:diag(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:diag(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:diag(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:diag(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:diag(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:diag(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:diag(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:diag(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:diag(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:diag(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:diag(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:diag(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:diag(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:diag(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:diag(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:diag(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:diag(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:diag(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:diag(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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:diag(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:diag(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:diag(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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_to_remove_this_warning:diag(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 to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:diag(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:diag(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:diag(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:diag(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:diag(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:diag(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:diag(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:diag(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:diag(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:diag(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:diag(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:diag(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:diag(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:diag(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:diag(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:diag(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:diag(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:diag(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:diag(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:diag(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:diag(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),with_statements_are_not_allowed_in_an_async_function_block:diag(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:diag(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:diag(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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_import_is_only_supported_when_module_flag_is_commonjs_or_esNext:diag(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),Dynamic_import_must_have_one_specifier_as_an_argument:diag(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:diag(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:diag(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:diag(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:diag(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:diag(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:diag(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:diag(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:diag(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_using_ESNext_for_the_target_and_module_compiler_options:diag(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),A_label_is_not_allowed_here:diag(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:diag(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:diag(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:diag(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:diag(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:diag(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:diag(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),Duplicate_identifier_0:diag(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:diag(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:diag(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:diag(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:diag(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:diag(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:diag(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:diag(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:diag(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:diag(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:diag(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:diag(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:diag(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:diag(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:diag(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:diag(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:diag(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:diag(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:diag(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:diag(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:diag(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:diag(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:diag(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:diag(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:diag(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:diag(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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:diag(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:diag(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."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:diag(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:diag(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:diag(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:diag(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:diag(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:diag(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:diag(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:diag(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:diag(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:diag(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:diag(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:diag(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:diag(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:diag(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:diag(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:diag(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:diag(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:diag(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:diag(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:diag(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:diag(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:diag(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:diag(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:diag(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:diag(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:diag(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:diag(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:diag(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:diag(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:diag(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:diag(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:diag(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:diag(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:diag(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:diag(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:diag(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:diag(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:diag(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:diag(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:diag(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:diag(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:diag(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:diag(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:diag(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:diag(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:diag(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:diag(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:diag(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:diag(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:diag(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:diag(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:diag(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:diag(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_function_1_but_extended_class_2_defines_it_as_instance_member_property:diag(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:diag(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:diag(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:diag(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:diag(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:diag(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:diag(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:diag(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:diag(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:diag(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:diag(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:diag(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:diag(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:diag(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:diag(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:diag(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:diag(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:diag(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:diag(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:diag(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:diag(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:diag(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:diag(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:diag(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:diag(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:diag(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),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:diag(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:diag(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:diag(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:diag(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:diag(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:diag(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:diag(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:diag(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:diag(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:diag(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:diag(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:diag(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."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:diag(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:diag(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:diag(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:diag(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:diag(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:diag(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:diag(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:diag(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:diag(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:diag(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:diag(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:diag(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' 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:diag(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:diag(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:diag(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:diag(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:diag(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:diag(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:diag(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:diag(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:diag(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:diag(2568,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568","Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:diag(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:diag(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),Object_is_of_type_unknown:diag(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:diag(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:diag(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:diag(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:diag(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:diag(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:diag(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:diag(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:diag(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:diag(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:diag(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:diag(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:diag(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:diag(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:diag(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:diag(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),JSX_element_attributes_type_0_may_not_be_a_union_type:diag(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:diag(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:diag(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:diag(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:diag(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:diag(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:diag(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:diag(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:diag(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:diag(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:diag(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:diag(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:diag(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:diag(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:diag(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:diag(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:diag(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:diag(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:diag(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:diag(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:diag(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:diag(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.",true),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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_declaration_0:diag(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:diag(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:diag(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:diag(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:diag(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:diag(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:diag(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:diag(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:diag(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:diag(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:diag(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:diag(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:diag(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:diag(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:diag(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"),It_is_highly_likely_that_you_are_missing_a_semicolon:diag(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:diag(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:diag(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:diag(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:diag(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:diag(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:diag(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:diag(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:diag(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."),Import_declaration_0_is_using_private_name_1:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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}'."),The_current_host_does_not_support_the_0_option:diag(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:diag(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:diag(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:diag(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:diag(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:diag(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:diag(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:diag(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:diag(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:diag(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_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:diag(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:diag(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_in_can_have_at_most_one_Asterisk_character:diag(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:diag(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:diag(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:diag(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:diag(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:diag(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:diag(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:diag(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:diag(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:diag(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:diag(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:diag(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:diag(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:diag(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:diag(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:diag(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:diag(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:diag(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:diag(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:diag(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:diag(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:diag(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:diag(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:diag(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:diag(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:diag(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:diag(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:diag(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:diag(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:diag(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:diag(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:diag(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:diag(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:diag(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:diag(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:diag(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:diag(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:diag(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:diag(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:diag(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:diag(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:diag(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:diag(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:diag(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:diag(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:diag(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:diag(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:diag(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:diag(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:diag(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:diag(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:diag(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:diag(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:diag(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:diag(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:diag(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:diag(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:diag(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:diag(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:diag(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:diag(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:diag(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:diag(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:diag(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:diag(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:diag(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:diag(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:diag(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:diag(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:diag(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:diag(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:diag(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:diag(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:diag(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:diag(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",true),Report_errors_on_unused_locals:diag(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:diag(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:diag(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:diag(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:diag(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.",true),Import_emit_helpers_from_tslib:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:diag(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:diag(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:diag(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:diag(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:diag(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:diag(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:diag(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:diag(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:diag(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:diag(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:diag(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:diag(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:diag(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:diag(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:diag(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:diag(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:diag(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:diag(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:diag(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:diag(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:diag(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:diag(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:diag(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:diag(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:diag(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:diag(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:diag(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:diag(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:diag(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:diag(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",true),Found_1_error_Watching_for_file_changes:diag(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:diag(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:diag(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:diag(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",true),Include_modules_imported_with_json_extension:diag(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:diag(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",true),All_variables_are_unused:diag(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",true),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:diag(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:diag(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:diag(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:diag(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:diag(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:diag(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Projects_to_reference:diag(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:diag(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:diag(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}"),Composite_projects_may_not_disable_declaration_emit:diag(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:diag(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:diag(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_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:diag(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:diag(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:diag(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:diag(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:diag(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:diag(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:diag(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:diag(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:diag(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:diag(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:diag(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:diag(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:diag(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:diag(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:diag(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:diag(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:diag(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:diag(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:diag(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:diag(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:diag(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:diag(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:diag(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:diag(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:diag(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:diag(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:diag(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."),Variable_0_implicitly_has_an_1_type:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:diag(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:diag(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:diag(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",true),Unused_label:diag(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",true),Fallthrough_case_in_switch:diag(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:diag(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:diag(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:diag(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:diag(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:diag(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:diag(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:diag(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:diag(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:diag(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:diag(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:diag(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_which_implicitly_has_type_any:diag(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any_7041","The containing arrow function captures the global value of 'this' which implicitly has type 'any'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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}'?"),You_cannot_rename_this_element:diag(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:diag(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:diag(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:diag(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:diag(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:diag(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:diag(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:diag(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:diag(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:diag(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:diag(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:diag(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:diag(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:diag(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:diag(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:diag(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:diag(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:diag(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:diag(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:diag(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:diag(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:diag(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:diag(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:diag(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:diag(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:diag(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(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:diag(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:diag(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:diag(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:diag(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:diag(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:diag(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:diag(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:diag(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:diag(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:diag(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:diag(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:diag(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:diag(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),Add_missing_super_call:diag(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:diag(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:diag(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:diag(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:diag(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:diag(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:diag(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:diag(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:diag(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:diag(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:diag(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:diag(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:diag(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:diag(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:diag(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:diag(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:diag(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:diag(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:diag(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:diag(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:diag(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:diag(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:diag(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:diag(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:diag(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:diag(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:diag(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:diag(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:diag(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:diag(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:diag(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:diag(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:diag(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:diag(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:diag(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:diag(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:diag(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:diag(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:diag(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:diag(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:diag(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:diag(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:diag(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:diag(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:diag(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:diag(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:diag(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:diag(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:diag(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:diag(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:diag(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:diag(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:diag(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:diag(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:diag(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:diag(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:diag(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:diag(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:diag(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:diag(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:diag(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:diag(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:diag(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:diag(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:diag(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:diag(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:diag(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:diag(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:diag(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:diag(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:diag(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:diag(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:diag(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:diag(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:diag(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:diag(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:diag(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:diag(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:diag(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:diag(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:diag(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:diag(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:diag(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:diag(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:diag(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:diag(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:diag(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:diag(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:diag(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:diag(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:diag(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:diag(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:diag(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:diag(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:diag(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:diag(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:diag(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:diag(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Generate_types_for_0:diag(95067,e.DiagnosticCategory.Message,"Generate_types_for_0_95067","Generate types for '{0}'"),Generate_types_for_all_packages_without_types:diag(95068,e.DiagnosticCategory.Message,"Generate_types_for_all_packages_without_types_95068","Generate types for all packages without types"),Add_unknown_conversion_for_non_overlapping_types:diag(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:diag(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:diag(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:diag(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:diag(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names")}})(s||(s={}));var s;(function(e){var t;function tokenIsIdentifierOrKeyword(e){return e>=72}e.tokenIsIdentifierOrKeyword=tokenIsIdentifierOrKeyword;function tokenIsIdentifierOrKeywordOrGreaterThan(e){return e===30||tokenIsIdentifierOrKeyword(e)}e.tokenIsIdentifierOrKeywordOrGreaterThan=tokenIsIdentifierOrKeywordOrGreaterThan;var r=(t={abstract:118,any:120,as:119,bigint:146,boolean:123,break:73,case:74,catch:75,class:76,continue:78,const:77},t[""+"constructor"]=124,t.debugger=79,t.declare=125,t.default=80,t.delete=81,t.do=82,t.else=83,t.enum=84,t.export=85,t.extends=86,t.false=87,t.finally=88,t.for=89,t.from=144,t.function=90,t.get=126,t.if=91,t.implements=109,t.import=92,t.in=93,t.infer=127,t.instanceof=94,t.interface=110,t.is=128,t.keyof=129,t.let=111,t.module=130,t.namespace=131,t.never=132,t.new=95,t.null=96,t.number=135,t.object=136,t.package=112,t.private=113,t.protected=114,t.public=115,t.readonly=133,t.require=134,t.global=145,t.return=97,t.set=137,t.static=116,t.string=138,t.super=98,t.switch=99,t.symbol=139,t.this=100,t.throw=101,t.true=102,t.try=103,t.type=140,t.typeof=104,t.undefined=141,t.unique=142,t.unknown=143,t.var=105,t.void=106,t.while=107,t.with=108,t.yield=117,t.async=121,t.await=122,t.of=147,t);var i=e.createMapFromTemplate(r);var a=e.createMapFromTemplate(n({},r,{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,"</":29,">>":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":59,"+=":60,"-=":61,"*=":62,"**=":63,"/=":64,"%=":65,"<<=":66,">>=":67,">>>=":68,"&=":69,"|=":70,"^=":71,"@":58}));var 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];var 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];var 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];var u=[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];function lookupInUnicodeMap(e,t){if(e<t[0]){return false}var r=0;var n=t.length;var i;while(r+1<n){i=r+(n-r)/2;i-=i%2;if(t[i]<=e&&e<=t[i+1]){return true}if(e<t[i]){n=i}else{r=i+2}}return false}function isUnicodeIdentifierStart(e,t){return t>=1?lookupInUnicodeMap(e,c):lookupInUnicodeMap(e,o)}e.isUnicodeIdentifierStart=isUnicodeIdentifierStart;function isUnicodeIdentifierPart(e,t){return t>=1?lookupInUnicodeMap(e,u):lookupInUnicodeMap(e,s)}function makeReverseMap(e){var t=[];e.forEach(function(e,r){t[e]=r});return t}var l=makeReverseMap(a);function tokenToString(e){return l[e]}e.tokenToString=tokenToString;function stringToToken(e){return a.get(e)}e.stringToToken=stringToToken;function computeLineStarts(e){var t=new Array;var r=0;var n=0;while(r<e.length){var i=e.charCodeAt(r);r++;switch(i){case 13:if(e.charCodeAt(r)===10){r++}case 10:t.push(n);n=r;break;default:if(i>127&&isLineBreak(i)){t.push(n);n=r}break}}t.push(n);return t}e.computeLineStarts=computeLineStarts;function getPositionOfLineAndCharacter(e,t,r){return computePositionOfLineAndCharacter(getLineStarts(e),t,r,e.text)}e.getPositionOfLineAndCharacter=getPositionOfLineAndCharacter;function getPositionOfLineAndCharacterWithEdits(e,t,r){return computePositionOfLineAndCharacter(getLineStarts(e),t,r,e.text,true)}e.getPositionOfLineAndCharacterWithEdits=getPositionOfLineAndCharacterWithEdits;function computePositionOfLineAndCharacter(t,r,n,i,a){if(r<0||r>=t.length){if(a){r=r<0?0:r>=t.length?t.length-1:r}else{e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(i!==undefined?e.arraysEqual(t,computeLineStarts(i)):"unknown"))}}var o=t[r]+n;if(a){return o>t[r+1]?t[r+1]:typeof i==="string"&&o>i.length?i.length:o}if(r<t.length-1){e.Debug.assert(o<t[r+1])}else if(i!==undefined){e.Debug.assert(o<=i.length)}return o}e.computePositionOfLineAndCharacter=computePositionOfLineAndCharacter;function getLineStarts(e){return e.lineMap||(e.lineMap=computeLineStarts(e.text))}e.getLineStarts=getLineStarts;function computeLineAndCharacterOfPosition(t,r){var n=e.binarySearch(t,r,e.identity,e.compareValues);if(n<0){n=~n-1;e.Debug.assert(n!==-1,"position cannot precede the beginning of the file")}return{line:n,character:r-t[n]}}e.computeLineAndCharacterOfPosition=computeLineAndCharacterOfPosition;function getLineAndCharacterOfPosition(e,t){return computeLineAndCharacterOfPosition(getLineStarts(e),t)}e.getLineAndCharacterOfPosition=getLineAndCharacterOfPosition;function isWhiteSpaceLike(e){return isWhiteSpaceSingleLine(e)||isLineBreak(e)}e.isWhiteSpaceLike=isWhiteSpaceLike;function isWhiteSpaceSingleLine(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}e.isWhiteSpaceSingleLine=isWhiteSpaceSingleLine;function isLineBreak(e){return e===10||e===13||e===8232||e===8233}e.isLineBreak=isLineBreak;function isDigit(e){return e>=48&&e<=57}function isOctalDigit(e){return e>=48&&e<=55}e.isOctalDigit=isOctalDigit;function couldStartTrivia(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return true;case 35:return t===0;default:return r>127}}e.couldStartTrivia=couldStartTrivia;function skipTrivia(t,r,n,i){if(i===void 0){i=false}if(e.positionIsSynthesized(r)){return r}while(true){var a=t.charCodeAt(r);switch(a){case 13:if(t.charCodeAt(r+1)===10){r++}case 10:r++;if(n){return r}continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i){break}if(t.charCodeAt(r+1)===47){r+=2;while(r<t.length){if(isLineBreak(t.charCodeAt(r))){break}r++}continue}if(t.charCodeAt(r+1)===42){r+=2;while(r<t.length){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}continue}break;case 60:case 124:case 61:case 62:if(isConflictMarkerTrivia(t,r)){r=scanConflictMarkerTrivia(t,r);continue}break;case 35:if(r===0&&isShebangTrivia(t,r)){r=scanShebangTrivia(t,r);continue}break;default:if(a>127&&isWhiteSpaceLike(a)){r++;continue}break}return r}}e.skipTrivia=skipTrivia;var f="<<<<<<<".length;function isConflictMarkerTrivia(t,r){e.Debug.assert(r>=0);if(r===0||isLineBreak(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+f<t.length){for(var i=0;i<f;i++){if(t.charCodeAt(r+i)!==n){return false}}return n===61||t.charCodeAt(r+f)===32}}return false}function scanConflictMarkerTrivia(t,r,n){if(n){n(e.Diagnostics.Merge_conflict_marker_encountered,r,f)}var i=t.charCodeAt(r);var a=t.length;if(i===60||i===62){while(r<a&&!isLineBreak(t.charCodeAt(r))){r++}}else{e.Debug.assert(i===124||i===61);while(r<a){var o=t.charCodeAt(r);if((o===61||o===62)&&o!==i&&isConflictMarkerTrivia(t,r)){break}r++}}return r}var d=/^#!.*/;function isShebangTrivia(t,r){e.Debug.assert(r===0);return d.test(t)}function scanShebangTrivia(e,t){var r=d.exec(e)[0];t=t+r.length;return t}function iterateCommentRanges(e,t,r,n,i,a,o){var s;var c;var u;var l;var f=false;var d=n||r===0;var p=o;e:while(r>=0&&r<t.length){var g=t.charCodeAt(r);switch(g){case 13:if(t.charCodeAt(r+1)===10){r++}case 10:r++;if(n){break e}d=true;if(f){l=true}continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var _=t.charCodeAt(r+1);var m=false;if(_===47||_===42){var y=_===47?2:3;var h=r;r+=2;if(_===47){while(r<t.length){if(isLineBreak(t.charCodeAt(r))){m=true;break}r++}}else{while(r<t.length){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}}if(d){if(f){p=i(s,c,u,l,a,p);if(!e&&p){return p}}s=h;c=r;u=y;l=m;f=true}continue}break e;default:if(g>127&&isWhiteSpaceLike(g)){if(f&&isLineBreak(g)){l=true}r++;continue}break e}}if(f){p=i(s,c,u,l,a,p)}return p}function forEachLeadingCommentRange(e,t,r,n){return iterateCommentRanges(false,e,t,false,r,n)}e.forEachLeadingCommentRange=forEachLeadingCommentRange;function forEachTrailingCommentRange(e,t,r,n){return iterateCommentRanges(false,e,t,true,r,n)}e.forEachTrailingCommentRange=forEachTrailingCommentRange;function reduceEachLeadingCommentRange(e,t,r,n,i){return iterateCommentRanges(true,e,t,false,r,n,i)}e.reduceEachLeadingCommentRange=reduceEachLeadingCommentRange;function reduceEachTrailingCommentRange(e,t,r,n,i){return iterateCommentRanges(true,e,t,true,r,n,i)}e.reduceEachTrailingCommentRange=reduceEachTrailingCommentRange;function appendCommentRange(e,t,r,n,i,a){if(!a){a=[]}a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n});return a}function getLeadingCommentRanges(e,t){return reduceEachLeadingCommentRange(e,t,appendCommentRange,undefined,undefined)}e.getLeadingCommentRanges=getLeadingCommentRanges;function getTrailingCommentRanges(e,t){return reduceEachTrailingCommentRange(e,t,appendCommentRange,undefined,undefined)}e.getTrailingCommentRanges=getTrailingCommentRanges;function getShebang(e){var t=d.exec(e);if(t){return t[0]}}e.getShebang=getShebang;function isIdentifierStart(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&isUnicodeIdentifierStart(e,t)}e.isIdentifierStart=isIdentifierStart;function isIdentifierPart(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||e>127&&isUnicodeIdentifierPart(e,t)}e.isIdentifierPart=isIdentifierPart;function isIdentifierText(e,t){if(!isIdentifierStart(e.charCodeAt(0),t)){return false}for(var r=1;r<e.length;r++){if(!isIdentifierPart(e.charCodeAt(r),t)){return false}}return true}e.isIdentifierText=isIdentifierText;function createScanner(t,r,n,a,o,s,c){if(n===void 0){n=0}var u=a;var l;var f;var d;var p;var g;var _;var m;var y=0;setText(u,s,c);return{getStartPos:function(){return d},getTextPos:function(){return l},getToken:function(){return g},getTokenPos:function(){return p},getTokenText:function(){return u.substring(p,l)},getTokenValue:function(){return _},hasExtendedUnicodeEscape:function(){return(m&8)!==0},hasPrecedingLineBreak:function(){return(m&1)!==0},isIdentifier:function(){return g===72||g>108},isReservedWord:function(){return g>=73&&g<=108},isUnterminated:function(){return(m&4)!==0},getTokenFlags:function(){return m},reScanGreaterToken:reScanGreaterToken,reScanSlashToken:reScanSlashToken,reScanTemplateToken:reScanTemplateToken,scanJsxIdentifier:scanJsxIdentifier,scanJsxAttributeValue:scanJsxAttributeValue,reScanJsxToken:reScanJsxToken,scanJsxToken:scanJsxToken,scanJSDocToken:scanJSDocToken,scan:scan,getText:getText,setText:setText,setScriptTarget:setScriptTarget,setLanguageVariant:setLanguageVariant,setOnError:setOnError,setTextPos:setTextPos,setInJSDocType:setInJSDocType,tryScan:tryScan,lookAhead:lookAhead,scanRange:scanRange};function error(e,t,r){if(t===void 0){t=l}if(o){var n=l;l=t;o(e,r||0);l=n}}function scanNumberFragment(){var t=l;var r=false;var n=false;var i="";while(true){var a=u.charCodeAt(l);if(a===95){m|=512;if(r){r=false;n=true;i+=u.substring(t,l)}else if(n){error(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,l,1)}else{error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1)}l++;t=l;continue}if(isDigit(a)){r=true;n=false;l++;continue}break}if(u.charCodeAt(l-1)===95){error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1)}return i+u.substring(t,l)}function scanNumber(){var t=l;var r=scanNumberFragment();var n;var i;if(u.charCodeAt(l)===46){l++;n=scanNumberFragment()}var a=l;if(u.charCodeAt(l)===69||u.charCodeAt(l)===101){l++;m|=16;if(u.charCodeAt(l)===43||u.charCodeAt(l)===45)l++;var o=l;var s=scanNumberFragment();if(!s){error(e.Diagnostics.Digit_expected)}else{i=u.substring(a,o)+s;a=l}}var c;if(m&512){c=r;if(n){c+="."+n}if(i){c+=i}}else{c=u.substring(t,a)}if(n!==undefined||m&16){return{type:8,value:""+ +c}}else{_=c;var f=checkBigIntSuffix();return{type:f,value:_}}}function scanOctalDigits(){var e=l;while(isOctalDigit(u.charCodeAt(l))){l++}return+u.substring(e,l)}function scanExactNumberOfHexDigits(e,t){var r=scanHexDigits(e,false,t);return r?parseInt(r,16):-1}function scanMinimumNumberOfHexDigits(e,t){return scanHexDigits(e,true,t)}function scanHexDigits(t,r,n){var i=[];var a=false;var o=false;while(i.length<t||r){var s=u.charCodeAt(l);if(n&&s===95){m|=512;if(a){a=false;o=true}else if(o){error(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,l,1)}else{error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1)}l++;continue}a=n;if(s>=65&&s<=70){s+=97-65}else if(!(s>=48&&s<=57||s>=97&&s<=102)){break}i.push(s);l++;o=false}if(i.length<t){i=[]}if(u.charCodeAt(l-1)===95){error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1)}return String.fromCharCode.apply(String,i)}function scanString(t){if(t===void 0){t=false}var r=u.charCodeAt(l);l++;var n="";var i=l;while(true){if(l>=f){n+=u.substring(i,l);m|=4;error(e.Diagnostics.Unterminated_string_literal);break}var a=u.charCodeAt(l);if(a===r){n+=u.substring(i,l);l++;break}if(a===92&&!t){n+=u.substring(i,l);n+=scanEscapeSequence();i=l;continue}if(isLineBreak(a)&&!t){n+=u.substring(i,l);m|=4;error(e.Diagnostics.Unterminated_string_literal);break}l++}return n}function scanTemplateAndSetTokenValue(){var t=u.charCodeAt(l)===96;l++;var r=l;var n="";var i;while(true){if(l>=f){n+=u.substring(r,l);m|=4;error(e.Diagnostics.Unterminated_template_literal);i=t?14:17;break}var a=u.charCodeAt(l);if(a===96){n+=u.substring(r,l);l++;i=t?14:17;break}if(a===36&&l+1<f&&u.charCodeAt(l+1)===123){n+=u.substring(r,l);l+=2;i=t?15:16;break}if(a===92){n+=u.substring(r,l);n+=scanEscapeSequence();r=l;continue}if(a===13){n+=u.substring(r,l);l++;if(l<f&&u.charCodeAt(l)===10){l++}n+="\n";r=l;continue}l++}e.Debug.assert(i!==undefined);_=n;return i}function scanEscapeSequence(){l++;if(l>=f){error(e.Diagnostics.Unexpected_end_of_text);return""}var t=u.charCodeAt(l);l++;switch(t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(l<f&&u.charCodeAt(l)===123){m|=8;l++;return scanExtendedUnicodeEscape()}return scanHexadecimalEscape(4);case 120:return scanHexadecimalEscape(2);case 13:if(l<f&&u.charCodeAt(l)===10){l++}case 10:case 8232:case 8233:return"";default:return String.fromCharCode(t)}}function scanHexadecimalEscape(t){var r=scanExactNumberOfHexDigits(t,false);if(r>=0){return String.fromCharCode(r)}else{error(e.Diagnostics.Hexadecimal_digit_expected);return""}}function scanExtendedUnicodeEscape(){var t=scanMinimumNumberOfHexDigits(1,false);var r=t?parseInt(t,16):-1;var n=false;if(r<0){error(e.Diagnostics.Hexadecimal_digit_expected);n=true}else if(r>1114111){error(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);n=true}if(l>=f){error(e.Diagnostics.Unexpected_end_of_text);n=true}else if(u.charCodeAt(l)===125){l++}else{error(e.Diagnostics.Unterminated_Unicode_escape_sequence);n=true}if(n){return""}return utf16EncodeAsString(r)}function utf16EncodeAsString(t){e.Debug.assert(0<=t&&t<=1114111);if(t<=65535){return String.fromCharCode(t)}var r=Math.floor((t-65536)/1024)+55296;var n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}function peekUnicodeEscape(){if(l+5<f&&u.charCodeAt(l+1)===117){var e=l;l+=2;var t=scanExactNumberOfHexDigits(4,false);l=e;return t}return-1}function scanIdentifierParts(){var e="";var r=l;while(l<f){var n=u.charCodeAt(l);if(isIdentifierPart(n,t)){l++}else if(n===92){n=peekUnicodeEscape();if(!(n>=0&&isIdentifierPart(n,t))){break}e+=u.substring(r,l);e+=String.fromCharCode(n);l+=6;r=l}else{break}}e+=u.substring(r,l);return e}function getIdentifierToken(){var e=_.length;if(e>=2&&e<=11){var t=_.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(_);if(r!==undefined){return g=r}}}return g=72}function scanBinaryOrOctalDigits(t){var r="";var n=false;var i=false;while(true){var a=u.charCodeAt(l);if(a===95){m|=512;if(n){n=false;i=true}else if(i){error(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,l,1)}else{error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1)}l++;continue}n=true;if(!isDigit(a)||a-48>=t){break}r+=u[l];l++;i=false}if(u.charCodeAt(l-1)===95){error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1)}return r}function checkBigIntSuffix(){if(u.charCodeAt(l)===110){_+="n";if(m&384){_=e.parsePseudoBigInt(_)+"n"}l++;return 9}else{var t=m&128?parseInt(_.slice(2),2):m&256?parseInt(_.slice(2),8):+_;_=""+t;return 8}}function scan(){var i;d=l;m=0;var a=false;while(true){p=l;if(l>=f){return g=1}var o=u.charCodeAt(l);if(o===35&&l===0&&isShebangTrivia(u,l)){l=scanShebangTrivia(u,l);if(r){continue}else{return g=6}}switch(o){case 10:case 13:m|=1;if(r){l++;continue}else{if(o===13&&l+1<f&&u.charCodeAt(l+1)===10){l+=2}else{l++}return g=4}case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(r){l++;continue}else{while(l<f&&isWhiteSpaceSingleLine(u.charCodeAt(l))){l++}return g=5}case 33:if(u.charCodeAt(l+1)===61){if(u.charCodeAt(l+2)===61){return l+=3,g=36}return l+=2,g=34}l++;return g=52;case 34:case 39:_=scanString();return g=10;case 96:return g=scanTemplateAndSetTokenValue();case 37:if(u.charCodeAt(l+1)===61){return l+=2,g=65}l++;return g=43;case 38:if(u.charCodeAt(l+1)===38){return l+=2,g=54}if(u.charCodeAt(l+1)===61){return l+=2,g=69}l++;return g=49;case 40:l++;return g=20;case 41:l++;return g=21;case 42:if(u.charCodeAt(l+1)===61){return l+=2,g=62}if(u.charCodeAt(l+1)===42){if(u.charCodeAt(l+2)===61){return l+=3,g=63}return l+=2,g=41}l++;if(y&&!a&&m&1){a=true;continue}return g=40;case 43:if(u.charCodeAt(l+1)===43){return l+=2,g=44}if(u.charCodeAt(l+1)===61){return l+=2,g=60}l++;return g=38;case 44:l++;return g=27;case 45:if(u.charCodeAt(l+1)===45){return l+=2,g=45}if(u.charCodeAt(l+1)===61){return l+=2,g=61}l++;return g=39;case 46:if(isDigit(u.charCodeAt(l+1))){_=scanNumber().value;return g=8}if(u.charCodeAt(l+1)===46&&u.charCodeAt(l+2)===46){return l+=3,g=25}l++;return g=24;case 47:if(u.charCodeAt(l+1)===47){l+=2;while(l<f){if(isLineBreak(u.charCodeAt(l))){break}l++}if(r){continue}else{return g=2}}if(u.charCodeAt(l+1)===42){l+=2;if(u.charCodeAt(l)===42&&u.charCodeAt(l+1)!==47){m|=2}var s=false;while(l<f){var c=u.charCodeAt(l);if(c===42&&u.charCodeAt(l+1)===47){l+=2;s=true;break}if(isLineBreak(c)){m|=1}l++}if(!s){error(e.Diagnostics.Asterisk_Slash_expected)}if(r){continue}else{if(!s){m|=4}return g=3}}if(u.charCodeAt(l+1)===61){return l+=2,g=64}l++;return g=42;case 48:if(l+2<f&&(u.charCodeAt(l+1)===88||u.charCodeAt(l+1)===120)){l+=2;_=scanMinimumNumberOfHexDigits(1,true);if(!_){error(e.Diagnostics.Hexadecimal_digit_expected);_="0"}_="0x"+_;m|=64;return g=checkBigIntSuffix()}else if(l+2<f&&(u.charCodeAt(l+1)===66||u.charCodeAt(l+1)===98)){l+=2;_=scanBinaryOrOctalDigits(2);if(!_){error(e.Diagnostics.Binary_digit_expected);_="0"}_="0b"+_;m|=128;return g=checkBigIntSuffix()}else if(l+2<f&&(u.charCodeAt(l+1)===79||u.charCodeAt(l+1)===111)){l+=2;_=scanBinaryOrOctalDigits(8);if(!_){error(e.Diagnostics.Octal_digit_expected);_="0"}_="0o"+_;m|=256;return g=checkBigIntSuffix()}if(l+1<f&&isOctalDigit(u.charCodeAt(l+1))){_=""+scanOctalDigits();m|=32;return g=8}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:i=scanNumber(),g=i.type,_=i.value;return g;case 58:l++;return g=57;case 59:l++;return g=26;case 60:if(isConflictMarkerTrivia(u,l)){l=scanConflictMarkerTrivia(u,l,error);if(r){continue}else{return g=7}}if(u.charCodeAt(l+1)===60){if(u.charCodeAt(l+2)===61){return l+=3,g=66}return l+=2,g=46}if(u.charCodeAt(l+1)===61){return l+=2,g=31}if(n===1&&u.charCodeAt(l+1)===47&&u.charCodeAt(l+2)!==42){return l+=2,g=29}l++;return g=28;case 61:if(isConflictMarkerTrivia(u,l)){l=scanConflictMarkerTrivia(u,l,error);if(r){continue}else{return g=7}}if(u.charCodeAt(l+1)===61){if(u.charCodeAt(l+2)===61){return l+=3,g=35}return l+=2,g=33}if(u.charCodeAt(l+1)===62){return l+=2,g=37}l++;return g=59;case 62:if(isConflictMarkerTrivia(u,l)){l=scanConflictMarkerTrivia(u,l,error);if(r){continue}else{return g=7}}l++;return g=30;case 63:l++;return g=56;case 91:l++;return g=22;case 93:l++;return g=23;case 94:if(u.charCodeAt(l+1)===61){return l+=2,g=71}l++;return g=51;case 123:l++;return g=18;case 124:if(isConflictMarkerTrivia(u,l)){l=scanConflictMarkerTrivia(u,l,error);if(r){continue}else{return g=7}}if(u.charCodeAt(l+1)===124){return l+=2,g=55}if(u.charCodeAt(l+1)===61){return l+=2,g=70}l++;return g=50;case 125:l++;return g=19;case 126:l++;return g=53;case 64:l++;return g=58;case 92:var h=peekUnicodeEscape();if(h>=0&&isIdentifierStart(h,t)){l+=6;_=String.fromCharCode(h)+scanIdentifierParts();return g=getIdentifierToken()}error(e.Diagnostics.Invalid_character);l++;return g=0;default:if(isIdentifierStart(o,t)){l++;while(l<f&&isIdentifierPart(o=u.charCodeAt(l),t))l++;_=u.substring(p,l);if(o===92){_+=scanIdentifierParts()}return g=getIdentifierToken()}else if(isWhiteSpaceSingleLine(o)){l++;continue}else if(isLineBreak(o)){m|=1;l++;continue}error(e.Diagnostics.Invalid_character);l++;return g=0}}}function reScanGreaterToken(){if(g===30){if(u.charCodeAt(l)===62){if(u.charCodeAt(l+1)===62){if(u.charCodeAt(l+2)===61){return l+=3,g=68}return l+=2,g=48}if(u.charCodeAt(l+1)===61){return l+=2,g=67}l++;return g=47}if(u.charCodeAt(l)===61){l++;return g=32}}return g}function reScanSlashToken(){if(g===42||g===64){var r=p+1;var n=false;var i=false;while(true){if(r>=f){m|=4;error(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=u.charCodeAt(r);if(isLineBreak(a)){m|=4;error(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n){n=false}else if(a===47&&!i){r++;break}else if(a===91){i=true}else if(a===92){n=true}else if(a===93){i=false}r++}while(r<f&&isIdentifierPart(u.charCodeAt(r),t)){r++}l=r;_=u.substring(p,l);g=13}return g}function reScanTemplateToken(){e.Debug.assert(g===19,"'reScanTemplateToken' should only be called on a '}'");l=p;return g=scanTemplateAndSetTokenValue()}function reScanJsxToken(){l=p=d;return g=scanJsxToken()}function scanJsxToken(){d=p=l;if(l>=f){return g=1}var e=u.charCodeAt(l);if(e===60){if(u.charCodeAt(l+1)===47){l+=2;return g=29}l++;return g=28}if(e===123){l++;return g=18}var t=0;while(l<f){e=u.charCodeAt(l);if(e===123){break}if(e===60){if(isConflictMarkerTrivia(u,l)){l=scanConflictMarkerTrivia(u,l,error);return g=7}break}if(isLineBreak(e)&&t===0){t=-1}else if(!isWhiteSpaceLike(e)){t=l}l++}return t===-1?12:11}function scanJsxIdentifier(){if(tokenIsIdentifierOrKeyword(g)){var e=l;while(l<f){var r=u.charCodeAt(l);if(r===45||(e===l?isIdentifierStart(r,t):isIdentifierPart(r,t))){l++}else{break}}_+=u.substring(e,l)}return g}function scanJsxAttributeValue(){d=l;switch(u.charCodeAt(l)){case 34:case 39:_=scanString(true);return g=10;default:return scan()}}function scanJSDocToken(){d=p=l;m=0;if(l>=f){return g=1}var e=u.charCodeAt(l);l++;switch(e){case 9:case 11:case 12:case 32:while(l<f&&isWhiteSpaceSingleLine(u.charCodeAt(l))){l++}return g=5;case 64:return g=58;case 10:case 13:m|=1;return g=4;case 42:return g=40;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=28;case 61:return g=59;case 44:return g=27;case 46:return g=24;case 96:while(l<f&&u.charCodeAt(l)!==96){l++}_=u.substring(p+1,l);l++;return g=14}if(isIdentifierStart(e,6)){while(isIdentifierPart(u.charCodeAt(l),6)&&l<f){l++}_=u.substring(p,l);return g=getIdentifierToken()}else{return g=0}}function speculationHelper(e,t){var r=l;var n=d;var i=p;var a=g;var o=_;var s=m;var c=e();if(!c||t){l=r;d=n;p=i;g=a;_=o;m=s}return c}function scanRange(e,t,r){var n=f;var i=l;var a=d;var o=p;var s=g;var c=_;var y=m;setText(u,e,t);var h=r();f=n;l=i;d=a;p=o;g=s;_=c;m=y;return h}function lookAhead(e){return speculationHelper(e,true)}function tryScan(e){return speculationHelper(e,false)}function getText(){return u}function setText(e,t,r){u=e||"";f=r===undefined?u.length:t+r;setTextPos(t||0)}function setOnError(e){o=e}function setScriptTarget(e){t=e}function setLanguageVariant(e){n=e}function setTextPos(t){e.Debug.assert(t>=0);l=t;d=t;p=t;g=0;_=undefined;m=0}function setInJSDocType(e){y+=e?1:-1}}e.createScanner=createScanner})(s||(s={}));var s;(function(e){function isExternalModuleNameRelative(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)}e.isExternalModuleNameRelative=isExternalModuleNameRelative;function sortAndDeduplicateDiagnostics(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=sortAndDeduplicateDiagnostics})(s||(s={}));(function(e){e.resolvingEmptyArray=[];e.emptyMap=e.createMap();e.emptyUnderscoreEscapedMap=e.emptyMap;e.externalHelpersModuleNameText="tslib";e.defaultMaximumTruncationLength=160;function getDeclarationOfKind(e,t){var r=e.declarations;if(r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t){return a}}}return undefined}e.getDeclarationOfKind=getDeclarationOfKind;function createUnderscoreEscapedMap(){return new e.MapCtr}e.createUnderscoreEscapedMap=createUnderscoreEscapedMap;function hasEntries(e){return!!e&&!!e.size}e.hasEntries=hasEntries;function createSymbolTable(t){var r=e.createMap();if(t){for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}}return r}e.createSymbolTable=createSymbolTable;var t=createSingleLineStringWriter();function createSingleLineStringWriter(){var t="";var r=function(e){return t+=e};return{getText:function(){return t},write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:function(e,t){return r(e)},writeTrailingSemicolon:r,writeComment:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return false},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function toPath(t,r,n){var i=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,r);return n(i)}e.toPath=toPath;function changesAffectModuleResolution(t,r){return t.configFilePath!==r.configFilePath||e.moduleResolutionOptionDeclarations.some(function(n){return!e.isJsonEqual(e.getCompilerOptionValue(t,n),e.getCompilerOptionValue(r,n))})}e.changesAffectModuleResolution=changesAffectModuleResolution;function findAncestor(e,t){while(e){var r=t(e);if(r==="quit"){return undefined}else if(r){return e}e=e.parent}return undefined}e.findAncestor=findAncestor;function forEachAncestor(t,r){while(true){var n=r(t);if(n==="quit")return undefined;if(n!==undefined)return n;if(e.isSourceFile(t))return undefined;t=t.parent}}e.forEachAncestor=forEachAncestor;function forEachEntry(e,t){var r;var n=e.entries();for(var i=n.next(),a=i.value,o=i.done;!o;r=n.next(),a=r.value,o=r.done,r){var s=a[0],c=a[1];var u=t(c,s);if(u){return u}}return undefined}e.forEachEntry=forEachEntry;function forEachKey(e,t){var r;var n=e.keys();for(var i=n.next(),a=i.value,o=i.done;!o;r=n.next(),a=r.value,o=r.done,r){var s=t(a);if(s){return s}}return undefined}e.forEachKey=forEachKey;function copyEntries(e,t){e.forEach(function(e,r){t.set(r,e)})}e.copyEntries=copyEntries;function arrayToSet(t,r){return e.arrayToMap(t,r||function(e){return e},function(){return true})}e.arrayToSet=arrayToSet;function cloneMap(t){var r=e.createMap();copyEntries(t,r);return r}e.cloneMap=cloneMap;function usingSingleLineStringWriter(e){var r=t.getText();try{e(t);return t.getText()}finally{t.clear();t.writeKeyword(r)}}e.usingSingleLineStringWriter=usingSingleLineStringWriter;function getFullWidth(e){return e.end-e.pos}e.getFullWidth=getFullWidth;function getResolvedModule(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)}e.getResolvedModule=getResolvedModule;function setResolvedModule(t,r,n){if(!t.resolvedModules){t.resolvedModules=e.createMap()}t.resolvedModules.set(r,n)}e.setResolvedModule=setResolvedModule;function setResolvedTypeReferenceDirective(t,r,n){if(!t.resolvedTypeReferenceDirectiveNames){t.resolvedTypeReferenceDirectiveNames=e.createMap()}t.resolvedTypeReferenceDirectiveNames.set(r,n)}e.setResolvedTypeReferenceDirective=setResolvedTypeReferenceDirective;function projectReferenceIsEqualTo(e,t){return e.path===t.path&&!e.prepend===!t.prepend&&!e.circular===!t.circular}e.projectReferenceIsEqualTo=projectReferenceIsEqualTo;function moduleResolutionIsEqualTo(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&packageIdIsEqual(e.packageId,t.packageId)}e.moduleResolutionIsEqualTo=moduleResolutionIsEqualTo;function packageIdIsEqual(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function packageIdToString(e){var t=e.name,r=e.subModuleName,n=e.version;var i=r?t+"/"+r:t;return i+"@"+n}e.packageIdToString=packageIdToString;function typeDirectiveIsEqualTo(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary}e.typeDirectiveIsEqualTo=typeDirectiveIsEqualTo;function hasChangesInResolutions(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a<t.length;a++){var o=r[a];var s=n&&n.get(t[a]);var c=s?!o||!i(s,o):o;if(c){return true}}return false}e.hasChangesInResolutions=hasChangesInResolutions;function containsParseError(e){aggregateChildData(e);return(e.flags&131072)!==0}e.containsParseError=containsParseError;function aggregateChildData(t){if(!(t.flags&262144)){var r=(t.flags&32768)!==0||e.forEachChild(t,containsParseError);if(r){t.flags|=131072}t.flags|=262144}}function getSourceFileOfNode(e){while(e&&e.kind!==279){e=e.parent}return e}e.getSourceFileOfNode=getSourceFileOfNode;function isStatementWithLocals(e){switch(e.kind){case 218:case 246:case 225:case 226:case 227:return true}return false}e.isStatementWithLocals=isStatementWithLocals;function getStartPositionOfLine(t,r){e.Debug.assert(t>=0);return e.getLineStarts(r)[t]}e.getStartPositionOfLine=getStartPositionOfLine;function nodePosToString(t){var r=getSourceFileOfNode(t);var n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}e.nodePosToString=nodePosToString;function getEndLinePosition(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r);var i=t;var a=r.text;if(i+1===n.length){return a.length-1}else{var o=n[i];var s=n[i+1]-1;e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));while(o<=s&&e.isLineBreak(a.charCodeAt(s))){s--}return s}}e.getEndLinePosition=getEndLinePosition;function isFileLevelUniqueName(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}e.isFileLevelUniqueName=isFileLevelUniqueName;function nodeIsMissing(e){if(e===undefined){return true}return e.pos===e.end&&e.pos>=0&&e.kind!==1}e.nodeIsMissing=nodeIsMissing;function nodeIsPresent(e){return!nodeIsMissing(e)}e.nodeIsPresent=nodeIsPresent;function addStatementsAfterPrologue(e,t){if(t===undefined||t.length===0)return e;var r=0;for(;r<e.length;++r){if(!isPrologueDirective(e[r])){break}}e.splice.apply(e,[r,0].concat(t));return e}e.addStatementsAfterPrologue=addStatementsAfterPrologue;function isRecognizedTripleSlashComment(t,n,a){if(t.charCodeAt(n+1)===47&&n+2<a&&t.charCodeAt(n+2)===47){var o=t.substring(n,a);return o.match(e.fullTripleSlashReferencePathRegEx)||o.match(e.fullTripleSlashAMDReferencePathRegEx)||o.match(r)||o.match(i)?true:false}return false}e.isRecognizedTripleSlashComment=isRecognizedTripleSlashComment;function isPinnedComment(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}e.isPinnedComment=isPinnedComment;function getTokenPosOfNode(t,r,n){if(nodeIsMissing(t)){return t.pos}if(e.isJSDocNode(t)){return e.skipTrivia((r||getSourceFileOfNode(t)).text,t.pos,false,true)}if(n&&e.hasJSDocNodes(t)){return getTokenPosOfNode(t.jsDoc[0])}if(t.kind===306&&t._children.length>0){return getTokenPosOfNode(t._children[0],r,n)}return e.skipTrivia((r||getSourceFileOfNode(t)).text,t.pos)}e.getTokenPosOfNode=getTokenPosOfNode;function getNonDecoratorTokenPosOfNode(t,r){if(nodeIsMissing(t)||!t.decorators){return getTokenPosOfNode(t,r)}return e.skipTrivia((r||getSourceFileOfNode(t)).text,t.decorators.end)}e.getNonDecoratorTokenPosOfNode=getNonDecoratorTokenPosOfNode;function getSourceTextOfNodeFromSourceFile(e,t,r){if(r===void 0){r=false}return getTextOfNodeFromSourceText(e.text,t,r)}e.getSourceTextOfNodeFromSourceFile=getSourceTextOfNodeFromSourceFile;function isJSDocTypeExpressionOrChild(e){return e.kind===283||e.parent&&isJSDocTypeExpressionOrChild(e.parent)}function getTextOfNodeFromSourceText(t,r,n){if(n===void 0){n=false}if(nodeIsMissing(r)){return""}var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);if(isJSDocTypeExpressionOrChild(r)){i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")}return i}e.getTextOfNodeFromSourceText=getTextOfNodeFromSourceText;function getTextOfNode(e,t){if(t===void 0){t=false}return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(e),e,t)}e.getTextOfNode=getTextOfNode;function getPos(e){return e.pos}function indexOfNode(t,r){return e.binarySearch(t,r,getPos,e.compareValues)}e.indexOfNode=indexOfNode;function getEmitFlags(e){var t=e.emitNode;return t&&t.flags||0}e.getEmitFlags=getEmitFlags;function getLiteralText(t,r,n){if(!nodeIsSynthesized(t)&&t.parent&&!(e.isNumericLiteral(t)&&t.numericLiteralFlags&512||e.isBigIntLiteral(t))){return getSourceTextOfNodeFromSourceFile(r,t)}var i=n||getEmitFlags(t)&16777216?escapeString:escapeNonAsciiString;switch(t.kind){case 10:if(t.singleQuote){return"'"+i(t.text,39)+"'"}else{return'"'+i(t.text,34)+'"'}case 14:return"`"+i(t.text,96)+"`";case 15:return"`"+i(t.text,96)+"${";case 16:return"}"+i(t.text,96)+"${";case 17:return"}"+i(t.text,96)+"`";case 8:case 9:case 13:return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}e.getLiteralText=getLiteralText;function getTextOfConstantValue(t){return e.isString(t)?'"'+escapeNonAsciiString(t)+'"':""+t}e.getTextOfConstantValue=getTextOfConstantValue;function makeIdentifierFromModuleName(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=makeIdentifierFromModuleName;function isBlockOrCatchScoped(t){return(e.getCombinedNodeFlags(t)&3)!==0||isCatchClauseVariableDeclarationOrBindingElement(t)}e.isBlockOrCatchScoped=isBlockOrCatchScoped;function isCatchClauseVariableDeclarationOrBindingElement(e){var t=getRootDeclaration(e);return t.kind===237&&t.parent.kind===274}e.isCatchClauseVariableDeclarationOrBindingElement=isCatchClauseVariableDeclarationOrBindingElement;function isAmbientModule(t){return e.isModuleDeclaration(t)&&(t.name.kind===10||isGlobalScopeAugmentation(t))}e.isAmbientModule=isAmbientModule;function isModuleWithStringLiteralName(t){return e.isModuleDeclaration(t)&&t.name.kind===10}e.isModuleWithStringLiteralName=isModuleWithStringLiteralName;function isNonGlobalAmbientModule(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}e.isNonGlobalAmbientModule=isNonGlobalAmbientModule;function isEffectiveModuleDeclaration(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}e.isEffectiveModuleDeclaration=isEffectiveModuleDeclaration;function isShorthandAmbientModuleSymbol(e){return isShorthandAmbientModule(e.valueDeclaration)}e.isShorthandAmbientModuleSymbol=isShorthandAmbientModuleSymbol;function isShorthandAmbientModule(e){return e&&e.kind===244&&!e.body}function isBlockScopedContainerTopLevel(t){return t.kind===279||t.kind===244||e.isFunctionLike(t)}e.isBlockScopedContainerTopLevel=isBlockScopedContainerTopLevel;function isGlobalScopeAugmentation(e){return!!(e.flags&512)}e.isGlobalScopeAugmentation=isGlobalScopeAugmentation;function isExternalModuleAugmentation(e){return isAmbientModule(e)&&isModuleAugmentationExternal(e)}e.isExternalModuleAugmentation=isExternalModuleAugmentation;function isModuleAugmentationExternal(t){switch(t.parent.kind){case 279:return e.isExternalModule(t.parent);case 245:return isAmbientModule(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return false}e.isModuleAugmentationExternal=isModuleAugmentationExternal;function getNonAugmentationDeclaration(t){return e.find(t.declarations,function(t){return!isExternalModuleAugmentation(t)&&!(e.isModuleDeclaration(t)&&isGlobalScopeAugmentation(t))})}e.getNonAugmentationDeclaration=getNonAugmentationDeclaration;function isEffectiveExternalModule(t,r){return e.isExternalModule(t)||r.isolatedModules||e.getEmitModuleKind(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator}e.isEffectiveExternalModule=isEffectiveExternalModule;function isBlockScope(t,r){switch(t.kind){case 279:case 246:case 274:case 244:case 225:case 226:case 227:case 157:case 156:case 158:case 159:case 239:case 196:case 197:return true;case 218:return!e.isFunctionLike(r)}return false}e.isBlockScope=isBlockScope;function isDeclarationWithTypeParameters(t){switch(t.kind){case 297:case 304:case 293:return true;default:e.assertType(t);return isDeclarationWithTypeParameterChildren(t)}}e.isDeclarationWithTypeParameters=isDeclarationWithTypeParameters;function isDeclarationWithTypeParameterChildren(t){switch(t.kind){case 160:case 161:case 155:case 162:case 165:case 166:case 289:case 240:case 209:case 241:case 242:case 303:case 239:case 156:case 157:case 158:case 159:case 196:case 197:return true;default:e.assertType(t);return false}}e.isDeclarationWithTypeParameterChildren=isDeclarationWithTypeParameterChildren;function isAnyImportSyntax(e){switch(e.kind){case 249:case 248:return true;default:return false}}e.isAnyImportSyntax=isAnyImportSyntax;function isLateVisibilityPaintedStatement(e){switch(e.kind){case 249:case 248:case 219:case 240:case 239:case 244:case 242:case 241:case 243:return true;default:return false}}e.isLateVisibilityPaintedStatement=isLateVisibilityPaintedStatement;function isAnyImportOrReExport(t){return isAnyImportSyntax(t)||e.isExportDeclaration(t)}e.isAnyImportOrReExport=isAnyImportOrReExport;function getEnclosingBlockScopeContainer(e){return findAncestor(e.parent,function(e){return isBlockScope(e,e.parent)})}e.getEnclosingBlockScopeContainer=getEnclosingBlockScopeContainer;function declarationNameToString(e){return!e||getFullWidth(e)===0?"(Missing)":getTextOfNode(e)}e.declarationNameToString=declarationNameToString;function getNameFromIndexInfo(e){return e.declaration?declarationNameToString(e.declaration.parameters[0].name):undefined}e.getNameFromIndexInfo=getNameFromIndexInfo;function getTextOfPropertyName(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 149:return isStringOrNumericLiteralLike(t.expression)?e.escapeLeadingUnderscores(t.expression.text):undefined;default:return e.Debug.assertNever(t)}}e.getTextOfPropertyName=getTextOfPropertyName;function entityNameToString(t){switch(t.kind){case 72:return getFullWidth(t)===0?e.idText(t):getTextOfNode(t);case 148:return entityNameToString(t.left)+"."+entityNameToString(t.right);case 189:return entityNameToString(t.expression)+"."+entityNameToString(t.name);default:throw e.Debug.assertNever(t)}}e.entityNameToString=entityNameToString;function createDiagnosticForNode(e,t,r,n,i,a){var o=getSourceFileOfNode(e);return createDiagnosticForNodeInSourceFile(o,e,t,r,n,i,a)}e.createDiagnosticForNode=createDiagnosticForNode;function createDiagnosticForNodeArray(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,c,r.end-c,n,i,a,o,s)}e.createDiagnosticForNodeArray=createDiagnosticForNodeArray;function createDiagnosticForNodeInSourceFile(t,r,n,i,a,o,s){var c=getErrorSpanForNode(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}e.createDiagnosticForNodeInSourceFile=createDiagnosticForNodeInSourceFile;function createDiagnosticForNodeFromMessageChain(e,t,r){var n=getSourceFileOfNode(e);var i=getErrorSpanForNode(n,e);return{file:n,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}e.createDiagnosticForNodeFromMessageChain=createDiagnosticForNodeFromMessageChain;function getSpanOfTokenAtPosition(t,r){var n=e.createScanner(t.languageVersion,true,t.languageVariant,t.text,undefined,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}e.getSpanOfTokenAtPosition=getSpanOfTokenAtPosition;function getErrorSpanForArrowFunction(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&r.body.kind===218){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;var a=e.getLineAndCharacterOfPosition(t,r.body.end).line;if(i<a){return e.createTextSpan(n,getEndLinePosition(i,t)-n+1)}}return e.createTextSpanFromBounds(n,r.end)}function getErrorSpanForNode(t,r){var n=r;switch(r.kind){case 279:var i=e.skipTrivia(t.text,0,false);if(i===t.text.length){return e.createTextSpan(0,0)}return getSpanOfTokenAtPosition(t,i);case 237:case 186:case 240:case 209:case 241:case 244:case 243:case 278:case 239:case 196:case 156:case 158:case 159:case 242:case 154:case 153:n=r.name;break;case 197:return getErrorSpanForArrowFunction(t,r)}if(n===undefined){return getSpanOfTokenAtPosition(t,r.pos)}var a=nodeIsMissing(n);var o=a?n.pos:e.skipTrivia(t.text,n.pos);if(a){e.Debug.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");e.Debug.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")}else{e.Debug.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")}return e.createTextSpanFromBounds(o,n.end)}e.getErrorSpanForNode=getErrorSpanForNode;function isExternalOrCommonJsModule(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==undefined}e.isExternalOrCommonJsModule=isExternalOrCommonJsModule;function isJsonSourceFile(e){return e.scriptKind===6}e.isJsonSourceFile=isJsonSourceFile;function isEnumConst(t){return!!(e.getCombinedModifierFlags(t)&2048)}e.isEnumConst=isEnumConst;function isDeclarationReadonly(t){return!!(e.getCombinedModifierFlags(t)&64&&!e.isParameterPropertyDeclaration(t))}e.isDeclarationReadonly=isDeclarationReadonly;function isVarConst(t){return!!(e.getCombinedNodeFlags(t)&2)}e.isVarConst=isVarConst;function isLet(t){return!!(e.getCombinedNodeFlags(t)&1)}e.isLet=isLet;function isSuperCall(e){return e.kind===191&&e.expression.kind===98}e.isSuperCall=isSuperCall;function isImportCall(e){return e.kind===191&&e.expression.kind===92}e.isImportCall=isImportCall;function isLiteralImportTypeNode(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}e.isLiteralImportTypeNode=isLiteralImportTypeNode;function isPrologueDirective(e){return e.kind===221&&e.expression.kind===10}e.isPrologueDirective=isPrologueDirective;function getLeadingCommentRangesOfNode(t,r){return t.kind!==11?e.getLeadingCommentRanges(r.text,t.pos):undefined}e.getLeadingCommentRangesOfNode=getLeadingCommentRangesOfNode;function getJSDocCommentRanges(t,r){var n=t.kind===151||t.kind===150||t.kind===196||t.kind===197||t.kind===195?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return r.charCodeAt(e.pos+1)===42&&r.charCodeAt(e.pos+2)===42&&r.charCodeAt(e.pos+3)!==47})}e.getJSDocCommentRanges=getJSDocCommentRanges;e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var r=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var i=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function isPartOfTypeNode(t){if(163<=t.kind&&t.kind<=183){return true}switch(t.kind){case 120:case 143:case 135:case 146:case 138:case 123:case 139:case 136:case 141:case 132:return true;case 106:return t.parent.kind!==200;case 211:return!isExpressionWithTypeArgumentsInClassExtendsClause(t);case 150:return t.parent.kind===181||t.parent.kind===176;case 72:if(t.parent.kind===148&&t.parent.right===t){t=t.parent}else if(t.parent.kind===189&&t.parent.name===t){t=t.parent}e.Debug.assert(t.kind===72||t.kind===148||t.kind===189,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 148:case 189:case 100:{var r=t.parent;if(r.kind===167){return false}if(r.kind===183){return!r.isTypeOf}if(163<=r.kind&&r.kind<=183){return true}switch(r.kind){case 211:return!isExpressionWithTypeArgumentsInClassExtendsClause(r);case 150:return t===r.constraint;case 303:return t===r.constraint;case 154:case 153:case 151:case 237:return t===r.type;case 239:case 196:case 197:case 157:case 156:case 155:case 158:case 159:return t===r.type;case 160:case 161:case 162:return t===r.type;case 194:return t===r.type;case 191:case 192:return e.contains(r.typeArguments,t);case 193:return false}}}return false}e.isPartOfTypeNode=isPartOfTypeNode;function isChildOfNodeWithKind(e,t){while(e){if(e.kind===t){return true}e=e.parent}return false}e.isChildOfNodeWithKind=isChildOfNodeWithKind;function forEachReturnStatement(t,r){return traverse(t);function traverse(t){switch(t.kind){case 230:return r(t);case 246:case 218:case 222:case 223:case 224:case 225:case 226:case 227:case 231:case 232:case 271:case 272:case 233:case 235:case 274:return e.forEachChild(t,traverse)}}}e.forEachReturnStatement=forEachReturnStatement;function forEachYieldExpression(t,r){return traverse(t);function traverse(t){switch(t.kind){case 207:r(t);var n=t.expression;if(n){traverse(n)}return;case 243:case 241:case 244:case 242:case 240:case 209:return;default:if(e.isFunctionLike(t)){if(t.name&&t.name.kind===149){traverse(t.name.expression);return}}else if(!isPartOfTypeNode(t)){e.forEachChild(t,traverse)}}}}e.forEachYieldExpression=forEachYieldExpression;function getRestParameterElementType(t){if(t&&t.kind===169){return t.elementType}else if(t&&t.kind===164){return e.singleOrUndefined(t.typeArguments)}else{return undefined}}e.getRestParameterElementType=getRestParameterElementType;function getMembersOfDeclaration(e){switch(e.kind){case 241:case 240:case 209:case 168:return e.members;case 188:return e.properties}}e.getMembersOfDeclaration=getMembersOfDeclaration;function isVariableLike(e){if(e){switch(e.kind){case 186:case 278:case 151:case 275:case 154:case 153:case 276:case 237:return true}}return false}e.isVariableLike=isVariableLike;function isVariableLikeOrAccessor(t){return isVariableLike(t)||e.isAccessor(t)}e.isVariableLikeOrAccessor=isVariableLikeOrAccessor;function isVariableDeclarationInVariableStatement(e){return e.parent.kind===238&&e.parent.parent.kind===219}e.isVariableDeclarationInVariableStatement=isVariableDeclarationInVariableStatement;function isValidESSymbolDeclaration(t){return e.isVariableDeclaration(t)?isVarConst(t)&&e.isIdentifier(t.name)&&isVariableDeclarationInVariableStatement(t):e.isPropertyDeclaration(t)?hasReadonlyModifier(t)&&hasStaticModifier(t):e.isPropertySignature(t)&&hasReadonlyModifier(t)}e.isValidESSymbolDeclaration=isValidESSymbolDeclaration;function introducesArgumentsExoticObject(e){switch(e.kind){case 156:case 155:case 157:case 158:case 159:case 239:case 196:return true}return false}e.introducesArgumentsExoticObject=introducesArgumentsExoticObject;function unwrapInnermostStatementOfLabel(e,t){while(true){if(t){t(e)}if(e.statement.kind!==233){return e.statement}e=e.statement}}e.unwrapInnermostStatementOfLabel=unwrapInnermostStatementOfLabel;function isFunctionBlock(t){return t&&t.kind===218&&e.isFunctionLike(t.parent)}e.isFunctionBlock=isFunctionBlock;function isObjectLiteralMethod(e){return e&&e.kind===156&&e.parent.kind===188}e.isObjectLiteralMethod=isObjectLiteralMethod;function isObjectLiteralOrClassExpressionMethod(e){return e.kind===156&&(e.parent.kind===188||e.parent.kind===209)}e.isObjectLiteralOrClassExpressionMethod=isObjectLiteralOrClassExpressionMethod;function isIdentifierTypePredicate(e){return e&&e.kind===1}e.isIdentifierTypePredicate=isIdentifierTypePredicate;function isThisTypePredicate(e){return e&&e.kind===0}e.isThisTypePredicate=isThisTypePredicate;function getPropertyAssignment(e,t,r){return e.properties.filter(function(e){if(e.kind===275){var n=getTextOfPropertyName(e.name);return t===n||!!r&&r===n}return false})}e.getPropertyAssignment=getPropertyAssignment;function getTsConfigObjectLiteralExpression(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=getTsConfigObjectLiteralExpression;function getTsConfigPropArrayElementValue(t,r,n){return e.firstDefined(getTsConfigPropArray(t,r),function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,function(t){return e.isStringLiteral(t)&&t.text===n}):undefined})}e.getTsConfigPropArrayElementValue=getTsConfigPropArrayElementValue;function getTsConfigPropArray(t,r){var n=getTsConfigObjectLiteralExpression(t);return n?getPropertyAssignment(n,r):e.emptyArray}e.getTsConfigPropArray=getTsConfigPropArray;function getContainingFunction(t){return findAncestor(t.parent,e.isFunctionLike)}e.getContainingFunction=getContainingFunction;function getContainingClass(t){return findAncestor(t.parent,e.isClassLike)}e.getContainingClass=getContainingClass;function getThisContainer(t,r){e.Debug.assert(t.kind!==279);while(true){t=t.parent;if(!t){return e.Debug.fail()}switch(t.kind){case 149:if(e.isClassLike(t.parent.parent)){return t}t=t.parent;break;case 152:if(t.parent.kind===151&&e.isClassElement(t.parent.parent)){t=t.parent.parent}else if(e.isClassElement(t.parent)){t=t.parent}break;case 197:if(!r){continue}case 239:case 196:case 244:case 154:case 153:case 156:case 155:case 157:case 158:case 159:case 160:case 161:case 162:case 243:case 279:return t}}}e.getThisContainer=getThisContainer;function getNewTargetContainer(e){var t=getThisContainer(e,false);if(t){switch(t.kind){case 157:case 239:case 196:return t}}return undefined}e.getNewTargetContainer=getNewTargetContainer;function getSuperContainer(t,r){while(true){t=t.parent;if(!t){return t}switch(t.kind){case 149:t=t.parent;break;case 239:case 196:case 197:if(!r){continue}case 154:case 153:case 156:case 155:case 157:case 158:case 159:return t;case 152:if(t.parent.kind===151&&e.isClassElement(t.parent.parent)){t=t.parent.parent}else if(e.isClassElement(t.parent)){t=t.parent}break}}}e.getSuperContainer=getSuperContainer;function getImmediatelyInvokedFunctionExpression(e){if(e.kind===196||e.kind===197){var t=e;var r=e.parent;while(r.kind===195){t=r;r=r.parent}if(r.kind===191&&r.expression===t){return r}}}e.getImmediatelyInvokedFunctionExpression=getImmediatelyInvokedFunctionExpression;function isSuperProperty(e){var t=e.kind;return(t===189||t===190)&&e.expression.kind===98}e.isSuperProperty=isSuperProperty;function isThisProperty(e){var t=e.kind;return(t===189||t===190)&&e.expression.kind===100}e.isThisProperty=isThisProperty;function getEntityNameFromTypeNode(e){switch(e.kind){case 164:return e.typeName;case 211:return isEntityNameExpression(e.expression)?e.expression:undefined;case 72:case 148:return e}return undefined}e.getEntityNameFromTypeNode=getEntityNameFromTypeNode;function getInvokedExpression(e){switch(e.kind){case 193:return e.tag;case 262:case 261:return e.tagName;default:return e.expression}}e.getInvokedExpression=getInvokedExpression;function nodeCanBeDecorated(e,t,r){switch(e.kind){case 240:return true;case 154:return t.kind===240;case 158:case 159:case 156:return e.body!==undefined&&t.kind===240;case 151:return t.body!==undefined&&(t.kind===157||t.kind===156||t.kind===159)&&r.kind===240}return false}e.nodeCanBeDecorated=nodeCanBeDecorated;function nodeIsDecorated(e,t,r){return e.decorators!==undefined&&nodeCanBeDecorated(e,t,r)}e.nodeIsDecorated=nodeIsDecorated;function nodeOrChildIsDecorated(e,t,r){return nodeIsDecorated(e,t,r)||childIsDecorated(e,t)}e.nodeOrChildIsDecorated=nodeOrChildIsDecorated;function childIsDecorated(t,r){switch(t.kind){case 240:return e.some(t.members,function(e){return nodeOrChildIsDecorated(e,t,r)});case 156:case 159:return e.some(t.parameters,function(e){return nodeIsDecorated(e,t,r)});default:return false}}e.childIsDecorated=childIsDecorated;function isJSXTagName(e){var t=e.parent;if(t.kind===262||t.kind===261||t.kind===263){return t.tagName===e}return false}e.isJSXTagName=isJSXTagName;function isExpressionNode(e){switch(e.kind){case 98:case 96:case 102:case 87:case 13:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 212:case 194:case 213:case 195:case 196:case 209:case 197:case 200:case 198:case 199:case 202:case 203:case 204:case 205:case 208:case 206:case 14:case 210:case 260:case 261:case 264:case 207:case 201:case 214:return true;case 148:while(e.parent.kind===148){e=e.parent}return e.parent.kind===167||isJSXTagName(e);case 72:if(e.parent.kind===167||isJSXTagName(e)){return true}case 8:case 9:case 10:case 100:return isInExpressionContext(e);default:return false}}e.isExpressionNode=isExpressionNode;function isInExpressionContext(e){var t=e.parent;switch(t.kind){case 237:case 151:case 154:case 153:case 278:case 275:case 186:return t.initializer===e;case 221:case 222:case 223:case 224:case 230:case 231:case 232:case 271:case 234:return t.expression===e;case 225:var r=t;return r.initializer===e&&r.initializer.kind!==238||r.condition===e||r.incrementor===e;case 226:case 227:var n=t;return n.initializer===e&&n.initializer.kind!==238||n.expression===e;case 194:case 212:return e===t.expression;case 216:return e===t.expression;case 149:return e===t.expression;case 152:case 270:case 269:case 277:return true;case 211:return t.expression===e&&isExpressionWithTypeArgumentsInClassExtendsClause(t);case 276:return t.objectAssignmentInitializer===e;default:return isExpressionNode(t)}}e.isInExpressionContext=isInExpressionContext;function isExternalModuleImportEqualsDeclaration(e){return e.kind===248&&e.moduleReference.kind===259}e.isExternalModuleImportEqualsDeclaration=isExternalModuleImportEqualsDeclaration;function getExternalModuleImportEqualsDeclarationExpression(t){e.Debug.assert(isExternalModuleImportEqualsDeclaration(t));return t.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=getExternalModuleImportEqualsDeclarationExpression;function isInternalModuleImportEqualsDeclaration(e){return e.kind===248&&e.moduleReference.kind!==259}e.isInternalModuleImportEqualsDeclaration=isInternalModuleImportEqualsDeclaration;function isSourceFileJS(e){return isInJSFile(e)}e.isSourceFileJS=isSourceFileJS;function isSourceFileNotJS(e){return!isInJSFile(e)}e.isSourceFileNotJS=isSourceFileNotJS;function isInJSFile(e){return!!e&&!!(e.flags&65536)}e.isInJSFile=isInJSFile;function isInJsonFile(e){return!!e&&!!(e.flags&16777216)}e.isInJsonFile=isInJsonFile;function isInJSDoc(e){return!!e&&!!(e.flags&2097152)}e.isInJSDoc=isInJSDoc;function isJSDocIndexSignature(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===138||t.typeArguments[0].kind===135)}e.isJSDocIndexSignature=isJSDocIndexSignature;function isRequireCall(t,r){if(t.kind!==191){return false}var n=t,i=n.expression,a=n.arguments;if(i.kind!==72||i.escapedText!=="require"){return false}if(a.length!==1){return false}var o=a[0];return!r||e.isStringLiteralLike(o)}e.isRequireCall=isRequireCall;function isSingleOrDoubleQuote(e){return e===39||e===34}e.isSingleOrDoubleQuote=isSingleOrDoubleQuote;function isStringDoubleQuoted(e,t){return getSourceTextOfNodeFromSourceFile(t,e).charCodeAt(0)===34}e.isStringDoubleQuoted=isStringDoubleQuoted;function getDeclarationOfExpando(t){if(!t.parent){return undefined}var r;var n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!isInJSFile(t)&&!isVarConst(t.parent)){return undefined}r=t.parent.name;n=t.parent}else if(e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===59&&t.parent.right===t){r=t.parent.left;n=r}else if(e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===55){if(e.isVariableDeclaration(t.parent.parent)&&t.parent.parent.initializer===t.parent){r=t.parent.parent.name;n=t.parent.parent}else if(e.isBinaryExpression(t.parent.parent)&&t.parent.parent.operatorToken.kind===59&&t.parent.parent.right===t.parent){r=t.parent.parent.left;n=r}if(!r||!isEntityNameExpression(r)||!isSameEntityName(r,t.parent.left)){return undefined}}if(!r||!getExpandoInitializer(t,isPrototypeAccess(r))){return undefined}return n}e.getDeclarationOfExpando=getDeclarationOfExpando;function isAssignmentDeclaration(t){return e.isBinaryExpression(t)||e.isPropertyAccessExpression(t)||e.isIdentifier(t)||e.isCallExpression(t)}e.isAssignmentDeclaration=isAssignmentDeclaration;function getEffectiveInitializer(t){if(isInJSFile(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&t.initializer.operatorToken.kind===55&&t.name&&isEntityNameExpression(t.name)&&isSameEntityName(t.name,t.initializer.left)){return t.initializer.right}return t.initializer}e.getEffectiveInitializer=getEffectiveInitializer;function getDeclaredExpandoInitializer(e){var t=getEffectiveInitializer(e);return t&&getExpandoInitializer(t,isPrototypeAccess(e.name))}e.getDeclaredExpandoInitializer=getDeclaredExpandoInitializer;function hasExpandoValueProperty(t,r){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&t.name.escapedText==="value"&&t.initializer&&getExpandoInitializer(t.initializer,r)})}function getAssignedExpandoInitializer(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===59){var r=isPrototypeAccess(t.parent.left);return getExpandoInitializer(t.parent.right,r)||getDefaultedExpandoInitializer(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&isBindableObjectDefinePropertyCall(t)){var n=hasExpandoValueProperty(t.arguments[2],t.arguments[1].text==="prototype");if(n){return n}}}e.getAssignedExpandoInitializer=getAssignedExpandoInitializer;function getExpandoInitializer(t,r){if(e.isCallExpression(t)){var n=skipParentheses(t.expression);return n.kind===196||n.kind===197?t:undefined}if(t.kind===196||t.kind===209||t.kind===197){return t}if(e.isObjectLiteralExpression(t)&&(t.properties.length===0||r)){return t}}e.getExpandoInitializer=getExpandoInitializer;function getDefaultedExpandoInitializer(t,r,n){var i=e.isBinaryExpression(r)&&r.operatorToken.kind===55&&getExpandoInitializer(r.right,n);if(i&&isSameEntityName(t,r.left)){return i}}function isDefaultedExpandoInitializer(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===59?t.parent.left:undefined;return r&&getExpandoInitializer(t.right,isPrototypeAccess(r))&&isEntityNameExpression(r)&&isSameEntityName(r,t.left)}e.isDefaultedExpandoInitializer=isDefaultedExpandoInitializer;function getNameOfExpando(t){if(e.isBinaryExpression(t.parent)){var r=t.parent.operatorToken.kind===55&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(r.operatorToken.kind===59&&e.isIdentifier(r.left)){return r.left}}else if(e.isVariableDeclaration(t.parent)){return t.parent.name}}e.getNameOfExpando=getNameOfExpando;function isSameEntityName(t,r){if(e.isIdentifier(t)&&e.isIdentifier(r)){return t.escapedText===r.escapedText}if(e.isIdentifier(t)&&e.isPropertyAccessExpression(r)){return(r.expression.kind===100||e.isIdentifier(r.expression)&&(r.expression.escapedText==="window"||r.expression.escapedText==="self"||r.expression.escapedText==="global"))&&isSameEntityName(t,r.name)}if(e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)){return t.name.escapedText===r.name.escapedText&&isSameEntityName(t.expression,r.expression)}return false}function getRightMostAssignedExpression(e){while(isAssignmentExpression(e,true)){e=e.right}return e}e.getRightMostAssignedExpression=getRightMostAssignedExpression;function isExportsIdentifier(t){return e.isIdentifier(t)&&t.escapedText==="exports"}e.isExportsIdentifier=isExportsIdentifier;function isModuleExportsPropertyAccessExpression(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&t.expression.escapedText==="module"&&t.name.escapedText==="exports"}e.isModuleExportsPropertyAccessExpression=isModuleExportsPropertyAccessExpression;function getAssignmentDeclarationKind(e){var t=getAssignmentDeclarationKindWorker(e);return t===5||isInJSFile(e)?t:0}e.getAssignmentDeclarationKind=getAssignmentDeclarationKind;function isBindableObjectDefinePropertyCall(t){return e.length(t.arguments)===3&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&e.idText(t.expression.expression)==="Object"&&e.idText(t.expression.name)==="defineProperty"&&isStringOrNumericLiteralLike(t.arguments[1])&&isEntityNameExpression(t.arguments[0])}e.isBindableObjectDefinePropertyCall=isBindableObjectDefinePropertyCall;function getAssignmentDeclarationKindWorker(t){if(e.isCallExpression(t)){if(!isBindableObjectDefinePropertyCall(t)){return 0}var r=t.arguments[0];if(isExportsIdentifier(r)||isModuleExportsPropertyAccessExpression(r)){return 8}if(e.isPropertyAccessExpression(r)&&r.name.escapedText==="prototype"&&isEntityNameExpression(r.expression)){return 9}return 7}if(t.operatorToken.kind!==59||!e.isPropertyAccessExpression(t.left)){return 0}var n=t.left;if(isEntityNameExpression(n.expression)&&n.name.escapedText==="prototype"&&e.isObjectLiteralExpression(getInitializerOfBinaryExpression(t))){return 6}return getAssignmentDeclarationPropertyAccessKind(n)}function getAssignmentDeclarationPropertyAccessKind(t){if(t.expression.kind===100){return 4}else if(isModuleExportsPropertyAccessExpression(t)){return 2}else if(isEntityNameExpression(t.expression)){if(isPrototypeAccess(t.expression)){return 3}var r=t;while(e.isPropertyAccessExpression(r.expression)){r=r.expression}e.Debug.assert(e.isIdentifier(r.expression));var n=r.expression;if(n.escapedText==="exports"||n.escapedText==="module"&&r.name.escapedText==="exports"){return 1}return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=getAssignmentDeclarationPropertyAccessKind;function getInitializerOfBinaryExpression(t){while(e.isBinaryExpression(t.right)){t=t.right}return t.right}e.getInitializerOfBinaryExpression=getInitializerOfBinaryExpression;function isPrototypePropertyAssignment(t){return e.isBinaryExpression(t)&&getAssignmentDeclarationKind(t)===3}e.isPrototypePropertyAssignment=isPrototypePropertyAssignment;function isSpecialPropertyDeclaration(t){return isInJSFile(t)&&t.parent&&t.parent.kind===221&&!!e.getJSDocTypeTag(t.parent)}e.isSpecialPropertyDeclaration=isSpecialPropertyDeclaration;function isFunctionSymbol(t){if(!t||!t.valueDeclaration){return false}var r=t.valueDeclaration;return r.kind===239||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)}e.isFunctionSymbol=isFunctionSymbol;function importFromModuleSpecifier(t){return tryGetImportFromModuleSpecifier(t)||e.Debug.fail(e.Debug.showSyntaxKind(t.parent))}e.importFromModuleSpecifier=importFromModuleSpecifier;function tryGetImportFromModuleSpecifier(t){switch(t.parent.kind){case 249:case 255:return t.parent;case 259:return t.parent.parent;case 191:return isImportCall(t.parent)||isRequireCall(t.parent,false)?t.parent:undefined;case 182:e.Debug.assert(e.isStringLiteral(t));return e.tryCast(t.parent.parent,e.isImportTypeNode);default:return undefined}}e.tryGetImportFromModuleSpecifier=tryGetImportFromModuleSpecifier;function getExternalModuleName(t){switch(t.kind){case 249:case 255:return t.moduleSpecifier;case 248:return t.moduleReference.kind===259?t.moduleReference.expression:undefined;case 183:return isLiteralImportTypeNode(t)?t.argument.literal:undefined;default:return e.Debug.assertNever(t)}}e.getExternalModuleName=getExternalModuleName;function getNamespaceDeclarationNode(t){switch(t.kind){case 249:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 248:return t;case 255:return undefined;default:return e.Debug.assertNever(t)}}e.getNamespaceDeclarationNode=getNamespaceDeclarationNode;function isDefaultImport(e){return e.kind===249&&!!e.importClause&&!!e.importClause.name}e.isDefaultImport=isDefaultImport;function hasQuestionToken(e){if(e){switch(e.kind){case 151:case 156:case 155:case 276:case 275:case 154:case 153:return e.questionToken!==undefined}}return false}e.hasQuestionToken=hasQuestionToken;function isJSDocConstructSignature(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):undefined;var n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&n.escapedText==="new"}e.isJSDocConstructSignature=isJSDocConstructSignature;function isJSDocTypeAlias(e){return e.kind===304||e.kind===297}e.isJSDocTypeAlias=isJSDocTypeAlias;function isTypeAlias(t){return isJSDocTypeAlias(t)||e.isTypeAliasDeclaration(t)}e.isTypeAlias=isTypeAlias;function getSourceOfAssignment(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&t.expression.operatorToken.kind===59?t.expression.right:undefined}function getSourceOfDefaultedAssignment(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&getAssignmentDeclarationKind(t.expression)!==0&&e.isBinaryExpression(t.expression.right)&&t.expression.right.operatorToken.kind===55?t.expression.right.right:undefined}function getSingleInitializerOfVariableStatementOrPropertyDeclaration(e){switch(e.kind){case 219:var t=getSingleVariableOfVariableStatement(e);return t&&t.initializer;case 154:return e.initializer;case 275:return e.initializer}}function getSingleVariableOfVariableStatement(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):undefined}function getNestedModuleDeclaration(t){return e.isModuleDeclaration(t)&&t.body&&t.body.kind===244?t.body:undefined}function getJSDocCommentsAndTags(t){var r;if(isVariableLike(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)){r=e.addRange(r,t.initializer.jsDoc)}var n=t;while(n&&n.parent){if(e.hasJSDocNodes(n)){r=e.addRange(r,n.jsDoc)}if(n.kind===151){r=e.addRange(r,e.getJSDocParameterTags(n));break}if(n.kind===150){r=e.addRange(r,e.getJSDocTypeParameterTags(n));break}n=getNextJSDocCommentLocation(n)}return r||e.emptyArray}e.getJSDocCommentsAndTags=getJSDocCommentsAndTags;function getNextJSDocCommentLocation(t){var r=t.parent;if(r.kind===275||r.kind===154||r.kind===221&&t.kind===189||getNestedModuleDeclaration(r)||e.isBinaryExpression(t)&&t.operatorToken.kind===59){return r}else if(r.parent&&(getSingleVariableOfVariableStatement(r.parent)===t||e.isBinaryExpression(r)&&r.operatorToken.kind===59)){return r.parent}else if(r.parent&&r.parent.parent&&(getSingleVariableOfVariableStatement(r.parent.parent)||getSingleInitializerOfVariableStatementOrPropertyDeclaration(r.parent.parent)===t||getSourceOfDefaultedAssignment(r.parent.parent))){return r.parent.parent}}function getParameterSymbolFromJSDoc(t){if(t.symbol){return t.symbol}if(!e.isIdentifier(t.name)){return undefined}var r=t.name.escapedText;var n=getHostSignatureFromJSDoc(t);if(!n){return undefined}var i=e.find(n.parameters,function(e){return e.name.kind===72&&e.name.escapedText===r});return i&&i.symbol}e.getParameterSymbolFromJSDoc=getParameterSymbolFromJSDoc;function getHostSignatureFromJSDoc(e){return getHostSignatureFromJSDocHost(getJSDocHost(e))}e.getHostSignatureFromJSDoc=getHostSignatureFromJSDoc;function getHostSignatureFromJSDocHost(t){var r=getSourceOfDefaultedAssignment(t)||getSourceOfAssignment(t)||getSingleInitializerOfVariableStatementOrPropertyDeclaration(t)||getSingleVariableOfVariableStatement(t)||getNestedModuleDeclaration(t)||t;return r&&e.isFunctionLike(r)?r:undefined}e.getHostSignatureFromJSDocHost=getHostSignatureFromJSDocHost;function getJSDocHost(t){return e.Debug.assertDefined(findAncestor(t.parent,e.isJSDoc)).parent}e.getJSDocHost=getJSDocHost;function getTypeParameterFromJsDoc(t){var r=t.name.escapedText;var n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.escapedText===r})}e.getTypeParameterFromJsDoc=getTypeParameterFromJsDoc;function hasRestParameter(t){var r=e.lastOrUndefined(t.parameters);return!!r&&isRestParameter(r)}e.hasRestParameter=hasRestParameter;function isRestParameter(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return t.dotDotDotToken!==undefined||!!r&&r.kind===290}e.isRestParameter=isRestParameter;var a;(function(e){e[e["None"]=0]="None";e[e["Definite"]=1]="Definite";e[e["Compound"]=2]="Compound"})(a=e.AssignmentKind||(e.AssignmentKind={}));function getAssignmentTargetKind(e){var t=e.parent;while(true){switch(t.kind){case 204:var r=t.operatorToken.kind;return isAssignmentOperator(r)&&t.left===e?r===59?1:2:0;case 202:case 203:var n=t.operator;return n===44||n===45?2:0;case 226:case 227:return t.initializer===e?1:0;case 195:case 187:case 208:case 213:e=t;break;case 276:if(t.name!==e){return 0}e=t.parent;break;case 275:if(t.name===e){return 0}e=t.parent;break;default:return 0}t=e.parent}}e.getAssignmentTargetKind=getAssignmentTargetKind;function isAssignmentTarget(e){return getAssignmentTargetKind(e)!==0}e.isAssignmentTarget=isAssignmentTarget;function isNodeWithPossibleHoistedDeclaration(e){switch(e.kind){case 218:case 219:case 231:case 222:case 232:case 246:case 271:case 272:case 233:case 225:case 226:case 227:case 223:case 224:case 235:case 274:return true}return false}e.isNodeWithPossibleHoistedDeclaration=isNodeWithPossibleHoistedDeclaration;function isValueSignatureDeclaration(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)}e.isValueSignatureDeclaration=isValueSignatureDeclaration;function walkUp(e,t){while(e&&e.kind===t){e=e.parent}return e}function walkUpParenthesizedTypes(e){return walkUp(e,177)}e.walkUpParenthesizedTypes=walkUpParenthesizedTypes;function walkUpParenthesizedExpressions(e){return walkUp(e,195)}e.walkUpParenthesizedExpressions=walkUpParenthesizedExpressions;function skipParentheses(e){while(e.kind===195){e=e.expression}return e}e.skipParentheses=skipParentheses;function skipParenthesesUp(e){while(e.kind===195){e=e.parent}return e}function isDeleteTarget(e){if(e.kind!==189&&e.kind!==190){return false}e=walkUpParenthesizedExpressions(e.parent);return e&&e.kind===198}e.isDeleteTarget=isDeleteTarget;function isNodeDescendantOf(e,t){while(e){if(e===t)return true;e=e.parent}return false}e.isNodeDescendantOf=isNodeDescendantOf;function isDeclarationName(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t}e.isDeclarationName=isDeclarationName;function getDeclarationFromName(t){var r=t.parent;switch(t.kind){case 10:case 8:if(e.isComputedPropertyName(r))return r.parent;case 72:if(e.isDeclaration(r)){return r.name===t?r:undefined}else if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:undefined}else{var i=r.parent;return e.isBinaryExpression(i)&&getAssignmentDeclarationKind(i)!==0&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:undefined}default:return undefined}}e.getDeclarationFromName=getDeclarationFromName;function isLiteralComputedPropertyDeclarationName(t){return(t.kind===10||t.kind===8)&&t.parent.kind===149&&e.isDeclaration(t.parent.parent)}e.isLiteralComputedPropertyDeclarationName=isLiteralComputedPropertyDeclarationName;function isIdentifierName(e){var t=e.parent;switch(t.kind){case 154:case 153:case 156:case 155:case 158:case 159:case 278:case 275:case 189:return t.name===e;case 148:if(t.right===e){while(t.kind===148){t=t.parent}return t.kind===167||t.kind===164}return false;case 186:case 253:return t.propertyName===e;case 257:case 267:return true}return false}e.isIdentifierName=isIdentifierName;function isAliasSymbolDeclaration(t){return t.kind===248||t.kind===247||t.kind===250&&!!t.name||t.kind===251||t.kind===253||t.kind===257||t.kind===254&&exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&getAssignmentDeclarationKind(t)===2&&exportAssignmentIsAlias(t)}e.isAliasSymbolDeclaration=isAliasSymbolDeclaration;function exportAssignmentIsAlias(t){var r=e.isExportAssignment(t)?t.expression:t.right;return isEntityNameExpression(r)||e.isClassExpression(r)}e.exportAssignmentIsAlias=exportAssignmentIsAlias;function getEffectiveBaseTypeNode(t){if(isInJSFile(t)){var r=e.getJSDocAugmentsTag(t);if(r){return r.class}}return getClassExtendsHeritageElement(t)}e.getEffectiveBaseTypeNode=getEffectiveBaseTypeNode;function getClassExtendsHeritageElement(e){var t=getHeritageClause(e.heritageClauses,86);return t&&t.types.length>0?t.types[0]:undefined}e.getClassExtendsHeritageElement=getClassExtendsHeritageElement;function getClassImplementsHeritageClauseElements(e){var t=getHeritageClause(e.heritageClauses,109);return t?t.types:undefined}e.getClassImplementsHeritageClauseElements=getClassImplementsHeritageClauseElements;function getAllSuperTypeNodes(t){return e.isInterfaceDeclaration(t)?getInterfaceBaseTypeNodes(t)||e.emptyArray:e.isClassLike(t)?e.concatenate(e.singleElementArray(getEffectiveBaseTypeNode(t)),getClassImplementsHeritageClauseElements(t))||e.emptyArray:e.emptyArray}e.getAllSuperTypeNodes=getAllSuperTypeNodes;function getInterfaceBaseTypeNodes(e){var t=getHeritageClause(e.heritageClauses,86);return t?t.types:undefined}e.getInterfaceBaseTypeNodes=getInterfaceBaseTypeNodes;function getHeritageClause(e,t){if(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t){return i}}}return undefined}e.getHeritageClause=getHeritageClause;function tryResolveScriptReference(t,r,n){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(n.fileName)?n.fileName:e.combinePaths(e.getDirectoryPath(r.fileName),n.fileName);return t.getSourceFile(i)}}e.tryResolveScriptReference=tryResolveScriptReference;function getAncestor(e,t){while(e){if(e.kind===t){return e}e=e.parent}return undefined}e.getAncestor=getAncestor;function isKeyword(e){return 73<=e&&e<=147}e.isKeyword=isKeyword;function isContextualKeyword(e){return 118<=e&&e<=147}e.isContextualKeyword=isContextualKeyword;function isNonContextualKeyword(e){return isKeyword(e)&&!isContextualKeyword(e)}e.isNonContextualKeyword=isNonContextualKeyword;function isStringANonContextualKeyword(t){var r=e.stringToToken(t);return r!==undefined&&isNonContextualKeyword(r)}e.isStringANonContextualKeyword=isStringANonContextualKeyword;function isIdentifierANonContextualKeyword(e){var t=e.originalKeywordKind;return!!t&&!isContextualKeyword(t)}e.isIdentifierANonContextualKeyword=isIdentifierANonContextualKeyword;function isTrivia(e){return 2<=e&&e<=7}e.isTrivia=isTrivia;var o;(function(e){e[e["Normal"]=0]="Normal";e[e["Generator"]=1]="Generator";e[e["Async"]=2]="Async";e[e["Invalid"]=4]="Invalid";e[e["AsyncGenerator"]=3]="AsyncGenerator"})(o=e.FunctionFlags||(e.FunctionFlags={}));function getFunctionFlags(e){if(!e){return 4}var t=0;switch(e.kind){case 239:case 196:case 156:if(e.asteriskToken){t|=1}case 197:if(hasModifier(e,256)){t|=2}break}if(!e.body){t|=4}return t}e.getFunctionFlags=getFunctionFlags;function isAsyncFunction(e){switch(e.kind){case 239:case 196:case 197:case 156:return e.body!==undefined&&e.asteriskToken===undefined&&hasModifier(e,256)}return false}e.isAsyncFunction=isAsyncFunction;function isStringOrNumericLiteralLike(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}e.isStringOrNumericLiteralLike=isStringOrNumericLiteralLike;function hasDynamicName(t){var r=e.getNameOfDeclaration(t);return!!r&&isDynamicName(r)}e.hasDynamicName=hasDynamicName;function isDynamicName(e){return e.kind===149&&!isStringOrNumericLiteralLike(e.expression)&&!isWellKnownSymbolSyntactically(e.expression)}e.isDynamicName=isDynamicName;function isWellKnownSymbolSyntactically(t){return e.isPropertyAccessExpression(t)&&isESSymbolIdentifier(t.expression)}e.isWellKnownSymbolSyntactically=isWellKnownSymbolSyntactically;function getPropertyNameForPropertyNameNode(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 149:var r=t.expression;if(isWellKnownSymbolSyntactically(r)){return getPropertyNameForKnownSymbolName(e.idText(r.name))}else if(isStringOrNumericLiteralLike(r)){return e.escapeLeadingUnderscores(r.text)}return undefined;default:return e.Debug.assertNever(t)}}e.getPropertyNameForPropertyNameNode=getPropertyNameForPropertyNameNode;function isPropertyNameLiteral(e){switch(e.kind){case 72:case 10:case 14:case 8:return true;default:return false}}e.isPropertyNameLiteral=isPropertyNameLiteral;function getTextOfIdentifierOrLiteral(t){return t.kind===72?e.idText(t):t.text}e.getTextOfIdentifierOrLiteral=getTextOfIdentifierOrLiteral;function getEscapedTextOfIdentifierOrLiteral(t){return t.kind===72?t.escapedText:e.escapeLeadingUnderscores(t.text)}e.getEscapedTextOfIdentifierOrLiteral=getEscapedTextOfIdentifierOrLiteral;function getPropertyNameForKnownSymbolName(e){return"__@"+e}e.getPropertyNameForKnownSymbolName=getPropertyNameForKnownSymbolName;function isKnownSymbol(t){return e.startsWith(t.escapedName,"__@")}e.isKnownSymbol=isKnownSymbol;function isESSymbolIdentifier(e){return e.kind===72&&e.escapedText==="Symbol"}e.isESSymbolIdentifier=isESSymbolIdentifier;function isPushOrUnshiftIdentifier(e){return e.escapedText==="push"||e.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=isPushOrUnshiftIdentifier;function isParameterDeclaration(e){var t=getRootDeclaration(e);return t.kind===151}e.isParameterDeclaration=isParameterDeclaration;function getRootDeclaration(e){while(e.kind===186){e=e.parent.parent}return e}e.getRootDeclaration=getRootDeclaration;function nodeStartsNewLexicalEnvironment(e){var t=e.kind;return t===157||t===196||t===239||t===197||t===156||t===158||t===159||t===244||t===279}e.nodeStartsNewLexicalEnvironment=nodeStartsNewLexicalEnvironment;function nodeIsSynthesized(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}e.nodeIsSynthesized=nodeIsSynthesized;function getOriginalSourceFile(t){return e.getParseTreeNode(t,e.isSourceFile)||t}e.getOriginalSourceFile=getOriginalSourceFile;var s;(function(e){e[e["Left"]=0]="Left";e[e["Right"]=1]="Right"})(s=e.Associativity||(e.Associativity={}));function getExpressionAssociativity(e){var t=getOperator(e);var r=e.kind===192&&e.arguments!==undefined;return getOperatorAssociativity(e.kind,t,r)}e.getExpressionAssociativity=getExpressionAssociativity;function getOperatorAssociativity(e,t,r){switch(e){case 192:return r?0:1;case 202:case 199:case 200:case 198:case 201:case 205:case 207:return 1;case 204:switch(t){case 41:case 59:case 60:case 61:case 63:case 62:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 70:return 1}}return 0}e.getOperatorAssociativity=getOperatorAssociativity;function getExpressionPrecedence(e){var t=getOperator(e);var r=e.kind===192&&e.arguments!==undefined;return getOperatorPrecedence(e.kind,t,r)}e.getExpressionPrecedence=getExpressionPrecedence;function getOperator(e){if(e.kind===204){return e.operatorToken.kind}else if(e.kind===202||e.kind===203){return e.operator}else{return e.kind}}e.getOperator=getOperator;function getOperatorPrecedence(e,t,r){switch(e){case 309:return 0;case 208:return 1;case 207:return 2;case 205:return 4;case 204:switch(t){case 27:return 0;case 59:case 60:case 61:case 63:case 62:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 70:return 3;default:return getBinaryOperatorPrecedence(t)}case 202:case 199:case 200:case 198:case 201:return 16;case 203:return 17;case 191:return 18;case 192:return r?19:18;case 193:case 189:case 190:return 19;case 100:case 98:case 72:case 96:case 102:case 87:case 8:case 9:case 10:case 187:case 188:case 196:case 197:case 209:case 260:case 261:case 264:case 13:case 14:case 206:case 195:case 210:return 20;default:return-1}}e.getOperatorPrecedence=getOperatorPrecedence;function getBinaryOperatorPrecedence(e){switch(e){case 55:return 5;case 54:return 6;case 50:return 7;case 51:return 8;case 49:return 9;case 33:case 34:case 35:case 36:return 10;case 28:case 30:case 31:case 32:case 94:case 93:case 119:return 11;case 46:case 47:case 48:return 12;case 38:case 39:return 13;case 40:case 42:case 43:return 14;case 41:return 15}return-1}e.getBinaryOperatorPrecedence=getBinaryOperatorPrecedence;function createDiagnosticCollection(){var t=[];var r=[];var n=e.createMap();var i=false;return{add:add,lookup:lookup,getGlobalDiagnostics:getGlobalDiagnostics,getDiagnostics:getDiagnostics,reattachFileDiagnostics:reattachFileDiagnostics};function reattachFileDiagnostics(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}function lookup(r){var i;if(r.file){i=n.get(r.file.fileName)}else{i=t}if(!i){return undefined}var a=e.binarySearch(i,r,e.identity,e.compareDiagnosticsSkipRelatedInformation);if(a>=0){return i[a]}return undefined}function add(a){var o;if(a.file){o=n.get(a.file.fileName);if(!o){o=[];n.set(a.file.fileName,o);e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)}}else{if(i){i=false;t=t.slice()}o=t}e.insertSorted(o,a,e.compareDiagnostics)}function getGlobalDiagnostics(){i=true;return t}function getDiagnostics(i){if(i){return n.get(i)||[]}var a=e.flatMapToMutable(r,function(e){return n.get(e)});if(!t.length){return a}a.unshift.apply(a,t);return a}}e.createDiagnosticCollection=createDiagnosticCollection;var c=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g;var u=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g;var l=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g;var f=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085"});function escapeString(e,t){var r=t===96?l:t===39?u:c;return e.replace(r,getReplacement)}e.escapeString=escapeString;function getReplacement(e,t,r){if(e.charCodeAt(0)===0){var n=r.charCodeAt(t+e.length);if(n>=48&&n<=57){return"\\x00"}return"\\0"}return f.get(e)||get16BitUnicodeEscapeSequence(e.charCodeAt(0))}function isIntrinsicJsxName(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")}e.isIntrinsicJsxName=isIntrinsicJsxName;function get16BitUnicodeEscapeSequence(e){var t=e.toString(16).toUpperCase();var r=("0000"+t).slice(-4);return"\\u"+r}var d=/[^\u0000-\u007F]/g;function escapeNonAsciiString(e,t){e=escapeString(e,t);return d.test(e)?e.replace(d,function(e){return get16BitUnicodeEscapeSequence(e.charCodeAt(0))}):e}e.escapeNonAsciiString=escapeNonAsciiString;var p=[""," "];function getIndentString(e){if(p[e]===undefined){p[e]=getIndentString(e-1)+p[1]}return p[e]}e.getIndentString=getIndentString;function getIndentSize(){return p[1].length}e.getIndentSize=getIndentSize;function createTextWriter(t){var r;var n;var i;var a;var o;function updateLineCountAndPosFor(t){var n=e.computeLineStarts(t);if(n.length>1){a=a+n.length-1;o=r.length-t.length+e.last(n);i=o-r.length===0}else{i=false}}function write(e){if(e&&e.length){if(i){e=getIndentString(n)+e;i=false}r+=e;updateLineCountAndPosFor(e)}}function reset(){r="";n=0;i=true;a=0;o=0}function rawWrite(e){if(e!==undefined){r+=e;updateLineCountAndPosFor(e)}}function writeLiteral(e){if(e&&e.length){write(e)}}function writeLine(){if(!i){r+=t;a++;o=r.length;i=true}}reset();return{write:write,rawWrite:rawWrite,writeLiteral:writeLiteral,writeLine:writeLine,increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*getIndentSize():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},clear:reset,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:write,writeOperator:write,writeParameter:write,writeProperty:write,writePunctuation:write,writeSpace:write,writeStringLiteral:write,writeSymbol:function(e,t){return write(e)},writeTrailingSemicolon:write,writeComment:write}}e.createTextWriter=createTextWriter;function getTrailingSemicolonOmittingWriter(e){var t=false;function commitPendingTrailingSemicolon(){if(t){e.writeTrailingSemicolon(";");t=false}}return n({},e,{writeTrailingSemicolon:function(){t=true},writeLiteral:function(t){commitPendingTrailingSemicolon();e.writeLiteral(t)},writeStringLiteral:function(t){commitPendingTrailingSemicolon();e.writeStringLiteral(t)},writeSymbol:function(t,r){commitPendingTrailingSemicolon();e.writeSymbol(t,r)},writePunctuation:function(t){commitPendingTrailingSemicolon();e.writePunctuation(t)},writeKeyword:function(t){commitPendingTrailingSemicolon();e.writeKeyword(t)},writeOperator:function(t){commitPendingTrailingSemicolon();e.writeOperator(t)},writeParameter:function(t){commitPendingTrailingSemicolon();e.writeParameter(t)},writeSpace:function(t){commitPendingTrailingSemicolon();e.writeSpace(t)},writeProperty:function(t){commitPendingTrailingSemicolon();e.writeProperty(t)},writeComment:function(t){commitPendingTrailingSemicolon();e.writeComment(t)},writeLine:function(){commitPendingTrailingSemicolon();e.writeLine()},increaseIndent:function(){commitPendingTrailingSemicolon();e.increaseIndent()},decreaseIndent:function(){commitPendingTrailingSemicolon();e.decreaseIndent()}})}e.getTrailingSemicolonOmittingWriter=getTrailingSemicolonOmittingWriter;function getResolvedExternalModuleName(e,t,r){return t.moduleName||getExternalModuleNameFromPath(e,t.fileName,r&&r.fileName)}e.getResolvedExternalModuleName=getResolvedExternalModuleName;function getExternalModuleNameFromDeclaration(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(!n||n.isDeclarationFile){return undefined}return getResolvedExternalModuleName(e,n)}e.getExternalModuleNameFromDeclaration=getExternalModuleNameFromDeclaration;function getExternalModuleNameFromPath(t,r,n){var i=function(e){return t.getCanonicalFileName(e)};var a=toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i);var o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory());var s=e.getRelativePathToDirectoryOrUrl(a,o,a,i,false);var c=e.removeFileExtension(s);return n?e.ensurePathIsNonModuleName(c):c}e.getExternalModuleNameFromPath=getExternalModuleNameFromPath;function getOwnEmitOutputFilePath(t,r,n){var i=r.getCompilerOptions();var a;if(i.outDir){a=e.removeFileExtension(getSourceFilePathInNewDir(t,r,i.outDir))}else{a=e.removeFileExtension(t)}return a+n}e.getOwnEmitOutputFilePath=getOwnEmitOutputFilePath;function getDeclarationEmitOutputFilePath(e,t){return getDeclarationEmitOutputFilePathWorker(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}e.getDeclarationEmitOutputFilePath=getDeclarationEmitOutputFilePath;function getDeclarationEmitOutputFilePathWorker(t,r,n,i,a){var o=r.declarationDir||r.outDir;var s=o?getSourceFilePathInNewDirWorker(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=getDeclarationEmitOutputFilePathWorker;function getSourceFilesToEmit(t,r){var n=t.getCompilerOptions();var i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n);var o=n.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&sourceFileMayBeEmitted(t,n,i)})}else{var s=r===undefined?t.getSourceFiles():[r];return e.filter(s,function(e){return sourceFileMayBeEmitted(e,n,i)})}}e.getSourceFilesToEmit=getSourceFilesToEmit;function sourceFileMayBeEmitted(e,t,r){return!(t.noEmitForJsFiles&&isSourceFileJS(e))&&!e.isDeclarationFile&&!r(e)}e.sourceFileMayBeEmitted=sourceFileMayBeEmitted;function getSourceFilePathInNewDir(e,t,r){return getSourceFilePathInNewDirWorker(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}e.getSourceFilePathInNewDir=getSourceFilePathInNewDir;function getSourceFilePathInNewDirWorker(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);var s=a(o).indexOf(a(i))===0;o=s?o.substring(i.length):o;return e.combinePaths(r,o)}e.getSourceFilePathInNewDirWorker=getSourceFilePathInNewDirWorker;function writeFile(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)}e.writeFile=writeFile;function getLineOfLocalPosition(t,r){return e.getLineAndCharacterOfPosition(t,r).line}e.getLineOfLocalPosition=getLineOfLocalPosition;function getLineOfLocalPositionFromLineMap(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}e.getLineOfLocalPositionFromLineMap=getLineOfLocalPositionFromLineMap;function getFirstConstructorWithBody(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&nodeIsPresent(t.body)})}e.getFirstConstructorWithBody=getFirstConstructorWithBody;function getSetAccessorValueParameter(e){if(e&&e.parameters.length>0){var t=e.parameters.length===2&¶meterIsThisKeyword(e.parameters[0]);return e.parameters[t?1:0]}}function getSetAccessorTypeAnnotationNode(e){var t=getSetAccessorValueParameter(e);return t&&t.type}e.getSetAccessorTypeAnnotationNode=getSetAccessorTypeAnnotationNode;function getThisParameter(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(parameterIsThisKeyword(r)){return r}}}e.getThisParameter=getThisParameter;function parameterIsThisKeyword(e){return isThisIdentifier(e.name)}e.parameterIsThisKeyword=parameterIsThisKeyword;function isThisIdentifier(e){return!!e&&e.kind===72&&identifierIsThisKeyword(e)}e.isThisIdentifier=isThisIdentifier;function identifierIsThisKeyword(e){return e.originalKeywordKind===100}e.identifierIsThisKeyword=identifierIsThisKeyword;function getAllAccessorDeclarations(t,r){var n;var i;var a;var o;if(hasDynamicName(r)){n=r;if(r.kind===158){a=r}else if(r.kind===159){o=r}else{e.Debug.fail("Accessor has wrong kind")}}else{e.forEach(t,function(t){if(e.isAccessor(t)&&hasModifier(t,32)===hasModifier(r,32)){var s=getPropertyNameForPropertyNameNode(t.name);var c=getPropertyNameForPropertyNameNode(r.name);if(s===c){if(!n){n=t}else if(!i){i=t}if(t.kind===158&&!a){a=t}if(t.kind===159&&!o){o=t}}}})}return{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}}e.getAllAccessorDeclarations=getAllAccessorDeclarations;function getEffectiveTypeAnnotationNode(t){var r=t.type;if(r||!isInJSFile(t))return r;return e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}e.getEffectiveTypeAnnotationNode=getEffectiveTypeAnnotationNode;function getTypeAnnotationNode(e){return e.type}e.getTypeAnnotationNode=getTypeAnnotationNode;function getEffectiveReturnTypeNode(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(isInJSFile(t)?e.getJSDocReturnType(t):undefined)}e.getEffectiveReturnTypeNode=getEffectiveReturnTypeNode;function getJSDocTypeParameterDeclarations(t){return e.flatMap(e.getJSDocTags(t),function(e){return isNonTypeAliasTemplate(e)?e.typeParameters:undefined})}e.getJSDocTypeParameterDeclarations=getJSDocTypeParameterDeclarations;function isNonTypeAliasTemplate(t){return e.isJSDocTemplateTag(t)&&!(t.parent.kind===291&&t.parent.tags.some(isJSDocTypeAlias))}function getEffectiveSetAccessorTypeAnnotationNode(e){var t=getSetAccessorValueParameter(e);return t&&getEffectiveTypeAnnotationNode(t)}e.getEffectiveSetAccessorTypeAnnotationNode=getEffectiveSetAccessorTypeAnnotationNode;function emitNewLineBeforeLeadingComments(e,t,r,n){emitNewLineBeforeLeadingCommentsOfPosition(e,t,r.pos,n)}e.emitNewLineBeforeLeadingComments=emitNewLineBeforeLeadingComments;function emitNewLineBeforeLeadingCommentsOfPosition(e,t,r,n){if(n&&n.length&&r!==n[0].pos&&getLineOfLocalPositionFromLineMap(e,r)!==getLineOfLocalPositionFromLineMap(e,n[0].pos)){t.writeLine()}}e.emitNewLineBeforeLeadingCommentsOfPosition=emitNewLineBeforeLeadingCommentsOfPosition;function emitNewLineBeforeLeadingCommentOfPosition(e,t,r,n){if(r!==n&&getLineOfLocalPositionFromLineMap(e,r)!==getLineOfLocalPositionFromLineMap(e,n)){t.writeLine()}}e.emitNewLineBeforeLeadingCommentOfPosition=emitNewLineBeforeLeadingCommentOfPosition;function emitComments(e,t,r,n,i,a,o,s){if(n&&n.length>0){if(i){r.writeSpace(" ")}var c=false;for(var u=0,l=n;u<l.length;u++){var f=l[u];if(c){r.writeSpace(" ");c=false}s(e,t,r,f.pos,f.end,o);if(f.hasTrailingNewLine){r.writeLine()}else{c=true}}if(c&&a){r.writeSpace(" ")}}}e.emitComments=emitComments;function emitDetachedComments(t,r,n,i,a,o,s){var c;var u;if(s){if(a.pos===0){c=e.filter(e.getLeadingCommentRanges(t,a.pos),isPinnedCommentLocal)}}else{c=e.getLeadingCommentRanges(t,a.pos)}if(c){var l=[];var f=void 0;for(var d=0,p=c;d<p.length;d++){var g=p[d];if(f){var _=getLineOfLocalPositionFromLineMap(r,f.end);var m=getLineOfLocalPositionFromLineMap(r,g.pos);if(m>=_+2){break}}l.push(g);f=g}if(l.length){var _=getLineOfLocalPositionFromLineMap(r,e.last(l).end);var y=getLineOfLocalPositionFromLineMap(r,e.skipTrivia(t,a.pos));if(y>=_+2){emitNewLineBeforeLeadingComments(r,n,a,c);emitComments(t,r,n,l,false,true,o,i);u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}}}}return u;function isPinnedCommentLocal(e){return isPinnedComment(t,e.pos)}}e.emitDetachedComments=emitDetachedComments;function writeCommentRange(t,r,n,i,a,o){if(t.charCodeAt(i+1)===42){var s=e.computeLineAndCharacterOfPosition(r,i);var c=r.length;var u=void 0;for(var l=i,f=s.line;l<a;f++){var d=f+1===c?t.length+1:r[f+1];if(l!==i){if(u===undefined){u=calculateIndent(t,r[s.line],i)}var p=n.getIndent()*getIndentSize();var g=p-u+calculateIndent(t,l,d);if(g>0){var _=g%getIndentSize();var m=getIndentString((g-_)/getIndentSize());n.rawWrite(m);while(_){n.rawWrite(" ");_--}}else{n.rawWrite("")}}writeTrimmedCurrentLine(t,a,n,o,l,d);l=d}}else{n.writeComment(t.substring(i,a))}}e.writeCommentRange=writeCommentRange;function writeTrimmedCurrentLine(e,t,r,n,i,a){var o=Math.min(t,a-1);var s=e.substring(i,o).replace(/^\s+|\s+$/g,"");if(s){r.writeComment(s);if(o!==t){r.writeLine()}}else{r.rawWrite(n)}}function calculateIndent(t,r,n){var i=0;for(;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++){if(t.charCodeAt(r)===9){i+=getIndentSize()-i%getIndentSize()}else{i++}}return i}function hasModifiers(e){return getModifierFlags(e)!==0}e.hasModifiers=hasModifiers;function hasModifier(e,t){return!!getSelectedModifierFlags(e,t)}e.hasModifier=hasModifier;function hasStaticModifier(e){return hasModifier(e,32)}e.hasStaticModifier=hasStaticModifier;function hasReadonlyModifier(e){return hasModifier(e,64)}e.hasReadonlyModifier=hasReadonlyModifier;function getSelectedModifierFlags(e,t){return getModifierFlags(e)&t}e.getSelectedModifierFlags=getSelectedModifierFlags;function getModifierFlags(e){if(e.modifierFlagsCache&536870912){return e.modifierFlagsCache&~536870912}var t=getModifierFlagsNoCache(e);e.modifierFlagsCache=t|536870912;return t}e.getModifierFlags=getModifierFlags;function getModifierFlagsNoCache(e){var t=0;if(e.modifiers){for(var r=0,n=e.modifiers;r<n.length;r++){var i=n[r];t|=modifierToFlag(i.kind)}}if(e.flags&4||e.kind===72&&e.isInJSDocNamespace){t|=1}return t}e.getModifierFlagsNoCache=getModifierFlagsNoCache;function modifierToFlag(e){switch(e){case 116:return 32;case 115:return 4;case 114:return 16;case 113:return 8;case 118:return 128;case 85:return 1;case 125:return 2;case 77:return 2048;case 80:return 512;case 121:return 256;case 133:return 64}return 0}e.modifierToFlag=modifierToFlag;function isLogicalOperator(e){return e===55||e===54||e===52}e.isLogicalOperator=isLogicalOperator;function isAssignmentOperator(e){return e>=59&&e<=71}e.isAssignmentOperator=isAssignmentOperator;function tryGetClassExtendingExpressionWithTypeArguments(e){var t=tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e);return t&&!t.isImplements?t.class:undefined}e.tryGetClassExtendingExpressionWithTypeArguments=tryGetClassExtendingExpressionWithTypeArguments;function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:t.parent.token===109}:undefined}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=tryGetClassImplementingOrExtendingExpressionWithTypeArguments;function isAssignmentExpression(t,r){return e.isBinaryExpression(t)&&(r?t.operatorToken.kind===59:isAssignmentOperator(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}e.isAssignmentExpression=isAssignmentExpression;function isDestructuringAssignment(e){if(isAssignmentExpression(e,true)){var t=e.left.kind;return t===188||t===187}return false}e.isDestructuringAssignment=isDestructuringAssignment;function isExpressionWithTypeArgumentsInClassExtendsClause(e){return tryGetClassExtendingExpressionWithTypeArguments(e)!==undefined}e.isExpressionWithTypeArgumentsInClassExtendsClause=isExpressionWithTypeArgumentsInClassExtendsClause;function isEntityNameExpression(e){return e.kind===72||isPropertyAccessEntityNameExpression(e)}e.isEntityNameExpression=isEntityNameExpression;function isPropertyAccessEntityNameExpression(t){return e.isPropertyAccessExpression(t)&&isEntityNameExpression(t.expression)}e.isPropertyAccessEntityNameExpression=isPropertyAccessEntityNameExpression;function isPrototypeAccess(t){return e.isPropertyAccessExpression(t)&&t.name.escapedText==="prototype"}e.isPrototypeAccess=isPrototypeAccess;function isRightSideOfQualifiedNameOrPropertyAccess(e){return e.parent.kind===148&&e.parent.right===e||e.parent.kind===189&&e.parent.name===e}e.isRightSideOfQualifiedNameOrPropertyAccess=isRightSideOfQualifiedNameOrPropertyAccess;function isEmptyObjectLiteral(e){return e.kind===188&&e.properties.length===0}e.isEmptyObjectLiteral=isEmptyObjectLiteral;function isEmptyArrayLiteral(e){return e.kind===187&&e.elements.length===0}e.isEmptyArrayLiteral=isEmptyArrayLiteral;function getLocalSymbolForExportDefault(e){return isExportDefaultSymbol(e)?e.declarations[0].localSymbol:undefined}e.getLocalSymbolForExportDefault=getLocalSymbolForExportDefault;function isExportDefaultSymbol(t){return t&&e.length(t.declarations)>0&&hasModifier(t.declarations[0],512)}function tryExtractTSExtension(t){return e.find(e.supportedTSExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}e.tryExtractTSExtension=tryExtractTSExtension;function getExpandedCharCodes(t){var r=[];var n=t.length;for(var i=0;i<n;i++){var a=t.charCodeAt(i);if(a<128){r.push(a)}else if(a<2048){r.push(a>>6|192);r.push(a&63|128)}else if(a<65536){r.push(a>>12|224);r.push(a>>6&63|128);r.push(a&63|128)}else if(a<131072){r.push(a>>18|240);r.push(a>>12&63|128);r.push(a>>6&63|128);r.push(a&63|128)}else{e.Debug.assert(false,"Unexpected code point")}}return r}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function convertToBase64(e){var t="";var r=getExpandedCharCodes(e);var n=0;var i=r.length;var a,o,s,c;while(n<i){a=r[n]>>2;o=(r[n]&3)<<4|r[n+1]>>4;s=(r[n+1]&15)<<2|r[n+2]>>6;c=r[n+2]&63;if(n+1>=i){s=c=64}else if(n+2>=i){c=64}t+=g.charAt(a)+g.charAt(o)+g.charAt(s)+g.charAt(c);n+=3}return t}e.convertToBase64=convertToBase64;function getStringFromExpandedCharCodes(e){var t="";var r=0;var n=e.length;while(r<n){var i=e[r];if(i<128){t+=String.fromCharCode(i);r++}else if((i&192)===192){var a=i&63;r++;var o=e[r];while((o&192)===128){a=a<<6|o&63;r++;o=e[r]}t+=String.fromCharCode(a)}else{t+=String.fromCharCode(i);r++}}return t}function base64encode(e,t){if(e&&e.base64encode){return e.base64encode(t)}return convertToBase64(t)}e.base64encode=base64encode;function base64decode(e,t){if(e&&e.base64decode){return e.base64decode(t)}var r=t.length;var n=[];var i=0;while(i<r){if(t.charCodeAt(i)===g.charCodeAt(64)){break}var a=g.indexOf(t[i]);var o=g.indexOf(t[i+1]);var s=g.indexOf(t[i+2]);var c=g.indexOf(t[i+3]);var u=(a&63)<<2|o>>4&3;var l=(o&15)<<4|s>>2&15;var f=(s&3)<<6|c&63;if(l===0&&s!==0){n.push(u)}else if(f===0&&c!==0){n.push(u,l)}else{n.push(u,l,f)}i+=4}return getStringFromExpandedCharCodes(n)}e.base64decode=base64decode;function readJson(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);if(i.error){return{}}return i.config}catch(e){return{}}}e.readJson=readJson;function directoryProbablyExists(e,t){return!t.directoryExists||t.directoryExists(e)}e.directoryProbablyExists=directoryProbablyExists;var _="\r\n";var m="\n";function getNewLineCharacter(t,r){switch(t.newLine){case 0:return _;case 1:return m}return r?r():e.sys?e.sys.newLine:_}e.getNewLineCharacter=getNewLineCharacter;function formatEnum(e,t,r){if(e===void 0){e=0}var n=getEnumMembers(t);if(e===0){return n.length>0&&n[0][0]===0?n[0][1]:"0"}if(r){var i="";var a=e;for(var o=n.length-1;o>=0&&a!==0;o--){var s=n[o],c=s[0],u=s[1];if(c!==0&&(a&c)===c){a&=~c;i=""+u+(i?", ":"")+i}}if(a===0){return i}}else{for(var l=0,f=n;l<f.length;l++){var d=f[l],c=d[0],u=d[1];if(c===e){return u}}}return e.toString()}function getEnumMembers(t){var r=[];for(var n in t){var i=t[n];if(typeof i==="number"){r.push([i,n])}}return e.stableSort(r,function(t,r){return e.compareValues(t[0],r[0])})}function formatSyntaxKind(t){return formatEnum(t,e.SyntaxKind,false)}e.formatSyntaxKind=formatSyntaxKind;function formatModifierFlags(t){return formatEnum(t,e.ModifierFlags,true)}e.formatModifierFlags=formatModifierFlags;function formatTransformFlags(t){return formatEnum(t,e.TransformFlags,true)}e.formatTransformFlags=formatTransformFlags;function formatEmitFlags(t){return formatEnum(t,e.EmitFlags,true)}e.formatEmitFlags=formatEmitFlags;function formatSymbolFlags(t){return formatEnum(t,e.SymbolFlags,true)}e.formatSymbolFlags=formatSymbolFlags;function formatTypeFlags(t){return formatEnum(t,e.TypeFlags,true)}e.formatTypeFlags=formatTypeFlags;function formatObjectFlags(t){return formatEnum(t,e.ObjectFlags,true)}e.formatObjectFlags=formatObjectFlags;function createRange(t,r){if(r===void 0){r=t}e.Debug.assert(r>=t||r===-1);return{pos:t,end:r}}e.createRange=createRange;function moveRangeEnd(e,t){return createRange(e.pos,t)}e.moveRangeEnd=moveRangeEnd;function moveRangePos(e,t){return createRange(t,e.end)}e.moveRangePos=moveRangePos;function moveRangePastDecorators(e){return e.decorators&&e.decorators.length>0?moveRangePos(e,e.decorators.end):e}e.moveRangePastDecorators=moveRangePastDecorators;function moveRangePastModifiers(e){return e.modifiers&&e.modifiers.length>0?moveRangePos(e,e.modifiers.end):moveRangePastDecorators(e)}e.moveRangePastModifiers=moveRangePastModifiers;function isCollapsedRange(e){return e.pos===e.end}e.isCollapsedRange=isCollapsedRange;function createTokenRange(t,r){return createRange(t,t+e.tokenToString(r).length)}e.createTokenRange=createTokenRange;function rangeIsOnSingleLine(e,t){return rangeStartIsOnSameLineAsRangeEnd(e,e,t)}e.rangeIsOnSingleLine=rangeIsOnSingleLine;function rangeStartPositionsAreOnSameLine(e,t,r){return positionsAreOnSameLine(getStartPositionOfRange(e,r),getStartPositionOfRange(t,r),r)}e.rangeStartPositionsAreOnSameLine=rangeStartPositionsAreOnSameLine;function rangeEndPositionsAreOnSameLine(e,t,r){return positionsAreOnSameLine(e.end,t.end,r)}e.rangeEndPositionsAreOnSameLine=rangeEndPositionsAreOnSameLine;function rangeStartIsOnSameLineAsRangeEnd(e,t,r){return positionsAreOnSameLine(getStartPositionOfRange(e,r),t.end,r)}e.rangeStartIsOnSameLineAsRangeEnd=rangeStartIsOnSameLineAsRangeEnd;function rangeEndIsOnSameLineAsRangeStart(e,t,r){return positionsAreOnSameLine(e.end,getStartPositionOfRange(t,r),r)}e.rangeEndIsOnSameLineAsRangeStart=rangeEndIsOnSameLineAsRangeStart;function positionsAreOnSameLine(e,t,r){return e===t||getLineOfLocalPosition(r,e)===getLineOfLocalPosition(r,t)}e.positionsAreOnSameLine=positionsAreOnSameLine;function getStartPositionOfRange(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}e.getStartPositionOfRange=getStartPositionOfRange;function isDeclarationNameOfEnumOrNamespace(t){var r=e.getParseTreeNode(t);if(r){switch(r.parent.kind){case 243:case 244:return r===r.parent.name}}return false}e.isDeclarationNameOfEnumOrNamespace=isDeclarationNameOfEnumOrNamespace;function getInitializedVariables(t){return e.filter(t.declarations,isInitializedVariable)}e.getInitializedVariables=getInitializedVariables;function isInitializedVariable(e){return e.initializer!==undefined}function isWatchSet(e){return e.watch&&e.hasOwnProperty("watch")}e.isWatchSet=isWatchSet;function closeFileWatcher(e){e.close()}e.closeFileWatcher=closeFileWatcher;function getCheckFlags(e){return e.flags&33554432?e.checkFlags:0}e.getCheckFlags=getCheckFlags;function getDeclarationModifierFlagsFromSymbol(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&t.parent.flags&32?r:r&~28}if(getCheckFlags(t)&6){var n=t.checkFlags;var i=n&256?8:n&64?4:16;var a=n&512?32:0;return i|a}if(t.flags&4194304){return 4|32}return 0}e.getDeclarationModifierFlagsFromSymbol=getDeclarationModifierFlagsFromSymbol;function skipAlias(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}e.skipAlias=skipAlias;function getCombinedLocalAndExportSymbolFlags(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}e.getCombinedLocalAndExportSymbolFlags=getCombinedLocalAndExportSymbolFlags;function isWriteOnlyAccess(e){return accessKind(e)===1}e.isWriteOnlyAccess=isWriteOnlyAccess;function isWriteAccess(e){return accessKind(e)!==0}e.isWriteAccess=isWriteAccess;var y;(function(e){e[e["Read"]=0]="Read";e[e["Write"]=1]="Write";e[e["ReadWrite"]=2]="ReadWrite"})(y||(y={}));function accessKind(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 195:return accessKind(t);case 203:case 202:var r=t.operator;return r===44||r===45?writeOrReadWrite():0;case 204:var n=t,i=n.left,a=n.operatorToken;return i===e&&isAssignmentOperator(a.kind)?a.kind===59?1:writeOrReadWrite():0;case 189:return t.name!==e?0:accessKind(t);case 275:{var o=accessKind(t.parent);return e===t.name?reverseAccessKind(o):o}case 276:return e===t.objectAssignmentInitializer?0:accessKind(t.parent);case 187:return accessKind(t);default:return 0}function writeOrReadWrite(){return t.parent&&skipParenthesesUp(t.parent).kind===221?1:2}}function reverseAccessKind(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}function compareDataObjects(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length){return false}for(var r in e){if(typeof e[r]==="object"){if(!compareDataObjects(e[r],t[r])){return false}}else if(typeof e[r]!=="function"){if(e[r]!==t[r]){return false}}}return true}e.compareDataObjects=compareDataObjects;function clearMap(e,t){e.forEach(t);e.clear()}e.clearMap=clearMap;function mutateMap(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);if(o===undefined){e.delete(n);i(r,n)}else if(a){a(r,o,n)}});t.forEach(function(t,r){if(!e.has(r)){e.set(r,n(r,t))}})}e.mutateMap=mutateMap;function forEachAncestorDirectory(t,r){while(true){var n=r(t);if(n!==undefined){return n}var i=e.getDirectoryPath(t);if(i===t){return undefined}t=i}}e.forEachAncestorDirectory=forEachAncestorDirectory;function isAbstractConstructorType(e){return!!(getObjectFlags(e)&16)&&!!e.symbol&&isAbstractConstructorSymbol(e.symbol)}e.isAbstractConstructorType=isAbstractConstructorType;function isAbstractConstructorSymbol(e){if(e.flags&32){var t=getClassLikeDeclarationOfSymbol(e);return!!t&&hasModifier(t,128)}return false}e.isAbstractConstructorSymbol=isAbstractConstructorSymbol;function getClassLikeDeclarationOfSymbol(t){return e.find(t.declarations,e.isClassLike)}e.getClassLikeDeclarationOfSymbol=getClassLikeDeclarationOfSymbol;function getObjectFlags(e){return e.flags&524288?e.objectFlags:0}e.getObjectFlags=getObjectFlags;function typeHasCallOrConstructSignatures(e,t){return t.getSignaturesOfType(e,0).length!==0||t.getSignaturesOfType(e,1).length!==0}e.typeHasCallOrConstructSignatures=typeHasCallOrConstructSignatures;function forSomeAncestorDirectory(e,t){return!!forEachAncestorDirectory(e,function(e){return t(e)?true:undefined})}e.forSomeAncestorDirectory=forSomeAncestorDirectory;function isUMDExportSymbol(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])}e.isUMDExportSymbol=isUMDExportSymbol;function showModuleSpecifier(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:getTextOfNode(r)}e.showModuleSpecifier=showModuleSpecifier;function getLastChild(t){var r;e.forEachChild(t,function(e){if(nodeIsPresent(e))r=e},function(e){for(var t=e.length-1;t>=0;t--){if(nodeIsPresent(e[t])){r=e[t];break}}});return r}e.getLastChild=getLastChild;function addToSeen(e,t,r){if(r===void 0){r=true}t=String(t);if(e.has(t)){return false}e.set(t,r);return true}e.addToSeen=addToSeen;function isObjectTypeDeclaration(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}e.isObjectTypeDeclaration=isObjectTypeDeclaration;function isTypeNodeKind(e){return e>=163&&e<=183||e===120||e===143||e===135||e===146||e===136||e===123||e===138||e===139||e===100||e===106||e===141||e===96||e===132||e===211||e===284||e===285||e===286||e===287||e===288||e===289||e===290}e.isTypeNodeKind=isTypeNodeKind})(s||(s={}));(function(e){function getDefaultLibFileName(e){switch(e.target){case 6:return"lib.esnext.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=getDefaultLibFileName;function textSpanEnd(e){return e.start+e.length}e.textSpanEnd=textSpanEnd;function textSpanIsEmpty(e){return e.length===0}e.textSpanIsEmpty=textSpanIsEmpty;function textSpanContainsPosition(e,t){return t>=e.start&&t<textSpanEnd(e)}e.textSpanContainsPosition=textSpanContainsPosition;function textRangeContainsPositionInclusive(e,t){return t>=e.pos&&t<=e.end}e.textRangeContainsPositionInclusive=textRangeContainsPositionInclusive;function textSpanContainsTextSpan(e,t){return t.start>=e.start&&textSpanEnd(t)<=textSpanEnd(e)}e.textSpanContainsTextSpan=textSpanContainsTextSpan;function textSpanOverlapsWith(e,t){return textSpanOverlap(e,t)!==undefined}e.textSpanOverlapsWith=textSpanOverlapsWith;function textSpanOverlap(e,t){var r=textSpanIntersection(e,t);return r&&r.length===0?undefined:r}e.textSpanOverlap=textSpanOverlap;function textSpanIntersectsWithTextSpan(e,t){return decodedTextSpanIntersectsWith(e.start,e.length,t.start,t.length)}e.textSpanIntersectsWithTextSpan=textSpanIntersectsWithTextSpan;function textSpanIntersectsWith(e,t,r){return decodedTextSpanIntersectsWith(e.start,e.length,t,r)}e.textSpanIntersectsWith=textSpanIntersectsWith;function decodedTextSpanIntersectsWith(e,t,r,n){var i=e+t;var a=r+n;return r<=i&&a>=e}e.decodedTextSpanIntersectsWith=decodedTextSpanIntersectsWith;function textSpanIntersectsWithPosition(e,t){return t<=textSpanEnd(e)&&t>=e.start}e.textSpanIntersectsWithPosition=textSpanIntersectsWithPosition;function textSpanIntersection(e,t){var r=Math.max(e.start,t.start);var n=Math.min(textSpanEnd(e),textSpanEnd(t));return r<=n?createTextSpanFromBounds(r,n):undefined}e.textSpanIntersection=textSpanIntersection;function createTextSpan(e,t){if(e<0){throw new Error("start < 0")}if(t<0){throw new Error("length < 0")}return{start:e,length:t}}e.createTextSpan=createTextSpan;function createTextSpanFromBounds(e,t){return createTextSpan(e,t-e)}e.createTextSpanFromBounds=createTextSpanFromBounds;function textChangeRangeNewSpan(e){return createTextSpan(e.span.start,e.newLength)}e.textChangeRangeNewSpan=textChangeRangeNewSpan;function textChangeRangeIsUnchanged(e){return textSpanIsEmpty(e.span)&&e.newLength===0}e.textChangeRangeIsUnchanged=textChangeRangeIsUnchanged;function createTextChangeRange(e,t){if(t<0){throw new Error("newLength < 0")}return{span:e,newLength:t}}e.createTextChangeRange=createTextChangeRange;e.unchangedTextChangeRange=createTextChangeRange(createTextSpan(0,0),0);function collapseTextChangeRangesAcrossMultipleVersions(t){if(t.length===0){return e.unchangedTextChangeRange}if(t.length===1){return t[0]}var r=t[0];var n=r.span.start;var i=textSpanEnd(r.span);var a=n+r.newLength;for(var o=1;o<t.length;o++){var s=t[o];var c=n;var u=i;var l=a;var f=s.span.start;var d=textSpanEnd(s.span);var p=f+s.newLength;n=Math.min(c,f);i=Math.max(u,u+(d-l));a=Math.max(p,p+(l-d))}return createTextChangeRange(createTextSpanFromBounds(n,i),a-n)}e.collapseTextChangeRangesAcrossMultipleVersions=collapseTextChangeRangesAcrossMultipleVersions;function getTypeParameterOwner(t){if(t&&t.kind===150){for(var r=t;r;r=r.parent){if(e.isFunctionLike(r)||e.isClassLike(r)||r.kind===241){return r}}}}e.getTypeParameterOwner=getTypeParameterOwner;function isParameterPropertyDeclaration(t){return e.hasModifier(t,92)&&t.parent.kind===157}e.isParameterPropertyDeclaration=isParameterPropertyDeclaration;function isEmptyBindingPattern(t){if(e.isBindingPattern(t)){return e.every(t.elements,isEmptyBindingElement)}return false}e.isEmptyBindingPattern=isEmptyBindingPattern;function isEmptyBindingElement(t){if(e.isOmittedExpression(t)){return true}return isEmptyBindingPattern(t.name)}e.isEmptyBindingElement=isEmptyBindingElement;function walkUpBindingElementsAndPatterns(t){var r=t.parent;while(e.isBindingElement(r.parent)){r=r.parent.parent}return r.parent}e.walkUpBindingElementsAndPatterns=walkUpBindingElementsAndPatterns;function getCombinedFlags(t,r){if(e.isBindingElement(t)){t=walkUpBindingElementsAndPatterns(t)}var n=r(t);if(t.kind===237){t=t.parent}if(t&&t.kind===238){n|=r(t);t=t.parent}if(t&&t.kind===219){n|=r(t)}return n}function getCombinedModifierFlags(t){return getCombinedFlags(t,e.getModifierFlags)}e.getCombinedModifierFlags=getCombinedModifierFlags;function getCombinedNodeFlags(e){return getCombinedFlags(e,function(e){return e.flags})}e.getCombinedNodeFlags=getCombinedNodeFlags;function validateLocaleAndSetLanguage(t,r,n){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(!i){if(n){n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"))}return}var a=i[1];var o=i[3];if(!trySetLanguageAndTerritory(a,o,n)){trySetLanguageAndTerritory(a,undefined,n)}e.setUILocale(t);function trySetLanguageAndTerritory(t,n,i){var a=e.normalizePath(r.getExecutingFilePath());var o=e.getDirectoryPath(a);var s=e.combinePaths(o,t);if(n){s=s+"-"+n}s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json"));if(!r.fileExists(s)){return false}var c="";try{c=r.readFile(s)}catch(t){if(i){i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s))}return false}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(t){if(i){i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s))}return false}return true}}e.validateLocaleAndSetLanguage=validateLocaleAndSetLanguage;function getOriginalNode(e,t){if(e){while(e.original!==undefined){e=e.original}}return!t||t(e)?e:undefined}e.getOriginalNode=getOriginalNode;function isParseTreeNode(e){return(e.flags&8)===0}e.isParseTreeNode=isParseTreeNode;function getParseTreeNode(e,t){if(e===undefined||isParseTreeNode(e)){return e}e=getOriginalNode(e);if(isParseTreeNode(e)&&(!t||t(e))){return e}return undefined}e.getParseTreeNode=getParseTreeNode;function escapeLeadingUnderscores(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}e.escapeLeadingUnderscores=escapeLeadingUnderscores;function unescapeLeadingUnderscores(e){var t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}e.unescapeLeadingUnderscores=unescapeLeadingUnderscores;function idText(e){return unescapeLeadingUnderscores(e.escapedText)}e.idText=idText;function symbolName(e){return unescapeLeadingUnderscores(e.escapedName)}e.symbolName=symbolName;function nameForNamelessJSDocTypedef(t){var r=t.parent.parent;if(!r){return undefined}if(e.isDeclaration(r)){return getDeclarationIdentifier(r)}switch(r.kind){case 219:if(r.declarationList&&r.declarationList.declarations[0]){return getDeclarationIdentifier(r.declarationList.declarations[0])}break;case 221:var n=r.expression;switch(n.kind){case 189:return n.name;case 190:var i=n.argumentExpression;if(e.isIdentifier(i)){return i}}break;case 195:{return getDeclarationIdentifier(r.expression)}case 233:{if(e.isDeclaration(r.statement)||e.isExpression(r.statement)){return getDeclarationIdentifier(r.statement)}break}}}function getDeclarationIdentifier(t){var r=getNameOfDeclaration(t);return r&&e.isIdentifier(r)?r:undefined}function getNameOfJSDocTypedef(e){return e.name||nameForNamelessJSDocTypedef(e)}e.getNameOfJSDocTypedef=getNameOfJSDocTypedef;function isNamedDeclaration(e){return!!e.name}e.isNamedDeclaration=isNamedDeclaration;function getNonAssignedNameOfDeclaration(t){switch(t.kind){case 72:return t;case 305:case 299:{var r=t.name;if(r.kind===148){return r.right}break}case 191:case 204:{var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return n.left.name;case 7:case 8:case 9:return n.arguments[1];default:return undefined}}case 304:return getNameOfJSDocTypedef(t);case 254:{var i=t.expression;return e.isIdentifier(i)?i:undefined}}return t.name}e.getNonAssignedNameOfDeclaration=getNonAssignedNameOfDeclaration;function getNameOfDeclaration(t){if(t===undefined)return undefined;return getNonAssignedNameOfDeclaration(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?getAssignedName(t):undefined)}e.getNameOfDeclaration=getNameOfDeclaration;function getAssignedName(t){if(!t.parent){return undefined}else if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent)){return t.parent.name}else if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left)){return t.parent.left}else if(e.isPropertyAccessExpression(t.parent.left)){return t.parent.left.name}}}function getJSDocParameterTags(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return getJSDocTags(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}else{var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=getJSDocTags(t.parent).filter(e.isJSDocParameterTag);if(n<i.length){return[i[n]]}}}return e.emptyArray}e.getJSDocParameterTags=getJSDocParameterTags;function getJSDocTypeParameterTags(t){var r=t.name.escapedText;return getJSDocTags(t.parent).filter(function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some(function(e){return e.name.escapedText===r})})}e.getJSDocTypeParameterTags=getJSDocTypeParameterTags;function hasJSDocParameterTags(t){return!!getFirstJSDocTag(t,e.isJSDocParameterTag)}e.hasJSDocParameterTags=hasJSDocParameterTags;function getJSDocAugmentsTag(t){return getFirstJSDocTag(t,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=getJSDocAugmentsTag;function getJSDocClassTag(t){return getFirstJSDocTag(t,e.isJSDocClassTag)}e.getJSDocClassTag=getJSDocClassTag;function getJSDocEnumTag(t){return getFirstJSDocTag(t,e.isJSDocEnumTag)}e.getJSDocEnumTag=getJSDocEnumTag;function getJSDocThisTag(t){return getFirstJSDocTag(t,e.isJSDocThisTag)}e.getJSDocThisTag=getJSDocThisTag;function getJSDocReturnTag(t){return getFirstJSDocTag(t,e.isJSDocReturnTag)}e.getJSDocReturnTag=getJSDocReturnTag;function getJSDocTemplateTag(t){return getFirstJSDocTag(t,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=getJSDocTemplateTag;function getJSDocTypeTag(t){var r=getFirstJSDocTag(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type){return r}return undefined}e.getJSDocTypeTag=getJSDocTypeTag;function getJSDocType(t){var r=getFirstJSDocTag(t,e.isJSDocTypeTag);if(!r&&e.isParameter(t)){r=e.find(getJSDocParameterTags(t),function(e){return!!e.typeExpression})}return r&&r.typeExpression&&r.typeExpression.type}e.getJSDocType=getJSDocType;function getJSDocReturnType(t){var r=getJSDocReturnTag(t);if(r&&r.typeExpression){return r.typeExpression.type}var n=getJSDocTypeTag(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)){return i.type}}}e.getJSDocReturnType=getJSDocReturnType;function getJSDocTags(t){var r=t.jsDocCache;if(r===undefined){var n=e.getJSDocCommentsAndTags(t);e.Debug.assert(n.length<2||n[0]!==n[1]);t.jsDocCache=r=e.flatMap(n,function(t){return e.isJSDoc(t)?t.tags:t})}return r}e.getJSDocTags=getJSDocTags;function getFirstJSDocTag(t,r){return e.find(getJSDocTags(t),r)}function getAllJSDocTagsOfKind(e,t){return getJSDocTags(e).filter(function(e){return e.kind===t})}e.getAllJSDocTagsOfKind=getAllJSDocTagsOfKind;function getEffectiveTypeParameterDeclarations(t){if(e.isJSDocSignature(t)){return e.emptyArray}if(e.isJSDocTypeAlias(t)){e.Debug.assert(t.parent.kind===291);return e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:undefined})}if(t.typeParameters){return t.typeParameters}if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length){return r}var n=getJSDocType(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters){return n.typeParameters}}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=getEffectiveTypeParameterDeclarations;function getEffectiveConstraintOfTypeParameter(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:undefined}e.getEffectiveConstraintOfTypeParameter=getEffectiveConstraintOfTypeParameter})(s||(s={}));(function(e){function isNumericLiteral(e){return e.kind===8}e.isNumericLiteral=isNumericLiteral;function isBigIntLiteral(e){return e.kind===9}e.isBigIntLiteral=isBigIntLiteral;function isStringLiteral(e){return e.kind===10}e.isStringLiteral=isStringLiteral;function isJsxText(e){return e.kind===11}e.isJsxText=isJsxText;function isRegularExpressionLiteral(e){return e.kind===13}e.isRegularExpressionLiteral=isRegularExpressionLiteral;function isNoSubstitutionTemplateLiteral(e){return e.kind===14}e.isNoSubstitutionTemplateLiteral=isNoSubstitutionTemplateLiteral;function isTemplateHead(e){return e.kind===15}e.isTemplateHead=isTemplateHead;function isTemplateMiddle(e){return e.kind===16}e.isTemplateMiddle=isTemplateMiddle;function isTemplateTail(e){return e.kind===17}e.isTemplateTail=isTemplateTail;function isIdentifier(e){return e.kind===72}e.isIdentifier=isIdentifier;function isQualifiedName(e){return e.kind===148}e.isQualifiedName=isQualifiedName;function isComputedPropertyName(e){return e.kind===149}e.isComputedPropertyName=isComputedPropertyName;function isTypeParameterDeclaration(e){return e.kind===150}e.isTypeParameterDeclaration=isTypeParameterDeclaration;function isParameter(e){return e.kind===151}e.isParameter=isParameter;function isDecorator(e){return e.kind===152}e.isDecorator=isDecorator;function isPropertySignature(e){return e.kind===153}e.isPropertySignature=isPropertySignature;function isPropertyDeclaration(e){return e.kind===154}e.isPropertyDeclaration=isPropertyDeclaration;function isMethodSignature(e){return e.kind===155}e.isMethodSignature=isMethodSignature;function isMethodDeclaration(e){return e.kind===156}e.isMethodDeclaration=isMethodDeclaration;function isConstructorDeclaration(e){return e.kind===157}e.isConstructorDeclaration=isConstructorDeclaration;function isGetAccessorDeclaration(e){return e.kind===158}e.isGetAccessorDeclaration=isGetAccessorDeclaration;function isSetAccessorDeclaration(e){return e.kind===159}e.isSetAccessorDeclaration=isSetAccessorDeclaration;function isCallSignatureDeclaration(e){return e.kind===160}e.isCallSignatureDeclaration=isCallSignatureDeclaration;function isConstructSignatureDeclaration(e){return e.kind===161}e.isConstructSignatureDeclaration=isConstructSignatureDeclaration;function isIndexSignatureDeclaration(e){return e.kind===162}e.isIndexSignatureDeclaration=isIndexSignatureDeclaration;function isGetOrSetAccessorDeclaration(e){return e.kind===159||e.kind===158}e.isGetOrSetAccessorDeclaration=isGetOrSetAccessorDeclaration;function isTypePredicateNode(e){return e.kind===163}e.isTypePredicateNode=isTypePredicateNode;function isTypeReferenceNode(e){return e.kind===164}e.isTypeReferenceNode=isTypeReferenceNode;function isFunctionTypeNode(e){return e.kind===165}e.isFunctionTypeNode=isFunctionTypeNode;function isConstructorTypeNode(e){return e.kind===166}e.isConstructorTypeNode=isConstructorTypeNode;function isTypeQueryNode(e){return e.kind===167}e.isTypeQueryNode=isTypeQueryNode;function isTypeLiteralNode(e){return e.kind===168}e.isTypeLiteralNode=isTypeLiteralNode;function isArrayTypeNode(e){return e.kind===169}e.isArrayTypeNode=isArrayTypeNode;function isTupleTypeNode(e){return e.kind===170}e.isTupleTypeNode=isTupleTypeNode;function isUnionTypeNode(e){return e.kind===173}e.isUnionTypeNode=isUnionTypeNode;function isIntersectionTypeNode(e){return e.kind===174}e.isIntersectionTypeNode=isIntersectionTypeNode;function isConditionalTypeNode(e){return e.kind===175}e.isConditionalTypeNode=isConditionalTypeNode;function isInferTypeNode(e){return e.kind===176}e.isInferTypeNode=isInferTypeNode;function isParenthesizedTypeNode(e){return e.kind===177}e.isParenthesizedTypeNode=isParenthesizedTypeNode;function isThisTypeNode(e){return e.kind===178}e.isThisTypeNode=isThisTypeNode;function isTypeOperatorNode(e){return e.kind===179}e.isTypeOperatorNode=isTypeOperatorNode;function isIndexedAccessTypeNode(e){return e.kind===180}e.isIndexedAccessTypeNode=isIndexedAccessTypeNode;function isMappedTypeNode(e){return e.kind===181}e.isMappedTypeNode=isMappedTypeNode;function isLiteralTypeNode(e){return e.kind===182}e.isLiteralTypeNode=isLiteralTypeNode;function isImportTypeNode(e){return e.kind===183}e.isImportTypeNode=isImportTypeNode;function isObjectBindingPattern(e){return e.kind===184}e.isObjectBindingPattern=isObjectBindingPattern;function isArrayBindingPattern(e){return e.kind===185}e.isArrayBindingPattern=isArrayBindingPattern;function isBindingElement(e){return e.kind===186}e.isBindingElement=isBindingElement;function isArrayLiteralExpression(e){return e.kind===187}e.isArrayLiteralExpression=isArrayLiteralExpression;function isObjectLiteralExpression(e){return e.kind===188}e.isObjectLiteralExpression=isObjectLiteralExpression;function isPropertyAccessExpression(e){return e.kind===189}e.isPropertyAccessExpression=isPropertyAccessExpression;function isElementAccessExpression(e){return e.kind===190}e.isElementAccessExpression=isElementAccessExpression;function isCallExpression(e){return e.kind===191}e.isCallExpression=isCallExpression;function isNewExpression(e){return e.kind===192}e.isNewExpression=isNewExpression;function isTaggedTemplateExpression(e){return e.kind===193}e.isTaggedTemplateExpression=isTaggedTemplateExpression;function isTypeAssertion(e){return e.kind===194}e.isTypeAssertion=isTypeAssertion;function isParenthesizedExpression(e){return e.kind===195}e.isParenthesizedExpression=isParenthesizedExpression;function skipPartiallyEmittedExpressions(e){while(e.kind===308){e=e.expression}return e}e.skipPartiallyEmittedExpressions=skipPartiallyEmittedExpressions;function isFunctionExpression(e){return e.kind===196}e.isFunctionExpression=isFunctionExpression;function isArrowFunction(e){return e.kind===197}e.isArrowFunction=isArrowFunction;function isDeleteExpression(e){return e.kind===198}e.isDeleteExpression=isDeleteExpression;function isTypeOfExpression(e){return e.kind===199}e.isTypeOfExpression=isTypeOfExpression;function isVoidExpression(e){return e.kind===200}e.isVoidExpression=isVoidExpression;function isAwaitExpression(e){return e.kind===201}e.isAwaitExpression=isAwaitExpression;function isPrefixUnaryExpression(e){return e.kind===202}e.isPrefixUnaryExpression=isPrefixUnaryExpression;function isPostfixUnaryExpression(e){return e.kind===203}e.isPostfixUnaryExpression=isPostfixUnaryExpression;function isBinaryExpression(e){return e.kind===204}e.isBinaryExpression=isBinaryExpression;function isConditionalExpression(e){return e.kind===205}e.isConditionalExpression=isConditionalExpression;function isTemplateExpression(e){return e.kind===206}e.isTemplateExpression=isTemplateExpression;function isYieldExpression(e){return e.kind===207}e.isYieldExpression=isYieldExpression;function isSpreadElement(e){return e.kind===208}e.isSpreadElement=isSpreadElement;function isClassExpression(e){return e.kind===209}e.isClassExpression=isClassExpression;function isOmittedExpression(e){return e.kind===210}e.isOmittedExpression=isOmittedExpression;function isExpressionWithTypeArguments(e){return e.kind===211}e.isExpressionWithTypeArguments=isExpressionWithTypeArguments;function isAsExpression(e){return e.kind===212}e.isAsExpression=isAsExpression;function isNonNullExpression(e){return e.kind===213}e.isNonNullExpression=isNonNullExpression;function isMetaProperty(e){return e.kind===214}e.isMetaProperty=isMetaProperty;function isTemplateSpan(e){return e.kind===216}e.isTemplateSpan=isTemplateSpan;function isSemicolonClassElement(e){return e.kind===217}e.isSemicolonClassElement=isSemicolonClassElement;function isBlock(e){return e.kind===218}e.isBlock=isBlock;function isVariableStatement(e){return e.kind===219}e.isVariableStatement=isVariableStatement;function isEmptyStatement(e){return e.kind===220}e.isEmptyStatement=isEmptyStatement;function isExpressionStatement(e){return e.kind===221}e.isExpressionStatement=isExpressionStatement;function isIfStatement(e){return e.kind===222}e.isIfStatement=isIfStatement;function isDoStatement(e){return e.kind===223}e.isDoStatement=isDoStatement;function isWhileStatement(e){return e.kind===224}e.isWhileStatement=isWhileStatement;function isForStatement(e){return e.kind===225}e.isForStatement=isForStatement;function isForInStatement(e){return e.kind===226}e.isForInStatement=isForInStatement;function isForOfStatement(e){return e.kind===227}e.isForOfStatement=isForOfStatement;function isContinueStatement(e){return e.kind===228}e.isContinueStatement=isContinueStatement;function isBreakStatement(e){return e.kind===229}e.isBreakStatement=isBreakStatement;function isBreakOrContinueStatement(e){return e.kind===229||e.kind===228}e.isBreakOrContinueStatement=isBreakOrContinueStatement;function isReturnStatement(e){return e.kind===230}e.isReturnStatement=isReturnStatement;function isWithStatement(e){return e.kind===231}e.isWithStatement=isWithStatement;function isSwitchStatement(e){return e.kind===232}e.isSwitchStatement=isSwitchStatement;function isLabeledStatement(e){return e.kind===233}e.isLabeledStatement=isLabeledStatement;function isThrowStatement(e){return e.kind===234}e.isThrowStatement=isThrowStatement;function isTryStatement(e){return e.kind===235}e.isTryStatement=isTryStatement;function isDebuggerStatement(e){return e.kind===236}e.isDebuggerStatement=isDebuggerStatement;function isVariableDeclaration(e){return e.kind===237}e.isVariableDeclaration=isVariableDeclaration;function isVariableDeclarationList(e){return e.kind===238}e.isVariableDeclarationList=isVariableDeclarationList;function isFunctionDeclaration(e){return e.kind===239}e.isFunctionDeclaration=isFunctionDeclaration;function isClassDeclaration(e){return e.kind===240}e.isClassDeclaration=isClassDeclaration;function isInterfaceDeclaration(e){return e.kind===241}e.isInterfaceDeclaration=isInterfaceDeclaration;function isTypeAliasDeclaration(e){return e.kind===242}e.isTypeAliasDeclaration=isTypeAliasDeclaration;function isEnumDeclaration(e){return e.kind===243}e.isEnumDeclaration=isEnumDeclaration;function isModuleDeclaration(e){return e.kind===244}e.isModuleDeclaration=isModuleDeclaration;function isModuleBlock(e){return e.kind===245}e.isModuleBlock=isModuleBlock;function isCaseBlock(e){return e.kind===246}e.isCaseBlock=isCaseBlock;function isNamespaceExportDeclaration(e){return e.kind===247}e.isNamespaceExportDeclaration=isNamespaceExportDeclaration;function isImportEqualsDeclaration(e){return e.kind===248}e.isImportEqualsDeclaration=isImportEqualsDeclaration;function isImportDeclaration(e){return e.kind===249}e.isImportDeclaration=isImportDeclaration;function isImportClause(e){return e.kind===250}e.isImportClause=isImportClause;function isNamespaceImport(e){return e.kind===251}e.isNamespaceImport=isNamespaceImport;function isNamedImports(e){return e.kind===252}e.isNamedImports=isNamedImports;function isImportSpecifier(e){return e.kind===253}e.isImportSpecifier=isImportSpecifier;function isExportAssignment(e){return e.kind===254}e.isExportAssignment=isExportAssignment;function isExportDeclaration(e){return e.kind===255}e.isExportDeclaration=isExportDeclaration;function isNamedExports(e){return e.kind===256}e.isNamedExports=isNamedExports;function isExportSpecifier(e){return e.kind===257}e.isExportSpecifier=isExportSpecifier;function isMissingDeclaration(e){return e.kind===258}e.isMissingDeclaration=isMissingDeclaration;function isExternalModuleReference(e){return e.kind===259}e.isExternalModuleReference=isExternalModuleReference;function isJsxElement(e){return e.kind===260}e.isJsxElement=isJsxElement;function isJsxSelfClosingElement(e){return e.kind===261}e.isJsxSelfClosingElement=isJsxSelfClosingElement;function isJsxOpeningElement(e){return e.kind===262}e.isJsxOpeningElement=isJsxOpeningElement;function isJsxClosingElement(e){return e.kind===263}e.isJsxClosingElement=isJsxClosingElement;function isJsxFragment(e){return e.kind===264}e.isJsxFragment=isJsxFragment;function isJsxOpeningFragment(e){return e.kind===265}e.isJsxOpeningFragment=isJsxOpeningFragment;function isJsxClosingFragment(e){return e.kind===266}e.isJsxClosingFragment=isJsxClosingFragment;function isJsxAttribute(e){return e.kind===267}e.isJsxAttribute=isJsxAttribute;function isJsxAttributes(e){return e.kind===268}e.isJsxAttributes=isJsxAttributes;function isJsxSpreadAttribute(e){return e.kind===269}e.isJsxSpreadAttribute=isJsxSpreadAttribute;function isJsxExpression(e){return e.kind===270}e.isJsxExpression=isJsxExpression;function isCaseClause(e){return e.kind===271}e.isCaseClause=isCaseClause;function isDefaultClause(e){return e.kind===272}e.isDefaultClause=isDefaultClause;function isHeritageClause(e){return e.kind===273}e.isHeritageClause=isHeritageClause;function isCatchClause(e){return e.kind===274}e.isCatchClause=isCatchClause;function isPropertyAssignment(e){return e.kind===275}e.isPropertyAssignment=isPropertyAssignment;function isShorthandPropertyAssignment(e){return e.kind===276}e.isShorthandPropertyAssignment=isShorthandPropertyAssignment;function isSpreadAssignment(e){return e.kind===277}e.isSpreadAssignment=isSpreadAssignment;function isEnumMember(e){return e.kind===278}e.isEnumMember=isEnumMember;function isSourceFile(e){return e.kind===279}e.isSourceFile=isSourceFile;function isBundle(e){return e.kind===280}e.isBundle=isBundle;function isUnparsedSource(e){return e.kind===281}e.isUnparsedSource=isUnparsedSource;function isJSDocTypeExpression(e){return e.kind===283}e.isJSDocTypeExpression=isJSDocTypeExpression;function isJSDocAllType(e){return e.kind===284}e.isJSDocAllType=isJSDocAllType;function isJSDocUnknownType(e){return e.kind===285}e.isJSDocUnknownType=isJSDocUnknownType;function isJSDocNullableType(e){return e.kind===286}e.isJSDocNullableType=isJSDocNullableType;function isJSDocNonNullableType(e){return e.kind===287}e.isJSDocNonNullableType=isJSDocNonNullableType;function isJSDocOptionalType(e){return e.kind===288}e.isJSDocOptionalType=isJSDocOptionalType;function isJSDocFunctionType(e){return e.kind===289}e.isJSDocFunctionType=isJSDocFunctionType;function isJSDocVariadicType(e){return e.kind===290}e.isJSDocVariadicType=isJSDocVariadicType;function isJSDoc(e){return e.kind===291}e.isJSDoc=isJSDoc;function isJSDocAugmentsTag(e){return e.kind===295}e.isJSDocAugmentsTag=isJSDocAugmentsTag;function isJSDocClassTag(e){return e.kind===296}e.isJSDocClassTag=isJSDocClassTag;function isJSDocEnumTag(e){return e.kind===298}e.isJSDocEnumTag=isJSDocEnumTag;function isJSDocThisTag(e){return e.kind===301}e.isJSDocThisTag=isJSDocThisTag;function isJSDocParameterTag(e){return e.kind===299}e.isJSDocParameterTag=isJSDocParameterTag;function isJSDocReturnTag(e){return e.kind===300}e.isJSDocReturnTag=isJSDocReturnTag;function isJSDocTypeTag(e){return e.kind===302}e.isJSDocTypeTag=isJSDocTypeTag;function isJSDocTemplateTag(e){return e.kind===303}e.isJSDocTemplateTag=isJSDocTemplateTag;function isJSDocTypedefTag(e){return e.kind===304}e.isJSDocTypedefTag=isJSDocTypedefTag;function isJSDocPropertyTag(e){return e.kind===305}e.isJSDocPropertyTag=isJSDocPropertyTag;function isJSDocPropertyLikeTag(e){return e.kind===305||e.kind===299}e.isJSDocPropertyLikeTag=isJSDocPropertyLikeTag;function isJSDocTypeLiteral(e){return e.kind===292}e.isJSDocTypeLiteral=isJSDocTypeLiteral;function isJSDocCallbackTag(e){return e.kind===297}e.isJSDocCallbackTag=isJSDocCallbackTag;function isJSDocSignature(e){return e.kind===293}e.isJSDocSignature=isJSDocSignature})(s||(s={}));(function(e){function isSyntaxList(e){return e.kind===306}e.isSyntaxList=isSyntaxList;function isNode(e){return isNodeKind(e.kind)}e.isNode=isNode;function isNodeKind(e){return e>=148}e.isNodeKind=isNodeKind;function isToken(e){return e.kind>=0&&e.kind<=147}e.isToken=isToken;function isNodeArray(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}e.isNodeArray=isNodeArray;function isLiteralKind(e){return 8<=e&&e<=14}e.isLiteralKind=isLiteralKind;function isLiteralExpression(e){return isLiteralKind(e.kind)}e.isLiteralExpression=isLiteralExpression;function isTemplateLiteralKind(e){return 14<=e&&e<=17}e.isTemplateLiteralKind=isTemplateLiteralKind;function isTemplateLiteralToken(e){return isTemplateLiteralKind(e.kind)}e.isTemplateLiteralToken=isTemplateLiteralToken;function isTemplateMiddleOrTemplateTail(e){var t=e.kind;return t===16||t===17}e.isTemplateMiddleOrTemplateTail=isTemplateMiddleOrTemplateTail;function isImportOrExportSpecifier(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)}e.isImportOrExportSpecifier=isImportOrExportSpecifier;function isStringTextContainingNode(e){return e.kind===10||isTemplateLiteralKind(e.kind)}e.isStringTextContainingNode=isStringTextContainingNode;function isGeneratedIdentifier(t){return e.isIdentifier(t)&&(t.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=isGeneratedIdentifier;function isModifierKind(e){switch(e){case 118:case 121:case 77:case 125:case 80:case 85:case 115:case 113:case 114:case 133:case 116:return true}return false}e.isModifierKind=isModifierKind;function isParameterPropertyModifier(t){return!!(e.modifierToFlag(t)&92)}e.isParameterPropertyModifier=isParameterPropertyModifier;function isClassMemberModifier(e){return isParameterPropertyModifier(e)||e===116}e.isClassMemberModifier=isClassMemberModifier;function isModifier(e){return isModifierKind(e.kind)}e.isModifier=isModifier;function isEntityName(e){var t=e.kind;return t===148||t===72}e.isEntityName=isEntityName;function isPropertyName(e){var t=e.kind;return t===72||t===10||t===8||t===149}e.isPropertyName=isPropertyName;function isBindingName(e){var t=e.kind;return t===72||t===184||t===185}e.isBindingName=isBindingName;function isFunctionLike(e){return e&&isFunctionLikeKind(e.kind)}e.isFunctionLike=isFunctionLike;function isFunctionLikeDeclaration(e){return e&&isFunctionLikeDeclarationKind(e.kind)}e.isFunctionLikeDeclaration=isFunctionLikeDeclaration;function isFunctionLikeDeclarationKind(e){switch(e){case 239:case 156:case 157:case 158:case 159:case 196:case 197:return true;default:return false}}function isFunctionLikeKind(e){switch(e){case 155:case 160:case 293:case 161:case 162:case 165:case 289:case 166:return true;default:return isFunctionLikeDeclarationKind(e)}}e.isFunctionLikeKind=isFunctionLikeKind;function isFunctionOrModuleBlock(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&isFunctionLike(t.parent)}e.isFunctionOrModuleBlock=isFunctionOrModuleBlock;function isClassElement(e){var t=e.kind;return t===157||t===154||t===156||t===158||t===159||t===162||t===217}e.isClassElement=isClassElement;function isClassLike(e){return e&&(e.kind===240||e.kind===209)}e.isClassLike=isClassLike;function isAccessor(e){return e&&(e.kind===158||e.kind===159)}e.isAccessor=isAccessor;function isMethodOrAccessor(e){switch(e.kind){case 156:case 158:case 159:return true;default:return false}}e.isMethodOrAccessor=isMethodOrAccessor;function isTypeElement(e){var t=e.kind;return t===161||t===160||t===153||t===155||t===162}e.isTypeElement=isTypeElement;function isClassOrTypeElement(e){return isTypeElement(e)||isClassElement(e)}e.isClassOrTypeElement=isClassOrTypeElement;function isObjectLiteralElementLike(e){var t=e.kind;return t===275||t===276||t===277||t===156||t===158||t===159}e.isObjectLiteralElementLike=isObjectLiteralElementLike;function isTypeNode(t){return e.isTypeNodeKind(t.kind)}e.isTypeNode=isTypeNode;function isFunctionOrConstructorTypeNode(e){switch(e.kind){case 165:case 166:return true}return false}e.isFunctionOrConstructorTypeNode=isFunctionOrConstructorTypeNode;function isBindingPattern(e){if(e){var t=e.kind;return t===185||t===184}return false}e.isBindingPattern=isBindingPattern;function isAssignmentPattern(e){var t=e.kind;return t===187||t===188}e.isAssignmentPattern=isAssignmentPattern;function isArrayBindingElement(e){var t=e.kind;return t===186||t===210}e.isArrayBindingElement=isArrayBindingElement;function isDeclarationBindingElement(e){switch(e.kind){case 237:case 151:case 186:return true}return false}e.isDeclarationBindingElement=isDeclarationBindingElement;function isBindingOrAssignmentPattern(e){return isObjectBindingOrAssignmentPattern(e)||isArrayBindingOrAssignmentPattern(e)}e.isBindingOrAssignmentPattern=isBindingOrAssignmentPattern;function isObjectBindingOrAssignmentPattern(e){switch(e.kind){case 184:case 188:return true}return false}e.isObjectBindingOrAssignmentPattern=isObjectBindingOrAssignmentPattern;function isArrayBindingOrAssignmentPattern(e){switch(e.kind){case 185:case 187:return true}return false}e.isArrayBindingOrAssignmentPattern=isArrayBindingOrAssignmentPattern;function isPropertyAccessOrQualifiedNameOrImportTypeNode(e){var t=e.kind;return t===189||t===148||t===183}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=isPropertyAccessOrQualifiedNameOrImportTypeNode;function isPropertyAccessOrQualifiedName(e){var t=e.kind;return t===189||t===148}e.isPropertyAccessOrQualifiedName=isPropertyAccessOrQualifiedName;function isCallLikeExpression(e){switch(e.kind){case 262:case 261:case 191:case 192:case 193:case 152:return true;default:return false}}e.isCallLikeExpression=isCallLikeExpression;function isCallOrNewExpression(e){return e.kind===191||e.kind===192}e.isCallOrNewExpression=isCallOrNewExpression;function isTemplateLiteral(e){var t=e.kind;return t===206||t===14}e.isTemplateLiteral=isTemplateLiteral;function isLeftHandSideExpression(t){return isLeftHandSideExpressionKind(e.skipPartiallyEmittedExpressions(t).kind)}e.isLeftHandSideExpression=isLeftHandSideExpression;function isLeftHandSideExpressionKind(e){switch(e){case 189:case 190:case 192:case 191:case 260:case 261:case 264:case 193:case 187:case 195:case 188:case 209:case 196:case 72:case 13:case 8:case 9:case 10:case 14:case 206:case 87:case 96:case 100:case 102:case 98:case 213:case 214:case 92:return true;default:return false}}function isUnaryExpression(t){return isUnaryExpressionKind(e.skipPartiallyEmittedExpressions(t).kind)}e.isUnaryExpression=isUnaryExpression;function isUnaryExpressionKind(e){switch(e){case 202:case 203:case 198:case 199:case 200:case 201:case 194:return true;default:return isLeftHandSideExpressionKind(e)}}function isUnaryExpressionWithWrite(e){switch(e.kind){case 203:return true;case 202:return e.operator===44||e.operator===45;default:return false}}e.isUnaryExpressionWithWrite=isUnaryExpressionWithWrite;function isExpression(t){return isExpressionKind(e.skipPartiallyEmittedExpressions(t).kind)}e.isExpression=isExpression;function isExpressionKind(e){switch(e){case 205:case 207:case 197:case 204:case 208:case 212:case 210:case 309:case 308:return true;default:return isUnaryExpressionKind(e)}}function isAssertionExpression(e){var t=e.kind;return t===194||t===212}e.isAssertionExpression=isAssertionExpression;function isPartiallyEmittedExpression(e){return e.kind===308}e.isPartiallyEmittedExpression=isPartiallyEmittedExpression;function isNotEmittedStatement(e){return e.kind===307}e.isNotEmittedStatement=isNotEmittedStatement;function isNotEmittedOrPartiallyEmittedNode(e){return isNotEmittedStatement(e)||isPartiallyEmittedExpression(e)}e.isNotEmittedOrPartiallyEmittedNode=isNotEmittedOrPartiallyEmittedNode;function isIterationStatement(e,t){switch(e.kind){case 225:case 226:case 227:case 223:case 224:return true;case 233:return t&&isIterationStatement(e.statement,t)}return false}e.isIterationStatement=isIterationStatement;function isForInOrOfStatement(e){return e.kind===226||e.kind===227}e.isForInOrOfStatement=isForInOrOfStatement;function isConciseBody(t){return e.isBlock(t)||isExpression(t)}e.isConciseBody=isConciseBody;function isFunctionBody(t){return e.isBlock(t)}e.isFunctionBody=isFunctionBody;function isForInitializer(t){return e.isVariableDeclarationList(t)||isExpression(t)}e.isForInitializer=isForInitializer;function isModuleBody(e){var t=e.kind;return t===245||t===244||t===72}e.isModuleBody=isModuleBody;function isNamespaceBody(e){var t=e.kind;return t===245||t===244}e.isNamespaceBody=isNamespaceBody;function isJSDocNamespaceBody(e){var t=e.kind;return t===72||t===244}e.isJSDocNamespaceBody=isJSDocNamespaceBody;function isNamedImportBindings(e){var t=e.kind;return t===252||t===251}e.isNamedImportBindings=isNamedImportBindings;function isModuleOrEnumDeclaration(e){return e.kind===244||e.kind===243}e.isModuleOrEnumDeclaration=isModuleOrEnumDeclaration;function isDeclarationKind(e){return e===197||e===186||e===240||e===209||e===157||e===243||e===278||e===257||e===239||e===196||e===158||e===250||e===248||e===253||e===241||e===267||e===156||e===155||e===244||e===247||e===251||e===151||e===275||e===154||e===153||e===159||e===276||e===242||e===150||e===237||e===304||e===297||e===305}function isDeclarationStatementKind(e){return e===239||e===258||e===240||e===241||e===242||e===243||e===244||e===249||e===248||e===255||e===254||e===247}function isStatementKindButNotDeclarationKind(e){return e===229||e===228||e===236||e===223||e===221||e===220||e===226||e===227||e===225||e===222||e===233||e===230||e===232||e===234||e===235||e===219||e===224||e===231||e===307||e===311||e===310}function isDeclaration(t){if(t.kind===150){return t.parent.kind!==303||e.isInJSFile(t)}return isDeclarationKind(t.kind)}e.isDeclaration=isDeclaration;function isDeclarationStatement(e){return isDeclarationStatementKind(e.kind)}e.isDeclarationStatement=isDeclarationStatement;function isStatementButNotDeclaration(e){return isStatementKindButNotDeclarationKind(e.kind)}e.isStatementButNotDeclaration=isStatementButNotDeclaration;function isStatement(e){var t=e.kind;return isStatementKindButNotDeclarationKind(t)||isDeclarationStatementKind(t)||isBlockStatement(e)}e.isStatement=isStatement;function isBlockStatement(t){if(t.kind!==218)return false;if(t.parent!==undefined){if(t.parent.kind===235||t.parent.kind===274){return false}}return!e.isFunctionBlock(t)}function isModuleReference(e){var t=e.kind;return t===259||t===148||t===72}e.isModuleReference=isModuleReference;function isJsxTagNameExpression(e){var t=e.kind;return t===100||t===72||t===189}e.isJsxTagNameExpression=isJsxTagNameExpression;function isJsxChild(e){var t=e.kind;return t===260||t===270||t===261||t===11||t===264}e.isJsxChild=isJsxChild;function isJsxAttributeLike(e){var t=e.kind;return t===267||t===269}e.isJsxAttributeLike=isJsxAttributeLike;function isStringLiteralOrJsxExpression(e){var t=e.kind;return t===10||t===270}e.isStringLiteralOrJsxExpression=isStringLiteralOrJsxExpression;function isJsxOpeningLikeElement(e){var t=e.kind;return t===262||t===261}e.isJsxOpeningLikeElement=isJsxOpeningLikeElement;function isCaseOrDefaultClause(e){var t=e.kind;return t===271||t===272}e.isCaseOrDefaultClause=isCaseOrDefaultClause;function isJSDocNode(e){return e.kind>=283&&e.kind<=305}e.isJSDocNode=isJSDocNode;function isJSDocCommentContainingNode(t){return t.kind===291||isJSDocTag(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)}e.isJSDocCommentContainingNode=isJSDocCommentContainingNode;function isJSDocTag(e){return e.kind>=294&&e.kind<=305}e.isJSDocTag=isJSDocTag;function isSetAccessor(e){return e.kind===159}e.isSetAccessor=isSetAccessor;function isGetAccessor(e){return e.kind===158}e.isGetAccessor=isGetAccessor;function hasJSDocNodes(e){var t=e.jsDoc;return!!t&&t.length>0}e.hasJSDocNodes=hasJSDocNodes;function hasType(e){return!!e.type}e.hasType=hasType;function hasInitializer(e){return!!e.initializer}e.hasInitializer=hasInitializer;function hasOnlyExpressionInitializer(t){return hasInitializer(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)}e.hasOnlyExpressionInitializer=hasOnlyExpressionInitializer;function isObjectLiteralElement(e){return e.kind===267||e.kind===269||isObjectLiteralElementLike(e)}e.isObjectLiteralElement=isObjectLiteralElement;function isTypeReferenceType(e){return e.kind===164||e.kind===211}e.isTypeReferenceType=isTypeReferenceType;var t=1073741823;function guessIndentation(r){var n=t;for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!o.length){continue}var s=0;for(;s<o.length&&s<n;s++){if(!e.isWhiteSpaceLike(o.charCodeAt(s))){break}}if(s<n){n=s}if(n===0){return 0}}return n===t?undefined:n}e.guessIndentation=guessIndentation;function isStringLiteralLike(e){return e.kind===10||e.kind===14}e.isStringLiteralLike=isStringLiteralLike})(s||(s={}));(function(e){function isNamedImportsOrExports(e){return e.kind===252||e.kind===256}e.isNamedImportsOrExports=isNamedImportsOrExports;function Symbol(e,t){this.flags=e;this.escapedName=t;this.declarations=undefined;this.valueDeclaration=undefined;this.id=undefined;this.mergeId=undefined;this.parent=undefined}function Type(t,r){this.flags=r;if(e.Debug.isDebugging){this.checker=t}}function Signature(){}function Node(e,t,r){this.pos=t;this.end=r;this.kind=e;this.id=0;this.flags=0;this.modifierFlagsCache=0;this.transformFlags=0;this.parent=undefined;this.original=undefined}function SourceMapSource(e,t,r){this.fileName=e;this.text=t;this.skipTrivia=r||function(e){return e}}e.objectAllocator={getNodeConstructor:function(){return Node},getTokenConstructor:function(){return Node},getIdentifierConstructor:function(){return Node},getSourceFileConstructor:function(){return Node},getSymbolConstructor:function(){return Symbol},getTypeConstructor:function(){return Type},getSignatureConstructor:function(){return Signature},getSourceMapSourceConstructor:function(){return SourceMapSource}};function formatStringFromArgs(t,r,n){if(n===void 0){n=0}return t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.assertDefined(r[+i+n])})}e.formatStringFromArgs=formatStringFromArgs;function getLocaleSpecificMessage(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}e.getLocaleSpecificMessage=getLocaleSpecificMessage;function createFileDiagnostic(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0);e.Debug.assertGreaterThanOrEqual(n,0);if(t){e.Debug.assertLessThanOrEqual(r,t.text.length);e.Debug.assertLessThanOrEqual(r+n,t.text.length)}var a=getLocaleSpecificMessage(i);if(arguments.length>4){a=formatStringFromArgs(a,arguments,4)}return{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}}e.createFileDiagnostic=createFileDiagnostic;function formatMessage(e,t){var r=getLocaleSpecificMessage(t);if(arguments.length>2){r=formatStringFromArgs(r,arguments,2)}return r}e.formatMessage=formatMessage;function createCompilerDiagnostic(e){var t=getLocaleSpecificMessage(e);if(arguments.length>1){t=formatStringFromArgs(t,arguments,1)}return{file:undefined,start:undefined,length:undefined,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}}e.createCompilerDiagnostic=createCompilerDiagnostic;function createCompilerDiagnosticFromMessageChain(e){return{file:undefined,start:undefined,length:undefined,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}e.createCompilerDiagnosticFromMessageChain=createCompilerDiagnosticFromMessageChain;function chainDiagnosticMessages(e,t){var r=getLocaleSpecificMessage(t);if(arguments.length>2){r=formatStringFromArgs(r,arguments,2)}return{messageText:r,category:t.category,code:t.code,next:e}}e.chainDiagnosticMessages=chainDiagnosticMessages;function concatenateDiagnosticMessageChains(e,t){var r=e;while(r.next){r=r.next}r.next=t;return e}e.concatenateDiagnosticMessageChains=concatenateDiagnosticMessageChains;function getDiagnosticFilePath(e){return e.file?e.file.path:undefined}function compareDiagnostics(e,t){return compareDiagnosticsSkipRelatedInformation(e,t)||compareRelatedInformation(e,t)||0}e.compareDiagnostics=compareDiagnostics;function compareDiagnosticsSkipRelatedInformation(t,r){return e.compareStringsCaseSensitive(getDiagnosticFilePath(t),getDiagnosticFilePath(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||compareMessageText(t.messageText,r.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=compareDiagnosticsSkipRelatedInformation;function compareRelatedInformation(t,r){if(!t.relatedInformation&&!r.relatedInformation){return 0}if(t.relatedInformation&&r.relatedInformation){return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,function(e,t){var n=r.relatedInformation[t];return compareDiagnostics(e,n)})||0}return t.relatedInformation?-1:1}function compareMessageText(t,r){var n=t;var i=r;while(n&&i){var a=e.isString(n)?n:n.messageText;var o=e.isString(i)?i:i.messageText;var s=e.compareStringsCaseSensitive(a,o);if(s){return s}n=e.isString(n)?undefined:n.next;i=e.isString(i)?undefined:i.next}if(!n&&!i){return 0}return n?1:-1}function getEmitScriptTarget(e){return e.target||0}e.getEmitScriptTarget=getEmitScriptTarget;function getEmitModuleKind(t){return typeof t.module==="number"?t.module:getEmitScriptTarget(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=getEmitModuleKind;function getEmitModuleResolutionKind(t){var r=t.moduleResolution;if(r===undefined){r=getEmitModuleKind(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic}return r}e.getEmitModuleResolutionKind=getEmitModuleResolutionKind;function hasJsonModuleEmitEnabled(t){switch(getEmitModuleKind(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return true;default:return false}}e.hasJsonModuleEmitEnabled=hasJsonModuleEmitEnabled;function unreachableCodeIsError(e){return e.allowUnreachableCode===false}e.unreachableCodeIsError=unreachableCodeIsError;function unusedLabelIsError(e){return e.allowUnusedLabels===false}e.unusedLabelIsError=unusedLabelIsError;function getAreDeclarationMapsEnabled(e){return!!(getEmitDeclarations(e)&&e.declarationMap)}e.getAreDeclarationMapsEnabled=getAreDeclarationMapsEnabled;function getAllowSyntheticDefaultImports(t){var r=getEmitModuleKind(t);return t.allowSyntheticDefaultImports!==undefined?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=getAllowSyntheticDefaultImports;function getEmitDeclarations(e){return!!(e.declaration||e.composite)}e.getEmitDeclarations=getEmitDeclarations;function getStrictOptionValue(e,t){return e[t]===undefined?!!e.strict:!!e[t]}e.getStrictOptionValue=getStrictOptionValue;function compilerOptionsAffectSemanticDiagnostics(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(n){return!e.isJsonEqual(getCompilerOptionValue(r,n),getCompilerOptionValue(t,n))})}e.compilerOptionsAffectSemanticDiagnostics=compilerOptionsAffectSemanticDiagnostics;function getCompilerOptionValue(e,t){return t.strictFlag?getStrictOptionValue(e,t.name):e[t.name]}e.getCompilerOptionValue=getCompilerOptionValue;function hasZeroOrOneAsteriskCharacter(e){var t=false;for(var r=0;r<e.length;r++){if(e.charCodeAt(r)===42){if(!t){t=true}else{return false}}}return true}e.hasZeroOrOneAsteriskCharacter=hasZeroOrOneAsteriskCharacter;e.directorySeparator="/";var t="\\";var r="://";var n=/\\/g;function normalizeSlashes(t){return t.replace(n,e.directorySeparator)}e.normalizeSlashes=normalizeSlashes;function isVolumeCharacter(e){return e>=97&&e<=122||e>=65&&e<=90}function getFileUrlVolumeSeparatorEnd(e,t){var r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){var n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function getEncodedRootLength(n){if(!n)return 0;var i=n.charCodeAt(0);if(i===47||i===92){if(n.charCodeAt(1)!==i)return 1;var a=n.indexOf(i===47?e.directorySeparator:t,2);if(a<0)return n.length;return a+1}if(isVolumeCharacter(i)&&n.charCodeAt(1)===58){var o=n.charCodeAt(2);if(o===47||o===92)return 3;if(n.length===2)return 2}var s=n.indexOf(r);if(s!==-1){var c=s+r.length;var u=n.indexOf(e.directorySeparator,c);if(u!==-1){var l=n.slice(0,s);var f=n.slice(c,u);if(l==="file"&&(f===""||f==="localhost")&&isVolumeCharacter(n.charCodeAt(u+1))){var d=getFileUrlVolumeSeparatorEnd(n,u+2);if(d!==-1){if(n.charCodeAt(d)===47){return~(d+1)}if(d===n.length){return~d}}}return~(u+1)}return~n.length}return 0}function getRootLength(e){var t=getEncodedRootLength(e);return t<0?~t:t}e.getRootLength=getRootLength;function normalizePath(t){return e.resolvePath(t)}e.normalizePath=normalizePath;function normalizePathAndParts(t){t=normalizeSlashes(t);var r=reducePathComponents(getPathComponents(t)),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(a):a,parts:i}}else{return{path:n,parts:i}}}e.normalizePathAndParts=normalizePathAndParts;function getDirectoryPath(t){t=normalizeSlashes(t);var r=getRootLength(t);if(r===t.length)return t;t=e.removeTrailingDirectorySeparator(t);return t.slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}e.getDirectoryPath=getDirectoryPath;function startsWithDirectory(t,r,n){var i=n(t);var a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")}e.startsWithDirectory=startsWithDirectory;function isUrl(e){return getEncodedRootLength(e)<0}e.isUrl=isUrl;function pathIsRelative(e){return/^\.\.?($|[\\/])/.test(e)}e.pathIsRelative=pathIsRelative;function isRootedDiskPath(e){return getEncodedRootLength(e)>0}e.isRootedDiskPath=isRootedDiskPath;function isDiskPathRoot(e){var t=getEncodedRootLength(e);return t>0&&t===e.length}e.isDiskPathRoot=isDiskPathRoot;function convertToRelativePath(t,r,n){return!isRootedDiskPath(t)?t:e.getRelativePathToDirectoryOrUrl(r,t,r,n,false)}e.convertToRelativePath=convertToRelativePath;function pathComponents(t,r){var n=t.substring(0,r);var i=t.substring(r).split(e.directorySeparator);if(i.length&&!e.lastOrUndefined(i))i.pop();return[n].concat(i)}function getPathComponents(t,r){if(r===void 0){r=""}t=e.combinePaths(r,t);var n=getRootLength(t);return pathComponents(t,n)}e.getPathComponents=getPathComponents;function reducePathComponents(t){if(!e.some(t))return[];var r=[t[0]];for(var n=1;n<t.length;n++){var i=t[n];if(!i)continue;if(i===".")continue;if(i===".."){if(r.length>1){if(r[r.length-1]!==".."){r.pop();continue}}else if(r[0])continue}r.push(i)}return r}e.reducePathComponents=reducePathComponents;function getNormalizedPathComponents(e,t){return reducePathComponents(getPathComponents(e,t))}e.getNormalizedPathComponents=getNormalizedPathComponents;function getNormalizedAbsolutePath(e,t){return getPathFromPathComponents(getNormalizedPathComponents(e,t))}e.getNormalizedAbsolutePath=getNormalizedAbsolutePath;function getPathFromPathComponents(t){if(t.length===0)return"";var r=t[0]&&e.ensureTrailingDirectorySeparator(t[0]);return r+t.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=getPathFromPathComponents})(s||(s={}));(function(e){function getPathComponentsRelativeTo(t,r,n,i){var a=e.reducePathComponents(e.getPathComponents(t));var o=e.reducePathComponents(e.getPathComponents(r));var s;for(s=0;s<a.length&&s<o.length;s++){var c=i(a[s]);var u=i(o[s]);var l=s===0?e.equateStringsCaseInsensitive:n;if(!l(c,u))break}if(s===0){return o}var f=o.slice(s);var d=[];for(;s<a.length;s++){d.push("..")}return[""].concat(d,f)}e.getPathComponentsRelativeTo=getPathComponentsRelativeTo;function getRelativePathFromFile(t,r,n){return ensurePathIsNonModuleName(getRelativePathFromDirectory(e.getDirectoryPath(t),r,n))}e.getRelativePathFromFile=getRelativePathFromFile;function getRelativePathFromDirectory(t,r,n){d.assert(e.getRootLength(t)>0===e.getRootLength(r)>0,"Paths must either both be absolute or both be relative");var i=typeof n==="function"?n:e.identity;var a=typeof n==="boolean"?n:false;var o=getPathComponentsRelativeTo(t,r,a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i);return e.getPathFromPathComponents(o)}e.getRelativePathFromDirectory=getRelativePathFromDirectory;function getRelativePathToDirectoryOrUrl(t,r,n,i,a){var o=getPathComponentsRelativeTo(resolvePath(n,t),resolvePath(n,r),e.equateStringsCaseSensitive,i);var s=o[0];if(a&&e.isRootedDiskPath(s)){var c=s.charAt(0)===e.directorySeparator?"file://":"file:///";o[0]=c+s}return e.getPathFromPathComponents(o)}e.getRelativePathToDirectoryOrUrl=getRelativePathToDirectoryOrUrl;function ensurePathIsNonModuleName(t){return e.getRootLength(t)===0&&!e.pathIsRelative(t)?"./"+t:t}e.ensurePathIsNonModuleName=ensurePathIsNonModuleName;function getBaseFileName(t,r,n){t=e.normalizeSlashes(t);var i=e.getRootLength(t);if(i===t.length)return"";t=removeTrailingDirectorySeparator(t);var a=t.slice(Math.max(e.getRootLength(t),t.lastIndexOf(e.directorySeparator)+1));var o=r!==undefined&&n!==undefined?getAnyExtensionFromPath(a,r,n):undefined;return o?a.slice(0,a.length-o.length):a}e.getBaseFileName=getBaseFileName;function combinePaths(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}if(t)t=e.normalizeSlashes(t);for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!o)continue;o=e.normalizeSlashes(o);if(!t||e.getRootLength(o)!==0){t=o}else{t=ensureTrailingDirectorySeparator(t)+o}}return t}e.combinePaths=combinePaths;function resolvePath(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var i=e.some(r)?combinePaths.apply(void 0,[t].concat(r)):e.normalizeSlashes(t);var a=e.getPathFromPathComponents(e.reducePathComponents(e.getPathComponents(i)));return a&&hasTrailingDirectorySeparator(i)?ensureTrailingDirectorySeparator(a):a}e.resolvePath=resolvePath;function hasTrailingDirectorySeparator(e){if(e.length===0)return false;var t=e.charCodeAt(e.length-1);return t===47||t===92}e.hasTrailingDirectorySeparator=hasTrailingDirectorySeparator;function removeTrailingDirectorySeparator(e){if(hasTrailingDirectorySeparator(e)){return e.substr(0,e.length-1)}return e}e.removeTrailingDirectorySeparator=removeTrailingDirectorySeparator;function ensureTrailingDirectorySeparator(t){if(!hasTrailingDirectorySeparator(t)){return t+e.directorySeparator}return t}e.ensureTrailingDirectorySeparator=ensureTrailingDirectorySeparator;function comparePathsWorker(t,r,n){if(t===r)return 0;if(t===undefined)return-1;if(r===undefined)return 1;var i=e.reducePathComponents(e.getPathComponents(t));var a=e.reducePathComponents(e.getPathComponents(r));var o=Math.min(i.length,a.length);for(var s=0;s<o;s++){var c=s===0?e.compareStringsCaseInsensitive:n;var u=c(i[s],a[s]);if(u!==0){return u}}return e.compareValues(i.length,a.length)}function comparePathsCaseSensitive(t,r){return comparePathsWorker(t,r,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=comparePathsCaseSensitive;function comparePathsCaseInsensitive(t,r){return comparePathsWorker(t,r,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=comparePathsCaseInsensitive;function comparePaths(t,r,n,i){if(typeof n==="string"){t=combinePaths(n,t);r=combinePaths(n,r)}else if(typeof n==="boolean"){i=n}return comparePathsWorker(t,r,e.getStringComparer(i))}e.comparePaths=comparePaths;function containsPath(t,r,n,i){if(typeof n==="string"){t=combinePaths(n,t);r=combinePaths(n,r)}else if(typeof n==="boolean"){i=n}if(t===undefined||r===undefined)return false;if(t===r)return true;var a=e.reducePathComponents(e.getPathComponents(t));var o=e.reducePathComponents(e.getPathComponents(r));if(o.length<a.length){return false}var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive;for(var c=0;c<a.length;c++){var u=c===0?e.equateStringsCaseInsensitive:s;if(!u(a[c],o[c])){return false}}return true}e.containsPath=containsPath;function isDirectorySeparator(e){return e===47||e===92}function stripLeadingDirectorySeparator(e){return isDirectorySeparator(e.charCodeAt(0))?e.slice(1):undefined}function tryRemoveDirectoryPrefix(t,r,n){var i=e.tryRemovePrefix(t,r,n);return i===undefined?undefined:stripLeadingDirectorySeparator(i)}e.tryRemoveDirectoryPrefix=tryRemoveDirectoryPrefix;var t=/[^\w\s\/]/g;function regExpEscape(e){return e.replace(t,escapeRegExpCharacter)}e.regExpEscape=regExpEscape;function escapeRegExpCharacter(e){return"\\"+e}var r=[42,63];function hasExtension(t){return e.stringContains(getBaseFileName(t),".")}e.hasExtension=hasExtension;e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var n="(?!("+e.commonPackageFolders.join("|")+")(/|$))";var i={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+n+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return replaceWildcardCharacter(e,i.singleAsteriskRegexFragment)}};var a={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+n+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return replaceWildcardCharacter(e,a.singleAsteriskRegexFragment)}};var o={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return replaceWildcardCharacter(e,o.singleAsteriskRegexFragment)}};var s={files:i,directories:a,exclude:o};function getRegularExpressionForWildcard(e,t,r){var n=getRegularExpressionsForWildcards(e,t,r);if(!n||!n.length){return undefined}var i=n.map(function(e){return"("+e+")"}).join("|");var a=r==="exclude"?"($|/)":"$";return"^("+i+")"+a}e.getRegularExpressionForWildcard=getRegularExpressionForWildcard;function getRegularExpressionsForWildcards(t,r,n){if(t===undefined||t.length===0){return undefined}return e.flatMap(t,function(e){return e&&getSubPatternFromSpec(e,r,n,s[n])})}e.getRegularExpressionsForWildcards=getRegularExpressionsForWildcards;function isImplicitGlob(e){return!/[.*?]/.test(e)}e.isImplicitGlob=isImplicitGlob;function getSubPatternFromSpec(r,i,a,o){var s=o.singleAsteriskRegexFragment,c=o.doubleAsteriskRegexFragment,u=o.replaceWildcardCharacter;var l="";var f=false;var d=e.getNormalizedPathComponents(r,i);var p=e.last(d);if(a!=="exclude"&&p==="**"){return undefined}d[0]=removeTrailingDirectorySeparator(d[0]);if(isImplicitGlob(p)){d.push("**","*")}var g=0;for(var _=0,m=d;_<m.length;_++){var y=m[_];if(y==="**"){l+=c}else{if(a==="directories"){l+="(";g++}if(f){l+=e.directorySeparator}if(a!=="exclude"){var h="";if(y.charCodeAt(0)===42){h+="([^./]"+s+")?";y=y.substr(1)}else if(y.charCodeAt(0)===63){h+="[^./]";y=y.substr(1)}h+=y.replace(t,u);if(h!==y){l+=n}l+=h}else{l+=y.replace(t,u)}}f=true}while(g>0){l+=")?";g--}return l}function replaceWildcardCharacter(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function getFileMatcherPatterns(t,r,n,i,a){t=e.normalizePath(t);a=e.normalizePath(a);var o=combinePaths(a,t);return{includeFilePatterns:e.map(getRegularExpressionsForWildcards(n,o,"files"),function(e){return"^"+e+"$"}),includeFilePattern:getRegularExpressionForWildcard(n,o,"files"),includeDirectoryPattern:getRegularExpressionForWildcard(n,o,"directories"),excludePattern:getRegularExpressionForWildcard(r,o,"exclude"),basePaths:getBasePaths(t,n,i)}}e.getFileMatcherPatterns=getFileMatcherPatterns;function getRegexFromPattern(e,t){return new RegExp(e,t?"":"i")}e.getRegexFromPattern=getRegexFromPattern;function matchFiles(t,r,n,i,a,o,s,c){t=e.normalizePath(t);o=e.normalizePath(o);var u=getFileMatcherPatterns(t,n,i,a,o);var l=u.includeFilePatterns&&u.includeFilePatterns.map(function(e){return getRegexFromPattern(e,a)});var f=u.includeDirectoryPattern&&getRegexFromPattern(u.includeDirectoryPattern,a);var d=u.excludePattern&&getRegexFromPattern(u.excludePattern,a);var p=l?l.map(function(){return[]}):[[]];for(var g=0,_=u.basePaths;g<_.length;g++){var m=_[g];visitDirectory(m,combinePaths(o,m),s)}return e.flatten(p);function visitDirectory(t,n,i){var a=c(t),o=a.files,s=a.directories;var u=function(i){var a=combinePaths(t,i);var o=combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(d&&d.test(o))return"continue";if(!l){p[0].push(a)}else{var s=e.findIndex(l,function(e){return e.test(o)});if(s!==-1){p[s].push(a)}}};for(var g=0,_=e.sort(o,e.compareStringsCaseSensitive);g<_.length;g++){var m=_[g];u(m)}if(i!==undefined){i--;if(i===0){return}}for(var y=0,h=e.sort(s,e.compareStringsCaseSensitive);y<h.length;y++){var m=h[y];var v=combinePaths(t,m);var T=combinePaths(n,m);if((!f||f.test(T))&&(!d||!d.test(T))){visitDirectory(v,T,i)}}}}e.matchFiles=matchFiles;function getBasePaths(t,r,n){var i=[t];if(r){var a=[];for(var o=0,s=r;o<s.length;o++){var c=s[o];var u=e.isRootedDiskPath(c)?c:e.normalizePath(combinePaths(t,c));a.push(getIncludeBasePath(u))}a.sort(e.getStringComparer(!n));var l=function(r){if(e.every(i,function(e){return!containsPath(e,r,t,!n)})){i.push(r)}};for(var f=0,d=a;f<d.length;f++){var p=d[f];l(p)}}return i}function getIncludeBasePath(t){var n=e.indexOfAnyCharCode(t,r);if(n<0){return!hasExtension(t)?t:removeTrailingDirectorySeparator(e.getDirectoryPath(t))}return t.substring(0,t.lastIndexOf(e.directorySeparator,n))}function ensureScriptKind(e,t){return t||getScriptKindFromFileName(e)||3}e.ensureScriptKind=ensureScriptKind;function getScriptKindFromFileName(e){var t=e.substr(e.lastIndexOf("."));switch(t.toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=getScriptKindFromFileName;e.supportedTSExtensions=[".ts",".tsx",".d.ts"];e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"];e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"];e.supportedJSExtensions=[".js",".jsx"];e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var c=e.supportedTSExtensions.concat(e.supportedJSExtensions);var u=e.supportedTSExtensions.concat(e.supportedJSExtensions,[".json"]);function getSupportedExtensions(t,r){var n=t&&t.allowJs;if(!r||r.length===0){return n?c:e.supportedTSExtensions}var i=(n?c:e.supportedTSExtensions).concat(e.mapDefined(r,function(e){return e.scriptKind===7||n&&isJSLike(e.scriptKind)?e.extension:undefined}));return e.deduplicate(i,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}e.getSupportedExtensions=getSupportedExtensions;function getSuppoertedExtensionsWithJsonIfResolveJsonModule(t,r){if(!t||!t.resolveJsonModule){return r}if(r===c){return u}if(r===e.supportedTSExtensions){return e.supportedTSExtensionsWithJson}return r.concat([".json"])}e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=getSuppoertedExtensionsWithJsonIfResolveJsonModule;function isJSLike(e){return e===1||e===2}function hasJSFileExtension(t){return e.some(e.supportedJSExtensions,function(r){return e.fileExtensionIs(t,r)})}e.hasJSFileExtension=hasJSFileExtension;function hasJSOrJsonFileExtension(t){return e.supportedJSAndJsonExtensions.some(function(r){return e.fileExtensionIs(t,r)})}e.hasJSOrJsonFileExtension=hasJSOrJsonFileExtension;function hasTSFileExtension(t){return e.some(e.supportedTSExtensions,function(r){return e.fileExtensionIs(t,r)})}e.hasTSFileExtension=hasTSFileExtension;function isSupportedSourceFileName(t,r,n){if(!t){return false}var i=getSupportedExtensions(r,n);for(var a=0,o=getSuppoertedExtensionsWithJsonIfResolveJsonModule(r,i);a<o.length;a++){var s=o[a];if(e.fileExtensionIs(t,s)){return true}}return false}e.isSupportedSourceFileName=isSupportedSourceFileName;var l;(function(e){e[e["TypeScriptFiles"]=0]="TypeScriptFiles";e[e["DeclarationAndJavaScriptFiles"]=2]="DeclarationAndJavaScriptFiles";e[e["Highest"]=0]="Highest";e[e["Lowest"]=2]="Lowest"})(l=e.ExtensionPriority||(e.ExtensionPriority={}));function getExtensionPriority(t,r){for(var n=r.length-1;n>=0;n--){if(e.fileExtensionIs(t,r[n])){return adjustExtensionPriority(n,r)}}return 0}e.getExtensionPriority=getExtensionPriority;function adjustExtensionPriority(e,t){if(e<2){return 0}else if(e<t.length){return 2}else{return t.length}}e.adjustExtensionPriority=adjustExtensionPriority;function getNextLowestExtensionPriority(e,t){if(e<2){return 2}else{return t.length}}e.getNextLowestExtensionPriority=getNextLowestExtensionPriority;var f=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function removeFileExtension(e){for(var t=0,r=f;t<r.length;t++){var n=r[t];var i=tryRemoveExtension(e,n);if(i!==undefined){return i}}return e}e.removeFileExtension=removeFileExtension;function tryRemoveExtension(t,r){return e.fileExtensionIs(t,r)?removeExtension(t,r):undefined}e.tryRemoveExtension=tryRemoveExtension;function removeExtension(e,t){return e.substring(0,e.length-t.length)}e.removeExtension=removeExtension;function changeExtension(e,t){return changeAnyExtension(e,t,f,false)}e.changeExtension=changeExtension;function changeAnyExtension(t,r,n,i){var a=n!==undefined&&i!==undefined?getAnyExtensionFromPath(t,n,i):getAnyExtensionFromPath(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t}e.changeAnyExtension=changeAnyExtension;var d;(function(t){function showSymbol(t){var r=e.SymbolFlags;return"{ flags: "+(r?showFlags(t.flags,r):t.flags)+"; declarations: "+e.map(t.declarations,showSyntaxKind)+" }"}t.showSymbol=showSymbol;function showFlags(e,t){var r=[];for(var n=0;n<=30;n++){var i=1<<n;if(e&i){r.push(t[i])}}return r.join("|")}function showSyntaxKind(t){var r=e.SyntaxKind;return r?r[t.kind]:t.kind.toString()}t.showSyntaxKind=showSyntaxKind})(d=e.Debug||(e.Debug={}));function tryParsePattern(t){d.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return r===-1?undefined:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}e.tryParsePattern=tryParsePattern;function positionIsSynthesized(e){return!(e>=0)}e.positionIsSynthesized=positionIsSynthesized;function extensionIsTS(e){return e===".ts"||e===".tsx"||e===".d.ts"}e.extensionIsTS=extensionIsTS;function resolutionExtensionIsTSOrJson(e){return extensionIsTS(e)||e===".json"}e.resolutionExtensionIsTSOrJson=resolutionExtensionIsTSOrJson;function extensionFromPath(e){var t=tryGetExtensionFromPath(e);return t!==undefined?t:d.fail("File "+e+" has unknown extension.")}e.extensionFromPath=extensionFromPath;function isAnySupportedFileExtension(e){return tryGetExtensionFromPath(e)!==undefined}e.isAnySupportedFileExtension=isAnySupportedFileExtension;function tryGetExtensionFromPath(t){return e.find(f,function(r){return e.fileExtensionIs(t,r)})}e.tryGetExtensionFromPath=tryGetExtensionFromPath;function getAnyExtensionFromPathWorker(t,r,n){if(typeof r==="string")r=[r];for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!e.startsWith(o,"."))o="."+o;if(t.length>=o.length&&t.charAt(t.length-o.length)==="."){var s=t.slice(t.length-o.length);if(n(s,o)){return s}}}return""}function getAnyExtensionFromPath(t,r,n){if(r){return getAnyExtensionFromPathWorker(t,r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive)}var i=getBaseFileName(t);var a=i.lastIndexOf(".");if(a>=0){return i.substring(a)}return""}e.getAnyExtensionFromPath=getAnyExtensionFromPath;function isCheckJsEnabledForFile(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}e.isCheckJsEnabledForFile=isCheckJsEnabledForFile;e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function matchPatternOrExact(t,r){var n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];var s=tryParsePattern(o);if(s){n.push(s)}else if(o===r){return o}}return e.findBestPatternMatch(n,function(e){return e},r)}e.matchPatternOrExact=matchPatternOrExact;function sliceAfter(e,t){var r=e.indexOf(t);d.assert(r!==-1);return e.slice(r)}e.sliceAfter=sliceAfter;function minAndMax(e,t){d.assert(e.length!==0);var r=t(e[0]);var n=r;for(var i=1;i<e.length;i++){var a=t(e[i]);if(a<r){r=a}else if(a>n){n=a}}return{min:r,max:n}}e.minAndMax=minAndMax;var p=function(){function NodeSet(){this.map=e.createMap()}NodeSet.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)};NodeSet.prototype.tryAdd=function(e){if(this.has(e))return false;this.add(e);return true};NodeSet.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))};NodeSet.prototype.forEach=function(e){this.map.forEach(e)};NodeSet.prototype.some=function(t){return e.forEachEntry(this.map,t)||false};return NodeSet}();e.NodeSet=p;var g=function(){function NodeMap(){this.map=e.createMap()}NodeMap.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value};NodeMap.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();this.set(e,n);return n};NodeMap.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})};NodeMap.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))};NodeMap.prototype.forEach=function(e){this.map.forEach(function(t){var r=t.node,n=t.value;return e(n,r)})};return NodeMap}();e.NodeMap=g;function rangeOfNode(t){return{pos:e.getTokenPosOfNode(t),end:t.end}}e.rangeOfNode=rangeOfNode;function rangeOfTypeParameters(e){return{pos:e.pos-1,end:e.end+1}}e.rangeOfTypeParameters=rangeOfTypeParameters;function skipTypeChecking(e,t){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib}e.skipTypeChecking=skipTypeChecking;function isJsonEqual(t,r){return t===r||typeof t==="object"&&t!==null&&typeof r==="object"&&r!==null&&e.equalOwnProperties(t,r,isJsonEqual)}e.isJsonEqual=isJsonEqual;function getOrUpdate(e,t,r){var n=e.get(t);if(n===undefined){var i=r();e.set(t,i);return i}else{return n}}e.getOrUpdate=getOrUpdate;function parsePseudoBigInt(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:var r=e.length-1;var n=0;while(e.charCodeAt(n)===48){n++}return e.slice(n,r)||"0"}var i=2,a=e.length-1;var o=(a-i)*t;var s=new Uint16Array((o>>>4)+(o&15?1:0));for(var c=a-1,u=0;c>=i;c--,u+=t){var l=u>>>4;var f=e.charCodeAt(c);var d=f<=57?f-48:10+f-(f<=70?65:97);var p=d<<(u&15);s[l]|=p;var g=p>>>16;if(g)s[l+1]|=g}var _="";var m=s.length-1;var y=true;while(y){var h=0;y=false;for(var l=m;l>=0;l--){var v=h<<16|s[l];var T=v/10|0;s[l]=T;h=v-T*10;if(T&&!y){m=l;y=true}}_=h+_}return _}e.parsePseudoBigInt=parsePseudoBigInt;function pseudoBigIntToString(e){var t=e.negative,r=e.base10Value;return(t&&r!=="0"?"-":"")+r}e.pseudoBigIntToString=pseudoBigIntToString})(s||(s={}));var s;(function(e){var t;(function(e){e[e["None"]=0]="None";e[e["Yield"]=1]="Yield";e[e["Await"]=2]="Await";e[e["Type"]=4]="Type";e[e["IgnoreMissingOpenBrace"]=16]="IgnoreMissingOpenBrace";e[e["JSDoc"]=32]="JSDoc"})(t||(t={}));var r;var n;var i;var a;function createNode(t,o,s){if(t===279){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s)}else if(t===72){return new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s)}else if(!e.isNodeKind(t)){return new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)}else{return new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s)}}e.createNode=createNode;function visitNode(e,t){return t&&e(t)}function visitNodes(e,t,r){if(r){if(t){return t(r)}for(var n=0,i=r;n<i.length;n++){var a=i[n];var o=e(a);if(o){return o}}}}function isJSDocLikeText(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}e.isJSDocLikeText=isJSDocLikeText;function forEachChild(t,r,n){if(!t||t.kind<=147){return}switch(t.kind){case 148:return visitNode(r,t.left)||visitNode(r,t.right);case 150:return visitNode(r,t.name)||visitNode(r,t.constraint)||visitNode(r,t.default)||visitNode(r,t.expression);case 276:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.exclamationToken)||visitNode(r,t.equalsToken)||visitNode(r,t.objectAssignmentInitializer);case 277:return visitNode(r,t.expression);case 151:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.dotDotDotToken)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.type)||visitNode(r,t.initializer);case 154:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.exclamationToken)||visitNode(r,t.type)||visitNode(r,t.initializer);case 153:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.type)||visitNode(r,t.initializer);case 275:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.initializer);case 237:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.exclamationToken)||visitNode(r,t.type)||visitNode(r,t.initializer);case 186:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.dotDotDotToken)||visitNode(r,t.propertyName)||visitNode(r,t.name)||visitNode(r,t.initializer);case 165:case 166:case 160:case 161:case 162:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNodes(r,n,t.typeParameters)||visitNodes(r,n,t.parameters)||visitNode(r,t.type);case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.asteriskToken)||visitNode(r,t.name)||visitNode(r,t.questionToken)||visitNode(r,t.exclamationToken)||visitNodes(r,n,t.typeParameters)||visitNodes(r,n,t.parameters)||visitNode(r,t.type)||visitNode(r,t.equalsGreaterThanToken)||visitNode(r,t.body);case 164:return visitNode(r,t.typeName)||visitNodes(r,n,t.typeArguments);case 163:return visitNode(r,t.parameterName)||visitNode(r,t.type);case 167:return visitNode(r,t.exprName);case 168:return visitNodes(r,n,t.members);case 169:return visitNode(r,t.elementType);case 170:return visitNodes(r,n,t.elementTypes);case 173:case 174:return visitNodes(r,n,t.types);case 175:return visitNode(r,t.checkType)||visitNode(r,t.extendsType)||visitNode(r,t.trueType)||visitNode(r,t.falseType);case 176:return visitNode(r,t.typeParameter);case 183:return visitNode(r,t.argument)||visitNode(r,t.qualifier)||visitNodes(r,n,t.typeArguments);case 177:case 179:return visitNode(r,t.type);case 180:return visitNode(r,t.objectType)||visitNode(r,t.indexType);case 181:return visitNode(r,t.readonlyToken)||visitNode(r,t.typeParameter)||visitNode(r,t.questionToken)||visitNode(r,t.type);case 182:return visitNode(r,t.literal);case 184:case 185:return visitNodes(r,n,t.elements);case 187:return visitNodes(r,n,t.elements);case 188:return visitNodes(r,n,t.properties);case 189:return visitNode(r,t.expression)||visitNode(r,t.name);case 190:return visitNode(r,t.expression)||visitNode(r,t.argumentExpression);case 191:case 192:return visitNode(r,t.expression)||visitNodes(r,n,t.typeArguments)||visitNodes(r,n,t.arguments);case 193:return visitNode(r,t.tag)||visitNodes(r,n,t.typeArguments)||visitNode(r,t.template);case 194:return visitNode(r,t.type)||visitNode(r,t.expression);case 195:return visitNode(r,t.expression);case 198:return visitNode(r,t.expression);case 199:return visitNode(r,t.expression);case 200:return visitNode(r,t.expression);case 202:return visitNode(r,t.operand);case 207:return visitNode(r,t.asteriskToken)||visitNode(r,t.expression);case 201:return visitNode(r,t.expression);case 203:return visitNode(r,t.operand);case 204:return visitNode(r,t.left)||visitNode(r,t.operatorToken)||visitNode(r,t.right);case 212:return visitNode(r,t.expression)||visitNode(r,t.type);case 213:return visitNode(r,t.expression);case 214:return visitNode(r,t.name);case 205:return visitNode(r,t.condition)||visitNode(r,t.questionToken)||visitNode(r,t.whenTrue)||visitNode(r,t.colonToken)||visitNode(r,t.whenFalse);case 208:return visitNode(r,t.expression);case 218:case 245:return visitNodes(r,n,t.statements);case 279:return visitNodes(r,n,t.statements)||visitNode(r,t.endOfFileToken);case 219:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.declarationList);case 238:return visitNodes(r,n,t.declarations);case 221:return visitNode(r,t.expression);case 222:return visitNode(r,t.expression)||visitNode(r,t.thenStatement)||visitNode(r,t.elseStatement);case 223:return visitNode(r,t.statement)||visitNode(r,t.expression);case 224:return visitNode(r,t.expression)||visitNode(r,t.statement);case 225:return visitNode(r,t.initializer)||visitNode(r,t.condition)||visitNode(r,t.incrementor)||visitNode(r,t.statement);case 226:return visitNode(r,t.initializer)||visitNode(r,t.expression)||visitNode(r,t.statement);case 227:return visitNode(r,t.awaitModifier)||visitNode(r,t.initializer)||visitNode(r,t.expression)||visitNode(r,t.statement);case 228:case 229:return visitNode(r,t.label);case 230:return visitNode(r,t.expression);case 231:return visitNode(r,t.expression)||visitNode(r,t.statement);case 232:return visitNode(r,t.expression)||visitNode(r,t.caseBlock);case 246:return visitNodes(r,n,t.clauses);case 271:return visitNode(r,t.expression)||visitNodes(r,n,t.statements);case 272:return visitNodes(r,n,t.statements);case 233:return visitNode(r,t.label)||visitNode(r,t.statement);case 234:return visitNode(r,t.expression);case 235:return visitNode(r,t.tryBlock)||visitNode(r,t.catchClause)||visitNode(r,t.finallyBlock);case 274:return visitNode(r,t.variableDeclaration)||visitNode(r,t.block);case 152:return visitNode(r,t.expression);case 240:case 209:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNodes(r,n,t.typeParameters)||visitNodes(r,n,t.heritageClauses)||visitNodes(r,n,t.members);case 241:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNodes(r,n,t.typeParameters)||visitNodes(r,n,t.heritageClauses)||visitNodes(r,n,t.members);case 242:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNodes(r,n,t.typeParameters)||visitNode(r,t.type);case 243:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNodes(r,n,t.members);case 278:return visitNode(r,t.name)||visitNode(r,t.initializer);case 244:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.body);case 248:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.name)||visitNode(r,t.moduleReference);case 249:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.importClause)||visitNode(r,t.moduleSpecifier);case 250:return visitNode(r,t.name)||visitNode(r,t.namedBindings);case 247:return visitNode(r,t.name);case 251:return visitNode(r,t.name);case 252:case 256:return visitNodes(r,n,t.elements);case 255:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.exportClause)||visitNode(r,t.moduleSpecifier);case 253:case 257:return visitNode(r,t.propertyName)||visitNode(r,t.name);case 254:return visitNodes(r,n,t.decorators)||visitNodes(r,n,t.modifiers)||visitNode(r,t.expression);case 206:return visitNode(r,t.head)||visitNodes(r,n,t.templateSpans);case 216:return visitNode(r,t.expression)||visitNode(r,t.literal);case 149:return visitNode(r,t.expression);case 273:return visitNodes(r,n,t.types);case 211:return visitNode(r,t.expression)||visitNodes(r,n,t.typeArguments);case 259:return visitNode(r,t.expression);case 258:return visitNodes(r,n,t.decorators);case 309:return visitNodes(r,n,t.elements);case 260:return visitNode(r,t.openingElement)||visitNodes(r,n,t.children)||visitNode(r,t.closingElement);case 264:return visitNode(r,t.openingFragment)||visitNodes(r,n,t.children)||visitNode(r,t.closingFragment);case 261:case 262:return visitNode(r,t.tagName)||visitNodes(r,n,t.typeArguments)||visitNode(r,t.attributes);case 268:return visitNodes(r,n,t.properties);case 267:return visitNode(r,t.name)||visitNode(r,t.initializer);case 269:return visitNode(r,t.expression);case 270:return visitNode(r,t.dotDotDotToken)||visitNode(r,t.expression);case 263:return visitNode(r,t.tagName);case 171:case 172:case 283:case 287:case 286:case 288:case 290:return visitNode(r,t.type);case 289:return visitNodes(r,n,t.parameters)||visitNode(r,t.type);case 291:return visitNodes(r,n,t.tags);case 299:case 305:return visitNode(r,t.tagName)||(t.isNameFirst?visitNode(r,t.name)||visitNode(r,t.typeExpression):visitNode(r,t.typeExpression)||visitNode(r,t.name));case 295:return visitNode(r,t.tagName)||visitNode(r,t.class);case 303:return visitNode(r,t.tagName)||visitNode(r,t.constraint)||visitNodes(r,n,t.typeParameters);case 304:return visitNode(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===283?visitNode(r,t.typeExpression)||visitNode(r,t.fullName):visitNode(r,t.fullName)||visitNode(r,t.typeExpression));case 297:return visitNode(r,t.tagName)||visitNode(r,t.fullName)||visitNode(r,t.typeExpression);case 300:case 302:case 301:case 298:return visitNode(r,t.tagName)||visitNode(r,t.typeExpression);case 293:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||visitNode(r,t.type);case 292:return e.forEach(t.jsDocPropertyTags,r);case 294:case 296:return visitNode(r,t.tagName);case 308:return visitNode(r,t.expression)}}e.forEachChild=forEachChild;function createSourceFile(t,r,n,i,a){if(i===void 0){i=false}e.performance.mark("beforeParse");var s;if(n===100){s=o.parseSourceFile(t,r,n,undefined,i,6)}else{s=o.parseSourceFile(t,r,n,undefined,i,a)}e.performance.mark("afterParse");e.performance.measure("Parse","beforeParse","afterParse");return s}e.createSourceFile=createSourceFile;function parseIsolatedEntityName(e,t){return o.parseIsolatedEntityName(e,t)}e.parseIsolatedEntityName=parseIsolatedEntityName;function parseJsonText(e,t){return o.parseJsonText(e,t)}e.parseJsonText=parseJsonText;function isExternalModule(e){return e.externalModuleIndicator!==undefined}e.isExternalModule=isExternalModule;function updateSourceFile(e,t,r,n){if(n===void 0){n=false}var i=s.updateSourceFile(e,t,r,n);i.flags|=e.flags&1572864;return i}e.updateSourceFile=updateSourceFile;function parseIsolatedJSDocComment(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);if(n&&n.jsDoc){o.fixupParentReferences(n.jsDoc)}return n}e.parseIsolatedJSDocComment=parseIsolatedJSDocComment;function parseJSDocTypeExpressionForTests(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}e.parseJSDocTypeExpressionForTests=parseJSDocTypeExpressionForTests;var o;(function(t){var r=e.createScanner(6,true);var n=2048|8192;var i;var a;var o;var s;var c;var u;var l;var f;var d;var p;var g;var _;var m;var y;var h=false;function parseSourceFile(t,r,n,i,a,o){if(a===void 0){a=false}o=e.ensureScriptKind(t,o);if(o===6){var s=parseJsonText(t,r,n,i,a);e.convertToObjectWorker(s,s.parseDiagnostics,false,undefined,undefined);s.referencedFiles=e.emptyArray;s.typeReferenceDirectives=e.emptyArray;s.libReferenceDirectives=e.emptyArray;s.amdDependencies=e.emptyArray;s.hasNoDefaultLib=false;s.pragmas=e.emptyMap;return s}initializeState(r,n,i,o);var c=parseSourceFileWorker(t,n,a,o);clearState();return c}t.parseSourceFile=parseSourceFile;function parseIsolatedEntityName(e,t){initializeState(e,t,undefined,1);nextToken();var r=parseEntityName(true);var n=token()===1&&!u.length;clearState();return n?r:undefined}t.parseIsolatedEntityName=parseIsolatedEntityName;function parseJsonText(t,r,n,i,a){if(n===void 0){n=2}initializeState(r,n,i,6);c=createSourceFile(t,2,6,false);c.flags=y;nextToken();var o=getNodePos();if(token()===1){c.statements=createNodeArray([],o,o);c.endOfFileToken=parseTokenNode()}else{var s=createNode(221);switch(token()){case 22:s.expression=parseArrayLiteralExpression();break;case 102:case 87:case 96:s.expression=parseTokenNode();break;case 39:if(lookAhead(function(){return nextToken()===8&&nextToken()!==57})){s.expression=parsePrefixUnaryExpression()}else{s.expression=parseObjectLiteralExpression()}break;case 8:case 10:if(lookAhead(function(){return nextToken()!==57})){s.expression=parseLiteralNode();break}default:s.expression=parseObjectLiteralExpression();break}finishNode(s);c.statements=createNodeArray([s],o);c.endOfFileToken=parseExpectedToken(1,e.Diagnostics.Unexpected_token)}if(a){fixupParentReferences(c)}c.parseDiagnostics=u;var l=c;clearState();return l}t.parseJsonText=parseJsonText;function getLanguageVariant(e){return e===4||e===2||e===1||e===6?1:0}function initializeState(t,n,c,f){i=e.objectAllocator.getNodeConstructor();a=e.objectAllocator.getTokenConstructor();o=e.objectAllocator.getIdentifierConstructor();s=e.objectAllocator.getSourceFileConstructor();d=t;l=c;u=[];m=0;g=e.createMap();_=0;p=0;switch(f){case 1:case 2:y=65536;break;case 6:y=65536|16777216;break;default:y=0;break}h=false;r.setText(d);r.setOnError(scanError);r.setScriptTarget(n);r.setLanguageVariant(getLanguageVariant(f))}function clearState(){r.setText("");r.setOnError(undefined);u=undefined;c=undefined;g=undefined;l=undefined;d=undefined}function parseSourceFileWorker(t,r,n,i){var a=isDeclarationFileName(t);if(a){y|=4194304}c=createSourceFile(t,r,i,a);c.flags=y;nextToken();processCommentPragmas(c,d);processPragmasIntoFields(c,reportPragmaDiagnostic);c.statements=parseList(0,parseStatement);e.Debug.assert(token()===1);c.endOfFileToken=addJSDocComment(parseTokenNode());setExternalModuleIndicator(c);c.nodeCount=p;c.identifierCount=_;c.identifiers=g;c.parseDiagnostics=u;if(n){fixupParentReferences(c)}return c;function reportPragmaDiagnostic(t,r,n){u.push(e.createFileDiagnostic(c,t,r,n))}}function addJSDocComment(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,c.text),function(e){return S.parseJSDocComment(t,e.pos,e.end-e.pos)});if(r.length)t.jsDoc=r;return t}function fixupParentReferences(t){var r=t;forEachChild(t,visitNode);return;function visitNode(t){if(t.parent!==r){t.parent=r;var n=r;r=t;forEachChild(t,visitNode);if(e.hasJSDocNodes(t)){for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];o.parent=t;r=o;forEachChild(o,visitNode)}}r=n}}}t.fixupParentReferences=fixupParentReferences;function createSourceFile(t,r,n,i){var a=new s(279,0,d.length);p++;a.text=d;a.bindDiagnostics=[];a.bindSuggestionDiagnostics=undefined;a.languageVersion=r;a.fileName=e.normalizePath(t);a.languageVariant=getLanguageVariant(n);a.isDeclarationFile=i;a.scriptKind=n;return a}function setContextFlag(e,t){if(e){y|=t}else{y&=~t}}function setDisallowInContext(e){setContextFlag(e,2048)}function setYieldContext(e){setContextFlag(e,4096)}function setDecoratorContext(e){setContextFlag(e,8192)}function setAwaitContext(e){setContextFlag(e,16384)}function doOutsideOfContext(e,t){var r=e&y;if(r){setContextFlag(false,r);var n=t();setContextFlag(true,r);return n}return t()}function doInsideOfContext(e,t){var r=e&~y;if(r){setContextFlag(true,r);var n=t();setContextFlag(false,r);return n}return t()}function allowInAnd(e){return doOutsideOfContext(2048,e)}function disallowInAnd(e){return doInsideOfContext(2048,e)}function doInYieldContext(e){return doInsideOfContext(4096,e)}function doInDecoratorContext(e){return doInsideOfContext(8192,e)}function doInAwaitContext(e){return doInsideOfContext(16384,e)}function doOutsideOfAwaitContext(e){return doOutsideOfContext(16384,e)}function doInYieldAndAwaitContext(e){return doInsideOfContext(4096|16384,e)}function inContext(e){return(y&e)!==0}function inYieldContext(){return inContext(4096)}function inDisallowInContext(){return inContext(2048)}function inDecoratorContext(){return inContext(8192)}function inAwaitContext(){return inContext(16384)}function parseErrorAtCurrentToken(e,t){parseErrorAt(r.getTokenPos(),r.getTextPos(),e,t)}function parseErrorAtPosition(t,r,n,i){var a=e.lastOrUndefined(u);if(!a||t!==a.start){u.push(e.createFileDiagnostic(c,t,r,n,i))}h=true}function parseErrorAt(e,t,r,n){parseErrorAtPosition(e,t-e,r,n)}function parseErrorAtRange(e,t,r){parseErrorAt(e.pos,e.end,t,r)}function scanError(e,t){parseErrorAtPosition(r.getTextPos(),t,e)}function getNodePos(){return r.getStartPos()}function token(){return f}function nextToken(){return f=r.scan()}function reScanGreaterToken(){return f=r.reScanGreaterToken()}function reScanSlashToken(){return f=r.reScanSlashToken()}function reScanTemplateToken(){return f=r.reScanTemplateToken()}function scanJsxIdentifier(){return f=r.scanJsxIdentifier()}function scanJsxText(){return f=r.scanJsxToken()}function scanJsxAttributeValue(){return f=r.scanJsxAttributeValue()}function speculationHelper(t,n){var i=f;var a=u.length;var o=h;var s=y;var c=n?r.lookAhead(t):r.tryScan(t);e.Debug.assert(s===y);if(!c||n){f=i;u.length=a;h=o}return c}function lookAhead(e){return speculationHelper(e,true)}function tryParse(e){return speculationHelper(e,false)}function isIdentifier(){if(token()===72){return true}if(token()===117&&inYieldContext()){return false}if(token()===122&&inAwaitContext()){return false}return token()>108}function parseExpected(t,r,n){if(n===void 0){n=true}if(token()===t){if(n){nextToken()}return true}if(r){parseErrorAtCurrentToken(r)}else{parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(t))}return false}function parseOptional(e){if(token()===e){nextToken();return true}return false}function parseOptionalToken(e){if(token()===e){return parseTokenNode()}return undefined}function parseExpectedToken(t,r,n){return parseOptionalToken(t)||createMissingNode(t,false,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function parseTokenNode(){var e=createNode(token());nextToken();return finishNode(e)}function canParseSemicolon(){if(token()===26){return true}return token()===19||token()===1||r.hasPrecedingLineBreak()}function parseSemicolon(){if(canParseSemicolon()){if(token()===26){nextToken()}return true}else{return parseExpected(26)}}function createNode(t,n){p++;var s=n>=0?n:r.getStartPos();return e.isNodeKind(t)||t===0?new i(t,s,s):t===72?new o(t,s,s):new a(t,s,s)}function createNodeWithJSDoc(e,t){var n=createNode(e,t);if(r.getTokenFlags()&2){addJSDocComment(n)}return n}function createNodeArray(e,t,n){var i=e.length;var a=i>=1&&i<=4?e.slice():e;a.pos=t;a.end=n===undefined?r.getStartPos():n;return a}function finishNode(e,t){e.end=t===undefined?r.getStartPos():t;if(y){e.flags|=y}if(h){h=false;e.flags|=32768}return e}function createMissingNode(t,n,i,a){if(n){parseErrorAtPosition(r.getStartPos(),0,i,a)}else if(i){parseErrorAtCurrentToken(i,a)}var o=createNode(t);if(t===72){o.escapedText=""}else if(e.isLiteralKind(t)||e.isTemplateLiteralKind(t)){o.text=""}return finishNode(o)}function internIdentifier(e){var t=g.get(e);if(t===undefined){g.set(e,t=e)}return t}function createIdentifier(t,n){_++;if(t){var i=createNode(72);if(token()!==72){i.originalKeywordKind=token()}i.escapedText=e.escapeLeadingUnderscores(internIdentifier(r.getTokenValue()));nextToken();return finishNode(i)}var a=token()===1;return createMissingNode(72,a,n||e.Diagnostics.Identifier_expected)}function parseIdentifier(e){return createIdentifier(isIdentifier(),e)}function parseIdentifierName(t){return createIdentifier(e.tokenIsIdentifierOrKeyword(token()),t)}function isLiteralPropertyName(){return e.tokenIsIdentifierOrKeyword(token())||token()===10||token()===8}function parsePropertyNameWorker(e){if(token()===10||token()===8){var t=parseLiteralNode();t.text=internIdentifier(t.text);return t}if(e&&token()===22){return parseComputedPropertyName()}return parseIdentifierName()}function parsePropertyName(){return parsePropertyNameWorker(true)}function parseComputedPropertyName(){var e=createNode(149);parseExpected(22);e.expression=allowInAnd(parseExpression);parseExpected(23);return finishNode(e)}function parseContextualModifier(e){return token()===e&&tryParse(nextTokenCanFollowModifier)}function nextTokenIsOnSameLineAndCanFollowModifier(){nextToken();if(r.hasPrecedingLineBreak()){return false}return canFollowModifier()}function nextTokenCanFollowModifier(){switch(token()){case 77:return nextToken()===84;case 85:nextToken();if(token()===80){return lookAhead(nextTokenCanFollowDefaultKeyword)}return token()!==40&&token()!==119&&token()!==18&&canFollowModifier();case 80:return nextTokenCanFollowDefaultKeyword();case 116:case 126:case 137:nextToken();return canFollowModifier();default:return nextTokenIsOnSameLineAndCanFollowModifier()}}function parseAnyContextualModifier(){return e.isModifierKind(token())&&tryParse(nextTokenCanFollowModifier)}function canFollowModifier(){return token()===22||token()===18||token()===40||token()===25||isLiteralPropertyName()}function nextTokenCanFollowDefaultKeyword(){nextToken();return token()===76||token()===90||token()===110||token()===118&&lookAhead(nextTokenIsClassKeywordOnSameLine)||token()===121&&lookAhead(nextTokenIsFunctionKeywordOnSameLine)}function isListElement(t,r){var n=currentNode(t);if(n){return true}switch(t){case 0:case 1:case 3:return!(token()===26&&r)&&isStartOfStatement();case 2:return token()===74||token()===80;case 4:return lookAhead(isTypeMemberStart);case 5:return lookAhead(isClassMemberStart)||token()===26&&!r;case 6:return token()===22||isLiteralPropertyName();case 12:switch(token()){case 22:case 40:case 25:case 24:return true;default:return isLiteralPropertyName()}case 18:return isLiteralPropertyName();case 9:return token()===22||token()===25||isLiteralPropertyName();case 7:if(token()===18){return lookAhead(isValidHeritageClauseObjectLiteral)}if(!r){return isStartOfLeftHandSideExpression()&&!isHeritageClauseExtendsOrImplementsKeyword()}else{return isIdentifier()&&!isHeritageClauseExtendsOrImplementsKeyword()}case 8:return isIdentifierOrPattern();case 10:return token()===27||token()===25||isIdentifierOrPattern();case 19:return isIdentifier();case 15:switch(token()){case 27:case 24:return true}case 11:return token()===25||isStartOfExpression();case 16:return isStartOfParameter(false);case 17:return isStartOfParameter(true);case 20:case 21:return token()===27||isStartOfType();case 22:return isHeritageClause();case 23:return e.tokenIsIdentifierOrKeyword(token());case 13:return e.tokenIsIdentifierOrKeyword(token())||token()===18;case 14:return true}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function isValidHeritageClauseObjectLiteral(){e.Debug.assert(token()===18);if(nextToken()===19){var t=nextToken();return t===27||t===18||t===86||t===109}return true}function nextTokenIsIdentifier(){nextToken();return isIdentifier()}function nextTokenIsIdentifierOrKeyword(){nextToken();return e.tokenIsIdentifierOrKeyword(token())}function nextTokenIsIdentifierOrKeywordOrGreaterThan(){nextToken();return e.tokenIsIdentifierOrKeywordOrGreaterThan(token())}function isHeritageClauseExtendsOrImplementsKeyword(){if(token()===109||token()===86){return lookAhead(nextTokenIsStartOfExpression)}return false}function nextTokenIsStartOfExpression(){nextToken();return isStartOfExpression()}function nextTokenIsStartOfType(){nextToken();return isStartOfType()}function isListTerminator(e){if(token()===1){return true}switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return token()===19;case 3:return token()===19||token()===74||token()===80;case 7:return token()===18||token()===86||token()===109;case 8:return isVariableDeclaratorListTerminator();case 19:return token()===30||token()===20||token()===18||token()===86||token()===109;case 11:return token()===21||token()===26;case 15:case 21:case 10:return token()===23;case 17:case 16:case 18:return token()===21||token()===23;case 20:return token()!==27;case 22:return token()===18||token()===19;case 13:return token()===30||token()===42;case 14:return token()===28&&lookAhead(nextTokenIsSlash);default:return false}}function isVariableDeclaratorListTerminator(){if(canParseSemicolon()){return true}if(isInOrOfKeyword(token())){return true}if(token()===37){return true}return false}function isInSomeParsingContext(){for(var e=0;e<24;e++){if(m&1<<e){if(isListElement(e,true)||isListTerminator(e)){return true}}}return false}function parseList(e,t){var r=m;m|=1<<e;var n=[];var i=getNodePos();while(!isListTerminator(e)){if(isListElement(e,false)){var a=parseListElement(e,t);n.push(a);continue}if(abortParsingListOrMoveToNextToken(e)){break}}m=r;return createNodeArray(n,i)}function parseListElement(e,t){var r=currentNode(e);if(r){return consumeNode(r)}return t()}function currentNode(t){if(h){return undefined}if(!l){return undefined}var n=l.currentNode(r.getStartPos());if(e.nodeIsMissing(n)){return undefined}if(n.intersectsChange){return undefined}if(e.containsParseError(n)){return undefined}var i=n.flags&12679168;if(i!==y){return undefined}if(!canReuseNode(n,t)){return undefined}if(n.jsDocCache){n.jsDocCache=undefined}return n}function consumeNode(e){r.setTextPos(e.end);nextToken();return e}function canReuseNode(e,t){switch(t){case 5:return isReusableClassMember(e);case 2:return isReusableSwitchClause(e);case 0:case 1:case 3:return isReusableStatement(e);case 6:return isReusableEnumMember(e);case 4:return isReusableTypeMember(e);case 8:return isReusableVariableDeclaration(e);case 17:case 16:return isReusableParameter(e);case 18:return false;case 22:case 19:case 21:case 20:case 11:case 12:case 7:case 13:case 14:}return false}function isReusableClassMember(e){if(e){switch(e.kind){case 157:case 162:case 158:case 159:case 154:case 217:return true;case 156:var t=e;var r=t.name.kind===72&&t.name.originalKeywordKind===124;return!r}}return false}function isReusableSwitchClause(e){if(e){switch(e.kind){case 271:case 272:return true}}return false}function isReusableStatement(e){if(e){switch(e.kind){case 239:case 219:case 218:case 222:case 221:case 234:case 230:case 232:case 229:case 228:case 226:case 227:case 225:case 224:case 231:case 220:case 235:case 233:case 223:case 236:case 249:case 248:case 255:case 254:case 244:case 240:case 241:case 243:case 242:return true}}return false}function isReusableEnumMember(e){return e.kind===278}function isReusableTypeMember(e){if(e){switch(e.kind){case 161:case 155:case 162:case 153:case 160:return true}}return false}function isReusableVariableDeclaration(e){if(e.kind!==237){return false}var t=e;return t.initializer===undefined}function isReusableParameter(e){if(e.kind!==151){return false}var t=e;return t.initializer===undefined}function abortParsingListOrMoveToNextToken(e){parseErrorAtCurrentToken(parsingContextErrors(e));if(isInSomeParsingContext()){return true}nextToken();return false}function parsingContextErrors(t){switch(t){case 0:return e.Diagnostics.Declaration_or_statement_expected;case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:return e.Diagnostics.Parameter_declaration_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:return e.Diagnostics.Identifier_expected;case 13:return e.Diagnostics.Identifier_expected;case 14:return e.Diagnostics.Identifier_expected;default:return undefined}}function parseDelimitedList(e,t,n){var i=m;m|=1<<e;var a=[];var o=getNodePos();var s=-1;while(true){if(isListElement(e,false)){var c=r.getStartPos();a.push(parseListElement(e,t));s=r.getTokenPos();if(parseOptional(27)){continue}s=-1;if(isListTerminator(e)){break}parseExpected(27);if(n&&token()===26&&!r.hasPrecedingLineBreak()){nextToken()}if(c===r.getStartPos()){nextToken()}continue}if(isListTerminator(e)){break}if(abortParsingListOrMoveToNextToken(e)){break}}m=i;var u=createNodeArray(a,o);if(s>=0){u.hasTrailingComma=true}return u}function createMissingList(){var e=createNodeArray([],getNodePos());e.isMissingList=true;return e}function isMissingList(e){return!!e.isMissingList}function parseBracketedList(e,t,r,n){if(parseExpected(r)){var i=parseDelimitedList(e,t);parseExpected(n);return i}return createMissingList()}function parseEntityName(e,t){var n=e?parseIdentifierName(t):parseIdentifier(t);var i=r.getStartPos();while(parseOptional(24)){if(token()===28){n.jsdocDotPos=i;break}i=r.getStartPos();n=createQualifiedName(n,parseRightSideOfDot(e))}return n}function createQualifiedName(e,t){var r=createNode(148,e.pos);r.left=e;r.right=t;return finishNode(r)}function parseRightSideOfDot(t){if(r.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(token())){var n=lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);if(n){return createMissingNode(72,true,e.Diagnostics.Identifier_expected)}}return t?parseIdentifierName():parseIdentifier()}function parseTemplateExpression(){var t=createNode(206);t.head=parseTemplateHead();e.Debug.assert(t.head.kind===15,"Template head has wrong token kind");var r=[];var n=getNodePos();do{r.push(parseTemplateSpan())}while(e.last(r).literal.kind===16);t.templateSpans=createNodeArray(r,n);return finishNode(t)}function parseTemplateSpan(){var t=createNode(216);t.expression=allowInAnd(parseExpression);var r;if(token()===19){reScanTemplateToken();r=parseTemplateMiddleOrTemplateTail()}else{r=parseExpectedToken(17,e.Diagnostics._0_expected,e.tokenToString(19))}t.literal=r;return finishNode(t)}function parseLiteralNode(){return parseLiteralLikeNode(token())}function parseTemplateHead(){var t=parseLiteralLikeNode(token());e.Debug.assert(t.kind===15,"Template head has wrong token kind");return t}function parseTemplateMiddleOrTemplateTail(){var t=parseLiteralLikeNode(token());e.Debug.assert(t.kind===16||t.kind===17,"Template fragment has wrong token kind");return t}function parseLiteralLikeNode(e){var t=createNode(e);t.text=r.getTokenValue();if(r.hasExtendedUnicodeEscape()){t.hasExtendedUnicodeEscape=true}if(r.isUnterminated()){t.isUnterminated=true}if(t.kind===8){t.numericLiteralFlags=r.getTokenFlags()&1008}nextToken();finishNode(t);return t}function parseTypeReference(){var t=createNode(164);t.typeName=parseEntityName(true,e.Diagnostics.Type_expected);if(!r.hasPrecedingLineBreak()&&token()===28){t.typeArguments=parseBracketedList(20,parseType,28,30)}return finishNode(t)}function typeHasArrowFunctionBlockingParseError(t){switch(t.kind){case 164:return e.nodeIsMissing(t.typeName);case 165:case 166:{var r=t,n=r.parameters,i=r.type;return isMissingList(n)||typeHasArrowFunctionBlockingParseError(i)}case 177:return typeHasArrowFunctionBlockingParseError(t.type);default:return false}}function parseThisTypePredicate(e){nextToken();var t=createNode(163,e.pos);t.parameterName=e;t.type=parseType();return finishNode(t)}function parseThisTypeNode(){var e=createNode(178);nextToken();return finishNode(e)}function parseJSDocAllType(e){var t=createNode(284);if(e){return createPostfixType(288,t)}else{nextToken()}return finishNode(t)}function parseJSDocNonNullableType(){var e=createNode(287);nextToken();e.type=parseNonArrayType();return finishNode(e)}function parseJSDocUnknownOrNullableType(){var e=r.getStartPos();nextToken();if(token()===27||token()===19||token()===21||token()===30||token()===59||token()===50){var t=createNode(285,e);return finishNode(t)}else{var t=createNode(286,e);t.type=parseType();return finishNode(t)}}function parseJSDocFunctionType(){if(lookAhead(nextTokenIsOpenParen)){var e=createNodeWithJSDoc(289);nextToken();fillSignature(57,4|32,e);return finishNode(e)}var t=createNode(164);t.typeName=parseIdentifierName();return finishNode(t)}function parseJSDocParameter(){var e=createNode(151);if(token()===100||token()===95){e.name=parseIdentifierName();parseExpected(57)}e.type=parseJSDocType();return finishNode(e)}function parseJSDocType(){r.setInJSDocType(true);var e=parseOptionalToken(25);var t=parseTypeOrTypePredicate();r.setInJSDocType(false);if(e){var n=createNode(290,e.pos);n.type=t;t=finishNode(n)}if(token()===59){return createPostfixType(288,t)}return t}function parseTypeQuery(){var e=createNode(167);parseExpected(104);e.exprName=parseEntityName(true);return finishNode(e)}function parseTypeParameter(){var e=createNode(150);e.name=parseIdentifier();if(parseOptional(86)){if(isStartOfType()||!isStartOfExpression()){e.constraint=parseType()}else{e.expression=parseUnaryExpressionOrHigher()}}if(parseOptional(59)){e.default=parseType()}return finishNode(e)}function parseTypeParameters(){if(token()===28){return parseBracketedList(19,parseTypeParameter,28,30)}}function parseParameterType(){if(parseOptional(57)){return parseType()}return undefined}function isStartOfParameter(t){return token()===25||isIdentifierOrPattern()||e.isModifierKind(token())||token()===58||isStartOfType(!t)}function parseParameter(){var t=createNodeWithJSDoc(151);if(token()===100){t.name=createIdentifier(true);t.type=parseParameterType();return finishNode(t)}t.decorators=parseDecorators();t.modifiers=parseModifiers();t.dotDotDotToken=parseOptionalToken(25);t.name=parseIdentifierOrPattern();if(e.getFullWidth(t.name)===0&&!e.hasModifiers(t)&&e.isModifierKind(token())){nextToken()}t.questionToken=parseOptionalToken(56);t.type=parseParameterType();t.initializer=parseInitializer();return finishNode(t)}function fillSignature(e,t,r){if(!(t&32)){r.typeParameters=parseTypeParameters()}var n=parseParameterList(r,t);if(shouldParseReturnType(e,!!(t&4))){r.type=parseTypeOrTypePredicate();if(typeHasArrowFunctionBlockingParseError(r.type))return false}return n}function shouldParseReturnType(t,r){if(t===37){parseExpected(t);return true}else if(parseOptional(57)){return true}else if(r&&token()===37){parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(57));nextToken();return true}return false}function parseParameterList(e,t){if(!parseExpected(20)){e.parameters=createMissingList();return false}var r=inYieldContext();var n=inAwaitContext();setYieldContext(!!(t&1));setAwaitContext(!!(t&2));e.parameters=t&32?parseDelimitedList(17,parseJSDocParameter):parseDelimitedList(16,parseParameter);setYieldContext(r);setAwaitContext(n);return parseExpected(21)}function parseTypeMemberSemicolon(){if(parseOptional(27)){return}parseSemicolon()}function parseSignatureMember(e){var t=createNodeWithJSDoc(e);if(e===161){parseExpected(95)}fillSignature(57,4,t);parseTypeMemberSemicolon();return finishNode(t)}function isIndexSignature(){return token()===22&&lookAhead(isUnambiguouslyIndexSignature)}function isUnambiguouslyIndexSignature(){nextToken();if(token()===25||token()===23){return true}if(e.isModifierKind(token())){nextToken();if(isIdentifier()){return true}}else if(!isIdentifier()){return false}else{nextToken()}if(token()===57||token()===27){return true}if(token()!==56){return false}nextToken();return token()===57||token()===27||token()===23}function parseIndexSignatureDeclaration(e){e.kind=162;e.parameters=parseBracketedList(16,parseParameter,22,23);e.type=parseTypeAnnotation();parseTypeMemberSemicolon();return finishNode(e)}function parsePropertyOrMethodSignature(e){e.name=parsePropertyName();e.questionToken=parseOptionalToken(56);if(token()===20||token()===28){e.kind=155;fillSignature(57,4,e)}else{e.kind=153;e.type=parseTypeAnnotation();if(token()===59){e.initializer=parseInitializer()}}parseTypeMemberSemicolon();return finishNode(e)}function isTypeMemberStart(){if(token()===20||token()===28){return true}var t=false;while(e.isModifierKind(token())){t=true;nextToken()}if(token()===22){return true}if(isLiteralPropertyName()){t=true;nextToken()}if(t){return token()===20||token()===28||token()===56||token()===57||token()===27||canParseSemicolon()}return false}function parseTypeMember(){if(token()===20||token()===28){return parseSignatureMember(160)}if(token()===95&&lookAhead(nextTokenIsOpenParenOrLessThan)){return parseSignatureMember(161)}var e=createNodeWithJSDoc(0);e.modifiers=parseModifiers();if(isIndexSignature()){return parseIndexSignatureDeclaration(e)}return parsePropertyOrMethodSignature(e)}function nextTokenIsOpenParenOrLessThan(){nextToken();return token()===20||token()===28}function nextTokenIsDot(){return nextToken()===24}function nextTokenIsOpenParenOrLessThanOrDot(){switch(nextToken()){case 20:case 28:case 24:return true}return false}function parseTypeLiteral(){var e=createNode(168);e.members=parseObjectTypeMembers();return finishNode(e)}function parseObjectTypeMembers(){var e;if(parseExpected(18)){e=parseList(4,parseTypeMember);parseExpected(19)}else{e=createMissingList()}return e}function isStartOfMappedType(){nextToken();if(token()===38||token()===39){return nextToken()===133}if(token()===133){nextToken()}return token()===22&&nextTokenIsIdentifier()&&nextToken()===93}function parseMappedTypeParameter(){var e=createNode(150);e.name=parseIdentifier();parseExpected(93);e.constraint=parseType();return finishNode(e)}function parseMappedType(){var e=createNode(181);parseExpected(18);if(token()===133||token()===38||token()===39){e.readonlyToken=parseTokenNode();if(e.readonlyToken.kind!==133){parseExpectedToken(133)}}parseExpected(22);e.typeParameter=parseMappedTypeParameter();parseExpected(23);if(token()===56||token()===38||token()===39){e.questionToken=parseTokenNode();if(e.questionToken.kind!==56){parseExpectedToken(56)}}e.type=parseTypeAnnotation();parseSemicolon();parseExpected(19);return finishNode(e)}function parseTupleElementType(){var e=getNodePos();if(parseOptional(25)){var t=createNode(172,e);t.type=parseType();return finishNode(t)}var r=parseType();if(!(y&2097152)&&r.kind===286&&r.pos===r.type.pos){r.kind=171}return r}function parseTupleType(){var e=createNode(170);e.elementTypes=parseBracketedList(21,parseTupleElementType,22,23);return finishNode(e)}function parseParenthesizedType(){var e=createNode(177);parseExpected(20);e.type=parseType();parseExpected(21);return finishNode(e)}function parseFunctionOrConstructorType(){var e=getNodePos();var t=parseOptional(95)?166:165;var r=createNodeWithJSDoc(t,e);fillSignature(37,4,r);return finishNode(r)}function parseKeywordAndNoDot(){var e=parseTokenNode();return token()===24?undefined:e}function parseLiteralTypeNode(e){var t=createNode(182);var r;if(e){r=createNode(202);r.operator=39;nextToken()}var n=token()===102||token()===87?parseTokenNode():parseLiteralLikeNode(token());if(e){r.operand=n;finishNode(r);n=r}t.literal=n;return finishNode(t)}function isStartOfTypeOfImportType(){nextToken();return token()===92}function parseImportType(){c.flags|=524288;var t=createNode(183);if(parseOptional(104)){t.isTypeOf=true}parseExpected(92);parseExpected(20);t.argument=parseType();parseExpected(21);if(parseOptional(24)){t.qualifier=parseEntityName(true,e.Diagnostics.Type_expected)}t.typeArguments=tryParseTypeArguments();return finishNode(t)}function nextTokenIsNumericOrBigIntLiteral(){nextToken();return token()===8||token()===9}function parseNonArrayType(){switch(token()){case 120:case 143:case 138:case 135:case 146:case 139:case 123:case 141:case 132:case 136:return tryParse(parseKeywordAndNoDot)||parseTypeReference();case 40:return parseJSDocAllType(false);case 62:return parseJSDocAllType(true);case 56:return parseJSDocUnknownOrNullableType();case 90:return parseJSDocFunctionType();case 52:return parseJSDocNonNullableType();case 14:case 10:case 8:case 9:case 102:case 87:return parseLiteralTypeNode();case 39:return lookAhead(nextTokenIsNumericOrBigIntLiteral)?parseLiteralTypeNode(true):parseTypeReference();case 106:case 96:return parseTokenNode();case 100:{var e=parseThisTypeNode();if(token()===128&&!r.hasPrecedingLineBreak()){return parseThisTypePredicate(e)}else{return e}}case 104:return lookAhead(isStartOfTypeOfImportType)?parseImportType():parseTypeQuery();case 18:return lookAhead(isStartOfMappedType)?parseMappedType():parseTypeLiteral();case 22:return parseTupleType();case 20:return parseParenthesizedType();case 92:return parseImportType();default:return parseTypeReference()}}function isStartOfType(e){switch(token()){case 120:case 143:case 138:case 135:case 146:case 123:case 139:case 142:case 106:case 141:case 96:case 100:case 104:case 132:case 18:case 22:case 28:case 50:case 49:case 95:case 10:case 8:case 9:case 102:case 87:case 136:case 40:case 56:case 52:case 25:case 127:case 92:return true;case 90:return!e;case 39:return!e&&lookAhead(nextTokenIsNumericOrBigIntLiteral);case 20:return!e&&lookAhead(isStartOfParenthesizedOrFunctionType);default:return isIdentifier()}}function isStartOfParenthesizedOrFunctionType(){nextToken();return token()===21||isStartOfParameter(false)||isStartOfType()}function parsePostfixTypeOrHigher(){var e=parseNonArrayType();while(!r.hasPrecedingLineBreak()){switch(token()){case 52:e=createPostfixType(287,e);break;case 56:if(!(y&2097152)&&lookAhead(nextTokenIsStartOfType)){return e}e=createPostfixType(286,e);break;case 22:parseExpected(22);if(isStartOfType()){var t=createNode(180,e.pos);t.objectType=e;t.indexType=parseType();parseExpected(23);e=finishNode(t)}else{var t=createNode(169,e.pos);t.elementType=e;parseExpected(23);e=finishNode(t)}break;default:return e}}return e}function createPostfixType(e,t){nextToken();var r=createNode(e,t.pos);r.type=t;return finishNode(r)}function parseTypeOperator(e){var t=createNode(179);parseExpected(e);t.operator=e;t.type=parseTypeOperatorOrHigher();return finishNode(t)}function parseInferType(){var e=createNode(176);parseExpected(127);var t=createNode(150);t.name=parseIdentifier();e.typeParameter=finishNode(t);return finishNode(e)}function parseTypeOperatorOrHigher(){var e=token();switch(e){case 129:case 142:return parseTypeOperator(e);case 127:return parseInferType()}return parsePostfixTypeOrHigher()}function parseUnionOrIntersectionType(e,t,r){parseOptional(r);var n=t();if(token()===r){var i=[n];while(parseOptional(r)){i.push(t())}var a=createNode(e,n.pos);a.types=createNodeArray(i,n.pos);n=finishNode(a)}return n}function parseIntersectionTypeOrHigher(){return parseUnionOrIntersectionType(174,parseTypeOperatorOrHigher,49)}function parseUnionTypeOrHigher(){return parseUnionOrIntersectionType(173,parseIntersectionTypeOrHigher,50)}function isStartOfFunctionType(){if(token()===28){return true}return token()===20&&lookAhead(isUnambiguouslyStartOfFunctionType)}function skipParameterStart(){if(e.isModifierKind(token())){parseModifiers()}if(isIdentifier()||token()===100){nextToken();return true}if(token()===22||token()===18){var t=u.length;parseIdentifierOrPattern();return t===u.length}return false}function isUnambiguouslyStartOfFunctionType(){nextToken();if(token()===21||token()===25){return true}if(skipParameterStart()){if(token()===57||token()===27||token()===56||token()===59){return true}if(token()===21){nextToken();if(token()===37){return true}}}return false}function parseTypeOrTypePredicate(){var e=isIdentifier()&&tryParse(parseTypePredicatePrefix);var t=parseType();if(e){var r=createNode(163,e.pos);r.parameterName=e;r.type=t;return finishNode(r)}else{return t}}function parseTypePredicatePrefix(){var e=parseIdentifier();if(token()===128&&!r.hasPrecedingLineBreak()){nextToken();return e}}function parseType(){return doOutsideOfContext(20480,parseTypeWorker)}function parseTypeWorker(e){if(isStartOfFunctionType()||token()===95){return parseFunctionOrConstructorType()}var t=parseUnionTypeOrHigher();if(!e&&!r.hasPrecedingLineBreak()&&parseOptional(86)){var n=createNode(175,t.pos);n.checkType=t;n.extendsType=parseTypeWorker(true);parseExpected(56);n.trueType=parseTypeWorker();parseExpected(57);n.falseType=parseTypeWorker();return finishNode(n)}return t}function parseTypeAnnotation(){return parseOptional(57)?parseType():undefined}function isStartOfLeftHandSideExpression(){switch(token()){case 100:case 98:case 96:case 102:case 87:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 90:case 76:case 95:case 42:case 64:case 72:return true;case 92:return lookAhead(nextTokenIsOpenParenOrLessThanOrDot);default:return isIdentifier()}}function isStartOfExpression(){if(isStartOfLeftHandSideExpression()){return true}switch(token()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 44:case 45:case 28:case 122:case 117:return true;default:if(isBinaryOperator()){return true}return isIdentifier()}}function isStartOfExpressionStatement(){return token()!==18&&token()!==90&&token()!==76&&token()!==58&&isStartOfExpression()}function parseExpression(){var e=inDecoratorContext();if(e){setDecoratorContext(false)}var t=parseAssignmentExpressionOrHigher();var r;while(r=parseOptionalToken(27)){t=makeBinaryExpression(t,r,parseAssignmentExpressionOrHigher())}if(e){setDecoratorContext(true)}return t}function parseInitializer(){return parseOptional(59)?parseAssignmentExpressionOrHigher():undefined}function parseAssignmentExpressionOrHigher(){if(isYieldExpression()){return parseYieldExpression()}var t=tryParseParenthesizedArrowFunctionExpression()||tryParseAsyncSimpleArrowFunctionExpression();if(t){return t}var r=parseBinaryExpressionOrHigher(0);if(r.kind===72&&token()===37){return parseSimpleArrowFunctionExpression(r)}if(e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(reScanGreaterToken())){return makeBinaryExpression(r,parseTokenNode(),parseAssignmentExpressionOrHigher())}return parseConditionalExpressionRest(r)}function isYieldExpression(){if(token()===117){if(inYieldContext()){return true}return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine)}return false}function nextTokenIsIdentifierOnSameLine(){nextToken();return!r.hasPrecedingLineBreak()&&isIdentifier()}function parseYieldExpression(){var e=createNode(207);nextToken();if(!r.hasPrecedingLineBreak()&&(token()===40||isStartOfExpression())){e.asteriskToken=parseOptionalToken(40);e.expression=parseAssignmentExpressionOrHigher();return finishNode(e)}else{return finishNode(e)}}function parseSimpleArrowFunctionExpression(t,r){e.Debug.assert(token()===37,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;if(r){n=createNode(197,r.pos);n.modifiers=r}else{n=createNode(197,t.pos)}var i=createNode(151,t.pos);i.name=t;finishNode(i);n.parameters=createNodeArray([i],i.pos,i.end);n.equalsGreaterThanToken=parseExpectedToken(37);n.body=parseArrowFunctionExpressionBody(!!r);return addJSDocComment(finishNode(n))}function tryParseParenthesizedArrowFunctionExpression(){var t=isParenthesizedArrowFunctionExpression();if(t===0){return undefined}var r=t===1?parseParenthesizedArrowFunctionExpressionHead(true):tryParse(parsePossibleParenthesizedArrowFunctionExpressionHead);if(!r){return undefined}var n=e.hasModifier(r,256);var i=token();r.equalsGreaterThanToken=parseExpectedToken(37);r.body=i===37||i===18?parseArrowFunctionExpressionBody(n):parseIdentifier();return finishNode(r)}function isParenthesizedArrowFunctionExpression(){if(token()===20||token()===28||token()===121){return lookAhead(isParenthesizedArrowFunctionExpressionWorker)}if(token()===37){return 1}return 0}function isParenthesizedArrowFunctionExpressionWorker(){if(token()===121){nextToken();if(r.hasPrecedingLineBreak()){return 0}if(token()!==20&&token()!==28){return 0}}var t=token();var n=nextToken();if(t===20){if(n===21){var i=nextToken();switch(i){case 37:case 57:case 18:return 1;default:return 0}}if(n===22||n===18){return 2}if(n===25){return 1}if(e.isModifierKind(n)&&n!==121&&lookAhead(nextTokenIsIdentifier)){return 1}if(!isIdentifier()&&n!==100){return 0}switch(nextToken()){case 57:return 1;case 56:nextToken();if(token()===57||token()===27||token()===59||token()===21){return 1}return 0;case 27:case 59:case 21:return 2}return 0}else{e.Debug.assert(t===28);if(!isIdentifier()){return 0}if(c.languageVariant===1){var a=lookAhead(function(){var e=nextToken();if(e===86){var t=nextToken();switch(t){case 59:case 30:return false;default:return true}}else if(e===27){return true}return false});if(a){return 1}return 0}return 2}}function parsePossibleParenthesizedArrowFunctionExpressionHead(){return parseParenthesizedArrowFunctionExpressionHead(false)}function tryParseAsyncSimpleArrowFunctionExpression(){if(token()===121){if(lookAhead(isUnParenthesizedAsyncArrowFunctionWorker)===1){var e=parseModifiersForArrowFunction();var t=parseBinaryExpressionOrHigher(0);return parseSimpleArrowFunctionExpression(t,e)}}return undefined}function isUnParenthesizedAsyncArrowFunctionWorker(){if(token()===121){nextToken();if(r.hasPrecedingLineBreak()||token()===37){return 0}var e=parseBinaryExpressionOrHigher(0);if(!r.hasPrecedingLineBreak()&&e.kind===72&&token()===37){return 1}}return 0}function parseParenthesizedArrowFunctionExpressionHead(t){var r=createNodeWithJSDoc(197);r.modifiers=parseModifiersForArrowFunction();var n=e.hasModifier(r,256)?2:0;if(!fillSignature(57,n,r)&&!t){return undefined}if(!t&&token()!==37&&token()!==18){return undefined}return r}function parseArrowFunctionExpressionBody(e){if(token()===18){return parseFunctionBlock(e?2:0)}if(token()!==26&&token()!==90&&token()!==76&&isStartOfStatement()&&!isStartOfExpressionStatement()){return parseFunctionBlock(16|(e?2:0))}return e?doInAwaitContext(parseAssignmentExpressionOrHigher):doOutsideOfAwaitContext(parseAssignmentExpressionOrHigher)}function parseConditionalExpressionRest(t){var r=parseOptionalToken(56);if(!r){return t}var i=createNode(205,t.pos);i.condition=t;i.questionToken=r;i.whenTrue=doOutsideOfContext(n,parseAssignmentExpressionOrHigher);i.colonToken=parseExpectedToken(57);i.whenFalse=e.nodeIsPresent(i.colonToken)?parseAssignmentExpressionOrHigher():createMissingNode(72,false,e.Diagnostics._0_expected,e.tokenToString(57));return finishNode(i)}function parseBinaryExpressionOrHigher(e){var t=parseUnaryExpressionOrHigher();return parseBinaryExpressionRest(e,t)}function isInOrOfKeyword(e){return e===93||e===147}function parseBinaryExpressionRest(t,n){while(true){reScanGreaterToken();var i=e.getBinaryOperatorPrecedence(token());var a=token()===41?i>=t:i>t;if(!a){break}if(token()===93&&inDisallowInContext()){break}if(token()===119){if(r.hasPrecedingLineBreak()){break}else{nextToken();n=makeAsExpression(n,parseType())}}else{n=makeBinaryExpression(n,parseTokenNode(),parseBinaryExpressionOrHigher(i))}}return n}function isBinaryOperator(){if(inDisallowInContext()&&token()===93){return false}return e.getBinaryOperatorPrecedence(token())>0}function makeBinaryExpression(e,t,r){var n=createNode(204,e.pos);n.left=e;n.operatorToken=t;n.right=r;return finishNode(n)}function makeAsExpression(e,t){var r=createNode(212,e.pos);r.expression=e;r.type=t;return finishNode(r)}function parsePrefixUnaryExpression(){var e=createNode(202);e.operator=token();nextToken();e.operand=parseSimpleUnaryExpression();return finishNode(e)}function parseDeleteExpression(){var e=createNode(198);nextToken();e.expression=parseSimpleUnaryExpression();return finishNode(e)}function parseTypeOfExpression(){var e=createNode(199);nextToken();e.expression=parseSimpleUnaryExpression();return finishNode(e)}function parseVoidExpression(){var e=createNode(200);nextToken();e.expression=parseSimpleUnaryExpression();return finishNode(e)}function isAwaitExpression(){if(token()===122){if(inAwaitContext()){return true}return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine)}return false}function parseAwaitExpression(){var e=createNode(201);nextToken();e.expression=parseSimpleUnaryExpression();return finishNode(e)}function parseUnaryExpressionOrHigher(){if(isUpdateExpression()){var t=parseUpdateExpression();return token()===41?parseBinaryExpressionRest(e.getBinaryOperatorPrecedence(token()),t):t}var r=token();var n=parseSimpleUnaryExpression();if(token()===41){var i=e.skipTrivia(d,n.pos);var a=n.end;if(n.kind===194){parseErrorAt(i,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)}else{parseErrorAt(i,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 n}function parseSimpleUnaryExpression(){switch(token()){case 38:case 39:case 53:case 52:return parsePrefixUnaryExpression();case 81:return parseDeleteExpression();case 104:return parseTypeOfExpression();case 106:return parseVoidExpression();case 28:return parseTypeAssertion();case 122:if(isAwaitExpression()){return parseAwaitExpression()}default:return parseUpdateExpression()}}function isUpdateExpression(){switch(token()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 122:return false;case 28:if(c.languageVariant!==1){return false}default:return true}}function parseUpdateExpression(){if(token()===44||token()===45){var t=createNode(202);t.operator=token();nextToken();t.operand=parseLeftHandSideExpressionOrHigher();return finishNode(t)}else if(c.languageVariant===1&&token()===28&&lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)){return parseJsxElementOrSelfClosingElementOrFragment(true)}var n=parseLeftHandSideExpressionOrHigher();e.Debug.assert(e.isLeftHandSideExpression(n));if((token()===44||token()===45)&&!r.hasPrecedingLineBreak()){var t=createNode(203,n.pos);t.operand=n;t.operator=token();nextToken();return finishNode(t)}return n}function parseLeftHandSideExpressionOrHigher(){var e;if(token()===92){if(lookAhead(nextTokenIsOpenParenOrLessThan)){c.flags|=524288;e=parseTokenNode()}else if(lookAhead(nextTokenIsDot)){var t=r.getStartPos();nextToken();nextToken();var n=createNode(214,t);n.keywordToken=92;n.name=parseIdentifierName();e=finishNode(n);c.flags|=1048576}else{e=parseMemberExpressionOrHigher()}}else{e=token()===98?parseSuperExpression():parseMemberExpressionOrHigher()}return parseCallExpressionRest(e)}function parseMemberExpressionOrHigher(){var e=parsePrimaryExpression();return parseMemberExpressionRest(e)}function parseSuperExpression(){var t=parseTokenNode();if(token()===20||token()===24||token()===22){return t}var r=createNode(189,t.pos);r.expression=t;parseExpectedToken(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access);r.name=parseRightSideOfDot(true);return finishNode(r)}function parseJsxElementOrSelfClosingElementOrFragment(t){var r=parseJsxOpeningOrSelfClosingElementOrOpeningFragment(t);var n;if(r.kind===262){var i=createNode(260,r.pos);i.openingElement=r;i.children=parseJsxChildren(i.openingElement);i.closingElement=parseJsxClosingElement(t);if(!tagNamesAreEquivalent(i.openingElement.tagName,i.closingElement.tagName)){parseErrorAtRange(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(d,i.openingElement.tagName))}n=finishNode(i)}else if(r.kind===265){var i=createNode(264,r.pos);i.openingFragment=r;i.children=parseJsxChildren(i.openingFragment);i.closingFragment=parseJsxClosingFragment(t);n=finishNode(i)}else{e.Debug.assert(r.kind===261);n=r}if(t&&token()===28){var a=tryParse(function(){return parseJsxElementOrSelfClosingElementOrFragment(true)});if(a){parseErrorAtCurrentToken(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=createNode(204,n.pos);o.end=a.end;o.left=n;o.right=a;o.operatorToken=createMissingNode(27,false,undefined);o.operatorToken.pos=o.operatorToken.end=o.right.pos;return o}}return n}function parseJsxText(){var e=createNode(11);e.containsOnlyWhiteSpaces=f===12;f=r.scanJsxToken();return finishNode(e)}function parseJsxChild(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t)){parseErrorAtRange(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag)}else{parseErrorAtRange(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(d,t.tagName))}return undefined;case 29:case 7:return undefined;case 11:case 12:return parseJsxText();case 18:return parseJsxExpression(false);case 28:return parseJsxElementOrSelfClosingElementOrFragment(false);default:return e.Debug.assertNever(r)}}function parseJsxChildren(e){var t=[];var n=getNodePos();var i=m;m|=1<<14;while(true){var a=parseJsxChild(e,f=r.reScanJsxToken());if(!a)break;t.push(a)}m=i;return createNodeArray(t,n)}function parseJsxAttributes(){var e=createNode(268);e.properties=parseList(13,parseJsxAttribute);return finishNode(e)}function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(e){var t=r.getStartPos();parseExpected(28);if(token()===30){var n=createNode(265,t);scanJsxText();return finishNode(n)}var i=parseJsxElementName();var a=tryParseTypeArguments();var o=parseJsxAttributes();var s;if(token()===30){s=createNode(262,t);scanJsxText()}else{parseExpected(42);if(e){parseExpected(30)}else{parseExpected(30,undefined,false);scanJsxText()}s=createNode(261,t)}s.tagName=i;s.typeArguments=a;s.attributes=o;return finishNode(s)}function parseJsxElementName(){scanJsxIdentifier();var e=token()===100?parseTokenNode():parseIdentifierName();while(parseOptional(24)){var t=createNode(189,e.pos);t.expression=e;t.name=parseRightSideOfDot(true);e=finishNode(t)}return e}function parseJsxExpression(e){var t=createNode(270);if(!parseExpected(18)){return undefined}if(token()!==19){t.dotDotDotToken=parseOptionalToken(25);t.expression=parseAssignmentExpressionOrHigher()}if(e){parseExpected(19)}else{parseExpected(19,undefined,false);scanJsxText()}return finishNode(t)}function parseJsxAttribute(){if(token()===18){return parseJsxSpreadAttribute()}scanJsxIdentifier();var e=createNode(267);e.name=parseIdentifierName();if(token()===59){switch(scanJsxAttributeValue()){case 10:e.initializer=parseLiteralNode();break;default:e.initializer=parseJsxExpression(true);break}}return finishNode(e)}function parseJsxSpreadAttribute(){var e=createNode(269);parseExpected(18);parseExpected(25);e.expression=parseExpression();parseExpected(19);return finishNode(e)}function parseJsxClosingElement(e){var t=createNode(263);parseExpected(29);t.tagName=parseJsxElementName();if(e){parseExpected(30)}else{parseExpected(30,undefined,false);scanJsxText()}return finishNode(t)}function parseJsxClosingFragment(t){var r=createNode(266);parseExpected(29);if(e.tokenIsIdentifierOrKeyword(token())){parseErrorAtRange(parseJsxElementName(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}if(t){parseExpected(30)}else{parseExpected(30,undefined,false);scanJsxText()}return finishNode(r)}function parseTypeAssertion(){var e=createNode(194);parseExpected(28);e.type=parseType();parseExpected(30);e.expression=parseSimpleUnaryExpression();return finishNode(e)}function parseMemberExpressionRest(t){while(true){var n=parseOptionalToken(24);if(n){var i=createNode(189,t.pos);i.expression=t;i.name=parseRightSideOfDot(true);t=finishNode(i);continue}if(token()===52&&!r.hasPrecedingLineBreak()){nextToken();var a=createNode(213,t.pos);a.expression=t;t=finishNode(a);continue}if(!inDecoratorContext()&&parseOptional(22)){var o=createNode(190,t.pos);o.expression=t;if(token()===23){o.argumentExpression=createMissingNode(72,true,e.Diagnostics.An_element_access_expression_should_take_an_argument)}else{var s=allowInAnd(parseExpression);if(e.isStringOrNumericLiteralLike(s)){s.text=internIdentifier(s.text)}o.argumentExpression=s}parseExpected(23);t=finishNode(o);continue}if(isTemplateStartOfTaggedTemplate()){t=parseTaggedTemplateRest(t,undefined);continue}return t}}function isTemplateStartOfTaggedTemplate(){return token()===14||token()===15}function parseTaggedTemplateRest(e,t){var r=createNode(193,e.pos);r.tag=e;r.typeArguments=t;r.template=token()===14?parseLiteralNode():parseTemplateExpression();return finishNode(r)}function parseCallExpressionRest(e){while(true){e=parseMemberExpressionRest(e);if(token()===28){var t=tryParse(parseTypeArgumentsInExpression);if(!t){return e}if(isTemplateStartOfTaggedTemplate()){e=parseTaggedTemplateRest(e,t);continue}var r=createNode(191,e.pos);r.expression=e;r.typeArguments=t;r.arguments=parseArgumentList();e=finishNode(r);continue}else if(token()===20){var r=createNode(191,e.pos);r.expression=e;r.arguments=parseArgumentList();e=finishNode(r);continue}return e}}function parseArgumentList(){parseExpected(20);var e=parseDelimitedList(11,parseArgumentExpression);parseExpected(21);return e}function parseTypeArgumentsInExpression(){if(!parseOptional(28)){return undefined}var e=parseDelimitedList(20,parseType);if(!parseExpected(30)){return undefined}return e&&canFollowTypeArgumentsInExpression()?e:undefined}function canFollowTypeArgumentsInExpression(){switch(token()){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return true;case 27:case 18:default:return false}}function parsePrimaryExpression(){switch(token()){case 8:case 9:case 10:case 14:return parseLiteralNode();case 100:case 98:case 96:case 102:case 87:return parseTokenNode();case 20:return parseParenthesizedExpression();case 22:return parseArrayLiteralExpression();case 18:return parseObjectLiteralExpression();case 121:if(!lookAhead(nextTokenIsFunctionKeywordOnSameLine)){break}return parseFunctionExpression();case 76:return parseClassExpression();case 90:return parseFunctionExpression();case 95:return parseNewExpressionOrNewDotTarget();case 42:case 64:if(reScanSlashToken()===13){return parseLiteralNode()}break;case 15:return parseTemplateExpression()}return parseIdentifier(e.Diagnostics.Expression_expected)}function parseParenthesizedExpression(){var e=createNodeWithJSDoc(195);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);return finishNode(e)}function parseSpreadElement(){var e=createNode(208);parseExpected(25);e.expression=parseAssignmentExpressionOrHigher();return finishNode(e)}function parseArgumentOrArrayLiteralElement(){return token()===25?parseSpreadElement():token()===27?createNode(210):parseAssignmentExpressionOrHigher()}function parseArgumentExpression(){return doOutsideOfContext(n,parseArgumentOrArrayLiteralElement)}function parseArrayLiteralExpression(){var e=createNode(187);parseExpected(22);if(r.hasPrecedingLineBreak()){e.multiLine=true}e.elements=parseDelimitedList(15,parseArgumentOrArrayLiteralElement);parseExpected(23);return finishNode(e)}function parseObjectLiteralElement(){var e=createNodeWithJSDoc(0);if(parseOptionalToken(25)){e.kind=277;e.expression=parseAssignmentExpressionOrHigher();return finishNode(e)}e.decorators=parseDecorators();e.modifiers=parseModifiers();if(parseContextualModifier(126)){return parseAccessorDeclaration(e,158)}if(parseContextualModifier(137)){return parseAccessorDeclaration(e,159)}var t=parseOptionalToken(40);var r=isIdentifier();e.name=parsePropertyName();e.questionToken=parseOptionalToken(56);e.exclamationToken=parseOptionalToken(52);if(t||token()===20||token()===28){return parseMethodDeclaration(e,t)}var n=r&&token()!==57;if(n){e.kind=276;var i=parseOptionalToken(59);if(i){e.equalsToken=i;e.objectAssignmentInitializer=allowInAnd(parseAssignmentExpressionOrHigher)}}else{e.kind=275;parseExpected(57);e.initializer=allowInAnd(parseAssignmentExpressionOrHigher)}return finishNode(e)}function parseObjectLiteralExpression(){var e=createNode(188);parseExpected(18);if(r.hasPrecedingLineBreak()){e.multiLine=true}e.properties=parseDelimitedList(12,parseObjectLiteralElement,true);parseExpected(19);return finishNode(e)}function parseFunctionExpression(){var t=inDecoratorContext();if(t){setDecoratorContext(false)}var r=createNodeWithJSDoc(196);r.modifiers=parseModifiers();parseExpected(90);r.asteriskToken=parseOptionalToken(40);var n=r.asteriskToken?1:0;var i=e.hasModifier(r,256)?2:0;r.name=n&&i?doInYieldAndAwaitContext(parseOptionalIdentifier):n?doInYieldContext(parseOptionalIdentifier):i?doInAwaitContext(parseOptionalIdentifier):parseOptionalIdentifier();fillSignature(57,n|i,r);r.body=parseFunctionBlock(n|i);if(t){setDecoratorContext(true)}return finishNode(r)}function parseOptionalIdentifier(){return isIdentifier()?parseIdentifier():undefined}function parseNewExpressionOrNewDotTarget(){var t=r.getStartPos();parseExpected(95);if(parseOptional(24)){var n=createNode(214,t);n.keywordToken=95;n.name=parseIdentifierName();return finishNode(n)}var i=parsePrimaryExpression();var a;while(true){i=parseMemberExpressionRest(i);a=tryParse(parseTypeArgumentsInExpression);if(isTemplateStartOfTaggedTemplate()){e.Debug.assert(!!a,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'");i=parseTaggedTemplateRest(i,a);a=undefined}break}var o=createNode(192,t);o.expression=i;o.typeArguments=a;if(o.typeArguments||token()===20){o.arguments=parseArgumentList()}return finishNode(o)}function parseBlock(e,t){var n=createNode(218);if(parseExpected(18,t)||e){if(r.hasPrecedingLineBreak()){n.multiLine=true}n.statements=parseList(1,parseStatement);parseExpected(19)}else{n.statements=createMissingList()}return finishNode(n)}function parseFunctionBlock(e,t){var r=inYieldContext();setYieldContext(!!(e&1));var n=inAwaitContext();setAwaitContext(!!(e&2));var i=inDecoratorContext();if(i){setDecoratorContext(false)}var a=parseBlock(!!(e&16),t);if(i){setDecoratorContext(true)}setYieldContext(r);setAwaitContext(n);return a}function parseEmptyStatement(){var e=createNode(220);parseExpected(26);return finishNode(e)}function parseIfStatement(){var e=createNode(222);parseExpected(91);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);e.thenStatement=parseStatement();e.elseStatement=parseOptional(83)?parseStatement():undefined;return finishNode(e)}function parseDoStatement(){var e=createNode(223);parseExpected(82);e.statement=parseStatement();parseExpected(107);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);parseOptional(26);return finishNode(e)}function parseWhileStatement(){var e=createNode(224);parseExpected(107);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);e.statement=parseStatement();return finishNode(e)}function parseForOrForInOrForOfStatement(){var e=getNodePos();parseExpected(89);var t=parseOptionalToken(122);parseExpected(20);var r;if(token()!==26){if(token()===105||token()===111||token()===77){r=parseVariableDeclarationList(true)}else{r=disallowInAnd(parseExpression)}}var n;if(t?parseExpected(147):parseOptional(147)){var i=createNode(227,e);i.awaitModifier=t;i.initializer=r;i.expression=allowInAnd(parseAssignmentExpressionOrHigher);parseExpected(21);n=i}else if(parseOptional(93)){var a=createNode(226,e);a.initializer=r;a.expression=allowInAnd(parseExpression);parseExpected(21);n=a}else{var o=createNode(225,e);o.initializer=r;parseExpected(26);if(token()!==26&&token()!==21){o.condition=allowInAnd(parseExpression)}parseExpected(26);if(token()!==21){o.incrementor=allowInAnd(parseExpression)}parseExpected(21);n=o}n.statement=parseStatement();return finishNode(n)}function parseBreakOrContinueStatement(e){var t=createNode(e);parseExpected(e===229?73:78);if(!canParseSemicolon()){t.label=parseIdentifier()}parseSemicolon();return finishNode(t)}function parseReturnStatement(){var e=createNode(230);parseExpected(97);if(!canParseSemicolon()){e.expression=allowInAnd(parseExpression)}parseSemicolon();return finishNode(e)}function parseWithStatement(){var e=createNode(231);parseExpected(108);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);e.statement=doInsideOfContext(8388608,parseStatement);return finishNode(e)}function parseCaseClause(){var e=createNode(271);parseExpected(74);e.expression=allowInAnd(parseExpression);parseExpected(57);e.statements=parseList(3,parseStatement);return finishNode(e)}function parseDefaultClause(){var e=createNode(272);parseExpected(80);parseExpected(57);e.statements=parseList(3,parseStatement);return finishNode(e)}function parseCaseOrDefaultClause(){return token()===74?parseCaseClause():parseDefaultClause()}function parseSwitchStatement(){var e=createNode(232);parseExpected(99);parseExpected(20);e.expression=allowInAnd(parseExpression);parseExpected(21);var t=createNode(246);parseExpected(18);t.clauses=parseList(2,parseCaseOrDefaultClause);parseExpected(19);e.caseBlock=finishNode(t);return finishNode(e)}function parseThrowStatement(){var e=createNode(234);parseExpected(101);e.expression=r.hasPrecedingLineBreak()?undefined:allowInAnd(parseExpression);parseSemicolon();return finishNode(e)}function parseTryStatement(){var e=createNode(235);parseExpected(103);e.tryBlock=parseBlock(false);e.catchClause=token()===75?parseCatchClause():undefined;if(!e.catchClause||token()===88){parseExpected(88);e.finallyBlock=parseBlock(false)}return finishNode(e)}function parseCatchClause(){var e=createNode(274);parseExpected(75);if(parseOptional(20)){e.variableDeclaration=parseVariableDeclaration();parseExpected(21)}else{e.variableDeclaration=undefined}e.block=parseBlock(false);return finishNode(e)}function parseDebuggerStatement(){var e=createNode(236);parseExpected(79);parseSemicolon();return finishNode(e)}function parseExpressionOrLabeledStatement(){var e=createNodeWithJSDoc(0);var t=allowInAnd(parseExpression);if(t.kind===72&&parseOptional(57)){e.kind=233;e.label=t;e.statement=parseStatement()}else{e.kind=221;e.expression=t;parseSemicolon()}return finishNode(e)}function nextTokenIsIdentifierOrKeywordOnSameLine(){nextToken();return e.tokenIsIdentifierOrKeyword(token())&&!r.hasPrecedingLineBreak()}function nextTokenIsClassKeywordOnSameLine(){nextToken();return token()===76&&!r.hasPrecedingLineBreak()}function nextTokenIsFunctionKeywordOnSameLine(){nextToken();return token()===90&&!r.hasPrecedingLineBreak()}function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine(){nextToken();return(e.tokenIsIdentifierOrKeyword(token())||token()===8||token()===9||token()===10)&&!r.hasPrecedingLineBreak()}function isDeclaration(){while(true){switch(token()){case 105:case 111:case 77:case 90:case 76:case 84:return true;case 110:case 140:return nextTokenIsIdentifierOnSameLine();case 130:case 131:return nextTokenIsIdentifierOrStringLiteralOnSameLine();case 118:case 121:case 125:case 113:case 114:case 115:case 133:nextToken();if(r.hasPrecedingLineBreak()){return false}continue;case 145:nextToken();return token()===18||token()===72||token()===85;case 92:nextToken();return token()===10||token()===40||token()===18||e.tokenIsIdentifierOrKeyword(token());case 85:nextToken();if(token()===59||token()===40||token()===18||token()===80||token()===119){return true}continue;case 116:nextToken();continue;default:return false}}}function isStartOfDeclaration(){return lookAhead(isDeclaration)}function isStartOfStatement(){switch(token()){case 58:case 26:case 18:case 105:case 111:case 90:case 76:case 84:case 91:case 82:case 107:case 89:case 78:case 73:case 97:case 108:case 99:case 101:case 103:case 79:case 75:case 88:return true;case 92:return isStartOfDeclaration()||lookAhead(nextTokenIsOpenParenOrLessThanOrDot);case 77:case 85:return isStartOfDeclaration();case 121:case 125:case 110:case 130:case 131:case 140:case 145:return true;case 115:case 113:case 114:case 116:case 133:return isStartOfDeclaration()||!lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);default:return isStartOfExpression()}}function nextTokenIsIdentifierOrStartOfDestructuring(){nextToken();return isIdentifier()||token()===18||token()===22}function isLetDeclaration(){return lookAhead(nextTokenIsIdentifierOrStartOfDestructuring)}function parseStatement(){switch(token()){case 26:return parseEmptyStatement();case 18:return parseBlock(false);case 105:return parseVariableStatement(createNodeWithJSDoc(237));case 111:if(isLetDeclaration()){return parseVariableStatement(createNodeWithJSDoc(237))}break;case 90:return parseFunctionDeclaration(createNodeWithJSDoc(239));case 76:return parseClassDeclaration(createNodeWithJSDoc(240));case 91:return parseIfStatement();case 82:return parseDoStatement();case 107:return parseWhileStatement();case 89:return parseForOrForInOrForOfStatement();case 78:return parseBreakOrContinueStatement(228);case 73:return parseBreakOrContinueStatement(229);case 97:return parseReturnStatement();case 108:return parseWithStatement();case 99:return parseSwitchStatement();case 101:return parseThrowStatement();case 103:case 75:case 88:return parseTryStatement();case 79:return parseDebuggerStatement();case 58:return parseDeclaration();case 121:case 110:case 140:case 130:case 131:case 125:case 77:case 84:case 85:case 92:case 113:case 114:case 115:case 118:case 116:case 133:case 145:if(isStartOfDeclaration()){return parseDeclaration()}break}return parseExpressionOrLabeledStatement()}function isDeclareModifier(e){return e.kind===125}function parseDeclaration(){var t=createNodeWithJSDoc(0);t.decorators=parseDecorators();t.modifiers=parseModifiers();if(e.some(t.modifiers,isDeclareModifier)){for(var r=0,n=t.modifiers;r<n.length;r++){var i=n[r];i.flags|=4194304}return doInsideOfContext(4194304,function(){return parseDeclarationWorker(t)})}else{return parseDeclarationWorker(t)}}function parseDeclarationWorker(t){switch(token()){case 105:case 111:case 77:return parseVariableStatement(t);case 90:return parseFunctionDeclaration(t);case 76:return parseClassDeclaration(t);case 110:return parseInterfaceDeclaration(t);case 140:return parseTypeAliasDeclaration(t);case 84:return parseEnumDeclaration(t);case 145:case 130:case 131:return parseModuleDeclaration(t);case 92:return parseImportDeclarationOrImportEqualsDeclaration(t);case 85:nextToken();switch(token()){case 80:case 59:return parseExportAssignment(t);case 119:return parseNamespaceExportDeclaration(t);default:return parseExportDeclaration(t)}default:if(t.decorators||t.modifiers){var r=createMissingNode(258,true,e.Diagnostics.Declaration_expected);r.pos=t.pos;r.decorators=t.decorators;r.modifiers=t.modifiers;return finishNode(r)}return undefined}}function nextTokenIsIdentifierOrStringLiteralOnSameLine(){nextToken();return!r.hasPrecedingLineBreak()&&(isIdentifier()||token()===10)}function parseFunctionBlockOrSemicolon(e,t){if(token()!==18&&canParseSemicolon()){parseSemicolon();return}return parseFunctionBlock(e,t)}function parseArrayBindingElement(){if(token()===27){return createNode(210)}var e=createNode(186);e.dotDotDotToken=parseOptionalToken(25);e.name=parseIdentifierOrPattern();e.initializer=parseInitializer();return finishNode(e)}function parseObjectBindingElement(){var e=createNode(186);e.dotDotDotToken=parseOptionalToken(25);var t=isIdentifier();var r=parsePropertyName();if(t&&token()!==57){e.name=r}else{parseExpected(57);e.propertyName=r;e.name=parseIdentifierOrPattern()}e.initializer=parseInitializer();return finishNode(e)}function parseObjectBindingPattern(){var e=createNode(184);parseExpected(18);e.elements=parseDelimitedList(9,parseObjectBindingElement);parseExpected(19);return finishNode(e)}function parseArrayBindingPattern(){var e=createNode(185);parseExpected(22);e.elements=parseDelimitedList(10,parseArrayBindingElement);parseExpected(23);return finishNode(e)}function isIdentifierOrPattern(){return token()===18||token()===22||isIdentifier()}function parseIdentifierOrPattern(){if(token()===22){return parseArrayBindingPattern()}if(token()===18){return parseObjectBindingPattern()}return parseIdentifier()}function parseVariableDeclarationAllowExclamation(){return parseVariableDeclaration(true)}function parseVariableDeclaration(e){var t=createNode(237);t.name=parseIdentifierOrPattern();if(e&&t.name.kind===72&&token()===52&&!r.hasPrecedingLineBreak()){t.exclamationToken=parseTokenNode()}t.type=parseTypeAnnotation();if(!isInOrOfKeyword(token())){t.initializer=parseInitializer()}return finishNode(t)}function parseVariableDeclarationList(t){var r=createNode(238);switch(token()){case 105:break;case 111:r.flags|=1;break;case 77:r.flags|=2;break;default:e.Debug.fail()}nextToken();if(token()===147&&lookAhead(canFollowContextualOfKeyword)){r.declarations=createMissingList()}else{var n=inDisallowInContext();setDisallowInContext(t);r.declarations=parseDelimitedList(8,t?parseVariableDeclaration:parseVariableDeclarationAllowExclamation);setDisallowInContext(n)}return finishNode(r)}function canFollowContextualOfKeyword(){return nextTokenIsIdentifier()&&nextToken()===21}function parseVariableStatement(e){e.kind=219;e.declarationList=parseVariableDeclarationList(false);parseSemicolon();return finishNode(e)}function parseFunctionDeclaration(t){t.kind=239;parseExpected(90);t.asteriskToken=parseOptionalToken(40);t.name=e.hasModifier(t,512)?parseOptionalIdentifier():parseIdentifier();var r=t.asteriskToken?1:0;var n=e.hasModifier(t,256)?2:0;fillSignature(57,r|n,t);t.body=parseFunctionBlockOrSemicolon(r|n,e.Diagnostics.or_expected);return finishNode(t)}function parseConstructorDeclaration(t){t.kind=157;parseExpected(124);fillSignature(57,0,t);t.body=parseFunctionBlockOrSemicolon(0,e.Diagnostics.or_expected);return finishNode(t)}function parseMethodDeclaration(t,r,n){t.kind=156;t.asteriskToken=r;var i=r?1:0;var a=e.hasModifier(t,256)?2:0;fillSignature(57,i|a,t);t.body=parseFunctionBlockOrSemicolon(i|a,n);return finishNode(t)}function parsePropertyDeclaration(t){t.kind=154;if(!t.questionToken&&token()===52&&!r.hasPrecedingLineBreak()){t.exclamationToken=parseTokenNode()}t.type=parseTypeAnnotation();t.initializer=e.hasModifier(t,32)?allowInAnd(parseInitializer):doOutsideOfContext(4096|2048,parseInitializer);parseSemicolon();return finishNode(t)}function parsePropertyOrMethodDeclaration(t){var r=parseOptionalToken(40);t.name=parsePropertyName();t.questionToken=parseOptionalToken(56);if(r||token()===20||token()===28){return parseMethodDeclaration(t,r,e.Diagnostics.or_expected)}return parsePropertyDeclaration(t)}function parseAccessorDeclaration(e,t){e.kind=t;e.name=parsePropertyName();fillSignature(57,0,e);e.body=parseFunctionBlockOrSemicolon(0);return finishNode(e)}function isClassMemberStart(){var t;if(token()===58){return true}while(e.isModifierKind(token())){t=token();if(e.isClassMemberModifier(t)){return true}nextToken()}if(token()===40){return true}if(isLiteralPropertyName()){t=token();nextToken()}if(token()===22){return true}if(t!==undefined){if(!e.isKeyword(t)||t===137||t===126){return true}switch(token()){case 20:case 28:case 52:case 57:case 59:case 56:return true;default:return canParseSemicolon()}}return false}function parseDecorators(){var e;var t=getNodePos();while(true){var r=getNodePos();if(!parseOptional(58)){break}var n=createNode(152,r);n.expression=doInDecoratorContext(parseLeftHandSideExpressionOrHigher);finishNode(n);(e||(e=[])).push(n)}return e&&createNodeArray(e,t)}function parseModifiers(e){var t;var n=getNodePos();while(true){var i=r.getStartPos();var a=token();if(token()===77&&e){if(!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)){break}}else{if(!parseAnyContextualModifier()){break}}var o=finishNode(createNode(a,i));(t||(t=[])).push(o)}return t&&createNodeArray(t,n)}function parseModifiersForArrowFunction(){var e;if(token()===121){var t=r.getStartPos();var n=token();nextToken();var i=finishNode(createNode(n,t));e=createNodeArray([i],t)}return e}function parseClassElement(){if(token()===26){var t=createNode(217);nextToken();return finishNode(t)}var r=createNodeWithJSDoc(0);r.decorators=parseDecorators();r.modifiers=parseModifiers(true);if(parseContextualModifier(126)){return parseAccessorDeclaration(r,158)}if(parseContextualModifier(137)){return parseAccessorDeclaration(r,159)}if(token()===124){return parseConstructorDeclaration(r)}if(isIndexSignature()){return parseIndexSignatureDeclaration(r)}if(e.tokenIsIdentifierOrKeyword(token())||token()===10||token()===8||token()===40||token()===22){return parsePropertyOrMethodDeclaration(r)}if(r.decorators||r.modifiers){r.name=createMissingNode(72,true,e.Diagnostics.Declaration_expected);return parsePropertyDeclaration(r)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function parseClassExpression(){return parseClassDeclarationOrExpression(createNodeWithJSDoc(0),209)}function parseClassDeclaration(e){return parseClassDeclarationOrExpression(e,240)}function parseClassDeclarationOrExpression(e,t){e.kind=t;parseExpected(76);e.name=parseNameOfClassDeclarationOrExpression();e.typeParameters=parseTypeParameters();e.heritageClauses=parseHeritageClauses();if(parseExpected(18)){e.members=parseClassMembers();parseExpected(19)}else{e.members=createMissingList()}return finishNode(e)}function parseNameOfClassDeclarationOrExpression(){return isIdentifier()&&!isImplementsClause()?parseIdentifier():undefined}function isImplementsClause(){return token()===109&&lookAhead(nextTokenIsIdentifierOrKeyword)}function parseHeritageClauses(){if(isHeritageClause()){return parseList(22,parseHeritageClause)}return undefined}function parseHeritageClause(){var t=token();e.Debug.assert(t===86||t===109);var r=createNode(273);r.token=t;nextToken();r.types=parseDelimitedList(7,parseExpressionWithTypeArguments);return finishNode(r)}function parseExpressionWithTypeArguments(){var e=createNode(211);e.expression=parseLeftHandSideExpressionOrHigher();e.typeArguments=tryParseTypeArguments();return finishNode(e)}function tryParseTypeArguments(){return token()===28?parseBracketedList(20,parseType,28,30):undefined}function isHeritageClause(){return token()===86||token()===109}function parseClassMembers(){return parseList(5,parseClassElement)}function parseInterfaceDeclaration(e){e.kind=241;parseExpected(110);e.name=parseIdentifier();e.typeParameters=parseTypeParameters();e.heritageClauses=parseHeritageClauses();e.members=parseObjectTypeMembers();return finishNode(e)}function parseTypeAliasDeclaration(e){e.kind=242;parseExpected(140);e.name=parseIdentifier();e.typeParameters=parseTypeParameters();parseExpected(59);e.type=parseType();parseSemicolon();return finishNode(e)}function parseEnumMember(){var e=createNodeWithJSDoc(278);e.name=parsePropertyName();e.initializer=allowInAnd(parseInitializer);return finishNode(e)}function parseEnumDeclaration(e){e.kind=243;parseExpected(84);e.name=parseIdentifier();if(parseExpected(18)){e.members=parseDelimitedList(6,parseEnumMember);parseExpected(19)}else{e.members=createMissingList()}return finishNode(e)}function parseModuleBlock(){var e=createNode(245);if(parseExpected(18)){e.statements=parseList(1,parseStatement);parseExpected(19)}else{e.statements=createMissingList()}return finishNode(e)}function parseModuleOrNamespaceDeclaration(e,t){e.kind=244;var r=t&16;e.flags|=t;e.name=parseIdentifier();e.body=parseOptional(24)?parseModuleOrNamespaceDeclaration(createNode(0),4|r):parseModuleBlock();return finishNode(e)}function parseAmbientExternalModuleDeclaration(e){e.kind=244;if(token()===145){e.name=parseIdentifier();e.flags|=512}else{e.name=parseLiteralNode();e.name.text=internIdentifier(e.name.text)}if(token()===18){e.body=parseModuleBlock()}else{parseSemicolon()}return finishNode(e)}function parseModuleDeclaration(e){var t=0;if(token()===145){return parseAmbientExternalModuleDeclaration(e)}else if(parseOptional(131)){t|=16}else{parseExpected(130);if(token()===10){return parseAmbientExternalModuleDeclaration(e)}}return parseModuleOrNamespaceDeclaration(e,t)}function isExternalModuleReference(){return token()===134&&lookAhead(nextTokenIsOpenParen)}function nextTokenIsOpenParen(){return nextToken()===20}function nextTokenIsSlash(){return nextToken()===42}function parseNamespaceExportDeclaration(e){e.kind=247;parseExpected(119);parseExpected(131);e.name=parseIdentifier();parseSemicolon();return finishNode(e)}function parseImportDeclarationOrImportEqualsDeclaration(e){parseExpected(92);var t=r.getStartPos();var n;if(isIdentifier()){n=parseIdentifier();if(token()!==27&&token()!==144){return parseImportEqualsDeclaration(e,n)}}e.kind=249;if(n||token()===40||token()===18){e.importClause=parseImportClause(n,t);parseExpected(144)}e.moduleSpecifier=parseModuleSpecifier();parseSemicolon();return finishNode(e)}function parseImportEqualsDeclaration(e,t){e.kind=248;e.name=t;parseExpected(59);e.moduleReference=parseModuleReference();parseSemicolon();return finishNode(e)}function parseImportClause(e,t){var r=createNode(250,t);if(e){r.name=e}if(!r.name||parseOptional(27)){r.namedBindings=token()===40?parseNamespaceImport():parseNamedImportsOrExports(252)}return finishNode(r)}function parseModuleReference(){return isExternalModuleReference()?parseExternalModuleReference():parseEntityName(false)}function parseExternalModuleReference(){var e=createNode(259);parseExpected(134);parseExpected(20);e.expression=parseModuleSpecifier();parseExpected(21);return finishNode(e)}function parseModuleSpecifier(){if(token()===10){var e=parseLiteralNode();e.text=internIdentifier(e.text);return e}else{return parseExpression()}}function parseNamespaceImport(){var e=createNode(251);parseExpected(40);parseExpected(119);e.name=parseIdentifier();return finishNode(e)}function parseNamedImportsOrExports(e){var t=createNode(e);t.elements=parseBracketedList(23,e===252?parseImportSpecifier:parseExportSpecifier,18,19);return finishNode(t)}function parseExportSpecifier(){return parseImportOrExportSpecifier(257)}function parseImportSpecifier(){return parseImportOrExportSpecifier(253)}function parseImportOrExportSpecifier(t){var n=createNode(t);var i=e.isKeyword(token())&&!isIdentifier();var a=r.getTokenPos();var o=r.getTextPos();var s=parseIdentifierName();if(token()===119){n.propertyName=s;parseExpected(119);i=e.isKeyword(token())&&!isIdentifier();a=r.getTokenPos();o=r.getTextPos();n.name=parseIdentifierName()}else{n.name=s}if(t===253&&i){parseErrorAt(a,o,e.Diagnostics.Identifier_expected)}return finishNode(n)}function parseExportDeclaration(e){e.kind=255;if(parseOptional(40)){parseExpected(144);e.moduleSpecifier=parseModuleSpecifier()}else{e.exportClause=parseNamedImportsOrExports(256);if(token()===144||token()===10&&!r.hasPrecedingLineBreak()){parseExpected(144);e.moduleSpecifier=parseModuleSpecifier()}}parseSemicolon();return finishNode(e)}function parseExportAssignment(e){e.kind=254;if(parseOptional(59)){e.isExportEquals=true}else{parseExpected(80)}e.expression=parseAssignmentExpressionOrHigher();parseSemicolon();return finishNode(e)}function setExternalModuleIndicator(t){t.externalModuleIndicator=e.forEach(t.statements,isAnExternalModuleIndicatorNode)||getImportMetaIfNecessary(t)}function isAnExternalModuleIndicatorNode(t){return e.hasModifier(t,1)||t.kind===248&&t.moduleReference.kind===259||t.kind===249||t.kind===254||t.kind===255?t:undefined}function getImportMetaIfNecessary(e){return e.flags&1048576?walkTreeForExternalModuleIndicators(e):undefined}function walkTreeForExternalModuleIndicators(e){return isImportMeta(e)?e:forEachChild(e,walkTreeForExternalModuleIndicators)}function isImportMeta(t){return e.isMetaProperty(t)&&t.keywordToken===92&&t.name.escapedText==="meta"}var v;(function(e){e[e["SourceElements"]=0]="SourceElements";e[e["BlockStatements"]=1]="BlockStatements";e[e["SwitchClauses"]=2]="SwitchClauses";e[e["SwitchClauseStatements"]=3]="SwitchClauseStatements";e[e["TypeMembers"]=4]="TypeMembers";e[e["ClassMembers"]=5]="ClassMembers";e[e["EnumMembers"]=6]="EnumMembers";e[e["HeritageClauseElement"]=7]="HeritageClauseElement";e[e["VariableDeclarations"]=8]="VariableDeclarations";e[e["ObjectBindingElements"]=9]="ObjectBindingElements";e[e["ArrayBindingElements"]=10]="ArrayBindingElements";e[e["ArgumentExpressions"]=11]="ArgumentExpressions";e[e["ObjectLiteralMembers"]=12]="ObjectLiteralMembers";e[e["JsxAttributes"]=13]="JsxAttributes";e[e["JsxChildren"]=14]="JsxChildren";e[e["ArrayLiteralMembers"]=15]="ArrayLiteralMembers";e[e["Parameters"]=16]="Parameters";e[e["JSDocParameters"]=17]="JSDocParameters";e[e["RestProperties"]=18]="RestProperties";e[e["TypeParameters"]=19]="TypeParameters";e[e["TypeArguments"]=20]="TypeArguments";e[e["TupleElementTypes"]=21]="TupleElementTypes";e[e["HeritageClauses"]=22]="HeritageClauses";e[e["ImportOrExportSpecifiers"]=23]="ImportOrExportSpecifiers";e[e["Count"]=24]="Count"})(v||(v={}));var T;(function(e){e[e["False"]=0]="False";e[e["True"]=1]="True";e[e["Unknown"]=2]="Unknown"})(T||(T={}));var S;(function(t){function parseJSDocTypeExpressionForTests(e,t,n){initializeState(e,6,undefined,1);c=createSourceFile("file.js",6,1,false);r.setText(e,t,n);f=r.scan();var i=parseJSDocTypeExpression();var a=u;clearState();return i?{jsDocTypeExpression:i,diagnostics:a}:undefined}t.parseJSDocTypeExpressionForTests=parseJSDocTypeExpressionForTests;function parseJSDocTypeExpression(e){var t=createNode(283);var r=(e?parseOptional:parseExpected)(18);t.type=doInsideOfContext(2097152,parseJSDocType);if(!e||r){parseExpected(19)}fixupParentReferences(t);return finishNode(t)}t.parseJSDocTypeExpression=parseJSDocTypeExpression;function parseIsolatedJSDocComment(e,t,r){initializeState(e,6,undefined,1);c={languageVariant:0,text:e};var n=parseJSDocCommentWorker(t,r);var i=u;clearState();return n?{jsDoc:n,diagnostics:i}:undefined}t.parseIsolatedJSDocComment=parseIsolatedJSDocComment;function parseJSDocComment(e,t,r){var n;var i=f;var a=u.length;var o=h;var s=parseJSDocCommentWorker(t,r);if(s){s.parent=e}if(y&65536){if(!c.jsDocDiagnostics){c.jsDocDiagnostics=[]}(n=c.jsDocDiagnostics).push.apply(n,u)}f=i;u.length=a;h=o;return s}t.parseJSDocComment=parseJSDocComment;var n;(function(e){e[e["BeginningOfLine"]=0]="BeginningOfLine";e[e["SawAsterisk"]=1]="SawAsterisk";e[e["SavingComments"]=2]="SavingComments"})(n||(n={}));var i;(function(e){e[e["Property"]=1]="Property";e[e["Parameter"]=2]="Parameter";e[e["CallbackParameter"]=4]="CallbackParameter"})(i||(i={}));function parseJSDocCommentWorker(t,n){if(t===void 0){t=0}var i=d;var a=n===undefined?i.length:t+n;n=a-t;e.Debug.assert(t>=0);e.Debug.assert(t<=a);e.Debug.assert(a<=i.length);if(!isJSDocLikeText(i,t)){return undefined}var o;var s;var c;var u=[];return r.scanRange(t+3,n-5,function(){var e=1;var n;var a=t-Math.max(i.lastIndexOf("\n",t),0)+4;function pushComment(e){if(!n){n=a}u.push(e);a+=e.length}nextJSDocToken();while(parseOptionalJsdoc(5));if(parseOptionalJsdoc(4)){e=0;a=0}e:while(true){switch(token()){case 58:if(e===0||e===1){removeTrailingWhitespace(u);addTag(parseTag(a));e=0;n=undefined;a++}else{pushComment(r.getTokenText())}break;case 4:u.push(r.getTokenText());e=0;a=0;break;case 40:var o=r.getTokenText();if(e===1||e===2){e=2;pushComment(o)}else{e=1;a+=o.length}break;case 5:var s=r.getTokenText();if(e===2){u.push(s)}else if(n!==undefined&&a+s.length>n){u.push(s.slice(n-a-1))}a+=s.length;break;case 1:break e;default:e=2;pushComment(r.getTokenText());break}nextJSDocToken()}removeLeadingNewlines(u);removeTrailingWhitespace(u);return createJSDocComment()});function removeLeadingNewlines(e){while(e.length&&(e[0]==="\n"||e[0]==="\r")){e.shift()}}function removeTrailingWhitespace(e){while(e.length&&e[e.length-1].trim()===""){e.pop()}}function createJSDocComment(){var e=createNode(291,t);e.tags=o&&createNodeArray(o,s,c);e.comment=u.length?u.join(""):undefined;return finishNode(e,a)}function isNextNonwhitespaceTokenEndOfFile(){while(true){nextJSDocToken();if(token()===1){return true}if(!(token()===5||token()===4)){return false}}}function skipWhitespace(){if(token()===5||token()===4){if(lookAhead(isNextNonwhitespaceTokenEndOfFile)){return}}while(token()===5||token()===4){nextJSDocToken()}}function skipWhitespaceOrAsterisk(){if(token()===5||token()===4){if(lookAhead(isNextNonwhitespaceTokenEndOfFile)){return}}var e=r.hasPrecedingLineBreak();while(e&&token()===40||token()===5||token()===4){if(token()===4){e=true}else if(token()===40){e=false}nextJSDocToken()}}function parseTag(t){e.Debug.assert(token()===58);var n=r.getTokenPos();nextJSDocToken();var i=parseJSDocIdentifierName(undefined);skipWhitespaceOrAsterisk();var a;switch(i.escapedText){case"augments":case"extends":a=parseAugmentsTag(n,i);break;case"class":case"constructor":a=parseClassTag(n,i);break;case"this":a=parseThisTag(n,i);break;case"enum":a=parseEnumTag(n,i);break;case"arg":case"argument":case"param":return parseParameterOrPropertyTag(n,i,2,t);case"return":case"returns":a=parseReturnTag(n,i);break;case"template":a=parseTemplateTag(n,i);break;case"type":a=parseTypeTag(n,i);break;case"typedef":a=parseTypedefTag(n,i,t);break;case"callback":a=parseCallbackTag(n,i,t);break;default:a=parseUnknownTag(n,i);break}if(!a.comment){a.comment=parseTagComments(t+a.end-a.pos)}return a}function parseTagComments(t){var n=[];var i=0;var a;function pushComment(e){if(!a){a=t}n.push(e);t+=e.length}var o=token();e:while(true){switch(o){case 4:if(i>=1){i=0;n.push(r.getTokenText())}t=0;break;case 58:r.setTextPos(r.getTextPos()-1);case 1:break e;case 5:if(i===2){pushComment(r.getTokenText())}else{var s=r.getTokenText();if(a!==undefined&&t+s.length>a){n.push(s.slice(a-t-1))}t+=s.length}break;case 18:i=2;if(lookAhead(function(){return nextJSDocToken()===58&&e.tokenIsIdentifierOrKeyword(nextJSDocToken())&&r.getTokenText()==="link"})){pushComment(r.getTokenText());nextJSDocToken();pushComment(r.getTokenText());nextJSDocToken()}pushComment(r.getTokenText());break;case 40:if(i===0){i=1;t+=1;break}default:i=2;pushComment(r.getTokenText());break}o=nextJSDocToken()}removeLeadingNewlines(n);removeTrailingWhitespace(n);return n.length===0?undefined:n.join("")}function parseUnknownTag(e,t){var r=createNode(294,e);r.tagName=t;return finishNode(r)}function addTag(e){if(!e){return}if(!o){o=[e];s=e.pos}else{o.push(e)}c=e.end}function tryParseTypeExpression(){skipWhitespaceOrAsterisk();return token()===18?parseJSDocTypeExpression():undefined}function parseBracketNameInPropertyAndParamTag(){if(token()===14){return{name:createIdentifier(true),isBracketed:false}}var e=parseOptional(22);var t=parseJSDocEntityName();if(e){skipWhitespace();if(parseOptionalToken(59)){parseExpression()}parseExpected(23)}return{name:t,isBracketed:e}}function isObjectOrObjectArrayTypeReference(t){switch(t.kind){case 136:return true;case 169:return isObjectOrObjectArrayTypeReference(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&t.typeName.escapedText==="Object"}}function parseParameterOrPropertyTag(e,t,n,i){var a=tryParseTypeExpression();var o=!a;skipWhitespaceOrAsterisk();var s=parseBracketNameInPropertyAndParamTag(),c=s.name,u=s.isBracketed;skipWhitespace();if(o){a=tryParseTypeExpression()}var l=n===1?createNode(305,e):createNode(299,e);var f=parseTagComments(i+r.getStartPos()-e);var d=n!==4&&parseNestedTypeLiteral(a,c,n,i);if(d){a=d;o=true}l.tagName=t;l.typeExpression=a;l.name=c;l.isNameFirst=o;l.isBracketed=u;l.comment=f;return finishNode(l)}function parseNestedTypeLiteral(t,n,i,a){if(t&&isObjectOrObjectArrayTypeReference(t.type)){var o=createNode(283,r.getTokenPos());var s=void 0;var c=void 0;var u=r.getStartPos();var l=void 0;while(s=tryParse(function(){return parseChildParameterOrPropertyTag(i,a,n)})){if(s.kind===299||s.kind===305){l=e.append(l,s)}}if(l){c=createNode(292,u);c.jsDocPropertyTags=l;if(t.type.kind===169){c.isArrayType=true}o.type=finishNode(c);return finishNode(o)}}}function parseReturnTag(t,n){if(e.forEach(o,function(e){return e.kind===300})){parseErrorAt(n.pos,r.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText)}var i=createNode(300,t);i.tagName=n;i.typeExpression=tryParseTypeExpression();return finishNode(i)}function parseTypeTag(t,n){if(e.forEach(o,function(e){return e.kind===302})){parseErrorAt(n.pos,r.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText)}var i=createNode(302,t);i.tagName=n;i.typeExpression=parseJSDocTypeExpression(true);return finishNode(i)}function parseAugmentsTag(e,t){var r=createNode(295,e);r.tagName=t;r.class=parseExpressionWithTypeArgumentsForAugments();return finishNode(r)}function parseExpressionWithTypeArgumentsForAugments(){var e=parseOptional(18);var t=createNode(211);t.expression=parsePropertyAccessEntityNameExpression();t.typeArguments=tryParseTypeArguments();var r=finishNode(t);if(e){parseExpected(19)}return r}function parsePropertyAccessEntityNameExpression(){var e=parseJSDocIdentifierName();while(parseOptional(24)){var t=createNode(189,e.pos);t.expression=e;t.name=parseJSDocIdentifierName();e=finishNode(t)}return e}function parseClassTag(e,t){var r=createNode(296,e);r.tagName=t;return finishNode(r)}function parseThisTag(e,t){var r=createNode(301,e);r.tagName=t;r.typeExpression=parseJSDocTypeExpression(true);skipWhitespace();return finishNode(r)}function parseEnumTag(e,t){var r=createNode(298,e);r.tagName=t;r.typeExpression=parseJSDocTypeExpression(true);skipWhitespace();return finishNode(r)}function parseTypedefTag(t,n,i){var a=tryParseTypeExpression();skipWhitespaceOrAsterisk();var o=createNode(304,t);o.tagName=n;o.fullName=parseJSDocTypeNameWithNamespace();o.name=getJSDocTypeAliasName(o.fullName);skipWhitespace();o.comment=parseTagComments(i);o.typeExpression=a;var s;if(!a||isObjectOrObjectArrayTypeReference(a.type)){var c=void 0;var u=void 0;var l=void 0;while(c=tryParse(function(){return parseChildPropertyTag(i)})){if(!u){u=createNode(292,t)}if(c.kind===302){if(l){break}else{l=c}}else{u.jsDocPropertyTags=e.append(u.jsDocPropertyTags,c)}}if(u){if(a&&a.type.kind===169){u.isArrayType=true}o.typeExpression=l&&l.typeExpression&&!isObjectOrObjectArrayTypeReference(l.typeExpression.type)?l.typeExpression:finishNode(u);s=o.typeExpression.end}}return finishNode(o,s||o.comment!==undefined?r.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}function parseJSDocTypeNameWithNamespace(t){var n=r.getTokenPos();if(!e.tokenIsIdentifierOrKeyword(token())){return undefined}var i=parseJSDocIdentifierName();if(parseOptional(24)){var a=createNode(244,n);if(t){a.flags|=4}a.name=i;a.body=parseJSDocTypeNameWithNamespace(true);return finishNode(a)}if(t){i.isInJSDocNamespace=true}return i}function parseCallbackTag(t,r,n){var i=createNode(297,t);i.tagName=r;i.fullName=parseJSDocTypeNameWithNamespace();i.name=getJSDocTypeAliasName(i.fullName);skipWhitespace();i.comment=parseTagComments(n);var a;var o=createNode(293,t);o.parameters=[];while(a=tryParse(function(){return parseChildParameterOrPropertyTag(4,n)})){o.parameters=e.append(o.parameters,a)}var s=tryParse(function(){if(parseOptionalJsdoc(58)){var e=parseTag(n);if(e&&e.kind===300){return e}}});if(s){o.type=s}i.typeExpression=finishNode(o);return finishNode(i)}function getJSDocTypeAliasName(t){if(t){var r=t;while(true){if(e.isIdentifier(r)||!r.body){return e.isIdentifier(r)?r:r.name}r=r.body}}}function escapedTextsEqual(t,r){while(!e.isIdentifier(t)||!e.isIdentifier(r)){if(!e.isIdentifier(t)&&!e.isIdentifier(r)&&t.right.escapedText===r.right.escapedText){t=t.left;r=r.left}else{return false}}return t.escapedText===r.escapedText}function parseChildPropertyTag(e){return parseChildParameterOrPropertyTag(1,e)}function parseChildParameterOrPropertyTag(t,r,n){var i=true;var a=false;while(true){switch(nextJSDocToken()){case 58:if(i){var o=tryParseChildTag(t,r);if(o&&(o.kind===299||o.kind===305)&&t!==4&&n&&(e.isIdentifier(o.name)||!escapedTextsEqual(n,o.name.left))){return false}return o}a=false;break;case 4:i=true;a=false;break;case 40:if(a){i=false}a=true;break;case 72:i=false;break;case 1:return false}}}function tryParseChildTag(t,n){e.Debug.assert(token()===58);var i=r.getStartPos();nextJSDocToken();var a=parseJSDocIdentifierName();skipWhitespace();var o;switch(a.escapedText){case"type":return t===1&&parseTypeTag(i,a);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=2|4;break;default:return false}if(!(t&o)){return false}return parseParameterOrPropertyTag(i,a,t,n)}function parseTemplateTag(t,r){var n;if(token()===18){n=parseJSDocTypeExpression()}var i=[];var a=getNodePos();do{skipWhitespace();var o=createNode(150);o.name=parseJSDocIdentifierName(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);finishNode(o);skipWhitespace();i.push(o)}while(parseOptionalJsdoc(27));var s=createNode(303,t);s.tagName=r;s.constraint=n;s.typeParameters=createNodeArray(i,a);finishNode(s);return s}function nextJSDocToken(){return f=r.scanJSDocToken()}function parseOptionalJsdoc(e){if(token()===e){nextJSDocToken();return true}return false}function parseJSDocEntityName(){var e=parseJSDocIdentifierName();if(parseOptional(22)){parseExpected(23)}while(parseOptional(24)){var t=parseJSDocIdentifierName();if(parseOptional(22)){parseExpected(23)}e=createQualifiedName(e,t)}return e}function parseJSDocIdentifierName(t){if(!e.tokenIsIdentifierOrKeyword(token())){return createMissingNode(72,!t,t||e.Diagnostics.Identifier_expected)}var n=r.getTokenPos();var i=r.getTextPos();var a=createNode(72,n);a.escapedText=e.escapeLeadingUnderscores(r.getTokenText());finishNode(a,i);nextJSDocToken();return a}}t.parseJSDocCommentWorker=parseJSDocCommentWorker})(S=t.JSDocParser||(t.JSDocParser={}))})(o||(o={}));var s;(function(t){function updateSourceFile(t,r,n,i){i=i||e.Debug.shouldAssert(2);checkChangeRange(t,r,n,i);if(e.textChangeRangeIsUnchanged(n)){return t}if(t.statements.length===0){return o.parseSourceFile(t.fileName,r,t.languageVersion,undefined,true,t.scriptKind)}var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed);a.hasBeenIncrementallyParsed=true;var s=t.text;var c=createSyntaxCursor(t);var u=extendToAffectedRange(t,n);checkChangeRange(t,r,u,i);e.Debug.assert(u.span.start<=n.span.start);e.Debug.assert(e.textSpanEnd(u.span)===e.textSpanEnd(n.span));e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(u))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var l=e.textChangeRangeNewSpan(u).length-u.span.length;updateTokenPositionsAndMarkElements(a,u.span.start,e.textSpanEnd(u.span),e.textSpanEnd(e.textChangeRangeNewSpan(u)),l,s,r,i);var f=o.parseSourceFile(t.fileName,r,t.languageVersion,c,true,t.scriptKind);return f}t.updateSourceFile=updateSourceFile;function moveElementEntirelyPastChangeRange(t,r,n,i,a,o){if(r){visitArray(t)}else{visitNode(t)}return;function visitNode(t){var r="";if(o&&shouldCheckNode(t)){r=i.substring(t.pos,t.end)}if(t._children){t._children=undefined}t.pos+=n;t.end+=n;if(o&&shouldCheckNode(t)){e.Debug.assert(r===a.substring(t.pos,t.end))}forEachChild(t,visitNode,visitArray);if(e.hasJSDocNodes(t)){for(var s=0,c=t.jsDoc;s<c.length;s++){var u=c[s];visitNode(u)}}checkNodePositions(t,o)}function visitArray(e){e._children=undefined;e.pos+=n;e.end+=n;for(var t=0,r=e;t<r.length;t++){var i=r[t];visitNode(i)}}}function shouldCheckNode(e){switch(e.kind){case 10:case 8:case 72:return true}return false}function adjustIntersectingElement(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range");e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range");e.Debug.assert(t.pos<=t.end);t.pos=Math.min(t.pos,i);if(t.end>=n){t.end+=a}else{t.end=Math.min(t.end,i)}e.Debug.assert(t.pos<=t.end);if(t.parent){e.Debug.assert(t.pos>=t.parent.pos);e.Debug.assert(t.end<=t.parent.end)}}function checkNodePositions(t,r){if(r){var n=t.pos;var i=function(t){e.Debug.assert(t.pos>=n);n=t.end};if(e.hasJSDocNodes(t)){for(var a=0,o=t.jsDoc;a<o.length;a++){var s=o[a];i(s)}}forEachChild(t,i);e.Debug.assert(n<=t.end)}}function updateTokenPositionsAndMarkElements(t,r,n,i,a,o,s,c){visitNode(t);return;function visitNode(t){e.Debug.assert(t.pos<=t.end);if(t.pos>n){moveElementEntirelyPastChangeRange(t,false,a,o,s,c);return}var u=t.end;if(u>=r){t.intersectsChange=true;t._children=undefined;adjustIntersectingElement(t,r,n,i,a);forEachChild(t,visitNode,visitArray);if(e.hasJSDocNodes(t)){for(var l=0,f=t.jsDoc;l<f.length;l++){var d=f[l];visitNode(d)}}checkNodePositions(t,c);return}e.Debug.assert(u<r)}function visitArray(t){e.Debug.assert(t.pos<=t.end);if(t.pos>n){moveElementEntirelyPastChangeRange(t,true,a,o,s,c);return}var u=t.end;if(u>=r){t.intersectsChange=true;t._children=undefined;adjustIntersectingElement(t,r,n,i,a);for(var l=0,f=t;l<f.length;l++){var d=f[l];visitNode(d)}return}e.Debug.assert(u<r)}}function extendToAffectedRange(t,r){var n=1;var i=r.span.start;for(var a=0;i>0&&a<=n;a++){var o=findNearestNodeStartingBeforeOrAtPosition(t,i);e.Debug.assert(o.pos<=i);var s=o.pos;i=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span));var u=r.newLength+(r.span.start-i);return e.createTextChangeRange(c,u)}function findNearestNodeStartingBeforeOrAtPosition(t,r){var n=t;var i;forEachChild(t,visit);if(i){var a=getLastDescendant(i);if(a.pos>n.pos){n=a}}return n;function getLastDescendant(t){while(true){var r=e.getLastChild(t);if(r){t=r}else{return t}}}function visit(t){if(e.nodeIsMissing(t)){return}if(t.pos<=r){if(t.pos>=n.pos){n=t}if(r<t.end){forEachChild(t,visit);return true}else{e.Debug.assert(t.end<=r);i=t}}else{e.Debug.assert(t.pos>r);return true}}}function checkChangeRange(t,r,n,i){var a=t.text;if(n){e.Debug.assert(a.length-n.span.length+n.newLength===r.length);if(i||e.Debug.shouldAssert(3)){var o=a.substr(0,n.span.start);var s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length);var u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}}function createSyntaxCursor(t){var r=t.statements;var n=0;e.Debug.assert(n<r.length);var i=r[n];var a=-1;return{currentNode:function(t){if(t!==a){if(i&&i.end===t&&n<r.length-1){n++;i=r[n]}if(!i||i.pos!==t){findHighestListElementThatStartsAtPosition(t)}}a=t;e.Debug.assert(!i||i.pos===t);return i}};function findHighestListElementThatStartsAtPosition(e){r=undefined;n=-1;i=undefined;forEachChild(t,visitNode,visitArray);return;function visitNode(t){if(e>=t.pos&&e<t.end){forEachChild(t,visitNode,visitArray);return true}return false}function visitArray(t){if(e>=t.pos&&e<t.end){for(var a=0;a<t.length;a++){var o=t[a];if(o){if(o.pos===e){r=t;n=a;i=o;return true}else{if(o.pos<e&&e<o.end){forEachChild(o,visitNode,visitArray);return true}}}}}return false}}}var r;(function(e){e[e["Value"]=-1]="Value"})(r||(r={}))})(s||(s={}));function isDeclarationFileName(t){return e.fileExtensionIs(t,".d.ts")}e.isDeclarationFileName=isDeclarationFileName;function processCommentPragmas(t,r){var n=e.createScanner(t.languageVersion,false,0,r);var i=[];while(true){var a=n.scan();if(!e.isTrivia(a)){break}var o={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()};var s=r.substring(o.pos,o.end);extractPragmas(i,o,s)}t.pragmas=e.createMap();for(var c=0,u=i;c<u.length;c++){var l=u[c];if(t.pragmas.has(l.name)){var f=t.pragmas.get(l.name);if(f instanceof Array){f.push(l.args)}else{t.pragmas.set(l.name,[f,l.args])}continue}t.pragmas.set(l.name,l.args)}}e.processCommentPragmas=processCommentPragmas;function processPragmasIntoFields(t,r){t.checkJsDirective=undefined;t.referencedFiles=[];t.typeReferenceDirectives=[];t.libReferenceDirectives=[];t.amdDependencies=[];t.hasNoDefaultLib=false;t.pragmas.forEach(function(n,i){switch(i){case"reference":{var a=t.referencedFiles;var o=t.typeReferenceDirectives;var s=t.libReferenceDirectives;e.forEach(e.toArray(n),function(n){if(n.arguments["no-default-lib"]){t.hasNoDefaultLib=true}else if(n.arguments.types){o.push({pos:n.arguments.types.pos,end:n.arguments.types.end,fileName:n.arguments.types.value})}else if(n.arguments.lib){s.push({pos:n.arguments.lib.pos,end:n.arguments.lib.end,fileName:n.arguments.lib.value})}else if(n.arguments.path){a.push({pos:n.arguments.path.pos,end:n.arguments.path.end,fileName:n.arguments.path.value})}else{r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}});break}case"amd-dependency":{t.amdDependencies=e.map(e.toArray(n),function(e){return{name:e.arguments.name,path:e.arguments.path}});break}case"amd-module":{if(n instanceof Array){for(var c=0,u=n;c<u.length;c++){var l=u[c];if(t.moduleName){r(l.range.pos,l.range.end-l.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments)}t.moduleName=l.arguments.name}}else{t.moduleName=n.arguments.name}break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(n),function(e){if(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos){t.checkJsDirective={enabled:i==="ts-check",end:e.range.end,pos:e.range.pos}}});break}case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=processPragmasIntoFields;var c=e.createMap();function getNamedArgRegEx(e){if(c.has(e)){return c.get(e)}var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");c.set(e,t);return t}var u=/^\/\/\/\s*<(\S+)\s.*?\/>/im;var l=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function extractPragmas(t,r,n){var i=r.kind===2&&u.exec(n);if(i){var a=i[1].toLowerCase();var o=e.commentPragmas[a];if(!o||!(o.kind&1)){return}if(o.args){var s={};for(var c=0,f=o.args;c<f.length;c++){var d=f[c];var p=getNamedArgRegEx(d.name);var g=p.exec(n);if(!g&&!d.optional){return}else if(g){if(d.captureSpan){var _=r.pos+g.index+g[1].length+g[2].length;s[d.name]={value:g[3],pos:_,end:_+g[3].length}}else{s[d.name]=g[3]}}}t.push({name:a,args:{arguments:s,range:r}})}else{t.push({name:a,args:{arguments:{},range:r}})}return}var m=r.kind===2&&l.exec(n);if(m){return addPragmaForMatch(t,r,2,m)}if(r.kind===3){var y=/\s*@(\S+)\s*(.*)\s*$/gim;var h=void 0;while(h=y.exec(n)){addPragmaForMatch(t,r,4,h)}}}function addPragmaForMatch(t,r,n,i){if(!i)return;var a=i[1].toLowerCase();var o=e.commentPragmas[a];if(!o||!(o.kind&n)){return}var s=i[2];var c=getNamedPragmaArguments(o,s);if(c==="fail")return;t.push({name:a,args:{arguments:c,range:r}});return}function getNamedPragmaArguments(t,r){if(!r)return{};if(!t.args)return{};var n=r.split(/\s+/);var i={};for(var a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional){return"fail"}if(o.captureSpan){return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas")}i[o.name]=n[a]}return i}function tagNamesAreEquivalent(e,t){if(e.kind!==t.kind){return false}if(e.kind===72){return e.escapedText===t.escapedText}if(e.kind===100){return true}return e.name.escapedText===t.name.escapedText&&tagNamesAreEquivalent(e.expression,t.expression)}e.tagNamesAreEquivalent=tagNamesAreEquivalent})(s||(s={}));var s;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.symbol","lib.esnext.symbol.d.ts"],["esnext.asynciterable","lib.esnext.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];e.libs=t.map(function(e){return e[0]});e.libMap=e.createMapFromEntries(t);e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:false,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information}];e.optionDeclarations=e.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:true,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:true,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),affectsSourceFile:true,affectsModuleResolution:true,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:true,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:true,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:true,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:true,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:true,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:true,strictFlag:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:true,affectsSemanticDiagnostics:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:true,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:true,isFilePath:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:true,isTSConfigOnly:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:true,element:{name:"rootDirs",type:"string",isFilePath:true},affectsModuleResolution:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:true},affectsModuleResolution:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:true,showInSimplifiedHelpView:true,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",isFilePath:false,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:true,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:true,affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:true,affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:true,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:true,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]);e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics});e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution});e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics});e.buildOpts=e.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]);e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}];e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:true,esModuleInterop:true};var r;function convertEnableAutoDiscoveryToEnable(e){if(e&&e.enableAutoDiscovery!==undefined&&e.enable===undefined){return{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}}return e}e.convertEnableAutoDiscoveryToEnable=convertEnableAutoDiscoveryToEnable;function getOptionNameMap(){return r||(r=createOptionNameMap(e.optionDeclarations))}function createOptionNameMap(t){var r=e.createMap();var n=e.createMap();e.forEach(t,function(e){r.set(e.name.toLowerCase(),e);if(e.shortName){n.set(e.shortName,e.name)}});return{optionNameMap:r,shortOptionNames:n}}e.createOptionNameMap=createOptionNameMap;function createCompilerDiagnosticForInvalidCustomType(t){return createDiagnosticForInvalidCustomType(t,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=createCompilerDiagnosticForInvalidCustomType;function createDiagnosticForInvalidCustomType(t,r){var n=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function parseCustomTypeOption(e,t,r){return convertJsonOptionOfCustomType(e,trimString(t||""),r)}e.parseCustomTypeOption=parseCustomTypeOption;function parseListTypeOption(t,r,n){if(r===void 0){r=""}r=trimString(r);if(e.startsWith(r,"-")){return undefined}if(r===""){return[]}var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.mapDefined(i,function(e){return parseCustomTypeOption(t.element,e,n)})}}e.parseListTypeOption=parseListTypeOption;function parseCommandLineWorker(t,r,n,i){var a=r[0],o=r[1];var s={};var c=[];var u=[];parseStrings(n);return{options:s,fileNames:c,errors:u};function parseStrings(r){var n=0;while(n<r.length){var i=r[n];n++;if(i.charCodeAt(0)===64){parseResponseFile(i.slice(1))}else if(i.charCodeAt(0)===45){var l=getOptionDeclarationFromName(t,i.slice(i.charCodeAt(1)===45?2:1),true);if(l){if(l.isTSConfigOnly){u.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,l.name))}else{if(!r[n]&&l.type!=="boolean"){u.push(e.createCompilerDiagnostic(o,l.name))}switch(l.type){case"number":s[l.name]=parseInt(r[n]);n++;break;case"boolean":var f=r[n];s[l.name]=f!=="false";if(f==="false"||f==="true"){n++}break;case"string":s[l.name]=r[n]||"";n++;break;case"list":var d=parseListTypeOption(l,r[n],u);s[l.name]=d||[];if(d){n++}break;default:s[l.name]=parseCustomTypeOption(l,r[n],u);n++;break}}}else{u.push(e.createCompilerDiagnostic(a,i))}}else{c.push(i)}}}function parseResponseFile(t){var r=i?i(t):e.sys.readFile(t);if(!r){u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));return}var n=[];var a=0;while(true){while(a<r.length&&r.charCodeAt(a)<=32)a++;if(a>=r.length)break;var o=a;if(r.charCodeAt(o)===34){a++;while(a<r.length&&r.charCodeAt(a)!==34)a++;if(a<r.length){n.push(r.substring(o+1,a));a++}else{u.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}}else{while(r.charCodeAt(a)>32)a++;n.push(r.substring(o,a))}}parseStrings(n)}}function parseCommandLine(t,r){return parseCommandLineWorker(getOptionNameMap,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],t,r)}e.parseCommandLine=parseCommandLine;function getOptionFromName(e,t){return getOptionDeclarationFromName(getOptionNameMap,e,t)}e.getOptionFromName=getOptionFromName;function getOptionDeclarationFromName(e,t,r){if(r===void 0){r=false}t=t.toLowerCase();var n=e(),i=n.optionNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);if(o!==undefined){t=o}}return i.get(t)}function parseBuildCommand(t){var r;var n=function(){return r||(r=createOptionNameMap(e.buildOpts))};var i=parseCommandLineWorker(n,[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],t),a=i.options,o=i.fileNames,s=i.errors;var c=a;if(o.length===0){o.push(".")}if(c.clean&&c.force){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force"))}if(c.clean&&c.verbose){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose"))}if(c.clean&&c.watch){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch"))}if(c.watch&&c.dry){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry"))}return{buildOptions:c,projects:o,errors:s}}e.parseBuildCommand=parseBuildCommand;function getDiagnosticText(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var i=e.createCompilerDiagnostic.apply(undefined,arguments);return i.messageText}function printVersion(){e.sys.write(getDiagnosticText(e.Diagnostics.Version_0,e.version)+e.sys.newLine)}e.printVersion=printVersion;function printHelp(t,r){if(r===void 0){r=""}var n=[];var i=getDiagnosticText(e.Diagnostics.Syntax_Colon_0,"").length;var a=getDiagnosticText(e.Diagnostics.Examples_Colon_0,"").length;var o=Math.max(i,a);var s=makePadding(o-i);s+="tsc "+r+"["+getDiagnosticText(e.Diagnostics.options)+"] ["+getDiagnosticText(e.Diagnostics.file)+"...]";n.push(getDiagnosticText(e.Diagnostics.Syntax_Colon_0,s));n.push(e.sys.newLine+e.sys.newLine);var c=makePadding(o);n.push(getDiagnosticText(e.Diagnostics.Examples_Colon_0,makePadding(o-a)+"tsc hello.ts")+e.sys.newLine);n.push(c+"tsc --outFile file.js file.ts"+e.sys.newLine);n.push(c+"tsc @args.txt"+e.sys.newLine);n.push(c+"tsc --build tsconfig.json"+e.sys.newLine);n.push(e.sys.newLine);n.push(getDiagnosticText(e.Diagnostics.Options_Colon)+e.sys.newLine);o=0;var u=[];var l=[];var f=e.createMap();for(var d=0,p=t;d<p.length;d++){var g=p[d];if(!g.description){continue}var _=" ";if(g.shortName){_+="-"+g.shortName;_+=getParamType(g);_+=", "}_+="--"+g.name;_+=getParamType(g);u.push(_);var m=void 0;if(g.name==="lib"){m=getDiagnosticText(g.description);var y=g.element;var h=y.type;f.set(m,e.arrayFrom(h.keys()).map(function(e){return"'"+e+"'"}))}else{m=getDiagnosticText(g.description)}l.push(m);o=Math.max(_.length,o)}var v=" @<"+getDiagnosticText(e.Diagnostics.file)+">";u.push(v);l.push(getDiagnosticText(e.Diagnostics.Insert_command_line_options_and_files_from_a_file));o=Math.max(v.length,o);for(var T=0;T<u.length;T++){var S=u[T];var m=l[T];var b=f.get(m);n.push(S+makePadding(o-S.length+2)+m+e.sys.newLine);if(b){n.push(makePadding(o+4));for(var x=0,C=b;x<C.length;x++){var E=C[x];n.push(E+" ")}n.push(e.sys.newLine)}}for(var D=0,k=n;D<k.length;D++){var N=k[D];e.sys.write(N)}return;function getParamType(e){if(e.paramType!==undefined){return" "+getDiagnosticText(e.paramType)}return""}function makePadding(e){return Array(e+1).join(" ")}}e.printHelp=printHelp;function getParsedCommandLineOfConfigFile(t,r,n){var i;try{i=n.readFile(t)}catch(r){var a=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message);n.onUnRecoverableConfigFileDiagnostic(a);return undefined}if(!i){var a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t);n.onUnRecoverableConfigFileDiagnostic(a);return undefined}var o=e.parseJsonText(t,i);var s=n.getCurrentDirectory();o.path=e.toPath(t,s,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames));o.resolvedPath=o.path;o.originalFileName=o.fileName;return parseJsonSourceFileConfigFileContent(o,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),s),r,e.getNormalizedAbsolutePath(t,s))}e.getParsedCommandLineOfConfigFile=getParsedCommandLineOfConfigFile;function readConfigFile(t,r){var n=tryReadFile(t,r);return e.isString(n)?parseConfigFileTextToJson(t,n):{config:{},error:n}}e.readConfigFile=readConfigFile;function parseConfigFileTextToJson(t,r){var n=e.parseJsonText(t,r);return{config:convertToObject(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:undefined}}e.parseConfigFileTextToJson=parseConfigFileTextToJson;function readJsonConfigFile(t,r){var n=tryReadFile(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}e.readJsonConfigFile=readJsonConfigFile;function tryReadFile(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return n===undefined?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):n}function commandLineOptionsToMap(t){return e.arrayToMap(t,function(e){return e.name})}var i;function getTsconfigRootOptionsMap(){if(i===undefined){i={name:undefined,type:"object",elementOptions:commandLineOptionsToMap([{name:"compilerOptions",type:"object",elementOptions:commandLineOptionsToMap(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:commandLineOptionsToMap(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:commandLineOptionsToMap(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}}return i}function convertToObject(e,t){return convertToObjectWorker(e,t,true,undefined,undefined)}e.convertToObject=convertToObject;function convertToObjectWorker(t,r,n,i,a){if(!t.statements.length){return n?{}:undefined}return convertPropertyValueToJson(t.statements[0].expression,i);function isRootOptionMap(e){return i&&i.elementOptions===e}function convertObjectLiteralExpressionToJson(i,o,s,c){var u=n?{}:undefined;for(var l=0,f=i.properties;l<f.length;l++){var d=f[l];if(d.kind!==275){r.push(e.createDiagnosticForNodeInSourceFile(t,d,e.Diagnostics.Property_assignment_expected));continue}if(d.questionToken){r.push(e.createDiagnosticForNodeInSourceFile(t,d.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"))}if(!isDoubleQuotedString(d.name)){r.push(e.createDiagnosticForNodeInSourceFile(t,d.name,e.Diagnostics.String_literal_with_double_quotes_expected))}var p=e.getTextOfPropertyName(d.name);var g=p&&e.unescapeLeadingUnderscores(p);var _=g&&o?o.get(g):undefined;if(g&&s&&!_){r.push(e.createDiagnosticForNodeInSourceFile(t,d.name,s,g))}var m=convertPropertyValueToJson(d.initializer,_);if(typeof g!=="undefined"){if(n){u[g]=m}if(a&&(c||isRootOptionMap(o))){var y=isCompilerOptionsValue(_,m);if(c){if(y){a.onSetValidOptionKeyValueInParent(c,_,m)}}else if(isRootOptionMap(o)){if(y){a.onSetValidOptionKeyValueInRoot(g,d.name,m,d.initializer)}else if(!_){a.onSetUnknownOptionKeyValueInRoot(g,d.name,m,d.initializer)}}}}}return u}function convertArrayLiteralExpressionToJson(t,r){if(!n){return t.forEach(function(e){return convertPropertyValueToJson(e,r)})}return e.filter(t.map(function(e){return convertPropertyValueToJson(e,r)}),function(e){return e!==undefined})}function convertPropertyValueToJson(n,i){switch(n.kind){case 102:reportInvalidOptionValue(i&&i.type!=="boolean");return true;case 87:reportInvalidOptionValue(i&&i.type!=="boolean");return false;case 96:reportInvalidOptionValue(i&&i.name==="extends");return null;case 10:if(!isDoubleQuotedString(n)){r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.String_literal_with_double_quotes_expected))}reportInvalidOptionValue(i&&(e.isString(i.type)&&i.type!=="string"));var a=n.text;if(i&&!e.isString(i.type)){var o=i;if(!o.type.has(a.toLowerCase())){r.push(createDiagnosticForInvalidCustomType(o,function(r,i,a){return e.createDiagnosticForNodeInSourceFile(t,n,r,i,a)}))}}return a;case 8:reportInvalidOptionValue(i&&i.type!=="number");return Number(n.text);case 202:if(n.operator!==39||n.operand.kind!==8){break}reportInvalidOptionValue(i&&i.type!=="number");return-Number(n.operand.text);case 188:reportInvalidOptionValue(i&&i.type!=="object");var s=n;if(i){var c=i,u=c.elementOptions,l=c.extraKeyDiagnosticMessage,f=c.name;return convertObjectLiteralExpressionToJson(s,u,l,f)}else{return convertObjectLiteralExpressionToJson(s,undefined,undefined,undefined)}case 187:reportInvalidOptionValue(i&&i.type!=="list");return convertArrayLiteralExpressionToJson(n.elements,i&&i.element)}if(i){reportInvalidOptionValue(true)}else{r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}return undefined;function reportInvalidOptionValue(a){if(a){r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,i.name,getCompilerOptionValueTypeString(i)))}}}function isDoubleQuotedString(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}e.convertToObjectWorker=convertToObjectWorker;function getCompilerOptionValueTypeString(t){return t.type==="list"?"Array":e.isString(t.type)?t.type:"string"}function isCompilerOptionsValue(t,r){if(t){if(isNullOrUndefined(r))return true;if(t.type==="list"){return e.isArray(r)}var n=e.isString(t.type)?t.type:"string";return typeof r===n}return false}function convertToTSConfig(t,r,i){var a=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames);var o=e.map(e.filter(t.fileNames,!t.configFileSpecs||!t.configFileSpecs.validatedIncludeSpecs?function(e){return true}:matchesSpecs(r,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs)),function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),a)});var s=serializeCompilerOptions(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames});var c=n({compilerOptions:n({},e.arrayFrom(s.entries()).reduce(function(e,t){var r;return n({},e,(r={},r[t[0]]=t[1],r))},{}),{showConfig:undefined,configFile:undefined,configFilePath:undefined,help:undefined,init:undefined,listFiles:undefined,listEmittedFiles:undefined,project:undefined}),references:e.map(t.projectReferences,function(e){return n({},e,{path:e.originalPath,originalPath:undefined})}),files:e.length(o)?o:undefined},t.configFileSpecs?{include:filterSameAsDefaultInclude(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{},{compilerOnSave:!!t.compileOnSave?true:undefined});return c}e.convertToTSConfig=convertToTSConfig;function filterSameAsDefaultInclude(t){if(!e.length(t))return undefined;if(e.length(t)!==1)return t;if(t[0]==="**/*")return undefined;return t}function matchesSpecs(t,r,n){if(!r)return function(e){return true};var i=e.getFileMatcherPatterns(t,n,r,e.sys.useCaseSensitiveFileNames,e.sys.getCurrentDirectory());var a=i.excludePattern&&e.getRegexFromPattern(i.excludePattern,e.sys.useCaseSensitiveFileNames);var o=i.includeFilePattern&&e.getRegexFromPattern(i.includeFilePattern,e.sys.useCaseSensitiveFileNames);if(o){if(a){return function(e){return!(o.test(e)&&!a.test(e))}}return function(e){return!o.test(e)}}if(a){return function(e){return a.test(e)}}return function(e){return true}}function getCustomTypeMapOfCommandLineOption(e){if(e.type==="string"||e.type==="number"||e.type==="boolean"){return undefined}else if(e.type==="list"){return getCustomTypeMapOfCommandLineOption(e.element)}else{return e.type}}function getNameOfCompilerOptionValue(t,r){return e.forEachEntry(r,function(e,r){if(e===t){return r}})}function serializeCompilerOptions(t,r){var n=e.createMap();var i=getOptionNameMap().optionNameMap;var a=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames);var o=function(o){if(e.hasProperty(t,o)){if(i.has(o)&&i.get(o).category===e.Diagnostics.Command_line_Options){return"continue"}var s=t[o];var c=i.get(o.toLowerCase());if(c){var u=getCustomTypeMapOfCommandLineOption(c);if(!u){if(r&&c.isFilePath){n.set(o,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),a))}else{n.set(o,s)}}else{if(c.type==="list"){n.set(o,s.map(function(e){return getNameOfCompilerOptionValue(e,u)}))}else{n.set(o,getNameOfCompilerOptionValue(s,u))}}}}};for(var s in t){o(s)}return n}function generateTSConfig(t,r,n){var i=e.extend(t,e.defaultInitCompilerOptions);var a=serializeCompilerOptions(i);return writeConfigurations();function getDefaultValueForOption(e){switch(e.type){case"number":return 1;case"boolean":return true;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function makePadding(e){return Array(e+1).join(" ")}function isAllowedOption(t){var r=t.category,n=t.name;return r!==undefined&&r!==e.Diagnostics.Command_line_Options&&(r!==e.Diagnostics.Advanced_Options||a.has(n))}function writeConfigurations(){var t=e.createMultiMap();for(var i=0,o=e.optionDeclarations;i<o.length;i++){var s=o[i];var c=s.category;if(isAllowedOption(s)){t.add(e.getLocaleSpecificMessage(c),s)}}var u=0;var l=0;var f=[];var d=[];t.forEach(function(t,r){if(f.length!==0){f.push("");d.push("")}f.push("/* "+r+" */");d.push("");for(var n=0,i=t;n<i.length;n++){var o=i[n];var s=void 0;if(a.has(o.name)){s='"'+o.name+'": '+JSON.stringify(a.get(o.name))+((l+=1)===a.size?"":",")}else{s='// "'+o.name+'": '+JSON.stringify(getDefaultValueForOption(o))+","}f.push(s);d.push("/* "+(o.description&&e.getLocaleSpecificMessage(o.description)||o.name)+" */");u=Math.max(s.length,u)}});var p=makePadding(2);var g=[];g.push("{");g.push(p+'"compilerOptions": {');for(var _=0;_<f.length;_++){var m=f[_];var y=d[_];g.push(m&&""+p+p+m+(y&&makePadding(u-m.length+2)+y))}if(r.length){g.push(p+"},");g.push(p+'"files": [');for(var _=0;_<r.length;_++){g.push(""+p+p+JSON.stringify(r[_])+(_===r.length-1?"":","))}g.push(p+"]")}else{g.push(p+"}")}g.push("}");return g.join(n)}}e.generateTSConfig=generateTSConfig;function parseJsonConfigFileContent(e,t,r,n,i,a,o){return parseJsonConfigFileContentWorker(e,undefined,t,r,n,i,a,o)}e.parseJsonConfigFileContent=parseJsonConfigFileContent;function parseJsonSourceFileConfigFileContent(e,t,r,n,i,a,o){return parseJsonConfigFileContentWorker(undefined,e,t,r,n,i,a,o)}e.parseJsonSourceFileConfigFileContent=parseJsonSourceFileConfigFileContent;function setConfigFileInOptions(e,t){if(t){Object.defineProperty(e,"configFile",{enumerable:false,writable:false,value:t})}}e.setConfigFileInOptions=setConfigFileInOptions;function isNullOrUndefined(e){return e===undefined||e===null}function directoryOfCombinedPath(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function parseJsonConfigFileContentWorker(t,r,n,i,a,o,s,c){if(a===void 0){a={}}if(s===void 0){s=[]}if(c===void 0){c=[]}e.Debug.assert(t===undefined&&r!==undefined||t!==undefined&&r===undefined);var u=[];var l=parseConfig(t,r,n,i,o,s,u);var f=l.raw;var d=e.extend(a,l.options||{});d.configFilePath=o&&e.normalizeSlashes(o);setConfigFileInOptions(d,r);var p;var g=getFileNames(),_=g.fileNames,m=g.wildcardDirectories,y=g.spec;return{options:d,fileNames:_,projectReferences:p,typeAcquisition:l.typeAcquisition||getDefaultTypeAcquisition(),raw:f,errors:u,wildcardDirectories:m,compileOnSave:!!f.compileOnSave,configFileSpecs:y};function getFileNames(){var t;if(e.hasProperty(f,"files")&&!isNullOrUndefined(f.files)){if(e.isArray(f.files)){t=f.files;var a=e.hasProperty(f,"references")&&!isNullOrUndefined(f.references);var l=!a||f.references.length===0;var g=e.hasProperty(f,"extends");if(t.length===0&&l&&!g){if(r){var _=o||"tsconfig.json";var m=e.Diagnostics.The_files_list_in_config_file_0_is_empty;var y=e.firstDefined(e.getTsConfigPropArray(r,"files"),function(e){return e.initializer});var h=y?e.createDiagnosticForNodeInSourceFile(r,y,m,_):e.createCompilerDiagnostic(m,_);u.push(h)}else{createCompilerDiagnosticOnlyIfJson(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json")}}}else{createCompilerDiagnosticOnlyIfJson(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")}}var v;if(e.hasProperty(f,"include")&&!isNullOrUndefined(f.include)){if(e.isArray(f.include)){v=f.include}else{createCompilerDiagnosticOnlyIfJson(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")}}var T;if(e.hasProperty(f,"exclude")&&!isNullOrUndefined(f.exclude)){if(e.isArray(f.exclude)){T=f.exclude}else{createCompilerDiagnosticOnlyIfJson(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array")}}else if(f.compilerOptions){var S=f.compilerOptions.outDir;var b=f.compilerOptions.declarationDir;if(S||b){T=[S,b].filter(function(e){return!!e})}}if(t===undefined&&v===undefined){v=["**/*"]}var x=matchFileNames(t,v,T,o?directoryOfCombinedPath(o,i):i,d,n,u,c,r);if(shouldReportNoInputFiles(x,canJsonReportNoInutFiles(f),s)){u.push(getErrorForNoInputFiles(x.spec,o))}if(e.hasProperty(f,"references")&&!isNullOrUndefined(f.references)){if(e.isArray(f.references)){for(var C=0,E=f.references;C<E.length;C++){var D=E[C];if(typeof D.path!=="string"){createCompilerDiagnosticOnlyIfJson(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string")}else{(p||(p=[])).push({path:e.getNormalizedAbsolutePath(D.path,i),originalPath:D.path,prepend:D.prepend,circular:D.circular})}}}else{createCompilerDiagnosticOnlyIfJson(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array")}}return x}function createCompilerDiagnosticOnlyIfJson(t,n,i){if(!r){u.push(e.createCompilerDiagnostic(t,n,i))}}}function isErrorNoInputFiles(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function getErrorForNoInputFiles(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function shouldReportNoInputFiles(e,t,r){return e.fileNames.length===0&&t&&(!r||r.length===0)}function canJsonReportNoInutFiles(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}e.canJsonReportNoInutFiles=canJsonReportNoInutFiles;function updateErrorForNoInputFiles(t,r,n,i,a){var o=i.length;if(shouldReportNoInputFiles(t,a)){i.push(getErrorForNoInputFiles(n,r))}else{e.filterMutate(i,function(e){return!isErrorNoInputFiles(e)})}return o!==i.length}e.updateErrorForNoInputFiles=updateErrorForNoInputFiles;function isSuccessfulParsedTsconfig(e){return!!e.options}function parseConfig(t,r,n,i,a,o,s){i=e.normalizeSlashes(i);var c=e.getNormalizedAbsolutePath(a||"",i);if(o.indexOf(c)>=0){s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([c]).join(" -> ")));return{raw:t||convertToObject(r,s)}}var u=t?parseOwnConfigOfJson(t,n,i,a,s):parseOwnConfigOfJsonSourceFile(r,n,i,a,s);if(u.extendedConfigPath){o=o.concat([c]);var l=getExtendedConfig(r,u.extendedConfigPath,n,i,o,s);if(l&&isSuccessfulParsedTsconfig(l)){var f=l.raw;var d=u.raw;var p=function(e){var t=d[e]||f[e];if(t){d[e]=t}};p("include");p("exclude");p("files");if(d.compileOnSave===undefined){d.compileOnSave=f.compileOnSave}u.options=e.assign({},l.options,u.options)}}return u}function parseOwnConfigOfJson(t,r,n,i,a){if(e.hasProperty(t,"excludes")){a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}var o=convertCompilerOptionsFromJsonWorker(t.compilerOptions,n,a,i);var s=convertTypeAcquisitionFromJsonWorker(t.typeAcquisition||t.typingOptions,n,a,i);t.compileOnSave=convertCompileOnSaveOptionFromJson(t,n,a);var c;if(t.extends){if(!e.isString(t.extends)){a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"))}else{var u=i?directoryOfCombinedPath(i,n):n;c=getExtendsConfigPath(t.extends,r,u,a,e.createCompilerDiagnostic)}}return{raw:t,options:o,typeAcquisition:s,extendedConfigPath:c}}function parseOwnConfigOfJsonSourceFile(t,r,n,i,a){var o=getDefaultCompilerOptions(i);var s,c;var u;var l={onSetValidOptionKeyValueInParent:function(t,r,a){e.Debug.assert(t==="compilerOptions"||t==="typeAcquisition"||t==="typingOptions");var u=t==="compilerOptions"?o:t==="typeAcquisition"?s||(s=getDefaultTypeAcquisition(i)):c||(c=getDefaultTypeAcquisition(i));u[r.name]=normalizeOptionValue(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var f=i?directoryOfCombinedPath(i,n):n;u=getExtendsConfigPath(c,r,f,a,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)});return}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){if(r==="excludes"){a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}}};var f=convertToObjectWorker(t,a,true,getTsconfigRootOptionsMap(),l);if(!s){if(c){s=c.enableAutoDiscovery!==undefined?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c}else{s=getDefaultTypeAcquisition(i)}}return{raw:f,options:o,typeAcquisition:s,extendedConfigPath:u}}function getExtendsConfigPath(t,r,n,i,a){t=e.normalizeSlashes(t);if(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);if(!r.fileExists(o)&&!e.endsWith(o,".json")){o=o+".json";if(!r.fileExists(o)){i.push(a(e.Diagnostics.File_0_does_not_exist,t));return undefined}}return o}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,undefined,undefined,true);if(s.resolvedModule){return s.resolvedModule.resolvedFileName}i.push(a(e.Diagnostics.File_0_does_not_exist,t));return undefined}function getExtendedConfig(t,r,n,i,a,o){var s;var c=readJsonConfigFile(r,function(e){return n.readFile(e)});if(t){t.extendedSourceFiles=[c.fileName]}if(c.parseDiagnostics.length){o.push.apply(o,c.parseDiagnostics);return undefined}var u=e.getDirectoryPath(r);var l=parseConfig(undefined,c,n,u,e.getBaseFileName(r),a,o);if(t&&c.extendedSourceFiles){(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles)}if(isSuccessfulParsedTsconfig(l)){var f=e.convertToRelativePath(u,i,e.identity);var d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)};var p=function(t){if(g[t]){g[t]=e.map(g[t],d)}};var g=l.raw;p("include");p("exclude");p("files")}return l}function convertCompileOnSaveOptionFromJson(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){return false}var i=convertJsonOption(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return typeof i==="boolean"&&i}function convertCompilerOptionsFromJson(e,t,r){var n=[];var i=convertCompilerOptionsFromJsonWorker(e,t,n,r);return{options:i,errors:n}}e.convertCompilerOptionsFromJson=convertCompilerOptionsFromJson;function convertTypeAcquisitionFromJson(e,t,r){var n=[];var i=convertTypeAcquisitionFromJsonWorker(e,t,n,r);return{options:i,errors:n}}e.convertTypeAcquisitionFromJson=convertTypeAcquisitionFromJson;function getDefaultCompilerOptions(t){var r=t&&e.getBaseFileName(t)==="jsconfig.json"?{allowJs:true,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:true,skipLibCheck:true,noEmit:true}:{};return r}function convertCompilerOptionsFromJsonWorker(t,r,n,i){var a=getDefaultCompilerOptions(i);convertOptionsFromJson(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n);if(i){a.configFilePath=e.normalizeSlashes(i)}return a}function getDefaultTypeAcquisition(t){return{enable:!!t&&e.getBaseFileName(t)==="jsconfig.json",include:[],exclude:[]}}function convertTypeAcquisitionFromJsonWorker(t,r,n,i){var a=getDefaultTypeAcquisition(i);var o=convertEnableAutoDiscoveryToEnable(t);convertOptionsFromJson(e.typeAcquisitionDeclarations,o,r,a,e.Diagnostics.Unknown_type_acquisition_option_0,n);return a}function convertOptionsFromJson(t,r,n,i,a,o){if(!r){return}var s=commandLineOptionsToMap(t);for(var c in r){var u=s.get(c);if(u){i[u.name]=convertJsonOption(u,r[c],n,o)}else{o.push(e.createCompilerDiagnostic(a,c))}}}function convertJsonOption(t,r,n,i){if(isCompilerOptionsValue(t,r)){var a=t.type;if(a==="list"&&e.isArray(r)){return convertJsonOptionOfListType(t,r,n,i)}else if(!e.isString(a)){return convertJsonOptionOfCustomType(t,r,i)}return normalizeNonListOptionValue(t,n,r)}else{i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,getCompilerOptionValueTypeString(t)))}}function normalizeOptionValue(t,r,n){if(isNullOrUndefined(n))return undefined;if(t.type==="list"){var i=t;if(i.element.isFilePath||!e.isString(i.element.type)){return e.filter(e.map(n,function(e){return normalizeOptionValue(i.element,r,e)}),function(e){return!!e})}return n}else if(!e.isString(t.type)){return t.type.get(e.isString(n)?n.toLowerCase():n)}return normalizeNonListOptionValue(t,r,n)}function normalizeNonListOptionValue(t,r,n){if(t.isFilePath){n=e.normalizePath(e.combinePaths(r,n));if(n===""){n="."}}return n}function convertJsonOptionOfCustomType(e,t,r){if(isNullOrUndefined(t))return undefined;var n=t.toLowerCase();var i=e.type.get(n);if(i!==undefined){return i}else{r.push(createCompilerDiagnosticForInvalidCustomType(e))}}function convertJsonOptionOfListType(t,r,n,i){return e.filter(e.map(r,function(e){return convertJsonOption(t.element,e,n,i)}),function(e){return!!e})}function trimString(e){return typeof e.trim==="function"?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}var a=/(^|\/)\*\*\/?$/;var o=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/;var s=/\/[^/]*?[*?][^/]*\//;var c=/^[^*?]*(?=\/[^/]*[*?])/;function matchFileNames(t,r,n,i,a,o,s,c,u){i=e.normalizePath(i);var l,f;if(r){l=validateSpecs(r,s,false,u,"include")}if(n){f=validateSpecs(n,s,true,u,"exclude")}var d=getWildcardDirectories(l,f,i,o.useCaseSensitiveFileNames);var p={filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:f,wildcardDirectories:d};return getFileNamesFromConfigSpecs(p,i,a,o,c)}function getFileNamesFromConfigSpecs(t,r,n,i,a){if(a===void 0){a=[]}r=e.normalizePath(r);var o=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase;var s=e.createMap();var c=e.createMap();var u=e.createMap();var l=t.filesSpecs,f=t.validatedIncludeSpecs,d=t.validatedExcludeSpecs,p=t.wildcardDirectories;var g=e.getSupportedExtensions(n,a);var _=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,g);if(l){for(var m=0,y=l;m<y.length;m++){var h=y[m];var v=e.getNormalizedAbsolutePath(h,r);s.set(o(v),v)}}var T;if(f&&f.length>0){var S=function(t){if(e.fileExtensionIs(t,".json")){if(!T){var n=f.filter(function(t){return e.endsWith(t,".json")});var a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});T=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}var l=e.findIndex(T,function(e){return e.test(t)});if(l!==-1){var d=o(t);if(!s.has(d)&&!u.has(d)){u.set(d,t)}}return"continue"}if(hasFileWithHigherPriorityExtension(t,s,c,g,o)){return"continue"}removeWildcardFilesWithLowerPriorityExtension(t,c,g,o);var p=o(t);if(!s.has(p)&&!c.has(p)){c.set(p,t)}};for(var b=0,x=i.readDirectory(r,_,d,f,undefined);b<x.length;b++){var v=x[b];S(v)}}var C=e.arrayFrom(s.values());var E=e.arrayFrom(c.values());return{fileNames:C.concat(E,e.arrayFrom(u.values())),wildcardDirectories:p,spec:t}}e.getFileNamesFromConfigSpecs=getFileNamesFromConfigSpecs;function validateSpecs(t,r,n,i,a){return t.filter(function(e){var t=specToDiagnostic(e,n);if(t!==undefined){r.push(createDiagnostic(t,e))}return t===undefined});function createDiagnostic(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function specToDiagnostic(t,r){if(!r&&a.test(t)){return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}else if(o.test(t)){return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}function getWildcardDirectories(t,r,n,i){var a=e.getRegularExpressionForWildcard(r,n,"exclude");var o=a&&new RegExp(a,i?"":"i");var s={};if(t!==undefined){var c=[];for(var u=0,l=t;u<l.length;u++){var f=l[u];var d=e.normalizePath(e.combinePaths(n,f));if(o&&o.test(d)){continue}var p=getWildcardDirectoryFromSpec(d,i);if(p){var g=p.key,_=p.flags;var m=s[g];if(m===undefined||m<_){s[g]=_;if(_===1){c.push(g)}}}}for(var g in s){if(e.hasProperty(s,g)){for(var y=0,h=c;y<h.length;y++){var v=h[y];if(g!==v&&e.containsPath(v,g,n,!i)){delete s[g]}}}}}return s}function getWildcardDirectoryFromSpec(t,r){var n=c.exec(t);if(n){return{key:r?n[0]:n[0].toLowerCase(),flags:s.test(t)?1:0}}if(e.isImplicitGlob(t)){return{key:t,flags:1}}return undefined}function hasFileWithHigherPriorityExtension(t,r,n,i,a){var o=e.getExtensionPriority(t,i);var s=e.adjustExtensionPriority(o,i);for(var c=0;c<s;c++){var u=i[c];var l=a(e.changeExtension(t,u));if(r.has(l)||n.has(l)){return true}}return false}function removeWildcardFilesWithLowerPriorityExtension(t,r,n,i){var a=e.getExtensionPriority(t,n);var o=e.getNextLowestExtensionPriority(a,n);for(var s=o;s<n.length;s++){var c=n[s];var u=i(e.changeExtension(t,c));r.delete(u)}}function convertCompilerOptionsForTelemetry(e){var t={};for(var r in e){if(e.hasOwnProperty(r)){var n=getOptionFromName(r);if(n!==undefined){t[r]=getOptionValueWithEmptyStrings(e[r],n)}}}return t}e.convertCompilerOptionsForTelemetry=convertCompilerOptionsForTelemetry;function getOptionValueWithEmptyStrings(t,r){switch(r.type){case"object":return"";case"string":return"";case"number":return typeof t==="number"?t:"";case"boolean":return typeof t==="boolean"?t:"";case"list":var n=r.element;return e.isArray(t)?t.map(function(e){return getOptionValueWithEmptyStrings(e,n)}):"";default:return e.forEachEntry(r.type,function(e,r){if(e===t){return r}})}}})(s||(s={}));var s;(function(e){function trace(t){t.trace(e.formatMessage.apply(undefined,arguments))}e.trace=trace;function isTraceEnabled(e,t){return!!e.traceResolution&&t.trace!==undefined}e.isTraceEnabled=isTraceEnabled;function withPackageId(e,t){return t&&{path:t.path,extension:t.ext,packageId:e}}function noPackageId(e){return withPackageId(undefined,e)}function removeIgnoredPackageId(t){if(t){e.Debug.assert(t.packageId===undefined);return{path:t.path,ext:t.extension}}}var t;(function(e){e[e["TypeScript"]=0]="TypeScript";e[e["JavaScript"]=1]="JavaScript";e[e["Json"]=2]="Json";e[e["TSConfig"]=3]="TSConfig";e[e["DtsOnly"]=4]="DtsOnly"})(t||(t={}));function resolvedTypeScriptOnly(t){if(!t){return undefined}e.Debug.assert(e.extensionIsTS(t.extension));return{fileName:t.path,packageId:t.packageId}}function createResolvedModuleWithFailedLookupLocations(e,t,r){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===true?undefined:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function readPackageJsonField(t,r,n,i){if(!e.hasProperty(t,r)){if(i.traceEnabled){trace(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}return}var a=t[r];if(typeof a!==n||a===null){if(i.traceEnabled){trace(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,r,n,a===null?"null":typeof a)}return}return a}function readPackageJsonPathField(t,r,n,i){var a=readPackageJsonField(t,r,"string",i);if(a===undefined)return;var o=e.normalizePath(e.combinePaths(n,a));if(i.traceEnabled){trace(i.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,a,o)}return o}function readPackageJsonTypesFields(e,t,r){return readPackageJsonPathField(e,"typings",t,r)||readPackageJsonPathField(e,"types",t,r)}function readPackageJsonTSConfigField(e,t,r){return readPackageJsonPathField(e,"tsconfig",t,r)}function readPackageJsonMainField(e,t,r){return readPackageJsonPathField(e,"main",t,r)}function readPackageJsonTypesVersionsField(t,r){var n=readPackageJsonField(t,"typesVersions","object",r);if(n===undefined)return;if(r.traceEnabled){trace(r.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings)}return n}function readPackageJsonTypesVersionPaths(t,r){var n=readPackageJsonTypesVersionsField(t,r);if(n===undefined)return;if(r.traceEnabled){for(var i in n){if(e.hasProperty(n,i)&&!e.VersionRange.tryParse(i)){trace(r.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,i)}}}var a=getPackageJsonTypesVersionsPaths(n);if(!a){if(r.traceEnabled){trace(r.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}return}var o=a.version,s=a.paths;if(typeof s!=="object"){if(r.traceEnabled){trace(r.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+o+"']","object",typeof s)}return}return a}var r;function getPackageJsonTypesVersionsPaths(t){if(!r)r=new e.Version(e.version);for(var n in t){if(!e.hasProperty(t,n))continue;var i=e.VersionRange.tryParse(n);if(i===undefined){continue}if(i.test(r)){return{version:n,paths:t[n]}}}}e.getPackageJsonTypesVersionsPaths=getPackageJsonTypesVersionsPaths;function getEffectiveTypeRoots(t,r){if(t.typeRoots){return t.typeRoots}var n;if(t.configFilePath){n=e.getDirectoryPath(t.configFilePath)}else if(r.getCurrentDirectory){n=r.getCurrentDirectory()}if(n!==undefined){return getDefaultTypeRoots(n,r)}}e.getEffectiveTypeRoots=getEffectiveTypeRoots;function getDefaultTypeRoots(t,r){if(!r.directoryExists){return[e.combinePaths(t,i)]}var n;e.forEachAncestorDirectory(e.normalizePath(t),function(t){var a=e.combinePaths(t,i);if(r.directoryExists(a)){(n||(n=[])).push(a)}return undefined});return n}var i=e.combinePaths("node_modules","@types");function resolveTypeReferenceDirective(r,n,i,a,o){var s=isTraceEnabled(i,a);if(o){i=o.commandLine.options}var c=[];var u={compilerOptions:i,host:a,traceEnabled:s,failedLookupLocations:c};var l=getEffectiveTypeRoots(i,a);if(s){if(n===undefined){if(l===undefined){trace(a,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r)}else{trace(a,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,l)}}else{if(l===undefined){trace(a,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,n)}else{trace(a,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,n,l)}}if(o){trace(a,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName)}}var f=primaryLookup();var d=true;if(!f){f=secondaryLookup();d=false}var p;if(f){var g=f.fileName,_=f.packageId;var m=i.preserveSymlinks?g:realPath(g,a,s);if(s){trace(a,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,m,d)}p={primary:d,resolvedFileName:m,packageId:_,isExternalLibraryImport:pathContainsNodeModules(g)}}return{resolvedTypeReferenceDirective:p,failedLookupLocations:c};function primaryLookup(){if(l&&l.length){if(s){trace(a,e.Diagnostics.Resolving_with_primary_search_path_0,l.join(", "))}return e.firstDefined(l,function(n){var i=e.combinePaths(n,r);var o=e.getDirectoryPath(i);var c=e.directoryProbablyExists(o,a);if(!c&&s){trace(a,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o)}return resolvedTypeScriptOnly(loadNodeModuleFromDirectory(t.DtsOnly,i,!c,u))})}else{if(s){trace(a,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}}function secondaryLookup(){var i=n&&e.getDirectoryPath(n);if(i!==undefined){if(s){trace(a,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,i)}var o=void 0;if(!e.isExternalModuleNameRelative(r)){var c=loadModuleFromNearestNodeModulesDirectory(t.DtsOnly,r,i,u,undefined,undefined);o=c&&c.value}else{var l=e.normalizePathAndParts(e.combinePaths(i,r)).path;o=nodeLoadModuleByRelativeName(t.DtsOnly,l,false,u,true)}var f=resolvedTypeScriptOnly(o);if(!f&&s){trace(a,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r)}return f}else{if(s){trace(a,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}}}e.resolveTypeReferenceDirective=resolveTypeReferenceDirective;function getAutomaticTypeDirectiveNames(t,r){if(t.types){return t.types}var n=[];if(r.directoryExists&&r.getDirectories){var i=getEffectiveTypeRoots(t,r);if(i){for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s)){for(var c=0,u=r.getDirectories(s);c<u.length;c++){var l=u[c];var f=e.normalizePath(l);var d=e.combinePaths(s,f,"package.json");var p=r.fileExists(d)&&e.readJson(d,r).typings===null;if(!p){var g=e.getBaseFileName(f);if(g.charCodeAt(0)!==46){n.push(g)}}}}}}}return n}e.getAutomaticTypeDirectiveNames=getAutomaticTypeDirectiveNames;function createModuleResolutionCache(e,t){return createModuleResolutionCacheWithMaps(createCacheWithRedirects(),createCacheWithRedirects(),e,t)}e.createModuleResolutionCache=createModuleResolutionCache;function createCacheWithRedirects(){var t=e.createMap();var r=e.createMap();return{ownMap:t,redirectsMap:r,getOrCreateMapOfCacheRedirects:getOrCreateMapOfCacheRedirects,clear:clear};function getOrCreateMapOfCacheRedirects(n){if(!n){return t}var i=n.sourceFile.path;var a=r.get(i);if(!a){a=e.createMap();r.set(i,a)}return a}function clear(){t.clear();r.clear()}}e.createCacheWithRedirects=createCacheWithRedirects;function createModuleResolutionCacheWithMaps(t,r,n,i){return{getOrCreateCacheForDirectory:getOrCreateCacheForDirectory,getOrCreateCacheForModuleName:getOrCreateCacheForModuleName};function getOrCreateCacheForDirectory(r,a){var o=e.toPath(r,n,i);return getOrCreateCache(t,a,o,e.createMap)}function getOrCreateCacheForModuleName(t,n){e.Debug.assert(!e.isExternalModuleNameRelative(t));return getOrCreateCache(r,n,t,createPerModuleNameCache)}function getOrCreateCache(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t);var a=i.get(r);if(!a){a=n();i.set(r,a)}return a}function createPerModuleNameCache(){var t=e.createMap();return{get:get,set:set};function get(r){return t.get(e.toPath(r,n,i))}function set(r,a){var o=e.toPath(r,n,i);if(t.has(o)){return}t.set(o,a);var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName);var c=s&&getCommonPrefix(o,s);var u=o;while(u!==c){var l=e.getDirectoryPath(u);if(l===u||t.has(l)){break}t.set(l,a);u=l}}function getCommonPrefix(t,r){var a=e.toPath(e.getDirectoryPath(r),n,i);var o=0;var s=Math.min(t.length,a.length);while(o<s&&t.charCodeAt(o)===a.charCodeAt(o)){o++}if(o===t.length&&(a.length===o||a[o]===e.directorySeparator)){return t}var c=e.getRootLength(t);if(o<c){return undefined}var u=t.lastIndexOf(e.directorySeparator,o-1);if(u===-1){return undefined}return t.substr(0,Math.max(u,c))}}}e.createModuleResolutionCacheWithMaps=createModuleResolutionCacheWithMaps;function resolveModuleNameFromCache(t,r,n){var i=e.getDirectoryPath(r);var a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)}e.resolveModuleNameFromCache=resolveModuleNameFromCache;function resolveModuleName(t,r,n,i,a,o){var s=isTraceEnabled(n,i);if(o){n=o.commandLine.options}if(s){trace(i,e.Diagnostics.Resolving_module_0_from_1,t,r);if(o){trace(i,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName)}}var c=e.getDirectoryPath(r);var u=a&&a.getOrCreateCacheForDirectory(c,o);var l=u&&u.get(t);if(l){if(s){trace(i,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,c)}}else{var f=n.moduleResolution;if(f===undefined){f=e.getEmitModuleKind(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic;if(s){trace(i,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])}}else{if(s){trace(i,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f])}}switch(f){case e.ModuleResolutionKind.NodeJs:l=nodeModuleNameResolver(t,r,n,i,a,o);break;case e.ModuleResolutionKind.Classic:l=classicNameResolver(t,r,n,i,a,o);break;default:return e.Debug.fail("Unexpected moduleResolution: "+f)}if(u){u.set(t,l);if(!e.isExternalModuleNameRelative(t)){a.getOrCreateCacheForModuleName(t,o).set(c,l)}}}if(s){if(l.resolvedModule){trace(i,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,t,l.resolvedModule.resolvedFileName)}else{trace(i,e.Diagnostics.Module_name_0_was_not_resolved,t)}}return l}e.resolveModuleName=resolveModuleName;function tryLoadModuleUsingOptionalResolutionSettings(t,r,n,i,a){var o=tryLoadModuleUsingPathsIfEligible(t,r,i,a);if(o)return o.value;if(!e.isExternalModuleNameRelative(r)){return tryLoadModuleUsingBaseUrl(t,r,i,a)}else{return tryLoadModuleUsingRootDirs(t,r,n,i,a)}}function tryLoadModuleUsingPathsIfEligible(t,r,n,i){var a=i.compilerOptions,o=a.baseUrl,s=a.paths;if(o&&s&&!e.pathIsRelative(r)){if(i.traceEnabled){trace(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,r);trace(i.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)}return tryLoadModuleUsingPaths(t,r,o,s,n,false,i)}}function tryLoadModuleUsingRootDirs(t,r,n,i,a){if(!a.compilerOptions.rootDirs){return undefined}if(a.traceEnabled){trace(a.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r)}var o=e.normalizePath(e.combinePaths(n,r));var s;var c;for(var u=0,l=a.compilerOptions.rootDirs;u<l.length;u++){var f=l[u];var d=e.normalizePath(f);if(!e.endsWith(d,e.directorySeparator)){d+=e.directorySeparator}var p=e.startsWith(o,d)&&(c===undefined||c.length<d.length);if(a.traceEnabled){trace(a.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,d,o,p)}if(p){c=d;s=f}}if(c){if(a.traceEnabled){trace(a.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,o,c)}var g=o.substr(c.length);if(a.traceEnabled){trace(a.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,c,o)}var _=i(t,o,!e.directoryProbablyExists(n,a.host),a);if(_){return _}if(a.traceEnabled){trace(a.host,e.Diagnostics.Trying_other_entries_in_rootDirs)}for(var m=0,y=a.compilerOptions.rootDirs;m<y.length;m++){var f=y[m];if(f===s){continue}var h=e.combinePaths(e.normalizePath(f),g);if(a.traceEnabled){trace(a.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,f,h)}var v=e.getDirectoryPath(h);var T=i(t,h,!e.directoryProbablyExists(v,a.host),a);if(T){return T}}if(a.traceEnabled){trace(a.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}return undefined}function tryLoadModuleUsingBaseUrl(t,r,n,i){var a=i.compilerOptions.baseUrl;if(!a){return undefined}if(i.traceEnabled){trace(i.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,r)}var o=e.normalizePath(e.combinePaths(a,r));if(i.traceEnabled){trace(i.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,r,a,o)}return n(t,o,!e.directoryProbablyExists(e.getDirectoryPath(o),i.host),i)}function resolveJSModule(e,t,r){var n=tryResolveJSModuleWorker(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i){throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "))}return i.resolvedFileName}e.resolveJSModule=resolveJSModule;function tryResolveJSModule(e,t,r){var n=tryResolveJSModuleWorker(e,t,r).resolvedModule;return n&&n.resolvedFileName}e.tryResolveJSModule=tryResolveJSModule;var a=[t.JavaScript];var o=[t.TypeScript,t.JavaScript];var s=o.concat([t.Json]);var c=[t.TSConfig];function tryResolveJSModuleWorker(t,r,n){return nodeModuleNameResolverWorker(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:true},n,undefined,a,undefined)}function nodeModuleNameResolver(t,r,n,i,a,u,l){return nodeModuleNameResolverWorker(t,e.getDirectoryPath(r),n,i,a,l?c:n.resolveJsonModule?s:o,u)}e.nodeModuleNameResolver=nodeModuleNameResolver;function nodeModuleNameResolverWorker(r,i,a,o,s,c,u){var l=isTraceEnabled(a,o);var f=[];var d={compilerOptions:a,host:o,traceEnabled:l,failedLookupLocations:f};var p=e.forEach(c,function(e){return tryResolve(e)});if(p&&p.value){var g=p.value,_=g.resolved,m=g.isExternalLibraryImport;return createResolvedModuleWithFailedLookupLocations(_,m,f)}return{resolvedModule:undefined,failedLookupLocations:f};function tryResolve(c){var f=function(e,t,r,n){return nodeLoadModuleByRelativeName(e,t,r,n,true)};var p=tryLoadModuleUsingOptionalResolutionSettings(c,r,i,f,d);if(p){return toSearchResult({resolved:p,isExternalLibraryImport:pathContainsNodeModules(p.path)})}if(!e.isExternalModuleNameRelative(r)){if(l){trace(o,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,t[c])}var g=loadModuleFromNearestNodeModulesDirectory(c,r,i,d,s,u);if(!g)return undefined;var _=g.value;if(!a.preserveSymlinks&&_&&!_.originalPath){var m=realPath(_.path,o,l);var y=m===_.path?undefined:_.path;_=n({},_,{path:m,originalPath:y})}return{value:_&&{resolved:_,isExternalLibraryImport:true}}}else{var h=e.normalizePathAndParts(e.combinePaths(i,r)),v=h.path,T=h.parts;var S=nodeLoadModuleByRelativeName(c,v,false,d,true);return S&&toSearchResult({resolved:S,isExternalLibraryImport:e.contains(T,"node_modules")})}}}function realPath(t,r,n){if(!r.realpath){return t}var i=e.normalizePath(r.realpath(t));if(n){trace(r,e.Diagnostics.Resolving_real_path_for_0_result_1,t,i)}e.Debug.assert(r.fileExists(i),t+" linked to nonexistent file "+i);return i}function nodeLoadModuleByRelativeName(r,n,i,a,o){if(a.traceEnabled){trace(a.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,n,t[r])}if(!e.hasTrailingDirectorySeparator(n)){if(!i){var s=e.getDirectoryPath(n);if(!e.directoryProbablyExists(s,a.host)){if(a.traceEnabled){trace(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s)}i=true}}var c=loadModuleFromFile(r,n,i,a);if(c){var u=o?parseNodeModuleFromPath(c):undefined;var l=u&&getPackageJsonInfo(u.packageDirectory,u.subModuleName,false,a);var f=l&&l.packageId;return withPackageId(f,c)}}if(!i){var d=e.directoryProbablyExists(n,a.host);if(!d){if(a.traceEnabled){trace(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n)}i=true}}return loadNodeModuleFromDirectory(r,n,i,a,o)}e.nodeModulesPathPart="/node_modules/";function pathContainsNodeModules(t){return e.stringContains(t,e.nodeModulesPathPart)}e.pathContainsNodeModules=pathContainsNodeModules;function parseNodeModuleFromPath(t){var r=e.normalizePath(t.path);var n=r.lastIndexOf(e.nodeModulesPathPart);if(n===-1){return undefined}var i=n+e.nodeModulesPathPart.length;var a=moveToNextDirectorySeparatorIfAvailable(r,i);if(r.charCodeAt(i)===64){a=moveToNextDirectorySeparatorIfAvailable(r,a)}var o=r.slice(0,a);var s=e.removeExtension(r.slice(a+1),t.ext)+".d.ts";return{packageDirectory:o,subModuleName:s}}function moveToNextDirectorySeparatorIfAvailable(t,r){var n=t.indexOf(e.directorySeparator,r+1);return n===-1?r:n}function addExtensionAndIndex(t){if(t===""){return"index.d.ts"}if(e.endsWith(t,".d.ts")){return t}if(t==="index"||e.endsWith(t,"/index")){return t+".d.ts"}return t+"/index.d.ts"}function loadModuleFromFileNoPackageId(e,t,r,n){return noPackageId(loadModuleFromFile(e,t,r,n))}function loadModuleFromFile(r,n,i,a){if(r===t.Json||r===t.TSConfig){var o=e.tryRemoveExtension(n,".json");return o===undefined&&r===t.Json?undefined:tryAddingExtensions(o||n,r,i,a)}var s=tryAddingExtensions(n,r,i,a);if(s){return s}if(e.hasJSFileExtension(n)){var c=e.removeFileExtension(n);if(a.traceEnabled){var u=n.substring(c.length);trace(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,u)}return tryAddingExtensions(c,r,i,a)}}function tryAddingExtensions(r,n,i,a){if(!i){var o=e.getDirectoryPath(r);if(o){i=!e.directoryProbablyExists(o,a.host)}}switch(n){case t.DtsOnly:return tryExtension(".d.ts");case t.TypeScript:return tryExtension(".ts")||tryExtension(".tsx")||tryExtension(".d.ts");case t.JavaScript:return tryExtension(".js")||tryExtension(".jsx");case t.TSConfig:case t.Json:return tryExtension(".json")}function tryExtension(e){var t=tryFile(r+e,i,a);return t===undefined?undefined:{path:t,ext:e}}}function tryFile(t,r,n){if(!r){if(n.host.fileExists(t)){if(n.traceEnabled){trace(n.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,t)}return t}else{if(n.traceEnabled){trace(n.host,e.Diagnostics.File_0_does_not_exist,t)}}}n.failedLookupLocations.push(t);return undefined}function loadNodeModuleFromDirectory(e,t,r,n,i){if(i===void 0){i=true}var a=i?getPackageJsonInfo(t,"",r,n):undefined;var o=a&&a.packageId;var s=a&&a.packageJsonContent;var c=s&&readPackageJsonTypesVersionPaths(s,n);return withPackageId(o,loadNodeModuleFromDirectoryWorker(e,t,r,n,s,c))}function getPackageJsonInfo(t,r,n,i){var a=i.host,o=i.traceEnabled;var s=!n&&e.directoryProbablyExists(t,a);var c=e.combinePaths(t,"package.json");if(s&&a.fileExists(c)){var u=e.readJson(c,a);if(r===""){var l=readPackageJsonTypesFields(u,t,i);if(typeof l==="string"){r=addExtensionAndIndex(l.substring(t.length+1))}else{var f=readPackageJsonMainField(u,t,i);if(typeof f==="string"&&f.length>t.length){var d=f.substring(t.length+1);r=(e.forEach(e.supportedJSExtensions,function(t){return e.tryRemoveExtension(d,t)})||d)+".d.ts"}else{r="index.d.ts"}}}if(!e.endsWith(r,".d.ts")){r=addExtensionAndIndex(r)}var p=readPackageJsonTypesVersionPaths(u,i);var g=typeof u.name==="string"&&typeof u.version==="string"?{name:u.name,subModuleName:r,version:u.version}:undefined;if(o){if(g){trace(a,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,c,e.packageIdToString(g))}else{trace(a,e.Diagnostics.Found_package_json_at_0,c)}}return{packageJsonContent:u,packageId:g,versionPaths:p}}else{if(s&&o){trace(a,e.Diagnostics.File_0_does_not_exist,c)}i.failedLookupLocations.push(c)}}function loadNodeModuleFromDirectoryWorker(r,n,i,a,o,s){var c;if(o){switch(r){case t.JavaScript:case t.Json:c=readPackageJsonMainField(o,n,a);break;case t.TypeScript:c=readPackageJsonTypesFields(o,n,a)||readPackageJsonMainField(o,n,a);break;case t.DtsOnly:c=readPackageJsonTypesFields(o,n,a);break;case t.TSConfig:c=readPackageJsonTSConfigField(o,n,a);break;default:return e.Debug.assertNever(r)}}var u=function(r,n,i,a){var o=tryFile(n,i,a);if(o){var s=resolvedIfExtensionMatches(r,o);if(s){return noPackageId(s)}if(a.traceEnabled){trace(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,o)}}var c=r===t.DtsOnly?t.TypeScript:r;return nodeLoadModuleByRelativeName(c,n,i,a,false)};var l=c?!e.directoryProbablyExists(e.getDirectoryPath(c),a.host):undefined;var f=i||!e.directoryProbablyExists(n,a.host);var d=e.combinePaths(n,r===t.TSConfig?"tsconfig":"index");if(s&&(!c||e.containsPath(n,c))){var p=e.getRelativePathFromDirectory(n,c||d,false);if(a.traceEnabled){trace(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,s.version,e.version,p)}var g=tryLoadModuleUsingPaths(r,p,n,s.paths,u,l||f,a);if(g){return removeIgnoredPackageId(g.value)}}var _=c&&removeIgnoredPackageId(u(r,c,l,a));if(_)return _;return loadModuleFromFile(r,d,f,a)}function resolvedIfExtensionMatches(t,r){var n=e.tryGetExtensionFromPath(r);return n!==undefined&&extensionIsOk(t,n)?{path:r,ext:n}:undefined}function extensionIsOk(e,r){switch(e){case t.JavaScript:return r===".js"||r===".jsx";case t.TSConfig:case t.Json:return r===".json";case t.TypeScript:return r===".ts"||r===".tsx"||r===".d.ts";case t.DtsOnly:return r===".d.ts"}}function parsePackageName(t){var r=t.indexOf(e.directorySeparator);if(t[0]==="@"){r=t.indexOf(e.directorySeparator,r+1)}return r===-1?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}e.parsePackageName=parsePackageName;function loadModuleFromNearestNodeModulesDirectory(e,t,r,n,i,a){return loadModuleFromNearestNodeModulesDirectoryWorker(e,t,r,n,false,i,a)}function loadModuleFromNearestNodeModulesDirectoryTypesScope(e,r,n){return loadModuleFromNearestNodeModulesDirectoryWorker(t.DtsOnly,e,r,n,true,undefined,undefined)}function loadModuleFromNearestNodeModulesDirectoryWorker(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if(e.getBaseFileName(n)!=="node_modules"){var o=tryFindNonRelativeModuleNameInCache(c,r,n,i);if(o){return o}return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(t,r,n,i,a))}})}function loadModuleFromImmediateNodeModulesDirectory(r,n,i,a,o){var s=e.combinePaths(i,"node_modules");var c=e.directoryProbablyExists(s,a.host);if(!c&&a.traceEnabled){trace(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s)}var u=o?undefined:loadModuleFromSpecificNodeModulesDirectory(r,n,s,c,a);if(u){return u}if(r===t.TypeScript||r===t.DtsOnly){var l=e.combinePaths(s,"@types");var f=c;if(c&&!e.directoryProbablyExists(l,a.host)){if(a.traceEnabled){trace(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l)}f=false}return loadModuleFromSpecificNodeModulesDirectory(t.DtsOnly,mangleScopedPackageNameWithTrace(n,a),l,f,a)}}function loadModuleFromSpecificNodeModulesDirectory(t,r,n,i,a){var o=e.normalizePath(e.combinePaths(n,r));var s;var c;var u;var l=getPackageJsonInfo(o,"",!i,a);if(l){s=l.packageJsonContent,c=l.packageId,u=l.versionPaths;var f=loadModuleFromFile(t,o,!i,a);if(f){return noPackageId(f)}var d=loadNodeModuleFromDirectoryWorker(t,o,!i,a,s,u);return withPackageId(c,d)}var p=function(e,t,r,n){var i=loadModuleFromFile(e,t,r,n)||loadNodeModuleFromDirectoryWorker(e,t,r,n,s,u);return withPackageId(c,i)};var g=parsePackageName(r),_=g.packageName,m=g.rest;if(m!==""){var y=e.combinePaths(n,_);var h=getPackageJsonInfo(y,m,!i,a);if(h)c=h.packageId,u=h.versionPaths;if(u){if(a.traceEnabled){trace(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,m)}var v=i&&e.directoryProbablyExists(y,a.host);var T=tryLoadModuleUsingPaths(t,m,y,u.paths,p,!v,a);if(T){return T.value}}}return p(t,o,!i,a)}function tryLoadModuleUsingPaths(t,r,n,i,a,o,s){var c=e.matchPatternOrExact(e.getOwnKeys(i),r);if(c){var u=e.isString(c)?undefined:e.matchedText(c,r);var l=e.isString(c)?c:e.patternText(c);if(s.traceEnabled){trace(s.host,e.Diagnostics.Module_name_0_matched_pattern_1,r,l)}var f=e.forEach(i[l],function(r){var i=u?r.replace("*",u):r;var c=e.normalizePath(e.combinePaths(n,i));if(s.traceEnabled){trace(s.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,r,i)}var l=e.tryGetExtensionFromPath(c);if(l!==undefined){var f=tryFile(c,o,s);if(f!==undefined){return noPackageId({path:f,ext:l})}}return a(t,c,o||!e.directoryProbablyExists(e.getDirectoryPath(c),s.host),s)});return{value:f}}}var u="__";function mangleScopedPackageNameWithTrace(t,r){var n=mangleScopedPackageName(t);if(r.traceEnabled&&n!==t){trace(r.host,e.Diagnostics.Scoped_package_detected_looking_in_0,n)}return n}function getTypesPackageName(e){return"@types/"+mangleScopedPackageName(e)}e.getTypesPackageName=getTypesPackageName;function mangleScopedPackageName(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,u);if(r!==t){return r.slice(1)}}return t}e.mangleScopedPackageName=mangleScopedPackageName;function getPackageNameFromTypesPackageName(t){var r=e.removePrefix(t,"@types/");if(r!==t){return unmangleScopedPackageName(r)}return t}e.getPackageNameFromTypesPackageName=getPackageNameFromTypesPackageName;function unmangleScopedPackageName(t){return e.stringContains(t,u)?"@"+t.replace(u,e.directorySeparator):t}e.unmangleScopedPackageName=unmangleScopedPackageName;function tryFindNonRelativeModuleNameInCache(t,r,n,i){var a;var o=t&&t.get(n);if(o){if(i.traceEnabled){trace(i.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,n)}(a=i.failedLookupLocations).push.apply(a,o.failedLookupLocations);return{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||true,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}}function classicNameResolver(r,n,i,a,o,s){var c=isTraceEnabled(i,a);var u=[];var l={compilerOptions:i,host:a,traceEnabled:c,failedLookupLocations:u};var f=e.getDirectoryPath(n);var d=tryResolve(t.TypeScript)||tryResolve(t.JavaScript);return createResolvedModuleWithFailedLookupLocations(d&&d.value,false,u);function tryResolve(n){var i=tryLoadModuleUsingOptionalResolutionSettings(n,r,f,loadModuleFromFileNoPackageId,l);if(i){return{value:i}}if(!e.isExternalModuleNameRelative(r)){var a=o&&o.getOrCreateCacheForModuleName(r,s);var c=e.forEachAncestorDirectory(f,function(t){var i=tryFindNonRelativeModuleNameInCache(a,r,t,l);if(i){return i}var o=e.normalizePath(e.combinePaths(t,r));return toSearchResult(loadModuleFromFileNoPackageId(n,o,false,l))});if(c){return c}if(n===t.TypeScript){return loadModuleFromNearestNodeModulesDirectoryTypesScope(r,f,l)}}else{var u=e.normalizePath(e.combinePaths(f,r));return toSearchResult(loadModuleFromFileNoPackageId(n,u,false,l))}}}e.classicNameResolver=classicNameResolver;function loadModuleFromGlobalCache(r,n,i,a,o){var s=isTraceEnabled(i,a);if(s){trace(a,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,r,o)}var c=[];var u={compilerOptions:i,host:a,traceEnabled:s,failedLookupLocations:c};var l=loadModuleFromImmediateNodeModulesDirectory(t.DtsOnly,r,o,u,false);return createResolvedModuleWithFailedLookupLocations(l,true,c)}e.loadModuleFromGlobalCache=loadModuleFromGlobalCache;function toSearchResult(e){return e!==undefined?{value:e}:undefined}})(s||(s={}));var s;(function(e){var t;(function(e){e[e["NonInstantiated"]=0]="NonInstantiated";e[e["Instantiated"]=1]="Instantiated";e[e["ConstEnumOnly"]=2]="ConstEnumOnly"})(t=e.ModuleInstanceState||(e.ModuleInstanceState={}));function getModuleInstanceState(e){return e.body?getModuleInstanceStateWorker(e.body):1}e.getModuleInstanceState=getModuleInstanceState;function getModuleInstanceStateWorker(t){switch(t.kind){case 241:case 242:return 0;case 243:if(e.isEnumConst(t)){return 2}break;case 249:case 248:if(!e.hasModifier(t,1)){return 0}break;case 245:{var r=0;e.forEachChild(t,function(t){var n=getModuleInstanceStateWorker(t);switch(n){case 0:return;case 2:r=2;return;case 1:r=1;return true;default:e.Debug.assertNever(n)}});return r}case 244:return getModuleInstanceState(t);case 72:if(t.isInJSDocNamespace){return 0}}return 1}var r;(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["IsObjectLiteralOrClassExpressionMethod"]=128]="IsObjectLiteralOrClassExpressionMethod"})(r||(r={}));var i=createBinder();function bindSourceFile(t,r){e.performance.mark("beforeBind");i(t,r);e.performance.mark("afterBind");e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=bindSourceFile;function createBinder(){var t;var r;var i;var a;var o;var s;var c;var u;var l;var f;var d;var p;var g;var _;var m;var y;var h;var v;var T;var S;var b;var x=0;var C;var E;var D={flags:1};var k={flags:1};var N=0;var A;function createDiagnosticForNode(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}function bindSourceFile(n,h){t=n;r=h;i=e.getEmitScriptTarget(r);b=bindInStrictMode(t,h);E=e.createUnderscoreEscapedMap();x=0;A=t.isDeclarationFile;C=e.objectAllocator.getSymbolConstructor();if(!t.locals){bind(t);t.symbolCount=x;t.classifiableNames=E;delayedBindJSDocTypedefTag()}t=undefined;r=undefined;i=undefined;a=undefined;o=undefined;s=undefined;c=undefined;u=undefined;l=undefined;f=false;d=undefined;p=undefined;g=undefined;_=undefined;m=undefined;y=undefined;v=undefined;T=false;S=0;N=0}return bindSourceFile;function bindInStrictMode(t,r){if(e.getStrictOptionValue(r,"alwaysStrict")&&!t.isDeclarationFile){return true}else{return!!t.externalModuleIndicator}}function createSymbol(e,t){x++;return new C(e,t)}function addDeclarationToSymbol(t,r,n){t.flags|=n;r.symbol=t;t.declarations=e.append(t.declarations,r);if(n&(32|384|1536|3)&&!t.exports){t.exports=e.createSymbolTable()}if(n&(32|64|2048|4096)&&!t.members){t.members=e.createSymbolTable()}if(n&67220415){setValueDeclaration(t,r)}}function setValueDeclaration(t,r){var n=t.valueDeclaration;if(!n||e.isAssignmentDeclaration(n)&&!e.isAssignmentDeclaration(r)||n.kind!==r.kind&&e.isEffectiveModuleDeclaration(n)){t.valueDeclaration=r}}function getDeclarationName(t){if(t.kind===254){return t.isExportEquals?"export=":"default"}var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(r.kind===149){var i=r.expression;if(e.isStringOrNumericLiteralLike(i)){return e.escapeLeadingUnderscores(i.text)}e.Debug.assert(e.isWellKnownSymbolSyntactically(i));return e.getPropertyNameForKnownSymbolName(e.idText(i.name))}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):undefined}switch(t.kind){case 157:return"__constructor";case 165:case 160:case 293:return"__call";case 166:case 161:return"__new";case 162:return"__index";case 255:return"__export";case 279:return"export=";case 204:if(e.getAssignmentDeclarationKind(t)===2){return"export="}e.Debug.fail("Unknown binary declaration kind");break;case 289:return e.isJSDocConstructSignature(t)?"__new":"__call";case 151:e.Debug.assert(t.parent.kind===289,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"});var a=t.parent;var o=a.parameters.indexOf(t);return"arg"+o}}function getDisplayName(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(getDeclarationName(t)))}function declareSymbol(r,n,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var c=e.hasModifier(i,512);var u=c&&n?"default":getDeclarationName(i);var l;if(u===undefined){l=createSymbol(0,"__missing")}else{l=r.get(u);if(a&2885600){E.set(u,true)}if(!l){r.set(u,l=createSymbol(0,u));if(s)l.isReplaceableByMethod=true}else if(s&&!l.isReplaceableByMethod){return l}else if(l.flags&o){if(l.isReplaceableByMethod){r.set(u,l=createSymbol(0,u))}else if(!(a&3&&l.flags&67108864)){if(e.isNamedDeclaration(i)){i.name.parent=i}var f=l.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;var d=true;if(l.flags&384||a&384){f=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations;d=false}if(l.declarations&&l.declarations.length){if(c){f=e.Diagnostics.A_module_cannot_have_multiple_default_exports;d=false}else{if(l.declarations&&l.declarations.length&&(i.kind===254&&!i.isExportEquals)){f=e.Diagnostics.A_module_cannot_have_multiple_default_exports;d=false}}}var p=function(r){t.bindDiagnostics.push(createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,d?getDisplayName(r):undefined))};e.forEach(l.declarations,p);p(i);l=createSymbol(0,u)}}}addDeclarationToSymbol(l,i,a);if(l.parent){e.Debug.assert(l.parent===n,"Existing symbol parent should match new one")}else{l.parent=n}return l}function declareModuleMember(t,r,n){var i=e.getCombinedModifierFlags(t)&1;if(r&2097152){if(t.kind===257||t.kind===248&&i){return declareSymbol(o.symbol.exports,o.symbol,t,r,n)}else{return declareSymbol(o.locals,undefined,t,r,n)}}else{if(e.isJSDocTypeAlias(t))e.Debug.assert(e.isInJSFile(t));if(!e.isAmbientModule(t)&&(i||o.flags&32)||e.isJSDocTypeAlias(t)){if(e.hasModifier(t,512)&&!getDeclarationName(t)){return declareSymbol(o.symbol.exports,o.symbol,t,r,n)}var a=r&67220415?1048576:0;var s=declareSymbol(o.locals,undefined,t,a,n);s.exportSymbol=declareSymbol(o.symbol.exports,o.symbol,t,r,n);t.localSymbol=s;return s}else{return declareSymbol(o.locals,undefined,t,r,n)}}}function bindContainer(t,r){var n=o;var i=s;var a=c;if(r&1){if(t.kind!==197){s=o}o=c=t;if(r&32){o.locals=e.createSymbolTable()}addToContainerChain(o)}else if(r&2){c=t;c.locals=undefined}if(r&4){var u=d;var l=p;var m=g;var y=_;var h=v;var b=T;var x=r&16&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);if(!x){d={flags:2};if(r&(16|128)){d.container=t}}_=x||t.kind===157?createBranchLabel():undefined;p=undefined;g=undefined;v=undefined;T=false;bindChildren(t);t.flags&=~1408;if(!(d.flags&1)&&r&8&&e.nodeIsPresent(t.body)){t.flags|=128;if(T)t.flags|=256}if(t.kind===279){t.flags|=S}if(_){addAntecedent(_,d);d=finishFlowLabel(_);if(t.kind===157){t.returnFlowNode=d}}if(!x){d=u}p=l;g=m;_=y;v=h;T=b}else if(r&64){f=false;bindChildren(t);t.flags=f?t.flags|64:t.flags&~64}else{bindChildren(t)}o=n;s=i;c=a}function bindChildren(e){if(A){bindChildrenWorker(e)}else if(e.transformFlags&536870912){A=true;bindChildrenWorker(e);A=false;N|=e.transformFlags&~getTransformFlagsSubtreeExclusions(e.kind)}else{var t=N;N=0;bindChildrenWorker(e);N=t|computeTransformFlagsForNode(e,N)}}function bindEachFunctionsFirst(e){bindEach(e,function(e){return e.kind===239?bind(e):undefined});bindEach(e,function(e){return e.kind!==239?bind(e):undefined})}function bindEach(t,r){if(r===void 0){r=bind}if(t===undefined){return}if(A){e.forEach(t,r)}else{var n=N;N=0;var i=0;for(var a=0,o=t;a<o.length;a++){var s=o[a];r(s);i|=s.transformFlags&~536870912}t.transformFlags=i|536870912;N|=n}}function bindEachChild(t){e.forEachChild(t,bind,bindEach)}function bindChildrenWorker(e){if(checkUnreachable(e)){bindEachChild(e);bindJSDoc(e);return}switch(e.kind){case 224:bindWhileStatement(e);break;case 223:bindDoStatement(e);break;case 225:bindForStatement(e);break;case 226:case 227:bindForInOrForOfStatement(e);break;case 222:bindIfStatement(e);break;case 230:case 234:bindReturnOrThrow(e);break;case 229:case 228:bindBreakOrContinueStatement(e);break;case 235:bindTryStatement(e);break;case 232:bindSwitchStatement(e);break;case 246:bindCaseBlock(e);break;case 271:bindCaseClause(e);break;case 233:bindLabeledStatement(e);break;case 202:bindPrefixUnaryExpressionFlow(e);break;case 203:bindPostfixUnaryExpressionFlow(e);break;case 204:bindBinaryExpressionFlow(e);break;case 198:bindDeleteExpressionFlow(e);break;case 205:bindConditionalExpressionFlow(e);break;case 237:bindVariableDeclarationFlow(e);break;case 191:bindCallExpressionFlow(e);break;case 304:case 297:bindJSDocTypeAlias(e);break;case 279:{bindEachFunctionsFirst(e.statements);bind(e.endOfFileToken);break}case 218:case 245:bindEachFunctionsFirst(e.statements);break;default:bindEachChild(e);break}bindJSDoc(e)}function isNarrowingExpression(e){switch(e.kind){case 72:case 100:case 189:case 190:return isNarrowableReference(e);case 191:return hasNarrowableArgument(e);case 195:return isNarrowingExpression(e.expression);case 204:return isNarrowingBinaryExpression(e);case 202:return e.operator===52&&isNarrowingExpression(e.operand);case 199:return isNarrowingExpression(e.expression)}return false}function isNarrowableReference(t){return t.kind===72||t.kind===100||t.kind===98||e.isPropertyAccessExpression(t)&&isNarrowableReference(t.expression)||e.isElementAccessExpression(t)&&t.argumentExpression&&(e.isStringLiteral(t.argumentExpression)||e.isNumericLiteral(t.argumentExpression))&&isNarrowableReference(t.expression)}function hasNarrowableArgument(e){if(e.arguments){for(var t=0,r=e.arguments;t<r.length;t++){var n=r[t];if(isNarrowableReference(n)){return true}}}if(e.expression.kind===189&&isNarrowableReference(e.expression.expression)){return true}return false}function isNarrowingTypeofOperands(t,r){return e.isTypeOfExpression(t)&&isNarrowableOperand(t.expression)&&e.isStringLiteralLike(r)}function isNarrowableInOperands(t,r){return e.isStringLiteralLike(t)&&isNarrowingExpression(r)}function isNarrowingBinaryExpression(e){switch(e.operatorToken.kind){case 59:return isNarrowableReference(e.left);case 33:case 34:case 35:case 36:return isNarrowableOperand(e.left)||isNarrowableOperand(e.right)||isNarrowingTypeofOperands(e.right,e.left)||isNarrowingTypeofOperands(e.left,e.right);case 94:return isNarrowableOperand(e.left);case 93:return isNarrowableInOperands(e.left,e.right);case 27:return isNarrowingExpression(e.right)}return false}function isNarrowableOperand(e){switch(e.kind){case 195:return isNarrowableOperand(e.expression);case 204:switch(e.operatorToken.kind){case 59:return isNarrowableOperand(e.left);case 27:return isNarrowableOperand(e.right)}}return isNarrowableReference(e)}function createBranchLabel(){return{flags:4,antecedents:undefined}}function createLoopLabel(){return{flags:8,antecedents:undefined}}function setFlowNodeReferenced(e){e.flags|=e.flags&512?1024:512}function addAntecedent(t,r){if(!(r.flags&1)&&!e.contains(t.antecedents,r)){(t.antecedents||(t.antecedents=[])).push(r);setFlowNodeReferenced(r)}}function createFlowCondition(e,t,r){if(t.flags&1){return t}if(!r){return e&32?t:D}if(r.kind===102&&e&64||r.kind===87&&e&32){return D}if(!isNarrowingExpression(r)){return t}setFlowNodeReferenced(t);return{flags:e,expression:r,antecedent:t}}function createFlowSwitchClause(e,t,r,n){if(!isNarrowingExpression(t.expression)){return e}setFlowNodeReferenced(e);return{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}}function createFlowAssignment(e,t){setFlowNodeReferenced(e);return{flags:16,antecedent:e,node:t}}function createFlowArrayMutation(e,t){setFlowNodeReferenced(e);var r={flags:256,antecedent:e,node:t};return r}function finishFlowLabel(e){var t=e.antecedents;if(!t){return D}if(t.length===1){return t[0]}return e}function isStatementCondition(e){var t=e.parent;switch(t.kind){case 222:case 224:case 223:return t.expression===e;case 225:case 205:return t.condition===e}return false}function isLogicalExpression(e){while(true){if(e.kind===195){e=e.expression}else if(e.kind===202&&e.operator===52){e=e.operand}else{return e.kind===204&&(e.operatorToken.kind===54||e.operatorToken.kind===55)}}}function isTopLevelLogicalExpression(e){while(e.parent.kind===195||e.parent.kind===202&&e.parent.operator===52){e=e.parent}return!isStatementCondition(e)&&!isLogicalExpression(e.parent)}function bindCondition(e,t,r){var n=m;var i=y;m=t;y=r;bind(e);m=n;y=i;if(!e||!isLogicalExpression(e)){addAntecedent(t,createFlowCondition(32,d,e));addAntecedent(r,createFlowCondition(64,d,e))}}function bindIterativeStatement(e,t,r){var n=p;var i=g;p=t;g=r;bind(e);p=n;g=i}function bindWhileStatement(e){var t=createLoopLabel();var r=createBranchLabel();var n=createBranchLabel();addAntecedent(t,d);d=t;bindCondition(e.expression,r,n);d=finishFlowLabel(r);bindIterativeStatement(e.statement,n,t);addAntecedent(t,d);d=finishFlowLabel(n)}function bindDoStatement(t){var r=createLoopLabel();var n=t.parent.kind===233?e.lastOrUndefined(v):undefined;var i=n?n.continueTarget:createBranchLabel();var a=n?n.breakTarget:createBranchLabel();addAntecedent(r,d);d=r;bindIterativeStatement(t.statement,a,i);addAntecedent(i,d);d=finishFlowLabel(i);bindCondition(t.expression,r,a);d=finishFlowLabel(a)}function bindForStatement(e){var t=createLoopLabel();var r=createBranchLabel();var n=createBranchLabel();bind(e.initializer);addAntecedent(t,d);d=t;bindCondition(e.condition,r,n);d=finishFlowLabel(r);bindIterativeStatement(e.statement,n,t);bind(e.incrementor);addAntecedent(t,d);d=finishFlowLabel(n)}function bindForInOrForOfStatement(e){var t=createLoopLabel();var r=createBranchLabel();addAntecedent(t,d);d=t;if(e.kind===227){bind(e.awaitModifier)}bind(e.expression);addAntecedent(r,d);bind(e.initializer);if(e.initializer.kind!==238){bindAssignmentTargetFlow(e.initializer)}bindIterativeStatement(e.statement,r,t);addAntecedent(t,d);d=finishFlowLabel(r)}function bindIfStatement(e){var t=createBranchLabel();var r=createBranchLabel();var n=createBranchLabel();bindCondition(e.expression,t,r);d=finishFlowLabel(t);bind(e.thenStatement);addAntecedent(n,d);d=finishFlowLabel(r);bind(e.elseStatement);addAntecedent(n,d);d=finishFlowLabel(n)}function bindReturnOrThrow(e){bind(e.expression);if(e.kind===230){T=true;if(_){addAntecedent(_,d)}}d=D}function findActiveLabel(e){if(v){for(var t=0,r=v;t<r.length;t++){var n=r[t];if(n.name===e){return n}}}return undefined}function bindBreakOrContinueFlow(e,t,r){var n=e.kind===229?t:r;if(n){addAntecedent(n,d);d=D}}function bindBreakOrContinueStatement(e){bind(e.label);if(e.label){var t=findActiveLabel(e.label.escapedText);if(t){t.referenced=true;bindBreakOrContinueFlow(e,t.breakTarget,t.continueTarget)}}else{bindBreakOrContinueFlow(e,p,g)}}function bindTryStatement(e){var t=createBranchLabel();var r=d;bind(e.tryBlock);addAntecedent(t,d);var n=d;var i=D;if(e.catchClause){d=r;bind(e.catchClause);addAntecedent(t,d);i=d}if(e.finallyBlock){var a={flags:2048,antecedent:r,lock:{}};addAntecedent(t,a);d=finishFlowLabel(t);bind(e.finallyBlock);if(!(d.flags&1)){if(n.flags&1&&i.flags&1){d=n===k||i===k?k:D}}if(!(d.flags&1)){var o={flags:4096,antecedent:d};a.lock=o;d=o}}else{d=finishFlowLabel(t)}}function bindSwitchStatement(t){var r=createBranchLabel();bind(t.expression);var n=p;var i=h;p=r;h=d;bind(t.caseBlock);addAntecedent(r,d);var a=e.forEach(t.caseBlock.clauses,function(e){return e.kind===272});t.possiblyExhaustive=!a&&!r.antecedents;if(!a){addAntecedent(r,createFlowSwitchClause(h,t,0,0))}p=n;h=i;d=finishFlowLabel(r)}function bindCaseBlock(t){var n=N;N=0;var i=t.clauses;var a=D;for(var o=0;o<i.length;o++){var s=o;while(!i[o].statements.length&&o+1<i.length){bind(i[o]);o++}var c=createBranchLabel();addAntecedent(c,createFlowSwitchClause(h,t.parent,s,o+1));addAntecedent(c,a);d=finishFlowLabel(c);var u=i[o];bind(u);a=d;if(!(d.flags&1)&&o!==i.length-1&&r.noFallthroughCasesInSwitch){errorOnFirstToken(u,e.Diagnostics.Fallthrough_case_in_switch)}}i.transformFlags=N|536870912;N|=n}function bindCaseClause(e){var t=d;d=h;bind(e.expression);d=t;bindEach(e.statements)}function pushActiveLabel(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:false};(v||(v=[])).push(n);return n}function popActiveLabel(){v.pop()}function bindLabeledStatement(t){var n=createLoopLabel();var i=createBranchLabel();bind(t.label);addAntecedent(n,d);var a=pushActiveLabel(t.label.escapedText,i,n);bind(t.statement);popActiveLabel();if(!a.referenced&&!r.allowUnusedLabels){errorOrSuggestionOnNode(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label)}if(!t.statement||t.statement.kind!==223){addAntecedent(i,d);d=finishFlowLabel(i)}}function bindDestructuringTargetFlow(e){if(e.kind===204&&e.operatorToken.kind===59){bindAssignmentTargetFlow(e.left)}else{bindAssignmentTargetFlow(e)}}function bindAssignmentTargetFlow(e){if(isNarrowableReference(e)){d=createFlowAssignment(d,e)}else if(e.kind===187){for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];if(n.kind===208){bindAssignmentTargetFlow(n.expression)}else{bindDestructuringTargetFlow(n)}}}else if(e.kind===188){for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];if(o.kind===275){bindDestructuringTargetFlow(o.initializer)}else if(o.kind===276){bindAssignmentTargetFlow(o.name)}else if(o.kind===277){bindAssignmentTargetFlow(o.expression)}}}}function bindLogicalExpression(e,t,r){var n=createBranchLabel();if(e.operatorToken.kind===54){bindCondition(e.left,n,r)}else{bindCondition(e.left,t,n)}d=finishFlowLabel(n);bind(e.operatorToken);bindCondition(e.right,t,r)}function bindPrefixUnaryExpressionFlow(e){if(e.operator===52){var t=m;m=y;y=t;bindEachChild(e);y=m;m=t}else{bindEachChild(e);if(e.operator===44||e.operator===45){bindAssignmentTargetFlow(e.operand)}}}function bindPostfixUnaryExpressionFlow(e){bindEachChild(e);if(e.operator===44||e.operator===45){bindAssignmentTargetFlow(e.operand)}}function bindBinaryExpressionFlow(t){var r=t.operatorToken.kind;if(r===54||r===55){if(isTopLevelLogicalExpression(t)){var n=createBranchLabel();bindLogicalExpression(t,n,n);d=finishFlowLabel(n)}else{bindLogicalExpression(t,m,y)}}else{bindEachChild(t);if(e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)){bindAssignmentTargetFlow(t.left);if(r===59&&t.left.kind===190){var i=t.left;if(isNarrowableOperand(i.expression)){d=createFlowArrayMutation(d,t)}}}}}function bindDeleteExpressionFlow(e){bindEachChild(e);if(e.expression.kind===189){bindAssignmentTargetFlow(e.expression)}}function bindConditionalExpressionFlow(e){var t=createBranchLabel();var r=createBranchLabel();var n=createBranchLabel();bindCondition(e.condition,t,r);d=finishFlowLabel(t);bind(e.questionToken);bind(e.whenTrue);addAntecedent(n,d);d=finishFlowLabel(r);bind(e.colonToken);bind(e.whenFalse);addAntecedent(n,d);d=finishFlowLabel(n)}function bindInitializedVariableFlow(t){var r=!e.isOmittedExpression(t)?t.name:undefined;if(e.isBindingPattern(r)){for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];bindInitializedVariableFlow(a)}}else{d=createFlowAssignment(d,t)}}function bindVariableDeclarationFlow(t){bindEachChild(t);if(t.initializer||e.isForInOrOfStatement(t.parent.parent)){bindInitializedVariableFlow(t)}}function bindJSDocTypeAlias(e){e.tagName.parent=e;if(e.fullName){setParentPointers(e,e.fullName)}}function bindCallExpressionFlow(t){var r=t.expression;while(r.kind===195){r=r.expression}if(r.kind===196||r.kind===197){bindEach(t.typeArguments);bindEach(t.arguments);bind(t.expression)}else{bindEachChild(t)}if(t.expression.kind===189){var n=t.expression;if(isNarrowableOperand(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)){d=createFlowArrayMutation(d,t)}}}function getContainerFlags(t){switch(t.kind){case 209:case 240:case 243:case 188:case 168:case 292:case 268:return 1;case 241:return 1|64;case 244:case 242:case 181:return 1|32;case 279:return 1|4|32;case 156:if(e.isObjectLiteralOrClassExpressionMethod(t)){return 1|4|32|8|128}case 157:case 239:case 155:case 158:case 159:case 160:case 293:case 289:case 165:case 161:case 162:case 166:return 1|4|32|8;case 196:case 197:return 1|4|32|8|16;case 245:return 4;case 154:return t.initializer?4:0;case 274:case 225:case 226:case 227:case 246:return 2;case 218:return e.isFunctionLike(t.parent)?0:2}return 0}function addToContainerChain(e){if(u){u.nextContainer=e}u=e}function declareSymbolAndAddToSymbolTable(e,t,r){switch(o.kind){case 244:return declareModuleMember(e,t,r);case 279:return declareSourceFileMember(e,t,r);case 209:case 240:return declareClassMember(e,t,r);case 243:return declareSymbol(o.symbol.exports,o.symbol,e,t,r);case 168:case 292:case 188:case 241:case 268:return declareSymbol(o.symbol.members,o.symbol,e,t,r);case 165:case 166:case 160:case 161:case 293:case 162:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 289:case 304:case 297:case 242:case 181:return declareSymbol(o.locals,undefined,e,t,r)}}function declareClassMember(t,r,n){return e.hasModifier(t,32)?declareSymbol(o.symbol.exports,o.symbol,t,r,n):declareSymbol(o.symbol.members,o.symbol,t,r,n)}function declareSourceFileMember(r,n,i){return e.isExternalModule(t)?declareModuleMember(r,n,i):declareSymbol(t.locals,undefined,r,n,i)}function hasExportDeclarations(e){var t=e.kind===279?e:e.body;if(t&&(t.kind===279||t.kind===245)){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(i.kind===255||i.kind===254){return true}}}return false}function setExportContextFlag(e){if(e.flags&4194304&&!hasExportDeclarations(e)){e.flags|=32}else{e.flags&=~32}}function bindModuleDeclaration(r){setExportContextFlag(r);if(e.isAmbientModule(r)){if(e.hasModifier(r,1)){errorOnFirstToken(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible)}if(e.isModuleAugmentationExternal(r)){declareModuleSymbol(r)}else{var n=void 0;if(r.name.kind===10){var i=r.name.text;if(e.hasZeroOrOneAsteriskCharacter(i)){n=e.tryParsePattern(i)}else{errorOnFirstToken(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}}var a=declareSymbolAndAddToSymbolTable(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}}else{var o=declareModuleSymbol(r);if(o!==0){var a=r.symbol;a.constEnumOnlyModule=!(a.flags&(16|32|256))&&o===2&&a.constEnumOnlyModule!==false}}}function declareModuleSymbol(e){var t=getModuleInstanceState(e);var r=t!==0;declareSymbolAndAddToSymbolTable(e,r?512:1024,r?110735:0);return t}function bindFunctionOrConstructorType(t){var r=createSymbol(131072,getDeclarationName(t));addDeclarationToSymbol(r,t,131072);var n=createSymbol(2048,"__type");addDeclarationToSymbol(n,t,2048);n.members=e.createSymbolTable();n.members.set(r.escapedName,r)}function bindObjectLiteralExpression(r){var n;(function(e){e[e["Property"]=1]="Property";e[e["Accessor"]=2]="Accessor"})(n||(n={}));if(b){var i=e.createUnderscoreEscapedMap();for(var a=0,o=r.properties;a<o.length;a++){var s=o[a];if(s.kind===277||s.name.kind!==72){continue}var c=s.name;var u=s.kind===275||s.kind===276||s.kind===156?1:2;var l=i.get(c.escapedText);if(!l){i.set(c.escapedText,u);continue}if(u===1&&l===1){var f=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,f.start,f.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}}return bindAnonymousDeclaration(r,4096,"__object")}function bindJsxAttributes(e){return bindAnonymousDeclaration(e,4096,"__jsxAttributes")}function bindJsxAttribute(e,t,r){return declareSymbolAndAddToSymbolTable(e,t,r)}function bindAnonymousDeclaration(e,t,r){var n=createSymbol(t,r);if(t&(8|106500)){n.parent=o.symbol}addDeclarationToSymbol(n,e,t);return n}function bindBlockScopedDeclaration(t,r,n){switch(c.kind){case 244:declareModuleMember(t,r,n);break;case 279:if(e.isExternalOrCommonJsModule(o)){declareModuleMember(t,r,n);break}default:if(!c.locals){c.locals=e.createSymbolTable();addToContainerChain(c)}declareSymbol(c.locals,undefined,t,r,n)}}function delayedBindJSDocTypedefTag(){if(!l){return}var r=o;var n=u;var i=c;var s=a;var f=d;for(var p=0,g=l;p<g.length;p++){var _=g[p];var m=e.getJSDocHost(_);o=e.findAncestor(m.parent,function(e){return!!(getContainerFlags(e)&1)})||t;c=e.getEnclosingBlockScopeContainer(m)||t;d={flags:2};a=_;bind(_.typeExpression);if(!_.fullName||_.fullName.kind===72){a=_.parent;bindBlockScopedDeclaration(_,524288,67897832)}else{bind(_.fullName)}}o=r;u=n;c=i;a=s;d=f}function checkStrictModeIdentifier(r){if(b&&r.originalKeywordKind>=109&&r.originalKeywordKind<=117&&!e.isIdentifierName(r)&&!(r.flags&4194304)){if(!t.parseDiagnostics.length){t.bindDiagnostics.push(createDiagnosticForNode(r,getStrictModeIdentifierMessage(r),e.declarationNameToString(r)))}}}function getStrictModeIdentifierMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function checkStrictModeBinaryExpression(t){if(b&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)){checkStrictModeEvalOrArguments(t,t.left)}}function checkStrictModeCatchClause(e){if(b&&e.variableDeclaration){checkStrictModeEvalOrArguments(e,e.variableDeclaration.name)}}function checkStrictModeDeleteExpression(r){if(b&&r.expression.kind===72){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function isEvalOrArgumentsIdentifier(t){return e.isIdentifier(t)&&(t.escapedText==="eval"||t.escapedText==="arguments")}function checkStrictModeEvalOrArguments(r,n){if(n&&n.kind===72){var i=n;if(isEvalOrArgumentsIdentifier(i)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,getStrictModeEvalOrArgumentsMessage(r),e.idText(i)))}}}function getStrictModeEvalOrArgumentsMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Invalid_use_of_0_in_strict_mode}function checkStrictModeFunctionName(e){if(b){checkStrictModeEvalOrArguments(e,e.name)}}function getStrictModeBlockScopeFunctionDeclarationMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function checkStrictModeFunctionDeclaration(r){if(i<2){if(c.kind!==279&&c.kind!==244&&!e.isFunctionLike(c)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,getStrictModeBlockScopeFunctionDeclarationMessage(r)))}}}function checkStrictModeNumericLiteral(r){if(b&&r.numericLiteralFlags&32){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}}function checkStrictModePostfixUnaryExpression(e){if(b){checkStrictModeEvalOrArguments(e,e.operand)}}function checkStrictModePrefixUnaryExpression(e){if(b){if(e.operator===44||e.operator===45){checkStrictModeEvalOrArguments(e,e.operand)}}}function checkStrictModeWithStatement(t){if(b){errorOnFirstToken(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}}function checkStrictModeLabeledStatement(t){if(b&&r.target>=2){if(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement)){errorOnFirstToken(t.label,e.Diagnostics.A_label_is_not_allowed_here)}}}function errorOnFirstToken(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function errorOrSuggestionOnNode(e,t,r){errorOrSuggestionOnRange(e,t,t,r)}function errorOrSuggestionOnRange(r,n,i,a){addErrorOrSuggestionDiagnostic(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function addErrorOrSuggestionDiagnostic(r,i,a){var o=e.createFileDiagnostic(t,i.pos,i.end-i.pos,a);if(r){t.bindDiagnostics.push(o)}else{t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,n({},o,{category:e.DiagnosticCategory.Suggestion}))}}function bind(e){if(!e){return}e.parent=a;var t=b;bindWorker(e);if(e.kind>147){var r=a;a=e;var n=getContainerFlags(e);if(n===0){bindChildren(e)}else{bindContainer(e,n)}a=r}else if(!A&&(e.transformFlags&536870912)===0){N|=computeTransformFlagsForNode(e,0);var r=a;if(e.kind===1)a=e;bindJSDoc(e);a=r}b=t}function bindJSDoc(t){if(e.hasJSDocNodes(t)){if(e.isInJSFile(t)){for(var r=0,n=t.jsDoc;r<n.length;r++){var i=n[r];bind(i)}}else{for(var a=0,o=t.jsDoc;a<o.length;a++){var i=o[a];setParentPointers(t,i)}}}}function updateStrictModeStatementList(t){if(!b){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i)){return}if(isUseStrictPrologueDirective(i)){b=true;return}}}}function isUseStrictPrologueDirective(r){var n=e.getSourceTextOfNodeFromSourceFile(t,r.expression);return n==='"use strict"'||n==="'use strict'"}function bindWorker(r){switch(r.kind){case 72:if(r.isInJSDocNamespace){var n=r.parent;while(n&&!e.isJSDocTypeAlias(n)){n=n.parent}bindBlockScopedDeclaration(n,524288,67897832);break}case 100:if(d&&(e.isExpression(r)||a.kind===276)){r.flowNode=d}return checkStrictModeIdentifier(r);case 189:case 190:if(d&&isNarrowableReference(r)){r.flowNode=d}if(e.isSpecialPropertyDeclaration(r)){bindSpecialPropertyDeclaration(r)}if(e.isInJSFile(r)&&t.commonJsModuleIndicator&&e.isModuleExportsPropertyAccessExpression(r)&&!lookupSymbolForNameWorker(c,"module")){declareSymbol(t.locals,undefined,r.expression,1|134217728,67220414)}break;case 204:var i=e.getAssignmentDeclarationKind(r);switch(i){case 1:bindExportsPropertyAssignment(r);break;case 2:bindModuleExportsAssignment(r);break;case 3:bindPrototypePropertyAssignment(r.left,r);break;case 6:bindPrototypeAssignment(r);break;case 4:bindThisPropertyAssignment(r);break;case 5:bindSpecialPropertyAssignment(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return checkStrictModeBinaryExpression(r);case 274:return checkStrictModeCatchClause(r);case 198:return checkStrictModeDeleteExpression(r);case 8:return checkStrictModeNumericLiteral(r);case 203:return checkStrictModePostfixUnaryExpression(r);case 202:return checkStrictModePrefixUnaryExpression(r);case 231:return checkStrictModeWithStatement(r);case 233:return checkStrictModeLabeledStatement(r);case 178:f=true;return;case 163:break;case 150:return bindTypeParameter(r);case 151:return bindParameter(r);case 237:return bindVariableDeclarationOrBindingElement(r);case 186:r.flowNode=d;return bindVariableDeclarationOrBindingElement(r);case 154:case 153:return bindPropertyWorker(r);case 275:case 276:return bindPropertyOrMethodOrAccessor(r,4,0);case 278:return bindPropertyOrMethodOrAccessor(r,8,68008959);case 160:case 161:case 162:return declareSymbolAndAddToSymbolTable(r,131072,0);case 156:case 155:return bindPropertyOrMethodOrAccessor(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67212223);case 239:return bindFunctionDeclaration(r);case 157:return declareSymbolAndAddToSymbolTable(r,16384,0);case 158:return bindPropertyOrMethodOrAccessor(r,32768,67154879);case 159:return bindPropertyOrMethodOrAccessor(r,65536,67187647);case 165:case 289:case 293:case 166:return bindFunctionOrConstructorType(r);case 168:case 292:case 181:return bindAnonymousTypeWorker(r);case 188:return bindObjectLiteralExpression(r);case 196:case 197:return bindFunctionExpression(r);case 191:var o=e.getAssignmentDeclarationKind(r);switch(o){case 7:return bindObjectDefinePropertyAssignment(r);case 8:return bindObjectDefinePropertyExport(r);case 9:return bindObjectDefinePrototypeProperty(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}if(e.isInJSFile(r)){bindCallExpression(r)}break;case 209:case 240:b=true;return bindClassLikeDeclaration(r);case 241:return bindBlockScopedDeclaration(r,64,67897736);case 242:return bindBlockScopedDeclaration(r,524288,67897832);case 243:return bindEnumDeclaration(r);case 244:return bindModuleDeclaration(r);case 268:return bindJsxAttributes(r);case 267:return bindJsxAttribute(r,4,0);case 248:case 251:case 253:case 257:return declareSymbolAndAddToSymbolTable(r,2097152,2097152);case 247:return bindNamespaceExportDeclaration(r);case 250:return bindImportClause(r);case 255:return bindExportDeclaration(r);case 254:return bindExportAssignment(r);case 279:updateStrictModeStatementList(r.statements);return bindSourceFileIfExternalModule();case 218:if(!e.isFunctionLike(r.parent)){return}case 245:return updateStrictModeStatementList(r.statements);case 299:if(r.parent.kind===293){return bindParameter(r)}if(r.parent.kind!==292){break}case 305:var s=r;var u=s.isBracketed||s.typeExpression&&s.typeExpression.type.kind===288?4|16777216:4;return declareSymbolAndAddToSymbolTable(s,u,0);case 304:case 297:return(l||(l=[])).push(r)}}function bindPropertyWorker(e){return bindPropertyOrMethodOrAccessor(e,4|(e.questionToken?16777216:0),0)}function bindAnonymousTypeWorker(e){return bindAnonymousDeclaration(e,2048,"__type")}function bindSourceFileIfExternalModule(){setExportContextFlag(t);if(e.isExternalModule(t)){bindSourceFileAsExternalModule()}else if(e.isJsonSourceFile(t)){bindSourceFileAsExternalModule();var r=t.symbol;declareSymbol(t.symbol.exports,t.symbol,t,4,67108863);t.symbol=r}}function bindSourceFileAsExternalModule(){bindAnonymousDeclaration(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function bindExportAssignment(t){if(!o.symbol||!o.symbol.exports){bindAnonymousDeclaration(t,2097152,getDeclarationName(t))}else{var r=e.exportAssignmentIsAlias(t)?2097152:4;var n=declareSymbol(o.symbol.exports,o.symbol,t,r,67108863);if(t.isExportEquals){setValueDeclaration(n,t)}}}function bindNamespaceExportDeclaration(r){if(r.modifiers&&r.modifiers.length){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Modifiers_cannot_appear_here))}var n=!e.isSourceFile(r.parent)?e.Diagnostics.Global_module_exports_may_only_appear_at_top_level:!e.isExternalModule(r.parent)?e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:!r.parent.isDeclarationFile?e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:undefined;if(n){t.bindDiagnostics.push(createDiagnosticForNode(r,n))}else{t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable();declareSymbol(t.symbol.globalExports,t.symbol,r,2097152,2097152)}}function bindExportDeclaration(e){if(!o.symbol||!o.symbol.exports){bindAnonymousDeclaration(e,8388608,getDeclarationName(e))}else if(!e.exportClause){declareSymbol(o.symbol.exports,o.symbol,e,8388608,0)}}function bindImportClause(e){if(e.name){declareSymbolAndAddToSymbolTable(e,2097152,2097152)}}function setCommonJsModuleIndicator(e){if(t.externalModuleIndicator){return false}if(!t.commonJsModuleIndicator){t.commonJsModuleIndicator=e;bindSourceFileAsExternalModule()}return true}function bindObjectDefinePropertyExport(e){if(!setCommonJsModuleIndicator(e)){return}var t=forEachIdentifierInEntityName(e.arguments[0],undefined,function(e,t){if(t){addDeclarationToSymbol(t,e,1536|67108864)}return t});if(t){var r=4|1048576;declareSymbol(t.exports,t,e,r,0)}}function bindExportsPropertyAssignment(t){if(!setCommonJsModuleIndicator(t)){return}var r=t.left;var n=forEachIdentifierInEntityName(r.expression,undefined,function(e,t){if(t){addDeclarationToSymbol(t,e,1536|67108864)}return t});if(n){var i=e.isClassExpression(t.right)?4|1048576|32:4|1048576;declareSymbol(n.exports,n,r,i,0)}}function bindModuleExportsAssignment(r){if(!setCommonJsModuleIndicator(r)){return}var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||o===t&&isExportsOrModuleExportsOrAlias(t,n)){return}var i=e.exportAssignmentIsAlias(r)?2097152:4|1048576|512;declareSymbol(t.symbol.exports,t.symbol,r,i|67108864,0)}function bindThisPropertyAssignment(t){e.Debug.assert(e.isInJSFile(t));var r=e.getThisContainer(t,false);switch(r.kind){case 239:case 196:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===59){var i=r.parent.left;if(e.isPropertyAccessEntityNameExpression(i)&&e.isPrototypeAccess(i.expression)){n=lookupSymbolForPropertyAccess(i.expression.expression,s)}}if(n){n.members=n.members||e.createSymbolTable();declareSymbol(n.members,n,t,4,0&~4)}break;case 157:case 154:case 156:case 158:case 159:var a=r.parent;var o=e.hasModifier(r,32)?a.symbol.exports:a.symbol.members;declareSymbol(o,a.symbol,t,4,0,true);break;case 279:break;default:e.Debug.fail(e.Debug.showSyntaxKind(r))}}function bindSpecialPropertyDeclaration(t){if(t.expression.kind===100){bindThisPropertyAssignment(t)}else if(e.isPropertyAccessEntityNameExpression(t)&&t.parent.parent.kind===279){if(e.isPrototypeAccess(t.expression)){bindPrototypePropertyAssignment(t,t.parent)}else{bindStaticPropertyAssignment(t)}}}function bindPrototypeAssignment(e){e.left.parent=e;e.right.parent=e;var t=e.left;bindPropertyAssignment(t.expression,t,false)}function bindObjectDefinePrototypeProperty(e){var t=lookupSymbolForPropertyAccess(e.arguments[0].expression);bindPotentiallyNewExpandoMemberToNamespace(e,t,true)}function bindPrototypePropertyAssignment(e,t){var r=e.expression;var n=r.expression;e.parent=t;n.parent=r;r.parent=e;bindPropertyAssignment(n,e,true)}function bindObjectDefinePropertyAssignment(e){var t=lookupSymbolForPropertyAccess(e.arguments[0]);var r=e.parent.parent.kind===279;t=bindPotentiallyMissingNamespaces(t,e.arguments[0],r,false);bindPotentiallyNewExpandoMemberToNamespace(e,t,false)}function bindSpecialPropertyAssignment(r){var n=r.left;var i=lookupSymbolForPropertyAccess(n.expression);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(i)){return}r.left.parent=r;r.right.parent=r;if(e.isIdentifier(n.expression)&&o===t&&isNameOfExportsOrModuleExportsAliasDeclaration(t,n.expression)){bindExportsPropertyAssignment(r)}else{bindStaticPropertyAssignment(n)}}function bindStaticPropertyAssignment(e){e.expression.parent=e;bindPropertyAssignment(e.expression,e,false)}function bindPotentiallyMissingNamespaces(r,n,i,a){if(i&&!a&&(!r||!(r.flags&1920))){var o=1536|67108864;var s=110735&~67108864;r=forEachIdentifierInEntityName(n,r,function(r,n,i){if(n){addDeclarationToSymbol(n,r,o);return n}else{var a=i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable());return declareSymbol(a,i,r,o,s)}})}return r}function bindPotentiallyNewExpandoMemberToNamespace(t,r,n){if(!r||!isExpandoSymbol(r)){return}var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable());var a=e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t));var o=a?8192:4;var s=a?67212223:0;declareSymbol(i,r,t,o|67108864,s&~67108864)}function bindPropertyAssignment(t,r,n){var i=lookupSymbolForPropertyAccess(t);var a=e.isBinaryExpression(r.parent)?getParentOfBinaryExpression(r.parent).parent.kind===279:r.parent.parent.kind===279;i=bindPotentiallyMissingNamespaces(i,r.expression,a,n);bindPotentiallyNewExpandoMemberToNamespace(r,i,n)}function isExpandoSymbol(t){if(t.flags&(16|32|1024)){return true}var r=t.valueDeclaration;if(r&&e.isCallExpression(r)){return!!e.getAssignedExpandoInitializer(r)}var n=!r?undefined:e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:undefined;n=n&&e.getRightMostAssignedExpression(n);if(n){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(e.isBinaryExpression(n)&&n.operatorToken.kind===55?n.right:n,i)}return false}function getParentOfBinaryExpression(t){while(e.isBinaryExpression(t.parent)){t=t.parent}return t.parent}function lookupSymbolForPropertyAccess(t,r){if(r===void 0){r=o}if(e.isIdentifier(t)){return lookupSymbolForNameWorker(r,t.escapedText)}else{var n=lookupSymbolForPropertyAccess(t.expression);return n&&n.exports&&n.exports.get(t.name.escapedText)}}function forEachIdentifierInEntityName(r,n,i){if(isExportsOrModuleExportsOrAlias(t,r)){return t.symbol}else if(e.isIdentifier(r)){return i(r,lookupSymbolForPropertyAccess(r),n)}else{var a=forEachIdentifierInEntityName(r.expression,n,i);if(!a||!a.exports)return e.Debug.fail();return i(r.name,a.exports.get(r.name.escapedText),a)}}function bindCallExpression(r){if(!t.commonJsModuleIndicator&&e.isRequireCall(r,false)){setCommonJsModuleIndicator(r)}}function bindClassLikeDeclaration(r){if(r.kind===240){bindBlockScopedDeclaration(r,32,68008383)}else{var n=r.name?r.name.escapedText:"__class";bindAnonymousDeclaration(r,32,n);if(r.name){E.set(r.name.escapedText,true)}}var i=r.symbol;var a=createSymbol(4|4194304,"prototype");var o=i.exports.get(a.escapedName);if(o){if(r.name){r.name.parent=r}t.bindDiagnostics.push(createDiagnosticForNode(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a)))}i.exports.set(a.escapedName,a);a.parent=i}function bindEnumDeclaration(t){return e.isEnumConst(t)?bindBlockScopedDeclaration(t,128,68008831):bindBlockScopedDeclaration(t,256,68008191)}function bindVariableDeclarationOrBindingElement(t){if(b){checkStrictModeEvalOrArguments(t,t.name)}if(!e.isBindingPattern(t.name)){var r=e.isInJSFile(t)&&!!e.getJSDocEnumTag(t);var n=r?256:0;var i=r?68008191:0;if(e.isBlockOrCatchScoped(t)){bindBlockScopedDeclaration(t,2|n,67220415|i)}else if(e.isParameterDeclaration(t)){declareSymbolAndAddToSymbolTable(t,1,67220415)}else{declareSymbolAndAddToSymbolTable(t,1|n,67220414|i)}}}function bindParameter(t){if(t.kind===299&&o.kind!==293){return}if(b&&!(t.flags&4194304)){checkStrictModeEvalOrArguments(t,t.name)}if(e.isBindingPattern(t.name)){bindAnonymousDeclaration(t,1,"__"+t.parent.parameters.indexOf(t))}else{declareSymbolAndAddToSymbolTable(t,1,67220415)}if(e.isParameterPropertyDeclaration(t)){var r=t.parent.parent;declareSymbol(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function bindFunctionDeclaration(r){if(!t.isDeclarationFile&&!(r.flags&4194304)){if(e.isAsyncFunction(r)){S|=1024}}checkStrictModeFunctionName(r);if(b){checkStrictModeFunctionDeclaration(r);bindBlockScopedDeclaration(r,16,67219887)}else{declareSymbolAndAddToSymbolTable(r,16,67219887)}}function bindFunctionExpression(r){if(!t.isDeclarationFile&&!(r.flags&4194304)){if(e.isAsyncFunction(r)){S|=1024}}if(d){r.flowNode=d}checkStrictModeFunctionName(r);var n=r.name?r.name.escapedText:"__function";return bindAnonymousDeclaration(r,16,n)}function bindPropertyOrMethodOrAccessor(r,n,i){if(!t.isDeclarationFile&&!(r.flags&4194304)&&e.isAsyncFunction(r)){S|=1024}if(d&&e.isObjectLiteralOrClassExpressionMethod(r)){r.flowNode=d}return e.hasDynamicName(r)?bindAnonymousDeclaration(r,n,"__computed"):declareSymbolAndAddToSymbolTable(r,n,i)}function getInferTypeContainer(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}function bindTypeParameter(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);if(r){if(!r.locals){r.locals=e.createSymbolTable()}declareSymbol(r.locals,undefined,t,262144,67635688)}else{declareSymbolAndAddToSymbolTable(t,262144,67635688)}}else if(t.parent.kind===176){var n=getInferTypeContainer(t.parent);if(n){if(!n.locals){n.locals=e.createSymbolTable()}declareSymbol(n.locals,undefined,t,262144,67635688)}else{bindAnonymousDeclaration(t,262144,getDeclarationName(t))}}else{declareSymbolAndAddToSymbolTable(t,262144,67635688)}}function shouldReportErrorOnModuleDeclaration(e){var t=getModuleInstanceState(e);return t===1||t===2&&!!r.preserveConstEnums}function checkUnreachable(t){if(!(d.flags&1)){return false}if(d===D){var n=e.isStatementButNotDeclaration(t)&&t.kind!==220||t.kind===240||t.kind===244&&shouldReportErrorOnModuleDeclaration(t);if(n){d=k;if(!r.allowUnreachableCode){var i=e.unreachableCodeIsError(r)&&!(t.flags&4194304)&&(!e.isVariableStatement(t)||!!(e.getCombinedNodeFlags(t.declarationList)&3)||t.declarationList.declarations.some(function(e){return!!e.initializer}));eachUnreachableRange(t,function(t,r){return errorOrSuggestionOnRange(i,t,r,e.Diagnostics.Unreachable_code_detected)})}}}return true}}function eachUnreachableRange(t,r){if(e.isStatement(t)&&isExecutableStatement(t)&&e.isBlock(t.parent)){var n=t.parent.statements;var i=e.sliceAfter(n,t);e.getRangesWhere(i,isExecutableStatement,function(e,t){return r(i[e],i[t-1])})}else{r(t,t)}}function isExecutableStatement(t){return!e.isFunctionDeclaration(t)&&!isPurelyTypeDeclaration(t)&&!e.isEnumDeclaration(t)&&!(e.isVariableStatement(t)&&!(e.getCombinedNodeFlags(t)&(1|2))&&t.declarationList.declarations.some(function(e){return!e.initializer}))}function isPurelyTypeDeclaration(t){switch(t.kind){case 241:case 242:return true;case 244:return getModuleInstanceState(t)!==1;case 243:return e.hasModifier(t,2048);default:return false}}function isExportsOrModuleExportsOrAlias(t,r){return e.isExportsIdentifier(r)||e.isModuleExportsPropertyAccessExpression(r)||e.isIdentifier(r)&&isNameOfExportsOrModuleExportsAliasDeclaration(t,r)}e.isExportsOrModuleExportsOrAlias=isExportsOrModuleExportsOrAlias;function isNameOfExportsOrModuleExportsAliasDeclaration(t,r){var n=lookupSymbolForNameWorker(t,r.escapedText);return!!n&&!!n.valueDeclaration&&e.isVariableDeclaration(n.valueDeclaration)&&!!n.valueDeclaration.initializer&&isExportsOrModuleExportsOrAliasOrAssignment(t,n.valueDeclaration.initializer)}function isExportsOrModuleExportsOrAliasOrAssignment(t,r){return isExportsOrModuleExportsOrAlias(t,r)||e.isAssignmentExpression(r,true)&&(isExportsOrModuleExportsOrAliasOrAssignment(t,r.left)||isExportsOrModuleExportsOrAliasOrAssignment(t,r.right))}function lookupSymbolForNameWorker(t,r){var n=t.locals&&t.locals.get(r);if(n){return n.exportSymbol||n}if(e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)){return t.jsGlobalAugmentations.get(r)}return t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}function computeTransformFlagsForNode(e,t){var r=e.kind;switch(r){case 191:return computeCallExpression(e,t);case 192:return computeNewExpression(e,t);case 244:return computeModuleDeclaration(e,t);case 195:return computeParenthesizedExpression(e,t);case 204:return computeBinaryExpression(e,t);case 221:return computeExpressionStatement(e,t);case 151:return computeParameter(e,t);case 197:return computeArrowFunction(e,t);case 196:return computeFunctionExpression(e,t);case 239:return computeFunctionDeclaration(e,t);case 237:return computeVariableDeclaration(e,t);case 238:return computeVariableDeclarationList(e,t);case 219:return computeVariableStatement(e,t);case 233:return computeLabeledStatement(e,t);case 240:return computeClassDeclaration(e,t);case 209:return computeClassExpression(e,t);case 273:return computeHeritageClause(e,t);case 274:return computeCatchClause(e,t);case 211:return computeExpressionWithTypeArguments(e,t);case 157:return computeConstructor(e,t);case 154:return computePropertyDeclaration(e,t);case 156:return computeMethod(e,t);case 158:case 159:return computeAccessor(e,t);case 248:return computeImportEquals(e,t);case 189:return computePropertyAccess(e,t);case 190:return computeElementAccess(e,t);default:return computeOther(e,r,t)}}e.computeTransformFlagsForNode=computeTransformFlagsForNode;function computeCallExpression(e,t){var r=t;var n=e.expression;if(e.typeArguments){r|=3}if(t&131072||n.transformFlags&(33554432|67108864)){r|=192;if(n.transformFlags&67108864){r|=8192}}if(n.kind===92){r|=16777216;if(t&8192){r|=16384}}e.transformFlags=r|536870912;return r&~637666625}function computeNewExpression(e,t){var r=t;if(e.typeArguments){r|=3}if(t&131072){r|=192}e.transformFlags=r|536870912;return r&~637666625}function computeBinaryExpression(e,t){var r=t;var n=e.operatorToken.kind;var i=e.left.kind;if(n===59&&i===188){r|=8|192|3072}else if(n===59&&i===187){r|=192|3072}else if(n===41||n===63){r|=32}e.transformFlags=r|536870912;return r&~637535553}function computeParameter(t,r){var n=r;var i=t.name;var a=t.initializer;var o=t.dotDotDotToken;if(t.questionToken||t.type||r&4096&&e.some(t.decorators)||e.isThisIdentifier(i)){n|=3}if(e.hasModifier(t,92)){n|=3|4096}if(r&262144){n|=8}if(r&2097152||a||o){n|=192|65536}t.transformFlags=n|536870912;return n&~637535553}function computeParenthesizedExpression(e,t){var r=t;var n=e.expression;var i=n.kind;var a=n.transformFlags;if(i===212||i===194){r|=3}if(a&1024){r|=1024}e.transformFlags=r|536870912;return r&~536872257}function computeClassDeclaration(t,r){var n;if(e.hasModifier(t,2)){n=3}else{n=r|192;if(r&4096||t.typeParameters){n|=3}if(r&32768){n|=8192}}t.transformFlags=n|536870912;return n&~638121281}function computeClassExpression(e,t){var r=t|192;if(t&4096||e.typeParameters){r|=3}if(t&32768){r|=8192}e.transformFlags=r|536870912;return r&~638121281}function computeHeritageClause(t,r){var n=r;switch(t.token){case 86:n|=192;break;case 109:n|=3;break;default:e.Debug.fail("Unexpected token for heritage clause");break}t.transformFlags=n|536870912;return n&~637535553}function computeCatchClause(t,r){var n=r;if(!t.variableDeclaration){n|=8}else if(e.isBindingPattern(t.variableDeclaration.name)){n|=192}t.transformFlags=n|536870912;return n&~637797697}function computeExpressionWithTypeArguments(e,t){var r=t|192;if(e.typeArguments){r|=3}e.transformFlags=r|536870912;return r&~637535553}function computeConstructor(t,r){var n=r;if(e.hasModifier(t,2270)||!t.body){n|=3}if(r&262144){n|=8}t.transformFlags=n|536870912;return n&~653616449}function computeMethod(t,r){var n=r|192;if(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body){n|=3}if(r&262144){n|=8}if(e.hasModifier(t,256)){n|=t.asteriskToken?8:16}if(t.asteriskToken){n|=768}t.transformFlags=n|536870912;return n&~653616449}function computeAccessor(t,r){var n=r;if(t.decorators||e.hasModifier(t,2270)||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body){n|=3}if(r&262144){n|=8}t.transformFlags=n|536870912;return n&~653616449}function computePropertyDeclaration(t,r){var n=r|3;if(t.initializer||e.isComputedPropertyName(t.name)){n|=4096}t.transformFlags=n|536870912;return n&~637535553}function computeFunctionDeclaration(t,r){var n;var i=e.getModifierFlags(t);var a=t.body;if(!a||i&2){n=3}else{n=r|8388608;if(i&2270||t.typeParameters||t.type){n|=3}if(i&256){n|=t.asteriskToken?8:16}if(r&262144){n|=8}if(r&81920){n|=192}if(t.asteriskToken){n|=768}}t.transformFlags=n|536870912;return n&~653620545}function computeFunctionExpression(t,r){var n=r;if(e.hasModifier(t,2270)||t.typeParameters||t.type){n|=3}if(e.hasModifier(t,256)){n|=t.asteriskToken?8:16}if(r&262144){n|=8}if(r&81920){n|=192}if(t.asteriskToken){n|=768}t.transformFlags=n|536870912;return n&~653620545}function computeArrowFunction(t,r){var n=r|192;if(e.hasModifier(t,2270)||t.typeParameters||t.type){n|=3}if(e.hasModifier(t,256)){n|=16}if(r&262144){n|=8}if(r&8192){n|=16384}t.transformFlags=n|536870912;return n&~653604161}function computePropertyAccess(e,t){var r=t;if(r&33554432){r^=33554432;r|=67108864|16|8}e.transformFlags=r|536870912;return r&~570426689}function computeElementAccess(e,t){var r=t;var n=e.expression;var i=n.transformFlags;if(i&33554432){r&=~33554432;r|=67108864|16|8}e.transformFlags=r|536870912;return r&~570426689}function computeVariableDeclaration(e,t){var r=t;r|=192|2097152;if(t&262144){r|=8}if(e.type){r|=3}e.transformFlags=r|536870912;return r&~637535553}function computeVariableStatement(t,r){var n;var i=t.declarationList.transformFlags;if(e.hasModifier(t,2)){n=3}else{n=r;if(i&2097152){n|=192}}t.transformFlags=n|536870912;return n&~637535553}function computeLabeledStatement(t,r){var n=r;if(r&1048576&&e.isIterationStatement(t,true)){n|=192}t.transformFlags=n|536870912;return n&~637535553}function computeImportEquals(t,r){var n=r;if(!e.isExternalModuleImportEqualsDeclaration(t)){n|=3}t.transformFlags=n|536870912;return n&~637535553}function computeExpressionStatement(e,t){var r=t;if(e.expression.transformFlags&1024){r|=192}e.transformFlags=r|536870912;return r&~637535553}function computeModuleDeclaration(t,r){var n=3;var i=e.getModifierFlags(t);if((i&2)===0){n|=r}t.transformFlags=n|536870912;return n&~647001409}function computeVariableDeclarationList(e,t){var r=t|8388608;if(t&2097152){r|=192}if(e.flags&3){r|=192|1048576}e.transformFlags=r|536870912;return r&~639894849}function computeOther(e,t,r){var n=r;var i=637535553;switch(t){case 121:case 201:n|=8|16;break;case 194:case 212:case 308:n|=3;i=536872257;break;case 115:case 113:case 114:case 118:case 125:case 77:case 243:case 278:case 213:case 133:n|=3;break;case 260:case 261:case 262:case 11:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:n|=4;break;case 14:case 15:case 16:case 17:case 206:case 193:case 276:case 116:case 214:n|=192;break;case 10:if(e.hasExtendedUnicodeEscape){n|=192}break;case 8:if(e.numericLiteralFlags&384){n|=192}break;case 9:n|=8;break;case 227:if(e.awaitModifier){n|=8}n|=192;break;case 207:n|=8|192|4194304;break;case 120:case 135:case 146:case 132:case 136:case 138:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 241:case 242:case 178:case 179:case 180:case 181:case 182:case 247:n=3;i=-3;break;case 149:n|=524288;if(r&8192){n|=32768}break;case 208:n|=192|131072;break;case 277:n|=8|262144;break;case 98:n|=192|33554432;i=536872257;break;case 100:n|=8192;break;case 184:n|=192|2097152;if(r&131072){n|=8|262144}i=637666625;break;case 185:n|=192|2097152;i=637666625;break;case 186:n|=192;if(e.dotDotDotToken){n|=131072}break;case 152:n|=3|4096;break;case 188:i=638358849;if(r&524288){n|=192}if(r&32768){n|=8192}if(r&262144){n|=8}break;case 187:case 192:i=637666625;if(r&131072){n|=192}break;case 223:case 224:case 225:case 226:if(r&1048576){n|=192}break;case 279:if(r&16384){n|=192}break;case 230:n|=8388608|8;break;case 228:case 229:n|=8388608;break}e.transformFlags=n|536870912;return n&~i}function getTransformFlagsSubtreeExclusions(e){if(e>=163&&e<=183){return-3}switch(e){case 191:case 192:case 187:return 637666625;case 244:return 647001409;case 151:return 637535553;case 197:return 653604161;case 196:case 239:return 653620545;case 238:return 639894849;case 240:case 209:return 638121281;case 157:return 653616449;case 156:case 158:case 159:return 653616449;case 120:case 135:case 146:case 132:case 138:case 136:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 241:case 242:return-3;case 188:return 638358849;case 274:return 637797697;case 184:case 185:return 637666625;case 194:case 212:case 308:case 195:case 98:return 536872257;case 189:case 190:return 570426689;default:return 637535553}}e.getTransformFlagsSubtreeExclusions=getTransformFlagsSubtreeExclusions;function setParentPointers(t,r){r.parent=t;e.forEachChild(r,function(e){return setParentPointers(r,e)})}})(s||(s={}));var s;(function(e){function createGetSymbolWalker(t,r,n,i,a,o,s,c,u,l){return getSymbolWalker;function getSymbolWalker(f){if(f===void 0){f=function(){return true}}var d=[];var p=[];return{walkType:function(t){try{visitType(t);return{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d);e.clear(p)}},walkSymbol:function(t){try{visitSymbol(t);return{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d);e.clear(p)}}};function visitType(e){if(!e){return}if(d[e.id]){return}d[e.id]=e;var t=visitSymbol(e.symbol);if(t)return;if(e.flags&524288){var r=e;var n=r.objectFlags;if(n&4){visitTypeReference(e)}if(n&32){visitMappedType(e)}if(n&(1|2)){visitInterfaceType(e)}if(n&(8|16)){visitObjectType(r)}}if(e.flags&262144){visitTypeParameter(e)}if(e.flags&3145728){visitUnionOrIntersectionType(e)}if(e.flags&4194304){visitIndexType(e)}if(e.flags&8388608){visitIndexedAccessType(e)}}function visitTypeReference(t){visitType(t.target);e.forEach(t.typeArguments,visitType)}function visitTypeParameter(e){visitType(u(e))}function visitUnionOrIntersectionType(t){e.forEach(t.types,visitType)}function visitIndexType(e){visitType(e.type)}function visitIndexedAccessType(e){visitType(e.objectType);visitType(e.indexType);visitType(e.constraint)}function visitMappedType(e){visitType(e.typeParameter);visitType(e.constraintType);visitType(e.templateType);visitType(e.modifiersType)}function visitSignature(i){var a=r(i);if(a){visitType(a.type)}e.forEach(i.typeParameters,visitType);for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];visitSymbol(c)}visitType(t(i));visitType(n(i))}function visitInterfaceType(t){visitObjectType(t);e.forEach(t.typeParameters,visitType);e.forEach(i(t),visitType);visitType(t.thisType)}function visitObjectType(e){var t=c(e,0);visitType(t);var r=c(e,1);visitType(r);var n=a(e);for(var i=0,o=n.callSignatures;i<o.length;i++){var s=o[i];visitSignature(s)}for(var u=0,l=n.constructSignatures;u<l.length;u++){var s=l[u];visitSignature(s)}for(var f=0,d=n.properties;f<d.length;f++){var p=d[f];visitSymbol(p)}}function visitSymbol(t){if(!t){return false}var r=e.getSymbolId(t);if(p[r]){return false}p[r]=t;if(!f(t)){return true}var n=o(t);visitType(n);if(t.exports){t.exports.forEach(visitSymbol)}e.forEach(t.declarations,function(e){if(e.type&&e.type.kind===167){var t=e.type;var r=s(l(t.exprName));visitSymbol(r)}});return false}}}e.createGetSymbolWalker=createGetSymbolWalker})(s||(s={}));var s;(function(e){var t=/^".+"$/;var r=1;var a=1;var o=1;var s=1;function getNodeId(e){if(!e.id){e.id=a;a++}return e.id}e.getNodeId=getNodeId;function getSymbolId(e){if(!e.id){e.id=r;r++}return e.id}e.getSymbolId=getSymbolId;function isInstantiatedModule(t,r){var n=e.getModuleInstanceState(t);return n===1||r&&n===2}e.isInstantiatedModule=isInstantiatedModule;function createTypeChecker(r,a){var u=e.memoize(function(){var t=e.createMap();r.getSourceFiles().forEach(function(r){if(!r.resolvedModules)return;e.forEachEntry(r.resolvedModules,function(e){if(e&&e.packageId)t.set(e.packageId.name,true)})});return t});var l;var f;var d;var p=e.objectAllocator.getSymbolConstructor();var g=e.objectAllocator.getTypeConstructor();var _=e.objectAllocator.getSignatureConstructor();var m=0;var y=0;var h=0;var v=0;var T=0;var S=e.createSymbolTable();var b=e.identity;var x=r.getCompilerOptions();var C=e.getEmitScriptTarget(x);var E=e.getEmitModuleKind(x);var D=e.getAllowSyntheticDefaultImports(x);var k=e.getStrictOptionValue(x,"strictNullChecks");var N=e.getStrictOptionValue(x,"strictFunctionTypes");var A=e.getStrictOptionValue(x,"strictBindCallApply");var O=e.getStrictOptionValue(x,"strictPropertyInitialization");var F=e.getStrictOptionValue(x,"noImplicitAny");var P=e.getStrictOptionValue(x,"noImplicitThis");var I=!!x.keyofStringsOnly;var w=x.suppressExcessPropertyErrors?0:32768;var M=createResolver();var L=createNodeBuilder();var R=createSymbol(4,"undefined");R.declarations=[];var B=createSymbol(4,"arguments");var j=createSymbol(4,"require");var J;var W={getNodeCount:function(){return e.sum(r.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(r.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(r.getSourceFiles(),"symbolCount")+y},getTypeCount:function(){return m},isUndefinedSymbol:function(e){return e===R},isArgumentsSymbol:function(e){return e===B},isUnknownSymbol:function(e){return e===Q},getMergedSymbol:getMergedSymbol,getDiagnostics:getDiagnostics,getGlobalDiagnostics:getGlobalDiagnostics,getTypeOfSymbolAtLocation:function(t,r){r=e.getParseTreeNode(r);return r?getTypeOfSymbolAtLocation(t,r):ee},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);if(n===undefined)return e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.");return getSymbolsOfParameterPropertyDeclaration(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:getDeclaredTypeOfSymbol,getPropertiesOfType:getPropertiesOfType,getPropertyOfType:function(t,r){return getPropertyOfType(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return getTypeOfPropertyOfType(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:getIndexInfoOfType,getSignaturesOfType:getSignaturesOfType,getIndexTypeOfType:getIndexTypeOfType,getBaseTypes:getBaseTypes,getBaseTypeOfLiteralType:getBaseTypeOfLiteralType,getWidenedType:getWidenedType,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?getTypeFromTypeNode(r):ee},getParameterType:getTypeAtPosition,getPromisedTypeOfPromise:getPromisedTypeOfPromise,getReturnTypeOfSignature:getReturnTypeOfSignature,getNullableType:getNullableType,getNonNullableType:getNonNullableType,typeToTypeNode:L.typeToTypeNode,indexInfoToIndexSignatureDeclaration:L.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:L.signatureToSignatureDeclaration,symbolToEntityName:L.symbolToEntityName,symbolToExpression:L.symbolToExpression,symbolToTypeParameterDeclarations:L.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:L.symbolToParameterDeclaration,typeParameterToDeclaration:L.typeParameterToDeclaration,getSymbolsInScope:function(t,r){t=e.getParseTreeNode(t);return t?getSymbolsInScope(t,r):[]},getSymbolAtLocation:function(t){t=e.getParseTreeNode(t);return t?getSymbolAtLocation(t):undefined},getShorthandAssignmentValueSymbol:function(t){t=e.getParseTreeNode(t);return t?getShorthandAssignmentValueSymbol(t):undefined},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?getExportSpecifierLocalTargetSymbol(r):undefined},getExportSymbolOfSymbol:function(e){return getMergedSymbol(e.exportSymbol||e)},getTypeAtLocation:function(t){t=e.getParseTreeNode(t);return t?getTypeOfNode(t):ee},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?getPropertySymbolOfDestructuringAssignment(r):undefined},signatureToString:function(t,r,n,i){return signatureToString(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return typeToString(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return symbolToString(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return typePredicateToString(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return signatureToString(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return typeToString(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return symbolToString(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return typePredicateToString(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:getAugmentedPropertiesOfType,getRootSymbols:getRootSymbols,getContextualType:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r?getContextualType(r):undefined},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?getContextualTypeForObjectLiteralElement(r):undefined},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&getContextualTypeForArgumentAtIndex(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&getContextualTypeForJsxAttribute(r)},isContextSensitive:isContextSensitive,getFullyQualifiedName:getFullyQualifiedName,getResolvedSignature:function(e,t,r){return getResolvedSignatureWorker(e,t,r,false)},getResolvedSignatureForSignatureHelp:function(e,t,r){return getResolvedSignatureWorker(e,t,r,true)},getConstantValue:function(t){var r=e.getParseTreeNode(t,canHaveConstantValue);return r?getConstantValue(r):undefined},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&isValidPropertyAccess(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&isValidPropertyAccessForCompletions(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?getSignatureFromDeclaration(r):undefined},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?isImplementationOfOverload(r):undefined},getImmediateAliasedSymbol:getImmediateAliasedSymbol,getAliasedSymbol:resolveAlias,getEmitResolver:getEmitResolver,getExportsOfModule:getExportsOfModuleAsArray,getExportsAndPropertiesOfModule:getExportsAndPropertiesOfModule,getSymbolWalker:e.createGetSymbolWalker(getRestTypeOfSignature,getTypePredicateOfSignature,getReturnTypeOfSignature,getBaseTypes,resolveStructuredTypeMembers,getTypeOfSymbol,getResolvedSymbol,getIndexTypeOfStructuredType,getConstraintOfTypeParameter,getFirstIdentifier),getAmbientModules:getAmbientModules,getJsxIntrinsicTagNamesAt:getJsxIntrinsicTagNamesAt,isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return r?isOptionalParameter(r):false},tryGetMemberInModuleExports:function(t,r){return tryGetMemberInModuleExports(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return tryGetMemberInModuleExportsAndProperties(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return tryFindAmbientModule(e,false)},getApparentType:getApparentType,getUnionType:getUnionType,createAnonymousType:createAnonymousType,createSignature:createSignature,createSymbol:createSymbol,createIndexInfo:createIndexInfo,getAnyType:function(){return X},getStringType:function(){return oe},getNumberType:function(){return se},createPromiseType:createPromiseType,createArrayType:createArrayType,getElementTypeOfArrayType:getElementTypeOfArrayType,getBooleanType:function(){return pe},getFalseType:function(e){return e?ue:le},getTrueType:function(e){return e?fe:de},getVoidType:function(){return _e},getUndefinedType:function(){return re},getNullType:function(){return ie},getESSymbolType:function(){return ge},getNeverType:function(){return me},isSymbolAccessible:isSymbolAccessible,getObjectFlags:e.getObjectFlags,isArrayLikeType:isArrayLikeType,isTypeInvalidDueToUnionDiscriminant:isTypeInvalidDueToUnionDiscriminant,getAllPossiblePropertiesOfTypes:getAllPossiblePropertiesOfTypes,getSuggestionForNonexistentProperty:function(e,t){return getSuggestionForNonexistentProperty(e,t)},getSuggestionForNonexistentSymbol:function(t,r,n){return getSuggestionForNonexistentSymbol(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentExport:function(e,t){return getSuggestionForNonexistentExport(e,t)},getBaseConstraintOfType:getBaseConstraintOfType,getDefaultFromTypeParameter:function(e){return e&&e.flags&262144?getDefaultFromTypeParameter(e):undefined},resolveName:function(t,r,n,i){return resolveName(r,e.escapeLeadingUnderscores(t),n,undefined,undefined,false,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(getJsxNamespace(t))},getAccessibleSymbolChain:getAccessibleSymbolChain,getTypePredicateOfSignature:getTypePredicateOfSignature,resolveExternalModuleSymbol:resolveExternalModuleSymbol,tryGetThisTypeAt:function(t){t=e.getParseTreeNode(t);return t&&tryGetThisTypeAt(t)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&getTypeArgumentConstraint(r)},getSuggestionDiagnostics:function(t,r){if(e.skipTypeChecking(t,x)){return e.emptyArray}var i;try{l=r;checkSourceFile(t);e.Debug.assert(!!(getNodeLinks(t).flags&1));i=e.addRange(i,Yt.get(t.fileName));if(!t.isDeclarationFile&&(!unusedIsError(0)||!unusedIsError(1))){addUnusedDiagnostics()}return i||e.emptyArray}finally{l=undefined}function addUnusedDiagnostics(){checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(t),function(t,r,a){if(!e.containsParseError(t)&&!unusedIsError(r)){(i||(i=[])).push(n({},a,{category:e.DiagnosticCategory.Suggestion}))}})}},runWithCancellationToken:function(e,t){try{l=e;return t(W)}finally{l=undefined}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:getLocalTypeParametersOfClassOrInterfaceOrTypeAlias};function getResolvedSignatureWorker(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);J=n;var o=a?getResolvedSignature(a,r,i):undefined;J=undefined;return o}var U=e.createMap();var z=e.createMap();var V=e.createMap();var K=e.createMap();var q=e.createMap();var G=[];var H=e.createMap();var Q=createSymbol(4,"unknown");var $=createSymbol(0,"__resolving__");var X=createIntrinsicType(1,"any");var Y=createIntrinsicType(1,"any");var Z=createIntrinsicType(1,"any");var ee=createIntrinsicType(1,"error");var te=createIntrinsicType(2,"unknown");var re=createIntrinsicType(32768,"undefined");var ne=k?re:createIntrinsicType(32768|134217728,"undefined");var ie=createIntrinsicType(65536,"null");var ae=k?ie:createIntrinsicType(65536|134217728,"null");var oe=createIntrinsicType(4,"string");var se=createIntrinsicType(8,"number");var ce=createIntrinsicType(64,"bigint");var ue=createIntrinsicType(512,"false");var le=createIntrinsicType(512,"false");var fe=createIntrinsicType(512,"true");var de=createIntrinsicType(512,"true");fe.regularType=de;fe.freshType=fe;de.regularType=de;de.freshType=fe;ue.regularType=le;ue.freshType=ue;le.regularType=le;le.freshType=ue;var pe=createBooleanType([le,de]);createBooleanType([le,fe]);createBooleanType([ue,de]);createBooleanType([ue,fe]);var ge=createIntrinsicType(4096,"symbol");var _e=createIntrinsicType(16384,"void");var me=createIntrinsicType(131072,"never");var ye=createIntrinsicType(131072,"never");var he=createIntrinsicType(131072,"never");var ve=createIntrinsicType(67108864,"object");var Te=getUnionType([oe,se,ge]);var Se=I?oe:Te;var be=getUnionType([se,ce]);var xe=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);var Ce=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);Ce.objectFlags|=4096;var Ee=createSymbol(2048,"__type");Ee.members=e.createSymbolTable();var De=createAnonymousType(Ee,S,e.emptyArray,e.emptyArray,undefined,undefined);var ke=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);ke.instantiations=e.createMap();var Ne=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);Ne.flags|=536870912;var Ae=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);var Oe=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);var Fe=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined);var Pe=createType(262144);var Ie=createType(262144);Ie.constraint=Pe;var we=createType(262144);var Me=createIdentifierTypePredicate("<<unresolved>>",0,X);var Le=createSignature(undefined,undefined,undefined,e.emptyArray,X,undefined,0,false,false);var Re=createSignature(undefined,undefined,undefined,e.emptyArray,ee,undefined,0,false,false);var Be=createSignature(undefined,undefined,undefined,e.emptyArray,X,undefined,0,false,false);var je=createSignature(undefined,undefined,undefined,e.emptyArray,ye,undefined,0,false,false);var Je=createIndexInfo(oe,true);var We=e.createSymbolTable();var Ue;var ze=e.createMap();var Ve;var Ke;var qe;var Ge;var He;var Qe;var $e;var Xe;var Ye;var Ze;var et;var tt;var rt;var nt;var it;var at;var ot;var st;var ct;var ut;var lt;var ft;var dt;var pt;var gt;var _t;var mt;var yt;var ht;var vt;var Tt;var St;var bt;var xt;var Ct;var Et;var Dt=e.createMap();var kt=0;var Nt=0;var At=0;var Ot=false;var Ft=getLiteralType("");var Pt=getLiteralType(0);var It=getLiteralType({negative:false,base10Value:"0"});var wt=[];var Mt=[];var Lt=[];var Rt=0;var Bt=10;var jt=[];var Jt=[];var Wt=[];var Ut=[];var zt=[];var Vt=[];var Kt=[];var qt=[];var Gt=[];var Ht=[];var Qt=[];var $t=[];var Xt=e.createDiagnosticCollection();var Yt=e.createMultiMap();var Zt;(function(e){e[e["None"]=0]="None";e[e["TypeofEQString"]=1]="TypeofEQString";e[e["TypeofEQNumber"]=2]="TypeofEQNumber";e[e["TypeofEQBigInt"]=4]="TypeofEQBigInt";e[e["TypeofEQBoolean"]=8]="TypeofEQBoolean";e[e["TypeofEQSymbol"]=16]="TypeofEQSymbol";e[e["TypeofEQObject"]=32]="TypeofEQObject";e[e["TypeofEQFunction"]=64]="TypeofEQFunction";e[e["TypeofEQHostObject"]=128]="TypeofEQHostObject";e[e["TypeofNEString"]=256]="TypeofNEString";e[e["TypeofNENumber"]=512]="TypeofNENumber";e[e["TypeofNEBigInt"]=1024]="TypeofNEBigInt";e[e["TypeofNEBoolean"]=2048]="TypeofNEBoolean";e[e["TypeofNESymbol"]=4096]="TypeofNESymbol";e[e["TypeofNEObject"]=8192]="TypeofNEObject";e[e["TypeofNEFunction"]=16384]="TypeofNEFunction";e[e["TypeofNEHostObject"]=32768]="TypeofNEHostObject";e[e["EQUndefined"]=65536]="EQUndefined";e[e["EQNull"]=131072]="EQNull";e[e["EQUndefinedOrNull"]=262144]="EQUndefinedOrNull";e[e["NEUndefined"]=524288]="NEUndefined";e[e["NENull"]=1048576]="NENull";e[e["NEUndefinedOrNull"]=2097152]="NEUndefinedOrNull";e[e["Truthy"]=4194304]="Truthy";e[e["Falsy"]=8388608]="Falsy";e[e["All"]=16777215]="All";e[e["BaseStringStrictFacts"]=3735041]="BaseStringStrictFacts";e[e["BaseStringFacts"]=12582401]="BaseStringFacts";e[e["StringStrictFacts"]=16317953]="StringStrictFacts";e[e["StringFacts"]=16776705]="StringFacts";e[e["EmptyStringStrictFacts"]=12123649]="EmptyStringStrictFacts";e[e["EmptyStringFacts"]=12582401]="EmptyStringFacts";e[e["NonEmptyStringStrictFacts"]=7929345]="NonEmptyStringStrictFacts";e[e["NonEmptyStringFacts"]=16776705]="NonEmptyStringFacts";e[e["BaseNumberStrictFacts"]=3734786]="BaseNumberStrictFacts";e[e["BaseNumberFacts"]=12582146]="BaseNumberFacts";e[e["NumberStrictFacts"]=16317698]="NumberStrictFacts";e[e["NumberFacts"]=16776450]="NumberFacts";e[e["ZeroNumberStrictFacts"]=12123394]="ZeroNumberStrictFacts";e[e["ZeroNumberFacts"]=12582146]="ZeroNumberFacts";e[e["NonZeroNumberStrictFacts"]=7929090]="NonZeroNumberStrictFacts";e[e["NonZeroNumberFacts"]=16776450]="NonZeroNumberFacts";e[e["BaseBigIntStrictFacts"]=3734276]="BaseBigIntStrictFacts";e[e["BaseBigIntFacts"]=12581636]="BaseBigIntFacts";e[e["BigIntStrictFacts"]=16317188]="BigIntStrictFacts";e[e["BigIntFacts"]=16775940]="BigIntFacts";e[e["ZeroBigIntStrictFacts"]=12122884]="ZeroBigIntStrictFacts";e[e["ZeroBigIntFacts"]=12581636]="ZeroBigIntFacts";e[e["NonZeroBigIntStrictFacts"]=7928580]="NonZeroBigIntStrictFacts";e[e["NonZeroBigIntFacts"]=16775940]="NonZeroBigIntFacts";e[e["BaseBooleanStrictFacts"]=3733256]="BaseBooleanStrictFacts";e[e["BaseBooleanFacts"]=12580616]="BaseBooleanFacts";e[e["BooleanStrictFacts"]=16316168]="BooleanStrictFacts";e[e["BooleanFacts"]=16774920]="BooleanFacts";e[e["FalseStrictFacts"]=12121864]="FalseStrictFacts";e[e["FalseFacts"]=12580616]="FalseFacts";e[e["TrueStrictFacts"]=7927560]="TrueStrictFacts";e[e["TrueFacts"]=16774920]="TrueFacts";e[e["SymbolStrictFacts"]=7925520]="SymbolStrictFacts";e[e["SymbolFacts"]=16772880]="SymbolFacts";e[e["ObjectStrictFacts"]=7888800]="ObjectStrictFacts";e[e["ObjectFacts"]=16736160]="ObjectFacts";e[e["FunctionStrictFacts"]=7880640]="FunctionStrictFacts";e[e["FunctionFacts"]=16728e3]="FunctionFacts";e[e["UndefinedFacts"]=9830144]="UndefinedFacts";e[e["NullFacts"]=9363232]="NullFacts";e[e["EmptyObjectStrictFacts"]=16318463]="EmptyObjectStrictFacts";e[e["EmptyObjectFacts"]=16777215]="EmptyObjectFacts"})(Zt||(Zt={}));var er=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64});var tr=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384});var rr=e.createMapFromTemplate({string:oe,number:se,bigint:ce,boolean:pe,symbol:ge,undefined:re});var nr=createTypeofType();var ir;var ar;var or=e.createMap();var sr=e.createMap();var cr=e.createMap();var ur=e.createMap();var lr=e.createMap();var fr=e.createMap();var dr;(function(e){e[e["Type"]=0]="Type";e[e["ResolvedBaseConstructorType"]=1]="ResolvedBaseConstructorType";e[e["DeclaredType"]=2]="DeclaredType";e[e["ResolvedReturnType"]=3]="ResolvedReturnType";e[e["ImmediateBaseConstraint"]=4]="ImmediateBaseConstraint";e[e["EnumTagType"]=5]="EnumTagType";e[e["JSDocTypeReference"]=6]="JSDocTypeReference"})(dr||(dr={}));var pr;(function(e){e[e["Normal"]=0]="Normal";e[e["SkipContextSensitive"]=1]="SkipContextSensitive";e[e["Inferential"]=2]="Inferential";e[e["Contextual"]=3]="Contextual"})(pr||(pr={}));var gr;(function(e){e[e["None"]=0]="None";e[e["Bivariant"]=1]="Bivariant";e[e["Strict"]=2]="Strict"})(gr||(gr={}));var _r;(function(e){e[e["IncludeReadonly"]=1]="IncludeReadonly";e[e["ExcludeReadonly"]=2]="ExcludeReadonly";e[e["IncludeOptional"]=4]="IncludeOptional";e[e["ExcludeOptional"]=8]="ExcludeOptional"})(_r||(_r={}));var mr;(function(e){e[e["None"]=0]="None";e[e["Source"]=1]="Source";e[e["Target"]=2]="Target";e[e["Both"]=3]="Both"})(mr||(mr={}));var yr;(function(e){e["resolvedExports"]="resolvedExports";e["resolvedMembers"]="resolvedMembers"})(yr||(yr={}));var hr;(function(e){e[e["Local"]=0]="Local";e[e["Parameter"]=1]="Parameter"})(hr||(hr={}));var vr=e.createSymbolTable();vr.set(R.escapedName,R);var Tr=e.and(isNotOverload,isNotAccessor);initializeTypeChecker();return W;function getJsxNamespace(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxNamespace){return r.localJsxNamespace}var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,C);if(r.localJsxFactory){return r.localJsxNamespace=getFirstIdentifier(r.localJsxFactory).escapedText}}}}if(!ir){ir="React";if(x.jsxFactory){ar=e.parseIsolatedEntityName(x.jsxFactory,C);if(ar){ir=getFirstIdentifier(ar).escapedText}}else if(x.reactNamespace){ir=e.escapeLeadingUnderscores(x.reactNamespace)}}return ir}function getEmitResolver(e,t){getDiagnostics(e,t);return M}function lookupOrIssueError(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);var c=Xt.lookup(s);if(c){return c}else{Xt.add(s);return s}}function addRelatedInfo(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n;if(!e.relatedInformation){e.relatedInformation=[]}(n=e.relatedInformation).push.apply(n,t);return e}function error(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);Xt.add(s);return s}function addErrorOrSuggestion(t,r){if(t){Xt.add(r)}else{Yt.add(r.file.fileName,n({},r,{category:e.DiagnosticCategory.Suggestion}))}}function errorOrSuggestion(t,r,n,i,a,o,s){addErrorOrSuggestion(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function createSymbol(e,t,r){y++;var n=new p(e|33554432,t);n.checkFlags=r||0;return n}function isTransientSymbol(e){return(e.flags&33554432)!==0}function getExcludedSymbolFlags(e){var t=0;if(e&2)t|=67220415;if(e&1)t|=67220414;if(e&4)t|=0;if(e&8)t|=68008959;if(e&16)t|=67219887;if(e&32)t|=68008383;if(e&64)t|=67897736;if(e&256)t|=68008191;if(e&128)t|=68008831;if(e&512)t|=110735;if(e&8192)t|=67212223;if(e&32768)t|=67154879;if(e&65536)t|=67187647;if(e&262144)t|=67635688;if(e&524288)t|=67897832;if(e&2097152)t|=2097152;return t}function recordMergedSymbol(e,t){if(!t.mergeId){t.mergeId=o;o++}jt[t.mergeId]=e}function cloneSymbol(t){var r=createSymbol(t.flags,t.escapedName);r.declarations=t.declarations?t.declarations.slice():[];r.parent=t.parent;if(t.valueDeclaration)r.valueDeclaration=t.valueDeclaration;if(t.constEnumOnlyModule)r.constEnumOnlyModule=true;if(t.members)r.members=e.cloneMap(t.members);if(t.exports)r.exports=e.cloneMap(t.exports);recordMergedSymbol(r,t);return r}function mergeSymbol(t,r){if(!(t.flags&getExcludedSymbolFlags(r.flags))||(r.flags|t.flags)&67108864){e.Debug.assert(r!==t);if(!(t.flags&33554432)){var n=resolveSymbol(t);if(n===Q){return r}t=cloneSymbol(n)}if(r.flags&512&&t.flags&512&&t.constEnumOnlyModule&&!r.constEnumOnlyModule){t.constEnumOnlyModule=false}t.flags|=r.flags;if(r.valueDeclaration&&(!t.valueDeclaration||e.isAssignmentDeclaration(t.valueDeclaration)&&!e.isAssignmentDeclaration(r.valueDeclaration)||e.isEffectiveModuleDeclaration(t.valueDeclaration)&&!e.isEffectiveModuleDeclaration(r.valueDeclaration))){t.valueDeclaration=r.valueDeclaration}e.addRange(t.declarations,r.declarations);if(r.members){if(!t.members)t.members=e.createSymbolTable();mergeSymbolTable(t.members,r.members)}if(r.exports){if(!t.exports)t.exports=e.createSymbolTable();mergeSymbolTable(t.exports,r.exports)}recordMergedSymbol(t,r)}else if(t.flags&1024){error(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,symbolToString(t))}else{var i=!!(t.flags&384||r.flags&384);var a=!!(t.flags&2||r.flags&2);var o=i?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;var s=r.declarations&&e.getSourceFileOfNode(r.declarations[0]);var c=t.declarations&&e.getSourceFileOfNode(t.declarations[0]);var u=symbolToString(r);if(s&&c&&Ue&&!i&&s!==c){var l=e.comparePaths(s.path,c.path)===-1?s:c;var f=l===s?c:s;var d=e.getOrUpdate(Ue,l.path+"|"+f.path,function(){return{firstFile:l,secondFile:f,conflictingSymbols:e.createMap()}});var p=e.getOrUpdate(d.conflictingSymbols,u,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}});addDuplicateLocations(p.firstFileLocations,r);addDuplicateLocations(p.secondFileLocations,t)}else{addDuplicateDeclarationErrorsForSymbols(r,o,u,t);addDuplicateDeclarationErrorsForSymbols(t,o,u,r)}}return t;function addDuplicateLocations(t,r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,(e.getExpandoInitializer(a,false)?e.getNameOfExpando(a):e.getNameOfDeclaration(a))||a)}}}function addDuplicateDeclarationErrorsForSymbols(t,r,n,i){e.forEach(t.declarations,function(t){var a=(e.getExpandoInitializer(t,false)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;addDuplicateDeclarationError(a,r,n,i.declarations)})}function addDuplicateDeclarationError(t,r,n,i){var a=lookupOrIssueError(t,r,n);for(var o=0,s=i||e.emptyArray;o<s.length;o++){var c=s[o];a.relatedInformation=a.relatedInformation||[];if(e.length(a.relatedInformation)>=5)continue;addRelatedInfo(a,!e.length(a.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,n):e.createDiagnosticForNode(c,e.Diagnostics.and_here))}}function combineSymbolTables(t,r){if(!e.hasEntries(t))return r;if(!e.hasEntries(r))return t;var n=e.createSymbolTable();mergeSymbolTable(n,t);mergeSymbolTable(n,r);return n}function mergeSymbolTable(e,t){t.forEach(function(t,r){var n=e.get(r);e.set(r,n?mergeSymbol(n,t):t)})}function mergeModuleAugmentation(t){var r=t.parent;if(r.symbol.declarations[0]!==r){e.Debug.assert(r.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(r)){mergeSymbolTable(We,r.symbol.exports)}else{var n=!(t.parent.parent.flags&4194304)?e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found:undefined;var i=resolveExternalModuleNameWorker(t,t,n,true);if(!i){return}i=resolveExternalModuleSymbol(i);if(i.flags&1920){i=mergeSymbol(i,r.symbol)}else{error(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}}function addToSymbolTable(t,r,n){r.forEach(function(r,i){var a=t.get(i);if(a){e.forEach(a.declarations,addDeclarationDiagnostic(e.unescapeLeadingUnderscores(i),n))}else{t.set(i,r)}});function addDeclarationDiagnostic(t,r){return function(n){return Xt.add(e.createDiagnosticForNode(n,r,t))}}}function getSymbolLinks(e){if(e.flags&33554432)return e;var t=getSymbolId(e);return Jt[t]||(Jt[t]={})}function getNodeLinks(e){var t=getNodeId(e);return Wt[t]||(Wt[t]={flags:0})}function isGlobalSourceFile(t){return t.kind===279&&!e.isExternalOrCommonJsModule(t)}function getSymbol(t,r,n){if(n){var i=t.get(r);if(i){e.Debug.assert((e.getCheckFlags(i)&1)===0,"Should never get an instantiated symbol here.");if(i.flags&n){return i}if(i.flags&2097152){var a=resolveAlias(i);if(a===Q||a.flags&n){return i}}}}}function getSymbolsOfParameterPropertyDeclaration(t,r){var n=t.parent;var i=t.parent.parent;var a=getSymbol(n.locals,r,67220415);var o=getSymbol(getMembersOfSymbol(i.symbol),r,67220415);if(a&&o){return[a,o]}return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function isBlockScopedNameDeclaredBeforeUse(t,n){var i=e.getSourceFileOfNode(t);var a=e.getSourceFileOfNode(n);if(i!==a){if(E&&(i.externalModuleIndicator||a.externalModuleIndicator)||!x.outFile&&!x.out||isInTypeQuery(n)||t.flags&4194304){return true}if(isUsedInFunctionOrInstanceProperty(n,t)){return true}var o=r.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=n.pos){if(t.kind===186){var s=e.getAncestor(n,186);if(s){return e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos}return isBlockScopedNameDeclaredBeforeUse(e.getAncestor(t,237),n)}else if(t.kind===237){return!isImmediatelyUsedInInitializerOfBlockScopedVariable(t,n)}else if(e.isClassDeclaration(t)){return!e.findAncestor(n,function(r){return e.isComputedPropertyName(r)&&r.parent.parent===t})}return true}if(n.parent.kind===257||n.parent.kind===254&&n.parent.isExportEquals){return true}if(n.kind===254&&n.isExportEquals){return true}var c=e.getEnclosingBlockScopeContainer(t);return!!(n.flags&2097152)||isInTypeQuery(n)||isUsedInFunctionOrInstanceProperty(n,t,c);function isImmediatelyUsedInInitializerOfBlockScopedVariable(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 219:case 225:case 227:if(isSameScopeDescendentOf(r,t,n)){return true}break}var i=t.parent.parent;return e.isForInOrOfStatement(i)&&isSameScopeDescendentOf(r,i.expression,n)}function isUsedInFunctionOrInstanceProperty(t,r,n){return!!e.findAncestor(t,function(i){if(i===n){return"quit"}if(e.isFunctionLike(i)){return true}var a=i.parent&&i.parent.kind===154&&i.parent.initializer===i;if(a){if(e.hasModifier(i.parent,32)){if(r.kind===156){return true}}else{var o=r.kind===154&&!e.hasModifier(r,32);if(!o||e.getContainingClass(t)!==e.getContainingClass(r)){return true}}}return false})}}function resolveName(e,t,r,n,i,a,o,s){if(o===void 0){o=false}return resolveNameHelper(e,t,r,n,i,a,o,getSymbol,s)}function resolveNameHelper(t,r,n,i,a,o,s,c,u){var l=t;var f;var d;var p;var g;var _=t;var m;var y=false;e:while(t){if(t.locals&&!isGlobalSourceFile(t)){if(f=c(t.locals,r,n)){var h=true;if(e.isFunctionLike(t)&&d&&d!==t.body){if(n&f.flags&67897832&&d.kind!==291){h=f.flags&262144?d===t.type||d.kind===151||d.kind===150:false}if(n&f.flags&3){var v=t;if(x.target&&x.target>=2&&e.isParameter(d)&&v.body&&f.valueDeclaration.pos>=v.body.pos&&f.valueDeclaration.end<=v.body.end){h=false}else if(f.flags&1){h=d.kind===151||d===t.type&&!!e.findAncestor(f.valueDeclaration,e.isParameter)}}}else if(t.kind===175){h=d===t.trueType}if(h){break e}else{f=undefined}}}switch(t.kind){case 279:if(!e.isExternalOrCommonJsModule(t))break;y=true;case 244:var T=getSymbolOfNode(t).exports;if(t.kind===279||e.isAmbientModule(t)){if(f=T.get("default")){var b=e.getLocalSymbolForExportDefault(f);if(b&&f.flags&n&&b.escapedName===r){break e}f=undefined}var C=T.get(r);if(C&&C.flags===2097152&&e.getDeclarationOfKind(C,257)){break}}if(r!=="default"&&(f=c(T,r,n&2623475))){if(e.isSourceFile(t)&&t.commonJsModuleIndicator&&!f.declarations.some(e.isJSDocTypeAlias)){f=undefined}else{break e}}break;case 243:if(f=c(getSymbolOfNode(t).exports,r,n&8)){break e}break;case 154:case 153:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var E=findConstructorDeclaration(t.parent);if(E&&E.locals){if(c(E.locals,r,n&67220415)){g=t}}}break;case 240:case 209:case 241:if(f=c(getSymbolOfNode(t).members||S,r,n&67897832)){if(!isTypeParameterSymbolDeclaredInContainer(f,t)){f=undefined;break}if(d&&e.hasModifier(d,32)){error(_,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return undefined}break e}if(t.kind===209&&n&32){var D=t.name;if(D&&r===D.escapedText){f=t.symbol;break e}}break;case 211:if(d===t.expression&&t.parent.token===86){var k=t.parent.parent;if(e.isClassLike(k)&&(f=c(getSymbolOfNode(k).members,r,n&67897832))){if(i){error(_,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters)}return undefined}}break;case 149:m=t.parent.parent;if(e.isClassLike(m)||m.kind===241){if(f=c(getSymbolOfNode(m).members,r,n&67897832)){error(_,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return undefined}}break;case 156:case 155:case 157:case 158:case 159:case 239:case 197:if(n&3&&r==="arguments"){f=B;break e}break;case 196:if(n&3&&r==="arguments"){f=B;break e}if(n&16){var N=t.name;if(N&&r===N.escapedText){f=t.symbol;break e}}break;case 152:if(t.parent&&t.parent.kind===151){t=t.parent}if(t.parent&&e.isClassElement(t.parent)){t=t.parent}break;case 304:case 297:t=e.getJSDocHost(t);break}if(isSelfReferenceLocation(t)){p=t}d=t;t=t.parent}if(o&&f&&(!p||f!==p.symbol)){f.isReferenced|=n}if(!f){if(d){e.Debug.assert(d.kind===279);if(d.commonJsModuleIndicator&&r==="exports"&&n&d.symbol.flags){return d.symbol}}if(!s){f=c(We,r,n)}}if(!f){if(l&&e.isInJSFile(l)&&l.parent){if(e.isRequireCall(l.parent,false)){return j}}}if(!f){if(i){if(!_||!checkAndReportErrorForMissingPrefix(_,r,a)&&!checkAndReportErrorForExtendingInterface(_)&&!checkAndReportErrorForUsingTypeAsNamespace(_,r,n)&&!checkAndReportErrorForUsingTypeAsValue(_,r,n)&&!checkAndReportErrorForUsingNamespaceModuleAsValue(_,r,n)){var A=void 0;if(u&&Rt<Bt){A=getSuggestedSymbolForNonexistentSymbol(l,r,n);if(A){var O=symbolToString(A);var F=error(_,u,diagnosticName(a),O);if(A.valueDeclaration){addRelatedInfo(F,e.createDiagnosticForNode(A.valueDeclaration,e.Diagnostics._0_is_declared_here,O))}}}if(!A){error(_,i,diagnosticName(a))}Rt++}}return undefined}if(i){if(g){var P=g.name;error(_,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(P),diagnosticName(a));return undefined}if(_&&(n&2||(n&32||n&384)&&(n&67220415)===67220415)){var I=getExportSymbolOfValueSymbolIfExported(f);if(I.flags&2||I.flags&32||I.flags&384){checkResolvedBlockScopedVariable(I,_)}}if(f&&y&&(n&67220415)===67220415&&!(l.flags&2097152)){if(e.some(f.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})){error(_,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}}}return f}function isSelfReferenceLocation(e){switch(e.kind){case 239:case 240:case 241:case 243:case 242:case 244:return true;default:return false}}function diagnosticName(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function isTypeParameterSymbolDeclaredInContainer(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(a.kind===150){var o=e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent;if(o===r){return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}}}return false}function checkAndReportErrorForMissingPrefix(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||isTypeReferenceIdentifier(t)||isInTypeQuery(t)){return false}var i=e.getThisContainer(t,false);var a=i;while(a){if(e.isClassLike(a.parent)){var o=getSymbolOfNode(a.parent);if(!o){break}var s=getTypeOfSymbol(o);if(getPropertyOfType(s,r)){error(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,diagnosticName(n),symbolToString(o));return true}if(a===i&&!e.hasModifier(a,32)){var c=getDeclaredTypeOfSymbol(o).thisType;if(getPropertyOfType(c,r)){error(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,diagnosticName(n));return true}}}a=a.parent}return false}function checkAndReportErrorForExtendingInterface(t){var r=getEntityNameForExtendingInterface(t);if(r&&resolveEntityName(r,64,true)){error(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r));return true}return false}function getEntityNameForExtendingInterface(t){switch(t.kind){case 72:case 189:return t.parent?getEntityNameForExtendingInterface(t.parent):undefined;case 211:if(e.isEntityNameExpression(t.expression)){return t.expression}default:return undefined}}function checkAndReportErrorForUsingTypeAsNamespace(t,r,n){var i=1920|(e.isInJSFile(t)?67220415:0);if(n===i){var a=resolveSymbol(resolveName(t,r,67897832&~i,undefined,undefined,false));var 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;var c=getPropertyOfType(getDeclaredTypeOfSymbol(a),s);if(c){error(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(r),e.unescapeLeadingUnderscores(s));return true}}error(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r));return true}}return false}function checkAndReportErrorForUsingTypeAsValue(t,r,n){if(n&(67220415&~1024)){if(r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"){error(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r));return true}var i=resolveSymbol(resolveName(t,r,67897832&~67220415,undefined,undefined,false));if(i&&!(i.flags&1024)){var a=r==="Promise"||r==="Symbol"?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;error(t,a,e.unescapeLeadingUnderscores(r));return true}}return false}function checkAndReportErrorForUsingNamespaceModuleAsValue(t,r,n){if(n&(67220415&~1024&~67897832)){var i=resolveSymbol(resolveName(t,r,1024&~67220415,undefined,undefined,false));if(i){error(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r));return true}}else if(n&(67897832&~1024&~67220415)){var i=resolveSymbol(resolveName(t,r,(512|1024)&~67897832,undefined,undefined,false));if(i){error(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r));return true}}return false}function checkResolvedBlockScopedVariable(t,r){e.Debug.assert(!!(t.flags&2||t.flags&32||t.flags&384));var n=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||t.kind===243||e.isInJSFile(t)&&!!e.getJSDocEnumTag(t)});if(n===undefined)return e.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(n.flags&4194304)&&!isBlockScopedNameDeclaredBeforeUse(n,r)){var i=void 0;var a=e.declarationNameToString(e.getNameOfDeclaration(n));if(t.flags&2){i=error(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a)}else if(t.flags&32){i=error(r,e.Diagnostics.Class_0_used_before_its_declaration,a)}else if(t.flags&256){i=error(r,e.Diagnostics.Enum_0_used_before_its_declaration,a)}else{e.Debug.assert(!!(t.flags&128));if(x.preserveConstEnums){i=error(r,e.Diagnostics.Class_0_used_before_its_declaration,a)}}if(i){addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}}function isSameScopeDescendentOf(t,r,n){return!!r&&!!e.findAncestor(t,function(t){return t===n||e.isFunctionLike(t)?"quit":t===r})}function getAnyImportSyntax(e){switch(e.kind){case 248:return e;case 250:return e.parent;case 251:return e.parent.parent;case 253:return e.parent.parent.parent;default:return undefined}}function getDeclarationOfAliasSymbol(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function getTargetOfImportEqualsDeclaration(t,r){if(t.moduleReference.kind===259){return resolveExternalModuleSymbol(resolveExternalModuleName(t,e.getExternalModuleImportEqualsDeclarationExpression(t)))}return getSymbolOfPartOfRightHandSideOfImportEquals(t.moduleReference,r)}function resolveExportByName(e,t,r){var n=e.exports.get("export=");return n?getPropertyOfType(getTypeOfSymbol(n),t):resolveSymbol(e.exports.get(t),r)}function isSyntacticDefault(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasModifier(t,512)||e.isExportSpecifier(t)}function canHaveSyntheticDefault(t,r,n){if(!D){return false}if(!t||t.isDeclarationFile){var i=resolveExportByName(r,"default",true);if(i&&e.some(i.declarations,isSyntacticDefault)){return false}if(resolveExportByName(r,e.escapeLeadingUnderscores("__esModule"),n)){return false}return true}if(!e.isSourceFileJS(t)){return hasExportAssignmentSymbol(r)}return!t.externalModuleIndicator&&!resolveExportByName(r,e.escapeLeadingUnderscores("__esModule"),n)}function getTargetOfImportClause(t,r){var n=resolveExternalModuleName(t,t.parent.moduleSpecifier);if(n){var i=void 0;if(e.isShorthandAmbientModuleSymbol(n)){i=n}else{i=resolveExportByName(n,"default",r)}var a=e.find(n.declarations,e.isSourceFile);var o=canHaveSyntheticDefault(a,n,r);if(!i&&!o){error(t.name,e.Diagnostics.Module_0_has_no_default_export,symbolToString(n))}else if(o){return resolveExternalModuleSymbol(n,r)||resolveSymbol(n,r)}return i}}function getTargetOfNamespaceImport(e,t){var r=e.parent.parent.moduleSpecifier;return resolveESModuleSymbol(resolveExternalModuleName(e,r),r,t)}function combineValueAndTypeSymbols(t,r){if(t===Q&&r===Q){return Q}if(t.flags&(67897832|1920)){return t}var n=createSymbol(t.flags|r.flags,t.escapedName);n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues);n.parent=t.parent||r.parent;if(t.valueDeclaration)n.valueDeclaration=t.valueDeclaration;if(r.members)n.members=r.members;if(t.exports)n.exports=t.exports;return n}function getExportOfModule(e,t,r){if(e.flags&1536){return resolveSymbol(getExportsOfSymbol(e).get(t),r)}}function getPropertyOfVariable(e,t){if(e.flags&3){var r=e.valueDeclaration.type;if(r){return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(r),t))}}}function getExternalModuleMember(t,r,n){if(n===void 0){n=false}var i=resolveExternalModuleName(t,t.moduleSpecifier);var a=resolveESModuleSymbol(i,t.moduleSpecifier,n);if(a){var o=r.propertyName||r.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(i)){return i}var s=void 0;if(i&&i.exports&&i.exports.get("export=")){s=getPropertyOfType(getTypeOfSymbol(a),o.escapedText)}else{s=getPropertyOfVariable(a,o.escapedText)}s=resolveSymbol(s,n);var c=getExportOfModule(a,o.escapedText,n);if(!c&&D&&o.escapedText==="default"){c=resolveExternalModuleSymbol(i,n)||resolveSymbol(i,n)}var u=c&&s&&c!==s?combineValueAndTypeSymbols(s,c):c||s;if(!u){var l=getFullyQualifiedName(i,t);var f=e.declarationNameToString(o);var d=getSuggestedSymbolForNonexistentModule(o,a);if(d!==undefined){var p=symbolToString(d);var g=error(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,l,f,p);if(d.valueDeclaration){addRelatedInfo(g,e.createDiagnosticForNode(d.valueDeclaration,e.Diagnostics._0_is_declared_here,p))}}else{error(o,e.Diagnostics.Module_0_has_no_exported_member_1,l,f)}}return u}}}function getTargetOfImportSpecifier(e,t){return getExternalModuleMember(e.parent.parent.parent,e,t)}function getTargetOfNamespaceExportDeclaration(e,t){return resolveExternalModuleSymbol(e.parent.symbol,t)}function getTargetOfExportSpecifier(e,t,r){return e.parent.parent.moduleSpecifier?getExternalModuleMember(e.parent.parent,e,r):resolveEntityName(e.propertyName||e.name,t,false,r)}function getTargetOfExportAssignment(t,r){var n=e.isExportAssignment(t)?t.expression:t.right;if(e.isClassExpression(n)){return checkExpression(n).symbol}var i=resolveEntityName(n,67220415|67897832|1920,true,r);if(i){return i}checkExpression(n);return getNodeLinks(n).resolvedSymbol}function getTargetOfAliasDeclaration(t,r){if(r===void 0){r=false}switch(t.kind){case 248:return getTargetOfImportEqualsDeclaration(t,r);case 250:return getTargetOfImportClause(t,r);case 251:return getTargetOfNamespaceImport(t,r);case 253:return getTargetOfImportSpecifier(t,r);case 257:return getTargetOfExportSpecifier(t,67220415|67897832|1920,r);case 254:case 204:return getTargetOfExportAssignment(t,r);case 247:return getTargetOfNamespaceExportDeclaration(t,r);default:return e.Debug.fail()}}function isNonLocalAlias(e,t){if(t===void 0){t=67220415|67897832|1920}if(!e)return false;return(e.flags&(2097152|t))===2097152||!!(e.flags&2097152&&e.flags&67108864)}function resolveSymbol(e,t){return!t&&isNonLocalAlias(e)?resolveAlias(e):e}function resolveAlias(t){e.Debug.assert((t.flags&2097152)!==0,"Should only get Alias here.");var r=getSymbolLinks(t);if(!r.target){r.target=$;var n=getDeclarationOfAliasSymbol(t);if(!n)return e.Debug.fail();var i=getTargetOfAliasDeclaration(n);if(r.target===$){r.target=i||Q}else{error(n,e.Diagnostics.Circular_definition_of_import_alias_0,symbolToString(t))}}else if(r.target===$){r.target=Q}return r.target}function markExportAsReferenced(e){var t=getSymbolOfNode(e);var r=resolveAlias(t);if(r){var n=r===Q||r.flags&67220415&&!isConstEnumOrConstEnumOnlyModule(r);if(n){markAliasSymbolAsReferenced(t)}}}function markAliasSymbolAsReferenced(t){var r=getSymbolLinks(t);if(!r.referenced){r.referenced=true;var n=getDeclarationOfAliasSymbol(t);if(!n)return e.Debug.fail();if(n.kind===254){checkExpressionCached(n.expression)}else if(n.kind===257){checkExpressionCached(n.propertyName||n.name)}else if(e.isInternalModuleImportEqualsDeclaration(n)){checkExpressionCached(n.moduleReference)}}}function getSymbolOfPartOfRightHandSideOfImportEquals(t,r){if(t.kind===72&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}if(t.kind===72||t.parent.kind===148){return resolveEntityName(t,1920,false,r)}else{e.Debug.assert(t.parent.kind===248);return resolveEntityName(t,67220415|67897832|1920,false,r)}}function getFullyQualifiedName(e,t){return e.parent?getFullyQualifiedName(e.parent,t)+"."+symbolToString(e):symbolToString(e,t,undefined,16|4)}function resolveEntityName(t,r,n,i,a){if(e.nodeIsMissing(t)){return undefined}var o=1920|(e.isInJSFile(t)?r&67220415:0);var s;if(t.kind===72){var c=r===o?e.Diagnostics.Cannot_find_namespace_0:getCannotFindNameDiagnosticForName(getFirstIdentifier(t).escapedText);var u=e.isInJSFile(t)?resolveEntityNameFromAssignmentDeclaration(t,r):undefined;s=resolveName(a||t,t.escapedText,r,n||u?undefined:c,t,true);if(!s){return u}}else if(t.kind===148||t.kind===189){var l=t.kind===148?t.left:t.expression;var f=t.kind===148?t.right:t.name;var d=resolveEntityName(l,o,n,false,a);if(!d||e.nodeIsMissing(f)){return undefined}else if(d===Q){return d}if(e.isInJSFile(t)){if(d.valueDeclaration&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&isCommonJsRequire(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0];var g=resolveExternalModuleName(p,p);if(g){var _=resolveExternalModuleSymbol(g);if(_){d=_}}}}s=getSymbol(getExportsOfSymbol(d),f.escapedText,r);if(!s){if(!n){error(f,e.Diagnostics.Namespace_0_has_no_exported_member_1,getFullyQualifiedName(d),e.declarationNameToString(f))}return undefined}}else{throw e.Debug.assertNever(t,"Unknown entity name kind.")}e.Debug.assert((e.getCheckFlags(s)&1)===0,"Should never get an instantiated symbol here.");return s.flags&r||i?s:resolveAlias(s)}function resolveEntityNameFromAssignmentDeclaration(e,t){if(isJSDocTypeReference(e.parent)){var r=getAssignmentDeclarationLocation(e.parent);if(r){return resolveName(r,e.escapedText,t,undefined,e,true)}}}function getAssignmentDeclarationLocation(t){var r=e.findAncestor(t,function(t){return!(e.isJSDocNode(t)||t.flags&2097152)?"quit":e.isJSDocTypeAlias(t)});if(r){return}var n=e.getJSDocHost(t);if(e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&e.getAssignmentDeclarationKind(n.expression)===3){var i=getSymbolOfNode(n.expression.left);if(i){return getDeclarationOfJSPrototypeContainer(i)}}if((e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6){var i=getSymbolOfNode(n.parent.parent.left);if(i){return getDeclarationOfJSPrototypeContainer(i)}}var a=e.getHostSignatureFromJSDocHost(n);if(a){var i=getSymbolOfNode(a);return i&&i.valueDeclaration}}function getDeclarationOfJSPrototypeContainer(t){var r=t.parent.valueDeclaration;if(!r){return undefined}var n=e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):undefined;return n||r}function resolveExternalModuleName(t,r,n){return resolveExternalModuleNameWorker(t,r,n?undefined:e.Diagnostics.Cannot_find_module_0)}function resolveExternalModuleNameWorker(t,r,n,i){if(i===void 0){i=false}return e.isStringLiteralLike(r)?resolveExternalModule(t,r.text,n,r,i):undefined}function resolveExternalModule(t,n,i,a,o){if(o===void 0){o=false}if(n===undefined){return}if(e.startsWith(n,"@types/")){var s=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;var c=e.removePrefix(n,"@types/");error(a,s,c,n)}var u=tryFindAmbientModule(n,true);if(u){return u}var l=e.getSourceFileOfNode(t);var f=e.getResolvedModule(l,n);var d=f&&e.getResolutionDiagnostic(x,f);var p=f&&!d&&r.getSourceFile(f.resolvedFileName);if(p){if(p.symbol){if(f.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(f.extension)){errorOnImplicitAnyModule(false,a,f,n)}return getMergedSymbol(p.symbol)}if(i){error(a,e.Diagnostics.File_0_is_not_a_module,p.fileName)}return undefined}if(Ke){var g=e.findBestPatternMatch(Ke,function(e){return e.pattern},n);if(g){return getMergedSymbol(g.symbol)}}if(f&&!e.resolutionExtensionIsTSOrJson(f.extension)&&d===undefined||d===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(o){var s=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;error(a,s,n,f.resolvedFileName)}else{errorOnImplicitAnyModule(F&&!!i,a,f,n)}return undefined}if(i){if(e.pathIsRelative(n)){var _=e.getSourceFileOfNode(t);var m=_.redirectedReferences;if(m){var y=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(_.fileName));for(var h=0,v=[".ts",".tsx"];h<v.length;h++){var T=v[h];var S=y+T;if(m.indexOf(S)>=0){error(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,n,S);return undefined}}}}if(d){error(a,d,n,f.resolvedFileName)}else{var b=e.tryExtractTSExtension(n);if(b){var s=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;error(a,s,b,e.removeExtension(n,b))}else if(!x.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(x)){error(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n)}else{error(a,i,n)}}}return undefined}function errorOnImplicitAnyModule(t,r,n,i){var a=n.packageId,o=n.resolvedFileName;var s=!e.isExternalModuleNameRelative(i)&&a?typesPackageExists(a.name)?e.chainDiagnosticMessages(undefined,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,a.name,e.mangleScopedPackageName(a.name)):e.chainDiagnosticMessages(undefined,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(a.name)):undefined;errorOrSuggestion(t,r,e.chainDiagnosticMessages(s,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,o))}function typesPackageExists(t){return u().has(e.getTypesPackageName(t))}function resolveExternalModuleSymbol(e,t){if(e){var r=resolveSymbol(e.exports.get("export="),t);var n=getCommonJsExportEquals(r,e);return getMergedSymbol(n)||e}return undefined}function getCommonJsExportEquals(t,r){if(!t||t===Q||t===r||r.exports.size===1||t.flags&2097152){return t}var n=cloneSymbol(t);if(n.exports===undefined){n.flags=n.flags|512;n.exports=e.createSymbolTable()}r.exports.forEach(function(e,t){if(t==="export=")return;n.exports.set(t,n.exports.has(t)?mergeSymbol(n.exports.get(t),e):e)});return n}function resolveESModuleSymbol(t,r,n){var i=resolveExternalModuleSymbol(t,n);if(!n&&i){if(!(i.flags&(1536|3))&&!e.getDeclarationOfKind(i,279)){error(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,symbolToString(t));return i}if(x.esModuleInterop){var a=r.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=getTypeOfSymbol(i);var s=getSignaturesOfStructuredType(o,0);if(!s||!s.length){s=getSignaturesOfStructuredType(o,1)}if(s&&s.length){var c=getTypeWithSyntheticDefaultImportType(o,i,t);var u=createSymbol(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[];u.parent=i.parent;u.target=i;u.originatingImport=a;if(i.valueDeclaration)u.valueDeclaration=i.valueDeclaration;if(i.constEnumOnlyModule)u.constEnumOnlyModule=true;if(i.members)u.members=e.cloneMap(i.members);if(i.exports)u.exports=e.cloneMap(i.exports);var l=resolveStructuredTypeMembers(c);u.type=createAnonymousType(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo);return u}}}}return i}function hasExportAssignmentSymbol(e){return e.exports.get("export=")!==undefined}function getExportsOfModuleAsArray(e){return symbolsToArray(getExportsOfModule(e))}function getExportsAndPropertiesOfModule(t){var r=getExportsOfModuleAsArray(t);var n=resolveExternalModuleSymbol(t);if(n!==t){e.addRange(r,getPropertiesOfType(getTypeOfSymbol(n)))}return r}function tryGetMemberInModuleExports(e,t){var r=getExportsOfModule(t);if(r){return r.get(e)}}function tryGetMemberInModuleExportsAndProperties(e,t){var r=tryGetMemberInModuleExports(e,t);if(r){return r}var n=resolveExternalModuleSymbol(t);if(n===t){return undefined}var i=getTypeOfSymbol(n);return i.flags&131068?undefined:getPropertyOfType(i,e)}function getExportsOfSymbol(e){return e.flags&32?getResolvedMembersOrExportsOfSymbol(e,"resolvedExports"):e.flags&1536?getExportsOfModule(e):e.exports||S}function getExportsOfModule(e){var t=getSymbolLinks(e);return t.resolvedExports||(t.resolvedExports=getExportsOfModuleWorker(e))}function extendExportSymbols(t,r,n,i){if(!r)return;r.forEach(function(r,a){if(a==="default")return;var o=t.get(a);if(!o){t.set(a,r);if(n&&i){n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}else if(n&&i&&o&&resolveSymbol(o)!==resolveSymbol(r)){var s=n.get(a);if(!s.exportsWithDuplicate){s.exportsWithDuplicate=[i]}else{s.exportsWithDuplicate.push(i)}}})}function getExportsOfModuleWorker(t){var r=[];t=resolveExternalModuleSymbol(t);return visit(t)||S;function visit(t){if(!(t&&t.exports&&e.pushIfUnique(r,t))){return}var n=e.cloneMap(t.exports);var i=t.exports.get("__export");if(i){var a=e.createSymbolTable();var o=e.createMap();for(var s=0,c=i.declarations;s<c.length;s++){var u=c[s];var l=resolveExternalModuleName(u,u.moduleSpecifier);var f=visit(l);extendExportSymbols(a,f,o,u)}o.forEach(function(t,r){var i=t.exportsWithDuplicate;if(r==="export="||!(i&&i.length)||n.has(r)){return}for(var a=0,s=i;a<s.length;a++){var c=s[a];Xt.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,o.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}});extendExportSymbols(n,a)}return n}}function getMergedSymbol(e){var t;return e&&e.mergeId&&(t=jt[e.mergeId])?t:e}function getSymbolOfNode(e){return getMergedSymbol(e.symbol&&getLateBoundSymbol(e.symbol))}function getParentOfSymbol(e){return getMergedSymbol(e.parent&&getLateBoundSymbol(e.parent))}function getAlternativeContainingModules(t,n){var i=e.getSourceFileOfNode(n);var a=""+getNodeId(i);var o=getSymbolLinks(t);var s;if(o.extendedContainersByFile&&(s=o.extendedContainersByFile.get(a))){return s}if(i&&i.imports){for(var c=0,u=i.imports;c<u.length;c++){var l=u[c];if(e.nodeIsSynthesized(l))continue;var f=resolveExternalModuleName(n,l,true);if(!f)continue;var d=getAliasForSymbolInContainer(f,t);if(!d)continue;s=e.append(s,f)}if(e.length(s)){(o.extendedContainersByFile||(o.extendedContainersByFile=e.createMap())).set(a,s);return s}}if(o.extendedContainers){return o.extendedContainers}var p=r.getSourceFiles();for(var g=0,_=p;g<_.length;g++){var m=_[g];if(!e.isExternalModule(m))continue;var y=getSymbolOfNode(m);var d=getAliasForSymbolInContainer(y,t);if(!d)continue;s=e.append(s,y)}return o.extendedContainers=s||e.emptyArray}function getContainersOfSymbol(t,r){var n=getParentOfSymbol(t);if(n){var i=e.mapDefined(n.declarations,fileSymbolIfFileSymbolExportEqualsContainer);var a=r&&getAlternativeContainingModules(t,r);if(r&&getAccessibleSymbolChain(n,r,1920,false)){return e.concatenate(e.concatenate([n],i),a)}var o=e.append(i,n);return e.concatenate(o,a)}var s=e.mapDefined(t.declarations,function(t){return!e.isAmbientModule(t)&&t.parent&&hasNonGlobalAugmentationExternalModuleSymbol(t.parent)?getSymbolOfNode(t.parent):undefined});if(!e.length(s)){return undefined}return e.mapDefined(s,function(e){return getAliasForSymbolInContainer(e,t)?e:undefined});function fileSymbolIfFileSymbolExportEqualsContainer(e){var t=getExternalModuleContainer(e);var r=t&&t.exports&&t.exports.get("export=");return resolveSymbol(r)===resolveSymbol(n)?t:undefined}}function getAliasForSymbolInContainer(t,r){if(t===getParentOfSymbol(r)){return r}var n=getExportsOfSymbol(t);var i=n.get(r.escapedName);if(i&&symbolRefersToTarget(i)){return i}return e.forEachEntry(n,function(e){if(symbolRefersToTarget(e)){return e}});function symbolRefersToTarget(e){if(e===r||resolveSymbol(e)===r||resolveSymbol(e)===resolveSymbol(r)){return e}}}function getExportSymbolOfValueSymbolIfExported(e){return getMergedSymbol(e&&(e.flags&1048576)!==0?e.exportSymbol:e)}function symbolIsValue(e){return!!(e.flags&67220415||e.flags&2097152&&resolveAlias(e).flags&67220415)}function findConstructorDeclaration(t){var r=t.members;for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===157&&e.nodeIsPresent(a.body)){return a}}}function createType(e){var t=new g(W,e);m++;t.id=m;return t}function createIntrinsicType(e,t){var r=createType(e);r.intrinsicName=t;return r}function createBooleanType(e){var t=getUnionType(e);t.flags|=16;t.intrinsicName="boolean";return t}function createObjectType(e,t){var r=createType(524288);r.objectFlags=e;r.symbol=t;r.members=undefined;r.properties=undefined;r.callSignatures=undefined;r.constructSignatures=undefined;r.stringIndexInfo=undefined;r.numberIndexInfo=undefined;return r}function createTypeofType(){return getUnionType(e.arrayFrom(er.keys(),getLiteralType))}function isReservedMemberName(e){return e.charCodeAt(0)===95&&e.charCodeAt(1)===95&&e.charCodeAt(2)!==95&&e.charCodeAt(2)!==64}function getNamedMembers(t){var r;t.forEach(function(e,t){if(!isReservedMemberName(t)&&symbolIsValue(e)){(r||(r=[])).push(e)}});return r||e.emptyArray}function setStructuredTypeMembers(t,r,n,i,a,o){t.members=r;t.properties=r===S?e.emptyArray:getNamedMembers(r);t.callSignatures=n;t.constructSignatures=i;t.stringIndexInfo=a;t.numberIndexInfo=o;return t}function createAnonymousType(e,t,r,n,i,a){return setStructuredTypeMembers(createObjectType(16,e),t,r,n,i,a)}function forEachSymbolTableInScope(t,r){var n;for(var i=t;i;i=i.parent){if(i.locals&&!isGlobalSourceFile(i)){if(n=r(i.locals)){return n}}switch(i.kind){case 279:if(!e.isExternalOrCommonJsModule(i)){break}case 244:if(n=r(getSymbolOfNode(i).exports)){return n}break}}return r(We)}function getQualifiedLeftMeaning(e){return e===67220415?67220415:1920}function getAccessibleSymbolChain(t,r,n,i,a){if(a===void 0){a=e.createMap()}if(!(t&&!isPropertyOrMethodDeclarationSymbol(t))){return undefined}var o=""+getSymbolId(t);var s=a.get(o);if(!s){a.set(o,s=[])}return forEachSymbolTableInScope(r,getAccessibleSymbolChainFromSymbolTable);function getAccessibleSymbolChainFromSymbolTable(t,r){if(!e.pushIfUnique(s,t)){return undefined}var n=trySymbolTable(t,r);s.pop();return n}function canQualifySymbol(e,t){return!needsQualification(e,r,t)||!!getAccessibleSymbolChain(e.parent,r,getQualifiedLeftMeaning(t),i,a)}function isAccessible(r,i,a){return t===(i||r)&&!e.some(r.declarations,hasNonGlobalAugmentationExternalModuleSymbol)&&(a||canQualifySymbol(r,n))}function trySymbolTable(a,o){if(isAccessible(a.get(t.escapedName),undefined,o)){return[t]}return e.forEachEntry(a,function(a){if(a.flags&2097152&&a.escapedName!=="export="&&a.escapedName!=="default"&&!(e.isUMDExportSymbol(a)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(a.declarations,e.isExternalModuleImportEqualsDeclaration))&&(o||!e.getDeclarationOfKind(a,257))){var s=resolveAlias(a);if(isAccessible(a,s,o)){return[a]}var c=getExportsOfSymbol(s);var u=c&&getAccessibleSymbolChainFromSymbolTable(c,true);if(u&&canQualifySymbol(a,getQualifiedLeftMeaning(n))){return[a].concat(u)}}if(a.escapedName===t.escapedName&&a.exportSymbol){if(isAccessible(getMergedSymbol(a.exportSymbol),undefined,o)){return[t]}}})}}function needsQualification(t,r,n){var i=false;forEachSymbolTableInScope(r,function(r){var a=getMergedSymbol(r.get(t.escapedName));if(!a){return false}if(a===t){return true}a=a.flags&2097152&&!e.getDeclarationOfKind(a,257)?resolveAlias(a):a;if(a.flags&n){i=true;return true}return false});return i}function isPropertyOrMethodDeclarationSymbol(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 154:case 156:case 158:case 159:continue;default:return false}}return true}return false}function isTypeSymbolAccessible(e,t){var r=isSymbolAccessible(e,t,67897832,false);return r.accessibility===0}function isValueSymbolAccessible(e,t){var r=isSymbolAccessible(e,t,67220415,false);return r.accessibility===0}function isAnySymbolAccessible(t,r,n,i,a){if(!e.length(t))return;var o;for(var s=0,c=t;s<c.length;s++){var u=c[s];var l=getAccessibleSymbolChain(u,r,i,false);if(l){o=u;var f=hasVisibleDeclarations(l[0],a);if(f){return f}}else{if(e.some(u.declarations,hasNonGlobalAugmentationExternalModuleSymbol)){return{accessibility:0}}}var d=getContainersOfSymbol(u,r);var p=e.first(u.declarations);if(!e.length(d)&&i&67220415&&p&&e.isObjectLiteralExpression(p)){if(p.parent&&e.isVariableDeclaration(p.parent)&&p===p.parent.initializer){d=[getSymbolOfNode(p.parent)]}}var g=isAnySymbolAccessible(d,r,n,n===u?getQualifiedLeftMeaning(i):i,a);if(g){return g}}if(o){return{accessibility:1,errorSymbolName:symbolToString(n,r,i),errorModuleName:o!==n?symbolToString(o,r,1920):undefined}}}function isSymbolAccessible(t,r,n,i){if(t&&r){var a=isAnySymbolAccessible([t],r,t,n,i);if(a){return a}var o=e.forEach(t.declarations,getExternalModuleContainer);if(o){var s=getExternalModuleContainer(r);if(o!==s){return{accessibility:2,errorSymbolName:symbolToString(t,r,n),errorModuleName:symbolToString(o)}}}return{accessibility:1,errorSymbolName:symbolToString(t,r,n)}}return{accessibility:0}}function getExternalModuleContainer(t){var r=e.findAncestor(t,hasExternalModuleSymbol);return r&&getSymbolOfNode(r)}function hasExternalModuleSymbol(t){return e.isAmbientModule(t)||t.kind===279&&e.isExternalOrCommonJsModule(t)}function hasNonGlobalAugmentationExternalModuleSymbol(t){return e.isModuleWithStringLiteralName(t)||t.kind===279&&e.isExternalOrCommonJsModule(t)}function hasVisibleDeclarations(t,r){var n;if(!e.every(t.declarations,getIsDeclarationVisible)){return undefined}return{accessibility:0,aliasesToMakeVisible:n};function getIsDeclarationVisible(t){if(!isDeclarationVisible(t)){var r=getAnyImportSyntax(t);if(r&&!e.hasModifier(r,1)&&isDeclarationVisible(r.parent)){return addVisibleAlias(t,r)}else if(e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasModifier(t.parent.parent,1)&&isDeclarationVisible(t.parent.parent.parent)){return addVisibleAlias(t,t.parent.parent)}else if(e.isLateVisibilityPaintedStatement(t)&&!e.hasModifier(t,1)&&isDeclarationVisible(t.parent)){return addVisibleAlias(t,t)}return false}return true}function addVisibleAlias(t,i){if(r){getNodeLinks(t).isVisible=true;n=e.appendIfUnique(n,i)}return true}}function isEntityNameVisible(t,r){var n;if(t.parent.kind===167||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||t.parent.kind===149){n=67220415|1048576}else if(t.kind===148||t.kind===189||t.parent.kind===248){n=1920}else{n=67897832}var i=getFirstIdentifier(t);var a=resolveName(r,i.escapedText,n,undefined,undefined,false);return a&&hasVisibleDeclarations(a,true)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function symbolToString(t,r,n,i,a){if(i===void 0){i=4}var o=70221824;if(i&2){o|=128}if(i&1){o|=512}if(i&8){o|=16384}if(i&16){o|=134217728}var s=i&4?L.symbolToExpression:L.symbolToEntityName;return a?symbolToStringWorker(a).getText():e.usingSingleLineStringWriter(symbolToStringWorker);function symbolToStringWorker(i){var a=s(t,n,r,o);var c=e.createPrinter({removeComments:true});var u=r&&e.getSourceFileOfNode(r);c.writeNode(4,a,u,i);return i}}function signatureToString(t,r,n,i,a){if(n===void 0){n=0}return a?signatureToStringWorker(a).getText():e.usingSingleLineStringWriter(signatureToStringWorker);function signatureToStringWorker(a){var o;if(n&262144){o=i===1?166:165}else{o=i===1?161:160}var s=L.signatureToSignatureDeclaration(t,o,r,toNodeBuilderFlags(n)|70221824|512);var c=e.createPrinter({removeComments:true,omitTrailingSemicolon:true});var u=r&&e.getSourceFileOfNode(r);c.writeNode(4,s,u,e.getTrailingSemicolonOmittingWriter(a));return a}}function typeToString(t,r,n,i){if(n===void 0){n=1048576|16384}if(i===void 0){i=e.createTextWriter("")}var a=x.noErrorTruncation||n&1;var o=L.typeToTypeNode(t,r,toNodeBuilderFlags(n)|70221824|(a?1:0),i);if(o===undefined)return e.Debug.fail("should always get typenode");var s={removeComments:true};var c=e.createPrinter(s);var u=r&&e.getSourceFileOfNode(r);c.writeNode(4,o,u,i);var l=i.getText();var f=a?undefined:e.defaultMaximumTruncationLength*2;if(f&&l&&l.length>=f){return l.substr(0,f-"...".length)+"..."}return l}function toNodeBuilderFlags(e){if(e===void 0){e=0}return e&9469291}function createNodeBuilder(){return{typeToTypeNode:function(e,t,r,n){return withContext(t,r,n,function(t){return typeToTypeNodeHelper(e,t)})},indexInfoToIndexSignatureDeclaration:function(e,t,r,n,i){return withContext(r,n,i,function(r){return indexInfoToIndexSignatureDeclarationHelper(e,t,r)})},signatureToSignatureDeclaration:function(e,t,r,n,i){return withContext(r,n,i,function(r){return signatureToSignatureDeclarationHelper(e,t,r)})},symbolToEntityName:function(e,t,r,n,i){return withContext(r,n,i,function(r){return symbolToName(e,r,t,false)})},symbolToExpression:function(e,t,r,n,i){return withContext(r,n,i,function(r){return symbolToExpression(e,r,t)})},symbolToTypeParameterDeclarations:function(e,t,r,n){return withContext(t,r,n,function(t){return typeParametersToTypeParameterDeclarations(e,t)})},symbolToParameterDeclaration:function(e,t,r,n){return withContext(t,r,n,function(t){return symbolToParameterDeclaration(e,t)})},typeParameterToDeclaration:function(e,t,r,n){return withContext(t,r,n,function(t){return typeParameterToDeclaration(e,t)})}};function withContext(t,n,i,a){e.Debug.assert(t===undefined||(t.flags&8)===0);var o={enclosingDeclaration:t,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:n&134217728?{getCommonSourceDirectory:r.getCommonSourceDirectory?function(){return r.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return r.getSourceFiles()},getCurrentDirectory:r.getCurrentDirectory&&function(){return r.getCurrentDirectory()}}:undefined},encounteredError:false,visitedTypes:undefined,symbolDepth:undefined,inferTypeParameters:undefined,approximateLength:0};var s=a(o);return o.encounteredError?undefined:s}function checkTruncationLength(t){if(t.truncating)return t.truncating;return t.truncating=!(t.flags&1)&&t.approximateLength>e.defaultMaximumTruncationLength}function typeToTypeNodeHelper(t,r){if(l&&l.throwIfCancellationRequested){l.throwIfCancellationRequested()}var n=r.flags&8388608;r.flags&=~8388608;if(!t){r.encounteredError=true;return undefined}if(t.flags&1){r.approximateLength+=3;return e.createKeywordTypeNode(120)}if(t.flags&2){return e.createKeywordTypeNode(143)}if(t.flags&4){r.approximateLength+=6;return e.createKeywordTypeNode(138)}if(t.flags&8){r.approximateLength+=6;return e.createKeywordTypeNode(135)}if(t.flags&64){r.approximateLength+=6;return e.createKeywordTypeNode(146)}if(t.flags&16){r.approximateLength+=7;return e.createKeywordTypeNode(123)}if(t.flags&1024&&!(t.flags&1048576)){var i=getParentOfSymbol(t.symbol);var a=symbolToTypeNode(i,r,67897832);var o=getDeclaredTypeOfSymbol(i)===t?a:appendReferenceToType(a,e.createTypeReferenceNode(e.symbolName(t.symbol),undefined));return o}if(t.flags&1056){return symbolToTypeNode(t.symbol,r,67897832)}if(t.flags&128){r.approximateLength+=t.value.length+2;return e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216))}if(t.flags&256){r.approximateLength+=(""+t.value).length;return e.createLiteralTypeNode(e.createLiteral(t.value))}if(t.flags&2048){r.approximateLength+=e.pseudoBigIntToString(t.value).length+1;return e.createLiteralTypeNode(e.createLiteral(t.value))}if(t.flags&512){r.approximateLength+=t.intrinsicName.length;return t.intrinsicName==="true"?e.createTrue():e.createFalse()}if(t.flags&8192){if(!(r.flags&1048576)){if(isValueSymbolAccessible(t.symbol,r.enclosingDeclaration)){r.approximateLength+=6;return symbolToTypeNode(t.symbol,r,67220415)}if(r.tracker.reportInaccessibleUniqueSymbolError){r.tracker.reportInaccessibleUniqueSymbolError()}}r.approximateLength+=13;return e.createTypeOperatorNode(142,e.createKeywordTypeNode(139))}if(t.flags&16384){r.approximateLength+=4;return e.createKeywordTypeNode(106)}if(t.flags&32768){r.approximateLength+=9;return e.createKeywordTypeNode(141)}if(t.flags&65536){r.approximateLength+=4;return e.createKeywordTypeNode(96)}if(t.flags&131072){r.approximateLength+=5;return e.createKeywordTypeNode(132)}if(t.flags&4096){r.approximateLength+=6;return e.createKeywordTypeNode(139)}if(t.flags&67108864){r.approximateLength+=6;return e.createKeywordTypeNode(136)}if(t.flags&262144&&t.isThisType){if(r.flags&4194304){if(!r.encounteredError&&!(r.flags&32768)){r.encounteredError=true}if(r.tracker.reportInaccessibleThisError){r.tracker.reportInaccessibleThisError()}}r.approximateLength+=4;return e.createThis()}var s=e.getObjectFlags(t);if(s&4){e.Debug.assert(!!(t.flags&524288));return typeReferenceToTypeNode(t)}if(t.flags&262144||s&3){if(t.flags&262144&&e.contains(r.inferTypeParameters,t)){r.approximateLength+=e.symbolName(t.symbol).length+6;return e.createInferTypeNode(typeParameterToDeclarationWithConstraint(t,r,undefined))}if(r.flags&4&&t.flags&262144&&e.length(t.symbol.declarations)&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&typeParameterShadowsNameInScope(t,r)&&!isTypeSymbolAccessible(t.symbol,r.enclosingDeclaration)){var c=t.symbol.declarations[0].name;r.approximateLength+=e.idText(c).length;return e.createTypeReferenceNode(e.getGeneratedNameForNode(c,16|8),undefined)}return t.symbol?symbolToTypeNode(t.symbol,r,67897832):e.createTypeReferenceNode(e.createIdentifier("?"),undefined)}if(!n&&t.aliasSymbol&&(r.flags&16384||isTypeSymbolAccessible(t.aliasSymbol,r.enclosingDeclaration))){var u=mapToTypeNodes(t.aliasTypeArguments,r);if(isReservedMemberName(t.aliasSymbol.escapedName)&&!(t.aliasSymbol.flags&32))return e.createTypeReferenceNode(e.createIdentifier(""),u);return symbolToTypeNode(t.aliasSymbol,r,67897832,u)}if(t.flags&(1048576|2097152)){var f=t.flags&1048576?formatUnionTypes(t.types):t.types;if(e.length(f)===1){return typeToTypeNodeHelper(f[0],r)}var d=mapToTypeNodes(f,r,true);if(d&&d.length>0){var p=e.createUnionOrIntersectionTypeNode(t.flags&1048576?173:174,d);return p}else{if(!r.encounteredError&&!(r.flags&262144)){r.encounteredError=true}return undefined}}if(s&(16|32)){e.Debug.assert(!!(t.flags&524288));return createAnonymousTypeNode(t)}if(t.flags&4194304){var g=t.type;r.approximateLength+=6;var _=typeToTypeNodeHelper(g,r);return e.createTypeOperatorNode(_)}if(t.flags&8388608){var m=typeToTypeNodeHelper(t.objectType,r);var _=typeToTypeNodeHelper(t.indexType,r);r.approximateLength+=2;return e.createIndexedAccessTypeNode(m,_)}if(t.flags&16777216){var y=typeToTypeNodeHelper(t.checkType,r);var h=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var v=typeToTypeNodeHelper(t.extendsType,r);r.inferTypeParameters=h;var T=typeToTypeNodeHelper(getTrueTypeFromConditionalType(t),r);var S=typeToTypeNodeHelper(getFalseTypeFromConditionalType(t),r);r.approximateLength+=15;return e.createConditionalTypeNode(y,v,T,S)}if(t.flags&33554432){return typeToTypeNodeHelper(t.typeVariable,r)}return e.Debug.fail("Should be unreachable.");function createMappedTypeNodeFromType(t){e.Debug.assert(!!(t.flags&524288));var n=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):undefined;var i=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):undefined;var a;if(isMappedTypeWithKeyofConstraintDeclaration(t)){a=e.createTypeOperatorNode(typeToTypeNodeHelper(getModifiersTypeFromMappedType(t),r))}else{a=typeToTypeNodeHelper(getConstraintTypeFromMappedType(t),r)}var o=typeParameterToDeclarationWithConstraint(getTypeParameterFromMappedType(t),r,a);var s=typeToTypeNodeHelper(getTemplateTypeFromMappedType(t),r);var c=e.createMappedTypeNode(n,o,i,s);r.approximateLength+=10;return e.setEmitFlags(c,1)}function createAnonymousTypeNode(t){var n=""+t.id;var i=t.symbol;var a;if(i){var o=e.getObjectFlags(t)&16&&t.symbol&&t.symbol.flags&32;a=(o?"+":"")+getSymbolId(i);if(isJSConstructor(i.valueDeclaration)){var s=t===getInferredClassType(i)?67897832:67220415;return symbolToTypeNode(i,r,s)}else if(i.flags&32&&!getBaseTypeVariableOfClass(i)&&!(i.valueDeclaration.kind===209&&r.flags&2048)||i.flags&(384|512)||shouldWriteTypeOfFunctionSymbol()){return symbolToTypeNode(i,r,67220415)}else if(r.visitedTypes&&r.visitedTypes.has(n)){var c=getTypeAliasForTypeLiteral(t);if(c){return symbolToTypeNode(c,r,67897832)}else{return createElidedInformationPlaceholder(r)}}else{if(!r.visitedTypes){r.visitedTypes=e.createMap()}if(!r.symbolDepth){r.symbolDepth=e.createMap()}var u=r.symbolDepth.get(a)||0;if(u>10){return createElidedInformationPlaceholder(r)}r.symbolDepth.set(a,u+1);r.visitedTypes.set(n,true);var l=createTypeNodeFromObjectType(t);r.visitedTypes.delete(n);r.symbolDepth.set(a,u);return l}}else{return createTypeNodeFromObjectType(t)}function shouldWriteTypeOfFunctionSymbol(){var t=!!(i.flags&8192)&&e.some(i.declarations,function(t){return e.hasModifier(t,32)});var a=!!(i.flags&16)&&(i.parent||e.forEach(i.declarations,function(e){return e.parent.kind===279||e.parent.kind===245}));if(t||a){return(!!(r.flags&4096)||r.visitedTypes&&r.visitedTypes.has(n))&&(!(r.flags&8)||isValueSymbolAccessible(i,r.enclosingDeclaration))}}}function createTypeNodeFromObjectType(t){if(isGenericMappedType(t)){return createMappedTypeNodeFromType(t)}var n=resolveStructuredTypeMembers(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length){r.approximateLength+=2;return e.setEmitFlags(e.createTypeLiteralNode(undefined),1)}if(n.callSignatures.length===1&&!n.constructSignatures.length){var i=n.callSignatures[0];var a=signatureToSignatureDeclarationHelper(i,165,r);return a}if(n.constructSignatures.length===1&&!n.callSignatures.length){var i=n.constructSignatures[0];var a=signatureToSignatureDeclarationHelper(i,166,r);return a}}var o=r.flags;r.flags|=4194304;var s=createTypeNodesFromResolvedType(n);r.flags=o;var c=e.createTypeLiteralNode(s);r.approximateLength+=2;return e.setEmitFlags(c,r.flags&1024?0:1)}function typeReferenceToTypeNode(t){var n=t.typeArguments||e.emptyArray;if(t.target===$e){if(r.flags&2){var i=typeToTypeNodeHelper(n[0],r);return e.createTypeReferenceNode("Array",[i])}var a=typeToTypeNodeHelper(n[0],r);return e.createArrayTypeNode(a)}else if(t.target.objectFlags&8){if(n.length>0){var o=getTypeReferenceArity(t);var s=mapToTypeNodes(n.slice(0,o),r);var c=t.target.hasRestElement;if(s){for(var u=t.target.minLength;u<Math.min(o,s.length);u++){s[u]=c&&u===o-1?e.createRestTypeNode(e.createArrayTypeNode(s[u])):e.createOptionalTypeNode(s[u])}return e.createTupleTypeNode(s)}}if(r.encounteredError||r.flags&524288){return e.createTupleTypeNode([])}r.encounteredError=true;return undefined}else if(r.flags&2048&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!isValueSymbolAccessible(t.symbol,r.enclosingDeclaration)){return createAnonymousTypeNode(t)}else{var l=t.target.outerTypeParameters;var u=0;var f=void 0;if(l){var d=l.length;while(u<d){var p=u;var g=getParentSymbolOfTypeParameter(l[u]);do{u++}while(u<d&&getParentSymbolOfTypeParameter(l[u])===g);if(!e.rangeEquals(l,n,p,u)){var _=mapToTypeNodes(n.slice(p,u),r);var m=r.flags;r.flags|=16;var y=symbolToTypeNode(g,r,67897832,_);r.flags=m;f=!f?y:appendReferenceToType(f,y)}}}var h=void 0;if(n.length>0){var v=(t.target.typeParameters||e.emptyArray).length;h=mapToTypeNodes(n.slice(u,v),r)}var T=r.flags;r.flags|=16;var S=symbolToTypeNode(t.symbol,r,67897832,h);r.flags=T;return!f?S:appendReferenceToType(f,S)}}function appendReferenceToType(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments;if(t.qualifier){(e.isIdentifier(t.qualifier)?t.qualifier:t.qualifier.right).typeArguments=n}t.typeArguments=r.typeArguments;var i=getAccessStack(r);for(var a=0,o=i;a<o.length;a++){var s=o[a];t.qualifier=t.qualifier?e.createQualifiedName(t.qualifier,s):s}return t}else{var n=t.typeArguments;(e.isIdentifier(t.typeName)?t.typeName:t.typeName.right).typeArguments=n;t.typeArguments=r.typeArguments;var i=getAccessStack(r);for(var c=0,u=i;c<u.length;c++){var s=u[c];t.typeName=e.createQualifiedName(t.typeName,s)}return t}}function getAccessStack(t){var r=t.typeName;var n=[];while(!e.isIdentifier(r)){n.unshift(r.right);r=r.left}n.unshift(r);return n}function createTypeNodesFromResolvedType(t){if(checkTruncationLength(r)){return[e.createPropertySignature(undefined,"...",undefined,undefined,undefined)]}var n=[];for(var i=0,a=t.callSignatures;i<a.length;i++){var o=a[i];n.push(signatureToSignatureDeclarationHelper(o,160,r))}for(var s=0,c=t.constructSignatures;s<c.length;s++){var o=c[s];n.push(signatureToSignatureDeclarationHelper(o,161,r))}if(t.stringIndexInfo){var u=void 0;if(t.objectFlags&2048){u=indexInfoToIndexSignatureDeclarationHelper(createIndexInfo(X,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration),0,r);u.type=createElidedInformationPlaceholder(r)}else{u=indexInfoToIndexSignatureDeclarationHelper(t.stringIndexInfo,0,r)}n.push(u)}if(t.numberIndexInfo){n.push(indexInfoToIndexSignatureDeclarationHelper(t.numberIndexInfo,1,r))}var l=t.properties;if(!l){return n}var f=0;for(var d=0,p=l;d<p.length;d++){var g=p[d];f++;if(r.flags&2048){if(g.flags&4194304){continue}if(e.getDeclarationModifierFlagsFromSymbol(g)&(8|16)&&r.tracker.reportPrivateInBaseOfClassExpression){r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(g.escapedName))}}if(checkTruncationLength(r)&&f+2<l.length-1){n.push(e.createPropertySignature(undefined,"... "+(l.length-f)+" more ...",undefined,undefined,undefined));addPropertyToElementList(l[l.length-1],r,n);break}addPropertyToElementList(g,r,n)}return n.length?n:undefined}}function createElidedInformationPlaceholder(t){t.approximateLength+=3;if(!(t.flags&1)){return e.createTypeReferenceNode(e.createIdentifier("..."),undefined)}return e.createKeywordTypeNode(120)}function addPropertyToElementList(t,r,n){var i=!!(e.getCheckFlags(t)&2048);var a=i&&r.flags&33554432?X:getTypeOfSymbol(t);var o=r.enclosingDeclaration;r.enclosingDeclaration=undefined;if(r.tracker.trackSymbol&&e.getCheckFlags(t)&1024){var s=e.first(t.declarations);if(hasLateBindableName(s)){trackComputedName(s.name,o,r)}}var c=symbolToName(t,r,67220415,true);r.approximateLength+=e.symbolName(t).length+1;r.enclosingDeclaration=o;var u=t.flags&16777216?e.createToken(56):undefined;if(t.flags&(16|8192)&&!getPropertiesOfObjectType(a).length){var l=getSignaturesOfType(a,0);for(var f=0,d=l;f<d.length;f++){var p=d[f];var g=signatureToSignatureDeclarationHelper(p,155,r);g.name=c;g.questionToken=u;if(t.valueDeclaration){e.setCommentRange(g,t.valueDeclaration)}n.push(g)}}else{var _=r.flags;r.flags|=i?33554432:0;var m=void 0;if(i&&!!(_&33554432)){m=createElidedInformationPlaceholder(r)}else{m=a?typeToTypeNodeHelper(a,r):e.createKeywordTypeNode(120)}r.flags=_;var y=isReadonlySymbol(t)?[e.createToken(133)]:undefined;if(y){r.approximateLength+=9}var h=e.createPropertySignature(y,c,u,m,undefined);if(t.valueDeclaration){e.setCommentRange(h,t.valueDeclaration)}n.push(h)}}function mapToTypeNodes(t,r,n){if(e.some(t)){if(checkTruncationLength(r)){if(!n){return[e.createTypeReferenceNode("...",undefined)]}else if(t.length>2){return[typeToTypeNodeHelper(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",undefined),typeToTypeNodeHelper(t[t.length-1],r)]}}var i=[];var a=0;for(var o=0,s=t;o<s.length;o++){var c=s[o];a++;if(checkTruncationLength(r)&&a+2<t.length-1){i.push(e.createTypeReferenceNode("... "+(t.length-a)+" more ...",undefined));var u=typeToTypeNodeHelper(t[t.length-1],r);if(u){i.push(u)}break}r.approximateLength+=2;var l=typeToTypeNodeHelper(c,r);if(l){i.push(l)}}return i}}function indexInfoToIndexSignatureDeclarationHelper(t,r,n){var i=e.getNameFromIndexInfo(t)||"x";var a=e.createKeywordTypeNode(r===0?138:135);var o=e.createParameter(undefined,undefined,undefined,i,undefined,a,undefined);var s=typeToTypeNodeHelper(t.type||X,n);if(!t.type&&!(n.flags&2097152)){n.encounteredError=true}n.approximateLength+=i.length+4;return e.createIndexSignature(undefined,t.isReadonly?[e.createToken(133)]:undefined,[o],s)}function signatureToSignatureDeclarationHelper(t,r,n){var i;var a;if(n.flags&32&&t.target&&t.mapper&&t.target.typeParameters){a=t.target.typeParameters.map(function(e){return typeToTypeNodeHelper(instantiateType(e,t.mapper),n)})}else{i=t.typeParameters&&t.typeParameters.map(function(e){return typeParameterToDeclaration(e,n)})}var o=getExpandedParameters(t).map(function(e){return symbolToParameterDeclaration(e,n,r===157)});if(t.thisParameter){var s=symbolToParameterDeclaration(t.thisParameter,n);o.unshift(s)}var c;var u=getTypePredicateOfSignature(t);if(u){var l=u.kind===1?e.setEmitFlags(e.createIdentifier(u.parameterName),16777216):e.createThisTypeNode();var f=typeToTypeNodeHelper(u.type,n);c=e.createTypePredicateNode(l,f)}else{var d=getReturnTypeOfSignature(t);c=d&&typeToTypeNodeHelper(d,n)}if(n.flags&256){if(c&&c.kind===120){c=undefined}}else if(!c){c=e.createKeywordTypeNode(120)}n.approximateLength+=3;return e.createSignatureDeclaration(r,i,o,c,a)}function typeParameterShadowsNameInScope(e,t){return!!resolveName(t.enclosingDeclaration,e.symbol.escapedName,67897832,undefined,e.symbol.escapedName,false)}function typeParameterToDeclarationWithConstraint(t,r,n){var i=r.flags;r.flags&=~512;var a=r.flags&4&&t.symbol.declarations[0]&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&typeParameterShadowsNameInScope(t,r);var o=a?e.getGeneratedNameForNode(t.symbol.declarations[0].name,16|8):symbolToName(t.symbol,r,67897832,true);var s=getDefaultFromTypeParameter(t);var c=s&&typeToTypeNodeHelper(s,r);r.flags=i;return e.createTypeParameterDeclaration(o,n,c)}function typeParameterToDeclaration(e,t,r){if(r===void 0){r=getConstraintOfTypeParameter(e)}var n=r&&typeToTypeNodeHelper(r,t);return typeParameterToDeclarationWithConstraint(e,t,n)}function symbolToParameterDeclaration(t,r,n){var i=e.getDeclarationOfKind(t,151);if(!i&&!isTransientSymbol(t)){i=e.getDeclarationOfKind(t,299)}var a=getTypeOfSymbol(t);if(i&&isRequiredInitializedParameter(i)){a=getOptionalType(a)}var o=typeToTypeNodeHelper(a,r);var s=!(r.flags&8192)&&n&&i&&i.modifiers?i.modifiers.map(e.getSynthesizedClone):undefined;var c=i&&e.isRestParameter(i)||e.getCheckFlags(t)&8192;var u=c?e.createToken(25):undefined;var l=i?i.name?i.name.kind===72?e.setEmitFlags(e.getSynthesizedClone(i.name),16777216):i.name.kind===148?e.setEmitFlags(e.getSynthesizedClone(i.name.right),16777216):cloneBindingName(i.name):e.symbolName(t):e.symbolName(t);var f=i&&isOptionalParameter(i)||e.getCheckFlags(t)&4096;var d=f?e.createToken(56):undefined;var p=e.createParameter(undefined,s,u,l,d,o,undefined);r.approximateLength+=e.symbolName(t).length+3;return p;function cloneBindingName(t){return elideInitializerAndSetEmitFlags(t);function elideInitializerAndSetEmitFlags(t){if(r.tracker.trackSymbol&&e.isComputedPropertyName(t)&&isLateBindableName(t)){trackComputedName(t,r.enclosingDeclaration,r)}var n=e.visitEachChild(t,elideInitializerAndSetEmitFlags,e.nullTransformationContext,undefined,elideInitializerAndSetEmitFlags);var i=e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n);if(i.kind===186){i.initializer=undefined}return e.setEmitFlags(i,1|16777216)}}}function trackComputedName(e,t,r){if(!r.tracker.trackSymbol)return;var n=getFirstIdentifier(e.expression);var i=resolveName(n,n.escapedText,67220415|1048576,undefined,undefined,true);if(i){r.tracker.trackSymbol(i,t,67220415)}}function lookupSymbolChain(t,r,n,i){r.tracker.trackSymbol(t,r.enclosingDeclaration,n);var a;var o=t.flags&262144;if(!o&&(r.enclosingDeclaration||r.flags&64)&&!(r.flags&134217728)){a=e.Debug.assertDefined(getSymbolChain(t,n,true));e.Debug.assert(a&&a.length>0)}else{a=[t]}return a;function getSymbolChain(t,n,a){var o=getAccessibleSymbolChain(t,r.enclosingDeclaration,n,!!(r.flags&128));var s;if(!o||needsQualification(o[0],r.enclosingDeclaration,o.length===1?n:getQualifiedLeftMeaning(n))){var c=getContainersOfSymbol(o?o[0]:t,r.enclosingDeclaration);if(e.length(c)){s=c.map(function(t){return e.some(t.declarations,hasNonGlobalAugmentationExternalModuleSymbol)?getSpecifierForModuleSymbol(t,r):undefined});var u=c.map(function(e,t){return t});u.sort(sortByBestName);var l=u.map(function(e){return c[e]});for(var f=0,d=l;f<d.length;f++){var p=d[f];var g=getSymbolChain(p,getQualifiedLeftMeaning(n),false);if(g){o=g.concat(o||[getAliasForSymbolInContainer(p,t)||t]);break}}}}if(o){return o}if(a||!(t.flags&(2048|4096))){if(!a&&!i&&!!e.forEach(t.declarations,hasNonGlobalAugmentationExternalModuleSymbol)){return}return[t]}function sortByBestName(t,r){var n=s[t];var i=s[r];if(n&&i){var a=e.pathIsRelative(i);if(e.pathIsRelative(n)===a){return e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i)}if(a){return-1}return 1}return 0}}}function typeParametersToTypeParameterDeclarations(t,r){var n;var i=getTargetSymbol(t);if(i.flags&(32|64|524288)){n=e.createNodeArray(e.map(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t),function(e){return typeParameterToDeclaration(e,r)}))}return n}function lookupTypeParameterNodes(t,r,n){e.Debug.assert(t&&0<=r&&r<t.length);var i=t[r];var a;if(n.flags&512&&r<t.length-1){var o=i;var s=t[r+1];if(e.getCheckFlags(s)&1){var c=getTypeParametersOfClassOrInterface(o.flags&2097152?resolveAlias(o):o);a=mapToTypeNodes(e.map(c,s.mapper),n)}else{a=typeParametersToTypeParameterDeclarations(i,n)}}return a}function getTopmostIndexedAccessType(t){if(e.isIndexedAccessTypeNode(t.objectType)){return getTopmostIndexedAccessType(t.objectType)}return t}function getSpecifierForModuleSymbol(i,a){var o=e.getDeclarationOfKind(i,279);if(o&&o.moduleName!==undefined){return o.moduleName}if(!o){if(a.tracker.trackReferencedAmbientModule){var s=e.filter(i.declarations,e.isAmbientModule);if(e.length(s)){for(var c=0,u=s;c<u.length;c++){var l=u[c];a.tracker.trackReferencedAmbientModule(l,i)}}}if(t.test(i.escapedName)){return i.escapedName.substring(1,i.escapedName.length-1)}}if(!a.enclosingDeclaration||!a.tracker.moduleResolverHost){if(t.test(i.escapedName)){return i.escapedName.substring(1,i.escapedName.length-1)}return e.getSourceFileOfNode(e.getNonAugmentationDeclaration(i)).fileName}var f=e.getSourceFileOfNode(e.getOriginalNode(a.enclosingDeclaration));var d=getSymbolLinks(i);var p=d.specifierCache&&d.specifierCache.get(f.path);if(!p){var g=x.out||x.outFile;var _=a.tracker.moduleResolverHost;var m=g?n({},x,{baseUrl:_.getCommonSourceDirectory()}):x;p=e.first(e.moduleSpecifiers.getModuleSpecifiers(i,m,f,_,r.getSourceFiles(),{importModuleSpecifierPreference:g?"non-relative":"relative"},r.redirectTargetsMap));d.specifierCache=d.specifierCache||e.createMap();d.specifierCache.set(f.path,p)}return p}function symbolToTypeNode(t,r,n,i){var a=lookupSymbolChain(t,r,n,!(r.flags&16384));var o=n===67220415;if(e.some(a[0].declarations,hasNonGlobalAugmentationExternalModuleSymbol)){var s=a.length>1?createAccessFromSymbolChain(a,a.length-1,1):undefined;var c=i||lookupTypeParameterNodes(a,0,r);var u=getSpecifierForModuleSymbol(a[0],r);if(!(r.flags&67108864)&&e.getEmitModuleResolutionKind(x)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0){r.encounteredError=true;if(r.tracker.reportLikelyUnsafeImportRequiredError){r.tracker.reportLikelyUnsafeImportRequiredError(u)}}var l=e.createLiteralTypeNode(e.createLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode)r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]);r.approximateLength+=u.length+10;if(!s||e.isEntityName(s)){if(s){var f=e.isIdentifier(s)?s:s.right;f.typeArguments=undefined}return e.createImportTypeNode(l,s,c,o)}else{var d=getTopmostIndexedAccessType(s);var p=d.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(l,p,c,o),d.indexType)}}var g=createAccessFromSymbolChain(a,a.length-1,0);if(e.isIndexedAccessTypeNode(g)){return g}if(o){return e.createTypeQueryNode(g)}else{var f=e.isIdentifier(g)?g:g.right;var _=f.typeArguments;f.typeArguments=undefined;return e.createTypeReferenceNode(g,_)}function createAccessFromSymbolChain(t,n,a){var o=n===t.length-1?i:lookupTypeParameterNodes(t,n,r);var s=t[n];if(n===0){r.flags|=16777216}var c=getNameOfSymbolAsWritten(s,r);r.approximateLength+=c.length+1;if(n===0){r.flags^=16777216}var u=t[n-1];if(!(r.flags&16)&&u&&getMembersOfSymbol(u)&&getMembersOfSymbol(u).get(s.escapedName)===s){var l=createAccessFromSymbolChain(t,n-1,a);if(e.isIndexedAccessTypeNode(l)){return e.createIndexedAccessTypeNode(l,e.createLiteralTypeNode(e.createLiteral(c)))}else{return e.createIndexedAccessTypeNode(e.createTypeReferenceNode(l,o),e.createLiteralTypeNode(e.createLiteral(c)))}}var f=e.setEmitFlags(e.createIdentifier(c,o),16777216);f.symbol=s;if(n>a){var l=createAccessFromSymbolChain(t,n-1,a);if(!e.isEntityName(l)){return e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return e.createQualifiedName(l,f)}return f}}function symbolToName(t,r,n,i){var a=lookupSymbolChain(t,r,n);if(i&&a.length!==1&&!r.encounteredError&&!(r.flags&65536)){r.encounteredError=true}return createEntityNameFromSymbolChain(a,a.length-1);function createEntityNameFromSymbolChain(t,n){var i=lookupTypeParameterNodes(t,n,r);var a=t[n];if(n===0){r.flags|=16777216}var o=getNameOfSymbolAsWritten(a,r);if(n===0){r.flags^=16777216}var s=e.setEmitFlags(e.createIdentifier(o,i),16777216);s.symbol=a;return n>0?e.createQualifiedName(createEntityNameFromSymbolChain(t,n-1),s):s}}function symbolToExpression(t,r,n){var i=lookupSymbolChain(t,r,n);return createExpressionFromSymbolChain(i,i.length-1);function createExpressionFromSymbolChain(t,n){var i=lookupTypeParameterNodes(t,n,r);var a=t[n];if(e.some(a.declarations,hasNonGlobalAugmentationExternalModuleSymbol)){return e.createLiteral(getSpecifierForModuleSymbol(a,r))}if(n===0){r.flags|=16777216}var o=getNameOfSymbolAsWritten(a,r);if(n===0){r.flags^=16777216}var s=o.charCodeAt(0);var c=e.isIdentifierStart(s,C);if(n===0||c){var u=e.setEmitFlags(e.createIdentifier(o,i),16777216);u.symbol=a;return n>0?e.createPropertyAccess(createExpressionFromSymbolChain(t,n-1),u):u}else{if(s===91){o=o.substring(1,o.length-1);s=o.charCodeAt(0)}var l=void 0;if(e.isSingleOrDoubleQuote(s)){l=e.createLiteral(o.substring(1,o.length-1).replace(/\\./g,function(e){return e.substring(1)}));l.singleQuote=s===39}else if(""+ +o===o){l=e.createLiteral(+o)}if(!l){l=e.setEmitFlags(e.createIdentifier(o,i),16777216);l.symbol=a}return e.createElementAccess(createExpressionFromSymbolChain(t,n-1),l)}}}}function typePredicateToString(t,r,n,i){if(n===void 0){n=16384}return i?typePredicateToStringWorker(i).getText():e.usingSingleLineStringWriter(typePredicateToStringWorker);function typePredicateToStringWorker(i){var a=e.createTypePredicateNode(t.kind===1?e.createIdentifier(t.parameterName):e.createThisTypeNode(),L.typeToTypeNode(t.type,r,toNodeBuilderFlags(n)|70221824|512));var o=e.createPrinter({removeComments:true});var s=r&&e.getSourceFileOfNode(r);o.writeNode(4,a,s,i);return i}}function formatUnionTypes(e){var t=[];var r=0;for(var n=0;n<e.length;n++){var i=e[n];r|=i.flags;if(!(i.flags&98304)){if(i.flags&(512|1024)){var a=i.flags&512?pe:getBaseTypeOfEnumLiteralType(i);if(a.flags&1048576){var o=a.types.length;if(n+o<=e.length&&getRegularTypeOfLiteralType(e[n+o-1])===getRegularTypeOfLiteralType(a.types[o-1])){t.push(a);n+=o-1;continue}}}t.push(i)}}if(r&65536)t.push(ie);if(r&32768)t.push(re);return t||e}function visibilityToString(e){if(e===8){return"private"}if(e===16){return"protected"}return"public"}function getTypeAliasForTypeLiteral(t){if(t.symbol&&t.symbol.flags&2048){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return e.kind!==177});if(r.kind===242){return getSymbolOfNode(r)}}return undefined}function isTopLevelInExternalModuleAugmentation(t){return t&&t.parent&&t.parent.kind===245&&e.isExternalModuleAugmentation(t.parent.parent)}function isDefaultBindingContext(t){return t.kind===279||e.isAmbientModule(t)}function getNameOfSymbolAsWritten(t,r){if(r&&t.escapedName==="default"&&!(r.flags&16384)&&(!(r.flags&16777216)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],isDefaultBindingContext)!==e.findAncestor(r.enclosingDeclaration,isDefaultBindingContext))){return"default"}if(t.declarations&&t.declarations.length){var n=t.declarations[0];var i=e.getNameOfDeclaration(n);if(i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)){return e.symbolName(t)}return e.declarationNameToString(i)}if(n.parent&&n.parent.kind===237){return e.declarationNameToString(n.parent.name)}switch(n.kind){case 209:case 196:case 197:if(r&&!r.encounteredError&&!(r.flags&131072)){r.encounteredError=true}return n.kind===209?"(Anonymous class)":"(Anonymous function)"}}var a=t.nameType;if(a){if(a.flags&128&&!e.isIdentifierText(a.value,x.target)){return'"'+e.escapeString(a.value,34)+'"'}if(a&&a.flags&8192){return"["+getNameOfSymbolAsWritten(a.symbol,r)+"]"}}return e.symbolName(t)}function isDeclarationVisible(t){if(t){var r=getNodeLinks(t);if(r.isVisible===undefined){r.isVisible=!!determineIfDeclarationIsVisible()}return r.isVisible}return false;function determineIfDeclarationIsVisible(){switch(t.kind){case 297:case 304:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 186:return isDeclarationVisible(t.parent.parent);case 237:if(e.isBindingPattern(t.name)&&!t.name.elements.length){return false}case 244:case 240:case 241:case 242:case 239:case 243:case 248:if(e.isExternalModuleAugmentation(t)){return true}var r=getDeclarationContainer(t);if(!(e.getCombinedModifierFlags(t)&1)&&!(t.kind!==248&&r.kind!==279&&r.flags&4194304)){return isGlobalSourceFile(r)}return isDeclarationVisible(r);case 154:case 153:case 158:case 159:case 156:case 155:if(e.hasModifier(t,8|16)){return false}case 157:case 161:case 160:case 162:case 151:case 245:case 165:case 166:case 168:case 164:case 169:case 170:case 173:case 174:case 177:return isDeclarationVisible(t.parent);case 250:case 251:case 253:return false;case 150:case 279:case 247:return true;case 254:return false;default:return false}}}function collectLinkedAliases(t,r){var n;if(t.parent&&t.parent.kind===254){n=resolveName(t,t.escapedText,67220415|67897832|1920|2097152,undefined,t,false)}else if(t.parent.kind===257){n=getTargetOfExportSpecifier(t.parent,67220415|67897832|1920|2097152)}var i;if(n){buildVisibleNodeList(n.declarations)}return i;function buildVisibleNodeList(t){e.forEach(t,function(t){var n=getAnyImportSyntax(t)||t;if(r){getNodeLinks(t).isVisible=true}else{i=i||[];e.pushIfUnique(i,n)}if(e.isInternalModuleImportEqualsDeclaration(t)){var a=t.moduleReference;var o=getFirstIdentifier(a);var s=resolveName(t,o.escapedText,67220415|67897832|1920,undefined,undefined,false);if(s){buildVisibleNodeList(s.declarations)}}})}}function pushTypeResolution(e,t){var r=findResolutionCycleStartIndex(e,t);if(r>=0){var n=wt.length;for(var i=r;i<n;i++){Mt[i]=false}return false}wt.push(e);Mt.push(true);Lt.push(t);return true}function findResolutionCycleStartIndex(e,t){for(var r=wt.length-1;r>=0;r--){if(hasType(wt[r],Lt[r])){return-1}if(wt[r]===e&&Lt[r]===t){return r}}return-1}function hasType(t,r){switch(r){case 0:return!!getSymbolLinks(t).type;case 5:return!!getNodeLinks(t).resolvedEnumType;case 2:return!!getSymbolLinks(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!getSymbolLinks(t).resolvedJSDocType}return e.Debug.assertNever(r)}function popTypeResolution(){wt.pop();Lt.pop();return Mt.pop()}function getDeclarationContainer(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 237:case 238:case 253:case 252:case 251:case 250:return false;default:return true}}).parent}function getTypeOfPrototypeProperty(t){var r=getDeclaredTypeOfSymbol(getParentOfSymbol(t));return r.typeParameters?createTypeReference(r,e.map(r.typeParameters,function(e){return X})):r}function getTypeOfPropertyOfType(e,t){var r=getPropertyOfType(e,t);return r?getTypeOfSymbol(r):undefined}function isTypeAny(e){return e&&(e.flags&1)!==0}function getTypeForBindingElementParent(e){var t=getSymbolOfNode(e);return t&&getSymbolLinks(t).type||getTypeForVariableLikeDeclaration(e,false)}function isComputedNonLiteralName(t){return t.kind===149&&!e.isStringOrNumericLiteralLike(t.expression)}function getRestType(t,r,n){t=filterType(t,function(e){return!(e.flags&98304)});if(t.flags&131072){return xe}if(t.flags&1048576){return mapType(t,function(e){return getRestType(e,r,n)})}var i=getUnionType(e.map(r,getLiteralTypeFromPropertyName));if(isGenericObjectType(t)||isGenericIndexType(i)){if(i.flags&131072){return t}var a=getGlobalPickSymbol();var o=getGlobalExcludeSymbol();if(!a||!o){return ee}var s=getTypeAliasInstantiation(o,[getIndexType(t),i]);return getTypeAliasInstantiation(a,[t,s])}var c=e.createSymbolTable();for(var u=0,l=getPropertiesOfType(t);u<l.length;u++){var f=l[u];if(!isTypeAssignableTo(getLiteralTypeFromProperty(f,8576),i)&&!(e.getDeclarationModifierFlagsFromSymbol(f)&(8|16))&&isSpreadableProperty(f)){c.set(f.escapedName,getSpreadSymbol(f))}}var d=getIndexInfoOfType(t,0);var p=getIndexInfoOfType(t,1);return createAnonymousType(n,c,e.emptyArray,e.emptyArray,d,p)}function getTypeForBindingElement(t){var r=t.parent;var n=getTypeForBindingElementParent(r.parent);if(n===ee){return ee}if(!n){return t.initializer?checkDeclarationInitializer(t):n}if(isTypeAny(n)){return n}if(k&&t.flags&4194304&&e.isParameterDeclaration(t)){n=getNonNullableType(n)}var i;if(r.kind===184){if(t.dotDotDotToken){if(n.flags&2||!isValidSpreadType(n)){error(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types);return ee}var a=[];for(var o=0,s=r.elements;o<s.length;o++){var c=s[o];if(!c.dotDotDotToken){a.push(c.propertyName||c.name)}}i=getRestType(n,a,t.symbol)}else{var u=t.propertyName||t.name;var l=getLiteralTypeFromPropertyName(u);var f=checkIndexedAccessIndexType(getIndexedAccessType(n,l,u),u);i=getFlowTypeOfReference(t,getConstraintForLocation(f,t.name))}}else{var d=checkIteratedTypeOrElementType(n,r,false,false);var p=r.elements.indexOf(t);if(t.dotDotDotToken){i=everyType(n,isTupleType)?mapType(n,function(e){return sliceTupleType(e,p)}):createArrayType(d)}else{var g=r.elements.indexOf(t);i=everyType(n,isTupleLikeType)?getTupleElementType(n,g)||t.initializer&&checkDeclarationInitializer(t):d;if(!i){if(isTupleType(n)){error(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,typeToString(n),getTypeReferenceArity(n),r.elements.length)}else{error(t,e.Diagnostics.Type_0_has_no_property_1,typeToString(n),""+g)}return ee}}}if(k&&t.initializer&&!(getFalsyFlags(checkDeclarationInitializer(t))&32768)){i=getTypeWithFacts(i,524288)}return t.initializer&&!e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?getUnionType([i,checkDeclarationInitializer(t)],2):i}function getTypeForDeclarationFromJSDocComment(t){var r=e.getJSDocType(t);if(r){return getTypeFromTypeNode(r)}return undefined}function isNullOrUndefined(t){var r=e.skipParentheses(t);return r.kind===96||r.kind===72&&getResolvedSymbol(r)===R}function isEmptyArrayLiteral(t){var r=e.skipParentheses(t);return r.kind===187&&r.elements.length===0}function addOptionality(e,t){if(t===void 0){t=true}return k&&t?getOptionalType(e):e}function getTypeForVariableLikeDeclaration(t,r){if(e.isVariableDeclaration(t)&&t.parent.parent.kind===226){var n=getIndexType(getNonNullableTypeIfNeeded(checkExpression(t.parent.parent.expression)));return n.flags&(262144|4194304)?getExtractStringType(n):oe}if(e.isVariableDeclaration(t)&&t.parent.parent.kind===227){var i=t.parent.parent;return checkRightHandSideOfForOf(i.expression,i.awaitModifier)||X}if(e.isBindingPattern(t.parent)){return getTypeForBindingElement(t)}var a=r&&(e.isParameter(t)&&isJSDocOptionalParameter(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken);var o=tryGetTypeFromEffectiveTypeNode(t);if(o){return addOptionality(o,a)}if((F||e.isInJSFile(t))&&t.kind===237&&!e.isBindingPattern(t.name)&&!(e.getCombinedModifierFlags(t)&1)&&!(t.flags&4194304)){if(!(e.getCombinedNodeFlags(t)&2)&&(!t.initializer||isNullOrUndefined(t.initializer))){return Y}if(t.initializer&&isEmptyArrayLiteral(t.initializer)){return it}}if(t.kind===151){var s=t.parent;if(s.kind===159&&!hasNonBindableDynamicName(s)){var c=e.getDeclarationOfKind(getSymbolOfNode(t.parent),158);if(c){var u=getSignatureFromDeclaration(c);var l=getAccessorThisParameter(s);if(l&&t===l){e.Debug.assert(!l.type);return getTypeOfSymbol(u.thisParameter)}return getReturnTypeOfSignature(u)}}if(e.isInJSFile(t)){var f=e.getJSDocType(s);if(f&&e.isFunctionTypeNode(f)){return getTypeAtPosition(getSignatureFromDeclaration(f),s.parameters.indexOf(t))}}var d=t.symbol.escapedName==="this"?getContextualThisParameterType(s):getContextuallyTypedParameterType(t);if(d){return addOptionality(d,a)}}else if(e.isInJSFile(t)){var p=getJSContainerObjectType(t,getSymbolOfNode(t),e.getDeclaredExpandoInitializer(t));if(p){return p}}if(t.initializer){var d=checkDeclarationInitializer(t);return addOptionality(d,a)}if(e.isJsxAttribute(t)){return fe}if(e.isBindingPattern(t.name)){return getTypeFromBindingPattern(t.name,false,true)}return undefined}function getWidenedTypeFromAssignmentDeclaration(t,r){var n=e.getAssignedExpandoInitializer(t.valueDeclaration);if(n){var i=e.getJSDocTypeTag(n);if(i&&i.typeExpression){return getTypeFromTypeNode(i.typeExpression)}var a=getJSContainerObjectType(t.valueDeclaration,t,n);return a||getWidenedLiteralType(checkExpressionCached(n))}var o=false;var s=false;var c;var u;for(var l=0,f=t.declarations;l<f.length;l++){var d=f[l];var p=e.isBinaryExpression(d)||e.isCallExpression(d)?d:e.isPropertyAccessExpression(d)?e.isBinaryExpression(d.parent)?d.parent:d:undefined;if(!p){return ee}var g=e.isPropertyAccessExpression(p)?e.getAssignmentDeclarationPropertyAccessKind(p):e.getAssignmentDeclarationKind(p);if(g===4){if(isDeclarationInConstructor(p)){o=true}else{s=true}}if(!e.isCallExpression(p)){c=getJSDocTypeFromAssignmentDeclaration(c,p,t,d)}if(!c){(u||(u=[])).push(e.isBinaryExpression(p)||e.isCallExpression(p)?getInitializerTypeFromAssignmentDeclaration(t,r,p,g):me)}}var _=c;if(!_){var m=o?getConstructorDefinedThisAssignmentTypes(u,t.declarations):undefined;if(s){var y=getTypeOfAssignmentDeclarationPropertyOfBaseType(t);if(y){(m||(m=[])).push(y);o=true}}var h=e.some(m,function(e){return!!(e.flags&~(98304|134217728))})?m:u;_=getUnionType(h,2)}var v=getWidenedType(addOptionality(_,s&&!o));if(filterType(v,function(e){return!!(e.flags&~98304)})===me){reportImplicitAny(t.valueDeclaration,X);return X}return v}function getJSContainerObjectType(t,r,n){if(!e.isInJSFile(t)||!n||!e.isObjectLiteralExpression(n)||n.properties.length){return undefined}var i=e.createSymbolTable();while(e.isBinaryExpression(t)||e.isPropertyAccessExpression(t)){var a=getSymbolOfNode(t);if(a&&e.hasEntries(a.exports)){mergeSymbolTable(i,a.exports)}t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var o=getSymbolOfNode(t);if(o&&e.hasEntries(o.exports)){mergeSymbolTable(i,o.exports)}var s=createAnonymousType(r,i,e.emptyArray,e.emptyArray,undefined,undefined);s.objectFlags|=16384;return s}function getJSDocTypeFromAssignmentDeclaration(t,r,n,i){var a=e.getJSDocType(r.parent);if(a){var o=getWidenedType(getTypeFromTypeNode(a));if(!t){return o}else if(t!==ee&&o!==ee&&!isTypeIdenticalTo(t,o)){errorNextVariableOrPropertyDeclarationMustHaveSameType(t,i,o)}}return t}function getInitializerTypeFromAssignmentDeclaration(t,r,n,i){if(e.isCallExpression(n)){if(r){return getTypeOfSymbol(r)}var a=checkExpressionCached(n.arguments[2]);var o=getTypeOfPropertyOfType(a,"value");if(o){return o}var s=getTypeOfPropertyOfType(a,"get");if(s){var c=getSingleCallSignature(s);if(c){return getReturnTypeOfSignature(c)}}var u=getTypeOfPropertyOfType(a,"set");if(u){var l=getSingleCallSignature(u);if(l){return getTypeOfFirstParameterOfSignature(l)}}return X}var f=r?getTypeOfSymbol(r):getWidenedLiteralType(checkExpressionCached(n.right));if(f.flags&524288&&i===2&&t.escapedName==="export="){var d=resolveStructuredTypeMembers(f);var p=e.createSymbolTable();e.copyEntries(d.members,p);if(r&&!r.exports){r.exports=e.createSymbolTable()}(r||t).exports.forEach(function(e,t){if(p.has(t)){var r=d.members.get(t);var n=createSymbol(e.flags|r.flags,t);n.type=getUnionType([getTypeOfSymbol(e),getTypeOfSymbol(r)]);p.set(t,n)}else{p.set(t,e)}});var g=createAnonymousType(d.symbol,p,d.callSignatures,d.constructSignatures,d.stringIndexInfo,d.numberIndexInfo);g.objectFlags|=e.getObjectFlags(f)&16384;return g}if(isEmptyArrayLiteralType(f)){reportImplicitAny(n,nt);return nt}return f}function isDeclarationInConstructor(t){var r=e.getThisContainer(t,false);return r.kind===157||r.kind===239||r.kind===196&&!e.isPrototypePropertyAssignment(r.parent)}function getConstructorDefinedThisAssignmentTypes(t,r){e.Debug.assert(t.length===r.length);return t.filter(function(t,n){var i=r[n];var a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:undefined;return a&&isDeclarationInConstructor(a)})}function getTypeOfAssignmentDeclarationPropertyOfBaseType(t){var r=e.forEach(t.declarations,function(t){var r=e.getThisContainer(t,false).parent;return e.isClassLike(r)&&r});if(r){var n=getDeclaredTypeOfSymbol(getSymbolOfNode(r));var i=n&&getBaseTypes(n)[0];if(i){return getTypeOfPropertyOfType(i,t.escapedName)}}}function getTypeFromBindingElement(t,r,n){if(t.initializer){return addOptionality(checkDeclarationInitializer(t))}if(e.isBindingPattern(t.name)){return getTypeFromBindingPattern(t.name,r,n)}if(n&&!declarationBelongsToPrivateAmbientMember(t)){reportImplicitAny(t,X)}return X}function getTypeFromObjectBindingPattern(t,r,n){var i=e.createSymbolTable();var a;var o=128;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(isComputedNonLiteralName(s)){o|=512;return}if(t.dotDotDotToken){a=createIndexInfo(X,false);return}var c=e.getTextOfPropertyName(s);var u=4|(t.initializer?16777216:0);var l=createSymbol(u,c);l.type=getTypeFromBindingElement(t,r,n);l.bindingElement=t;i.set(l.escapedName,l)});var s=createAnonymousType(undefined,i,e.emptyArray,e.emptyArray,a,undefined);s.flags|=268435456;s.objectFlags|=o;if(r){s.pattern=t}return s}function getTypeFromArrayBindingPattern(t,r,n){var i=t.elements;var a=e.lastOrUndefined(i);var o=!!(a&&a.kind===186&&a.dotDotDotToken);if(i.length===0||i.length===1&&o){return C>=2?createIterableType(X):nt}var s=e.map(i,function(t){return e.isOmittedExpression(t)?X:getTypeFromBindingElement(t,r,n)});var c=e.findLastIndex(i,function(t){return!e.isOmittedExpression(t)&&!hasDefaultValue(t)},i.length-(o?2:1))+1;var u=createTupleType(s,c,o);if(r){u=cloneTypeReference(u);u.pattern=t}return u}function getTypeFromBindingPattern(e,t,r){if(t===void 0){t=false}if(r===void 0){r=false}return e.kind===184?getTypeFromObjectBindingPattern(e,t,r):getTypeFromArrayBindingPattern(e,t,r)}function getWidenedTypeForVariableLikeDeclaration(e,t){return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration(e,true),e,t)}function widenTypeForVariableLikeDeclaration(t,r,n){if(t){if(n){reportErrorsFromWidening(r,t)}if(t.flags&8192&&(e.isBindingElement(r)||!r.type)&&t.symbol!==getSymbolOfNode(r)){t=ge}return getWidenedType(t)}t=e.isParameter(r)&&r.dotDotDotToken?nt:X;if(n){if(!declarationBelongsToPrivateAmbientMember(r)){reportImplicitAny(r,t)}}return t}function declarationBelongsToPrivateAmbientMember(t){var r=e.getRootDeclaration(t);var n=r.kind===151?r.parent:r;return isPrivateWithinAmbient(n)}function tryGetTypeFromEffectiveTypeNode(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r){return getTypeFromTypeNode(r)}}function getTypeOfVariableOrParameterOrProperty(e){var t=getSymbolLinks(e);return t.type||(t.type=getTypeOfVariableOrParameterOrPropertyWorker(e))}function getTypeOfVariableOrParameterOrPropertyWorker(t){if(t.flags&4194304){return getTypeOfPrototypeProperty(t)}if(t===j){return X}if(t.flags&134217728){var r=getSymbolOfNode(e.getSourceFileOfNode(t.valueDeclaration));var n=e.createSymbolTable();n.set("exports",r);return createAnonymousType(t,n,e.emptyArray,e.emptyArray,undefined,undefined)}var i=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i)){return X}if(e.isSourceFile(i)){var a=e.cast(i,e.isJsonSourceFile);if(!a.statements.length){return xe}var o=getWidenedLiteralType(checkExpression(a.statements[0].expression));if(o.flags&524288){return getRegularTypeOfObjectLiteral(o)}return o}if(i.kind===254){return widenTypeForVariableLikeDeclaration(checkExpressionCached(i.expression),i)}if(!pushTypeResolution(t,0)){return ee}var s;if(e.isInJSFile(i)&&(e.isCallExpression(i)||e.isBinaryExpression(i)||e.isPropertyAccessExpression(i)&&e.isBinaryExpression(i.parent))){s=getWidenedTypeFromAssignmentDeclaration(t)}else if(e.isJSDocPropertyLikeTag(i)||e.isPropertyAccessExpression(i)||e.isIdentifier(i)||e.isClassDeclaration(i)||e.isFunctionDeclaration(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)){if(t.flags&(16|8192|32|384|512)){return getTypeOfFuncClassEnumModule(t)}s=e.isBinaryExpression(i.parent)?getWidenedTypeFromAssignmentDeclaration(t):tryGetTypeFromEffectiveTypeNode(i)||X}else if(e.isPropertyAssignment(i)){s=tryGetTypeFromEffectiveTypeNode(i)||checkPropertyAssignment(i)}else if(e.isJsxAttribute(i)){s=tryGetTypeFromEffectiveTypeNode(i)||checkJsxAttribute(i)}else if(e.isShorthandPropertyAssignment(i)){s=tryGetTypeFromEffectiveTypeNode(i)||checkExpressionForMutableLocation(i.name,0)}else if(e.isObjectLiteralMethod(i)){s=tryGetTypeFromEffectiveTypeNode(i)||checkObjectLiteralMethod(i,0)}else if(e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i)){s=getWidenedTypeForVariableLikeDeclaration(i,true)}else if(e.isEnumDeclaration(i)){s=getTypeOfFuncClassEnumModule(t)}else if(e.isEnumMember(i)){s=getTypeOfEnumMember(t)}else{return e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(i)+" for "+e.Debug.showSymbol(t))}if(!popTypeResolution()){s=reportCircularityError(t)}return s}function getAnnotatedAccessorTypeNode(t){if(t){if(t.kind===158){var r=e.getEffectiveReturnTypeNode(t);return r}else{var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n}}return undefined}function getAnnotatedAccessorType(e){var t=getAnnotatedAccessorTypeNode(e);return t&&getTypeFromTypeNode(t)}function getAnnotatedAccessorThisParameter(e){var t=getAccessorThisParameter(e);return t&&t.symbol}function getThisTypeOfDeclaration(e){return getThisTypeOfSignature(getSignatureFromDeclaration(e))}function getTypeOfAccessors(e){var t=getSymbolLinks(e);return t.type||(t.type=getTypeOfAccessorsWorker(e))}function getTypeOfAccessorsWorker(t){var r=e.getDeclarationOfKind(t,158);var n=e.getDeclarationOfKind(t,159);if(r&&e.isInJSFile(r)){var i=getTypeForDeclarationFromJSDocComment(r);if(i){return i}}if(!pushTypeResolution(t,0)){return ee}var a;var o=getAnnotatedAccessorType(r);if(o){a=o}else{var s=getAnnotatedAccessorType(n);if(s){a=s}else{if(r&&r.body){a=getReturnTypeFromBody(r)}else{if(n){errorOrSuggestion(F,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,symbolToString(t))}else{e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function");errorOrSuggestion(F,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,symbolToString(t))}a=X}}}if(!popTypeResolution()){a=X;if(F){var c=e.getDeclarationOfKind(t,158);error(c,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,symbolToString(t))}}return a}function getBaseTypeVariableOfClass(e){var t=getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(e));return t.flags&8650752?t:undefined}function getTypeOfFuncClassEnumModule(t){var r=getSymbolLinks(t);var n=r;if(!r.type){var i=e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=getSymbolOfNode(i);if(a&&(e.hasEntries(a.exports)||e.hasEntries(a.members))){t=cloneSymbol(t);r=t;if(e.hasEntries(a.exports)){t.exports=t.exports||e.createSymbolTable();mergeSymbolTable(t.exports,a.exports)}if(e.hasEntries(a.members)){t.members=t.members||e.createSymbolTable();mergeSymbolTable(t.members,a.members)}}}n.type=r.type=getTypeOfFuncClassEnumModuleWorker(t)}return r.type}function getTypeOfFuncClassEnumModuleWorker(t){var r=t.valueDeclaration;if(t.flags&1536&&e.isShorthandAmbientModuleSymbol(t)){return X}else if(r.kind===204||r.kind===189&&r.parent.kind===204){return getWidenedTypeFromAssignmentDeclaration(t)}else if(t.flags&512&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=resolveExternalModuleSymbol(t);if(n!==t){if(!pushTypeResolution(t,0)){return ee}var i=getMergedSymbol(t.exports.get("export="));var a=getWidenedTypeFromAssignmentDeclaration(i,i===n?undefined:n);if(!popTypeResolution()){return reportCircularityError(t)}return a}}var o=createObjectType(16,t);if(t.flags&32){var s=getBaseTypeVariableOfClass(t);return s?getIntersectionType([o,s]):o}else{return k&&t.flags&16777216?getOptionalType(o):o}}function getTypeOfEnumMember(e){var t=getSymbolLinks(e);return t.type||(t.type=getDeclaredTypeOfEnumMember(e))}function getTypeOfAlias(e){var t=getSymbolLinks(e);if(!t.type){var r=resolveAlias(e);t.type=r.flags&67220415?getTypeOfSymbol(r):ee}return t.type}function getTypeOfInstantiatedSymbol(e){var t=getSymbolLinks(e);if(!t.type){if(!pushTypeResolution(e,0)){return t.type=ee}var r=instantiateType(getTypeOfSymbol(t.target),t.mapper);if(!popTypeResolution()){r=reportCircularityError(e)}t.type=r}return t.type}function reportCircularityError(t){if(e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){error(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,symbolToString(t));return ee}if(F){error(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,symbolToString(t))}return X}function getTypeOfSymbol(t){if(e.getCheckFlags(t)&1){return getTypeOfInstantiatedSymbol(t)}if(e.getCheckFlags(t)&2048){return getTypeOfReverseMappedSymbol(t)}if(t.flags&(3|4)){return getTypeOfVariableOrParameterOrProperty(t)}if(t.flags&(16|8192|32|384|512)){return getTypeOfFuncClassEnumModule(t)}if(t.flags&8){return getTypeOfEnumMember(t)}if(t.flags&98304){return getTypeOfAccessors(t)}if(t.flags&2097152){return getTypeOfAlias(t)}return ee}function isReferenceToType(t,r){return t!==undefined&&r!==undefined&&(e.getObjectFlags(t)&4)!==0&&t.target===r}function getTargetType(t){return e.getObjectFlags(t)&4?t.target:t}function hasBaseType(t,r){return check(t);function check(t){if(e.getObjectFlags(t)&(3|4)){var n=getTargetType(t);return n===r||e.some(getBaseTypes(n),check)}else if(t.flags&2097152){return e.some(t.types,check)}return false}}function appendTypeParameters(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,getDeclaredTypeOfTypeParameter(getSymbolOfNode(a)))}return t}function getOuterTypeParameters(t,r){while(true){t=t.parent;if(!t){return undefined}switch(t.kind){case 240:case 209:case 241:case 160:case 161:case 155:case 165:case 166:case 289:case 239:case 156:case 196:case 197:case 242:case 303:case 304:case 297:case 181:case 175:var n=getOuterTypeParameters(t,r);if(t.kind===181){return e.append(n,getDeclaredTypeOfTypeParameter(getSymbolOfNode(t.typeParameter)))}else if(t.kind===175){return e.concatenate(n,getInferTypeParameters(t))}var i=appendTypeParameters(n,e.getEffectiveTypeParameterDeclarations(t));var a=r&&(t.kind===240||t.kind===209||t.kind===241)&&getDeclaredTypeOfClassOrInterface(getSymbolOfNode(t)).thisType;return a?e.append(i,a):i}}}function getOuterTypeParametersOfClassOrInterface(t){var r=t.flags&32?t.valueDeclaration:e.getDeclarationOfKind(t,241);return getOuterTypeParameters(r)}function getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t){var r;for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(a.kind===241||a.kind===240||a.kind===209||e.isTypeAlias(a)){var o=a;r=appendTypeParameters(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function getTypeParametersOfClassOrInterface(t){return e.concatenate(getOuterTypeParametersOfClassOrInterface(t),getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t))}function isMixinConstructorType(e){var t=getSignaturesOfType(e,1);if(t.length===1){var r=t[0];return!r.typeParameters&&r.parameters.length===1&&r.hasRestParameter&&getTypeOfParameter(r.parameters[0])===nt}return false}function isConstructorType(e){if(isValidBaseType(e)&&getSignaturesOfType(e,1).length>0){return true}if(e.flags&8650752){var t=getBaseConstraintOfType(e);return!!t&&isValidBaseType(t)&&isMixinConstructorType(t)}return isJSConstructorType(e)}function getBaseTypeNodeOfClass(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function getConstructorsForTypeArguments(t,r,n){var i=e.length(r);var a=e.isInJSFile(n);return e.filter(getSignaturesOfType(t,1),function(t){return(a||i>=getMinTypeArgumentCount(t.typeParameters))&&i<=e.length(t.typeParameters)})}function getInstantiatedConstructorsForTypeArguments(t,r,n){var i=getConstructorsForTypeArguments(t,r,n);var a=e.map(r,getTypeFromTypeNode);return e.sameMap(i,function(t){return e.some(t.typeParameters)?getSignatureInstantiation(t,a,e.isInJSFile(n)):t})}function getBaseConstructorTypeOfClass(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration;var n=e.getEffectiveBaseTypeNode(r);var i=getBaseTypeNodeOfClass(t);if(!i){return t.resolvedBaseConstructorType=re}if(!pushTypeResolution(t,1)){return ee}var a=checkExpression(i.expression);if(n&&i!==n){e.Debug.assert(!n.typeArguments);checkExpression(n.expression)}if(a.flags&(524288|2097152)){resolveStructuredTypeMembers(a)}if(!popTypeResolution()){error(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,symbolToString(t.symbol));return t.resolvedBaseConstructorType=ee}if(!(a.flags&1)&&a!==ae&&!isConstructorType(a)){var o=error(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,typeToString(a));if(a.flags&262144){var s=getConstraintFromTypeParameter(a);var c=te;if(s){var u=getSignaturesOfType(s,1);if(u[0]){c=getReturnTypeOfSignature(u[0])}}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,symbolToString(a.symbol),typeToString(c)))}return t.resolvedBaseConstructorType=ee}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function getBaseTypes(t){if(!t.resolvedBaseTypes){if(t.objectFlags&8){t.resolvedBaseTypes=[createArrayType(getUnionType(t.typeParameters||e.emptyArray))]}else if(t.symbol.flags&(32|64)){if(t.symbol.flags&32){resolveBaseTypesOfClass(t)}if(t.symbol.flags&64){resolveBaseTypesOfInterface(t)}}else{e.Debug.fail("type must be class or interface")}}return t.resolvedBaseTypes}function resolveBaseTypesOfClass(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=getApparentType(getBaseConstructorTypeOfClass(t));if(!(r.flags&(524288|2097152|1))){return t.resolvedBaseTypes=e.emptyArray}var n=getBaseTypeNodeOfClass(t);var i=typeArgumentsFromTypeReferenceNode(n);var a;var o=isJSConstructorType(r)?r:r.symbol?getDeclaredTypeOfSymbol(r.symbol):undefined;if(r.symbol&&r.symbol.flags&32&&areAllOuterTypeParametersApplied(o)){a=getTypeFromClassOrInterfaceReference(n,r.symbol,i)}else if(r.flags&1){a=r}else if(isJSConstructorType(r)){a=!n.typeArguments&&getJSClassType(r.symbol)||X}else{var s=getInstantiatedConstructorsForTypeArguments(r,n.typeArguments,n);if(!s.length){error(n.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);return t.resolvedBaseTypes=e.emptyArray}a=getReturnTypeOfSignature(s[0])}if(a===ee){return t.resolvedBaseTypes=e.emptyArray}if(!isValidBaseType(a)){error(n.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,typeToString(a));return t.resolvedBaseTypes=e.emptyArray}if(t===a||hasBaseType(a,t)){error(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,typeToString(t,undefined,2));return t.resolvedBaseTypes=e.emptyArray}if(t.resolvedBaseTypes===e.resolvingEmptyArray){t.members=undefined}return t.resolvedBaseTypes=[a]}function areAllOuterTypeParametersApplied(e){var t=e.outerTypeParameters;if(t){var r=t.length-1;var n=e.typeArguments;return t[r].symbol!==n[r].symbol}return true}function isValidBaseType(t){return!!(t.flags&(524288|67108864|1))&&!isGenericMappedType(t)||!!(t.flags&2097152)&&e.every(t.types,isValidBaseType)}function resolveBaseTypesOfInterface(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(i.kind===241&&e.getInterfaceBaseTypeNodes(i)){for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a];var c=getTypeFromTypeNode(s);if(c!==ee){if(isValidBaseType(c)){if(t!==c&&!hasBaseType(c,t)){if(t.resolvedBaseTypes===e.emptyArray){t.resolvedBaseTypes=[c]}else{t.resolvedBaseTypes.push(c)}}else{error(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,typeToString(t,undefined,2))}}else{error(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}}}}function isThislessInterface(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.kind===241){if(i.flags&64){return false}var a=e.getInterfaceBaseTypeNodes(i);if(a){for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=resolveEntityName(c.expression,67897832,true);if(!u||!(u.flags&64)||getDeclaredTypeOfClassOrInterface(u).thisType){return false}}}}}}return true}function getDeclaredTypeOfClassOrInterface(t){var r=getSymbolLinks(t);if(!r.declaredType){var n=t.flags&32?1:2;var i=r.declaredType=createObjectType(n,t);var a=getOuterTypeParametersOfClassOrInterface(t);var o=getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t);if(a||o||n===1||!isThislessInterface(t)){i.objectFlags|=4;i.typeParameters=e.concatenate(a,o);i.outerTypeParameters=a;i.localTypeParameters=o;i.instantiations=e.createMap();i.instantiations.set(getTypeListId(i.typeParameters),i);i.target=i;i.typeArguments=i.typeParameters;i.thisType=createType(262144);i.thisType.isThisType=true;i.thisType.symbol=t;i.thisType.constraint=i}}return r.declaredType}function getDeclaredTypeOfTypeAlias(t){var r=getSymbolLinks(t);if(!r.declaredType){if(!pushTypeResolution(t,2)){return ee}var n=e.find(t.declarations,function(t){return e.isJSDocTypeAlias(t)||t.kind===242});var i=e.isJSDocTypeAlias(n)?n.typeExpression:n.type;var a=i?getTypeFromTypeNode(i):ee;if(popTypeResolution()){var o=getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t);if(o){r.typeParameters=o;r.instantiations=e.createMap();r.instantiations.set(getTypeListId(o),a)}}else{a=ee;error(n.name,e.Diagnostics.Type_alias_0_circularly_references_itself,symbolToString(t))}r.declaredType=a}return r.declaredType}function isStringConcatExpression(e){if(e.kind===10){return true}else if(e.kind===204){return isStringConcatExpression(e.left)&&isStringConcatExpression(e.right)}return false}function isLiteralEnumMember(t){var r=t.initializer;if(!r){return!(t.flags&4194304)}switch(r.kind){case 10:case 8:return true;case 202:return r.operator===39&&r.operand.kind===8;case 72:return e.nodeIsMissing(r)||!!getSymbolOfNode(t.parent).exports.get(r.escapedText);case 204:return isStringConcatExpression(r);default:return false}}function getEnumKind(e){var t=getSymbolLinks(e);if(t.enumKind!==undefined){return t.enumKind}var r=false;for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(a.kind===243){for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&c.initializer.kind===10){return t.enumKind=1}if(!isLiteralEnumMember(c)){r=true}}}}return t.enumKind=r?0:1}function getBaseTypeOfEnumLiteralType(e){return e.flags&1024&&!(e.flags&1048576)?getDeclaredTypeOfSymbol(getParentOfSymbol(e.symbol)):e}function getDeclaredTypeOfEnum(e){var t=getSymbolLinks(e);if(t.declaredType){return t.declaredType}if(getEnumKind(e)===1){h++;var r=[];for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(a.kind===243){for(var o=0,s=a.members;o<s.length;o++){var c=s[o];var u=getFreshTypeOfLiteralType(getLiteralType(getEnumMemberValue(c),h,getSymbolOfNode(c)));getSymbolLinks(getSymbolOfNode(c)).declaredType=u;r.push(getRegularTypeOfLiteralType(u))}}}if(r.length){var l=getUnionType(r,1,e,undefined);if(l.flags&1048576){l.flags|=1024;l.symbol=e}return t.declaredType=l}}var f=createType(32);f.symbol=e;return t.declaredType=f}function getDeclaredTypeOfEnumMember(e){var t=getSymbolLinks(e);if(!t.declaredType){var r=getDeclaredTypeOfEnum(getParentOfSymbol(e));if(!t.declaredType){t.declaredType=r}}return t.declaredType}function getDeclaredTypeOfTypeParameter(e){var t=getSymbolLinks(e);if(!t.declaredType){var r=createType(262144);r.symbol=e;t.declaredType=r}return t.declaredType}function getDeclaredTypeOfAlias(e){var t=getSymbolLinks(e);if(!t.declaredType){t.declaredType=getDeclaredTypeOfSymbol(resolveAlias(e))}return t.declaredType}function getDeclaredTypeOfSymbol(e){return tryGetDeclaredTypeOfSymbol(e)||ee}function tryGetDeclaredTypeOfSymbol(e){if(e.flags&(32|64)){return getDeclaredTypeOfClassOrInterface(e)}if(e.flags&524288){return getDeclaredTypeOfTypeAlias(e)}if(e.flags&262144){return getDeclaredTypeOfTypeParameter(e)}if(e.flags&384){return getDeclaredTypeOfEnum(e)}if(e.flags&8){return getDeclaredTypeOfEnumMember(e)}if(e.flags&2097152){return getDeclaredTypeOfAlias(e)}return undefined}function isThislessType(e){switch(e.kind){case 120:case 143:case 138:case 135:case 146:case 123:case 139:case 136:case 106:case 141:case 96:case 132:case 182:return true;case 169:return isThislessType(e.elementType);case 164:return!e.typeArguments||e.typeArguments.every(isThislessType)}return false}function isThislessTypeParameter(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||isThislessType(r)}function isThislessVariableLikeDeclaration(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?isThislessType(r):!e.hasInitializer(t)}function isThislessFunctionLikeDeclaration(t){var r=e.getEffectiveReturnTypeNode(t);var n=e.getEffectiveTypeParameterDeclarations(t);return(t.kind===157||!!r&&isThislessType(r))&&t.parameters.every(isThislessVariableLikeDeclaration)&&n.every(isThislessTypeParameter)}function isThisless(e){if(e.declarations&&e.declarations.length===1){var t=e.declarations[0];if(t){switch(t.kind){case 154:case 153:return isThislessVariableLikeDeclaration(t);case 156:case 155:case 157:return isThislessFunctionLikeDeclaration(t)}}}return false}function createInstantiatedSymbolTable(t,r,n){var i=e.createSymbolTable();for(var a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&isThisless(s)?s:instantiateSymbol(s,r))}return i}function addInheritedMembers(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.has(i.escapedName)){e.set(i.escapedName,i)}}}function resolveDeclaredMembers(t){if(!t.declaredProperties){var r=t.symbol;var n=getMembersOfSymbol(r);t.declaredProperties=getNamedMembers(n);t.declaredCallSignatures=e.emptyArray;t.declaredConstructSignatures=e.emptyArray;t.declaredCallSignatures=getSignaturesOfSymbol(n.get("__call"));t.declaredConstructSignatures=getSignaturesOfSymbol(n.get("__new"));t.declaredStringIndexInfo=getIndexInfoOfSymbol(r,0);t.declaredNumberIndexInfo=getIndexInfoOfSymbol(r,1)}return t}function isTypeUsableAsLateBoundName(e){return!!(e.flags&8576)}function isLateBindableName(t){return e.isComputedPropertyName(t)&&e.isEntityNameExpression(t.expression)&&isTypeUsableAsLateBoundName(checkComputedPropertyName(t))}function isLateBoundName(e){return e.charCodeAt(0)===95&&e.charCodeAt(1)===95&&e.charCodeAt(2)===64}function hasLateBindableName(t){var r=e.getNameOfDeclaration(t);return!!r&&isLateBindableName(r)}function hasNonBindableDynamicName(t){return e.hasDynamicName(t)&&!hasLateBindableName(t)}function isNonBindableDynamicName(t){return e.isDynamicName(t)&&!isLateBindableName(t)}function getLateBoundNameFromType(t){if(t.flags&8192){return"__@"+t.symbol.escapedName+"@"+getSymbolId(t.symbol)}if(t.flags&(128|256)){return e.escapeLeadingUnderscores(""+t.value)}return e.Debug.fail()}function addDeclarationToLateBoundSymbol(t,r,n){e.Debug.assert(!!(e.getCheckFlags(t)&1024),"Expected a late-bound symbol.");t.flags|=n;getSymbolLinks(r.symbol).lateSymbol=t;if(!t.declarations){t.declarations=[r]}else{t.declarations.push(r)}if(n&67220415){if(!t.valueDeclaration||t.valueDeclaration.kind!==r.kind){t.valueDeclaration=r}}}function lateBindMember(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=getNodeLinks(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=checkComputedPropertyName(i.name);if(isTypeUsableAsLateBoundName(o)){var s=getLateBoundNameFromType(o);var c=i.symbol.flags;var u=n.get(s);if(!u)n.set(s,u=createSymbol(0,s,1024));var l=r&&r.get(s);if(u.flags&getExcludedSymbolFlags(c)||l){var f=l?e.concatenate(l.declarations,u.declarations):u.declarations;var d=e.declarationNameToString(i.name);e.forEach(f,function(t){return error(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_declaration_0,d)});error(i.name||i,e.Diagnostics.Duplicate_declaration_0,d);u=createSymbol(0,s,1024)}u.nameType=o;addDeclarationToLateBoundSymbol(u,i,c);if(u.parent){e.Debug.assert(u.parent===t,"Existing symbol parent should match new one")}else{u.parent=t}return a.resolvedSymbol=u}}return a.resolvedSymbol}function getResolvedMembersOrExportsOfSymbol(t,r){var n=getSymbolLinks(t);if(!n[r]){var i=r==="resolvedExports";var a=!i?t.members:t.flags&1536?getExportsOfModuleWorker(t):t.exports;n[r]=a||S;var o=e.createSymbolTable();for(var s=0,c=t.declarations;s<c.length;s++){var u=c[s];var l=e.getMembersOfDeclaration(u);if(l){for(var f=0,d=l;f<d.length;f++){var p=d[f];if(i===e.hasStaticModifier(p)&&hasLateBindableName(p)){lateBindMember(t,a,o,p)}}}}n[r]=combineSymbolTables(a,o)||S}return n[r]}function getMembersOfSymbol(e){return e.flags&6240?getResolvedMembersOrExportsOfSymbol(e,"resolvedMembers"):e.members||S}function getLateBoundSymbol(t){if(t.flags&106500&&t.escapedName==="__computed"){var r=getSymbolLinks(t);if(!r.lateSymbol&&e.some(t.declarations,hasLateBindableName)){if(e.some(t.declarations,e.hasStaticModifier)){getExportsOfSymbol(t.parent)}else{getMembersOfSymbol(t.parent)}}return r.lateSymbol||(r.lateSymbol=t)}return t}function getTypeWithThisArgument(t,r,n){if(e.getObjectFlags(t)&4){var i=t.target;var a=t.typeArguments;if(e.length(i.typeParameters)===e.length(a)){var o=createTypeReference(i,e.concatenate(a,[r||i.thisType]));return n?getApparentType(o):o}}else if(t.flags&2097152){return getIntersectionType(e.map(t.types,function(e){return getTypeWithThisArgument(e,r,n)}))}return n?getApparentType(t):t}function resolveObjectTypeMembers(t,r,n,i){var a;var o;var s;var c;var u;var l;if(e.rangeEquals(n,i,0,n.length)){a=b;o=r.symbol?getMembersOfSymbol(r.symbol):e.createSymbolTable(r.declaredProperties);s=r.declaredCallSignatures;c=r.declaredConstructSignatures;u=r.declaredStringIndexInfo;l=r.declaredNumberIndexInfo}else{a=createTypeMapper(n,i);o=createInstantiatedSymbolTable(r.declaredProperties,a,n.length===1);s=instantiateSignatures(r.declaredCallSignatures,a);c=instantiateSignatures(r.declaredConstructSignatures,a);u=instantiateIndexInfo(r.declaredStringIndexInfo,a);l=instantiateIndexInfo(r.declaredNumberIndexInfo,a)}var f=getBaseTypes(r);if(f.length){if(r.symbol&&o===getMembersOfSymbol(r.symbol)){o=e.createSymbolTable(r.declaredProperties)}setStructuredTypeMembers(t,o,s,c,u,l);var d=e.lastOrUndefined(i);for(var p=0,g=f;p<g.length;p++){var _=g[p];var m=d?getTypeWithThisArgument(instantiateType(_,a),d):_;addInheritedMembers(o,getPropertiesOfType(m));s=e.concatenate(s,getSignaturesOfType(m,0));c=e.concatenate(c,getSignaturesOfType(m,1));if(!u){u=m===X?createIndexInfo(X,false):getIndexInfoOfType(m,0)}l=l||getIndexInfoOfType(m,1)}}setStructuredTypeMembers(t,o,s,c,u,l)}function resolveClassOrInterfaceMembers(t){resolveObjectTypeMembers(t,resolveDeclaredMembers(t),e.emptyArray,e.emptyArray)}function resolveTypeReferenceMembers(t){var r=resolveDeclaredMembers(t.target);var n=e.concatenate(r.typeParameters,[r.thisType]);var i=t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]);resolveObjectTypeMembers(t,r,n,i)}function createSignature(e,t,r,n,i,a,o,s,c){var u=new _(W);u.declaration=e;u.typeParameters=t;u.parameters=n;u.thisParameter=r;u.resolvedReturnType=i;u.resolvedTypePredicate=a;u.minArgumentCount=o;u.hasRestParameter=s;u.hasLiteralTypes=c;u.target=undefined;u.mapper=undefined;return u}function cloneSignature(e){return createSignature(e.declaration,e.typeParameters,e.thisParameter,e.parameters,undefined,undefined,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function getExpandedParameters(t){if(t.hasRestParameter){var r=t.parameters.length-1;var n=t.parameters[r];var i=getTypeOfSymbol(n);if(isTupleType(i)){var a=i.typeArguments||e.emptyArray;var o=i.target.minLength;var s=i.target.hasRestElement?a.length-1:-1;var c=e.map(a,function(e,n){var i=getParameterNameAtPosition(t,r+n);var a=n===s?8192:n>=o?4096:0;var c=createSymbol(1,i,a);c.type=n===s?createArrayType(e):e;return c});return e.concatenate(t.parameters.slice(0,r),c)}}return t.parameters}function getDefaultConstructSignatures(t){var r=getBaseConstructorTypeOfClass(t);var n=getSignaturesOfType(r,1);if(n.length===0){return[createSignature(undefined,t.localTypeParameters,undefined,e.emptyArray,t,undefined,0,false,false)]}var i=getBaseTypeNodeOfClass(t);var a=e.isInJSFile(i);var o=typeArgumentsFromTypeReferenceNode(i);var s=e.length(o);var c=[];for(var u=0,l=n;u<l.length;u++){var f=l[u];var d=getMinTypeArgumentCount(f.typeParameters);var p=e.length(f.typeParameters);if(a||s>=d&&s<=p){var g=p?createSignatureInstantiation(f,fillMissingTypeArguments(o,f.typeParameters,d,a)):cloneSignature(f);g.typeParameters=t.localTypeParameters;g.resolvedReturnType=t;c.push(g)}}return c}function findMatchingSignature(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(compareSignaturesIdentical(s,t,r,n,i,r?compareTypesSubtypeOf:compareTypesIdentical)){return s}}}function findMatchingSignatures(t,r,n){if(r.typeParameters){if(n>0){return undefined}for(var i=1;i<t.length;i++){if(!findMatchingSignature(t[i],r,false,false,false)){return undefined}}return[r]}var a;for(var i=0;i<t.length;i++){var o=i===n?r:findMatchingSignature(t[i],r,true,true,true);if(!o){return undefined}a=e.appendIfUnique(a,o)}return a}function getUnionSignatures(t){var r;for(var n=0;n<t.length;n++){for(var i=0,a=t[n];i<a.length;i++){var o=a[i];if(!r||!findMatchingSignature(r,o,false,true,true)){var s=findMatchingSignatures(t,o,n);if(s){var c=o;if(s.length>1){var u=o.thisParameter;if(e.forEach(s,function(e){return e.thisParameter})){var l=getUnionType(e.map(s,function(e){return e.thisParameter?getTypeOfSymbol(e.thisParameter):X}),2);u=createSymbolWithType(o.thisParameter,l)}c=cloneSignature(o);c.thisParameter=u;c.unionSignatures=s}(r||(r=[])).push(c)}}}}return r||e.emptyArray}function getUnionIndexInfo(e,t){var r=[];var n=false;for(var i=0,a=e;i<a.length;i++){var o=a[i];var s=getIndexInfoOfType(o,t);if(!s){return undefined}r.push(s.type);n=n||s.isReadonly}return createIndexInfo(getUnionType(r,2),n)}function resolveUnionTypeMembers(t){var r=getUnionSignatures(e.map(t.types,function(e){return getSignaturesOfType(e,0)}));var n=getUnionSignatures(e.map(t.types,function(e){return getSignaturesOfType(e,1)}));var i=getUnionIndexInfo(t.types,0);var a=getUnionIndexInfo(t.types,1);setStructuredTypeMembers(t,S,r,n,i,a)}function intersectTypes(e,t){return!e?t:!t?e:getIntersectionType([e,t])}function intersectIndexInfos(e,t){return!e?t:!t?e:createIndexInfo(getIntersectionType([e.type,t.type]),e.isReadonly&&t.isReadonly)}function unionSpreadIndexInfos(e,t){return e&&t&&createIndexInfo(getUnionType([e.type,t.type]),e.isReadonly||t.isReadonly)}function includeMixinType(e,t,r){var n=[];for(var i=0;i<t.length;i++){if(i===r){n.push(e)}else if(isMixinConstructorType(t[i])){n.push(getReturnTypeOfSignature(getSignaturesOfType(t[i],1)[0]))}}return getIntersectionType(n)}function resolveIntersectionTypeMembers(t){var r=e.emptyArray;var n=e.emptyArray;var i;var a;var o=t.types;var s=e.countWhere(o,isMixinConstructorType);var c=function(c){var u=t.types[c];if(s===0||s===o.length&&c===0||!isMixinConstructorType(u)){var l=getSignaturesOfType(u,1);if(l.length&&s>0){l=e.map(l,function(e){var t=cloneSignature(e);t.resolvedReturnType=includeMixinType(getReturnTypeOfSignature(e),o,c);return t})}n=e.concatenate(n,l)}r=e.concatenate(r,getSignaturesOfType(u,0));i=intersectIndexInfos(i,getIndexInfoOfType(u,0));a=intersectIndexInfos(a,getIndexInfoOfType(u,1))};for(var u=0;u<o.length;u++){c(u)}setStructuredTypeMembers(t,S,r,n,i,a)}function resolveAnonymousTypeMembers(t){var r=t.symbol;if(t.target){setStructuredTypeMembers(t,S,e.emptyArray,e.emptyArray,undefined,undefined);var n=createInstantiatedSymbolTable(getPropertiesOfObjectType(t.target),t.mapper,false);var i=instantiateSignatures(getSignaturesOfType(t.target,0),t.mapper);var a=instantiateSignatures(getSignaturesOfType(t.target,1),t.mapper);var o=instantiateIndexInfo(getIndexInfoOfType(t.target,0),t.mapper);var s=instantiateIndexInfo(getIndexInfoOfType(t.target,1),t.mapper);setStructuredTypeMembers(t,n,i,a,o,s)}else if(r.flags&2048){setStructuredTypeMembers(t,S,e.emptyArray,e.emptyArray,undefined,undefined);var n=getMembersOfSymbol(r);var i=getSignaturesOfSymbol(n.get("__call"));var a=getSignaturesOfSymbol(n.get("__new"));var o=getIndexInfoOfSymbol(r,0);var s=getIndexInfoOfSymbol(r,1);setStructuredTypeMembers(t,n,i,a,o,s)}else{var n=S;var o=void 0;if(r.exports){n=getExportsOfSymbol(r)}setStructuredTypeMembers(t,n,e.emptyArray,e.emptyArray,undefined,undefined);if(r.flags&32){var c=getDeclaredTypeOfClassOrInterface(r);var u=getBaseConstructorTypeOfClass(c);if(u.flags&(524288|2097152|8650752)){n=e.createSymbolTable(getNamedMembers(n));addInheritedMembers(n,getPropertiesOfType(u))}else if(u===X){o=createIndexInfo(X,false)}}var s=r.flags&384?Je:undefined;setStructuredTypeMembers(t,n,e.emptyArray,e.emptyArray,o,s);if(r.flags&(16|8192)){t.callSignatures=getSignaturesOfSymbol(r);t.constructSignatures=e.filter(t.callSignatures,function(e){return isJSConstructor(e.declaration)})}if(r.flags&32){var c=getDeclaredTypeOfClassOrInterface(r);var a=getSignaturesOfSymbol(r.members.get("__constructor"));if(!a.length){a=getDefaultConstructSignatures(c)}t.constructSignatures=a}}}function resolveReverseMappedTypeMembers(t){var r=getIndexInfoOfType(t.source,0);var n=getMappedTypeModifiers(t.mappedType);var i=n&1?false:true;var a=n&4?0:16777216;var o=r&&createIndexInfo(inferReverseMappedType(r.type,t.mappedType,t.constraintType),i&&r.isReadonly);var s=e.createSymbolTable();for(var c=0,u=getPropertiesOfType(t.source);c<u.length;c++){var l=u[c];var f=2048|(i&&isReadonlySymbol(l)?8:0);var d=createSymbol(4|l.flags&a,l.escapedName,f);d.declarations=l.declarations;d.nameType=l.nameType;d.propertyType=getTypeOfSymbol(l);d.mappedType=t.mappedType;d.constraintType=t.constraintType;s.set(l.escapedName,d)}setStructuredTypeMembers(t,s,e.emptyArray,e.emptyArray,o,undefined)}function resolveMappedTypeMembers(t){var r=e.createSymbolTable();var n;var i;setStructuredTypeMembers(t,S,e.emptyArray,e.emptyArray,undefined,undefined);var a=getTypeParameterFromMappedType(t);var o=getConstraintTypeFromMappedType(t);var s=getTemplateTypeFromMappedType(t.target||t);var c=getApparentType(getModifiersTypeFromMappedType(t));var u=getMappedTypeModifiers(t);var l=I?128:8576;if(isMappedTypeWithKeyofConstraintDeclaration(t)){for(var f=0,d=getPropertiesOfType(c);f<d.length;f++){var p=d[f];addMemberForKeyType(getLiteralTypeFromProperty(p,l))}if(c.flags&1||getIndexInfoOfType(c,0)){addMemberForKeyType(oe)}if(!I&&getIndexInfoOfType(c,1)){addMemberForKeyType(se)}}else{var g=o.flags&4194304?getIndexType(getApparentType(o.type)):o;forEachType(g,addMemberForKeyType)}setStructuredTypeMembers(t,r,e.emptyArray,e.emptyArray,n,i);function addMemberForKeyType(e){var o=combineTypeMappers(t.mapper,createTypeMapper([a],[e]));var l=instantiateType(s,o);if(e.flags&8576){var f=getLateBoundNameFromType(e);var d=getPropertyOfType(c,f);var p=!!(u&4||!(u&8)&&d&&d.flags&16777216);var g=!!(u&1||!(u&2)&&d&&isReadonlySymbol(d));var _=createSymbol(4|(p?16777216:0),f,g?8:0);_.type=k&&p&&!isTypeAssignableTo(re,l)?getOptionalType(l):k&&!p&&d&&d.flags&16777216?getTypeWithFacts(l,524288):l;if(d){_.syntheticOrigin=d;_.declarations=d.declarations}_.nameType=e;r.set(f,_)}else if(e.flags&(1|4)){n=createIndexInfo(l,!!(u&1))}else if(e.flags&8){i=createIndexInfo(l,!!(u&1))}}}function getTypeParameterFromMappedType(e){return e.typeParameter||(e.typeParameter=getDeclaredTypeOfTypeParameter(getSymbolOfNode(e.declaration.typeParameter)))}function getConstraintTypeFromMappedType(e){return e.constraintType||(e.constraintType=getConstraintOfTypeParameter(getTypeParameterFromMappedType(e))||ee)}function getTemplateTypeFromMappedType(e){return e.templateType||(e.templateType=e.declaration.type?instantiateType(addOptionality(getTypeFromTypeNode(e.declaration.type),!!(getMappedTypeModifiers(e)&4)),e.mapper||b):ee)}function getConstraintDeclarationForMappedType(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function isMappedTypeWithKeyofConstraintDeclaration(e){var t=getConstraintDeclarationForMappedType(e);return t.kind===179&&t.operator===129}function getModifiersTypeFromMappedType(e){if(!e.modifiersType){if(isMappedTypeWithKeyofConstraintDeclaration(e)){e.modifiersType=instantiateType(getTypeFromTypeNode(getConstraintDeclarationForMappedType(e).type),e.mapper||b)}else{var t=getTypeFromMappedTypeNode(e.declaration);var r=getConstraintTypeFromMappedType(t);var n=r&&r.flags&262144?getConstraintOfTypeParameter(r):r;e.modifiersType=n&&n.flags&4194304?instantiateType(n.type,e.mapper||b):xe}}return e.modifiersType}function getMappedTypeModifiers(e){var t=e.declaration;return(t.readonlyToken?t.readonlyToken.kind===39?2:1:0)|(t.questionToken?t.questionToken.kind===39?8:4:0)}function getMappedTypeOptionality(e){var t=getMappedTypeModifiers(e);return t&8?-1:t&4?1:0}function getCombinedMappedTypeOptionality(e){var t=getMappedTypeOptionality(e);var r=getModifiersTypeFromMappedType(e);return t||(isGenericMappedType(r)?getMappedTypeOptionality(r):0)}function isPartialMappedType(t){return!!(e.getObjectFlags(t)&32&&getMappedTypeModifiers(t)&4)}function isGenericMappedType(t){return!!(e.getObjectFlags(t)&32)&&isGenericIndexType(getConstraintTypeFromMappedType(t))}function resolveStructuredTypeMembers(e){if(!e.members){if(e.flags&524288){if(e.objectFlags&4){resolveTypeReferenceMembers(e)}else if(e.objectFlags&3){resolveClassOrInterfaceMembers(e)}else if(e.objectFlags&2048){resolveReverseMappedTypeMembers(e)}else if(e.objectFlags&16){resolveAnonymousTypeMembers(e)}else if(e.objectFlags&32){resolveMappedTypeMembers(e)}}else if(e.flags&1048576){resolveUnionTypeMembers(e)}else if(e.flags&2097152){resolveIntersectionTypeMembers(e)}}return e}function getPropertiesOfObjectType(t){if(t.flags&524288){return resolveStructuredTypeMembers(t).properties}return e.emptyArray}function getPropertyOfObjectType(e,t){if(e.flags&524288){var r=resolveStructuredTypeMembers(e);var n=r.members.get(t);if(n&&symbolIsValue(n)){return n}}}function getPropertiesOfUnionOrIntersectionType(t){if(!t.resolvedProperties){var r=e.createSymbolTable();for(var n=0,i=t.types;n<i.length;n++){var a=i[n];for(var o=0,s=getPropertiesOfType(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var u=getPropertyOfUnionOrIntersectionType(t,c.escapedName);if(u){r.set(c.escapedName,u)}}}if(t.flags&1048576){break}}t.resolvedProperties=getNamedMembers(r)}return t.resolvedProperties}function getPropertiesOfType(e){e=getApparentType(e);return e.flags&3145728?getPropertiesOfUnionOrIntersectionType(e):getPropertiesOfObjectType(e)}function isTypeInvalidDueToUnionDiscriminant(t,r){var n=r.properties;return n.some(function(r){var n=r.name&&e.getTextOfPropertyName(r.name);var i=n===undefined?undefined:getTypeOfPropertyOfType(t,n);return!!i&&typeIsLiteralType(i)&&!isTypeIdenticalTo(getTypeOfNode(r),i)})}function getAllPossiblePropertiesOfTypes(t){var r=getUnionType(t);if(!(r.flags&1048576)){return getAugmentedPropertiesOfType(r)}var n=e.createSymbolTable();for(var i=0,a=t;i<a.length;i++){var o=a[i];for(var s=0,c=getAugmentedPropertiesOfType(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=createUnionOrIntersectionProperty(r,u);if(l)n.set(u,l)}}}return e.arrayFrom(n.values())}function getConstraintOfType(e){return e.flags&262144?getConstraintOfTypeParameter(e):e.flags&8388608?getConstraintOfIndexedAccess(e):e.flags&16777216?getConstraintOfConditionalType(e):getBaseConstraintOfType(e)}function getConstraintOfTypeParameter(e){return hasNonCircularBaseConstraint(e)?getConstraintFromTypeParameter(e):undefined}function getConstraintOfIndexedAccess(e){var t=getConstraintOfType(e.objectType)||e.objectType;if(t!==e.objectType){var r=getIndexedAccessType(t,e.indexType,undefined,ee);if(r&&r!==ee){return r}}var n=getBaseConstraintOfType(e);return n&&n!==e?n:undefined}function getDefaultConstraintOfConditionalType(e){if(!e.resolvedDefaultConstraint){var t=e.root.trueType;var r=!(t.flags&33554432)?t:t.substitute.flags&3?t.typeVariable:getIntersectionType([t.substitute,t.typeVariable]);e.resolvedDefaultConstraint=getUnionType([instantiateType(r,e.combinedMapper||e.mapper),getFalseTypeFromConditionalType(e)])}return e.resolvedDefaultConstraint}function getConstraintOfDistributiveConditionalType(e){if(e.root.isDistributive){var t=getSimplifiedType(e.checkType);var r=t===e.checkType?getConstraintOfType(t):t;if(r){var n=makeUnaryTypeMapper(e.root.checkType,r);var i=getConditionalTypeInstantiation(e,combineTypeMappers(n,e.mapper));if(!(i.flags&131072)){return i}}}return undefined}function getConstraintOfConditionalType(e){return getConstraintOfDistributiveConditionalType(e)||getDefaultConstraintOfConditionalType(e)}function getUnionConstraintOfIntersection(t,r){var n;var i=false;for(var a=0,o=t.types;a<o.length;a++){var s=o[a];if(s.flags&63176704){var c=getConstraintOfType(s);while(c&&c.flags&(262144|4194304|16777216)){c=getConstraintOfType(c)}if(c){if(!(c.flags&1048576)){return undefined}n=e.append(n,c)}}else if(s.flags&67238908){i=true}}if(n&&(r||i)){if(i){for(var u=0,l=t.types;u<l.length;u++){var s=l[u];if(s.flags&67238908){n=e.append(n,s)}}}return getIntersectionType(n)}return undefined}function getBaseConstraintOfType(e){if(e.flags&(58982400|3145728)){var t=getResolvedBaseConstraint(e);return t!==Ae&&t!==Oe?t:undefined}return e.flags&4194304?Se:undefined}function getBaseConstraintOrType(e){return getBaseConstraintOfType(e)||e}function hasNonCircularBaseConstraint(e){return getResolvedBaseConstraint(e)!==Oe}function getResolvedBaseConstraint(e){var t=false;return e.resolvedBaseConstraint||(e.resolvedBaseConstraint=getTypeWithThisArgument(getImmediateBaseConstraint(e),e));function getImmediateBaseConstraint(e){if(!e.immediateBaseConstraint){if(!pushTypeResolution(e,4)){return Oe}if(T===50){t=true;return e.immediateBaseConstraint=Ae}T++;var r=computeBaseConstraint(getSimplifiedType(e));T--;if(!popTypeResolution()||t){r=Oe}e.immediateBaseConstraint=r||Ae}return e.immediateBaseConstraint}function getBaseConstraint(e){var t=getImmediateBaseConstraint(e);return t!==Ae&&t!==Oe?t:undefined}function computeBaseConstraint(e){if(e.flags&262144){var t=getConstraintFromTypeParameter(e);return e.isThisType||!t?t:getBaseConstraint(t)}if(e.flags&3145728){var r=e.types;var n=[];for(var i=0,a=r;i<a.length;i++){var o=a[i];var s=getBaseConstraint(o);if(s){n.push(s)}}return e.flags&1048576&&n.length===r.length?getUnionType(n):e.flags&2097152&&n.length?getIntersectionType(n):undefined}if(e.flags&4194304){return Se}if(e.flags&8388608){var c=getBaseConstraint(e.objectType);var u=getBaseConstraint(e.indexType);var l=c&&u?getIndexedAccessType(c,u,undefined,ee):undefined;return l&&l!==ee?getBaseConstraint(l):undefined}if(e.flags&16777216){var t=getConstraintOfConditionalType(e);return t&&getBaseConstraint(t)}if(e.flags&33554432){return getBaseConstraint(e.substitute)}return e}}function getApparentTypeOfIntersectionType(e){return e.resolvedApparentType||(e.resolvedApparentType=getTypeWithThisArgument(e,e,true))}function getResolvedTypeParameterDefault(t){if(!t.default){if(t.target){var r=getResolvedTypeParameterDefault(t.target);t.default=r?instantiateType(r,t.mapper):Ae}else{t.default=Fe;var n=t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default});var i=n?getTypeFromTypeNode(n):Ae;if(t.default===Fe){t.default=i}}}else if(t.default===Fe){t.default=Oe}return t.default}function getDefaultFromTypeParameter(e){var t=getResolvedTypeParameterDefault(e);return t!==Ae&&t!==Oe?t:undefined}function hasNonCircularTypeParameterDefault(e){return getResolvedTypeParameterDefault(e)!==Oe}function hasTypeParameterDefault(t){return!!(t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function getApparentTypeOfMappedType(e){return e.resolvedApparentType||(e.resolvedApparentType=getResolvedApparentTypeOfMappedType(e))}function getResolvedApparentTypeOfMappedType(e){var t=getHomomorphicTypeVariable(e);if(t){var r=getConstraintOfTypeParameter(t);if(r&&(isArrayType(r)||isReadonlyArrayType(r)||isTupleType(r))){var n=makeUnaryTypeMapper(t,r);return instantiateType(e,combineTypeMappers(n,e.mapper))}}return e}function getApparentType(t){var r=t.flags&63176704?getBaseConstraintOfType(t)||xe:t;return e.getObjectFlags(r)&32?getApparentTypeOfMappedType(r):r.flags&2097152?getApparentTypeOfIntersectionType(r):r.flags&132?Ye:r.flags&296?Ze:r.flags&2112?getGlobalBigIntType(C>=6):r.flags&528?et:r.flags&12288?getGlobalESSymbolType(C>=2):r.flags&67108864?xe:r.flags&4194304?Se:r}function createUnionOrIntersectionProperty(t,r){var n;var i;var a=t.flags&1048576;var o=a?24:0;var s=a?0:16777216;var c=4;var u=0;for(var l=0,f=t.types;l<f.length;l++){var d=f[l];var p=getApparentType(d);if(p!==ee){var g=getPropertyOfType(p,r);var _=g?e.getDeclarationModifierFlagsFromSymbol(g):0;if(g&&!(_&o)){s&=g.flags;n=e.appendIfUnique(n,g);u|=(isReadonlySymbol(g)?8:0)|(!(_&24)?64:0)|(_&16?128:0)|(_&8?256:0)|(_&32?512:0);if(!isPrototypeProperty(g)){c=2}}else if(a){var m=!isLateBoundName(r)&&(isNumericLiteralName(r)&&getIndexInfoOfType(p,1)||getIndexInfoOfType(p,0));if(m){u|=m.isReadonly?8:0;i=e.append(i,isTupleType(p)?getRestTypeOfTupleType(p)||re:m.type)}else{u|=16}}}}if(!n){return undefined}if(n.length===1&&!(u&16)&&!i){return n[0]}var y;var h;var v;var T=[];var S=true;var b;var x=false;for(var C=0,E=n;C<E.length;C++){var g=E[C];if(!b){b=g.valueDeclaration}else if(g.valueDeclaration!==b){x=true}y=e.addRange(y,g.declarations);var p=getTypeOfSymbol(g);if(S){h=p;v=g.nameType;S=false}else{if(p!==h){u|=32}}T.push(p)}e.addRange(T,i);var D=createSymbol(4|s,r,c|u);D.containingType=t;if(!x&&b){D.valueDeclaration=b}D.declarations=y;D.nameType=v;D.type=a?getUnionType(T):getIntersectionType(T);return D}function getUnionOrIntersectionProperty(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable());var i=n.get(r);if(!i){i=createUnionOrIntersectionProperty(t,r);if(i){n.set(r,i)}}return i}function getPropertyOfUnionOrIntersectionType(t,r){var n=getUnionOrIntersectionProperty(t,r);return n&&!(e.getCheckFlags(n)&16)?n:undefined}function getPropertyOfType(e,t){e=getApparentType(e);if(e.flags&524288){var r=resolveStructuredTypeMembers(e);var n=r.members.get(t);if(n&&symbolIsValue(n)){return n}var i=r===Ne?Ge:r.callSignatures.length?He:r.constructSignatures.length?Qe:undefined;if(i){var a=getPropertyOfObjectType(i,t);if(a){return a}}return getPropertyOfObjectType(qe,t)}if(e.flags&3145728){return getPropertyOfUnionOrIntersectionType(e,t)}return undefined}function getSignaturesOfStructuredType(t,r){if(t.flags&3670016){var n=resolveStructuredTypeMembers(t);return r===0?n.callSignatures:n.constructSignatures}return e.emptyArray}function getSignaturesOfType(e,t){return getSignaturesOfStructuredType(getApparentType(e),t)}function getIndexInfoOfStructuredType(e,t){if(e.flags&3670016){var r=resolveStructuredTypeMembers(e);return t===0?r.stringIndexInfo:r.numberIndexInfo}}function getIndexTypeOfStructuredType(e,t){var r=getIndexInfoOfStructuredType(e,t);return r&&r.type}function getIndexInfoOfType(e,t){return getIndexInfoOfStructuredType(getApparentType(e),t)}function getIndexTypeOfType(e,t){return getIndexTypeOfStructuredType(getApparentType(e),t)}function getImplicitIndexTypeOfType(e,t){if(isObjectTypeWithInferableIndex(e)){var r=[];for(var n=0,i=getPropertiesOfType(e);n<i.length;n++){var a=i[n];if(t===0||isNumericLiteralName(a.escapedName)){r.push(getTypeOfSymbol(a))}}if(r.length){return getUnionType(r,2)}}return undefined}function getTypeParametersFromDeclaration(t){var r;for(var n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,getDeclaredTypeOfTypeParameter(a.symbol))}return r}function symbolsToArray(e){var t=[];e.forEach(function(e,r){if(!isReservedMemberName(r)){t.push(e)}});return t}function isJSDocOptionalParameter(t){return e.isInJSFile(t)&&(t.type&&t.type.kind===288||e.getJSDocParameterTags(t).some(function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&r.type.kind===288}))}function tryFindAmbientModule(t,r){if(e.isExternalModuleNameRelative(t)){return undefined}var n=getSymbol(We,'"'+t+'"',512);return n&&r?getMergedSymbol(n):n}function isOptionalParameter(t){if(e.hasQuestionToken(t)||isOptionalJSDocParameterTag(t)||isJSDocOptionalParameter(t)){return true}if(t.initializer){var r=getSignatureFromDeclaration(t.parent);var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>=0);return n>=getMinArgumentCount(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);if(i){return!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}return false}function isOptionalJSDocParameterTag(t){if(!e.isJSDocParameterTag(t)){return false}var r=t.isBracketed,n=t.typeExpression;return r||!!n&&n.type.kind===288}function createIdentifierTypePredicate(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function createThisTypePredicate(e){return{kind:0,type:e}}function getMinTypeArgumentCount(e){var t=0;if(e){for(var r=0;r<e.length;r++){if(!hasTypeParameterDefault(e[r])){t=r+1}}}return t}function fillMissingTypeArguments(t,r,n,i){var a=e.length(r);if(!a){return[]}var o=e.length(t);if(i||o>=n&&o<=a){var s=t?t.slice():[];var c=getDefaultTypeArgumentType(i);var u=createTypeMapper(r,e.map(r,function(){return c}));for(var l=o;l<a;l++){s[l]=instantiateType(getConstraintFromTypeParameter(r[l])||c,u)}for(var l=o;l<a;l++){var f=createTypeMapper(r,s);var d=getDefaultFromTypeParameter(r[l]);if(i&&d&&isTypeIdenticalTo(d,xe)){d=X}s[l]=d?instantiateType(d,f):c}s.length=r.length;return s}return t&&t.slice()}function getSignatureFromDeclaration(t){var r=getNodeLinks(t);if(!r.resolvedSignature){var n=[];var i=false;var a=0;var o=void 0;var s=false;var c=e.getImmediatelyInvokedFunctionExpression(t);var u=e.isJSDocConstructSignature(t);var l=!c&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t);for(var f=u?1:0;f<t.parameters.length;f++){var d=t.parameters[f];var p=d.symbol;var g=e.isJSDocParameterTag(d)?d.typeExpression&&d.typeExpression.type:d.type;if(p&&!!(p.flags&4)&&!e.isBindingPattern(d.name)){var _=resolveName(d,p.escapedName,67220415,undefined,undefined,false);p=_}if(f===0&&p.escapedName==="this"){s=true;o=d.symbol}else{n.push(p)}if(g&&g.kind===182){i=true}var m=isOptionalJSDocParameterTag(d)||d.initializer||d.questionToken||d.dotDotDotToken||c&&n.length>c.arguments.length&&!g||l||isJSDocOptionalParameter(d);if(!m){a=n.length}}if((t.kind===158||t.kind===159)&&!hasNonBindableDynamicName(t)&&(!s||!o)){var y=t.kind===158?159:158;var h=e.getDeclarationOfKind(getSymbolOfNode(t),y);if(h){o=getAnnotatedAccessorThisParameter(h)}}var v=t.kind===157?getDeclaredTypeOfClassOrInterface(getMergedSymbol(t.parent.symbol)):undefined;var T=v?v.localTypeParameters:getTypeParametersFromDeclaration(t);var S=e.hasRestParameter(t)||e.isInJSFile(t)&&maybeAddJsSyntheticRestParameter(t,n);r.resolvedSignature=createSignature(t,T,o,n,undefined,undefined,a,S,i)}return r.resolvedSignature}function maybeAddJsSyntheticRestParameter(t,r){if(e.isJSDocSignature(t)||!containsArgumentsReference(t)){return false}var n=e.lastOrUndefined(t.parameters);var i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag);var a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:undefined});var o=createSymbol(3,"args",8192);o.type=a?createArrayType(getTypeFromTypeNode(a.type)):nt;if(a){r.pop()}r.push(o);return true}function getSignatureOfTypeTag(t){var r=e.isInJSFile(t)?e.getJSDocTypeTag(t):undefined;var n=r&&r.typeExpression&&getSingleCallSignature(getTypeFromTypeNode(r.typeExpression));return n&&getErasedSignature(n)}function getReturnTypeOfTypeTag(e){var t=getSignatureOfTypeTag(e);return t&&getReturnTypeOfSignature(t)}function containsArgumentsReference(t){var r=getNodeLinks(t);if(r.containsArgumentsReference===undefined){if(r.flags&8192){r.containsArgumentsReference=true}else{r.containsArgumentsReference=traverse(t.body)}}return r.containsArgumentsReference;function traverse(t){if(!t)return false;switch(t.kind){case 72:return t.escapedText==="arguments"&&e.isExpressionNode(t);case 154:case 156:case 158:case 159:return t.name.kind===149&&traverse(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,traverse)}}}function getSignaturesOfSymbol(t){if(!t)return e.emptyArray;var r=[];for(var n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(!e.isFunctionLike(i))continue;if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end){continue}}r.push(getSignatureFromDeclaration(i))}return r}function resolveExternalModuleTypeByLiteral(e){var t=resolveExternalModuleName(e,e);if(t){var r=resolveExternalModuleSymbol(t);if(r){return getTypeOfSymbol(r)}}return X}function getThisTypeOfSignature(e){if(e.thisParameter){return getTypeOfSymbol(e.thisParameter)}}function signatureHasTypePredicate(e){return getTypePredicateOfSignature(e)!==undefined}function getTypePredicateOfSignature(t){if(!t.resolvedTypePredicate){if(t.target){var r=getTypePredicateOfSignature(t.target);t.resolvedTypePredicate=r?instantiateTypePredicate(r,t.mapper):Me}else if(t.unionSignatures){t.resolvedTypePredicate=getUnionTypePredicate(t.unionSignatures)||Me}else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration);var i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=getSignatureOfTypeTag(t.declaration);if(a&&t!==a){i=getTypePredicateOfSignature(a)}}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?createTypePredicateFromTypePredicateNode(n,t.declaration):i||Me}e.Debug.assert(!!t.resolvedTypePredicate)}return t.resolvedTypePredicate===Me?undefined:t.resolvedTypePredicate}function createTypePredicateFromTypePredicateNode(e,t){var r=e.parameterName;var n=getTypeFromTypeNode(e.type);if(r.kind===72){return createIdentifierTypePredicate(r.escapedText,getTypePredicateParameterIndex(t.parameters,r),n)}else{return createThisTypePredicate(n)}}function getTypePredicateParameterIndex(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.name.kind===72&&n.name.escapedText===t.escapedText){return r}}return-1}function getReturnTypeOfSignature(t){if(!t.resolvedReturnType){if(!pushTypeResolution(t,3)){return ee}var r=t.target?instantiateType(getReturnTypeOfSignature(t.target),t.mapper):t.unionSignatures?getUnionType(e.map(t.unionSignatures,getReturnTypeOfSignature),2):getReturnTypeFromAnnotation(t.declaration)||isJSConstructor(t.declaration)&&getJSClassType(getSymbolOfNode(t.declaration))||(e.nodeIsMissing(t.declaration.body)?X:getReturnTypeFromBody(t.declaration));if(!popTypeResolution()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n){error(n,e.Diagnostics.Return_type_annotation_circularly_references_itself)}else if(F){var i=t.declaration;var a=e.getNameOfDeclaration(i);if(a){error(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a))}else{error(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}}r=X}t.resolvedReturnType=r}return t.resolvedReturnType}function getReturnTypeFromAnnotation(t){if(t.kind===157){return getDeclaredTypeOfClassOrInterface(getMergedSymbol(t.parent.symbol))}if(e.isJSDocConstructSignature(t)){return getTypeFromTypeNode(t.parameters[0].type)}var r=e.getEffectiveReturnTypeNode(t);if(r){return getTypeFromTypeNode(r)}if(t.kind===158&&!hasNonBindableDynamicName(t)){var n=e.isInJSFile(t)&&getTypeForDeclarationFromJSDocComment(t);if(n){return n}var i=e.getDeclarationOfKind(getSymbolOfNode(t),159);var a=getAnnotatedAccessorType(i);if(a){return a}}return getReturnTypeOfTypeTag(t)}function isResolvingReturnTypeOfSignature(e){return!e.resolvedReturnType&&findResolutionCycleStartIndex(e,3)>=0}function getRestTypeOfSignature(e){return tryGetRestTypeOfSignature(e)||X}function tryGetRestTypeOfSignature(e){if(e.hasRestParameter){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);var r=isTupleType(t)?getRestTypeOfTupleType(t):t;return r&&getIndexTypeOfType(r,1)}return undefined}function getSignatureInstantiation(e,t,r){return getSignatureInstantiationWithoutFillingInTypeArguments(e,fillMissingTypeArguments(t,e.typeParameters,getMinTypeArgumentCount(e.typeParameters),r))}function getSignatureInstantiationWithoutFillingInTypeArguments(t,r){var n=t.instantiations||(t.instantiations=e.createMap());var i=getTypeListId(r);var a=n.get(i);if(!a){n.set(i,a=createSignatureInstantiation(t,r))}return a}function createSignatureInstantiation(e,t){return instantiateSignature(e,createSignatureTypeMapper(e,t),true)}function createSignatureTypeMapper(e,t){return createTypeMapper(e.typeParameters,t)}function getErasedSignature(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=createErasedSignature(e)):e}function createErasedSignature(e){return instantiateSignature(e,createTypeEraser(e.typeParameters),true)}function getCanonicalSignature(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=createCanonicalSignature(e)):e}function createCanonicalSignature(t){return getSignatureInstantiation(t,e.map(t.typeParameters,function(e){return e.target&&!getConstraintOfTypeParameter(e.target)?e.target:e}),e.isInJSFile(t.declaration))}function getBaseSignature(t){var r=t.typeParameters;if(r){var n=createTypeEraser(r);var i=e.map(r,function(e){return instantiateType(getBaseConstraintOfType(e),n)||xe});return instantiateSignature(t,createTypeMapper(r,i),true)}return t}function getOrCreateTypeFromSignature(t){if(!t.isolatedSignatureType){var r=t.declaration.kind===157||t.declaration.kind===161;var n=createObjectType(16);n.members=S;n.properties=e.emptyArray;n.callSignatures=!r?[t]:e.emptyArray;n.constructSignatures=r?[t]:e.emptyArray;t.isolatedSignatureType=n}return t.isolatedSignatureType}function getIndexSymbol(e){return e.members.get("__index")}function getIndexDeclarationOfSymbol(t,r){var n=r===1?135:138;var i=getIndexSymbol(t);if(i){for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a];var c=e.cast(s,e.isIndexSignatureDeclaration);if(c.parameters.length===1){var u=c.parameters[0];if(u.type&&u.type.kind===n){return c}}}}return undefined}function createIndexInfo(e,t,r){return{type:e,isReadonly:t,declaration:r}}function getIndexInfoOfSymbol(t,r){var n=getIndexDeclarationOfSymbol(t,r);if(n){return createIndexInfo(n.type?getTypeFromTypeNode(n.type):X,e.hasModifier(n,64),n)}return undefined}function getConstraintDeclaration(t){var r=t.symbol&&e.getDeclarationOfKind(t.symbol,150);return r&&e.getEffectiveConstraintOfTypeParameter(r)}function getInferredTypeParameterConstraint(t){var r;if(t.symbol){for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(a.parent.kind===176){var o=a.parent.parent;if(o.kind===164){var s=o;var c=getTypeParametersForTypeReference(s);if(c){var u=s.typeArguments.indexOf(a.parent);if(u<c.length){var l=getConstraintOfTypeParameter(c[u]);if(l){var f=createTypeMapper(c,getEffectiveTypeArguments(s,c));var d=instantiateType(l,f);if(d!==t){r=e.append(r,d)}}}}}else if(o.kind===151&&o.dotDotDotToken){r=e.append(r,createArrayType(te))}}}}return r&&getIntersectionType(r)}function getConstraintFromTypeParameter(e){if(!e.constraint){if(e.target){var t=getConstraintOfTypeParameter(e.target);e.constraint=t?instantiateType(t,e.mapper):Ae}else{var r=getConstraintDeclaration(e);e.constraint=r?getTypeFromTypeNode(r):getInferredTypeParameterConstraint(e)||Ae}}return e.constraint===Ae?undefined:e.constraint}function getParentSymbolOfTypeParameter(t){var r=e.getDeclarationOfKind(t.symbol,150);var n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&getSymbolOfNode(n)}function getTypeListId(e){var t="";if(e){var r=e.length;var n=0;while(n<r){var i=e[n].id;var a=1;while(n+a<r&&e[n+a].id===i+a){a++}if(t.length){t+=","}t+=i;if(a>1){t+=":"+a}n+=a}}return t}function getPropagatingFlagsOfTypes(e,t){var r=0;for(var n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.flags&t)){r|=a.flags}}return r&939524096}function createTypeReference(e,t){var r=getTypeListId(t);var n=e.instantiations.get(r);if(!n){n=createObjectType(4,e.symbol);e.instantiations.set(r,n);n.flags|=t?getPropagatingFlagsOfTypes(t,0):0;n.target=e;n.typeArguments=t}return n}function cloneTypeReference(e){var t=createType(e.flags);t.symbol=e.symbol;t.objectFlags=e.objectFlags;t.target=e.target;t.typeArguments=e.typeArguments;return t}function getTypeReferenceArity(t){return e.length(t.target.typeParameters)}function getTypeFromClassOrInterfaceReference(t,r,n){var i=getDeclaredTypeOfSymbol(getMergedSymbol(r));var a=i.localTypeParameters;if(a){var o=e.length(t.typeArguments);var s=getMinTypeArgumentCount(a);var c=e.isInJSFile(t);var u=!F&&c;if(!u&&(o<s||o>a.length)){var l=c&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);var f=s===a.length?l?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:l?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;var d=typeToString(i,undefined,2);error(t,f,d,s,a.length);if(!c){return ee}}var p=e.concatenate(i.outerTypeParameters,fillMissingTypeArguments(n,a,s,c));return createTypeReference(i,p)}return checkNoTypeArguments(t,r)?i:ee}function getTypeAliasInstantiation(t,r){var n=getDeclaredTypeOfSymbol(t);var i=getSymbolLinks(t);var a=i.typeParameters;var o=getTypeListId(r);var s=i.instantiations.get(o);if(!s){i.instantiations.set(o,s=instantiateType(n,createTypeMapper(a,fillMissingTypeArguments(r,a,getMinTypeArgumentCount(a),e.isInJSFile(t.valueDeclaration)))))}return s}function getTypeFromTypeAliasReference(t,r,n){var i=getDeclaredTypeOfSymbol(r);var a=getSymbolLinks(r).typeParameters;if(a){var o=e.length(t.typeArguments);var s=getMinTypeArgumentCount(a);if(o<s||o>a.length){error(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,symbolToString(r),s,a.length);return ee}return getTypeAliasInstantiation(r,n)}return checkNoTypeArguments(t,r)?i:ee}function getTypeReferenceName(t){switch(t.kind){case 164:return t.typeName;case 211:var r=t.expression;if(e.isEntityNameExpression(r)){return r}}return undefined}function resolveTypeReferenceName(e,t){if(!e){return Q}return resolveEntityName(e,t)||Q}function getTypeReferenceType(t,r){var n=typeArgumentsFromTypeReferenceNode(t);if(r===Q){return ee}var i=getTypeReferenceTypeWorker(t,r,n);if(i){return i}var a=e.isInJSFile(t)&&r.valueDeclaration&&e.getJSDocEnumTag(r.valueDeclaration);if(a){var o=getNodeLinks(a);if(!pushTypeResolution(a,5)){return ee}var s=a.typeExpression?getTypeFromTypeNode(a.typeExpression):ee;if(!popTypeResolution()){s=ee;error(t,e.Diagnostics.Enum_type_0_circularly_references_itself,symbolToString(r))}return o.resolvedEnumType=s}var c=tryGetDeclaredTypeOfSymbol(r);if(c){return checkNoTypeArguments(t,r)?c.flags&262144?getConstrainedTypeVariable(c,t):getRegularTypeOfLiteralType(c):ee}if(!(r.flags&67220415&&isJSDocTypeReference(t))){return ee}var u=getJSDocTypeReference(t,r,n);if(u){return u}resolveTypeReferenceName(getTypeReferenceName(t),67897832);return getTypeOfSymbol(r)}function getJSDocTypeReference(t,r,n){if(!pushTypeResolution(r,6)){return ee}var i=getAssignedClassType(r);var a=getTypeOfSymbol(r);var o=a.symbol&&a.symbol!==r&&!isInferredClassType(a)&&getTypeReferenceTypeWorker(t,a.symbol,n);if(!popTypeResolution()){getSymbolLinks(r).resolvedJSDocType=ee;error(t,e.Diagnostics.JSDoc_type_0_circularly_references_itself,symbolToString(r));return ee}if(o||i){var s=o&&i?getIntersectionType([i,o]):o||i;return getSymbolLinks(r).resolvedJSDocType=s}}function getTypeReferenceTypeWorker(t,r,n){if(r.flags&(32|64)){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=getJSDocTypeReference(t,r,n);if(i){return i}}return getTypeFromClassOrInterfaceReference(t,r,n)}if(r.flags&524288){return getTypeFromTypeAliasReference(t,r,n)}if(r.flags&16&&isJSDocTypeReference(t)&&(r.members||e.getJSDocClassTag(r.valueDeclaration))){return getInferredClassType(r)}}function getSubstitutionType(e,t){var r=createType(33554432);r.typeVariable=e;r.substitute=t;return r}function isUnaryTupleTypeNode(e){return e.kind===170&&e.elementTypes.length===1}function getImpliedConstraint(e,t,r){return isUnaryTupleTypeNode(t)&&isUnaryTupleTypeNode(r)?getImpliedConstraint(e,t.elementTypes[0],r.elementTypes[0]):getActualTypeVariable(getTypeFromTypeNode(t))===e?getTypeFromTypeNode(r):undefined}function getConstrainedTypeVariable(t,r){var n;while(r&&!e.isStatement(r)&&r.kind!==291){var i=r.parent;if(i.kind===175&&r===i.trueType){var a=getImpliedConstraint(t,i.checkType,i.extendsType);if(a){n=e.append(n,a)}}r=i}return n?getSubstitutionType(t,getIntersectionType(e.append(n,t))):t}function isJSDocTypeReference(e){return!!(e.flags&2097152)&&(e.kind===164||e.kind===183)}function checkNoTypeArguments(t,r){if(t.typeArguments){error(t,e.Diagnostics.Type_0_is_not_generic,r?symbolToString(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)");return false}return true}function getIntendedTypeFromJSDocTypeReference(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":checkNoTypeArguments(t);return oe;case"Number":checkNoTypeArguments(t);return se;case"Boolean":checkNoTypeArguments(t);return pe;case"Void":checkNoTypeArguments(t);return _e;case"Undefined":checkNoTypeArguments(t);return re;case"Null":checkNoTypeArguments(t);return ie;case"Function":case"function":checkNoTypeArguments(t);return Ge;case"Array":case"array":return!r||!r.length?nt:undefined;case"Promise":case"promise":return!r||!r.length?createPromiseType(X):undefined;case"Object":if(r&&r.length===2){if(e.isJSDocIndexSignature(t)){var n=getTypeFromTypeNode(r[0]);var i=getTypeFromTypeNode(r[1]);var a=createIndexInfo(i,false);return createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,n===oe?a:undefined,n===se?a:undefined)}return X}checkNoTypeArguments(t);return X}}}function getTypeFromJSDocNullableTypeNode(e){var t=getTypeFromTypeNode(e.type);return k?getNullableType(t,65536):t}function getTypeFromTypeReference(e){var t=getNodeLinks(e);if(!t.resolvedType){var r=void 0;var n=void 0;var i=67897832;if(isJSDocTypeReference(e)){n=getIntendedTypeFromJSDocTypeReference(e);i|=67220415}if(!n){r=resolveTypeReferenceName(getTypeReferenceName(e),i);n=getTypeReferenceType(e,r)}t.resolvedSymbol=r;t.resolvedType=n}return t.resolvedType}function typeArgumentsFromTypeReferenceNode(t){return e.map(t.typeArguments,getTypeFromTypeNode)}function getTypeFromTypeQueryNode(e){var t=getNodeLinks(e);if(!t.resolvedType){t.resolvedType=getRegularTypeOfLiteralType(getWidenedType(checkExpression(e.exprName)))}return t.resolvedType}function getTypeOfGlobalSymbol(t,r){function getTypeDeclaration(e){var t=e.declarations;for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 240:case 241:case 243:return i}}}if(!t){return r?ke:xe}var n=getDeclaredTypeOfSymbol(t);if(!(n.flags&524288)){error(getTypeDeclaration(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t));return r?ke:xe}if(e.length(n.typeParameters)!==r){error(getTypeDeclaration(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r);return r?ke:xe}return n}function getGlobalValueSymbol(t,r){return getGlobalSymbol(t,67220415,r?e.Diagnostics.Cannot_find_global_value_0:undefined)}function getGlobalTypeSymbol(t,r){return getGlobalSymbol(t,67897832,r?e.Diagnostics.Cannot_find_global_type_0:undefined)}function getGlobalSymbol(e,t,r){return resolveName(undefined,e,t,r,e,false)}function getGlobalType(e,t,r){var n=getGlobalTypeSymbol(e,r);return n||r?getTypeOfGlobalSymbol(n,t):undefined}function getGlobalTypedPropertyDescriptorType(){return ut||(ut=getGlobalType("TypedPropertyDescriptor",1,true))||ke}function getGlobalTemplateStringsArrayType(){return Tt||(Tt=getGlobalType("TemplateStringsArray",0,true))||xe}function getGlobalImportMetaType(){return St||(St=getGlobalType("ImportMeta",0,true))||xe}function getGlobalESSymbolConstructorSymbol(e){return st||(st=getGlobalValueSymbol("Symbol",e))}function getGlobalESSymbolType(e){return ct||(ct=getGlobalType("Symbol",0,e))||xe}function getGlobalPromiseType(e){return lt||(lt=getGlobalType("Promise",1,e))||ke}function getGlobalPromiseLikeType(e){return ft||(ft=getGlobalType("PromiseLike",1,e))||ke}function getGlobalPromiseConstructorSymbol(e){return dt||(dt=getGlobalValueSymbol("Promise",e))}function getGlobalPromiseConstructorLikeType(e){return pt||(pt=getGlobalType("PromiseConstructorLike",0,e))||xe}function getGlobalAsyncIterableType(e){return yt||(yt=getGlobalType("AsyncIterable",1,e))||ke}function getGlobalAsyncIteratorType(e){return ht||(ht=getGlobalType("AsyncIterator",1,e))||ke}function getGlobalAsyncIterableIteratorType(e){return vt||(vt=getGlobalType("AsyncIterableIterator",1,e))||ke}function getGlobalIterableType(e){return gt||(gt=getGlobalType("Iterable",1,e))||ke}function getGlobalIteratorType(e){return _t||(_t=getGlobalType("Iterator",1,e))||ke}function getGlobalIterableIteratorType(e){return mt||(mt=getGlobalType("IterableIterator",1,e))||ke}function getGlobalTypeOrUndefined(e,t){if(t===void 0){t=0}var r=getGlobalSymbol(e,67897832,undefined);return r&&getTypeOfGlobalSymbol(r,t)}function getGlobalExtractSymbol(){return bt||(bt=getGlobalSymbol("Extract",524288,e.Diagnostics.Cannot_find_global_type_0))}function getGlobalExcludeSymbol(){return xt||(xt=getGlobalSymbol("Exclude",524288,e.Diagnostics.Cannot_find_global_type_0))}function getGlobalPickSymbol(){return Ct||(Ct=getGlobalSymbol("Pick",524288,e.Diagnostics.Cannot_find_global_type_0))}function getGlobalBigIntType(e){return Et||(Et=getGlobalType("BigInt",0,e))||xe}function createTypeFromGenericGlobalType(e,t){return e!==ke?createTypeReference(e,t):xe}function createTypedPropertyDescriptorType(e){return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(),[e])}function createAsyncIterableType(e){return createTypeFromGenericGlobalType(getGlobalAsyncIterableType(true),[e])}function createAsyncIterableIteratorType(e){return createTypeFromGenericGlobalType(getGlobalAsyncIterableIteratorType(true),[e])}function createIterableType(e){return createTypeFromGenericGlobalType(getGlobalIterableType(true),[e])}function createIterableIteratorType(e){return createTypeFromGenericGlobalType(getGlobalIterableIteratorType(true),[e])}function createArrayType(e){return createTypeFromGenericGlobalType($e,[e])}function createReadonlyArrayType(e){return createTypeFromGenericGlobalType(Xe,[e])}function getTypeFromArrayTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){t.resolvedType=createArrayType(getTypeFromTypeNode(e.elementType))}return t.resolvedType}function createTupleTypeOfArity(t,r,n,i){var a;var o=[];var s=n?t-1:t;if(t){a=new Array(t);for(var c=0;c<t;c++){var u=a[c]=createType(262144);if(c<s){var l=createSymbol(4|(c>=r?16777216:0),""+c);l.type=u;o.push(l)}}}var f=[];for(var c=r;c<=s;c++)f.push(getLiteralType(c));var d=createSymbol(4,"length");d.type=n?se:getUnionType(f);o.push(d);var p=createObjectType(8|4);p.typeParameters=a;p.outerTypeParameters=undefined;p.localTypeParameters=a;p.instantiations=e.createMap();p.instantiations.set(getTypeListId(p.typeParameters),p);p.target=p;p.typeArguments=p.typeParameters;p.thisType=createType(262144);p.thisType.isThisType=true;p.thisType.constraint=p;p.declaredProperties=o;p.declaredCallSignatures=e.emptyArray;p.declaredConstructSignatures=e.emptyArray;p.declaredStringIndexInfo=undefined;p.declaredNumberIndexInfo=undefined;p.minLength=r;p.hasRestElement=n;p.associatedNames=i;return p}function getTupleTypeOfArity(e,t,r,n){var i=e+(r?"+":",")+t+(n&&n.length?","+n.join(","):"");var a=U.get(i);if(!a){U.set(i,a=createTupleTypeOfArity(e,t,r,n))}return a}function createTupleType(e,t,r,n){if(t===void 0){t=e.length}if(r===void 0){r=false}var i=e.length;if(i===1&&r){return createArrayType(e[0])}var a=getTupleTypeOfArity(i,t,i>0&&r,n);return e.length?createTypeReference(a,e):a}function getTypeFromTupleTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=e.lastOrUndefined(t.elementTypes);var i=n&&n.kind===172?n:undefined;var a=e.findLastIndex(t.elementTypes,function(e){return e.kind!==171&&e!==i})+1;var o=e.map(t.elementTypes,function(e){var t=getTypeFromTypeNode(e);return e===i&&getIndexTypeOfType(t,1)||t});r.resolvedType=createTupleType(o,a,!!i)}return r.resolvedType}function sliceTupleType(t,r){var n=t.target;if(n.hasRestElement){r=Math.min(r,getTypeReferenceArity(t)-1)}return createTupleType((t.typeArguments||e.emptyArray).slice(r),Math.max(0,n.minLength-r),n.hasRestElement,n.associatedNames&&n.associatedNames.slice(r))}function getTypeFromOptionalTypeNode(e){var t=getTypeFromTypeNode(e.type);return k?getOptionalType(t):t}function getTypeId(e){return e.id}function containsType(t,r){return e.binarySearch(t,r,getTypeId,e.compareValues)>=0}function insertType(t,r){var n=e.binarySearch(t,r,getTypeId,e.compareValues);if(n<0){t.splice(~n,0,r);return true}return false}function isEmptyIntersectionType(e){var t=0;for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(i.flags&109440&&t&109440){return true}t|=i.flags;if(t&98304&&t&(524288|67108864)||t&67108864&&t&(67238908&~67108864)||t&132&&t&(67238908&~132)||t&296&&t&(67238908&~296)||t&2112&&t&(67238908&~2112)||t&12288&&t&(67238908&~12288)||t&49152&&t&(67238908&~49152)){return true}}return false}function addTypeToUnion(t,r,n){var i=n.flags;if(i&1048576){return addTypesToUnion(t,r,n.types)}if(!(i&131072||i&2097152&&isEmptyIntersectionType(n))){r|=i&~939524096;if(n===Z)r|=268435456;if(!k&&i&98304){if(!(i&134217728))r|=134217728}else{var a=t.length;var o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,getTypeId,e.compareValues);if(o<0){t.splice(~o,0,n)}}}return r}function addTypesToUnion(e,t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=addTypeToUnion(e,t,a)}return t}function isSubtypeOfAny(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(t!==a&&isTypeSubtypeOf(t,a)&&(!(e.getObjectFlags(getTargetType(t))&1)||!(e.getObjectFlags(getTargetType(a))&1)||isTypeDerivedFrom(t,a))){return true}}return false}function isSetOfLiteralsFromSameEnum(e){var t=e[0];if(t.flags&1024){var r=getParentOfSymbol(t.symbol);for(var n=1;n<e.length;n++){var i=e[n];if(!(i.flags&1024)||r!==getParentOfSymbol(i.symbol)){return false}}return true}return false}function removeSubtypes(t){if(t.length===0||isSetOfLiteralsFromSameEnum(t)){return}var r=t.length;while(r>0){r--;if(isSubtypeOfAny(t[r],t)){e.orderedRemoveItemAt(t,r)}}}function removeRedundantLiteralTypes(t,r){var n=t.length;while(n>0){n--;var i=t[n];var a=i.flags&128&&r&4||i.flags&256&&r&8||i.flags&2048&&r&64||i.flags&8192&&r&4096||isFreshLiteralType(i)&&containsType(t,i.regularType);if(a){e.orderedRemoveItemAt(t,n)}}}function getUnionType(e,t,r,n){if(t===void 0){t=1}if(e.length===0){return me}if(e.length===1){return e[0]}var i=[];var a=addTypesToUnion(i,0,e);if(t!==0){if(a&3){return a&1?a&268435456?Z:X:te}switch(t){case 1:if(a&8576|512){removeRedundantLiteralTypes(i,a)}break;case 2:removeSubtypes(i);break}if(i.length===0){return a&65536?a&134217728?ie:ae:a&32768?a&134217728?re:ne:me}}return getUnionTypeFromSortedList(i,!(a&66994211),r,n)}function getUnionTypePredicate(t){var r;var n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];var s=getTypePredicateOfSignature(o);if(!s){continue}if(r){if(!typePredicateKindsMatch(r,s)){return undefined}}else{r=s}n.push(s.type)}if(!r){return undefined}var c=getUnionType(n);return e.isIdentifierTypePredicate(r)?createIdentifierTypePredicate(r.parameterName,r.parameterIndex,c):createThisTypePredicate(c)}function typePredicateKindsMatch(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function getUnionTypeFromSortedList(e,t,r,n){if(e.length===0){return me}if(e.length===1){return e[0]}var i=getTypeListId(e);var a=z.get(i);if(!a){var o=getPropagatingFlagsOfTypes(e,98304);a=createType(1048576|o);z.set(i,a);a.types=e;a.primitiveTypesOnly=t;a.aliasSymbol=r;a.aliasTypeArguments=n}return a}function getTypeFromUnionTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=getAliasSymbolForTypeNode(t);r.resolvedType=getUnionType(e.map(t.types,getTypeFromTypeNode),1,n,getTypeArgumentsForAliasSymbol(n))}return r.resolvedType}function addTypeToIntersection(t,r,n){var i=n.flags;if(i&2097152){return addTypesToIntersection(t,r,n.types)}if(isEmptyAnonymousObjectType(n)){if(!(r&536870912)){r|=536870912;t.push(n)}}else{r|=i&~939524096;if(i&3){if(n===Z)r|=268435456}else if((k||!(i&98304))&&!e.contains(t,n)){t.push(n)}}return r}function addTypesToIntersection(e,t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=addTypeToIntersection(e,t,getRegularTypeOfLiteralType(a))}return t}function removeRedundantPrimitiveTypes(t,r){var n=t.length;while(n>0){n--;var i=t[n];var a=i.flags&4&&r&128||i.flags&8&&r&256||i.flags&64&&r&2048||i.flags&4096&&r&8192;if(a){e.orderedRemoveItemAt(t,n)}}}function eachUnionContains(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!containsType(i.types,t)){var a=t.flags&128?oe:t.flags&256?se:t.flags&2048?ce:t.flags&8192?ge:undefined;if(!a||!containsType(i.types,a)){return false}}}return true}function intersectUnionsOfPrimitiveTypes(t){var r;var n=e.findIndex(t,function(e){return!!(e.flags&1048576)&&e.primitiveTypesOnly});if(n<0){return false}var i=n+1;while(i<t.length){var a=t[i];if(a.flags&1048576&&a.primitiveTypesOnly){(r||(r=[t[n]])).push(a);e.orderedRemoveItemAt(t,i)}else{i++}}if(!r){return false}var o=[];var s=[];for(var c=0,u=r;c<u.length;c++){var l=u[c];for(var f=0,d=l.types;f<d.length;f++){var a=d[f];if(insertType(o,a)){if(eachUnionContains(r,a)){insertType(s,a)}}}}t[n]=getUnionTypeFromSortedList(s,true);return true}function getIntersectionType(t,r,n){var i=[];var a=addTypesToIntersection(i,0,t);if(a&131072){return me}if(a&1){return a&268435456?Z:X}if(!k&&a&98304){return a&32768?re:ie}if(a&4&&a&128||a&8&&a&256||a&64&&a&2048||a&4096&&a&8192){removeRedundantPrimitiveTypes(i,a)}if(a&536870912&&a&524288){e.orderedRemoveItemAt(i,e.findIndex(i,isEmptyAnonymousObjectType))}if(i.length===0){return te}if(i.length===1){return i[0]}if(a&1048576){if(intersectUnionsOfPrimitiveTypes(i)){return getIntersectionType(i,r,n)}var o=e.findIndex(i,function(e){return(e.flags&1048576)!==0});var s=i[o];return getUnionType(e.map(s.types,function(t){return getIntersectionType(e.replaceElement(i,o,t))}),1,r,n)}var c=getTypeListId(i);var u=V.get(c);if(!u){var l=getPropagatingFlagsOfTypes(i,98304);u=createType(2097152|l);V.set(c,u);u.types=i;u.aliasSymbol=r;u.aliasTypeArguments=n}return u}function getTypeFromIntersectionTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=getAliasSymbolForTypeNode(t);r.resolvedType=getIntersectionType(e.map(t.types,getTypeFromTypeNode),n,getTypeArgumentsForAliasSymbol(n))}return r.resolvedType}function createIndexType(e,t){var r=createType(4194304);r.type=e;r.stringsOnly=t;return r}function getIndexTypeForGenericType(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=createIndexType(e,true)):e.resolvedIndexType||(e.resolvedIndexType=createIndexType(e,false))}function getLiteralTypeFromPropertyName(t){return e.isIdentifier(t)?getLiteralType(e.unescapeLeadingUnderscores(t.escapedText)):getRegularTypeOfLiteralType(e.isComputedPropertyName(t)?checkComputedPropertyName(t):checkExpression(t))}function getBigIntLiteralType(t){return getLiteralType({negative:false,base10Value:e.parsePseudoBigInt(t.text)})}function getLiteralTypeFromProperty(t,r){if(!(e.getDeclarationModifierFlagsFromSymbol(t)&24)){var n=getLateBoundSymbol(t).nameType;if(!n&&!e.isKnownSymbol(t)){if(t.escapedName==="default"){n=getLiteralType("default")}else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&getLiteralTypeFromPropertyName(i)||getLiteralType(e.symbolName(t))}}if(n&&n.flags&r){return n}}return me}function getLiteralTypeFromProperties(t,r){return getUnionType(e.map(getPropertiesOfType(t),function(e){return getLiteralTypeFromProperty(e,r)}))}function getNonEnumNumberIndexInfo(e){var t=getIndexInfoOfType(e,1);return t!==Je?t:undefined}function getIndexType(t,r){if(r===void 0){r=I}return t.flags&1048576?getIntersectionType(e.map(t.types,function(e){return getIndexType(e,r)})):t.flags&2097152?getUnionType(e.map(t.types,function(e){return getIndexType(e,r)})):maybeTypeOfKind(t,58982400)?getIndexTypeForGenericType(t,r):e.getObjectFlags(t)&32?getConstraintTypeFromMappedType(t):t===Z?Z:t.flags&1?Se:r?getIndexInfoOfType(t,0)?oe:getLiteralTypeFromProperties(t,128):getIndexInfoOfType(t,0)?getUnionType([oe,se,getLiteralTypeFromProperties(t,8192)]):getNonEnumNumberIndexInfo(t)?getUnionType([se,getLiteralTypeFromProperties(t,128|8192)]):getLiteralTypeFromProperties(t,8576)}function getExtractStringType(e){if(I){return e}var t=getGlobalExtractSymbol();return t?getTypeAliasInstantiation(t,[e,oe]):oe}function getIndexTypeOrString(e){var t=getExtractStringType(getIndexType(e));return t.flags&131072?oe:t}function getTypeFromTypeOperatorNode(t){var r=getNodeLinks(t);if(!r.resolvedType){switch(t.operator){case 129:r.resolvedType=getIndexType(getTypeFromTypeNode(t.type));break;case 142:r.resolvedType=t.type.kind===139?getESSymbolLikeTypeForNode(e.walkUpParenthesizedTypes(t.parent)):ee;break}}return r.resolvedType}function createIndexedAccessType(e,t){var r=createType(8388608);r.objectType=e;r.indexType=t;return r}function isJSLiteralType(t){if(F){return false}if(e.getObjectFlags(t)&16384){return true}if(t.flags&1048576){return e.every(t.types,isJSLiteralType)}if(t.flags&2097152){return e.some(t.types,isJSLiteralType)}if(t.flags&63176704){return isJSLiteralType(getResolvedBaseConstraint(t))}return false}function getPropertyTypeForIndexType(t,r,n,i,a){var o=n&&n.kind===190?n:undefined;var s=isTypeUsableAsLateBoundName(r)?getLateBoundNameFromType(r):o&&checkThatExpressionIsProperSymbolReference(o.argumentExpression,r,false)?e.getPropertyNameForKnownSymbolName(e.idText(o.argumentExpression.name)):n&&e.isPropertyName(n)?e.getPropertyNameForPropertyNameNode(n):undefined;if(s!==undefined){var c=getPropertyOfType(t,s);if(c){if(o){markPropertyAsReferenced(c,o,o.expression.kind===100);if(e.isAssignmentTarget(o)&&(isReferenceToReadonlyEntity(o,c)||isReferenceThroughNamespaceImport(o))){error(o.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,symbolToString(c));return a}if(i){getNodeLinks(n).resolvedSymbol=c}}var u=getTypeOfSymbol(c);return o&&e.getAssignmentTargetKind(o)!==1?getFlowTypeOfReference(o,u):u}if(everyType(t,isTupleType)&&isNumericLiteralName(s)&&+s>=0){if(n&&everyType(t,function(e){return!e.target.hasRestElement})){var l=getIndexNodeForAccessExpression(n);error(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),typeToString(t))}return mapType(t,function(e){return getRestTypeOfTupleType(e)||re})}}if(!(r.flags&98304)&&isTypeAssignableToKind(r,132|296|12288)){if(t.flags&(1|131072)){return t}var f=isTypeAssignableToKind(r,296)&&getIndexInfoOfType(t,1)||getIndexInfoOfType(t,0)||undefined;if(f){if(n&&!isTypeAssignableToKind(r,4|8)){var l=getIndexNodeForAccessExpression(n);error(l,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,typeToString(r))}else if(o&&f.isReadonly&&(e.isAssignmentTarget(o)||e.isDeleteTarget(o))){error(o,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,typeToString(t))}return f.type}if(r.flags&131072){return me}if(isJSLiteralType(t)){return X}if(o&&!isConstEnumObjectType(t)){if(F&&!x.suppressImplicitAnyIndexErrors){if(s!==undefined&&typeHasStaticProperty(s,t)){error(o,e.Diagnostics.Property_0_is_a_static_member_of_type_1,s,typeToString(t))}else if(getIndexTypeOfType(t,1)){error(o.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number)}else{var d=void 0;if(s!==undefined&&(d=getSuggestionForNonexistentProperty(s,t))){if(d!==undefined){error(o.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,typeToString(t),d)}}else{error(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,typeToString(t))}}}return a}}if(isJSLiteralType(t)){return X}if(n){var l=getIndexNodeForAccessExpression(n);if(r.flags&(128|256)){error(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,typeToString(t))}else if(r.flags&(4|8)){error(l,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,typeToString(t),typeToString(r))}else{error(l,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,typeToString(r))}}if(isTypeAny(r)){return r}return a}function getIndexNodeForAccessExpression(e){return e.kind===190?e.argumentExpression:e.kind===180?e.indexType:e.kind===149?e.expression:e}function isGenericObjectType(e){return maybeTypeOfKind(e,58982400|134217728)}function isGenericIndexType(e){return maybeTypeOfKind(e,58982400|4194304)}function getSimplifiedType(e){return e.flags&8388608?getSimplifiedIndexedAccessType(e):e}function distributeIndexOverObjectType(t,r){if(t.flags&1048576){return mapType(t,function(e){return getSimplifiedType(getIndexedAccessType(e,r))})}if(t.flags&2097152){return getIntersectionType(e.map(t.types,function(e){return getSimplifiedType(getIndexedAccessType(e,r))}))}}function getSimplifiedIndexedAccessType(e){if(e.simplified){return e.simplified===Oe?e:e.simplified}e.simplified=Oe;var t=getSimplifiedType(e.objectType);var r=getSimplifiedType(e.indexType);if(r.flags&1048576){return e.simplified=mapType(r,function(e){return getSimplifiedType(getIndexedAccessType(t,e))})}if(!(r.flags&63176704)){var n=distributeIndexOverObjectType(t,r);if(n){return e.simplified=n}}if(isGenericMappedType(t)){return e.simplified=substituteIndexedMappedType(t,e)}if(t.flags&262144){var i=getConstraintOfTypeParameter(t);if(i&&isGenericMappedType(i)){return e.simplified=substituteIndexedMappedType(i,e)}}return e.simplified=e}function substituteIndexedMappedType(e,t){var r=createTypeMapper([getTypeParameterFromMappedType(e)],[t.indexType]);var n=combineTypeMappers(e.mapper,r);return instantiateType(getTemplateTypeFromMappedType(e),n)}function getIndexedAccessType(e,t,r,n){if(n===void 0){n=r?ee:te}if(e===Z||t===Z){return Z}if(isGenericIndexType(t)||!(r&&r.kind!==180)&&isGenericObjectType(e)){if(e.flags&3){return e}var i=e.id+","+t.id;var a=q.get(i);if(!a){q.set(i,a=createIndexedAccessType(e,t))}return a}var o=getApparentType(e);if(t.flags&1048576&&!(t.flags&16)){var s=[];var c=false;for(var u=0,l=t.types;u<l.length;u++){var f=l[u];var d=getPropertyTypeForIndexType(o,f,r,false,n);if(d===n){if(!r){return n}else{c=true}}s.push(d)}if(c){return n}return getUnionType(s)}return getPropertyTypeForIndexType(o,t,r,true,n)}function getTypeFromIndexedAccessTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){var r=getTypeFromTypeNode(e.objectType);var n=getTypeFromTypeNode(e.indexType);var i=getIndexedAccessType(r,n,e);t.resolvedType=i.flags&8388608&&i.objectType===r&&i.indexType===n?getConstrainedTypeVariable(i,e):i}return t.resolvedType}function getTypeFromMappedTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){var r=createObjectType(32,e.symbol);r.declaration=e;r.aliasSymbol=getAliasSymbolForTypeNode(e);r.aliasTypeArguments=getTypeArgumentsForAliasSymbol(r.aliasSymbol);t.resolvedType=r;getConstraintTypeFromMappedType(r)}return t.resolvedType}function getActualTypeVariable(e){return e.flags&33554432?e.typeVariable:e}function getConditionalType(e,t){var r=instantiateType(e.checkType,t);var n=instantiateType(e.extendsType,t);if(r===Z||n===Z){return Z}var i=e.isDistributive&&maybeTypeOfKind(r,63176704);var a;if(e.inferTypeParameters){var o=createInferenceContext(e.inferTypeParameters,undefined,0);if(!i){inferTypes(o.inferences,r,n,32|64)}a=combineTypeMappers(t,o)}if(!i){if(n.flags&3){return instantiateType(e.trueType,t)}if(r.flags&1){return getUnionType([instantiateType(e.trueType,a||t),instantiateType(e.falseType,t)])}var s=a?instantiateType(e.extendsType,a):n;if(!isTypeAssignableTo(getWildcardInstantiation(r),getWildcardInstantiation(s))){return instantiateType(e.falseType,t)}if(checkTypeRelatedTo(r,s,cr,undefined)){return instantiateType(e.trueType,a||t)}}var c=getActualTypeVariable(r);var u=createType(16777216);u.root=e;u.checkType=c;u.extendsType=n;u.mapper=t;u.combinedMapper=a;u.aliasSymbol=e.aliasSymbol;u.aliasTypeArguments=instantiateTypes(e.aliasTypeArguments,t);return u}function getTrueTypeFromConditionalType(e){return e.resolvedTrueType||(e.resolvedTrueType=instantiateType(e.root.trueType,e.mapper))}function getFalseTypeFromConditionalType(e){return e.resolvedFalseType||(e.resolvedFalseType=instantiateType(e.root.falseType,e.mapper))}function getInferTypeParameters(t){var r;if(t.locals){t.locals.forEach(function(t){if(t.flags&262144){r=e.append(r,getDeclaredTypeOfSymbol(t))}})}return r}function isPossiblyReferencedInConditionalType(e,t){if(isTypeParameterPossiblyReferenced(e,t)){return true}while(t){if(t.kind===175){if(isTypeParameterPossiblyReferenced(e,t.extendsType)){return true}}t=t.parent}return false}function getTypeFromConditionalTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=getTypeFromTypeNode(t.checkType);var i=getAliasSymbolForTypeNode(t);var a=getTypeArgumentsForAliasSymbol(i);var o=getOuterTypeParameters(t,true);var s=a?o:e.filter(o,function(e){return isPossiblyReferencedInConditionalType(e,t)});var c={node:t,checkType:n,extendsType:getTypeFromTypeNode(t.extendsType),trueType:getTypeFromTypeNode(t.trueType),falseType:getTypeFromTypeNode(t.falseType),isDistributive:!!(n.flags&262144),inferTypeParameters:getInferTypeParameters(t),outerTypeParameters:s,instantiations:undefined,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=getConditionalType(c,undefined);if(s){c.instantiations=e.createMap();c.instantiations.set(getTypeListId(s),r.resolvedType)}}return r.resolvedType}function getTypeFromInferTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){t.resolvedType=getDeclaredTypeOfTypeParameter(getSymbolOfNode(e.typeParameter))}return t.resolvedType}function getIdentifierChain(t){if(e.isIdentifier(t)){return[t]}else{return e.append(getIdentifierChain(t.left),t.right)}}function getTypeFromImportTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments){error(t,e.Diagnostics.Type_arguments_cannot_be_used_here);r.resolvedSymbol=Q;return r.resolvedType=ee}if(!e.isLiteralImportTypeNode(t)){error(t.argument,e.Diagnostics.String_literal_expected);r.resolvedSymbol=Q;return r.resolvedType=ee}var n=t.isTypeOf?67220415:t.flags&2097152?67220415|67897832:67897832;var i=resolveExternalModuleName(t,t.argument.literal);if(!i){r.resolvedSymbol=Q;return r.resolvedType=ee}var a=resolveExternalModuleSymbol(i,false);if(!e.nodeIsMissing(t.qualifier)){var o=getIdentifierChain(t.qualifier);var s=a;var c=void 0;while(c=o.shift()){var u=o.length?1920:n;var l=getSymbol(getExportsOfSymbol(getMergedSymbol(resolveSymbol(s))),c.escapedText,u);if(!l){error(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,getFullyQualifiedName(s),e.declarationNameToString(c));return r.resolvedType=ee}getNodeLinks(c).resolvedSymbol=l;getNodeLinks(c.parent).resolvedSymbol=l;s=l}resolveImportSymbolType(t,r,s,n)}else{if(a.flags&n){resolveImportSymbolType(t,r,a,n)}else{var f=n===67220415?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;error(t,f,t.argument.literal.text);r.resolvedSymbol=Q;r.resolvedType=ee}}}return r.resolvedType}function resolveImportSymbolType(e,t,r,n){var i=resolveSymbol(r);t.resolvedSymbol=i;if(n===67220415){return t.resolvedType=getTypeOfSymbol(r)}else{return t.resolvedType=getTypeReferenceType(e,i)}}function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=getAliasSymbolForTypeNode(t);if(getMembersOfSymbol(t.symbol).size===0&&!n){r.resolvedType=De}else{var i=createObjectType(16,t.symbol);i.aliasSymbol=n;i.aliasTypeArguments=getTypeArgumentsForAliasSymbol(n);if(e.isJSDocTypeLiteral(t)&&t.isArrayType){i=createArrayType(i)}r.resolvedType=i}}return r.resolvedType}function getAliasSymbolForTypeNode(t){return e.isTypeAlias(t.parent)?getSymbolOfNode(t.parent):undefined}function getTypeArgumentsForAliasSymbol(e){return e?getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e):undefined}function isNonGenericObjectType(e){return!!(e.flags&524288)&&!isGenericMappedType(e)}function getSpreadType(t,r,n,i,a){if(t.flags&1||r.flags&1){return X}if(t.flags&2||r.flags&2){return te}if(t.flags&131072){return r}if(r.flags&131072){return t}if(t.flags&1048576){return mapType(t,function(e){return getSpreadType(e,r,n,i,a)})}if(r.flags&1048576){return mapType(r,function(e){return getSpreadType(t,e,n,i,a)})}if(r.flags&(528|296|2112|132|1056|67108864|4194304)){return t}if(isGenericObjectType(t)||isGenericObjectType(r)){if(isEmptyObjectType(t)){return r}if(t.flags&2097152){var o=t.types;var s=o[o.length-1];if(isNonGenericObjectType(s)&&isNonGenericObjectType(r)){return getIntersectionType(e.concatenate(o.slice(0,o.length-1),[getSpreadType(s,r,n,i,a)]))}}return getIntersectionType([t,r])}var c=e.createSymbolTable();var u=e.createUnderscoreEscapedMap();var l;var f;if(t===xe){l=getIndexInfoOfType(r,0);f=getIndexInfoOfType(r,1)}else{l=unionSpreadIndexInfos(getIndexInfoOfType(t,0),getIndexInfoOfType(r,0));f=unionSpreadIndexInfos(getIndexInfoOfType(t,1),getIndexInfoOfType(r,1))}for(var d=0,p=getPropertiesOfType(r);d<p.length;d++){var g=p[d];if(e.getDeclarationModifierFlagsFromSymbol(g)&(8|16)){u.set(g.escapedName,true)}else if(isSpreadableProperty(g)){c.set(g.escapedName,getSpreadSymbol(g))}}for(var _=0,m=getPropertiesOfType(t);_<m.length;_++){var y=m[_];if(u.has(y.escapedName)||!isSpreadableProperty(y)){continue}if(c.has(y.escapedName)){var g=c.get(y.escapedName);var h=getTypeOfSymbol(g);if(g.flags&16777216){var v=e.concatenate(y.declarations,g.declarations);var T=4|y.flags&16777216;var S=createSymbol(T,y.escapedName);S.type=getUnionType([getTypeOfSymbol(y),getTypeWithFacts(h,524288)]);S.leftSpread=y;S.rightSpread=g;S.declarations=v;S.nameType=y.nameType;c.set(y.escapedName,S)}}else{c.set(y.escapedName,getSpreadSymbol(y))}}var b=createAnonymousType(n,c,e.emptyArray,e.emptyArray,getNonReadonlyIndexSignature(l),getNonReadonlyIndexSignature(f));b.flags|=268435456|i;b.objectFlags|=128|1024|a;return b}function isSpreadableProperty(t){return!(t.flags&(8192|32768|65536))||!t.declarations.some(function(t){return e.isClassLike(t.parent)})}function getSpreadSymbol(e){var t=isReadonlySymbol(e);var r=e.flags&65536&&!(e.flags&32768);if(!t&&!r){return e}var n=4|e.flags&16777216;var i=createSymbol(n,e.escapedName);i.type=r?re:getTypeOfSymbol(e);i.declarations=e.declarations;i.nameType=e.nameType;i.syntheticOrigin=e;return i}function getNonReadonlyIndexSignature(e){if(e&&e.isReadonly){return createIndexInfo(e.type,false,e.declaration)}return e}function createLiteralType(e,t,r){var n=createType(e);n.symbol=r;n.value=t;return n}function getFreshTypeOfLiteralType(e){if(e.flags&2944){if(!e.freshType){var t=createLiteralType(e.flags,e.value,e.symbol);t.regularType=e;t.freshType=t;e.freshType=t}return e.freshType}return e}function getRegularTypeOfLiteralType(t){return t.flags&2944?t.regularType:t.flags&1048576?getUnionType(e.sameMap(t.types,getRegularTypeOfLiteralType)):t}function isFreshLiteralType(e){return!!(e.flags&2944)&&e.freshType===e}function getLiteralType(t,r,n){var i=typeof t==="number"?"#":typeof t==="string"?"@":"n";var a=(r?r:"")+i+(typeof t==="object"?e.pseudoBigIntToString(t):t);var o=K.get(a);if(!o){var s=(typeof t==="number"?256:typeof t==="string"?128:2048)|(r?1024:0);K.set(a,o=createLiteralType(s,t,n));o.regularType=o}return o}function getTypeFromLiteralTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){t.resolvedType=getRegularTypeOfLiteralType(checkExpression(e.literal))}return t.resolvedType}function createUniqueESSymbolType(e){var t=createType(8192);t.symbol=e;return t}function getESSymbolLikeTypeForNode(t){if(e.isValidESSymbolDeclaration(t)){var r=getSymbolOfNode(t);var n=getSymbolLinks(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=createUniqueESSymbolType(r))}return ge}function getThisType(t){var r=e.getThisContainer(t,false);var n=r&&r.parent;if(n&&(e.isClassLike(n)||n.kind===241)){if(!e.hasModifier(r,32)&&(r.kind!==157||e.isNodeDescendantOf(t,r.body))){return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(n)).thisType}}error(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface);return ee}function getTypeFromThisTypeNode(e){var t=getNodeLinks(e);if(!t.resolvedType){t.resolvedType=getThisType(e)}return t.resolvedType}function getTypeFromTypeNode(e){switch(e.kind){case 120:case 284:case 285:return X;case 143:return te;case 138:return oe;case 135:return se;case 146:return ce;case 123:return pe;case 139:return ge;case 106:return _e;case 141:return re;case 96:return ie;case 132:return me;case 136:return e.flags&65536?X:ve;case 178:case 100:return getTypeFromThisTypeNode(e);case 182:return getTypeFromLiteralTypeNode(e);case 164:return getTypeFromTypeReference(e);case 163:return pe;case 211:return getTypeFromTypeReference(e);case 167:return getTypeFromTypeQueryNode(e);case 169:return getTypeFromArrayTypeNode(e);case 170:return getTypeFromTupleTypeNode(e);case 171:return getTypeFromOptionalTypeNode(e);case 173:return getTypeFromUnionTypeNode(e);case 174:return getTypeFromIntersectionTypeNode(e);case 286:return getTypeFromJSDocNullableTypeNode(e);case 288:return addOptionality(getTypeFromTypeNode(e.type));case 177:case 172:case 287:case 283:return getTypeFromTypeNode(e.type);case 290:return getTypeFromJSDocVariadicType(e);case 165:case 166:case 168:case 292:case 289:case 293:return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(e);case 179:return getTypeFromTypeOperatorNode(e);case 180:return getTypeFromIndexedAccessTypeNode(e);case 181:return getTypeFromMappedTypeNode(e);case 175:return getTypeFromConditionalTypeNode(e);case 176:return getTypeFromInferTypeNode(e);case 183:return getTypeFromImportTypeNode(e);case 72:case 148:var t=getSymbolAtLocation(e);return t?getDeclaredTypeOfSymbol(t):ee;default:return ee}}function instantiateList(e,t,r){if(e&&e.length){for(var n=0;n<e.length;n++){var i=e[n];var a=r(i,t);if(i!==a){var o=n===0?[]:e.slice(0,n);o.push(a);for(n++;n<e.length;n++){o.push(r(e[n],t))}return o}}}return e}function instantiateTypes(e,t){return instantiateList(e,t,instantiateType)}function instantiateSignatures(e,t){return instantiateList(e,t,instantiateSignature)}function makeUnaryTypeMapper(e,t){return function(r){return r===e?t:r}}function makeBinaryTypeMapper(e,t,r,n){return function(i){return i===e?t:i===r?n:i}}function makeArrayTypeMapper(e,t){return function(r){for(var n=0;n<e.length;n++){if(r===e[n]){return t?t[n]:X}}return r}}function createTypeMapper(t,r){e.Debug.assert(r===undefined||t.length===r.length);return t.length===1?makeUnaryTypeMapper(t[0],r?r[0]:X):t.length===2?makeBinaryTypeMapper(t[0],r?r[0]:X,t[1],r?r[1]:X):makeArrayTypeMapper(t,r)}function createTypeEraser(e){return createTypeMapper(e,undefined)}function createBackreferenceMapper(e,t){return function(r){return e.indexOf(r)>=t?xe:r}}function isInferenceContext(e){return!!e.typeParameters}function cloneTypeMapper(e){return e&&isInferenceContext(e)?createInferenceContext(e.typeParameters,e.signature,e.flags|1,e.compareTypes,e.inferences):e}function combineTypeMappers(e,t){if(!e)return t;if(!t)return e;return function(r){return instantiateType(e(r),t)}}function createReplacementMapper(e,t,r){return function(n){return n===e?t:r(n)}}function wildcardMapper(e){return e.flags&262144?Z:e}function cloneTypeParameter(e){var t=createType(262144);t.symbol=e.symbol;t.target=e;return t}function instantiateTypePredicate(t,r){if(e.isIdentifierTypePredicate(t)){return{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:instantiateType(t.type,r)}}else{return{kind:0,type:instantiateType(t.type,r)}}}function instantiateSignature(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,cloneTypeParameter);r=combineTypeMappers(createTypeMapper(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++){var s=o[a];s.mapper=r}}var c=createSignature(t.declaration,i,t.thisParameter&&instantiateSymbol(t.thisParameter,r),instantiateList(t.parameters,r,instantiateSymbol),undefined,undefined,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);c.target=t;c.mapper=r;return c}function instantiateSymbol(t,r){var n=getSymbolLinks(t);if(n.type&&!maybeTypeOfKind(n.type,524288|63176704)){return t}if(e.getCheckFlags(t)&1){t=n.target;r=combineTypeMappers(n.mapper,r)}var i=createSymbol(t.flags,t.escapedName,1|e.getCheckFlags(t)&(1024|4096|8192));i.declarations=t.declarations;i.parent=t.parent;i.target=t;i.mapper=r;if(t.valueDeclaration){i.valueDeclaration=t.valueDeclaration}if(t.nameType){i.nameType=t.nameType}return i}function getAnonymousTypeInstantiation(t,r){var n=t.objectFlags&64?t.target:t;var i=n.symbol;var a=getSymbolLinks(i);var o=a.outerTypeParameters;if(!o){var s=i.declarations[0];if(e.isInJSFile(s)){var c=e.findAncestor(s,e.isJSDocParameterTag);if(c){var u=e.getParameterSymbolFromJSDoc(c);if(u){s=u.valueDeclaration}}}var l=getOuterTypeParameters(s,true);if(isJSConstructor(s)){var f=getTypeParametersFromDeclaration(s);l=e.addRange(l,f)}o=l||e.emptyArray;o=i.flags&2048&&!n.aliasTypeArguments?e.filter(o,function(e){return isTypeParameterPossiblyReferenced(e,s)}):o;a.outerTypeParameters=o;if(o.length){a.instantiations=e.createMap();a.instantiations.set(getTypeListId(o),n)}}if(o.length){var d=t.objectFlags&64?combineTypeMappers(t.mapper,r):r;var p=e.map(o,d);var g=getTypeListId(p);var _=a.instantiations.get(g);if(!_){var m=createTypeMapper(o,p);_=n.objectFlags&32?instantiateMappedType(n,m):instantiateAnonymousType(n,m);a.instantiations.set(g,_)}return _}return t}function maybeTypeParameterReference(e){return!(e.kind===148||e.parent.kind===164&&e.parent.typeArguments&&e===e.parent.typeName)}function isTypeParameterPossiblyReferenced(t,r){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations.length===1){var n=t.symbol.declarations[0].parent;if(e.findAncestor(r,function(e){return e.kind===218?"quit":e===n})){return!!e.forEachChild(r,containsReference)}}return true;function containsReference(r){switch(r.kind){case 178:return!!t.isThisType;case 72:return!t.isThisType&&e.isPartOfTypeNode(r)&&maybeTypeParameterReference(r)&&getTypeFromTypeNode(r)===t;case 167:return true}return!!e.forEachChild(r,containsReference)}}function getHomomorphicTypeVariable(e){var t=getConstraintTypeFromMappedType(e);if(t.flags&4194304){var r=t.type;if(r.flags&262144){return r}}return undefined}function instantiateMappedType(e,t){var r=getHomomorphicTypeVariable(e);if(r){var n=instantiateType(r,t);if(r!==n){if(e.instantiating){return ee}e.instantiating=true;var i=mapType(n,function(n){if(n.flags&(3|58982400|524288|2097152)&&n!==Z){var i=createReplacementMapper(r,n,t);return isArrayType(n)?createArrayType(instantiateMappedTypeTemplate(e,se,true,i)):isReadonlyArrayType(n)?createReadonlyArrayType(instantiateMappedTypeTemplate(e,se,true,i)):isTupleType(n)?instantiateMappedTupleType(n,e,i):instantiateAnonymousType(e,i)}return n});e.instantiating=false;return i}}return instantiateAnonymousType(e,t)}function instantiateMappedTupleType(t,r,n){var i=t.target.minLength;var a=e.map(t.typeArguments||e.emptyArray,function(e,t){return instantiateMappedTypeTemplate(r,getLiteralType(""+t),t>=i,n)});var o=getMappedTypeModifiers(r);var s=o&4?0:o&8?getTypeReferenceArity(t)-(t.target.hasRestElement?1:0):i;return createTupleType(a,s,t.target.hasRestElement,t.target.associatedNames)}function instantiateMappedTypeTemplate(e,t,r,n){var i=combineTypeMappers(n,createTypeMapper([getTypeParameterFromMappedType(e)],[t]));var a=instantiateType(getTemplateTypeFromMappedType(e.target||e),i);var o=getMappedTypeModifiers(e);return k&&o&4&&!isTypeAssignableTo(re,a)?getOptionalType(a):k&&o&8&&r?getTypeWithFacts(a,524288):a}function instantiateAnonymousType(e,t){var r=createObjectType(e.objectFlags|64,e.symbol);if(e.objectFlags&32){r.declaration=e.declaration;var n=getTypeParameterFromMappedType(e);var i=cloneTypeParameter(n);r.typeParameter=i;t=combineTypeMappers(makeUnaryTypeMapper(n,i),t);i.mapper=t}r.target=e;r.mapper=t;r.aliasSymbol=e.aliasSymbol;r.aliasTypeArguments=instantiateTypes(e.aliasTypeArguments,t);return r}function getConditionalTypeInstantiation(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r);var a=getTypeListId(i);var o=n.instantiations.get(a);if(!o){var s=createTypeMapper(n.outerTypeParameters,i);o=instantiateConditionalType(n,s);n.instantiations.set(a,o)}return o}return t}function instantiateConditionalType(e,t){if(e.isDistributive){var r=e.checkType;var n=t(r);if(r!==n&&n.flags&(1048576|131072)){return mapType(n,function(n){return getConditionalType(e,createReplacementMapper(r,n,t))})}}return getConditionalType(e,t)}function instantiateType(e,t){if(!e||!t||t===b){return e}if(v===50){return ee}v++;var r=instantiateTypeWorker(e,t);v--;return r}function instantiateTypeWorker(e,t){var r=e.flags;if(r&262144){return t(e)}if(r&524288){var n=e.objectFlags;if(n&16){return e.symbol&&e.symbol.flags&(16|8192|32|2048|4096)&&e.symbol.declarations?getAnonymousTypeInstantiation(e,t):e}if(n&32){return getAnonymousTypeInstantiation(e,t)}if(n&4){var i=e.typeArguments;var a=instantiateTypes(i,t);return a!==i?createTypeReference(e.target,a):e}return e}if(r&1048576&&!(r&131068)){var o=e.types;var s=instantiateTypes(o,t);return s!==o?getUnionType(s,1,e.aliasSymbol,instantiateTypes(e.aliasTypeArguments,t)):e}if(r&2097152){var o=e.types;var s=instantiateTypes(o,t);return s!==o?getIntersectionType(s,e.aliasSymbol,instantiateTypes(e.aliasTypeArguments,t)):e}if(r&4194304){return getIndexType(instantiateType(e.type,t))}if(r&8388608){return getIndexedAccessType(instantiateType(e.objectType,t),instantiateType(e.indexType,t))}if(r&16777216){return getConditionalTypeInstantiation(e,combineTypeMappers(e.mapper,t))}if(r&33554432){return instantiateType(e.typeVariable,t)}return e}function getWildcardInstantiation(e){return e.flags&(131068|3|131072)?e:e.wildcardInstantiation||(e.wildcardInstantiation=instantiateType(e,wildcardMapper))}function instantiateIndexInfo(e,t){return e&&createIndexInfo(instantiateType(e.type,t),e.isReadonly,e.declaration)}function isContextSensitive(t){e.Debug.assert(t.kind!==156||e.isObjectLiteralMethod(t));switch(t.kind){case 196:case 197:case 156:return isContextSensitiveFunctionLikeDeclaration(t);case 188:return e.some(t.properties,isContextSensitive);case 187:return e.some(t.elements,isContextSensitive);case 205:return isContextSensitive(t.whenTrue)||isContextSensitive(t.whenFalse);case 204:return t.operatorToken.kind===55&&(isContextSensitive(t.left)||isContextSensitive(t.right));case 275:return isContextSensitive(t.initializer);case 195:return isContextSensitive(t.expression);case 268:return e.some(t.properties,isContextSensitive)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,isContextSensitive);case 267:{var r=t.initializer;return!!r&&isContextSensitive(r)}case 270:{var n=t.expression;return!!n&&isContextSensitive(n)}}return false}function isContextSensitiveFunctionLikeDeclaration(t){if(t.typeParameters){return false}if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)})){return true}if(t.kind!==197){var r=e.firstOrUndefined(t.parameters);if(!(r&&e.parameterIsThisKeyword(r))){return true}}return hasContextSensitiveReturnExpression(t)}function hasContextSensitiveReturnExpression(e){var t=e.body;return t.kind===218?false:isContextSensitive(t)}function isContextSensitiveFunctionOrObjectLiteralMethod(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&isContextSensitiveFunctionLikeDeclaration(t)}function getTypeWithoutSignatures(t){if(t.flags&524288){var r=resolveStructuredTypeMembers(t);if(r.constructSignatures.length||r.callSignatures.length){var n=createObjectType(16,t.symbol);n.members=r.members;n.properties=r.properties;n.callSignatures=e.emptyArray;n.constructSignatures=e.emptyArray;return n}}else if(t.flags&2097152){return getIntersectionType(e.map(t.types,getTypeWithoutSignatures))}return t}function isTypeIdenticalTo(e,t){return isTypeRelatedTo(e,t,lr)}function compareTypesIdentical(e,t){return isTypeRelatedTo(e,t,lr)?-1:0}function compareTypesAssignable(e,t){return isTypeRelatedTo(e,t,sr)?-1:0}function compareTypesSubtypeOf(e,t){return isTypeRelatedTo(e,t,or)?-1:0}function isTypeSubtypeOf(e,t){return isTypeRelatedTo(e,t,or)}function isTypeAssignableTo(e,t){return isTypeRelatedTo(e,t,sr)}function isTypeDerivedFrom(t,r){return t.flags&1048576?e.every(t.types,function(e){return isTypeDerivedFrom(e,r)}):r.flags&1048576?e.some(r.types,function(e){return isTypeDerivedFrom(t,e)}):t.flags&58982400?isTypeDerivedFrom(getBaseConstraintOfType(t)||xe,r):r===qe?!!(t.flags&(524288|67108864)):r===Ge?!!(t.flags&524288)&&isFunctionObjectType(t):hasBaseType(t,getTargetType(r))}function isTypeComparableTo(e,t){return isTypeRelatedTo(e,t,ur)}function areTypesComparable(e,t){return isTypeComparableTo(e,t)||isTypeComparableTo(t,e)}function checkTypeAssignableTo(e,t,r,n,i,a){return checkTypeRelatedTo(e,t,sr,r,n,i,a)}function checkTypeAssignableToAndOptionallyElaborate(e,t,r,n,i,a){return checkTypeRelatedToAndOptionallyElaborate(e,t,sr,r,n,i,a)}function checkTypeRelatedToAndOptionallyElaborate(e,t,r,n,i,a,o){if(isTypeRelatedTo(e,t,r))return true;if(!n||!elaborateError(i,e,t,r,a)){return checkTypeRelatedTo(e,t,r,n,a,o)}return false}function isOrHasGenericConditional(t){return!!(t.flags&16777216||t.flags&2097152&&e.some(t.types,isOrHasGenericConditional))}function elaborateError(e,t,r,n,i){if(!e||isOrHasGenericConditional(r))return false;if(!checkTypeRelatedTo(t,r,n,undefined)&&elaborateDidYouMeanToCallOrConstruct(e,t,r,n,i)){return true}switch(e.kind){case 270:case 195:return elaborateError(e.expression,t,r,n,i);case 204:switch(e.operatorToken.kind){case 59:case 27:return elaborateError(e.right,t,r,n,i)}break;case 188:return elaborateObjectLiteral(e,t,r,n);case 187:return elaborateArrayLiteral(e,t,r,n);case 268:return elaborateJsxAttributes(e,t,r,n);case 197:return elaborateArrowFunction(e,t,r,n)}return false}function elaborateDidYouMeanToCallOrConstruct(t,r,n,i,a){var o=getSignaturesOfType(r,0);var s=getSignaturesOfType(r,1);for(var c=0,u=[s,o];c<u.length;c++){var l=u[c];if(e.some(l,function(e){var t=getReturnTypeOfSignature(e);return!(t.flags&(1|131072))&&checkTypeRelatedTo(t,n,i,undefined)})){var f={};checkTypeAssignableTo(r,n,t,a,undefined,f);var d=f.error;addRelatedInfo(d,e.createDiagnosticForNode(t,l===s?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression));return true}}return false}function elaborateArrowFunction(t,r,n,i){if(e.isBlock(t.body)){return false}if(e.some(t.parameters,e.hasType)){return false}var a=getSingleCallSignature(r);if(!a){return false}var o=getSignaturesOfType(n,0);if(!e.length(o)){return false}var s=t.body;var c=getReturnTypeOfSignature(a);var u=getUnionType(e.map(o,getReturnTypeOfSignature));if(!checkTypeRelatedTo(c,u,i,undefined)){var l=s&&elaborateError(s,c,u,i,undefined);if(l){return l}var f={};checkTypeRelatedTo(c,u,i,s,undefined,undefined,f);if(f.error){if(n.symbol&&e.length(n.symbol.declarations)){addRelatedInfo(f.error,e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature))}return true}}return false}function elaborateElementwise(t,r,n,i){var a=false;for(var o=t.next();!o.done;o=t.next()){var s=o.value,c=s.errorNode,u=s.innerExpression,l=s.nameType,f=s.errorMessage;var d=getIndexedAccessType(n,l,undefined,ee);if(d===ee||d.flags&8388608)continue;var p=getIndexedAccessType(r,l,undefined,ee);if(p!==ee&&d!==ee&&!checkTypeRelatedTo(p,d,i,undefined)){var g=u&&elaborateError(u,p,d,i,undefined);if(g){a=true}else{var _={};var m=u?checkExpressionForMutableLocation(u,0,p):p;var y=checkTypeRelatedTo(m,d,i,c,f,undefined,_);if(y&&m!==p){checkTypeRelatedTo(p,d,i,c,f,undefined,_)}if(_.error){var h=_.error;var v=isTypeUsableAsLateBoundName(l)?getLateBoundNameFromType(l):undefined;var T=v!==undefined?getPropertyOfType(n,v):undefined;var S=false;if(!T){var b=isTypeAssignableToKind(l,296)&&getIndexInfoOfType(n,1)||getIndexInfoOfType(n,0)||undefined;if(b&&b.declaration&&!e.getSourceFileOfNode(b.declaration).hasNoDefaultLib){S=true;addRelatedInfo(h,e.createDiagnosticForNode(b.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature))}}if(!S&&(T&&e.length(T.declarations)||n.symbol&&e.length(n.symbol.declarations))){var x=T&&e.length(T.declarations)?T.declarations[0]:n.symbol.declarations[0];if(!e.getSourceFileOfNode(x).hasNoDefaultLib){addRelatedInfo(h,e.createDiagnosticForNode(x,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,v&&!(l.flags&8192)?e.unescapeLeadingUnderscores(v):typeToString(l),typeToString(n)))}}}a=true}}}return a}function generateJsxAttributes(t){var r,n,a;return i(this,function(i){switch(i.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties;i.label=1;case 1:if(!(r<n.length))return[3,4];a=n[r];if(e.isJsxSpreadAttribute(a))return[3,3];return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:getLiteralType(e.idText(a.name))}];case 2:i.sent();i.label=3;case 3:r++;return[3,1];case 4:return[2]}})}function elaborateJsxAttributes(e,t,r,n){return elaborateElementwise(generateJsxAttributes(e),t,r,n)}function generateLimitedTupleElements(t,r){var n,a,o,s;return i(this,function(i){switch(i.label){case 0:n=e.length(t.elements);if(!n)return[2];a=0;i.label=1;case 1:if(!(a<n))return[3,4];if(isTupleLikeType(r)&&!getPropertyOfType(r,""+a))return[3,3];o=t.elements[a];if(e.isOmittedExpression(o))return[3,3];s=getLiteralType(a);return[4,{errorNode:o,innerExpression:o,nameType:s}];case 2:i.sent();i.label=3;case 3:a++;return[3,1];case 4:return[2]}})}function elaborateArrayLiteral(e,t,r,n){if(isTupleLikeType(t)){return elaborateElementwise(generateLimitedTupleElements(e,r),t,r,n)}var i=checkArrayLiteral(e,3,true);if(isTupleLikeType(i)){return elaborateElementwise(generateLimitedTupleElements(e,r),i,r,n)}return false}function generateObjectLiteralElements(t){var r,n,a,o,s;return i(this,function(i){switch(i.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties;i.label=1;case 1:if(!(r<n.length))return[3,8];a=n[r];if(e.isSpreadAssignment(a))return[3,7];o=getLiteralTypeFromProperty(getSymbolOfNode(a),8576);if(!o||o.flags&131072){return[3,7]}s=a.kind;switch(s){case 159:return[3,2];case 158:return[3,2];case 156:return[3,2];case 276:return[3,2];case 275:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:undefined,nameType:o}];case 3:i.sent();return[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:o,errorMessage:isComputedNonLiteralName(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:undefined}];case 5:i.sent();return[3,7];case 6:e.Debug.assertNever(a);i.label=7;case 7:r++;return[3,1];case 8:return[2]}})}function elaborateObjectLiteral(e,t,r,n){return elaborateElementwise(generateObjectLiteralElements(e),t,r,n)}function checkTypeComparableTo(e,t,r,n,i){return checkTypeRelatedTo(e,t,ur,r,n,i)}function isSignatureAssignableTo(e,t,r){return compareSignaturesRelated(e,t,0,r,false,undefined,compareTypesAssignable)!==0}function compareSignaturesRelated(t,r,n,i,a,o,s){if(t===r){return-1}var c=getParameterCount(r);if(!hasEffectiveRestParameter(r)&&getMinArgumentCount(t)>c){return 0}if(t.typeParameters&&t.typeParameters!==r.typeParameters){r=getCanonicalSignature(r);t=instantiateSignatureInContextOf(t,r,undefined,s)}var u=getParameterCount(t);var l=getNonArrayRestType(t);var f=getNonArrayRestType(r);if(l&&f&&u!==c){return 0}var d=r.declaration?r.declaration.kind:0;var p=!n&&N&&d!==156&&d!==155&&d!==157;var g=-1;var _=getThisTypeOfSignature(t);if(_&&_!==_e){var m=getThisTypeOfSignature(r);if(m){var y=!p&&s(_,m,false)||s(m,_,a);if(!y){if(a){o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible)}return 0}g&=y}}var h=l||f?Math.min(u,c):Math.max(u,c);var v=l||f?h-1:-1;for(var T=0;T<h;T++){var S=T===v?getRestTypeAtPosition(t,T):getTypeAtPosition(t,T);var b=T===v?getRestTypeAtPosition(r,T):getTypeAtPosition(r,T);var x=n?undefined:getSingleCallSignature(getNonNullableType(S));var C=n?undefined:getSingleCallSignature(getNonNullableType(b));var E=x&&C&&!signatureHasTypePredicate(x)&&!signatureHasTypePredicate(C)&&(getFalsyFlags(S)&98304)===(getFalsyFlags(b)&98304);var y=E?compareSignaturesRelated(C,x,p?2:1,false,a,o,s):!n&&!p&&s(S,b,false)||s(b,S,a);if(!y){if(a){o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(getParameterNameAtPosition(t,T)),e.unescapeLeadingUnderscores(getParameterNameAtPosition(r,T)))}return 0}g&=y}if(!i){var D=r.declaration&&isJSConstructor(r.declaration)?getJSClassType(r.declaration.symbol):getReturnTypeOfSignature(r);if(D===_e){return g}var k=t.declaration&&isJSConstructor(t.declaration)?getJSClassType(t.declaration.symbol):getReturnTypeOfSignature(t);var A=getTypePredicateOfSignature(r);if(A){var O=getTypePredicateOfSignature(t);if(O){g&=compareTypePredicateRelatedTo(O,A,t.declaration,r.declaration,a,o,s)}else if(e.isIdentifierTypePredicate(A)){if(a){o(e.Diagnostics.Signature_0_must_be_a_type_predicate,signatureToString(t))}return 0}}else{g&=n===1&&s(D,k,false)||s(k,D,a)}}return g}function compareTypePredicateRelatedTo(t,r,n,i,a,o,s){if(t.kind!==r.kind){if(a){o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard);o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,typePredicateToString(t),typePredicateToString(r))}return 0}if(t.kind===1){var c=r;var u=t.parameterIndex-(e.getThisParameter(n)?1:0);var l=c.parameterIndex-(e.getThisParameter(i)?1:0);if(u!==l){if(a){o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,c.parameterName);o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,typePredicateToString(t),typePredicateToString(r))}return 0}}var f=s(t.type,r.type,a);if(f===0&&a){o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,typePredicateToString(t),typePredicateToString(r))}return f}function isImplementationCompatibleWithOverload(e,t){var r=getErasedSignature(e);var n=getErasedSignature(t);var i=getReturnTypeOfSignature(r);var a=getReturnTypeOfSignature(n);if(a===_e||isTypeRelatedTo(a,i,sr)||isTypeRelatedTo(i,a,sr)){return isSignatureAssignableTo(r,n,true)}return false}function isEmptyResolvedType(e){return e.properties.length===0&&e.callSignatures.length===0&&e.constructSignatures.length===0&&!e.stringIndexInfo&&!e.numberIndexInfo}function isEmptyObjectType(t){return t.flags&524288?isEmptyResolvedType(resolveStructuredTypeMembers(t)):t.flags&67108864?true:t.flags&1048576?e.some(t.types,isEmptyObjectType):t.flags&2097152?e.every(t.types,isEmptyObjectType):false}function isEmptyAnonymousObjectType(t){return!!(e.getObjectFlags(t)&16)&&isEmptyObjectType(t)}function isEnumTypeRelatedTo(t,r,n){if(t===r){return true}var i=getSymbolId(t)+","+getSymbolId(r);var a=fr.get(i);if(a!==undefined&&!(a===2&&n)){return a===1}if(t.escapedName!==r.escapedName||!(t.flags&256)||!(r.flags&256)){fr.set(i,3);return false}var o=getTypeOfSymbol(r);for(var s=0,c=getPropertiesOfType(getTypeOfSymbol(t));s<c.length;s++){var u=c[s];if(u.flags&8){var l=getPropertyOfType(o,u.escapedName);if(!l||!(l.flags&8)){if(n){n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),typeToString(getDeclaredTypeOfSymbol(r),undefined,64));fr.set(i,3)}else{fr.set(i,2)}return false}}}fr.set(i,1);return true}function isSimpleTypeRelatedTo(e,t,r,n){var i=e.flags;var a=t.flags;if(a&3||i&131072||e===Z)return true;if(a&131072)return false;if(i&132&&a&4)return true;if(i&128&&i&1024&&a&128&&!(a&1024)&&e.value===t.value)return true;if(i&296&&a&8)return true;if(i&256&&i&1024&&a&256&&!(a&1024)&&e.value===t.value)return true;if(i&2112&&a&64)return true;if(i&528&&a&16)return true;if(i&12288&&a&4096)return true;if(i&32&&a&32&&isEnumTypeRelatedTo(e.symbol,t.symbol,n))return true;if(i&1024&&a&1024){if(i&1048576&&a&1048576&&isEnumTypeRelatedTo(e.symbol,t.symbol,n))return true;if(i&2944&&a&2944&&e.value===t.value&&isEnumTypeRelatedTo(getParentOfSymbol(e.symbol),getParentOfSymbol(t.symbol),n))return true}if(i&32768&&(!k||a&(32768|16384)))return true;if(i&65536&&(!k||a&65536))return true;if(i&524288&&a&67108864)return true;if(i&8192||a&8192)return false;if(r===sr||r===cr||r===ur){if(i&1)return true;if(i&(8|256)&&!(i&1024)&&(a&32||a&256&&a&1024))return true}return false}function isTypeRelatedTo(e,t,r){if(isFreshLiteralType(e)){e=e.regularType}if(isFreshLiteralType(t)){t=t.regularType}if(e===t||r===ur&&!(t.flags&131072)&&isSimpleTypeRelatedTo(t,e,r)||r!==lr&&isSimpleTypeRelatedTo(e,t,r)){return true}if(e.flags&524288&&t.flags&524288){var n=r.get(getRelationKey(e,t,r));if(n!==undefined){return n===1}}if(e.flags&66846720||t.flags&66846720){return checkTypeRelatedTo(e,t,r,undefined)}return false}function isIgnoredJsxProperty(t,r,n){return e.getObjectFlags(t)&4096&&!(isUnhyphenatedJsxName(r.escapedName)||n)}function checkTypeRelatedTo(t,r,n,i,a,o,s){var u;var l;var f;var d;var p;var g=0;var _=0;var m=0;var y=false;var h=false;e.Debug.assert(n!==lr||!i,"no error reporting in identity checking");var v=isRelatedTo(t,r,!!i,a);if(y){error(i,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,typeToString(t),typeToString(r))}else if(u){if(o){var T=o();if(T){u=e.concatenateDiagnosticMessageChains(T,u)}}var S=void 0;if(a&&i&&!v&&t.symbol){var b=getSymbolLinks(t.symbol);if(b.originatingImport&&!e.isImportCall(b.originatingImport)){var C=checkTypeRelatedTo(getTypeOfSymbol(b.target),r,n,undefined);if(C){var E=e.createDiagnosticForNode(b.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);S=e.append(S,E)}}}var D=e.createDiagnosticForNodeFromMessageChain(i,u,S);if(l){addRelatedInfo.apply(void 0,[D].concat(l))}if(s){s.error=D}Xt.add(D)}return v!==0;function reportError(t,r,n,a,o){e.Debug.assert(!!i);u=e.chainDiagnosticMessages(u,t,r,n,a,o)}function associateRelatedInfo(t){e.Debug.assert(!!u);if(!l){l=[t]}else{l.push(t)}}function reportRelationError(t,r,i){var a=typeToString(r);var o=typeToString(i);if(a===o){a=typeToString(r,undefined,64);o=typeToString(i,undefined,64)}if(!t){if(n===ur){t=e.Diagnostics.Type_0_is_not_comparable_to_type_1}else if(a===o){t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated}else{t=e.Diagnostics.Type_0_is_not_assignable_to_type_1}}reportError(t,a,o)}function tryElaborateErrorsForPrimitivesAndObjects(t,r){var n=typeToString(t);var i=typeToString(r);if(Ye===t&&oe===r||Ze===t&&se===r||et===t&&pe===r||getGlobalESSymbolType(false)===t&&ge===r){reportError(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}}function isUnionOrIntersectionTypeWithoutNullableConstituents(e){if(!(e.flags&3145728)){return false}var t=false;for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(i.flags&98304){continue}if(t){return true}t=true}return false}function isRelatedTo(t,r,a,o,s){if(a===void 0){a=false}if(isFreshLiteralType(t)){t=t.regularType}if(isFreshLiteralType(r)){r=r.regularType}if(t.flags&33554432){t=n===cr?t.typeVariable:t.substitute}if(r.flags&33554432){r=r.typeVariable}if(t.flags&8388608){t=getSimplifiedType(t)}if(r.flags&8388608){r=getSimplifiedType(r)}if(r.flags&1048576&&t.flags&524288&&r.types.length<=3&&maybeTypeOfKind(r,98304)){var l=extractTypesOfKind(r,~98304);if(!(l.flags&(1048576|131072))){r=l}}if(t===r)return-1;if(n===lr){return isIdenticalTo(t,r)}if(n===ur&&!(r.flags&131072)&&isSimpleTypeRelatedTo(r,t,n)||isSimpleTypeRelatedTo(t,r,n,a?reportError:undefined))return-1;var f=!!(e.getObjectFlags(t)&4096);if(isObjectLiteralType(t)&&e.getObjectFlags(t)&32768){var d=r.flags&1048576?findMatchingDiscriminantType(t,r):undefined;if(hasExcessProperties(t,r,d,a)){if(a){reportRelationError(o,t,r)}return 0}if(isUnionOrIntersectionTypeWithoutNullableConstituents(r)&&!d){t=getRegularTypeOfObjectLiteral(t)}}if(n!==ur&&!s&&t.flags&(131068|524288|2097152)&&t!==qe&&r.flags&(524288|2097152)&&isWeakType(r)&&(getPropertiesOfType(t).length>0||typeHasCallOrConstructSignatures(t))&&!hasCommonProperties(t,r,f)){if(a){var p=getSignaturesOfType(t,0);var g=getSignaturesOfType(t,1);if(p.length>0&&isRelatedTo(getReturnTypeOfSignature(p[0]),r,false)||g.length>0&&isRelatedTo(getReturnTypeOfSignature(g[0]),r,false)){reportError(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,typeToString(t),typeToString(r))}else{reportError(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,typeToString(t),typeToString(r))}}return 0}var _=0;var m=u;var y=!!s;if(t.flags&1048576){_=n===ur?someTypeRelatedToType(t,r,a&&!(t.flags&131068)):eachTypeRelatedToType(t,r,a&&!(t.flags&131068))}else{if(r.flags&1048576){_=typeRelatedToSomeType(t,r,a&&!(t.flags&131068)&&!(r.flags&131068))}else if(r.flags&2097152){y=true;_=typeRelatedToEachType(t,r,a)}else if(t.flags&2097152){_=someTypeRelatedToType(t,r,false)}if(!_&&(t.flags&66846720||r.flags&66846720)){if(_=recursiveTypeRelatedTo(t,r,a,y)){u=m}}}if(!_&&t.flags&2097152){var v=getUnionConstraintOfIntersection(t,!!(r.flags&1048576));if(v){if(_=isRelatedTo(v,r,a,undefined,y)){u=m}}}if(!_&&a){var T=h;h=false;if(t.flags&524288&&r.flags&131068){tryElaborateErrorsForPrimitivesAndObjects(t,r)}else if(t.symbol&&t.flags&524288&&qe===t){reportError(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead)}else if(f&&r.flags&2097152){var S=r.types;var b=getJsxType(c.IntrinsicAttributes,i);var x=getJsxType(c.IntrinsicClassAttributes,i);if(b!==ee&&x!==ee&&(e.contains(S,b)||e.contains(S,x))){return _}}if(!o&&T){return _}reportRelationError(o,t,r)}return _}function isIdenticalTo(e,t){var r;var n=e.flags&t.flags;if(n&524288||n&8388608||n&16777216||n&4194304||n&33554432){return recursiveTypeRelatedTo(e,t,false,false)}if(n&(1048576|2097152)){if(r=eachTypeRelatedToSomeType(e,t)){if(r&=eachTypeRelatedToSomeType(t,e)){return r}}}return 0}function hasExcessProperties(t,r,a,o){if(!F&&e.getObjectFlags(r)&16384){return false}if(maybeTypeOfKind(r,524288)&&!(e.getObjectFlags(r)&512)){var s=!!(e.getObjectFlags(t)&4096);if((n===sr||n===cr||n===ur)&&(isTypeSubsetOf(qe,r)||!s&&isEmptyObjectType(r))){return false}if(a){return hasExcessProperties(t,a,undefined,o)}var c=function(n){if(shouldCheckAsExcessProperty(n,t.symbol)&&!isKnownProperty(r,n.escapedName,s)){if(o){if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){reportError(e.Diagnostics.Property_0_does_not_exist_on_type_1,symbolToString(n),typeToString(r))}else{var a=t.symbol&&e.firstOrUndefined(t.symbol.declarations);var c=void 0;if(n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===a})){var u=n.valueDeclaration;e.Debug.assertNode(u,e.isObjectLiteralElementLike);i=u;var l=u.name;if(e.isIdentifier(l)){c=getSuggestionForNonexistentProperty(l,r)}}if(c!==undefined){reportError(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,symbolToString(n),typeToString(r),c)}else{reportError(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,symbolToString(n),typeToString(r))}}}return{value:true}}};for(var u=0,l=getPropertiesOfObjectType(t);u<l.length;u++){var f=l[u];var d=c(f);if(typeof d==="object")return d.value}}return false}function shouldCheckAsExcessProperty(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function eachTypeRelatedToSomeType(e,t){var r=-1;var n=e.types;for(var i=0,a=n;i<a.length;i++){var o=a[i];var s=typeRelatedToSomeType(o,t,false);if(!s){return 0}r&=s}return r}function typeRelatedToSomeType(e,t,r){var n=t.types;if(t.flags&1048576&&containsType(n,e)){return-1}for(var i=0,a=n;i<a.length;i++){var o=a[i];var s=isRelatedTo(e,o,false);if(s){return s}}if(r){var c=findMatchingDiscriminantType(e,t)||findMatchingTypeReferenceOrTypeAliasReference(e,t)||findBestTypeForObjectLiteral(e,t)||findBestTypeForInvokable(e,t)||findMostOverlappyType(e,t);isRelatedTo(e,c||n[n.length-1],true)}return 0}function findMatchingTypeReferenceOrTypeAliasReference(t,r){var n=e.getObjectFlags(t);if(n&(4|16)&&r.flags&1048576){return e.find(r.types,function(r){if(r.flags&524288){var i=n&e.getObjectFlags(r);if(i&4){return t.target===r.target}if(i&16){return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}}return false})}}function findBestTypeForObjectLiteral(t,r){if(e.getObjectFlags(t)&128&&forEachType(r,isArrayLikeType)){return e.find(r.types,function(e){return!isArrayLikeType(e)})}}function findBestTypeForInvokable(t,r){var n=0;var i=getSignaturesOfType(t,n).length>0||(n=1,getSignaturesOfType(t,n).length>0);if(i){return e.find(r.types,function(e){return getSignaturesOfType(e,n).length>0})}}function findMostOverlappyType(t,r){var n;var i=0;for(var a=0,o=r.types;a<o.length;a++){var s=o[a];var c=getIntersectionType([getIndexType(t),getIndexType(s)]);if(c.flags&4194304){n=s;i=Infinity}else if(c.flags&1048576){var u=e.length(c.types);if(u>=i){n=s;i=u}}else if(!(c.flags&131072)&&1>=i){n=s;i=1}}return n}function findMatchingDiscriminantType(t,r){if(r.flags&1048576){var n=getPropertiesOfObjectType(t);if(n){var i=findDiscriminantProperties(n,r);if(i){return discriminateTypeByDiscriminableItems(r,e.map(i,function(e){return[function(){return getTypeOfSymbol(e)},e.escapedName]}),isRelatedTo)}}}return undefined}function typeRelatedToEachType(e,t,r){var n=-1;var i=t.types;for(var a=0,o=i;a<o.length;a++){var s=o[a];var c=isRelatedTo(e,s,r,undefined,true);if(!c){return 0}n&=c}return n}function someTypeRelatedToType(e,t,r){var n=e.types;if(e.flags&1048576&&containsType(n,t)){return-1}var i=n.length;for(var a=0;a<i;a++){var o=isRelatedTo(n[a],t,r&&a===i-1);if(o){return o}}return 0}function eachTypeRelatedToType(e,t,r){var n=-1;var i=e.types;for(var a=0,o=i;a<o.length;a++){var s=o[a];var c=isRelatedTo(s,t,r);if(!c){return 0}n&=c}return n}function typeArgumentsRelatedTo(t,r,i,a){if(t===void 0){t=e.emptyArray}if(r===void 0){r=e.emptyArray}if(i===void 0){i=e.emptyArray}if(t.length!==r.length&&n===lr){return 0}var o=t.length<=r.length?t.length:r.length;var s=-1;for(var c=0;c<o;c++){var u=c<i.length?i[c]:1;if(u!==4){var l=t[c];var f=r[c];var d=-1;if(u===1){d=isRelatedTo(l,f,a)}else if(u===2){d=isRelatedTo(f,l,a)}else if(u===3){d=isRelatedTo(f,l,false);if(!d){d=isRelatedTo(l,f,a)}}else{d=isRelatedTo(l,f,a);if(d){d&=isRelatedTo(f,l,a)}}if(!d){return 0}s&=d}}return s}function recursiveTypeRelatedTo(e,t,r,i){if(y){return 0}var a=getRelationKey(e,t,n);var o=n.get(a);if(o!==undefined){if(r&&o===2){}else{return o===1?-1:0}}if(!f){f=[];d=[];p=[]}else{for(var s=0;s<g;s++){if(a===f[s]){return 1}}if(_===100){y=true;return 0}}var c=g;f[g]=a;g++;d[_]=e;p[_]=t;_++;var u=m;if(!(m&1)&&isDeeplyNestedType(e,d,_))m|=1;if(!(m&2)&&isDeeplyNestedType(t,p,_))m|=2;var l=m!==3?structuredTypeRelatedTo(e,t,r,i):1;m=u;_--;if(l){if(l===-1||_===0){for(var s=c;s<g;s++){n.set(f[s],1)}g=c}}else{n.set(a,r?3:2);g=c}return l}function getConstraintForRelation(e){return n===cr?undefined:getConstraintOfType(e)}function structuredTypeRelatedTo(t,r,i,a){var o=t.flags&r.flags;if(n===lr&&!(o&524288)){if(o&4194304){return isRelatedTo(t.type,r.type,false)}var s=0;if(o&8388608){if(s=isRelatedTo(t.objectType,r.objectType,false)){if(s&=isRelatedTo(t.indexType,r.indexType,false)){return s}}}if(o&16777216){if(t.root.isDistributive===r.root.isDistributive){if(s=isRelatedTo(t.checkType,r.checkType,false)){if(s&=isRelatedTo(t.extendsType,r.extendsType,false)){if(s&=isRelatedTo(getTrueTypeFromConditionalType(t),getTrueTypeFromConditionalType(r),false)){if(s&=isRelatedTo(getFalseTypeFromConditionalType(t),getFalseTypeFromConditionalType(r),false)){return s}}}}}}if(o&33554432){return isRelatedTo(t.substitute,r.substitute,false)}return 0}var c;var l;var f=u;if(t.flags&(524288|16777216)&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!(t.aliasTypeArgumentsContainsMarker||r.aliasTypeArgumentsContainsMarker)){var d=getAliasVariances(t.aliasSymbol);if(c=typeArgumentsRelatedTo(t.aliasTypeArguments,r.aliasTypeArguments,d,i)){return c}l=u;u=f}if(r.flags&262144){if(e.getObjectFlags(t)&32&&isRelatedTo(getIndexType(r),getConstraintTypeFromMappedType(t))){if(!(getMappedTypeModifiers(t)&4)){var p=getTemplateTypeFromMappedType(t);var g=getIndexedAccessType(r,getTypeParameterFromMappedType(t));if(c=isRelatedTo(p,g,i)){return c}}}}else if(r.flags&4194304){if(t.flags&4194304){if(c=isRelatedTo(r.type,t.type,false)){return c}}if(n!==cr){var _=getSimplifiedType(r.type);var m=_!==r.type?_:getConstraintOfType(r.type);if(m){if(isRelatedTo(t,getIndexType(m,r.stringsOnly),i)===-1){return-1}}}}else if(r.flags&8388608){if(n!==lr&&!(isGenericObjectType(r.objectType)&&isGenericIndexType(r.indexType))){var m=getBaseConstraintOfType(r);if(m&&m!==r){if(c=isRelatedTo(t,m,i)){return c}}}}else if(isGenericMappedType(r)){var y=getTemplateTypeFromMappedType(r);var h=getMappedTypeModifiers(r);if(!(h&8)){if(y.flags&8388608&&y.objectType===t&&y.indexType===getTypeParameterFromMappedType(r)){return-1}if(!isGenericMappedType(t)&&isRelatedTo(getConstraintTypeFromMappedType(r),getIndexType(t))){var g=getIndexedAccessType(t,getTypeParameterFromMappedType(r));var p=getTemplateTypeFromMappedType(r);if(c=isRelatedTo(g,p,i)){return c}}l=u;u=f}}if(t.flags&8650752){if(t.flags&8388608&&r.flags&8388608){if(c=isRelatedTo(t.objectType,r.objectType,i)){c&=isRelatedTo(t.indexType,r.indexType,i)}if(c){u=f;return c}}var m=getConstraintForRelation(t);if(!m||t.flags&262144&&m.flags&3){if(c=isRelatedTo(xe,extractTypesOfKind(r,~67108864))){u=f;return c}}else if(c=isRelatedTo(m,r,false,undefined,a)){u=f;return c}else if(c=isRelatedTo(getTypeWithThisArgument(m,t),r,i,undefined,a)){u=f;return c}}else if(t.flags&4194304){if(c=isRelatedTo(Se,r,i)){u=f;return c}}else if(t.flags&16777216){if(r.flags&16777216){if(isTypeIdenticalTo(t.extendsType,r.extendsType)&&(isRelatedTo(t.checkType,r.checkType)||isRelatedTo(r.checkType,t.checkType))){if(c=isRelatedTo(getTrueTypeFromConditionalType(t),getTrueTypeFromConditionalType(r),i)){c&=isRelatedTo(getFalseTypeFromConditionalType(t),getFalseTypeFromConditionalType(r),i)}if(c){u=f;return c}}}else if(n!==cr){var v=getConstraintOfDistributiveConditionalType(t);if(v){if(c=isRelatedTo(v,r,i)){u=f;return c}}var T=getDefaultConstraintOfConditionalType(t);if(T){if(c=isRelatedTo(T,r,i)){u=f;return c}}}}else{if(isPartialMappedType(r)&&!isGenericMappedType(t)&&isEmptyObjectType(t)){return-1}if(isGenericMappedType(r)){if(isGenericMappedType(t)){if(c=mappedTypeRelatedTo(t,r,i)){u=f;return c}}return 0}if(n===cr&&isGenericMappedType(t)){return 0}var S=!!(t.flags&131068);if(n!==lr){t=getApparentType(t)}if(e.getObjectFlags(t)&4&&e.getObjectFlags(r)&4&&t.target===r.target&&!(e.getObjectFlags(t)&8192||e.getObjectFlags(r)&8192)){var d=getVariances(t.target);if(c=typeArgumentsRelatedTo(t.typeArguments,r.typeArguments,d,i)){return c}if(d!==e.emptyArray&&!hasCovariantVoidArgument(r,d)){if(!(i&&e.some(d,function(e){return e===0}))){return 0}l=u;u=f}}else if(isTupleType(t)&&(isArrayType(r)||isReadonlyArrayType(r))||isArrayType(t)&&isReadonlyArrayType(r)){return isRelatedTo(getIndexTypeOfType(t,1)||X,getIndexTypeOfType(r,1)||X,i)}if(t.flags&(524288|2097152)&&r.flags&524288){var b=i&&u===f&&!S;c=propertiesRelatedTo(t,r,b);if(c){c&=signaturesRelatedTo(t,r,0,b);if(c){c&=signaturesRelatedTo(t,r,1,b);if(c){c&=indexTypesRelatedTo(t,r,0,S,b);if(c){c&=indexTypesRelatedTo(t,r,1,S,b)}}}}if(c){if(!l){u=f;return c}u=l}}}return 0}function mappedTypeRelatedTo(e,t,r){var i=n===ur||(n===lr?getMappedTypeModifiers(e)===getMappedTypeModifiers(t):getCombinedMappedTypeOptionality(e)<=getCombinedMappedTypeOptionality(t));if(i){var a;if(a=isRelatedTo(getConstraintTypeFromMappedType(t),getConstraintTypeFromMappedType(e),r)){var o=createTypeMapper([getTypeParameterFromMappedType(e)],[getTypeParameterFromMappedType(t)]);return a&isRelatedTo(instantiateType(getTemplateTypeFromMappedType(e),o),getTemplateTypeFromMappedType(t),r)}}return 0}function propertiesRelatedTo(t,r,i){if(n===lr){return propertiesIdenticalTo(t,r)}var o=n===or&&!isObjectLiteralType(t)&&!isEmptyArrayLiteralType(t)&&!isTupleType(t);var s=getUnmatchedProperty(t,r,o);if(s){if(i){var c=e.arrayFrom(getUnmatchedProperties(t,r,o));if(!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code){h=true}if(c.length===1){var u=symbolToString(s);reportError(e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,u,typeToString(t),typeToString(r));if(e.length(s.declarations)){associateRelatedInfo(e.createDiagnosticForNode(s.declarations[0],e.Diagnostics._0_is_declared_here,u))}}else if(c.length>5){reportError(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,typeToString(t),typeToString(r),e.map(c.slice(0,4),function(e){return symbolToString(e)}).join(", "),c.length-4)}else{reportError(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,typeToString(t),typeToString(r),e.map(c,function(e){return symbolToString(e)}).join(", "))}}return 0}if(isObjectLiteralType(r)){for(var l=0,f=getPropertiesOfType(t);l<f.length;l++){var d=f[l];if(!getPropertyOfObjectType(r,d.escapedName)){var p=getTypeOfSymbol(d);if(!(p===re||p===ne)){if(i){reportError(e.Diagnostics.Property_0_does_not_exist_on_type_1,symbolToString(d),typeToString(r))}return 0}}}}var g=-1;if(isTupleType(r)){var _=getRestTypeOfTupleType(r);if(_){if(!isTupleType(t)){return 0}var m=getRestTypeOfTupleType(t);if(m&&!isRelatedTo(m,_,i)){if(i){reportError(e.Diagnostics.Rest_signatures_are_incompatible)}return 0}var y=getTypeReferenceArity(r)-1;var v=getTypeReferenceArity(t)-(m?1:0);for(var T=y;T<v;T++){var S=isRelatedTo(t.typeArguments[T],_,i);if(!S){if(i){reportError(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+T)}return 0}g&=S}}}var b=getPropertiesOfObjectType(r);for(var x=0,C=b;x<C.length;x++){var E=C[x];if(!(E.flags&4194304)){var d=getPropertyOfType(t,E.escapedName);if(d&&d!==E){if(isIgnoredJsxProperty(t,d,getTypeOfSymbol(E))){continue}var D=e.getDeclarationModifierFlagsFromSymbol(d);var k=e.getDeclarationModifierFlagsFromSymbol(E);if(D&8||k&8){var N=d.valueDeclaration!==E.valueDeclaration;if(e.getCheckFlags(d)&256&&N){if(i){reportError(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,symbolToString(d),typeToString(t))}return 0}if(N){if(i){if(D&8&&k&8){reportError(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,symbolToString(E))}else{reportError(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,symbolToString(E),typeToString(D&8?t:r),typeToString(D&8?r:t))}}return 0}}else if(k&16){if(!isValidOverrideOf(d,E)){if(i){reportError(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,symbolToString(E),typeToString(getDeclaringClass(d)||t),typeToString(getDeclaringClass(E)||r))}return 0}}else if(D&16){if(i){reportError(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,symbolToString(E),typeToString(t),typeToString(r))}return 0}var S=isRelatedTo(getTypeOfSymbol(d),getTypeOfSymbol(E),i);if(!S){if(i){reportError(e.Diagnostics.Types_of_property_0_are_incompatible,symbolToString(E))}return 0}g&=S;if(n!==ur&&d.flags&16777216&&!(E.flags&16777216)){if(i){reportError(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,symbolToString(E),typeToString(t),typeToString(r))}return 0}}}}return g}function propertiesIdenticalTo(e,t){if(!(e.flags&524288&&t.flags&524288)){return 0}var r=getPropertiesOfObjectType(e);var n=getPropertiesOfObjectType(t);if(r.length!==n.length){return 0}var i=-1;for(var a=0,o=r;a<o.length;a++){var s=o[a];var c=getPropertyOfObjectType(t,s.escapedName);if(!c){return 0}var u=compareProperties(s,c,isRelatedTo);if(!u){return 0}i&=u}return i}function signaturesRelatedTo(t,r,i,a){if(n===lr){return signaturesIdenticalTo(t,r,i)}if(r===Ne||t===Ne){return-1}var o=t.symbol&&isJSConstructor(t.symbol.valueDeclaration);var s=r.symbol&&isJSConstructor(r.symbol.valueDeclaration);var c=getSignaturesOfType(t,o&&i===1?0:i);var l=getSignaturesOfType(r,s&&i===1?0:i);if(i===1&&c.length&&l.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r)){if(a){reportError(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type)}return 0}if(!constructorVisibilitiesAreCompatible(c[0],l[0],a)){return 0}}var f=-1;var d=u;if(e.getObjectFlags(t)&64&&e.getObjectFlags(r)&64&&t.symbol===r.symbol){for(var p=0;p<l.length;p++){var g=signatureRelatedTo(c[p],l[p],true,a);if(!g){return 0}f&=g}}else if(c.length===1&&l.length===1){var _=n===ur||!!x.noStrictGenericChecks;f=signatureRelatedTo(c[0],l[0],_,a)}else{e:for(var m=0,y=l;m<y.length;m++){var h=y[m];var v=a;for(var T=0,S=c;T<S.length;T++){var b=S[T];var g=signatureRelatedTo(b,h,true,v);if(g){f&=g;u=d;continue e}v=false}if(v){reportError(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,typeToString(t),signatureToString(h,undefined,undefined,i))}return 0}}return f}function signatureRelatedTo(e,t,r,n){return compareSignaturesRelated(r?getErasedSignature(e):e,r?getErasedSignature(t):t,0,false,n,reportError,isRelatedTo)}function signaturesIdenticalTo(e,t,r){var n=getSignaturesOfType(e,r);var i=getSignaturesOfType(t,r);if(n.length!==i.length){return 0}var a=-1;for(var o=0;o<n.length;o++){var s=compareSignaturesIdentical(n[o],i[o],false,false,false,isRelatedTo);if(!s){return 0}a&=s}return a}function eachPropertyRelatedTo(t,r,n,i){var a=-1;for(var o=0,s=getPropertiesOfObjectType(t);o<s.length;o++){var c=s[o];if(isIgnoredJsxProperty(t,c,undefined)){continue}if(c.nameType&&c.nameType.flags&8192){continue}if(n===0||isNumericLiteralName(c.escapedName)){var u=isRelatedTo(getTypeOfSymbol(c),r,i);if(!u){if(i){reportError(e.Diagnostics.Property_0_is_incompatible_with_index_signature,symbolToString(c))}return 0}a&=u}}return a}function indexInfoRelatedTo(t,r,n){var i=isRelatedTo(t.type,r.type,n);if(!i&&n){reportError(e.Diagnostics.Index_signatures_are_incompatible)}return i}function indexTypesRelatedTo(t,r,i,a,o){if(n===lr){return indexTypesIdenticalTo(t,r,i)}var s=getIndexInfoOfType(r,i);if(!s||s.type.flags&3&&!a){return-1}var c=getIndexInfoOfType(t,i)||i===1&&getIndexInfoOfType(t,0);if(c){return indexInfoRelatedTo(c,s,o)}if(isGenericMappedType(t)){return i===0&&isRelatedTo(getTemplateTypeFromMappedType(t),s.type,o)}if(isObjectTypeWithInferableIndex(t)){var u=-1;if(i===0){var l=getIndexInfoOfType(t,1);if(l){u=indexInfoRelatedTo(l,s,o)}}if(u){u&=eachPropertyRelatedTo(t,s.type,i,o)}return u}if(o){reportError(e.Diagnostics.Index_signature_is_missing_in_type_0,typeToString(t))}return 0}function indexTypesIdenticalTo(e,t,r){var n=getIndexInfoOfType(t,r);var i=getIndexInfoOfType(e,r);if(!i&&!n){return-1}if(i&&n&&i.isReadonly===n.isReadonly){return isRelatedTo(i.type,n.type)}return 0}function constructorVisibilitiesAreCompatible(t,r,n){if(!t.declaration||!r.declaration){return true}var i=e.getSelectedModifierFlags(t.declaration,24);var a=e.getSelectedModifierFlags(r.declaration,24);if(a===8){return true}if(a===16&&i!==8){return true}if(a!==16&&!i){return true}if(n){reportError(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,visibilityToString(i),visibilityToString(a))}return false}}function discriminateTypeByDiscriminableItems(e,t,r,n){var i;for(var a=0,o=t;a<o.length;a++){var s=o[a],c=s[0],u=s[1];for(var l=0,f=e.types;l<f.length;l++){var d=f[l];var p=getTypeOfPropertyOfType(d,u);if(p&&r(c(),p)){if(i){if(d===i)continue;return n}i=d}}}return i||n}function isWeakType(t){if(t.flags&524288){var r=resolveStructuredTypeMembers(t);return r.callSignatures.length===0&&r.constructSignatures.length===0&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,function(e){return!!(e.flags&16777216)})}if(t.flags&2097152){return e.every(t.types,isWeakType)}return false}function hasCommonProperties(e,t,r){for(var n=0,i=getPropertiesOfType(e);n<i.length;n++){var a=i[n];if(isKnownProperty(t,a.escapedName,r)){return true}}return false}function getMarkerTypeReference(t,r,n){var i=createTypeReference(t,e.map(t.typeParameters,function(e){return e===r?n:e}));i.objectFlags|=8192;return i}function getAliasVariances(e){var t=getSymbolLinks(e);return getVariancesWorker(t.typeParameters,t,function(r,n,i){var a=getTypeAliasInstantiation(e,instantiateTypes(t.typeParameters,makeUnaryTypeMapper(n,i)));a.aliasTypeArgumentsContainsMarker=true;return a})}function getVariancesWorker(t,r,n){if(t===void 0){t=e.emptyArray}var i=r.variances;if(!i){r.variances=e.emptyArray;i=[];for(var a=0,o=t;a<o.length;a++){var s=o[a];var c=n(r,s,Pe);var u=n(r,s,Ie);var l=(isTypeAssignableTo(u,c)?1:0)|(isTypeAssignableTo(c,u)?2:0);if(l===3&&isTypeAssignableTo(n(r,s,we),c)){l=4}i.push(l)}r.variances=i}return i}function getVariances(t){if(!N){return e.emptyArray}if(t===$e||t===Xe){return e.emptyArray}return getVariancesWorker(t.typeParameters,t,getMarkerTypeReference)}function hasCovariantVoidArgument(e,t){for(var r=0;r<t.length;r++){if(t[r]===1&&e.typeArguments[r].flags&16384){return true}}return false}function isUnconstrainedTypeParameter(e){return e.flags&262144&&!getConstraintOfTypeParameter(e)}function isTypeReferenceWithGenericArguments(t){return!!(e.getObjectFlags(t)&4)&&e.some(t.typeArguments,function(e){return isUnconstrainedTypeParameter(e)||isTypeReferenceWithGenericArguments(e)})}function getTypeReferenceId(e,t,r){if(r===void 0){r=0}var n=""+e.target.id;for(var i=0,a=e.typeArguments;i<a.length;i++){var o=a[i];if(isUnconstrainedTypeParameter(o)){var s=t.indexOf(o);if(s<0){s=t.length;t.push(o)}n+="="+s}else if(r<4&&isTypeReferenceWithGenericArguments(o)){n+="<"+getTypeReferenceId(o,t,r+1)+">"}else{n+="-"+o.id}}return n}function getRelationKey(e,t,r){if(r===lr&&e.id>t.id){var n=e;e=t;t=n}if(isTypeReferenceWithGenericArguments(e)&&isTypeReferenceWithGenericArguments(t)){var i=[];return getTypeReferenceId(e,i)+","+getTypeReferenceId(t,i)}return e.id+","+t.id}function forEachProperty(t,r){if(e.getCheckFlags(t)&6){for(var n=0,i=t.containingType.types;n<i.length;n++){var a=i[n];var o=getPropertyOfType(a,t.escapedName);var s=o&&forEachProperty(o,r);if(s){return s}}return undefined}return r(t)}function getDeclaringClass(e){return e.parent&&e.parent.flags&32?getDeclaredTypeOfSymbol(getParentOfSymbol(e)):undefined}function isPropertyInClassDerivedFrom(e,t){return forEachProperty(e,function(e){var r=getDeclaringClass(e);return r?hasBaseType(r,t):false})}function isValidOverrideOf(t,r){return!forEachProperty(r,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!isPropertyInClassDerivedFrom(t,getDeclaringClass(r)):false})}function isClassDerivedFromDeclaringClasses(t,r){return forEachProperty(r,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!hasBaseType(t,getDeclaringClass(r)):false})?undefined:t}function isDeeplyNestedType(e,t,r){if(r>=5&&e.flags&524288){var n=e.symbol;if(n){var i=0;for(var a=0;a<r;a++){var o=t[a];if(o.flags&524288&&o.symbol===n){i++;if(i>=5)return true}}}}return false}function isPropertyIdenticalTo(e,t){return compareProperties(e,t,compareTypesIdentical)!==0}function compareProperties(t,r,n){if(t===r){return-1}var i=e.getDeclarationModifierFlagsFromSymbol(t)&24;var a=e.getDeclarationModifierFlagsFromSymbol(r)&24;if(i!==a){return 0}if(i){if(getTargetSymbol(t)!==getTargetSymbol(r)){return 0}}else{if((t.flags&16777216)!==(r.flags&16777216)){return 0}}if(isReadonlySymbol(t)!==isReadonlySymbol(r)){return 0}return n(getTypeOfSymbol(t),getTypeOfSymbol(r))}function isMatchingSignature(e,t,r){var n=getParameterCount(e);var i=getParameterCount(t);var a=getMinArgumentCount(e);var o=getMinArgumentCount(t);var s=hasEffectiveRestParameter(e);var c=hasEffectiveRestParameter(t);if(n===i&&a===o&&s===c){return true}if(r&&a<=o){return true}return false}function compareSignaturesIdentical(t,r,n,i,a,o){if(t===r){return-1}if(!isMatchingSignature(t,r,n)){return 0}if(e.length(t.typeParameters)!==e.length(r.typeParameters)){return 0}t=getErasedSignature(t);r=getErasedSignature(r);var s=-1;if(!i){var c=getThisTypeOfSignature(t);if(c){var u=getThisTypeOfSignature(r);if(u){var l=o(c,u);if(!l){return 0}s&=l}}}var f=getParameterCount(r);for(var d=0;d<f;d++){var p=getTypeAtPosition(t,d);var g=getTypeAtPosition(r,d);var l=o(g,p);if(!l){return 0}s&=l}if(!a){var _=getTypePredicateOfSignature(t);var m=getTypePredicateOfSignature(r);s&=_!==undefined||m!==undefined?compareTypePredicatesIdentical(_,m,o):o(getReturnTypeOfSignature(t),getReturnTypeOfSignature(r))}return s}function compareTypePredicatesIdentical(e,t,r){return e===undefined||t===undefined||!typePredicateKindsMatch(e,t)?0:r(e.type,t.type)}function literalTypesWithSameBaseType(e){var t;for(var r=0,n=e;r<n.length;r++){var i=n[r];var a=getBaseTypeOfLiteralType(i);if(!t){t=a}if(a===i||a!==t){return false}}return true}function getSupertypeOrUnion(t){return literalTypesWithSameBaseType(t)?getUnionType(t):e.reduceLeft(t,function(e,t){return isTypeSubtypeOf(e,t)?t:e})}function getCommonSupertype(t){if(!k){return getSupertypeOrUnion(t)}var r=e.filter(t,function(e){return!(e.flags&98304)});return r.length?getNullableType(getSupertypeOrUnion(r),getFalsyFlagsOfTypes(t)&98304):getUnionType(t,2)}function getCommonSubtype(t){return e.reduceLeft(t,function(e,t){return isTypeSubtypeOf(t,e)?t:e})}function isArrayType(t){return!!(e.getObjectFlags(t)&4)&&t.target===$e}function isReadonlyArrayType(t){return!!(e.getObjectFlags(t)&4)&&t.target===Xe}function getElementTypeOfArrayType(e){return isArrayType(e)&&e.typeArguments?e.typeArguments[0]:undefined}function isArrayLikeType(t){return e.getObjectFlags(t)&4&&(t.target===$e||t.target===Xe)||!(t.flags&98304)&&isTypeAssignableTo(t,at)}function isEmptyArrayLiteralType(e){var t=isArrayType(e)?e.typeArguments[0]:undefined;return t===ne||t===he}function isTupleLikeType(e){return isTupleType(e)||!!getPropertyOfType(e,"0")}function getTupleElementType(e,t){var r=getTypeOfPropertyOfType(e,""+t);if(r){return r}if(everyType(e,isTupleType)&&!everyType(e,function(e){return!e.target.hasRestElement})){return mapType(e,function(e){return getRestTypeOfTupleType(e)||re})}return undefined}function isNeitherUnitTypeNorNever(e){return!(e.flags&(109440|131072))}function isUnitType(e){return!!(e.flags&109440)}function isLiteralType(t){return t.flags&16?true:t.flags&1048576?t.flags&1024?true:e.every(t.types,isUnitType):isUnitType(t)}function getBaseTypeOfLiteralType(t){return t.flags&1024?getBaseTypeOfEnumLiteralType(t):t.flags&128?oe:t.flags&256?se:t.flags&2048?ce:t.flags&512?pe:t.flags&1048576?getUnionType(e.sameMap(t.types,getBaseTypeOfLiteralType)):t}function getWidenedLiteralType(t){return t.flags&1024&&isFreshLiteralType(t)?getBaseTypeOfEnumLiteralType(t):t.flags&128&&isFreshLiteralType(t)?oe:t.flags&256&&isFreshLiteralType(t)?se:t.flags&2048&&isFreshLiteralType(t)?ce:t.flags&512&&isFreshLiteralType(t)?pe:t.flags&1048576?getUnionType(e.sameMap(t.types,getWidenedLiteralType)):t}function getWidenedUniqueESSymbolType(t){return t.flags&8192?ge:t.flags&1048576?getUnionType(e.sameMap(t.types,getWidenedUniqueESSymbolType)):t}function getWidenedLiteralLikeTypeForContextualType(e,t){if(!isLiteralOfContextualType(e,t)){e=getWidenedUniqueESSymbolType(getWidenedLiteralType(e))}return e}function isTupleType(t){return!!(e.getObjectFlags(t)&4&&t.target.objectFlags&8)}function getRestTypeOfTupleType(e){return e.target.hasRestElement?e.typeArguments[e.target.typeParameters.length-1]:undefined}function getRestArrayTypeOfTupleType(e){var t=getRestTypeOfTupleType(e);return t&&createArrayType(t)}function getLengthOfTupleType(e){return getTypeReferenceArity(e)-(e.target.hasRestElement?1:0)}function isZeroBigInt(e){var t=e.value;return t.base10Value==="0"}function getFalsyFlagsOfTypes(e){var t=0;for(var r=0,n=e;r<n.length;r++){var i=n[r];t|=getFalsyFlags(i)}return t}function getFalsyFlags(e){return e.flags&1048576?getFalsyFlagsOfTypes(e.types):e.flags&128?e.value===""?128:0:e.flags&256?e.value===0?256:0:e.flags&2048?isZeroBigInt(e)?2048:0:e.flags&512?e===ue||e===le?512:0:e.flags&117724}function removeDefinitelyFalsyTypes(e){return getFalsyFlags(e)&117632?filterType(e,function(e){return!(getFalsyFlags(e)&117632)}):e}function extractDefinitelyFalsyTypes(e){return mapType(e,getDefinitelyFalsyPartOfType)}function getDefinitelyFalsyPartOfType(e){return e.flags&4?Ft:e.flags&8?Pt:e.flags&64?It:e===le||e===ue||e.flags&(16384|32768|65536)||e.flags&128&&e.value===""||e.flags&256&&e.value===0||e.flags&2048&&isZeroBigInt(e)?e:me}function getNullableType(e,t){var r=t&~e.flags&(32768|65536);return r===0?e:r===32768?getUnionType([e,re]):r===65536?getUnionType([e,ie]):getUnionType([e,re,ie])}function getOptionalType(t){e.Debug.assert(k);return t.flags&32768?t:getUnionType([t,re])}function getGlobalNonNullableTypeInstantiation(e){if(!ot){ot=getGlobalSymbol("NonNullable",524288,undefined)||Q}if(ot!==Q){return getTypeAliasInstantiation(ot,[e])}return getTypeWithFacts(e,2097152)}function getNonNullableType(e){return k?getGlobalNonNullableTypeInstantiation(e):e}function isObjectTypeWithInferableIndex(e){return e.symbol&&(e.symbol.flags&(4096|2048|512))!==0&&!typeHasCallOrConstructSignatures(e)}function createSymbolWithType(e,t){var r=createSymbol(e.flags,e.escapedName);r.declarations=e.declarations;r.parent=e.parent;r.type=t;r.target=e;if(e.valueDeclaration){r.valueDeclaration=e.valueDeclaration}if(e.nameType){r.nameType=e.nameType}return r}function transformTypeOfMembers(t,r){var n=e.createSymbolTable();for(var i=0,a=getPropertiesOfObjectType(t);i<a.length;i++){var o=a[i];var s=getTypeOfSymbol(o);var c=r(s);n.set(o.escapedName,c===s?o:createSymbolWithType(o,c))}return n}function getRegularTypeOfObjectLiteral(t){if(!(isObjectLiteralType(t)&&e.getObjectFlags(t)&32768)){return t}var r=t.regularType;if(r){return r}var n=t;var i=transformTypeOfMembers(t,getRegularTypeOfObjectLiteral);var a=createAnonymousType(n.symbol,i,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);a.flags=n.flags;a.objectFlags|=128|e.getObjectFlags(n)&16384;t.regularType=a;return a}function createWideningContext(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:undefined}}function getSiblingsOfContext(e){if(!e.siblings){var t=[];for(var r=0,n=getSiblingsOfContext(e.parent);r<n.length;r++){var i=n[r];if(isObjectLiteralType(i)){var a=getPropertyOfObjectType(i,e.propertyName);if(a){forEachType(getTypeOfSymbol(a),function(e){t.push(e)})}}}e.siblings=t}return e.siblings}function getPropertiesOfContext(t){if(!t.resolvedProperties){var r=e.createMap();for(var n=0,i=getSiblingsOfContext(t);n<i.length;n++){var a=i[n];if(isObjectLiteralType(a)&&!(e.getObjectFlags(a)&1024)){for(var o=0,s=getPropertiesOfType(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function getWidenedProperty(e,t){if(!(e.flags&4)){return e}var r=getTypeOfSymbol(e);var n=t&&createWideningContext(t,e.escapedName,undefined);var i=getWidenedTypeWithContext(r,n);return i===r?e:createSymbolWithType(e,i)}function getUndefinedProperty(e){var t=H.get(e.escapedName);if(t){return t}var r=createSymbolWithType(e,re);r.flags|=16777216;H.set(e.escapedName,r);return r}function getWidenedTypeOfObjectLiteral(t,r){var n=e.createSymbolTable();for(var i=0,a=getPropertiesOfObjectType(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,getWidenedProperty(o,r))}if(r){for(var s=0,c=getPropertiesOfContext(r);s<c.length;s++){var o=c[s];if(!n.has(o.escapedName)){n.set(o.escapedName,getUndefinedProperty(o))}}}var u=getIndexInfoOfType(t,0);var l=getIndexInfoOfType(t,1);var f=createAnonymousType(t.symbol,n,e.emptyArray,e.emptyArray,u&&createIndexInfo(getWidenedType(u.type),u.isReadonly),l&&createIndexInfo(getWidenedType(l.type),l.isReadonly));f.objectFlags|=e.getObjectFlags(t)&16384;return f}function getWidenedType(e){return getWidenedTypeWithContext(e,undefined)}function getWidenedTypeWithContext(t,r){if(t.flags&402653184){if(t.flags&98304){return X}if(isObjectLiteralType(t)){return getWidenedTypeOfObjectLiteral(t,r)}if(t.flags&1048576){var n=r||createWideningContext(undefined,undefined,t.types);var i=e.sameMap(t.types,function(e){return e.flags&98304?e:getWidenedTypeWithContext(e,n)});return getUnionType(i,e.some(i,isEmptyObjectType)?2:1)}if(isArrayType(t)||isTupleType(t)){return createTypeReference(t.target,e.sameMap(t.typeArguments,getWidenedType))}}return t}function reportWideningErrorsInType(t){var r=false;if(t.flags&134217728){if(t.flags&1048576){if(e.some(t.types,isEmptyObjectType)){r=true}else{for(var n=0,i=t.types;n<i.length;n++){var a=i[n];if(reportWideningErrorsInType(a)){r=true}}}}if(isArrayType(t)||isTupleType(t)){for(var o=0,s=t.typeArguments;o<s.length;o++){var a=s[o];if(reportWideningErrorsInType(a)){r=true}}}if(isObjectLiteralType(t)){for(var c=0,u=getPropertiesOfObjectType(t);c<u.length;c++){var l=u[c];var a=getTypeOfSymbol(l);if(a.flags&134217728){if(!reportWideningErrorsInType(a)){error(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,symbolToString(l),typeToString(getWidenedType(a)))}r=true}}}}return r}function reportImplicitAny(t,r){var n=typeToString(getWidenedType(r));if(e.isInJSFile(t)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),x)){return}var i;switch(t.kind){case 204:case 154:case 153:i=F?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 151:var a=t;if(e.isIdentifier(a.name)&&(e.isCallSignatureDeclaration(a.parent)||e.isMethodSignature(a.parent)||e.isFunctionTypeNode(a.parent))&&a.parent.parameters.indexOf(a)>-1&&(resolveName(a,a.name.escapedText,67897832,undefined,a.name.escapedText,true)||a.name.originalKeywordKind&&e.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);errorOrSuggestion(F,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,e.declarationNameToString(a.name));return}i=t.dotDotDotToken?F?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:F?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 186:i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 289:error(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);return;case 239:case 156:case 155:case 158:case 159:case 196:case 197:if(F&&!t.name){error(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);return}i=F?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 181:if(F){error(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type)}return;default:i=F?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}errorOrSuggestion(F,t,i,e.declarationNameToString(e.getNameOfDeclaration(t)),n)}function reportErrorsFromWidening(e,t){if(a&&F&&t.flags&134217728){if(!reportWideningErrorsInType(t)){reportImplicitAny(e,t)}}}function forEachMatchingParameterType(e,t,r){var n=getParameterCount(e);var i=getParameterCount(t);var a=getEffectiveRestType(e);var o=getEffectiveRestType(t);var s=o?i-1:i;var c=a?s:Math.min(n,s);var u=getThisTypeOfSignature(e);if(u){var l=getThisTypeOfSignature(t);if(l){r(u,l)}}for(var f=0;f<c;f++){r(getTypeAtPosition(e,f),getTypeAtPosition(t,f))}if(o){r(getRestTypeAtPosition(e,c),o)}}function createInferenceContext(e,t,r,n,i){var a=i?i.map(cloneInferenceInfo):e.map(createInferenceInfo);var o=mapper;o.typeParameters=e;o.signature=t;o.inferences=a;o.flags=r;o.compareTypes=n||compareTypesAssignable;return o;function mapper(e){for(var t=0;t<a.length;t++){if(e===a[t].typeParameter){a[t].isFixed=true;return getInferredType(o,t)}}return e}}function createInferenceInfo(e){return{typeParameter:e,candidates:undefined,contraCandidates:undefined,inferredType:undefined,priority:undefined,topLevel:true,isFixed:false}}function cloneInferenceInfo(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function couldContainTypeVariables(t){var r=e.getObjectFlags(t);return!!(t.flags&63176704||r&4&&e.forEach(t.typeArguments,couldContainTypeVariables)||r&16&&t.symbol&&t.symbol.flags&(16|8192|2048|32)||r&32||t.flags&3145728&&couldUnionOrIntersectionContainTypeVariables(t))}function couldUnionOrIntersectionContainTypeVariables(t){if(t.couldContainTypeVariables===undefined){t.couldContainTypeVariables=e.some(t.types,couldContainTypeVariables)}return t.couldContainTypeVariables}function isTypeParameterAtTopLevel(t,r){return t===r||!!(t.flags&3145728)&&e.some(t.types,function(e){return isTypeParameterAtTopLevel(e,r)})}function createEmptyObjectTypeFromStringLiteral(t){var r=e.createSymbolTable();forEachType(t,function(t){if(!(t.flags&128)){return}var n=e.escapeLeadingUnderscores(t.value);var i=createSymbol(4,n);i.type=X;if(t.symbol){i.declarations=t.symbol.declarations;i.valueDeclaration=t.symbol.valueDeclaration}r.set(n,i)});var n=t.flags&4?createIndexInfo(xe,false):undefined;return createAnonymousType(undefined,r,e.emptyArray,e.emptyArray,n,undefined)}function inferTypeForHomomorphicMappedType(e,t,r){var n=e.id+","+t.id+","+r.id;if(ze.has(n)){return ze.get(n)}ze.set(n,undefined);var i=createReverseMappedType(e,t,r);ze.set(n,i);return i}function createReverseMappedType(t,r,n){var i=getPropertiesOfType(t);if(i.length===0&&!getIndexInfoOfType(t,0)){return undefined}for(var a=0,o=i;a<o.length;a++){var s=o[a];if(getTypeOfSymbol(s).flags&536870912){return undefined}}if(isArrayType(t)){return createArrayType(inferReverseMappedType(t.typeArguments[0],r,n))}if(isReadonlyArrayType(t)){return createReadonlyArrayType(inferReverseMappedType(t.typeArguments[0],r,n))}if(isTupleType(t)){var c=e.map(t.typeArguments||e.emptyArray,function(e){return inferReverseMappedType(e,r,n)});var u=getMappedTypeModifiers(r)&4?getTypeReferenceArity(t)-(t.target.hasRestElement?1:0):t.target.minLength;return createTupleType(c,u,t.target.hasRestElement,t.target.associatedNames)}var l=createObjectType(2048|16,undefined);l.source=t;l.mappedType=r;l.constraintType=n;return l}function getTypeOfReverseMappedSymbol(e){return inferReverseMappedType(e.propertyType,e.mappedType,e.constraintType)}function inferReverseMappedType(e,t,r){var n=getIndexedAccessType(r.type,getTypeParameterFromMappedType(t));var i=getTemplateTypeFromMappedType(t);var a=createInferenceInfo(n);inferTypes([a],e,i);return getTypeFromInference(a)}function getUnmatchedProperties(e,t,r){var n,a,o,s,c;return i(this,function(i){switch(i.label){case 0:n=t.flags&2097152?getPropertiesOfUnionOrIntersectionType(t):getPropertiesOfObjectType(t);a=0,o=n;i.label=1;case 1:if(!(a<o.length))return[3,4];s=o[a];if(!(r||!(s.flags&16777216)))return[3,3];c=getPropertyOfType(e,s.escapedName);if(!!c)return[3,3];return[4,s];case 2:i.sent();i.label=3;case 3:a++;return[3,1];case 4:return[2]}})}function getUnmatchedProperty(e,t,r){return getUnmatchedProperties(e,t,r).next().value}function tupleTypesDefinitelyUnrelated(e,t){return t.target.minLength>e.target.minLength||!getRestTypeOfTupleType(t)&&(!!getRestTypeOfTupleType(e)||getLengthOfTupleType(t)<getLengthOfTupleType(e))}function typesDefinitelyUnrelated(e,t){return isTupleType(e)&&isTupleType(t)&&tupleTypesDefinitelyUnrelated(e,t)||!!getUnmatchedProperty(e,t,false)&&!!getUnmatchedProperty(t,e,false)}function getTypeFromInference(e){return e.candidates?getUnionType(e.candidates,2):e.contraCandidates?getIntersectionType(e.contraCandidates):xe}function inferTypes(t,r,n,i){if(i===void 0){i=0}var a;var o;var s=false;var c=false;var u;var l=true;inferFromTypes(r,n);function inferFromTypes(t,r){if(!couldContainTypeVariables(r)){return}if(t===Z){var f=u;u=t;inferFromTypes(r,r);u=f;return}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol){var d=t.aliasTypeArguments;var p=r.aliasTypeArguments;for(var g=0;g<d.length;g++){inferFromTypes(d[g],p[g])}return}if(t.flags&1048576&&r.flags&1048576&&!(t.flags&1024&&r.flags&1024)||t.flags&2097152&&r.flags&2097152){if(t===r){for(var _=0,m=t.types;_<m.length;_++){var y=m[_];inferFromTypes(y,y)}return}var h=void 0;for(var v=0,T=t.types;v<T.length;v++){var y=T[v];if(typeIdenticalToSomeType(y,r.types)){(h||(h=[])).push(y);inferFromTypes(y,y)}else if(y.flags&(256|128)){var S=getBaseTypeOfLiteralType(y);if(typeIdenticalToSomeType(S,r.types)){(h||(h=[])).push(y,S)}}}if(h){t=removeTypesFromUnionOrIntersection(t,h);r=removeTypesFromUnionOrIntersection(r,h)}}if(r.flags&8650752){if(t.flags&536870912||t===ye||i&8&&(t===Y||t===it)){return}var b=getInferenceInfoForType(r);if(b){if(!b.isFixed){if(b.priority===undefined||i<b.priority){b.candidates=undefined;b.contraCandidates=undefined;b.priority=i}if(i===b.priority){var x=u||t;if(s&&!c){b.contraCandidates=e.appendIfUnique(b.contraCandidates,x)}else{b.candidates=e.appendIfUnique(b.candidates,x)}}if(!(i&8)&&r.flags&262144&&!isTypeParameterAtTopLevel(n,r)){b.topLevel=false}}return}else{var C=getSimplifiedType(r);if(C!==r){inferFromTypesOnce(t,C)}else if(r.flags&8388608){var E=getSimplifiedType(r.indexType);if(E.flags&63176704){var D=distributeIndexOverObjectType(getSimplifiedType(r.objectType),E);if(D&&D!==r){inferFromTypesOnce(t,D)}}}}}if(e.getObjectFlags(t)&4&&e.getObjectFlags(r)&4&&t.target===r.target){var d=t.typeArguments||e.emptyArray;var p=r.typeArguments||e.emptyArray;var k=d.length<p.length?d.length:p.length;var N=getVariances(t.target);for(var g=0;g<k;g++){if(g<N.length&&N[g]===2){inferFromContravariantTypes(d[g],p[g])}else{inferFromTypes(d[g],p[g])}}}else if(t.flags&4194304&&r.flags&4194304){s=!s;inferFromTypes(t.type,r.type);s=!s}else if((isLiteralType(t)||t.flags&4)&&r.flags&4194304){var A=createEmptyObjectTypeFromStringLiteral(t);s=!s;var O=i;i|=16;inferFromTypes(A,r.type);i=O;s=!s}else if(t.flags&8388608&&r.flags&8388608){inferFromTypes(t.objectType,r.objectType);inferFromTypes(t.indexType,r.indexType)}else if(t.flags&16777216&&r.flags&16777216){inferFromTypes(t.checkType,r.checkType);inferFromTypes(t.extendsType,r.extendsType);inferFromTypes(getTrueTypeFromConditionalType(t),getTrueTypeFromConditionalType(r));inferFromTypes(getFalseTypeFromConditionalType(t),getFalseTypeFromConditionalType(r))}else if(r.flags&16777216){inferFromTypes(t,getUnionType([getTrueTypeFromConditionalType(r),getFalseTypeFromConditionalType(r)]))}else if(r.flags&3145728){var p=r.types;var F=0;var P=void 0;for(var I=0,w=p;I<w.length;I++){var y=w[I];if(getInferenceInfoForType(y)){P=y;F++}else{inferFromTypes(t,y)}}if(F===1){var O=i;i|=1;inferFromTypes(t,P);i=O}}else if(t.flags&1048576){var d=t.types;for(var M=0,L=d;M<L.length;M++){var R=L[M];inferFromTypes(R,r)}}else{if(!(i&32&&t.flags&(2097152|63176704))){var B=getApparentType(t);if(B!==t&&l&&!(B.flags&(524288|2097152))){l=false;return inferFromTypes(B,r)}t=B}if(t.flags&(524288|2097152)){var j=t.id+","+r.id;if(o&&o.get(j)){return}(o||(o=e.createMap())).set(j,true);var J=r.flags&524288&&!(e.getObjectFlags(r)&16&&r.symbol&&r.symbol.flags&32);var W=J?r.symbol:undefined;if(W){if(e.contains(a,W)){return}(a||(a=[])).push(W);inferFromObjectTypes(t,r);a.pop()}else{inferFromObjectTypes(t,r)}}}function inferFromTypesOnce(t,r){var n=t.id+","+r.id;if(!o||!o.get(n)){(o||(o=e.createMap())).set(n,true);inferFromTypes(t,r)}}}function inferFromContravariantTypes(e,t){if(N||i&64){s=!s;inferFromTypes(e,t);s=!s}else{inferFromTypes(e,t)}}function getInferenceInfoForType(e){if(e.flags&8650752){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter){return i}}}return undefined}function inferFromMappedTypeConstraint(t,r,n){if(n.flags&1048576){var a=false;for(var o=0,s=n.types;o<s.length;o++){var c=s[o];a=inferFromMappedTypeConstraint(t,r,c)||a}return a}if(n.flags&4194304){var u=getInferenceInfoForType(n.type);if(u&&!u.isFixed){var l=inferTypeForHomomorphicMappedType(t,r,n);if(l){var f=i;i|=2;inferFromTypes(l,u.typeParameter);i=f}}return true}if(n.flags&262144){var f=i;i|=4;inferFromTypes(getIndexType(t),n);i=f;inferFromTypes(getUnionType(e.map(getPropertiesOfType(t),getTypeOfSymbol)),getTemplateTypeFromMappedType(r));return true}return false}function inferFromObjectTypes(t,r){if(isGenericMappedType(t)&&isGenericMappedType(r)){inferFromTypes(getConstraintTypeFromMappedType(t),getConstraintTypeFromMappedType(r));inferFromTypes(getTemplateTypeFromMappedType(t),getTemplateTypeFromMappedType(r))}if(e.getObjectFlags(r)&32){var n=getConstraintTypeFromMappedType(r);if(inferFromMappedTypeConstraint(t,r,n)){return}}if(!typesDefinitelyUnrelated(t,r)){inferFromProperties(t,r);inferFromSignatures(t,r,0);inferFromSignatures(t,r,1);inferFromIndexTypes(t,r)}}function inferFromProperties(e,t){if(isTupleType(e)){if(isTupleType(t)){var r=getLengthOfTupleType(e);var n=getLengthOfTupleType(t);var i=getRestTypeOfTupleType(e);var a=getRestTypeOfTupleType(t);var o=n<r||i?n:r;for(var s=0;s<o;s++){inferFromTypes(s<r?e.typeArguments[s]:i,t.typeArguments[s])}if(a){var c=o<r?e.typeArguments.slice(o,r):[];if(i){c.push(i)}if(c.length){inferFromTypes(getUnionType(c),a)}}return}if(isArrayType(t)){inferFromIndexTypes(e,t);return}}var u=getPropertiesOfObjectType(t);for(var l=0,f=u;l<f.length;l++){var d=f[l];var p=getPropertyOfType(e,d.escapedName);if(p){inferFromTypes(getTypeOfSymbol(p),getTypeOfSymbol(d))}}}function inferFromSignatures(e,t,r){var n=getSignaturesOfType(e,r);var i=getSignaturesOfType(t,r);var a=n.length;var o=i.length;var s=a<o?a:o;var c=!!(e.flags&536870912);for(var u=0;u<s;u++){inferFromSignature(getBaseSignature(n[a-s+u]),getBaseSignature(i[o-s+u]),c)}}function inferFromSignature(e,t,r){if(!r){var n=c;var i=t.declaration?t.declaration.kind:0;c=c||i===156||i===155||i===157;forEachMatchingParameterType(e,t,inferFromContravariantTypes);c=n}var a=getTypePredicateOfSignature(e);var o=getTypePredicateOfSignature(t);if(a&&o&&a.kind===o.kind){inferFromTypes(a.type,o.type)}else{inferFromTypes(getReturnTypeOfSignature(e),getReturnTypeOfSignature(t))}}function inferFromIndexTypes(e,t){var r=getIndexTypeOfType(t,0);if(r){var n=getIndexTypeOfType(e,0)||getImplicitIndexTypeOfType(e,0);if(n){inferFromTypes(n,r)}}var i=getIndexTypeOfType(t,1);if(i){var n=getIndexTypeOfType(e,1)||getIndexTypeOfType(e,0)||getImplicitIndexTypeOfType(e,1);if(n){inferFromTypes(n,i)}}}}function typeIdenticalToSomeType(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(isTypeIdenticalTo(i,e)){return true}}return false}function removeTypesFromUnionOrIntersection(e,t){var r=[];for(var n=0,i=e.types;n<i.length;n++){var a=i[n];if(!typeIdenticalToSomeType(a,t)){r.push(a)}}return e.flags&1048576?getUnionType(r):getIntersectionType(r)}function hasPrimitiveConstraint(e){var t=getConstraintOfTypeParameter(e);return!!t&&maybeTypeOfKind(t.flags&16777216?getDefaultConstraintOfConditionalType(t):t,131068|4194304)}function isObjectLiteralType(t){return!!(e.getObjectFlags(t)&128)}function widenObjectLiteralCandidates(t){if(t.length>1){var r=e.filter(t,isObjectLiteralType);if(r.length){var n=getWidenedType(getUnionType(r,2));return e.concatenate(e.filter(t,function(e){return!isObjectLiteralType(e)}),[n])}}return t}function getContravariantInference(e){return e.priority&28?getIntersectionType(e.contraCandidates):getCommonSubtype(e.contraCandidates)}function getCovariantInference(t,r){var n=widenObjectLiteralCandidates(t.candidates);var i=hasPrimitiveConstraint(t.typeParameter);var a=!i&&t.topLevel&&(t.isFixed||!isTypeParameterAtTopLevel(getReturnTypeOfSignature(r),t.typeParameter));var o=i?e.sameMap(n,getRegularTypeOfLiteralType):a?e.sameMap(n,getWidenedLiteralType):n;var s=t.priority&28?getUnionType(o,2):getCommonSupertype(o);return getWidenedType(s)}function getInferredType(e,t){var r=e.inferences[t];var n=r.inferredType;if(!n){var i=e.signature;if(i){var a=r.candidates?getCovariantInference(r,i):undefined;if(r.contraCandidates){var o=getContravariantInference(r);n=a&&!(a.flags&131072)&&isTypeSubtypeOf(a,o)?a:o}else if(a){n=a}else if(e.flags&1){n=ye}else{var s=getDefaultFromTypeParameter(r.typeParameter);if(s){n=instantiateType(s,combineTypeMappers(createBackreferenceMapper(e.signature.typeParameters,t),e))}else{n=getDefaultTypeArgumentType(!!(e.flags&2))}}}else{n=getTypeFromInference(r)}r.inferredType=n;var c=getConstraintOfTypeParameter(r.typeParameter);if(c){var u=instantiateType(c,e);if(!e.compareTypes(n,getTypeWithThisArgument(u,n))){r.inferredType=n=u}}}return n}function getDefaultTypeArgumentType(e){return e?X:xe}function getInferredTypes(e){var t=[];for(var r=0;r<e.inferences.length;r++){t.push(getInferredType(e,r))}return t}function getCannotFindNameDiagnosticForName(t){switch(t){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig;case"describe":case"suite":case"it":case"test":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig;case"process":case"require":case"Buffer":case"module":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return e.Diagnostics.Cannot_find_name_0}}function getResolvedSymbol(t){var r=getNodeLinks(t);if(!r.resolvedSymbol){r.resolvedSymbol=!e.nodeIsMissing(t)&&resolveName(t,t.escapedText,67220415|1048576,getCannotFindNameDiagnosticForName(t.escapedText),t,!e.isWriteOnlyAccess(t),false,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||Q}return r.resolvedSymbol}function isInTypeQuery(t){return!!e.findAncestor(t,function(e){return e.kind===167?true:e.kind===72||e.kind===148?false:"quit"})}function getFlowCacheKey(t){if(t.kind===72){var r=getResolvedSymbol(t);return r!==Q?(isConstraintPosition(t)?"@":"")+getSymbolId(r):undefined}if(t.kind===100){return"0"}if(t.kind===189){var n=getFlowCacheKey(t.expression);return n&&n+"."+e.idText(t.name)}if(t.kind===186){var i=t.parent.parent;var n=i.kind===186?getFlowCacheKey(i):i.initializer&&getFlowCacheKey(i.initializer);var a=getBindingElementNameText(t);var o=n&&a&&n+"."+a;return o}return undefined}function getBindingElementNameText(t){var r=t.parent;if(r.kind===184){var n=t.propertyName||t.name;switch(n.kind){case 72:return e.idText(n);case 149:return e.isStringOrNumericLiteralLike(n.expression)?n.expression.text:undefined;case 10:case 8:return n.text;default:e.Debug.fail("Unexpected name kind for binding element name")}}else{return""+r.elements.indexOf(t)}}function isMatchingReference(t,r){switch(t.kind){case 72:return r.kind===72&&getResolvedSymbol(t)===getResolvedSymbol(r)||(r.kind===237||r.kind===186)&&getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(t))===getSymbolOfNode(r);case 100:return r.kind===100;case 98:return r.kind===98;case 189:case 190:return(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&getAccessedPropertyName(t)===getAccessedPropertyName(r)&&isMatchingReference(t.expression,r.expression);case 186:if(r.kind!==189)return false;var n=r;if(n.name.escapedText!==getBindingElementNameText(t))return false;if(t.parent.parent.kind===186&&isMatchingReference(t.parent.parent,n.expression)){return true}if(t.parent.parent.kind===237){var i=t.parent.parent.initializer;return!!i&&isMatchingReference(i,n.expression)}}return false}function getAccessedPropertyName(t){return e.isPropertyAccessExpression(t)?t.name.escapedText:e.isStringLiteral(t.argumentExpression)||e.isNumericLiteral(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):undefined}function containsMatchingReference(e,t){while(e.kind===189){e=e.expression;if(isMatchingReference(e,t)){return true}}return false}function containsMatchingReferenceDiscriminant(e,t){return t.kind===189&&containsMatchingReference(e,t.expression)&&isDiscriminantProperty(getDeclaredTypeOfReference(t.expression),t.name.escapedText)}function getDeclaredTypeOfReference(e){if(e.kind===72){return getTypeOfSymbol(getResolvedSymbol(e))}if(e.kind===189){var t=getDeclaredTypeOfReference(e.expression);return t&&getTypeOfPropertyOfType(t,e.name.escapedText)}return undefined}function isDiscriminantType(e){if(e.flags&1048576){if(e.flags&(16|1024)){return true}var t=0;for(var r=0,n=e.types;r<n.length;r++){var i=n[r];t|=i.flags}if(t&109440&&!(t&63176704)){return true}}return false}function isDiscriminantProperty(t,r){if(t&&t.flags&1048576){var n=getUnionOrIntersectionProperty(t,r);if(n&&e.getCheckFlags(n)&2){if(n.isDiscriminantProperty===undefined){n.isDiscriminantProperty=!!(n.checkFlags&32)&&isDiscriminantType(getTypeOfSymbol(n))}return!!n.isDiscriminantProperty}}return false}function hasNarrowableDeclaredType(e){var t=getDeclaredTypeOfReference(e);return!!(t&&t.flags&1048576)}function findDiscriminantProperties(e,t){var r;for(var n=0,i=e;n<i.length;n++){var a=i[n];if(isDiscriminantProperty(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function isOrContainsMatchingReference(e,t){return isMatchingReference(e,t)||containsMatchingReference(e,t)}function hasMatchingArgument(e,t){if(e.arguments){for(var r=0,n=e.arguments;r<n.length;r++){var i=n[r];if(isOrContainsMatchingReference(t,i)){return true}}}if(e.expression.kind===189&&isOrContainsMatchingReference(t,e.expression.expression)){return true}return false}function getFlowNodeId(e){if(!e.id){e.id=s;s++}return e.id}function typeMaybeAssignableTo(e,t){if(!(e.flags&1048576)){return isTypeAssignableTo(e,t)}for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(isTypeAssignableTo(i,t)){return true}}return false}function getAssignmentReducedType(e,t){if(e!==t){if(t.flags&131072){return t}var r=filterType(e,function(e){return typeMaybeAssignableTo(t,e)});if(t.flags&512&&isFreshLiteralType(t)){r=mapType(r,getFreshTypeOfLiteralType)}if(isTypeAssignableTo(t,r)){return r}}return e}function getTypeFactsOfTypes(e){var t=0;for(var r=0,n=e;r<n.length;r++){var i=n[r];t|=getTypeFacts(i)}return t}function isFunctionObjectType(e){var t=resolveStructuredTypeMembers(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&isTypeSubtypeOf(e,Ge))}function getTypeFacts(t){var r=t.flags;if(r&4){return k?16317953:16776705}if(r&128){var n=t.value==="";return k?n?12123649:7929345:n?12582401:16776705}if(r&(8|32)){return k?16317698:16776450}if(r&256){var i=t.value===0;return k?i?12123394:7929090:i?12582146:16776450}if(r&64){return k?16317188:16775940}if(r&2048){var i=isZeroBigInt(t);return k?i?12122884:7928580:i?12581636:16775940}if(r&16){return k?16316168:16774920}if(r&528){return k?t===ue||t===le?12121864:7927560:t===ue||t===le?12580616:16774920}if(r&524288){return e.getObjectFlags(t)&16&&isEmptyObjectType(t)?k?16318463:16777215:isFunctionObjectType(t)?k?7880640:16728e3:k?7888800:16736160}if(r&(16384|32768)){return 9830144}if(r&65536){return 9363232}if(r&12288){return k?7925520:16772880}if(r&67108864){return k?7888800:16736160}if(r&63176704){return getTypeFacts(getBaseConstraintOfType(t)||xe)}if(r&3145728){return getTypeFactsOfTypes(t.types)}return 16777215}function getTypeWithFacts(e,t){return filterType(e,function(e){return(getTypeFacts(e)&t)!==0})}function getTypeWithDefault(e,t){if(t){var r=getTypeOfExpression(t);return getUnionType([getTypeWithFacts(e,524288),r])}return e}function getTypeOfDestructuredProperty(t,r){var n=e.getTextOfPropertyName(r);return getConstraintForLocation(getTypeOfPropertyOfType(t,n),r)||isNumericLiteralName(n)&&getIndexTypeOfType(t,1)||getIndexTypeOfType(t,0)||ee}function getTypeOfDestructuredArrayElement(e,t){return everyType(e,isTupleLikeType)&&getTupleElementType(e,t)||checkIteratedTypeOrElementType(e,undefined,false,false)||ee}function getTypeOfDestructuredSpreadExpression(e){return createArrayType(checkIteratedTypeOrElementType(e,undefined,false,false)||ee)}function getAssignedTypeOfBinaryExpression(e){var t=e.parent.kind===187&&isDestructuringAssignmentTarget(e.parent)||e.parent.kind===275&&isDestructuringAssignmentTarget(e.parent.parent);return t?getTypeWithDefault(getAssignedType(e),e.right):getTypeOfExpression(e.right)}function isDestructuringAssignmentTarget(e){return e.parent.kind===204&&e.parent.left===e||e.parent.kind===227&&e.parent.initializer===e}function getAssignedTypeOfArrayLiteralElement(e,t){return getTypeOfDestructuredArrayElement(getAssignedType(e),e.elements.indexOf(t))}function getAssignedTypeOfSpreadExpression(e){return getTypeOfDestructuredSpreadExpression(getAssignedType(e.parent))}function getAssignedTypeOfPropertyAssignment(e){return getTypeOfDestructuredProperty(getAssignedType(e.parent),e.name)}function getAssignedTypeOfShorthandPropertyAssignment(e){return getTypeWithDefault(getAssignedTypeOfPropertyAssignment(e),e.objectAssignmentInitializer)}function getAssignedType(e){var t=e.parent;switch(t.kind){case 226:return oe;case 227:return checkRightHandSideOfForOf(t.expression,t.awaitModifier)||ee;case 204:return getAssignedTypeOfBinaryExpression(t);case 198:return re;case 187:return getAssignedTypeOfArrayLiteralElement(t,e);case 208:return getAssignedTypeOfSpreadExpression(t);case 275:return getAssignedTypeOfPropertyAssignment(t);case 276:return getAssignedTypeOfShorthandPropertyAssignment(t)}return ee}function getInitialTypeOfBindingElement(e){var t=e.parent;var r=getInitialType(t.parent);var n=t.kind===184?getTypeOfDestructuredProperty(r,e.propertyName||e.name):!e.dotDotDotToken?getTypeOfDestructuredArrayElement(r,t.elements.indexOf(e)):getTypeOfDestructuredSpreadExpression(r);return getTypeWithDefault(n,e.initializer)}function getTypeOfInitializer(e){var t=getNodeLinks(e);return t.resolvedType||getTypeOfExpression(e)}function getInitialTypeOfVariableDeclaration(e){if(e.initializer){return getTypeOfInitializer(e.initializer)}if(e.parent.parent.kind===226){return oe}if(e.parent.parent.kind===227){return checkRightHandSideOfForOf(e.parent.parent.expression,e.parent.parent.awaitModifier)||ee}return ee}function getInitialType(e){return e.kind===237?getInitialTypeOfVariableDeclaration(e):getInitialTypeOfBindingElement(e)}function getInitialOrAssignedType(e,t){return getConstraintForLocation(e.kind===237||e.kind===186?getInitialType(e):getAssignedType(e),t)}function isEmptyArrayAssignment(e){return e.kind===237&&e.initializer&&isEmptyArrayLiteral(e.initializer)||e.kind!==186&&e.parent.kind===204&&isEmptyArrayLiteral(e.parent.right)}function getReferenceCandidate(e){switch(e.kind){case 195:return getReferenceCandidate(e.expression);case 204:switch(e.operatorToken.kind){case 59:return getReferenceCandidate(e.left);case 27:return getReferenceCandidate(e.right)}}return e}function getReferenceRoot(e){var t=e.parent;return t.kind===195||t.kind===204&&t.operatorToken.kind===59&&t.left===e||t.kind===204&&t.operatorToken.kind===27&&t.right===e?getReferenceRoot(t):e}function getTypeOfSwitchClause(e){if(e.kind===271){return getRegularTypeOfLiteralType(getTypeOfExpression(e.expression))}return me}function getSwitchClauseTypes(e){var t=getNodeLinks(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(getTypeOfSwitchClause(i))}}return t.switchTypes}function getSwitchClauseTypeOfWitnesses(t){var r=[];for(var n=0,i=t.caseBlock.clauses;n<i.length;n++){var a=i[n];if(a.kind===271){if(a.expression.kind===10){r.push(a.expression.text);continue}return e.emptyArray}r.push(undefined)}return r}function eachTypeContainedIn(t,r){return t.flags&1048576?!e.forEach(t.types,function(t){return!e.contains(r,t)}):e.contains(r,t)}function isTypeSubsetOf(e,t){return e===t||t.flags&1048576&&isTypeSubsetOfUnion(e,t)}function isTypeSubsetOfUnion(e,t){if(e.flags&1048576){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!containsType(t.types,i)){return false}}return true}if(e.flags&1024&&getBaseTypeOfEnumLiteralType(e)===t){return true}return containsType(t.types,e)}function forEachType(t,r){return t.flags&1048576?e.forEach(t.types,r):r(t)}function everyType(t,r){return t.flags&1048576?e.every(t.types,r):r(t)}function filterType(t,r){if(t.flags&1048576){var n=t.types;var i=e.filter(n,r);return i===n?t:getUnionTypeFromSortedList(i,t.primitiveTypesOnly)}return r(t)?t:me}function mapType(e,t,r){if(e.flags&131072){return e}if(!(e.flags&1048576)){return t(e)}var n=e.types;var i;var a;for(var o=0,s=n;o<s.length;o++){var c=s[o];var u=t(c);if(u){if(!i){i=u}else if(!a){a=[i,u]}else{a.push(u)}}}return a?getUnionType(a,r?0:1):i}function extractTypesOfKind(e,t){return filterType(e,function(e){return(e.flags&t)!==0})}function replacePrimitivesWithLiterals(e,t){if(isTypeSubsetOf(oe,e)&&maybeTypeOfKind(t,128)||isTypeSubsetOf(se,e)&&maybeTypeOfKind(t,256)||isTypeSubsetOf(ce,e)&&maybeTypeOfKind(t,2048)){return mapType(e,function(e){return e.flags&4?extractTypesOfKind(t,4|128):e.flags&8?extractTypesOfKind(t,8|256):e.flags&64?extractTypesOfKind(t,64|2048):e})}return e}function isIncomplete(e){return e.flags===0}function getTypeFromFlowType(e){return e.flags===0?e.type:e}function createFlowType(e,t){return t?{flags:0,type:e}:e}function createEvolvingArrayType(e){var t=createObjectType(256);t.elementType=e;return t}function getEvolvingArrayType(e){return G[e.id]||(G[e.id]=createEvolvingArrayType(e))}function addEvolvingArrayElementType(e,t){var r=getBaseTypeOfLiteralType(getContextFreeTypeOfExpression(t));return isTypeSubsetOf(r,e.elementType)?e:getEvolvingArrayType(getUnionType([e.elementType,r]))}function createFinalArrayType(e){return e.flags&131072?it:createArrayType(e.flags&1048576?getUnionType(e.types,2):e)}function getFinalArrayType(e){return e.finalArrayType||(e.finalArrayType=createFinalArrayType(e.elementType))}function finalizeEvolvingArrayType(t){return e.getObjectFlags(t)&256?getFinalArrayType(t):t}function getElementTypeOfEvolvingArrayType(t){return e.getObjectFlags(t)&256?t.elementType:me}function isEvolvingArrayTypeList(t){var r=false;for(var n=0,i=t;n<i.length;n++){var a=i[n];if(!(a.flags&131072)){if(!(e.getObjectFlags(a)&256)){return false}r=true}}return r}function getUnionOrEvolvingArrayType(t,r){return isEvolvingArrayTypeList(t)?getEvolvingArrayType(getUnionType(e.map(t,getElementTypeOfEvolvingArrayType))):getUnionType(e.sameMap(t,finalizeEvolvingArrayType),r)}function isEvolvingArrayOperationTarget(t){var r=getReferenceRoot(t);var n=r.parent;var i=n.kind===189&&(n.name.escapedText==="length"||n.parent.kind===191&&e.isPushOrUnshiftIdentifier(n.name));var a=n.kind===190&&n.expression===r&&n.parent.kind===204&&n.parent.operatorToken.kind===59&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&isTypeAssignableToKind(getTypeOfExpression(n.argumentExpression),296);return i||a}function maybeTypePredicateCall(e){var t=getNodeLinks(e);if(t.maybeTypePredicate===undefined){t.maybeTypePredicate=getMaybeTypePredicate(e)}return t.maybeTypePredicate}function getMaybeTypePredicate(t){if(t.expression.kind!==98){var r=checkNonNullExpression(t.expression);if(r!==ye){var n=getApparentType(r);return n!==ee&&e.some(getSignaturesOfType(n,0),signatureHasTypePredicate)}}return false}function reportFlowControlError(t){var r=e.findAncestor(t,e.isFunctionOrModuleBlock);var n=e.getSourceFileOfNode(t);var i=e.getSpanOfTokenAtPosition(n,r.statements.pos);Xt.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function getFlowTypeOfReference(t,r,n,i,a){if(n===void 0){n=r}var o;var s=0;if(Ot){return ee}if(!t.flowNode||!a&&!(r.flags&133970943)){return r}var c=At;var u=getTypeFromFlowType(getTypeAtFlowNode(t.flowNode));At=c;var l=e.getObjectFlags(u)&256&&isEvolvingArrayOperationTarget(t)?it:finalizeEvolvingArrayType(u);if(t.parent&&t.parent.kind===213&&getTypeWithFacts(l,2097152).flags&131072){return r}return l;function getTypeAtFlowNode(e){if(s===2e3){Ot=true;reportFlowControlError(t);return ee}s++;while(true){var a=e.flags;if(a&1024){for(var o=c;o<At;o++){if(qt[o]===e){s--;return Gt[o]}}}var u=void 0;if(a&4096){e.locked=true;u=getTypeAtFlowNode(e.antecedent);e.locked=false}else if(a&2048){e=e.antecedent;continue}else if(a&16){u=getTypeAtFlowAssignment(e);if(!u){e=e.antecedent;continue}}else if(a&96){u=getTypeAtFlowCondition(e)}else if(a&128){u=getTypeAtSwitchClause(e)}else if(a&12){if(e.antecedents.length===1){e=e.antecedents[0];continue}u=a&4?getTypeAtFlowBranchLabel(e):getTypeAtFlowLoopLabel(e)}else if(a&256){u=getTypeAtFlowArrayMutation(e);if(!u){e=e.antecedent;continue}}else if(a&2){var l=e.container;if(l&&l!==i&&t.kind!==189&&t.kind!==190&&t.kind!==100){e=l.flowNode;continue}u=n}else{u=convertAutoToAny(r)}if(a&1024){qt[At]=e;Gt[At]=u;At++}s--;return u}}function getTypeAtFlowAssignment(n){var i=n.node;if(isMatchingReference(t,i)){if(e.getAssignmentTargetKind(i)===2){var a=getTypeAtFlowNode(n.antecedent);return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(a)),isIncomplete(a))}if(r===Y||r===it){if(isEmptyArrayAssignment(i)){return getEvolvingArrayType(me)}var o=getBaseTypeOfLiteralType(getInitialOrAssignedType(i,t));return isTypeAssignableTo(o,r)?o:nt}if(r.flags&1048576){return getAssignmentReducedType(r,getInitialOrAssignedType(i,t))}return r}if(containsMatchingReference(t,i)){if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(s.kind===196||s.kind===197)){return getTypeAtFlowNode(n.antecedent)}}return r}if(e.isVariableDeclaration(i)&&i.parent.parent.kind===226&&isMatchingReference(t,i.parent.parent.expression)){return getNonNullableTypeIfNeeded(getTypeFromFlowType(getTypeAtFlowNode(n.antecedent)))}return undefined}function getTypeAtFlowArrayMutation(n){if(r===Y||r===it){var i=n.node;var a=i.kind===191?i.expression.expression:i.left.expression;if(isMatchingReference(t,getReferenceCandidate(a))){var o=getTypeAtFlowNode(n.antecedent);var s=getTypeFromFlowType(o);if(e.getObjectFlags(s)&256){var c=s;if(i.kind===191){for(var u=0,l=i.arguments;u<l.length;u++){var f=l[u];c=addEvolvingArrayElementType(c,f)}}else{var d=getContextFreeTypeOfExpression(i.left.argumentExpression);if(isTypeAssignableToKind(d,296)){c=addEvolvingArrayElementType(c,i.right)}}return c===s?o:createFlowType(c,isIncomplete(o))}return o}}return undefined}function getTypeAtFlowCondition(e){var t=getTypeAtFlowNode(e.antecedent);var r=getTypeFromFlowType(t);if(r.flags&131072){return t}var n=(e.flags&32)!==0;var i=finalizeEvolvingArrayType(r);var a=narrowType(i,e.expression,n);if(a===i){return t}var o=isIncomplete(t);var s=o&&a.flags&131072?ye:a;return createFlowType(s,o)}function getTypeAtSwitchClause(e){var n=e.switchStatement.expression;if(containsMatchingReferenceDiscriminant(t,n)){return r}var i=getTypeAtFlowNode(e.antecedent);var a=getTypeFromFlowType(i);if(isMatchingReference(t,n)){a=narrowTypeBySwitchOnDiscriminant(a,e.switchStatement,e.clauseStart,e.clauseEnd)}else if(isMatchingReferenceDiscriminant(n,a)){a=narrowTypeByDiscriminant(a,n,function(t){return narrowTypeBySwitchOnDiscriminant(t,e.switchStatement,e.clauseStart,e.clauseEnd)})}else if(n.kind===199&&isMatchingReference(t,n.expression)){a=narrowBySwitchOnTypeOf(a,e.switchStatement,e.clauseStart,e.clauseEnd)}return createFlowType(a,isIncomplete(i))}function getTypeAtFlowBranchLabel(t){var i=[];var a=false;var o=false;for(var s=0,c=t.antecedents;s<c.length;s++){var u=c[s];if(u.flags&2048&&u.lock.locked){continue}var l=getTypeAtFlowNode(u);var f=getTypeFromFlowType(l);if(f===r&&r===n){return f}e.pushIfUnique(i,f);if(!isTypeSubsetOf(f,r)){a=true}if(isIncomplete(l)){o=true}}return createFlowType(getUnionOrEvolvingArrayType(i,a?2:1),o)}function getTypeAtFlowLoopLabel(n){var i=getFlowNodeId(n);var a=Ut[i]||(Ut[i]=e.createMap());if(!o){o=getFlowCacheKey(t);if(!o){return r}}var s=a.get(o);if(s){return s}for(var c=kt;c<Nt;c++){if(zt[c]===n&&Vt[c]===o&&Kt[c].length){return createFlowType(getUnionOrEvolvingArrayType(Kt[c],1),true)}}var u=[];var l=false;var f;zt[Nt]=n;Vt[Nt]=o;Kt[Nt]=u;for(var d=0,p=n.antecedents;d<p.length;d++){var g=p[d];Nt++;var _=getTypeAtFlowNode(g);Nt--;if(!f){f=_}var m=getTypeFromFlowType(_);var y=a.get(o);if(y){return y}e.pushIfUnique(u,m);if(!isTypeSubsetOf(m,r)){l=true}if(m===r){break}}var h=getUnionOrEvolvingArrayType(u,l?2:1);if(isIncomplete(f)){return createFlowType(h,true)}a.set(o,h);return h}function isMatchingReferenceDiscriminant(e,r){if(!(r.flags&1048576)||e.kind!==189&&e.kind!==190){return false}var n=e;var i=getAccessedPropertyName(n);if(!i){return false}return isMatchingReference(t,n.expression)&&isDiscriminantProperty(r,i)}function narrowTypeByDiscriminant(e,t,r){var n=getAccessedPropertyName(t);if(!n){return e}var i=getTypeOfPropertyOfType(e,n);var a=i&&r(i);return i===a?e:filterType(e,function(e){return isTypeComparableTo(getTypeOfPropertyOfType(e,n),a)})}function narrowTypeByTruthiness(e,n,i){if(isMatchingReference(t,n)){return getTypeWithFacts(e,i?4194304:8388608)}if(isMatchingReferenceDiscriminant(n,r)){return narrowTypeByDiscriminant(e,n,function(e){return getTypeWithFacts(e,i?4194304:8388608)})}if(containsMatchingReferenceDiscriminant(t,n)){return r}return e}function isTypePresencePossible(e,t,r){if(getIndexInfoOfType(e,0)){return true}var n=getPropertyOfType(e,t);if(n){return n.flags&16777216?true:r}return!r}function narrowByInKeyword(t,r,n){if(t.flags&(1048576|524288)||t.flags&262144&&t.isThisType){var i=e.escapeLeadingUnderscores(r.text);return filterType(t,function(e){return isTypePresencePossible(e,i,n)})}return t}function narrowTypeByBinaryExpression(n,i,a){switch(i.operatorToken.kind){case 59:return narrowTypeByTruthiness(n,i.left,a);case 33:case 34:case 35:case 36:var o=i.operatorToken.kind;var s=getReferenceCandidate(i.left);var c=getReferenceCandidate(i.right);if(s.kind===199&&e.isStringLiteralLike(c)){return narrowTypeByTypeof(n,s,o,c,a)}if(c.kind===199&&e.isStringLiteralLike(s)){return narrowTypeByTypeof(n,c,o,s,a)}if(isMatchingReference(t,s)){return narrowTypeByEquality(n,o,c,a)}if(isMatchingReference(t,c)){return narrowTypeByEquality(n,o,s,a)}if(isMatchingReferenceDiscriminant(s,r)){return narrowTypeByDiscriminant(n,s,function(e){return narrowTypeByEquality(e,o,c,a)})}if(isMatchingReferenceDiscriminant(c,r)){return narrowTypeByDiscriminant(n,c,function(e){return narrowTypeByEquality(e,o,s,a)})}if(containsMatchingReferenceDiscriminant(t,s)||containsMatchingReferenceDiscriminant(t,c)){return r}break;case 94:return narrowTypeByInstanceof(n,i,a);case 93:var u=getReferenceCandidate(i.right);if(e.isStringLiteralLike(i.left)&&isMatchingReference(t,u)){return narrowByInKeyword(n,i.left,a)}break;case 27:return narrowType(n,i.right,a)}return n}function narrowTypeByEquality(e,t,r,n){if(e.flags&1){return e}if(t===34||t===36){n=!n}var i=getTypeOfExpression(r);if(i.flags&98304){if(!k){return e}var a=t===33||t===34;var o=a?n?262144:2097152:i.flags&65536?n?131072:1048576:n?65536:524288;return getTypeWithFacts(e,o)}if(e.flags&67637251){return e}if(n){var s=filterType(e,function(e){return areTypesComparable(e,i)});return s.flags&131072?e:replacePrimitivesWithLiterals(s,i)}if(isUnitType(i)){var c=getRegularTypeOfLiteralType(i);return filterType(e,function(e){return getRegularTypeOfLiteralType(e)!==c})}return e}function narrowTypeByTypeof(e,n,i,a,o){var s=getReferenceCandidate(n.expression);if(!isMatchingReference(t,s)){if(containsMatchingReference(t,s)&&hasNarrowableDeclaredType(s)){return r}return e}if(i===34||i===36){o=!o}if(e.flags&1&&a.text==="function"){return e}var c=o?er.get(a.text)||128:tr.get(a.text)||32768;return getTypeWithFacts(o?mapType(e,narrowTypeForTypeof):e,c);function narrowTypeForTypeof(e){if(e.flags&2&&a.text==="object"){return getUnionType([ve,ie])}var t=a.text==="function"?Ge:rr.get(a.text);if(t){if(isTypeSubtypeOf(e,t)){return e}if(isTypeSubtypeOf(t,e)){return t}if(e.flags&63176704){var r=getBaseConstraintOfType(e)||X;if(isTypeSubtypeOf(t,r)){return getIntersectionType([e,t])}}}return e}}function narrowTypeBySwitchOnDiscriminant(t,r,n,i){var a=getSwitchClauseTypes(r);if(!a.length){return t}var o=a.slice(n,i);var s=n===i||e.contains(o,me);var c=getUnionType(o);var u=c.flags&131072?me:replacePrimitivesWithLiterals(filterType(t,function(e){return areTypesComparable(c,e)}),c);if(!s){return u}var l=filterType(t,function(t){return!(isUnitType(t)&&e.contains(a,getRegularTypeOfLiteralType(t)))});return u.flags&131072?l:getUnionType([u,l])}function getImpliedTypeFromTypeofCase(e,t){switch(t){case"function":return e.flags&1?e:Ge;case"object":return e.flags&2?getUnionType([ve,ie]):e;default:return rr.get(t)||e}}function narrowTypeForTypeofSwitch(e){return function(t){if(isTypeSubtypeOf(e,t)){return e}if(t.flags&63176704){var r=getBaseConstraintOfType(t)||X;if(isTypeSubtypeOf(e,r)){return getIntersectionType([t,e])}}return t}}function narrowBySwitchOnTypeOf(t,r,n,i){var a=getSwitchClauseTypeOfWitnesses(r);if(!a.length){return t}var o=e.findIndex(a,function(e){return e===undefined});var s=n===i||o>=n&&o<i;var c;var u;if(o>-1){var l=a.filter(function(e){return e!==undefined});var f=o<n?n-1:n;var d=o<i?i-1:i;c=l.slice(f,d);u=getFactsFromTypeofSwitch(f,d,l,s)}else{c=a.slice(n,i);u=getFactsFromTypeofSwitch(n,i,a,s)}if(s){return filterType(t,function(e){return(getTypeFacts(e)&u)===u})}var p=getTypeWithFacts(getUnionType(c.map(function(e){return getImpliedTypeFromTypeofCase(t,e)})),u);if(p.flags&1048576){p=getAssignmentReducedType(p,getBaseConstraintOrType(t))}return getTypeWithFacts(mapType(t,narrowTypeForTypeofSwitch(p)),u)}function narrowTypeByInstanceof(n,i,a){var o=getReferenceCandidate(i.left);if(!isMatchingReference(t,o)){if(containsMatchingReference(t,o)&&hasNarrowableDeclaredType(o)){return r}return n}var s=getTypeOfExpression(i.right);if(!isTypeDerivedFrom(s,Ge)){return n}var c;var u=getPropertyOfType(s,"prototype");if(u){var l=getTypeOfSymbol(u);if(!isTypeAny(l)){c=l}}if(isTypeAny(n)&&(c===qe||c===Ge)){return n}if(!c){var f=getSignaturesOfType(s,1);c=f.length?getUnionType(e.map(f,function(e){return getReturnTypeOfSignature(getErasedSignature(e))})):xe}return getNarrowedType(n,c,a,isTypeDerivedFrom)}function getNarrowedType(e,t,r,n){if(!r){return filterType(e,function(e){return!n(e,t)})}if(e.flags&1048576){var i=filterType(e,function(e){return n(e,t)});if(!(i.flags&131072)){return i}}return isTypeSubtypeOf(t,e)?t:isTypeAssignableTo(e,t)?e:isTypeAssignableTo(t,e)?t:getIntersectionType([e,t])}function narrowTypeByTypePredicate(n,i,a){if(!hasMatchingArgument(i,t)||!maybeTypePredicateCall(i)){return n}var o=getResolvedSignature(i);var s=getTypePredicateOfSignature(o);if(!s){return n}if(isTypeAny(n)&&(s.type===qe||s.type===Ge)){return n}if(e.isIdentifierTypePredicate(s)){var c=i.arguments[s.parameterIndex-(o.thisParameter?1:0)];if(c){if(isMatchingReference(t,c)){return getNarrowedType(n,s.type,a,isTypeSubtypeOf)}if(containsMatchingReference(t,c)){return r}}}else{var u=e.skipParentheses(i.expression);if(u.kind===190||u.kind===189){var l=u;var f=e.skipParentheses(l.expression);if(isMatchingReference(t,f)){return getNarrowedType(n,s.type,a,isTypeSubtypeOf)}if(containsMatchingReference(t,f)){return r}}}return n}function narrowType(e,t,r){switch(t.kind){case 72:case 100:case 98:case 189:case 190:return narrowTypeByTruthiness(e,t,r);case 191:return narrowTypeByTypePredicate(e,t,r);case 195:return narrowType(e,t.expression,r);case 204:return narrowTypeByBinaryExpression(e,t,r);case 202:if(t.operator===52){return narrowType(e,t.operand,!r)}break}return e}}function getTypeOfSymbolAtLocation(t,r){t=t.exportSymbol||t;if(r.kind===72){if(e.isRightSideOfQualifiedNameOrPropertyAccess(r)){r=r.parent}if(e.isExpressionNode(r)&&!e.isAssignmentTarget(r)){var n=getTypeOfExpression(r);if(getExportSymbolOfValueSymbolIfExported(getNodeLinks(r).resolvedSymbol)===t){return n}}}return getTypeOfSymbol(t)}function getControlFlowContainer(t){return e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===245||t.kind===279||t.kind===154})}function isParameterAssigned(t){var r=e.getRootDeclaration(t.valueDeclaration).parent;var n=getNodeLinks(r);if(!(n.flags&8388608)){n.flags|=8388608;if(!hasParentWithAssignmentsMarked(r)){markParameterAssignments(r)}}return t.isAssigned||false}function hasParentWithAssignmentsMarked(t){return!!e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!!(getNodeLinks(t).flags&8388608)})}function markParameterAssignments(t){if(t.kind===72){if(e.isAssignmentTarget(t)){var r=getResolvedSymbol(t);if(r.valueDeclaration&&e.getRootDeclaration(r.valueDeclaration).kind===151){r.isAssigned=true}}}else{e.forEachChild(t,markParameterAssignments)}}function isConstVariable(e){return e.flags&3&&(getDeclarationNodeFlagsFromSymbol(e)&2)!==0&&getTypeOfSymbol(e)!==it}function removeOptionalityFromDeclaredType(e,t){var r=k&&t.kind===151&&t.initializer&&getFalsyFlags(e)&32768&&!(getFalsyFlags(checkExpression(t.initializer))&32768);return r?getTypeWithFacts(e,524288):e}function isConstraintPosition(e){var t=e.parent;return t.kind===189||t.kind===191&&t.expression===e||t.kind===190&&t.expression===e||t.kind===186&&t.name===e&&!!t.initializer}function typeHasNullableConstraint(e){return e.flags&58982400&&maybeTypeOfKind(getBaseConstraintOfType(e)||xe,98304)}function getConstraintForLocation(e,t){if(e&&isConstraintPosition(t)&&forEachType(e,typeHasNullableConstraint)){return mapType(getWidenedType(e),getBaseConstraintOrType)}return e}function markAliasReferenced(e,t){if(isNonLocalAlias(e,67220415)&&!isInTypeQuery(t)&&!isConstEnumOrConstEnumOnlyModule(resolveAlias(e))){markAliasSymbolAsReferenced(e)}}function checkIdentifier(t){var r=getResolvedSymbol(t);if(r===Q){return ee}if(r===B){var n=e.getContainingFunction(t);if(C<2){if(n.kind===197){error(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression)}else if(e.hasModifier(n,256)){error(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)}}getNodeLinks(n).flags|=8192;return getTypeOfSymbol(r)}if(!(t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t)){markAliasReferenced(r,t)}var i=getExportSymbolOfValueSymbolIfExported(r);var a=i.valueDeclaration;if(i.flags&32){if(a.kind===240&&e.nodeIsDecorated(a)){var n=e.getContainingClass(t);while(n!==undefined){if(n===a&&n.name!==t){getNodeLinks(a).flags|=16777216;getNodeLinks(t).flags|=33554432;break}n=e.getContainingClass(n)}}else if(a.kind===209){var n=e.getThisContainer(t,false);while(n.kind!==279){if(n.parent===a){if(n.kind===154&&e.hasModifier(n,32)){getNodeLinks(a).flags|=16777216;getNodeLinks(t).flags|=33554432}break}n=e.getThisContainer(n,false)}}}checkNestedBlockScopedBinding(t,r);var o=getConstraintForLocation(getTypeOfSymbol(i),t);var s=e.getAssignmentTargetKind(t);if(s){if(!(i.flags&3)&&!(e.isInJSFile(t)&&i.flags&512)){error(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,symbolToString(r));return ee}if(isReadonlySymbol(i)){if(i.flags&3){error(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,symbolToString(r))}else{error(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,symbolToString(r))}return ee}}var c=i.flags&2097152;if(i.flags&3){if(s===1){return o}}else if(c){a=e.find(r.declarations,isSomeImportDeclaration)}else{return o}if(!a){return o}var u=e.getRootDeclaration(a).kind===151;var l=getControlFlowContainer(a);var f=getControlFlowContainer(t);var d=f!==l;var p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&isDestructuringAssignmentTarget(t.parent.parent);var g=r.flags&134217728;while(f!==l&&(f.kind===196||f.kind===197||e.isObjectLiteralOrClassExpressionMethod(f))&&(isConstVariable(i)||u&&!isParameterAssigned(i))){f=getControlFlowContainer(f)}var _=u||c||d||p||g||o!==Y&&o!==it&&(!k||(o.flags&3)!==0||isInTypeQuery(t)||t.parent.kind===257)||t.parent.kind===213||a.kind===237&&a.exclamationToken||a.flags&4194304;var m=_?u?removeOptionalityFromDeclaredType(o,a):o:o===Y||o===it?re:getOptionalType(o);var y=getFlowTypeOfReference(t,o,m,f,!_);if(!isEvolvingArrayOperationTarget(t)&&(o===Y||o===it)){if(y===Y||y===it){if(F){error(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,symbolToString(r),typeToString(y));error(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,symbolToString(r),typeToString(y))}return convertAutoToAny(y)}}else if(!_&&!(getFalsyFlags(o)&32768)&&getFalsyFlags(y)&32768){error(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,symbolToString(r));return o}return s?getBaseTypeOfLiteralType(y):y}function isInsideFunction(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}function getPartOfForStatementContainingNode(t,r){return e.findAncestor(t,function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement})}function checkNestedBlockScopedBinding(t,r){if(C>=2||(r.flags&(2|32))===0||r.valueDeclaration.parent.kind===274){return}var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration);var i=isInsideFunction(t.parent,n);var a=n;var o=false;while(a&&!e.nodeStartsNewLexicalEnvironment(a)){if(e.isIterationStatement(a,false)){o=true;break}a=a.parent}if(o){if(i){var s=true;if(e.isForStatement(n)&&e.getAncestor(r.valueDeclaration,238).parent===n){var c=getPartOfForStatementContainingNode(t.parent,n);if(c){var u=getNodeLinks(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r);if(c===n.initializer){s=false}}}if(s){getNodeLinks(a).flags|=65536}}if(n.kind===225&&e.getAncestor(r.valueDeclaration,238).parent===n&&isAssignedInBodyOfForStatement(t,n)){getNodeLinks(r.valueDeclaration).flags|=4194304}getNodeLinks(r.valueDeclaration).flags|=524288}if(i){getNodeLinks(r.valueDeclaration).flags|=262144}}function isBindingCapturedByNode(t,r){var n=getNodeLinks(t);return!!n&&e.contains(n.capturedBlockScopeBindings,getSymbolOfNode(r))}function isAssignedInBodyOfForStatement(t,r){var n=t;while(n.parent.kind===195){n=n.parent}var i=false;if(e.isAssignmentTarget(n)){i=true}else if(n.parent.kind===202||n.parent.kind===203){var a=n.parent;i=a.operator===44||a.operator===45}if(!i){return false}return!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function captureLexicalThis(e,t){getNodeLinks(e).flags|=2;if(t.kind===154||t.kind===157){var r=t.parent;getNodeLinks(r).flags|=4}else{getNodeLinks(t).flags|=4}}function findFirstSuperCall(t){if(e.isSuperCall(t)){return t}else if(e.isFunctionLike(t)){return undefined}return e.forEachChild(t,findFirstSuperCall)}function getSuperCallInConstructor(e){var t=getNodeLinks(e);if(t.hasSuperCall===undefined){t.superCall=findFirstSuperCall(e.body);t.hasSuperCall=t.superCall?true:false}return t.superCall}function classDeclarationExtendsNull(e){var t=getSymbolOfNode(e);var r=getDeclaredTypeOfSymbol(t);var n=getBaseConstructorTypeOfClass(r);return n===ae}function checkThisBeforeSuper(t,r,n){var i=r.parent;var a=e.getEffectiveBaseTypeNode(i);if(a&&!classDeclarationExtendsNull(i)){var o=getSuperCallInConstructor(r);if(!o||o.end>t.pos){error(t,n)}}}function checkThisExpression(t){var r=e.getThisContainer(t,true);var n=false;if(r.kind===157){checkThisBeforeSuper(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class)}if(r.kind===197){r=e.getThisContainer(r,false);n=true}switch(r.kind){case 244:error(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 243:error(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 157:if(isInConstructorArgumentInitializer(t,r)){error(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments)}break;case 154:case 153:if(e.hasModifier(r,32)){error(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer)}break;case 149:error(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}if(n&&C<2){captureLexicalThis(t,r)}var i=tryGetThisTypeAt(t,r);if(!i&&P){var a=error(t,n&&r.kind===279?e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any:e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var o=tryGetThisTypeAt(r);if(o){addRelatedInfo(a,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||X}function tryGetThisTypeAt(t,r){if(r===void 0){r=e.getThisContainer(t,false)}var n=e.isInJSFile(t);if(e.isFunctionLike(r)&&(!isInParameterInitializerBeforeContainingFunction(t)||e.getThisParameter(r))){var i=getClassNameFromPrototypeMethod(r);if(n&&i){var a=checkExpression(i).symbol;if(a&&a.members&&a.flags&16){var o=getJSClassType(a);if(o){return getFlowTypeOfReference(t,o)}}}else if(n&&(r.kind===196||r.kind===239)&&e.getJSDocClassTag(r)){var o=getJSClassType(r.symbol);if(o){return getFlowTypeOfReference(t,o)}}var s=getThisTypeOfDeclaration(r)||getContextualThisParameterType(r);if(s){return getFlowTypeOfReference(t,s)}}if(e.isClassLike(r.parent)){var c=getSymbolOfNode(r.parent);var u=e.hasModifier(r,32)?getTypeOfSymbol(c):getDeclaredTypeOfSymbol(c).thisType;return getFlowTypeOfReference(t,u)}if(n){var u=getTypeForThisExpressionFromJSDoc(r);if(u&&u!==ee){return getFlowTypeOfReference(t,u)}}}function getClassNameFromPrototypeMethod(t){if(t.kind===196&&e.isBinaryExpression(t.parent)&&e.getAssignmentDeclarationKind(t.parent)===3){return t.parent.left.expression.expression}else if(t.kind===156&&t.parent.kind===188&&e.isBinaryExpression(t.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent)===6){return t.parent.parent.left.expression}else if(t.kind===196&&t.parent.kind===275&&t.parent.parent.kind===188&&e.isBinaryExpression(t.parent.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent.parent)===6){return t.parent.parent.parent.left.expression}else if(t.kind===196&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&(t.parent.name.escapedText==="value"||t.parent.name.escapedText==="get"||t.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&e.getAssignmentDeclarationKind(t.parent.parent.parent)===9){return t.parent.parent.parent.arguments[0].expression}else if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&(t.name.escapedText==="value"||t.name.escapedText==="get"||t.name.escapedText==="set")&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&e.getAssignmentDeclarationKind(t.parent.parent)===9){return t.parent.parent.arguments[0].expression}}function getTypeForThisExpressionFromJSDoc(t){var r=e.getJSDocType(t);if(r&&r.kind===289){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&n.parameters[0].name.escapedText==="this"){return getTypeFromTypeNode(n.parameters[0].type)}}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression){return getTypeFromTypeNode(i.typeExpression)}}function isInConstructorArgumentInitializer(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":e.kind===151})}function checkSuperExpression(t){var r=t.parent.kind===191&&t.parent.expression===t;var n=e.getSuperContainer(t,true);var i=false;if(!r){while(n&&n.kind===197){n=e.getSuperContainer(n,true);i=C<2}}var a=isLegalUsageOfSuperExpression(n);var o=0;if(!a){var s=e.findAncestor(t,function(e){return e===n?"quit":e.kind===149});if(s&&s.kind===149){error(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name)}else if(r){error(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors)}else if(!n||!n.parent||!(e.isClassLike(n.parent)||n.parent.kind===188)){error(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions)}else{error(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class)}return ee}if(!r&&n.kind===157){checkThisBeforeSuper(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class)}if(e.hasModifier(n,32)||r){o=512}else{o=256}getNodeLinks(t).flags|=o;if(n.kind===156&&e.hasModifier(n,256)){if(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)){getNodeLinks(n).flags|=4096}else{getNodeLinks(n).flags|=2048}}if(i){captureLexicalThis(t.parent,n)}if(n.parent.kind===188){if(C<2){error(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher);return ee}else{return X}}var c=n.parent;if(!e.getEffectiveBaseTypeNode(c)){error(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class);return ee}var u=getDeclaredTypeOfSymbol(getSymbolOfNode(c));var l=u&&getBaseTypes(u)[0];if(!l){return ee}if(n.kind===157&&isInConstructorArgumentInitializer(t,n)){error(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments);return ee}return o===512?getBaseConstructorTypeOfClass(u):getTypeWithThisArgument(l,u.thisType);function isLegalUsageOfSuperExpression(t){if(!t){return false}if(r){return t.kind===157}else{if(e.isClassLike(t.parent)||t.parent.kind===188){if(e.hasModifier(t,32)){return t.kind===156||t.kind===155||t.kind===158||t.kind===159}else{return t.kind===156||t.kind===155||t.kind===158||t.kind===159||t.kind===154||t.kind===153||t.kind===157}}}return false}}function getContainingObjectLiteral(e){return(e.kind===156||e.kind===158||e.kind===159)&&e.parent.kind===188?e.parent:e.kind===196&&e.parent.kind===275?e.parent.parent:undefined}function getThisTypeArgument(t){return e.getObjectFlags(t)&4&&t.target===rt?t.typeArguments[0]:undefined}function getThisTypeFromContextualType(t){return mapType(t,function(t){return t.flags&2097152?e.forEach(t.types,getThisTypeArgument):getThisTypeArgument(t)})}function getContextualThisParameterType(t){if(t.kind===197){return undefined}if(isContextSensitiveFunctionOrObjectLiteralMethod(t)){var r=getContextualSignature(t);if(r){var n=r.thisParameter;if(n){return getTypeOfSymbol(n)}}}var i=e.isInJSFile(t);if(P||i){var a=getContainingObjectLiteral(t);if(a){var o=getApparentTypeOfContextualType(a);var s=a;var c=o;while(c){var u=getThisTypeFromContextualType(c);if(u){return instantiateType(u,getContextualMapper(a))}if(s.parent.kind!==275){break}s=s.parent.parent;c=getApparentTypeOfContextualType(s)}return o?getNonNullableType(o):checkExpressionCached(a)}var l=t.parent;if(l.kind===204&&l.operatorToken.kind===59){var f=l.left;if(f.kind===189||f.kind===190){var d=f.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&getResolvedSymbol(d)===p.symbol){return undefined}}return checkExpressionCached(d)}}}return undefined}function getContextuallyTypedParameterType(t){var r=t.parent;if(!isContextSensitiveFunctionOrObjectLiteralMethod(r)){return undefined}var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=getEffectiveCallArguments(n);var a=r.parameters.indexOf(t);if(t.dotDotDotToken){return getSpreadArgumentType(i,a,i.length,X,undefined)}var o=getNodeLinks(n);var s=o.resolvedSignature;o.resolvedSignature=Le;var c=a<i.length?getWidenedLiteralType(checkExpression(i[a])):t.initializer?undefined:ne;o.resolvedSignature=s;return c}var u=getContextualSignature(r);if(u){var l=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?getRestTypeAtPosition(u,l):tryGetTypeAtPosition(u,l)}}function getContextualTypeForInitializerExpression(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=e.getEffectiveTypeAnnotationNode(r);if(n){return getTypeFromTypeNode(n)}if(r.kind===151){var i=getContextuallyTypedParameterType(r);if(i){return i}}if(e.isBindingPattern(r.name)){return getTypeFromBindingPattern(r.name,true,false)}if(e.isBindingPattern(r.parent)){var a=r.parent.parent;var o=r.propertyName||r.name;if(a.kind!==186){var s=e.getEffectiveTypeAnnotationNode(a);if(s&&!e.isBindingPattern(o)){var c=e.getTextOfPropertyName(o);if(c){return getTypeOfPropertyOfType(getTypeFromTypeNode(s),c)}}}}}return undefined}function getContextualTypeForReturnExpression(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(n&1){return undefined}var i=getContextualReturnType(r);if(i){if(n&2){var a=getAwaitedTypeOfPromise(i);return a&&getUnionType([a,createPromiseLikeType(a)])}return i}}return undefined}function getContextualTypeForAwaitOperand(e){var t=getContextualType(e);if(t){var r=getAwaitedType(t);return r&&getUnionType([r,createPromiseLikeType(r)])}return undefined}function getContextualTypeForYieldOperand(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);var i=getContextualReturnType(r);if(i){return t.asteriskToken?i:getIteratedTypeOfGenerator(i,(n&2)!==0)}}return undefined}function isInParameterInitializerBeforeContainingFunction(t){var r=false;while(t.parent&&!e.isFunctionLike(t.parent)){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t)){return true}if(e.isBindingElement(t.parent)&&t.parent.initializer===t){r=true}t=t.parent}return false}function getContextualReturnType(e){var t=getReturnTypeFromAnnotation(e);if(t){return t}var r=getContextualSignatureForFunctionLikeDeclaration(e);if(r&&!isResolvingReturnTypeOfSignature(r)){return getReturnTypeOfSignature(r)}return undefined}function getContextualTypeForArgument(e,t){var r=getEffectiveCallArguments(e);var n=r.indexOf(t);return n===-1?undefined:getContextualTypeForArgumentAtIndex(e,n)}function getContextualTypeForArgumentAtIndex(t,r){var n=getNodeLinks(t).resolvedSignature===Be?Be:getResolvedSignature(t);if(e.isJsxOpeningLikeElement(t)&&r===0){return getEffectiveFirstArgumentForJsxSignature(n,t)}return getTypeAtPosition(n,r)}function getContextualTypeForSubstitutionExpression(e,t){if(e.parent.kind===193){return getContextualTypeForArgument(e.parent,t)}return undefined}function getContextualTypeForBinaryOperand(t){var r=t.parent;var n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 59:if(t!==a){return undefined}var o=getIsContextSensitiveAssignmentOrContextType(r);if(!o){return undefined}return o===true?getTypeOfExpression(n):o;case 55:var s=getContextualType(r);return!s&&t===a&&!e.isDefaultedExpandoInitializer(r)?getTypeOfExpression(n):s;case 54:case 27:return t===a?getContextualType(r):undefined;default:return undefined}}function getIsContextSensitiveAssignmentOrContextType(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return true;case 5:case 1:case 6:case 3:if(!t.left.symbol){return true}else{var n=t.left.symbol.valueDeclaration;if(!n){return false}var i=t.left;var a=e.getEffectiveTypeAnnotationNode(n);if(a){return getTypeFromTypeNode(a)}else if(e.isIdentifier(i.expression)){var o=i.expression;var s=resolveName(o,o.escapedText,67220415,undefined,o.escapedText,true);if(s){var c=e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(c){var u=getTypeOfPropertyOfContextualType(getTypeFromTypeNode(c),i.name.escapedText);return u||false}return false}}return!e.isInJSFile(n)}case 2:case 4:if(!t.symbol)return true;if(t.symbol.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(c){var u=getTypeFromTypeNode(c);if(u){return u}}}if(r===2)return false;var l=t.left;if(!e.isObjectLiteralMethod(e.getThisContainer(l.expression,false))){return false}var f=checkThisExpression(l.expression);return f&&getTypeOfPropertyOfContextualType(f,l.name.escapedText)||false;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}function getTypeOfPropertyOfContextualType(e,t){return mapType(e,function(e){if(e.flags&3670016){var r=getPropertyOfType(e,t);if(r){return getTypeOfSymbol(r)}if(isTupleType(e)){var n=getRestTypeOfTupleType(e);if(n&&isNumericLiteralName(t)&&+t>=0){return n}}return isNumericLiteralName(t)&&getIndexTypeOfContextualType(e,1)||getIndexTypeOfContextualType(e,0)}return undefined},true)}function getIndexTypeOfContextualType(e,t){return mapType(e,function(e){return getIndexTypeOfStructuredType(e,t)},true)}function getContextualTypeForObjectLiteralMethod(t){e.Debug.assert(e.isObjectLiteralMethod(t));if(t.flags&8388608){return undefined}return getContextualTypeForObjectLiteralElement(t)}function getContextualTypeForObjectLiteralElement(e){var t=e.parent;var r=getApparentTypeOfContextualType(t);if(r){if(!hasNonBindableDynamicName(e)){var n=getSymbolOfNode(e).escapedName;var i=getTypeOfPropertyOfContextualType(r,n);if(i){return i}}return isNumericName(e.name)&&getIndexTypeOfContextualType(r,1)||getIndexTypeOfContextualType(r,0)}return undefined}function getContextualTypeForElementExpression(e,t){return e&&(getTypeOfPropertyOfContextualType(e,""+t)||getIteratedTypeOrElementType(e,undefined,false,false,false))}function getContextualTypeForConditionalOperand(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?getContextualType(t):undefined}function getContextualTypeForChildJsxExpression(e){var t=getApparentTypeOfContextualType(e.openingElement.tagName);var r=getJsxElementChildrenPropertyName(getJsxNamespaceAt(e));return t&&!isTypeAny(t)&&r&&r!==""?getTypeOfPropertyOfContextualType(t,r):undefined}function getContextualTypeForJsxExpression(t){var r=t.parent;return e.isJsxAttributeLike(r)?getContextualType(t):e.isJsxElement(r)?getContextualTypeForChildJsxExpression(r):undefined}function getContextualTypeForJsxAttribute(t){if(e.isJsxAttribute(t)){var r=getApparentTypeOfContextualType(t.parent);if(!r||isTypeAny(r)){return undefined}return getTypeOfPropertyOfContextualType(r,t.name.escapedText)}else{return getContextualType(t.parent)}}function isPossiblyDiscriminantValue(e){switch(e.kind){case 10:case 8:case 9:case 14:case 102:case 87:case 96:case 72:case 141:return true;case 189:case 195:return isPossiblyDiscriminantValue(e.expression);case 270:return!e.expression||isPossiblyDiscriminantValue(e.expression)}return false}function discriminateContextualTypeByObjectMembers(t,r){return discriminateTypeByDiscriminableItems(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&e.kind===275&&isPossiblyDiscriminantValue(e.initializer)&&isDiscriminantProperty(r,e.symbol.escapedName)}),function(e){return[function(){return checkExpression(e.initializer)},e.symbol.escapedName]}),isTypeAssignableTo,r)}function discriminateContextualTypeByJSXAttributes(t,r){return discriminateTypeByDiscriminableItems(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&e.kind===267&&isDiscriminantProperty(r,e.symbol.escapedName)&&(!e.initializer||isPossiblyDiscriminantValue(e.initializer))}),function(e){return[!e.initializer?function(){return fe}:function(){return checkExpression(e.initializer)},e.symbol.escapedName]}),isTypeAssignableTo,r)}function getApparentTypeOfContextualType(t){var r=getContextualType(t);r=r&&mapType(r,getApparentType);if(r&&r.flags&1048576){if(e.isObjectLiteralExpression(t)){return discriminateContextualTypeByObjectMembers(t,r)}else if(e.isJsxAttributes(t)){return discriminateContextualTypeByJSXAttributes(t,r)}}return r}function getContextualType(t){if(t.flags&8388608){return undefined}if(t.contextualType){return t.contextualType}var r=t.parent;switch(r.kind){case 237:case 151:case 154:case 153:case 186:return getContextualTypeForInitializerExpression(t);case 197:case 230:return getContextualTypeForReturnExpression(t);case 207:return getContextualTypeForYieldOperand(r);case 201:return getContextualTypeForAwaitOperand(r);case 191:case 192:return getContextualTypeForArgument(r,t);case 194:case 212:return getTypeFromTypeNode(r.type);case 204:return getContextualTypeForBinaryOperand(t);case 275:case 276:return getContextualTypeForObjectLiteralElement(r);case 277:return getApparentTypeOfContextualType(r.parent);case 187:{var n=r;var i=getApparentTypeOfContextualType(n);return getContextualTypeForElementExpression(i,e.indexOfNode(n.elements,t))}case 205:return getContextualTypeForConditionalOperand(t);case 216:e.Debug.assert(r.parent.kind===206);return getContextualTypeForSubstitutionExpression(r.parent,t);case 195:{var a=e.isInJSFile(r)?e.getJSDocTypeTag(r):undefined;return a?getTypeFromTypeNode(a.typeExpression.type):getContextualType(r)}case 270:return getContextualTypeForJsxExpression(r);case 267:case 269:return getContextualTypeForJsxAttribute(r);case 262:case 261:return getContextualJsxElementAttributesType(r)}return undefined}function getContextualMapper(t){var r=e.findAncestor(t,function(e){return!!e.contextualMapper});return r?r.contextualMapper:b}function getContextualJsxElementAttributesType(t){if(e.isJsxOpeningElement(t)&&t.parent.contextualType){return t.parent.contextualType}return getContextualTypeForArgumentAtIndex(t,0)}function getEffectiveFirstArgumentForJsxSignature(e,t){return getJsxReferenceKind(t)!==0?getJsxPropsTypeFromCallSignature(e,t):getJsxPropsTypeFromClassType(e,t)}function getJsxPropsTypeFromCallSignature(e,t){var r=getTypeOfFirstParameterOfSignatureWithFallback(e,xe);r=getJsxManagedAttributesFromLocatedAttributes(t,getJsxNamespaceAt(t),r);var n=getJsxType(c.IntrinsicAttributes,t);if(n!==ee){r=intersectTypes(n,r)}return r}function getJsxPropsTypeForSignatureFromMember(e,t){var r=getReturnTypeOfSignature(e);return isTypeAny(r)?r:getTypeOfPropertyOfType(r,t)}function getStaticTypeOfReferencedJsxConstructor(e){if(isJsxIntrinsicIdentifier(e.tagName)){var t=getIntrinsicAttributesTypeFromJsxOpeningLikeElement(e);var r=createSignatureForJSXIntrinsic(e,t);return getOrCreateTypeFromSignature(r)}var n=checkExpressionCached(e.tagName);if(n.flags&128){var t=getIntrinsicAttributesTypeFromStringLiteralType(n,e);if(!t){return ee}var r=createSignatureForJSXIntrinsic(e,t);return getOrCreateTypeFromSignature(r)}return n}function getJsxManagedAttributesFromLocatedAttributes(t,r,n){var i=getJsxLibraryManagedAttributes(r);if(i){var a=getDeclaredTypeOfSymbol(i);var o=getStaticTypeOfReferencedJsxConstructor(t);if(e.length(a.typeParameters)>=2){var s=fillMissingTypeArguments([o,n],a.typeParameters,2,e.isInJSFile(t));return createTypeReference(a,s)}else if(e.length(a.aliasTypeArguments)>=2){var s=fillMissingTypeArguments([o,n],a.aliasTypeArguments,2,e.isInJSFile(t));return getTypeAliasInstantiation(a.aliasSymbol,s)}}return n}function getJsxPropsTypeFromClassType(t,r){var n=getJsxNamespaceAt(r);var i=getJsxElementPropertiesName(n);var a=i===undefined?getTypeOfFirstParameterOfSignatureWithFallback(t,xe):i===""?getReturnTypeOfSignature(t):getJsxPropsTypeForSignatureFromMember(t,i);if(!a){if(!!i&&!!e.length(r.attributes.properties)){error(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i))}return xe}a=getJsxManagedAttributesFromLocatedAttributes(r,n,a);if(isTypeAny(a)){return a}else{var o=a;var s=getJsxType(c.IntrinsicClassAttributes,r);if(s!==ee){var u=getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(s.symbol);var l=getReturnTypeOfSignature(t);o=intersectTypes(u?createTypeReference(s,fillMissingTypeArguments([l],u,getMinTypeArgumentCount(u),e.isInJSFile(r))):s,o)}var f=getJsxType(c.IntrinsicAttributes,r);if(f!==ee){o=intersectTypes(f,o)}return o}}function getContextualCallSignature(e,t){var r=getSignaturesOfType(e,0);if(r.length===1){var n=r[0];if(!isAritySmaller(n,t)){return n}}}function isAritySmaller(t,r){var n=0;for(;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||isJSDocOptionalParameter(i)){break}}if(r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])){n--}return!hasEffectiveRestParameter(t)&&getParameterCount(t)<n}function isFunctionExpressionOrArrowFunction(e){return e.kind===196||e.kind===197}function getContextualSignatureForFunctionLikeDeclaration(t){return isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?getContextualSignature(t):undefined}function getContextualTypeForFunctionLikeDeclaration(t){return e.isObjectLiteralMethod(t)?getContextualTypeForObjectLiteralMethod(t):getApparentTypeOfContextualType(t)}function getContextualSignature(t){e.Debug.assert(t.kind!==156||e.isObjectLiteralMethod(t));var r=getSignatureOfTypeTag(t);if(r){return r}var n=getContextualTypeForFunctionLikeDeclaration(t);if(!n){return undefined}if(!(n.flags&1048576)){return getContextualCallSignature(n,t)}var i;var a=n.types;for(var o=0,s=a;o<s.length;o++){var c=s[o];var u=getContextualCallSignature(c,t);if(u){if(!i){i=[u]}else if(!compareSignaturesIdentical(i[0],u,false,true,true,compareTypesIdentical)){return undefined}else{i.push(u)}}}var l;if(i){l=cloneSignature(i[0]);l.unionSignatures=i}return l}function checkSpreadExpression(e,t){if(C<2&&x.downlevelIteration){checkExternalEmitHelpers(e,1536)}var r=checkExpression(e.expression,t);return checkIteratedTypeOrElementType(r,e.expression,false,false)}function hasDefaultValue(e){return e.kind===186&&!!e.initializer||e.kind===204&&e.operatorToken.kind===59}function checkArrayLiteral(t,r,n){var i=t.elements;var a=i.length;var o=false;var s=[];var c=e.isAssignmentTarget(t);var u=getApparentTypeOfContextualType(t);for(var l=0;l<a;l++){var f=i[l];if(c&&f.kind===208){var d=checkExpression(f.expression,r,n);var p=getIndexTypeOfType(d,1)||getIteratedTypeOrElementType(d,undefined,false,false,false);if(p){s.push(p)}}else{var g=getContextualTypeForElementExpression(u,l);var _=checkExpressionForMutableLocation(f,r,g,n);s.push(_)}if(l<a-1&&f.kind===208){o=true}}if(!o){var m=a>0&&i[a-1].kind===208;var y=a-(m?1:0);var h=void 0;if(c&&y>0){var _=cloneTypeReference(createTupleType(s,y,m));_.pattern=t;return _}else if(h=getArrayLiteralTupleTypeIfApplicable(s,u,m,a)){return h}else if(n){return createTupleType(s,y,m)}}return getArrayLiteralType(s,2)}function getArrayLiteralTupleTypeIfApplicable(t,r,n,i){if(i===void 0){i=t.length}if(r&&forEachType(r,isTupleLikeType)){var a=i-(n?1:0);var o=r.pattern;if(!n&&o&&(o.kind===185||o.kind===187)){var s=o.elements;for(var c=i;c<s.length;c++){var u=s[c];if(hasDefaultValue(u)){t.push(r.typeArguments[c])}else if(c<s.length-1||!(u.kind===186&&u.dotDotDotToken||u.kind===208)){if(u.kind!==210){error(u,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value)}t.push(k?he:ne)}}}return createTupleType(t,a,n)}}function getArrayLiteralType(e,t){if(t===void 0){t=1}return createArrayType(e.length?getUnionType(e,t):k?he:ne)}function isNumericName(e){switch(e.kind){case 149:return isNumericComputedName(e);case 72:return isNumericLiteralName(e.escapedText);case 8:case 10:return isNumericLiteralName(e.text);default:return false}}function isNumericComputedName(e){return isTypeAssignableToKind(checkComputedPropertyName(e),296)}function isInfinityOrNaNString(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function isNumericLiteralName(e){return(+e).toString()===e}function checkComputedPropertyName(t){var r=getNodeLinks(t.expression);if(!r.resolvedType){r.resolvedType=checkExpression(t.expression);if(r.resolvedType.flags&98304||!isTypeAssignableToKind(r.resolvedType,132|296|12288)&&!isTypeAssignableTo(r.resolvedType,Te)){error(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}else{checkThatExpressionIsProperSymbolReference(t.expression,r.resolvedType,true)}}return r.resolvedType}function getObjectLiteralIndexInfo(e,t,r,n){var i=[];for(var a=0;a<r.length;a++){if(n===0||isNumericName(e[a+t].name)){i.push(getTypeOfSymbol(r[a]))}}var o=i.length?getUnionType(i,2):re;return createIndexInfo(o,false)}function getImmediateAliasedSymbol(t){e.Debug.assert((t.flags&2097152)!==0,"Should only get Alias here.");var r=getSymbolLinks(t);if(!r.immediateTarget){var n=getDeclarationOfAliasSymbol(t);if(!n)return e.Debug.fail();r.immediateTarget=getTargetOfAliasDeclaration(n,true)}return r.immediateTarget}function checkObjectLiteral(t,r){var n=e.isAssignmentTarget(t);checkGrammarObjectLiteralExpression(t,n);var i;var a=[];var o=xe;var s=0;var c=getApparentTypeOfContextualType(t);var u=c&&c.pattern&&(c.pattern.kind===184||c.pattern.kind===188);var l=e.isInJSFile(t)&&!e.isInJsonFile(t);var f=e.getJSDocEnumTag(t);var d=!c&&l&&!f;var p=0;var g=false;var _=false;var m=false;i=e.createSymbolTable();var y=0;for(var h=0;h<t.properties.length;h++){var v=t.properties[h];var T=getSymbolOfNode(v);var S=v.name&&v.name.kind===149&&!e.isWellKnownSymbolSyntactically(v.name.expression)?checkComputedPropertyName(v.name):undefined;if(v.kind===275||v.kind===276||e.isObjectLiteralMethod(v)){var b=v.kind===275?checkPropertyAssignment(v,r):v.kind===276?checkExpressionForMutableLocation(v.name,r):checkObjectLiteralMethod(v,r);if(l){var E=getTypeForDeclarationFromJSDocComment(v);if(E){checkTypeAssignableTo(b,E,v);b=E}else if(f&&f.typeExpression){checkTypeAssignableTo(b,getTypeFromTypeNode(f.typeExpression),v)}}p|=b.flags;var D=S&&S.flags&8576?S:undefined;var k=D?createSymbol(4|T.flags,getLateBoundNameFromType(D),1024):createSymbol(4|T.flags,T.escapedName);if(D){k.nameType=D}if(n){var N=v.kind===275&&hasDefaultValue(v.initializer)||v.kind===276&&v.objectAssignmentInitializer;if(N){k.flags|=16777216}}else if(u&&!(e.getObjectFlags(c)&512)){var A=getPropertyOfType(c,T.escapedName);if(A){k.flags|=A.flags&16777216}else if(!x.suppressExcessPropertyErrors&&!getIndexInfoOfType(c,0)){error(v.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,symbolToString(T),typeToString(c))}}k.declarations=T.declarations;k.parent=T.parent;if(T.valueDeclaration){k.valueDeclaration=T.valueDeclaration}k.type=b;k.target=T;T=k}else if(v.kind===277){if(C<2){checkExternalEmitHelpers(v,2)}if(a.length>0){o=getSpreadType(o,createObjectLiteralType(),t.symbol,s,32768);a=[];i=e.createSymbolTable();_=false;m=false;p=0}var b=checkExpression(v.expression);if(!isValidSpreadType(b)){error(v,e.Diagnostics.Spread_types_may_only_be_created_from_object_types);return ee}o=getSpreadType(o,b,t.symbol,s,32768);y=h+1;continue}else{e.Debug.assert(v.kind===158||v.kind===159);checkNodeDeferred(v)}if(S&&!(S.flags&8576)){if(isTypeAssignableTo(S,Te)){if(isTypeAssignableTo(S,se)){m=true}else{_=true}if(n){g=true}}}else{i.set(T.escapedName,T)}a.push(T)}if(u){for(var O=0,F=getPropertiesOfType(c);O<F.length;O++){var k=F[O];if(!i.get(k.escapedName)&&!(o&&getPropertyOfType(o,k.escapedName))){if(!(k.flags&16777216)){error(k.valueDeclaration||k.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value)}i.set(k.escapedName,k);a.push(k)}}}if(o!==xe){if(a.length>0){o=getSpreadType(o,createObjectLiteralType(),t.symbol,s,32768)}return o}return createObjectLiteralType();function createObjectLiteralType(){var r=_?getObjectLiteralIndexInfo(t.properties,y,a,0):undefined;var o=m?getObjectLiteralIndexInfo(t.properties,y,a,1):undefined;var c=createAnonymousType(t.symbol,i,e.emptyArray,e.emptyArray,r,o);c.flags|=268435456|p&939524096;c.objectFlags|=128|w;if(d){c.objectFlags|=16384}if(g){c.objectFlags|=512}if(n){c.pattern=t}s|=c.flags&939524096;return c}}function isValidSpreadType(t){return!!(t.flags&(3|67108864|524288|58982400)||getFalsyFlags(t)&117632&&isValidSpreadType(removeDefinitelyFalsyTypes(t))||t.flags&3145728&&e.every(t.types,isValidSpreadType))}function checkJsxSelfClosingElementDeferred(e){checkJsxOpeningLikeElementOrOpeningFragment(e)}function checkJsxSelfClosingElement(e,t){checkNodeDeferred(e);return getJsxElementTypeAt(e)||X}function checkJsxElementDeferred(e){checkJsxOpeningLikeElementOrOpeningFragment(e.openingElement);if(isJsxIntrinsicIdentifier(e.closingElement.tagName)){getIntrinsicTagSymbol(e.closingElement)}else{checkExpression(e.closingElement.tagName)}checkJsxChildren(e)}function checkJsxElement(e,t){checkNodeDeferred(e);return getJsxElementTypeAt(e)||X}function checkJsxFragment(t){checkJsxOpeningLikeElementOrOpeningFragment(t.openingFragment);if(x.jsx===2&&(x.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))){error(t,x.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma)}checkJsxChildren(t);return getJsxElementTypeAt(t)||X}function isUnhyphenatedJsxName(t){return!e.stringContains(t,"-")}function isJsxIntrinsicIdentifier(t){return t.kind===72&&e.isIntrinsicJsxName(t.escapedText)}function checkJsxAttribute(e,t){return e.initializer?checkExpressionForMutableLocation(e.initializer,t):fe}function createJsxAttributesTypeFromAttributesProperty(t,r){var n=t.attributes;var i=e.createSymbolTable();var a=Ce;var o=false;var s;var c=false;var u=0;var l=4096;var f=getJsxElementChildrenPropertyName(getJsxNamespaceAt(t));for(var d=0,p=n.properties;d<p.length;d++){var g=p[d];var _=g.symbol;if(e.isJsxAttribute(g)){var m=checkJsxAttribute(g,r);u|=m.flags&939524096;var y=createSymbol(4|33554432|_.flags,_.escapedName);y.declarations=_.declarations;y.parent=_.parent;if(_.valueDeclaration){y.valueDeclaration=_.valueDeclaration}y.type=m;y.target=_;i.set(y.escapedName,y);if(g.name.escapedText===f){c=true}}else{e.Debug.assert(g.kind===269);if(i.size>0){a=getSpreadType(a,createJsxAttributesType(),n.symbol,u,l);i=e.createSymbolTable()}var m=checkExpressionCached(g.expression,r);if(isTypeAny(m)){o=true}if(isValidSpreadType(m)){a=getSpreadType(a,m,n.symbol,u,l)}else{s=s?getIntersectionType([s,m]):m}}}if(!o){if(i.size>0){a=getSpreadType(a,createJsxAttributesType(),n.symbol,u,l)}}var h=t.parent.kind===260?t.parent:undefined;if(h&&h.openingElement===t&&h.children.length>0){var v=checkJsxChildren(h,r);if(!o&&f&&f!==""){if(c){error(n,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(f))}var T=getApparentTypeOfContextualType(t.attributes);var S=T&&getTypeOfPropertyOfContextualType(T,f);var b=createSymbol(4|33554432,f);b.type=v.length===1?v[0]:getArrayLiteralTupleTypeIfApplicable(v,S,false)||createArrayType(getUnionType(v));var x=e.createSymbolTable();x.set(f,b);a=getSpreadType(a,createAnonymousType(n.symbol,x,e.emptyArray,e.emptyArray,undefined,undefined),n.symbol,u,l)}}if(o){return X}if(s&&a!==Ce){return getIntersectionType([s,a])}return s||(a===Ce?createJsxAttributesType():a);function createJsxAttributesType(){l|=w;var t=createAnonymousType(n.symbol,i,e.emptyArray,e.emptyArray,undefined,undefined);t.flags|=268435456|u;t.objectFlags|=128|l;return t}}function checkJsxChildren(e,t){var r=[];for(var n=0,i=e.children;n<i.length;n++){var a=i[n];if(a.kind===11){if(!a.containsOnlyWhiteSpaces){r.push(oe)}}else{r.push(checkExpressionForMutableLocation(a,t))}}return r}function checkJsxAttributes(e,t){return createJsxAttributesTypeFromAttributesProperty(e.parent,t)}function getJsxType(e,t){var r=getJsxNamespaceAt(t);var n=r&&getExportsOfSymbol(r);var i=n&&getSymbol(n,e,67897832);return i?getDeclaredTypeOfSymbol(i):ee}function getIntrinsicTagSymbol(t){var r=getNodeLinks(t);if(!r.resolvedSymbol){var n=getJsxType(c.IntrinsicElements,t);if(n!==ee){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=getPropertyOfType(n,t.tagName.escapedText);if(i){r.jsxFlags|=1;return r.resolvedSymbol=i}var a=getIndexTypeOfType(n,0);if(a){r.jsxFlags|=2;return r.resolvedSymbol=n.symbol}error(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+c.IntrinsicElements);return r.resolvedSymbol=Q}else{if(F){error(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(c.IntrinsicElements))}return r.resolvedSymbol=Q}}return r.resolvedSymbol}function getJsxNamespaceAt(e){var t=e&&getNodeLinks(e);if(t&&t.jsxNamespace){return t.jsxNamespace}if(!t||t.jsxNamespace!==false){var r=getJsxNamespace(e);var n=resolveName(e,r,1920,undefined,r,false);if(n){var i=getSymbol(getExportsOfSymbol(resolveSymbol(n)),c.JSX,1920);if(i){if(t){t.jsxNamespace=i}return i}if(t){t.jsxNamespace=false}}}return getGlobalSymbol(c.JSX,1920,undefined)}function getNameFromJsxElementAttributesContainer(t,r){var n=r&&getSymbol(r.exports,t,67897832);var i=n&&getDeclaredTypeOfSymbol(n);var a=i&&getPropertiesOfType(i);if(a){if(a.length===0){return""}else if(a.length===1){return a[0].escapedName}else if(a.length>1){error(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}return undefined}function getJsxLibraryManagedAttributes(e){return e&&getSymbol(e.exports,c.LibraryManagedAttributes,67897832)}function getJsxElementPropertiesName(e){return getNameFromJsxElementAttributesContainer(c.ElementAttributesPropertyNameContainer,e)}function getJsxElementChildrenPropertyName(e){return getNameFromJsxElementAttributesContainer(c.ElementChildrenAttributeNameContainer,e)}function getUninstantiatedJsxSignaturesOfType(t,r){if(t.flags&4){return[Le]}else if(t.flags&128){var n=getIntrinsicAttributesTypeFromStringLiteralType(t,r);if(!n){error(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+c.IntrinsicElements);return e.emptyArray}else{var i=createSignatureForJSXIntrinsic(r,n);return[i]}}var a=getApparentType(t);var o=getSignaturesOfType(a,1);if(o.length===0){o=getSignaturesOfType(a,0)}if(o.length===0&&a.flags&1048576){o=getUnionSignatures(e.map(a.types,function(e){return getUninstantiatedJsxSignaturesOfType(e,r)}))}return o}function getIntrinsicAttributesTypeFromStringLiteralType(t,r){var n=getJsxType(c.IntrinsicElements,r);if(n!==ee){var i=t.value;var a=getPropertyOfType(n,e.escapeLeadingUnderscores(i));if(a){return getTypeOfSymbol(a)}var o=getIndexTypeOfType(n,0);if(o){return o}return undefined}return X}function checkJsxReturnAssignableToAppropriateBound(t,r,n){if(t===1){var i=getJsxStatelessElementTypeAt(n);if(i){checkTypeRelatedTo(r,i,sr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}else if(t===0){var a=getJsxElementClassTypeAt(n);if(a){checkTypeRelatedTo(r,a,sr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}else{var i=getJsxStatelessElementTypeAt(n);var a=getJsxElementClassTypeAt(n);if(!i||!a){return}var o=getUnionType([i,a]);checkTypeRelatedTo(r,o,sr,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(t){e.Debug.assert(isJsxIntrinsicIdentifier(t.tagName));var r=getNodeLinks(t);if(!r.resolvedJsxElementAttributesType){var n=getIntrinsicTagSymbol(t);if(r.jsxFlags&1){return r.resolvedJsxElementAttributesType=getTypeOfSymbol(n)}else if(r.jsxFlags&2){return r.resolvedJsxElementAttributesType=getIndexInfoOfSymbol(n,0).type}else{return r.resolvedJsxElementAttributesType=ee}}return r.resolvedJsxElementAttributesType}function getJsxElementClassTypeAt(e){var t=getJsxType(c.ElementClass,e);if(t===ee)return undefined;return t}function getJsxElementTypeAt(e){return getJsxType(c.Element,e)}function getJsxStatelessElementTypeAt(e){var t=getJsxElementTypeAt(e);if(t){return getUnionType([t,ie])}}function getJsxIntrinsicTagNamesAt(t){var r=getJsxType(c.IntrinsicElements,t);return r?getPropertiesOfType(r):e.emptyArray}function checkJsxPreconditions(t){if((x.jsx||0)===0){error(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided)}if(getJsxElementTypeAt(t)===undefined){if(F){error(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}}}function checkJsxOpeningLikeElementOrOpeningFragment(t){var r=e.isJsxOpeningLikeElement(t);if(r){checkGrammarJsxElement(t)}checkJsxPreconditions(t);var n=Xt&&x.jsx===2?e.Diagnostics.Cannot_find_name_0:undefined;var i=getJsxNamespace(t);var a=r?t.tagName:t;var o=resolveName(a,i,67220415,n,i,true);if(o){o.isReferenced=67108863;if(o.flags&2097152&&!isConstEnumOrConstEnumOnlyModule(resolveAlias(o))){markAliasSymbolAsReferenced(o)}}if(r){var s=getResolvedSignature(t);checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(t),getReturnTypeOfSignature(s),t)}}function isKnownProperty(e,t,r){if(e.flags&524288){var n=resolveStructuredTypeMembers(e);if(n.stringIndexInfo||n.numberIndexInfo&&isNumericLiteralName(t)||getPropertyOfObjectType(e,t)||r&&!isUnhyphenatedJsxName(t)){return true}}else if(e.flags&3145728){for(var i=0,a=e.types;i<a.length;i++){var o=a[i];if(isKnownProperty(o,t,r)){return true}}}else if(e.flags&16777216){return isKnownProperty(e.root.trueType,t,r)||isKnownProperty(e.root.falseType,t,r)}return false}function checkJsxExpression(t,r){if(t.expression){var n=checkExpression(t.expression,r);if(t.dotDotDotToken&&n!==X&&!isArrayType(n)){error(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type)}return n}else{return ee}}function getDeclarationNodeFlagsFromSymbol(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function isPrototypeProperty(t){if(t.flags&8192||e.getCheckFlags(t)&4){return true}if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===3}}function checkPropertyAccessibility(t,r,n,i){var a=e.getDeclarationModifierFlagsFromSymbol(i);var o=t.kind===148?t.right:t.kind===183?t:t.name;if(e.getCheckFlags(i)&256){error(o,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,symbolToString(i),typeToString(n));return false}if(r){if(C<2){if(symbolHasNonMethodDeclaration(i)){error(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword);return false}}if(a&128){error(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,symbolToString(i),typeToString(getDeclaringClass(i)));return false}}if(a&128&&e.isThisProperty(t)&&symbolHasNonMethodDeclaration(i)){var s=e.getClassLikeDeclarationOfSymbol(getParentOfSymbol(i));if(s&&isNodeUsedDuringClassInitialization(t)){error(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,symbolToString(i),e.getTextOfIdentifierOrLiteral(s.name));return false}}if(!(a&24)){return true}if(a&8){var s=e.getClassLikeDeclarationOfSymbol(getParentOfSymbol(i));if(!isNodeWithinClass(t,s)){error(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,symbolToString(i),typeToString(getDeclaringClass(i)));return false}return true}if(r){return true}var c=forEachEnclosingClass(t,function(e){var t=getDeclaredTypeOfSymbol(getSymbolOfNode(e));return isClassDerivedFromDeclaringClasses(t,i)?t:undefined});if(!c){var u=void 0;if(a&32||!(u=getThisParameterFromNodeContext(t))||!u.type){error(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,symbolToString(i),typeToString(getDeclaringClass(i)||n));return false}var l=getTypeFromTypeNode(u.type);c=l.flags&262144?getConstraintOfTypeParameter(l):l}if(a&32){return true}if(n.flags&262144){n=n.isThisType?getConstraintOfTypeParameter(n):getBaseConstraintOfType(n)}if(!n||!hasBaseType(n,c)){error(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,symbolToString(i),typeToString(c));return false}return true}function getThisParameterFromNodeContext(t){var r=e.getThisContainer(t,false);return r&&e.isFunctionLike(r)?e.getThisParameter(r):undefined}function symbolHasNonMethodDeclaration(e){return!!forEachProperty(e,function(e){return!(e.flags&8192)})}function checkNonNullExpression(e,t,r,n){return checkNonNullType(checkExpression(e),e,t,r,n)}function getNonNullableTypeIfNeeded(e){var t=(k?getFalsyFlags(e):e.flags)&98304;if(t){return getNonNullableType(e)}return e}function checkNonNullType(t,r,n,i,a){if(t.flags&2){error(r,e.Diagnostics.Object_is_of_type_unknown);return ee}var o=(k?getFalsyFlags(t):t.flags)&98304;if(o){error(r,o&32768?o&65536?a||e.Diagnostics.Object_is_possibly_null_or_undefined:i||e.Diagnostics.Object_is_possibly_undefined:n||e.Diagnostics.Object_is_possibly_null);var s=getNonNullableType(t);return s.flags&(98304|131072)?ee:s}return t}function checkPropertyAccessExpression(e){return checkPropertyAccessExpressionOrQualifiedName(e,e.expression,e.name)}function checkQualifiedName(e){return checkPropertyAccessExpressionOrQualifiedName(e,e.left,e.right)}function checkPropertyAccessExpressionOrQualifiedName(t,r,n){var i;var a=checkNonNullExpression(r);var o=getNodeLinks(r).resolvedSymbol;var s=getApparentType(getWidenedType(a));if(isTypeAny(s)||s===ye){if(e.isIdentifier(r)&&o){markAliasReferenced(o,t)}return s}var c=e.getAssignmentTargetKind(t);var u=getPropertyOfType(s,n.escapedText);if(e.isIdentifier(r)&&o&&!(u&&isConstEnumOrConstEnumOnlyModule(u))){markAliasReferenced(o,t)}if(!u){var l=getIndexInfoOfType(s,0);if(!(l&&l.type)){if(isJSLiteralType(a)){return X}if(n.escapedText&&!checkAndReportErrorForExtendingInterface(t)){reportNonexistentProperty(n,a.flags&262144&&a.isThisType?s:a)}return ee}if(l.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))){error(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,typeToString(s))}i=l.type}else{checkPropertyNotUsedBeforeDeclaration(u,t,n);markPropertyAsReferenced(u,t,r.kind===100);getNodeLinks(t).resolvedSymbol=u;checkPropertyAccessibility(t,r.kind===98,s,u);if(c){if(isReferenceToReadonlyEntity(t,u)||isReferenceThroughNamespaceImport(t)){error(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(n));return ee}}i=getConstraintForLocation(getTypeOfSymbol(u),t)}if(t.kind!==189||c===1||u&&!(u.flags&(3|4|98304))&&!(u.flags&8192&&i.flags&1048576)){return i}var f=false;if(k&&O&&r.kind===100){var d=u&&u.valueDeclaration;if(d&&isInstancePropertyWithoutInitializer(d)){var p=getControlFlowContainer(t);if(p.kind===157&&p.parent===d.parent){f=true}}}else if(k&&u&&u.valueDeclaration&&e.isPropertyAccessExpression(u.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(u.valueDeclaration)&&getControlFlowContainer(t)===getControlFlowContainer(u.valueDeclaration)){f=true}var g=getFlowTypeOfReference(t,i,f?getOptionalType(i):i);if(f&&!(getFalsyFlags(i)&32768)&&getFalsyFlags(g)&32768){error(n,e.Diagnostics.Property_0_is_used_before_being_assigned,symbolToString(u));return i}return c?getBaseTypeOfLiteralType(g):g}function checkPropertyNotUsedBeforeDeclaration(t,r,n){var i=t.valueDeclaration;if(!i){return}var a;var o=e.idText(n);if(isInPropertyInitializer(r)&&!isBlockScopedNameDeclaredBeforeUse(i,n)&&!isPropertyDeclaredInAncestorClass(t)){a=error(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o)}else if(i.kind===240&&r.parent.kind!==164&&!(i.flags&4194304)&&!isBlockScopedNameDeclaredBeforeUse(i,n)){a=error(n,e.Diagnostics.Class_0_used_before_its_declaration,o)}if(a){addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}function isInPropertyInitializer(t){return!!e.findAncestor(t,function(t){switch(t.kind){case 154:return true;case 275:return false;default:return e.isExpressionNode(t)?false:"quit"}})}function isPropertyDeclaredInAncestorClass(e){if(!(e.parent.flags&32)){return false}var t=getTypeOfSymbol(e.parent);while(true){t=t.symbol&&getSuperClass(t);if(!t){return false}var r=getPropertyOfType(t,e.escapedName);if(r&&r.valueDeclaration){return true}}}function getSuperClass(e){var t=getBaseTypes(e);if(t.length===0){return undefined}return getIntersectionType(t)}function reportNonexistentProperty(t,r){var n;var i;if(r.flags&1048576&&!(r.flags&131068)){for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!getPropertyOfType(s,t.escapedText)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),typeToString(s));break}}}if(typeHasStaticProperty(t.escapedText,r)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(t),typeToString(r))}else{var c=getPromisedTypeOfPromise(r);if(c&&getPropertyOfType(c,t.escapedText)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await,e.declarationNameToString(t),typeToString(r))}else{var u=getSuggestedSymbolForNonexistentProperty(t,r);if(u!==undefined){var l=e.symbolName(u);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),typeToString(r),l);i=u.valueDeclaration&&e.createDiagnosticForNode(u.valueDeclaration,e.Diagnostics._0_is_declared_here,l)}else{n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),typeToString(r))}}}var f=e.createDiagnosticForNodeFromMessageChain(t,n);if(i){addRelatedInfo(f,i)}Xt.add(f)}function typeHasStaticProperty(t,r){var n=r.symbol&&getPropertyOfType(getTypeOfSymbol(r.symbol),t);return n!==undefined&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,32)}function getSuggestedSymbolForNonexistentProperty(t,r){return getSpellingSuggestionForName(e.isString(t)?t:e.idText(t),getPropertiesOfType(r),67220415)}function getSuggestionForNonexistentProperty(t,r){var n=getSuggestedSymbolForNonexistentProperty(t,r);return n&&e.symbolName(n)}function getSuggestedSymbolForNonexistentSymbol(t,r,n){e.Debug.assert(r!==undefined,"outername should always be defined");var i=resolveNameHelper(t,r,n,undefined,r,false,false,function(t,n,i){e.Debug.assertEqual(r,n,"name should equal outerName");var a=getSymbol(t,n,i);return a||getSpellingSuggestionForName(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)});return i}function getSuggestionForNonexistentSymbol(t,r,n){var i=getSuggestedSymbolForNonexistentSymbol(t,r,n);return i&&e.symbolName(i)}function getSuggestedSymbolForNonexistentModule(t,r){return r.exports&&getSpellingSuggestionForName(e.idText(t),getExportsOfModuleAsArray(r),2623475)}function getSuggestionForNonexistentExport(t,r){var n=getSuggestedSymbolForNonexistentModule(t,r);return n&&e.symbolName(n)}function getSpellingSuggestionForName(t,r,n){return e.getSpellingSuggestion(t,r,getCandidateName);function getCandidateName(t){var r=e.symbolName(t);return!e.startsWith(r,'"')&&t.flags&n?r:undefined}}function markPropertyAsReferenced(t,r,n){if(!t||!(t.flags&106500)||!t.valueDeclaration||!e.hasModifier(t.valueDeclaration,8)){return}if(r&&e.isWriteOnlyAccess(r)&&!(t.flags&65536&&!(t.flags&32768))){return}if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);if(i&&i.symbol===t){return}}(e.getCheckFlags(t)&1?getSymbolLinks(t).target:t).isReferenced=67108863}function isValidPropertyAccess(e,t){switch(e.kind){case 189:return isValidPropertyAccessWithType(e,e.expression.kind===98,t,getWidenedType(checkExpression(e.expression)));case 148:return isValidPropertyAccessWithType(e,false,t,getWidenedType(checkExpression(e.left)));case 183:return isValidPropertyAccessWithType(e,false,t,getTypeFromTypeNode(e))}}function isValidPropertyAccessForCompletions(e,t,r){return isValidPropertyAccessWithType(e,e.kind!==183&&e.expression.kind===98,r.escapedName,t)&&(!(r.flags&8192)||isValidMethodAccess(r,t))}function isValidMethodAccess(t,r){var n=getTypeOfPropertyOfType(r,t.escapedName);var i=getSignaturesOfType(getNonNullableType(n),0);e.Debug.assert(i.length!==0);return i.some(function(e){var t=getThisTypeOfSignature(e);return!t||isTypeAssignableTo(r,getInstantiatedSignatureThisType(e,t,r))})}function getInstantiatedSignatureThisType(e,t,r){if(!e.typeParameters){return t}var n=createInferenceContext(e.typeParameters,e,0);inferTypes(n.inferences,r,t);return instantiateType(t,createSignatureTypeMapper(e,getInferredTypes(n)))}function isValidPropertyAccessWithType(t,r,n,i){if(i===ee||isTypeAny(i)){return true}var a=getPropertyOfType(i,n);return a?checkPropertyAccessibility(t,r,i,a):e.isInJSFile(t)&&(i.flags&1048576)!==0&&i.types.some(function(e){return isValidPropertyAccessWithType(t,r,n,e)})}function getForInVariableSymbol(t){var r=t.initializer;if(r.kind===238){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name)){return getSymbolOfNode(n)}}else if(r.kind===72){return getResolvedSymbol(r)}return undefined}function hasNumericPropertyNames(e){return getIndexTypeOfType(e,1)&&!getIndexTypeOfType(e,0)}function isForInVariableForNumericPropertyNames(t){var r=e.skipParentheses(t);if(r.kind===72){var n=getResolvedSymbol(r);if(n.flags&3){var i=t;var a=t.parent;while(a){if(a.kind===226&&i===a.statement&&getForInVariableSymbol(a)===n&&hasNumericPropertyNames(getTypeOfExpression(a.expression))){return true}i=a;a=a.parent}}}return false}function checkIndexedAccess(t){var r=checkNonNullExpression(t.expression);var n=t.argumentExpression;if(!n){var i=e.getSourceFileOfNode(t);if(t.parent.kind===192&&t.parent.expression===t){var a=e.skipTrivia(i.text,t.expression.end);var o=t.end;grammarErrorAtPos(i,a,o-a,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead)}else{var a=t.end-"]".length;var o=t.end;grammarErrorAtPos(i,a,o-a,e.Diagnostics.Expression_expected)}return ee}var s=checkExpression(n);if(r===ee||r===ye){return r}if(isConstEnumObjectType(r)&&n.kind!==10){error(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal);return ee}return checkIndexedAccessIndexType(getIndexedAccessType(r,isForInVariableForNumericPropertyNames(n)?se:s,t),t)}function checkThatExpressionIsProperSymbolReference(t,r,n){if(r===ee){return false}if(!e.isWellKnownSymbolSyntactically(t)){return false}if((r.flags&12288)===0){if(n){error(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t))}return false}var i=t.expression;var a=getResolvedSymbol(i);if(!a){return false}var o=getGlobalESSymbolConstructorSymbol(true);if(!o){return false}if(a!==o){if(n){error(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object)}return false}return true}function callLikeExpressionMayHaveTypeArguments(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function resolveUntypedCall(t){if(callLikeExpressionMayHaveTypeArguments(t)){e.forEach(t.typeArguments,checkSourceElement)}if(t.kind===193){checkExpression(t.template)}else if(e.isJsxOpeningLikeElement(t)){checkExpression(t.attributes)}else if(t.kind!==152){e.forEach(t.arguments,function(e){checkExpression(e)})}return Le}function resolveErrorCall(e){resolveUntypedCall(e);return Re}function reorderCandidates(t,r){var n;var i;var a=0;var o;var s=-1;var c;e.Debug.assert(!r.length);for(var u=0,l=t;u<l.length;u++){var f=l[u];var d=f.declaration&&getSymbolOfNode(f.declaration);var p=f.declaration&&f.declaration.parent;if(!i||d===i){if(n&&p===n){o=o+1}else{n=p;o=a}}else{o=a=r.length;n=p}i=d;if(f.hasLiteralTypes){s++;c=s;a++}else{c=o}r.splice(c,0,f)}}function isSpreadArgument(e){return!!e&&(e.kind===208||e.kind===215&&e.isSpread)}function getSpreadArgumentIndex(t){return e.findIndex(t,isSpreadArgument)}function acceptsVoid(e){return!!(e.flags&16384)}function hasCorrectArity(t,r,n,i){if(i===void 0){i=false}var a;var o=false;var s=getParameterCount(n);var c=getMinArgumentCount(n);if(t.kind===193){a=r.length;if(t.template.kind===206){var u=e.last(t.template.templateSpans);o=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(l.kind===14);o=!!l.isUnterminated}}else if(t.kind===152){a=getDecoratorArgumentCount(t,n)}else if(e.isJsxOpeningLikeElement(t)){o=t.attributes.end===t.end;if(o){return true}a=c===0?r.length:1;s=r.length===0?s:1;c=Math.min(c,1)}else{if(!t.arguments){e.Debug.assert(t.kind===192);return getMinArgumentCount(n)===0}a=i?r.length+1:r.length;o=t.arguments.end===t.end;var f=getSpreadArgumentIndex(r);if(f>=0){return f>=getMinArgumentCount(n)&&(hasEffectiveRestParameter(n)||f<getParameterCount(n))}}if(!hasEffectiveRestParameter(n)&&a>s){return false}if(o||a>=c){return true}for(var d=a;d<c;d++){var p=getTypeAtPosition(n,d);if(filterType(p,acceptsVoid).flags&131072){return false}}return true}function hasCorrectTypeArgumentArity(t,r){var n=e.length(t.typeParameters);var i=getMinTypeArgumentCount(t.typeParameters);return!r||r.length>=i&&r.length<=n}function getSingleCallSignature(e){if(e.flags&524288){var t=resolveStructuredTypeMembers(e);if(t.callSignatures.length===1&&t.constructSignatures.length===0&&t.properties.length===0&&!t.stringIndexInfo&&!t.numberIndexInfo){return t.callSignatures[0]}}return undefined}function instantiateSignatureInContextOf(t,r,n,i){var a=createInferenceContext(t.typeParameters,t,0,i);var o=n?instantiateSignature(r,n):r;forEachMatchingParameterType(o,t,function(e,t){inferTypes(a.inferences,e,t)});if(!n){inferTypes(a.inferences,getReturnTypeOfSignature(r),getReturnTypeOfSignature(t),8)}return getSignatureInstantiation(t,getInferredTypes(a),e.isInJSFile(r.declaration))}function inferJsxTypeArguments(e,t,r,n){var i=getEffectiveFirstArgumentForJsxSignature(t,e);var a=checkExpressionWithContextualType(e.attributes,i,r&&r[0]!==undefined?b:n);inferTypes(n.inferences,a,i);return getInferredTypes(n)}function inferTypeArguments(t,r,n,i,a){for(var o=0,s=a.inferences;o<s.length;o++){var c=s[o];if(!c.isFixed){c.inferredType=undefined}}if(e.isJsxOpeningLikeElement(t)){return inferJsxTypeArguments(t,r,i,a)}if(t.kind!==152){var u=getContextualType(t);if(u){var l=instantiateType(u,cloneTypeMapper(getContextualMapper(t)));var f=getSingleCallSignature(l);var d=f&&f.typeParameters?getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(f,f.typeParameters)):l;var p=getReturnTypeOfSignature(r);inferTypes(a.inferences,d,p,8)}}var g=getThisTypeOfSignature(r);if(g){var _=getThisArgumentOfCall(t);var m=_?checkExpression(_):_e;inferTypes(a.inferences,m,g)}var y=getNonArrayRestType(r);var h=y?Math.min(getParameterCount(r)-1,n.length):n.length;for(var v=0;v<h;v++){var T=n[v];if(T.kind!==210){var S=getTypeAtPosition(r,v);var x=i&&i[v]!==undefined?b:a;var C=checkExpressionWithContextualType(T,S,x);inferTypes(a.inferences,C,S)}}if(y){var E=getSpreadArgumentType(n,h,n.length,y,a);inferTypes(a.inferences,E,y)}return getInferredTypes(a)}function getArrayifiedType(e){if(forEachType(e,function(e){return!(e.flags&(1|63176704)||isArrayType(e)||isTupleType(e))})){return createArrayType(getIndexTypeOfType(e,1)||ee)}return e}function getSpreadArgumentType(t,r,n,i,a){if(r>=n-1){var o=t[n-1];if(isSpreadArgument(o)){return o.kind===215?createArrayType(o.type):getArrayifiedType(checkExpressionWithContextualType(o.expression,i,a))}}var s=getIndexTypeOfType(i,1)||X;var c=maybeTypeOfKind(s,131068|4194304);var u=[];var l=-1;for(var f=r;f<n;f++){var d=checkExpressionWithContextualType(t[f],s,a);if(l<0&&isSpreadArgument(t[f])){l=f-r}u.push(c?getRegularTypeOfLiteralType(d):getWidenedLiteralType(d))}return l<0?createTupleType(u):createTupleType(e.append(u.slice(0,l),getUnionType(u.slice(l))),l,true)}function checkTypeArguments(t,r,n,i){var a=e.isInJSFile(t.declaration);var o=t.typeParameters;var s=fillMissingTypeArguments(e.map(r,getTypeFromTypeNode),o,getMinTypeArgumentCount(o),a);var c;for(var u=0;u<r.length;u++){e.Debug.assert(o[u]!==undefined,"Should not call checkTypeArguments with too many type arguments");var l=getConstraintOfTypeParameter(o[u]);if(l){var f=n&&i?function(){return e.chainDiagnosticMessages(undefined,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:undefined;var d=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;if(!c){c=createTypeMapper(o,s)}var p=s[u];if(!checkTypeAssignableTo(p,getTypeWithThisArgument(instantiateType(l,c),p),n?r[u]:undefined,d,f)){return undefined}}}return s}function getJsxReferenceKind(t){if(isJsxIntrinsicIdentifier(t.tagName)){return 2}var r=getApparentType(checkExpression(t.tagName));if(e.length(getSignaturesOfType(r,1))){return 0}if(e.length(getSignaturesOfType(r,0))){return 1}return 2}function checkApplicableSignatureForJsxOpeningLikeElement(e,t,r,n,i){var a=getEffectiveFirstArgumentForJsxSignature(t,e);var o=checkExpressionWithContextualType(e.attributes,a,n&&n[0]?b:undefined);return checkTypeRelatedToAndOptionallyElaborate(o,a,r,i?e.tagName:undefined,e.attributes)}function checkApplicableSignature(t,r,n,i,a,o){if(e.isJsxOpeningLikeElement(t)){return checkApplicableSignatureForJsxOpeningLikeElement(t,n,i,a,o)}var s=getThisTypeOfSignature(n);if(s&&s!==_e&&t.kind!==192){var c=getThisArgumentOfCall(t);var u=c?checkExpression(c):_e;var l=o?c||t:undefined;var f=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!checkTypeRelatedTo(u,s,i,l,f)){return false}}var d=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1;var p=getNonArrayRestType(n);var g=p?Math.min(getParameterCount(n)-1,r.length):r.length;for(var _=0;_<g;_++){var m=r[_];if(m.kind!==210){var y=getTypeAtPosition(n,_);var h=checkExpressionWithContextualType(m,y,a&&a[_]?b:undefined);var v=a?getRegularTypeOfObjectLiteral(h):h;if(!checkTypeRelatedToAndOptionallyElaborate(v,y,i,o?m:undefined,m,d)){return false}}}if(p){var T=getSpreadArgumentType(r,g,r.length,p,undefined);var l=o?g<r.length?r[g]:t:undefined;return checkTypeRelatedTo(T,p,i,l,d)}return true}function getThisArgumentOfCall(t){if(t.kind===191){var r=e.skipOuterExpressions(t.expression);if(r.kind===189||r.kind===190){return r.expression}}}function createSyntheticExpression(t,r,n){var i=e.createNode(215,t.pos,t.end);i.parent=t;i.type=r;i.isSpread=n||false;return i}function getEffectiveCallArguments(t){if(t.kind===193){var r=t.template;var n=[createSyntheticExpression(r,getGlobalTemplateStringsArrayType())];if(r.kind===206){e.forEach(r.templateSpans,function(e){n.push(e.expression)})}return n}if(t.kind===152){return getEffectiveDecoratorArguments(t)}if(e.isJsxOpeningLikeElement(t)){return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray}var i=t.arguments||e.emptyArray;var a=i.length;if(a&&isSpreadArgument(i[a-1])&&getSpreadArgumentIndex(i)===a-1){var o=i[a-1];var s=checkExpressionCached(o.expression);if(isTupleType(s)){var c=s.typeArguments||e.emptyArray;var u=s.target.hasRestElement?c.length-1:-1;var l=e.map(c,function(e,t){return createSyntheticExpression(o,e,t===u)});return e.concatenate(i.slice(0,a-1),l)}}return i}function getEffectiveDecoratorArguments(t){var r=t.parent;var n=t.expression;switch(r.kind){case 240:case 209:return[createSyntheticExpression(n,getTypeOfSymbol(getSymbolOfNode(r)))];case 151:var i=r.parent;return[createSyntheticExpression(n,r.parent.kind===157?getTypeOfSymbol(getSymbolOfNode(i)):ee),createSyntheticExpression(n,X),createSyntheticExpression(n,se)];case 154:case 156:case 158:case 159:var a=r.kind!==154&&C!==0;return[createSyntheticExpression(n,getParentTypeOfClassElement(r)),createSyntheticExpression(n,getClassElementPropertyKeyType(r)),createSyntheticExpression(n,a?createTypedPropertyDescriptorType(getTypeOfNode(r)):X)]}return e.Debug.fail()}function getDecoratorArgumentCount(t,r){switch(t.parent.kind){case 240:case 209:return 1;case 154:return 2;case 156:case 158:case 159:return C===0||r.parameters.length<=2?2:3;case 151:return 3;default:return e.Debug.fail()}}function getArgumentArityError(t,r,n){var i=Number.POSITIVE_INFINITY;var a=Number.NEGATIVE_INFINITY;var o=Number.NEGATIVE_INFINITY;var s=Number.POSITIVE_INFINITY;var c=n.length;var u;for(var l=0,f=r;l<f.length;l++){var d=f[l];var p=getMinArgumentCount(d);var g=getParameterCount(d);if(p<c&&p>o)o=p;if(c<g&&g<s)s=g;if(p<i){i=p;u=d}a=Math.max(a,g)}var _=e.some(r,hasEffectiveRestParameter);var m=_?i:i<a?i+"-"+a:i;var y=getSpreadArgumentIndex(n)>-1;if(c<=a&&y){c--}var h;if(u&&getMinArgumentCount(u)>c&&u.declaration){var v=u.declaration.parameters[u.thisParameter?c+1:c];if(v){h=e.createDiagnosticForNode(v,e.isBindingPattern(v.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,!v.name?c:!e.isBindingPattern(v.name)?e.idText(getFirstIdentifier(v.name)):undefined)}}if(_||y){var T=_&&y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:_?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more;var S=e.createDiagnosticForNode(t,T,m,c);return h?addRelatedInfo(S,h):S}if(i<c&&c<a){return e.createDiagnosticForNode(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,o,s)}var b=e.createDiagnosticForNode(t,e.Diagnostics.Expected_0_arguments_but_got_1,m,c);return h?addRelatedInfo(b,h):b}function getTypeArgumentArityError(t,r,n){var i=Infinity;var a=-Infinity;for(var o=0,s=r;o<s.length;o++){var c=s[o];i=Math.min(i,getMinTypeArgumentCount(c.typeParameters));a=Math.max(a,e.length(c.typeParameters))}var u=i===a?i:i+"-"+a;return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,u,n.length)}function resolveCall(t,r,n,i,o){var s=t.kind===193;var c=t.kind===152;var u=e.isJsxOpeningLikeElement(t);var l=!n;var f;if(!c){f=t.typeArguments;if(s||u||t.expression.kind!==98){e.forEach(f,checkSourceElement)}}var d=n||[];reorderCandidates(r,d);if(!d.length){if(l){Xt.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures))}return resolveErrorCall(t)}var p=getEffectiveCallArguments(t);var g=d.length===1&&!d[0].typeParameters;var _=!c&&!g?getExcludeArgument(p):undefined;var m;var y;var h;var v;var T=i&&t.kind===191&&t.arguments.hasTrailingComma;if(d.length>1){v=chooseOverload(d,or,T)}if(!v){v=chooseOverload(d,sr,T)}if(v){return v}if(l){if(m){checkApplicableSignature(t,p,m,sr,undefined,true)}else if(y){Xt.add(getArgumentArityError(t,[y],p))}else if(h){checkTypeArguments(h,t.typeArguments,true,o)}else{var S=e.filter(r,function(e){return hasCorrectTypeArgumentArity(e,f)});if(S.length===0){Xt.add(getTypeArgumentArityError(t,r,f))}else if(!c){Xt.add(getArgumentArityError(t,S,p))}else if(o){Xt.add(e.createDiagnosticForNode(t,o))}}}return a||!p?resolveErrorCall(t):getCandidateForOverloadFailure(t,d,p,!!n);function chooseOverload(r,n,i){if(i===void 0){i=false}m=undefined;y=undefined;h=undefined;if(g){var a=r[0];if(f||!hasCorrectArity(t,p,a,i)){return undefined}if(!checkApplicableSignature(t,p,a,n,_,false)){m=a;return undefined}return a}for(var o=0;o<r.length;o++){var a=r[o];if(!hasCorrectTypeArgumentArity(a,f)||!hasCorrectArity(t,p,a,i)){continue}var s=void 0;var c=void 0;if(a.typeParameters){var u=void 0;if(f){u=checkTypeArguments(a,f,false);if(!u){h=a;continue}}else{c=createInferenceContext(a.typeParameters,a,e.isInJSFile(t)?2:0);u=inferTypeArguments(t,a,p,_,c)}s=getSignatureInstantiation(a,u,e.isInJSFile(a.declaration));if(getNonArrayRestType(a)&&!hasCorrectArity(t,p,s,i)){y=s;continue}}else{s=a}if(!checkApplicableSignature(t,p,s,n,_,false)){if(!m||getEffectiveRestType(m)||!getEffectiveRestType(s)){m=s}continue}if(_){_=undefined;if(c){var u=inferTypeArguments(t,a,p,_,c);s=getSignatureInstantiation(a,u,e.isInJSFile(a.declaration))}if(!checkApplicableSignature(t,p,s,n,_,false)){if(!m||getEffectiveRestType(m)||!getEffectiveRestType(s)){m=s}continue}}r[o]=s;return s}return undefined}}function getExcludeArgument(e){var t;for(var r=0;r<e.length;r++){if(isContextSensitive(e[r])){if(!t){t=new Array(e.length)}t[r]=true}}return t}function getCandidateForOverloadFailure(t,r,n,i){e.Debug.assert(r.length>0);return i||r.length===1||r.some(function(e){return!!e.typeParameters})?pickLongestCandidateSignature(t,r,n):createUnionOfSignaturesForOverloadFailure(r)}function createUnionOfSignaturesForOverloadFailure(t){var r=e.mapDefined(t,function(e){return e.thisParameter});var n;if(r.length){n=createCombinedSymbolFromTypes(r,r.map(getTypeOfParameter))}var i=e.minAndMax(t,getNumNonRestParameters),a=i.min,o=i.max;var s=[];var c=function(r){var n=e.mapDefined(t,function(t){var n=t.parameters,i=t.hasRestParameter;return i?r<n.length-1?n[r]:e.last(n):r<n.length?n[r]:undefined});e.Debug.assert(n.length!==0);s.push(createCombinedSymbolFromTypes(n,e.mapDefined(t,function(e){return tryGetTypeAtPosition(e,r)})))};for(var u=0;u<o;u++){c(u)}var l=e.mapDefined(t,function(t){return t.hasRestParameter?e.last(t.parameters):undefined});var f=l.length!==0;if(f){var d=createArrayType(getUnionType(e.mapDefined(t,tryGetRestTypeOfSignature),2));s.push(createCombinedSymbolForOverloadFailure(l,d))}return createSignature(t[0].declaration,undefined,n,s,getIntersectionType(t.map(getReturnTypeOfSignature)),undefined,a,f,t.some(function(e){return e.hasLiteralTypes}))}function getNumNonRestParameters(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function createCombinedSymbolFromTypes(e,t){return createCombinedSymbolForOverloadFailure(e,getUnionType(t,2))}function createCombinedSymbolForOverloadFailure(t,r){return createSymbolWithType(e.first(t),r)}function pickLongestCandidateSignature(t,r,n){var i=getLongestCandidateIndex(r,J===undefined?n.length:J);var a=r[i];var o=a.typeParameters;if(!o){return a}var s=callLikeExpressionMayHaveTypeArguments(t)?t.typeArguments:undefined;var c=s?createSignatureInstantiation(a,getTypeArgumentsFromNodes(s,o,e.isInJSFile(t))):inferSignatureInstantiationForOverloadFailure(t,o,a,n);r[i]=c;return c}function getTypeArgumentsFromNodes(e,t,r){var n=e.map(getTypeOfNode);while(n.length>t.length){n.pop()}while(n.length<t.length){n.push(getConstraintOfTypeParameter(t[n.length])||getDefaultTypeArgumentType(r))}return n}function inferSignatureInstantiationForOverloadFailure(t,r,n,i){var a=createInferenceContext(r,n,e.isInJSFile(t)?2:0);var o=inferTypeArguments(t,n,i,getExcludeArgument(i),a);return createSignatureInstantiation(n,o)}function getLongestCandidateIndex(e,t){var r=-1;var n=-1;for(var i=0;i<e.length;i++){var a=e[i];var o=getParameterCount(a);if(hasEffectiveRestParameter(a)||o>=t){return i}if(o>n){n=o;r=i}}return r}function resolveCallExpression(t,r,n){if(t.expression.kind===98){var i=checkSuperExpression(t.expression);if(isTypeAny(i)){for(var a=0,o=t.arguments;a<o.length;a++){var s=o[a];checkExpression(s)}return Le}if(i!==ee){var c=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(c){var u=getInstantiatedConstructorsForTypeArguments(i,c.typeArguments,c);return resolveCall(t,u,r,n)}}return resolveUntypedCall(t)}var l=checkNonNullExpression(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(l===ye){return je}var f=getApparentType(l);if(f===ee){return resolveErrorCall(t)}var d=getSignaturesOfType(f,0);var p=getSignaturesOfType(f,1).length;if(isUntypedFunctionCall(l,f,d.length,p)){if(l!==ee&&t.typeArguments){error(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments)}return resolveUntypedCall(t)}if(!d.length){if(p){error(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,typeToString(l))}else{var g=void 0;if(t.arguments.length===1){var _=e.getSourceFileOfNode(t).text;if(e.isLineBreak(_.charCodeAt(e.skipTrivia(_,t.expression.end,true)-1))){g=e.createDiagnosticForNode(t.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon)}}invocationError(t,f,0,g)}return resolveErrorCall(t)}if(d.some(function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)})){error(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,typeToString(l));return resolveErrorCall(t)}return resolveCall(t,d,r,n)}function isUntypedFunctionCall(e,t,r,n){return isTypeAny(e)||isTypeAny(t)&&e.flags&262144||!r&&!n&&!(t.flags&(1048576|131072))&&isTypeAssignableTo(e,Ge)}function resolveNewExpression(t,r,n){if(t.arguments&&C<1){var i=getSpreadArgumentIndex(t.arguments);if(i>=0){error(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}}var a=checkNonNullExpression(t.expression);if(a===ye){return je}a=getApparentType(a);if(a===ee){return resolveErrorCall(t)}if(isTypeAny(a)){if(t.typeArguments){error(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments)}return resolveUntypedCall(t)}var o=getSignaturesOfType(a,1);if(o.length){if(!isConstructorAccessible(t,o[0])){return resolveErrorCall(t)}var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);if(s&&e.hasModifier(s,128)){error(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);return resolveErrorCall(t)}return resolveCall(t,o,r,n)}var c=getSignaturesOfType(a,0);if(c.length){var u=resolveCall(t,c,r,n);if(!F){if(u.declaration&&!isJSConstructor(u.declaration)&&getReturnTypeOfSignature(u)!==_e){error(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword)}if(getThisTypeOfSignature(u)===_e){error(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)}}return u}invocationError(t,a,1);return resolveErrorCall(t)}function typeHasProtectedAccessibleBase(t,r){var n=getBaseTypes(r);if(!e.length(n)){return false}var i=n[0];if(i.flags&2097152){var a=i.types;var o=e.countWhere(a,isMixinConstructorType);var s=0;for(var c=0,u=i.types;c<u.length;c++){var l=u[c];s++;if(o===0||o===a.length&&s===0||!isMixinConstructorType(l)){if(e.getObjectFlags(l)&(1|2)){if(l.symbol===t){return true}if(typeHasProtectedAccessibleBase(t,l)){return true}}}}return false}if(i.symbol===t){return true}return typeHasProtectedAccessibleBase(t,i)}function isConstructorAccessible(t,r){if(!r||!r.declaration){return true}var n=r.declaration;var i=e.getSelectedModifierFlags(n,24);if(!i){return true}var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol);var o=getDeclaredTypeOfSymbol(n.parent.symbol);if(!isNodeWithinClass(t,a)){var s=e.getContainingClass(t);if(s&&i&16){var c=getTypeOfNode(s);if(typeHasProtectedAccessibleBase(n.parent.symbol,c)){return true}}if(i&8){error(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,typeToString(o))}if(i&16){error(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,typeToString(o))}return false}return true}function invocationError(t,r,n,i){var a=error(t,n===0?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,typeToString(r));invocationErrorRecovery(r,n,i?addRelatedInfo(a,i):a)}function invocationErrorRecovery(t,r,n){if(!t.symbol){return}var i=getSymbolLinks(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(t.symbol).target),r);if(!a||!a.length)return;addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function resolveTaggedTemplateExpression(e,t,r){var n=checkExpression(e.tag);var i=getApparentType(n);if(i===ee){return resolveErrorCall(e)}var a=getSignaturesOfType(i,0);var o=getSignaturesOfType(i,1).length;if(isUntypedFunctionCall(n,i,a.length,o)){return resolveUntypedCall(e)}if(!a.length){invocationError(e,i,0);return resolveErrorCall(e)}return resolveCall(e,a,t,r)}function getDiagnosticHeadMessageForDecoratorResolution(t){switch(t.parent.kind){case 240:case 209:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 154:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 156:case 158:case 159:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function resolveDecorator(t,r,n){var i=checkExpression(t.expression);var a=getApparentType(i);if(a===ee){return resolveErrorCall(t)}var o=getSignaturesOfType(a,0);var s=getSignaturesOfType(a,1).length;if(isUntypedFunctionCall(i,a,o.length,s)){return resolveUntypedCall(t)}if(isPotentiallyUncalledDecorator(t,o)){var c=e.getTextOfNode(t.expression,false);error(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,c);return resolveErrorCall(t)}var u=getDiagnosticHeadMessageForDecoratorResolution(t);if(!o.length){var l=e.chainDiagnosticMessages(undefined,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,typeToString(a));l=e.chainDiagnosticMessages(l,u);var f=e.createDiagnosticForNodeFromMessageChain(t,l);Xt.add(f);invocationErrorRecovery(a,0,f);return resolveErrorCall(t)}return resolveCall(t,o,r,n,u)}function createSignatureForJSXIntrinsic(t,r){var n=getJsxNamespaceAt(t);var i=n&&getExportsOfSymbol(n);var a=i&&getSymbol(i,c.Element,67897832);var o=a&&L.symbolToEntityName(a,67897832,t);var s=e.createFunctionTypeNode(undefined,[e.createParameter(undefined,undefined,undefined,"props",undefined,L.typeToTypeNode(r,t))],o?e.createTypeReferenceNode(o,undefined):e.createKeywordTypeNode(120));var u=createSymbol(1,"props");u.type=r;return createSignature(s,undefined,undefined,[u],a?getDeclaredTypeOfSymbol(a):ee,undefined,1,false,false)}function resolveJsxOpeningLikeElement(t,r,n){if(isJsxIntrinsicIdentifier(t.tagName)){var i=getIntrinsicAttributesTypeFromJsxOpeningLikeElement(t);var a=createSignatureForJSXIntrinsic(t,i);checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType(t.attributes,getEffectiveFirstArgumentForJsxSignature(a,t),undefined),i,t.tagName,t.attributes);return a}var o=checkExpression(t.tagName);var s=getApparentType(o);if(s===ee){return resolveErrorCall(t)}var c=getUninstantiatedJsxSignaturesOfType(o,t);if(isUntypedFunctionCall(o,s,c.length,0)){return resolveUntypedCall(t)}if(c.length===0){error(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName));return resolveErrorCall(t)}return resolveCall(t,c,r,n)}function isPotentiallyUncalledDecorator(t,r){return r.length&&e.every(r,function(e){return e.minArgumentCount===0&&!e.hasRestParameter&&e.parameters.length<getDecoratorArgumentCount(t,e)})}function resolveSignature(t,r,n){switch(t.kind){case 191:return resolveCallExpression(t,r,n);case 192:return resolveNewExpression(t,r,n);case 193:return resolveTaggedTemplateExpression(t,r,n);case 152:return resolveDecorator(t,r,n);case 262:case 261:return resolveJsxOpeningLikeElement(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function getResolvedSignature(e,t,r){if(r===void 0){r=false}var n=getNodeLinks(e);var i=n.resolvedSignature;if(i&&i!==Be&&!t){return i}n.resolvedSignature=Be;var a=resolveSignature(e,t,r);n.resolvedSignature=kt===Nt?a:i;return a}function isJSConstructor(t){if(!t||!e.isInJSFile(t)){return false}var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:undefined;if(r){if(e.getJSDocClassTag(t))return true;var n=getSymbolOfNode(r);return!!n&&n.members!==undefined}return false}function isJSConstructorType(e){if(e.flags&524288){var t=resolveStructuredTypeMembers(e);return t.callSignatures.length===1&&isJSConstructor(t.callSignatures[0].declaration)}return false}function getJSClassType(e){var t;if(isJSConstructor(e.valueDeclaration)){t=getInferredClassType(e)}var r=getAssignedClassType(e);var n=getTypeOfSymbol(e);if(n.symbol&&!isInferredClassType(n)&&isJSConstructor(n.symbol.valueDeclaration)){t=getInferredClassType(n.symbol)}return r&&t?getIntersectionType([t,r]):r||t}function getAssignedClassType(t){var r=t.valueDeclaration;var n=r&&r.parent&&(e.isFunctionDeclaration(r)&&getSymbolOfNode(r)||e.isBinaryExpression(r.parent)&&getSymbolOfNode(r.parent.left)||e.isVariableDeclaration(r.parent)&&getSymbolOfNode(r.parent));var i=n&&n.exports&&n.exports.get("prototype");var a=i&&i.valueDeclaration&&getAssignedJSPrototype(i.valueDeclaration);return a?checkExpression(a):undefined}function getAssignedJSPrototype(t){if(!t.parent){return false}var r=t.parent;while(r&&r.kind===189){r=r.parent}if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&r.operatorToken.kind===59){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}function getInferredClassType(t){var r=getSymbolLinks(t);if(!r.inferredClassType){r.inferredClassType=createAnonymousType(t,getMembersOfSymbol(t)||S,e.emptyArray,e.emptyArray,undefined,undefined)}return r.inferredClassType}function isInferredClassType(t){return t.symbol&&e.getObjectFlags(t)&16&&getSymbolLinks(t.symbol).inferredClassType===t}function checkCallExpression(t){if(!checkGrammarTypeArguments(t,t.typeArguments))checkGrammarArguments(t.arguments);var r=getResolvedSignature(t);if(t.expression.kind===98){return _e}if(t.kind===192){var n=r.declaration;if(n&&n.kind!==157&&n.kind!==161&&n.kind!==166&&!e.isJSDocConstructSignature(n)){var i=checkExpression(t.expression).symbol;if(!i&&t.expression.kind===72){i=getResolvedSymbol(t.expression)}var a=i&&getJSClassType(i);if(a){return r.target?instantiateType(a,r.mapper):a}if(F){error(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type)}return X}}if(e.isInJSFile(t)&&isCommonJsRequire(t)){return resolveExternalModuleTypeByLiteral(t.arguments[0])}var o=getReturnTypeOfSignature(r);if(o.flags&12288&&isSymbolOrSymbolForCall(t)){return getESSymbolLikeTypeForNode(e.walkUpParenthesizedExpressions(t.parent))}var s;if(e.isInJSFile(t)){var c=e.getDeclarationOfExpando(t);if(c){var u=getSymbolOfNode(c);if(u&&e.hasEntries(u.exports)){s=createAnonymousType(u,u.exports,e.emptyArray,e.emptyArray,undefined,undefined);s.objectFlags|=16384}}}return s?getIntersectionType([o,s]):o}function isSymbolOrSymbolForCall(t){if(!e.isCallExpression(t))return false;var r=t.expression;if(e.isPropertyAccessExpression(r)&&r.name.escapedText==="for"){r=r.expression}if(!e.isIdentifier(r)||r.escapedText!=="Symbol"){return false}var n=getGlobalESSymbolConstructorSymbol(false);if(!n){return false}return n===resolveName(r,"Symbol",67220415,undefined,undefined,false)}function checkImportCallExpression(t){if(!checkGrammarArguments(t.arguments))checkGrammarImportCallExpression(t);if(t.arguments.length===0){return createPromiseReturnType(t,X)}var r=t.arguments[0];var n=checkExpressionCached(r);for(var i=1;i<t.arguments.length;++i){checkExpressionCached(t.arguments[i])}if(n.flags&32768||n.flags&65536||!isTypeAssignableTo(n,oe)){error(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,typeToString(n))}var a=resolveExternalModuleName(t,r);if(a){var o=resolveESModuleSymbol(a,r,true);if(o){return createPromiseReturnType(t,getTypeWithSyntheticDefaultImportType(getTypeOfSymbol(o),o,a))}}return createPromiseReturnType(t,X)}function getTypeWithSyntheticDefaultImportType(t,r,n){if(D&&t&&t!==ee){var i=t;if(!i.syntheticType){var a=e.find(n.declarations,e.isSourceFile);var o=canHaveSyntheticDefault(a,n,false);if(o){var s=e.createSymbolTable();var c=createSymbol(2097152,"default");c.nameType=getLiteralType("default");c.target=resolveSymbol(r);s.set("default",c);var u=createSymbol(2048,"__type");var l=createAnonymousType(u,s,e.emptyArray,e.emptyArray,undefined,undefined);u.type=l;i.syntheticType=isValidSpreadType(t)?getSpreadType(t,l,u,0,0):l}else{i.syntheticType=t}}return i.syntheticType}return t}function isCommonJsRequire(t){if(!e.isRequireCall(t,true)){return false}if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=resolveName(t.expression,t.expression.escapedText,67220415,undefined,undefined,true);if(r===j){return true}if(r.flags&2097152){return false}var n=r.flags&16?239:r.flags&3?237:0;if(n!==0){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(i.flags&4194304)}return false}function checkTaggedTemplateExpression(e){checkGrammarTypeArguments(e,e.typeArguments);if(C<2){checkExternalEmitHelpers(e,65536)}return getReturnTypeOfSignature(getResolvedSignature(e))}function checkAssertion(e){return checkAssertionWorker(e,e.type,e.expression)}function checkAssertionWorker(t,r,n,i){var o=getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(checkExpression(n,i)));checkSourceElement(r);var s=getTypeFromTypeNode(r);if(a&&s!==ee){var c=getWidenedType(o);if(!isTypeComparableTo(s,c)){checkTypeComparableTo(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}}return s}function checkNonNullAssertion(e){return getNonNullableType(checkExpression(e.expression))}function checkMetaProperty(t){checkGrammarMetaProperty(t);if(t.keywordToken===95){return checkNewTargetMetaProperty(t)}if(t.keywordToken===92){return checkImportMetaProperty(t)}return e.Debug.assertNever(t.keywordToken)}function checkNewTargetMetaProperty(t){var r=e.getNewTargetContainer(t);if(!r){error(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target");return ee}else if(r.kind===157){var n=getSymbolOfNode(r.parent);return getTypeOfSymbol(n)}else{var n=getSymbolOfNode(r);return getTypeOfSymbol(n)}}function checkImportMetaProperty(t){if(C<6||E<e.ModuleKind.ESNext){error(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options)}var r=e.getSourceFileOfNode(t);e.Debug.assert(!!(r.flags&1048576),"Containing file is missing import meta node flag.");e.Debug.assert(!!r.externalModuleIndicator,"Containing file should be a module.");return t.name.escapedText==="meta"?getGlobalImportMetaType():ee}function getTypeOfParameter(t){var r=getTypeOfSymbol(t);if(k){var n=t.valueDeclaration;if(n&&e.hasInitializer(n)){return getOptionalType(r)}}return r}function getParameterNameAtPosition(e,t){var r=e.parameters.length-(e.hasRestParameter?1:0);if(t<r){return e.parameters[t].escapedName}var n=e.parameters[r]||Q;var i=getTypeOfSymbol(n);if(isTupleType(i)){var a=i.target.associatedNames;var o=t-r;return a?a[o]:n.escapedName+"_"+o}return n.escapedName}function getTypeAtPosition(e,t){return tryGetTypeAtPosition(e,t)||X}function tryGetTypeAtPosition(e,t){var r=e.parameters.length-(e.hasRestParameter?1:0);if(t<r){return getTypeOfParameter(e.parameters[t])}if(e.hasRestParameter){var n=getTypeOfSymbol(e.parameters[r]);if(isTupleType(n)){if(t-r<getLengthOfTupleType(n)){return n.typeArguments[t-r]}return getRestTypeOfTupleType(n)}return getIndexTypeOfType(n,1)}return undefined}function getRestTypeAtPosition(e,t){var r=getParameterCount(e);var n=getEffectiveRestType(e);if(n&&t===r-1){return n}var i=n?Math.min(t,r-1):t;var a=[];var o=[];for(var s=i;s<r;s++){a.push(getTypeAtPosition(e,s));o.push(getParameterNameAtPosition(e,s))}var c=getMinArgumentCount(e);var u=c<i?0:c-i;return createTupleType(a,u,!!n,o)}function getParameterCount(t){var r=t.parameters.length;if(t.hasRestParameter){var n=getTypeOfSymbol(t.parameters[r-1]);if(isTupleType(n)){return r+(n.typeArguments||e.emptyArray).length-1}}return r}function getMinArgumentCount(e){if(e.hasRestParameter){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);if(isTupleType(t)){var r=t.target.minLength;if(r>0){return e.parameters.length-1+r}}}return e.minArgumentCount}function hasEffectiveRestParameter(e){if(e.hasRestParameter){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);return!isTupleType(t)||t.target.hasRestElement}return false}function getEffectiveRestType(e){if(e.hasRestParameter){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);return isTupleType(t)?getRestArrayTypeOfTupleType(t):t}return undefined}function getNonArrayRestType(e){var t=getEffectiveRestType(e);return t&&!isArrayType(t)&&!isTypeAny(t)?t:undefined}function getTypeOfFirstParameterOfSignature(e){return getTypeOfFirstParameterOfSignatureWithFallback(e,me)}function getTypeOfFirstParameterOfSignatureWithFallback(e,t){return e.parameters.length>0?getTypeAtPosition(e,0):t}function inferFromAnnotatedParameters(t,r,n){var i=t.parameters.length-(t.hasRestParameter?1:0);for(var a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);if(s){inferTypes(n.inferences,getTypeFromTypeNode(s),getTypeAtPosition(r,a))}}}}function assignContextualParameterTypes(t,r){t.typeParameters=r.typeParameters;if(r.thisParameter){var n=t.thisParameter;if(!n||n.valueDeclaration&&!n.valueDeclaration.type){if(!n){t.thisParameter=createSymbolWithType(r.thisParameter,undefined)}assignTypeToParameterAndFixTypeParameters(t.thisParameter,getTypeOfSymbol(r.thisParameter))}}var i=t.parameters.length-(t.hasRestParameter?1:0);for(var a=0;a<i;a++){var n=t.parameters[a];if(!e.getEffectiveTypeAnnotationNode(n.valueDeclaration)){var o=getTypeAtPosition(r,a);assignTypeToParameterAndFixTypeParameters(n,o)}}if(t.hasRestParameter){var n=e.last(t.parameters);if(isTransientSymbol(n)||!e.getEffectiveTypeAnnotationNode(n.valueDeclaration)){var o=getRestTypeAtPosition(r,i);assignTypeToParameterAndFixTypeParameters(n,o)}}}function assignBindingElementTypes(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i)){if(i.name.kind===72){getSymbolLinks(getSymbolOfNode(i)).type=getTypeForBindingElement(i)}else{assignBindingElementTypes(i.name)}}}}function assignTypeToParameterAndFixTypeParameters(e,t){var r=getSymbolLinks(e);if(!r.type){r.type=t;var n=e.valueDeclaration;if(n.name.kind!==72){if(r.type===xe){r.type=getTypeFromBindingPattern(n.name)}assignBindingElementTypes(n.name)}}}function createPromiseType(e){var t=getGlobalPromiseType(true);if(t!==ke){e=getAwaitedType(e)||xe;return createTypeReference(t,[e])}return xe}function createPromiseLikeType(e){var t=getGlobalPromiseLikeType(true);if(t!==ke){e=getAwaitedType(e)||xe;return createTypeReference(t,[e])}return xe}function createPromiseReturnType(t,r){var n=createPromiseType(r);if(n===xe){error(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option);return ee}else if(!getGlobalPromiseConstructorSymbol(true)){error(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option)}return n}function getReturnTypeFromBody(t,r){if(!t.body){return ee}var n=e.getFunctionFlags(t);var i;if(t.body.kind!==218){i=checkExpressionCached(t.body,r);if(n&2){i=checkAwaitedType(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}}else{var a=checkAndAggregateReturnExpressionTypes(t,r);if(n&1){a=e.concatenate(checkAndAggregateYieldOperandTypes(t,r),a);if(!a||a.length===0){var o=n&2?createAsyncIterableIteratorType(X):createIterableIteratorType(X);if(F){error(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,typeToString(o))}return o}}else{if(!a){return n&2?createPromiseReturnType(t,me):me}if(a.length===0){return n&2?createPromiseReturnType(t,_e):_e}}i=getUnionType(a,2)}var s=getContextualSignatureForFunctionLikeDeclaration(t);if(!s){reportErrorsFromWidening(t,i)}if(isUnitType(i)){var c=!s?undefined:s===getSignatureFromDeclaration(t)?i:getReturnTypeOfSignature(s);if(c){switch(n&3){case 3:c=getIteratedTypeOfGenerator(c,true);break;case 1:c=getIteratedTypeOfGenerator(c,false);break;case 2:c=getPromisedTypeOfPromise(c);break}}i=getWidenedLiteralLikeTypeForContextualType(i,c)}var u=getWidenedType(i);switch(n&3){case 3:return createAsyncIterableIteratorType(u);case 1:return createIterableIteratorType(u);case 2:return createPromiseType(u);default:return u}}function checkAndAggregateYieldOperandTypes(t,r){var n=[];var i=(e.getFunctionFlags(t)&2)!==0;e.forEachYieldExpression(t.body,function(t){e.pushIfUnique(n,getYieldedTypeOfYieldExpression(t,i,r))});return n}function getYieldedTypeOfYieldExpression(t,r,n){var i=t.expression||t;var a=t.expression?checkExpression(t.expression,n):ne;var o=t.asteriskToken?checkIteratedTypeOrElementType(a,i,false,r):a;return!r?o:getAwaitedType(o,i,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)}function getFactsFromTypeofSwitch(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++){i|=tr.get(r[a])||32768}for(var a=e;a<t;a++){i&=~(tr.get(r[a])||0)}for(var a=0;a<e;a++){i|=tr.get(r[a])||32768}}else{for(var a=e;a<t;a++){i|=er.get(r[a])||128}for(var a=0;a<e;a++){i&=~(er.get(r[a])||0)}}return i}function isExhaustiveSwitchStatement(t){if(!t.possiblyExhaustive){return false}if(t.expression.kind===199){var r=getTypeOfExpression(t.expression.expression);var n=getSwitchClauseTypeOfWitnesses(t);var i=getFactsFromTypeofSwitch(0,0,n,true);var a=getBaseConstraintOfType(r)||r;return!!(filterType(a,function(e){return(getTypeFacts(e)&i)===i}).flags&131072)}var o=getTypeOfExpression(t.expression);if(!isLiteralType(o)){return false}var s=getSwitchClauseTypes(t);if(!s.length||e.some(s,isNeitherUnitTypeNorNever)){return false}return eachTypeContainedIn(mapType(o,getRegularTypeOfLiteralType),s)}function functionHasImplicitReturn(t){if(!(t.flags&128)){return false}if(e.some(t.body.statements,function(e){return e.kind===232&&isExhaustiveSwitchStatement(e)})){return false}return true}function checkAndAggregateReturnExpressionTypes(t,r){var n=e.getFunctionFlags(t);var i=[];var a=functionHasImplicitReturn(t);var o=false;e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=checkExpressionCached(c,r);if(n&2){u=checkAwaitedType(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}if(u.flags&131072){o=true}e.pushIfUnique(i,u)}else{a=true}});if(i.length===0&&!a&&(o||mayReturnNever(t))){return undefined}if(k&&i.length&&a&&!(isJSConstructor(t)&&i.some(function(e){return e.symbol===t.symbol}))){e.pushIfUnique(i,re)}return i}function mayReturnNever(e){switch(e.kind){case 196:case 197:return true;case 156:return e.parent.kind===188;default:return false}}function checkAllCodePathsInNonVoidFunctionReturnOrThrow(t,r){if(!a){return}if(r&&maybeTypeOfKind(r,1|16384)){return}if(t.kind===155||e.nodeIsMissing(t.body)||t.body.kind!==218||!functionHasImplicitReturn(t)){return}var n=t.flags&256;if(r&&r.flags&131072){error(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point)}else if(r&&!n){error(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value)}else if(r&&k&&!isTypeAssignableTo(re,r)){error(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined)}else if(x.noImplicitReturns){if(!r){if(!n){return}var i=getReturnTypeOfSignature(getSignatureFromDeclaration(t));if(isUnwrappedReturnTypeVoidOrAny(t,i)){return}}error(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function checkFunctionExpressionOrObjectLiteralMethod(t,r){e.Debug.assert(t.kind!==156||e.isObjectLiteralMethod(t));checkNodeDeferred(t);if(r===1&&isContextSensitive(t)){if(!e.getEffectiveReturnTypeNode(t)&&hasContextSensitiveReturnExpression(t)){var n=getNodeLinks(t);if(n.contextFreeType){return n.contextFreeType}var i=getReturnTypeFromBody(t,r);var a=createSignature(undefined,undefined,undefined,e.emptyArray,i,undefined,0,false,false);var o=createAnonymousType(t.symbol,S,[a],e.emptyArray,undefined,undefined);o.flags|=536870912;return n.contextFreeType=o}return Ne}var s=checkGrammarFunctionLikeDeclaration(t);if(!s&&t.kind===196){checkGrammarForGenerator(t)}var c=getNodeLinks(t);var u=getTypeOfSymbol(getMergedSymbol(t.symbol));if(isTypeAny(u)){return u}if(!(c.flags&1024)){var l=getContextualSignature(t);if(!(c.flags&1024)){c.flags|=1024;if(l){var f=getSignaturesOfType(u,0)[0];if(isContextSensitive(t)){var d=getContextualMapper(t);if(r===2){inferFromAnnotatedParameters(f,l,d)}var p=d===b?l:instantiateSignature(l,d);assignContextualParameterTypes(f,p)}if(!getReturnTypeFromAnnotation(t)&&!f.resolvedReturnType){var i=getReturnTypeFromBody(t,r);if(!f.resolvedReturnType){f.resolvedReturnType=i}}}checkSignatureDeclaration(t)}}return u}function getReturnOrPromisedType(e,t){var r=getReturnTypeFromAnnotation(e);return r&&(t&3)===2?getAwaitedType(r)||ee:r}function checkFunctionExpressionOrObjectLiteralMethodDeferred(t){e.Debug.assert(t.kind!==156||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t);var n=getReturnOrPromisedType(t,r);if((r&1)===0){checkAllCodePathsInNonVoidFunctionReturnOrThrow(t,n)}if(t.body){if(!e.getEffectiveReturnTypeNode(t)){getReturnTypeOfSignature(getSignatureFromDeclaration(t))}if(t.body.kind===218){checkSourceElement(t.body)}else{var i=checkExpression(t.body);if(n){if((r&3)===2){var a=checkAwaitedType(i,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);checkTypeAssignableToAndOptionallyElaborate(a,n,t.body,t.body)}else{checkTypeAssignableToAndOptionallyElaborate(i,n,t.body,t.body)}}}}}function checkArithmeticOperandType(e,t,r){if(!isTypeAssignableTo(t,be)){error(e,r);return false}return true}function isReadonlyAssignmentDeclaration(t){if(!e.isCallExpression(t)){return false}if(!e.isBindableObjectDefinePropertyCall(t)){return false}var r=checkExpressionCached(t.arguments[2]);var n=getTypeOfPropertyOfType(r,"value");if(n){var i=getPropertyOfType(r,"writable");var a=i&&getTypeOfSymbol(i);if(!a||a===ue||a===le){return true}if(i&&i.valueDeclaration&&e.isPropertyAssignment(i.valueDeclaration)){var o=i.valueDeclaration.initializer;var s=checkExpression(o);if(s===ue||s===le){return true}}return false}var c=getPropertyOfType(r,"set");return!c}function isReadonlySymbol(t){return!!(e.getCheckFlags(t)&8||t.flags&4&&e.getDeclarationModifierFlagsFromSymbol(t)&64||t.flags&3&&getDeclarationNodeFlagsFromSymbol(t)&2||t.flags&98304&&!(t.flags&65536)||t.flags&8||e.some(t.declarations,isReadonlyAssignmentDeclaration))}function isReferenceToReadonlyEntity(t,r){if(isReadonlySymbol(r)){if(r.flags&4&&(t.kind===189||t.kind===190)&&t.expression.kind===100){var n=e.getContainingFunction(t);if(!(n&&n.kind===157)){return true}return!r.valueDeclaration||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent)}return true}return false}function isReferenceThroughNamespaceImport(t){if(t.kind===189||t.kind===190){var r=e.skipParentheses(t.expression);if(r.kind===72){var n=getNodeLinks(r).resolvedSymbol;if(n.flags&2097152){var i=getDeclarationOfAliasSymbol(n);return!!i&&i.kind===251}}}return false}function checkReferenceExpression(t,r){var n=e.skipOuterExpressions(t,2|1);if(n.kind!==72&&n.kind!==189&&n.kind!==190){error(t,r);return false}return true}function checkDeleteExpression(t){checkExpression(t.expression);var r=e.skipParentheses(t.expression);if(r.kind!==189&&r.kind!==190){error(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference);return pe}var n=getNodeLinks(r);var i=getExportSymbolOfValueSymbolIfExported(n.resolvedSymbol);if(i&&isReadonlySymbol(i)){error(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property)}return pe}function checkTypeOfExpression(e){checkExpression(e.expression);return nr}function checkVoidExpression(e){checkExpression(e.expression);return ne}function checkAwaitExpression(t){if(a){if(!(t.flags&16384)){grammarErrorOnFirstToken(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function)}if(isInParameterInitializerBeforeContainingFunction(t)){error(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}}var r=checkExpression(t.expression);return checkAwaitedType(r,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function checkPrefixUnaryExpression(t){var r=checkExpression(t.operand);if(r===ye){return ye}switch(t.operand.kind){case 8:switch(t.operator){case 39:return getFreshTypeOfLiteralType(getLiteralType(-t.operand.text));case 38:return getFreshTypeOfLiteralType(getLiteralType(+t.operand.text))}break;case 9:if(t.operator===39){return getFreshTypeOfLiteralType(getLiteralType({negative:true,base10Value:e.parsePseudoBigInt(t.operand.text)}))}}switch(t.operator){case 38:case 39:case 53:checkNonNullType(r,t.operand);if(maybeTypeOfKind(r,12288)){error(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator))}if(t.operator===38){if(maybeTypeOfKind(r,2112)){error(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),typeToString(r))}return se}return getUnaryResultType(r);case 52:checkTruthinessExpression(t.operand);var n=getTypeFacts(r)&(4194304|8388608);return n===4194304?ue:n===8388608?fe:pe;case 44:case 45:var i=checkArithmeticOperandType(t.operand,checkNonNullType(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);if(i){checkReferenceExpression(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access)}return getUnaryResultType(r)}return ee}function checkPostfixUnaryExpression(t){var r=checkExpression(t.operand);if(r===ye){return ye}var n=checkArithmeticOperandType(t.operand,checkNonNullType(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);if(n){checkReferenceExpression(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access)}return getUnaryResultType(r)}function getUnaryResultType(e){if(maybeTypeOfKind(e,2112)){return isTypeAssignableToKind(e,3)||maybeTypeOfKind(e,296)?be:ce}return se}function maybeTypeOfKind(e,t){if(e.flags&t&~134217728||t&134217728&&isGenericMappedType(e)){return true}if(e.flags&3145728){var r=e.types;for(var n=0,i=r;n<i.length;n++){var a=i[n];if(maybeTypeOfKind(a,t)){return true}}}return false}function isTypeAssignableToKind(e,t,r){if(e.flags&t){return true}if(r&&e.flags&(3|16384|32768|65536)){return false}return!!(t&296)&&isTypeAssignableTo(e,se)||!!(t&2112)&&isTypeAssignableTo(e,ce)||!!(t&132)&&isTypeAssignableTo(e,oe)||!!(t&528)&&isTypeAssignableTo(e,pe)||!!(t&16384)&&isTypeAssignableTo(e,_e)||!!(t&131072)&&isTypeAssignableTo(e,me)||!!(t&65536)&&isTypeAssignableTo(e,ie)||!!(t&32768)&&isTypeAssignableTo(e,re)||!!(t&4096)&&isTypeAssignableTo(e,ge)||!!(t&67108864)&&isTypeAssignableTo(e,ve)}function allTypesAssignableToKind(t,r,n){return t.flags&1048576?e.every(t.types,function(e){return allTypesAssignableToKind(e,r,n)}):isTypeAssignableToKind(t,r,n)}function isConstEnumObjectType(t){return!!(e.getObjectFlags(t)&16)&&!!t.symbol&&isConstEnumSymbol(t.symbol)}function isConstEnumSymbol(e){return(e.flags&128)!==0}function checkInstanceOfExpression(t,r,n,i){if(n===ye||i===ye){return ye}if(!isTypeAny(n)&&allTypesAssignableToKind(n,131068)){error(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter)}if(!(isTypeAny(i)||typeHasCallOrConstructSignatures(i)||isTypeSubtypeOf(i,Ge))){error(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type)}return pe}function checkInExpression(t,r,n,i){if(n===ye||i===ye){return ye}n=checkNonNullType(n,t);i=checkNonNullType(i,r);if(!(isTypeComparableTo(n,oe)||isTypeAssignableToKind(n,296|12288))){error(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol)}if(!isTypeAssignableToKind(i,67108864|58982400)){error(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter)}return pe}function checkObjectLiteralAssignment(e,t,r){var n=e.properties;if(k&&n.length===0){return checkNonNullType(t,e)}for(var i=0,a=n;i<a.length;i++){var o=a[i];checkObjectLiteralDestructuringPropertyAssignment(t,o,n,r)}return t}function checkObjectLiteralDestructuringPropertyAssignment(t,r,n,i){if(i===void 0){i=false}if(r.kind===275||r.kind===276){var a=r.name;if(a.kind===149){checkComputedPropertyName(a)}if(isComputedNonLiteralName(a)){return undefined}var o=getTypeOfObjectLiteralDestructuringProperty(t,a,r,i);if(o){return checkDestructuringAssignment(r.kind===276?r:r.initializer,o)}else{error(a,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,typeToString(t),e.declarationNameToString(a))}}else if(r.kind===277){if(C<6){checkExternalEmitHelpers(r,4)}var s=[];if(n){for(var c=0;c<n.length-1;c++){s.push(n[c].name)}}var o=getRestType(t,s,t.symbol);checkGrammarForDisallowedTrailingComma(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return checkDestructuringAssignment(r.expression,o)}else{error(r,e.Diagnostics.Property_assignment_expected)}}function getTypeOfObjectLiteralDestructuringProperty(t,r,n,i){if(isTypeAny(t)){return t}var a;var o=e.getTextOfPropertyName(r);if(o){var s=getPropertyOfType(t,o);if(s){markPropertyAsReferenced(s,n,i);checkPropertyAccessibility(n,false,t,s);a=getTypeOfSymbol(s)}a=a||(isNumericLiteralName(o)?getIndexTypeOfType(t,1):undefined)}return a||getIndexTypeOfType(t,0)}function checkArrayLiteralAssignment(e,t,r){var n=e.elements;if(C<2&&x.downlevelIteration){checkExternalEmitHelpers(e,512)}var i=checkIteratedTypeOrElementType(t,e,false,false)||ee;for(var a=0;a<n.length;a++){checkArrayLiteralDestructuringElementAssignment(e,t,a,i,r)}return t}function checkArrayLiteralDestructuringElementAssignment(t,r,n,i,a){var o=t.elements;var s=o[n];if(s.kind!==210){if(s.kind!==208){var c=""+n;var u=isTypeAny(r)?r:everyType(r,isTupleLikeType)?getTupleElementType(r,n):i;if(u){return checkDestructuringAssignment(s,u,a)}checkExpression(s);if(isTupleType(r)){error(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,typeToString(r),getTypeReferenceArity(r),o.length)}else{error(s,e.Diagnostics.Type_0_has_no_property_1,typeToString(r),c)}}else{if(n<o.length-1){error(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else{var l=s.expression;if(l.kind===204&&l.operatorToken.kind===59){error(l.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}else{checkGrammarForDisallowedTrailingComma(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var u=everyType(r,isTupleType)?mapType(r,function(e){return sliceTupleType(e,n)}):createArrayType(i);return checkDestructuringAssignment(l,u,a)}}}}return undefined}function checkDestructuringAssignment(e,t,r,n){var i;if(e.kind===276){var a=e;if(a.objectAssignmentInitializer){if(k&&!(getFalsyFlags(checkExpression(a.objectAssignmentInitializer))&32768)){t=getTypeWithFacts(t,524288)}checkBinaryLikeExpression(a.name,a.equalsToken,a.objectAssignmentInitializer,r)}i=e.name}else{i=e}if(i.kind===204&&i.operatorToken.kind===59){checkBinaryExpression(i,r);i=i.left}if(i.kind===188){return checkObjectLiteralAssignment(i,t,n)}if(i.kind===187){return checkArrayLiteralAssignment(i,t,r)}return checkReferenceAssignment(i,t,r)}function checkReferenceAssignment(t,r,n){var i=checkExpression(t,n);var a=t.parent.kind===277?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;if(checkReferenceExpression(t,a)){checkTypeAssignableToAndOptionallyElaborate(r,i,t,t)}return r}function isSideEffectFree(t){t=e.skipParentheses(t);switch(t.kind){case 72:case 10:case 13:case 193:case 206:case 14:case 8:case 9:case 102:case 87:case 96:case 141:case 196:case 209:case 197:case 187:case 188:case 199:case 213:case 261:case 260:return true;case 205:return isSideEffectFree(t.whenTrue)&&isSideEffectFree(t.whenFalse);case 204:if(e.isAssignmentOperator(t.operatorToken.kind)){return false}return isSideEffectFree(t.left)&&isSideEffectFree(t.right);case 202:case 203:switch(t.operator){case 52:case 38:case 39:case 53:return true}return false;case 200:case 194:case 212:default:return false}}function isTypeEqualityComparableTo(e,t){return(t.flags&98304)!==0||isTypeComparableTo(e,t)}function checkBinaryExpression(t,r){if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){return checkExpression(t.right,r)}return checkBinaryLikeExpression(t.left,t.operatorToken,t.right,r,t)}function checkBinaryLikeExpression(t,r,n,i,o){var s=r.kind;if(s===59&&(t.kind===188||t.kind===187)){return checkDestructuringAssignment(t,checkExpression(n,i),i,n.kind===100)}var c;if(s===54||s===55){c=checkTruthinessExpression(t,i)}else{c=checkExpression(t,i)}var u=checkExpression(n,i);switch(s){case 40:case 41:case 62:case 63:case 42:case 64:case 43:case 65:case 39:case 61:case 46:case 66:case 47:case 67:case 48:case 68:case 50:case 70:case 51:case 71:case 49:case 69:if(c===ye||u===ye){return ye}c=checkNonNullType(c,t);u=checkNonNullType(u,n);var l=void 0;if(c.flags&528&&u.flags&528&&(l=getSuggestedBooleanOperator(r.kind))!==undefined){error(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(l));return se}else{var f=checkArithmeticOperandType(t,c,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type);var d=checkArithmeticOperandType(n,u,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type);var p;if(isTypeAssignableToKind(c,3)&&isTypeAssignableToKind(u,3)||!(maybeTypeOfKind(c,2112)||maybeTypeOfKind(u,2112))){p=se}else if(isTypeAssignableToKind(c,2112)&&isTypeAssignableToKind(u,2112)){switch(s){case 48:case 68:reportOperatorError()}p=ce}else{reportOperatorError();p=ee}if(f&&d){checkAssignmentOperator(p)}return p}case 38:case 60:if(c===ye||u===ye){return ye}if(!isTypeAssignableToKind(c,132)&&!isTypeAssignableToKind(u,132)){c=checkNonNullType(c,t);u=checkNonNullType(u,n)}var g=void 0;if(isTypeAssignableToKind(c,296,true)&&isTypeAssignableToKind(u,296,true)){g=se}else if(isTypeAssignableToKind(c,2112,true)&&isTypeAssignableToKind(u,2112,true)){g=ce}else if(isTypeAssignableToKind(c,132,true)||isTypeAssignableToKind(u,132,true)){g=oe}else if(isTypeAny(c)||isTypeAny(u)){g=c===ee||u===ee?ee:X}if(g&&!checkForDisallowedESSymbolOperand(s)){return g}if(!g){reportOperatorError();return X}if(s===60){checkAssignmentOperator(g)}return g;case 28:case 30:case 31:case 32:if(checkForDisallowedESSymbolOperand(s)){c=getBaseTypeOfLiteralType(checkNonNullType(c,t));u=getBaseTypeOfLiteralType(checkNonNullType(u,n));if(!(isTypeComparableTo(c,u)||isTypeComparableTo(u,c)||isTypeAssignableTo(c,be)&&isTypeAssignableTo(u,be))){reportOperatorError()}}return pe;case 33:case 34:case 35:case 36:var _=isLiteralType(c);var m=isLiteralType(u);if(!_||!m){c=_?getBaseTypeOfLiteralType(c):c;u=m?getBaseTypeOfLiteralType(u):u}if(!isTypeEqualityComparableTo(c,u)&&!isTypeEqualityComparableTo(u,c)){reportOperatorError()}return pe;case 94:return checkInstanceOfExpression(t,n,c,u);case 93:return checkInExpression(t,n,c,u);case 54:return getTypeFacts(c)&4194304?getUnionType([extractDefinitelyFalsyTypes(k?c:getBaseTypeOfLiteralType(u)),u]):c;case 55:return getTypeFacts(c)&8388608?getUnionType([removeDefinitelyFalsyTypes(c),u],2):c;case 59:var y=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;checkAssignmentDeclaration(y,u);if(isAssignmentDeclaration(y)){if(!(u.flags&524288)||y!==2&&y!==6&&!isEmptyObjectType(u)&&!isFunctionObjectType(u)&&!(e.getObjectFlags(u)&1)){checkAssignmentOperator(u)}return c}else{checkAssignmentOperator(u);return getRegularTypeOfObjectLiteral(u)}case 27:if(!x.allowUnreachableCode&&isSideEffectFree(t)&&!isEvalNode(n)){error(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return u;default:return e.Debug.fail()}function checkAssignmentDeclaration(t,r){if(t===2){for(var n=0,i=getPropertiesOfObjectType(r);n<i.length;n++){var a=i[n];var o=getTypeOfSymbol(a);if(o.symbol&&o.symbol.flags&32){var s=a.escapedName;var c=resolveName(a.valueDeclaration,s,67897832,undefined,s,false);if(c&&c.declarations.some(e.isJSDocTypedefTag)){grammarErrorOnNode(c.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s));return grammarErrorOnNode(a.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s))}}}}}function isEvalNode(e){return e.kind===72&&e.escapedText==="eval"}function checkForDisallowedESSymbolOperand(r){var i=maybeTypeOfKind(c,12288)?t:maybeTypeOfKind(u,12288)?n:undefined;if(i){error(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r));return false}return true}function getSuggestedBooleanOperator(e){switch(e){case 50:case 70:return 55;case 51:case 71:return 36;case 49:case 69:return 54;default:return undefined}}function checkAssignmentOperator(r){if(a&&e.isAssignmentOperator(s)){if(checkReferenceExpression(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&(!e.isIdentifier(t)||e.unescapeLeadingUnderscores(t.escapedText)!=="exports")){checkTypeAssignableToAndOptionallyElaborate(r,c,t,n)}}}function isAssignmentDeclaration(r){switch(r){case 2:return true;case 1:case 5:case 6:case 3:case 4:var i=getSymbolOfNode(t);var a=e.getAssignedExpandoInitializer(n);return a&&e.isObjectLiteralExpression(a)&&i&&e.hasEntries(i.exports);default:return false}}function reportOperatorError(){var t=typeToString(c);var n=typeToString(u);var i=o||r;if(!tryGiveBetterPrimaryError(i,t,n)){error(i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),t,n)}}function tryGiveBetterPrimaryError(t,n,i){switch(r.kind){case 35:case 33:return error(t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"false",n,i);case 36:case 34:return error(t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"true",n,i)}return undefined}}function isYieldExpressionInClass(t){var r=t;var n=t.parent;while(n){if(e.isFunctionLike(n)&&r===n.body){return false}else if(e.isClassLike(r)){return true}r=n;n=n.parent}return false}function checkYieldExpression(t){if(a){if(!(t.flags&4096)||isYieldExpressionInClass(t)){grammarErrorOnFirstToken(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body)}if(isInParameterInitializerBeforeContainingFunction(t)){error(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}var r=e.getContainingFunction(t);if(!r)return X;var n=e.getFunctionFlags(r);if(!(n&1)){return X}if(t.asteriskToken){if((n&3)===3&&C<6){checkExternalEmitHelpers(t,26624)}if((n&3)===1&&C<2&&x.downlevelIteration){checkExternalEmitHelpers(t,256)}}var i=(n&2)!==0;var o=getYieldedTypeOfYieldExpression(t,i);var s=getReturnTypeFromAnnotation(r);if(s){var c=getIteratedTypeOfGenerator(s,i)||X;checkTypeAssignableToAndOptionallyElaborate(o,c,t.expression||t,t.expression)}return X}function checkConditionalExpression(e,t){checkTruthinessExpression(e.condition);var r=checkExpression(e.whenTrue,t);var n=checkExpression(e.whenFalse,t);return getUnionType([r,n],2)}function checkTemplateExpression(t){e.forEach(t.templateSpans,function(t){if(maybeTypeOfKind(checkExpression(t.expression),12288)){error(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}});return oe}function getContextNode(t){if(t.kind===268&&!e.isJsxSelfClosingElement(t.parent)){return t.parent.parent}return t}function checkExpressionWithContextualType(e,t,r){var n=getContextNode(e);var i=n.contextualType;var a=n.contextualMapper;n.contextualType=t;n.contextualMapper=r;var o=r===b?1:r?2:3;var s=checkExpression(e,o);n.contextualType=i;n.contextualMapper=a;return s}function checkExpressionCached(e,t){var r=getNodeLinks(e);if(!r.resolvedType){if(t){return checkExpression(e,t)}var n=kt;kt=Nt;r.resolvedType=checkExpression(e,t);kt=n}return r.resolvedType}function isTypeAssertion(t){t=e.skipParentheses(t);return t.kind===194||t.kind===212}function checkDeclarationInitializer(t){var r=e.getEffectiveInitializer(t);var n=getTypeOfExpression(r,true);var i=e.getCombinedNodeFlags(t)&2||e.isDeclarationReadonly(t)||isTypeAssertion(r)?n:getWidenedLiteralType(n);if(e.isInJSFile(t)){if(i.flags&98304){reportImplicitAny(t,X);return X}else if(isEmptyArrayLiteralType(i)){reportImplicitAny(t,nt);return nt}}return i}function isLiteralOfContextualType(t,r){if(r){if(r.flags&3145728){var n=r.types;return e.some(n,function(e){return isLiteralOfContextualType(t,e)})}if(r.flags&58982400){var i=getBaseConstraintOfType(r)||xe;return maybeTypeOfKind(i,4)&&maybeTypeOfKind(t,128)||maybeTypeOfKind(i,8)&&maybeTypeOfKind(t,256)||maybeTypeOfKind(i,64)&&maybeTypeOfKind(t,2048)||maybeTypeOfKind(i,4096)&&maybeTypeOfKind(t,8192)||isLiteralOfContextualType(t,i)}return!!(r.flags&(128|4194304)&&maybeTypeOfKind(t,128)||r.flags&256&&maybeTypeOfKind(t,256)||r.flags&2048&&maybeTypeOfKind(t,2048)||r.flags&512&&maybeTypeOfKind(t,512)||r.flags&8192&&maybeTypeOfKind(t,8192))}return false}function checkExpressionForMutableLocation(e,t,r,n){if(arguments.length===2){r=getContextualType(e)}var i=checkExpression(e,t,n);return isTypeAssertion(e)?i:getWidenedLiteralLikeTypeForContextualType(i,r)}function checkPropertyAssignment(e,t){if(e.name.kind===149){checkComputedPropertyName(e.name)}return checkExpressionForMutableLocation(e.initializer,t)}function checkObjectLiteralMethod(e,t){checkGrammarMethod(e);if(e.name.kind===149){checkComputedPropertyName(e.name)}var r=checkFunctionExpressionOrObjectLiteralMethod(e,t);return instantiateTypeWithSingleGenericCallSignature(e,r,t)}function instantiateTypeWithSingleGenericCallSignature(e,t,r){if(r===2){var n=getSingleCallSignature(t);if(n&&n.typeParameters){var i=getApparentTypeOfContextualType(e);if(i){var a=getSingleCallSignature(getNonNullableType(i));if(a&&!a.typeParameters){return getOrCreateTypeFromSignature(instantiateSignatureInContextOf(n,a,getContextualMapper(e)))}}}}return t}function getTypeOfExpression(t,r){var n=e.skipParentheses(t);if(n.kind===191&&n.expression.kind!==98&&!e.isRequireCall(n,true)&&!isSymbolOrSymbolForCall(n)){var i=checkNonNullExpression(n.expression);var a=getSingleCallSignature(i);if(a&&!a.typeParameters){return getReturnTypeOfSignature(a)}}else if(n.kind===194||n.kind===212){return getTypeFromTypeNode(n.type)}return r?checkExpressionCached(t):checkExpression(t)}function getContextFreeTypeOfExpression(e){var t=getNodeLinks(e);if(t.contextFreeType){return t.contextFreeType}var r=e.contextualType;e.contextualType=X;var n=t.contextFreeType=checkExpression(e,1);e.contextualType=r;return n}function checkExpression(t,r,n){var i;if(t.kind===148){i=checkQualifiedName(t)}else{var a=checkExpressionWorker(t,r,n);i=instantiateTypeWithSingleGenericCallSignature(t,a,r)}if(isConstEnumObjectType(i)){var o=t.parent.kind===189&&t.parent.expression===t||t.parent.kind===190&&t.parent.expression===t||((t.kind===72||t.kind===148)&&isInRightSideOfImportOrExportAssignment(t)||t.parent.kind===167&&t.parent.exprName===t);if(!o){error(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)}}return i}function checkParenthesizedExpression(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):undefined;if(n){return checkAssertionWorker(n,n.typeExpression.type,t.expression,r)}return checkExpression(t.expression,r)}function checkExpressionWorker(t,r,n){switch(t.kind){case 72:return checkIdentifier(t);case 100:return checkThisExpression(t);case 98:return checkSuperExpression(t);case 96:return ae;case 14:case 10:return getFreshTypeOfLiteralType(getLiteralType(t.text));case 8:checkGrammarNumericLiteral(t);return getFreshTypeOfLiteralType(getLiteralType(+t.text));case 9:checkGrammarBigIntLiteral(t);return getFreshTypeOfLiteralType(getBigIntLiteralType(t));case 102:return fe;case 87:return ue;case 206:return checkTemplateExpression(t);case 13:return tt;case 187:return checkArrayLiteral(t,r,n);case 188:return checkObjectLiteral(t,r);case 189:return checkPropertyAccessExpression(t);case 190:return checkIndexedAccess(t);case 191:if(t.expression.kind===92){return checkImportCallExpression(t)}case 192:return checkCallExpression(t);case 193:return checkTaggedTemplateExpression(t);case 195:return checkParenthesizedExpression(t,r);case 209:return checkClassExpression(t);case 196:case 197:return checkFunctionExpressionOrObjectLiteralMethod(t,r);case 199:return checkTypeOfExpression(t);case 194:case 212:return checkAssertion(t);case 213:return checkNonNullAssertion(t);case 214:return checkMetaProperty(t);case 198:return checkDeleteExpression(t);case 200:return checkVoidExpression(t);case 201:return checkAwaitExpression(t);case 202:return checkPrefixUnaryExpression(t);case 203:return checkPostfixUnaryExpression(t);case 204:return checkBinaryExpression(t,r);case 205:return checkConditionalExpression(t,r);case 208:return checkSpreadExpression(t,r);case 210:return ne;case 207:return checkYieldExpression(t);case 215:return t.type;case 270:return checkJsxExpression(t,r);case 260:return checkJsxElement(t,r);case 261:return checkJsxSelfClosingElement(t,r);case 264:return checkJsxFragment(t);case 268:return checkJsxAttributes(t,r);case 262:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ee}function checkTypeParameter(t){if(t.expression){grammarErrorOnFirstToken(t.expression,e.Diagnostics.Type_expected)}checkSourceElement(t.constraint);checkSourceElement(t.default);var r=getDeclaredTypeOfTypeParameter(getSymbolOfNode(t));if(!hasNonCircularBaseConstraint(r)){error(e.getEffectiveConstraintOfTypeParameter(t),e.Diagnostics.Type_parameter_0_has_a_circular_constraint,typeToString(r))}if(!hasNonCircularTypeParameterDefault(r)){error(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,typeToString(r))}var n=getConstraintOfTypeParameter(r);var i=getDefaultFromTypeParameter(r);if(n&&i){checkTypeAssignableTo(i,getTypeWithThisArgument(n,i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}if(a){checkTypeNameIsReserved(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}}function checkParameter(t){checkGrammarDecoratorsAndModifiers(t);checkVariableLikeDeclaration(t);var r=e.getContainingFunction(t);if(e.hasModifier(t,92)){if(!(r.kind===157&&e.nodeIsPresent(r.body))){error(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)}}if(t.questionToken&&e.isBindingPattern(t.name)&&r.body){error(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature)}if(t.name&&e.isIdentifier(t.name)&&(t.name.escapedText==="this"||t.name.escapedText==="new")){if(r.parameters.indexOf(t)!==0){error(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText)}if(r.kind===157||r.kind===161||r.kind===166){error(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)}if(r.kind===197){error(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)}}if(t.dotDotDotToken&&!e.isBindingPattern(t.name)&&!isTypeAssignableTo(getTypeOfSymbol(t.symbol),nt)){error(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}}function checkTypePredicate(t){var r=getTypePredicateParent(t);if(!r){error(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var n=getTypePredicateOfSignature(getSignatureFromDeclaration(r));if(!n){return}checkSourceElement(t.type);var i=t.parameterName;if(e.isThisTypePredicate(n)){getTypeFromThisTypeNode(i)}else{if(n.parameterIndex>=0){if(r.parameters[n.parameterIndex].dotDotDotToken){error(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter)}else{var a=function(){return e.chainDiagnosticMessages(undefined,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};checkTypeAssignableTo(n.type,getTypeOfNode(r.parameters[n.parameterIndex]),t.type,undefined,a)}}else if(i){var o=false;for(var s=0,c=r.parameters;s<c.length;s++){var u=c[s].name;if(e.isBindingPattern(u)&&checkIfTypePredicateVariableIsDeclaredInBindingPattern(u,i,n.parameterName)){o=true;break}}if(!o){error(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}}function getTypePredicateParent(e){switch(e.parent.kind){case 197:case 160:case 239:case 196:case 165:case 156:case 155:var t=e.parent;if(e===t.type){return t}}}function checkIfTypePredicateVariableIsDeclaredInBindingPattern(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isOmittedExpression(o)){continue}var s=o.name;if(s.kind===72&&s.escapedText===n){error(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n);return true}else if(s.kind===185||s.kind===184){if(checkIfTypePredicateVariableIsDeclaredInBindingPattern(s,r,n)){return true}}}}function checkSignatureDeclaration(t){if(t.kind===162){checkGrammarIndexSignature(t)}else if(t.kind===165||t.kind===239||t.kind===166||t.kind===160||t.kind===157||t.kind===161){checkGrammarFunctionLikeDeclaration(t)}var r=e.getFunctionFlags(t);if(!(r&4)){if((r&3)===3&&C<6){checkExternalEmitHelpers(t,6144)}if((r&3)===2&&C<4){checkExternalEmitHelpers(t,64)}if((r&3)!==0&&C<2){checkExternalEmitHelpers(t,128)}}checkTypeParameters(t.typeParameters);e.forEach(t.parameters,checkParameter);if(t.type){checkSourceElement(t.type)}if(a){checkCollisionWithArgumentsInGeneratedCode(t);var n=e.getEffectiveReturnTypeNode(t);if(F&&!n){switch(t.kind){case 161:error(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 160:error(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}}if(n){var i=e.getFunctionFlags(t);if((i&(4|1))===1){var o=getTypeFromTypeNode(n);if(o===_e){error(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation)}else{var s=getIteratedTypeOfGenerator(o,(i&2)!==0)||X;var c=i&2?createAsyncIterableIteratorType(s):createIterableIteratorType(s);checkTypeAssignableTo(c,o,n)}}else if((i&3)===2){checkAsyncFunctionReturnType(t,n)}}if(t.kind!==162&&t.kind!==289){registerForUnusedIdentifiersCheck(t)}}}function checkClassForDuplicateDeclarations(t){var r;(function(e){e[e["Getter"]=1]="Getter";e[e["Setter"]=2]="Setter";e[e["Method"]=4]="Method";e[e["Property"]=3]="Property"})(r||(r={}));var n=e.createUnderscoreEscapedMap();var i=e.createUnderscoreEscapedMap();for(var a=0,o=t.members;a<o.length;a++){var s=o[a];if(s.kind===157){for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];if(e.isParameterPropertyDeclaration(l)&&!e.isBindingPattern(l.name)){addName(n,l.name,l.name.escapedText,3)}}}else{var f=e.hasModifier(s,32);var d=f?i:n;var p=s.name;var g=p&&e.getPropertyNameForPropertyNameNode(p);if(p&&g){switch(s.kind){case 158:addName(d,p,g,1);break;case 159:addName(d,p,g,2);break;case 154:addName(d,p,g,3);break;case 156:addName(d,p,g,4);break}}}}function addName(t,r,n,i){var a=t.get(n);if(a){if(a&4){if(i!==4){error(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r))}}else if(a&i){error(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r))}else{t.set(n,a|i)}}else{t.set(n,i)}}}function checkClassForStaticPropertyNameConflicts(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];var a=i.name;var o=e.hasModifier(i,32);if(o&&a){var s=e.getPropertyNameForPropertyNameNode(a);switch(s){case"name":case"length":case"caller":case"arguments":case"prototype":var c=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;var u=getNameOfSymbolAsWritten(getSymbolOfNode(t));error(a,c,s,u);break}}}}function checkObjectTypeForDuplicateDeclarations(t){var r=e.createMap();for(var n=0,i=t.members;n<i.length;n++){var a=i[n];if(a.kind===153){var o=void 0;var s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 72:o=e.idText(s);break;default:continue}if(r.get(o)){error(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o);error(a.name,e.Diagnostics.Duplicate_identifier_0,o)}else{r.set(o,true)}}}}function checkTypeForDuplicateIndexSignatures(t){if(t.kind===241){var r=getSymbolOfNode(t);if(r.declarations.length>0&&r.declarations[0]!==t){return}}var n=getIndexSymbol(getSymbolOfNode(t));if(n){var i=false;var a=false;for(var o=0,s=n.declarations;o<s.length;o++){var c=s[o];var u=c;if(u.parameters.length===1&&u.parameters[0].type){switch(u.parameters[0].type.kind){case 138:if(!a){a=true}else{error(u,e.Diagnostics.Duplicate_string_index_signature)}break;case 135:if(!i){i=true}else{error(u,e.Diagnostics.Duplicate_number_index_signature)}break}}}}}function checkPropertyDeclaration(e){if(!checkGrammarDecoratorsAndModifiers(e)&&!checkGrammarProperty(e))checkGrammarComputedPropertyName(e.name);checkVariableLikeDeclaration(e)}function checkMethodDeclaration(t){if(!checkGrammarMethod(t))checkGrammarComputedPropertyName(t.name);checkFunctionOrMethodDeclaration(t);if(e.hasModifier(t,128)&&t.kind===156&&t.body){error(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}}function checkConstructorDeclaration(t){checkSignatureDeclaration(t);if(!checkGrammarConstructorTypeParameters(t))checkGrammarConstructorTypeAnnotation(t);checkSourceElement(t.body);var r=getSymbolOfNode(t);var n=e.getDeclarationOfKind(r,t.kind);if(t===n){checkFunctionOrConstructorSymbol(r)}if(e.nodeIsMissing(t.body)){return}if(!a){return}function isInstancePropertyWithInitializer(t){return t.kind===154&&!e.hasModifier(t,32)&&!!t.initializer}var i=t.parent;if(e.getEffectiveBaseTypeNode(i)){captureLexicalThis(t.parent,i);var o=classDeclarationExtendsNull(i);var s=getSuperCallInConstructor(t);if(s){if(o){error(s,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null)}var c=e.some(t.parent.members,isInstancePropertyWithInitializer)||e.some(t.parameters,function(t){return e.hasModifier(t,92)});if(c){var u=t.body.statements;var l=void 0;for(var f=0,d=u;f<d.length;f++){var p=d[f];if(p.kind===221&&e.isSuperCall(p.expression)){l=p;break}if(!e.isPrologueDirective(p)){break}}if(!l){error(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}}else if(!o){error(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function checkAccessorDeclaration(t){if(a){if(!checkGrammarFunctionLikeDeclaration(t)&&!checkGrammarAccessor(t))checkGrammarComputedPropertyName(t.name);checkDecorators(t);checkSignatureDeclaration(t);if(t.kind===158){if(!(t.flags&4194304)&&e.nodeIsPresent(t.body)&&t.flags&128){if(!(t.flags&256)){error(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)}}}if(t.name.kind===149){checkComputedPropertyName(t.name)}if(!hasNonBindableDynamicName(t)){var r=t.kind===158?159:158;var n=e.getDeclarationOfKind(getSymbolOfNode(t),r);if(n){var i=e.getModifierFlags(t);var o=e.getModifierFlags(n);if((i&28)!==(o&28)){error(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility)}if((i&128)!==(o&128)){error(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)}checkAccessorDeclarationTypesIdentical(t,n,getAnnotatedAccessorType,e.Diagnostics.get_and_set_accessor_must_have_the_same_type);checkAccessorDeclarationTypesIdentical(t,n,getThisTypeOfDeclaration,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=getTypeOfAccessors(getSymbolOfNode(t));if(t.kind===158){checkAllCodePathsInNonVoidFunctionReturnOrThrow(t,s)}}checkSourceElement(t.body)}function checkAccessorDeclarationTypesIdentical(e,t,r,n){var i=r(e);var a=r(t);if(i&&a&&!isTypeIdenticalTo(i,a)){error(e,n)}}function checkMissingDeclaration(e){checkDecorators(e)}function getEffectiveTypeArguments(t,r){return fillMissingTypeArguments(e.map(t.typeArguments,getTypeFromTypeNode),r,getMinTypeArgumentCount(r),e.isInJSFile(t))}function checkTypeArgumentConstraints(t,r){var n;var i;var a=true;for(var o=0;o<r.length;o++){var s=getConstraintOfTypeParameter(r[o]);if(s){if(!n){n=getEffectiveTypeArguments(t,r);i=createTypeMapper(r,n)}a=a&&checkTypeAssignableTo(n[o],instantiateType(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}}return a}function getTypeParametersForTypeReference(t){var r=getTypeFromTypeReference(t);if(r!==ee){var n=getNodeLinks(t).resolvedSymbol;if(n){return n.flags&524288&&getSymbolLinks(n).typeParameters||(e.getObjectFlags(r)&4?r.target.localTypeParameters:undefined)}}return undefined}function checkTypeReferenceNode(t){checkGrammarTypeArguments(t,t.typeArguments);if(t.kind===164&&t.typeName.jsdocDotPos!==undefined&&!e.isInJSFile(t)&&!e.isInJSDoc(t)){grammarErrorAtPos(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}var r=getTypeFromTypeReference(t);if(r!==ee){if(t.typeArguments){e.forEach(t.typeArguments,checkSourceElement);if(a){var n=getTypeParametersForTypeReference(t);if(n){checkTypeArgumentConstraints(t,n)}}}if(r.flags&32&&getNodeLinks(t).resolvedSymbol.flags&8){error(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,typeToString(r))}}}function getTypeArgumentConstraint(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(!r)return undefined;var n=getTypeParametersForTypeReference(r);var i=getConstraintOfTypeParameter(n[r.typeArguments.indexOf(t)]);return i&&instantiateType(i,createTypeMapper(n,getEffectiveTypeArguments(r,n)))}function checkTypeQuery(e){getTypeFromTypeQueryNode(e)}function checkTypeLiteral(t){e.forEach(t.members,checkSourceElement);if(a){var r=getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(t);checkIndexConstraints(r);checkTypeForDuplicateIndexSignatures(t);checkObjectTypeForDuplicateDeclarations(t)}}function checkArrayType(e){checkSourceElement(e.elementType)}function checkTupleType(t){var r=t.elementTypes;var n=false;for(var i=0;i<r.length;i++){var a=r[i];if(a.kind===172){if(i!==r.length-1){grammarErrorOnNode(a,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}if(!isArrayType(getTypeFromTypeNode(a))){error(a,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}}else if(a.kind===171){n=true}else if(n){grammarErrorOnNode(a,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}checkGrammarForDisallowedTrailingComma(t.elementTypes);e.forEach(t.elementTypes,checkSourceElement)}function checkUnionOrIntersectionType(t){e.forEach(t.types,checkSourceElement)}function checkIndexedAccessIndexType(t,r){if(!(t.flags&8388608)){return t}var n=t.objectType;var i=t.indexType;if(isTypeAssignableTo(i,getIndexType(n,false))){if(r.kind===190&&e.isAssignmentTarget(r)&&e.getObjectFlags(n)&32&&getMappedTypeModifiers(n)&1){error(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,typeToString(n))}return t}if(getIndexInfoOfType(getApparentType(n),1)&&isTypeAssignableToKind(i,296)){return t}error(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,typeToString(i),typeToString(n));return t}function checkIndexedAccessType(e){checkSourceElement(e.objectType);checkSourceElement(e.indexType);checkIndexedAccessIndexType(getTypeFromIndexedAccessTypeNode(e),e)}function checkMappedType(t){checkSourceElement(t.typeParameter);checkSourceElement(t.type);if(!t.type){reportImplicitAny(t,X)}var r=getTypeFromMappedTypeNode(t);var n=getConstraintTypeFromMappedType(r);checkTypeAssignableTo(n,Se,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}function checkThisType(e){getTypeFromThisTypeNode(e)}function checkTypeOperator(e){checkGrammarTypeOperatorNode(e);checkSourceElement(e.type)}function checkConditionalType(t){e.forEachChild(t,checkSourceElement)}function checkInferType(t){if(!e.findAncestor(t,function(e){return e.parent&&e.parent.kind===175&&e.parent.extendsType===e})){grammarErrorOnNode(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type)}checkSourceElement(t.typeParameter);registerForUnusedIdentifiersCheck(t)}function checkImportType(e){checkSourceElement(e.argument);getTypeFromTypeNode(e)}function isPrivateWithinAmbient(t){return e.hasModifier(t,8)&&!!(t.flags&4194304)}function getEffectiveDeclarationFlags(t,r){var n=e.getCombinedModifierFlags(t);if(t.parent.kind!==241&&t.parent.kind!==240&&t.parent.kind!==209&&t.flags&4194304){if(!(n&2)&&!(e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent))){n|=1}n|=2}return n&r}function checkFunctionOrConstructorSymbol(t){if(!a){return}function getCanonicalOverload(e,t){var r=t!==undefined&&t.parent===e[0].parent;return r?t:e[0]}function checkFlagAgreementBetweenOverloads(t,r,n,i,a){var o=i^a;if(o!==0){var s=getEffectiveDeclarationFlags(getCanonicalOverload(t,r),n);e.forEach(t,function(t){var r=getEffectiveDeclarationFlags(t,n)^s;if(r&1){error(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported)}else if(r&2){error(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient)}else if(r&(8|16)){error(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected)}else if(r&128){error(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function checkQuestionTokenAgreementBetweenOverloads(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(getCanonicalOverload(t,r));e.forEach(t,function(t){var r=e.hasQuestionToken(t)!==a;if(r){error(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}})}}var r=1|2|8|16|128;var n=0;var i=r;var o=false;var s=true;var c=false;var u;var l;var f;var d=t.declarations;var p=(t.flags&16384)!==0;function reportImplementationExpectedError(t){if(t.name&&e.nodeIsMissing(t.name)){return}var r=false;var n=e.forEachChild(t.parent,function(e){if(r){return e}else{r=e===t}});if(n&&n.pos===t.end){if(n.kind===t.kind){var i=n.name||n;var a=n.name;if(t.name&&a&&(e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||!e.isComputedPropertyName(t.name)&&!e.isComputedPropertyName(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a))){var o=(t.kind===156||t.kind===155)&&e.hasModifier(t,32)!==e.hasModifier(n,32);if(o){var s=e.hasModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;error(i,s)}return}else if(e.nodeIsPresent(n.body)){error(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name));return}}}var c=t.name||t;if(p){error(c,e.Diagnostics.Constructor_implementation_is_missing)}else{if(e.hasModifier(t,128)){error(c,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive)}else{error(c,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}var g=false;var _=false;for(var m=0,y=d;m<y.length;m++){var h=y[m];var v=h;var T=v.flags&4194304;var S=v.parent.kind===241||v.parent.kind===168||T;if(S){f=undefined}if(v.kind===239||v.kind===156||v.kind===155||v.kind===157){var b=getEffectiveDeclarationFlags(v,r);n|=b;i&=b;o=o||e.hasQuestionToken(v);s=s&&e.hasQuestionToken(v);if(e.nodeIsPresent(v.body)&&u){if(p){_=true}else{g=true}}else if(f&&f.parent===v.parent&&f.end!==v.pos){reportImplementationExpectedError(f)}if(e.nodeIsPresent(v.body)){if(!u){u=v}}else{c=true}f=v;if(!S){l=v}}}if(_){e.forEach(d,function(t){error(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})}if(g){e.forEach(d,function(t){error(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)})}if(l&&!l.body&&!e.hasModifier(l,128)&&!l.questionToken){reportImplementationExpectedError(l)}if(c){checkFlagAgreementBetweenOverloads(d,u,r,n,i);checkQuestionTokenAgreementBetweenOverloads(d,u,o,s);if(u){var x=getSignaturesOfSymbol(t);var C=getSignatureFromDeclaration(u);for(var E=0,D=x;E<D.length;E++){var k=D[E];if(!isImplementationCompatibleWithOverload(C,k)){error(k.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}}}var Sr;(function(e){e[e["None"]=0]="None";e[e["ExportValue"]=1]="ExportValue";e[e["ExportType"]=2]="ExportType";e[e["ExportNamespace"]=4]="ExportNamespace"})(Sr||(Sr={}));function checkExportsOnMergedDeclarations(t){if(!a){return}var r=t.localSymbol;if(!r){r=getSymbolOfNode(t);if(!r.exportSymbol){return}}if(e.getDeclarationOfKind(r,t.kind)!==t){return}var n=0;var i=0;var o=0;for(var s=0,c=r.declarations;s<c.length;s++){var u=c[s];var l=getDeclarationSpaces(u);var f=getEffectiveDeclarationFlags(u,1|512);if(f&1){if(f&512){o|=l}else{n|=l}}else{i|=l}}var d=n|i;var p=n&i;var g=o&d;if(p||g){for(var _=0,m=r.declarations;_<m.length;_++){var u=m[_];var l=getDeclarationSpaces(u);var y=e.getNameOfDeclaration(u);if(l&g){error(y,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(y))}else if(l&p){error(y,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(y))}}}function getDeclarationSpaces(t){var r=t;switch(r.kind){case 241:case 242:case 304:case 297:return 2;case 244:return e.isAmbientModule(r)||e.getModuleInstanceState(r)!==0?4|1:4;case 240:case 243:return 2|1;case 279:return 2|1|4;case 254:if(!e.isEntityNameExpression(r.expression)){return 1}r=r.expression;case 248:case 251:case 250:var n=0;var i=resolveAlias(getSymbolOfNode(r));e.forEach(i.declarations,function(e){n|=getDeclarationSpaces(e)});return n;case 237:case 186:case 239:case 253:return 1;default:return e.Debug.fail(e.Debug.showSyntaxKind(r))}}}function getAwaitedTypeOfPromise(e,t,r){var n=getPromisedTypeOfPromise(e,t);return n&&getAwaitedType(n,t,r)}function getPromisedTypeOfPromise(t,r){if(isTypeAny(t)){return undefined}var n=t;if(n.promisedTypeOfPromise){return n.promisedTypeOfPromise}if(isReferenceToType(t,getGlobalPromiseType(false))){return n.promisedTypeOfPromise=t.typeArguments[0]}var i=getTypeOfPropertyOfType(t,"then");if(isTypeAny(i)){return undefined}var a=i?getSignaturesOfType(i,0):e.emptyArray;if(a.length===0){if(r){error(r,e.Diagnostics.A_promise_must_have_a_then_method)}return undefined}var o=getTypeWithFacts(getUnionType(e.map(a,getTypeOfFirstParameterOfSignature)),2097152);if(isTypeAny(o)){return undefined}var s=getSignaturesOfType(o,0);if(s.length===0){if(r){error(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}return undefined}return n.promisedTypeOfPromise=getUnionType(e.map(s,getTypeOfFirstParameterOfSignature),2)}function checkAwaitedType(e,t,r){return getAwaitedType(e,t,r)||ee}function getAwaitedType(t,r,n){var i=t;if(i.awaitedTypeOfType){return i.awaitedTypeOfType}if(isTypeAny(t)){return i.awaitedTypeOfType=t}if(t.flags&1048576){var a=void 0;for(var o=0,s=t.types;o<s.length;o++){var c=s[o];a=e.append(a,getAwaitedType(c,r,n))}if(!a){return undefined}return i.awaitedTypeOfType=getUnionType(a)}var u=getPromisedTypeOfPromise(t);if(u){if(t.id===u.id||$t.indexOf(u.id)>=0){if(r){error(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method)}return undefined}$t.push(t.id);var l=getAwaitedType(u,r,n);$t.pop();if(!l){return undefined}return i.awaitedTypeOfType=l}var f=getTypeOfPropertyOfType(t,"then");if(f&&getSignaturesOfType(f,0).length>0){if(r){if(!n)return e.Debug.fail();error(r,n)}return undefined}return i.awaitedTypeOfType=t}function checkAsyncFunctionReturnType(t,r){var n=getTypeFromTypeNode(r);if(C>=2){if(n===ee){return}var i=getGlobalPromiseType(true);if(i!==ke&&!isReferenceToType(n,i)){error(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);return}}else{markTypeNodeAsReferenced(r);if(n===ee){return}var a=e.getEntityNameFromTypeNode(r);if(a===undefined){error(r,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,typeToString(n));return}var o=resolveEntityName(a,67220415,true);var s=o?getTypeOfSymbol(o):ee;if(s===ee){if(a.kind===72&&a.escapedText==="Promise"&&getTargetType(n)===getGlobalPromiseType(false)){error(r,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)}else{error(r,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))}return}var c=getGlobalPromiseConstructorLikeType(true);if(c===xe){error(r,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));return}if(!checkTypeAssignableTo(s,c,r,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 u=a&&getFirstIdentifier(a);var l=getSymbol(t.locals,u.escapedText,67220415);if(l){error(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a));return}}checkAwaitedType(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function checkDecorator(t){var r=getResolvedSignature(t);var n=getReturnTypeOfSignature(r);if(n.flags&1){return}var i;var a=getDiagnosticHeadMessageForDecoratorResolution(t);var o;switch(t.parent.kind){case 240:var s=getSymbolOfNode(t.parent);var c=getTypeOfSymbol(s);i=getUnionType([c,_e]);break;case 151:i=_e;o=e.chainDiagnosticMessages(undefined,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 154:i=_e;o=e.chainDiagnosticMessages(undefined,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 156:case 158:case 159:var u=getTypeOfNode(t.parent);var l=createTypedPropertyDescriptorType(u);i=getUnionType([l,_e]);break;default:return e.Debug.fail()}checkTypeAssignableTo(n,i,t,a,function(){return o})}function markTypeNodeAsReferenced(t){markEntityNameOrEntityExpressionAsReference(t&&e.getEntityNameFromTypeNode(t))}function markEntityNameOrEntityExpressionAsReference(e){if(!e)return;var t=getFirstIdentifier(e);var r=(e.kind===72?67897832:1920)|2097152;var n=resolveName(t,t.escapedText,r,undefined,undefined,true);if(n&&n.flags&2097152&&symbolIsValue(n)&&!isConstEnumOrConstEnumOnlyModule(resolveAlias(n))){markAliasSymbolAsReferenced(n)}}function markDecoratorMedataDataTypeNodeAsReferenced(t){var r=getEntityNameForDecoratorMetadata(t);if(r&&e.isEntityName(r)){markEntityNameOrEntityExpressionAsReference(r)}}function getEntityNameForDecoratorMetadata(e){if(e){switch(e.kind){case 174:case 173:return getEntityNameForDecoratorMetadataFromTypeList(e.types);case 175:return getEntityNameForDecoratorMetadataFromTypeList([e.trueType,e.falseType]);case 177:return getEntityNameForDecoratorMetadata(e.type);case 164:return e.typeName}}}function getEntityNameForDecoratorMetadataFromTypeList(t){var r;for(var n=0,i=t;n<i.length;n++){var a=i[n];while(a.kind===177){a=a.type}if(a.kind===132){continue}if(!k&&(a.kind===96||a.kind===141)){continue}var o=getEntityNameForDecoratorMetadata(a);if(!o){return undefined}if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText){return undefined}}else{r=o}}return r}function getParameterTypeNodeForDecoratorCheck(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function checkDecorators(t){if(!t.decorators){return}if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){return}if(!x.experimentalDecorators){error(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)}var r=t.decorators[0];checkExternalEmitHelpers(r,8);if(t.kind===151){checkExternalEmitHelpers(r,32)}if(x.emitDecoratorMetadata){checkExternalEmitHelpers(r,16);switch(t.kind){case 240:var n=e.getFirstConstructorWithBody(t);if(n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(o))}}break;case 158:case 159:var s=t.kind===158?159:158;var c=e.getDeclarationOfKind(getSymbolOfNode(t),s);markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(t)||c&&getAnnotatedAccessorTypeNode(c));break;case 156:for(var u=0,l=t.parameters;u<l.length;u++){var o=l[u];markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(o))}markDecoratorMedataDataTypeNodeAsReferenced(e.getEffectiveReturnTypeNode(t));break;case 154:markDecoratorMedataDataTypeNodeAsReferenced(e.getEffectiveTypeAnnotationNode(t));break;case 151:markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(t));var f=t.parent;for(var d=0,p=f.parameters;d<p.length;d++){var o=p[d];markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(o))}break}}e.forEach(t.decorators,checkDecorator)}function checkFunctionDeclaration(e){if(a){checkFunctionOrMethodDeclaration(e);checkGrammarForGenerator(e);checkCollisionWithRequireExportsInGeneratedCode(e,e.name);checkCollisionWithGlobalPromiseInGeneratedCode(e,e.name)}}function checkJSDocTypeAliasTag(t){if(!t.typeExpression){error(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags)}if(t.name){checkTypeNameIsReserved(t.name,e.Diagnostics.Type_alias_name_cannot_be_0)}checkSourceElement(t.typeExpression)}function checkJSDocTemplateTag(e){checkSourceElement(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++){var n=r[t];checkSourceElement(n)}}function checkJSDocTypeTag(e){checkSourceElement(e.typeExpression)}function checkJSDocParameterTag(t){checkSourceElement(t.typeExpression);if(!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name)){return}if(!containsArgumentsReference(r)){error(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name.kind===148?t.name.right:t.name))}else if(e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!isArrayType(getTypeFromTypeNode(t.typeExpression.type))){error(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(t.name.kind===148?t.name.right:t.name))}}}}function checkJSDocFunctionType(t){if(a&&!t.type&&!e.isJSDocConstructSignature(t)){reportImplicitAny(t,X)}checkSignatureDeclaration(t)}function checkJSDocAugmentsTag(t){var r=e.getJSDocHost(t);if(!e.isClassDeclaration(r)&&!e.isClassExpression(r)){error(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName));return}var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0);if(n.length>1){error(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag)}var i=getIdentifierFromEntityNameExpression(t.class.expression);var a=e.getClassExtendsHeritageElement(r);if(a){var o=getIdentifierFromEntityNameExpression(a.expression);if(o&&i.escapedText!==o.escapedText){error(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}}function getIdentifierFromEntityNameExpression(e){switch(e.kind){case 72:return e;case 189:return e.name;default:return undefined}}function checkFunctionOrMethodDeclaration(t){checkDecorators(t);checkSignatureDeclaration(t);var r=e.getFunctionFlags(t);if(t.name&&t.name.kind===149){checkComputedPropertyName(t.name)}if(!hasNonBindableDynamicName(t)){var n=getSymbolOfNode(t);var i=t.localSymbol||n;var o=e.find(i.declarations,function(e){return e.kind===t.kind&&!(e.flags&65536)});if(t===o){checkFunctionOrConstructorSymbol(i)}if(n.parent){if(e.getDeclarationOfKind(n,t.kind)===t){checkFunctionOrConstructorSymbol(n)}}}var s=t.kind===155?undefined:t.body;checkSourceElement(s);if((r&1)===0){var c=getReturnOrPromisedType(t,r);checkAllCodePathsInNonVoidFunctionReturnOrThrow(t,c)}if(a&&!e.getEffectiveReturnTypeNode(t)){if(e.nodeIsMissing(s)&&!isPrivateWithinAmbient(t)){reportImplicitAny(t,X)}if(r&1&&e.nodeIsPresent(s)){getReturnTypeOfSignature(getSignatureFromDeclaration(t))}}if(e.isInJSFile(t)){var u=e.getJSDocTypeTag(t);if(u&&u.typeExpression&&!getContextualCallSignature(getTypeFromTypeNode(u.typeExpression),t)){error(u,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}}function registerForUnusedIdentifiersCheck(t){if(a&&!(t.flags&4194304)){var r=e.getSourceFileOfNode(t);var n=Dt.get(r.path);if(!n){n=[];Dt.set(r.path,n)}n.push(t)}}function checkUnusedIdentifiers(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 240:case 209:checkUnusedClassMembers(a,r);checkUnusedTypeParameters(a,r);break;case 279:case 244:case 218:case 246:case 225:case 226:case 227:checkUnusedLocalsAndParameters(a,r);break;case 157:case 196:case 239:case 197:case 156:case 158:case 159:if(a.body){checkUnusedLocalsAndParameters(a,r)}checkUnusedTypeParameters(a,r);break;case 155:case 160:case 161:case 165:case 166:case 242:case 241:checkUnusedTypeParameters(a,r);break;case 176:checkUnusedInferTypeParameter(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function errorUnusedLocal(t,r,n){var i=e.getNameOfDeclaration(t)||t;var a=isTypeDeclaration(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function isIdentifierThatStartsWithUnderscore(t){return e.isIdentifier(t)&&e.idText(t).charCodeAt(0)===95}function checkUnusedClassMembers(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 156:case 154:case 158:case 159:if(a.kind===159&&a.symbol.flags&32768){break}var o=getSymbolOfNode(a);if(!o.isReferenced&&e.hasModifier(a,8)){r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,symbolToString(o)))}break;case 157:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];if(!u.symbol.isReferenced&&e.hasModifier(u,8)){r(u,0,e.createDiagnosticForNode(u.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(u.symbol)))}}break;case 162:case 217:break;default:e.Debug.fail()}}}function checkUnusedInferTypeParameter(t,r){var n=t.typeParameter;if(isTypeParameterUnused(n)){r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}}function checkUnusedTypeParameters(t,r){if(e.last(getSymbolOfNode(t).declarations)!==t)return;var n=e.getEffectiveTypeParameterDeclarations(t);var i=new e.NodeSet;for(var a=0,o=n;a<o.length;a++){var s=o[a];if(!isTypeParameterUnused(s))continue;var c=e.idText(s.name);var u=s.parent;if(u.kind!==176&&u.typeParameters.every(isTypeParameterUnused)){if(i.tryAdd(u)){var l=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(u.typeParameters);var f=n.length===1;var d=f?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused;var p=f?c:undefined;r(s,1,e.createFileDiagnostic(e.getSourceFileOfNode(u),l.pos,l.end-l.pos,d,p))}}else{r(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,c))}}}function isTypeParameterUnused(e){return!(getMergedSymbol(e.symbol).isReferenced&262144)&&!isIdentifierThatStartsWithUnderscore(e.name)}function addToGroup(e,t,r,n){var i=String(n(t));var a=e.get(i);if(a){a[1].push(r)}else{e.set(i,[t,[r]])}}function tryGetRootParameterDeclaration(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function checkUnusedLocalsAndParameters(t,r){if(t.flags&4194304)return;var n=e.createMap();var i=e.createMap();var a=e.createMap();t.locals.forEach(function(t){if(t.flags&262144?!(t.flags&3&&!(t.isReferenced&3)):t.isReferenced||t.exportSymbol){return}for(var o=0,s=t.declarations;o<s.length;o++){var c=s[o];if(e.isAmbientModule(c)||(e.isVariableDeclaration(c)&&e.isForInOrOfStatement(c.parent.parent)||isImportedDeclaration(c))&&isIdentifierThatStartsWithUnderscore(c.name)){continue}if(isImportedDeclaration(c)){addToGroup(n,importClauseFromImported(c),c,getNodeId)}else if(e.isBindingElement(c)&&e.isObjectBindingPattern(c.parent)){var u=e.last(c.parent.elements);if(c===u||!e.last(c.parent.elements).dotDotDotToken){addToGroup(i,c.parent,c,getNodeId)}}else if(e.isVariableDeclaration(c)){addToGroup(a,c.parent,c,getNodeId)}else{var l=t.valueDeclaration&&tryGetRootParameterDeclaration(t.valueDeclaration);var f=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);if(l&&f){if(!e.isParameterPropertyDeclaration(l)&&!e.parameterIsThisKeyword(l)&&!isIdentifierThatStartsWithUnderscore(f)){r(l,1,e.createDiagnosticForNode(f,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))}}else{errorUnusedLocal(c,e.symbolName(t),r)}}}});n.forEach(function(t){var n=t[0],i=t[1];var a=n.parent;var o=(n.name?1:0)+(n.namedBindings?n.namedBindings.kind===251?1:n.namedBindings.elements.length:0);if(o===i.length){r(a,0,i.length===1?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused))}else{for(var s=0,c=i;s<c.length;s++){var u=c[s];errorUnusedLocal(u,e.idText(u.name),r)}}});i.forEach(function(t){var n=t[0],i=t[1];var o=tryGetRootParameterDeclaration(n.parent)?1:0;if(n.elements.length===i.length){if(i.length===1&&n.parent.kind===237&&n.parent.parent.kind===238){addToGroup(a,n.parent.parent,n.parent,getNodeId)}else{r(n,o,i.length===1?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bindingNameText(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused))}}else{for(var s=0,c=i;s<c.length;s++){var u=c[s];r(u,o,e.createDiagnosticForNode(u,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bindingNameText(u.name)))}}});a.forEach(function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length){r(n,0,i.length===1?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bindingNameText(e.first(i).name)):e.createDiagnosticForNode(n.parent.kind===219?n.parent:n,e.Diagnostics.All_variables_are_unused))}else{for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bindingNameText(s.name)))}}})}function bindingNameText(t){switch(t.kind){case 72:return e.idText(t);case 185:case 184:return bindingNameText(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function isImportedDeclaration(e){return e.kind===250||e.kind===253||e.kind===251}function importClauseFromImported(e){return e.kind===250?e:e.kind===251?e.parent:e.parent.parent}function checkBlock(t){if(t.kind===218){checkGrammarStatementInAmbientContext(t)}if(e.isFunctionOrModuleBlock(t)){var r=Ot;e.forEach(t.statements,checkSourceElement);Ot=r}else{e.forEach(t.statements,checkSourceElement)}if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkCollisionWithArgumentsInGeneratedCode(t){if(C>=2||x.noEmit||!e.hasRestParameter(t)||t.flags&4194304||e.nodeIsMissing(t.body)){return}e.forEach(t.parameters,function(t){if(t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===B.escapedName){error(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}})}function needCollisionCheckForIdentifier(t,r,n){if(!(r&&r.escapedText===n)){return false}if(t.kind===154||t.kind===153||t.kind===156||t.kind===155||t.kind===158||t.kind===159){return false}if(t.flags&4194304){return false}var i=e.getRootDeclaration(t);if(i.kind===151&&e.nodeIsMissing(i.parent.body)){return false}return true}function checkIfThisIsCapturedInEnclosingScope(t){e.findAncestor(t,function(r){if(getNodeCheckFlags(r)&4){var n=t.kind!==72;if(n){error(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference)}else{error(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference)}return true}return false})}function checkIfNewTargetIsCapturedInEnclosingScope(t){e.findAncestor(t,function(r){if(getNodeCheckFlags(r)&8){var n=t.kind!==72;if(n){error(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference)}else{error(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference)}return true}return false})}function checkCollisionWithRequireExportsInGeneratedCode(t,r){if(E>=e.ModuleKind.ES2015||x.noEmit){return}if(!needCollisionCheckForIdentifier(t,r,"require")&&!needCollisionCheckForIdentifier(t,r,"exports")){return}if(e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)!==1){return}var n=getDeclarationContainer(t);if(n.kind===279&&e.isExternalOrCommonJsModule(n)){error(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function checkCollisionWithGlobalPromiseInGeneratedCode(t,r){if(C>=4||x.noEmit||!needCollisionCheckForIdentifier(t,r,"Promise")){return}if(e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)!==1){return}var n=getDeclarationContainer(t);if(n.kind===279&&e.isExternalOrCommonJsModule(n)&&n.flags&1024){error(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function checkVarDeclaredNamesNotShadowed(t){if((e.getCombinedNodeFlags(t)&3)!==0||e.isParameterDeclaration(t)){return}if(t.kind===237&&!t.initializer){return}var r=getSymbolOfNode(t);if(r.flags&1){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=resolveName(t,t.name.escapedText,3,undefined,undefined,false);if(n&&n!==r&&n.flags&2){if(getDeclarationNodeFlagsFromSymbol(n)&3){var i=e.getAncestor(n.valueDeclaration,238);var a=i.parent.kind===219&&i.parent.parent?i.parent.parent:undefined;var o=a&&(a.kind===218&&e.isFunctionLike(a.parent)||a.kind===245||a.kind===244||a.kind===279);if(!o){var s=symbolToString(n);error(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,s,s)}}}}}function checkParameterInitializer(t){if(e.getRootDeclaration(t).kind!==151){return}var r=e.getContainingFunction(t);visit(t.initializer);function visit(n){if(e.isTypeNode(n)||e.isDeclarationName(n)){return}if(n.kind===189){return visit(n.expression)}else if(n.kind===72){var i=resolveName(n,n.escapedText,67220415|2097152,undefined,undefined,false);if(!i||i===Q||!i.valueDeclaration){return}if(i.valueDeclaration===t){error(n,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));return}var a=e.getEnclosingBlockScopeContainer(i.valueDeclaration);if(a===r){if(i.valueDeclaration.kind===151||i.valueDeclaration.kind===186){if(i.valueDeclaration.pos<t.pos){return}if(e.findAncestor(n,function(r){if(r===t.initializer){return"quit"}return e.isFunctionLike(r.parent)||r.parent.kind===154&&!e.hasModifier(r.parent,32)&&e.isClassLike(r.parent.parent)})){return}}error(n,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(n))}}else{return e.forEachChild(n,visit)}}}function convertAutoToAny(e){return e===Y?X:e===it?nt:e}function checkVariableLikeDeclaration(t){checkDecorators(t);if(!e.isBindingElement(t)){checkSourceElement(t.type)}if(!t.name){return}if(t.name.kind===149){checkComputedPropertyName(t.name);if(t.initializer){checkExpressionCached(t.initializer)}}if(t.kind===186){if(t.parent.kind===184&&C<6){checkExternalEmitHelpers(t,4)}if(t.propertyName&&t.propertyName.kind===149){checkComputedPropertyName(t.propertyName)}var r=t.parent.parent;var n=getTypeForBindingElementParent(r);var i=t.propertyName||t.name;if(!e.isBindingPattern(i)){var a=e.getTextOfPropertyName(i);if(a){var o=getPropertyOfType(n,a);if(o){markPropertyAsReferenced(o,undefined,false);checkPropertyAccessibility(r,!!r.initializer&&r.initializer.kind===98,n,o)}}}}if(e.isBindingPattern(t.name)){if(t.name.kind===185&&C<2&&x.downlevelIteration){checkExternalEmitHelpers(t,512)}e.forEach(t.name.elements,checkSourceElement)}if(t.initializer&&e.getRootDeclaration(t).kind===151&&e.nodeIsMissing(e.getContainingFunction(t).body)){error(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(t.name)){if(t.initializer&&t.parent.parent.kind!==226){var s=checkExpressionCached(t.initializer);if(k&&t.name.elements.length===0){checkNonNullType(s,t)}else{checkTypeAssignableToAndOptionallyElaborate(s,getWidenedTypeForVariableLikeDeclaration(t),t,t.initializer)}checkParameterInitializer(t)}return}var c=getSymbolOfNode(t);var u=convertAutoToAny(getTypeOfSymbol(c));if(t===c.valueDeclaration){var l=e.getEffectiveInitializer(t);if(l){var f=e.isInJSFile(t)&&e.isObjectLiteralExpression(l)&&(l.properties.length===0||e.isPrototypeAccess(t.name))&&e.hasEntries(c.exports);if(!f&&t.parent.parent.kind!==226){checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(l),u,t,l,undefined);checkParameterInitializer(t)}}if(c.declarations.length>1){if(e.some(c.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!areDeclarationFlagsIdentical(r,t)})){error(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}}}else{var d=convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(t));if(u!==ee&&d!==ee&&!isTypeIdenticalTo(u,d)&&!(c.flags&67108864)){errorNextVariableOrPropertyDeclarationMustHaveSameType(u,t,d)}if(t.initializer){checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(t.initializer),d,t,t.initializer,undefined)}if(!areDeclarationFlagsIdentical(t,c.valueDeclaration)){error(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}}if(t.kind!==154&&t.kind!==153){checkExportsOnMergedDeclarations(t);if(t.kind===237||t.kind===186){checkVarDeclaredNamesNotShadowed(t)}checkCollisionWithRequireExportsInGeneratedCode(t,t.name);checkCollisionWithGlobalPromiseInGeneratedCode(t,t.name)}}function errorNextVariableOrPropertyDeclarationMustHaveSameType(t,r,n){var i=e.getNameOfDeclaration(r);var a=r.kind===154||r.kind===153?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;error(i,a,e.declarationNameToString(i),typeToString(t),typeToString(n))}function areDeclarationFlagsIdentical(t,r){if(t.kind===151&&r.kind===237||t.kind===237&&r.kind===151){return true}if(e.hasQuestionToken(t)!==e.hasQuestionToken(r)){return false}var n=8|16|256|128|64|32;return e.getSelectedModifierFlags(t,n)===e.getSelectedModifierFlags(r,n)}function checkVariableDeclaration(e){checkGrammarVariableDeclaration(e);return checkVariableLikeDeclaration(e)}function checkBindingElement(e){checkGrammarBindingElement(e);return checkVariableLikeDeclaration(e)}function checkVariableStatement(t){if(!checkGrammarDecoratorsAndModifiers(t)&&!checkGrammarVariableDeclarationList(t.declarationList))checkGrammarForDisallowedLetOrConstStatement(t);e.forEach(t.declarationList.declarations,checkSourceElement)}function checkExpressionStatement(e){checkGrammarStatementInAmbientContext(e);checkExpression(e.expression)}function checkIfStatement(t){checkGrammarStatementInAmbientContext(t);checkTruthinessExpression(t.expression);checkSourceElement(t.thenStatement);if(t.thenStatement.kind===220){error(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement)}checkSourceElement(t.elseStatement)}function checkDoStatement(e){checkGrammarStatementInAmbientContext(e);checkSourceElement(e.statement);checkTruthinessExpression(e.expression)}function checkWhileStatement(e){checkGrammarStatementInAmbientContext(e);checkTruthinessExpression(e.expression);checkSourceElement(e.statement)}function checkTruthinessExpression(t,r){var n=checkExpression(t,r);if(n.flags&16384){error(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness)}return n}function checkForStatement(t){if(!checkGrammarStatementInAmbientContext(t)){if(t.initializer&&t.initializer.kind===238){checkGrammarVariableDeclarationList(t.initializer)}}if(t.initializer){if(t.initializer.kind===238){e.forEach(t.initializer.declarations,checkVariableDeclaration)}else{checkExpression(t.initializer)}}if(t.condition)checkTruthinessExpression(t.condition);if(t.incrementor)checkExpression(t.incrementor);checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForOfStatement(t){checkGrammarForInOrForOfStatement(t);if(t.awaitModifier){var r=e.getFunctionFlags(e.getContainingFunction(t));if((r&(4|2))===2&&C<6){checkExternalEmitHelpers(t,16384)}}else if(x.downlevelIteration&&C<2){checkExternalEmitHelpers(t,256)}if(t.initializer.kind===238){checkForInOrForOfVariableDeclaration(t)}else{var n=t.initializer;var i=checkRightHandSideOfForOf(t.expression,t.awaitModifier);if(n.kind===187||n.kind===188){checkDestructuringAssignment(n,i||ee)}else{var a=checkExpression(n);checkReferenceExpression(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access);if(i){checkTypeAssignableToAndOptionallyElaborate(i,a,n,t.expression)}}}checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForInStatement(t){checkGrammarForInOrForOfStatement(t);var r=getNonNullableTypeIfNeeded(checkExpression(t.expression));if(t.initializer.kind===238){var n=t.initializer.declarations[0];if(n&&e.isBindingPattern(n.name)){error(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern)}checkForInOrForOfVariableDeclaration(t)}else{var i=t.initializer;var a=checkExpression(i);if(i.kind===187||i.kind===188){error(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern)}else if(!isTypeAssignableTo(getIndexTypeOrString(r),a)){error(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}else{checkReferenceExpression(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access)}}if(r===me||!isTypeAssignableToKind(r,67108864|58982400)){error(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,typeToString(r))}checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForInOrForOfVariableDeclaration(e){var t=e.initializer;if(t.declarations.length>=1){var r=t.declarations[0];checkVariableDeclaration(r)}}function checkRightHandSideOfForOf(e,t){var r=checkNonNullExpression(e);return checkIteratedTypeOrElementType(r,e,true,t!==undefined)}function checkIteratedTypeOrElementType(e,t,r,n){if(isTypeAny(e)){return e}return getIteratedTypeOrElementType(e,t,r,n,true)||X}function getIteratedTypeOrElementType(t,r,n,i,a){if(t===me){reportTypeNotIterableError(r,t,i);return undefined}var o=C>=2;var s=!o&&x.downlevelIteration;if(o||s||i){var c=getIteratedTypeOfIterable(t,o?r:undefined,i,true,a);if(c||o){return c}}var u=t;var l=false;var f=false;if(n){if(u.flags&1048576){var d=t.types;var p=e.filter(d,function(e){return!(e.flags&132)});if(p!==d){u=getUnionType(p,2)}}else if(u.flags&132){u=me}f=u!==t;if(f){if(C<1){if(r){error(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);l=true}}if(u.flags&131072){return oe}}}if(!isArrayLikeType(u)){if(r&&!l){var g=!!getIteratedTypeOfIterable(t,undefined,i,true,a);var _=!n||f?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:g?e.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type:s?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:g?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type;error(r,_,typeToString(u))}return f?oe:undefined}var m=getIndexTypeOfType(u,1);if(f&&m){if(m.flags&132){return oe}return getUnionType([m,oe],2)}return m}function getIteratedTypeOfIterable(t,r,n,i,a){if(isTypeAny(t)){return undefined}return mapType(t,getIteratedType);function getIteratedType(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable){return o.iteratedTypeOfAsyncIterable}if(isReferenceToType(t,getGlobalAsyncIterableType(false))||isReferenceToType(t,getGlobalAsyncIterableIteratorType(false))){return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}}if(i){if(o.iteratedTypeOfIterable){return n?o.iteratedTypeOfAsyncIterable=getAwaitedType(o.iteratedTypeOfIterable):o.iteratedTypeOfIterable}if(isReferenceToType(t,getGlobalIterableType(false))||isReferenceToType(t,getGlobalIterableIteratorType(false))){return n?o.iteratedTypeOfAsyncIterable=getAwaitedType(t.typeArguments[0]):o.iteratedTypeOfIterable=t.typeArguments[0]}}var s=n&&getTypeOfPropertyOfType(t,e.getPropertyNameForKnownSymbolName("asyncIterator"));var c=s||(i?getTypeOfPropertyOfType(t,e.getPropertyNameForKnownSymbolName("iterator")):undefined);if(isTypeAny(c)){return undefined}var u=c?getSignaturesOfType(c,0):undefined;if(!e.some(u)){if(r){reportTypeNotIterableError(r,t,n);r=undefined}return undefined}var l=getUnionType(e.map(u,getReturnTypeOfSignature),2);var f=getIteratedTypeOfIterator(l,r,!!s);if(a&&r&&f){checkTypeAssignableTo(t,s?createAsyncIterableType(f):createIterableType(f),r)}if(f){return n?o.iteratedTypeOfAsyncIterable=s?f:getAwaitedType(f):o.iteratedTypeOfIterable=f}}}function reportTypeNotIterableError(t,r,n){error(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,typeToString(r))}function getIteratedTypeOfIterator(t,r,n){if(isTypeAny(t)){return undefined}var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator){return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator}var a=n?getGlobalAsyncIteratorType:getGlobalIteratorType;if(isReferenceToType(t,a(false))){return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0]}var o=getTypeOfPropertyOfType(t,"next");if(isTypeAny(o)){return undefined}var s=o?getSignaturesOfType(o,0):e.emptyArray;if(s.length===0){if(r){error(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}return undefined}var c=getUnionType(e.map(s,getReturnTypeOfSignature),2);if(isTypeAny(c)){return undefined}if(n){c=getAwaitedTypeOfPromise(c,r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property);if(isTypeAny(c)){return undefined}}var u=c&&getTypeOfPropertyOfType(c,"value");if(!u){if(r){error(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}return undefined}return n?i.iteratedTypeOfAsyncIterator=u:i.iteratedTypeOfIterator=u}function getIteratedTypeOfGenerator(e,t){if(isTypeAny(e)){return undefined}return getIteratedTypeOfIterable(e,undefined,t,!t,false)||getIteratedTypeOfIterator(e,undefined,t)}function checkBreakOrContinueStatement(e){if(!checkGrammarStatementInAmbientContext(e))checkGrammarBreakOrContinueStatement(e)}function isUnwrappedReturnTypeVoidOrAny(t,r){var n=(e.getFunctionFlags(t)&3)===2?getPromisedTypeOfPromise(r):r;return!!n&&maybeTypeOfKind(n,16384|3)}function checkReturnStatement(t){if(checkGrammarStatementInAmbientContext(t)){return}var r=e.getContainingFunction(t);if(!r){grammarErrorOnFirstToken(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var n=getSignatureFromDeclaration(r);var i=getReturnTypeOfSignature(n);var a=e.getFunctionFlags(r);var o=a&1;if(k||t.expression||i.flags&131072){var s=t.expression?checkExpressionCached(t.expression):re;if(o){return}else if(r.kind===159){if(t.expression){error(t,e.Diagnostics.Setters_cannot_return_a_value)}}else if(r.kind===157){if(t.expression&&!checkTypeAssignableToAndOptionallyElaborate(s,i,t,t.expression)){error(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}}else if(getReturnTypeFromAnnotation(r)){if(a&2){var c=getPromisedTypeOfPromise(i);var u=checkAwaitedType(s,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);if(c){checkTypeAssignableTo(u,c,t)}}else{checkTypeAssignableToAndOptionallyElaborate(s,i,t,t.expression)}}}else if(r.kind!==157&&x.noImplicitReturns&&!isUnwrappedReturnTypeVoidOrAny(r,i)&&!o){error(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function checkWithStatement(t){if(!checkGrammarStatementInAmbientContext(t)){if(t.flags&16384){grammarErrorOnFirstToken(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block)}}checkExpression(t.expression);var r=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;var i=t.statement.pos;grammarErrorAtPos(r,n,i-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function checkSwitchStatement(t){checkGrammarStatementInAmbientContext(t);var r;var n=false;var i=checkExpression(t.expression);var o=isLiteralType(i);e.forEach(t.caseBlock.clauses,function(s){if(s.kind===272&&!n){if(r===undefined){r=s}else{var c=e.getSourceFileOfNode(t);var u=e.skipTrivia(c.text,s.pos);var l=s.statements.length>0?s.statements[0].pos:s.end;grammarErrorAtPos(c,u,l-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement);n=true}}if(a&&s.kind===271){var f=checkExpression(s.expression);var d=isLiteralType(f);var p=i;if(!d||!o){f=d?getBaseTypeOfLiteralType(f):f;p=getBaseTypeOfLiteralType(i)}if(!isTypeEqualityComparableTo(p,f)){checkTypeComparableTo(f,p,s.expression,undefined)}}e.forEach(s.statements,checkSourceElement)});if(t.caseBlock.locals){registerForUnusedIdentifiersCheck(t.caseBlock)}}function checkLabeledStatement(t){if(!checkGrammarStatementInAmbientContext(t)){e.findAncestor(t.parent,function(r){if(e.isFunctionLike(r)){return"quit"}if(r.kind===233&&r.label.escapedText===t.label.escapedText){grammarErrorOnNode(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label));return true}return false})}checkSourceElement(t.statement)}function checkThrowStatement(t){if(!checkGrammarStatementInAmbientContext(t)){if(t.expression===undefined){grammarErrorAfterFirstToken(t,e.Diagnostics.Line_break_not_permitted_here)}}if(t.expression){checkExpression(t.expression)}}function checkTryStatement(t){checkGrammarStatementInAmbientContext(t);checkBlock(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){if(r.variableDeclaration.type){grammarErrorOnFirstToken(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation)}else if(r.variableDeclaration.initializer){grammarErrorOnFirstToken(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer)}else{var n=r.block.locals;if(n){e.forEachKey(r.locals,function(t){var r=n.get(t);if(r&&(r.flags&2)!==0){grammarErrorOnNode(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}})}}}checkBlock(r.block)}if(t.finallyBlock){checkBlock(t.finallyBlock)}}function checkIndexConstraints(t){var r=getIndexDeclarationOfSymbol(t.symbol,1);var n=getIndexDeclarationOfSymbol(t.symbol,0);var i=getIndexTypeOfType(t,0);var a=getIndexTypeOfType(t,1);if(i||a){e.forEach(getPropertiesOfObjectType(t),function(e){var o=getTypeOfSymbol(e);checkIndexConstraintForProperty(e,o,t,n,i,0);checkIndexConstraintForProperty(e,o,t,r,a,1)});var o=t.symbol.valueDeclaration;if(e.getObjectFlags(t)&1&&e.isClassLike(o)){for(var s=0,c=o.members;s<c.length;s++){var u=c[s];if(!e.hasModifier(u,32)&&hasNonBindableDynamicName(u)){var l=getSymbolOfNode(u);var f=getTypeOfSymbol(l);checkIndexConstraintForProperty(l,f,t,n,i,0);checkIndexConstraintForProperty(l,f,t,r,a,1)}}}}var d;if(i&&a){d=r||n;if(!d&&e.getObjectFlags(t)&2){var p=e.forEach(getBaseTypes(t),function(e){return getIndexTypeOfType(e,0)&&getIndexTypeOfType(e,1)});d=p?undefined:t.symbol.declarations[0]}}if(d&&!isTypeAssignableTo(a,i)){error(d,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,typeToString(a),typeToString(i))}function checkIndexConstraintForProperty(t,r,n,i,a,o){if(!a||e.isKnownSymbol(t)){return}var s=t.valueDeclaration;var c=s&&e.getNameOfDeclaration(s);if(o===1&&!(c?isNumericName(c):isNumericLiteralName(t.escapedName))){return}var u;if(s&&c&&(s.kind===204||c.kind===149||t.parent===n.symbol)){u=s}else if(i){u=i}else if(e.getObjectFlags(n)&2){var l=e.forEach(getBaseTypes(n),function(e){return getPropertyOfObjectType(e,t.escapedName)&&getIndexTypeOfType(e,o)});u=l?undefined:n.symbol.declarations[0]}if(u&&!isTypeAssignableTo(r,a)){var f=o===0?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2;error(u,f,symbolToString(t),typeToString(r),typeToString(a))}}}function checkTypeNameIsReserved(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":error(e,t,e.escapedText)}}function checkClassNameCollisionWithObject(t){if(C===1&&t.escapedText==="Object"&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ESNext){error(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[E])}}function checkTypeParameters(t){if(t){var r=false;for(var n=0;n<t.length;n++){var i=t[n];checkTypeParameter(i);if(a){if(i.default){r=true}else if(r){error(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters)}for(var o=0;o<n;o++){if(t[o].symbol===i.symbol){error(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}}}}function checkTypeParameterListsIdentical(t){if(t.declarations.length===1){return}var r=getSymbolLinks(t);if(!r.typeParametersChecked){r.typeParametersChecked=true;var n=getClassOrInterfaceDeclarationsOfSymbol(t);if(n.length<=1){return}var i=getDeclaredTypeOfSymbol(t);if(!areTypeParametersIdentical(n,i.localTypeParameters)){var a=symbolToString(t);for(var o=0,s=n;o<s.length;o++){var c=s[o];error(c.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}}function areTypeParametersIdentical(t,r){var n=e.length(r);var i=getMinTypeArgumentCount(r);for(var a=0,o=t;a<o.length;a++){var s=o[a];var c=e.getEffectiveTypeParameterDeclarations(s);var u=c.length;if(u<i||u>n){return false}for(var l=0;l<u;l++){var f=c[l];var d=r[l];if(f.name.escapedText!==d.symbol.escapedName){return false}var p=e.getEffectiveConstraintOfTypeParameter(f);var g=p&&getTypeFromTypeNode(p);var _=getConstraintOfTypeParameter(d);if(g){if(!_||!isTypeIdenticalTo(g,_)){return false}}var m=f.default&&getTypeFromTypeNode(f.default);var y=getDefaultFromTypeParameter(d);if(m&&y&&!isTypeIdenticalTo(m,y)){return false}}}return true}function checkClassExpression(e){checkClassLikeDeclaration(e);checkNodeDeferred(e);return getTypeOfSymbol(getSymbolOfNode(e))}function checkClassExpressionDeferred(t){e.forEach(t.members,checkSourceElement);registerForUnusedIdentifiersCheck(t)}function checkClassDeclaration(t){if(!t.name&&!e.hasModifier(t,512)){grammarErrorOnFirstToken(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name)}checkClassLikeDeclaration(t);e.forEach(t.members,checkSourceElement);registerForUnusedIdentifiersCheck(t)}function checkClassLikeDeclaration(t){checkGrammarClassLikeDeclaration(t);checkDecorators(t);if(t.name){checkTypeNameIsReserved(t.name,e.Diagnostics.Class_name_cannot_be_0);checkCollisionWithRequireExportsInGeneratedCode(t,t.name);checkCollisionWithGlobalPromiseInGeneratedCode(t,t.name);if(!(t.flags&4194304)){checkClassNameCollisionWithObject(t.name)}}checkTypeParameters(e.getEffectiveTypeParameterDeclarations(t));checkExportsOnMergedDeclarations(t);var r=getSymbolOfNode(t);var n=getDeclaredTypeOfSymbol(r);var i=getTypeWithThisArgument(n);var o=getTypeOfSymbol(r);checkTypeParameterListsIdentical(r);checkClassForDuplicateDeclarations(t);if(!(t.flags&4194304)){checkClassForStaticPropertyNameConflicts(t)}var s=e.getEffectiveBaseTypeNode(t);if(s){if(C<2){checkExternalEmitHelpers(s.parent,1)}var c=getBaseTypes(n);if(c.length&&a){var u=c[0];var l=getBaseConstructorTypeOfClass(n);var f=getApparentType(l);checkBaseTypeAccessibility(f,s);checkSourceElement(s.expression);var d=e.getClassExtendsHeritageElement(t);if(d&&d!==s){checkExpression(d.expression)}if(e.some(s.typeArguments)){e.forEach(s.typeArguments,checkSourceElement);for(var p=0,g=getConstructorsForTypeArguments(f,s.typeArguments,s);p<g.length;p++){var _=g[p];if(!checkTypeArgumentConstraints(s,_.typeParameters)){break}}}var m=getTypeWithThisArgument(u,n.thisType);if(!checkTypeAssignableTo(i,m,undefined)){issueMemberSpecificError(t,i,m,e.Diagnostics.Class_0_incorrectly_extends_base_class_1)}else{checkTypeAssignableTo(o,getTypeWithoutSignatures(f),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1)}if(l.flags&8650752&&!isMixinConstructorType(o)){error(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)}if(!(f.symbol&&f.symbol.flags&32)&&!(l.flags&8650752)){var y=getInstantiatedConstructorsForTypeArguments(f,s.typeArguments,s);if(e.forEach(y,function(e){return!isJSConstructor(e.declaration)&&getReturnTypeOfSignature(e)!==u})){error(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}}checkKindsOfPropertyMemberOverrides(n,u)}}var h=e.getClassImplementsHeritageClauseElements(t);if(h){for(var v=0,T=h;v<T.length;v++){var S=T[v];if(!e.isEntityNameExpression(S.expression)){error(S.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments)}checkTypeReferenceNode(S);if(a){var b=getTypeFromTypeNode(S);if(b!==ee){if(isValidBaseType(b)){var x=b.symbol&&b.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;var m=getTypeWithThisArgument(b,n.thisType);if(!checkTypeAssignableTo(i,m,undefined)){issueMemberSpecificError(t,i,m,x)}}else{error(S,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}}}if(a){checkIndexConstraints(n);checkTypeForDuplicateIndexSignatures(t);checkPropertyInitialization(t)}}function issueMemberSpecificError(t,r,n,i){var a=false;var o=function(t){if(e.hasStaticModifier(t)){return"continue"}var i=t.name&&getSymbolAtLocation(t.name)||getSymbolAtLocation(t);if(i){var o=getPropertyOfType(r,i.escapedName);var s=getPropertyOfType(n,i.escapedName);if(o&&s){var c=function(){return e.chainDiagnosticMessages(undefined,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,symbolToString(i),typeToString(r),typeToString(n))};if(!checkTypeAssignableTo(getTypeOfSymbol(o),getTypeOfSymbol(s),t.name||t,undefined,c)){a=true}}}};for(var s=0,c=t.members;s<c.length;s++){var u=c[s];o(u)}if(!a){checkTypeAssignableTo(r,n,t.name||t,i)}}function checkBaseTypeAccessibility(t,r){var n=getSignaturesOfType(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasModifier(i,8)){var a=e.getClassLikeDeclarationOfSymbol(t.symbol);if(!isNodeWithinClass(r,a)){error(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,getFullyQualifiedName(t.symbol))}}}}function getTargetSymbol(t){return e.getCheckFlags(t)&1?t.target:t}function getClassOrInterfaceDeclarationsOfSymbol(t){return e.filter(t.declarations,function(e){return e.kind===240||e.kind===241})}function checkKindsOfPropertyMemberOverrides(t,r){var n=getPropertiesOfType(r);for(var i=0,a=n;i<a.length;i++){var o=a[i];var s=getTargetSymbol(o);if(s.flags&4194304){continue}var c=getTargetSymbol(getPropertyOfObjectType(t,s.escapedName));var u=e.getDeclarationModifierFlagsFromSymbol(s);e.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration.");if(c){if(c===s){var l=e.getClassLikeDeclarationOfSymbol(t.symbol);if(u&128&&(!l||!e.hasModifier(l,128))){if(l.kind===209){error(l,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,symbolToString(o),typeToString(r))}else{error(l,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,typeToString(t),symbolToString(o),typeToString(r))}}}else{var f=e.getDeclarationModifierFlagsFromSymbol(c);if(u&8||f&8){continue}if(isPrototypeProperty(s)||s.flags&98308&&c.flags&98308){continue}var d=void 0;if(isPrototypeProperty(s)){if(c.flags&98304){d=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else{d=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property}}else if(s.flags&98304){d=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function}else{d=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function}error(e.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,d,typeToString(r),symbolToString(s),typeToString(t))}}}}function checkInheritedPropertiesAreIdentical(t,r){var n=getBaseTypes(t);if(n.length<2){return true}var i=e.createUnderscoreEscapedMap();e.forEach(resolveDeclaredMembers(t).declaredProperties,function(e){i.set(e.escapedName,{prop:e,containingType:t})});var a=true;for(var o=0,s=n;o<s.length;o++){var c=s[o];var u=getPropertiesOfType(getTypeWithThisArgument(c,t.thisType));for(var l=0,f=u;l<f.length;l++){var d=f[l];var p=i.get(d.escapedName);if(!p){i.set(d.escapedName,{prop:d,containingType:c})}else{var g=p.containingType!==t;if(g&&!isPropertyIdenticalTo(p.prop,d)){a=false;var _=typeToString(p.containingType);var m=typeToString(c);var y=e.chainDiagnosticMessages(undefined,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,symbolToString(d),_,m);y=e.chainDiagnosticMessages(y,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,typeToString(t),_,m);Xt.add(e.createDiagnosticForNodeFromMessageChain(r,y))}}}}return a}function checkPropertyInitialization(t){if(!k||!O||t.flags&4194304){return}var r=findConstructorDeclaration(t);for(var n=0,i=t.members;n<i.length;n++){var a=i[n];if(isInstancePropertyWithoutInitializer(a)){var o=a.name;if(e.isIdentifier(o)){var s=getTypeOfSymbol(getSymbolOfNode(a));if(!(s.flags&3||getFalsyFlags(s)&32768)){if(!r||!isPropertyInitializedInConstructor(o,s,r)){error(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}}}function isInstancePropertyWithoutInitializer(t){return t.kind===154&&!e.hasModifier(t,32|128)&&!t.exclamationToken&&!t.initializer}function isPropertyInitializedInConstructor(t,r,n){var i=e.createPropertyAccess(e.createThis(),t);i.expression.parent=i;i.parent=n;i.flowNode=n.returnFlowNode;var a=getFlowTypeOfReference(i,r,getOptionalType(r));return!(getFalsyFlags(a)&32768)}function checkInterfaceDeclaration(t){if(!checkGrammarDecoratorsAndModifiers(t))checkGrammarInterfaceDeclaration(t);checkTypeParameters(t.typeParameters);if(a){checkTypeNameIsReserved(t.name,e.Diagnostics.Interface_name_cannot_be_0);checkExportsOnMergedDeclarations(t);var r=getSymbolOfNode(t);checkTypeParameterListsIdentical(r);var n=e.getDeclarationOfKind(r,241);if(t===n){var i=getDeclaredTypeOfSymbol(r);var o=getTypeWithThisArgument(i);if(checkInheritedPropertiesAreIdentical(i,t.name)){for(var s=0,c=getBaseTypes(i);s<c.length;s++){var u=c[s];checkTypeAssignableTo(o,getTypeWithThisArgument(u,i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}checkIndexConstraints(i)}}checkObjectTypeForDuplicateDeclarations(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){if(!e.isEntityNameExpression(t.expression)){error(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments)}checkTypeReferenceNode(t)});e.forEach(t.members,checkSourceElement);if(a){checkTypeForDuplicateIndexSignatures(t);registerForUnusedIdentifiersCheck(t)}}function checkTypeAliasDeclaration(t){checkGrammarDecoratorsAndModifiers(t);checkTypeNameIsReserved(t.name,e.Diagnostics.Type_alias_name_cannot_be_0);checkTypeParameters(t.typeParameters);checkSourceElement(t.type);registerForUnusedIdentifiersCheck(t)}function computeEnumMemberValues(e){var t=getNodeLinks(e);if(!(t.flags&16384)){t.flags|=16384;var r=0;for(var n=0,i=e.members;n<i.length;n++){var a=i[n];var o=computeMemberValue(a,r);getNodeLinks(a).enumMemberValue=o;r=typeof o==="number"?o+1:undefined}}}function computeMemberValue(t,r){if(isComputedNonLiteralName(t.name)){error(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums)}else{var n=e.getTextOfPropertyName(t.name);if(isNumericLiteralName(n)&&!isInfinityOrNaNString(n)){error(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}}if(t.initializer){return computeConstantValue(t)}if(t.parent.flags&4194304&&!e.isEnumConst(t.parent)){return undefined}if(r!==undefined){return r}error(t.name,e.Diagnostics.Enum_member_must_have_initializer);return undefined}function computeConstantValue(t){var r=getEnumKind(getSymbolOfNode(t.parent));var n=e.isEnumConst(t.parent);var i=t.initializer;var a=r===1&&!isLiteralEnumMember(t)?undefined:evaluate(i);if(a!==undefined){if(n&&typeof a==="number"&&!isFinite(a)){error(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value)}}else if(r===1){error(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members);return 0}else if(n){error(i,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression)}else if(t.parent.flags&4194304){error(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression)}else{checkTypeAssignableTo(checkExpression(i),getDeclaredTypeOfSymbol(getSymbolOfNode(t.parent)),i,undefined)}return a;function evaluate(r){switch(r.kind){case 202:var n=evaluate(r.operand);if(typeof n==="number"){switch(r.operator){case 38:return n;case 39:return-n;case 53:return~n}}break;case 204:var i=evaluate(r.left);var a=evaluate(r.right);if(typeof i==="number"&&typeof a==="number"){switch(r.operatorToken.kind){case 50:return i|a;case 49:return i&a;case 47:return i>>a;case 48:return i>>>a;case 46:return i<<a;case 51:return i^a;case 40:return i*a;case 42:return i/a;case 38:return i+a;case 39:return i-a;case 43:return i%a;case 41:return Math.pow(i,a)}}else if(typeof i==="string"&&typeof a==="string"&&r.operatorToken.kind===38){return i+a}break;case 10:return r.text;case 8:checkGrammarNumericLiteral(r);return+r.text;case 195:return evaluate(r.expression);case 72:var o=r;if(isInfinityOrNaNString(o.escapedText)){return+o.escapedText}return e.nodeIsMissing(r)?0:evaluateEnumMember(r,getSymbolOfNode(t.parent),o.escapedText);case 190:case 189:var s=r;if(isConstantMemberAccess(s)){var c=getTypeOfExpression(s.expression);if(c.symbol&&c.symbol.flags&384){var u=void 0;if(s.kind===189){u=s.name.escapedText}else{var l=s.argumentExpression;e.Debug.assert(e.isLiteralExpression(l));u=e.escapeLeadingUnderscores(l.text)}return evaluateEnumMember(r,c.symbol,u)}}break}return undefined}function evaluateEnumMember(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t){if(isBlockScopedNameDeclaredBeforeUse(o,t)){return getEnumMemberValue(o)}error(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);return 0}}return undefined}}function isConstantMemberAccess(e){return e.kind===72||e.kind===189&&isConstantMemberAccess(e.expression)||e.kind===190&&isConstantMemberAccess(e.expression)&&e.argumentExpression.kind===10}function checkEnumDeclaration(t){if(!a){return}checkGrammarDecoratorsAndModifiers(t);checkTypeNameIsReserved(t.name,e.Diagnostics.Enum_name_cannot_be_0);checkCollisionWithRequireExportsInGeneratedCode(t,t.name);checkCollisionWithGlobalPromiseInGeneratedCode(t,t.name);checkExportsOnMergedDeclarations(t);computeEnumMemberValues(t);var r=e.isEnumConst(t);if(x.isolatedModules&&r&&t.flags&4194304){error(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided)}var n=getSymbolOfNode(t);var i=e.getDeclarationOfKind(n,t.kind);if(t===i){if(n.declarations.length>1){e.forEach(n.declarations,function(t){if(e.isEnumDeclaration(t)&&e.isEnumConst(t)!==r){error(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}})}var o=false;e.forEach(n.declarations,function(t){if(t.kind!==243){return false}var r=t;if(!r.members.length){return false}var n=r.members[0];if(!n.initializer){if(o){error(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element)}else{o=true}}})}}function getFirstNonAmbientClassOrFunctionDeclaration(t){var r=t.declarations;for(var n=0,i=r;n<i.length;n++){var a=i[n];if((a.kind===240||a.kind===239&&e.nodeIsPresent(a.body))&&!(a.flags&4194304)){return a}}return undefined}function inSameLexicalScope(t,r){var n=e.getEnclosingBlockScopeContainer(t);var i=e.getEnclosingBlockScopeContainer(r);if(isGlobalSourceFile(n)){return isGlobalSourceFile(i)}else if(isGlobalSourceFile(i)){return false}else{return n===i}}function checkModuleDeclaration(t){if(a){var r=e.isGlobalScopeAugmentation(t);var n=t.flags&4194304;if(r&&!n){error(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);var o=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(checkGrammarModuleElementContext(t,o)){return}if(!checkGrammarDecoratorsAndModifiers(t)){if(!n&&t.name.kind===10){grammarErrorOnNode(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names)}}if(e.isIdentifier(t.name)){checkCollisionWithRequireExportsInGeneratedCode(t,t.name);checkCollisionWithGlobalPromiseInGeneratedCode(t,t.name)}checkExportsOnMergedDeclarations(t);var s=getSymbolOfNode(t);if(s.flags&512&&s.declarations.length>1&&!n&&isInstantiatedModule(t,!!x.preserveConstEnums||!!x.isolatedModules)){var c=getFirstNonAmbientClassOrFunctionDeclaration(s);if(c){if(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)){error(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged)}else if(t.pos<c.pos){error(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)}}var u=e.getDeclarationOfKind(s,240);if(u&&inSameLexicalScope(t,u)){getNodeLinks(t).flags|=32768}}if(i){if(e.isExternalModuleAugmentation(t)){var l=r||getSymbolOfNode(t).flags&33554432;if(l&&t.body){for(var f=0,d=t.body.statements;f<d.length;f++){var p=d[f];checkModuleAugmentationElement(p,r)}}}else if(isGlobalSourceFile(t.parent)){if(r){error(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations)}else if(e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))){error(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name)}}else{if(r){error(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations)}else{error(t.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}}}if(t.body){checkSourceElement(t.body);if(!e.isGlobalScopeAugmentation(t)){registerForUnusedIdentifiersCheck(t)}}}function checkModuleAugmentationElement(t,r){switch(t.kind){case 219:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];checkModuleAugmentationElement(a,r)}break;case 254:case 255:grammarErrorOnFirstToken(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 248:case 249:grammarErrorOnFirstToken(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 186:case 237:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];checkModuleAugmentationElement(u,r)}break}case 240:case 243:case 239:case 241:case 244:case 242:if(r){return}var l=getSymbolOfNode(t);if(l){var f=!(l.flags&33554432);if(!f){f=!!l.parent&&e.isExternalModuleAugmentation(l.parent.declarations[0])}}break}}function getFirstIdentifier(e){switch(e.kind){case 72:return e;case 148:do{e=e.left}while(e.kind!==72);return e;case 189:do{e=e.expression}while(e.kind!==72);return e}}function checkExternalImportOrExportDeclaration(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r)){return false}if(!e.isStringLiteral(r)){error(r,e.Diagnostics.String_literal_expected);return false}var n=t.parent.kind===245&&e.isAmbientModule(t.parent.parent);if(t.parent.kind!==279&&!n){error(r,t.kind===255?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module);return false}if(n&&e.isExternalModuleNameRelative(r.text)){if(!isTopLevelInExternalModuleAugmentation(t)){error(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name);return false}}return true}function checkAliasSymbol(t){var r=getSymbolOfNode(t);var n=resolveAlias(r);if(n!==Q){var i=(r.flags&(67220415|1048576)?67220415:0)|(r.flags&67897832?67897832:0)|(r.flags&1920?1920:0);if(n.flags&i){var a=t.kind===257?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;error(t,a,symbolToString(r))}if(x.isolatedModules&&t.kind===257&&!(n.flags&67220415)&&!(t.flags&4194304)){error(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}}function checkImportBinding(e){checkCollisionWithRequireExportsInGeneratedCode(e,e.name);checkCollisionWithGlobalPromiseInGeneratedCode(e,e.name);checkAliasSymbol(e)}function checkImportDeclaration(t){if(checkGrammarModuleElementContext(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){return}if(!checkGrammarDecoratorsAndModifiers(t)&&e.hasModifiers(t)){grammarErrorOnFirstToken(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers)}if(checkExternalImportOrExportDeclaration(t)){var r=t.importClause;if(r){if(r.name){checkImportBinding(r)}if(r.namedBindings){if(r.namedBindings.kind===251){checkImportBinding(r.namedBindings)}else{var n=resolveExternalModuleName(t,t.moduleSpecifier);if(n){e.forEach(r.namedBindings.elements,checkImportBinding)}}}}}}function checkImportEqualsDeclaration(t){if(checkGrammarModuleElementContext(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){return}checkGrammarDecoratorsAndModifiers(t);if(e.isInternalModuleImportEqualsDeclaration(t)||checkExternalImportOrExportDeclaration(t)){checkImportBinding(t);if(e.hasModifier(t,1)){markExportAsReferenced(t)}if(t.moduleReference.kind!==259){var r=resolveAlias(getSymbolOfNode(t));if(r!==Q){if(r.flags&67220415){var n=getFirstIdentifier(t.moduleReference);if(!(resolveEntityName(n,67220415|1920).flags&1920)){error(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}}if(r.flags&67897832){checkTypeNameIsReserved(t.name,e.Diagnostics.Import_name_cannot_be_0)}}}else{if(E>=e.ModuleKind.ES2015&&!(t.flags&4194304)){grammarErrorOnNode(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)}}}}function checkExportDeclaration(t){if(checkGrammarModuleElementContext(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){return}if(!checkGrammarDecoratorsAndModifiers(t)&&e.hasModifiers(t)){grammarErrorOnFirstToken(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers)}if(!t.moduleSpecifier||checkExternalImportOrExportDeclaration(t)){if(t.exportClause){e.forEach(t.exportClause.elements,checkExportSpecifier);var r=t.parent.kind===245&&e.isAmbientModule(t.parent.parent);var n=!r&&t.parent.kind===245&&!t.moduleSpecifier&&t.flags&4194304;if(t.parent.kind!==279&&!r&&!n){error(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}}else{var i=resolveExternalModuleName(t,t.moduleSpecifier);if(i&&hasExportAssignmentSymbol(i)){error(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,symbolToString(i))}if(E!==e.ModuleKind.System&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ESNext){checkExternalEmitHelpers(t,32768)}}}}function checkGrammarModuleElementContext(e,t){var r=e.parent.kind===279||e.parent.kind===245||e.parent.kind===244;if(!r){grammarErrorOnFirstToken(e,t)}return!r}function checkExportSpecifier(t){checkAliasSymbol(t);if(e.getEmitDeclarations(x)){collectLinkedAliases(t.propertyName||t.name,true)}if(!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name;var n=resolveName(r,r.escapedText,67220415|67897832|1920|2097152,undefined,undefined,true);if(n&&(n===R||isGlobalSourceFile(getDeclarationContainer(n.declarations[0])))){error(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r))}else{markExportAsReferenced(t)}}}function checkExportAssignment(t){if(checkGrammarModuleElementContext(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){return}var r=t.parent.kind===279?t.parent:t.parent.parent;if(r.kind===244&&!e.isAmbientModule(r)){if(t.isExportEquals){error(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace)}else{error(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}return}if(!checkGrammarDecoratorsAndModifiers(t)&&e.hasModifiers(t)){grammarErrorOnFirstToken(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers)}if(t.expression.kind===72){markExportAsReferenced(t);if(e.getEmitDeclarations(x)){collectLinkedAliases(t.expression,true)}}else{checkExpressionCached(t.expression)}checkExternalModuleExports(r);if(t.flags&4194304&&!e.isEntityNameExpression(t.expression)){grammarErrorOnNode(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context)}if(t.isExportEquals&&!(t.flags&4194304)){if(E>=e.ModuleKind.ES2015){grammarErrorOnNode(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead)}else if(E===e.ModuleKind.System){grammarErrorOnNode(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system)}}}function hasExportedMembers(t){return e.forEachEntry(t.exports,function(e,t){return t!=="export="})}function checkExternalModuleExports(t){var r=getSymbolOfNode(t);var n=getSymbolLinks(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&hasExportedMembers(r)){var a=getDeclarationOfAliasSymbol(i)||i.valueDeclaration;if(!isTopLevelInExternalModuleAugmentation(a)&&!e.isInJSFile(a)){error(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}}var o=getExportsOfModule(r);if(o){o.forEach(function(t,r){var n=t.declarations,i=t.flags;if(r==="__export"){return}if(i&(1920|64|384)){return}var a=e.countWhere(n,Tr);if(i&524288&&a<=2){return}if(a>1){for(var o=0,s=n;o<s.length;o++){var c=s[o];if(isNotOverload(c)){Xt.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}}})}n.exportsChecked=true}}function isNotAccessor(t){return!e.isAccessor(t)}function isNotOverload(e){return e.kind!==239&&e.kind!==156||!!e.body}function checkSourceElement(t){if(!t){return}if(e.isInJSFile(t)){e.forEach(t.jsDoc,function(t){var r=t.tags;return e.forEach(r,checkSourceElement)})}var r=t.kind;if(l){switch(r){case 244:case 240:case 241:case 239:l.throwIfCancellationRequested()}}switch(r){case 150:return checkTypeParameter(t);case 151:return checkParameter(t);case 154:case 153:return checkPropertyDeclaration(t);case 165:case 166:case 160:case 161:case 162:return checkSignatureDeclaration(t);case 156:case 155:return checkMethodDeclaration(t);case 157:return checkConstructorDeclaration(t);case 158:case 159:return checkAccessorDeclaration(t);case 164:return checkTypeReferenceNode(t);case 163:return checkTypePredicate(t);case 167:return checkTypeQuery(t);case 168:return checkTypeLiteral(t);case 169:return checkArrayType(t);case 170:return checkTupleType(t);case 173:case 174:return checkUnionOrIntersectionType(t);case 177:case 171:case 172:return checkSourceElement(t.type);case 178:return checkThisType(t);case 179:return checkTypeOperator(t);case 175:return checkConditionalType(t);case 176:return checkInferType(t);case 183:return checkImportType(t);case 295:return checkJSDocAugmentsTag(t);case 304:case 297:return checkJSDocTypeAliasTag(t);case 303:return checkJSDocTemplateTag(t);case 302:return checkJSDocTypeTag(t);case 299:return checkJSDocParameterTag(t);case 289:checkJSDocFunctionType(t);case 287:case 286:case 284:case 285:case 292:checkJSDocTypeIsInJsFile(t);e.forEachChild(t,checkSourceElement);return;case 290:checkJSDocVariadicType(t);return;case 283:return checkSourceElement(t.type);case 180:return checkIndexedAccessType(t);case 181:return checkMappedType(t);case 239:return checkFunctionDeclaration(t);case 218:case 245:return checkBlock(t);case 219:return checkVariableStatement(t);case 221:return checkExpressionStatement(t);case 222:return checkIfStatement(t);case 223:return checkDoStatement(t);case 224:return checkWhileStatement(t);case 225:return checkForStatement(t);case 226:return checkForInStatement(t);case 227:return checkForOfStatement(t);case 228:case 229:return checkBreakOrContinueStatement(t);case 230:return checkReturnStatement(t);case 231:return checkWithStatement(t);case 232:return checkSwitchStatement(t);case 233:return checkLabeledStatement(t);case 234:return checkThrowStatement(t);case 235:return checkTryStatement(t);case 237:return checkVariableDeclaration(t);case 186:return checkBindingElement(t);case 240:return checkClassDeclaration(t);case 241:return checkInterfaceDeclaration(t);case 242:return checkTypeAliasDeclaration(t);case 243:return checkEnumDeclaration(t);case 244:return checkModuleDeclaration(t);case 249:return checkImportDeclaration(t);case 248:return checkImportEqualsDeclaration(t);case 255:return checkExportDeclaration(t);case 254:return checkExportAssignment(t);case 220:case 236:checkGrammarStatementInAmbientContext(t);return;case 258:return checkMissingDeclaration(t)}}function checkJSDocTypeIsInJsFile(t){if(!e.isInJSFile(t)){grammarErrorOnNode(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}}function checkJSDocVariadicType(t){checkJSDocTypeIsInJsFile(t);checkSourceElement(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent)){if(e.last(r.parent.parameters)!==r){error(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}return}if(!e.isJSDocTypeExpression(r)){error(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}var n=t.parent.parent;if(!e.isJSDocParameterTag(n)){error(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var i=e.getParameterSymbolFromJSDoc(n);if(!i){return}var a=e.getHostSignatureFromJSDoc(n);if(!a||e.last(a.parameters).symbol!==i){error(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function getTypeFromJSDocVariadicType(t){var r=getTypeFromTypeNode(t.type);var n=t.parent;var i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters);var s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o)){return createArrayType(r)}}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent)){return createArrayType(r)}return addOptionality(r)}function checkNodeDeferred(t){var r=e.getSourceFileOfNode(t);var n=getNodeLinks(r);if(!(n.flags&1)){n.deferredNodes=n.deferredNodes||e.createMap();var i=""+getNodeId(t);n.deferredNodes.set(i,t)}}function checkDeferredNodes(e){var t=getNodeLinks(e);if(!t.deferredNodes){return}t.deferredNodes.forEach(function(e){switch(e.kind){case 196:case 197:case 156:case 155:checkFunctionExpressionOrObjectLiteralMethodDeferred(e);break;case 158:case 159:checkAccessorDeclaration(e);break;case 209:checkClassExpressionDeferred(e);break;case 261:checkJsxSelfClosingElementDeferred(e);break;case 260:checkJsxElementDeferred(e);break}})}function checkSourceFile(t){e.performance.mark("beforeCheck");checkSourceFileWorker(t);e.performance.mark("afterCheck");e.performance.measure("Check","beforeCheck","afterCheck")}function unusedIsError(t){switch(t){case 0:return!!x.noUnusedLocals;case 1:return!!x.noUnusedParameters;default:return e.Debug.assertNever(t)}}function getPotentiallyUnusedIdentifiers(t){return Dt.get(t.path)||e.emptyArray}function checkSourceFileWorker(t){var r=getNodeLinks(t);if(!(r.flags&1)){if(e.skipTypeChecking(t,x)){return}checkGrammarSourceFile(t);e.clear(Ht);e.clear(Qt);e.forEach(t.statements,checkSourceElement);checkSourceElement(t.endOfFileToken);checkDeferredNodes(t);if(e.isExternalOrCommonJsModule(t)){registerForUnusedIdentifiersCheck(t)}if(!t.isDeclarationFile&&(x.noUnusedLocals||x.noUnusedParameters)){checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(t),function(t,r,n){if(!e.containsParseError(t)&&unusedIsError(r)){Xt.add(n)}})}if(e.isExternalOrCommonJsModule(t)){checkExternalModuleExports(t)}if(Ht.length){e.forEach(Ht,checkIfThisIsCapturedInEnclosingScope);e.clear(Ht)}if(Qt.length){e.forEach(Qt,checkIfNewTargetIsCapturedInEnclosingScope);e.clear(Qt)}r.flags|=1}}function getDiagnostics(e,t){try{l=t;return getDiagnosticsWorker(e)}finally{l=undefined}}function getDiagnosticsWorker(t){throwIfNonDiagnosticsProducing();if(t){var n=Xt.getGlobalDiagnostics();var i=n.length;checkSourceFile(t);var a=Xt.getDiagnostics(t.fileName);var o=Xt.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}else if(i===0&&o.length>0){return e.concatenate(o,a)}return a}e.forEach(r.getSourceFiles(),checkSourceFile);return Xt.getDiagnostics()}function getGlobalDiagnostics(){throwIfNonDiagnosticsProducing();return Xt.getGlobalDiagnostics()}function throwIfNonDiagnosticsProducing(){if(!a){throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}}function getSymbolsInScope(t,r){if(t.flags&8388608){return[]}var n=e.createSymbolTable();var i=false;populateSymbols();n.delete("this");return symbolsToArray(n);function populateSymbols(){while(t){if(t.locals&&!isGlobalSourceFile(t)){copySymbols(t.locals,r)}switch(t.kind){case 279:if(!e.isExternalOrCommonJsModule(t))break;case 244:copySymbols(getSymbolOfNode(t).exports,r&2623475);break;case 243:copySymbols(getSymbolOfNode(t).exports,r&8);break;case 209:var n=t.name;if(n){copySymbol(t.symbol,r)}case 240:case 241:if(!i){copySymbols(getMembersOfSymbol(getSymbolOfNode(t)),r&67897832)}break;case 196:var a=t.name;if(a){copySymbol(t.symbol,r)}break}if(e.introducesArgumentsExoticObject(t)){copySymbol(B,r)}i=e.hasModifier(t,32);t=t.parent}copySymbols(We,r)}function copySymbol(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;if(!n.has(i)){n.set(i,t)}}}function copySymbols(e,t){if(t){e.forEach(function(e){copySymbol(e,t)})}}}function isTypeDeclarationName(e){return e.kind===72&&isTypeDeclaration(e.parent)&&e.parent.name===e}function isTypeDeclaration(e){switch(e.kind){case 150:case 240:case 241:case 242:case 243:return true;default:return false}}function isTypeReferenceIdentifier(e){while(e.parent.kind===148){e=e.parent}return e.parent.kind===164}function isHeritageClauseElementIdentifier(e){while(e.parent.kind===189){e=e.parent}return e.parent.kind===211}function forEachEnclosingClass(t,r){var n;while(true){t=e.getContainingClass(t);if(!t)break;if(n=r(t))break}return n}function isNodeUsedDuringClassInitialization(t){return!!e.findAncestor(t,function(t){if(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)){return true}else if(e.isClassLike(t)||e.isFunctionLikeDeclaration(t)){return"quit"}return false})}function isNodeWithinClass(e,t){return!!forEachEnclosingClass(e,function(e){return e===t})}function getLeftSideOfImportEqualsOrExportAssignment(e){while(e.parent.kind===148){e=e.parent}if(e.parent.kind===248){return e.parent.moduleReference===e?e.parent:undefined}if(e.parent.kind===254){return e.parent.expression===e?e.parent:undefined}return undefined}function isInRightSideOfImportOrExportAssignment(e){return getLeftSideOfImportEqualsOrExportAssignment(e)!==undefined}function getSpecialPropertyAssignmentSymbolFromEntityName(t){var r=e.getAssignmentDeclarationKind(t.parent.parent);switch(r){case 1:case 3:return getSymbolOfNode(t.parent);case 4:case 2:case 5:return getSymbolOfNode(t.parent.parent)}}function isImportTypeQualifierPart(t){var r=t.parent;while(e.isQualifiedName(r)){t=r;r=r.parent}if(r&&r.kind===183&&r.qualifier===t){return r}return undefined}function getSymbolOfEntityNameOrPropertyAccessExpression(t){if(e.isDeclarationName(t)){return getSymbolOfNode(t.parent)}if(e.isInJSFile(t)&&t.parent.kind===189&&t.parent===t.parent.parent.left){var r=getSpecialPropertyAssignmentSymbolFromEntityName(t);if(r){return r}}if(t.parent.kind===254&&e.isEntityNameExpression(t)){var n=resolveEntityName(t,67220415|67897832|1920|2097152,true);if(n&&n!==Q){return n}}else if(!e.isPropertyAccessExpression(t)&&isInRightSideOfImportOrExportAssignment(t)){var i=e.getAncestor(t,248);e.Debug.assert(i!==undefined);return getSymbolOfPartOfRightHandSideOfImportEquals(t,true)}if(!e.isPropertyAccessExpression(t)){var a=isImportTypeQualifierPart(t);if(a){getTypeFromTypeNode(a);var o=getNodeLinks(t).resolvedSymbol;return o===Q?undefined:o}}while(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}if(isHeritageClauseElementIdentifier(t)){var s=0;if(t.parent.kind===211){s=67897832;if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)){s|=67220415}}else{s=1920}s|=2097152;var c=e.isEntityNameExpression(t)?resolveEntityName(t,s):undefined;if(c){return c}}if(t.parent.kind===299){return e.getParameterSymbolFromJSDoc(t.parent)}if(t.parent.kind===150&&t.parent.parent.kind===303){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t)){return undefined}if(t.kind===72){if(e.isJSXTagName(t)&&isJsxIntrinsicIdentifier(t)){var l=getIntrinsicTagSymbol(t.parent);return l===Q?undefined:l}return resolveEntityName(t,67220415,false,true)}else if(t.kind===189||t.kind===148){var f=getNodeLinks(t);if(f.resolvedSymbol){return f.resolvedSymbol}if(t.kind===189){checkPropertyAccessExpression(t)}else{checkQualifiedName(t)}return f.resolvedSymbol}}else if(isTypeReferenceIdentifier(t)){var s=t.parent.kind===164?67897832:1920;return resolveEntityName(t,s,false,true)}if(t.parent.kind===163){return resolveEntityName(t,1)}return undefined}function getSymbolAtLocation(t){if(t.kind===279){return e.isExternalModule(t)?getMergedSymbol(t.symbol):undefined}var r=t.parent;var n=r.parent;if(t.flags&8388608){return undefined}if(isDeclarationNameOrImportPropertyName(t)){var i=getSymbolOfNode(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?getImmediateAliasedSymbol(i):i}else if(e.isLiteralComputedPropertyDeclarationName(t)){return getSymbolOfNode(r.parent)}if(t.kind===72){if(isInRightSideOfImportOrExportAssignment(t)){return getSymbolOfEntityNameOrPropertyAccessExpression(t)}else if(r.kind===186&&n.kind===184&&t===r.propertyName){var a=getTypeOfNode(n);var o=getPropertyOfType(a,t.escapedText);if(o){return o}}}switch(t.kind){case 72:case 189:case 148:return getSymbolOfEntityNameOrPropertyAccessExpression(t);case 100:var s=e.getThisContainer(t,false);if(e.isFunctionLike(s)){var c=getSignatureFromDeclaration(s);if(c.thisParameter){return c.thisParameter}}if(e.isInExpressionContext(t)){return checkExpression(t).symbol}case 178:return getTypeFromThisTypeNode(t).symbol;case 98:return checkExpression(t).symbol;case 124:var u=t.parent;if(u&&u.kind===157){return u.parent.symbol}return undefined;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(t.parent.kind===249||t.parent.kind===255)&&t.parent.moduleSpecifier===t||(e.isInJSFile(t)&&e.isRequireCall(t.parent,false)||e.isImportCall(t.parent))||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent){return resolveExternalModuleName(t,t)}if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t){return getSymbolOfNode(r)}case 8:var l=e.isElementAccessExpression(r)?r.argumentExpression===t?getTypeOfExpression(r.expression):undefined:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?getTypeFromTypeNode(n.objectType):undefined;return l&&getPropertyOfType(l,e.escapeLeadingUnderscores(t.text));case 80:case 90:case 37:case 76:return getSymbolOfNode(t.parent);case 183:return e.isLiteralImportTypeNode(t)?getSymbolAtLocation(t.argument.literal):undefined;case 85:return e.isExportAssignment(t.parent)?e.Debug.assertDefined(t.parent.symbol):undefined;default:return undefined}}function getShorthandAssignmentValueSymbol(e){if(e&&e.kind===276){return resolveEntityName(e.name,67220415|2097152)}return undefined}function getExportSpecifierLocalTargetSymbol(e){return e.parent.parent.moduleSpecifier?getExternalModuleMember(e.parent.parent,e):resolveEntityName(e.propertyName||e.name,67220415|67897832|1920|2097152)}function getTypeOfNode(t){if(t.flags&8388608){return ee}var r=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t);var n=r&&getDeclaredTypeOfClassOrInterface(getSymbolOfNode(r.class));if(e.isPartOfTypeNode(t)){var i=getTypeFromTypeNode(t);return n?getTypeWithThisArgument(i,n.thisType):i}if(e.isExpressionNode(t)){return getRegularTypeOfExpression(t)}if(n&&!r.isImplements){var a=e.firstOrUndefined(getBaseTypes(n));return a?getTypeWithThisArgument(a,n.thisType):ee}if(isTypeDeclaration(t)){var o=getSymbolOfNode(t);return getDeclaredTypeOfSymbol(o)}if(isTypeDeclarationName(t)){var o=getSymbolAtLocation(t);return o?getDeclaredTypeOfSymbol(o):ee}if(e.isDeclaration(t)){var o=getSymbolOfNode(t);return getTypeOfSymbol(o)}if(isDeclarationNameOrImportPropertyName(t)){var o=getSymbolAtLocation(t);return o?getTypeOfSymbol(o):ee}if(e.isBindingPattern(t)){return getTypeForVariableLikeDeclaration(t.parent,true)||ee}if(isInRightSideOfImportOrExportAssignment(t)){var o=getSymbolAtLocation(t);if(o){var s=getDeclaredTypeOfSymbol(o);return s!==ee?s:getTypeOfSymbol(o)}}return ee}function getTypeOfArrayLiteralOrObjectLiteralDestructuringAssignment(t){e.Debug.assert(t.kind===188||t.kind===187);if(t.parent.kind===227){var r=checkRightHandSideOfForOf(t.parent.expression,t.parent.awaitModifier);return checkDestructuringAssignment(t,r||ee)}if(t.parent.kind===204){var r=getTypeOfExpression(t.parent.right);return checkDestructuringAssignment(t,r||ee)}if(t.parent.kind===275){var n=getTypeOfArrayLiteralOrObjectLiteralDestructuringAssignment(t.parent.parent);return checkObjectLiteralDestructuringPropertyAssignment(n||ee,t.parent)}e.Debug.assert(t.parent.kind===187);var i=getTypeOfArrayLiteralOrObjectLiteralDestructuringAssignment(t.parent);var a=checkIteratedTypeOrElementType(i||ee,t.parent,false,false)||ee;return checkArrayLiteralDestructuringElementAssignment(t.parent,i,t.parent.elements.indexOf(t),a||ee)}function getPropertySymbolOfDestructuringAssignment(e){var t=getTypeOfArrayLiteralOrObjectLiteralDestructuringAssignment(e.parent.parent);return t&&getPropertyOfType(t,e.escapedText)}function getRegularTypeOfExpression(t){if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}return getRegularTypeOfLiteralType(getTypeOfExpression(t))}function getParentTypeOfClassElement(t){var r=getSymbolOfNode(t.parent);return e.hasModifier(t,32)?getTypeOfSymbol(r):getDeclaredTypeOfSymbol(r)}function getClassElementPropertyKeyType(t){var r=t.name;switch(r.kind){case 72:return getLiteralType(e.idText(r));case 8:case 10:return getLiteralType(r.text);case 149:var n=checkComputedPropertyName(r);return isTypeAssignableToKind(n,12288)?n:oe;default:e.Debug.fail("Unsupported property name.");return ee}}function getAugmentedPropertiesOfType(t){t=getApparentType(t);var r=e.createSymbolTable(getPropertiesOfType(t));var n=getSignaturesOfType(t,0).length?He:getSignaturesOfType(t,1).length?Qe:undefined;if(n){e.forEach(getPropertiesOfType(n),function(e){if(!r.has(e.escapedName)){r.set(e.escapedName,e)}})}return getNamedMembers(r)}function typeHasCallOrConstructSignatures(t){return e.typeHasCallOrConstructSignatures(t,W)}function getRootSymbols(t){var r=getImmediateRootSymbols(t);return r?e.flatMap(r,getRootSymbols):[t]}function getImmediateRootSymbols(t){if(e.getCheckFlags(t)&6){return e.mapDefined(getSymbolLinks(t).containingType.types,function(e){return getPropertyOfType(e,t.escapedName)})}else if(t.flags&33554432){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(tryGetAliasTarget(t))}return undefined}function tryGetAliasTarget(e){var t;var r=e;while(r=getSymbolLinks(r).target){t=r}return t}function isArgumentsLocalBinding(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=r.parent.kind===189&&r.parent.name===r;return!n&&getReferencedValueSymbol(r)===B}}return false}function moduleExportsSomeValue(t){var r=resolveExternalModuleName(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r)){return true}var n=hasExportAssignmentSymbol(r);r=resolveExternalModuleSymbol(r);var i=getSymbolLinks(r);if(i.exportsSomeValue===undefined){i.exportsSomeValue=n?!!(r.flags&67220415):e.forEachEntry(getExportsOfModule(r),isValue)}return i.exportsSomeValue;function isValue(e){e=resolveSymbol(e);return e&&!!(e.flags&67220415)}}function isNameOfModuleOrEnumDeclaration(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}function getReferencedExportContainer(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=getReferencedValueSymbol(n,isNameOfModuleOrEnumDeclaration(n));if(i){if(i.flags&1048576){var a=getMergedSymbol(i.exportSymbol);if(!r&&a.flags&944&&!(a.flags&3)){return undefined}i=a}var o=getParentOfSymbol(i);if(o){if(o.flags&512&&o.valueDeclaration.kind===279){var s=o.valueDeclaration;var c=e.getSourceFileOfNode(n);var u=s!==c;return u?undefined:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&getSymbolOfNode(t)===o})}}}}function getReferencedImportDeclaration(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(isNonLocalAlias(n,67220415)){return getDeclarationOfAliasSymbol(n)}}return undefined}function isSymbolOfDeclarationWithCollidingName(t){if(t.flags&418){var r=getSymbolLinks(t);if(r.isDeclarationWithCollidingName===undefined){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=getNodeLinks(t.valueDeclaration);if(resolveName(n.parent,t.escapedName,67220415,undefined,undefined,false)){r.isDeclarationWithCollidingName=true}else if(i.flags&262144){var a=i.flags&524288;var o=e.isIterationStatement(n,false);var s=n.kind===218&&e.isIterationStatement(n.parent,false);r.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(n)&&(!a||!o&&!s)}else{r.isDeclarationWithCollidingName=false}}}return r.isDeclarationWithCollidingName}return false}function getReferencedDeclarationWithCollidingName(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(n&&isSymbolOfDeclarationWithCollidingName(n)){return n.valueDeclaration}}}return undefined}function isDeclarationWithCollidingName(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=getSymbolOfNode(r);if(n){return isSymbolOfDeclarationWithCollidingName(n)}}return false}function isValueAliasDeclaration(t){switch(t.kind){case 248:case 250:case 251:case 253:case 257:return isAliasResolvedToValue(getSymbolOfNode(t)||Q);case 255:var r=t.exportClause;return!!r&&e.some(r.elements,isValueAliasDeclaration);case 254:return t.expression&&t.expression.kind===72?isAliasResolvedToValue(getSymbolOfNode(t)||Q):true}return false}function isTopLevelValueImportEqualsWithEntityName(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);if(r===undefined||r.parent.kind!==279||!e.isInternalModuleImportEqualsDeclaration(r)){return false}var n=isAliasResolvedToValue(getSymbolOfNode(r));return n&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function isAliasResolvedToValue(e){var t=resolveAlias(e);if(t===Q){return true}return!!(t.flags&67220415)&&(x.preserveConstEnums||!isConstEnumOrConstEnumOnlyModule(t))}function isConstEnumOrConstEnumOnlyModule(e){return isConstEnumSymbol(e)||!!e.constEnumOnlyModule}function isReferencedAliasDeclaration(t,r){if(e.isAliasSymbolDeclaration(t)){var n=getSymbolOfNode(t);if(n&&getSymbolLinks(n).referenced){return true}var i=getSymbolLinks(n).target;if(i&&e.getModifierFlags(t)&1&&i.flags&67220415&&(x.preserveConstEnums||!isConstEnumOrConstEnumOnlyModule(i))){return true}}if(r){return!!e.forEachChild(t,function(e){return isReferencedAliasDeclaration(e,r)})}return false}function isImplementationOfOverload(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return false;var r=getSymbolOfNode(t);var n=getSignaturesOfSymbol(r);return n.length>1||n.length===1&&n[0].declaration!==t}return false}function isRequiredInitializedParameter(t){return!!k&&!isOptionalParameter(t)&&!e.isJSDocParameterTag(t)&&!!t.initializer&&!e.hasModifier(t,92)}function isOptionalUninitializedParameterProperty(t){return k&&isOptionalParameter(t)&&!t.initializer&&e.hasModifier(t,92)}function isExpandoFunctionDeclaration(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r){return false}var n=getSymbolOfNode(r);if(!n||!(n.flags&16)){return false}return!!e.forEachEntry(getExportsOfSymbol(n),function(t){return t.flags&67220415&&e.isPropertyAccessExpression(t.valueDeclaration)})}function getPropertiesOfContainerFunction(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r){return e.emptyArray}var n=getSymbolOfNode(r);return n&&getPropertiesOfType(getTypeOfSymbol(n))||e.emptyArray}function getNodeCheckFlags(e){return getNodeLinks(e).flags||0}function getEnumMemberValue(e){computeEnumMemberValues(e.parent);return getNodeLinks(e).enumMemberValue}function canHaveConstantValue(e){switch(e.kind){case 278:case 189:case 190:return true}return false}function getConstantValue(t){if(t.kind===278){return getEnumMemberValue(t)}var r=getNodeLinks(t).resolvedSymbol;if(r&&r.flags&8){var n=r.valueDeclaration;if(e.isEnumConst(n.parent)){return getEnumMemberValue(n)}}return undefined}function isFunctionType(e){return!!(e.flags&524288)&&getSignaturesOfType(e,0).length>0}function getTypeReferenceSerializationKind(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r){r=e.getParseTreeNode(r);if(!r)return e.TypeReferenceSerializationKind.Unknown}var i=resolveEntityName(n,67220415,true,false,r);var a=resolveEntityName(n,67897832,true,false,r);if(i&&i===a){var o=getGlobalPromiseConstructorSymbol(false);if(o&&i===o){return e.TypeReferenceSerializationKind.Promise}var s=getTypeOfSymbol(i);if(s&&isConstructorType(s)){return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}}if(!a){return e.TypeReferenceSerializationKind.Unknown}var c=getDeclaredTypeOfSymbol(a);if(c===ee){return e.TypeReferenceSerializationKind.Unknown}else if(c.flags&3){return e.TypeReferenceSerializationKind.ObjectType}else if(isTypeAssignableToKind(c,16384|98304|131072)){return e.TypeReferenceSerializationKind.VoidNullableOrNeverType}else if(isTypeAssignableToKind(c,528)){return e.TypeReferenceSerializationKind.BooleanType}else if(isTypeAssignableToKind(c,296)){return e.TypeReferenceSerializationKind.NumberLikeType}else if(isTypeAssignableToKind(c,2112)){return e.TypeReferenceSerializationKind.BigIntLikeType}else if(isTypeAssignableToKind(c,132)){return e.TypeReferenceSerializationKind.StringLikeType}else if(isTupleType(c)){return e.TypeReferenceSerializationKind.ArrayLikeType}else if(isTypeAssignableToKind(c,12288)){return e.TypeReferenceSerializationKind.ESSymbolType}else if(isFunctionType(c)){return e.TypeReferenceSerializationKind.TypeWithCallSignature}else if(isArrayType(c)){return e.TypeReferenceSerializationKind.ArrayLikeType}else{return e.TypeReferenceSerializationKind.ObjectType}}function createTypeOfDeclaration(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o){return e.createToken(120)}var s=getSymbolOfNode(o);var c=s&&!(s.flags&(2048|131072))?getWidenedLiteralType(getTypeOfSymbol(s)):ee;if(c.flags&8192&&c.symbol===s){n|=1048576}if(a){c=getOptionalType(c)}return L.typeToTypeNode(c,r,n|1024,i)}function createReturnTypeOfSignatureDeclaration(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a){return e.createToken(120)}var o=getSignatureFromDeclaration(a);return L.typeToTypeNode(getReturnTypeOfSignature(o),r,n|1024,i)}function createTypeOfExpression(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a){return e.createToken(120)}var o=getWidenedType(getRegularTypeOfExpression(a));return L.typeToTypeNode(o,r,n|1024,i)}function hasGlobalName(t){return We.has(e.escapeLeadingUnderscores(t))}function getReferencedValueSymbol(t,r){var n=getNodeLinks(t).resolvedSymbol;if(n){return n}var i=t;if(r){var a=t.parent;if(e.isDeclaration(a)&&t===a.name){i=getDeclarationContainer(a)}}return resolveName(i,t.escapedText,67220415|1048576|2097152,undefined,undefined,true)}function getReferencedValueDeclaration(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(n){return getExportSymbolOfValueSymbolIfExported(n).valueDeclaration}}}return undefined}function isLiteralConstDeclaration(t){if(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t)){return isFreshLiteralType(getTypeOfSymbol(getSymbolOfNode(t)))}return false}function literalTypeToNode(t,r,n){var i=t.flags&1024?L.symbolToExpression(t.symbol,67220415,r,undefined,n):t===fe?e.createTrue():t===ue&&e.createFalse();return i||e.createLiteral(t.value)}function createLiteralConstValue(e,t){var r=getTypeOfSymbol(getSymbolOfNode(e));return literalTypeToNode(r,e,t)}function createResolver(){var t=r.getResolvedTypeReferenceDirectives();var n;if(t){n=e.createMap();t.forEach(function(e,t){if(!e||!e.resolvedFileName){return}var i=r.getSourceFile(e.resolvedFileName);n.set(i.path,t)})}return{getReferencedExportContainer:getReferencedExportContainer,getReferencedImportDeclaration:getReferencedImportDeclaration,getReferencedDeclarationWithCollidingName:getReferencedDeclarationWithCollidingName,isDeclarationWithCollidingName:isDeclarationWithCollidingName,isValueAliasDeclaration:function(t){t=e.getParseTreeNode(t);return t?isValueAliasDeclaration(t):true},hasGlobalName:hasGlobalName,isReferencedAliasDeclaration:function(t,r){t=e.getParseTreeNode(t);return t?isReferencedAliasDeclaration(t,r):true},getNodeCheckFlags:function(t){t=e.getParseTreeNode(t);return t?getNodeCheckFlags(t):0},isTopLevelValueImportEqualsWithEntityName:isTopLevelValueImportEqualsWithEntityName,isDeclarationVisible:isDeclarationVisible,isImplementationOfOverload:isImplementationOfOverload,isRequiredInitializedParameter:isRequiredInitializedParameter,isOptionalUninitializedParameterProperty:isOptionalUninitializedParameterProperty,isExpandoFunctionDeclaration:isExpandoFunctionDeclaration,getPropertiesOfContainerFunction:getPropertiesOfContainerFunction,createTypeOfDeclaration:createTypeOfDeclaration,createReturnTypeOfSignatureDeclaration:createReturnTypeOfSignatureDeclaration,createTypeOfExpression:createTypeOfExpression,createLiteralConstValue:createLiteralConstValue,isSymbolAccessible:isSymbolAccessible,isEntityNameVisible:isEntityNameVisible,getConstantValue:function(t){var r=e.getParseTreeNode(t,canHaveConstantValue);return r?getConstantValue(r):undefined},collectLinkedAliases:collectLinkedAliases,getReferencedValueDeclaration:getReferencedValueDeclaration,getTypeReferenceSerializationKind:getTypeReferenceSerializationKind,isOptionalParameter:isOptionalParameter,moduleExportsSomeValue:moduleExportsSomeValue,isArgumentsLocalBinding:isArgumentsLocalBinding,getExternalModuleFileFromDeclaration:getExternalModuleFileFromDeclaration,getTypeReferenceDirectivesForEntityName:getTypeReferenceDirectivesForEntityName,getTypeReferenceDirectivesForSymbol:getTypeReferenceDirectivesForSymbol,isLiteralConstDeclaration:isLiteralConstDeclaration,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration);var n=r&&getSymbolOfNode(r);return!!(n&&e.getCheckFlags(n)&1024)},getJsxFactoryEntity:function(t){return t?(getJsxNamespace(t),e.getSourceFileOfNode(t).localJsxFactory||ar):ar},getAllAccessorDeclarations:function(t){t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration);var r=t.kind===159?158:159;var n=e.getDeclarationOfKind(getSymbolOfNode(t),r);var i=n&&n.pos<t.pos?n:t;var a=n&&n.pos<t.pos?t:n;var o=t.kind===159?t:n;var s=t.kind===158?t:n;return{firstAccessor:i,secondAccessor:a,setAccessor:o,getAccessor:s}},getSymbolOfExternalModuleSpecifier:function(e){return resolveExternalModuleNameWorker(e,e,undefined)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t);var i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&isBindingCapturedByNode(n,i)}};function isInHeritageClause(e){return e.parent&&e.parent.kind===211&&e.parent.parent&&e.parent.parent.kind===273}function getTypeReferenceDirectivesForEntityName(e){if(!n){return undefined}var t=67897832|1920;if(e.kind===72&&isInTypeQuery(e)||e.kind===189&&!isInHeritageClause(e)){t=67220415|1048576}var r=resolveEntityName(e,t,true);return r&&r!==Q?getTypeReferenceDirectivesForSymbol(r,t):undefined}function getTypeReferenceDirectivesForSymbol(t,r){if(!n){return undefined}if(!isSymbolFromTypeDeclarationFile(t)){return undefined}var i;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&r){var c=e.getSourceFileOfNode(s);var u=n.get(c.path);if(u){(i||(i=[])).push(u)}else{return undefined}}}return i}function isSymbolFromTypeDeclarationFile(t){if(!t.declarations){return false}var r=t;while(true){var i=getParentOfSymbol(r);if(i){r=i}else{break}}if(r.valueDeclaration&&r.valueDeclaration.kind===279&&r.flags&512){return false}for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a];var c=e.getSourceFileOfNode(s);if(n.has(c.path)){return true}}return false}}function getExternalModuleFileFromDeclaration(t){var r=t.kind===244?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t);var n=resolveExternalModuleNameWorker(r,r,undefined);if(!n){return undefined}return e.getDeclarationOfKind(n,279)}function initializeTypeChecker(){for(var t=0,n=r.getSourceFiles();t<n.length;t++){var i=n[t];e.bindSourceFile(i,x)}Ue=e.createMap();var a;for(var o=0,s=r.getSourceFiles();o<s.length;o++){var i=s[o];if(i.redirectInfo){continue}if(!e.isExternalOrCommonJsModule(i)){mergeSymbolTable(We,i.locals)}if(i.jsGlobalAugmentations){mergeSymbolTable(We,i.jsGlobalAugmentations)}if(i.patternAmbientModules&&i.patternAmbientModules.length){Ke=e.concatenate(Ke,i.patternAmbientModules)}if(i.moduleAugmentations.length){(a||(a=[])).push(i.moduleAugmentations)}if(i.symbol&&i.symbol.globalExports){var c=i.symbol.globalExports;c.forEach(function(e,t){if(!We.has(t)){We.set(t,e)}})}}if(a){for(var u=0,l=a;u<l.length;u++){var f=l[u];for(var d=0,p=f;d<p.length;d++){var g=p[d];if(!e.isGlobalScopeAugmentation(g.parent))continue;mergeModuleAugmentation(g)}}}addToSymbolTable(We,vr,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);getSymbolLinks(R).type=ne;getSymbolLinks(B).type=getGlobalType("IArguments",0,true);getSymbolLinks(Q).type=ee;$e=getGlobalType("Array",1,true);qe=getGlobalType("Object",0,true);Ge=getGlobalType("Function",0,true);He=A&&getGlobalType("CallableFunction",0,true)||Ge;Qe=A&&getGlobalType("NewableFunction",0,true)||Ge;Ye=getGlobalType("String",0,true);Ze=getGlobalType("Number",0,true);et=getGlobalType("Boolean",0,true);tt=getGlobalType("RegExp",0,true);nt=createArrayType(X);it=createArrayType(Y);if(it===xe){it=createAnonymousType(undefined,S,e.emptyArray,e.emptyArray,undefined,undefined)}Xe=getGlobalTypeOrUndefined("ReadonlyArray",1);at=Xe?createTypeFromGenericGlobalType(Xe,[X]):nt;rt=getGlobalTypeOrUndefined("ThisType",1);if(a){for(var _=0,m=a;_<m.length;_++){var f=m[_];for(var y=0,h=f;y<h.length;y++){var g=h[y];if(e.isGlobalScopeAugmentation(g.parent))continue;mergeModuleAugmentation(g)}}}Ue.forEach(function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8){i.forEach(function(t,r){var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations;var o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;for(var s=0,c=i;s<c.length;s++){var u=c[s];addDuplicateDeclarationError(u,o,r,a)}for(var l=0,f=a;l<f.length;l++){var u=f[l];addDuplicateDeclarationError(u,o,r,i)}})}else{var a=e.arrayFrom(i.keys()).join(", ");Xt.add(addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file)));Xt.add(addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}});Ue=undefined}function checkExternalEmitHelpers(t,r){if((f&r)!==r&&x.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,x)&&!(t.flags&4194304)){var i=resolveHelpersModule(n,t);if(i!==Q){var a=r&~f;for(var o=1;o<=65536;o<<=1){if(a&o){var s=getHelperName(o);var c=getSymbol(i.exports,e.escapeLeadingUnderscores(s),67220415);if(!c){error(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}}}}f|=r}}}function getHelperName(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"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function resolveHelpersModule(t,r){if(!d){d=resolveExternalModule(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Q}return d}function checkGrammarDecoratorsAndModifiers(e){return checkGrammarDecorators(e)||checkGrammarModifiers(e)}function checkGrammarDecorators(t){if(!t.decorators){return false}if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){if(t.kind===156&&!e.nodeIsPresent(t.body)){return grammarErrorOnFirstToken(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload)}else{return grammarErrorOnFirstToken(t,e.Diagnostics.Decorators_are_not_valid_here)}}else if(t.kind===158||t.kind===159){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor){return grammarErrorOnFirstToken(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return false}function checkGrammarModifiers(t){var r=reportObviousModifierErrors(t);if(r!==undefined){return r}var n,i,a,o;var s=0;for(var c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(l.kind!==133){if(t.kind===153||t.kind===155){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind))}if(t.kind===162){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}}switch(l.kind){case 77:if(t.kind!==243){return grammarErrorOnNode(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(77))}break;case 115:case 114:case 113:var f=visibilityToString(e.modifierToFlag(l.kind));if(s&28){return grammarErrorOnNode(l,e.Diagnostics.Accessibility_modifier_already_seen)}else if(s&32){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,f,"static")}else if(s&64){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,f,"readonly")}else if(s&256){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,f,"async")}else if(t.parent.kind===245||t.parent.kind===279){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,f)}else if(s&128){if(l.kind===113){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,f,"abstract")}else{return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,f,"abstract")}}s|=e.modifierToFlag(l.kind);break;case 116:if(s&32){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"static")}else if(s&64){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly")}else if(s&256){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async")}else if(t.parent.kind===245||t.parent.kind===279){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static")}else if(t.kind===151){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static")}else if(s&128){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract")}s|=32;n=l;break;case 133:if(s&64){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"readonly")}else if(t.kind!==154&&t.kind!==153&&t.kind!==162&&t.kind!==151){return grammarErrorOnNode(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature)}s|=64;o=l;break;case 85:if(s&1){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"export")}else if(s&2){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare")}else if(s&128){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract")}else if(s&256){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async")}else if(t.parent.kind===240){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export")}else if(t.kind===151){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export")}s|=1;break;case 80:var d=t.parent.kind===279?t.parent:t.parent.parent;if(d.kind===244&&!e.isAmbientModule(d)){return grammarErrorOnNode(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}s|=512;break;case 125:if(s&2){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"declare")}else if(s&256){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async")}else if(t.parent.kind===240){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare")}else if(t.kind===151){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare")}else if(t.parent.flags&4194304&&t.parent.kind===245){return grammarErrorOnNode(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context)}s|=2;i=l;break;case 118:if(s&128){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"abstract")}if(t.kind!==240){if(t.kind!==156&&t.kind!==154&&t.kind!==158&&t.kind!==159){return grammarErrorOnNode(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration)}if(!(t.parent.kind===240&&e.hasModifier(t.parent,128))){return grammarErrorOnNode(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class)}if(s&32){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract")}if(s&8){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}}s|=128;break;case 121:if(s&256){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_already_seen,"async")}else if(s&2||t.parent.flags&4194304){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async")}else if(t.kind===151){return grammarErrorOnNode(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async")}s|=256;a=l;break}}if(t.kind===157){if(s&32){return grammarErrorOnNode(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static")}if(s&128){return grammarErrorOnNode(n,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract")}else if(s&256){return grammarErrorOnNode(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async")}else if(s&64){return grammarErrorOnNode(o,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly")}return false}else if((t.kind===249||t.kind===248)&&s&2){return grammarErrorOnNode(i,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare")}else if(t.kind===151&&s&92&&e.isBindingPattern(t.name)){return grammarErrorOnNode(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern)}else if(t.kind===151&&s&92&&t.dotDotDotToken){return grammarErrorOnNode(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter)}if(s&256){return checkGrammarAsyncModifier(t,a)}return false}function reportObviousModifierErrors(t){return!t.modifiers?false:shouldReportBadModifier(t)?grammarErrorOnFirstToken(t,e.Diagnostics.Modifiers_cannot_appear_here):undefined}function shouldReportBadModifier(t){switch(t.kind){case 158:case 159:case 157:case 154:case 153:case 156:case 155:case 162:case 244:case 249:case 248:case 255:case 254:case 196:case 197:case 151:return false;default:if(t.parent.kind===245||t.parent.kind===279){return false}switch(t.kind){case 239:return nodeHasAnyModifiersExcept(t,121);case 240:return nodeHasAnyModifiersExcept(t,118);case 241:case 219:case 242:return true;case 243:return nodeHasAnyModifiersExcept(t,77);default:e.Debug.fail();return false}}}function nodeHasAnyModifiersExcept(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function checkGrammarAsyncModifier(t,r){switch(t.kind){case 156:case 239:case 196:case 197:return false}return grammarErrorOnNode(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function checkGrammarForDisallowedTrailingComma(t,r){if(r===void 0){r=e.Diagnostics.Trailing_comma_not_allowed}if(t&&t.hasTrailingComma){return grammarErrorAtPos(t[0],t.end-",".length,",".length,r)}return false}function checkGrammarTypeParameterList(t,r){if(t&&t.length===0){var n=t.pos-"<".length;var i=e.skipTrivia(r.text,t.end)+">".length;return grammarErrorAtPos(r,n,i-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return false}function checkGrammarParameterList(t){var r=false;var n=t.length;for(var i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1){return grammarErrorOnNode(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}if(!(a.flags&4194304)){checkGrammarForDisallowedTrailingComma(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma)}if(e.isBindingPattern(a.name)){return grammarErrorOnNode(a.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}if(a.questionToken){return grammarErrorOnNode(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional)}if(a.initializer){return grammarErrorOnNode(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}}else if(a.questionToken){r=true;if(a.initializer){return grammarErrorOnNode(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}}else if(r&&!a.initializer){return grammarErrorOnNode(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}}function getNonSimpleParameters(t){return e.filter(t,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function checkGrammarForUseStrictSimpleParameterList(t){if(C>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=getNonSimpleParameters(t.parameters);if(e.length(n)){e.forEach(n,function(t){addRelatedInfo(error(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var i=n.map(function(t,r){return r===0?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});addRelatedInfo.apply(void 0,[error(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(i));return true}}}return false}function checkGrammarFunctionLikeDeclaration(t){var r=e.getSourceFileOfNode(t);return checkGrammarDecoratorsAndModifiers(t)||checkGrammarTypeParameterList(t.typeParameters,r)||checkGrammarParameterList(t.parameters)||checkGrammarArrowFunction(t,r)||e.isFunctionLikeDeclaration(t)&&checkGrammarForUseStrictSimpleParameterList(t)}function checkGrammarClassLikeDeclaration(t){var r=e.getSourceFileOfNode(t);return checkGrammarClassDeclarationHeritageClauses(t)||checkGrammarTypeParameterList(t.typeParameters,r)}function checkGrammarArrowFunction(t,r){if(!e.isArrowFunction(t)){return false}var n=t.equalsGreaterThanToken;var i=e.getLineAndCharacterOfPosition(r,n.pos).line;var a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&grammarErrorOnNode(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function checkGrammarIndexSignatureParameters(t){var r=t.parameters[0];if(t.parameters.length!==1){if(r){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter)}else{return grammarErrorOnNode(t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter)}}if(r.dotDotDotToken){return grammarErrorOnNode(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter)}if(e.hasModifiers(r)){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier)}if(r.questionToken){return grammarErrorOnNode(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark)}if(r.initializer){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer)}if(!r.type){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation)}if(r.type.kind!==138&&r.type.kind!==135){var n=getTypeFromTypeNode(r.type);if(n.flags&4||n.flags&8){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),typeToString(n),typeToString(getTypeFromTypeNode(t.type)))}if(n.flags&1048576&&allTypesAssignableToKind(n,128,true)){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead)}return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}if(!t.type){return grammarErrorOnNode(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}return false}function checkGrammarIndexSignature(e){return checkGrammarDecoratorsAndModifiers(e)||checkGrammarIndexSignatureParameters(e)}function checkGrammarForAtLeastOneTypeArgument(t,r){if(r&&r.length===0){var n=e.getSourceFileOfNode(t);var i=r.pos-"<".length;var a=e.skipTrivia(n.text,r.end)+">".length;return grammarErrorAtPos(n,i,a-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return false}function checkGrammarTypeArguments(e,t){return checkGrammarForDisallowedTrailingComma(t)||checkGrammarForAtLeastOneTypeArgument(e,t)}function checkGrammarForOmittedArgument(t){if(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i.kind===210){return grammarErrorAtPos(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}}}return false}function checkGrammarArguments(e){return checkGrammarForOmittedArgument(e)}function checkGrammarHeritageClause(t){var r=t.types;if(checkGrammarForDisallowedTrailingComma(r)){return true}if(r&&r.length===0){var n=e.tokenToString(t.token);return grammarErrorAtPos(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,checkGrammarExpressionWithTypeArguments)}function checkGrammarExpressionWithTypeArguments(e){return checkGrammarTypeArguments(e,e.typeArguments)}function checkGrammarClassDeclarationHeritageClauses(t){var r=false;var n=false;if(!checkGrammarDecoratorsAndModifiers(t)&&t.heritageClauses){for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(o.token===86){if(r){return grammarErrorOnFirstToken(o,e.Diagnostics.extends_clause_already_seen)}if(n){return grammarErrorOnFirstToken(o,e.Diagnostics.extends_clause_must_precede_implements_clause)}if(o.types.length>1){return grammarErrorOnFirstToken(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class)}r=true}else{e.Debug.assert(o.token===109);if(n){return grammarErrorOnFirstToken(o,e.Diagnostics.implements_clause_already_seen)}n=true}checkGrammarHeritageClause(o)}}}function checkGrammarInterfaceDeclaration(t){var r=false;if(t.heritageClauses){for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(a.token===86){if(r){return grammarErrorOnFirstToken(a,e.Diagnostics.extends_clause_already_seen)}r=true}else{e.Debug.assert(a.token===109);return grammarErrorOnFirstToken(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause)}checkGrammarHeritageClause(a)}}return false}function checkGrammarComputedPropertyName(t){if(t.kind!==149){return false}var r=t;if(r.expression.kind===204&&r.expression.operatorToken.kind===27){return grammarErrorOnNode(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}return false}function checkGrammarForGenerator(t){if(t.asteriskToken){e.Debug.assert(t.kind===239||t.kind===196||t.kind===156);if(t.flags&4194304){return grammarErrorOnNode(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context)}if(!t.body){return grammarErrorOnNode(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}}function checkGrammarForInvalidQuestionMark(e,t){return!!e&&grammarErrorOnNode(e,t)}function checkGrammarForInvalidExclamationToken(e,t){return!!e&&grammarErrorOnNode(e,t)}function checkGrammarObjectLiteralExpression(t,r){var n;(function(e){e[e["Property"]=1]="Property";e[e["GetAccessor"]=2]="GetAccessor";e[e["SetAccessor"]=4]="SetAccessor";e[e["GetOrSetAccessor"]=6]="GetOrSetAccessor"})(n||(n={}));var i=e.createUnderscoreEscapedMap();for(var a=0,o=t.properties;a<o.length;a++){var s=o[a];if(s.kind===277){continue}var c=s.name;if(c.kind===149){checkGrammarComputedPropertyName(c)}if(s.kind===276&&!r&&s.objectAssignmentInitializer){return grammarErrorOnNode(s.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment)}if(s.modifiers){for(var u=0,l=s.modifiers;u<l.length;u++){var f=l[u];if(f.kind!==121||s.kind!==156){grammarErrorOnNode(f,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(f))}}}var d=void 0;switch(s.kind){case 276:checkGrammarForInvalidExclamationToken(s.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 275:checkGrammarForInvalidQuestionMark(s.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional);if(c.kind===8){checkGrammarNumericLiteral(c)}case 156:d=1;break;case 158:d=2;break;case 159:d=4;break;default:throw e.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var p=e.getPropertyNameForPropertyNameNode(c);if(p===undefined){continue}var g=i.get(p);if(!g){i.set(p,d)}else{if(d===1&&g===1){grammarErrorOnNode(c,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(c))}else if(d&6&&g&6){if(g!==6&&d!==g){i.set(p,d|g)}else{return grammarErrorOnNode(c,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name)}}else{return grammarErrorOnNode(c,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}}function checkGrammarJsxElement(t){checkGrammarTypeArguments(t,t.typeArguments);var r=e.createUnderscoreEscapedMap();for(var n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(a.kind===269){continue}var o=a.name,s=a.initializer;if(!r.get(o.escapedText)){r.set(o.escapedText,true)}else{return grammarErrorOnNode(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name)}if(s&&s.kind===270&&!s.expression){return grammarErrorOnNode(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function checkGrammarForInOrForOfStatement(t){if(checkGrammarStatementInAmbientContext(t)){return true}if(t.kind===227&&t.awaitModifier){if((t.flags&16384)===0){return grammarErrorOnNode(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator)}}if(t.initializer.kind===238){var r=t.initializer;if(!checkGrammarVariableDeclarationList(r)){var n=r.declarations;if(!n.length){return false}if(n.length>1){var i=t.kind===226?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return grammarErrorOnFirstToken(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=t.kind===226?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 grammarErrorOnNode(a.name,i)}if(a.type){var i=t.kind===226?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 grammarErrorOnNode(a,i)}}}return false}function checkGrammarAccessor(t){var r=t.kind;if(C<1){return grammarErrorOnNode(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher)}else if(t.flags&4194304){return grammarErrorOnNode(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context)}else if(t.body===undefined&&!e.hasModifier(t,128)){return grammarErrorAtPos(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}else if(t.body&&e.hasModifier(t,128)){return grammarErrorOnNode(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation)}else if(t.typeParameters){return grammarErrorOnNode(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters)}else if(!doesAccessorHaveCorrectParameterCount(t)){return grammarErrorOnNode(t.name,r===158?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter)}else if(r===159){if(t.type){return grammarErrorOnNode(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation)}else{var n=t.parameters[0];if(n.dotDotDotToken){return grammarErrorOnNode(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter)}else if(n.questionToken){return grammarErrorOnNode(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter)}else if(n.initializer){return grammarErrorOnNode(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}}return false}function doesAccessorHaveCorrectParameterCount(e){return getAccessorThisParameter(e)||e.parameters.length===(e.kind===158?0:1)}function getAccessorThisParameter(t){if(t.parameters.length===(t.kind===158?1:2)){return e.getThisParameter(t)}}function checkGrammarTypeOperatorNode(t){if(t.operator===142){if(t.type.kind!==139){return grammarErrorOnNode(t.type,e.Diagnostics._0_expected,e.tokenToString(139))}var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 237:var n=r;if(n.name.kind!==72){return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name)}if(!e.isVariableDeclarationInVariableStatement(n)){return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement)}if(!(n.parent.flags&2)){return grammarErrorOnNode(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const)}break;case 154:if(!e.hasModifier(r,32)||!e.hasModifier(r,64)){return grammarErrorOnNode(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly)}break;case 153:if(!e.hasModifier(r,64)){return grammarErrorOnNode(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly)}break;default:return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}function checkGrammarForInvalidDynamicName(e,t){if(isNonBindableDynamicName(e)){return grammarErrorOnNode(e,t)}}function checkGrammarMethod(t){if(checkGrammarFunctionLikeDeclaration(t)){return true}if(t.kind===156){if(t.parent.kind===188){if(t.modifiers&&!(t.modifiers.length===1&&e.first(t.modifiers).kind===121)){return grammarErrorOnFirstToken(t,e.Diagnostics.Modifiers_cannot_appear_here)}else if(checkGrammarForInvalidQuestionMark(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional)){return true}else if(checkGrammarForInvalidExclamationToken(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)){return true}else if(t.body===undefined){return grammarErrorAtPos(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}}if(checkGrammarForGenerator(t)){return true}}if(e.isClassLike(t.parent)){if(t.flags&4194304){return checkGrammarForInvalidDynamicName(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)}else if(t.kind===156&&!t.body){return checkGrammarForInvalidDynamicName(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(t.parent.kind===241){return checkGrammarForInvalidDynamicName(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)}else if(t.parent.kind===168){return checkGrammarForInvalidDynamicName(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 checkGrammarBreakOrContinueStatement(t){var r=t;while(r){if(e.isFunctionLike(r)){return grammarErrorOnNode(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary)}switch(r.kind){case 233:if(t.label&&r.label.escapedText===t.label.escapedText){var n=t.kind===228&&!e.isIterationStatement(r.statement,true);if(n){return grammarErrorOnNode(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}return false}break;case 232:if(t.kind===229&&!t.label){return false}break;default:if(e.isIterationStatement(r,false)&&!t.label){return false}break}r=r.parent}if(t.label){var i=t.kind===229?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return grammarErrorOnNode(t,i)}else{var i=t.kind===229?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return grammarErrorOnNode(t,i)}}function checkGrammarBindingElement(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r)){return grammarErrorOnNode(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}checkGrammarForDisallowedTrailingComma(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);if(t.propertyName){return grammarErrorOnNode(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(t.initializer){return grammarErrorAtPos(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function isStringOrNumberLiteralExpression(e){return e.kind===10||e.kind===8||e.kind===202&&e.operator===39&&e.operand.kind===8}function isBigIntLiteralExpression(e){return e.kind===9||e.kind===202&&e.operator===39&&e.operand.kind===9}function isSimpleLiteralEnumReference(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&isStringOrNumberLiteralExpression(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(checkExpressionCached(t).flags&1024)}function checkAmbientInitializer(t){var r=t.initializer;if(r){var n=!(isStringOrNumberLiteralExpression(r)||isSimpleLiteralEnumReference(r)||r.kind===102||r.kind===87||isBigIntLiteralExpression(r));var i=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(i&&!t.type){if(n){return grammarErrorOnNode(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}else{return grammarErrorOnNode(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!i||n){return grammarErrorOnNode(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}}function checkGrammarVariableDeclaration(t){if(t.parent.parent.kind!==226&&t.parent.parent.kind!==227){if(t.flags&4194304){checkAmbientInitializer(t)}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent)){return grammarErrorOnNode(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer)}if(e.isVarConst(t)){return grammarErrorOnNode(t,e.Diagnostics.const_declarations_must_be_initialized)}}}if(t.exclamationToken&&(t.parent.parent.kind!==219||!t.type||t.initializer||t.flags&4194304)){return grammarErrorOnNode(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}if(x.module!==e.ModuleKind.ES2015&&x.module!==e.ModuleKind.ESNext&&x.module!==e.ModuleKind.System&&!x.noEmit&&!(t.parent.parent.flags&4194304)&&e.hasModifier(t.parent.parent,1)){checkESModuleMarker(t.name)}var r=e.isLet(t)||e.isVarConst(t);return r&&checkGrammarNameInLetOrConstDeclarations(t.name)}function checkESModuleMarker(t){if(t.kind===72){if(e.idText(t)==="__esModule"){return grammarErrorOnNode(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}}else{var r=t.elements;for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){return checkESModuleMarker(a.name)}}}return false}function checkGrammarNameInLetOrConstDeclarations(t){if(t.kind===72){if(t.originalKeywordKind===111){return grammarErrorOnNode(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}}else{var r=t.elements;for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){checkGrammarNameInLetOrConstDeclarations(a.name)}}}return false}function checkGrammarVariableDeclarationList(t){var r=t.declarations;if(checkGrammarForDisallowedTrailingComma(t.declarations)){return true}if(!t.declarations.length){return grammarErrorAtPos(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}return false}function allowLetAndConstDeclarations(e){switch(e.kind){case 222:case 223:case 224:case 231:case 225:case 226:case 227:return false;case 233:return allowLetAndConstDeclarations(e.parent)}return true}function checkGrammarForDisallowedLetOrConstStatement(t){if(!allowLetAndConstDeclarations(t.parent)){if(e.isLet(t.declarationList)){return grammarErrorOnNode(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block)}else if(e.isVarConst(t.declarationList)){return grammarErrorOnNode(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}}function checkGrammarMetaProperty(t){var r=t.name.escapedText;switch(t.keywordToken){case 95:if(r!=="target"){return grammarErrorOnNode(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target")}break;case 92:if(r!=="meta"){return grammarErrorOnNode(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}break}}function hasParseDiagnostics(e){return e.parseDiagnostics.length>0}function grammarErrorOnFirstToken(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Xt.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a));return true}return false}function grammarErrorAtPos(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(c)){Xt.add(e.createFileDiagnostic(c,r,n,i,a,o,s));return true}return false}function grammarErrorOnNode(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(o)){Xt.add(e.createDiagnosticForNode(t,r,n,i,a));return true}return false}function checkGrammarConstructorTypeParameters(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):undefined;var n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return grammarErrorAtPos(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function checkGrammarConstructorTypeAnnotation(t){var r=e.getEffectiveReturnTypeNode(t);if(r){return grammarErrorOnNode(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}}function checkGrammarProperty(t){if(e.isClassLike(t.parent)){if(checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)){return true}}else if(t.parent.kind===241){if(checkGrammarForInvalidDynamicName(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)){return true}if(t.initializer){return grammarErrorOnNode(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}}else if(t.parent.kind===168){if(checkGrammarForInvalidDynamicName(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)){return true}if(t.initializer){return grammarErrorOnNode(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}}if(t.flags&4194304){checkAmbientInitializer(t)}if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||t.flags&4194304||e.hasModifier(t,32|128))){return grammarErrorOnNode(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}}function checkGrammarTopLevelElementForRequiredDeclareModifier(t){if(t.kind===241||t.kind===242||t.kind===249||t.kind===248||t.kind===255||t.kind===254||t.kind===247||e.hasModifier(t,2|1|512)){return false}return grammarErrorOnFirstToken(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function checkGrammarTopLevelElementsForRequiredDeclareModifier(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(e.isDeclaration(i)||i.kind===219){if(checkGrammarTopLevelElementForRequiredDeclareModifier(i)){return true}}}return false}function checkGrammarSourceFile(e){return!!(e.flags&4194304)&&checkGrammarTopLevelElementsForRequiredDeclareModifier(e)}function checkGrammarStatementInAmbientContext(t){if(t.flags&4194304){if(e.isAccessor(t.parent)){return getNodeLinks(t).hasReportedStatementInAmbientContext=true}var r=getNodeLinks(t);if(!r.hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent)){return getNodeLinks(t).hasReportedStatementInAmbientContext=grammarErrorOnFirstToken(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.parent.kind===218||t.parent.kind===245||t.parent.kind===279){var n=getNodeLinks(t.parent);if(!n.hasReportedStatementInAmbientContext){return n.hasReportedStatementInAmbientContext=grammarErrorOnFirstToken(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}else{}}return false}function checkGrammarNumericLiteral(t){if(t.numericLiteralFlags&32){var r=void 0;if(C>=1){r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0}else if(e.isChildOfNodeWithKind(t,182)){r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0}else if(e.isChildOfNodeWithKind(t,278)){r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0}if(r){var n=e.isPrefixUnaryExpression(t.parent)&&t.parent.operator===39;var i=(n?"-":"")+"0o"+t.text;return grammarErrorOnNode(n?t.parent:t,r,i)}}return false}function checkGrammarBigIntLiteral(t){var r=e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent);if(!r){if(C<6){if(grammarErrorOnNode(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext)){return true}}}return false}function grammarErrorAfterFirstToken(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Xt.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a));return true}return false}function getAmbientModules(){if(!Ve){Ve=[];We.forEach(function(e,r){if(t.test(r)){Ve.push(e)}})}return Ve}function checkGrammarImportCallExpression(t){if(E===e.ModuleKind.ES2015){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext)}if(t.typeArguments){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments)}var r=t.arguments;if(r.length!==1){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument)}if(e.isSpreadElement(r[0])){return grammarErrorOnNode(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}return false}}e.createTypeChecker=createTypeChecker;function isDeclarationNameOrImportPropertyName(t){switch(t.parent.kind){case 253:case 257:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function isSomeImportDeclaration(e){switch(e.kind){case 250:case 248:case 251:case 253:return true;case 72:return e.parent.kind===253;default:return false}}var c;(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"})(c||(c={}));function typeIsLiteralType(e){return!!(e.flags&2944)}})(s||(s={}));var s;(function(e){function createSynthesizedNode(t){var r=e.createNode(t,-1,-1);r.flags|=8;return r}function updateNode(t,r){if(t!==r){setOriginalNode(t,r);setTextRange(t,r);e.aggregateTransformFlags(t)}return t}e.updateNode=updateNode;function createNodeArray(t,r){if(!t||t===e.emptyArray){t=[]}else if(e.isNodeArray(t)){return t}var n=t;n.pos=-1;n.end=-1;n.hasTrailingComma=r;return n}e.createNodeArray=createNodeArray;function getSynthesizedClone(e){if(e===undefined){return e}var t=createSynthesizedNode(e.kind);t.flags|=e.flags;setOriginalNode(t,e);for(var r in e){if(t.hasOwnProperty(r)||!e.hasOwnProperty(r)){continue}t[r]=e[r]}return t}e.getSynthesizedClone=getSynthesizedClone;function createLiteral(t,r){if(typeof t==="number"){return createNumericLiteral(t+"")}if(typeof t==="object"&&"base10Value"in t){return createBigIntLiteral(e.pseudoBigIntToString(t)+"n")}if(typeof t==="boolean"){return t?createTrue():createFalse()}if(e.isString(t)){var n=createStringLiteral(t);if(r)n.singleQuote=true;return n}return createLiteralFromNode(t)}e.createLiteral=createLiteral;function createNumericLiteral(e){var t=createSynthesizedNode(8);t.text=e;t.numericLiteralFlags=0;return t}e.createNumericLiteral=createNumericLiteral;function createBigIntLiteral(e){var t=createSynthesizedNode(9);t.text=e;return t}e.createBigIntLiteral=createBigIntLiteral;function createStringLiteral(e){var t=createSynthesizedNode(10);t.text=e;return t}e.createStringLiteral=createStringLiteral;function createRegularExpressionLiteral(e){var t=createSynthesizedNode(13);t.text=e;return t}e.createRegularExpressionLiteral=createRegularExpressionLiteral;function createLiteralFromNode(t){var r=createStringLiteral(e.getTextOfIdentifierOrLiteral(t));r.textSourceNode=t;return r}function createIdentifier(t,r){var n=createSynthesizedNode(72);n.escapedText=e.escapeLeadingUnderscores(t);n.originalKeywordKind=t?e.stringToToken(t):0;n.autoGenerateFlags=0;n.autoGenerateId=0;if(r){n.typeArguments=createNodeArray(r)}return n}e.createIdentifier=createIdentifier;function updateIdentifier(t,r){return t.typeArguments!==r?updateNode(createIdentifier(e.idText(t),r),t):t}e.updateIdentifier=updateIdentifier;var t=0;function createTempVariable(e,r){var n=createIdentifier("");n.autoGenerateFlags=1;n.autoGenerateId=t;t++;if(e){e(n)}if(r){n.autoGenerateFlags|=8}return n}e.createTempVariable=createTempVariable;function createLoopVariable(){var e=createIdentifier("");e.autoGenerateFlags=2;e.autoGenerateId=t;t++;return e}e.createLoopVariable=createLoopVariable;function createUniqueName(e){var r=createIdentifier(e);r.autoGenerateFlags=3;r.autoGenerateId=t;t++;return r}e.createUniqueName=createUniqueName;function createOptimisticUniqueName(e){var r=createIdentifier(e);r.autoGenerateFlags=3|16;r.autoGenerateId=t;t++;return r}e.createOptimisticUniqueName=createOptimisticUniqueName;function createFileLevelUniqueName(e){var t=createOptimisticUniqueName(e);t.autoGenerateFlags|=32;return t}e.createFileLevelUniqueName=createFileLevelUniqueName;function getGeneratedNameForNode(r,n){var i=createIdentifier(r&&e.isIdentifier(r)?e.idText(r):"");i.autoGenerateFlags=4|n;i.autoGenerateId=t;i.original=r;t++;return i}e.getGeneratedNameForNode=getGeneratedNameForNode;function createToken(e){return createSynthesizedNode(e)}e.createToken=createToken;function createSuper(){return createSynthesizedNode(98)}e.createSuper=createSuper;function createThis(){return createSynthesizedNode(100)}e.createThis=createThis;function createNull(){return createSynthesizedNode(96)}e.createNull=createNull;function createTrue(){return createSynthesizedNode(102)}e.createTrue=createTrue;function createFalse(){return createSynthesizedNode(87)}e.createFalse=createFalse;function createModifier(e){return createToken(e)}e.createModifier=createModifier;function createModifiersFromModifierFlags(e){var t=[];if(e&1){t.push(createModifier(85))}if(e&2){t.push(createModifier(125))}if(e&512){t.push(createModifier(80))}if(e&2048){t.push(createModifier(77))}if(e&4){t.push(createModifier(115))}if(e&8){t.push(createModifier(113))}if(e&16){t.push(createModifier(114))}if(e&128){t.push(createModifier(118))}if(e&32){t.push(createModifier(116))}if(e&64){t.push(createModifier(133))}if(e&256){t.push(createModifier(121))}return t}e.createModifiersFromModifierFlags=createModifiersFromModifierFlags;function createQualifiedName(e,t){var r=createSynthesizedNode(148);r.left=e;r.right=asName(t);return r}e.createQualifiedName=createQualifiedName;function updateQualifiedName(e,t,r){return e.left!==t||e.right!==r?updateNode(createQualifiedName(t,r),e):e}e.updateQualifiedName=updateQualifiedName;function parenthesizeForComputedName(t){return e.isCommaSequence(t)?createParen(t):t}function createComputedPropertyName(e){var t=createSynthesizedNode(149);t.expression=parenthesizeForComputedName(e);return t}e.createComputedPropertyName=createComputedPropertyName;function updateComputedPropertyName(e,t){return e.expression!==t?updateNode(createComputedPropertyName(t),e):e}e.updateComputedPropertyName=updateComputedPropertyName;function createTypeParameterDeclaration(e,t,r){var n=createSynthesizedNode(150);n.name=asName(e);n.constraint=t;n.default=r;return n}e.createTypeParameterDeclaration=createTypeParameterDeclaration;function updateTypeParameterDeclaration(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?updateNode(createTypeParameterDeclaration(t,r,n),e):e}e.updateTypeParameterDeclaration=updateTypeParameterDeclaration;function createParameter(t,r,n,i,a,o,s){var c=createSynthesizedNode(151);c.decorators=asNodeArray(t);c.modifiers=asNodeArray(r);c.dotDotDotToken=n;c.name=asName(i);c.questionToken=a;c.type=o;c.initializer=s?e.parenthesizeExpressionForList(s):undefined;return c}e.createParameter=createParameter;function updateParameter(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?updateNode(createParameter(t,r,n,i,a,o,s),e):e}e.updateParameter=updateParameter;function createDecorator(t){var r=createSynthesizedNode(152);r.expression=e.parenthesizeForAccess(t);return r}e.createDecorator=createDecorator;function updateDecorator(e,t){return e.expression!==t?updateNode(createDecorator(t),e):e}e.updateDecorator=updateDecorator;function createPropertySignature(e,t,r,n,i){var a=createSynthesizedNode(153);a.modifiers=asNodeArray(e);a.name=asName(t);a.questionToken=r;a.type=n;a.initializer=i;return a}e.createPropertySignature=createPropertySignature;function updatePropertySignature(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i||e.initializer!==a?updateNode(createPropertySignature(t,r,n,i,a),e):e}e.updatePropertySignature=updatePropertySignature;function createProperty(e,t,r,n,i,a){var o=createSynthesizedNode(154);o.decorators=asNodeArray(e);o.modifiers=asNodeArray(t);o.name=asName(r);o.questionToken=n!==undefined&&n.kind===56?n:undefined;o.exclamationToken=n!==undefined&&n.kind===52?n:undefined;o.type=i;o.initializer=a;return o}e.createProperty=createProperty;function updateProperty(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.questionToken!==(i!==undefined&&i.kind===56?i:undefined)||e.exclamationToken!==(i!==undefined&&i.kind===52?i:undefined)||e.type!==a||e.initializer!==o?updateNode(createProperty(t,r,n,i,a,o),e):e}e.updateProperty=updateProperty;function createMethodSignature(e,t,r,n,i){var a=createSignatureDeclaration(155,e,t,r);a.name=asName(n);a.questionToken=i;return a}e.createMethodSignature=createMethodSignature;function updateMethodSignature(e,t,r,n,i,a){return e.typeParameters!==t||e.parameters!==r||e.type!==n||e.name!==i||e.questionToken!==a?updateNode(createMethodSignature(t,r,n,i,a),e):e}e.updateMethodSignature=updateMethodSignature;function createMethod(e,t,r,n,i,a,o,s,c){var u=createSynthesizedNode(156);u.decorators=asNodeArray(e);u.modifiers=asNodeArray(t);u.asteriskToken=r;u.name=asName(n);u.questionToken=i;u.typeParameters=asNodeArray(a);u.parameters=createNodeArray(o);u.type=s;u.body=c;return u}e.createMethod=createMethod;function updateMethod(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?updateNode(createMethod(t,r,n,i,a,o,s,c,u),e):e}e.updateMethod=updateMethod;function createConstructor(e,t,r,n){var i=createSynthesizedNode(157);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.typeParameters=undefined;i.parameters=createNodeArray(r);i.type=undefined;i.body=n;return i}e.createConstructor=createConstructor;function updateConstructor(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?updateNode(createConstructor(t,r,n,i),e):e}e.updateConstructor=updateConstructor;function createGetAccessor(e,t,r,n,i,a){var o=createSynthesizedNode(158);o.decorators=asNodeArray(e);o.modifiers=asNodeArray(t);o.name=asName(r);o.typeParameters=undefined;o.parameters=createNodeArray(n);o.type=i;o.body=a;return o}e.createGetAccessor=createGetAccessor;function updateGetAccessor(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?updateNode(createGetAccessor(t,r,n,i,a,o),e):e}e.updateGetAccessor=updateGetAccessor;function createSetAccessor(e,t,r,n,i){var a=createSynthesizedNode(159);a.decorators=asNodeArray(e);a.modifiers=asNodeArray(t);a.name=asName(r);a.typeParameters=undefined;a.parameters=createNodeArray(n);a.body=i;return a}e.createSetAccessor=createSetAccessor;function updateSetAccessor(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?updateNode(createSetAccessor(t,r,n,i,a),e):e}e.updateSetAccessor=updateSetAccessor;function createCallSignature(e,t,r){return createSignatureDeclaration(160,e,t,r)}e.createCallSignature=createCallSignature;function updateCallSignature(e,t,r,n){return updateSignatureDeclaration(e,t,r,n)}e.updateCallSignature=updateCallSignature;function createConstructSignature(e,t,r){return createSignatureDeclaration(161,e,t,r)}e.createConstructSignature=createConstructSignature;function updateConstructSignature(e,t,r,n){return updateSignatureDeclaration(e,t,r,n)}e.updateConstructSignature=updateConstructSignature;function createIndexSignature(e,t,r,n){var i=createSynthesizedNode(162);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.parameters=createNodeArray(r);i.type=n;return i}e.createIndexSignature=createIndexSignature;function updateIndexSignature(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?updateNode(createIndexSignature(t,r,n,i),e):e}e.updateIndexSignature=updateIndexSignature;function createSignatureDeclaration(e,t,r,n,i){var a=createSynthesizedNode(e);a.typeParameters=asNodeArray(t);a.parameters=asNodeArray(r);a.type=n;a.typeArguments=asNodeArray(i);return a}e.createSignatureDeclaration=createSignatureDeclaration;function updateSignatureDeclaration(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?updateNode(createSignatureDeclaration(e.kind,t,r,n),e):e}function createKeywordTypeNode(e){return createSynthesizedNode(e)}e.createKeywordTypeNode=createKeywordTypeNode;function createTypePredicateNode(e,t){var r=createSynthesizedNode(163);r.parameterName=asName(e);r.type=t;return r}e.createTypePredicateNode=createTypePredicateNode;function updateTypePredicateNode(e,t,r){return e.parameterName!==t||e.type!==r?updateNode(createTypePredicateNode(t,r),e):e}e.updateTypePredicateNode=updateTypePredicateNode;function createTypeReferenceNode(t,r){var n=createSynthesizedNode(164);n.typeName=asName(t);n.typeArguments=r&&e.parenthesizeTypeParameters(r);return n}e.createTypeReferenceNode=createTypeReferenceNode;function updateTypeReferenceNode(e,t,r){return e.typeName!==t||e.typeArguments!==r?updateNode(createTypeReferenceNode(t,r),e):e}e.updateTypeReferenceNode=updateTypeReferenceNode;function createFunctionTypeNode(e,t,r){return createSignatureDeclaration(165,e,t,r)}e.createFunctionTypeNode=createFunctionTypeNode;function updateFunctionTypeNode(e,t,r,n){return updateSignatureDeclaration(e,t,r,n)}e.updateFunctionTypeNode=updateFunctionTypeNode;function createConstructorTypeNode(e,t,r){return createSignatureDeclaration(166,e,t,r)}e.createConstructorTypeNode=createConstructorTypeNode;function updateConstructorTypeNode(e,t,r,n){return updateSignatureDeclaration(e,t,r,n)}e.updateConstructorTypeNode=updateConstructorTypeNode;function createTypeQueryNode(e){var t=createSynthesizedNode(167);t.exprName=e;return t}e.createTypeQueryNode=createTypeQueryNode;function updateTypeQueryNode(e,t){return e.exprName!==t?updateNode(createTypeQueryNode(t),e):e}e.updateTypeQueryNode=updateTypeQueryNode;function createTypeLiteralNode(e){var t=createSynthesizedNode(168);t.members=createNodeArray(e);return t}e.createTypeLiteralNode=createTypeLiteralNode;function updateTypeLiteralNode(e,t){return e.members!==t?updateNode(createTypeLiteralNode(t),e):e}e.updateTypeLiteralNode=updateTypeLiteralNode;function createArrayTypeNode(t){var r=createSynthesizedNode(169);r.elementType=e.parenthesizeArrayTypeMember(t);return r}e.createArrayTypeNode=createArrayTypeNode;function updateArrayTypeNode(e,t){return e.elementType!==t?updateNode(createArrayTypeNode(t),e):e}e.updateArrayTypeNode=updateArrayTypeNode;function createTupleTypeNode(e){var t=createSynthesizedNode(170);t.elementTypes=createNodeArray(e);return t}e.createTupleTypeNode=createTupleTypeNode;function updateTupleTypeNode(e,t){return e.elementTypes!==t?updateNode(createTupleTypeNode(t),e):e}e.updateTupleTypeNode=updateTupleTypeNode;function createOptionalTypeNode(t){var r=createSynthesizedNode(171);r.type=e.parenthesizeArrayTypeMember(t);return r}e.createOptionalTypeNode=createOptionalTypeNode;function updateOptionalTypeNode(e,t){return e.type!==t?updateNode(createOptionalTypeNode(t),e):e}e.updateOptionalTypeNode=updateOptionalTypeNode;function createRestTypeNode(e){var t=createSynthesizedNode(172);t.type=e;return t}e.createRestTypeNode=createRestTypeNode;function updateRestTypeNode(e,t){return e.type!==t?updateNode(createRestTypeNode(t),e):e}e.updateRestTypeNode=updateRestTypeNode;function createUnionTypeNode(e){return createUnionOrIntersectionTypeNode(173,e)}e.createUnionTypeNode=createUnionTypeNode;function updateUnionTypeNode(e,t){return updateUnionOrIntersectionTypeNode(e,t)}e.updateUnionTypeNode=updateUnionTypeNode;function createIntersectionTypeNode(e){return createUnionOrIntersectionTypeNode(174,e)}e.createIntersectionTypeNode=createIntersectionTypeNode;function updateIntersectionTypeNode(e,t){return updateUnionOrIntersectionTypeNode(e,t)}e.updateIntersectionTypeNode=updateIntersectionTypeNode;function createUnionOrIntersectionTypeNode(t,r){var n=createSynthesizedNode(t);n.types=e.parenthesizeElementTypeMembers(r);return n}e.createUnionOrIntersectionTypeNode=createUnionOrIntersectionTypeNode;function updateUnionOrIntersectionTypeNode(e,t){return e.types!==t?updateNode(createUnionOrIntersectionTypeNode(e.kind,t),e):e}function createConditionalTypeNode(t,r,n,i){var a=createSynthesizedNode(175);a.checkType=e.parenthesizeConditionalTypeMember(t);a.extendsType=e.parenthesizeConditionalTypeMember(r);a.trueType=n;a.falseType=i;return a}e.createConditionalTypeNode=createConditionalTypeNode;function updateConditionalTypeNode(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?updateNode(createConditionalTypeNode(t,r,n,i),e):e}e.updateConditionalTypeNode=updateConditionalTypeNode;function createInferTypeNode(e){var t=createSynthesizedNode(176);t.typeParameter=e;return t}e.createInferTypeNode=createInferTypeNode;function updateInferTypeNode(e,t){return e.typeParameter!==t?updateNode(createInferTypeNode(t),e):e}e.updateInferTypeNode=updateInferTypeNode;function createImportTypeNode(e,t,r,n){var i=createSynthesizedNode(183);i.argument=e;i.qualifier=t;i.typeArguments=asNodeArray(r);i.isTypeOf=n;return i}e.createImportTypeNode=createImportTypeNode;function updateImportTypeNode(e,t,r,n,i){return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?updateNode(createImportTypeNode(t,r,n,i),e):e}e.updateImportTypeNode=updateImportTypeNode;function createParenthesizedType(e){var t=createSynthesizedNode(177);t.type=e;return t}e.createParenthesizedType=createParenthesizedType;function updateParenthesizedType(e,t){return e.type!==t?updateNode(createParenthesizedType(t),e):e}e.updateParenthesizedType=updateParenthesizedType;function createThisTypeNode(){return createSynthesizedNode(178)}e.createThisTypeNode=createThisTypeNode;function createTypeOperatorNode(t,r){var n=createSynthesizedNode(179);n.operator=typeof t==="number"?t:129;n.type=e.parenthesizeElementTypeMember(typeof t==="number"?r:t);return n}e.createTypeOperatorNode=createTypeOperatorNode;function updateTypeOperatorNode(e,t){return e.type!==t?updateNode(createTypeOperatorNode(e.operator,t),e):e}e.updateTypeOperatorNode=updateTypeOperatorNode;function createIndexedAccessTypeNode(t,r){var n=createSynthesizedNode(180);n.objectType=e.parenthesizeElementTypeMember(t);n.indexType=r;return n}e.createIndexedAccessTypeNode=createIndexedAccessTypeNode;function updateIndexedAccessTypeNode(e,t,r){return e.objectType!==t||e.indexType!==r?updateNode(createIndexedAccessTypeNode(t,r),e):e}e.updateIndexedAccessTypeNode=updateIndexedAccessTypeNode;function createMappedTypeNode(e,t,r,n){var i=createSynthesizedNode(181);i.readonlyToken=e;i.typeParameter=t;i.questionToken=r;i.type=n;return i}e.createMappedTypeNode=createMappedTypeNode;function updateMappedTypeNode(e,t,r,n,i){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==n||e.type!==i?updateNode(createMappedTypeNode(t,r,n,i),e):e}e.updateMappedTypeNode=updateMappedTypeNode;function createLiteralTypeNode(e){var t=createSynthesizedNode(182);t.literal=e;return t}e.createLiteralTypeNode=createLiteralTypeNode;function updateLiteralTypeNode(e,t){return e.literal!==t?updateNode(createLiteralTypeNode(t),e):e}e.updateLiteralTypeNode=updateLiteralTypeNode;function createObjectBindingPattern(e){var t=createSynthesizedNode(184);t.elements=createNodeArray(e);return t}e.createObjectBindingPattern=createObjectBindingPattern;function updateObjectBindingPattern(e,t){return e.elements!==t?updateNode(createObjectBindingPattern(t),e):e}e.updateObjectBindingPattern=updateObjectBindingPattern;function createArrayBindingPattern(e){var t=createSynthesizedNode(185);t.elements=createNodeArray(e);return t}e.createArrayBindingPattern=createArrayBindingPattern;function updateArrayBindingPattern(e,t){return e.elements!==t?updateNode(createArrayBindingPattern(t),e):e}e.updateArrayBindingPattern=updateArrayBindingPattern;function createBindingElement(e,t,r,n){var i=createSynthesizedNode(186);i.dotDotDotToken=e;i.propertyName=asName(t);i.name=asName(r);i.initializer=n;return i}e.createBindingElement=createBindingElement;function updateBindingElement(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?updateNode(createBindingElement(t,r,n,i),e):e}e.updateBindingElement=updateBindingElement;function createArrayLiteral(t,r){var n=createSynthesizedNode(187);n.elements=e.parenthesizeListElements(createNodeArray(t));if(r)n.multiLine=true;return n}e.createArrayLiteral=createArrayLiteral;function updateArrayLiteral(e,t){return e.elements!==t?updateNode(createArrayLiteral(t,e.multiLine),e):e}e.updateArrayLiteral=updateArrayLiteral;function createObjectLiteral(e,t){var r=createSynthesizedNode(188);r.properties=createNodeArray(e);if(t)r.multiLine=true;return r}e.createObjectLiteral=createObjectLiteral;function updateObjectLiteral(e,t){return e.properties!==t?updateNode(createObjectLiteral(t,e.multiLine),e):e}e.updateObjectLiteral=updateObjectLiteral;function createPropertyAccess(t,r){var n=createSynthesizedNode(189);n.expression=e.parenthesizeForAccess(t);n.name=asName(r);setEmitFlags(n,131072);return n}e.createPropertyAccess=createPropertyAccess;function updatePropertyAccess(t,r,n){return t.expression!==r||t.name!==n?updateNode(setEmitFlags(createPropertyAccess(r,n),e.getEmitFlags(t)),t):t}e.updatePropertyAccess=updatePropertyAccess;function createElementAccess(t,r){var n=createSynthesizedNode(190);n.expression=e.parenthesizeForAccess(t);n.argumentExpression=asExpression(r);return n}e.createElementAccess=createElementAccess;function updateElementAccess(e,t,r){return e.expression!==t||e.argumentExpression!==r?updateNode(createElementAccess(t,r),e):e}e.updateElementAccess=updateElementAccess;function createCall(t,r,n){var i=createSynthesizedNode(191);i.expression=e.parenthesizeForAccess(t);i.typeArguments=asNodeArray(r);i.arguments=e.parenthesizeListElements(createNodeArray(n));return i}e.createCall=createCall;function updateCall(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?updateNode(createCall(t,r,n),e):e}e.updateCall=updateCall;function createNew(t,r,n){var i=createSynthesizedNode(192);i.expression=e.parenthesizeForNew(t);i.typeArguments=asNodeArray(r);i.arguments=n?e.parenthesizeListElements(createNodeArray(n)):undefined;return i}e.createNew=createNew;function updateNew(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?updateNode(createNew(t,r,n),e):e}e.updateNew=updateNew;function createTaggedTemplate(t,r,n){var i=createSynthesizedNode(193);i.tag=e.parenthesizeForAccess(t);if(n){i.typeArguments=asNodeArray(r);i.template=n}else{i.typeArguments=undefined;i.template=r}return i}e.createTaggedTemplate=createTaggedTemplate;function updateTaggedTemplate(e,t,r,n){return e.tag!==t||(n?e.typeArguments!==r||e.template!==n:e.typeArguments!==undefined||e.template!==r)?updateNode(createTaggedTemplate(t,r,n),e):e}e.updateTaggedTemplate=updateTaggedTemplate;function createTypeAssertion(t,r){var n=createSynthesizedNode(194);n.type=t;n.expression=e.parenthesizePrefixOperand(r);return n}e.createTypeAssertion=createTypeAssertion;function updateTypeAssertion(e,t,r){return e.type!==t||e.expression!==r?updateNode(createTypeAssertion(t,r),e):e}e.updateTypeAssertion=updateTypeAssertion;function createParen(e){var t=createSynthesizedNode(195);t.expression=e;return t}e.createParen=createParen;function updateParen(e,t){return e.expression!==t?updateNode(createParen(t),e):e}e.updateParen=updateParen;function createFunctionExpression(e,t,r,n,i,a,o){var s=createSynthesizedNode(196);s.modifiers=asNodeArray(e);s.asteriskToken=t;s.name=asName(r);s.typeParameters=asNodeArray(n);s.parameters=createNodeArray(i);s.type=a;s.body=o;return s}e.createFunctionExpression=createFunctionExpression;function updateFunctionExpression(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?updateNode(createFunctionExpression(t,r,n,i,a,o,s),e):e}e.updateFunctionExpression=updateFunctionExpression;function createArrowFunction(t,r,n,i,a,o){var s=createSynthesizedNode(197);s.modifiers=asNodeArray(t);s.typeParameters=asNodeArray(r);s.parameters=createNodeArray(n);s.type=i;s.equalsGreaterThanToken=a||createToken(37);s.body=e.parenthesizeConciseBody(o);return s}e.createArrowFunction=createArrowFunction;function updateArrowFunction(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?updateNode(createArrowFunction(t,r,n,i,a,o),e):e}e.updateArrowFunction=updateArrowFunction;function createDelete(t){var r=createSynthesizedNode(198);r.expression=e.parenthesizePrefixOperand(t);return r}e.createDelete=createDelete;function updateDelete(e,t){return e.expression!==t?updateNode(createDelete(t),e):e}e.updateDelete=updateDelete;function createTypeOf(t){var r=createSynthesizedNode(199);r.expression=e.parenthesizePrefixOperand(t);return r}e.createTypeOf=createTypeOf;function updateTypeOf(e,t){return e.expression!==t?updateNode(createTypeOf(t),e):e}e.updateTypeOf=updateTypeOf;function createVoid(t){var r=createSynthesizedNode(200);r.expression=e.parenthesizePrefixOperand(t);return r}e.createVoid=createVoid;function updateVoid(e,t){return e.expression!==t?updateNode(createVoid(t),e):e}e.updateVoid=updateVoid;function createAwait(t){var r=createSynthesizedNode(201);r.expression=e.parenthesizePrefixOperand(t);return r}e.createAwait=createAwait;function updateAwait(e,t){return e.expression!==t?updateNode(createAwait(t),e):e}e.updateAwait=updateAwait;function createPrefix(t,r){var n=createSynthesizedNode(202);n.operator=t;n.operand=e.parenthesizePrefixOperand(r);return n}e.createPrefix=createPrefix;function updatePrefix(e,t){return e.operand!==t?updateNode(createPrefix(e.operator,t),e):e}e.updatePrefix=updatePrefix;function createPostfix(t,r){var n=createSynthesizedNode(203);n.operand=e.parenthesizePostfixOperand(t);n.operator=r;return n}e.createPostfix=createPostfix;function updatePostfix(e,t){return e.operand!==t?updateNode(createPostfix(t,e.operator),e):e}e.updatePostfix=updatePostfix;function createBinary(t,r,n){var i=createSynthesizedNode(204);var a=asToken(r);var o=a.kind;i.left=e.parenthesizeBinaryOperand(o,t,true,undefined);i.operatorToken=a;i.right=e.parenthesizeBinaryOperand(o,n,false,i.left);return i}e.createBinary=createBinary;function updateBinary(e,t,r,n){return e.left!==t||e.right!==r?updateNode(createBinary(t,n||e.operatorToken,r),e):e}e.updateBinary=updateBinary;function createConditional(t,r,n,i,a){var o=createSynthesizedNode(205);o.condition=e.parenthesizeForConditionalHead(t);o.questionToken=a?r:createToken(56);o.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(a?n:r);o.colonToken=a?i:createToken(57);o.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(a?a:n);return o}e.createConditional=createConditional;function updateConditional(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?updateNode(createConditional(t,r,n,i,a),e):e}e.updateConditional=updateConditional;function createTemplateExpression(e,t){var r=createSynthesizedNode(206);r.head=e;r.templateSpans=createNodeArray(t);return r}e.createTemplateExpression=createTemplateExpression;function updateTemplateExpression(e,t,r){return e.head!==t||e.templateSpans!==r?updateNode(createTemplateExpression(t,r),e):e}e.updateTemplateExpression=updateTemplateExpression;function createTemplateHead(e){var t=createSynthesizedNode(15);t.text=e;return t}e.createTemplateHead=createTemplateHead;function createTemplateMiddle(e){var t=createSynthesizedNode(16);t.text=e;return t}e.createTemplateMiddle=createTemplateMiddle;function createTemplateTail(e){var t=createSynthesizedNode(17);t.text=e;return t}e.createTemplateTail=createTemplateTail;function createNoSubstitutionTemplateLiteral(e){var t=createSynthesizedNode(14);t.text=e;return t}e.createNoSubstitutionTemplateLiteral=createNoSubstitutionTemplateLiteral;function createYield(e,t){var r=createSynthesizedNode(207);r.asteriskToken=e&&e.kind===40?e:undefined;r.expression=e&&e.kind!==40?e:t;return r}e.createYield=createYield;function updateYield(e,t,r){return e.expression!==r||e.asteriskToken!==t?updateNode(createYield(t,r),e):e}e.updateYield=updateYield;function createSpread(t){var r=createSynthesizedNode(208);r.expression=e.parenthesizeExpressionForList(t);return r}e.createSpread=createSpread;function updateSpread(e,t){return e.expression!==t?updateNode(createSpread(t),e):e}e.updateSpread=updateSpread;function createClassExpression(e,t,r,n,i){var a=createSynthesizedNode(209);a.decorators=undefined;a.modifiers=asNodeArray(e);a.name=asName(t);a.typeParameters=asNodeArray(r);a.heritageClauses=asNodeArray(n);a.members=createNodeArray(i);return a}e.createClassExpression=createClassExpression;function updateClassExpression(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?updateNode(createClassExpression(t,r,n,i,a),e):e}e.updateClassExpression=updateClassExpression;function createOmittedExpression(){return createSynthesizedNode(210)}e.createOmittedExpression=createOmittedExpression;function createExpressionWithTypeArguments(t,r){var n=createSynthesizedNode(211);n.expression=e.parenthesizeForAccess(r);n.typeArguments=asNodeArray(t);return n}e.createExpressionWithTypeArguments=createExpressionWithTypeArguments;function updateExpressionWithTypeArguments(e,t,r){return e.typeArguments!==t||e.expression!==r?updateNode(createExpressionWithTypeArguments(t,r),e):e}e.updateExpressionWithTypeArguments=updateExpressionWithTypeArguments;function createAsExpression(e,t){var r=createSynthesizedNode(212);r.expression=e;r.type=t;return r}e.createAsExpression=createAsExpression;function updateAsExpression(e,t,r){return e.expression!==t||e.type!==r?updateNode(createAsExpression(t,r),e):e}e.updateAsExpression=updateAsExpression;function createNonNullExpression(t){var r=createSynthesizedNode(213);r.expression=e.parenthesizeForAccess(t);return r}e.createNonNullExpression=createNonNullExpression;function updateNonNullExpression(e,t){return e.expression!==t?updateNode(createNonNullExpression(t),e):e}e.updateNonNullExpression=updateNonNullExpression;function createMetaProperty(e,t){var r=createSynthesizedNode(214);r.keywordToken=e;r.name=t;return r}e.createMetaProperty=createMetaProperty;function updateMetaProperty(e,t){return e.name!==t?updateNode(createMetaProperty(e.keywordToken,t),e):e}e.updateMetaProperty=updateMetaProperty;function createTemplateSpan(e,t){var r=createSynthesizedNode(216);r.expression=e;r.literal=t;return r}e.createTemplateSpan=createTemplateSpan;function updateTemplateSpan(e,t,r){return e.expression!==t||e.literal!==r?updateNode(createTemplateSpan(t,r),e):e}e.updateTemplateSpan=updateTemplateSpan;function createSemicolonClassElement(){return createSynthesizedNode(217)}e.createSemicolonClassElement=createSemicolonClassElement;function createBlock(e,t){var r=createSynthesizedNode(218);r.statements=createNodeArray(e);if(t)r.multiLine=t;return r}e.createBlock=createBlock;function updateBlock(e,t){return e.statements!==t?updateNode(createBlock(t,e.multiLine),e):e}e.updateBlock=updateBlock;function createVariableStatement(t,r){var n=createSynthesizedNode(219);n.decorators=undefined;n.modifiers=asNodeArray(t);n.declarationList=e.isArray(r)?createVariableDeclarationList(r):r;return n}e.createVariableStatement=createVariableStatement;function updateVariableStatement(e,t,r){return e.modifiers!==t||e.declarationList!==r?updateNode(createVariableStatement(t,r),e):e}e.updateVariableStatement=updateVariableStatement;function createEmptyStatement(){return createSynthesizedNode(220)}e.createEmptyStatement=createEmptyStatement;function createExpressionStatement(t){var r=createSynthesizedNode(221);r.expression=e.parenthesizeExpressionForExpressionStatement(t);return r}e.createExpressionStatement=createExpressionStatement;function updateExpressionStatement(e,t){return e.expression!==t?updateNode(createExpressionStatement(t),e):e}e.updateExpressionStatement=updateExpressionStatement;e.createStatement=createExpressionStatement;e.updateStatement=updateExpressionStatement;function createIf(e,t,r){var n=createSynthesizedNode(222);n.expression=e;n.thenStatement=t;n.elseStatement=r;return n}e.createIf=createIf;function updateIf(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?updateNode(createIf(t,r,n),e):e}e.updateIf=updateIf;function createDo(e,t){var r=createSynthesizedNode(223);r.statement=e;r.expression=t;return r}e.createDo=createDo;function updateDo(e,t,r){return e.statement!==t||e.expression!==r?updateNode(createDo(t,r),e):e}e.updateDo=updateDo;function createWhile(e,t){var r=createSynthesizedNode(224);r.expression=e;r.statement=t;return r}e.createWhile=createWhile;function updateWhile(e,t,r){return e.expression!==t||e.statement!==r?updateNode(createWhile(t,r),e):e}e.updateWhile=updateWhile;function createFor(e,t,r,n){var i=createSynthesizedNode(225);i.initializer=e;i.condition=t;i.incrementor=r;i.statement=n;return i}e.createFor=createFor;function updateFor(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?updateNode(createFor(t,r,n,i),e):e}e.updateFor=updateFor;function createForIn(e,t,r){var n=createSynthesizedNode(226);n.initializer=e;n.expression=t;n.statement=r;return n}e.createForIn=createForIn;function updateForIn(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?updateNode(createForIn(t,r,n),e):e}e.updateForIn=updateForIn;function createForOf(e,t,r,n){var i=createSynthesizedNode(227);i.awaitModifier=e;i.initializer=t;i.expression=r;i.statement=n;return i}e.createForOf=createForOf;function updateForOf(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?updateNode(createForOf(t,r,n,i),e):e}e.updateForOf=updateForOf;function createContinue(e){var t=createSynthesizedNode(228);t.label=asName(e);return t}e.createContinue=createContinue;function updateContinue(e,t){return e.label!==t?updateNode(createContinue(t),e):e}e.updateContinue=updateContinue;function createBreak(e){var t=createSynthesizedNode(229);t.label=asName(e);return t}e.createBreak=createBreak;function updateBreak(e,t){return e.label!==t?updateNode(createBreak(t),e):e}e.updateBreak=updateBreak;function createReturn(e){var t=createSynthesizedNode(230);t.expression=e;return t}e.createReturn=createReturn;function updateReturn(e,t){return e.expression!==t?updateNode(createReturn(t),e):e}e.updateReturn=updateReturn;function createWith(e,t){var r=createSynthesizedNode(231);r.expression=e;r.statement=t;return r}e.createWith=createWith;function updateWith(e,t,r){return e.expression!==t||e.statement!==r?updateNode(createWith(t,r),e):e}e.updateWith=updateWith;function createSwitch(t,r){var n=createSynthesizedNode(232);n.expression=e.parenthesizeExpressionForList(t);n.caseBlock=r;return n}e.createSwitch=createSwitch;function updateSwitch(e,t,r){return e.expression!==t||e.caseBlock!==r?updateNode(createSwitch(t,r),e):e}e.updateSwitch=updateSwitch;function createLabel(e,t){var r=createSynthesizedNode(233);r.label=asName(e);r.statement=t;return r}e.createLabel=createLabel;function updateLabel(e,t,r){return e.label!==t||e.statement!==r?updateNode(createLabel(t,r),e):e}e.updateLabel=updateLabel;function createThrow(e){var t=createSynthesizedNode(234);t.expression=e;return t}e.createThrow=createThrow;function updateThrow(e,t){return e.expression!==t?updateNode(createThrow(t),e):e}e.updateThrow=updateThrow;function createTry(e,t,r){var n=createSynthesizedNode(235);n.tryBlock=e;n.catchClause=t;n.finallyBlock=r;return n}e.createTry=createTry;function updateTry(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?updateNode(createTry(t,r,n),e):e}e.updateTry=updateTry;function createDebuggerStatement(){return createSynthesizedNode(236)}e.createDebuggerStatement=createDebuggerStatement;function createVariableDeclaration(t,r,n){var i=createSynthesizedNode(237);i.name=asName(t);i.type=r;i.initializer=n!==undefined?e.parenthesizeExpressionForList(n):undefined;return i}e.createVariableDeclaration=createVariableDeclaration;function updateVariableDeclaration(e,t,r,n){return e.name!==t||e.type!==r||e.initializer!==n?updateNode(createVariableDeclaration(t,r,n),e):e}e.updateVariableDeclaration=updateVariableDeclaration;function createVariableDeclarationList(e,t){if(t===void 0){t=0}var r=createSynthesizedNode(238);r.flags|=t&3;r.declarations=createNodeArray(e);return r}e.createVariableDeclarationList=createVariableDeclarationList;function updateVariableDeclarationList(e,t){return e.declarations!==t?updateNode(createVariableDeclarationList(t,e.flags),e):e}e.updateVariableDeclarationList=updateVariableDeclarationList;function createFunctionDeclaration(e,t,r,n,i,a,o,s){var c=createSynthesizedNode(239);c.decorators=asNodeArray(e);c.modifiers=asNodeArray(t);c.asteriskToken=r;c.name=asName(n);c.typeParameters=asNodeArray(i);c.parameters=createNodeArray(a);c.type=o;c.body=s;return c}e.createFunctionDeclaration=createFunctionDeclaration;function updateFunctionDeclaration(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?updateNode(createFunctionDeclaration(t,r,n,i,a,o,s,c),e):e}e.updateFunctionDeclaration=updateFunctionDeclaration;function createClassDeclaration(e,t,r,n,i,a){var o=createSynthesizedNode(240);o.decorators=asNodeArray(e);o.modifiers=asNodeArray(t);o.name=asName(r);o.typeParameters=asNodeArray(n);o.heritageClauses=asNodeArray(i);o.members=createNodeArray(a);return o}e.createClassDeclaration=createClassDeclaration;function updateClassDeclaration(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?updateNode(createClassDeclaration(t,r,n,i,a,o),e):e}e.updateClassDeclaration=updateClassDeclaration;function createInterfaceDeclaration(e,t,r,n,i,a){var o=createSynthesizedNode(241);o.decorators=asNodeArray(e);o.modifiers=asNodeArray(t);o.name=asName(r);o.typeParameters=asNodeArray(n);o.heritageClauses=asNodeArray(i);o.members=createNodeArray(a);return o}e.createInterfaceDeclaration=createInterfaceDeclaration;function updateInterfaceDeclaration(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?updateNode(createInterfaceDeclaration(t,r,n,i,a,o),e):e}e.updateInterfaceDeclaration=updateInterfaceDeclaration;function createTypeAliasDeclaration(e,t,r,n,i){var a=createSynthesizedNode(242);a.decorators=asNodeArray(e);a.modifiers=asNodeArray(t);a.name=asName(r);a.typeParameters=asNodeArray(n);a.type=i;return a}e.createTypeAliasDeclaration=createTypeAliasDeclaration;function updateTypeAliasDeclaration(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?updateNode(createTypeAliasDeclaration(t,r,n,i,a),e):e}e.updateTypeAliasDeclaration=updateTypeAliasDeclaration;function createEnumDeclaration(e,t,r,n){var i=createSynthesizedNode(243);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.name=asName(r);i.members=createNodeArray(n);return i}e.createEnumDeclaration=createEnumDeclaration;function updateEnumDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?updateNode(createEnumDeclaration(t,r,n,i),e):e}e.updateEnumDeclaration=updateEnumDeclaration;function createModuleDeclaration(e,t,r,n,i){if(i===void 0){i=0}var a=createSynthesizedNode(244);a.flags|=i&(16|4|512);a.decorators=asNodeArray(e);a.modifiers=asNodeArray(t);a.name=r;a.body=n;return a}e.createModuleDeclaration=createModuleDeclaration;function updateModuleDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?updateNode(createModuleDeclaration(t,r,n,i,e.flags),e):e}e.updateModuleDeclaration=updateModuleDeclaration;function createModuleBlock(e){var t=createSynthesizedNode(245);t.statements=createNodeArray(e);return t}e.createModuleBlock=createModuleBlock;function updateModuleBlock(e,t){return e.statements!==t?updateNode(createModuleBlock(t),e):e}e.updateModuleBlock=updateModuleBlock;function createCaseBlock(e){var t=createSynthesizedNode(246);t.clauses=createNodeArray(e);return t}e.createCaseBlock=createCaseBlock;function updateCaseBlock(e,t){return e.clauses!==t?updateNode(createCaseBlock(t),e):e}e.updateCaseBlock=updateCaseBlock;function createNamespaceExportDeclaration(e){var t=createSynthesizedNode(247);t.name=asName(e);return t}e.createNamespaceExportDeclaration=createNamespaceExportDeclaration;function updateNamespaceExportDeclaration(e,t){return e.name!==t?updateNode(createNamespaceExportDeclaration(t),e):e}e.updateNamespaceExportDeclaration=updateNamespaceExportDeclaration;function createImportEqualsDeclaration(e,t,r,n){var i=createSynthesizedNode(248);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.name=asName(r);i.moduleReference=n;return i}e.createImportEqualsDeclaration=createImportEqualsDeclaration;function updateImportEqualsDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==i?updateNode(createImportEqualsDeclaration(t,r,n,i),e):e}e.updateImportEqualsDeclaration=updateImportEqualsDeclaration;function createImportDeclaration(e,t,r,n){var i=createSynthesizedNode(249);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.importClause=r;i.moduleSpecifier=n;return i}e.createImportDeclaration=createImportDeclaration;function updateImportDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?updateNode(createImportDeclaration(t,r,n,i),e):e}e.updateImportDeclaration=updateImportDeclaration;function createImportClause(e,t){var r=createSynthesizedNode(250);r.name=e;r.namedBindings=t;return r}e.createImportClause=createImportClause;function updateImportClause(e,t,r){return e.name!==t||e.namedBindings!==r?updateNode(createImportClause(t,r),e):e}e.updateImportClause=updateImportClause;function createNamespaceImport(e){var t=createSynthesizedNode(251);t.name=e;return t}e.createNamespaceImport=createNamespaceImport;function updateNamespaceImport(e,t){return e.name!==t?updateNode(createNamespaceImport(t),e):e}e.updateNamespaceImport=updateNamespaceImport;function createNamedImports(e){var t=createSynthesizedNode(252);t.elements=createNodeArray(e);return t}e.createNamedImports=createNamedImports;function updateNamedImports(e,t){return e.elements!==t?updateNode(createNamedImports(t),e):e}e.updateNamedImports=updateNamedImports;function createImportSpecifier(e,t){var r=createSynthesizedNode(253);r.propertyName=e;r.name=t;return r}e.createImportSpecifier=createImportSpecifier;function updateImportSpecifier(e,t,r){return e.propertyName!==t||e.name!==r?updateNode(createImportSpecifier(t,r),e):e}e.updateImportSpecifier=updateImportSpecifier;function createExportAssignment(t,r,n,i){var a=createSynthesizedNode(254);a.decorators=asNodeArray(t);a.modifiers=asNodeArray(r);a.isExportEquals=n;a.expression=n?e.parenthesizeBinaryOperand(59,i,false,undefined):e.parenthesizeDefaultExpression(i);return a}e.createExportAssignment=createExportAssignment;function updateExportAssignment(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?updateNode(createExportAssignment(t,r,e.isExportEquals,n),e):e}e.updateExportAssignment=updateExportAssignment;function createExportDeclaration(e,t,r,n){var i=createSynthesizedNode(255);i.decorators=asNodeArray(e);i.modifiers=asNodeArray(t);i.exportClause=r;i.moduleSpecifier=n;return i}e.createExportDeclaration=createExportDeclaration;function updateExportDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.exportClause!==n||e.moduleSpecifier!==i?updateNode(createExportDeclaration(t,r,n,i),e):e}e.updateExportDeclaration=updateExportDeclaration;function createNamedExports(e){var t=createSynthesizedNode(256);t.elements=createNodeArray(e);return t}e.createNamedExports=createNamedExports;function updateNamedExports(e,t){return e.elements!==t?updateNode(createNamedExports(t),e):e}e.updateNamedExports=updateNamedExports;function createExportSpecifier(e,t){var r=createSynthesizedNode(257);r.propertyName=asName(e);r.name=asName(t);return r}e.createExportSpecifier=createExportSpecifier;function updateExportSpecifier(e,t,r){return e.propertyName!==t||e.name!==r?updateNode(createExportSpecifier(t,r),e):e}e.updateExportSpecifier=updateExportSpecifier;function createExternalModuleReference(e){var t=createSynthesizedNode(259);t.expression=e;return t}e.createExternalModuleReference=createExternalModuleReference;function updateExternalModuleReference(e,t){return e.expression!==t?updateNode(createExternalModuleReference(t),e):e}e.updateExternalModuleReference=updateExternalModuleReference;function createJSDocTypeExpression(e){var t=createSynthesizedNode(283);t.type=e;return t}e.createJSDocTypeExpression=createJSDocTypeExpression;function createJSDocTypeTag(e,t){var r=createJSDocTag(302,"type");r.typeExpression=e;r.comment=t;return r}e.createJSDocTypeTag=createJSDocTypeTag;function createJSDocReturnTag(e,t){var r=createJSDocTag(300,"returns");r.typeExpression=e;r.comment=t;return r}e.createJSDocReturnTag=createJSDocReturnTag;function createJSDocParamTag(e,t,r,n){var i=createJSDocTag(299,"param");i.typeExpression=r;i.name=e;i.isBracketed=t;i.comment=n;return i}e.createJSDocParamTag=createJSDocParamTag;function createJSDocComment(e,t){var r=createSynthesizedNode(291);r.comment=e;r.tags=t;return r}e.createJSDocComment=createJSDocComment;function createJSDocTag(e,t){var r=createSynthesizedNode(e);r.tagName=createIdentifier(t);return r}function createJsxElement(e,t,r){var n=createSynthesizedNode(260);n.openingElement=e;n.children=createNodeArray(t);n.closingElement=r;return n}e.createJsxElement=createJsxElement;function updateJsxElement(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?updateNode(createJsxElement(t,r,n),e):e}e.updateJsxElement=updateJsxElement;function createJsxSelfClosingElement(e,t,r){var n=createSynthesizedNode(261);n.tagName=e;n.typeArguments=asNodeArray(t);n.attributes=r;return n}e.createJsxSelfClosingElement=createJsxSelfClosingElement;function updateJsxSelfClosingElement(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?updateNode(createJsxSelfClosingElement(t,r,n),e):e}e.updateJsxSelfClosingElement=updateJsxSelfClosingElement;function createJsxOpeningElement(e,t,r){var n=createSynthesizedNode(262);n.tagName=e;n.typeArguments=asNodeArray(t);n.attributes=r;return n}e.createJsxOpeningElement=createJsxOpeningElement;function updateJsxOpeningElement(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?updateNode(createJsxOpeningElement(t,r,n),e):e}e.updateJsxOpeningElement=updateJsxOpeningElement;function createJsxClosingElement(e){var t=createSynthesizedNode(263);t.tagName=e;return t}e.createJsxClosingElement=createJsxClosingElement;function updateJsxClosingElement(e,t){return e.tagName!==t?updateNode(createJsxClosingElement(t),e):e}e.updateJsxClosingElement=updateJsxClosingElement;function createJsxFragment(e,t,r){var n=createSynthesizedNode(264);n.openingFragment=e;n.children=createNodeArray(t);n.closingFragment=r;return n}e.createJsxFragment=createJsxFragment;function updateJsxFragment(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?updateNode(createJsxFragment(t,r,n),e):e}e.updateJsxFragment=updateJsxFragment;function createJsxAttribute(e,t){var r=createSynthesizedNode(267);r.name=e;r.initializer=t;return r}e.createJsxAttribute=createJsxAttribute;function updateJsxAttribute(e,t,r){return e.name!==t||e.initializer!==r?updateNode(createJsxAttribute(t,r),e):e}e.updateJsxAttribute=updateJsxAttribute;function createJsxAttributes(e){var t=createSynthesizedNode(268);t.properties=createNodeArray(e);return t}e.createJsxAttributes=createJsxAttributes;function updateJsxAttributes(e,t){return e.properties!==t?updateNode(createJsxAttributes(t),e):e}e.updateJsxAttributes=updateJsxAttributes;function createJsxSpreadAttribute(e){var t=createSynthesizedNode(269);t.expression=e;return t}e.createJsxSpreadAttribute=createJsxSpreadAttribute;function updateJsxSpreadAttribute(e,t){return e.expression!==t?updateNode(createJsxSpreadAttribute(t),e):e}e.updateJsxSpreadAttribute=updateJsxSpreadAttribute;function createJsxExpression(e,t){var r=createSynthesizedNode(270);r.dotDotDotToken=e;r.expression=t;return r}e.createJsxExpression=createJsxExpression;function updateJsxExpression(e,t){return e.expression!==t?updateNode(createJsxExpression(e.dotDotDotToken,t),e):e}e.updateJsxExpression=updateJsxExpression;function createCaseClause(t,r){var n=createSynthesizedNode(271);n.expression=e.parenthesizeExpressionForList(t);n.statements=createNodeArray(r);return n}e.createCaseClause=createCaseClause;function updateCaseClause(e,t,r){return e.expression!==t||e.statements!==r?updateNode(createCaseClause(t,r),e):e}e.updateCaseClause=updateCaseClause;function createDefaultClause(e){var t=createSynthesizedNode(272);t.statements=createNodeArray(e);return t}e.createDefaultClause=createDefaultClause;function updateDefaultClause(e,t){return e.statements!==t?updateNode(createDefaultClause(t),e):e}e.updateDefaultClause=updateDefaultClause;function createHeritageClause(e,t){var r=createSynthesizedNode(273);r.token=e;r.types=createNodeArray(t);return r}e.createHeritageClause=createHeritageClause;function updateHeritageClause(e,t){return e.types!==t?updateNode(createHeritageClause(e.token,t),e):e}e.updateHeritageClause=updateHeritageClause;function createCatchClause(t,r){var n=createSynthesizedNode(274);n.variableDeclaration=e.isString(t)?createVariableDeclaration(t):t;n.block=r;return n}e.createCatchClause=createCatchClause;function updateCatchClause(e,t,r){return e.variableDeclaration!==t||e.block!==r?updateNode(createCatchClause(t,r),e):e}e.updateCatchClause=updateCatchClause;function createPropertyAssignment(t,r){var n=createSynthesizedNode(275);n.name=asName(t);n.questionToken=undefined;n.initializer=e.parenthesizeExpressionForList(r);return n}e.createPropertyAssignment=createPropertyAssignment;function updatePropertyAssignment(e,t,r){return e.name!==t||e.initializer!==r?updateNode(createPropertyAssignment(t,r),e):e}e.updatePropertyAssignment=updatePropertyAssignment;function createShorthandPropertyAssignment(t,r){var n=createSynthesizedNode(276);n.name=asName(t);n.objectAssignmentInitializer=r!==undefined?e.parenthesizeExpressionForList(r):undefined;return n}e.createShorthandPropertyAssignment=createShorthandPropertyAssignment;function updateShorthandPropertyAssignment(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?updateNode(createShorthandPropertyAssignment(t,r),e):e}e.updateShorthandPropertyAssignment=updateShorthandPropertyAssignment;function createSpreadAssignment(t){var r=createSynthesizedNode(277);r.expression=t!==undefined?e.parenthesizeExpressionForList(t):undefined;return r}e.createSpreadAssignment=createSpreadAssignment;function updateSpreadAssignment(e,t){return e.expression!==t?updateNode(createSpreadAssignment(t),e):e}e.updateSpreadAssignment=updateSpreadAssignment;function createEnumMember(t,r){var n=createSynthesizedNode(278);n.name=asName(t);n.initializer=r&&e.parenthesizeExpressionForList(r);return n}e.createEnumMember=createEnumMember;function updateEnumMember(e,t,r){return e.name!==t||e.initializer!==r?updateNode(createEnumMember(t,r),e):e}e.updateEnumMember=updateEnumMember;function updateSourceFileNode(e,t,r,n,i,a,o){if(e.statements!==t||r!==undefined&&e.isDeclarationFile!==r||n!==undefined&&e.referencedFiles!==n||i!==undefined&&e.typeReferenceDirectives!==i||o!==undefined&&e.libReferenceDirectives!==o||a!==undefined&&e.hasNoDefaultLib!==a){var s=createSynthesizedNode(279);s.flags|=e.flags;s.statements=createNodeArray(t);s.endOfFileToken=e.endOfFileToken;s.fileName=e.fileName;s.path=e.path;s.text=e.text;s.isDeclarationFile=r===undefined?e.isDeclarationFile:r;s.referencedFiles=n===undefined?e.referencedFiles:n;s.typeReferenceDirectives=i===undefined?e.typeReferenceDirectives:i;s.hasNoDefaultLib=a===undefined?e.hasNoDefaultLib:a;s.libReferenceDirectives=o===undefined?e.libReferenceDirectives:o;if(e.amdDependencies!==undefined)s.amdDependencies=e.amdDependencies;if(e.moduleName!==undefined)s.moduleName=e.moduleName;if(e.languageVariant!==undefined)s.languageVariant=e.languageVariant;if(e.renamedDependencies!==undefined)s.renamedDependencies=e.renamedDependencies;if(e.languageVersion!==undefined)s.languageVersion=e.languageVersion;if(e.scriptKind!==undefined)s.scriptKind=e.scriptKind;if(e.externalModuleIndicator!==undefined)s.externalModuleIndicator=e.externalModuleIndicator;if(e.commonJsModuleIndicator!==undefined)s.commonJsModuleIndicator=e.commonJsModuleIndicator;if(e.identifiers!==undefined)s.identifiers=e.identifiers;if(e.nodeCount!==undefined)s.nodeCount=e.nodeCount;if(e.identifierCount!==undefined)s.identifierCount=e.identifierCount;if(e.symbolCount!==undefined)s.symbolCount=e.symbolCount;if(e.parseDiagnostics!==undefined)s.parseDiagnostics=e.parseDiagnostics;if(e.bindDiagnostics!==undefined)s.bindDiagnostics=e.bindDiagnostics;if(e.bindSuggestionDiagnostics!==undefined)s.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics;if(e.lineMap!==undefined)s.lineMap=e.lineMap;if(e.classifiableNames!==undefined)s.classifiableNames=e.classifiableNames;if(e.resolvedModules!==undefined)s.resolvedModules=e.resolvedModules;if(e.resolvedTypeReferenceDirectiveNames!==undefined)s.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames;if(e.imports!==undefined)s.imports=e.imports;if(e.moduleAugmentations!==undefined)s.moduleAugmentations=e.moduleAugmentations;if(e.pragmas!==undefined)s.pragmas=e.pragmas;if(e.localJsxFactory!==undefined)s.localJsxFactory=e.localJsxFactory;if(e.localJsxNamespace!==undefined)s.localJsxNamespace=e.localJsxNamespace;return updateNode(s,e)}return e}e.updateSourceFileNode=updateSourceFileNode;function getMutableClone(e){var t=getSynthesizedClone(e);t.pos=e.pos;t.end=e.end;t.parent=e.parent;return t}e.getMutableClone=getMutableClone;function createNotEmittedStatement(e){var t=createSynthesizedNode(307);t.original=e;setTextRange(t,e);return t}e.createNotEmittedStatement=createNotEmittedStatement;function createEndOfDeclarationMarker(e){var t=createSynthesizedNode(311);t.emitNode={};t.original=e;return t}e.createEndOfDeclarationMarker=createEndOfDeclarationMarker;function createMergeDeclarationMarker(e){var t=createSynthesizedNode(310);t.emitNode={};t.original=e;return t}e.createMergeDeclarationMarker=createMergeDeclarationMarker;function createPartiallyEmittedExpression(e,t){var r=createSynthesizedNode(308);r.expression=e;r.original=t;setTextRange(r,t);return r}e.createPartiallyEmittedExpression=createPartiallyEmittedExpression;function updatePartiallyEmittedExpression(e,t){if(e.expression!==t){return updateNode(createPartiallyEmittedExpression(t,e.original),e)}return e}e.updatePartiallyEmittedExpression=updatePartiallyEmittedExpression;function flattenCommaElements(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(t.kind===309){return t.elements}if(e.isBinaryExpression(t)&&t.operatorToken.kind===27){return[t.left,t.right]}}return t}function createCommaList(t){var r=createSynthesizedNode(309);r.elements=createNodeArray(e.sameFlatMap(t,flattenCommaElements));return r}e.createCommaList=createCommaList;function updateCommaList(e,t){return e.elements!==t?updateNode(createCommaList(t),e):e}e.updateCommaList=updateCommaList;function createBundle(t,r){if(r===void 0){r=e.emptyArray}var n=e.createNode(280);n.prepends=r;n.sourceFiles=t;return n}e.createBundle=createBundle;function createUnparsedSourceFile(t,r,n){var i=e.createNode(281);i.text=t;i.sourceMapPath=r;i.sourceMapText=n;return i}e.createUnparsedSourceFile=createUnparsedSourceFile;function createInputFiles(t,r,n,i,a,o){var s=e.createNode(282);s.javascriptText=t;s.javascriptMapPath=n;s.javascriptMapText=i;s.declarationText=r;s.declarationMapPath=a;s.declarationMapText=o;return s}e.createInputFiles=createInputFiles;function updateBundle(t,r,n){if(n===void 0){n=e.emptyArray}if(t.sourceFiles!==r||t.prepends!==n){return createBundle(r,n)}return t}e.updateBundle=updateBundle;function createImmediatelyInvokedFunctionExpression(e,t,r){return createCall(createFunctionExpression(undefined,undefined,undefined,undefined,t?[t]:[],undefined,createBlock(e,true)),undefined,r?[r]:[])}e.createImmediatelyInvokedFunctionExpression=createImmediatelyInvokedFunctionExpression;function createImmediatelyInvokedArrowFunction(e,t,r){return createCall(createArrowFunction(undefined,undefined,t?[t]:[],undefined,undefined,createBlock(e,true)),undefined,r?[r]:[])}e.createImmediatelyInvokedArrowFunction=createImmediatelyInvokedArrowFunction;function createComma(e,t){return createBinary(e,27,t)}e.createComma=createComma;function createLessThan(e,t){return createBinary(e,28,t)}e.createLessThan=createLessThan;function createAssignment(e,t){return createBinary(e,59,t)}e.createAssignment=createAssignment;function createStrictEquality(e,t){return createBinary(e,35,t)}e.createStrictEquality=createStrictEquality;function createStrictInequality(e,t){return createBinary(e,36,t)}e.createStrictInequality=createStrictInequality;function createAdd(e,t){return createBinary(e,38,t)}e.createAdd=createAdd;function createSubtract(e,t){return createBinary(e,39,t)}e.createSubtract=createSubtract;function createPostfixIncrement(e){return createPostfix(e,44)}e.createPostfixIncrement=createPostfixIncrement;function createLogicalAnd(e,t){return createBinary(e,54,t)}e.createLogicalAnd=createLogicalAnd;function createLogicalOr(e,t){return createBinary(e,55,t)}e.createLogicalOr=createLogicalOr;function createLogicalNot(e){return createPrefix(52,e)}e.createLogicalNot=createLogicalNot;function createVoidZero(){return createVoid(createLiteral(0))}e.createVoidZero=createVoidZero;function createExportDefault(e){return createExportAssignment(undefined,undefined,false,e)}e.createExportDefault=createExportDefault;function createExternalModuleExport(e){return createExportDeclaration(undefined,undefined,createNamedExports([createExportSpecifier(undefined,e)]))}e.createExternalModuleExport=createExternalModuleExport;function asName(t){return e.isString(t)?createIdentifier(t):t}function asExpression(t){return e.isString(t)||typeof t==="number"?createLiteral(t):t}function asNodeArray(e){return e?createNodeArray(e):undefined}function asToken(e){return typeof e==="number"?createToken(e):e}function disposeEmitNodes(t){t=e.getSourceFileOfNode(e.getParseTreeNode(t));var r=t&&t.emitNode;var n=r&&r.annotatedNodes;if(n){for(var i=0,a=n;i<a.length;i++){var o=a[i];o.emitNode=undefined}}}e.disposeEmitNodes=disposeEmitNodes;function getOrCreateEmitNode(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(t.kind===279){return t.emitNode={annotatedNodes:[t]}}var r=e.getSourceFileOfNode(t);getOrCreateEmitNode(r).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}e.getOrCreateEmitNode=getOrCreateEmitNode;function setTextRange(e,t){if(t){e.pos=t.pos;e.end=t.end}return e}e.setTextRange=setTextRange;function setEmitFlags(e,t){getOrCreateEmitNode(e).flags=t;return e}e.setEmitFlags=setEmitFlags;function addEmitFlags(e,t){var r=getOrCreateEmitNode(e);r.flags=r.flags|t;return e}e.addEmitFlags=addEmitFlags;function getSourceMapRange(e){var t=e.emitNode;return t&&t.sourceMapRange||e}e.getSourceMapRange=getSourceMapRange;function setSourceMapRange(e,t){getOrCreateEmitNode(e).sourceMapRange=t;return e}e.setSourceMapRange=setSourceMapRange;var r;function createSourceMapSource(t,n,i){return new(r||(r=e.objectAllocator.getSourceMapSourceConstructor()))(t,n,i)}e.createSourceMapSource=createSourceMapSource;function getTokenSourceMapRange(e,t){var r=e.emitNode;var n=r&&r.tokenSourceMapRanges;return n&&n[t]}e.getTokenSourceMapRange=getTokenSourceMapRange;function setTokenSourceMapRange(e,t,r){var n=getOrCreateEmitNode(e);var i=n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]);i[t]=r;return e}e.setTokenSourceMapRange=setTokenSourceMapRange;function getStartsOnNewLine(e){var t=e.emitNode;return t&&t.startsOnNewLine}e.getStartsOnNewLine=getStartsOnNewLine;function setStartsOnNewLine(e,t){getOrCreateEmitNode(e).startsOnNewLine=t;return e}e.setStartsOnNewLine=setStartsOnNewLine;function getCommentRange(e){var t=e.emitNode;return t&&t.commentRange||e}e.getCommentRange=getCommentRange;function setCommentRange(e,t){getOrCreateEmitNode(e).commentRange=t;return e}e.setCommentRange=setCommentRange;function getSyntheticLeadingComments(e){var t=e.emitNode;return t&&t.leadingComments}e.getSyntheticLeadingComments=getSyntheticLeadingComments;function setSyntheticLeadingComments(e,t){getOrCreateEmitNode(e).leadingComments=t;return e}e.setSyntheticLeadingComments=setSyntheticLeadingComments;function addSyntheticLeadingComment(t,r,n,i){return setSyntheticLeadingComments(t,e.append(getSyntheticLeadingComments(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}e.addSyntheticLeadingComment=addSyntheticLeadingComment;function getSyntheticTrailingComments(e){var t=e.emitNode;return t&&t.trailingComments}e.getSyntheticTrailingComments=getSyntheticTrailingComments;function setSyntheticTrailingComments(e,t){getOrCreateEmitNode(e).trailingComments=t;return e}e.setSyntheticTrailingComments=setSyntheticTrailingComments;function addSyntheticTrailingComment(t,r,n,i){return setSyntheticTrailingComments(t,e.append(getSyntheticTrailingComments(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}e.addSyntheticTrailingComment=addSyntheticTrailingComment;function moveSyntheticComments(e,t){setSyntheticLeadingComments(e,getSyntheticLeadingComments(t));setSyntheticTrailingComments(e,getSyntheticTrailingComments(t));var r=getOrCreateEmitNode(t);r.leadingComments=undefined;r.trailingComments=undefined;return e}e.moveSyntheticComments=moveSyntheticComments;function getConstantValue(e){var t=e.emitNode;return t&&t.constantValue}e.getConstantValue=getConstantValue;function setConstantValue(e,t){var r=getOrCreateEmitNode(e);r.constantValue=t;return e}e.setConstantValue=setConstantValue;function addEmitHelper(t,r){var n=getOrCreateEmitNode(t);n.helpers=e.append(n.helpers,r);return t}e.addEmitHelper=addEmitHelper;function addEmitHelpers(t,r){if(e.some(r)){var n=getOrCreateEmitNode(t);for(var i=0,a=r;i<a.length;i++){var o=a[i];n.helpers=e.appendIfUnique(n.helpers,o)}}return t}e.addEmitHelpers=addEmitHelpers;function removeEmitHelper(t,r){var n=t.emitNode;if(n){var i=n.helpers;if(i){return e.orderedRemoveItem(i,r)}}return false}e.removeEmitHelper=removeEmitHelper;function getEmitHelpers(e){var t=e.emitNode;return t&&t.helpers}e.getEmitHelpers=getEmitHelpers;function moveEmitHelpers(t,r,n){var i=t.emitNode;var a=i&&i.helpers;if(!e.some(a))return;var o=getOrCreateEmitNode(r);var s=0;for(var c=0;c<a.length;c++){var u=a[c];if(n(u)){s++;o.helpers=e.appendIfUnique(o.helpers,u)}else if(s>0){a[c-s]=u}}if(s>0){a.length-=s}}e.moveEmitHelpers=moveEmitHelpers;function compareEmitHelpers(t,r){if(t===r)return 0;if(t.priority===r.priority)return 0;if(t.priority===undefined)return 1;if(r.priority===undefined)return-1;return e.compareValues(t.priority,r.priority)}e.compareEmitHelpers=compareEmitHelpers;function setOriginalNode(e,t){e.original=t;if(t){var r=t.emitNode;if(r)e.emitNode=mergeEmitNode(r,e.emitNode)}return e}e.setOriginalNode=setOriginalNode;function mergeEmitNode(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,f=t.startsOnNewLine;if(!r)r={};if(i)r.leadingComments=e.addRange(i.slice(),r.leadingComments);if(a)r.trailingComments=e.addRange(a.slice(),r.trailingComments);if(n)r.flags=n;if(o)r.commentRange=o;if(s)r.sourceMapRange=s;if(c)r.tokenSourceMapRanges=mergeTokenSourceMapRanges(c,r.tokenSourceMapRanges);if(u!==undefined)r.constantValue=u;if(l)r.helpers=e.addRange(r.helpers,l);if(f!==undefined)r.startsOnNewLine=f;return r}function mergeTokenSourceMapRanges(e,t){if(!t)t=[];for(var r in e){t[r]=e[r]}return t}})(s||(s={}));(function(e){e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){return undefined},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop};function createTypeCheck(t,r){return r==="undefined"?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))}e.createTypeCheck=createTypeCheck;function createMemberAccessForPropertyName(t,r,n){if(e.isComputedPropertyName(r)){return e.setTextRange(e.createElementAccess(t,r.expression),n)}else{var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);e.getOrCreateEmitNode(i).flags|=64;return i}}e.createMemberAccessForPropertyName=createMemberAccessForPropertyName;function createFunctionCall(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),undefined,[r].concat(n)),i)}e.createFunctionCall=createFunctionCall;function createFunctionApply(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),undefined,[r,n]),i)}e.createFunctionApply=createFunctionApply;function createArraySlice(t,r){var n=[];if(r!==undefined){n.push(typeof r==="number"?e.createLiteral(r):r)}return e.createCall(e.createPropertyAccess(t,"slice"),undefined,n)}e.createArraySlice=createArraySlice;function createArrayConcat(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),undefined,r)}e.createArrayConcat=createArrayConcat;function createMathPow(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),undefined,[t,r]),n)}e.createMathPow=createMathPow;function createReactNamespace(t,r){var n=e.createIdentifier(t||"React");n.flags&=~8;n.parent=e.getParseTreeNode(r);return n}function createJsxFactoryExpressionFromEntityName(t,r){if(e.isQualifiedName(t)){var n=createJsxFactoryExpressionFromEntityName(t.left,r);var i=e.createIdentifier(e.idText(t.right));i.escapedText=t.right.escapedText;return e.createPropertyAccess(n,i)}else{return createReactNamespace(e.idText(t),r)}}function createJsxFactoryExpression(t,r,n){return t?createJsxFactoryExpressionFromEntityName(t,n):e.createPropertyAccess(createReactNamespace(r,n),"createElement")}function createExpressionForJsxElement(t,r,n,i,a,o,s){var c=[n];if(i){c.push(i)}if(a&&a.length>0){if(!i){c.push(e.createNull())}if(a.length>1){for(var u=0,l=a;u<l.length;u++){var f=l[u];startOnNewLine(f);c.push(f)}}else{c.push(a[0])}}return e.setTextRange(e.createCall(createJsxFactoryExpression(t,r,o),undefined,c),s)}e.createExpressionForJsxElement=createExpressionForJsxElement;function createExpressionForJsxFragment(t,r,n,i,a){var o=e.createPropertyAccess(createReactNamespace(r,i),"Fragment");var s=[o];s.push(e.createNull());if(n&&n.length>0){if(n.length>1){for(var c=0,u=n;c<u.length;c++){var l=u[c];startOnNewLine(l);s.push(l)}}else{s.push(n[0])}}return e.setTextRange(e.createCall(createJsxFactoryExpression(t,r,i),undefined,s),a)}e.createExpressionForJsxFragment=createExpressionForJsxFragment;function getHelperName(t){return e.setEmitFlags(e.createIdentifier(t),4096|2)}e.getHelperName=getHelperName;var t={name:"typescript:values",scoped:false,text:'\n var __values = (this && this.__values) || function (o) {\n var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n if (m) return m.call(o);\n return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'};function createValuesHelper(r,n,i){r.requestEmitHelper(t);return e.setTextRange(e.createCall(getHelperName("__values"),undefined,[n]),i)}e.createValuesHelper=createValuesHelper;var r={name:"typescript:read",scoped:false,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 };'};function createReadHelper(t,n,i,a){t.requestEmitHelper(r);return e.setTextRange(e.createCall(getHelperName("__read"),undefined,i!==undefined?[n,e.createLiteral(i)]:[n]),a)}e.createReadHelper=createReadHelper;var n={name:"typescript:spread",scoped:false,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};function createSpreadHelper(t,i,a){t.requestEmitHelper(r);t.requestEmitHelper(n);return e.setTextRange(e.createCall(getHelperName("__spread"),undefined,i),a)}e.createSpreadHelper=createSpreadHelper;function createForOfBindingStatement(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations);var i=e.updateVariableDeclaration(n,n.name,undefined,r);return e.setTextRange(e.createVariableStatement(undefined,e.updateVariableDeclarationList(t,[i])),t)}else{var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)}}e.createForOfBindingStatement=createForOfBindingStatement;function insertLeadingStatement(t,r){if(e.isBlock(t)){return e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements))}else{return e.createBlock(e.createNodeArray([t,r]),true)}}e.insertLeadingStatement=insertLeadingStatement;function restoreEnclosingLabel(t,r,n){if(!r){return t}var i=e.updateLabel(r,r.label,r.statement.kind===233?restoreEnclosingLabel(t,r.statement):t);if(n){n(r)}return i}e.restoreEnclosingLabel=restoreEnclosingLabel;function shouldBeCapturedInTempVariable(t,r){var n=e.skipParentheses(t);switch(n.kind){case 72:return r;case 100:case 8:case 9:case 10:return false;case 187:var i=n.elements;if(i.length===0){return false}return true;case 188:return n.properties.length>0;default:return true}}function createCallBinding(t,r,n,i){if(i===void 0){i=false}var a=skipOuterExpressions(t,7);var o;var s;if(e.isSuperProperty(a)){o=e.createThis();s=a}else if(a.kind===98){o=e.createThis();s=n<2?e.setTextRange(e.createIdentifier("_super"),a):a}else if(e.getEmitFlags(a)&4096){o=e.createVoidZero();s=parenthesizeForAccess(a)}else{switch(a.kind){case 189:{if(shouldBeCapturedInTempVariable(a.expression,i)){o=e.createTempVariable(r);s=e.createPropertyAccess(e.setTextRange(e.createAssignment(o,a.expression),a.expression),a.name);e.setTextRange(s,a)}else{o=a.expression;s=a}break}case 190:{if(shouldBeCapturedInTempVariable(a.expression,i)){o=e.createTempVariable(r);s=e.createElementAccess(e.setTextRange(e.createAssignment(o,a.expression),a.expression),a.argumentExpression);e.setTextRange(s,a)}else{o=a.expression;s=a}break}default:{o=e.createVoidZero();s=parenthesizeForAccess(t);break}}}return{target:s,thisArg:o}}e.createCallBinding=createCallBinding;function inlineExpressions(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}e.inlineExpressions=inlineExpressions;function createExpressionFromEntityName(t){if(e.isQualifiedName(t)){var r=createExpressionFromEntityName(t.left);var n=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,n),t)}else{return e.getMutableClone(t)}}e.createExpressionFromEntityName=createExpressionFromEntityName;function createExpressionForPropertyName(t){if(e.isIdentifier(t)){return e.createLiteral(t)}else if(e.isComputedPropertyName(t)){return e.getMutableClone(t.expression)}else{return e.getMutableClone(t)}}e.createExpressionForPropertyName=createExpressionForPropertyName;function createExpressionForObjectLiteralElementLike(e,t,r){switch(t.kind){case 158:case 159:return createExpressionForAccessorDeclaration(e.properties,t,r,!!e.multiLine);case 275:return createExpressionForPropertyAssignment(t,r);case 276:return createExpressionForShorthandPropertyAssignment(t,r);case 156:return createExpressionForMethodDeclaration(t,r)}}e.createExpressionForObjectLiteralElementLike=createExpressionForObjectLiteralElementLike;function createExpressionForAccessorDeclaration(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,undefined,undefined,undefined,s.parameters,undefined,s.body);e.setTextRange(l,s);e.setOriginalNode(l,s);var f=e.createPropertyAssignment("get",l);u.push(f)}if(c){var d=e.createFunctionExpression(c.modifiers,undefined,undefined,undefined,c.parameters,undefined,c.body);e.setTextRange(d,c);e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p)}u.push(e.createPropertyAssignment("enumerable",e.createTrue()));u.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),undefined,[n,createExpressionForPropertyName(r.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(g)}return undefined}function createExpressionForPropertyAssignment(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(createMemberAccessForPropertyName(r,t.name,t.name),t.initializer),t),t))}function createExpressionForShorthandPropertyAssignment(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(createMemberAccessForPropertyName(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function createExpressionForMethodDeclaration(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(createMemberAccessForPropertyName(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,undefined,undefined,t.parameters,undefined,t.body),t),t)),t),t))}function getInternalName(e,t,r){return getName(e,t,r,16384|32768)}e.getInternalName=getInternalName;function isInternalName(t){return(e.getEmitFlags(t)&32768)!==0}e.isInternalName=isInternalName;function getLocalName(e,t,r){return getName(e,t,r,16384)}e.getLocalName=getLocalName;function isLocalName(t){return(e.getEmitFlags(t)&16384)!==0}e.isLocalName=isLocalName;function getExportName(e,t,r){return getName(e,t,r,8192)}e.getExportName=getExportName;function isExportName(t){return(e.getEmitFlags(t)&8192)!==0}e.isExportName=isExportName;function getDeclarationName(e,t,r){return getName(e,t,r)}e.getDeclarationName=getDeclarationName;function getName(t,r,n,i){if(i===void 0){i=0}var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);i|=e.getEmitFlags(a);if(!n)i|=48;if(!r)i|=1536;if(i)e.setEmitFlags(o,i);return o}return e.getGeneratedNameForNode(t)}function getExternalModuleOrNamespaceExportName(t,r,n,i){if(t&&e.hasModifier(r,1)){return getNamespaceMemberName(t,getName(r),n,i)}return getExportName(r,n,i)}e.getExternalModuleOrNamespaceExportName=getExternalModuleOrNamespaceExportName;function getNamespaceMemberName(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;if(!i)o|=48;if(!n)o|=1536;if(o)e.setEmitFlags(a,o);return a}e.getNamespaceMemberName=getNamespaceMemberName;function convertToFunctionBody(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)}e.convertToFunctionBody=convertToFunctionBody;function convertFunctionDeclarationToExpression(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);e.setOriginalNode(r,t);e.setTextRange(r,t);if(e.getStartsOnNewLine(t)){e.setStartsOnNewLine(r,true)}e.aggregateTransformFlags(r);return r}e.convertFunctionDeclarationToExpression=convertFunctionDeclarationToExpression;function isUseStrictPrologue(t){return e.isStringLiteral(t.expression)&&t.expression.text==="use strict"}function addPrologue(e,t,r,n){var i=addStandardPrologue(e,t,r);return addCustomPrologue(e,t,i,n)}e.addPrologue=addPrologue;function addStandardPrologue(t,r,n){e.Debug.assert(t.length===0,"Prologue directives should be at the first statement in the target statements array");var i=false;var a=0;var o=r.length;while(a<o){var s=r[a];if(e.isPrologueDirective(s)){if(isUseStrictPrologue(s)){i=true}t.push(s)}else{break}a++}if(n&&!i){t.push(startOnNewLine(e.createStatement(e.createLiteral("use strict"))))}return a}e.addStandardPrologue=addStandardPrologue;function addCustomPrologue(t,r,n,i){var a=r.length;while(n!==undefined&&n<a){var o=r[n];if(e.getEmitFlags(o)&1048576){e.append(t,i?e.visitNode(o,i,e.isStatement):o)}else{break}n++}return n}e.addCustomPrologue=addCustomPrologue;function findUseStrictPrologue(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e.isPrologueDirective(i)){if(isUseStrictPrologue(i)){return i}}else{break}}return undefined}e.findUseStrictPrologue=findUseStrictPrologue;function startsWithUseStrict(t){var r=e.firstOrUndefined(t);return r!==undefined&&e.isPrologueDirective(r)&&isUseStrictPrologue(r)}e.startsWithUseStrict=startsWithUseStrict;function ensureUseStrict(t){var r=findUseStrictPrologue(t);if(!r){return e.setTextRange(e.createNodeArray([startOnNewLine(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)}return t}e.ensureUseStrict=ensureUseStrict;function parenthesizeBinaryOperand(t,r,n,i){var a=e.skipPartiallyEmittedExpressions(r);if(a.kind===195){return r}return binaryOperandNeedsParentheses(t,r,n,i)?e.createParen(r):r}e.parenthesizeBinaryOperand=parenthesizeBinaryOperand;function binaryOperandNeedsParentheses(t,r,n,i){var a=e.getOperatorPrecedence(204,t);var o=e.getOperatorAssociativity(204,t);var s=e.skipPartiallyEmittedExpressions(r);if(!n&&r.kind===197&&a>4){return true}var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:if(!n&&o===1&&r.kind===207){return false}return true;case 1:return false;case 0:if(n){return o===1}else{if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(operatorHasAssociativeProperty(t)){return false}if(t===38){var u=i?getLiteralKindOfBinaryPlusOperand(i):0;if(e.isLiteralKind(u)&&u===getLiteralKindOfBinaryPlusOperand(s)){return false}}}var l=e.getExpressionAssociativity(s);return l===0}}}function operatorHasAssociativeProperty(e){return e===40||e===50||e===49||e===51}function getLiteralKindOfBinaryPlusOperand(t){t=e.skipPartiallyEmittedExpressions(t);if(e.isLiteralKind(t.kind)){return t.kind}if(t.kind===204&&t.operatorToken.kind===38){if(t.cachedLiteralKind!==undefined){return t.cachedLiteralKind}var r=getLiteralKindOfBinaryPlusOperand(t.left);var n=e.isLiteralKind(r)&&r===getLiteralKindOfBinaryPlusOperand(t.right)?r:0;t.cachedLiteralKind=n;return n}return 0}function parenthesizeForConditionalHead(t){var r=e.getOperatorPrecedence(205,56);var n=e.skipPartiallyEmittedExpressions(t);var i=e.getExpressionPrecedence(n);if(e.compareValues(i,r)===-1){return e.createParen(t)}return t}e.parenthesizeForConditionalHead=parenthesizeForConditionalHead;function parenthesizeSubexpressionOfConditionalExpression(t){var r=e.skipPartiallyEmittedExpressions(t);return isCommaSequence(r)?e.createParen(t):t}e.parenthesizeSubexpressionOfConditionalExpression=parenthesizeSubexpressionOfConditionalExpression;function parenthesizeDefaultExpression(t){var r=e.skipPartiallyEmittedExpressions(t);var n=isCommaSequence(r);if(!n){switch(getLeftmostExpression(r,false).kind){case 209:case 196:n=true}}return n?e.createParen(t):t}e.parenthesizeDefaultExpression=parenthesizeDefaultExpression;function parenthesizeForNew(t){var r=getLeftmostExpression(t,true);switch(r.kind){case 191:return e.createParen(t);case 192:return!r.arguments?e.createParen(t):t}return parenthesizeForAccess(t)}e.parenthesizeForNew=parenthesizeForNew;function parenthesizeForAccess(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isLeftHandSideExpression(r)&&(r.kind!==192||r.arguments)){return t}return e.setTextRange(e.createParen(t),t)}e.parenthesizeForAccess=parenthesizeForAccess;function parenthesizePostfixOperand(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)}e.parenthesizePostfixOperand=parenthesizePostfixOperand;function parenthesizePrefixOperand(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)}e.parenthesizePrefixOperand=parenthesizePrefixOperand;function parenthesizeListElements(t){var r;for(var n=0;n<t.length;n++){var i=parenthesizeExpressionForList(t[n]);if(r!==undefined||i!==t[n]){if(r===undefined){r=t.slice(0,n)}r.push(i)}}if(r!==undefined){return e.setTextRange(e.createNodeArray(r,t.hasTrailingComma),t)}return t}e.parenthesizeListElements=parenthesizeListElements;function parenthesizeExpressionForList(t){var r=e.skipPartiallyEmittedExpressions(t);var n=e.getExpressionPrecedence(r);var i=e.getOperatorPrecedence(204,27);return n>i?t:e.setTextRange(e.createParen(t),t)}e.parenthesizeExpressionForList=parenthesizeExpressionForList;function parenthesizeExpressionForExpressionStatement(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var n=r.expression;var i=e.skipPartiallyEmittedExpressions(n).kind;if(i===196||i===197){var a=e.getMutableClone(r);a.expression=e.setTextRange(e.createParen(n),n);return recreateOuterExpressions(t,a,4)}}var o=getLeftmostExpression(r,false).kind;if(o===188||o===196){return e.setTextRange(e.createParen(t),t)}return t}e.parenthesizeExpressionForExpressionStatement=parenthesizeExpressionForExpressionStatement;function parenthesizeConditionalTypeMember(t){return t.kind===175?e.createParenthesizedType(t):t}e.parenthesizeConditionalTypeMember=parenthesizeConditionalTypeMember;function parenthesizeElementTypeMember(t){switch(t.kind){case 173:case 174:case 165:case 166:return e.createParenthesizedType(t)}return parenthesizeConditionalTypeMember(t)}e.parenthesizeElementTypeMember=parenthesizeElementTypeMember;function parenthesizeArrayTypeMember(t){switch(t.kind){case 167:case 179:case 176:return e.createParenthesizedType(t)}return parenthesizeElementTypeMember(t)}e.parenthesizeArrayTypeMember=parenthesizeArrayTypeMember;function parenthesizeElementTypeMembers(t){return e.createNodeArray(e.sameMap(t,parenthesizeElementTypeMember))}e.parenthesizeElementTypeMembers=parenthesizeElementTypeMembers;function parenthesizeTypeParameters(t){if(e.some(t)){var r=[];for(var n=0;n<t.length;++n){var i=t[n];r.push(n===0&&e.isFunctionOrConstructorTypeNode(i)&&i.typeParameters?e.createParenthesizedType(i):i)}return e.createNodeArray(r)}}e.parenthesizeTypeParameters=parenthesizeTypeParameters;function getLeftmostExpression(e,t){while(true){switch(e.kind){case 203:e=e.operand;continue;case 204:e=e.left;continue;case 205:e=e.condition;continue;case 193:e=e.tag;continue;case 191:if(t){return e}case 212:case 190:case 189:case 213:case 308:e=e.expression;continue}return e}}function parenthesizeConciseBody(t){if(!e.isBlock(t)&&(isCommaSequence(t)||getLeftmostExpression(t,false).kind===188)){return e.setTextRange(e.createParen(t),t)}return t}e.parenthesizeConciseBody=parenthesizeConciseBody;function isCommaSequence(e){return e.kind===204&&e.operatorToken.kind===27||e.kind===309}e.isCommaSequence=isCommaSequence;var i;(function(e){e[e["Parentheses"]=1]="Parentheses";e[e["Assertions"]=2]="Assertions";e[e["PartiallyEmittedExpressions"]=4]="PartiallyEmittedExpressions";e[e["All"]=7]="All"})(i=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));function isOuterExpression(e,t){if(t===void 0){t=7}switch(e.kind){case 195:return(t&1)!==0;case 194:case 212:case 213:return(t&2)!==0;case 308:return(t&4)!==0}return false}e.isOuterExpression=isOuterExpression;function skipOuterExpressions(t,r){if(r===void 0){r=7}var n;do{n=t;if(r&1){t=e.skipParentheses(t)}if(r&2){t=skipAssertions(t)}if(r&4){t=e.skipPartiallyEmittedExpressions(t)}}while(n!==t);return t}e.skipOuterExpressions=skipOuterExpressions;function skipAssertions(t){while(e.isAssertionExpression(t)||t.kind===213){t=t.expression}return t}e.skipAssertions=skipAssertions;function updateOuterExpression(t,r){switch(t.kind){case 195:return e.updateParen(t,r);case 194:return e.updateTypeAssertion(t,t.type,r);case 212:return e.updateAsExpression(t,r,t.type);case 213:return e.updateNonNullExpression(t,r);case 308:return e.updatePartiallyEmittedExpression(t,r)}}function isIgnorableParen(t){return t.kind===195&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}function recreateOuterExpressions(e,t,r){if(r===void 0){r=7}if(e&&isOuterExpression(e,r)&&!isIgnorableParen(e)){return updateOuterExpression(e,recreateOuterExpressions(e.expression,t))}return t}e.recreateOuterExpressions=recreateOuterExpressions;function startOnNewLine(t){return e.setStartsOnNewLine(t,true)}e.startOnNewLine=startOnNewLine;function getExternalHelpersModuleName(t){var r=e.getOriginalNode(t,e.isSourceFile);var n=r&&r.emitNode;return n&&n.externalHelpersModuleName}e.getExternalHelpersModuleName=getExternalHelpersModuleName;function getOrCreateExternalHelpersModuleNameIfNeeded(t,r,n,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var a=getExternalHelpersModuleName(t);if(a){return a}var o=e.getEmitModuleKind(r);var s=(n||r.esModuleInterop&&i)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var c=e.getEmitHelpers(t);if(c){for(var u=0,l=c;u<l.length;u++){var f=l[u];if(!f.scoped){s=true;break}}}}if(s){var d=e.getOriginalNode(t,e.isSourceFile);var p=e.getOrCreateEmitNode(d);return p.externalHelpersModuleName||(p.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=getOrCreateExternalHelpersModuleNameIfNeeded;function getLocalNameForExternalImport(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var i=n.name;return e.isGeneratedIdentifier(i)?i:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,i)||e.idText(i))}if(t.kind===249&&t.importClause){return e.getGeneratedNameForNode(t)}if(t.kind===255&&t.moduleSpecifier){return e.getGeneratedNameForNode(t)}return undefined}e.getLocalNameForExternalImport=getLocalNameForExternalImport;function getExternalModuleNameLiteral(t,r,n,i,a){var o=e.getExternalModuleName(t);if(o.kind===10){return tryGetModuleNameFromDeclaration(t,n,i,a)||tryRenameExternalModule(o,r)||e.getSynthesizedClone(o)}return undefined}e.getExternalModuleNameLiteral=getExternalModuleNameLiteral;function tryRenameExternalModule(t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createLiteral(n)}function tryGetModuleNameFromFile(t,r,n){if(!t){return undefined}if(t.moduleName){return e.createLiteral(t.moduleName)}if(!t.isDeclarationFile&&(n.out||n.outFile)){return e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}return undefined}e.tryGetModuleNameFromFile=tryGetModuleNameFromFile;function tryGetModuleNameFromDeclaration(e,t,r,n){return tryGetModuleNameFromFile(r.getExternalModuleFileFromDeclaration(e),t,n)}function getInitializerOfBindingOrAssignmentElement(t){if(e.isDeclarationBindingElement(t)){return t.initializer}if(e.isPropertyAssignment(t)){var r=t.initializer;return e.isAssignmentExpression(r,true)?r.right:undefined}if(e.isShorthandPropertyAssignment(t)){return t.objectAssignmentInitializer}if(e.isAssignmentExpression(t,true)){return t.right}if(e.isSpreadElement(t)){return getInitializerOfBindingOrAssignmentElement(t.expression)}}e.getInitializerOfBindingOrAssignmentElement=getInitializerOfBindingOrAssignmentElement;function getTargetOfBindingOrAssignmentElement(t){if(e.isDeclarationBindingElement(t)){return t.name}if(e.isObjectLiteralElementLike(t)){switch(t.kind){case 275:return getTargetOfBindingOrAssignmentElement(t.initializer);case 276:return t.name;case 277:return getTargetOfBindingOrAssignmentElement(t.expression)}return undefined}if(e.isAssignmentExpression(t,true)){return getTargetOfBindingOrAssignmentElement(t.left)}if(e.isSpreadElement(t)){return getTargetOfBindingOrAssignmentElement(t.expression)}return t}e.getTargetOfBindingOrAssignmentElement=getTargetOfBindingOrAssignmentElement;function getRestIndicatorOfBindingOrAssignmentElement(e){switch(e.kind){case 151:case 186:return e.dotDotDotToken;case 208:case 277:return e}return undefined}e.getRestIndicatorOfBindingOrAssignmentElement=getRestIndicatorOfBindingOrAssignmentElement;function getPropertyNameOfBindingOrAssignmentElement(t){switch(t.kind){case 186:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 275:if(t.name){var r=t.name;return e.isComputedPropertyName(r)&&isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 277:return t.name}var n=getTargetOfBindingOrAssignmentElement(t);if(n&&e.isPropertyName(n)){return e.isComputedPropertyName(n)&&isStringOrNumericLiteral(n.expression)?n.expression:n}e.Debug.fail("Invalid property name for binding element.")}e.getPropertyNameOfBindingOrAssignmentElement=getPropertyNameOfBindingOrAssignmentElement;function isStringOrNumericLiteral(e){var t=e.kind;return t===10||t===8}function getElementsOfBindingOrAssignmentPattern(e){switch(e.kind){case 184:case 185:case 187:return e.elements;case 188:return e.properties}}e.getElementsOfBindingOrAssignmentPattern=getElementsOfBindingOrAssignmentPattern;function convertToArrayAssignmentElement(t){if(e.isBindingElement(t)){if(t.dotDotDotToken){e.Debug.assertNode(t.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t)}var r=convertToAssignmentElementTarget(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}e.Debug.assertNode(t,e.isExpression);return t}e.convertToArrayAssignmentElement=convertToArrayAssignmentElement;function convertToObjectAssignmentElement(t){if(e.isBindingElement(t)){if(t.dotDotDotToken){e.Debug.assertNode(t.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t)}if(t.propertyName){var r=convertToAssignmentElementTarget(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}e.Debug.assertNode(t.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}e.Debug.assertNode(t,e.isObjectLiteralElementLike);return t}e.convertToObjectAssignmentElement=convertToObjectAssignmentElement;function convertToAssignmentPattern(e){switch(e.kind){case 185:case 187:return convertToArrayAssignmentPattern(e);case 184:case 188:return convertToObjectAssignmentPattern(e)}}e.convertToAssignmentPattern=convertToAssignmentPattern;function convertToObjectAssignmentPattern(t){if(e.isObjectBindingPattern(t)){return e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,convertToObjectAssignmentElement)),t),t)}e.Debug.assertNode(t,e.isObjectLiteralExpression);return t}e.convertToObjectAssignmentPattern=convertToObjectAssignmentPattern;function convertToArrayAssignmentPattern(t){if(e.isArrayBindingPattern(t)){return e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,convertToArrayAssignmentElement)),t),t)}e.Debug.assertNode(t,e.isArrayLiteralExpression);return t}e.convertToArrayAssignmentPattern=convertToArrayAssignmentPattern;function convertToAssignmentElementTarget(t){if(e.isBindingPattern(t)){return convertToAssignmentPattern(t)}e.Debug.assertNode(t,e.isExpression);return t}e.convertToAssignmentElementTarget=convertToAssignmentElementTarget})(s||(s={}));var s;(function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function visitNode(t,r,n,i){if(t===undefined||r===undefined){return t}e.aggregateTransformFlags(t);var a=r(t);if(a===t){return t}var o;if(a===undefined){return undefined}else if(e.isArray(a)){o=(i||extractSingleNode)(a)}else{o=a}e.Debug.assertNode(o,n);e.aggregateTransformFlags(o);return o}e.visitNode=visitNode;function visitNodes(t,r,n,i,a){if(t===undefined||r===undefined){return t}var o;var s=t.length;if(i===undefined||i<0){i=0}if(a===undefined||a>s-i){a=s-i}if(i>0||a<s){o=e.createNodeArray([],t.hasTrailingComma&&i+a===s)}for(var c=0;c<a;c++){var u=t[c+i];e.aggregateTransformFlags(u);var l=u!==undefined?r(u):undefined;if(o!==undefined||l===undefined||l!==u){if(o===undefined){o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma);e.setTextRange(o,t)}if(l){if(e.isArray(l)){for(var f=0,d=l;f<d.length;f++){var p=d[f];e.Debug.assertNode(p,n);e.aggregateTransformFlags(p);o.push(p)}}else{e.Debug.assertNode(l,n);e.aggregateTransformFlags(l);o.push(l)}}}}return o||t}e.visitNodes=visitNodes;function visitLexicalEnvironment(t,r,n,i,a){n.startLexicalEnvironment();t=visitNodes(t,r,e.isStatement,i);if(a&&!e.startsWithUseStrict(t)){t=e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createLiteral("use strict"))].concat(t)),t)}var o=n.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(o,t)),t)}e.visitLexicalEnvironment=visitLexicalEnvironment;function visitParameterList(t,r,n,i){if(i===void 0){i=visitNodes}n.startLexicalEnvironment();var a=i(t,r,e.isParameterDeclaration);n.suspendLexicalEnvironment();return a}e.visitParameterList=visitParameterList;function visitFunctionBody(t,r,n){n.resumeLexicalEnvironment();var i=visitNode(t,r,e.isConciseBody);var a=n.endLexicalEnvironment();if(e.some(a)){var o=e.convertToFunctionBody(i);var s=e.mergeLexicalEnvironment(o.statements,a);return e.updateBlock(o,s)}return i}e.visitFunctionBody=visitFunctionBody;function visitEachChild(r,n,i,a,o){if(a===void 0){a=visitNodes}if(r===undefined){return undefined}var s=r.kind;if(s>0&&s<=147||s===178){return r}switch(s){case 72:return e.updateIdentifier(r,a(r.typeArguments,n,t));case 148:return e.updateQualifiedName(r,visitNode(r.left,n,e.isEntityName),visitNode(r.right,n,e.isIdentifier));case 149:return e.updateComputedPropertyName(r,visitNode(r.expression,n,e.isExpression));case 150:return e.updateTypeParameterDeclaration(r,visitNode(r.name,n,e.isIdentifier),visitNode(r.constraint,n,e.isTypeNode),visitNode(r.default,n,e.isTypeNode));case 151:return e.updateParameter(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.dotDotDotToken,o,e.isToken),visitNode(r.name,n,e.isBindingName),visitNode(r.questionToken,o,e.isToken),visitNode(r.type,n,e.isTypeNode),visitNode(r.initializer,n,e.isExpression));case 152:return e.updateDecorator(r,visitNode(r.expression,n,e.isExpression));case 153:return e.updatePropertySignature(r,a(r.modifiers,n,e.isToken),visitNode(r.name,n,e.isPropertyName),visitNode(r.questionToken,o,e.isToken),visitNode(r.type,n,e.isTypeNode),visitNode(r.initializer,n,e.isExpression));case 154:return e.updateProperty(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isPropertyName),visitNode(r.questionToken,o,e.isToken),visitNode(r.type,n,e.isTypeNode),visitNode(r.initializer,n,e.isExpression));case 155:return e.updateMethodSignature(r,a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode),visitNode(r.name,n,e.isPropertyName),visitNode(r.questionToken,o,e.isToken));case 156:return e.updateMethod(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.asteriskToken,o,e.isToken),visitNode(r.name,n,e.isPropertyName),visitNode(r.questionToken,o,e.isToken),a(r.typeParameters,n,e.isTypeParameterDeclaration),visitParameterList(r.parameters,n,i,a),visitNode(r.type,n,e.isTypeNode),visitFunctionBody(r.body,n,i));case 157:return e.updateConstructor(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitParameterList(r.parameters,n,i,a),visitFunctionBody(r.body,n,i));case 158:return e.updateGetAccessor(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isPropertyName),visitParameterList(r.parameters,n,i,a),visitNode(r.type,n,e.isTypeNode),visitFunctionBody(r.body,n,i));case 159:return e.updateSetAccessor(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isPropertyName),visitParameterList(r.parameters,n,i,a),visitFunctionBody(r.body,n,i));case 160:return e.updateCallSignature(r,a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 161:return e.updateConstructSignature(r,a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 162:return e.updateIndexSignature(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 163:return e.updateTypePredicateNode(r,visitNode(r.parameterName,n),visitNode(r.type,n,e.isTypeNode));case 164:return e.updateTypeReferenceNode(r,visitNode(r.typeName,n,e.isEntityName),a(r.typeArguments,n,e.isTypeNode));case 165:return e.updateFunctionTypeNode(r,a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 166:return e.updateConstructorTypeNode(r,a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.parameters,n,e.isParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 167:return e.updateTypeQueryNode(r,visitNode(r.exprName,n,e.isEntityName));case 168:return e.updateTypeLiteralNode(r,a(r.members,n,e.isTypeElement));case 169:return e.updateArrayTypeNode(r,visitNode(r.elementType,n,e.isTypeNode));case 170:return e.updateTupleTypeNode(r,a(r.elementTypes,n,e.isTypeNode));case 171:return e.updateOptionalTypeNode(r,visitNode(r.type,n,e.isTypeNode));case 172:return e.updateRestTypeNode(r,visitNode(r.type,n,e.isTypeNode));case 173:return e.updateUnionTypeNode(r,a(r.types,n,e.isTypeNode));case 174:return e.updateIntersectionTypeNode(r,a(r.types,n,e.isTypeNode));case 175:return e.updateConditionalTypeNode(r,visitNode(r.checkType,n,e.isTypeNode),visitNode(r.extendsType,n,e.isTypeNode),visitNode(r.trueType,n,e.isTypeNode),visitNode(r.falseType,n,e.isTypeNode));case 176:return e.updateInferTypeNode(r,visitNode(r.typeParameter,n,e.isTypeParameterDeclaration));case 183:return e.updateImportTypeNode(r,visitNode(r.argument,n,e.isTypeNode),visitNode(r.qualifier,n,e.isEntityName),visitNodes(r.typeArguments,n,e.isTypeNode),r.isTypeOf);case 177:return e.updateParenthesizedType(r,visitNode(r.type,n,e.isTypeNode));case 179:return e.updateTypeOperatorNode(r,visitNode(r.type,n,e.isTypeNode));case 180:return e.updateIndexedAccessTypeNode(r,visitNode(r.objectType,n,e.isTypeNode),visitNode(r.indexType,n,e.isTypeNode));case 181:return e.updateMappedTypeNode(r,visitNode(r.readonlyToken,o,e.isToken),visitNode(r.typeParameter,n,e.isTypeParameterDeclaration),visitNode(r.questionToken,o,e.isToken),visitNode(r.type,n,e.isTypeNode));case 182:return e.updateLiteralTypeNode(r,visitNode(r.literal,n,e.isExpression));case 184:return e.updateObjectBindingPattern(r,a(r.elements,n,e.isBindingElement));case 185:return e.updateArrayBindingPattern(r,a(r.elements,n,e.isArrayBindingElement));case 186:return e.updateBindingElement(r,visitNode(r.dotDotDotToken,o,e.isToken),visitNode(r.propertyName,n,e.isPropertyName),visitNode(r.name,n,e.isBindingName),visitNode(r.initializer,n,e.isExpression));case 187:return e.updateArrayLiteral(r,a(r.elements,n,e.isExpression));case 188:return e.updateObjectLiteral(r,a(r.properties,n,e.isObjectLiteralElementLike));case 189:return e.updatePropertyAccess(r,visitNode(r.expression,n,e.isExpression),visitNode(r.name,n,e.isIdentifier));case 190:return e.updateElementAccess(r,visitNode(r.expression,n,e.isExpression),visitNode(r.argumentExpression,n,e.isExpression));case 191:return e.updateCall(r,visitNode(r.expression,n,e.isExpression),a(r.typeArguments,n,e.isTypeNode),a(r.arguments,n,e.isExpression));case 192:return e.updateNew(r,visitNode(r.expression,n,e.isExpression),a(r.typeArguments,n,e.isTypeNode),a(r.arguments,n,e.isExpression));case 193:return e.updateTaggedTemplate(r,visitNode(r.tag,n,e.isExpression),visitNodes(r.typeArguments,n,e.isExpression),visitNode(r.template,n,e.isTemplateLiteral));case 194:return e.updateTypeAssertion(r,visitNode(r.type,n,e.isTypeNode),visitNode(r.expression,n,e.isExpression));case 195:return e.updateParen(r,visitNode(r.expression,n,e.isExpression));case 196:return e.updateFunctionExpression(r,a(r.modifiers,n,e.isModifier),visitNode(r.asteriskToken,o,e.isToken),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),visitParameterList(r.parameters,n,i,a),visitNode(r.type,n,e.isTypeNode),visitFunctionBody(r.body,n,i));case 197:return e.updateArrowFunction(r,a(r.modifiers,n,e.isModifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),visitParameterList(r.parameters,n,i,a),visitNode(r.type,n,e.isTypeNode),visitNode(r.equalsGreaterThanToken,n,e.isToken),visitFunctionBody(r.body,n,i));case 198:return e.updateDelete(r,visitNode(r.expression,n,e.isExpression));case 199:return e.updateTypeOf(r,visitNode(r.expression,n,e.isExpression));case 200:return e.updateVoid(r,visitNode(r.expression,n,e.isExpression));case 201:return e.updateAwait(r,visitNode(r.expression,n,e.isExpression));case 202:return e.updatePrefix(r,visitNode(r.operand,n,e.isExpression));case 203:return e.updatePostfix(r,visitNode(r.operand,n,e.isExpression));case 204:return e.updateBinary(r,visitNode(r.left,n,e.isExpression),visitNode(r.right,n,e.isExpression),visitNode(r.operatorToken,n,e.isToken));case 205:return e.updateConditional(r,visitNode(r.condition,n,e.isExpression),visitNode(r.questionToken,n,e.isToken),visitNode(r.whenTrue,n,e.isExpression),visitNode(r.colonToken,n,e.isToken),visitNode(r.whenFalse,n,e.isExpression));case 206:return e.updateTemplateExpression(r,visitNode(r.head,n,e.isTemplateHead),a(r.templateSpans,n,e.isTemplateSpan));case 207:return e.updateYield(r,visitNode(r.asteriskToken,o,e.isToken),visitNode(r.expression,n,e.isExpression));case 208:return e.updateSpread(r,visitNode(r.expression,n,e.isExpression));case 209:return e.updateClassExpression(r,a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.heritageClauses,n,e.isHeritageClause),a(r.members,n,e.isClassElement));case 211:return e.updateExpressionWithTypeArguments(r,a(r.typeArguments,n,e.isTypeNode),visitNode(r.expression,n,e.isExpression));case 212:return e.updateAsExpression(r,visitNode(r.expression,n,e.isExpression),visitNode(r.type,n,e.isTypeNode));case 213:return e.updateNonNullExpression(r,visitNode(r.expression,n,e.isExpression));case 214:return e.updateMetaProperty(r,visitNode(r.name,n,e.isIdentifier));case 216:return e.updateTemplateSpan(r,visitNode(r.expression,n,e.isExpression),visitNode(r.literal,n,e.isTemplateMiddleOrTemplateTail));case 218:return e.updateBlock(r,a(r.statements,n,e.isStatement));case 219:return e.updateVariableStatement(r,a(r.modifiers,n,e.isModifier),visitNode(r.declarationList,n,e.isVariableDeclarationList));case 221:return e.updateExpressionStatement(r,visitNode(r.expression,n,e.isExpression));case 222:return e.updateIf(r,visitNode(r.expression,n,e.isExpression),visitNode(r.thenStatement,n,e.isStatement,e.liftToBlock),visitNode(r.elseStatement,n,e.isStatement,e.liftToBlock));case 223:return e.updateDo(r,visitNode(r.statement,n,e.isStatement,e.liftToBlock),visitNode(r.expression,n,e.isExpression));case 224:return e.updateWhile(r,visitNode(r.expression,n,e.isExpression),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 225:return e.updateFor(r,visitNode(r.initializer,n,e.isForInitializer),visitNode(r.condition,n,e.isExpression),visitNode(r.incrementor,n,e.isExpression),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 226:return e.updateForIn(r,visitNode(r.initializer,n,e.isForInitializer),visitNode(r.expression,n,e.isExpression),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 227:return e.updateForOf(r,visitNode(r.awaitModifier,n,e.isToken),visitNode(r.initializer,n,e.isForInitializer),visitNode(r.expression,n,e.isExpression),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 228:return e.updateContinue(r,visitNode(r.label,n,e.isIdentifier));case 229:return e.updateBreak(r,visitNode(r.label,n,e.isIdentifier));case 230:return e.updateReturn(r,visitNode(r.expression,n,e.isExpression));case 231:return e.updateWith(r,visitNode(r.expression,n,e.isExpression),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 232:return e.updateSwitch(r,visitNode(r.expression,n,e.isExpression),visitNode(r.caseBlock,n,e.isCaseBlock));case 233:return e.updateLabel(r,visitNode(r.label,n,e.isIdentifier),visitNode(r.statement,n,e.isStatement,e.liftToBlock));case 234:return e.updateThrow(r,visitNode(r.expression,n,e.isExpression));case 235:return e.updateTry(r,visitNode(r.tryBlock,n,e.isBlock),visitNode(r.catchClause,n,e.isCatchClause),visitNode(r.finallyBlock,n,e.isBlock));case 237:return e.updateVariableDeclaration(r,visitNode(r.name,n,e.isBindingName),visitNode(r.type,n,e.isTypeNode),visitNode(r.initializer,n,e.isExpression));case 238:return e.updateVariableDeclarationList(r,a(r.declarations,n,e.isVariableDeclaration));case 239:return e.updateFunctionDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.asteriskToken,o,e.isToken),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),visitParameterList(r.parameters,n,i,a),visitNode(r.type,n,e.isTypeNode),visitFunctionBody(r.body,n,i));case 240:return e.updateClassDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.heritageClauses,n,e.isHeritageClause),a(r.members,n,e.isClassElement));case 241:return e.updateInterfaceDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),a(r.heritageClauses,n,e.isHeritageClause),a(r.members,n,e.isTypeElement));case 242:return e.updateTypeAliasDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),a(r.typeParameters,n,e.isTypeParameterDeclaration),visitNode(r.type,n,e.isTypeNode));case 243:return e.updateEnumDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),a(r.members,n,e.isEnumMember));case 244:return e.updateModuleDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),visitNode(r.body,n,e.isModuleBody));case 245:return e.updateModuleBlock(r,a(r.statements,n,e.isStatement));case 246:return e.updateCaseBlock(r,a(r.clauses,n,e.isCaseOrDefaultClause));case 247:return e.updateNamespaceExportDeclaration(r,visitNode(r.name,n,e.isIdentifier));case 248:return e.updateImportEqualsDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.name,n,e.isIdentifier),visitNode(r.moduleReference,n,e.isModuleReference));case 249:return e.updateImportDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.importClause,n,e.isImportClause),visitNode(r.moduleSpecifier,n,e.isExpression));case 250:return e.updateImportClause(r,visitNode(r.name,n,e.isIdentifier),visitNode(r.namedBindings,n,e.isNamedImportBindings));case 251:return e.updateNamespaceImport(r,visitNode(r.name,n,e.isIdentifier));case 252:return e.updateNamedImports(r,a(r.elements,n,e.isImportSpecifier));case 253:return e.updateImportSpecifier(r,visitNode(r.propertyName,n,e.isIdentifier),visitNode(r.name,n,e.isIdentifier));case 254:return e.updateExportAssignment(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.expression,n,e.isExpression));case 255:return e.updateExportDeclaration(r,a(r.decorators,n,e.isDecorator),a(r.modifiers,n,e.isModifier),visitNode(r.exportClause,n,e.isNamedExports),visitNode(r.moduleSpecifier,n,e.isExpression));case 256:return e.updateNamedExports(r,a(r.elements,n,e.isExportSpecifier));case 257:return e.updateExportSpecifier(r,visitNode(r.propertyName,n,e.isIdentifier),visitNode(r.name,n,e.isIdentifier));case 259:return e.updateExternalModuleReference(r,visitNode(r.expression,n,e.isExpression));case 260:return e.updateJsxElement(r,visitNode(r.openingElement,n,e.isJsxOpeningElement),a(r.children,n,e.isJsxChild),visitNode(r.closingElement,n,e.isJsxClosingElement));case 261:return e.updateJsxSelfClosingElement(r,visitNode(r.tagName,n,e.isJsxTagNameExpression),a(r.typeArguments,n,e.isTypeNode),visitNode(r.attributes,n,e.isJsxAttributes));case 262:return e.updateJsxOpeningElement(r,visitNode(r.tagName,n,e.isJsxTagNameExpression),a(r.typeArguments,n,e.isTypeNode),visitNode(r.attributes,n,e.isJsxAttributes));case 263:return e.updateJsxClosingElement(r,visitNode(r.tagName,n,e.isJsxTagNameExpression));case 264:return e.updateJsxFragment(r,visitNode(r.openingFragment,n,e.isJsxOpeningFragment),a(r.children,n,e.isJsxChild),visitNode(r.closingFragment,n,e.isJsxClosingFragment));case 267:return e.updateJsxAttribute(r,visitNode(r.name,n,e.isIdentifier),visitNode(r.initializer,n,e.isStringLiteralOrJsxExpression));case 268:return e.updateJsxAttributes(r,a(r.properties,n,e.isJsxAttributeLike));case 269:return e.updateJsxSpreadAttribute(r,visitNode(r.expression,n,e.isExpression));case 270:return e.updateJsxExpression(r,visitNode(r.expression,n,e.isExpression));case 271:return e.updateCaseClause(r,visitNode(r.expression,n,e.isExpression),a(r.statements,n,e.isStatement));case 272:return e.updateDefaultClause(r,a(r.statements,n,e.isStatement));case 273:return e.updateHeritageClause(r,a(r.types,n,e.isExpressionWithTypeArguments));case 274:return e.updateCatchClause(r,visitNode(r.variableDeclaration,n,e.isVariableDeclaration),visitNode(r.block,n,e.isBlock));case 275:return e.updatePropertyAssignment(r,visitNode(r.name,n,e.isPropertyName),visitNode(r.initializer,n,e.isExpression));case 276:return e.updateShorthandPropertyAssignment(r,visitNode(r.name,n,e.isIdentifier),visitNode(r.objectAssignmentInitializer,n,e.isExpression));case 277:return e.updateSpreadAssignment(r,visitNode(r.expression,n,e.isExpression));case 278:return e.updateEnumMember(r,visitNode(r.name,n,e.isPropertyName),visitNode(r.initializer,n,e.isExpression));case 279:return e.updateSourceFileNode(r,visitLexicalEnvironment(r.statements,n,i));case 308:return e.updatePartiallyEmittedExpression(r,visitNode(r.expression,n,e.isExpression));case 309:return e.updateCommaList(r,a(r.elements,n,e.isExpression));default:return r}}e.visitEachChild=visitEachChild;function extractSingleNode(t){e.Debug.assert(t.length<=1,"Too many nodes written to output.");return e.singleOrUndefined(t)}})(s||(s={}));(function(e){function reduceNode(e,t,r){return e?t(r,e):r}function reduceNodeArray(e,t,r){return e?t(r,e):r}function reduceEachChild(t,r,n,i){if(t===undefined){return r}var a=i?reduceNodeArray:e.reduceLeft;var o=i||n;var s=t.kind;if(s>0&&s<=147){return r}if(s>=163&&s<=182){return r}var c=r;switch(t.kind){case 217:case 220:case 210:case 236:case 307:break;case 148:c=reduceNode(t.left,n,c);c=reduceNode(t.right,n,c);break;case 149:c=reduceNode(t.expression,n,c);break;case 151:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=reduceNode(t.type,n,c);c=reduceNode(t.initializer,n,c);break;case 152:c=reduceNode(t.expression,n,c);break;case 153:c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=reduceNode(t.questionToken,n,c);c=reduceNode(t.type,n,c);c=reduceNode(t.initializer,n,c);break;case 154:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=reduceNode(t.type,n,c);c=reduceNode(t.initializer,n,c);break;case 156:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.typeParameters,o,c);c=a(t.parameters,o,c);c=reduceNode(t.type,n,c);c=reduceNode(t.body,n,c);break;case 157:c=a(t.modifiers,o,c);c=a(t.parameters,o,c);c=reduceNode(t.body,n,c);break;case 158:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.parameters,o,c);c=reduceNode(t.type,n,c);c=reduceNode(t.body,n,c);break;case 159:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.parameters,o,c);c=reduceNode(t.body,n,c);break;case 184:case 185:c=a(t.elements,o,c);break;case 186:c=reduceNode(t.propertyName,n,c);c=reduceNode(t.name,n,c);c=reduceNode(t.initializer,n,c);break;case 187:c=a(t.elements,o,c);break;case 188:c=a(t.properties,o,c);break;case 189:c=reduceNode(t.expression,n,c);c=reduceNode(t.name,n,c);break;case 190:c=reduceNode(t.expression,n,c);c=reduceNode(t.argumentExpression,n,c);break;case 191:c=reduceNode(t.expression,n,c);c=a(t.typeArguments,o,c);c=a(t.arguments,o,c);break;case 192:c=reduceNode(t.expression,n,c);c=a(t.typeArguments,o,c);c=a(t.arguments,o,c);break;case 193:c=reduceNode(t.tag,n,c);c=a(t.typeArguments,o,c);c=reduceNode(t.template,n,c);break;case 194:c=reduceNode(t.type,n,c);c=reduceNode(t.expression,n,c);break;case 196:c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.typeParameters,o,c);c=a(t.parameters,o,c);c=reduceNode(t.type,n,c);c=reduceNode(t.body,n,c);break;case 197:c=a(t.modifiers,o,c);c=a(t.typeParameters,o,c);c=a(t.parameters,o,c);c=reduceNode(t.type,n,c);c=reduceNode(t.body,n,c);break;case 195:case 198:case 199:case 200:case 201:case 207:case 208:case 213:c=reduceNode(t.expression,n,c);break;case 202:case 203:c=reduceNode(t.operand,n,c);break;case 204:c=reduceNode(t.left,n,c);c=reduceNode(t.right,n,c);break;case 205:c=reduceNode(t.condition,n,c);c=reduceNode(t.whenTrue,n,c);c=reduceNode(t.whenFalse,n,c);break;case 206:c=reduceNode(t.head,n,c);c=a(t.templateSpans,o,c);break;case 209:c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.typeParameters,o,c);c=a(t.heritageClauses,o,c);c=a(t.members,o,c);break;case 211:c=reduceNode(t.expression,n,c);c=a(t.typeArguments,o,c);break;case 212:c=reduceNode(t.expression,n,c);c=reduceNode(t.type,n,c);break;case 216:c=reduceNode(t.expression,n,c);c=reduceNode(t.literal,n,c);break;case 218:c=a(t.statements,o,c);break;case 219:c=a(t.modifiers,o,c);c=reduceNode(t.declarationList,n,c);break;case 221:c=reduceNode(t.expression,n,c);break;case 222:c=reduceNode(t.expression,n,c);c=reduceNode(t.thenStatement,n,c);c=reduceNode(t.elseStatement,n,c);break;case 223:c=reduceNode(t.statement,n,c);c=reduceNode(t.expression,n,c);break;case 224:case 231:c=reduceNode(t.expression,n,c);c=reduceNode(t.statement,n,c);break;case 225:c=reduceNode(t.initializer,n,c);c=reduceNode(t.condition,n,c);c=reduceNode(t.incrementor,n,c);c=reduceNode(t.statement,n,c);break;case 226:case 227:c=reduceNode(t.initializer,n,c);c=reduceNode(t.expression,n,c);c=reduceNode(t.statement,n,c);break;case 230:case 234:c=reduceNode(t.expression,n,c);break;case 232:c=reduceNode(t.expression,n,c);c=reduceNode(t.caseBlock,n,c);break;case 233:c=reduceNode(t.label,n,c);c=reduceNode(t.statement,n,c);break;case 235:c=reduceNode(t.tryBlock,n,c);c=reduceNode(t.catchClause,n,c);c=reduceNode(t.finallyBlock,n,c);break;case 237:c=reduceNode(t.name,n,c);c=reduceNode(t.type,n,c);c=reduceNode(t.initializer,n,c);break;case 238:c=a(t.declarations,o,c);break;case 239:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.typeParameters,o,c);c=a(t.parameters,o,c);c=reduceNode(t.type,n,c);c=reduceNode(t.body,n,c);break;case 240:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.typeParameters,o,c);c=a(t.heritageClauses,o,c);c=a(t.members,o,c);break;case 243:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=a(t.members,o,c);break;case 244:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=reduceNode(t.body,n,c);break;case 245:c=a(t.statements,o,c);break;case 246:c=a(t.clauses,o,c);break;case 248:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.name,n,c);c=reduceNode(t.moduleReference,n,c);break;case 249:c=a(t.decorators,o,c);c=a(t.modifiers,o,c);c=reduceNode(t.importClause,n,c);c=reduceNode(t.moduleSpecifier,n,c);break;case 250:c=reduceNode(t.name,n,c);c=reduceNode(t.namedBindings,n,c);break;case 251:c=reduceNode(t.name,n,c);break;case 252:case 256:c=a(t.elements,o,c);break;case 253:case 257:c=reduceNode(t.propertyName,n,c);c=reduceNode(t.name,n,c);break;case 254:c=e.reduceLeft(t.decorators,n,c);c=e.reduceLeft(t.modifiers,n,c);c=reduceNode(t.expression,n,c);break;case 255:c=e.reduceLeft(t.decorators,n,c);c=e.reduceLeft(t.modifiers,n,c);c=reduceNode(t.exportClause,n,c);c=reduceNode(t.moduleSpecifier,n,c);break;case 259:c=reduceNode(t.expression,n,c);break;case 260:c=reduceNode(t.openingElement,n,c);c=e.reduceLeft(t.children,n,c);c=reduceNode(t.closingElement,n,c);break;case 264:c=reduceNode(t.openingFragment,n,c);c=e.reduceLeft(t.children,n,c);c=reduceNode(t.closingFragment,n,c);break;case 261:case 262:c=reduceNode(t.tagName,n,c);c=a(t.typeArguments,n,c);c=reduceNode(t.attributes,n,c);break;case 268:c=a(t.properties,o,c);break;case 263:c=reduceNode(t.tagName,n,c);break;case 267:c=reduceNode(t.name,n,c);c=reduceNode(t.initializer,n,c);break;case 269:c=reduceNode(t.expression,n,c);break;case 270:c=reduceNode(t.expression,n,c);break;case 271:c=reduceNode(t.expression,n,c);case 272:c=a(t.statements,o,c);break;case 273:c=a(t.types,o,c);break;case 274:c=reduceNode(t.variableDeclaration,n,c);c=reduceNode(t.block,n,c);break;case 275:c=reduceNode(t.name,n,c);c=reduceNode(t.initializer,n,c);break;case 276:c=reduceNode(t.name,n,c);c=reduceNode(t.objectAssignmentInitializer,n,c);break;case 277:c=reduceNode(t.expression,n,c);break;case 278:c=reduceNode(t.name,n,c);c=reduceNode(t.initializer,n,c);break;case 279:c=a(t.statements,o,c);break;case 308:c=reduceNode(t.expression,n,c);break;case 309:c=a(t.elements,o,c);break;default:break}return c}e.reduceEachChild=reduceEachChild;function mergeLexicalEnvironment(t,r){if(!e.some(r)){return t}return e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.addStatementsAfterPrologue(t.slice(),r)),t):e.addStatementsAfterPrologue(t,r)}e.mergeLexicalEnvironment=mergeLexicalEnvironment;function liftToBlock(r){t.assert(e.every(r,e.isStatement),"Cannot lift nodes to a Block.");return e.singleOrUndefined(r)||e.createBlock(r)}e.liftToBlock=liftToBlock;function aggregateTransformFlags(e){aggregateTransformFlagsForNode(e);return e}e.aggregateTransformFlags=aggregateTransformFlags;function aggregateTransformFlagsForNode(t){if(t===undefined){return 0}if(t.transformFlags&536870912){return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind)}var r=aggregateTransformFlagsForSubtree(t);return e.computeTransformFlagsForNode(t,r)}function aggregateTransformFlagsForNodeArray(e){if(e===undefined){return 0}var t=0;var r=0;for(var n=0,i=e;n<i.length;n++){var a=i[n];t|=aggregateTransformFlagsForNode(a);r|=a.transformFlags&~536870912}e.transformFlags=r|536870912;return t}function aggregateTransformFlagsForSubtree(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&t.kind!==211){return 0}return reduceEachChild(t,0,aggregateTransformFlagsForChildNode,aggregateTransformFlagsForChildNodes)}function aggregateTransformFlagsForChildNode(e,t){return e|aggregateTransformFlagsForNode(t)}function aggregateTransformFlagsForChildNodes(e,t){return e|aggregateTransformFlagsForNodeArray(t)}var t;(function(t){var r=false;function failBadSyntaxKind(r,n){return t.fail((n||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(r.kind)+" was unexpected.",failBadSyntaxKind)}t.failBadSyntaxKind=failBadSyntaxKind;t.assertEachNode=t.shouldAssert(1)?function(r,n,i){return t.assert(n===undefined||e.every(r,n),i||"Unexpected node.",function(){return"Node array did not pass test '"+t.getFunctionName(n)+"'."},t.assertEachNode)}:e.noop;t.assertNode=t.shouldAssert(1)?function(r,n,i){return t.assert(n===undefined||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertNode)}:e.noop;t.assertOptionalNode=t.shouldAssert(1)?function(r,n,i){return t.assert(n===undefined||r===undefined||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertOptionalNode)}:e.noop;t.assertOptionalToken=t.shouldAssert(1)?function(r,n,i){return t.assert(n===undefined||r===undefined||r.kind===n,i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was not a '"+e.formatSyntaxKind(n)+"' token."},t.assertOptionalToken)}:e.noop;t.assertMissingNode=t.shouldAssert(1)?function(r,n){return t.assert(r===undefined,n||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was unexpected'."},t.assertMissingNode)}:e.noop;function enableDebugInfo(){if(r)return;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return e.formatSymbolFlags(this.flags)}}});Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return e.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});var t=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(!a.prototype.hasOwnProperty("__debugKind")){Object.defineProperties(a.prototype,{__debugKind:{get:function(){return e.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return e.formatModifierFlags(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return e.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return e.formatEmitFlags(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this);var n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}}r=true}t.enableDebugInfo=enableDebugInfo})(t=e.Debug||(e.Debug={}))})(s||(s={}));var s;(function(e){function createSourceMapGenerator(t,r,n,i,a){var o=a.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,s=o.enter,c=o.exit;var u=[];var l=[];var f=e.createMap();var d;var p=[];var g;var _="";var m=0;var y=0;var h=0;var v=0;var T=0;var S=0;var b=false;var x=0;var C=0;var E=0;var D=0;var k=0;var N=0;var A=false;var O=false;var F=false;return{getSources:function(){return u},addSource:addSource,setSourceContent:setSourceContent,addName:addName,addMapping:addMapping,appendSourceMap:appendSourceMap,toJSON:toJSON,toString:function(){return JSON.stringify(toJSON())}};function addSource(r){s();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,true);var a=f.get(n);if(a===undefined){a=l.length;l.push(n);u.push(r);f.set(n,a)}c();return a}function setSourceContent(e,t){s();if(t!==null){if(!d)d=[];while(d.length<e){d.push(null)}d[e]=t}c()}function addName(t){s();if(!g)g=e.createMap();var r=g.get(t);if(r===undefined){r=p.length;p.push(t);g.set(t,r)}c();return r}function isNewGeneratedPosition(e,t){return!A||x!==e||C!==t}function isBacktrackingSourcePosition(e,t,r){return e!==undefined&&t!==undefined&&r!==undefined&&E===e&&(D>t||D===t&&k>r)}function addMapping(t,r,n,i,a,o){e.Debug.assert(t>=x,"generatedLine cannot backtrack");e.Debug.assert(r>=0,"generatedCharacter cannot be negative");e.Debug.assert(n===undefined||n>=0,"sourceIndex cannot be negative");e.Debug.assert(i===undefined||i>=0,"sourceLine cannot be negative");e.Debug.assert(a===undefined||a>=0,"sourceCharacter cannot be negative");s();if(isNewGeneratedPosition(t,r)||isBacktrackingSourcePosition(n,i,a)){commitPendingMapping();x=t;C=r;O=false;F=false;A=true}if(n!==undefined&&i!==undefined&&a!==undefined){E=n;D=i;k=a;O=true;if(o!==undefined){N=o;F=true}}c()}function appendSourceMap(t,r,n,i){var a;e.Debug.assert(t>=x,"generatedLine cannot backtrack");e.Debug.assert(r>=0,"generatedCharacter cannot be negative");s();var o=[];var u;var l=decodeMappings(n.mappings);for(var f=l.next(),d=f.value,p=f.done;!p;a=l.next(),d=a.value,p=a.done,a){var g=void 0;var _=void 0;var m=void 0;var y=void 0;if(d.sourceIndex!==undefined){g=o[d.sourceIndex];if(g===undefined){var h=n.sources[d.sourceIndex];var v=n.sourceRoot?e.combinePaths(n.sourceRoot,h):h;var T=e.combinePaths(e.getDirectoryPath(i),v);o[d.sourceIndex]=g=addSource(T);if(n.sourcesContent&&typeof n.sourcesContent[d.sourceIndex]==="string"){setSourceContent(g,n.sourcesContent[d.sourceIndex])}}_=d.sourceLine;m=d.sourceCharacter;if(n.names&&d.nameIndex!==undefined){if(!u)u=[];y=u[d.nameIndex];if(y===undefined){u[d.nameIndex]=y=addName(n.names[d.nameIndex])}}}var S=d.generatedLine+t;var b=d.generatedLine===0?d.generatedCharacter+r:d.generatedCharacter;addMapping(S,b,g,_,m,y)}c()}function shouldCommitMapping(){return!b||m!==x||y!==C||h!==E||v!==D||T!==k||S!==N}function commitPendingMapping(){if(!A||!shouldCommitMapping()){return}s();if(m<x){do{_+=";";m++;y=0}while(m<x)}else{e.Debug.assertEqual(m,x,"generatedLine cannot backtrack");if(b){_+=","}}_+=base64VLQFormatEncode(C-y);y=C;if(O){_+=base64VLQFormatEncode(E-h);h=E;_+=base64VLQFormatEncode(D-v);v=D;_+=base64VLQFormatEncode(k-T);T=k;if(F){_+=base64VLQFormatEncode(N-S);S=N}}b=true;c()}function toJSON(){commitPendingMapping();return{version:3,file:r,sourceRoot:n,sources:l,names:p,mappings:_,sourcesContent:d}}}e.createSourceMapGenerator=createSourceMapGenerator;var t=/^\/\/[@#] source[M]appingURL=(.+)\s*$/;var r=/^\s*(\/\/[@#] .*)?$/;function tryGetSourceMappingURL(n,i){if(i===void 0){i=e.computeLineStarts(n)}for(var a=i.length-1;a>=0;a--){var o=n.substring(i[a],i[a+1]);var s=t.exec(o);if(s){return s[1]}else if(!o.match(r)){break}}}e.tryGetSourceMappingURL=tryGetSourceMappingURL;function isStringOrNull(e){return typeof e==="string"||e===null}function isRawSourceMap(t){return t!==null&&typeof t==="object"&&t.version===3&&typeof t.file==="string"&&typeof t.mappings==="string"&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(t.sourceRoot===undefined||t.sourceRoot===null||typeof t.sourceRoot==="string")&&(t.sourcesContent===undefined||t.sourcesContent===null||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,isStringOrNull))&&(t.names===undefined||t.names===null||e.isArray(t.names)&&e.every(t.names,e.isString))}e.isRawSourceMap=isRawSourceMap;function tryParseRawSourceMap(e){try{var t=JSON.parse(e);if(isRawSourceMap(t)){return t}}catch(e){}return undefined}e.tryParseRawSourceMap=tryParseRawSourceMap;function decodeMappings(e){var t=false;var r=0;var n=0;var i=0;var a=0;var o=0;var s=0;var c=0;var u;return{get pos(){return r},get error(){return u},get state(){return captureMapping(true,true)},next:function(){while(!t&&r<e.length){var u=e.charCodeAt(r);if(u===59){n++;i=0;r++;continue}if(u===44){r++;continue}var l=false;var f=false;i+=base64VLQFormatDecode();if(hasReportedError())return stopIterating();if(i<0)return setErrorAndStopIterating("Invalid generatedCharacter found");if(!isSourceMappingSegmentEnd()){l=true;a+=base64VLQFormatDecode();if(hasReportedError())return stopIterating();if(a<0)return setErrorAndStopIterating("Invalid sourceIndex found");if(isSourceMappingSegmentEnd())return setErrorAndStopIterating("Unsupported Format: No entries after sourceIndex");o+=base64VLQFormatDecode();if(hasReportedError())return stopIterating();if(o<0)return setErrorAndStopIterating("Invalid sourceLine found");if(isSourceMappingSegmentEnd())return setErrorAndStopIterating("Unsupported Format: No entries after sourceLine");s+=base64VLQFormatDecode();if(hasReportedError())return stopIterating();if(s<0)return setErrorAndStopIterating("Invalid sourceCharacter found");if(!isSourceMappingSegmentEnd()){f=true;c+=base64VLQFormatDecode();if(hasReportedError())return stopIterating();if(c<0)return setErrorAndStopIterating("Invalid nameIndex found");if(!isSourceMappingSegmentEnd())return setErrorAndStopIterating("Unsupported Error Format: Entries after nameIndex")}}return{value:captureMapping(l,f),done:t}}return stopIterating()}};function captureMapping(e,t){return{generatedLine:n,generatedCharacter:i,sourceIndex:e?a:undefined,sourceLine:e?o:undefined,sourceCharacter:e?s:undefined,nameIndex:t?c:undefined}}function stopIterating(){t=true;return{value:undefined,done:true}}function setError(e){if(u===undefined){u=e}}function setErrorAndStopIterating(e){setError(e);return stopIterating()}function hasReportedError(){return u!==undefined}function isSourceMappingSegmentEnd(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function base64VLQFormatDecode(){var t=true;var n=0;var i=0;for(;t;r++){if(r>=e.length)return setError("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var a=base64FormatDecode(e.charCodeAt(r));if(a===-1)return setError("Invalid character in VLQ"),-1;t=(a&32)!==0;i=i|(a&31)<<n;n+=5}if((i&1)===0){i=i>>1}else{i=i>>1;i=-i}return i}}e.decodeMappings=decodeMappings;function sameMapping(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.sameMapping=sameMapping;function isSourceMapping(e){return e.sourceIndex!==undefined&&e.sourceLine!==undefined&&e.sourceCharacter!==undefined}e.isSourceMapping=isSourceMapping;function base64FormatEncode(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:e.Debug.fail(t+": not a base64 value")}function base64FormatDecode(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function base64VLQFormatEncode(e){if(e<0){e=(-e<<1)+1}else{e=e<<1}var t="";do{var r=e&31;e=e>>5;if(e>0){r=r|32}t=t+String.fromCharCode(base64FormatEncode(r))}while(e>0);return t}function isSourceMappedPosition(e){return e.sourceIndex!==undefined&&e.sourcePosition!==undefined}function sameMappedPosition(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function compareSourcePositions(t,r){return e.compareValues(t.sourceIndex,r.sourceIndex)}function compareGeneratedPositions(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function getSourcePositionOfMapping(e){return e.sourcePosition}function getGeneratedPositionOfMapping(e){return e.generatedPosition}function createDocumentPositionMapper(t,r,n){var i=e.getDirectoryPath(n);var a=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,i):i;var o=e.getNormalizedAbsolutePath(r.file,i);var s=t.getCanonicalFileName(o);var c=t.getSourceFileLike(s);var u=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,a)});var l=u.map(function(e){return t.getCanonicalFileName(e)});var f=e.createMapFromEntries(l.map(function(e,t){return[e,t]}));var d;var p;var g;return{getSourcePosition:getSourcePosition,getGeneratedPosition:getGeneratedPosition};function processMapping(n){var i=c!==undefined?e.getPositionOfLineAndCharacterWithEdits(c,n.generatedLine,n.generatedCharacter):-1;var a;var o;if(isSourceMapping(n)){var s=l[n.sourceIndex];var u=t.getSourceFileLike(s);a=r.sources[n.sourceIndex];o=u!==undefined?e.getPositionOfLineAndCharacterWithEdits(u,n.sourceLine,n.sourceCharacter):-1}return{generatedPosition:i,source:a,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function getDecodedMappings(){if(d===undefined){var n=decodeMappings(r.mappings);var i=e.arrayFrom(n,processMapping);if(n.error!==undefined){if(t.log){t.log("Encountered error while decoding sourcemap: "+n.error)}d=e.emptyArray}else{d=i}}return d}function getSourceMappings(t){if(g===undefined){var r=[];for(var n=0,i=getDecodedMappings();n<i.length;n++){var a=i[n];if(!isSourceMappedPosition(a))continue;var o=r[a.sourceIndex];if(!o)r[a.sourceIndex]=o=[];o.push(a)}g=r.map(function(t){return e.sortAndDeduplicate(t,compareSourcePositions,sameMappedPosition)})}return g[t]}function getGeneratedMappings(){if(p===undefined){var t=[];for(var r=0,n=getDecodedMappings();r<n.length;r++){var i=n[r];t.push(i)}p=e.sortAndDeduplicate(t,compareGeneratedPositions,sameMappedPosition)}return p}function getGeneratedPosition(r){var n=f.get(t.getCanonicalFileName(r.fileName));if(n===undefined)return r;var i=getSourceMappings(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,getSourcePositionOfMapping,e.compareValues);if(a<0){a=~a}var s=i[a];if(s===undefined||s.sourceIndex!==n){return r}return{fileName:o,pos:s.generatedPosition}}function getSourcePosition(t){var r=getGeneratedMappings();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,getGeneratedPositionOfMapping,e.compareValues);if(n<0){n=~n}var i=r[n];if(i===undefined||!isSourceMappedPosition(i)){return t}return{fileName:u[i.sourceIndex],pos:i.sourcePosition}}}e.createDocumentPositionMapper=createDocumentPositionMapper;e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(s||(s={}));var s;(function(e){function getOriginalNodeId(t){t=e.getOriginalNode(t);return t?e.getNodeId(t):0}e.getOriginalNodeId=getOriginalNodeId;function containsDefaultReference(t){if(!t)return false;if(!e.isNamedImports(t))return false;return e.some(t.elements,isNamedDefaultReference)}function isNamedDefaultReference(e){return e.propertyName!==undefined&&e.propertyName.escapedText==="default"}function chainBundle(t){return transformSourceFileOrBundle;function transformSourceFileOrBundle(e){return e.kind===279?t(e):transformBundle(e)}function transformBundle(r){return e.createBundle(e.map(r.sourceFiles,t),r.prepends)}}e.chainBundle=chainBundle;function getImportNeedsImportStarHelper(t){if(!!e.getNamespaceDeclarationNode(t)){return true}var r=t.importClause&&t.importClause.namedBindings;if(!r){return false}if(!e.isNamedImports(r))return false;var n=0;for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];if(isNamedDefaultReference(o)){n++}}return n>0&&n!==r.elements.length||!!(r.elements.length-n)&&e.isDefaultImport(t)}e.getImportNeedsImportStarHelper=getImportNeedsImportStarHelper;function getImportNeedsImportDefaultHelper(t){return!getImportNeedsImportStarHelper(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&containsDefaultReference(t.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=getImportNeedsImportDefaultHelper;function collectExternalModuleInfo(t,r,n){var i=[];var a=e.createMultiMap();var o=[];var s=e.createMap();var c;var u=false;var l;var f=false;var d=false;for(var p=0,g=t.statements;p<g.length;p++){var _=g[p];switch(_.kind){case 249:i.push(_);d=d||getImportNeedsImportStarHelper(_)||getImportNeedsImportDefaultHelper(_);break;case 248:if(_.moduleReference.kind===259){i.push(_)}break;case 255:if(_.moduleSpecifier){if(!_.exportClause){i.push(_);f=true}else{i.push(_)}}else{for(var m=0,y=_.exportClause.elements;m<y.length;m++){var h=y[m];if(!s.get(e.idText(h.name))){var v=h.propertyName||h.name;a.add(e.idText(v),h);var T=r.getReferencedImportDeclaration(v)||r.getReferencedValueDeclaration(v);if(T){multiMapSparseArrayAdd(o,getOriginalNodeId(T),h.name)}s.set(e.idText(h.name),true);c=e.append(c,h.name)}}}break;case 254:if(_.isExportEquals&&!l){l=_}break;case 219:if(e.hasModifier(_,1)){for(var S=0,b=_.declarationList.declarations;S<b.length;S++){var T=b[S];c=collectExportedVariableInfo(T,s,c)}}break;case 239:if(e.hasModifier(_,1)){if(e.hasModifier(_,512)){if(!u){multiMapSparseArrayAdd(o,getOriginalNodeId(_),e.getDeclarationName(_));u=true}}else{var v=_.name;if(!s.get(e.idText(v))){multiMapSparseArrayAdd(o,getOriginalNodeId(_),v);s.set(e.idText(v),true);c=e.append(c,v)}}}break;case 240:if(e.hasModifier(_,1)){if(e.hasModifier(_,512)){if(!u){multiMapSparseArrayAdd(o,getOriginalNodeId(_),e.getDeclarationName(_));u=true}}else{var v=_.name;if(v&&!s.get(e.idText(v))){multiMapSparseArrayAdd(o,getOriginalNodeId(_),v);s.set(e.idText(v),true);c=e.append(c,v)}}}break}}var x=e.getOrCreateExternalHelpersModuleNameIfNeeded(t,n,f,d);var C=x&&e.createImportDeclaration(undefined,undefined,e.createImportClause(undefined,e.createNamespaceImport(x)),e.createLiteral(e.externalHelpersModuleNameText));if(C){e.addEmitFlags(C,67108864);i.unshift(C)}return{externalImports:i,exportSpecifiers:a,exportEquals:l,hasExportStarsToExportValues:f,exportedBindings:o,exportedNames:c,externalHelpersImportDeclaration:C}}e.collectExternalModuleInfo=collectExternalModuleInfo;function collectExportedVariableInfo(t,r,n){if(e.isBindingPattern(t.name)){for(var i=0,a=t.name.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){n=collectExportedVariableInfo(o,r,n)}}}else if(!e.isGeneratedIdentifier(t.name)){var s=e.idText(t.name);if(!r.get(s)){r.set(s,true);n=e.append(n,t.name)}}return n}function multiMapSparseArrayAdd(e,t,r){var n=e[t];if(n){n.push(r)}else{e[t]=n=[r]}return n}function isSimpleCopiableExpression(t){return e.isStringLiteralLike(t)||t.kind===8||e.isKeyword(t.kind)||e.isIdentifier(t)}e.isSimpleCopiableExpression=isSimpleCopiableExpression;function helperString(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}return function(r){var n="";for(var i=0;i<t.length;i++){n+=e[i];n+=r(t[i])}n+=e[e.length-1];return n}}e.helperString=helperString})(s||(s={}));var s;(function(e){var t;(function(e){e[e["All"]=0]="All";e[e["ObjectRest"]=1]="ObjectRest"})(t=e.FlattenLevel||(e.FlattenLevel={}));function flattenDestructuringAssignment(t,r,n,i,a,o){var s=t;var c;if(e.isDestructuringAssignment(t)){c=t.right;while(e.isEmptyArrayLiteral(t.left)||e.isEmptyObjectLiteral(t.left)){if(e.isDestructuringAssignment(c)){s=t=c;c=t.right}else{return e.visitNode(c,r,e.isExpression)}}}var u;var l={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:true,emitExpression:emitExpression,emitBindingOrAssignment:emitBindingOrAssignment,createArrayBindingOrAssignmentPattern:makeArrayAssignmentPattern,createObjectBindingOrAssignmentPattern:makeObjectAssignmentPattern,createArrayBindingOrAssignmentElement:makeAssignmentElement,visitor:r};if(c){c=e.visitNode(c,r,e.isExpression);if(e.isIdentifier(c)&&bindingOrAssignmentElementAssignsToName(t,c.escapedText)){c=ensureIdentifier(l,c,false,s)}else if(a){c=ensureIdentifier(l,c,true,s)}else if(e.nodeIsSynthesized(t)){s=c}}flattenBindingOrAssignmentElement(l,t,c,s,e.isDestructuringAssignment(t));if(c&&a){if(!e.some(u)){return c}u.push(c)}return e.aggregateTransformFlags(e.inlineExpressions(u))||e.createOmittedExpression();function emitExpression(t){e.setEmitFlags(t,64);e.aggregateTransformFlags(t);u=e.append(u,t)}function emitBindingOrAssignment(t,n,i,a){e.Debug.assertNode(t,o?e.isIdentifier:e.isExpression);var s=o?o(t,n,i):e.setTextRange(e.createAssignment(e.visitNode(t,r,e.isExpression),n),i);s.original=a;emitExpression(s)}}e.flattenDestructuringAssignment=flattenDestructuringAssignment;function bindingOrAssignmentElementAssignsToName(t,r){var n=e.getTargetOfBindingOrAssignmentElement(t);if(e.isBindingOrAssignmentPattern(n)){return bindingOrAssignmentPatternAssignsToName(n,r)}else if(e.isIdentifier(n)){return n.escapedText===r}return false}function bindingOrAssignmentPatternAssignsToName(t,r){var n=e.getElementsOfBindingOrAssignmentPattern(t);for(var i=0,a=n;i<a.length;i++){var o=a[i];if(bindingOrAssignmentElementAssignsToName(o,r)){return true}}return false}function flattenDestructuringBinding(t,r,n,i,a,o,s){if(o===void 0){o=false}var c;var u=[];var l=[];var f={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:emitExpression,emitBindingOrAssignment:emitBindingOrAssignment,createArrayBindingOrAssignmentPattern:makeArrayBindingPattern,createObjectBindingOrAssignmentPattern:makeObjectBindingPattern,createArrayBindingOrAssignmentElement:makeBindingElement,visitor:r};if(e.isVariableDeclaration(t)){var d=e.getInitializerOfBindingOrAssignmentElement(t);if(d&&e.isIdentifier(d)&&bindingOrAssignmentElementAssignsToName(t,d.escapedText)){d=ensureIdentifier(f,d,false,d);t=e.updateVariableDeclaration(t,t.name,t.type,d)}}flattenBindingOrAssignmentElement(f,t,a,t,s);if(c){var p=e.createTempVariable(undefined);if(o){var g=e.inlineExpressions(c);c=undefined;emitBindingOrAssignment(p,g,undefined,undefined)}else{n.hoistVariableDeclaration(p);var _=e.last(u);_.pendingExpressions=e.append(_.pendingExpressions,e.createAssignment(p,_.value));e.addRange(_.pendingExpressions,c);_.value=p}}for(var m=0,y=u;m<y.length;m++){var h=y[m],v=h.pendingExpressions,T=h.name,g=h.value,S=h.location,b=h.original;var x=e.createVariableDeclaration(T,undefined,v?e.inlineExpressions(e.append(v,g)):g);x.original=b;e.setTextRange(x,S);if(e.isIdentifier(T)){e.setEmitFlags(x,64)}e.aggregateTransformFlags(x);l.push(x)}return l;function emitExpression(t){c=e.append(c,t)}function emitBindingOrAssignment(t,r,n,i){e.Debug.assertNode(t,e.isBindingName);if(c){r=e.inlineExpressions(e.append(c,r));c=undefined}u.push({pendingExpressions:c,name:t,value:r,location:n,original:i})}}e.flattenDestructuringBinding=flattenDestructuringBinding;function flattenBindingOrAssignmentElement(t,r,n,i,a){if(!a){var o=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);if(o){n=n?createDefaultValueCheck(t,n,o,i):o}else if(!n){n=e.createVoidZero()}}var s=e.getTargetOfBindingOrAssignmentElement(r);if(e.isObjectBindingOrAssignmentPattern(s)){flattenObjectBindingOrAssignmentPattern(t,r,s,n,i)}else if(e.isArrayBindingOrAssignmentPattern(s)){flattenArrayBindingOrAssignmentPattern(t,r,s,n,i)}else{t.emitBindingOrAssignment(s,n,i,r)}}function flattenObjectBindingOrAssignmentPattern(t,r,n,i,a){var o=e.getElementsOfBindingOrAssignmentPattern(n);var s=o.length;if(s!==1){var c=!e.isDeclarationBindingElement(r)||s!==0;i=ensureIdentifier(t,i,c,a)}var u;var l;for(var f=0;f<s;f++){var d=o[f];if(!e.getRestIndicatorOfBindingOrAssignmentElement(d)){var p=e.getPropertyNameOfBindingOrAssignmentElement(d);if(t.level>=1&&!(d.transformFlags&(131072|262144))&&!(e.getTargetOfBindingOrAssignmentElement(d).transformFlags&(131072|262144))&&!e.isComputedPropertyName(p)){u=e.append(u,d)}else{if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n);u=undefined}var g=createDestructuringPropertyAccess(t,i,p);if(e.isComputedPropertyName(p)){l=e.append(l,g.argumentExpression)}flattenBindingOrAssignmentElement(t,d,g,d)}}else if(f===s-1){if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n);u=undefined}var g=createRestCall(t.context,i,o,l,n);flattenBindingOrAssignmentElement(t,d,g,d)}}if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n)}}function flattenArrayBindingOrAssignmentPattern(t,r,n,i,a){var o=e.getElementsOfBindingOrAssignmentPattern(n);var s=o.length;if(t.level<1&&t.downlevelIteration){i=ensureIdentifier(t,e.createReadHelper(t.context,i,s>0&&e.getRestIndicatorOfBindingOrAssignmentElement(o[s-1])?undefined:s,a),false,a)}else if(s!==1&&(t.level<1||s===0)||e.every(o,e.isOmittedExpression)){var c=!e.isDeclarationBindingElement(r)||s!==0;i=ensureIdentifier(t,i,c,a)}var u;var l;for(var f=0;f<s;f++){var d=o[f];if(t.level>=1){if(d.transformFlags&262144){var p=e.createTempVariable(undefined);if(t.hoistTempVariables){t.context.hoistVariableDeclaration(p)}l=e.append(l,[p,d]);u=e.append(u,t.createArrayBindingOrAssignmentElement(p))}else{u=e.append(u,d)}}else if(e.isOmittedExpression(d)){continue}else if(!e.getRestIndicatorOfBindingOrAssignmentElement(d)){var g=e.createElementAccess(i,f);flattenBindingOrAssignmentElement(t,d,g,d)}else if(f===s-1){var g=e.createArraySlice(i,f);flattenBindingOrAssignmentElement(t,d,g,d)}}if(u){t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),i,a,n)}if(l){for(var _=0,m=l;_<m.length;_++){var y=m[_],h=y[0],d=y[1];flattenBindingOrAssignmentElement(t,d,h,d)}}}function createDefaultValueCheck(t,r,n,i){r=ensureIdentifier(t,r,true,i);return e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}function createDestructuringPropertyAccess(t,r,n){if(e.isComputedPropertyName(n)){var i=ensureIdentifier(t,e.visitNode(n.expression,t.visitor),false,n);return e.createElementAccess(r,i)}else if(e.isStringOrNumericLiteralLike(n)){var i=e.getSynthesizedClone(n);i.text=i.text;return e.createElementAccess(r,i)}else{var a=e.createIdentifier(e.idText(n));return e.createPropertyAccess(r,a)}}function ensureIdentifier(t,r,n,i){if(e.isIdentifier(r)&&n){return r}else{var a=e.createTempVariable(undefined);if(t.hoistTempVariables){t.context.hoistVariableDeclaration(a);t.emitExpression(e.setTextRange(e.createAssignment(a,r),i))}else{t.emitBindingOrAssignment(a,r,i,undefined)}return a}}function makeArrayBindingPattern(t){e.Debug.assertEachNode(t,e.isArrayBindingElement);return e.createArrayBindingPattern(t)}function makeArrayAssignmentPattern(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function makeObjectBindingPattern(t){e.Debug.assertEachNode(t,e.isBindingElement);return e.createObjectBindingPattern(t)}function makeObjectAssignmentPattern(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function makeBindingElement(t){return e.createBindingElement(undefined,undefined,t)}function makeAssignmentElement(e){return e}var r={name:"typescript:rest",scoped:false,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++) if (e.indexOf(p[i]) < 0)\n t[p[i]] = s[p[i]];\n return t;\n };'};function createRestCall(t,n,i,a,o){t.requestEmitHelper(r);var s=[];var c=0;for(var u=0;u<i.length-1;u++){var l=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(l){if(e.isComputedPropertyName(l)){var f=a[c];c++;s.push(e.createConditional(e.createTypeCheck(f,"symbol"),f,e.createAdd(f,e.createLiteral(""))))}else{s.push(e.createLiteral(l))}}}return e.createCall(e.getHelperName("__rest"),undefined,[n,e.setTextRange(e.createArrayLiteral(s),o)])}})(s||(s={}));var s;(function(e){var t=false;var r;(function(e){e[e["ClassAliases"]=1]="ClassAliases";e[e["NamespaceExports"]=2]="NamespaceExports";e[e["NonQualifiedEnumMembers"]=8]="NonQualifiedEnumMembers"})(r||(r={}));var n;(function(e){e[e["None"]=0]="None";e[e["HasStaticInitializedProperties"]=1]="HasStaticInitializedProperties";e[e["HasConstructorDecorators"]=2]="HasConstructorDecorators";e[e["HasMemberDecorators"]=4]="HasMemberDecorators";e[e["IsExportOfNamespace"]=8]="IsExportOfNamespace";e[e["IsNamedExternalExport"]=16]="IsNamedExternalExport";e[e["IsDefaultExternalExport"]=32]="IsDefaultExternalExport";e[e["IsDerivedClass"]=64]="IsDerivedClass";e[e["UseImmediatelyInvokedFunctionExpression"]=128]="UseImmediatelyInvokedFunctionExpression";e[e["HasAnyDecorators"]=6]="HasAnyDecorators";e[e["NeedsName"]=5]="NeedsName";e[e["MayNeedImmediatelyInvokedFunctionExpression"]=7]="MayNeedImmediatelyInvokedFunctionExpression";e[e["IsExported"]=56]="IsExported"})(n||(n={}));function transformTypeScript(r){var n=r.startLexicalEnvironment,i=r.resumeLexicalEnvironment,a=r.endLexicalEnvironment,o=r.hoistVariableDeclaration;var s=r.getEmitResolver();var c=r.getCompilerOptions();var u=e.getStrictOptionValue(c,"strictNullChecks");var l=e.getEmitScriptTarget(c);var f=e.getEmitModuleKind(c);var d=r.onEmitNode;var p=r.onSubstituteNode;r.onEmitNode=onEmitNode;r.onSubstituteNode=onSubstituteNode;r.enableSubstitution(189);r.enableSubstitution(190);var g;var _;var m;var y;var h;var v;var T;var S;var b;var x;return transformSourceFileOrBundle;function transformSourceFileOrBundle(e){if(e.kind===280){return transformBundle(e)}return transformSourceFile(e)}function transformBundle(t){return e.createBundle(t.sourceFiles.map(transformSourceFile),e.mapDefined(t.prepends,function(t){if(t.kind===282){return e.createUnparsedSourceFile(t.javascriptText,t.javascriptMapPath,t.javascriptMapText)}return t}))}function transformSourceFile(t){if(t.isDeclarationFile){return t}g=t;var n=saveStateAndInvoke(t,visitSourceFile);e.addEmitHelpers(n,r.readEmitHelpers());g=undefined;return n}function saveStateAndInvoke(e,t){var r=y;var n=h;var i=v;onBeforeVisitNode(e);var a=t(e);if(y!==r){v=i}y=r;h=n;return a}function onBeforeVisitNode(t){switch(t.kind){case 279:case 246:case 245:case 218:y=t;h=undefined;v=undefined;break;case 240:case 239:if(e.hasModifier(t,2)){break}if(t.name){recordEmittedDeclarationInScope(t)}else{e.Debug.assert(t.kind===240||e.hasModifier(t,512))}if(e.isClassDeclaration(t)){h=t}break}}function visitor(e){return saveStateAndInvoke(e,visitorWorker)}function visitorWorker(t){if(t.transformFlags&1){return visitTypeScript(t)}else if(t.transformFlags&2){return e.visitEachChild(t,visitor,r)}return t}function sourceElementVisitor(e){return saveStateAndInvoke(e,sourceElementVisitorWorker)}function sourceElementVisitorWorker(e){switch(e.kind){case 249:case 248:case 254:case 255:return visitEllidableStatement(e);default:return visitorWorker(e)}}function visitEllidableStatement(t){var n=e.getParseTreeNode(t);if(n!==t){if(t.transformFlags&2){return e.visitEachChild(t,visitor,r)}return t}switch(t.kind){case 249:return visitImportDeclaration(t);case 248:return visitImportEqualsDeclaration(t);case 254:return visitExportAssignment(t);case 255:return visitExportDeclaration(t);default:e.Debug.fail("Unhandled ellided statement")}}function namespaceElementVisitor(e){return saveStateAndInvoke(e,namespaceElementVisitorWorker)}function namespaceElementVisitorWorker(t){if(t.kind===255||t.kind===249||t.kind===250||t.kind===248&&t.moduleReference.kind===259){return undefined}else if(t.transformFlags&1||e.hasModifier(t,1)){return visitTypeScript(t)}else if(t.transformFlags&2){return e.visitEachChild(t,visitor,r)}return t}function classElementVisitor(e){return saveStateAndInvoke(e,classElementVisitorWorker)}function classElementVisitorWorker(t){switch(t.kind){case 157:return undefined;case 154:case 162:case 158:case 159:case 156:return visitorWorker(t);case 217:return t;default:return e.Debug.failBadSyntaxKind(t)}}function modifierVisitor(t){if(e.modifierToFlag(t.kind)&2270){return undefined}else if(_&&t.kind===85){return undefined}return t}function visitTypeScript(t){if(e.hasModifier(t,2)&&e.isStatement(t)){return e.createNotEmittedStatement(t)}switch(t.kind){case 85:case 80:return _?undefined:t;case 115:case 113:case 114:case 118:case 77:case 125:case 133:case 169:case 170:case 171:case 172:case 168:case 163:case 150:case 120:case 143:case 123:case 138:case 135:case 132:case 106:case 139:case 166:case 165:case 167:case 164:case 173:case 174:case 175:case 177:case 178:case 179:case 180:case 181:case 182:case 162:case 152:case 242:return undefined;case 154:return visitPropertyDeclaration(t);case 247:return undefined;case 157:return visitConstructor(t);case 241:return e.createNotEmittedStatement(t);case 240:return visitClassDeclaration(t);case 209:return visitClassExpression(t);case 273:return visitHeritageClause(t);case 211:return visitExpressionWithTypeArguments(t);case 156:return visitMethodDeclaration(t);case 158:return visitGetAccessor(t);case 159:return visitSetAccessor(t);case 239:return visitFunctionDeclaration(t);case 196:return visitFunctionExpression(t);case 197:return visitArrowFunction(t);case 151:return visitParameter(t);case 195:return visitParenthesizedExpression(t);case 194:case 212:return visitAssertionExpression(t);case 191:return visitCallExpression(t);case 192:return visitNewExpression(t);case 193:return visitTaggedTemplateExpression(t);case 213:return visitNonNullExpression(t);case 243:return visitEnumDeclaration(t);case 219:return visitVariableStatement(t);case 237:return visitVariableDeclaration(t);case 244:return visitModuleDeclaration(t);case 248:return visitImportEqualsDeclaration(t);default:return e.Debug.failBadSyntaxKind(t)}}function visitSourceFile(t){var n=e.getStrictOptionValue(c,"alwaysStrict")&&!(e.isExternalModule(t)&&f>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return e.updateSourceFileNode(t,e.visitLexicalEnvironment(t.statements,sourceElementVisitor,r,0,n))}function shouldEmitDecorateCallForClass(t){if(t.decorators&&t.decorators.length>0){return true}var r=e.getFirstConstructorWithBody(t);if(r){return e.forEach(r.parameters,shouldEmitDecorateCallForParameter)}return false}function shouldEmitDecorateCallForParameter(e){return e.decorators!==undefined&&e.decorators.length>0}function getClassFacts(t,r){var n=0;if(e.some(r))n|=1;var i=e.getEffectiveBaseTypeNode(t);if(i&&e.skipOuterExpressions(i.expression).kind!==96)n|=64;if(shouldEmitDecorateCallForClass(t))n|=2;if(e.childIsDecorated(t))n|=4;if(isExportOfNamespace(t))n|=8;else if(isDefaultExternalModuleExport(t))n|=32;else if(isNamedExternalModuleExport(t))n|=16;if(l<=1&&n&7)n|=128;return n}function visitClassDeclaration(t){var n=x;x=undefined;var i=getInitializedProperties(t,true);var a=getClassFacts(t,i);if(a&128){r.startLexicalEnvironment()}var o=t.name||(a&5?e.getGeneratedNameForNode(t):undefined);var s=a&2?createClassDeclarationHeadWithDecorators(t,o,a):createClassDeclarationHeadWithoutDecorators(t,o,a);var c=[s];if(e.some(x)){c.push(e.createExpressionStatement(e.inlineExpressions(x)))}x=n;if(a&1){addInitializedPropertyStatements(c,i,a&128?e.getInternalName(t):e.getLocalName(t))}addClassElementDecorationStatements(c,t,false);addClassElementDecorationStatements(c,t,true);addConstructorDecorationStatement(c,t);if(a&128){var u=e.createTokenRange(e.skipTrivia(g.text,t.members.end),19);var l=e.getInternalName(t);var f=e.createPartiallyEmittedExpression(l);f.end=u.end;e.setEmitFlags(f,1536);var d=e.createReturn(f);d.pos=u.pos;e.setEmitFlags(d,1536|384);c.push(d);e.addStatementsAfterPrologue(c,r.endLexicalEnvironment());var p=e.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(p,33554432);var _=e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(t,false,false),undefined,p)]));e.setOriginalNode(_,t);e.setCommentRange(_,t);e.setSourceMapRange(_,e.moveRangePastDecorators(t));e.startOnNewLine(_);c=[_]}if(a&8){addExportMemberAssignment(c,t)}else if(a&128||a&2){if(a&32){c.push(e.createExportDefault(e.getLocalName(t,false,true)))}else if(a&16){c.push(e.createExternalModuleExport(e.getLocalName(t,false,true)))}}if(c.length>1){c.push(e.createEndOfDeclarationMarker(t));e.setEmitFlags(s,e.getEmitFlags(s)|4194304)}return e.singleOrMany(c)}function createClassDeclarationHeadWithoutDecorators(t,r,n){var i=!(n&128)?e.visitNodes(t.modifiers,modifierVisitor,e.isModifier):undefined;var a=e.createClassDeclaration(undefined,i,r,undefined,e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause),transformClassMembers(t,(n&64)!==0));var o=e.getEmitFlags(t);if(n&1){o|=32}e.setTextRange(a,t);e.setOriginalNode(a,t);e.setEmitFlags(a,o);return a}function createClassDeclarationHeadWithDecorators(t,r,n){var i=e.moveRangePastDecorators(t);var a=getClassAliasIfNeeded(t);var o=e.getLocalName(t,false,true);var s=e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause);var c=transformClassMembers(t,(n&64)!==0);var u=e.createClassExpression(undefined,r,undefined,s,c);e.setOriginalNode(u,t);e.setTextRange(u,i);var l=e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(o,undefined,a?e.createAssignment(a,u):u)],1));e.setOriginalNode(l,t);e.setTextRange(l,i);e.setCommentRange(l,t);return l}function visitClassExpression(t){var r=x;x=undefined;var n=getInitializedProperties(t,true);var i=e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause);var a=transformClassMembers(t,e.some(i,function(e){return e.token===86}));var c=e.createClassExpression(undefined,t.name,undefined,i,a);e.setOriginalNode(c,t);e.setTextRange(c,t);if(e.some(n)||e.some(x)){var u=[];var l=s.getNodeCheckFlags(t)&16777216;var f=e.createTempVariable(o,!!l);if(l){enableSubstitutionForClassAliases();var d=e.getSynthesizedClone(f);d.autoGenerateFlags&=~8;S[e.getOriginalNodeId(t)]=d}e.setEmitFlags(c,65536|e.getEmitFlags(c));u.push(e.startOnNewLine(e.createAssignment(f,c)));e.addRange(u,e.map(x,e.startOnNewLine));x=r;e.addRange(u,generateInitializedPropertyExpressions(n,f));u.push(e.startOnNewLine(f));return e.inlineExpressions(u)}x=r;return c}function transformClassMembers(t,r){var n=[];var i=transformConstructor(t,r);if(i){n.push(i)}e.addRange(n,e.visitNodes(t.members,classElementVisitor,e.isClassElement));return e.setTextRange(e.createNodeArray(n),t.members)}function transformConstructor(t,n){var i=e.getFirstConstructorWithBody(t);var a=e.forEach(t.members,isInstanceInitializedProperty);var o=i&&i.transformFlags&4096&&e.forEach(i.parameters,isParameterWithPropertyAssignment);if(!a&&!o){return e.visitEachChild(i,visitor,r)}var s=transformConstructorParameters(i);var c=transformConstructorBody(t,i,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(undefined,undefined,s,c),i||t),i))}function transformConstructorParameters(t){return e.visitParameterList(t&&t.parameters,visitor,r)||[]}function transformConstructorBody(t,r,n){var o=[];var s=0;i();if(r){s=addPrologueDirectivesAndInitialSuperCall(r,o);var c=getParametersWithPropertyAssignments(r);e.addRange(o,e.map(c,transformParameterWithPropertyAssignment))}else if(n){o.push(e.createExpressionStatement(e.createCall(e.createSuper(),undefined,[e.createSpread(e.createIdentifier("arguments"))])))}var u=getInitializedProperties(t,false);addInitializedPropertyStatements(o,u,e.createThis());if(r){e.addRange(o,e.visitNodes(r.body.statements,visitor,e.isStatement,s))}o=e.mergeLexicalEnvironment(o,a());return e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),r?r.body.statements:t.members),true),r?r.body:undefined)}function addPrologueDirectivesAndInitialSuperCall(t,r){if(t.body){var n=t.body.statements;var i=e.addPrologue(r,n,false,visitor);if(i===n.length){return i}var a=n[i];if(a.kind===221&&e.isSuperCall(a.expression)){r.push(e.visitNode(a,visitor,e.isStatement));return i+1}return i}return 0}function getParametersWithPropertyAssignments(t){return e.filter(t.parameters,isParameterWithPropertyAssignment)}function isParameterWithPropertyAssignment(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function transformParameterWithPropertyAssignment(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name;var n=e.getMutableClone(r);e.setEmitFlags(n,1536|48);var i=e.getMutableClone(r);e.setEmitFlags(i,1536);return e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function getInitializedProperties(t,r){return e.filter(t.members,r?isStaticInitializedProperty:isInstanceInitializedProperty)}function isStaticInitializedProperty(e){return isInitializedProperty(e,true)}function isInstanceInitializedProperty(e){return isInitializedProperty(e,false)}function isInitializedProperty(t,r){return t.kind===154&&r===e.hasModifier(t,32)&&t.initializer!==undefined}function addInitializedPropertyStatements(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i];var s=e.createExpressionStatement(transformInitializedProperty(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o));e.setCommentRange(s,o);e.setOriginalNode(s,o);t.push(s)}}function generateInitializedPropertyExpressions(t,r){var n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];var s=transformInitializedProperty(o,r);e.startOnNewLine(s);e.setSourceMapRange(s,e.moveRangePastModifiers(o));e.setCommentRange(s,o);e.setOriginalNode(s,o);n.push(s)}return n}function transformInitializedProperty(t,r){var n=e.isComputedPropertyName(t.name)&&!isSimpleInlineableExpression(t.name.expression)?e.updateComputedPropertyName(t.name,e.getGeneratedNameForNode(t.name)):t.name;var i=e.visitNode(t.initializer,visitor,e.isExpression);var a=e.createMemberAccessForPropertyName(r,n,n);return e.createAssignment(a,i)}function getDecoratedClassElements(t,r){return e.filter(t.members,r?function(e){return isStaticDecoratedClassElement(e,t)}:function(e){return isInstanceDecoratedClassElement(e,t)})}function isStaticDecoratedClassElement(e,t){return isDecoratedClassElement(e,true,t)}function isInstanceDecoratedClassElement(e,t){return isDecoratedClassElement(e,false,t)}function isDecoratedClassElement(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasModifier(t,32)}function getDecoratorsOfParameters(e){var t;if(e){var r=e.parameters;for(var n=0;n<r.length;n++){var i=r[n];if(t||i.decorators){if(!t){t=new Array(r.length)}t[n]=i.decorators}}}return t}function getAllDecoratorsOfConstructor(t){var r=t.decorators;var n=getDecoratorsOfParameters(e.getFirstConstructorWithBody(t));if(!r&&!n){return undefined}return{decorators:r,parameters:n}}function getAllDecoratorsOfClassElement(e,t){switch(t.kind){case 158:case 159:return getAllDecoratorsOfAccessors(e,t);case 156:return getAllDecoratorsOfMethod(t);case 154:return getAllDecoratorsOfProperty(t);default:return undefined}}function getAllDecoratorsOfAccessors(t,r){if(!r.body){return undefined}var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor;var s=i.decorators?i:a&&a.decorators?a:undefined;if(!s||r!==s){return undefined}var c=s.decorators;var u=getDecoratorsOfParameters(o);if(!c&&!u){return undefined}return{decorators:c,parameters:u}}function getAllDecoratorsOfMethod(e){if(!e.body){return undefined}var t=e.decorators;var r=getDecoratorsOfParameters(e);if(!t&&!r){return undefined}return{decorators:t,parameters:r}}function getAllDecoratorsOfProperty(e){var t=e.decorators;if(!t){return undefined}return{decorators:t}}function transformAllDecoratorsOfDeclaration(t,r,n){if(!n){return undefined}var i=[];e.addRange(i,e.map(n.decorators,transformDecorator));e.addRange(i,e.flatMap(n.parameters,transformDecoratorsOfParameter));addTypeMetadata(t,r,i);return i}function addClassElementDecorationStatements(t,r,n){e.addRange(t,e.map(generateClassElementDecorationExpressions(r,n),expressionToStatement))}function generateClassElementDecorationExpressions(e,t){var r=getDecoratedClassElements(e,t);var n;for(var i=0,a=r;i<a.length;i++){var o=a[i];var s=generateClassElementDecorationExpression(e,o);if(s){if(!n){n=[s]}else{n.push(s)}}}return n}function generateClassElementDecorationExpression(t,n){var i=getAllDecoratorsOfClassElement(t,n);var a=transformAllDecoratorsOfDeclaration(n,t,i);if(!a){return undefined}var o=getClassMemberPrefix(t,n);var s=getExpressionForPropertyName(n,true);var c=l>0?n.kind===154?e.createVoidZero():e.createNull():undefined;var u=createDecorateHelper(r,a,o,s,c,e.moveRangePastDecorators(n));e.setEmitFlags(u,1536);return u}function addConstructorDecorationStatement(t,r){var n=generateConstructorDecorationExpression(r);if(n){t.push(e.setOriginalNode(e.createExpressionStatement(n),r))}}function generateConstructorDecorationExpression(t){var n=getAllDecoratorsOfConstructor(t);var i=transformAllDecoratorsOfDeclaration(t,t,n);if(!i){return undefined}var a=S&&S[e.getOriginalNodeId(t)];var o=e.getLocalName(t,false,true);var s=createDecorateHelper(r,i,o);var c=e.createAssignment(o,a?e.createAssignment(a,s):s);e.setEmitFlags(c,1536);e.setSourceMapRange(c,e.moveRangePastDecorators(t));return c}function transformDecorator(t){return e.visitNode(t.expression,visitor,e.isExpression)}function transformDecoratorsOfParameter(t,n){var i;if(t){i=[];for(var a=0,o=t;a<o.length;a++){var s=o[a];var c=createParamHelper(r,transformDecorator(s),n,s.expression);e.setEmitFlags(c,1536);i.push(c)}}return i}function addTypeMetadata(e,r,n){if(t){addNewTypeMetadata(e,r,n)}else{addOldTypeMetadata(e,r,n)}}function addOldTypeMetadata(e,t,n){if(c.emitDecoratorMetadata){if(shouldAddTypeMetadata(e)){n.push(createMetadataHelper(r,"design:type",serializeTypeOfNode(e)))}if(shouldAddParamTypesMetadata(e)){n.push(createMetadataHelper(r,"design:paramtypes",serializeParameterTypesOfNode(e,t)))}if(shouldAddReturnTypeMetadata(e)){n.push(createMetadataHelper(r,"design:returntype",serializeReturnTypeOfNode(e)))}}}function addNewTypeMetadata(t,n,i){if(c.emitDecoratorMetadata){var a=void 0;if(shouldAddTypeMetadata(t)){(a||(a=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(undefined,undefined,[],undefined,e.createToken(37),serializeTypeOfNode(t))))}if(shouldAddParamTypesMetadata(t)){(a||(a=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(undefined,undefined,[],undefined,e.createToken(37),serializeParameterTypesOfNode(t,n))))}if(shouldAddReturnTypeMetadata(t)){(a||(a=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(undefined,undefined,[],undefined,e.createToken(37),serializeReturnTypeOfNode(t))))}if(a){i.push(createMetadataHelper(r,"design:typeinfo",e.createObjectLiteral(a,true)))}}}function shouldAddTypeMetadata(e){var t=e.kind;return t===156||t===158||t===159||t===154}function shouldAddReturnTypeMetadata(e){return e.kind===156}function shouldAddParamTypesMetadata(t){switch(t.kind){case 240:case 209:return e.getFirstConstructorWithBody(t)!==undefined;case 156:case 158:case 159:return true}return false}function getAccessorTypeNode(t){var r=s.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}function serializeTypeOfNode(t){switch(t.kind){case 154:case 151:return serializeTypeNode(t.type);case 159:case 158:return serializeTypeNode(getAccessorTypeNode(t));case 240:case 209:case 156:return e.createIdentifier("Function");default:return e.createVoidZero()}}function serializeParameterTypesOfNode(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:undefined;var i=[];if(n){var a=getParametersOfDecoratedDeclaration(n,r);var o=a.length;for(var s=0;s<o;s++){var c=a[s];if(s===0&&e.isIdentifier(c.name)&&c.name.escapedText==="this"){continue}if(c.dotDotDotToken){i.push(serializeTypeNode(e.getRestParameterElementType(c.type)))}else{i.push(serializeTypeOfNode(c))}}}return e.createArrayLiteral(i)}function getParametersOfDecoratedDeclaration(t,r){if(r&&t.kind===158){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n){return n.parameters}}return t.parameters}function serializeReturnTypeOfNode(t){if(e.isFunctionLike(t)&&t.type){return serializeTypeNode(t.type)}else if(e.isAsyncFunction(t)){return e.createIdentifier("Promise")}return e.createVoidZero()}function serializeTypeNode(t){if(t===undefined){return e.createIdentifier("Object")}switch(t.kind){case 106:case 141:case 96:case 132:return e.createVoidZero();case 177:return serializeTypeNode(t.type);case 165:case 166:return e.createIdentifier("Function");case 169:case 170:return e.createIdentifier("Array");case 163:case 123:return e.createIdentifier("Boolean");case 138:return e.createIdentifier("String");case 136:return e.createIdentifier("Object");case 182:switch(t.literal.kind){case 10:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 9:return getGlobalBigIntNameWithFallback();case 102:case 87:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(t.literal)}case 135:return e.createIdentifier("Number");case 146:return getGlobalBigIntNameWithFallback();case 139:return l<2?getGlobalSymbolNameWithFallback():e.createIdentifier("Symbol");case 164:return serializeTypeReferenceNode(t);case 174:case 173:return serializeTypeList(t.types);case 175:return serializeTypeList([t.trueType,t.falseType]);case 167:case 179:case 180:case 181:case 168:case 120:case 143:case 178:case 183:break;default:return e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function serializeTypeList(t){var r;for(var n=0,i=t;n<i.length;n++){var a=i[n];while(a.kind===177){a=a.type}if(a.kind===132){continue}if(!u&&(a.kind===96||a.kind===141)){continue}var o=serializeTypeNode(a);if(e.isIdentifier(o)&&o.escapedText==="Object"){return o}else if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText){return e.createIdentifier("Object")}}else{r=o}}return r||e.createVoidZero()}function serializeTypeReferenceNode(t){var r=s.getTypeReferenceSerializationKind(t.typeName,h||y);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)})){return e.createIdentifier("Object")}var n=serializeEntityNameAsExpressionFallback(t.typeName);var i=e.createTempVariable(o);return e.createConditional(e.createTypeCheck(e.createAssignment(i,n),"function"),i,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return serializeEntityNameAsExpression(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return getGlobalBigIntNameWithFallback();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return l<2?getGlobalSymbolNameWithFallback():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(r)}}function createCheckedValue(t,r){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(t),e.createLiteral("undefined")),r)}function serializeEntityNameAsExpressionFallback(t){if(t.kind===72){var r=serializeEntityNameAsExpression(t);return createCheckedValue(r,r)}if(t.left.kind===72){return createCheckedValue(serializeEntityNameAsExpression(t.left),serializeEntityNameAsExpression(t))}var n=serializeEntityNameAsExpressionFallback(t.left);var i=e.createTempVariable(o);return e.createLogicalAnd(e.createLogicalAnd(n.left,e.createStrictInequality(e.createAssignment(i,n.right),e.createVoidZero())),e.createPropertyAccess(i,t.right))}function serializeEntityNameAsExpression(t){switch(t.kind){case 72:var r=e.getMutableClone(t);r.flags&=~8;r.original=undefined;r.parent=e.getParseTreeNode(y);return r;case 148:return serializeQualifiedNameAsExpression(t)}}function serializeQualifiedNameAsExpression(t){return e.createPropertyAccess(serializeEntityNameAsExpression(t.left),t.right)}function getGlobalSymbolNameWithFallback(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function getGlobalBigIntNameWithFallback(){return l<6?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function isSimpleInlineableExpression(t){return!e.isIdentifier(t)&&e.isSimpleCopiableExpression(t)||e.isWellKnownSymbolSyntactically(t)}function getExpressionForPropertyName(t,r){var n=t.name;if(e.isComputedPropertyName(n)){return r&&!isSimpleInlineableExpression(n.expression)?e.getGeneratedNameForNode(n):n.expression}else if(e.isIdentifier(n)){return e.createLiteral(e.idText(n))}else{return e.getSynthesizedClone(n)}}function getPropertyNameExpressionIfNeeded(t,r,n){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,visitor,e.isExpression);var a=e.skipPartiallyEmittedExpressions(i);var s=isSimpleInlineableExpression(a);if(!s&&r){var c=e.getGeneratedNameForNode(t);o(c);return e.createAssignment(c,i)}return n&&(s||e.isIdentifier(a))?undefined:i}}function visitPropertyNameOfClassElement(t){var r=t.name;var n=getPropertyNameExpressionIfNeeded(r,e.some(t.decorators),false);if(n){if(e.some(x)){n=e.inlineExpressions(x.concat([n]));x.length=0}return e.updateComputedPropertyName(r,n)}else{return r}}function visitHeritageClause(t){if(t.token===86){var r=e.visitNodes(t.types,visitor,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(86,r),t)}return undefined}function visitExpressionWithTypeArguments(t){return e.updateExpressionWithTypeArguments(t,undefined,e.visitNode(t.expression,visitor,e.isLeftHandSideExpression))}function shouldEmitFunctionLikeDeclaration(t){return!e.nodeIsMissing(t.body)}function visitPropertyDeclaration(t){var r=getPropertyNameExpressionIfNeeded(t.name,e.some(t.decorators)||!!t.initializer,true);if(r&&!isSimpleInlineableExpression(r)){(x||(x=[])).push(r)}return undefined}function visitConstructor(t){if(!shouldEmitFunctionLikeDeclaration(t)){return undefined}return e.updateConstructor(t,e.visitNodes(t.decorators,visitor,e.isDecorator),e.visitNodes(t.modifiers,visitor,e.isModifier),e.visitParameterList(t.parameters,visitor,r),e.visitFunctionBody(t.body,visitor,r))}function visitMethodDeclaration(t){if(!shouldEmitFunctionLikeDeclaration(t)){return undefined}var n=e.updateMethod(t,undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),t.asteriskToken,visitPropertyNameOfClassElement(t),undefined,undefined,e.visitParameterList(t.parameters,visitor,r),undefined,e.visitFunctionBody(t.body,visitor,r));if(n!==t){e.setCommentRange(n,t);e.setSourceMapRange(n,e.moveRangePastDecorators(t))}return n}function shouldEmitAccessorDeclaration(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function visitGetAccessor(t){if(!shouldEmitAccessorDeclaration(t)){return undefined}var n=e.updateGetAccessor(t,undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),visitPropertyNameOfClassElement(t),e.visitParameterList(t.parameters,visitor,r),undefined,e.visitFunctionBody(t.body,visitor,r)||e.createBlock([]));if(n!==t){e.setCommentRange(n,t);e.setSourceMapRange(n,e.moveRangePastDecorators(t))}return n}function visitSetAccessor(t){if(!shouldEmitAccessorDeclaration(t)){return undefined}var n=e.updateSetAccessor(t,undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),visitPropertyNameOfClassElement(t),e.visitParameterList(t.parameters,visitor,r),e.visitFunctionBody(t.body,visitor,r)||e.createBlock([]));if(n!==t){e.setCommentRange(n,t);e.setSourceMapRange(n,e.moveRangePastDecorators(t))}return n}function visitFunctionDeclaration(t){if(!shouldEmitFunctionLikeDeclaration(t)){return e.createNotEmittedStatement(t)}var n=e.updateFunctionDeclaration(t,undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),t.asteriskToken,t.name,undefined,e.visitParameterList(t.parameters,visitor,r),undefined,e.visitFunctionBody(t.body,visitor,r)||e.createBlock([]));if(isExportOfNamespace(t)){var i=[n];addExportMemberAssignment(i,t);return i}return n}function visitFunctionExpression(t){if(!shouldEmitFunctionLikeDeclaration(t)){return e.createOmittedExpression()}var n=e.updateFunctionExpression(t,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),t.asteriskToken,t.name,undefined,e.visitParameterList(t.parameters,visitor,r),undefined,e.visitFunctionBody(t.body,visitor,r)||e.createBlock([]));return n}function visitArrowFunction(t){var n=e.updateArrowFunction(t,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),undefined,e.visitParameterList(t.parameters,visitor,r),undefined,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,visitor,r));return n}function visitParameter(t){if(e.parameterIsThisKeyword(t)){return undefined}var r=e.createParameter(undefined,undefined,t.dotDotDotToken,e.visitNode(t.name,visitor,e.isBindingName),undefined,undefined,e.visitNode(t.initializer,visitor,e.isExpression));e.setOriginalNode(r,t);e.setTextRange(r,e.moveRangePastModifiers(t));e.setCommentRange(r,t);e.setSourceMapRange(r,e.moveRangePastModifiers(t));e.setEmitFlags(r.name,32);return r}function visitVariableStatement(t){if(isExportOfNamespace(t)){var n=e.getInitializedVariables(t.declarationList);if(n.length===0){return undefined}return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(n,transformInitializedVariable))),t)}else{return e.visitEachChild(t,visitor,r)}}function transformInitializedVariable(t){var n=t.name;if(e.isBindingPattern(n)){return e.flattenDestructuringAssignment(t,visitor,r,0,false,createNamespaceExportExpression)}else{return e.setTextRange(e.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(n),e.visitNode(t.initializer,visitor,e.isExpression)),t)}}function visitVariableDeclaration(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,visitor,e.isBindingName),undefined,e.visitNode(t.initializer,visitor,e.isExpression))}function visitParenthesizedExpression(t){var n=e.skipOuterExpressions(t.expression,~2);if(e.isAssertionExpression(n)){var i=e.visitNode(t.expression,visitor,e.isExpression);if(e.length(e.getLeadingCommentRangesOfNode(i,g))){return e.updateParen(t,i)}return e.createPartiallyEmittedExpression(i,t)}return e.visitEachChild(t,visitor,r)}function visitAssertionExpression(t){var r=e.visitNode(t.expression,visitor,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}function visitNonNullExpression(t){var r=e.visitNode(t.expression,visitor,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}function visitCallExpression(t){return e.updateCall(t,e.visitNode(t.expression,visitor,e.isExpression),undefined,e.visitNodes(t.arguments,visitor,e.isExpression))}function visitNewExpression(t){return e.updateNew(t,e.visitNode(t.expression,visitor,e.isExpression),undefined,e.visitNodes(t.arguments,visitor,e.isExpression))}function visitTaggedTemplateExpression(t){return e.updateTaggedTemplate(t,e.visitNode(t.tag,visitor,e.isExpression),undefined,e.visitNode(t.template,visitor,e.isExpression))}function shouldEmitEnumDeclaration(t){return!e.isEnumConst(t)||c.preserveConstEnums||c.isolatedModules}function visitEnumDeclaration(t){if(!shouldEmitEnumDeclaration(t)){return undefined}var r=[];var n=2;var i=addVarForEnumOrModuleDeclaration(r,t);if(i){if(f!==e.ModuleKind.System||y!==g){n|=512}}var a=getNamespaceParameterName(t);var o=getNamespaceContainerName(t);var s=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(m,t,false,true):e.getLocalName(t,false,true);var c=e.createLogicalOr(s,e.createAssignment(s,e.createObjectLiteral()));if(hasNamespaceQualifiedExportName(t)){var u=e.getLocalName(t,false,true);c=e.createAssignment(u,c)}var l=e.createExpressionStatement(e.createCall(e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,a)],undefined,transformEnumBody(t,o)),undefined,[c]));e.setOriginalNode(l,t);if(i){e.setSyntheticLeadingComments(l,undefined);e.setSyntheticTrailingComments(l,undefined)}e.setTextRange(l,t);e.addEmitFlags(l,n);r.push(l);r.push(e.createEndOfDeclarationMarker(t));return r}function transformEnumBody(t,r){var i=m;m=r;var o=[];n();var s=e.map(t.members,transformEnumMember);e.addStatementsAfterPrologue(o,a());e.addRange(o,s);m=i;return e.createBlock(e.setTextRange(e.createNodeArray(o),t.members),true)}function transformEnumMember(t){var r=getExpressionForPropertyName(t,false);var n=transformEnumMemberDeclarationValue(t);var i=e.createAssignment(e.createElementAccess(m,r),n);var a=n.kind===10?i:e.createAssignment(e.createElementAccess(m,i),r);return e.setTextRange(e.createExpressionStatement(e.setTextRange(a,t)),t)}function transformEnumMemberDeclarationValue(t){var r=s.getConstantValue(t);if(r!==undefined){return e.createLiteral(r)}else{enableSubstitutionForNonQualifiedEnumMembers();if(t.initializer){return e.visitNode(t.initializer,visitor,e.isExpression)}else{return e.createVoidZero()}}}function shouldEmitModuleDeclaration(t){return e.isInstantiatedModule(t,!!c.preserveConstEnums||!!c.isolatedModules)}function hasNamespaceQualifiedExportName(t){return isExportOfNamespace(t)||isExternalModuleExport(t)&&f!==e.ModuleKind.ES2015&&f!==e.ModuleKind.ESNext&&f!==e.ModuleKind.System}function recordEmittedDeclarationInScope(t){if(!v){v=e.createUnderscoreEscapedMap()}var r=declaredNameInScope(t);if(!v.has(r)){v.set(r,t)}}function isFirstEmittedDeclarationInScope(e){if(v){var t=declaredNameInScope(e);return v.get(t)===e}return true}function declaredNameInScope(t){e.Debug.assertNode(t.name,e.isIdentifier);return t.name.escapedText}function addVarForEnumOrModuleDeclaration(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,modifierVisitor,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,false,true))],y.kind===279?0:1));e.setOriginalNode(n,r);recordEmittedDeclarationInScope(r);if(isFirstEmittedDeclarationInScope(r)){if(r.kind===243){e.setSourceMapRange(n.declarationList,r)}else{e.setSourceMapRange(n,r)}e.setCommentRange(n,r);e.addEmitFlags(n,1024|4194304);t.push(n);return true}else{var i=e.createMergeDeclarationMarker(n);e.setEmitFlags(i,1536|4194304);t.push(i);return false}}function visitModuleDeclaration(t){if(!shouldEmitModuleDeclaration(t)){return e.createNotEmittedStatement(t)}e.Debug.assertNode(t.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name.");enableSubstitutionForNamespaceExports();var r=[];var n=2;var i=addVarForEnumOrModuleDeclaration(r,t);if(i){if(f!==e.ModuleKind.System||y!==g){n|=512}}var a=getNamespaceParameterName(t);var o=getNamespaceContainerName(t);var s=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(m,t,false,true):e.getLocalName(t,false,true);var c=e.createLogicalOr(s,e.createAssignment(s,e.createObjectLiteral()));if(hasNamespaceQualifiedExportName(t)){var u=e.getLocalName(t,false,true);c=e.createAssignment(u,c)}var l=e.createExpressionStatement(e.createCall(e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,a)],undefined,transformModuleBody(t,o)),undefined,[c]));e.setOriginalNode(l,t);if(i){e.setSyntheticLeadingComments(l,undefined);e.setSyntheticTrailingComments(l,undefined)}e.setTextRange(l,t);e.addEmitFlags(l,n);r.push(l);r.push(e.createEndOfDeclarationMarker(t));return r}function transformModuleBody(t,r){var i=m;var o=_;var s=v;m=r;_=t;v=undefined;var c=[];n();var u;var l;var f=t.body;if(f.kind===245){saveStateAndInvoke(f,function(t){return e.addRange(c,e.visitNodes(t.statements,namespaceElementVisitor,e.isStatement))});u=f.statements;l=f}else{var d=visitModuleDeclaration(f);if(d){if(e.isArray(d)){e.addRange(c,d)}else{c.push(d)}}var p=getInnerMostModuleDeclarationFromDottedModule(t).body;u=e.moveRangePos(p.statements,-1)}e.addStatementsAfterPrologue(c,a());m=i;_=o;v=s;var g=e.createBlock(e.setTextRange(e.createNodeArray(c),u),true);e.setTextRange(g,l);if(f.kind!==245){e.setEmitFlags(g,e.getEmitFlags(g)|1536)}return g}function getInnerMostModuleDeclarationFromDottedModule(e){if(e.body.kind===244){var t=getInnerMostModuleDeclarationFromDottedModule(e.body);return t||e.body}}function visitImportDeclaration(t){if(!t.importClause){return t}var r=e.visitNode(t.importClause,visitImportClause,e.isImportClause);return r?e.updateImportDeclaration(t,undefined,undefined,r,t.moduleSpecifier):undefined}function visitImportClause(t){var r=s.isReferencedAliasDeclaration(t)?t.name:undefined;var n=e.visitNode(t.namedBindings,visitNamedImportBindings,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n):undefined}function visitNamedImportBindings(t){if(t.kind===251){return s.isReferencedAliasDeclaration(t)?t:undefined}else{var r=e.visitNodes(t.elements,visitImportSpecifier,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):undefined}}function visitImportSpecifier(e){return s.isReferencedAliasDeclaration(e)?e:undefined}function visitExportAssignment(t){return s.isValueAliasDeclaration(t)?e.visitEachChild(t,visitor,r):undefined}function visitExportDeclaration(t){if(!t.exportClause){return c.isolatedModules||s.moduleExportsSomeValue(t.moduleSpecifier)?t:undefined}if(!s.isValueAliasDeclaration(t)){return undefined}var r=e.visitNode(t.exportClause,visitNamedExports,e.isNamedExports);return r?e.updateExportDeclaration(t,undefined,undefined,r,t.moduleSpecifier):undefined}function visitNamedExports(t){var r=e.visitNodes(t.elements,visitExportSpecifier,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):undefined}function visitExportSpecifier(e){return s.isValueAliasDeclaration(e)?e:undefined}function shouldEmitImportEqualsDeclaration(t){return s.isReferencedAliasDeclaration(t)||!e.isExternalModule(g)&&s.isTopLevelValueImportEqualsWithEntityName(t)}function visitImportEqualsDeclaration(t){if(e.isExternalModuleImportEqualsDeclaration(t)){return s.isReferencedAliasDeclaration(t)?e.visitEachChild(t,visitor,r):undefined}if(!shouldEmitImportEqualsDeclaration(t)){return undefined}var n=e.createExpressionFromEntityName(t.moduleReference);e.setEmitFlags(n,1536|2048);if(isNamedExternalModuleExport(t)||!isExportOfNamespace(t)){return e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(t.name,undefined,n),t)])),t),t)}else{return e.setOriginalNode(createNamespaceExport(t.name,n,t),t)}}function isExportOfNamespace(t){return _!==undefined&&e.hasModifier(t,1)}function isExternalModuleExport(t){return _===undefined&&e.hasModifier(t,1)}function isNamedExternalModuleExport(t){return isExternalModuleExport(t)&&!e.hasModifier(t,512)}function isDefaultExternalModuleExport(t){return isExternalModuleExport(t)&&e.hasModifier(t,512)}function expressionToStatement(t){return e.createExpressionStatement(t)}function addExportMemberAssignment(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(m,r,false,true),e.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var i=e.createExpressionStatement(n);e.setSourceMapRange(i,e.createRange(-1,r.end));t.push(i)}function createNamespaceExport(t,r,n){return e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(m,t,false,true),r)),n)}function createNamespaceExportExpression(t,r,n){return e.setTextRange(e.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(t),r),n)}function getNamespaceMemberNameWithSourceMapsAndWithoutComments(t){return e.getNamespaceMemberName(m,t,false,true)}function getNamespaceParameterName(t){var r=e.getGeneratedNameForNode(t);e.setSourceMapRange(r,t.name);return r}function getNamespaceContainerName(t){return e.getGeneratedNameForNode(t)}function getClassAliasIfNeeded(t){if(s.getNodeCheckFlags(t)&16777216){enableSubstitutionForClassAliases();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");S[e.getOriginalNodeId(t)]=r;o(r);return r}}function getClassPrototype(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}function getClassMemberPrefix(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):getClassPrototype(t)}function enableSubstitutionForNonQualifiedEnumMembers(){if((T&8)===0){T|=8;r.enableSubstitution(72)}}function enableSubstitutionForClassAliases(){if((T&1)===0){T|=1;r.enableSubstitution(72);S=[]}}function enableSubstitutionForNamespaceExports(){if((T&2)===0){T|=2;r.enableSubstitution(72);r.enableSubstitution(276);r.enableEmitNotification(244)}}function isTransformedModuleDeclaration(t){return e.getOriginalNode(t).kind===244}function isTransformedEnumDeclaration(t){return e.getOriginalNode(t).kind===243}function onEmitNode(t,r,n){var i=b;var a=g;if(e.isSourceFile(r)){g=r}if(T&2&&isTransformedModuleDeclaration(r)){b|=2}if(T&8&&isTransformedEnumDeclaration(r)){b|=8}d(t,r,n);b=i;g=a}function onSubstituteNode(t,r){r=p(t,r);if(t===1){return substituteExpression(r)}else if(e.isShorthandPropertyAssignment(r)){return substituteShorthandPropertyAssignment(r)}return r}function substituteShorthandPropertyAssignment(t){if(T&2){var r=t.name;var n=trySubstituteNamespaceExportedName(r);if(n){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}}return t}function substituteExpression(e){switch(e.kind){case 72:return substituteExpressionIdentifier(e);case 189:return substitutePropertyAccessExpression(e);case 190:return substituteElementAccessExpression(e)}return e}function substituteExpressionIdentifier(e){return trySubstituteClassAlias(e)||trySubstituteNamespaceExportedName(e)||e}function trySubstituteClassAlias(t){if(T&1){if(s.getNodeCheckFlags(t)&33554432){var r=s.getReferencedValueDeclaration(t);if(r){var n=S[r.id];if(n){var i=e.getSynthesizedClone(n);e.setSourceMapRange(i,t);e.setCommentRange(i,t);return i}}}}return undefined}function trySubstituteNamespaceExportedName(t){if(T&b&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=s.getReferencedExportContainer(t,false);if(r&&r.kind!==279){var n=b&2&&r.kind===244||b&8&&r.kind===243;if(n){return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}}return undefined}function substitutePropertyAccessExpression(e){return substituteConstantValue(e)}function substituteElementAccessExpression(e){return substituteConstantValue(e)}function substituteConstantValue(t){var r=tryGetConstEnumValue(t);if(r!==undefined){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!c.removeComments){var i=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);e.addSyntheticTrailingComment(n,3," "+i+" ")}return n}return t}function tryGetConstEnumValue(t){if(c.isolatedModules){return undefined}return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?s.getConstantValue(t):undefined}}e.transformTypeScript=transformTypeScript;function createDecorateHelper(t,r,n,a,o,s){var c=[];c.push(e.createArrayLiteral(r,true));c.push(n);if(a){c.push(a);if(o){c.push(o)}}t.requestEmitHelper(i);return e.setTextRange(e.createCall(e.getHelperName("__decorate"),undefined,c),s)}var i={name:"typescript:decorate",scoped:false,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'};function createMetadataHelper(t,r,n){t.requestEmitHelper(a);return e.createCall(e.getHelperName("__metadata"),undefined,[e.createLiteral(r),n])}var a={name:"typescript:metadata",scoped:false,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 };'};function createParamHelper(t,r,n,i){t.requestEmitHelper(o);return e.setTextRange(e.createCall(e.getHelperName("__param"),undefined,[e.createLiteral(n),r]),i)}var o={name:"typescript:param",scoped:false,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}})(s||(s={}));var s;(function(e){var t;(function(e){e[e["AsyncMethodsWithSuper"]=1]="AsyncMethodsWithSuper"})(t||(t={}));function transformES2017(t){var r=t.resumeLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration;var a=t.getEmitResolver();var o=t.getCompilerOptions();var s=e.getEmitScriptTarget(o);var c;var u=0;var l;var f;var d;var p=[];var g=t.onEmitNode;var _=t.onSubstituteNode;t.onEmitNode=onEmitNode;t.onSubstituteNode=onSubstituteNode;return e.chainBundle(transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile){return r}var n=e.visitEachChild(r,visitor,t);e.addEmitHelpers(n,t.readEmitHelpers());return n}function visitor(r){if((r.transformFlags&16)===0){return r}switch(r.kind){case 121:return undefined;case 201:return visitAwaitExpression(r);case 156:return visitMethodDeclaration(r);case 239:return visitFunctionDeclaration(r);case 196:return visitFunctionExpression(r);case 197:return visitArrowFunction(r);case 189:if(f&&e.isPropertyAccessExpression(r)&&r.expression.kind===98){f.set(r.name.escapedText,true)}return e.visitEachChild(r,visitor,t);case 190:if(f&&r.expression.kind===98){d=true}return e.visitEachChild(r,visitor,t);default:return e.visitEachChild(r,visitor,t)}}function asyncBodyVisitor(r){if(e.isNodeWithPossibleHoistedDeclaration(r)){switch(r.kind){case 219:return visitVariableStatementInAsyncBody(r);case 225:return visitForStatementInAsyncBody(r);case 226:return visitForInStatementInAsyncBody(r);case 227:return visitForOfStatementInAsyncBody(r);case 274:return visitCatchClauseInAsyncBody(r);case 218:case 232:case 246:case 271:case 272:case 235:case 223:case 224:case 222:case 231:case 233:return e.visitEachChild(r,asyncBodyVisitor,t);default:return e.Debug.assertNever(r,"Unhandled node.")}}return visitor(r)}function visitCatchClauseInAsyncBody(r){var n=e.createUnderscoreEscapedMap();recordDeclarationName(r.variableDeclaration,n);var i;n.forEach(function(t,r){if(l.has(r)){if(!i){i=e.cloneMap(l)}i.delete(r)}});if(i){var a=l;l=i;var o=e.visitEachChild(r,asyncBodyVisitor,t);l=a;return o}else{return e.visitEachChild(r,asyncBodyVisitor,t)}}function visitVariableStatementInAsyncBody(r){if(isVariableDeclarationListWithCollidingName(r.declarationList)){var n=visitVariableDeclarationListWithCollidingNames(r.declarationList,false);return n?e.createExpressionStatement(n):undefined}return e.visitEachChild(r,visitor,t)}function visitForInStatementInAsyncBody(t){return e.updateForIn(t,isVariableDeclarationListWithCollidingName(t.initializer)?visitVariableDeclarationListWithCollidingNames(t.initializer,true):e.visitNode(t.initializer,visitor,e.isForInitializer),e.visitNode(t.expression,visitor,e.isExpression),e.visitNode(t.statement,asyncBodyVisitor,e.isStatement,e.liftToBlock))}function visitForOfStatementInAsyncBody(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,visitor,e.isToken),isVariableDeclarationListWithCollidingName(t.initializer)?visitVariableDeclarationListWithCollidingNames(t.initializer,true):e.visitNode(t.initializer,visitor,e.isForInitializer),e.visitNode(t.expression,visitor,e.isExpression),e.visitNode(t.statement,asyncBodyVisitor,e.isStatement,e.liftToBlock))}function visitForStatementInAsyncBody(t){var r=t.initializer;return e.updateFor(t,isVariableDeclarationListWithCollidingName(r)?visitVariableDeclarationListWithCollidingNames(r,false):e.visitNode(t.initializer,visitor,e.isForInitializer),e.visitNode(t.condition,visitor,e.isExpression),e.visitNode(t.incrementor,visitor,e.isExpression),e.visitNode(t.statement,asyncBodyVisitor,e.isStatement,e.liftToBlock))}function visitAwaitExpression(t){return e.setOriginalNode(e.setTextRange(e.createYield(undefined,e.visitNode(t.expression,visitor,e.isExpression)),t),t)}function visitMethodDeclaration(r){return e.updateMethod(r,undefined,e.visitNodes(r.modifiers,visitor,e.isModifier),r.asteriskToken,r.name,undefined,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,e.getFunctionFlags(r)&2?transformAsyncFunctionBody(r):e.visitFunctionBody(r.body,visitor,t))}function visitFunctionDeclaration(r){return e.updateFunctionDeclaration(r,undefined,e.visitNodes(r.modifiers,visitor,e.isModifier),r.asteriskToken,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,e.getFunctionFlags(r)&2?transformAsyncFunctionBody(r):e.visitFunctionBody(r.body,visitor,t))}function visitFunctionExpression(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,visitor,e.isModifier),r.asteriskToken,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,e.getFunctionFlags(r)&2?transformAsyncFunctionBody(r):e.visitFunctionBody(r.body,visitor,t))}function visitArrowFunction(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,visitor,e.isModifier),undefined,e.visitParameterList(r.parameters,visitor,t),undefined,r.equalsGreaterThanToken,e.getFunctionFlags(r)&2?transformAsyncFunctionBody(r):e.visitFunctionBody(r.body,visitor,t))}function recordDeclarationName(t,r){var n=t.name;if(e.isIdentifier(n)){r.set(n.escapedText,true)}else{for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){recordDeclarationName(o,r)}}}}function isVariableDeclarationListWithCollidingName(t){return!!t&&e.isVariableDeclarationList(t)&&!(t.flags&3)&&t.declarations.some(collidesWithParameterName)}function visitVariableDeclarationListWithCollidingNames(t,r){hoistVariableDeclarationList(t);var n=e.getInitializedVariables(t);if(n.length===0){if(r){return e.visitNode(e.convertToAssignmentElementTarget(t.declarations[0].name),visitor,e.isExpression)}return undefined}return e.inlineExpressions(e.map(n,transformInitializedVariable))}function hoistVariableDeclarationList(t){e.forEach(t.declarations,hoistVariable)}function hoistVariable(t){var r=t.name;if(e.isIdentifier(r)){i(r)}else{for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)){hoistVariable(o)}}}}function transformInitializedVariable(t){var r=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,visitor,e.isExpression)}function collidesWithParameterName(t){var r=t.name;if(e.isIdentifier(r)){return l.has(r.escapedText)}else{for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)&&collidesWithParameterName(a)){return true}}}return false}function transformAsyncFunctionBody(i){r();var o=e.getOriginalNode(i,e.isFunctionLike);var c=o.type;var u=s<2?getPromiseConstructor(c):undefined;var g=i.kind===197;var _=(a.getNodeCheckFlags(i)&8192)!==0;var m=l;l=e.createUnderscoreEscapedMap();for(var y=0,h=i.parameters;y<h.length;y++){var v=h[y];recordDeclarationName(v,l)}var T=f;var S=d;f=e.createUnderscoreEscapedMap();d=false;var b;if(!g){var x=[];var C=e.addPrologue(x,i.body.statements,false,visitor);x.push(e.createReturn(createAwaiterHelper(t,_,u,transformAsyncFunctionBodyWorker(i.body,C))));e.addStatementsAfterPrologue(x,n());var E=s>=2&&a.getNodeCheckFlags(i)&(4096|2048);if(E){enableSubstitutionForAsyncMethodsWithSuper();var D=createSuperAccessVariableStatement(a,i,f);p[e.getNodeId(D)]=true;e.addStatementsAfterPrologue(x,[D])}var k=e.createBlock(x,true);e.setTextRange(k,i.body);if(E&&d){if(a.getNodeCheckFlags(i)&4096){e.addEmitHelper(k,e.advancedAsyncSuperHelper)}else if(a.getNodeCheckFlags(i)&2048){e.addEmitHelper(k,e.asyncSuperHelper)}}b=k}else{var N=createAwaiterHelper(t,_,u,transformAsyncFunctionBodyWorker(i.body));var A=n();if(e.some(A)){var k=e.convertToFunctionBody(N);b=e.updateBlock(k,e.setTextRange(e.createNodeArray(e.concatenate(A,k.statements)),k.statements))}else{b=N}}l=m;f=T;d=S;return b}function transformAsyncFunctionBodyWorker(t,r){if(e.isBlock(t)){return e.updateBlock(t,e.visitNodes(t.statements,asyncBodyVisitor,e.isStatement,r))}else{return e.convertToFunctionBody(e.visitNode(t,asyncBodyVisitor,e.isConciseBody))}}function getPromiseConstructor(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=a.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown){return r}}return undefined}function enableSubstitutionForAsyncMethodsWithSuper(){if((c&1)===0){c|=1;t.enableSubstitution(191);t.enableSubstitution(189);t.enableSubstitution(190);t.enableEmitNotification(240);t.enableEmitNotification(156);t.enableEmitNotification(158);t.enableEmitNotification(159);t.enableEmitNotification(157);t.enableEmitNotification(219)}}function onEmitNode(t,r,n){if(c&1&&isSuperContainer(r)){var i=a.getNodeCheckFlags(r)&(2048|4096);if(i!==u){var o=u;u=i;g(t,r,n);u=o;return}}else if(c&&p[e.getNodeId(r)]){var o=u;u=0;g(t,r,n);u=o;return}g(t,r,n)}function onSubstituteNode(e,t){t=_(e,t);if(e===1&&u){return substituteExpression(t)}return t}function substituteExpression(e){switch(e.kind){case 189:return substitutePropertyAccessExpression(e);case 190:return substituteElementAccessExpression(e);case 191:return substituteCallExpression(e)}return e}function substitutePropertyAccessExpression(t){if(t.expression.kind===98){return e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t)}return t}function substituteElementAccessExpression(e){if(e.expression.kind===98){return createSuperElementAccessInAsyncMethod(e.argumentExpression,e)}return e}function substituteCallExpression(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?substitutePropertyAccessExpression(r):substituteElementAccessExpression(r);return e.createCall(e.createPropertyAccess(n,"call"),undefined,[e.createThis()].concat(t.arguments))}return t}function isSuperContainer(e){var t=e.kind;return t===240||t===157||t===156||t===158||t===159}function createSuperElementAccessInAsyncMethod(t,r){if(u&4096){return e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),undefined,[t]),"value"),r)}else{return e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),undefined,[t]),r)}}}e.transformES2017=transformES2017;function createSuperAccessVariableStatement(t,r,n){var i=(t.getNodeCheckFlags(r)&4096)!==0;var a=[];n.forEach(function(t,r){var n=e.unescapeLeadingUnderscores(r);var o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(undefined,undefined,[],undefined,undefined,e.createPropertyAccess(e.createSuper(),n))));if(i){o.push(e.createPropertyAssignment("set",e.createArrowFunction(undefined,undefined,[e.createParameter(undefined,undefined,undefined,"v",undefined,undefined,undefined)],undefined,undefined,e.createAssignment(e.createPropertyAccess(e.createSuper(),n),e.createIdentifier("v")))))}a.push(e.createPropertyAssignment(n,e.createObjectLiteral(o)))});return e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),undefined,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),undefined,[e.createNull(),e.createObjectLiteral(a,true)]))],2))}e.createSuperAccessVariableStatement=createSuperAccessVariableStatement;var r={name:"typescript:awaiter",scoped:false,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\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) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};function createAwaiterHelper(t,n,i,a){t.requestEmitHelper(r);var o=e.createFunctionExpression(undefined,e.createToken(40),undefined,undefined,[],undefined,a);(o.emitNode||(o.emitNode={})).flags|=262144|524288;return e.createCall(e.getHelperName("__awaiter"),undefined,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}e.asyncSuperHelper={name:"typescript:async-super",scoped:true,text:e.helperString(a(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")};e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:true,text:e.helperString(a(["\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")}})(s||(s={}));var s;(function(e){var t;(function(e){e[e["AsyncMethodsWithSuper"]=1]="AsyncMethodsWithSuper"})(t||(t={}));function transformESNext(t){var r=t.resumeLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration;var a=t.getEmitResolver();var o=t.getCompilerOptions();var s=e.getEmitScriptTarget(o);var c=t.onEmitNode;t.onEmitNode=onEmitNode;var u=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;var l;var f;var d=0;var p;var g;var _=[];return e.chainBundle(transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile){return r}var n=e.visitEachChild(r,visitor,t);e.addEmitHelpers(n,t.readEmitHelpers());return n}function visitor(e){return visitorWorker(e,false)}function visitorNoDestructuringValue(e){return visitorWorker(e,true)}function visitorNoAsyncModifier(e){if(e.kind===121){return undefined}return e}function visitorWorker(r,n){if((r.transformFlags&8)===0){return r}switch(r.kind){case 201:return visitAwaitExpression(r);case 207:return visitYieldExpression(r);case 230:return visitReturnStatement(r);case 233:return visitLabeledStatement(r);case 188:return visitObjectLiteralExpression(r);case 204:return visitBinaryExpression(r,n);case 237:return visitVariableDeclaration(r);case 227:return visitForOfStatement(r,undefined);case 225:return visitForStatement(r);case 200:return visitVoidExpression(r);case 157:return visitConstructorDeclaration(r);case 156:return visitMethodDeclaration(r);case 158:return visitGetAccessorDeclaration(r);case 159:return visitSetAccessorDeclaration(r);case 239:return visitFunctionDeclaration(r);case 196:return visitFunctionExpression(r);case 197:return visitArrowFunction(r);case 151:return visitParameter(r);case 221:return visitExpressionStatement(r);case 195:return visitParenthesizedExpression(r,n);case 274:return visitCatchClause(r);case 189:if(p&&e.isPropertyAccessExpression(r)&&r.expression.kind===98){p.set(r.name.escapedText,true)}return e.visitEachChild(r,visitor,t);case 190:if(p&&r.expression.kind===98){g=true}return e.visitEachChild(r,visitor,t);default:return e.visitEachChild(r,visitor,t)}}function visitAwaitExpression(r){if(f&2&&f&1){return e.setOriginalNode(e.setTextRange(e.createYield(createAwaitHelper(t,e.visitNode(r.expression,visitor,e.isExpression))),r),r)}return e.visitEachChild(r,visitor,t)}function visitYieldExpression(r){if(f&2&&f&1){if(r.asteriskToken){var n=e.visitNode(r.expression,visitor,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(createAwaitHelper(t,e.updateYield(r,r.asteriskToken,createAsyncDelegatorHelper(t,createAsyncValuesHelper(t,n,n),n)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(createDownlevelAwait(r.expression?e.visitNode(r.expression,visitor,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,visitor,t)}function visitReturnStatement(r){if(f&2&&f&1){return e.updateReturn(r,createDownlevelAwait(r.expression?e.visitNode(r.expression,visitor,e.isExpression):e.createVoidZero()))}return e.visitEachChild(r,visitor,t)}function visitLabeledStatement(r){if(f&2){var n=e.unwrapInnermostStatementOfLabel(r);if(n.kind===227&&n.awaitModifier){return visitForOfStatement(n,r)}return e.restoreEnclosingLabel(e.visitEachChild(n,visitor,t),r)}return e.visitEachChild(r,visitor,t)}function chunkObjectLiteralElements(t){var r;var n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];if(o.kind===277){if(r){n.push(e.createObjectLiteral(r));r=undefined}var s=o.expression;n.push(e.visitNode(s,visitor,e.isExpression))}else{r=e.append(r,o.kind===275?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,visitor,e.isExpression)):e.visitNode(o,visitor,e.isObjectLiteralElementLike))}}if(r){n.push(e.createObjectLiteral(r))}return n}function visitObjectLiteralExpression(r){if(r.transformFlags&262144){var n=chunkObjectLiteralElements(r.properties);if(n.length&&n[0].kind!==188){n.unshift(e.createObjectLiteral())}return createAssignHelper(t,n)}return e.visitEachChild(r,visitor,t)}function visitExpressionStatement(r){return e.visitEachChild(r,visitorNoDestructuringValue,t)}function visitParenthesizedExpression(r,n){return e.visitEachChild(r,n?visitorNoDestructuringValue:visitor,t)}function visitCatchClause(r){if(!r.variableDeclaration){return e.updateCatchClause(r,e.createVariableDeclaration(e.createTempVariable(undefined)),e.visitNode(r.block,visitor,e.isBlock))}return e.visitEachChild(r,visitor,t)}function visitBinaryExpression(r,n){if(e.isDestructuringAssignment(r)&&r.left.transformFlags&262144){return e.flattenDestructuringAssignment(r,visitor,t,1,!n)}else if(r.operatorToken.kind===27){return e.updateBinary(r,e.visitNode(r.left,visitorNoDestructuringValue,e.isExpression),e.visitNode(r.right,n?visitorNoDestructuringValue:visitor,e.isExpression))}return e.visitEachChild(r,visitor,t)}function visitVariableDeclaration(r){if(e.isBindingPattern(r.name)&&r.name.transformFlags&262144){return e.flattenDestructuringBinding(r,visitor,t,1)}return e.visitEachChild(r,visitor,t)}function visitForStatement(t){return e.updateFor(t,e.visitNode(t.initializer,visitorNoDestructuringValue,e.isForInitializer),e.visitNode(t.condition,visitor,e.isExpression),e.visitNode(t.incrementor,visitor,e.isExpression),e.visitNode(t.statement,visitor,e.isStatement))}function visitVoidExpression(r){return e.visitEachChild(r,visitorNoDestructuringValue,t)}function visitForOfStatement(r,n){if(r.initializer.transformFlags&262144){r=transformForOfStatementWithObjectRest(r)}if(r.awaitModifier){return transformForAwaitOfStatement(r,n)}else{return e.restoreEnclosingLabel(e.visitEachChild(r,visitor,t),n)}}function transformForOfStatementWithObjectRest(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var n=void 0;var i=void 0;var a=e.createTempVariable(undefined);var o=[e.createForOfBindingStatement(r,a)];if(e.isBlock(t.statement)){e.addRange(o,t.statement.statements);n=t.statement;i=t.statement.statements}else if(t.statement){e.append(o,t.statement);n=t.statement;i=t.statement}return e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),true),n))}return t}function convertForOfStatementHead(t,r){var n=e.createForOfBindingStatement(t.initializer,r);var i;var a;var o=[e.visitNode(n,visitor,e.isStatement)];var s=e.visitNode(t.statement,visitor,e.isStatement);if(e.isBlock(s)){e.addRange(o,s.statements);i=s;a=s.statements}else{o.push(s)}return e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),a),true),i),48|384)}function createDownlevelAwait(r){return f&1?e.createYield(undefined,createAwaitHelper(t,r)):e.createAwait(r)}function transformForAwaitOfStatement(r,n){var a=e.visitNode(r.expression,visitor,e.isExpression);var o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(undefined);var s=e.isIdentifier(a)?e.getGeneratedNameForNode(o):e.createTempVariable(undefined);var c=e.createUniqueName("e");var u=e.getGeneratedNameForNode(c);var l=e.createTempVariable(undefined);var f=createAsyncValuesHelper(t,a,r.expression);var d=e.createCall(e.createPropertyAccess(o,"next"),undefined,[]);var p=e.createPropertyAccess(s,"done");var g=e.createPropertyAccess(s,"value");var _=e.createFunctionCall(l,o,[]);i(c);i(l);var m=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,undefined,f),r.expression),e.createVariableDeclaration(s)]),r.expression),2097152),e.createComma(e.createAssignment(s,createDownlevelAwait(d)),e.createLogicalNot(p)),undefined,convertForOfStatementHead(r,g)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(m,n)]),e.createCatchClause(e.createVariableDeclaration(u),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(c,e.createObjectLiteral([e.createPropertyAssignment("error",u)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(p)),e.createAssignment(l,e.createPropertyAccess(o,"return"))),e.createExpressionStatement(createDownlevelAwait(_))),1)]),undefined,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(c,e.createThrow(e.createPropertyAccess(c,"error"))),1)]),1))]))}function visitParameter(r){if(r.transformFlags&262144){return e.updateParameter(r,undefined,undefined,r.dotDotDotToken,e.getGeneratedNameForNode(r),undefined,undefined,e.visitNode(r.initializer,visitor,e.isExpression))}return e.visitEachChild(r,visitor,t)}function visitConstructorDeclaration(r){var n=f;f=0;var i=e.updateConstructor(r,undefined,r.modifiers,e.visitParameterList(r.parameters,visitor,t),transformFunctionBody(r));f=n;return i}function visitGetAccessorDeclaration(r){var n=f;f=0;var i=e.updateGetAccessor(r,undefined,r.modifiers,e.visitNode(r.name,visitor,e.isPropertyName),e.visitParameterList(r.parameters,visitor,t),undefined,transformFunctionBody(r));f=n;return i}function visitSetAccessorDeclaration(r){var n=f;f=0;var i=e.updateSetAccessor(r,undefined,r.modifiers,e.visitNode(r.name,visitor,e.isPropertyName),e.visitParameterList(r.parameters,visitor,t),transformFunctionBody(r));f=n;return i}function visitMethodDeclaration(r){var n=f;f=e.getFunctionFlags(r);var i=e.updateMethod(r,undefined,f&1?e.visitNodes(r.modifiers,visitorNoAsyncModifier,e.isModifier):r.modifiers,f&2?undefined:r.asteriskToken,e.visitNode(r.name,visitor,e.isPropertyName),e.visitNode(undefined,visitor,e.isToken),undefined,e.visitParameterList(r.parameters,visitor,t),undefined,f&2&&f&1?transformAsyncGeneratorFunctionBody(r):transformFunctionBody(r));f=n;return i}function visitFunctionDeclaration(r){var n=f;f=e.getFunctionFlags(r);var i=e.updateFunctionDeclaration(r,undefined,f&1?e.visitNodes(r.modifiers,visitorNoAsyncModifier,e.isModifier):r.modifiers,f&2?undefined:r.asteriskToken,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,f&2&&f&1?transformAsyncGeneratorFunctionBody(r):transformFunctionBody(r));f=n;return i}function visitArrowFunction(r){var n=f;f=e.getFunctionFlags(r);var i=e.updateArrowFunction(r,r.modifiers,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,r.equalsGreaterThanToken,transformFunctionBody(r));f=n;return i}function visitFunctionExpression(r){var n=f;f=e.getFunctionFlags(r);var i=e.updateFunctionExpression(r,f&1?e.visitNodes(r.modifiers,visitorNoAsyncModifier,e.isModifier):r.modifiers,f&2?undefined:r.asteriskToken,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,f&2&&f&1?transformAsyncGeneratorFunctionBody(r):transformFunctionBody(r));f=n;return i}function transformAsyncGeneratorFunctionBody(i){r();var o=[];var c=e.addPrologue(o,i.body.statements,false,visitor);appendObjectRestAssignmentsIfNeeded(o,i);var u=p;var l=g;p=e.createUnderscoreEscapedMap();g=false;var f=e.createReturn(createAsyncGeneratorHelper(t,e.createFunctionExpression(undefined,e.createToken(40),i.name&&e.getGeneratedNameForNode(i.name),undefined,[],undefined,e.updateBlock(i.body,e.visitLexicalEnvironment(i.body.statements,visitor,t,c)))));var d=s>=2&&a.getNodeCheckFlags(i)&(4096|2048);if(d){enableSubstitutionForAsyncMethodsWithSuper();var m=e.createSuperAccessVariableStatement(a,i,p);_[e.getNodeId(m)]=true;e.addStatementsAfterPrologue(o,[m])}o.push(f);e.addStatementsAfterPrologue(o,n());var y=e.updateBlock(i.body,o);if(d&&g){if(a.getNodeCheckFlags(i)&4096){e.addEmitHelper(y,e.advancedAsyncSuperHelper)}else if(a.getNodeCheckFlags(i)&2048){e.addEmitHelper(y,e.asyncSuperHelper)}}p=u;g=l;return y}function transformFunctionBody(t){r();var i=0;var a=[];var o=e.visitNode(t.body,visitor,e.isConciseBody);if(e.isBlock(o)){i=e.addPrologue(a,o.statements,false,visitor)}e.addRange(a,appendObjectRestAssignmentsIfNeeded(undefined,t));var s=n();if(i>0||e.some(a)||e.some(s)){var c=e.convertToFunctionBody(o,true);e.addStatementsAfterPrologue(a,s);e.addRange(a,c.statements.slice(i));return e.updateBlock(c,e.setTextRange(e.createNodeArray(a),c.statements))}return o}function appendObjectRestAssignmentsIfNeeded(r,n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];if(o.transformFlags&262144){var s=e.getGeneratedNameForNode(o);var c=e.flattenDestructuringBinding(o,visitor,t,1,s,false,true);if(e.some(c)){var u=e.createVariableStatement(undefined,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576);r=e.append(r,u)}}}return r}function enableSubstitutionForAsyncMethodsWithSuper(){if((l&1)===0){l|=1;t.enableSubstitution(191);t.enableSubstitution(189);t.enableSubstitution(190);t.enableEmitNotification(240);t.enableEmitNotification(156);t.enableEmitNotification(158);t.enableEmitNotification(159);t.enableEmitNotification(157);t.enableEmitNotification(219)}}function onEmitNode(t,r,n){if(l&1&&isSuperContainer(r)){var i=a.getNodeCheckFlags(r)&(2048|4096);if(i!==d){var o=d;d=i;c(t,r,n);d=o;return}}else if(l&&_[e.getNodeId(r)]){var o=d;d=0;c(t,r,n);d=o;return}c(t,r,n)}function onSubstituteNode(e,t){t=u(e,t);if(e===1&&d){return substituteExpression(t)}return t}function substituteExpression(e){switch(e.kind){case 189:return substitutePropertyAccessExpression(e);case 190:return substituteElementAccessExpression(e);case 191:return substituteCallExpression(e)}return e}function substitutePropertyAccessExpression(t){if(t.expression.kind===98){return e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t)}return t}function substituteElementAccessExpression(e){if(e.expression.kind===98){return createSuperElementAccessInAsyncMethod(e.argumentExpression,e)}return e}function substituteCallExpression(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?substitutePropertyAccessExpression(r):substituteElementAccessExpression(r);return e.createCall(e.createPropertyAccess(n,"call"),undefined,[e.createThis()].concat(t.arguments))}return t}function isSuperContainer(e){var t=e.kind;return t===240||t===157||t===156||t===158||t===159}function createSuperElementAccessInAsyncMethod(t,r){if(d&4096){return e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),undefined,[t]),"value"),r)}else{return e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),undefined,[t]),r)}}}e.transformESNext=transformESNext;var r={name:"typescript:assign",scoped:false,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 };"};function createAssignHelper(t,n){if(t.getCompilerOptions().target>=2){return e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),undefined,n)}t.requestEmitHelper(r);return e.createCall(e.getHelperName("__assign"),undefined,n)}e.createAssignHelper=createAssignHelper;var n={name:"typescript:await",scoped:false,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"};function createAwaitHelper(t,r){t.requestEmitHelper(n);return e.createCall(e.getHelperName("__await"),undefined,[r])}var i={name:"typescript:asyncGenerator",scoped:false,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 };'};function createAsyncGeneratorHelper(t,r){t.requestEmitHelper(n);t.requestEmitHelper(i);(r.emitNode||(r.emitNode={})).flags|=262144;return e.createCall(e.getHelperName("__asyncGenerator"),undefined,[e.createThis(),e.createIdentifier("arguments"),r])}var a={name:"typescript:asyncDelegator",scoped:false,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 };'};function createAsyncDelegatorHelper(t,r,i){t.requestEmitHelper(n);t.requestEmitHelper(a);return e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),undefined,[r]),i)}var o={name:"typescript:asyncValues",scoped:false,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 };'};function createAsyncValuesHelper(t,r,n){t.requestEmitHelper(o);return e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),undefined,[r]),n)}})(s||(s={}));var s;(function(e){function transformJsx(r){var n=r.getCompilerOptions();var i;return e.chainBundle(transformSourceFile);function transformSourceFile(t){if(t.isDeclarationFile){return t}i=t;var n=e.visitEachChild(t,visitor,r);e.addEmitHelpers(n,r.readEmitHelpers());return n}function visitor(e){if(e.transformFlags&4){return visitorWorker(e)}else{return e}}function visitorWorker(t){switch(t.kind){case 260:return visitJsxElement(t,false);case 261:return visitJsxSelfClosingElement(t,false);case 264:return visitJsxFragment(t,false);case 270:return visitJsxExpression(t);default:return e.visitEachChild(t,visitor,r)}}function transformJsxChildToExpression(t){switch(t.kind){case 11:return visitJsxText(t);case 270:return visitJsxExpression(t);case 260:return visitJsxElement(t,true);case 261:return visitJsxSelfClosingElement(t,true);case 264:return visitJsxFragment(t,true);default:return e.Debug.failBadSyntaxKind(t)}}function visitJsxElement(e,t){return visitJsxOpeningLikeElement(e.openingElement,e.children,t,e)}function visitJsxSelfClosingElement(e,t){return visitJsxOpeningLikeElement(e,undefined,t,e)}function visitJsxFragment(e,t){return visitJsxOpeningFragment(e.openingFragment,e.children,t,e)}function visitJsxOpeningLikeElement(t,a,o,s){var c=getTagName(t);var u;var l=t.attributes.properties;if(l.length===0){u=e.createNull()}else{var f=e.flatten(e.spanMap(l,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,transformJsxSpreadAttributeToExpression):e.createObjectLiteral(e.map(t,transformJsxAttributeToObjectLiteralElement))}));if(e.isJsxSpreadAttribute(l[0])){f.unshift(e.createObjectLiteral())}u=e.singleOrUndefined(f);if(!u){u=e.createAssignHelper(r,f)}}var d=e.createExpressionForJsxElement(r.getEmitResolver().getJsxFactoryEntity(i),n.reactNamespace,c,u,e.mapDefined(a,transformJsxChildToExpression),t,s);if(o){e.startOnNewLine(d)}return d}function visitJsxOpeningFragment(t,a,o,s){var c=e.createExpressionForJsxFragment(r.getEmitResolver().getJsxFactoryEntity(i),n.reactNamespace,e.mapDefined(a,transformJsxChildToExpression),t,s);if(o){e.startOnNewLine(c)}return c}function transformJsxSpreadAttributeToExpression(t){return e.visitNode(t.expression,visitor,e.isExpression)}function transformJsxAttributeToObjectLiteralElement(t){var r=getAttributeName(t);var n=transformJsxAttributeInitializer(t.initializer);return e.createPropertyAssignment(r,n)}function transformJsxAttributeInitializer(t){if(t===undefined){return e.createTrue()}else if(t.kind===10){var r=e.createLiteral(tryDecodeEntities(t.text)||t.text);r.singleQuote=t.singleQuote!==undefined?t.singleQuote:!e.isStringDoubleQuoted(t,i);return e.setTextRange(r,t)}else if(t.kind===270){if(t.expression===undefined){return e.createTrue()}return visitJsxExpression(t)}else{return e.Debug.failBadSyntaxKind(t)}}function visitJsxText(t){var r=fixupWhitespaceAndDecodeEntities(e.getTextOfNode(t,true));return r===undefined?undefined:e.createLiteral(r)}function fixupWhitespaceAndDecodeEntities(t){var r;var n=0;var i=-1;for(var a=0;a<t.length;a++){var o=t.charCodeAt(a);if(e.isLineBreak(o)){if(n!==-1&&i!==-1){r=addLineOfJsxText(r,t.substr(n,i-n+1))}n=-1}else if(!e.isWhiteSpaceSingleLine(o)){i=a;if(n===-1){n=a}}}return n!==-1?addLineOfJsxText(r,t.substr(n)):r}function addLineOfJsxText(e,t){var r=decodeEntities(t);return e===undefined?r:e+" "+r}function decodeEntities(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,r,n,i,a,o,s){if(a){return String.fromCharCode(parseInt(a,10))}else if(o){return String.fromCharCode(parseInt(o,16))}else{var c=t.get(s);return c?String.fromCharCode(c):e}})}function tryDecodeEntities(e){var t=decodeEntities(e);return t===e?undefined:t}function getTagName(t){if(t.kind===260){return getTagName(t.openingElement)}else{var r=t.tagName;if(e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)){return e.createLiteral(e.idText(r))}else{return e.createExpressionFromEntityName(r)}}}function getAttributeName(t){var r=t.name;var n=e.idText(r);if(/^[A-Za-z_]\w*$/.test(n)){return r}else{return e.createLiteral(n)}}function visitJsxExpression(t){return e.visitNode(t.expression,visitor,e.isExpression)}}e.transformJsx=transformJsx;var t=e.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})})(s||(s={}));var s;(function(e){function transformES2016(t){var r=t.hoistVariableDeclaration;return e.chainBundle(transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile){return r}return e.visitEachChild(r,visitor,t)}function visitor(r){if((r.transformFlags&32)===0){return r}switch(r.kind){case 204:return visitBinaryExpression(r);default:return e.visitEachChild(r,visitor,t)}}function visitBinaryExpression(r){switch(r.operatorToken.kind){case 63:return visitExponentiationAssignmentExpression(r);case 41:return visitExponentiationExpression(r);default:return e.visitEachChild(r,visitor,t)}}function visitExponentiationAssignmentExpression(t){var n;var i;var a=e.visitNode(t.left,visitor,e.isExpression);var o=e.visitNode(t.right,visitor,e.isExpression);if(e.isElementAccessExpression(a)){var s=e.createTempVariable(r);var c=e.createTempVariable(r);n=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(s,a.expression),a.expression),e.setTextRange(e.createAssignment(c,a.argumentExpression),a.argumentExpression)),a);i=e.setTextRange(e.createElementAccess(s,c),a)}else if(e.isPropertyAccessExpression(a)){var s=e.createTempVariable(r);n=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(s,a.expression),a.expression),a.name),a);i=e.setTextRange(e.createPropertyAccess(s,a.name),a)}else{n=a;i=a}return e.setTextRange(e.createAssignment(n,e.createMathPow(i,o,t)),t)}function visitExponentiationExpression(t){var r=e.visitNode(t.left,visitor,e.isExpression);var n=e.visitNode(t.right,visitor,e.isExpression);return e.createMathPow(r,n,t)}}e.transformES2016=transformES2016})(s||(s={}));var s;(function(e){var t;(function(e){e[e["CapturedThis"]=1]="CapturedThis";e[e["BlockScopedBindings"]=2]="BlockScopedBindings"})(t||(t={}));var r;(function(e){e[e["Body"]=1]="Body";e[e["Initializer"]=2]="Initializer"})(r||(r={}));var n;(function(e){e[e["ToOriginal"]=0]="ToOriginal";e[e["ToOutParameter"]=1]="ToOutParameter"})(n||(n={}));var i;(function(e){e[e["Break"]=2]="Break";e[e["Continue"]=4]="Continue";e[e["Return"]=8]="Return"})(i||(i={}));var a;(function(e){e[e["NoReplacement"]=0]="NoReplacement";e[e["ReplaceSuperCapture"]=1]="ReplaceSuperCapture";e[e["ReplaceWithReturn"]=2]="ReplaceWithReturn"})(a||(a={}));var o;(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["ForStatement"]=1024]="ForStatement";e[e["ForInOrForOfStatement"]=2048]="ForInOrForOfStatement";e[e["ConstructorWithCapturedSuper"]=4096]="ConstructorWithCapturedSuper";e[e["ComputedPropertyName"]=8192]="ComputedPropertyName";e[e["AncestorFactsMask"]=16383]="AncestorFactsMask";e[e["BlockScopeIncludes"]=0]="BlockScopeIncludes";e[e["BlockScopeExcludes"]=4032]="BlockScopeExcludes";e[e["SourceFileIncludes"]=64]="SourceFileIncludes";e[e["SourceFileExcludes"]=3968]="SourceFileExcludes";e[e["FunctionIncludes"]=65]="FunctionIncludes";e[e["FunctionExcludes"]=16286]="FunctionExcludes";e[e["AsyncFunctionBodyIncludes"]=69]="AsyncFunctionBodyIncludes";e[e["AsyncFunctionBodyExcludes"]=16278]="AsyncFunctionBodyExcludes";e[e["ArrowFunctionIncludes"]=66]="ArrowFunctionIncludes";e[e["ArrowFunctionExcludes"]=16256]="ArrowFunctionExcludes";e[e["ConstructorIncludes"]=73]="ConstructorIncludes";e[e["ConstructorExcludes"]=16278]="ConstructorExcludes";e[e["DoOrWhileStatementIncludes"]=256]="DoOrWhileStatementIncludes";e[e["DoOrWhileStatementExcludes"]=0]="DoOrWhileStatementExcludes";e[e["ForStatementIncludes"]=1280]="ForStatementIncludes";e[e["ForStatementExcludes"]=3008]="ForStatementExcludes";e[e["ForInOrForOfStatementIncludes"]=2304]="ForInOrForOfStatementIncludes";e[e["ForInOrForOfStatementExcludes"]=1984]="ForInOrForOfStatementExcludes";e[e["BlockIncludes"]=128]="BlockIncludes";e[e["BlockExcludes"]=3904]="BlockExcludes";e[e["IterationStatementBlockIncludes"]=512]="IterationStatementBlockIncludes";e[e["IterationStatementBlockExcludes"]=4032]="IterationStatementBlockExcludes";e[e["ComputedPropertyNameIncludes"]=8192]="ComputedPropertyNameIncludes";e[e["ComputedPropertyNameExcludes"]=0]="ComputedPropertyNameExcludes";e[e["NewTarget"]=16384]="NewTarget";e[e["NewTargetInComputedPropertyName"]=32768]="NewTargetInComputedPropertyName";e[e["SubtreeFactsMask"]=-16384]="SubtreeFactsMask";e[e["PropagateNewTargetMask"]=49152]="PropagateNewTargetMask"})(o||(o={}));function transformES2015(t){var r=t.startLexicalEnvironment,n=t.resumeLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration;var o=t.getCompilerOptions();var s=t.getEmitResolver();var c=t.onSubstituteNode;var u=t.onEmitNode;t.onEmitNode=onEmitNode;t.onSubstituteNode=onSubstituteNode;var l;var f;var d;var p;function recordTaggedTemplateString(t){p=e.append(p,e.createVariableDeclaration(t))}var g;var _;return e.chainBundle(transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile){return r}l=r;f=r.text;var n=visitSourceFile(r);e.addEmitHelpers(n,t.readEmitHelpers());l=undefined;f=undefined;p=undefined;d=0;return n}function enterSubtree(e,t){var r=d;d=(d&~e|t)&16383;return r}function exitSubtree(e,t,r){d=(d&~t|r)&-16384|e}function isReturnVoidStatementInConstructorWithCapturedSuper(e){return(d&4096)!==0&&e.kind===230&&!e.expression}function shouldVisitNode(t){return(t.transformFlags&128)!==0||g!==undefined||d&4096&&(e.isStatement(t)||t.kind===218)||e.isIterationStatement(t,false)&&shouldConvertIterationStatement(t)||(e.getEmitFlags(t)&33554432)!==0}function visitor(e){if(shouldVisitNode(e)){return visitJavaScript(e)}else{return e}}function functionBodyVisitor(e){if(shouldVisitNode(e)){return visitBlock(e,true)}return e}function callExpressionVisitor(e){if(e.kind===98){return visitSuperKeyword(true)}return visitor(e)}function visitJavaScript(r){switch(r.kind){case 116:return undefined;case 240:return visitClassDeclaration(r);case 209:return visitClassExpression(r);case 151:return visitParameter(r);case 239:return visitFunctionDeclaration(r);case 197:return visitArrowFunction(r);case 196:return visitFunctionExpression(r);case 237:return visitVariableDeclaration(r);case 72:return visitIdentifier(r);case 238:return visitVariableDeclarationList(r);case 232:return visitSwitchStatement(r);case 246:return visitCaseBlock(r);case 218:return visitBlock(r,false);case 229:case 228:return visitBreakOrContinueStatement(r);case 233:return visitLabeledStatement(r);case 223:case 224:return visitDoOrWhileStatement(r,undefined);case 225:return visitForStatement(r,undefined);case 226:return visitForInStatement(r,undefined);case 227:return visitForOfStatement(r,undefined);case 221:return visitExpressionStatement(r);case 188:return visitObjectLiteralExpression(r);case 274:return visitCatchClause(r);case 276:return visitShorthandPropertyAssignment(r);case 149:return visitComputedPropertyName(r);case 187:return visitArrayLiteralExpression(r);case 191:return visitCallExpression(r);case 192:return visitNewExpression(r);case 195:return visitParenthesizedExpression(r,true);case 204:return visitBinaryExpression(r,true);case 14:case 15:case 16:case 17:return visitTemplateLiteral(r);case 10:return visitStringLiteral(r);case 8:return visitNumericLiteral(r);case 193:return visitTaggedTemplateExpression(r);case 206:return visitTemplateExpression(r);case 207:return visitYieldExpression(r);case 208:return visitSpreadElement(r);case 98:return visitSuperKeyword(false);case 100:return visitThisKeyword(r);case 214:return visitMetaProperty(r);case 156:return visitMethodDeclaration(r);case 158:case 159:return visitAccessorDeclaration(r);case 219:return visitVariableStatement(r);case 230:return visitReturnStatement(r);default:return e.visitEachChild(r,visitor,t)}}function visitSourceFile(t){var n=enterSubtree(3968,64);var a=[];r();var o=e.addStandardPrologue(a,t.statements,false);addCaptureThisForNodeIfNeeded(a,t);o=e.addCustomPrologue(a,t.statements,o,visitor);e.addRange(a,e.visitNodes(t.statements,visitor,e.isStatement,o));if(p){a.push(e.createVariableStatement(undefined,e.createVariableDeclarationList(p)))}e.addStatementsAfterPrologue(a,i());exitSubtree(n,0,0);return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(a),t.statements))}function visitSwitchStatement(r){if(g!==undefined){var n=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,visitor,t);g.allowedNonLabeledJumps=n;return i}return e.visitEachChild(r,visitor,t)}function visitCaseBlock(r){var n=enterSubtree(4032,0);var i=e.visitEachChild(r,visitor,t);exitSubtree(n,0,0);return i}function returnCapturedThis(t){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),t)}function visitReturnStatement(r){if(g){g.nonLocalJumps|=8;if(isReturnVoidStatementInConstructorWithCapturedSuper(r)){r=returnCapturedThis(r)}return e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),r.expression?e.visitNode(r.expression,visitor,e.isExpression):e.createVoidZero())]))}else if(isReturnVoidStatementInConstructorWithCapturedSuper(r)){return returnCapturedThis(r)}return e.visitEachChild(r,visitor,t)}function visitThisKeyword(t){if(g){if(d&2){g.containsLexicalThis=true;return t}return g.thisName||(g.thisName=e.createUniqueName("this"))}return t}function visitIdentifier(t){if(!g){return t}if(e.isGeneratedIdentifier(t)){return t}if(t.escapedText!=="arguments"||!s.isArgumentsLocalBinding(t)){return t}return g.argumentsName||(g.argumentsName=e.createUniqueName("arguments"))}function visitBreakOrContinueStatement(r){if(g){var n=r.kind===229?2:4;var i=r.label&&g.labels&&g.labels.get(e.idText(r.label))||!r.label&&g.allowedNonLabeledJumps&n;if(!i){var a=void 0;var o=r.label;if(!o){if(r.kind===229){g.nonLocalJumps|=2;a="break"}else{g.nonLocalJumps|=4;a="continue"}}else{if(r.kind===229){a="break-"+o.escapedText;setLabeledJump(g,true,e.idText(o),a)}else{a="continue-"+o.escapedText;setLabeledJump(g,false,e.idText(o),a)}}var s=e.createLiteral(a);if(g.loopOutParameters.length){var c=g.loopOutParameters;var u=void 0;for(var l=0;l<c.length;l++){var f=copyOutParameter(c[l],1);if(l===0){u=f}else{u=e.createBinary(u,27,f)}}s=e.createBinary(u,27,s)}return e.createReturn(s)}}return e.visitEachChild(r,visitor,t)}function visitClassDeclaration(t){var r=e.createVariableDeclaration(e.getLocalName(t,true),undefined,transformClassLikeDeclarationToExpression(t));e.setOriginalNode(r,t);var n=[];var i=e.createVariableStatement(undefined,e.createVariableDeclarationList([r]));e.setOriginalNode(i,t);e.setTextRange(i,t);e.startOnNewLine(i);n.push(i);if(e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i);n.push(a)}var o=e.getEmitFlags(t);if((o&4194304)===0){n.push(e.createEndOfDeclarationMarker(t));e.setEmitFlags(i,o|4194304)}return e.singleOrMany(n)}function visitClassExpression(e){return transformClassLikeDeclarationToExpression(e)}function transformClassLikeDeclarationToExpression(t){if(t.name){enableSubstitutionsForBlockScopedBindings()}var r=e.getEffectiveBaseTypeNode(t);var n=e.createFunctionExpression(undefined,undefined,undefined,undefined,r?[e.createParameter(undefined,undefined,undefined,e.createFileLevelUniqueName("_super"))]:[],undefined,transformClassBody(t,r));e.setEmitFlags(n,e.getEmitFlags(t)&65536|524288);var i=e.createPartiallyEmittedExpression(n);i.end=t.end;e.setEmitFlags(i,1536);var a=e.createPartiallyEmittedExpression(i);a.end=e.skipTrivia(f,t.pos);e.setEmitFlags(a,1536);var o=e.createParen(e.createCall(a,undefined,r?[e.visitNode(r.expression,visitor,e.isExpression)]:[]));e.addSyntheticLeadingComment(o,3,"* @class ");return o}function transformClassBody(t,n){var a=[];r();addExtendsHelperIfNeeded(a,t,n);addConstructor(a,t,n);addClassMembers(a,t);var o=e.createTokenRange(e.skipTrivia(f,t.members.end),19);var s=e.getInternalName(t);var c=e.createPartiallyEmittedExpression(s);c.end=o.end;e.setEmitFlags(c,1536);var u=e.createReturn(c);u.pos=o.pos;e.setEmitFlags(u,1536|384);a.push(u);e.addStatementsAfterPrologue(a,i());var l=e.createBlock(e.setTextRange(e.createNodeArray(a),t.members),true);e.setEmitFlags(l,1536);return l}function addExtendsHelperIfNeeded(r,n,i){if(i){r.push(e.setTextRange(e.createExpressionStatement(createExtendsHelper(t,e.getInternalName(n))),i))}}function addConstructor(t,r,n){var i=g;g=undefined;var a=enterSubtree(16278,73);var o=e.getFirstConstructorWithBody(r);var s=hasSynthesizedDefaultSuperCall(o,n!==undefined);var c=e.createFunctionDeclaration(undefined,undefined,undefined,e.getInternalName(r),undefined,transformConstructorParameters(o,s),undefined,transformConstructorBody(o,r,n,s));e.setTextRange(c,o||r);if(n){e.setEmitFlags(c,8)}t.push(c);exitSubtree(a,49152,0);g=i}function transformConstructorParameters(r,n){return e.visitParameterList(r&&!n?r.parameters:undefined,visitor,t)||[]}function transformConstructorBody(t,r,a,o){var s=[];n();var c=-1;if(o){c=0}else if(t){c=e.addStandardPrologue(s,t.body.statements,false)}if(t){addDefaultValueAssignmentsIfNeeded(s,t);addRestParameterIfNeeded(s,t,o);if(!o){c=e.addCustomPrologue(s,t.body.statements,c,visitor)}e.Debug.assert(c>=0,"statementOffset not initialized correctly!")}var u=!!a&&e.skipOuterExpressions(a.expression).kind!==96;var l=declareOrCaptureOrReturnThisForConstructorIfNeeded(s,t,u,o,c);if(l===1||l===2){c++}if(t){if(l===1){d|=4096}e.addRange(s,e.visitNodes(t.body.statements,visitor,e.isStatement,c))}if(u&&l!==2&&!(t&&isSufficientlyCoveredByReturnStatements(t.body))){s.push(e.createReturn(e.createFileLevelUniqueName("_this")))}e.addStatementsAfterPrologue(s,i());if(t){prependCaptureNewTargetIfNeeded(s,t,false)}var f=e.createBlock(e.setTextRange(e.createNodeArray(s),t?t.body.statements:r.members),true);e.setTextRange(f,t?t.body:r);if(!t){e.setEmitFlags(f,1536)}return f}function isSufficientlyCoveredByReturnStatements(t){if(t.kind===230){return true}else if(t.kind===222){var r=t;if(r.elseStatement){return isSufficientlyCoveredByReturnStatements(r.thenStatement)&&isSufficientlyCoveredByReturnStatements(r.elseStatement)}}else if(t.kind===218){var n=e.lastOrUndefined(t.statements);if(n&&isSufficientlyCoveredByReturnStatements(n)){return true}}return false}function declareOrCaptureOrReturnThisForConstructorIfNeeded(t,r,n,i,a){if(!n){if(r){addCaptureThisForNodeIfNeeded(t,r)}return 0}if(!r){t.push(e.createReturn(createDefaultSuperCallOrThis()));return 2}if(i){captureThisForNode(t,r,createDefaultSuperCallOrThis());enableSubstitutionsForCapturedThis();return 1}var o;var s;var c=r.body.statements;if(a<c.length){o=c[a];if(o.kind===221&&e.isSuperCall(o.expression)){s=visitImmediateSuperCallInBody(o.expression)}}if(s&&a===c.length-1&&!(r.transformFlags&(8192|16384))){var u=e.createReturn(s);if(s.kind!==204||s.left.kind!==191){e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'.")}e.setCommentRange(u,e.getCommentRange(e.setEmitFlags(s.left,1536)));t.push(u);return 2}captureThisForNode(t,r,s||createActualThis());if(s){return 1}return 0}function createActualThis(){return e.setEmitFlags(e.createThis(),4)}function createDefaultSuperCallOrThis(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),createActualThis(),e.createIdentifier("arguments"))),createActualThis())}function visitParameter(t){if(t.dotDotDotToken){return undefined}else if(e.isBindingPattern(t.name)){return e.setOriginalNode(e.setTextRange(e.createParameter(undefined,undefined,undefined,e.getGeneratedNameForNode(t),undefined,undefined,undefined),t),t)}else if(t.initializer){return e.setOriginalNode(e.setTextRange(e.createParameter(undefined,undefined,undefined,t.name,undefined,undefined,undefined),t),t)}else{return t}}function shouldAddDefaultValueAssignments(e){return(e.transformFlags&65536)!==0}function addDefaultValueAssignmentsIfNeeded(t,r){if(!shouldAddDefaultValueAssignments(r)){return}for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n];var o=a.name,s=a.initializer,c=a.dotDotDotToken;if(c){continue}if(e.isBindingPattern(o)){addDefaultValueAssignmentForBindingPattern(t,a,o,s)}else if(s){addDefaultValueAssignmentForInitializer(t,a,o,s)}}}function addDefaultValueAssignmentForBindingPattern(r,n,i,a){var o=e.getGeneratedNameForNode(n);if(i.elements.length>0){r.push(e.setEmitFlags(e.createVariableStatement(undefined,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,visitor,t,0,o))),1048576))}else if(a){r.push(e.setEmitFlags(e.createExpressionStatement(e.createAssignment(o,e.visitNode(a,visitor,e.isExpression))),1048576))}}function addDefaultValueAssignmentForInitializer(t,r,n,i){i=e.visitNode(i,visitor,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,48|e.getEmitFlags(i)|1536)),r),1536))]),r),1|32|384|1536));e.startOnNewLine(a);e.setTextRange(a,r);e.setEmitFlags(a,384|32|1048576|1536);t.push(a)}function shouldAddRestParameter(e,t){return e&&e.dotDotDotToken&&e.name.kind===72&&!t}function addRestParameterIfNeeded(t,r,n){var i=e.lastOrUndefined(r.parameters);if(!shouldAddRestParameter(i,n)){return}var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name);var s=r.parameters.length-1;var c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(a,undefined,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,undefined,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(o,s===0?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576);e.startOnNewLine(u);t.push(u)}function addCaptureThisForNodeIfNeeded(t,r){if(r.transformFlags&16384&&r.kind!==197){captureThisForNode(t,r,e.createThis())}}function captureThisForNode(t,r,n){enableSubstitutionsForCapturedThis();var i=e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),undefined,n)]));e.setEmitFlags(i,1536|1048576);e.setSourceMapRange(i,r);t.push(i)}function prependCaptureNewTargetIfNeeded(t,r,n){if(d&16384){var i=void 0;switch(r.kind){case 197:return t;case 156:case 158:case 159:i=e.createVoidZero();break;case 157:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 239:case 196:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),94,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var a=e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),undefined,i)]));if(n){return[a].concat(t)}t.unshift(a)}return t}function addClassMembers(t,r){for(var n=0,i=r.members;n<i.length;n++){var a=i[n];switch(a.kind){case 217:t.push(transformSemicolonClassElementToStatement(a));break;case 156:t.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(r,a),a,r));break;case 158:case 159:var o=e.getAllAccessorDeclarations(r.members,a);if(a===o.firstAccessor){t.push(transformAccessorsToStatement(getClassMemberPrefix(r,a),o,r))}break;case 157:break;default:e.Debug.failBadSyntaxKind(r);break}}}function transformSemicolonClassElementToStatement(t){return e.setTextRange(e.createEmptyStatement(),t)}function transformClassMethodDeclarationToStatement(t,r,n){var i=enterSubtree(0,0);var a=e.getCommentRange(r);var o=e.getSourceMapRange(r);var s=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,visitor,e.isPropertyName),r.name);var c=transformFunctionLikeToExpression(r,r,undefined,n);e.setEmitFlags(c,1536);e.setSourceMapRange(c,o);var u=e.setTextRange(e.createExpressionStatement(e.createAssignment(s,c)),r);e.setOriginalNode(u,r);e.setCommentRange(u,a);e.setEmitFlags(u,48);exitSubtree(i,49152,d&49152?16384:0);return u}function transformAccessorsToStatement(t,r,n){var i=e.createExpressionStatement(transformAccessorsToExpression(t,r,n,false));e.setEmitFlags(i,1536);e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor));return i}function transformAccessorsToExpression(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor;var c=enterSubtree(0,0);var u=e.getMutableClone(t);e.setEmitFlags(u,1536|32);e.setSourceMapRange(u,a.name);var l=e.createExpressionForPropertyName(e.visitNode(a.name,visitor,e.isPropertyName));e.setEmitFlags(l,1536|16);e.setSourceMapRange(l,a.name);var f=[];if(o){var p=transformFunctionLikeToExpression(o,undefined,undefined,n);e.setSourceMapRange(p,e.getSourceMapRange(o));e.setEmitFlags(p,512);var g=e.createPropertyAssignment("get",p);e.setCommentRange(g,e.getCommentRange(o));f.push(g)}if(s){var _=transformFunctionLikeToExpression(s,undefined,undefined,n);e.setSourceMapRange(_,e.getSourceMapRange(s));e.setEmitFlags(_,512);var m=e.createPropertyAssignment("set",_);e.setCommentRange(m,e.getCommentRange(s));f.push(m)}f.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var y=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),undefined,[u,l,e.createObjectLiteral(f,true)]);if(i){e.startOnNewLine(y)}exitSubtree(c,49152,d&49152?16384:0);return y}function visitArrowFunction(r){if(r.transformFlags&8192){enableSubstitutionsForCapturedThis()}var n=g;g=undefined;var i=enterSubtree(16256,66);var a=e.createFunctionExpression(undefined,undefined,undefined,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,transformFunctionBody(r));e.setTextRange(a,r);e.setOriginalNode(a,r);e.setEmitFlags(a,8);exitSubtree(i,0,0);g=n;return a}function visitFunctionExpression(r){var n=e.getEmitFlags(r)&262144?enterSubtree(16278,69):enterSubtree(16286,65);var i=g;g=undefined;var a=e.visitParameterList(r.parameters,visitor,t);var o=r.transformFlags&64?transformFunctionBody(r):visitFunctionBodyDownLevel(r);var s=d&16384?e.getLocalName(r):r.name;exitSubtree(n,49152,0);g=i;return e.updateFunctionExpression(r,undefined,r.asteriskToken,s,undefined,a,undefined,o)}function visitFunctionDeclaration(r){var n=g;g=undefined;var i=enterSubtree(16286,65);var a=e.visitParameterList(r.parameters,visitor,t);var o=r.transformFlags&64?transformFunctionBody(r):visitFunctionBodyDownLevel(r);var s=d&16384?e.getLocalName(r):r.name;exitSubtree(i,49152,0);g=n;return e.updateFunctionDeclaration(r,undefined,e.visitNodes(r.modifiers,visitor,e.isModifier),r.asteriskToken,s,undefined,a,undefined,o)}function transformFunctionLikeToExpression(r,n,i,a){var o=g;g=undefined;var s=a&&e.isClassLike(a)&&!e.hasModifier(r,32)?enterSubtree(16286,65|8):enterSubtree(16286,65);var c=e.visitParameterList(r.parameters,visitor,t);var u=transformFunctionBody(r);if(d&16384&&!i&&(r.kind===239||r.kind===196)){i=e.getGeneratedNameForNode(r)}exitSubtree(s,49152,0);g=o;return e.setOriginalNode(e.setTextRange(e.createFunctionExpression(undefined,r.asteriskToken,i,undefined,c,undefined,u),n),r)}function transformFunctionBody(r){var i=false;var a=false;var o;var s;var c=[];var u=[];var f=r.body;var d;n();if(e.isBlock(f)){d=e.addStandardPrologue(c,f.statements,false)}addCaptureThisForNodeIfNeeded(c,r);addDefaultValueAssignmentsIfNeeded(c,r);addRestParameterIfNeeded(c,r,false);if(e.isBlock(f)){d=e.addCustomPrologue(c,f.statements,d,visitor);o=f.statements;e.addRange(u,e.visitNodes(f.statements,visitor,e.isStatement,d));if(!i&&f.multiLine){i=true}}else{e.Debug.assert(r.kind===197);o=e.moveRangeEnd(f,-1);var p=r.equalsGreaterThanToken;if(!e.nodeIsSynthesized(p)&&!e.nodeIsSynthesized(f)){if(e.rangeEndIsOnSameLineAsRangeStart(p,f,l)){a=true}else{i=true}}var g=e.visitNode(f,visitor,e.isExpression);var _=e.createReturn(g);e.setTextRange(_,f);e.moveSyntheticComments(_,f);e.setEmitFlags(_,384|32|1024);u.push(_);s=f}var m=t.endLexicalEnvironment();e.addStatementsAfterPrologue(u,m);prependCaptureNewTargetIfNeeded(u,r,false);if(e.some(c)||e.some(m)){i=true}var y=e.createBlock(e.setTextRange(e.createNodeArray(c.concat(u)),o),i);e.setTextRange(y,r.body);if(!i&&a){e.setEmitFlags(y,1)}if(s){e.setTokenSourceMapRange(y,19,s)}e.setOriginalNode(y,r.body);return y}function visitFunctionBodyDownLevel(r){var n=e.visitFunctionBody(r.body,functionBodyVisitor,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(prependCaptureNewTargetIfNeeded(n.statements,r,true)),n.statements))}function visitBlock(r,n){if(n){return e.visitEachChild(r,visitor,t)}var i=d&256?enterSubtree(4032,512):enterSubtree(3904,128);var a=e.visitEachChild(r,visitor,t);exitSubtree(i,0,0);return a}function visitExpressionStatement(r){switch(r.expression.kind){case 195:return e.updateExpressionStatement(r,visitParenthesizedExpression(r.expression,false));case 204:return e.updateExpressionStatement(r,visitBinaryExpression(r.expression,false))}return e.visitEachChild(r,visitor,t)}function visitParenthesizedExpression(r,n){if(!n){switch(r.expression.kind){case 195:return e.updateParen(r,visitParenthesizedExpression(r.expression,false));case 204:return e.updateParen(r,visitBinaryExpression(r.expression,false))}}return e.visitEachChild(r,visitor,t)}function visitBinaryExpression(r,n){if(e.isDestructuringAssignment(r)){return e.flattenDestructuringAssignment(r,visitor,t,0,n)}return e.visitEachChild(r,visitor,t)}function visitVariableStatement(r){var n=enterSubtree(0,e.hasModifier(r,1)?32:0);var i;if(g&&(r.declarationList.flags&3)===0){var a=void 0;for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var c=s[o];hoistVariableDeclarationDeclaredInConvertedLoop(g,c);if(c.initializer){var u=void 0;if(e.isBindingPattern(c.name)){u=e.flattenDestructuringAssignment(c,visitor,t,0)}else{u=e.createBinary(c.name,59,e.visitNode(c.initializer,visitor,e.isExpression));e.setTextRange(u,c)}a=e.append(a,u)}}if(a){i=e.setTextRange(e.createExpressionStatement(e.inlineExpressions(a)),r)}else{i=undefined}}else{i=e.visitEachChild(r,visitor,t)}exitSubtree(n,0,0);return i}function visitVariableDeclarationList(r){if(r.transformFlags&64){if(r.flags&3){enableSubstitutionsForBlockScopedBindings()}var n=e.flatMap(r.declarations,r.flags&1?visitVariableDeclarationInLetDeclarationList:visitVariableDeclaration);var i=e.createVariableDeclarationList(n);e.setOriginalNode(i,r);e.setTextRange(i,r);e.setCommentRange(i,r);if(r.transformFlags&2097152&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))){e.setSourceMapRange(i,getRangeUnion(n))}return i}return e.visitEachChild(r,visitor,t)}function getRangeUnion(t){var r=-1,n=-1;for(var i=0,a=t;i<a.length;i++){var o=a[i];r=r===-1?o.pos:o.pos===-1?r:Math.min(r,o.pos);n=Math.max(n,o.end)}return e.createRange(r,n)}function shouldEmitExplicitInitializerForLetDeclaration(e){var t=s.getNodeCheckFlags(e);var r=t&262144;var n=t&524288;var i=(d&64)!==0||r&&n&&(d&512)!==0;var a=!i&&(d&2048)===0&&(!s.isDeclarationWithCollidingName(e)||n&&!r&&(d&(1024|2048))===0);return a}function visitVariableDeclarationInLetDeclarationList(r){var n=r.name;if(e.isBindingPattern(n)){return visitVariableDeclaration(r)}if(!r.initializer&&shouldEmitExplicitInitializerForLetDeclaration(r)){var i=e.getMutableClone(r);i.initializer=e.createVoidZero();return i}return e.visitEachChild(r,visitor,t)}function visitVariableDeclaration(r){var n=enterSubtree(32,0);var i;if(e.isBindingPattern(r.name)){i=e.flattenDestructuringBinding(r,visitor,t,0,undefined,(n&32)!==0)}else{i=e.visitEachChild(r,visitor,t)}exitSubtree(n,0,0);return i}function recordLabel(t){g.labels.set(e.idText(t.label),true)}function resetLabel(t){g.labels.set(e.idText(t.label),false)}function visitLabeledStatement(t){if(g&&!g.labels){g.labels=e.createMap()}var r=e.unwrapInnermostStatementOfLabel(t,g&&recordLabel);return e.isIterationStatement(r,false)?visitIterationStatement(r,t):e.restoreEnclosingLabel(e.visitNode(r,visitor,e.isStatement,e.liftToBlock),t,g&&resetLabel)}function visitIterationStatement(e,t){switch(e.kind){case 223:case 224:return visitDoOrWhileStatement(e,t);case 225:return visitForStatement(e,t);case 226:return visitForInStatement(e,t);case 227:return visitForOfStatement(e,t)}}function visitIterationStatementWithFacts(e,t,r,n,i){var a=enterSubtree(e,t);var o=convertIterationStatementBodyIfNecessary(r,n,i);exitSubtree(a,0,0);return o}function visitDoOrWhileStatement(e,t){return visitIterationStatementWithFacts(0,256,e,t)}function visitForStatement(e,t){return visitIterationStatementWithFacts(3008,1280,e,t)}function visitForInStatement(e,t){return visitIterationStatementWithFacts(1984,2304,e,t)}function visitForOfStatement(e,t){return visitIterationStatementWithFacts(1984,2304,e,t,o.downlevelIteration?convertForOfStatementForIterable:convertForOfStatementForArray)}function convertForOfStatementHead(r,n,i){var a=[];var o=r.initializer;if(e.isVariableDeclarationList(o)){if(r.initializer.flags&3){enableSubstitutionsForBlockScopedBindings()}var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,visitor,t,0,n);var u=e.setTextRange(e.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(u,r.initializer);e.setSourceMapRange(u,e.createRange(c[0].pos,e.last(c).end));a.push(e.createVariableStatement(undefined,u))}else{a.push(e.setTextRange(e.createVariableStatement(undefined,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(s?s.name:e.createTempVariable(undefined),undefined,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}}else{var l=e.createAssignment(o,n);if(e.isDestructuringAssignment(l)){e.aggregateTransformFlags(l);a.push(e.createExpressionStatement(visitBinaryExpression(l,false)))}else{l.end=o.end;a.push(e.setTextRange(e.createExpressionStatement(e.visitNode(l,visitor,e.isExpression)),e.moveRangeEnd(o,-1)))}}if(i){return createSyntheticBlockForConvertedStatements(e.addRange(a,i))}else{var f=e.visitNode(r.statement,visitor,e.isStatement,e.liftToBlock);if(e.isBlock(f)){return e.updateBlock(f,e.setTextRange(e.createNodeArray(e.concatenate(a,f.statements)),f.statements))}else{a.push(f);return createSyntheticBlockForConvertedStatements(a)}}}function createSyntheticBlockForConvertedStatements(t){return e.setEmitFlags(e.createBlock(e.createNodeArray(t),true),48|384)}function convertForOfStatementForArray(t,r,n){var i=e.visitNode(t.expression,visitor,e.isExpression);var a=e.createLoopVariable();var o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(undefined);e.setEmitFlags(i,48|e.getEmitFlags(i));var s=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,undefined,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,undefined,i),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(a,e.createPropertyAccess(o,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(a),t.expression),convertForOfStatementHead(t,e.createElementAccess(o,a),n)),t);e.setEmitFlags(s,256);e.setTextRange(s,t);return e.restoreEnclosingLabel(s,r,g&&resetLabel)}function convertForOfStatementForIterable(r,n,i){var o=e.visitNode(r.expression,visitor,e.isExpression);var s=e.isIdentifier(o)?e.getGeneratedNameForNode(o):e.createTempVariable(undefined);var c=e.isIdentifier(o)?e.getGeneratedNameForNode(s):e.createTempVariable(undefined);var u=e.createUniqueName("e");var l=e.getGeneratedNameForNode(u);var f=e.createTempVariable(undefined);var d=e.createValuesHelper(t,o,r.expression);var p=e.createCall(e.createPropertyAccess(s,"next"),undefined,[]);a(u);a(f);var _=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(s,undefined,d),r.expression),e.createVariableDeclaration(c,undefined,p)]),r.expression),2097152),e.createLogicalNot(e.createPropertyAccess(c,"done")),e.createAssignment(c,p),convertForOfStatementHead(r,e.createPropertyAccess(c,"value"),i)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(_,n,g&&resetLabel)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(c,e.createLogicalNot(e.createPropertyAccess(c,"done"))),e.createAssignment(f,e.createPropertyAccess(s,"return"))),e.createExpressionStatement(e.createFunctionCall(f,s,[]))),1)]),undefined,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}function visitObjectLiteralExpression(r){var n=r.properties;var i=n.length;var o=i;var s=i;for(var c=0;c<i;c++){var u=n[c];if(u.transformFlags&4194304&&d&4&&c<s){s=c}if(u.name.kind===149){o=c;break}}if(o!==i){if(s<o){o=s}var l=e.createTempVariable(a);var f=[];var p=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,visitor,e.isObjectLiteralElementLike,0,o),r.multiLine),65536));if(r.multiLine){e.startOnNewLine(p)}f.push(p);addObjectLiteralMembers(f,r,l,o);f.push(r.multiLine?e.startOnNewLine(e.getMutableClone(l)):l);return e.inlineExpressions(f)}return e.visitEachChild(r,visitor,t)}function shouldConvertPartOfIterationStatement(e){return(s.getNodeCheckFlags(e)&131072)!==0}function shouldConvertInitializerOfForStatement(t){return e.isForStatement(t)&&!!t.initializer&&shouldConvertPartOfIterationStatement(t.initializer)}function shouldConvertConditionOfForStatement(t){return e.isForStatement(t)&&!!t.condition&&shouldConvertPartOfIterationStatement(t.condition)}function shouldConvertIncrementorOfForStatement(t){return e.isForStatement(t)&&!!t.incrementor&&shouldConvertPartOfIterationStatement(t.incrementor)}function shouldConvertIterationStatement(e){return shouldConvertBodyOfIterationStatement(e)||shouldConvertInitializerOfForStatement(e)}function shouldConvertBodyOfIterationStatement(e){return(s.getNodeCheckFlags(e)&65536)!==0}function hoistVariableDeclarationDeclaredInConvertedLoop(t,r){if(!t.hoistedLocalVariables){t.hoistedLocalVariables=[]}visit(r.name);function visit(r){if(r.kind===72){t.hoistedLocalVariables.push(r)}else{for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){visit(a.name)}}}}}function convertIterationStatementBodyIfNecessary(r,n,i){if(!shouldConvertIterationStatement(r)){var a=void 0;if(g){a=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps=2|4}var o=i?i(r,n,undefined):e.restoreEnclosingLabel(e.visitEachChild(r,visitor,t),n,g&&resetLabel);if(g){g.allowedNonLabeledJumps=a}return o}var s=createConvertedLoopState(r);var c=[];var u=g;g=s;var l=shouldConvertInitializerOfForStatement(r)?createFunctionForInitializerOfForStatement(r,s):undefined;var f=shouldConvertBodyOfIterationStatement(r)?createFunctionForBodyOfIterationStatement(r,s,u):undefined;g=u;if(l)c.push(l.functionDeclaration);if(f)c.push(f.functionDeclaration);addExtraDeclarationsForConvertedLoop(c,s,u);if(l){c.push(generateCallToConvertedLoopInitializer(l.functionName,l.containsYield))}var d;if(f){if(i){d=i(r,n,f.part)}else{var p=convertIterationStatementCore(r,l,e.createBlock(f.part,true));e.aggregateTransformFlags(p);d=e.restoreEnclosingLabel(p,n,g&&resetLabel)}}else{var _=convertIterationStatementCore(r,l,e.visitNode(r.statement,visitor,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(_);d=e.restoreEnclosingLabel(_,n,g&&resetLabel)}c.push(d);return c}function convertIterationStatementCore(t,r,n){switch(t.kind){case 225:return convertForStatement(t,r,n);case 226:return convertForInStatement(t,n);case 227:return convertForOfStatement(t,n);case 223:return convertDoStatement(t,n);case 224:return convertWhileStatement(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function convertForStatement(t,r,n){var i=t.condition&&shouldConvertPartOfIterationStatement(t.condition);var a=i||t.incrementor&&shouldConvertPartOfIterationStatement(t.incrementor);return e.updateFor(t,e.visitNode(r?r.part:t.initializer,visitor,e.isForInitializer),e.visitNode(i?undefined:t.condition,visitor,e.isExpression),e.visitNode(a?undefined:t.incrementor,visitor,e.isExpression),n)}function convertForOfStatement(t,r){return e.updateForOf(t,undefined,e.visitNode(t.initializer,visitor,e.isForInitializer),e.visitNode(t.expression,visitor,e.isExpression),r)}function convertForInStatement(t,r){return e.updateForIn(t,e.visitNode(t.initializer,visitor,e.isForInitializer),e.visitNode(t.expression,visitor,e.isExpression),r)}function convertDoStatement(t,r){return e.updateDo(t,r,e.visitNode(t.expression,visitor,e.isExpression))}function convertWhileStatement(t,r){return e.updateWhile(t,e.visitNode(t.expression,visitor,e.isExpression),r)}function createConvertedLoopState(t){var r;switch(t.kind){case 225:case 226:case 227:var n=t.initializer;if(n&&n.kind===238){r=n}break}var i=[];var a=[];if(r&&e.getCombinedNodeFlags(r)&3){var o=shouldConvertInitializerOfForStatement(t);for(var s=0,c=r.declarations;s<c.length;s++){var u=c[s];processLoopVariableDeclaration(t,u,i,a,o)}}var l={loopParameters:i,loopOutParameters:a};if(g){if(g.argumentsName){l.argumentsName=g.argumentsName}if(g.thisName){l.thisName=g.thisName}if(g.hoistedLocalVariables){l.hoistedLocalVariables=g.hoistedLocalVariables}}return l}function addExtraDeclarationsForConvertedLoop(t,r,n){var i;if(r.argumentsName){if(n){n.argumentsName=r.argumentsName}else{(i||(i=[])).push(e.createVariableDeclaration(r.argumentsName,undefined,e.createIdentifier("arguments")))}}if(r.thisName){if(n){n.thisName=r.thisName}else{(i||(i=[])).push(e.createVariableDeclaration(r.thisName,undefined,e.createIdentifier("this")))}}if(r.hoistedLocalVariables){if(n){n.hoistedLocalVariables=r.hoistedLocalVariables}else{if(!i){i=[]}for(var a=0,o=r.hoistedLocalVariables;a<o.length;a++){var s=o[a];i.push(e.createVariableDeclaration(s))}}}if(r.loopOutParameters.length){if(!i){i=[]}for(var c=0,u=r.loopOutParameters;c<u.length;c++){var l=u[c];i.push(e.createVariableDeclaration(l.outParamName))}}if(r.conditionVariable){if(!i){i=[]}i.push(e.createVariableDeclaration(r.conditionVariable,undefined,e.createFalse()))}if(i){t.push(e.createVariableStatement(undefined,e.createVariableDeclarationList(i)))}}function createOutVariable(t){return e.createVariableDeclaration(t.originalName,undefined,t.outParamName)}function createFunctionForInitializerOfForStatement(t,r){var n=e.createUniqueName("_loop_init");var i=(t.initializer.transformFlags&4194304)!==0;var a=0;if(r.containsLexicalThis)a|=8;if(i&&d&4)a|=262144;var o=[];o.push(e.createVariableStatement(undefined,t.initializer));copyOutParameters(r.loopOutParameters,2,1,o);var s=e.createVariableStatement(undefined,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(n,undefined,e.setEmitFlags(e.createFunctionExpression(undefined,i?e.createToken(40):undefined,undefined,undefined,undefined,undefined,e.visitNode(e.createBlock(o,true),visitor,e.isBlock)),a))]),2097152));var c=e.createVariableDeclarationList(e.map(r.loopOutParameters,createOutVariable));return{functionName:n,containsYield:i,functionDeclaration:s,part:c}}function createFunctionForBodyOfIterationStatement(t,n,a){var o=e.createUniqueName("_loop");r();var s=e.visitNode(t.statement,visitor,e.isStatement,e.liftToBlock);var c=i();var u=[];if(shouldConvertConditionOfForStatement(t)||shouldConvertIncrementorOfForStatement(t)){n.conditionVariable=e.createUniqueName("inc");u.push(e.createIf(n.conditionVariable,e.createStatement(e.visitNode(t.incrementor,visitor,e.isExpression)),e.createStatement(e.createAssignment(n.conditionVariable,e.createTrue()))));if(shouldConvertConditionOfForStatement(t)){u.push(e.createIf(e.createPrefix(52,e.visitNode(t.condition,visitor,e.isExpression)),e.visitNode(e.createBreak(),visitor,e.isStatement)))}}if(e.isBlock(s)){e.addRange(u,s.statements)}else{u.push(s)}copyOutParameters(n.loopOutParameters,1,1,u);e.addStatementsAfterPrologue(u,c);var l=e.createBlock(u,true);if(e.isBlock(s))e.setOriginalNode(l,s);var f=(t.statement.transformFlags&4194304)!==0;var p=0;if(n.containsLexicalThis)p|=8;if(f&&(d&4)!==0)p|=262144;var g=e.createVariableStatement(undefined,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(o,undefined,e.setEmitFlags(e.createFunctionExpression(undefined,f?e.createToken(40):undefined,undefined,undefined,n.loopParameters,undefined,l),p))]),2097152));var _=generateCallToConvertedLoop(o,n,a,f);return{functionName:o,containsYield:f,functionDeclaration:g,part:_}}function copyOutParameter(t,r){var n=r===0?t.outParamName:t.originalName;var i=r===0?t.originalName:t.outParamName;return e.createBinary(i,59,n)}function copyOutParameters(t,r,n,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.flags&r){i.push(e.createExpressionStatement(copyOutParameter(s,n)))}}}function generateCallToConvertedLoopInitializer(t,r){var n=e.createCall(t,undefined,[]);var i=r?e.createYield(e.createToken(40),e.setEmitFlags(n,8388608)):n;return e.createStatement(i)}function generateCallToConvertedLoop(t,r,n,i){var a=[];var o=!(r.nonLocalJumps&~4)&&!r.labeledNonLocalBreaks&&!r.labeledNonLocalContinues;var s=e.createCall(t,undefined,e.map(r.loopParameters,function(e){return e.name}));var c=i?e.createYield(e.createToken(40),e.setEmitFlags(s,8388608)):s;if(o){a.push(e.createExpressionStatement(c));copyOutParameters(r.loopOutParameters,1,0,a)}else{var u=e.createUniqueName("state");var l=e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(u,undefined,c)]));a.push(l);copyOutParameters(r.loopOutParameters,1,0,a);if(r.nonLocalJumps&8){var f=void 0;if(n){n.nonLocalJumps|=8;f=e.createReturn(u)}else{f=e.createReturn(e.createPropertyAccess(u,"value"))}a.push(e.createIf(e.createBinary(e.createTypeOf(u),35,e.createLiteral("object")),f))}if(r.nonLocalJumps&2){a.push(e.createIf(e.createBinary(u,35,e.createLiteral("break")),e.createBreak()))}if(r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var d=[];processLabeledJumps(r.labeledNonLocalBreaks,true,u,n,d);processLabeledJumps(r.labeledNonLocalContinues,false,u,n,d);a.push(e.createSwitch(u,e.createCaseBlock(d)))}}return a}function setLabeledJump(t,r,n,i){if(r){if(!t.labeledNonLocalBreaks){t.labeledNonLocalBreaks=e.createMap()}t.labeledNonLocalBreaks.set(n,i)}else{if(!t.labeledNonLocalContinues){t.labeledNonLocalContinues=e.createMap()}t.labeledNonLocalContinues.set(n,i)}}function processLabeledJumps(t,r,n,i,a){if(!t){return}t.forEach(function(t,o){var s=[];if(!i||i.labels&&i.labels.get(o)){var c=e.createIdentifier(o);s.push(r?e.createBreak(c):e.createContinue(c))}else{setLabeledJump(i,r,o,t);s.push(e.createReturn(n))}a.push(e.createCaseClause(e.createLiteral(t),s))})}function processLoopVariableDeclaration(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o)){for(var c=0,u=o.elements;c<u.length;c++){var l=u[c];if(!e.isOmittedExpression(l)){processLoopVariableDeclaration(t,l,n,i,a)}}}else{n.push(e.createParameter(undefined,undefined,undefined,o));var f=s.getNodeCheckFlags(r);if(f&4194304||a){var d=e.createUniqueName("out_"+e.idText(o));var p=0;if(f&4194304){p|=1}if(e.isForStatement(t)&&t.initializer&&s.isBindingCapturedByNode(t.initializer,r)){p|=2}i.push({flags:p,originalName:o,outParamName:d})}}}function addObjectLiteralMembers(t,r,n,i){var a=r.properties;var o=a.length;for(var s=i;s<o;s++){var c=a[s];switch(c.kind){case 158:case 159:var u=e.getAllAccessorDeclarations(r.properties,c);if(c===u.firstAccessor){t.push(transformAccessorsToExpression(n,u,r,!!r.multiLine))}break;case 156:t.push(transformObjectLiteralMethodDeclarationToExpression(c,n,r,r.multiLine));break;case 275:t.push(transformPropertyAssignmentToExpression(c,n,r.multiLine));break;case 276:t.push(transformShorthandPropertyAssignmentToExpression(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r);break}}}function transformPropertyAssignmentToExpression(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,visitor,e.isPropertyName)),e.visitNode(t.initializer,visitor,e.isExpression));e.setTextRange(i,t);if(n){e.startOnNewLine(i)}return i}function transformShorthandPropertyAssignmentToExpression(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,visitor,e.isPropertyName)),e.getSynthesizedClone(t.name));e.setTextRange(i,t);if(n){e.startOnNewLine(i)}return i}function transformObjectLiteralMethodDeclarationToExpression(t,r,n,i){var a=enterSubtree(0,0);var o=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,visitor,e.isPropertyName)),transformFunctionLikeToExpression(t,t,undefined,n));e.setTextRange(o,t);if(i){e.startOnNewLine(o)}exitSubtree(a,49152,d&49152?16384:0);return o}function visitCatchClause(r){var n=enterSubtree(4032,0);var i;e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015.");if(e.isBindingPattern(r.variableDeclaration.name)){var a=e.createTempVariable(undefined);var o=e.createVariableDeclaration(a);e.setTextRange(o,r.variableDeclaration);var s=e.flattenDestructuringBinding(r.variableDeclaration,visitor,t,0,a);var c=e.createVariableDeclarationList(s);e.setTextRange(c,r.variableDeclaration);var u=e.createVariableStatement(undefined,c);i=e.updateCatchClause(r,o,addStatementToStartOfBlock(r.block,u))}else{i=e.visitEachChild(r,visitor,t)}exitSubtree(n,0,0);return i}function addStatementToStartOfBlock(t,r){var n=e.visitNodes(t.statements,visitor,e.isStatement);return e.updateBlock(t,[r].concat(n))}function visitMethodDeclaration(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=transformFunctionLikeToExpression(t,e.moveRangePos(t,-1),undefined,undefined);e.setEmitFlags(r,512|e.getEmitFlags(r));return e.setTextRange(e.createPropertyAssignment(t.name,r),t)}function visitAccessorDeclaration(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=g;g=undefined;var i=enterSubtree(16286,65);var a;var o=e.visitParameterList(r.parameters,visitor,t);var s=r.transformFlags&(16384|128)?transformFunctionBody(r):visitFunctionBodyDownLevel(r);if(r.kind===158){a=e.updateGetAccessor(r,r.decorators,r.modifiers,r.name,o,r.type,s)}else{a=e.updateSetAccessor(r,r.decorators,r.modifiers,r.name,o,s)}exitSubtree(i,49152,0);g=n;return a}function visitShorthandPropertyAssignment(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}function visitComputedPropertyName(r){var n=enterSubtree(0,8192);var i=e.visitEachChild(r,visitor,t);exitSubtree(n,49152,d&49152?32768:0);return i}function visitYieldExpression(r){return e.visitEachChild(r,visitor,t)}function visitArrayLiteralExpression(r){if(r.transformFlags&64){return transformAndSpreadElements(r.elements,true,!!r.multiLine,!!r.elements.hasTrailingComma)}return e.visitEachChild(r,visitor,t)}function visitCallExpression(t){if(e.getEmitFlags(t)&33554432){return visitTypeScriptClassWrapper(t)}if(t.transformFlags&64){return visitCallExpressionWithPotentialCapturedThisAssignment(t,true)}return e.updateCall(t,e.visitNode(t.expression,callExpressionVisitor,e.isExpression),undefined,e.visitNodes(t.arguments,visitor,e.isExpression))}function visitTypeScriptClassWrapper(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock);var n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer};var i=e.visitNodes(r.statements,visitor,e.isStatement);var a=e.filter(i,n);var o=e.filter(i,function(e){return!n(e)});var s=e.cast(e.first(a),e.isVariableStatement);var c=s.declarationList.declarations[0];var u=e.skipOuterExpressions(c.initializer);var l=e.tryCast(u,e.isAssignmentExpression);var f=e.cast(l?e.skipOuterExpressions(l.right):u,e.isCallExpression);var d=e.cast(e.skipOuterExpressions(f.expression),e.isFunctionExpression);var p=d.body.statements;var g=0;var _=-1;var m=[];if(l){var y=e.tryCast(p[g],e.isExpressionStatement);if(y){m.push(y);g++}m.push(p[g]);g++;m.push(e.createExpressionStatement(e.createAssignment(l.left,e.cast(c.name,e.isIdentifier))))}while(!e.isReturnStatement(e.elementAt(p,_))){_--}e.addRange(m,p,g,_);if(_<-1){e.addRange(m,p,_+1)}e.addRange(m,o);e.addRange(m,a,1);return e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(c.initializer,e.recreateOuterExpressions(l&&l.right,e.updateCall(f,e.recreateOuterExpressions(f.expression,e.updateFunctionExpression(d,undefined,undefined,undefined,undefined,d.parameters,undefined,e.updateBlock(d.body,m))),undefined,f.arguments))))}function visitImmediateSuperCallInBody(e){return visitCallExpressionWithPotentialCapturedThisAssignment(e,false)}function visitCallExpressionWithPotentialCapturedThisAssignment(r,n){if(r.transformFlags&131072||r.expression.kind===98||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=e.createCallBinding(r.expression,a),o=i.target,s=i.thisArg;if(r.expression.kind===98){e.setEmitFlags(s,4)}var c=void 0;if(r.transformFlags&131072){c=e.createFunctionApply(e.visitNode(o,callExpressionVisitor,e.isExpression),e.visitNode(s,visitor,e.isExpression),transformAndSpreadElements(r.arguments,false,false,false))}else{c=e.createFunctionCall(e.visitNode(o,callExpressionVisitor,e.isExpression),e.visitNode(s,visitor,e.isExpression),e.visitNodes(r.arguments,visitor,e.isExpression),r)}if(r.expression.kind===98){var u=e.createThis();e.setEmitFlags(u,4);var l=e.createLogicalOr(c,u);c=n?e.createAssignment(e.createFileLevelUniqueName("_this"),l):l}return e.setOriginalNode(c,r)}return e.visitEachChild(r,visitor,t)}function visitNewExpression(r){if(r.transformFlags&131072){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),a),i=n.target,o=n.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(i,visitor,e.isExpression),o,transformAndSpreadElements(e.createNodeArray([e.createVoidZero()].concat(r.arguments)),false,false,false)),undefined,[])}return e.visitEachChild(r,visitor,t)}function transformAndSpreadElements(r,n,i,a){var s=r.length;var c=e.flatten(e.spanMap(r,partitionSpread,function(e,t,r,n){return t(e,i,a&&n===s)}));if(o.downlevelIteration){if(c.length===1){var u=c[0];if(e.isCallExpression(u)&&e.isIdentifier(u.expression)&&e.getEmitFlags(u.expression)&4096&&u.expression.escapedText==="___spread"){return c[0]}}return e.createSpreadHelper(t,c)}else{if(c.length===1){var l=r[0];return n&&e.isSpreadElement(l)&&l.expression.kind!==187?e.createArraySlice(c[0]):c[0]}return e.createArrayConcat(c.shift(),c)}}function partitionSpread(t){return e.isSpreadElement(t)?visitSpanOfSpreads:visitSpanOfNonSpreads}function visitSpanOfSpreads(t){return e.map(t,visitExpressionOfSpread)}function visitSpanOfNonSpreads(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),visitor,e.isExpression),r)}function visitSpreadElement(t){return e.visitNode(t.expression,visitor,e.isExpression)}function visitExpressionOfSpread(t){return e.visitNode(t.expression,visitor,e.isExpression)}function visitTemplateLiteral(t){return e.setTextRange(e.createLiteral(t.text),t)}function visitStringLiteral(t){if(t.hasExtendedUnicodeEscape){return e.setTextRange(e.createLiteral(t.text),t)}return t}function visitNumericLiteral(t){if(t.numericLiteralFlags&384){return e.setTextRange(e.createNumericLiteral(t.text),t)}return t}function visitTaggedTemplateExpression(r){var n=e.visitNode(r.tag,visitor,e.isExpression);var i=[undefined];var a=[];var o=[];var s=r.template;if(e.isNoSubstitutionTemplateLiteral(s)){a.push(e.createLiteral(s.text));o.push(getRawLiteral(s))}else{a.push(e.createLiteral(s.head.text));o.push(getRawLiteral(s.head));for(var c=0,u=s.templateSpans;c<u.length;c++){var f=u[c];a.push(e.createLiteral(f.literal.text));o.push(getRawLiteral(f.literal));i.push(e.visitNode(f.expression,visitor,e.isExpression))}}var d=createTemplateObjectHelper(t,e.createArrayLiteral(a),e.createArrayLiteral(o));if(e.isExternalModule(l)){var p=e.createUniqueName("templateObject");recordTaggedTemplateString(p);i[0]=e.createLogicalOr(p,e.createAssignment(p,d))}else{i[0]=d}return e.createCall(n,undefined,i)}function getRawLiteral(t){var r=e.getSourceTextOfNodeFromSourceFile(l,t);var n=t.kind===14||t.kind===17;r=r.substring(1,r.length-(n?1:2));r=r.replace(/\r\n?/g,"\n");return e.setTextRange(e.createLiteral(r),t)}function visitTemplateExpression(t){var r=[];addTemplateHead(r,t);addTemplateSpans(r,t);var n=e.reduceLeft(r,e.createAdd);if(e.nodeIsSynthesized(n)){n.pos=t.pos;n.end=t.end}return n}function shouldAddTemplateHead(t){e.Debug.assert(t.templateSpans.length!==0);return t.head.text.length!==0||t.templateSpans[0].literal.text.length===0}function addTemplateHead(t,r){if(!shouldAddTemplateHead(r)){return}t.push(e.createLiteral(r.head.text))}function addTemplateSpans(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];t.push(e.visitNode(a.expression,visitor,e.isExpression));if(a.literal.text.length!==0){t.push(e.createLiteral(a.literal.text))}}}function visitSuperKeyword(t){return d&8&&!t?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function visitMetaProperty(t){if(t.keywordToken===95&&t.name.escapedText==="target"){if(d&8192){d|=32768}else{d|=16384}return e.createFileLevelUniqueName("_newTarget")}return t}function onEmitNode(t,r,n){if(_&1&&e.isFunctionLike(r)){var i=enterSubtree(16286,e.getEmitFlags(r)&8?65|16:65);u(t,r,n);exitSubtree(i,0,0);return}u(t,r,n)}function enableSubstitutionsForBlockScopedBindings(){if((_&2)===0){_|=2;t.enableSubstitution(72)}}function enableSubstitutionsForCapturedThis(){if((_&1)===0){_|=1;t.enableSubstitution(100);t.enableEmitNotification(157);t.enableEmitNotification(156);t.enableEmitNotification(158);t.enableEmitNotification(159);t.enableEmitNotification(197);t.enableEmitNotification(196);t.enableEmitNotification(239)}}function onSubstituteNode(t,r){r=c(t,r);if(t===1){return substituteExpression(r)}if(e.isIdentifier(r)){return substituteIdentifier(r)}return r}function substituteIdentifier(t){if(_&2&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&isNameOfDeclarationWithCollidingName(r)){return e.setTextRange(e.getGeneratedNameForNode(r),t)}}return t}function isNameOfDeclarationWithCollidingName(e){switch(e.parent.kind){case 186:case 240:case 243:case 237:return e.parent.name===e&&s.isDeclarationWithCollidingName(e.parent)}return false}function substituteExpression(e){switch(e.kind){case 72:return substituteExpressionIdentifier(e);case 100:return substituteThisKeyword(e)}return e}function substituteExpressionIdentifier(t){if(_&2&&!e.isInternalName(t)){var r=s.getReferencedDeclarationWithCollidingName(t);if(r&&!(e.isClassLike(r)&&isPartOfClassBody(r,t))){return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}}return t}function isPartOfClassBody(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end){return false}var i=e.getEnclosingBlockScopeContainer(t);while(n){if(n===i||n===t){return false}if(e.isClassElement(n)&&n.parent===t){return true}n=n.parent}return false}function substituteThisKeyword(t){if(_&1&&d&16){return e.setTextRange(e.createFileLevelUniqueName("_this"),t)}return t}function getClassMemberPrefix(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function hasSynthesizedDefaultSuperCall(t,r){if(!t||!r){return false}if(e.some(t.parameters)){return false}var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||n.kind!==221){return false}var i=n.expression;if(!e.nodeIsSynthesized(i)||i.kind!==191){return false}var a=i.expression;if(!e.nodeIsSynthesized(a)||a.kind!==98){return false}var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||o.kind!==208){return false}var s=o.expression;return e.isIdentifier(s)&&s.escapedText==="arguments"}}e.transformES2015=transformES2015;function createExtendsHelper(t,r){t.requestEmitHelper(s);return e.createCall(e.getHelperName("__extends"),undefined,[r,e.createFileLevelUniqueName("_super")])}function createTemplateObjectHelper(t,r,n){t.requestEmitHelper(c);return e.createCall(e.getHelperName("__makeTemplateObject"),undefined,[r,n])}var s={name:"typescript:extends",scoped:false,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 (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};var c={name:"typescript:makeTemplateObject",scoped:false,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 };'}})(s||(s={}));var s;(function(e){function transformES5(t){var r=t.getCompilerOptions();var n;var i;if(r.jsx===1||r.jsx===3){n=t.onEmitNode;t.onEmitNode=onEmitNode;t.enableEmitNotification(262);t.enableEmitNotification(263);t.enableEmitNotification(261);i=[]}var a=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;t.enableSubstitution(189);t.enableSubstitution(275);return e.chainBundle(transformSourceFile);function transformSourceFile(e){return e}function onEmitNode(t,r,a){switch(r.kind){case 262:case 263:case 261:var o=r.tagName;i[e.getOriginalNodeId(o)]=true;break}n(t,r,a)}function onSubstituteNode(t,r){if(r.id&&i&&i[r.id]){return a(t,r)}r=a(t,r);if(e.isPropertyAccessExpression(r)){return substitutePropertyAccessExpression(r)}else if(e.isPropertyAssignment(r)){return substitutePropertyAssignment(r)}return r}function substitutePropertyAccessExpression(t){var r=trySubstituteReservedName(t.name);if(r){return e.setTextRange(e.createElementAccess(t.expression,r),t)}return t}function substitutePropertyAssignment(t){var r=e.isIdentifier(t.name)&&trySubstituteReservedName(t.name);if(r){return e.updatePropertyAssignment(t,r,t.initializer)}return t}function trySubstituteReservedName(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):undefined);if(r!==undefined&&r>=73&&r<=108){return e.setTextRange(e.createLiteral(t),t)}return undefined}}e.transformES5=transformES5})(s||(s={}));var s;(function(e){var t;(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={}));var r;(function(e){e[e["Open"]=0]="Open";e[e["Close"]=1]="Close"})(r||(r={}));var n;(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"})(n||(n={}));var i;(function(e){e[e["Try"]=0]="Try";e[e["Catch"]=1]="Catch";e[e["Finally"]=2]="Finally";e[e["Done"]=3]="Done"})(i||(i={}));var 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"})(a||(a={}));function getInstructionName(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 undefined}}function transformGenerators(t){var r=t.resumeLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistFunctionDeclaration,a=t.hoistVariableDeclaration;var o=t.getCompilerOptions();var s=e.getEmitScriptTarget(o);var c=t.getEmitResolver();var u=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;var l;var f;var d;var p;var g;var _;var m;var y;var h;var v;var T=1;var S;var b;var x;var C;var E=0;var D=0;var k;var N;var A;var O;var F;var P;var I;var w;return e.chainBundle(transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile||(r.transformFlags&512)===0){return r}var n=e.visitEachChild(r,visitor,t);e.addEmitHelpers(n,t.readEmitHelpers());return n}function visitor(r){var n=r.transformFlags;if(p){return visitJavaScriptInStatementContainingYield(r)}else if(d){return visitJavaScriptInGeneratorFunctionBody(r)}else if(n&256){return visitGenerator(r)}else if(n&512){return e.visitEachChild(r,visitor,t)}else{return r}}function visitJavaScriptInStatementContainingYield(e){switch(e.kind){case 223:return visitDoStatement(e);case 224:return visitWhileStatement(e);case 232:return visitSwitchStatement(e);case 233:return visitLabeledStatement(e);default:return visitJavaScriptInGeneratorFunctionBody(e)}}function visitJavaScriptInGeneratorFunctionBody(r){switch(r.kind){case 239:return visitFunctionDeclaration(r);case 196:return visitFunctionExpression(r);case 158:case 159:return visitAccessorDeclaration(r);case 219:return visitVariableStatement(r);case 225:return visitForStatement(r);case 226:return visitForInStatement(r);case 229:return visitBreakStatement(r);case 228:return visitContinueStatement(r);case 230:return visitReturnStatement(r);default:if(r.transformFlags&4194304){return visitJavaScriptContainingYield(r)}else if(r.transformFlags&(512|8388608)){return e.visitEachChild(r,visitor,t)}else{return r}}}function visitJavaScriptContainingYield(r){switch(r.kind){case 204:return visitBinaryExpression(r);case 205:return visitConditionalExpression(r);case 207:return visitYieldExpression(r);case 187:return visitArrayLiteralExpression(r);case 188:return visitObjectLiteralExpression(r);case 190:return visitElementAccessExpression(r);case 191:return visitCallExpression(r);case 192:return visitNewExpression(r);default:return e.visitEachChild(r,visitor,t)}}function visitGenerator(t){switch(t.kind){case 239:return visitFunctionDeclaration(t);case 196:return visitFunctionExpression(t);default:return e.Debug.failBadSyntaxKind(t)}}function visitFunctionDeclaration(r){if(r.asteriskToken){r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(undefined,r.modifiers,undefined,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,transformGeneratorFunctionBody(r.body)),r),r)}else{var n=d;var a=p;d=false;p=false;r=e.visitEachChild(r,visitor,t);d=n;p=a}if(d){i(r);return undefined}else{return r}}function visitFunctionExpression(r){if(r.asteriskToken){r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(undefined,undefined,r.name,undefined,e.visitParameterList(r.parameters,visitor,t),undefined,transformGeneratorFunctionBody(r.body)),r),r)}else{var n=d;var i=p;d=false;p=false;r=e.visitEachChild(r,visitor,t);d=n;p=i}return r}function visitAccessorDeclaration(r){var n=d;var i=p;d=false;p=false;r=e.visitEachChild(r,visitor,t);d=n;p=i;return r}function transformGeneratorFunctionBody(t){var i=[];var a=d;var o=p;var s=g;var c=_;var u=m;var l=y;var f=h;var E=v;var D=T;var k=S;var N=b;var A=x;var O=C;d=true;p=false;g=undefined;_=undefined;m=undefined;y=undefined;h=undefined;v=undefined;T=1;S=undefined;b=undefined;x=undefined;C=e.createTempVariable(undefined);r();var F=e.addPrologue(i,t.statements,false,visitor);transformAndEmitStatements(t.statements,F);var P=build();e.addStatementsAfterPrologue(i,n());i.push(e.createReturn(P));d=a;p=o;g=s;_=c;m=u;y=l;h=f;v=E;T=D;S=k;b=N;x=A;C=O;return e.setTextRange(e.createBlock(i,t.multiLine),t)}function visitVariableStatement(t){if(t.transformFlags&4194304){transformAndEmitVariableDeclarationList(t.declarationList);return undefined}else{if(e.getEmitFlags(t)&1048576){return t}for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];a(i.name)}var o=e.getInitializedVariables(t.declarationList);if(o.length===0){return undefined}return e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(o,transformInitializedVariable))),t)}}function visitBinaryExpression(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return visitLeftAssociativeBinaryExpression(t);case 1:return visitRightAssociativeBinaryExpression(t);default:return e.Debug.assertNever(r)}}function isCompoundAssignment(e){return e>=60&&e<=71}function getOperatorForCompoundAssignment(e){switch(e){case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 43;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50;case 71:return 51}}function visitRightAssociativeBinaryExpression(r){var n=r.left,i=r.right;if(containsYield(i)){var a=void 0;switch(n.kind){case 189:a=e.updatePropertyAccess(n,cacheExpression(e.visitNode(n.expression,visitor,e.isLeftHandSideExpression)),n.name);break;case 190:a=e.updateElementAccess(n,cacheExpression(e.visitNode(n.expression,visitor,e.isLeftHandSideExpression)),cacheExpression(e.visitNode(n.argumentExpression,visitor,e.isExpression)));break;default:a=e.visitNode(n,visitor,e.isExpression);break}var o=r.operatorToken.kind;if(isCompoundAssignment(o)){return e.setTextRange(e.createAssignment(a,e.setTextRange(e.createBinary(cacheExpression(a),getOperatorForCompoundAssignment(o),e.visitNode(i,visitor,e.isExpression)),r)),r)}else{return e.updateBinary(r,a,e.visitNode(i,visitor,e.isExpression))}}return e.visitEachChild(r,visitor,t)}function visitLeftAssociativeBinaryExpression(r){if(containsYield(r.right)){if(e.isLogicalOperator(r.operatorToken.kind)){return visitLogicalBinaryExpression(r)}else if(r.operatorToken.kind===27){return visitCommaExpression(r)}var n=e.getMutableClone(r);n.left=cacheExpression(e.visitNode(r.left,visitor,e.isExpression));n.right=e.visitNode(r.right,visitor,e.isExpression);return n}return e.visitEachChild(r,visitor,t)}function visitLogicalBinaryExpression(t){var r=defineLabel();var n=declareLocal();emitAssignment(n,e.visitNode(t.left,visitor,e.isExpression),t.left);if(t.operatorToken.kind===54){emitBreakWhenFalse(r,n,t.left)}else{emitBreakWhenTrue(r,n,t.left)}emitAssignment(n,e.visitNode(t.right,visitor,e.isExpression),t.right);markLabel(r);return n}function visitCommaExpression(t){var r=[];visit(t.left);visit(t.right);return e.inlineExpressions(r);function visit(t){if(e.isBinaryExpression(t)&&t.operatorToken.kind===27){visit(t.left);visit(t.right)}else{if(containsYield(t)&&r.length>0){emitWorker(1,[e.createExpressionStatement(e.inlineExpressions(r))]);r=[]}r.push(e.visitNode(t,visitor,e.isExpression))}}}function visitConditionalExpression(r){if(containsYield(r.whenTrue)||containsYield(r.whenFalse)){var n=defineLabel();var i=defineLabel();var a=declareLocal();emitBreakWhenFalse(n,e.visitNode(r.condition,visitor,e.isExpression),r.condition);emitAssignment(a,e.visitNode(r.whenTrue,visitor,e.isExpression),r.whenTrue);emitBreak(i);markLabel(n);emitAssignment(a,e.visitNode(r.whenFalse,visitor,e.isExpression),r.whenFalse);markLabel(i);return a}return e.visitEachChild(r,visitor,t)}function visitYieldExpression(r){var n=defineLabel();var i=e.visitNode(r.expression,visitor,e.isExpression);if(r.asteriskToken){var a=(e.getEmitFlags(r.expression)&8388608)===0?e.createValuesHelper(t,i,r):i;emitYieldStar(a,r)}else{emitYield(i,r)}markLabel(n);return createGeneratorResume(r)}function visitArrayLiteralExpression(e){return visitElements(e.elements,undefined,undefined,e.multiLine)}function visitElements(t,r,n,i){var a=countInitialNodesWithoutYield(t);var o;if(a>0){o=declareLocal();var s=e.visitNodes(t,visitor,e.isExpression,0,a);emitAssignment(o,e.createArrayLiteral(r?[r].concat(s):s));r=undefined}var c=e.reduceLeft(t,reduceElement,[],a);return o?e.createArrayConcat(o,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n);function reduceElement(t,n){if(containsYield(n)&&t.length>0){var a=o!==undefined;if(!o){o=declareLocal()}emitAssignment(o,a?e.createArrayConcat(o,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i));r=undefined;t=[]}t.push(e.visitNode(n,visitor,e.isExpression));return t}}function visitObjectLiteralExpression(t){var r=t.properties;var n=t.multiLine;var i=countInitialNodesWithoutYield(r);var a=declareLocal();emitAssignment(a,e.createObjectLiteral(e.visitNodes(r,visitor,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,reduceProperty,[],i);o.push(n?e.startOnNewLine(e.getMutableClone(a)):a);return e.inlineExpressions(o);function reduceProperty(r,i){if(containsYield(i)&&r.length>0){emitStatement(e.createExpressionStatement(e.inlineExpressions(r)));r=[]}var o=e.createExpressionForObjectLiteralElementLike(t,i,a);var s=e.visitNode(o,visitor,e.isExpression);if(s){if(n){e.startOnNewLine(s)}r.push(s)}return r}}function visitElementAccessExpression(r){if(containsYield(r.argumentExpression)){var n=e.getMutableClone(r);n.expression=cacheExpression(e.visitNode(r.expression,visitor,e.isLeftHandSideExpression));n.argumentExpression=e.visitNode(r.argumentExpression,visitor,e.isExpression);return n}return e.visitEachChild(r,visitor,t)}function visitCallExpression(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,containsYield)){var n=e.createCallBinding(r.expression,a,s,true),i=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(cacheExpression(e.visitNode(i,visitor,e.isLeftHandSideExpression)),o,visitElements(r.arguments),r),r)}return e.visitEachChild(r,visitor,t)}function visitNewExpression(r){if(e.forEach(r.arguments,containsYield)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),a),i=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(cacheExpression(e.visitNode(i,visitor,e.isExpression)),o,visitElements(r.arguments,e.createVoidZero())),undefined,[]),r),r)}return e.visitEachChild(r,visitor,t)}function transformAndEmitStatements(e,t){if(t===void 0){t=0}var r=e.length;for(var n=t;n<r;n++){transformAndEmitStatement(e[n])}}function transformAndEmitEmbeddedStatement(t){if(e.isBlock(t)){transformAndEmitStatements(t.statements)}else{transformAndEmitStatement(t)}}function transformAndEmitStatement(e){var t=p;if(!p){p=containsYield(e)}transformAndEmitStatementWorker(e);p=t}function transformAndEmitStatementWorker(t){switch(t.kind){case 218:return transformAndEmitBlock(t);case 221:return transformAndEmitExpressionStatement(t);case 222:return transformAndEmitIfStatement(t);case 223:return transformAndEmitDoStatement(t);case 224:return transformAndEmitWhileStatement(t);case 225:return transformAndEmitForStatement(t);case 226:return transformAndEmitForInStatement(t);case 228:return transformAndEmitContinueStatement(t);case 229:return transformAndEmitBreakStatement(t);case 230:return transformAndEmitReturnStatement(t);case 231:return transformAndEmitWithStatement(t);case 232:return transformAndEmitSwitchStatement(t);case 233:return transformAndEmitLabeledStatement(t);case 234:return transformAndEmitThrowStatement(t);case 235:return transformAndEmitTryStatement(t);default:return emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitBlock(t){if(containsYield(t)){transformAndEmitStatements(t.statements)}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitExpressionStatement(t){emitStatement(e.visitNode(t,visitor,e.isStatement))}function transformAndEmitVariableDeclarationList(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];var o=e.getSynthesizedClone(i.name);e.setCommentRange(o,i.name);a(o)}var s=e.getInitializedVariables(t);var c=s.length;var u=0;var l=[];while(u<c){for(var f=u;f<c;f++){var i=s[f];if(containsYield(i.initializer)&&l.length>0){break}l.push(transformInitializedVariable(i))}if(l.length){emitStatement(e.createExpressionStatement(e.inlineExpressions(l)));u+=l.length;l=[]}}return undefined}function transformInitializedVariable(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,visitor,e.isExpression)),t)}function transformAndEmitIfStatement(t){if(containsYield(t)){if(containsYield(t.thenStatement)||containsYield(t.elseStatement)){var r=defineLabel();var n=t.elseStatement?defineLabel():undefined;emitBreakWhenFalse(t.elseStatement?n:r,e.visitNode(t.expression,visitor,e.isExpression),t.expression);transformAndEmitEmbeddedStatement(t.thenStatement);if(t.elseStatement){emitBreak(r);markLabel(n);transformAndEmitEmbeddedStatement(t.elseStatement)}markLabel(r)}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitDoStatement(t){if(containsYield(t)){var r=defineLabel();var n=defineLabel();beginLoopBlock(r);markLabel(n);transformAndEmitEmbeddedStatement(t.statement);markLabel(r);emitBreakWhenTrue(n,e.visitNode(t.expression,visitor,e.isExpression));endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitDoStatement(r){if(p){beginScriptLoopBlock();r=e.visitEachChild(r,visitor,t);endLoopBlock();return r}else{return e.visitEachChild(r,visitor,t)}}function transformAndEmitWhileStatement(t){if(containsYield(t)){var r=defineLabel();var n=beginLoopBlock(r);markLabel(r);emitBreakWhenFalse(n,e.visitNode(t.expression,visitor,e.isExpression));transformAndEmitEmbeddedStatement(t.statement);emitBreak(r);endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitWhileStatement(r){if(p){beginScriptLoopBlock();r=e.visitEachChild(r,visitor,t);endLoopBlock();return r}else{return e.visitEachChild(r,visitor,t)}}function transformAndEmitForStatement(t){if(containsYield(t)){var r=defineLabel();var n=defineLabel();var i=beginLoopBlock(n);if(t.initializer){var a=t.initializer;if(e.isVariableDeclarationList(a)){transformAndEmitVariableDeclarationList(a)}else{emitStatement(e.setTextRange(e.createExpressionStatement(e.visitNode(a,visitor,e.isExpression)),a))}}markLabel(r);if(t.condition){emitBreakWhenFalse(i,e.visitNode(t.condition,visitor,e.isExpression))}transformAndEmitEmbeddedStatement(t.statement);markLabel(n);if(t.incrementor){emitStatement(e.setTextRange(e.createExpressionStatement(e.visitNode(t.incrementor,visitor,e.isExpression)),t.incrementor))}emitBreak(r);endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitForStatement(r){if(p){beginScriptLoopBlock()}var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];a(s.name)}var c=e.getInitializedVariables(n);r=e.updateFor(r,c.length>0?e.inlineExpressions(e.map(c,transformInitializedVariable)):undefined,e.visitNode(r.condition,visitor,e.isExpression),e.visitNode(r.incrementor,visitor,e.isExpression),e.visitNode(r.statement,visitor,e.isStatement,e.liftToBlock))}else{r=e.visitEachChild(r,visitor,t)}if(p){endLoopBlock()}return r}function transformAndEmitForInStatement(t){if(containsYield(t)){var r=declareLocal();var n=declareLocal();var i=e.createLoopVariable();var o=t.initializer;a(i);emitAssignment(r,e.createArrayLiteral());emitStatement(e.createForIn(n,e.visitNode(t.expression,visitor,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(r,"push"),undefined,[n]))));emitAssignment(i,e.createLiteral(0));var s=defineLabel();var c=defineLabel();var u=beginLoopBlock(c);markLabel(s);emitBreakWhenFalse(u,e.createLessThan(i,e.createPropertyAccess(r,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var f=0,d=o.declarations;f<d.length;f++){var p=d[f];a(p.name)}l=e.getSynthesizedClone(o.declarations[0].name)}else{l=e.visitNode(o,visitor,e.isExpression);e.Debug.assert(e.isLeftHandSideExpression(l))}emitAssignment(l,e.createElementAccess(r,i));transformAndEmitEmbeddedStatement(t.statement);markLabel(c);emitStatement(e.createExpressionStatement(e.createPostfixIncrement(i)));emitBreak(s);endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitForInStatement(r){if(p){beginScriptLoopBlock()}var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];a(s.name)}r=e.updateForIn(r,n.declarations[0].name,e.visitNode(r.expression,visitor,e.isExpression),e.visitNode(r.statement,visitor,e.isStatement,e.liftToBlock))}else{r=e.visitEachChild(r,visitor,t)}if(p){endLoopBlock()}return r}function transformAndEmitContinueStatement(t){var r=findContinueTarget(t.label?e.idText(t.label):undefined);if(r>0){emitBreak(r,t)}else{emitStatement(t)}}function visitContinueStatement(r){if(p){var n=findContinueTarget(r.label&&e.idText(r.label));if(n>0){return createInlineBreak(n,r)}}return e.visitEachChild(r,visitor,t)}function transformAndEmitBreakStatement(t){var r=findBreakTarget(t.label?e.idText(t.label):undefined);if(r>0){emitBreak(r,t)}else{emitStatement(t)}}function visitBreakStatement(r){if(p){var n=findBreakTarget(r.label&&e.idText(r.label));if(n>0){return createInlineBreak(n,r)}}return e.visitEachChild(r,visitor,t)}function transformAndEmitReturnStatement(t){emitReturn(e.visitNode(t.expression,visitor,e.isExpression),t)}function visitReturnStatement(t){return createInlineReturn(e.visitNode(t.expression,visitor,e.isExpression),t)}function transformAndEmitWithStatement(t){if(containsYield(t)){beginWithBlock(cacheExpression(e.visitNode(t.expression,visitor,e.isExpression)));transformAndEmitEmbeddedStatement(t.statement);endWithBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitSwitchStatement(t){if(containsYield(t.caseBlock)){var r=t.caseBlock;var n=r.clauses.length;var i=beginSwitchBlock();var a=cacheExpression(e.visitNode(t.expression,visitor,e.isExpression));var o=[];var s=-1;for(var c=0;c<n;c++){var u=r.clauses[c];o.push(defineLabel());if(u.kind===272&&s===-1){s=c}}var l=0;var f=[];while(l<n){var d=0;for(var c=l;c<n;c++){var u=r.clauses[c];if(u.kind===271){if(containsYield(u.expression)&&f.length>0){break}f.push(e.createCaseClause(e.visitNode(u.expression,visitor,e.isExpression),[createInlineBreak(o[c],u.expression)]))}else{d++}}if(f.length){emitStatement(e.createSwitch(a,e.createCaseBlock(f)));l+=f.length;f=[]}if(d>0){l+=d;d=0}}if(s>=0){emitBreak(o[s])}else{emitBreak(i)}for(var c=0;c<n;c++){markLabel(o[c]);transformAndEmitStatements(r.clauses[c].statements)}endSwitchBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitSwitchStatement(r){if(p){beginScriptSwitchBlock()}r=e.visitEachChild(r,visitor,t);if(p){endSwitchBlock()}return r}function transformAndEmitLabeledStatement(t){if(containsYield(t)){beginLabeledBlock(e.idText(t.label));transformAndEmitEmbeddedStatement(t.statement);endLabeledBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitLabeledStatement(r){if(p){beginScriptLabeledBlock(e.idText(r.label))}r=e.visitEachChild(r,visitor,t);if(p){endLabeledBlock()}return r}function transformAndEmitThrowStatement(t){emitThrow(e.visitNode(t.expression,visitor,e.isExpression),t)}function transformAndEmitTryStatement(r){if(containsYield(r)){beginExceptionBlock();transformAndEmitEmbeddedStatement(r.tryBlock);if(r.catchClause){beginCatchBlock(r.catchClause.variableDeclaration);transformAndEmitEmbeddedStatement(r.catchClause.block)}if(r.finallyBlock){beginFinallyBlock();transformAndEmitEmbeddedStatement(r.finallyBlock)}endExceptionBlock()}else{emitStatement(e.visitEachChild(r,visitor,t))}}function containsYield(e){return!!e&&(e.transformFlags&4194304)!==0}function countInitialNodesWithoutYield(e){var t=e.length;for(var r=0;r<t;r++){if(containsYield(e[r])){return r}}return-1}function onSubstituteNode(e,t){t=u(e,t);if(e===1){return substituteExpression(t)}return t}function substituteExpression(t){if(e.isIdentifier(t)){return substituteExpressionIdentifier(t)}return t}function substituteExpressionIdentifier(t){if(!e.isGeneratedIdentifier(t)&&l&&l.has(e.idText(t))){var r=e.getOriginalNode(t);if(e.isIdentifier(r)&&r.parent){var n=c.getReferencedValueDeclaration(r);if(n){var i=f[e.getOriginalNodeId(n)];if(i){var a=e.getMutableClone(i);e.setSourceMapRange(a,t);e.setCommentRange(a,t);return a}}}}return t}function cacheExpression(t){var r;if(e.isGeneratedIdentifier(t)||e.getEmitFlags(t)&4096){return t}r=e.createTempVariable(a);emitAssignment(r,t,t);return r}function declareLocal(t){var r=t?e.createUniqueName(t):e.createTempVariable(undefined);a(r);return r}function defineLabel(){if(!h){h=[]}var e=T;T++;h[e]=-1;return e}function markLabel(t){e.Debug.assert(h!==undefined,"No labels were defined.");h[t]=S?S.length:0}function beginBlock(e){if(!g){g=[];m=[];_=[];y=[]}var t=m.length;m[t]=0;_[t]=S?S.length:0;g[t]=e;y.push(e);return t}function endBlock(){var t=peekBlock();if(t===undefined)return e.Debug.fail("beginBlock was never called.");var r=m.length;m[r]=1;_[r]=S?S.length:0;g[r]=t;y.pop();return t}function peekBlock(){return e.lastOrUndefined(y)}function peekBlockKind(){var e=peekBlock();return e&&e.kind}function beginWithBlock(e){var t=defineLabel();var r=defineLabel();markLabel(t);beginBlock({kind:1,expression:e,startLabel:t,endLabel:r})}function endWithBlock(){e.Debug.assert(peekBlockKind()===1);var t=endBlock();markLabel(t.endLabel)}function beginExceptionBlock(){var e=defineLabel();var t=defineLabel();markLabel(e);beginBlock({kind:0,state:0,startLabel:e,endLabel:t});emitNop();return t}function beginCatchBlock(r){e.Debug.assert(peekBlockKind()===0);var n;if(e.isGeneratedIdentifier(r.name)){n=r.name;a(r.name)}else{var i=e.idText(r.name);n=declareLocal(i);if(!l){l=e.createMap();f=[];t.enableSubstitution(72)}l.set(i,true);f[e.getOriginalNodeId(r)]=n}var o=peekBlock();e.Debug.assert(o.state<1);var s=o.endLabel;emitBreak(s);var c=defineLabel();markLabel(c);o.state=1;o.catchVariable=n;o.catchLabel=c;emitAssignment(n,e.createCall(e.createPropertyAccess(C,"sent"),undefined,[]));emitNop()}function beginFinallyBlock(){e.Debug.assert(peekBlockKind()===0);var t=peekBlock();e.Debug.assert(t.state<2);var r=t.endLabel;emitBreak(r);var n=defineLabel();markLabel(n);t.state=2;t.finallyLabel=n}function endExceptionBlock(){e.Debug.assert(peekBlockKind()===0);var t=endBlock();var r=t.state;if(r<2){emitBreak(t.endLabel)}else{emitEndfinally()}markLabel(t.endLabel);emitNop();t.state=3}function beginScriptLoopBlock(){beginBlock({kind:3,isScript:true,breakLabel:-1,continueLabel:-1})}function beginLoopBlock(e){var t=defineLabel();beginBlock({kind:3,isScript:false,breakLabel:t,continueLabel:e});return t}function endLoopBlock(){e.Debug.assert(peekBlockKind()===3);var t=endBlock();var r=t.breakLabel;if(!t.isScript){markLabel(r)}}function beginScriptSwitchBlock(){beginBlock({kind:2,isScript:true,breakLabel:-1})}function beginSwitchBlock(){var e=defineLabel();beginBlock({kind:2,isScript:false,breakLabel:e});return e}function endSwitchBlock(){e.Debug.assert(peekBlockKind()===2);var t=endBlock();var r=t.breakLabel;if(!t.isScript){markLabel(r)}}function beginScriptLabeledBlock(e){beginBlock({kind:4,isScript:true,labelText:e,breakLabel:-1})}function beginLabeledBlock(e){var t=defineLabel();beginBlock({kind:4,isScript:false,labelText:e,breakLabel:t})}function endLabeledBlock(){e.Debug.assert(peekBlockKind()===4);var t=endBlock();if(!t.isScript){markLabel(t.breakLabel)}}function supportsUnlabeledBreak(e){return e.kind===2||e.kind===3}function supportsLabeledBreakOrContinue(e){return e.kind===4}function supportsUnlabeledContinue(e){return e.kind===3}function hasImmediateContainingLabeledBlock(e,t){for(var r=t;r>=0;r--){var n=y[r];if(supportsLabeledBreakOrContinue(n)){if(n.labelText===e){return true}}else{break}}return false}function findBreakTarget(e){if(y){if(e){for(var t=y.length-1;t>=0;t--){var r=y[t];if(supportsLabeledBreakOrContinue(r)&&r.labelText===e){return r.breakLabel}else if(supportsUnlabeledBreak(r)&&hasImmediateContainingLabeledBlock(e,t-1)){return r.breakLabel}}}else{for(var t=y.length-1;t>=0;t--){var r=y[t];if(supportsUnlabeledBreak(r)){return r.breakLabel}}}}return 0}function findContinueTarget(e){if(y){if(e){for(var t=y.length-1;t>=0;t--){var r=y[t];if(supportsUnlabeledContinue(r)&&hasImmediateContainingLabeledBlock(e,t-1)){return r.continueLabel}}}else{for(var t=y.length-1;t>=0;t--){var r=y[t];if(supportsUnlabeledContinue(r)){return r.continueLabel}}}}return 0}function createLabel(t){if(t!==undefined&&t>0){if(v===undefined){v=[]}var r=e.createLiteral(-1);if(v[t]===undefined){v[t]=[r]}else{v[t].push(r)}return r}return e.createOmittedExpression()}function createInstruction(t){var r=e.createLiteral(t);e.addSyntheticTrailingComment(r,3,getInstructionName(t));return r}function createInlineBreak(t,r){e.Debug.assertLessThan(0,t,"Invalid label");return e.setTextRange(e.createReturn(e.createArrayLiteral([createInstruction(3),createLabel(t)])),r)}function createInlineReturn(t,r){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[createInstruction(2),t]:[createInstruction(2)])),r)}function createGeneratorResume(t){return e.setTextRange(e.createCall(e.createPropertyAccess(C,"sent"),undefined,[]),t)}function emitNop(){emitWorker(0)}function emitStatement(e){if(e){emitWorker(1,[e])}else{emitNop()}}function emitAssignment(e,t,r){emitWorker(2,[e,t],r)}function emitBreak(e,t){emitWorker(3,[e],t)}function emitBreakWhenTrue(e,t,r){emitWorker(4,[e,t],r)}function emitBreakWhenFalse(e,t,r){emitWorker(5,[e,t],r)}function emitYieldStar(e,t){emitWorker(7,[e],t)}function emitYield(e,t){emitWorker(6,[e],t)}function emitReturn(e,t){emitWorker(8,[e],t)}function emitThrow(e,t){emitWorker(9,[e],t)}function emitEndfinally(){emitWorker(10)}function emitWorker(e,t,r){if(S===undefined){S=[];b=[];x=[]}if(h===undefined){markLabel(defineLabel())}var n=S.length;S[n]=e;b[n]=t;x[n]=r}function build(){E=0;D=0;k=undefined;N=false;A=false;O=undefined;F=undefined;P=undefined;I=undefined;w=undefined;var r=buildStatements();return createGeneratorHelper(t,e.setEmitFlags(e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,C)],undefined,e.createBlock(r,r.length>0)),524288))}function buildStatements(){if(S){for(var t=0;t<S.length;t++){writeOperation(t)}flushFinalLabel(S.length)}else{flushFinalLabel(0)}if(O){var r=e.createPropertyAccess(C,"label");var n=e.createSwitch(r,e.createCaseBlock(O));return[e.startOnNewLine(n)]}if(F){return F}return[]}function flushLabel(){if(!F){return}appendLabel(!N);N=false;A=false;D++}function flushFinalLabel(e){if(isFinalLabelReachable(e)){tryEnterLabel(e);w=undefined;writeReturn(undefined,undefined)}if(F&&O){appendLabel(false)}updateLabelExpressions()}function isFinalLabelReachable(e){if(!A){return true}if(!h||!v){return false}for(var t=0;t<h.length;t++){if(h[t]===e&&v[t]){return true}}return false}function appendLabel(t){if(!O){O=[]}if(F){if(w){for(var r=w.length-1;r>=0;r--){var n=w[r];F=[e.createWith(n.expression,e.createBlock(F))]}}if(I){var i=I.startLabel,a=I.catchLabel,o=I.finallyLabel,s=I.endLabel;F.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(C,"trys"),"push"),undefined,[e.createArrayLiteral([createLabel(i),createLabel(a),createLabel(o),createLabel(s)])])));I=undefined}if(t){F.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(C,"label"),e.createLiteral(D+1))))}}O.push(e.createCaseClause(e.createLiteral(D),F||[]));F=undefined}function tryEnterLabel(e){if(!h){return}for(var t=0;t<h.length;t++){if(h[t]===e){flushLabel();if(k===undefined){k=[]}if(k[D]===undefined){k[D]=[t]}else{k[D].push(t)}}}}function updateLabelExpressions(){if(v!==undefined&&k!==undefined){for(var e=0;e<k.length;e++){var t=k[e];if(t!==undefined){for(var r=0,n=t;r<n.length;r++){var i=n[r];var a=v[i];if(a!==undefined){for(var o=0,s=a;o<s.length;o++){var c=s[o];c.text=String(e)}}}}}}}function tryEnterOrLeaveBlock(e){if(g){for(;E<m.length&&_[E]<=e;E++){var t=g[E];var r=m[E];switch(t.kind){case 0:if(r===0){if(!P){P=[]}if(!F){F=[]}P.push(I);I=t}else if(r===1){I=P.pop()}break;case 1:if(r===0){if(!w){w=[]}w.push(t)}else if(r===1){w.pop()}break}}}}function writeOperation(e){tryEnterLabel(e);tryEnterOrLeaveBlock(e);if(N){return}N=false;A=false;var t=S[e];if(t===0){return}else if(t===10){return writeEndfinally()}var r=b[e];if(t===1){return writeStatement(r[0])}var n=x[e];switch(t){case 2:return writeAssign(r[0],r[1],n);case 3:return writeBreak(r[0],n);case 4:return writeBreakWhenTrue(r[0],r[1],n);case 5:return writeBreakWhenFalse(r[0],r[1],n);case 6:return writeYield(r[0],n);case 7:return writeYieldStar(r[0],n);case 8:return writeReturn(r[0],n);case 9:return writeThrow(r[0],n)}}function writeStatement(e){if(e){if(!F){F=[e]}else{F.push(e)}}}function writeAssign(t,r,n){writeStatement(e.setTextRange(e.createExpressionStatement(e.createAssignment(t,r)),n))}function writeThrow(t,r){N=true;A=true;writeStatement(e.setTextRange(e.createThrow(t),r))}function writeReturn(t,r){N=true;A=true;writeStatement(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[createInstruction(2),t]:[createInstruction(2)])),r),384))}function writeBreak(t,r){N=true;writeStatement(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([createInstruction(3),createLabel(t)])),r),384))}function writeBreakWhenTrue(t,r,n){writeStatement(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([createInstruction(3),createLabel(t)])),n),384)),1))}function writeBreakWhenFalse(t,r,n){writeStatement(e.setEmitFlags(e.createIf(e.createLogicalNot(r),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([createInstruction(3),createLabel(t)])),n),384)),1))}function writeYield(t,r){N=true;writeStatement(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[createInstruction(4),t]:[createInstruction(4)])),r),384))}function writeYieldStar(t,r){N=true;writeStatement(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([createInstruction(5),t])),r),384))}function writeEndfinally(){N=true;writeStatement(e.createReturn(e.createArrayLiteral([createInstruction(7)])))}}e.transformGenerators=transformGenerators;function createGeneratorHelper(t,r){t.requestEmitHelper(o);return e.createCall(e.getHelperName("__generator"),undefined,[e.createThis(),r])}var o={name:"typescript:generator",scoped:false,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 (_) 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 };'}})(s||(s={}));var s;(function(e){function transformModule(a){function getTransformModuleDelegate(t){switch(t){case e.ModuleKind.AMD:return transformAMDModule;case e.ModuleKind.UMD:return transformUMDModule;default:return transformCommonJSModule}}var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration;var u=a.getCompilerOptions();var l=a.getEmitResolver();var f=a.getEmitHost();var d=e.getEmitScriptTarget(u);var p=e.getEmitModuleKind(u);var g=a.onSubstituteNode;var _=a.onEmitNode;a.onSubstituteNode=onSubstituteNode;a.onEmitNode=onEmitNode;a.enableSubstitution(72);a.enableSubstitution(204);a.enableSubstitution(202);a.enableSubstitution(203);a.enableSubstitution(276);a.enableEmitNotification(279);var m=[];var y=[];var h;var v;var T;var S;return e.chainBundle(transformSourceFile);function transformSourceFile(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||t.transformFlags&16777216||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(u)&&(u.out||u.outFile))){return t}h=t;v=e.collectExternalModuleInfo(t,l,u);m[e.getOriginalNodeId(t)]=v;var r=getTransformModuleDelegate(p);var n=r(t);h=undefined;v=undefined;S=false;return e.aggregateTransformFlags(n)}function shouldEmitUnderscoreUnderscoreESModule(){if(!v.exportEquals&&e.isExternalModule(h)){return true}return false}function transformCommonJSModule(r){o();var n=[];var i=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(h);var c=e.addPrologue(n,r.statements,i,sourceElementVisitor);if(shouldEmitUnderscoreUnderscoreESModule()){e.append(n,createUnderscoreUnderscoreESModule())}e.append(n,e.visitNode(v.externalHelpersImportDeclaration,sourceElementVisitor,e.isStatement));e.addRange(n,e.visitNodes(r.statements,sourceElementVisitor,e.isStatement,c));addExportEqualsIfNeeded(n,false);e.addStatementsAfterPrologue(n,s());var l=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(n),r.statements));if(v.hasExportStarsToExportValues&&!u.importHelpers){e.addEmitHelper(l,t)}e.addEmitHelpers(l,a.readEmitHelpers());return l}function transformAMDModule(t){var r=e.createIdentifier("define");var n=e.tryGetModuleNameFromFile(t,f,u);var i=e.isJsonSourceFile(t)&&t;var o=collectAsynchronousDependencies(t,true),s=o.aliasedModuleNames,c=o.unaliasedModuleNames,l=o.importAliasNames;var d=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(r,undefined,(n?[n]:[]).concat([e.createArrayLiteral(i?e.emptyArray:[e.createLiteral("require"),e.createLiteral("exports")].concat(s,c)),i?i.statements.length?i.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,"require"),e.createParameter(undefined,undefined,undefined,"exports")].concat(l),undefined,transformAsynchronousModuleBody(t))])))]),t.statements));e.addEmitHelpers(d,a.readEmitHelpers());return d}function transformUMDModule(t){var r=collectAsynchronousDependencies(t,false),n=r.aliasedModuleNames,i=r.unaliasedModuleNames,o=r.importAliasNames;var s=e.tryGetModuleNameFromFile(t,f,u);var c=e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,"factory")],undefined,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(undefined,[e.createVariableDeclaration("v",undefined,e.createCall(e.createIdentifier("factory"),undefined,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("define"),undefined,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(n,i)),e.createIdentifier("factory")])))])))],true),undefined));var l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(c,undefined,[e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,"require"),e.createParameter(undefined,undefined,undefined,"exports")].concat(o),undefined,transformAsynchronousModuleBody(t))]))]),t.statements));e.addEmitHelpers(l,a.readEmitHelpers());return l}function collectAsynchronousDependencies(t,r){var n=[];var i=[];var a=[];for(var o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];if(c.name){n.push(e.createLiteral(c.path));a.push(e.createParameter(undefined,undefined,undefined,c.name))}else{i.push(e.createLiteral(c.path))}}for(var d=0,p=v.externalImports;d<p.length;d++){var g=p[d];var _=e.getExternalModuleNameLiteral(g,h,f,l,u);var m=e.getLocalNameForExternalImport(g,h);if(_){if(r&&m){e.setEmitFlags(m,4);n.push(_);a.push(e.createParameter(undefined,undefined,undefined,m))}else{i.push(_)}}}return{aliasedModuleNames:n,unaliasedModuleNames:i,importAliasNames:a}}function getAMDImportExpressionForImport(t){if(e.isImportEqualsDeclaration(t)||e.isExportDeclaration(t)||!e.getExternalModuleNameLiteral(t,h,f,l,u)){return undefined}var r=e.getLocalNameForExternalImport(t,h);var n=getHelperExpressionForImport(t,r);if(n===r){return undefined}return e.createExpressionStatement(e.createAssignment(r,n))}function transformAsynchronousModuleBody(n){o();var i=[];var a=e.addPrologue(i,n.statements,!u.noImplicitUseStrict,sourceElementVisitor);if(shouldEmitUnderscoreUnderscoreESModule()){e.append(i,createUnderscoreUnderscoreESModule())}e.append(i,e.visitNode(v.externalHelpersImportDeclaration,sourceElementVisitor,e.isStatement));if(p===e.ModuleKind.AMD){e.addRange(i,e.mapDefined(v.externalImports,getAMDImportExpressionForImport))}e.addRange(i,e.visitNodes(n.statements,sourceElementVisitor,e.isStatement,a));addExportEqualsIfNeeded(i,true);e.addStatementsAfterPrologue(i,s());var c=e.createBlock(i,true);if(v.hasExportStarsToExportValues&&!u.importHelpers){e.addEmitHelper(c,t)}if(S){e.addEmitHelper(c,r)}return c}function addExportEqualsIfNeeded(t,r){if(v.exportEquals){var n=e.visitNode(v.exportEquals.expression,moduleExpressionElementVisitor);if(n){if(r){var i=e.createReturn(n);e.setTextRange(i,v.exportEquals);e.setEmitFlags(i,384|1536);t.push(i)}else{var i=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),n));e.setTextRange(i,v.exportEquals);e.setEmitFlags(i,1536);t.push(i)}}}}function sourceElementVisitor(t){switch(t.kind){case 249:return visitImportDeclaration(t);case 248:return visitImportEqualsDeclaration(t);case 255:return visitExportDeclaration(t);case 254:return visitExportAssignment(t);case 219:return visitVariableStatement(t);case 239:return visitFunctionDeclaration(t);case 240:return visitClassDeclaration(t);case 310:return visitMergeDeclarationMarker(t);case 311:return visitEndOfDeclarationMarker(t);default:return e.visitEachChild(t,moduleExpressionElementVisitor,a)}}function moduleExpressionElementVisitor(t){if(!(t.transformFlags&16777216)&&!(t.transformFlags&2048)){return t}if(e.isImportCall(t)){return visitImportCallExpression(t)}else if(t.transformFlags&1024&&e.isBinaryExpression(t)){return visitDestructuringAssignment(t)}else{return e.visitEachChild(t,moduleExpressionElementVisitor,a)}}function destructuringNeedsFlattening(t){if(e.isObjectLiteralExpression(t)){for(var r=0,n=t.properties;r<n.length;r++){var i=n[r];switch(i.kind){case 275:if(destructuringNeedsFlattening(i.initializer)){return true}break;case 276:if(destructuringNeedsFlattening(i.name)){return true}break;case 277:if(destructuringNeedsFlattening(i.expression)){return true}break;case 156:case 158:case 159:return false;default:e.Debug.assertNever(i,"Unhandled object member kind")}}}else if(e.isArrayLiteralExpression(t)){for(var a=0,o=t.elements;a<o.length;a++){var i=o[a];if(e.isSpreadElement(i)){if(destructuringNeedsFlattening(i.expression)){return true}}else if(destructuringNeedsFlattening(i)){return true}}}else if(e.isIdentifier(t)){return e.length(getExports(t))>(e.isExportName(t)?1:0)}return false}function visitDestructuringAssignment(t){if(destructuringNeedsFlattening(t.left)){return e.flattenDestructuringAssignment(t,moduleExpressionElementVisitor,a,0,false,createAllExportExpressions)}return e.visitEachChild(t,moduleExpressionElementVisitor,a)}function visitImportCallExpression(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),moduleExpressionElementVisitor);var n=!!(t.transformFlags&8192);switch(u.module){case e.ModuleKind.AMD:return createImportCallExpressionAMD(r,n);case e.ModuleKind.UMD:return createImportCallExpressionUMD(r,n);case e.ModuleKind.CommonJS:default:return createImportCallExpressionCommonJS(r,n)}}function createImportCallExpressionUMD(t,r){S=true;if(e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),createImportCallExpressionCommonJS(t,r),createImportCallExpressionAMD(n,r))}else{var i=e.createTempVariable(c);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),createImportCallExpressionCommonJS(i,r),createImportCallExpressionAMD(i,r)))}}function createImportCallExpressionAMD(t,r){var i=e.createUniqueName("resolve");var o=e.createUniqueName("reject");var s=[e.createParameter(undefined,undefined,undefined,i),e.createParameter(undefined,undefined,undefined,o)];var c=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),undefined,[e.createArrayLiteral([t||e.createOmittedExpression()]),i,o]))]);var l;if(d>=2){l=e.createArrowFunction(undefined,undefined,s,undefined,undefined,c)}else{l=e.createFunctionExpression(undefined,undefined,undefined,undefined,s,undefined,c);if(r){e.setEmitFlags(l,8)}}var f=e.createNew(e.createIdentifier("Promise"),undefined,[l]);if(u.esModuleInterop){a.requestEmitHelper(n);return e.createCall(e.createPropertyAccess(f,e.createIdentifier("then")),undefined,[e.getHelperName("__importStar")])}return f}function createImportCallExpressionCommonJS(t,r){var i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),undefined,[]);var o=e.createCall(e.createIdentifier("require"),undefined,t?[t]:[]);if(u.esModuleInterop){a.requestEmitHelper(n);o=e.createCall(e.getHelperName("__importStar"),undefined,[o])}var s;if(d>=2){s=e.createArrowFunction(undefined,undefined,[],undefined,undefined,o)}else{s=e.createFunctionExpression(undefined,undefined,undefined,undefined,[],undefined,e.createBlock([e.createReturn(o)]));if(r){e.setEmitFlags(s,8)}}return e.createCall(e.createPropertyAccess(i,"then"),undefined,[s])}function getHelperExpressionForImport(t,r){if(!u.esModuleInterop||e.getEmitFlags(t)&67108864){return r}if(e.getImportNeedsImportStarHelper(t)){a.requestEmitHelper(n);return e.createCall(e.getHelperName("__importStar"),undefined,[r])}if(e.getImportNeedsImportDefaultHelper(t)){a.requestEmitHelper(i);return e.createCall(e.getHelperName("__importDefault"),undefined,[r])}return r}function visitImportDeclaration(t){var r;var n=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause){return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(createRequireCall(t)),t),t)}else{var i=[];if(n&&!e.isDefaultImport(t)){i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),undefined,getHelperExpressionForImport(t,createRequireCall(t))))}else{i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),undefined,getHelperExpressionForImport(t,createRequireCall(t))));if(n&&e.isDefaultImport(t)){i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),undefined,e.getGeneratedNameForNode(t)))}}r=e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(undefined,e.createVariableDeclarationList(i,d>=2?2:0)),t),t))}}else if(n&&e.isDefaultImport(t)){r=e.append(r,e.createVariableStatement(undefined,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),undefined,e.getGeneratedNameForNode(t)),t),t)],d>=2?2:0)))}if(hasAssociatedEndOfDeclarationMarker(t)){var a=e.getOriginalNodeId(t);y[a]=appendExportsOfImportDeclaration(y[a],t)}else{r=appendExportsOfImportDeclaration(r,t)}return e.singleOrMany(r)}function createRequireCall(t){var r=e.getExternalModuleNameLiteral(t,h,f,l,u);var n=[];if(r){n.push(r)}return e.createCall(e.createIdentifier("require"),undefined,n)}function visitImportEqualsDeclaration(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(p!==e.ModuleKind.AMD){if(e.hasModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(createExportExpression(t.name,createRequireCall(t))),t),t))}else{r=e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),undefined,createRequireCall(t))],d>=2?2:0)),t),t))}}else{if(e.hasModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(createExportExpression(e.getExportName(t),e.getLocalName(t))),t),t))}}if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);y[n]=appendExportsOfImportEqualsDeclaration(y[n],t)}else{r=appendExportsOfImportEqualsDeclaration(r,t)}return e.singleOrMany(r)}function visitExportDeclaration(t){if(!t.moduleSpecifier){return undefined}var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];if(p!==e.ModuleKind.AMD){n.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(r,undefined,createRequireCall(t))])),t),t))}for(var i=0,o=t.exportClause.elements;i<o.length;i++){var s=o[i];var c=e.createPropertyAccess(r,s.propertyName||s.name);n.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(createExportExpression(e.getExportName(s),c)),s),s))}return e.singleOrMany(n)}else{return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(createExportStarHelper(a,p!==e.ModuleKind.AMD?createRequireCall(t):r)),t),t)}}function visitExportAssignment(t){if(t.isExportEquals){return undefined}var r;var n=t.original;if(n&&hasAssociatedEndOfDeclarationMarker(n)){var i=e.getOriginalNodeId(t);y[i]=appendExportStatement(y[i],e.createIdentifier("default"),e.visitNode(t.expression,moduleExpressionElementVisitor),t,true)}else{r=appendExportStatement(r,e.createIdentifier("default"),e.visitNode(t.expression,moduleExpressionElementVisitor),t,true)}return e.singleOrMany(r)}function visitFunctionDeclaration(t){var r;if(e.hasModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),t.asteriskToken,e.getDeclarationName(t,true,true),undefined,e.visitNodes(t.parameters,moduleExpressionElementVisitor),undefined,e.visitEachChild(t.body,moduleExpressionElementVisitor,a)),t),t))}else{r=e.append(r,e.visitEachChild(t,moduleExpressionElementVisitor,a))}if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);y[n]=appendExportsOfHoistedDeclaration(y[n],t)}else{r=appendExportsOfHoistedDeclaration(r,t)}return e.singleOrMany(r)}function visitClassDeclaration(t){var r;if(e.hasModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(undefined,e.visitNodes(t.modifiers,modifierVisitor,e.isModifier),e.getDeclarationName(t,true,true),undefined,e.visitNodes(t.heritageClauses,moduleExpressionElementVisitor),e.visitNodes(t.members,moduleExpressionElementVisitor)),t),t))}else{r=e.append(r,e.visitEachChild(t,moduleExpressionElementVisitor,a))}if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);y[n]=appendExportsOfHoistedDeclaration(y[n],t)}else{r=appendExportsOfHoistedDeclaration(r,t)}return e.singleOrMany(r)}function visitVariableStatement(t){var r;var n;var i;if(e.hasModifier(t,1)){var o=void 0;for(var s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];if(e.isIdentifier(u.name)&&e.isLocalName(u.name)){if(!o){o=e.visitNodes(t.modifiers,modifierVisitor,e.isModifier)}n=e.append(n,u)}else if(u.initializer){i=e.append(i,transformInitializedVariable(u))}}if(n){r=e.append(r,e.updateVariableStatement(t,o,e.updateVariableDeclarationList(t.declarationList,n)))}if(i){r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(i)),t),t))}}else{r=e.append(r,e.visitEachChild(t,moduleExpressionElementVisitor,a))}if(hasAssociatedEndOfDeclarationMarker(t)){var l=e.getOriginalNodeId(t);y[l]=appendExportsOfVariableStatement(y[l],t)}else{r=appendExportsOfVariableStatement(r,t)}return e.singleOrMany(r)}function createAllExportExpressions(t,r,n){var i=getExports(t);if(i){var a=e.isExportName(t)?r:e.createAssignment(t,r);for(var o=0,s=i;o<s.length;o++){var c=s[o];e.setEmitFlags(a,4);a=createExportExpression(c,a,n)}return a}return e.createAssignment(t,r)}function transformInitializedVariable(t){if(e.isBindingPattern(t.name)){return e.flattenDestructuringAssignment(e.visitNode(t,moduleExpressionElementVisitor),undefined,a,0,false,createAllExportExpressions)}else{return e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,moduleExpressionElementVisitor))}}function visitMergeDeclarationMarker(t){if(hasAssociatedEndOfDeclarationMarker(t)&&t.original.kind===219){var r=e.getOriginalNodeId(t);y[r]=appendExportsOfVariableStatement(y[r],t.original)}return t}function hasAssociatedEndOfDeclarationMarker(t){return(e.getEmitFlags(t)&4194304)!==0}function visitEndOfDeclarationMarker(t){var r=e.getOriginalNodeId(t);var n=y[r];if(n){delete y[r];return e.append(n,t)}return t}function appendExportsOfImportDeclaration(e,t){if(v.exportEquals){return e}var r=t.importClause;if(!r){return e}if(r.name){e=appendExportsOfDeclaration(e,r)}var n=r.namedBindings;if(n){switch(n.kind){case 251:e=appendExportsOfDeclaration(e,n);break;case 252:for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e=appendExportsOfDeclaration(e,o)}break}}return e}function appendExportsOfImportEqualsDeclaration(e,t){if(v.exportEquals){return e}return appendExportsOfDeclaration(e,t)}function appendExportsOfVariableStatement(e,t){if(v.exportEquals){return e}for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];e=appendExportsOfBindingElement(e,i)}return e}function appendExportsOfBindingElement(t,r){if(v.exportEquals){return t}if(e.isBindingPattern(r.name)){for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){t=appendExportsOfBindingElement(t,a)}}}else if(!e.isGeneratedIdentifier(r.name)){t=appendExportsOfDeclaration(t,r)}return t}function appendExportsOfHoistedDeclaration(t,r){if(v.exportEquals){return t}if(e.hasModifier(r,1)){var n=e.hasModifier(r,512)?e.createIdentifier("default"):e.getDeclarationName(r);t=appendExportStatement(t,n,e.getLocalName(r),r)}if(r.name){t=appendExportsOfDeclaration(t,r)}return t}function appendExportsOfDeclaration(t,r){var n=e.getDeclarationName(r);var i=v.exportSpecifiers.get(e.idText(n));if(i){for(var a=0,o=i;a<o.length;a++){var s=o[a];t=appendExportStatement(t,s.name,n,s.name)}}return t}function appendExportStatement(t,r,n,i,a){t=e.append(t,createExportStatement(r,n,i,a));return t}function createUnderscoreUnderscoreESModule(){var t;if(d===0){t=e.createExpressionStatement(createExportExpression(e.createIdentifier("__esModule"),e.createLiteral(true)))}else{t=e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),undefined,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(true))])]))}e.setEmitFlags(t,1048576);return t}function createExportStatement(t,r,n,i){var a=e.setTextRange(e.createExpressionStatement(createExportExpression(t,r)),n);e.startOnNewLine(a);if(!i){e.setEmitFlags(a,1536)}return a}function createExportExpression(t,r,n){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function modifierVisitor(e){switch(e.kind){case 85:case 80:return undefined}return e}function onEmitNode(t,r,n){if(r.kind===279){h=r;v=m[e.getOriginalNodeId(h)];T=[];_(t,r,n);h=undefined;v=undefined;T=undefined}else{_(t,r,n)}}function onSubstituteNode(t,r){r=g(t,r);if(r.id&&T[r.id]){return r}if(t===1){return substituteExpression(r)}else if(e.isShorthandPropertyAssignment(r)){return substituteShorthandPropertyAssignment(r)}return r}function substituteShorthandPropertyAssignment(t){var r=t.name;var n=substituteExpressionIdentifier(r);if(n!==r){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}return t}function substituteExpression(e){switch(e.kind){case 72:return substituteExpressionIdentifier(e);case 204:return substituteBinaryExpression(e);case 203:case 202:return substituteUnaryExpression(e)}return e}function substituteExpressionIdentifier(t){if(e.getEmitFlags(t)&4096){var r=e.getExternalHelpersModuleName(h);if(r){return e.createPropertyAccess(r,t)}return t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=l.getReferencedExportContainer(t,e.isExportName(t));if(n&&n.kind===279){return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t)}var i=l.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i)){return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent),e.createIdentifier("default")),t)}else if(e.isImportSpecifier(i)){var a=i.propertyName||i.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent.parent.parent),e.getSynthesizedClone(a)),t)}}}return t}function substituteBinaryExpression(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=getExports(t.left);if(r){var n=t;for(var i=0,a=r;i<a.length;i++){var o=a[i];T[e.getNodeId(n)]=true;n=createExportExpression(o,n,t)}return n}}return t}function substituteUnaryExpression(t){if((t.operator===44||t.operator===45)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=getExports(t.operand);if(r){var n=t.kind===203?e.setTextRange(e.createBinary(t.operand,e.createToken(t.operator===44?60:61),e.createLiteral(1)),t):t;for(var i=0,a=r;i<a.length;i++){var o=a[i];T[e.getNodeId(n)]=true;n=createExportExpression(o,n)}return n}}return t}function getExports(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r){return v&&v.exportedBindings[e.getOriginalNodeId(r)]}}}}e.transformModule=transformModule;var t={name:"typescript:export-star",scoped:true,text:"\n function __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n }"};function createExportStarHelper(t,r){var n=t.getCompilerOptions();return n.importHelpers?e.createCall(e.getHelperName("__exportStar"),undefined,[r,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),undefined,[r])}var r={name:"typescript:dynamicimport-sync-require",scoped:true,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};var n={name:"typescript:commonjsimportstar",scoped:false,text:'\nvar __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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result["default"] = mod;\n return result;\n};'};var i={name:"typescript:commonjsimportdefault",scoped:false,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}})(s||(s={}));var s;(function(e){function transformSystemModule(t){var r=t.startLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration;var a=t.getCompilerOptions();var o=t.getEmitResolver();var s=t.getEmitHost();var c=t.onSubstituteNode;var u=t.onEmitNode;t.onSubstituteNode=onSubstituteNode;t.onEmitNode=onEmitNode;t.enableSubstitution(72);t.enableSubstitution(276);t.enableSubstitution(204);t.enableSubstitution(202);t.enableSubstitution(203);t.enableEmitNotification(279);var l=[];var f=[];var d=[];var p=[];var g;var _;var m;var y;var h;var v;var T;return e.chainBundle(transformSourceFile);function transformSourceFile(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||t.transformFlags&16777216)){return t}var r=e.getOriginalNodeId(t);g=t;v=t;_=l[r]=e.collectExternalModuleInfo(t,o,a);m=e.createUniqueName("exports");d[r]=m;y=e.createUniqueName("context");var n=collectDependencyGroups(_.externalImports);var i=createSystemModuleBody(t,n);var c=e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,m),e.createParameter(undefined,undefined,undefined,y)],undefined,i);var u=e.tryGetModuleNameFromFile(t,s,a);var f=e.createArrayLiteral(e.map(n,function(e){return e.name}));var S=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),undefined,u?[u,f,c]:[f,c]))]),t.statements)),1024);if(!(a.outFile||a.out)){e.moveEmitHelpers(S,i,function(e){return!e.scoped})}if(T){p[r]=T;T=undefined}g=undefined;_=undefined;m=undefined;y=undefined;h=undefined;v=undefined;return e.aggregateTransformFlags(S)}function collectDependencyGroups(t){var r=e.createMap();var n=[];for(var i=0,c=t;i<c.length;i++){var u=c[i];var l=e.getExternalModuleNameLiteral(u,g,s,o,a);if(l){var f=l.text;var d=r.get(f);if(d!==undefined){n[d].externalImports.push(u)}else{r.set(f,n.length);n.push({name:l,externalImports:[u]})}}}return n}function createSystemModuleBody(t,i){var o=[];r();var s=e.getStrictOptionValue(a,"alwaysStrict")||!a.noImplicitUseStrict&&e.isExternalModule(g);var c=e.addPrologue(o,t.statements,s,sourceElementVisitor);o.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",undefined,e.createLogicalAnd(y,e.createPropertyAccess(y,"id")))])));e.visitNode(_.externalHelpersImportDeclaration,sourceElementVisitor,e.isStatement);var u=e.visitNodes(t.statements,sourceElementVisitor,e.isStatement,c);e.addRange(o,h);e.addStatementsAfterPrologue(o,n());var l=addExportStarIfNeeded(o);var f=e.createObjectLiteral([e.createPropertyAssignment("setters",createSettersArray(l,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(undefined,undefined,undefined,undefined,[],undefined,e.createBlock(u,true)))]);f.multiLine=true;o.push(e.createReturn(f));return e.createBlock(o,true)}function addExportStarIfNeeded(t){if(!_.hasExportStarsToExportValues){return}if(!_.exportedNames&&_.exportSpecifiers.size===0){var r=false;for(var n=0,i=_.externalImports;n<i.length;n++){var a=i[n];if(a.kind===255&&a.exportClause){r=true;break}}if(!r){var o=createExportStarFunction(undefined);t.push(o);return o.name}}var s=[];if(_.exportedNames){for(var c=0,u=_.exportedNames;c<u.length;c++){var l=u[c];if(l.escapedText==="default"){continue}s.push(e.createPropertyAssignment(e.createLiteral(l),e.createTrue()))}}for(var f=0,d=_.externalImports;f<d.length;f++){var a=d[f];if(a.kind!==255){continue}if(!a.exportClause){continue}for(var p=0,g=a.exportClause.elements;p<g.length;p++){var m=g[p];s.push(e.createPropertyAssignment(e.createLiteral(e.idText(m.name||m.propertyName)),e.createTrue()))}}var y=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(y,undefined,e.createObjectLiteral(s,true))])));var h=createExportStarFunction(y);t.push(h);return h.name}function createExportStarFunction(t){var r=e.createUniqueName("exportStar");var n=e.createIdentifier("m");var i=e.createIdentifier("n");var a=e.createIdentifier("exports");var o=e.createStrictInequality(i,e.createLiteral("default"));if(t){o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),undefined,[i])))}return e.createFunctionDeclaration(undefined,undefined,undefined,r,undefined,[e.createParameter(undefined,undefined,undefined,n)],undefined,e.createBlock([e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(a,undefined,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(i,undefined)]),n,e.createBlock([e.setEmitFlags(e.createIf(o,e.createExpressionStatement(e.createAssignment(e.createElementAccess(a,i),e.createElementAccess(n,i)))),1)])),e.createExpressionStatement(e.createCall(m,undefined,[a]))],true))}function createSettersArray(t,r){var n=[];for(var i=0,a=r;i<a.length;i++){var o=a[i];var s=e.forEach(o.externalImports,function(t){return e.getLocalNameForExternalImport(t,g)});var c=s?e.getGeneratedNameForNode(s):e.createUniqueName("");var u=[];for(var l=0,f=o.externalImports;l<f.length;l++){var d=f[l];var p=e.getLocalNameForExternalImport(d,g);switch(d.kind){case 249:if(!d.importClause){break}case 248:e.Debug.assert(p!==undefined);u.push(e.createExpressionStatement(e.createAssignment(p,c)));break;case 255:e.Debug.assert(p!==undefined);if(d.exportClause){var _=[];for(var y=0,h=d.exportClause.elements;y<h.length;y++){var v=h[y];_.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name)),e.createElementAccess(c,e.createLiteral(e.idText(v.propertyName||v.name)))))}u.push(e.createExpressionStatement(e.createCall(m,undefined,[e.createObjectLiteral(_,true)])))}else{u.push(e.createExpressionStatement(e.createCall(t,undefined,[c])))}break}}n.push(e.createFunctionExpression(undefined,undefined,undefined,undefined,[e.createParameter(undefined,undefined,undefined,c)],undefined,e.createBlock(u,true)))}return e.createArrayLiteral(n,true)}function sourceElementVisitor(e){switch(e.kind){case 249:return visitImportDeclaration(e);case 248:return visitImportEqualsDeclaration(e);case 255:return undefined;case 254:return visitExportAssignment(e);default:return nestedElementVisitor(e)}}function visitImportDeclaration(t){var r;if(t.importClause){i(e.getLocalNameForExternalImport(t,g))}if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);f[n]=appendExportsOfImportDeclaration(f[n],t)}else{r=appendExportsOfImportDeclaration(r,t)}return e.singleOrMany(r)}function visitImportEqualsDeclaration(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;i(e.getLocalNameForExternalImport(t,g));if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);f[n]=appendExportsOfImportEqualsDeclaration(f[n],t)}else{r=appendExportsOfImportEqualsDeclaration(r,t)}return e.singleOrMany(r)}function visitExportAssignment(t){if(t.isExportEquals){return undefined}var r=e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression);var n=t.original;if(n&&hasAssociatedEndOfDeclarationMarker(n)){var i=e.getOriginalNodeId(t);f[i]=appendExportStatement(f[i],e.createIdentifier("default"),r,true)}else{return createExportStatement(e.createIdentifier("default"),r,true)}}function visitFunctionDeclaration(r){if(e.hasModifier(r,1)){h=e.append(h,e.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,modifierVisitor,e.isModifier),r.asteriskToken,e.getDeclarationName(r,true,true),undefined,e.visitNodes(r.parameters,destructuringAndImportCallVisitor,e.isParameterDeclaration),undefined,e.visitNode(r.body,destructuringAndImportCallVisitor,e.isBlock)))}else{h=e.append(h,e.visitEachChild(r,destructuringAndImportCallVisitor,t))}if(hasAssociatedEndOfDeclarationMarker(r)){var n=e.getOriginalNodeId(r);f[n]=appendExportsOfHoistedDeclaration(f[n],r)}else{h=appendExportsOfHoistedDeclaration(h,r)}return undefined}function visitClassDeclaration(t){var r;var n=e.getLocalName(t);i(n);r=e.append(r,e.setTextRange(e.createExpressionStatement(e.createAssignment(n,e.setTextRange(e.createClassExpression(undefined,t.name,undefined,e.visitNodes(t.heritageClauses,destructuringAndImportCallVisitor,e.isHeritageClause),e.visitNodes(t.members,destructuringAndImportCallVisitor,e.isClassElement)),t))),t));if(hasAssociatedEndOfDeclarationMarker(t)){var a=e.getOriginalNodeId(t);f[a]=appendExportsOfHoistedDeclaration(f[a],t)}else{r=appendExportsOfHoistedDeclaration(r,t)}return e.singleOrMany(r)}function visitVariableStatement(t){if(!shouldHoistVariableDeclarationList(t.declarationList)){return e.visitNode(t,destructuringAndImportCallVisitor,e.isStatement)}var r;var n=e.hasModifier(t,1);var i=hasAssociatedEndOfDeclarationMarker(t);for(var a=0,o=t.declarationList.declarations;a<o.length;a++){var s=o[a];if(s.initializer){r=e.append(r,transformInitializedVariable(s,n&&!i))}else{hoistBindingElement(s)}}var c;if(r){c=e.append(c,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(r)),t))}if(i){var u=e.getOriginalNodeId(t);f[u]=appendExportsOfVariableStatement(f[u],t,n)}else{c=appendExportsOfVariableStatement(c,t,false)}return e.singleOrMany(c)}function hoistBindingElement(t){if(e.isBindingPattern(t.name)){for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];if(!e.isOmittedExpression(a)){hoistBindingElement(a)}}}else{i(e.getSynthesizedClone(t.name))}}function shouldHoistVariableDeclarationList(t){return(e.getEmitFlags(t)&2097152)===0&&(v.kind===279||(e.getOriginalNode(t).flags&3)===0)}function transformInitializedVariable(r,n){var i=n?createExportedVariableAssignment:createNonExportedVariableAssignment;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,destructuringAndImportCallVisitor,t,0,false,i):r.initializer?i(r.name,e.visitNode(r.initializer,destructuringAndImportCallVisitor,e.isExpression)):r.name}function createExportedVariableAssignment(e,t,r){return createVariableAssignment(e,t,r,true)}function createNonExportedVariableAssignment(e,t,r){return createVariableAssignment(e,t,r,false)}function createVariableAssignment(t,r,n,a){i(e.getSynthesizedClone(t));return a?createExportExpression(t,preventSubstitution(e.setTextRange(e.createAssignment(t,r),n))):preventSubstitution(e.setTextRange(e.createAssignment(t,r),n))}function visitMergeDeclarationMarker(t){if(hasAssociatedEndOfDeclarationMarker(t)&&t.original.kind===219){var r=e.getOriginalNodeId(t);var n=e.hasModifier(t.original,1);f[r]=appendExportsOfVariableStatement(f[r],t.original,n)}return t}function hasAssociatedEndOfDeclarationMarker(t){return(e.getEmitFlags(t)&4194304)!==0}function visitEndOfDeclarationMarker(t){var r=e.getOriginalNodeId(t);var n=f[r];if(n){delete f[r];return e.append(n,t)}else{var i=e.getOriginalNode(t);if(e.isModuleOrEnumDeclaration(i)){return e.append(appendExportsOfDeclaration(n,i),t)}}return t}function appendExportsOfImportDeclaration(e,t){if(_.exportEquals){return e}var r=t.importClause;if(!r){return e}if(r.name){e=appendExportsOfDeclaration(e,r)}var n=r.namedBindings;if(n){switch(n.kind){case 251:e=appendExportsOfDeclaration(e,n);break;case 252:for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e=appendExportsOfDeclaration(e,o)}break}}return e}function appendExportsOfImportEqualsDeclaration(e,t){if(_.exportEquals){return e}return appendExportsOfDeclaration(e,t)}function appendExportsOfVariableStatement(e,t,r){if(_.exportEquals){return e}for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];if(a.initializer||r){e=appendExportsOfBindingElement(e,a,r)}}return e}function appendExportsOfBindingElement(t,r,n){if(_.exportEquals){return t}if(e.isBindingPattern(r.name)){for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){t=appendExportsOfBindingElement(t,o,n)}}}else if(!e.isGeneratedIdentifier(r.name)){var s=void 0;if(n){t=appendExportStatement(t,r.name,e.getLocalName(r));s=e.idText(r.name)}t=appendExportsOfDeclaration(t,r,s)}return t}function appendExportsOfHoistedDeclaration(t,r){if(_.exportEquals){return t}var n;if(e.hasModifier(r,1)){var i=e.hasModifier(r,512)?e.createLiteral("default"):r.name;t=appendExportStatement(t,i,e.getLocalName(r));n=e.getTextOfIdentifierOrLiteral(i)}if(r.name){t=appendExportsOfDeclaration(t,r,n)}return t}function appendExportsOfDeclaration(t,r,n){if(_.exportEquals){return t}var i=e.getDeclarationName(r);var a=_.exportSpecifiers.get(e.idText(i));if(a){for(var o=0,s=a;o<s.length;o++){var c=s[o];if(c.name.escapedText!==n){t=appendExportStatement(t,c.name,i)}}}return t}function appendExportStatement(t,r,n,i){t=e.append(t,createExportStatement(r,n,i));return t}function createExportStatement(t,r,n){var i=e.createExpressionStatement(createExportExpression(t,r));e.startOnNewLine(i);if(!n){e.setEmitFlags(i,1536)}return i}function createExportExpression(t,r){var n=e.isIdentifier(t)?e.createLiteral(t):t;e.setEmitFlags(r,e.getEmitFlags(r)|1536);return e.setCommentRange(e.createCall(m,undefined,[n,r]),r)}function nestedElementVisitor(e){switch(e.kind){case 219:return visitVariableStatement(e);case 239:return visitFunctionDeclaration(e);case 240:return visitClassDeclaration(e);case 225:return visitForStatement(e);case 226:return visitForInStatement(e);case 227:return visitForOfStatement(e);case 223:return visitDoStatement(e);case 224:return visitWhileStatement(e);case 233:return visitLabeledStatement(e);case 231:return visitWithStatement(e);case 232:return visitSwitchStatement(e);case 246:return visitCaseBlock(e);case 271:return visitCaseClause(e);case 272:return visitDefaultClause(e);case 235:return visitTryStatement(e);case 274:return visitCatchClause(e);case 218:return visitBlock(e);case 310:return visitMergeDeclarationMarker(e);case 311:return visitEndOfDeclarationMarker(e);default:return destructuringAndImportCallVisitor(e)}}function visitForStatement(t){var r=v;v=t;t=e.updateFor(t,t.initializer&&visitForInitializer(t.initializer),e.visitNode(t.condition,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.incrementor,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.statement,nestedElementVisitor,e.isStatement));v=r;return t}function visitForInStatement(t){var r=v;v=t;t=e.updateForIn(t,visitForInitializer(t.initializer),e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock));v=r;return t}function visitForOfStatement(t){var r=v;v=t;t=e.updateForOf(t,t.awaitModifier,visitForInitializer(t.initializer),e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock));v=r;return t}function shouldHoistForInitializer(t){return e.isVariableDeclarationList(t)&&shouldHoistVariableDeclarationList(t)}function visitForInitializer(r){if(shouldHoistForInitializer(r)){var n=void 0;for(var i=0,a=r.declarations;i<a.length;i++){var o=a[i];n=e.append(n,transformInitializedVariable(o,false));if(!o.initializer){hoistBindingElement(o)}}return n?e.inlineExpressions(n):e.createOmittedExpression()}else{return e.visitEachChild(r,nestedElementVisitor,t)}}function visitDoStatement(t){return e.updateDo(t,e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock),e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression))}function visitWhileStatement(t){return e.updateWhile(t,e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock))}function visitLabeledStatement(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock))}function visitWithStatement(t){return e.updateWith(t,e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.statement,nestedElementVisitor,e.isStatement,e.liftToBlock))}function visitSwitchStatement(t){return e.updateSwitch(t,e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNode(t.caseBlock,nestedElementVisitor,e.isCaseBlock))}function visitCaseBlock(t){var r=v;v=t;t=e.updateCaseBlock(t,e.visitNodes(t.clauses,nestedElementVisitor,e.isCaseOrDefaultClause));v=r;return t}function visitCaseClause(t){return e.updateCaseClause(t,e.visitNode(t.expression,destructuringAndImportCallVisitor,e.isExpression),e.visitNodes(t.statements,nestedElementVisitor,e.isStatement))}function visitDefaultClause(r){return e.visitEachChild(r,nestedElementVisitor,t)}function visitTryStatement(r){return e.visitEachChild(r,nestedElementVisitor,t)}function visitCatchClause(t){var r=v;v=t;t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,nestedElementVisitor,e.isBlock));v=r;return t}function visitBlock(r){var n=v;v=r;r=e.visitEachChild(r,nestedElementVisitor,t);v=n;return r}function destructuringAndImportCallVisitor(r){if(r.transformFlags&1024&&r.kind===204){return visitDestructuringAssignment(r)}else if(e.isImportCall(r)){return visitImportCallExpression(r)}else if(r.transformFlags&2048||r.transformFlags&16777216){return e.visitEachChild(r,destructuringAndImportCallVisitor,t)}else{return r}}function visitImportCallExpression(t){return e.createCall(e.createPropertyAccess(y,e.createIdentifier("import")),undefined,e.some(t.arguments)?[e.visitNode(t.arguments[0],destructuringAndImportCallVisitor)]:[])}function visitDestructuringAssignment(r){if(hasExportedReferenceInDestructuringTarget(r.left)){return e.flattenDestructuringAssignment(r,destructuringAndImportCallVisitor,t,0,true)}return e.visitEachChild(r,destructuringAndImportCallVisitor,t)}function hasExportedReferenceInDestructuringTarget(t){if(e.isAssignmentExpression(t,true)){return hasExportedReferenceInDestructuringTarget(t.left)}else if(e.isSpreadElement(t)){return hasExportedReferenceInDestructuringTarget(t.expression)}else if(e.isObjectLiteralExpression(t)){return e.some(t.properties,hasExportedReferenceInDestructuringTarget)}else if(e.isArrayLiteralExpression(t)){return e.some(t.elements,hasExportedReferenceInDestructuringTarget)}else if(e.isShorthandPropertyAssignment(t)){return hasExportedReferenceInDestructuringTarget(t.name)}else if(e.isPropertyAssignment(t)){return hasExportedReferenceInDestructuringTarget(t.initializer)}else if(e.isIdentifier(t)){var r=o.getReferencedExportContainer(t);return r!==undefined&&r.kind===279}else{return false}}function modifierVisitor(e){switch(e.kind){case 85:case 80:return undefined}return e}function onEmitNode(t,r,n){if(r.kind===279){var i=e.getOriginalNodeId(r);g=r;_=l[i];m=d[i];T=p[i];if(T){delete p[i]}u(t,r,n);g=undefined;_=undefined;m=undefined;T=undefined}else{u(t,r,n)}}function onSubstituteNode(e,t){t=c(e,t);if(isSubstitutionPrevented(t)){return t}if(e===1){return substituteExpression(t)}else if(e===4){return substituteUnspecified(t)}return t}function substituteUnspecified(e){switch(e.kind){case 276:return substituteShorthandPropertyAssignment(e)}return e}function substituteShorthandPropertyAssignment(t){var r=t.name;if(!e.isGeneratedIdentifier(r)&&!e.isLocalName(r)){var n=o.getReferencedImportDeclaration(r);if(n){if(e.isImportClause(n)){return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default"))),t)}else if(e.isImportSpecifier(n)){return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name))),t)}}}return t}function substituteExpression(e){switch(e.kind){case 72:return substituteExpressionIdentifier(e);case 204:return substituteBinaryExpression(e);case 202:case 203:return substituteUnaryExpression(e)}return e}function substituteExpressionIdentifier(t){if(e.getEmitFlags(t)&4096){var r=e.getExternalHelpersModuleName(g);if(r){return e.createPropertyAccess(r,t)}return t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=o.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n)){return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default")),t)}else if(e.isImportSpecifier(n)){return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name)),t)}}}return t}function substituteBinaryExpression(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=getExports(t.left);if(r){var n=t;for(var i=0,a=r;i<a.length;i++){var o=a[i];n=createExportExpression(o,preventSubstitution(n))}return n}}return t}function substituteUnaryExpression(t){if((t.operator===44||t.operator===45)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=getExports(t.operand);if(r){var n=t.kind===203?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t;for(var i=0,a=r;i<a.length;i++){var o=a[i];n=createExportExpression(o,preventSubstitution(n))}if(t.kind===203){n=t.operator===44?e.createSubtract(preventSubstitution(n),e.createLiteral(1)):e.createAdd(preventSubstitution(n),e.createLiteral(1))}return n}}return t}function getExports(t){var r;if(!e.isGeneratedIdentifier(t)){var n=o.getReferencedImportDeclaration(t)||o.getReferencedValueDeclaration(t);if(n){var i=o.getReferencedExportContainer(t,false);if(i&&i.kind===279){r=e.append(r,e.getDeclarationName(n))}r=e.addRange(r,_&&_.exportedBindings[e.getOriginalNodeId(n)])}}return r}function preventSubstitution(t){if(T===undefined)T=[];T[e.getNodeId(t)]=true;return t}function isSubstitutionPrevented(e){return T&&e.id&&T[e.id]}}e.transformSystemModule=transformSystemModule})(s||(s={}));var s;(function(e){function transformES2015Module(t){var r=t.getCompilerOptions();var n=t.onEmitNode;var i=t.onSubstituteNode;t.onEmitNode=onEmitNode;t.onSubstituteNode=onSubstituteNode;t.enableEmitNotification(279);t.enableSubstitution(72);var a;return e.chainBundle(transformSourceFile);function transformSourceFile(n){if(n.isDeclarationFile){return n}if(e.isExternalModule(n)||r.isolatedModules){var i=e.getOrCreateExternalHelpersModuleNameIfNeeded(n,r);if(i){var a=[];var o=e.addPrologue(a,n.statements);var s=e.createImportDeclaration(undefined,undefined,e.createImportClause(undefined,e.createNamespaceImport(i)),e.createLiteral(e.externalHelpersModuleNameText));e.addEmitFlags(s,67108864);e.append(a,s);e.addRange(a,e.visitNodes(n.statements,visitor,e.isStatement,o));return e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(a),n.statements))}else{return e.visitEachChild(n,visitor,t)}}return n}function visitor(e){switch(e.kind){case 248:return undefined;case 254:return visitExportAssignment(e)}return e}function visitExportAssignment(e){return e.isExportEquals?undefined:e}function onEmitNode(t,r,i){if(e.isSourceFile(r)){a=r;n(t,r,i);a=undefined}else{n(t,r,i)}}function onSubstituteNode(t,r){r=i(t,r);if(e.isIdentifier(r)&&t===1){return substituteExpressionIdentifier(r)}return r}function substituteExpressionIdentifier(t){if(e.getEmitFlags(t)&4096){var r=e.getExternalHelpersModuleName(a);if(r){return e.createPropertyAccess(r,t)}}return t}}e.transformES2015Module=transformES2015Module})(s||(s={}));var s;(function(e){function canProduceDiagnostics(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.canProduceDiagnostics=canProduceDiagnostics;function createGetSymbolAccessibilityDiagnosticForNodeName(t){if(e.isSetAccessor(t)||e.isGetAccessor(t)){return getAccessorNameVisibilityError}else if(e.isMethodSignature(t)||e.isMethodDeclaration(t)){return getMethodNameVisibilityError}else{return createGetSymbolAccessibilityDiagnosticForNode(t)}function getAccessorNameVisibilityError(e){var r=getAccessorNameVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getAccessorNameVisibilityDiagnosticMessage(r){if(e.hasModifier(t,32)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===240){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}}function getMethodNameVisibilityError(e){var r=getMethodNameVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getMethodNameVisibilityDiagnosticMessage(r){if(e.hasModifier(t,32)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===240){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}}e.createGetSymbolAccessibilityDiagnosticForNodeName=createGetSymbolAccessibilityDiagnosticForNodeName;function createGetSymbolAccessibilityDiagnosticForNode(t){if(e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)){return getVariableDeclarationTypeVisibilityError}else if(e.isSetAccessor(t)||e.isGetAccessor(t)){return getAccessorDeclarationTypeVisibilityError}else if(e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)){return getReturnTypeVisibilityError}else if(e.isParameter(t)){if(e.isParameterPropertyDeclaration(t)&&e.hasModifier(t.parent,8)){return getVariableDeclarationTypeVisibilityError}return getParameterDeclarationTypeVisibilityError}else if(e.isTypeParameterDeclaration(t)){return getTypeParameterConstraintVisibilityError}else if(e.isExpressionWithTypeArguments(t)){return getHeritageClauseVisibilityError}else if(e.isImportEqualsDeclaration(t)){return getImportEntityNameVisibilityError}else if(e.isTypeAliasDeclaration(t)){return getTypeAliasDeclarationVisibilityError}else{return e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind])}function getVariableDeclarationTypeVisibilityDiagnosticMessage(r){if(t.kind===237||t.kind===186){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1}else if(t.kind===154||t.kind===153||t.kind===151&&e.hasModifier(t.parent,8)){if(e.hasModifier(t,32)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===240||t.kind===151){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}}}function getVariableDeclarationTypeVisibilityError(e){var r=getVariableDeclarationTypeVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getAccessorDeclarationTypeVisibilityError(r){var n;if(t.kind===159){if(e.hasModifier(t,32)){n=r.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}else{n=r.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}}else{if(e.hasModifier(t,32)){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1}else{n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1}}return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}function getReturnTypeVisibilityError(r){var n;switch(t.kind){case 161:n=r.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 160:n=r.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 162:n=r.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 156:case 155:if(e.hasModifier(t,32)){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0}else if(t.parent.kind===240){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0}else{n=r.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 239:n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}function getParameterDeclarationTypeVisibilityError(e){var r=getParameterDeclarationTypeVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getParameterDeclarationTypeVisibilityDiagnosticMessage(r){switch(t.parent.kind){case 157:return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 161:case 166:return r.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 160:return r.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 162:return r.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 156:case 155:if(e.hasModifier(t.parent,32)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1}else if(t.parent.parent.kind===240){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1}else{return r.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 239:case 165:return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}function getTypeParameterConstraintVisibilityError(){var r;switch(t.parent.kind){case 240:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 241:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 161:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 160:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 156:case 155:if(e.hasModifier(t.parent,32)){r=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1}else if(t.parent.parent.kind===240){r=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1}else{r=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1}break;case 239:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 242:r=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:r,errorNode:t,typeName:t.name}}function getHeritageClauseVisibilityError(){var r;if(t.parent.parent.kind===240){r=e.isHeritageClause(t.parent)&&t.parent.token===109?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1}else{r=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1}return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}function getImportEntityNameVisibilityError(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function getTypeAliasDeclarationVisibilityError(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=createGetSymbolAccessibilityDiagnosticForNode})(s||(s={}));var s;(function(e){function getDeclarationDiagnostics(t,r,n){if(n&&e.isSourceFileJS(n)){return[]}var i=t.getCompilerOptions();var a=e.transformNodes(r,t,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJS),[transformDeclarations],false);return a.diagnostics}e.getDeclarationDiagnostics=getDeclarationDiagnostics;var t=1024|2048|4096|8|524288|4|1;function transformDeclarations(r){var n=function(){return e.Debug.fail("Diagnostic emitted without context")};var i=n;var a=true;var o=false;var s=false;var c=false;var u=false;var l;var f;var d;var p;var g;var _;var m=r.getEmitHost();var y={trackSymbol:trackSymbol,reportInaccessibleThisError:reportInaccessibleThisError,reportInaccessibleUniqueSymbolError:reportInaccessibleUniqueSymbolError,reportPrivateInBaseOfClassExpression:reportPrivateInBaseOfClassExpression,reportLikelyUnsafeImportRequiredError:reportLikelyUnsafeImportRequiredError,moduleResolverHost:m,trackReferencedAmbientModule:trackReferencedAmbientModule,trackExternalModuleSymbolOfImportTypeNode:trackExternalModuleSymbolOfImportTypeNode};var h;var v;var T;var S;var b=r.getEmitResolver();var x=r.getCompilerOptions();var C=e.getNewLineCharacter(x);var E=x.noResolve,D=x.stripInternal;return transformRoot;function recordTypeReferenceDirectivesIfNecessary(t){if(!t){return}f=f||e.createMap();for(var r=0,n=t;r<n.length;r++){var i=n[r];f.set(i,true)}}function trackReferencedAmbientModule(t,r){var n=b.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n)){return recordTypeReferenceDirectivesIfNecessary(n)}var i=e.getSourceFileOfNode(t);T.set(""+e.getOriginalNodeId(i),i)}function handleSymbolAccessibilityError(t){if(t.accessibility===0){if(t&&t.aliasesToMakeVisible){if(!d){d=t.aliasesToMakeVisible}else{for(var n=0,a=t.aliasesToMakeVisible;n<a.length;n++){var o=a[n];e.pushIfUnique(d,o)}}}}else{var s=i(t);if(s){if(s.typeName){r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||s.errorNode,s.diagnosticMessage,e.getTextOfNode(s.typeName),t.errorSymbolName,t.errorModuleName))}else{r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||s.errorNode,s.diagnosticMessage,t.errorSymbolName,t.errorModuleName))}}}}function trackExternalModuleSymbolOfImportTypeNode(e){if(!o){(_||(_=[])).push(e)}}function trackSymbol(e,t,r){if(e.flags&262144)return;handleSymbolAccessibilityError(b.isSymbolAccessible(e,t,r,true));recordTypeReferenceDirectivesIfNecessary(b.getTypeReferenceDirectivesForSymbol(e,r))}function reportPrivateInBaseOfClassExpression(t){if(h){r.addDiagnostic(e.createDiagnosticForNode(h,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))}}function reportInaccessibleUniqueSymbolError(){if(h){r.addDiagnostic(e.createDiagnosticForNode(h,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(h),"unique symbol"))}}function reportInaccessibleThisError(){if(h){r.addDiagnostic(e.createDiagnosticForNode(h,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(h),"this"))}}function reportLikelyUnsafeImportRequiredError(t){if(h){r.addDiagnostic(e.createDiagnosticForNode(h,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(h),t))}}function transformRoot(t){if(t.kind===279&&(t.isDeclarationFile||e.isSourceFileJS(t))){return t}if(t.kind===280){o=true;T=e.createMap();S=e.createMap();var y=false;var h=e.createBundle(e.map(t.sourceFiles,function(t){if(t.isDeclarationFile||e.isSourceFileJS(t))return undefined;y=y||t.hasNoDefaultLib;v=t;l=t;d=undefined;g=false;p=e.createMap();i=n;c=false;u=false;collectReferences(t,T);collectLibs(t,S);if(e.isExternalModule(t)){s=false;a=false;var o=e.visitNodes(t.statements,visitDeclarationStatements);var f=e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(125)],e.createLiteral(e.getResolvedExternalModuleName(r.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(transformAndReplaceLatePaintedStatements(o)),t.statements)))],true,[],[],false,[]);return f}a=true;var _=e.visitNodes(t.statements,visitDeclarationStatements);return e.updateSourceFileNode(t,transformAndReplaceLatePaintedStatements(_),true,[],[],false,[])}),e.mapDefined(t.prepends,function(t){if(t.kind===282){return e.createUnparsedSourceFile(t.declarationText,t.declarationMapPath,t.declarationMapText)}}));h.syntheticFileReferences=[];h.syntheticTypeReferences=getFileReferencesForUsedTypeReferences();h.syntheticLibReferences=getLibReferences();h.hasNoDefaultLib=y;var b=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,m,true).declarationFilePath));var x=mapReferencesIntoArray(h.syntheticFileReferences,b);T.forEach(x);return h}a=true;c=false;u=false;l=t;v=t;i=n;o=false;s=false;g=false;d=undefined;p=e.createMap();f=undefined;T=collectReferences(v,e.createMap());S=collectLibs(v,e.createMap());var C=[];var E=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,m,true).declarationFilePath));var D=mapReferencesIntoArray(C,E);var k=e.visitNodes(t.statements,visitDeclarationStatements);var N=e.setTextRange(e.createNodeArray(transformAndReplaceLatePaintedStatements(k)),t.statements);T.forEach(D);var A=e.filter(N,e.isAnyImportSyntax);if(e.isExternalModule(t)&&(!s||c&&!u)){N=e.setTextRange(e.createNodeArray(N.concat([e.createExportDeclaration(undefined,undefined,e.createNamedExports([]),undefined)])),N)}var O=e.updateSourceFileNode(t,N,true,C,getFileReferencesForUsedTypeReferences(),t.hasNoDefaultLib,getLibReferences());O.exportedModulesFromDeclarationEmit=_;return O;function getLibReferences(){return e.map(e.arrayFrom(S.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function getFileReferencesForUsedTypeReferences(){return f?e.mapDefined(e.arrayFrom(f.keys()),getFileReferenceForTypeName):[]}function getFileReferenceForTypeName(t){if(A){for(var r=0,n=A;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t){return undefined}}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t){return undefined}}}return{fileName:t,pos:-1,end:-1}}function mapReferencesIntoArray(r,n){return function(i){var a;if(i.isDeclarationFile){a=i.fileName}else{if(o&&e.contains(t.sourceFiles,i))return;var s=e.getOutputPathsFor(i,m,true);a=s.declarationFilePath||s.jsFilePath||i.fileName}if(a){var c=e.getRelativePathToDirectoryOrUrl(n,a,m.getCurrentDirectory(),m.getCanonicalFileName,false);if(e.startsWith(c,"./")&&e.hasExtension(c)){c=c.substring(2)}if(e.startsWith(c,"node_modules/")||c.indexOf("/node_modules/")!==-1){return}r.push({pos:-1,end:-1,fileName:c})}}}}function collectReferences(t,r){if(E||e.isSourceFileJS(t))return r;e.forEach(t.referencedFiles,function(n){var i=e.tryResolveScriptReference(m,t,n);if(i){r.set(""+e.getOriginalNodeId(i),i)}});return r}function collectLibs(t,r){e.forEach(t.libReferenceDirectives,function(e){var t=m.getLibFileFromReference(e);if(t){r.set(e.fileName.toLocaleLowerCase(),true)}});return r}function filterBindingPatternInitializers(t){if(t.kind===72){return t}else{if(t.kind===185){return e.updateArrayBindingPattern(t,e.visitNodes(t.elements,visitBindingElement))}else{return e.updateObjectBindingPattern(t,e.visitNodes(t.elements,visitBindingElement))}}function visitBindingElement(t){if(t.kind===210){return t}return e.updateBindingElement(t,t.dotDotDotToken,t.propertyName,filterBindingPatternInitializers(t.name),shouldPrintWithInitializer(t)?t.initializer:undefined)}}function ensureParameter(t,r){var n;if(!g){n=i;i=e.createGetSymbolAccessibilityDiagnosticForNode(t)}var a=e.updateParameter(t,undefined,maskModifiers(t,r),t.dotDotDotToken,filterBindingPatternInitializers(t.name),b.isOptionalParameter(t)?t.questionToken||e.createToken(56):undefined,ensureType(t,t.type,true),ensureNoInitializer(t));if(!g){i=n}return a}function shouldPrintWithInitializer(t){return canHaveLiteralInitializer(t)&&b.isLiteralConstDeclaration(e.getParseTreeNode(t))}function ensureNoInitializer(t){if(shouldPrintWithInitializer(t)){return b.createLiteralConstValue(e.getParseTreeNode(t),y)}return undefined}function ensureType(r,n,a){if(!a&&e.hasModifier(r,8)){return}if(shouldPrintWithInitializer(r)){return}var o=r.kind===151&&(b.isRequiredInitializedParameter(r)||b.isOptionalUninitializedParameterProperty(r));if(n&&!o){return e.visitNode(n,visitDeclarationSubtree)}if(!e.getParseTreeNode(r)){return n?e.visitNode(n,visitDeclarationSubtree):e.createKeywordTypeNode(120)}if(r.kind===159){return e.createKeywordTypeNode(120)}h=r.name;var s;if(!g){s=i;i=e.createGetSymbolAccessibilityDiagnosticForNode(r)}if(r.kind===237||r.kind===186){return cleanup(b.createTypeOfDeclaration(r,l,t,y))}if(r.kind===151||r.kind===154||r.kind===153){if(!r.initializer)return cleanup(b.createTypeOfDeclaration(r,l,t,y,o));return cleanup(b.createTypeOfDeclaration(r,l,t,y,o)||b.createTypeOfExpression(r.initializer,l,t,y))}return cleanup(b.createReturnTypeOfSignatureDeclaration(r,l,t,y));function cleanup(t){h=undefined;if(!g){i=s}return t||e.createKeywordTypeNode(120)}}function isDeclarationAndNotVisible(t){t=e.getParseTreeNode(t);switch(t.kind){case 239:case 244:case 241:case 240:case 242:case 243:return!b.isDeclarationVisible(t);case 237:return!getBindingNameVisible(t);case 248:case 249:case 255:case 254:return false}return false}function getBindingNameVisible(t){if(e.isOmittedExpression(t)){return false}if(e.isBindingPattern(t.name)){return e.some(t.name.elements,getBindingNameVisible)}else{return b.isDeclarationVisible(t)}}function updateParamsList(t,r,n){if(e.hasModifier(t,8)){return undefined}var i=e.map(r,function(e){return ensureParameter(e,n)});if(!i){return undefined}return e.createNodeArray(i,r.hasTrailingComma)}function ensureTypeParams(t,r){return e.hasModifier(t,8)?undefined:e.visitNodes(r,visitDeclarationSubtree)}function isEnclosingDeclaration(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function checkEntityNameVisibility(e,t){var r=b.isEntityNameVisible(e,t);handleSymbolAccessibilityError(r);recordTypeReferenceDirectivesIfNecessary(b.getTypeReferenceDirectivesForEntityName(e))}function preserveJsDoc(t,r){if(e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)){t.jsDoc=r.jsDoc}return e.setCommentRange(t,e.getCommentRange(r))}function rewriteModuleSpecifier(t,n){if(!n)return undefined;s=s||t.kind!==244&&t.kind!==183;if(e.isStringLiteralLike(n)){if(o){var i=e.getExternalModuleNameFromDeclaration(r.getEmitHost(),b,t);if(i){return e.createLiteral(i)}}else{var a=b.getSymbolOfExternalModuleSpecifier(n);if(a){(_||(_=[])).push(a)}}}return n}function transformImportEqualsDeclaration(t){if(!b.isDeclarationVisible(t))return;if(t.moduleReference.kind===259){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return e.updateImportEqualsDeclaration(t,undefined,t.modifiers,t.name,e.updateExternalModuleReference(t.moduleReference,rewriteModuleSpecifier(t,r)))}else{var n=i;i=e.createGetSymbolAccessibilityDiagnosticForNode(t);checkEntityNameVisibility(t.moduleReference,l);i=n;return t}}function transformImportDeclaration(t){if(!t.importClause){return e.updateImportDeclaration(t,undefined,t.modifiers,t.importClause,rewriteModuleSpecifier(t,t.moduleSpecifier))}var r=t.importClause&&t.importClause.name&&b.isDeclarationVisible(t.importClause)?t.importClause.name:undefined;if(!t.importClause.namedBindings){return r&&e.updateImportDeclaration(t,undefined,t.modifiers,e.updateImportClause(t.importClause,r,undefined),rewriteModuleSpecifier(t,t.moduleSpecifier))}if(t.importClause.namedBindings.kind===251){var n=b.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:undefined;return r||n?e.updateImportDeclaration(t,undefined,t.modifiers,e.updateImportClause(t.importClause,r,n),rewriteModuleSpecifier(t,t.moduleSpecifier)):undefined}var i=e.mapDefined(t.importClause.namedBindings.elements,function(e){return b.isDeclarationVisible(e)?e:undefined});if(i&&i.length||r){return e.updateImportDeclaration(t,undefined,t.modifiers,e.updateImportClause(t.importClause,r,i&&i.length?e.updateNamedImports(t.importClause.namedBindings,i):undefined),rewriteModuleSpecifier(t,t.moduleSpecifier))}}function transformAndReplaceLatePaintedStatements(t){while(e.length(d)){var r=d.shift();if(!e.isLateVisibilityPaintedStatement(r)){return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind))}var n=transformTopLevelDeclaration(r,true);p.set(""+e.getOriginalNodeId(r),n)}return e.visitNodes(t,visitLateVisibilityMarkedStatements);function visitLateVisibilityMarkedStatements(t){if(e.isLateVisibilityPaintedStatement(t)){var r=""+e.getOriginalNodeId(t);if(p.has(r)){var n=p.get(r);p.delete(r);if(n&&e.isSourceFile(t.parent)){if(e.isArray(n)?e.some(n,needsScopeMarker):needsScopeMarker(n)){c=true}if(e.isArray(n)?e.some(n,isExternalModuleIndicator):isExternalModuleIndicator(n)){s=true}}return n}}return t}}function isExternalModuleIndicator(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasModifier(t,1)}function needsScopeMarker(t){return!e.isAnyImportOrReExport(t)&&!e.isExportAssignment(t)&&!e.hasModifier(t,1)&&!e.isAmbientModule(t)}function visitDeclarationSubtree(t){if(shouldStripInternal(t))return;if(e.isDeclaration(t)){if(isDeclarationAndNotVisible(t))return;if(e.hasDynamicName(t)&&!b.isLateBound(e.getParseTreeNode(t))){return}}if(e.isFunctionLike(t)&&b.isImplementationOfOverload(t))return;if(e.isSemicolonClassElement(t))return;var n;if(isEnclosingDeclaration(t)){n=l;l=t}var a=i;if(e.isMethodDeclaration(t)||e.isMethodSignature(t)){if(e.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return cleanup(e.createProperty(undefined,ensureModifiers(t),t.name,undefined,undefined,undefined))}}var o=e.canProduceDiagnostics(t);if(o&&!g){i=e.createGetSymbolAccessibilityDiagnosticForNode(t)}if(e.isTypeQueryNode(t)){checkEntityNameVisibility(t.exprName,l)}var s=g;var c=(t.kind===168||t.kind===181)&&t.parent.kind!==242;if(c){g=true}if(isProcessedComponent(t)){switch(t.kind){case 211:{if(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression)){checkEntityNameVisibility(t.expression,l)}var u=e.visitEachChild(t,visitDeclarationSubtree,r);return cleanup(e.updateExpressionWithTypeArguments(u,e.parenthesizeTypeParameters(u.typeArguments),u.expression))}case 164:{checkEntityNameVisibility(t.typeName,l);var u=e.visitEachChild(t,visitDeclarationSubtree,r);return cleanup(e.updateTypeReferenceNode(u,u.typeName,e.parenthesizeTypeParameters(u.typeArguments)))}case 161:return cleanup(e.updateConstructSignature(t,ensureTypeParams(t,t.typeParameters),updateParamsList(t,t.parameters),ensureType(t,t.type)));case 157:{var f=e.hasModifier(t,8);var d=e.createSignatureDeclaration(157,f?undefined:ensureTypeParams(t,t.typeParameters),f?undefined:updateParamsList(t,t.parameters,0),undefined);d.modifiers=e.createNodeArray(ensureModifiers(t));return cleanup(d)}case 156:{var p=e.createSignatureDeclaration(155,ensureTypeParams(t,t.typeParameters),updateParamsList(t,t.parameters),ensureType(t,t.type));p.name=t.name;p.modifiers=e.createNodeArray(ensureModifiers(t));p.questionToken=t.questionToken;return cleanup(p)}case 158:{var _=ensureAccessor(t);return cleanup(_)}case 159:{var _=ensureAccessor(t);return cleanup(_)}case 154:return cleanup(e.updateProperty(t,undefined,ensureModifiers(t),t.name,t.questionToken,!e.hasModifier(t,8)?ensureType(t,t.type):undefined,ensureNoInitializer(t)));case 153:return cleanup(e.updatePropertySignature(t,ensureModifiers(t),t.name,t.questionToken,!e.hasModifier(t,8)?ensureType(t,t.type):undefined,ensureNoInitializer(t)));case 155:{return cleanup(e.updateMethodSignature(t,ensureTypeParams(t,t.typeParameters),updateParamsList(t,t.parameters),ensureType(t,t.type),t.name,t.questionToken))}case 160:{return cleanup(e.updateCallSignature(t,ensureTypeParams(t,t.typeParameters),updateParamsList(t,t.parameters),ensureType(t,t.type)))}case 162:{return cleanup(e.updateIndexSignature(t,undefined,ensureModifiers(t),updateParamsList(t,t.parameters),e.visitNode(t.type,visitDeclarationSubtree)||e.createKeywordTypeNode(120)))}case 237:{if(e.isBindingPattern(t.name)){return recreateBindingPattern(t.name)}c=true;g=true;return cleanup(e.updateVariableDeclaration(t,t.name,ensureType(t,t.type),ensureNoInitializer(t)))}case 150:{if(isPrivateMethodTypeParameter(t)&&(t.default||t.constraint)){return cleanup(e.updateTypeParameterDeclaration(t,t.name,undefined,undefined))}return cleanup(e.visitEachChild(t,visitDeclarationSubtree,r))}case 175:{var m=e.visitNode(t.checkType,visitDeclarationSubtree);var y=e.visitNode(t.extendsType,visitDeclarationSubtree);var h=l;l=t.trueType;var v=e.visitNode(t.trueType,visitDeclarationSubtree);l=h;var T=e.visitNode(t.falseType,visitDeclarationSubtree);return cleanup(e.updateConditionalTypeNode(t,m,y,v,T))}case 165:{return cleanup(e.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,visitDeclarationSubtree),updateParamsList(t,t.parameters),e.visitNode(t.type,visitDeclarationSubtree)))}case 166:{return cleanup(e.updateConstructorTypeNode(t,e.visitNodes(t.typeParameters,visitDeclarationSubtree),updateParamsList(t,t.parameters),e.visitNode(t.type,visitDeclarationSubtree)))}case 183:{if(!e.isLiteralImportTypeNode(t))return cleanup(t);return cleanup(e.updateImportTypeNode(t,e.updateLiteralTypeNode(t.argument,rewriteModuleSpecifier(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,visitDeclarationSubtree,e.isTypeNode),t.isTypeOf))}default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}}return cleanup(e.visitEachChild(t,visitDeclarationSubtree,r));function cleanup(r){if(r&&o&&e.hasDynamicName(t)){checkName(t)}if(isEnclosingDeclaration(t)){l=n}if(o&&!g){i=a}if(c){g=s}if(r===t){return r}return r&&e.setOriginalNode(preserveJsDoc(r,t),t)}}function isPrivateMethodTypeParameter(t){return t.parent.kind===156&&e.hasModifier(t.parent,8)}function visitDeclarationStatements(r){if(!isPreservedDeclarationStatement(r)){return}if(shouldStripInternal(r))return;switch(r.kind){case 255:{if(e.isSourceFile(r.parent)){s=true;u=true}return e.updateExportDeclaration(r,undefined,r.modifiers,r.exportClause,rewriteModuleSpecifier(r,r.moduleSpecifier))}case 254:{if(e.isSourceFile(r.parent)){s=true;u=true}if(r.expression.kind===72){return r}else{var n=e.createOptimisticUniqueName("_default");i=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:r}};var o=e.createVariableDeclaration(n,b.createTypeOfExpression(r.expression,r,t,y),undefined);var c=e.createVariableStatement(a?[e.createModifier(125)]:[],e.createVariableDeclarationList([o],2));return[c,e.updateExportAssignment(r,r.decorators,r.modifiers,n)]}}}var l=transformTopLevelDeclaration(r);p.set(""+e.getOriginalNodeId(r),l);return r}function transformTopLevelDeclaration(r,n){if(shouldStripInternal(r))return;switch(r.kind){case 248:{return transformImportEqualsDeclaration(r)}case 249:{return transformImportDeclaration(r)}}if(e.isDeclaration(r)&&isDeclarationAndNotVisible(r))return;if(e.isFunctionLike(r)&&b.isImplementationOfOverload(r))return;var o;if(isEnclosingDeclaration(r)){o=l;l=r}var s=e.canProduceDiagnostics(r);var c=i;if(s){i=e.createGetSymbolAccessibilityDiagnosticForNode(r)}var u=a;switch(r.kind){case 242:return cleanup(e.updateTypeAliasDeclaration(r,undefined,ensureModifiers(r,n),r.name,e.visitNodes(r.typeParameters,visitDeclarationSubtree,e.isTypeParameterDeclaration),e.visitNode(r.type,visitDeclarationSubtree,e.isTypeNode)));case 241:{return cleanup(e.updateInterfaceDeclaration(r,undefined,ensureModifiers(r,n),r.name,ensureTypeParams(r,r.typeParameters),transformHeritageClauses(r.heritageClauses),e.visitNodes(r.members,visitDeclarationSubtree)))}case 239:{var f=cleanup(e.updateFunctionDeclaration(r,undefined,ensureModifiers(r,n),undefined,r.name,ensureTypeParams(r,r.typeParameters),updateParamsList(r,r.parameters),ensureType(r,r.type),undefined));if(f&&b.isExpandoFunctionDeclaration(r)){var d=e.mapDefined(b.getPropertiesOfContainerFunction(r),function(r){if(!e.isPropertyAccessExpression(r.valueDeclaration)){return undefined}var n=b.createTypeOfDeclaration(r.valueDeclaration,l,t,y);var i=e.createVariableDeclaration(e.unescapeLeadingUnderscores(r.escapedName),n,undefined);return e.createVariableStatement(undefined,e.createVariableDeclarationList([i]))});var g=e.createModuleDeclaration(undefined,ensureModifiers(r,n),r.name,e.createModuleBlock(d),16);return[f,g]}else{return f}}case 244:{a=false;var _=r.body;if(_&&_.kind===245){var m=e.visitNodes(_.statements,visitDeclarationStatements);var h=e.updateModuleBlock(_,transformAndReplaceLatePaintedStatements(m));a=u;var v=ensureModifiers(r,n);return cleanup(e.updateModuleDeclaration(r,undefined,v,e.isExternalModuleAugmentation(r)?rewriteModuleSpecifier(r,r.name):r.name,h))}else{a=u;var v=ensureModifiers(r,n);a=false;e.visitNode(_,visitDeclarationStatements);var T=""+e.getOriginalNodeId(_);var h=p.get(T);p.delete(T);return cleanup(e.updateModuleDeclaration(r,undefined,v,r.name,h))}}case 240:{var S=e.createNodeArray(ensureModifiers(r,n));var x=ensureTypeParams(r,r.typeParameters);var C=e.getFirstConstructorWithBody(r);var E=void 0;if(C){var D=i;E=e.compact(e.flatMap(C.parameters,function(t){if(!e.hasModifier(t,92))return;i=e.createGetSymbolAccessibilityDiagnosticForNode(t);if(t.name.kind===72){return preserveJsDoc(e.createProperty(undefined,ensureModifiers(t),t.name,t.questionToken,ensureType(t,t.type),ensureNoInitializer(t)),t)}else{return walkBindingPattern(t.name)}function walkBindingPattern(r){var n;for(var i=0,a=r.elements;i<a.length;i++){var o=a[i];if(e.isOmittedExpression(o))continue;if(e.isBindingPattern(o.name)){n=e.concatenate(n,walkBindingPattern(o.name))}n=n||[];n.push(e.createProperty(undefined,ensureModifiers(t),o.name,undefined,ensureType(o,undefined),undefined))}return n}}));i=D}var k=e.createNodeArray(e.concatenate(E,e.visitNodes(r.members,visitDeclarationSubtree)));var N=e.getEffectiveBaseTypeNode(r);if(N&&!e.isEntityNameExpression(N.expression)&&N.expression.kind!==96){var A=e.createOptimisticUniqueName(e.unescapeLeadingUnderscores(r.name.escapedText)+"_base");i=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:N,typeName:r.name}};var O=e.createVariableDeclaration(A,b.createTypeOfExpression(N.expression,r,t,y),undefined);var F=e.createVariableStatement(a?[e.createModifier(125)]:[],e.createVariableDeclarationList([O],2));var P=e.createNodeArray(e.map(r.heritageClauses,function(t){if(t.token===86){var r=i;i=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=e.updateHeritageClause(t,e.map(t.types,function(t){return e.updateExpressionWithTypeArguments(t,e.visitNodes(t.typeArguments,visitDeclarationSubtree),A)}));i=r;return n}return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(t){return e.isEntityNameExpression(t.expression)||t.expression.kind===96})),visitDeclarationSubtree))}));return[F,cleanup(e.updateClassDeclaration(r,undefined,S,r.name,x,P,k))]}else{var P=transformHeritageClauses(r.heritageClauses);return cleanup(e.updateClassDeclaration(r,undefined,S,r.name,x,P,k))}}case 219:{return cleanup(transformVariableStatement(r,n))}case 243:{return cleanup(e.updateEnumDeclaration(r,undefined,e.createNodeArray(ensureModifiers(r,n)),r.name,e.createNodeArray(e.mapDefined(r.members,function(t){if(shouldStripInternal(t))return;var r=b.getConstantValue(t);return preserveJsDoc(e.updateEnumMember(t,t.name,r!==undefined?e.createLiteral(r):undefined),t)}))))}}return e.Debug.assertNever(r,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[r.kind]);function cleanup(t){if(isEnclosingDeclaration(r)){l=o}if(s){i=c}if(r.kind===244){a=u}if(t===r){return t}return t&&e.setOriginalNode(preserveJsDoc(t,r),r)}}function transformVariableStatement(t,r){if(!e.forEach(t.declarationList.declarations,getBindingNameVisible))return;var n=e.visitNodes(t.declarationList.declarations,visitDeclarationSubtree);if(!e.length(n))return;return e.updateVariableStatement(t,e.createNodeArray(ensureModifiers(t,r)),e.updateVariableDeclarationList(t.declarationList,n))}function recreateBindingPattern(t){return e.flatten(e.mapDefined(t.elements,function(e){return recreateBindingElement(e)}))}function recreateBindingElement(t){if(t.kind===210){return}if(t.name){if(!getBindingNameVisible(t))return;if(e.isBindingPattern(t.name)){return recreateBindingPattern(t.name)}else{return e.createVariableDeclaration(t.name,ensureType(t,undefined),undefined)}}}function checkName(t){var r;if(!g){r=i;i=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)}h=t.name;e.Debug.assert(b.isLateBound(e.getParseTreeNode(t)));var n=t;var a=n.name.expression;checkEntityNameVisibility(a,l);if(!g){i=r}h=undefined}function hasInternalAnnotation(t){var r=v.text.substring(t.pos,t.end);return e.stringContains(r,"@internal")}function shouldStripInternal(t){if(D&&t){var r=e.getLeadingCommentRangesOfNode(e.getParseTreeNode(t),v);if(e.forEach(r,hasInternalAnnotation)){return true}}return false}function isScopeMarker(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function hasScopeMarker(t){if(e.isModuleBlock(t)){return e.some(t.statements,isScopeMarker)}return false}function ensureModifiers(t,r){var n=e.getModifierFlags(t);var i=ensureModifierFlags(t,r);if(n===i){return t.modifiers}return e.createModifiersFromModifierFlags(i)}function ensureModifierFlags(t,r){var n=3071^(4|256);var i=a&&!isAlwaysType(t)?2:0;var s=t.parent.kind===279;if(!s||o&&s&&e.isExternalModule(t.parent)){n^=(r||o&&s||hasScopeMarker(t.parent)?0:1)|2;i=0}return maskModifierFlags(t,n,i)}function ensureAccessor(t){var r=b.getAllAccessorDeclarations(t);if(t.kind!==r.firstAccessor.kind){return}var n=getTypeAnnotationFromAccessor(t);if(!n&&r.secondAccessor){n=getTypeAnnotationFromAccessor(r.secondAccessor);i=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)}var a=e.createProperty(undefined,maskModifiers(t,undefined,!r.setAccessor?64:0),t.name,t.questionToken,ensureType(t,n),undefined);var o=r.secondAccessor&&e.getLeadingCommentRangesOfNode(r.secondAccessor,v);if(o){var s=function(t){if(t.kind===3){var r=v.text.slice(t.pos+2,t.end-2);var n=r.split(/\r\n?|\n/g);if(n.length>1){var i=n.slice(1);var o=e.guessIndentation(i);r=[n[0]].concat(e.map(i,function(e){return e.slice(o)})).join(C)}e.addSyntheticLeadingComment(a,t.kind,r,t.hasTrailingNewLine)}};for(var c=0,u=o;c<u.length;c++){var l=u[c];s(l)}}return a}function transformHeritageClauses(t){return e.createNodeArray(e.filter(e.map(t,function(t){return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(r){return e.isEntityNameExpression(r.expression)||t.token===86&&r.expression.kind===96})),visitDeclarationSubtree))}),function(e){return e.types&&!!e.types.length}))}}e.transformDeclarations=transformDeclarations;function isAlwaysType(e){if(e.kind===241){return true}return false}function maskModifiers(t,r,n){return e.createModifiersFromModifierFlags(maskModifierFlags(t,r,n))}function maskModifierFlags(t,r,n){if(r===void 0){r=3071^4}if(n===void 0){n=0}var i=e.getModifierFlags(t)&r|n;if(i&512&&!(i&1)){i^=1}if(i&512&&i&2){i^=2}return i}function getTypeAnnotationFromAccessor(e){if(e){return e.kind===158?e.type:e.parameters.length>0?e.parameters[0].type:undefined}}function canHaveLiteralInitializer(t){switch(t.kind){case 154:case 153:return!e.hasModifier(t,8);case 151:case 237:return true}return false}function isPreservedDeclarationStatement(e){switch(e.kind){case 239:case 244:case 248:case 241:case 240:case 242:case 243:case 219:case 249:case 255:case 254:return true}return false}function isProcessedComponent(e){switch(e.kind){case 161:case 157:case 156:case 158:case 159:case 154:case 153:case 155:case 160:case 162:case 237:case 150:case 211:case 164:case 175:case 165:case 166:case 183:return true}return false}})(s||(s={}));var s;(function(e){function getModuleTransformer(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var 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={}));var r;(function(e){e[e["Substitution"]=1]="Substitution";e[e["EmitNotifications"]=2]="EmitNotifications"})(r||(r={}));function getTransformers(t,r){var n=t.jsx;var i=e.getEmitScriptTarget(t);var a=e.getEmitModuleKind(t);var o=[];e.addRange(o,r&&r.before);o.push(e.transformTypeScript);if(n===2){o.push(e.transformJsx)}if(i<6){o.push(e.transformESNext)}if(i<4){o.push(e.transformES2017)}if(i<3){o.push(e.transformES2016)}if(i<2){o.push(e.transformES2015);o.push(e.transformGenerators)}o.push(getModuleTransformer(a));if(i<1){o.push(e.transformES5)}e.addRange(o,r&&r.after);return o}e.getTransformers=getTransformers;function noEmitSubstitution(e,t){return t}e.noEmitSubstitution=noEmitSubstitution;function noEmitNotification(e,t,r){r(e,t)}e.noEmitNotification=noEmitNotification;function transformNodes(t,r,n,i,a,o){var s=new Array(312);var c;var u;var l=[];var f=[];var d=0;var p=false;var g;var _=noEmitSubstitution;var m=noEmitNotification;var y=0;var h=[];var v={getCompilerOptions:function(){return n},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:startLexicalEnvironment,suspendLexicalEnvironment:suspendLexicalEnvironment,resumeLexicalEnvironment:resumeLexicalEnvironment,endLexicalEnvironment:endLexicalEnvironment,hoistVariableDeclaration:hoistVariableDeclaration,hoistFunctionDeclaration:hoistFunctionDeclaration,requestEmitHelper:requestEmitHelper,readEmitHelpers:readEmitHelpers,enableSubstitution:enableSubstitution,enableEmitNotification:enableEmitNotification,isSubstitutionEnabled:isSubstitutionEnabled,isEmitNotificationEnabled:isEmitNotificationEnabled,get onSubstituteNode(){return _},set onSubstituteNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed.");e.Debug.assert(t!==undefined,"Value must not be 'undefined'");_=t},get onEmitNode(){return m},set onEmitNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed.");e.Debug.assert(t!==undefined,"Value must not be 'undefined'");m=t},addDiagnostic:function(e){h.push(e)}};for(var T=0,S=i;T<S.length;T++){var b=S[T];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(b)))}e.performance.mark("beforeTransform");var x=e.chain.apply(void 0,a)(v);y=1;var C=e.map(i,o?x:transformRoot);y=2;e.performance.mark("afterTransform");e.performance.measure("transformTime","beforeTransform","afterTransform");return{transformed:C,substituteNode:substituteNode,emitNodeWithNotification:emitNodeWithNotification,dispose:dispose,diagnostics:h};function transformRoot(t){return t&&(!e.isSourceFile(t)||!t.isDeclarationFile)?x(t):t}function enableSubstitution(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");s[t]|=1}function isSubstitutionEnabled(t){return(s[t.kind]&1)!==0&&(e.getEmitFlags(t)&4)===0}function substituteNode(t,r){e.Debug.assert(y<3,"Cannot substitute a node after the result is disposed.");return r&&isSubstitutionEnabled(r)&&_(t,r)||r}function enableEmitNotification(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");s[t]|=2}function isEmitNotificationEnabled(t){return(s[t.kind]&2)!==0||(e.getEmitFlags(t)&2)!==0}function emitNodeWithNotification(t,r,n){e.Debug.assert(y<3,"Cannot invoke TransformationResult callbacks after the result is disposed.");if(r){if(isEmitNotificationEnabled(r)){m(t,r,n)}else{n(t,r)}}}function hoistVariableDeclaration(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);if(!c){c=[r]}else{c.push(r)}}function hoistFunctionDeclaration(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");if(!u){u=[t]}else{u.push(t)}}function startLexicalEnvironment(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!p,"Lexical environment is suspended.");l[d]=c;f[d]=u;d++;c=undefined;u=undefined}function suspendLexicalEnvironment(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!p,"Lexical environment is already suspended.");p=true}function resumeLexicalEnvironment(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(p,"Lexical environment is not suspended.");p=false}function endLexicalEnvironment(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!p,"Lexical environment is suspended.");var t;if(c||u){if(u){t=u.slice()}if(c){var r=e.createVariableStatement(undefined,e.createVariableDeclarationList(c));if(!t){t=[r]}else{t.push(r)}}}d--;c=l[d];u=f[d];if(d===0){l=[];f=[]}return t}function requestEmitHelper(t){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization.");e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper.");g=e.append(g,t)}function readEmitHelpers(){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization.");e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");var t=g;g=undefined;return t}function dispose(){if(y<3){for(var t=0,r=i;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}c=undefined;l=undefined;u=undefined;f=undefined;_=undefined;m=undefined;g=undefined;y=3}}}e.transformNodes=transformNodes})(s||(s={}));var s;(function(e){var t=".tsbundleinfo";var r=createBracketsMap();var n={pos:-1,end:-1};function forEachEmittedFile(t,r,n,i){if(i===void 0){i=false}var a=e.isArray(n)?n:e.getSourceFilesToEmit(t,n);var o=t.getCompilerOptions();if(o.outFile||o.out){if(a.length){var s=e.createBundle(a,t.getPrependNodes());var c=r(getOutputPathsFor(s,t,i),s);if(c){return c}}}else{for(var u=0,l=a;u<l.length;u++){var f=l[u];var c=r(getOutputPathsFor(f,t,i),f);if(c){return c}}}}e.forEachEmittedFile=forEachEmittedFile;function getOutputPathsFor(r,n,i){var a=n.getCompilerOptions();if(r.kind===280){var o=a.outFile||a.out;var s=a.emitDeclarationOnly?undefined:o;var c=s&&getSourceMapFilePath(s,a);var u=i||e.getEmitDeclarations(a)?e.removeFileExtension(o)+".d.ts":undefined;var l=u&&e.getAreDeclarationMapsEnabled(a)?u+".map":undefined;var f=a.references&&s?e.removeFileExtension(s)+t:undefined;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:l,bundleInfoPath:f}}else{var d=e.getOwnEmitOutputFilePath(r.fileName,n,getOutputExtension(r,a));var p=e.isJsonSourceFile(r)&&e.comparePaths(r.fileName,d,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0;var s=a.emitDeclarationOnly||p?undefined:d;var c=!s||e.isJsonSourceFile(r)?undefined:getSourceMapFilePath(s,a);var g=e.isSourceFileJS(r);var u=(i||e.getEmitDeclarations(a))&&!g?e.getDeclarationEmitOutputFilePath(r.fileName,n):undefined;var l=u&&e.getAreDeclarationMapsEnabled(a)?u+".map":undefined;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:l,bundleInfoPath:undefined}}}e.getOutputPathsFor=getOutputPathsFor;function getSourceMapFilePath(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":undefined}function createDefaultBundleInfo(){return{originalOffset:-1,totalLength:-1}}function getOutputExtension(t,r){if(e.isJsonSourceFile(t)){return".json"}if(r.jsx===1){if(e.isSourceFileJS(t)){if(e.fileExtensionIs(t.fileName,".jsx")){return".jsx"}}else if(t.languageVariant===1){return".jsx"}}return".js"}e.getOutputExtension=getOutputExtension;function emitFiles(t,r,n,i,a,o){var s=r.getCompilerOptions();var c=s.sourceMap||s.inlineSourceMap||e.getAreDeclarationMapsEnabled(s)?[]:undefined;var u=s.listEmittedFiles?[]:undefined;var l=e.createDiagnosticCollection();var f=e.getNewLineCharacter(s,function(){return r.getNewLine()});var d=e.createTextWriter(f);var p=e.performance.createTimer("printTime","beforePrint","afterPrint"),g=p.enter,_=p.exit;var m=createDefaultBundleInfo();var y=false;var h;g();forEachEmittedFile(r,emitSourceFileOrBundle,e.getSourceFilesToEmit(r,n),i);_();return{emitSkipped:y,diagnostics:l.getDiagnostics(),emittedFiles:u,sourceMaps:c,exportedModulesFromDeclarationEmit:h};function emitSourceFileOrBundle(e,t){var r=e.jsFilePath,n=e.sourceMapFilePath,a=e.declarationFilePath,o=e.declarationMapPath,s=e.bundleInfoPath;emitJsFileOrBundle(t,r,n,s);emitDeclarationFileOrBundle(t,a,o);if(!y&&u){if(!i){if(r){u.push(r)}if(n){u.push(n)}if(s){u.push(s)}}if(a){u.push(a)}if(o){u.push(o)}}}function emitJsFileOrBundle(n,o,c,u){if(i||!o){return}if(o&&r.isEmitBlocked(o)||s.noEmit){y=true;return}var l=e.transformNodes(t,r,s,[n],a,false);var f={removeComments:s.removeComments,newLine:s.newLine,noEmitHelpers:s.noEmitHelpers,module:s.module,target:s.target,sourceMap:s.sourceMap,inlineSourceMap:s.inlineSourceMap,inlineSources:s.inlineSources,extendedDiagnostics:s.extendedDiagnostics};var d=createPrinter(f,{hasGlobalName:t.hasGlobalName,onEmitNode:l.emitNodeWithNotification,substituteNode:l.substituteNode});e.Debug.assert(l.transformed.length===1,"Should only see one output from the transform");printSourceFileOrBundle(o,c,l.transformed[0],u,d,s);l.dispose()}function emitDeclarationFileOrBundle(n,a,c){if(!(a&&!e.isInJSFile(n))){return}var u=e.isSourceFile(n)?[n]:n.sourceFiles;var f=e.filter(u,e.isSourceFileNotJS);var d=s.outFile||s.out?[e.createBundle(f,!e.isSourceFile(n)?n.prepends:undefined)]:f;if(i&&!e.getEmitDeclarations(s)){f.forEach(collectLinkedAliases)}var p=e.transformNodes(t,r,s,d,e.concatenate([e.transformDeclarations],o),false);if(e.length(p.diagnostics)){for(var g=0,_=p.diagnostics;g<_.length;g++){var m=_[g];l.add(m)}}var v={removeComments:s.removeComments,newLine:s.newLine,noEmitHelpers:true,module:s.module,target:s.target,sourceMap:s.sourceMap,inlineSourceMap:s.inlineSourceMap,extendedDiagnostics:s.extendedDiagnostics,onlyPrintJsDocStyle:true};var T=createPrinter(v,{hasGlobalName:t.hasGlobalName,onEmitNode:p.emitNodeWithNotification,substituteNode:p.substituteNode});var S=!!p.diagnostics&&!!p.diagnostics.length||!!r.isEmitBlocked(a)||!!s.noEmit;y=y||S;if(!S||i){e.Debug.assert(p.transformed.length===1,"Should only see one output from the decl transform");printSourceFileOrBundle(a,c,p.transformed[0],undefined,T,{sourceMap:s.declarationMap,sourceRoot:s.sourceRoot,mapRoot:s.mapRoot,extendedDiagnostics:s.extendedDiagnostics});if(i&&p.transformed[0].kind===279){var b=p.transformed[0];h=b.exportedModulesFromDeclarationEmit}}p.dispose()}function collectLinkedAliases(r){if(e.isExportAssignment(r)){if(r.expression.kind===72){t.collectLinkedAliases(r.expression,true)}return}else if(e.isExportSpecifier(r)){t.collectLinkedAliases(r.propertyName||r.name,true);return}e.forEachChild(r,collectLinkedAliases)}function printSourceFileOrBundle(t,n,i,a,o,u){var p=i.kind===280?i:undefined;var g=i.kind===279?i:undefined;var _=p?p.sourceFiles:[g];var y;if(shouldEmitSourceMaps(u,i)){y=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),getSourceRoot(u),getSourceMapDirectory(u,t,g),u)}if(p){o.writeBundle(p,m,d,y)}else{o.writeFile(g,d,y)}if(y){if(c){c.push({inputSourceFileNames:y.getSources(),sourceMap:y.toJSON()})}var h=getSourceMappingURL(u,y,t,n,g);if(h){if(!d.isAtStartOfLine())d.rawWrite(f);d.writeComment("//# "+"sourceMappingURL"+"="+h)}if(n){var v=y.toString();e.writeFile(r,l,n,v,false,_)}}else{d.writeLine()}e.writeFile(r,l,t,d.getText(),!!s.emitBOM,_);if(a){m.totalLength=d.getTextPos();e.writeFile(r,l,a,JSON.stringify(m,undefined,2),false)}d.clear();m=createDefaultBundleInfo()}function shouldEmitSourceMaps(t,r){return(t.sourceMap||t.inlineSourceMap)&&(r.kind!==279||!e.fileExtensionIs(r.fileName,".json"))}function getSourceRoot(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}function getSourceMapDirectory(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);if(i){a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))}if(e.getRootLength(a)===0){a=e.combinePaths(r.getCommonSourceDirectory(),a)}return a}return e.getDirectoryPath(e.normalizePath(n))}function getSourceMappingURL(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString();var c=e.base64encode(e.sys,s);return"data:application/json;base64,"+c}var u=e.getBaseFileName(e.normalizeSlashes(e.Debug.assertDefined(a)));if(t.mapRoot){var l=e.normalizeSlashes(t.mapRoot);if(o){l=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,l))}if(e.getRootLength(l)===0){l=e.combinePaths(r.getCommonSourceDirectory(),l);return e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(l,u),r.getCurrentDirectory(),r.getCanonicalFileName,true)}else{return e.combinePaths(l,u)}}return u}}e.emitFiles=emitFiles;var i;(function(e){e[e["Notification"]=0]="Notification";e[e["Substitution"]=1]="Substitution";e[e["Comments"]=2]="Comments";e[e["SourceMaps"]=3]="SourceMaps";e[e["Emit"]=4]="Emit"})(i||(i={}));function createPrinter(t,r){if(t===void 0){t={}}if(r===void 0){r={}}var i=r.hasGlobalName,a=r.onEmitNode,o=a===void 0?e.noEmitNotification:a,s=r.substituteNode,c=s===void 0?e.noEmitSubstitution:s,u=r.onBeforeEmitNodeArray,l=r.onAfterEmitNodeArray,f=r.onBeforeEmitToken,d=r.onAfterEmitToken;var p=!!t.extendedDiagnostics;var g=e.getNewLineCharacter(t);var _=e.getEmitModuleKind(t);var m=e.createMap();var y;var h;var v;var T;var S;var b;var x;var C;var E;var D;var k=writeBase;var N;var A=true;var O;var F;var P=-1;var I=-1;var w=-1;var M=-1;var L;var R;var B=false;var j=!!t.removeComments;var J=e.performance.createTimerIf(p,"commentTime","beforeComment","afterComment"),W=J.enter,U=J.exit;reset();return{printNode:printNode,printList:printList,printFile:printFile,printBundle:printBundle,writeNode:writeNode,writeList:writeList,writeFile:writeFile,writeBundle:writeBundle};function printNode(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.");break}switch(r.kind){case 279:return printFile(r);case 280:return printBundle(r);case 281:return printUnparsedSource(r)}writeNode(t,r,n,beginPrint());return endPrint()}function printList(e,t,r){writeList(e,t,r,beginPrint());return endPrint()}function printBundle(e){writeBundle(e,undefined,beginPrint(),undefined);return endPrint()}function printFile(e){writeFile(e,beginPrint(),undefined);return endPrint()}function printUnparsedSource(e){writeUnparsedSource(e,beginPrint());return endPrint()}function writeNode(e,t,r,n){var i=E;setWriter(n,undefined);print(e,t,r);reset();E=i}function writeList(e,t,r,i){var a=E;setWriter(i,undefined);if(r){setSourceFile(r)}emitList(n,t,e);reset();E=a}function writeBundle(e,t,r,n){N=false;var i=E;setWriter(r,n);emitShebangIfNeeded(e);emitPrologueDirectivesIfNeeded(e);emitHelpers(e);emitSyntheticTripleSlashReferencesIfNeeded(e);for(var a=0,o=e.prepends;a<o.length;a++){var s=o[a];writeLine();print(4,s,undefined)}if(t){t.originalOffset=E.getTextPos()}for(var c=0,u=e.sourceFiles;c<u.length;c++){var l=u[c];print(0,l,l)}reset();E=i}function writeUnparsedSource(e,t){var r=E;setWriter(t,undefined);print(4,e,undefined);reset();E=r}function writeFile(e,t,r){N=true;var n=E;setWriter(t,r);emitShebangIfNeeded(e);emitPrologueDirectivesIfNeeded(e);print(0,e,e);reset();E=n}function beginPrint(){return D||(D=e.createTextWriter(g))}function endPrint(){var e=D.getText();D.clear();return e}function print(e,t,r){if(r){setSourceFile(r)}var n=getPipelinePhase(0,t);n(e,t)}function setSourceFile(e){y=e;L=undefined;R=undefined;if(e){setSourceMapSource(e)}}function setWriter(r,n){if(r&&t.omitTrailingSemicolon){r=e.getTrailingSemicolonOmittingWriter(r)}E=r;O=n;A=!E||!O}function reset(){h=[];v=[];T=e.createMap();S=[];b=0;x=[];y=undefined;L=undefined;R=undefined;setWriter(undefined,undefined)}function getCurrentLineMap(){return L||(L=e.getLineStarts(y))}function emit(e){if(e===undefined)return;var t=getPipelinePhase(0,e);t(4,e)}function emitIdentifierName(e){if(e===undefined)return;var t=getPipelinePhase(0,e);t(2,e)}function emitExpression(e){if(e===undefined)return;var t=getPipelinePhase(0,e);t(1,e)}function getPipelinePhase(t,r){switch(t){case 0:if(o!==e.noEmitNotification){return pipelineEmitWithNotification}case 1:if(c!==e.noEmitSubstitution){return pipelineEmitWithSubstitution}case 2:if(!j&&r.kind!==279){return pipelineEmitWithComments}case 3:if(!A&&r.kind!==279&&!e.isInJsonFile(r)){return pipelineEmitWithSourceMap}case 4:return pipelineEmitWithHint;default:return e.Debug.assertNever(t)}}function getNextPipelinePhase(e,t){return getPipelinePhase(e+1,t)}function pipelineEmitWithNotification(e,t){var r=getNextPipelinePhase(0,t);o(e,t,r)}function pipelineEmitWithHint(t,r){if(t===0)return emitSourceFile(e.cast(r,e.isSourceFile));if(t===2)return emitIdentifier(e.cast(r,e.isIdentifier));if(t===3)return emitMappedTypeParameter(e.cast(r,e.isTypeParameterDeclaration));if(t===5){e.Debug.assertNode(r,e.isEmptyStatement);return emitEmptyStatement(true)}if(t===4){if(e.isKeyword(r.kind))return writeTokenNode(r,writeKeyword);switch(r.kind){case 15:case 16:case 17:return emitLiteral(r);case 281:return emitUnparsedSource(r);case 72:return emitIdentifier(r);case 148:return emitQualifiedName(r);case 149:return emitComputedPropertyName(r);case 150:return emitTypeParameter(r);case 151:return emitParameter(r);case 152:return emitDecorator(r);case 153:return emitPropertySignature(r);case 154:return emitPropertyDeclaration(r);case 155:return emitMethodSignature(r);case 156:return emitMethodDeclaration(r);case 157:return emitConstructor(r);case 158:case 159:return emitAccessorDeclaration(r);case 160:return emitCallSignature(r);case 161:return emitConstructSignature(r);case 162:return emitIndexSignature(r);case 163:return emitTypePredicate(r);case 164:return emitTypeReference(r);case 165:return emitFunctionType(r);case 289:return emitJSDocFunctionType(r);case 166:return emitConstructorType(r);case 167:return emitTypeQuery(r);case 168:return emitTypeLiteral(r);case 169:return emitArrayType(r);case 170:return emitTupleType(r);case 171:return emitOptionalType(r);case 173:return emitUnionType(r);case 174:return emitIntersectionType(r);case 175:return emitConditionalType(r);case 176:return emitInferType(r);case 177:return emitParenthesizedType(r);case 211:return emitExpressionWithTypeArguments(r);case 178:return emitThisType();case 179:return emitTypeOperator(r);case 180:return emitIndexedAccessType(r);case 181:return emitMappedType(r);case 182:return emitLiteralType(r);case 183:return emitImportTypeNode(r);case 284:writePunctuation("*");return;case 285:writePunctuation("?");return;case 286:return emitJSDocNullableType(r);case 287:return emitJSDocNonNullableType(r);case 288:return emitJSDocOptionalType(r);case 172:case 290:return emitRestOrJSDocVariadicType(r);case 184:return emitObjectBindingPattern(r);case 185:return emitArrayBindingPattern(r);case 186:return emitBindingElement(r);case 216:return emitTemplateSpan(r);case 217:return emitSemicolonClassElement();case 218:return emitBlock(r);case 219:return emitVariableStatement(r);case 220:return emitEmptyStatement(false);case 221:return emitExpressionStatement(r);case 222:return emitIfStatement(r);case 223:return emitDoStatement(r);case 224:return emitWhileStatement(r);case 225:return emitForStatement(r);case 226:return emitForInStatement(r);case 227:return emitForOfStatement(r);case 228:return emitContinueStatement(r);case 229:return emitBreakStatement(r);case 230:return emitReturnStatement(r);case 231:return emitWithStatement(r);case 232:return emitSwitchStatement(r);case 233:return emitLabeledStatement(r);case 234:return emitThrowStatement(r);case 235:return emitTryStatement(r);case 236:return emitDebuggerStatement(r);case 237:return emitVariableDeclaration(r);case 238:return emitVariableDeclarationList(r);case 239:return emitFunctionDeclaration(r);case 240:return emitClassDeclaration(r);case 241:return emitInterfaceDeclaration(r);case 242:return emitTypeAliasDeclaration(r);case 243:return emitEnumDeclaration(r);case 244:return emitModuleDeclaration(r);case 245:return emitModuleBlock(r);case 246:return emitCaseBlock(r);case 247:return emitNamespaceExportDeclaration(r);case 248:return emitImportEqualsDeclaration(r);case 249:return emitImportDeclaration(r);case 250:return emitImportClause(r);case 251:return emitNamespaceImport(r);case 252:return emitNamedImports(r);case 253:return emitImportSpecifier(r);case 254:return emitExportAssignment(r);case 255:return emitExportDeclaration(r);case 256:return emitNamedExports(r);case 257:return emitExportSpecifier(r);case 258:return;case 259:return emitExternalModuleReference(r);case 11:return emitJsxText(r);case 262:case 265:return emitJsxOpeningElementOrFragment(r);case 263:case 266:return emitJsxClosingElementOrFragment(r);case 267:return emitJsxAttribute(r);case 268:return emitJsxAttributes(r);case 269:return emitJsxSpreadAttribute(r);case 270:return emitJsxExpression(r);case 271:return emitCaseClause(r);case 272:return emitDefaultClause(r);case 273:return emitHeritageClause(r);case 274:return emitCatchClause(r);case 275:return emitPropertyAssignment(r);case 276:return emitShorthandPropertyAssignment(r);case 277:return emitSpreadAssignment(r);case 278:return emitEnumMember(r);case 299:case 305:return emitJSDocPropertyLikeTag(r);case 300:case 302:case 301:case 298:return emitJSDocSimpleTypedTag(r);case 295:return emitJSDocAugmentsTag(r);case 303:return emitJSDocTemplateTag(r);case 304:return emitJSDocTypedefTag(r);case 297:return emitJSDocCallbackTag(r);case 293:return emitJSDocSignature(r);case 292:return emitJSDocTypeLiteral(r);case 296:case 294:return emitJSDocSimpleTag(r);case 291:return emitJSDoc(r)}if(e.isExpression(r)){t=1;if(c!==e.noEmitSubstitution){r=c(t,r)}}else if(e.isToken(r)){return writeTokenNode(r,writePunctuation)}}if(t===1){switch(r.kind){case 8:case 9:return emitNumericOrBigIntLiteral(r);case 10:case 13:case 14:return emitLiteral(r);case 72:return emitIdentifier(r);case 87:case 96:case 98:case 102:case 100:case 92:writeTokenNode(r,writeKeyword);return;case 187:return emitArrayLiteralExpression(r);case 188:return emitObjectLiteralExpression(r);case 189:return emitPropertyAccessExpression(r);case 190:return emitElementAccessExpression(r);case 191:return emitCallExpression(r);case 192:return emitNewExpression(r);case 193:return emitTaggedTemplateExpression(r);case 194:return emitTypeAssertionExpression(r);case 195:return emitParenthesizedExpression(r);case 196:return emitFunctionExpression(r);case 197:return emitArrowFunction(r);case 198:return emitDeleteExpression(r);case 199:return emitTypeOfExpression(r);case 200:return emitVoidExpression(r);case 201:return emitAwaitExpression(r);case 202:return emitPrefixUnaryExpression(r);case 203:return emitPostfixUnaryExpression(r);case 204:return emitBinaryExpression(r);case 205:return emitConditionalExpression(r);case 206:return emitTemplateExpression(r);case 207:return emitYieldExpression(r);case 208:return emitSpreadExpression(r);case 209:return emitClassExpression(r);case 210:return;case 212:return emitAsExpression(r);case 213:return emitNonNullExpression(r);case 214:return emitMetaProperty(r);case 260:return emitJsxElement(r);case 261:return emitJsxSelfClosingElement(r);case 264:return emitJsxFragment(r);case 308:return emitPartiallyEmittedExpression(r);case 309:return emitCommaList(r)}}}function emitMappedTypeParameter(e){emit(e.name);writeSpace();writeKeyword("in");writeSpace();emit(e.constraint)}function pipelineEmitWithSubstitution(e,t){var r=getNextPipelinePhase(1,t);r(e,c(e,t))}function emitHelpers(r){var n=false;var i=r.kind===280?r:undefined;if(i&&_===e.ModuleKind.None){return}var a=i?i.sourceFiles.length:1;for(var o=0;o<a;o++){var s=i?i.sourceFiles[o]:r;var c=e.isSourceFile(s)?s:y;var u=t.noEmitHelpers||e.getExternalHelpersModuleName(c)!==undefined;var l=e.isSourceFile(s)&&!N;var f=e.getEmitHelpers(s);if(f){for(var d=0,p=e.stableSort(f,e.compareEmitHelpers);d<p.length;d++){var g=p[d];if(!g.scoped){if(u)continue;if(l){if(m.get(g.name)){continue}m.set(g.name,true)}}else if(i){continue}if(typeof g.text==="string"){writeLines(g.text)}else{writeLines(g.text(makeFileLevelOptimisticUniqueName))}n=true}}}return n}function emitNumericOrBigIntLiteral(e){emitLiteral(e)}function emitLiteral(r){var n=getLiteralTextOfNode(r,t.neverAsciiEscape);if((t.sourceMap||t.inlineSourceMap)&&(r.kind===10||e.isTemplateLiteralKind(r.kind))){writeLiteral(n)}else{writeStringLiteral(n)}}function emitUnparsedSource(e){E.rawWrite(e.text)}function emitIdentifier(e){var t=e.symbol?writeSymbol:k;t(getTextOfNode(e,false),e.symbol);emitList(e,e.typeArguments,53776)}function emitQualifiedName(e){emitEntityName(e.left);writePunctuation(".");emit(e.right)}function emitEntityName(e){if(e.kind===72){emitExpression(e)}else{emit(e)}}function emitComputedPropertyName(e){writePunctuation("[");emitExpression(e.expression);writePunctuation("]")}function emitTypeParameter(e){emit(e.name);if(e.constraint){writeSpace();writeKeyword("extends");writeSpace();emit(e.constraint)}if(e.default){writeSpace();writeOperator("=");writeSpace();emit(e.default)}}function emitParameter(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emit(e.dotDotDotToken);emitNodeWithWriter(e.name,writeParameter);emit(e.questionToken);if(e.parent&&e.parent.kind===289&&!e.name){emit(e.type)}else{emitTypeAnnotation(e.type)}emitInitializer(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}function emitDecorator(e){writePunctuation("@");emitExpression(e.expression)}function emitPropertySignature(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emitNodeWithWriter(e.name,writeProperty);emit(e.questionToken);emitTypeAnnotation(e.type);writeTrailingSemicolon()}function emitPropertyDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emit(e.name);emit(e.questionToken);emit(e.exclamationToken);emitTypeAnnotation(e.type);emitInitializer(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e);writeTrailingSemicolon()}function emitMethodSignature(e){pushNameGenerationScope(e);emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emit(e.name);emit(e.questionToken);emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);emitTypeAnnotation(e.type);writeTrailingSemicolon();popNameGenerationScope(e)}function emitMethodDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emit(e.asteriskToken);emit(e.name);emit(e.questionToken);emitSignatureAndBody(e,emitSignatureHead)}function emitConstructor(e){emitModifiers(e,e.modifiers);writeKeyword("constructor");emitSignatureAndBody(e,emitSignatureHead)}function emitAccessorDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword(e.kind===158?"get":"set");writeSpace();emit(e.name);emitSignatureAndBody(e,emitSignatureHead)}function emitCallSignature(e){pushNameGenerationScope(e);emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);emitTypeAnnotation(e.type);writeTrailingSemicolon();popNameGenerationScope(e)}function emitConstructSignature(e){pushNameGenerationScope(e);emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("new");writeSpace();emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);emitTypeAnnotation(e.type);writeTrailingSemicolon();popNameGenerationScope(e)}function emitIndexSignature(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emitParametersForIndexSignature(e,e.parameters);emitTypeAnnotation(e.type);writeTrailingSemicolon()}function emitSemicolonClassElement(){writeTrailingSemicolon()}function emitTypePredicate(e){emit(e.parameterName);writeSpace();writeKeyword("is");writeSpace();emit(e.type)}function emitTypeReference(e){emit(e.typeName);emitTypeArguments(e,e.typeArguments)}function emitFunctionType(e){pushNameGenerationScope(e);emitTypeParameters(e,e.typeParameters);emitParametersForArrow(e,e.parameters);writeSpace();writePunctuation("=>");writeSpace();emit(e.type);popNameGenerationScope(e)}function emitJSDocFunctionType(e){writeKeyword("function");emitParameters(e,e.parameters);writePunctuation(":");emit(e.type)}function emitJSDocNullableType(e){writePunctuation("?");emit(e.type)}function emitJSDocNonNullableType(e){writePunctuation("!");emit(e.type)}function emitJSDocOptionalType(e){emit(e.type);writePunctuation("=")}function emitConstructorType(e){pushNameGenerationScope(e);writeKeyword("new");writeSpace();emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);writeSpace();writePunctuation("=>");writeSpace();emit(e.type);popNameGenerationScope(e)}function emitTypeQuery(e){writeKeyword("typeof");writeSpace();emit(e.exprName)}function emitTypeLiteral(t){writePunctuation("{");var r=e.getEmitFlags(t)&1?768:32897;emitList(t,t.members,r|524288);writePunctuation("}")}function emitArrayType(e){emit(e.elementType);writePunctuation("[");writePunctuation("]")}function emitRestOrJSDocVariadicType(e){writePunctuation("...");emit(e.type)}function emitTupleType(e){writePunctuation("[");emitList(e,e.elementTypes,528);writePunctuation("]")}function emitOptionalType(e){emit(e.type);writePunctuation("?")}function emitUnionType(e){emitList(e,e.types,516)}function emitIntersectionType(e){emitList(e,e.types,520)}function emitConditionalType(e){emit(e.checkType);writeSpace();writeKeyword("extends");writeSpace();emit(e.extendsType);writeSpace();writePunctuation("?");writeSpace();emit(e.trueType);writeSpace();writePunctuation(":");writeSpace();emit(e.falseType)}function emitInferType(e){writeKeyword("infer");writeSpace();emit(e.typeParameter)}function emitParenthesizedType(e){writePunctuation("(");emit(e.type);writePunctuation(")")}function emitThisType(){writeKeyword("this")}function emitTypeOperator(e){writeTokenText(e.operator,writeKeyword);writeSpace();emit(e.type)}function emitIndexedAccessType(e){emit(e.objectType);writePunctuation("[");emit(e.indexType);writePunctuation("]")}function emitMappedType(t){var r=e.getEmitFlags(t);writePunctuation("{");if(r&1){writeSpace()}else{writeLine();increaseIndent()}if(t.readonlyToken){emit(t.readonlyToken);if(t.readonlyToken.kind!==133){writeKeyword("readonly")}writeSpace()}writePunctuation("[");var n=getPipelinePhase(0,t.typeParameter);n(3,t.typeParameter);writePunctuation("]");if(t.questionToken){emit(t.questionToken);if(t.questionToken.kind!==56){writePunctuation("?")}}writePunctuation(":");writeSpace();emit(t.type);writeTrailingSemicolon();if(r&1){writeSpace()}else{writeLine();decreaseIndent()}writePunctuation("}")}function emitLiteralType(e){emitExpression(e.literal)}function emitImportTypeNode(e){if(e.isTypeOf){writeKeyword("typeof");writeSpace()}writeKeyword("import");writePunctuation("(");emit(e.argument);writePunctuation(")");if(e.qualifier){writePunctuation(".");emit(e.qualifier)}emitTypeArguments(e,e.typeArguments)}function emitObjectBindingPattern(e){writePunctuation("{");emitList(e,e.elements,525136);writePunctuation("}")}function emitArrayBindingPattern(e){writePunctuation("[");emitList(e,e.elements,524880);writePunctuation("]")}function emitBindingElement(e){emit(e.dotDotDotToken);if(e.propertyName){emit(e.propertyName);writePunctuation(":");writeSpace()}emit(e.name);emitInitializer(e.initializer,e.name.end,e)}function emitArrayLiteralExpression(e){var t=e.elements;var r=e.multiLine?65536:0;emitExpressionList(e,t,8914|r)}function emitObjectLiteralExpression(t){e.forEach(t.properties,generateMemberNames);var r=e.getEmitFlags(t)&65536;if(r){increaseIndent()}var n=t.multiLine?65536:0;var i=y.languageVersion>=1&&!e.isJsonSourceFile(y)?64:0;emitList(t,t.properties,526226|i|n);if(r){decreaseIndent()}}function emitPropertyAccessExpression(t){var r=false;var n=false;if(!(e.getEmitFlags(t)&131072)){var i=t.expression.end;var a=e.skipTrivia(y.text,t.expression.end)+1;var o=e.createToken(24);o.pos=i;o.end=a;r=needsIndentation(t,t.expression,o);n=needsIndentation(t,o,t.name)}emitExpression(t.expression);increaseIndentIf(r,false);var s=!r&&needsDotDotForPropertyAccess(t.expression);if(s){writePunctuation(".")}emitTokenWithComment(24,t.expression.end,writePunctuation,t);increaseIndentIf(n,false);emit(t.name);decreaseIndentIf(r,n)}function needsDotDotForPropertyAccess(r){r=e.skipPartiallyEmittedExpressions(r);if(e.isNumericLiteral(r)){var n=getLiteralTextOfNode(r,true);return!r.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(24))}else if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return typeof i==="number"&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function emitElementAccessExpression(e){emitExpression(e.expression);emitTokenWithComment(22,e.expression.end,writePunctuation,e);emitExpression(e.argumentExpression);emitTokenWithComment(23,e.argumentExpression.end,writePunctuation,e)}function emitCallExpression(e){emitExpression(e.expression);emitTypeArguments(e,e.typeArguments);emitExpressionList(e,e.arguments,2576)}function emitNewExpression(e){emitTokenWithComment(95,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression);emitTypeArguments(e,e.typeArguments);emitExpressionList(e,e.arguments,18960)}function emitTaggedTemplateExpression(e){emitExpression(e.tag);emitTypeArguments(e,e.typeArguments);writeSpace();emitExpression(e.template)}function emitTypeAssertionExpression(e){writePunctuation("<");emit(e.type);writePunctuation(">");emitExpression(e.expression)}function emitParenthesizedExpression(e){var t=emitTokenWithComment(20,e.pos,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression?e.expression.end:t,writePunctuation,e)}function emitFunctionExpression(e){generateNameIfNeeded(e.name);emitFunctionDeclarationOrExpression(e)}function emitArrowFunction(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emitSignatureAndBody(e,emitArrowFunctionHead)}function emitArrowFunctionHead(e){emitTypeParameters(e,e.typeParameters);emitParametersForArrow(e,e.parameters);emitTypeAnnotation(e.type);writeSpace();emit(e.equalsGreaterThanToken)}function emitDeleteExpression(e){emitTokenWithComment(81,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression)}function emitTypeOfExpression(e){emitTokenWithComment(104,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression)}function emitVoidExpression(e){emitTokenWithComment(106,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression)}function emitAwaitExpression(e){emitTokenWithComment(122,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression)}function emitPrefixUnaryExpression(e){writeTokenText(e.operator,writeOperator);if(shouldEmitWhitespaceBeforeOperand(e)){writeSpace()}emitExpression(e.operand)}function shouldEmitWhitespaceBeforeOperand(e){var t=e.operand;return t.kind===202&&(e.operator===38&&(t.operator===38||t.operator===44)||e.operator===39&&(t.operator===39||t.operator===45))}function emitPostfixUnaryExpression(e){emitExpression(e.operand);writeTokenText(e.operator,writeOperator)}function emitBinaryExpression(e){var t=e.operatorToken.kind!==27;var r=needsIndentation(e,e.left,e.operatorToken);var n=needsIndentation(e,e.operatorToken,e.right);emitExpression(e.left);increaseIndentIf(r,t);emitLeadingCommentsOfPosition(e.operatorToken.pos);writeTokenNode(e.operatorToken,e.operatorToken.kind===93?writeKeyword:writeOperator);emitTrailingCommentsOfPosition(e.operatorToken.end,true);increaseIndentIf(n,true);emitExpression(e.right);decreaseIndentIf(r,n)}function emitConditionalExpression(e){var t=needsIndentation(e,e.condition,e.questionToken);var r=needsIndentation(e,e.questionToken,e.whenTrue);var n=needsIndentation(e,e.whenTrue,e.colonToken);var i=needsIndentation(e,e.colonToken,e.whenFalse);emitExpression(e.condition);increaseIndentIf(t,true);emit(e.questionToken);increaseIndentIf(r,true);emitExpression(e.whenTrue);decreaseIndentIf(t,r);increaseIndentIf(n,true);emit(e.colonToken);increaseIndentIf(i,true);emitExpression(e.whenFalse);decreaseIndentIf(n,i)}function emitTemplateExpression(e){emit(e.head);emitList(e,e.templateSpans,262144)}function emitYieldExpression(e){emitTokenWithComment(117,e.pos,writeKeyword,e);emit(e.asteriskToken);emitExpressionWithLeadingSpace(e.expression)}function emitSpreadExpression(e){emitTokenWithComment(25,e.pos,writePunctuation,e);emitExpression(e.expression)}function emitClassExpression(e){generateNameIfNeeded(e.name);emitClassDeclarationOrExpression(e)}function emitExpressionWithTypeArguments(e){emitExpression(e.expression);emitTypeArguments(e,e.typeArguments)}function emitAsExpression(e){emitExpression(e.expression);if(e.type){writeSpace();writeKeyword("as");writeSpace();emit(e.type)}}function emitNonNullExpression(e){emitExpression(e.expression);writeOperator("!")}function emitMetaProperty(e){writeToken(e.keywordToken,e.pos,writePunctuation);writePunctuation(".");emit(e.name)}function emitTemplateSpan(e){emitExpression(e.expression);emit(e.literal)}function emitBlock(e){emitBlockStatements(e,!e.multiLine&&isEmptyBlock(e))}function emitBlockStatements(t,r){emitTokenWithComment(18,t.pos,writePunctuation,t);var n=r||e.getEmitFlags(t)&1?768:129;emitList(t,t.statements,n);emitTokenWithComment(19,t.statements.end,writePunctuation,t,!!(n&1))}function emitVariableStatement(e){emitModifiers(e,e.modifiers);emit(e.declarationList);writeTrailingSemicolon()}function emitEmptyStatement(e){if(e){writePunctuation(";")}else{writeTrailingSemicolon()}}function emitExpressionStatement(t){emitExpression(t.expression);if(!e.isJsonSourceFile(y)||e.nodeIsSynthesized(t.expression)){writeTrailingSemicolon()}}function emitIfStatement(e){var t=emitTokenWithComment(91,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.thenStatement);if(e.elseStatement){writeLineOrSpace(e);emitTokenWithComment(83,e.thenStatement.end,writeKeyword,e);if(e.elseStatement.kind===222){writeSpace();emit(e.elseStatement)}else{emitEmbeddedStatement(e,e.elseStatement)}}}function emitWhileClause(e,t){var r=emitTokenWithComment(107,t,writeKeyword,e);writeSpace();emitTokenWithComment(20,r,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e)}function emitDoStatement(t){emitTokenWithComment(82,t.pos,writeKeyword,t);emitEmbeddedStatement(t,t.statement);if(e.isBlock(t.statement)){writeSpace()}else{writeLineOrSpace(t)}emitWhileClause(t,t.statement.end);writePunctuation(";")}function emitWhileStatement(e){emitWhileClause(e,e.pos);emitEmbeddedStatement(e,e.statement)}function emitForStatement(e){var t=emitTokenWithComment(89,e.pos,writeKeyword,e);writeSpace();var r=emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);r=emitTokenWithComment(26,e.initializer?e.initializer.end:r,writePunctuation,e);emitExpressionWithLeadingSpace(e.condition);r=emitTokenWithComment(26,e.condition?e.condition.end:r,writePunctuation,e);emitExpressionWithLeadingSpace(e.incrementor);emitTokenWithComment(21,e.incrementor?e.incrementor.end:r,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForInStatement(e){var t=emitTokenWithComment(89,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);writeSpace();emitTokenWithComment(93,e.initializer.end,writeKeyword,e);writeSpace();emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForOfStatement(e){var t=emitTokenWithComment(89,e.pos,writeKeyword,e);writeSpace();emitWithTrailingSpace(e.awaitModifier);emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);writeSpace();emitTokenWithComment(147,e.initializer.end,writeKeyword,e);writeSpace();emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForBinding(e){if(e!==undefined){if(e.kind===238){emit(e)}else{emitExpression(e)}}}function emitContinueStatement(e){emitTokenWithComment(78,e.pos,writeKeyword,e);emitWithLeadingSpace(e.label);writeTrailingSemicolon()}function emitBreakStatement(e){emitTokenWithComment(73,e.pos,writeKeyword,e);emitWithLeadingSpace(e.label);writeTrailingSemicolon()}function emitTokenWithComment(t,r,n,i,a){var o=e.getParseTreeNode(i);var s=o&&o.kind===i.kind;var c=r;if(s){r=e.skipTrivia(y.text,r)}if(emitLeadingCommentsOfPosition&&s&&i.pos!==c){var u=a&&!e.positionsAreOnSameLine(c,r,y);if(u){increaseIndent()}emitLeadingCommentsOfPosition(c);if(u){decreaseIndent()}}r=writeTokenText(t,n,r);if(emitTrailingCommentsOfPosition&&s&&i.end!==r){emitTrailingCommentsOfPosition(r,true)}return r}function emitReturnStatement(e){emitTokenWithComment(97,e.pos,writeKeyword,e);emitExpressionWithLeadingSpace(e.expression);writeTrailingSemicolon()}function emitWithStatement(e){var t=emitTokenWithComment(108,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitSwitchStatement(e){var t=emitTokenWithComment(99,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);writeSpace();emit(e.caseBlock)}function emitLabeledStatement(e){emit(e.label);emitTokenWithComment(57,e.label.end,writePunctuation,e);writeSpace();emit(e.statement)}function emitThrowStatement(e){emitTokenWithComment(101,e.pos,writeKeyword,e);emitExpressionWithLeadingSpace(e.expression);writeTrailingSemicolon()}function emitTryStatement(e){emitTokenWithComment(103,e.pos,writeKeyword,e);writeSpace();emit(e.tryBlock);if(e.catchClause){writeLineOrSpace(e);emit(e.catchClause)}if(e.finallyBlock){writeLineOrSpace(e);emitTokenWithComment(88,(e.catchClause||e.tryBlock).end,writeKeyword,e);writeSpace();emit(e.finallyBlock)}}function emitDebuggerStatement(e){writeToken(79,e.pos,writeKeyword);writeTrailingSemicolon()}function emitVariableDeclaration(e){emit(e.name);emitTypeAnnotation(e.type);emitInitializer(e.initializer,e.type?e.type.end:e.name.end,e)}function emitVariableDeclarationList(t){writeKeyword(e.isLet(t)?"let":e.isVarConst(t)?"const":"var");writeSpace();emitList(t,t.declarations,528)}function emitFunctionDeclaration(e){emitFunctionDeclarationOrExpression(e)}function emitFunctionDeclarationOrExpression(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("function");emit(e.asteriskToken);writeSpace();emitIdentifierName(e.name);emitSignatureAndBody(e,emitSignatureHead)}function emitBlockCallback(e,t){emitBlockFunctionBody(t)}function emitSignatureAndBody(t,r){var n=t.body;if(n){if(e.isBlock(n)){var i=e.getEmitFlags(t)&65536;if(i){increaseIndent()}pushNameGenerationScope(t);e.forEach(t.parameters,generateNames);generateNames(t.body);r(t);if(o){o(4,n,emitBlockCallback)}else{emitBlockFunctionBody(n)}popNameGenerationScope(t);if(i){decreaseIndent()}}else{r(t);writeSpace();emitExpression(n)}}else{r(t);writeTrailingSemicolon()}}function emitSignatureHead(e){emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);emitTypeAnnotation(e.type)}function shouldEmitBlockFunctionBodyOnSingleLine(t){if(e.getEmitFlags(t)&1){return true}if(t.multiLine){return false}if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,y)){return false}if(shouldWriteLeadingLineTerminator(t,t.statements,2)||shouldWriteClosingLineTerminator(t,t.statements,2)){return false}var r;for(var n=0,i=t.statements;n<i.length;n++){var a=i[n];if(shouldWriteSeparatingLineTerminator(r,a,2)){return false}r=a}return true}function emitBlockFunctionBody(e){writeSpace();writePunctuation("{");increaseIndent();var t=shouldEmitBlockFunctionBodyOnSingleLine(e)?emitBlockFunctionBodyOnSingleLine:emitBlockFunctionBodyWorker;if(emitBodyWithDetachedComments){emitBodyWithDetachedComments(e,e.statements,t)}else{t(e)}decreaseIndent();writeToken(19,e.statements.end,writePunctuation,e)}function emitBlockFunctionBodyOnSingleLine(e){emitBlockFunctionBodyWorker(e,true)}function emitBlockFunctionBodyWorker(e,t){var r=emitPrologueDirectives(e.statements,true);var n=E.getTextPos();emitHelpers(e);if(r===0&&n===E.getTextPos()&&t){decreaseIndent();emitList(e,e.statements,768);increaseIndent()}else{emitList(e,e.statements,1,r)}}function emitClassDeclaration(e){emitClassDeclarationOrExpression(e)}function emitClassDeclarationOrExpression(t){e.forEach(t.members,generateMemberNames);emitDecorators(t,t.decorators);emitModifiers(t,t.modifiers);writeKeyword("class");if(t.name){writeSpace();emitIdentifierName(t.name)}var r=e.getEmitFlags(t)&65536;if(r){increaseIndent()}emitTypeParameters(t,t.typeParameters);emitList(t,t.heritageClauses,0);writeSpace();writePunctuation("{");emitList(t,t.members,129);writePunctuation("}");if(r){decreaseIndent()}}function emitInterfaceDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("interface");writeSpace();emit(e.name);emitTypeParameters(e,e.typeParameters);emitList(e,e.heritageClauses,512);writeSpace();writePunctuation("{");emitList(e,e.members,129);writePunctuation("}")}function emitTypeAliasDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("type");writeSpace();emit(e.name);emitTypeParameters(e,e.typeParameters);writeSpace();writePunctuation("=");writeSpace();emit(e.type);writeTrailingSemicolon()}function emitEnumDeclaration(e){emitModifiers(e,e.modifiers);writeKeyword("enum");writeSpace();emit(e.name);writeSpace();writePunctuation("{");emitList(e,e.members,145);writePunctuation("}")}function emitModuleDeclaration(e){emitModifiers(e,e.modifiers);if(~e.flags&512){writeKeyword(e.flags&16?"namespace":"module");writeSpace()}emit(e.name);var t=e.body;if(!t)return writeTrailingSemicolon();while(t.kind===244){writePunctuation(".");emit(t.name);t=t.body}writeSpace();emit(t)}function emitModuleBlock(t){pushNameGenerationScope(t);e.forEach(t.statements,generateNames);emitBlockStatements(t,isEmptyBlock(t));popNameGenerationScope(t)}function emitCaseBlock(e){emitTokenWithComment(18,e.pos,writePunctuation,e);emitList(e,e.clauses,129);emitTokenWithComment(19,e.clauses.end,writePunctuation,e,true)}function emitImportEqualsDeclaration(e){emitModifiers(e,e.modifiers);emitTokenWithComment(92,e.modifiers?e.modifiers.end:e.pos,writeKeyword,e);writeSpace();emit(e.name);writeSpace();emitTokenWithComment(59,e.name.end,writePunctuation,e);writeSpace();emitModuleReference(e.moduleReference);writeTrailingSemicolon()}function emitModuleReference(e){if(e.kind===72){emitExpression(e)}else{emit(e)}}function emitImportDeclaration(e){emitModifiers(e,e.modifiers);emitTokenWithComment(92,e.modifiers?e.modifiers.end:e.pos,writeKeyword,e);writeSpace();if(e.importClause){emit(e.importClause);writeSpace();emitTokenWithComment(144,e.importClause.end,writeKeyword,e);writeSpace()}emitExpression(e.moduleSpecifier);writeTrailingSemicolon()}function emitImportClause(e){emit(e.name);if(e.name&&e.namedBindings){emitTokenWithComment(27,e.name.end,writePunctuation,e);writeSpace()}emit(e.namedBindings)}function emitNamespaceImport(e){var t=emitTokenWithComment(40,e.pos,writePunctuation,e);writeSpace();emitTokenWithComment(119,t,writeKeyword,e);writeSpace();emit(e.name)}function emitNamedImports(e){emitNamedImportsOrExports(e)}function emitImportSpecifier(e){emitImportOrExportSpecifier(e)}function emitExportAssignment(e){var t=emitTokenWithComment(85,e.pos,writeKeyword,e);writeSpace();if(e.isExportEquals){emitTokenWithComment(59,t,writeOperator,e)}else{emitTokenWithComment(80,t,writeKeyword,e)}writeSpace();emitExpression(e.expression);writeTrailingSemicolon()}function emitExportDeclaration(e){var t=emitTokenWithComment(85,e.pos,writeKeyword,e);writeSpace();if(e.exportClause){emit(e.exportClause)}else{t=emitTokenWithComment(40,t,writePunctuation,e)}if(e.moduleSpecifier){writeSpace();var r=e.exportClause?e.exportClause.end:t;emitTokenWithComment(144,r,writeKeyword,e);writeSpace();emitExpression(e.moduleSpecifier)}writeTrailingSemicolon()}function emitNamespaceExportDeclaration(e){var t=emitTokenWithComment(85,e.pos,writeKeyword,e);writeSpace();t=emitTokenWithComment(119,t,writeKeyword,e);writeSpace();t=emitTokenWithComment(131,t,writeKeyword,e);writeSpace();emit(e.name);writeTrailingSemicolon()}function emitNamedExports(e){emitNamedImportsOrExports(e)}function emitExportSpecifier(e){emitImportOrExportSpecifier(e)}function emitNamedImportsOrExports(e){writePunctuation("{");emitList(e,e.elements,525136);writePunctuation("}")}function emitImportOrExportSpecifier(e){if(e.propertyName){emit(e.propertyName);writeSpace();emitTokenWithComment(119,e.propertyName.end,writeKeyword,e);writeSpace()}emit(e.name)}function emitExternalModuleReference(e){writeKeyword("require");writePunctuation("(");emitExpression(e.expression);writePunctuation(")")}function emitJsxElement(e){emit(e.openingElement);emitList(e,e.children,262144);emit(e.closingElement)}function emitJsxSelfClosingElement(e){writePunctuation("<");emitJsxTagName(e.tagName);writeSpace();emit(e.attributes);writePunctuation("/>")}function emitJsxFragment(e){emit(e.openingFragment);emitList(e,e.children,262144);emit(e.closingFragment)}function emitJsxOpeningElementOrFragment(t){writePunctuation("<");if(e.isJsxOpeningElement(t)){emitJsxTagName(t.tagName);if(t.attributes.properties&&t.attributes.properties.length>0){writeSpace()}emit(t.attributes)}writePunctuation(">")}function emitJsxText(e){E.writeLiteral(getTextOfNode(e,true))}function emitJsxClosingElementOrFragment(t){writePunctuation("</");if(e.isJsxClosingElement(t)){emitJsxTagName(t.tagName)}writePunctuation(">")}function emitJsxAttributes(e){emitList(e,e.properties,262656)}function emitJsxAttribute(e){emit(e.name);emitNodeWithPrefix("=",writePunctuation,e.initializer,emit)}function emitJsxSpreadAttribute(e){writePunctuation("{...");emitExpression(e.expression);writePunctuation("}")}function emitJsxExpression(e){if(e.expression){writePunctuation("{");emit(e.dotDotDotToken);emitExpression(e.expression);writePunctuation("}")}}function emitJsxTagName(e){if(e.kind===72){emitExpression(e)}else{emit(e)}}function emitCaseClause(e){emitTokenWithComment(74,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression);emitCaseOrDefaultClauseRest(e,e.statements,e.expression.end)}function emitDefaultClause(e){var t=emitTokenWithComment(80,e.pos,writeKeyword,e);emitCaseOrDefaultClauseRest(e,e.statements,t)}function emitCaseOrDefaultClauseRest(t,r,n){var i=r.length===1&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],y));var a=163969;if(i){writeToken(57,n,writePunctuation,t);writeSpace();a&=~(1|128)}else{emitTokenWithComment(57,n,writePunctuation,t)}emitList(t,r,a)}function emitHeritageClause(e){writeSpace();writeTokenText(e.token,writeKeyword);writeSpace();emitList(e,e.types,528)}function emitCatchClause(e){var t=emitTokenWithComment(75,e.pos,writeKeyword,e);writeSpace();if(e.variableDeclaration){emitTokenWithComment(20,t,writePunctuation,e);emit(e.variableDeclaration);emitTokenWithComment(21,e.variableDeclaration.end,writePunctuation,e);writeSpace()}emit(e.block)}function emitPropertyAssignment(t){emit(t.name);writePunctuation(":");writeSpace();var r=t.initializer;if(emitTrailingCommentsOfPosition&&(e.getEmitFlags(r)&512)===0){var n=e.getCommentRange(r);emitTrailingCommentsOfPosition(n.pos)}emitExpression(r)}function emitShorthandPropertyAssignment(e){emit(e.name);if(e.objectAssignmentInitializer){writeSpace();writePunctuation("=");writeSpace();emitExpression(e.objectAssignmentInitializer)}}function emitSpreadAssignment(e){if(e.expression){emitTokenWithComment(25,e.pos,writePunctuation,e);emitExpression(e.expression)}}function emitEnumMember(e){emit(e.name);emitInitializer(e.initializer,e.name.end,e)}function emitJSDoc(e){k("/**");if(e.comment){var t=e.comment.split(/\r\n?|\n/g);for(var r=0,n=t;r<n.length;r++){var i=n[r];writeLine();writeSpace();writePunctuation("*");writeSpace();k(i)}}if(e.tags){if(e.tags.length===1&&e.tags[0].kind===302&&!e.comment){writeSpace();emit(e.tags[0])}else{emitList(e,e.tags,33)}}writeSpace();k("*/")}function emitJSDocSimpleTypedTag(e){emitJSDocTagName(e.tagName);emitJSDocTypeExpression(e.typeExpression);emitJSDocComment(e.comment)}function emitJSDocAugmentsTag(e){emitJSDocTagName(e.tagName);writeSpace();writePunctuation("{");emit(e.class);writePunctuation("}");emitJSDocComment(e.comment)}function emitJSDocTemplateTag(e){emitJSDocTagName(e.tagName);emitJSDocTypeExpression(e.constraint);writeSpace();emitList(e,e.typeParameters,528);emitJSDocComment(e.comment)}function emitJSDocTypedefTag(e){emitJSDocTagName(e.tagName);if(e.typeExpression){if(e.typeExpression.kind===283){emitJSDocTypeExpression(e.typeExpression)}else{writeSpace();writePunctuation("{");k("Object");if(e.typeExpression.isArrayType){writePunctuation("[");writePunctuation("]")}writePunctuation("}")}}if(e.fullName){writeSpace();emit(e.fullName)}emitJSDocComment(e.comment);if(e.typeExpression&&e.typeExpression.kind===292){emitJSDocTypeLiteral(e.typeExpression)}}function emitJSDocCallbackTag(e){emitJSDocTagName(e.tagName);if(e.name){writeSpace();emit(e.name)}emitJSDocComment(e.comment);emitJSDocSignature(e.typeExpression)}function emitJSDocSimpleTag(e){emitJSDocTagName(e.tagName);emitJSDocComment(e.comment)}function emitJSDocTypeLiteral(t){emitList(t,e.createNodeArray(t.jsDocPropertyTags),33)}function emitJSDocSignature(t){if(t.typeParameters){emitList(t,e.createNodeArray(t.typeParameters),33)}if(t.parameters){emitList(t,e.createNodeArray(t.parameters),33)}if(t.type){writeLine();writeSpace();writePunctuation("*");writeSpace();emit(t.type)}}function emitJSDocPropertyLikeTag(e){emitJSDocTagName(e.tagName);emitJSDocTypeExpression(e.typeExpression);writeSpace();if(e.isBracketed){writePunctuation("[")}emit(e.name);if(e.isBracketed){writePunctuation("]")}emitJSDocComment(e.comment)}function emitJSDocTagName(e){writePunctuation("@");emit(e)}function emitJSDocComment(e){if(e){writeSpace();k(e)}}function emitJSDocTypeExpression(e){if(e){writeSpace();writePunctuation("{");emit(e.type);writePunctuation("}")}}function emitSourceFile(t){writeLine();var r=t.statements;if(emitBodyWithDetachedComments){var n=r.length===0||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n){emitBodyWithDetachedComments(t,r,emitSourceFileWorker);return}}emitSourceFileWorker(t)}function emitSyntheticTripleSlashReferencesIfNeeded(e){emitTripleSlashDirectives(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[])}function emitTripleSlashDirectivesIfNeeded(e){if(e.isDeclarationFile)emitTripleSlashDirectives(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}function emitTripleSlashDirectives(e,t,r,n){if(e){writeComment('/// <reference no-default-lib="true"/>');writeLine()}if(y&&y.moduleName){writeComment('/// <amd-module name="'+y.moduleName+'" />');writeLine()}if(y&&y.amdDependencies){for(var i=0,a=y.amdDependencies;i<a.length;i++){var o=a[i];if(o.name){writeComment('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />')}else{writeComment('/// <amd-dependency path="'+o.path+'" />')}writeLine()}}for(var s=0,c=t;s<c.length;s++){var u=c[s];writeComment('/// <reference path="'+u.fileName+'" />');writeLine()}for(var l=0,f=r;l<f.length;l++){var u=f[l];writeComment('/// <reference types="'+u.fileName+'" />');writeLine()}for(var d=0,p=n;d<p.length;d++){var u=p[d];writeComment('/// <reference lib="'+u.fileName+'" />');writeLine()}}function emitSourceFileWorker(t){var r=t.statements;pushNameGenerationScope(t);e.forEach(t.statements,generateNames);emitHelpers(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});emitTripleSlashDirectivesIfNeeded(t);emitList(t,r,1,n===-1?r.length:n);popNameGenerationScope(t)}function emitPartiallyEmittedExpression(e){emitExpression(e.expression)}function emitCommaList(e){emitExpressionList(e,e.elements,528)}function emitPrologueDirectives(t,r,n){for(var i=0;i<t.length;i++){var a=t[i];if(e.isPrologueDirective(a)){var o=n?!n.has(a.expression.text):true;if(o){if(r||i>0){writeLine()}emit(a);if(n){n.set(a.expression.text,true)}}}else{return i}}return t.length}function emitPrologueDirectivesIfNeeded(t){if(e.isSourceFile(t)){setSourceFile(t);emitPrologueDirectives(t.statements)}else{var r=e.createMap();for(var n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];setSourceFile(a);emitPrologueDirectives(a.statements,true,r)}setSourceFile(undefined)}}function emitShebangIfNeeded(t){if(e.isSourceFile(t)){var r=e.getShebang(t.text);if(r){writeComment(r);writeLine();return true}}else{for(var n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];if(emitShebangIfNeeded(a)){break}}}}function emitNodeWithWriter(e,t){if(!e)return;var r=k;k=t;emit(e);k=r}function emitModifiers(e,t){if(t&&t.length){emitList(e,t,262656);writeSpace()}}function emitTypeAnnotation(e){if(e){writePunctuation(":");writeSpace();emit(e)}}function emitInitializer(e,t,r){if(e){writeSpace();emitTokenWithComment(59,t,writeOperator,r);writeSpace();emitExpression(e)}}function emitNodeWithPrefix(e,t,r,n){if(r){t(e);n(r)}}function emitWithLeadingSpace(e){if(e){writeSpace();emit(e)}}function emitExpressionWithLeadingSpace(e){if(e){writeSpace();emitExpression(e)}}function emitWithTrailingSpace(e){if(e){emit(e);writeSpace()}}function emitEmbeddedStatement(t,r){if(e.isBlock(r)||e.getEmitFlags(t)&1){writeSpace();emit(r)}else{writeLine();increaseIndent();if(e.isEmptyStatement(r)){var n=getPipelinePhase(0,r);n(5,r)}else{emit(r)}decreaseIndent()}}function emitDecorators(e,t){emitList(e,t,49153)}function emitTypeArguments(e,t){emitList(e,t,53776)}function emitTypeParameters(t,r){if(e.isFunctionLike(t)&&t.typeArguments){return emitTypeArguments(t,t.typeArguments)}emitList(t,r,53776)}function emitParameters(e,t){emitList(e,t,2576)}function canEmitSimpleArrowHead(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}function emitParametersForArrow(e,t){if(canEmitSimpleArrowHead(e,t)){emitList(e,t,2576&~2048)}else{emitParameters(e,t)}}function emitParametersForIndexSignature(e,t){emitList(e,t,8848)}function emitList(e,t,r,n,i){emitNodeList(emit,e,t,r,n,i)}function emitExpressionList(e,t,r,n,i){emitNodeList(emitExpression,e,t,r,n,i)}function writeDelimiter(e){switch(e&60){case 0:break;case 16:writePunctuation(",");break;case 4:writeSpace();writePunctuation("|");break;case 32:writeSpace();writePunctuation("*");writeSpace();break;case 8:writeSpace();writePunctuation("&");break}}function emitNodeList(t,r,n,i,a,o){if(a===void 0){a=0}if(o===void 0){o=n?n.length-a:0}var s=n===undefined;if(s&&i&16384){return}var c=n===undefined||a>=n.length||o===0;if(c&&i&32768){if(u){u(n)}if(l){l(n)}return}if(i&15360){writePunctuation(getOpeningBracket(i));if(c&&!s){emitTrailingCommentsOfPosition(n.pos,true)}}if(u){u(n)}if(c){if(i&1){writeLine()}else if(i&256&&!(i&524288)){writeSpace()}}else{var f=(i&262144)===0;var d=f;if(shouldWriteLeadingLineTerminator(r,n,i)){writeLine();d=false}else if(i&256){writeSpace()}if(i&128){increaseIndent()}var p=void 0;var g=false;for(var _=0;_<o;_++){var m=n[a+_];if(i&32){writeLine();writeDelimiter(i)}else if(p){if(i&60&&p.end!==r.end){emitLeadingCommentsOfPosition(p.end)}writeDelimiter(i);if(shouldWriteSeparatingLineTerminator(p,m,i)){if((i&(3|128))===0){increaseIndent();g=true}writeLine();d=false}else if(p&&i&512){writeSpace()}}if(d){if(emitTrailingCommentsOfPosition){var y=e.getCommentRange(m);emitTrailingCommentsOfPosition(y.pos)}}else{d=f}t(m);if(g){decreaseIndent();g=false}p=m}var h=i&64&&n.hasTrailingComma;if(i&16&&h){writePunctuation(",")}if(p&&i&60&&p.end!==r.end&&!(e.getEmitFlags(p)&1024)){emitLeadingCommentsOfPosition(p.end)}if(i&128){decreaseIndent()}if(shouldWriteClosingLineTerminator(r,n,i)){writeLine()}else if(i&256){writeSpace()}}if(l){l(n)}if(i&15360){if(c&&!s){emitLeadingCommentsOfPosition(n.end)}writePunctuation(getClosingBracket(i))}}function writeLiteral(e){E.writeLiteral(e)}function writeStringLiteral(e){E.writeStringLiteral(e)}function writeBase(e){E.write(e)}function writeSymbol(e,t){E.writeSymbol(e,t)}function writePunctuation(e){E.writePunctuation(e)}function writeTrailingSemicolon(){E.writeTrailingSemicolon(";")}function writeKeyword(e){E.writeKeyword(e)}function writeOperator(e){E.writeOperator(e)}function writeParameter(e){E.writeParameter(e)}function writeComment(e){E.writeComment(e)}function writeSpace(){E.writeSpace(" ")}function writeProperty(e){E.writeProperty(e)}function writeLine(){E.writeLine()}function increaseIndent(){E.increaseIndent()}function decreaseIndent(){E.decreaseIndent()}function writeToken(e,t,r,n){return!A?emitTokenWithSourceMap(n,e,r,t,writeTokenText):writeTokenText(e,r,t)}function writeTokenNode(t,r){if(f){f(t)}r(e.tokenToString(t.kind));if(d){d(t)}}function writeTokenText(t,r,n){var i=e.tokenToString(t);r(i);return n<0?n:n+i.length}function writeLineOrSpace(t){if(e.getEmitFlags(t)&1){writeSpace()}else{writeLine()}}function writeLines(t){var r=t.split(/\r\n?|\n/g);var n=e.guessIndentation(r);for(var i=0,a=r;i<a.length;i++){var o=a[i];var s=n?o.slice(n):o;if(s.length){writeLine();k(s);E.rawWrite(g)}}}function increaseIndentIf(e,t){if(e){increaseIndent();writeLine()}else if(t){writeSpace()}}function decreaseIndentIf(e,t){if(e){decreaseIndent()}if(t){decreaseIndent()}}function shouldWriteLeadingLineTerminator(t,r,n){if(n&1){return true}if(n&2){if(n&65536){return true}var i=r[0];if(i===undefined){return!e.rangeIsOnSingleLine(t,y)}else if(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(i)){return synthesizedNodeStartsOnNewLine(i,n)}else{return!e.rangeStartPositionsAreOnSameLine(t,i,y)}}else{return false}}function shouldWriteSeparatingLineTerminator(t,r,n){if(n&1){return true}else if(n&2){if(t===undefined||r===undefined){return false}else if(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)){return synthesizedNodeStartsOnNewLine(t,n)||synthesizedNodeStartsOnNewLine(r,n)}else{return!e.rangeEndIsOnSameLineAsRangeStart(t,r,y)}}else{return e.getStartsOnNewLine(r)}}function shouldWriteClosingLineTerminator(t,r,n){if(n&1){return(n&131072)===0}else if(n&2){if(n&65536){return true}var i=e.lastOrUndefined(r);if(i===undefined){return!e.rangeIsOnSingleLine(t,y)}else if(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(i)){return synthesizedNodeStartsOnNewLine(i,n)}else{return!e.rangeEndPositionsAreOnSameLine(t,i,y)}}else{return false}}function synthesizedNodeStartsOnNewLine(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);if(n===undefined){return(r&65536)!==0}return n}return(r&65536)!==0}function needsIndentation(t,r,n){t=skipSynthesizedParentheses(t);r=skipSynthesizedParentheses(r);n=skipSynthesizedParentheses(n);if(e.getStartsOnNewLine(n)){return true}return!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r)&&!e.nodeIsSynthesized(n)&&!e.rangeEndIsOnSameLineAsRangeStart(r,n,y)}function isEmptyBlock(t){return t.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(t,t,y)}function skipSynthesizedParentheses(t){while(t.kind===195&&e.nodeIsSynthesized(t)){t=t.expression}return t}function getTextOfNode(t,r){if(e.isGeneratedIdentifier(t)){return generateName(t)}else if(e.isIdentifier(t)&&(e.nodeIsSynthesized(t)||!t.parent||!y||t.parent&&y&&e.getSourceFileOfNode(t)!==e.getOriginalNode(y))){return e.idText(t)}else if(t.kind===10&&t.textSourceNode){return getTextOfNode(t.textSourceNode,r)}else if(e.isLiteralExpression(t)&&(e.nodeIsSynthesized(t)||!t.parent)){return t.text}return e.getSourceTextOfNodeFromSourceFile(y,t,r)}function getLiteralTextOfNode(t,r){if(t.kind===10&&t.textSourceNode){var n=t.textSourceNode;if(e.isIdentifier(n)){return r||e.getEmitFlags(t)&16777216?'"'+e.escapeString(getTextOfNode(n))+'"':'"'+e.escapeNonAsciiString(getTextOfNode(n))+'"'}else{return getLiteralTextOfNode(n,r)}}return e.getLiteralText(t,y,r)}function pushNameGenerationScope(t){if(t&&e.getEmitFlags(t)&524288){return}S.push(b);b=0;x.push(C)}function popNameGenerationScope(t){if(t&&e.getEmitFlags(t)&524288){return}b=S.pop();C=x.pop()}function reserveNameInNestedScopes(t){if(!C||C===e.lastOrUndefined(x)){C=e.createMap()}C.set(t,true)}function generateNames(t){if(!t)return;switch(t.kind){case 218:e.forEach(t.statements,generateNames);break;case 233:case 231:case 223:case 224:generateNames(t.statement);break;case 222:generateNames(t.thenStatement);generateNames(t.elseStatement);break;case 225:case 227:case 226:generateNames(t.initializer);generateNames(t.statement);break;case 232:generateNames(t.caseBlock);break;case 246:e.forEach(t.clauses,generateNames);break;case 271:case 272:e.forEach(t.statements,generateNames);break;case 235:generateNames(t.tryBlock);generateNames(t.catchClause);generateNames(t.finallyBlock);break;case 274:generateNames(t.variableDeclaration);generateNames(t.block);break;case 219:generateNames(t.declarationList);break;case 238:e.forEach(t.declarations,generateNames);break;case 237:case 151:case 186:case 240:generateNameIfNeeded(t.name);break;case 239:generateNameIfNeeded(t.name);if(e.getEmitFlags(t)&524288){e.forEach(t.parameters,generateNames);generateNames(t.body)}break;case 184:case 185:e.forEach(t.elements,generateNames);break;case 249:generateNames(t.importClause);break;case 250:generateNameIfNeeded(t.name);generateNames(t.namedBindings);break;case 251:generateNameIfNeeded(t.name);break;case 252:e.forEach(t.elements,generateNames);break;case 253:generateNameIfNeeded(t.propertyName||t.name);break}}function generateMemberNames(e){if(!e)return;switch(e.kind){case 275:case 276:case 154:case 156:case 158:case 159:generateNameIfNeeded(e.name);break}}function generateNameIfNeeded(t){if(t){if(e.isGeneratedIdentifier(t)){generateName(t)}else if(e.isBindingPattern(t)){generateNames(t)}}}function generateName(e){if((e.autoGenerateFlags&7)===4){return generateNameCached(getNodeForGeneratedName(e),e.autoGenerateFlags)}else{var t=e.autoGenerateId;return v[t]||(v[t]=makeName(e))}}function generateNameCached(t,r){var n=e.getNodeId(t);return h[n]||(h[n]=generateNameForNode(t,r))}function isUniqueName(e){return isFileLevelUniqueName(e)&&!T.has(e)&&!(C&&C.has(e))}function isFileLevelUniqueName(t){return y?e.isFileLevelUniqueName(y,t,i):true}function isUniqueLocalName(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer){if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&i.flags&(67220415|1048576|2097152)){return false}}}return true}function makeTempVariableName(e,t){if(e&&!(b&e)){var r=e===268435456?"_i":"_n";if(isUniqueName(r)){b|=e;if(t){reserveNameInNestedScopes(r)}return r}}while(true){var n=b&268435455;b++;if(n!==8&&n!==13){var r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26);if(isUniqueName(r)){if(t){reserveNameInNestedScopes(r)}return r}}}}function makeUniqueName(e,t,r,n){if(t===void 0){t=isUniqueName}if(r){if(t(e)){if(n){reserveNameInNestedScopes(e)}else{T.set(e,true)}return e}}if(e.charCodeAt(e.length-1)!==95){e+="_"}var i=1;while(true){var a=e+i;if(t(a)){if(n){reserveNameInNestedScopes(a)}else{T.set(a,true)}return a}i++}}function makeFileLevelOptimisticUniqueName(e){return makeUniqueName(e,isFileLevelUniqueName,true)}function generateNameForModuleOrEnum(e){var t=getTextOfNode(e.name);return isUniqueLocalName(t,e)?t:makeUniqueName(t)}function generateNameForImportOrExportDeclaration(t){var r=e.getExternalModuleName(t);var n=e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module";return makeUniqueName(n)}function generateNameForExportDefault(){return makeUniqueName("default")}function generateNameForClassExpression(){return makeUniqueName("class")}function generateNameForMethodOrAccessor(t){if(e.isIdentifier(t.name)){return generateNameCached(t.name)}return makeTempVariableName(0)}function generateNameForNode(e,t){switch(e.kind){case 72:return makeUniqueName(getTextOfNode(e),isUniqueName,!!(t&16),!!(t&8));case 244:case 243:return generateNameForModuleOrEnum(e);case 249:case 255:return generateNameForImportOrExportDeclaration(e);case 239:case 240:case 254:return generateNameForExportDefault();case 209:return generateNameForClassExpression();case 156:case 158:case 159:return generateNameForMethodOrAccessor(e);default:return makeTempVariableName(0)}}function makeName(t){switch(t.autoGenerateFlags&7){case 1:return makeTempVariableName(0,!!(t.autoGenerateFlags&8));case 2:return makeTempVariableName(268435456,!!(t.autoGenerateFlags&8));case 3:return makeUniqueName(e.idText(t),t.autoGenerateFlags&32?isFileLevelUniqueName:isUniqueName,!!(t.autoGenerateFlags&16),!!(t.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function getNodeForGeneratedName(t){var r=t.autoGenerateId;var n=t;var i=n.original;while(i){n=i;if(e.isIdentifier(n)&&!!(n.autoGenerateFlags&4)&&n.autoGenerateId!==r){break}i=n.original}return n}function pipelineEmitWithComments(t,r){W();B=false;var n=e.getEmitFlags(r);var i=e.getCommentRange(r),a=i.pos,o=i.end;var s=r.kind!==307;var c=a<0||(n&512)!==0||r.kind===11;var u=o<0||(n&1024)!==0||r.kind===11;var l=I;var f=w;var d=M;if((a>0||o>0)&&a!==o){if(!c){emitLeadingComments(a,s)}if(!c||a>=0&&(n&512)!==0){I=a}if(!u||o>=0&&(n&1024)!==0){w=o;if(r.kind===238){M=o}}}e.forEach(e.getSyntheticLeadingComments(r),emitLeadingSynthesizedComment);U();var p=getNextPipelinePhase(2,r);if(n&2048){j=true;p(t,r);j=false}else{p(t,r)}W();e.forEach(e.getSyntheticTrailingComments(r),emitTrailingSynthesizedComment);if((a>0||o>0)&&a!==o){I=l;w=f;M=d;if(!u&&s){emitTrailingComments(o)}}U()}function emitLeadingSynthesizedComment(e){if(e.kind===2){E.writeLine()}writeSynthesizedComment(e);if(e.hasTrailingNewLine||e.kind===2){E.writeLine()}else{E.writeSpace(" ")}}function emitTrailingSynthesizedComment(e){if(!E.isAtStartOfLine()){E.writeSpace(" ")}writeSynthesizedComment(e);if(e.hasTrailingNewLine){E.writeLine()}}function writeSynthesizedComment(t){var r=formatSynthesizedComment(t);var n=t.kind===3?e.computeLineStarts(r):undefined;e.writeCommentRange(r,n,E,0,r.length,g)}function formatSynthesizedComment(e){return e.kind===3?"/*"+e.text+"*/":"//"+e.text}function emitBodyWithDetachedComments(t,r,n){W();var i=r.pos,a=r.end;var o=e.getEmitFlags(t);var s=i<0||(o&512)!==0;var c=j||a<0||(o&1024)!==0;if(!s){emitDetachedCommentsAndUpdateCommentsInfo(r)}U();if(o&2048&&!j){j=true;n(t);j=false}else{n(t)}W();if(!c){emitLeadingComments(r.end,true);if(B&&!E.isAtStartOfLine()){E.writeLine()}}U()}function emitLeadingComments(e,t){B=false;if(t){forEachLeadingCommentToEmit(e,emitLeadingComment)}else if(e===0){forEachLeadingCommentToEmit(e,emitTripleSlashLeadingComment)}}function emitTripleSlashLeadingComment(e,t,r,n,i){if(isTripleSlashComment(e,t)){emitLeadingComment(e,t,r,n,i)}}function shouldWriteComment(r,n){if(t.onlyPrintJsDocStyle){return e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}return true}function emitLeadingComment(t,r,n,i,a){if(!shouldWriteComment(y.text,t))return;if(!B){e.emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(),E,a,t);B=true}emitPos(t);e.writeCommentRange(y.text,getCurrentLineMap(),E,t,r,g);emitPos(r);if(i){E.writeLine()}else if(n===3){E.writeSpace(" ")}}function emitLeadingCommentsOfPosition(e){if(j||e===-1){return}emitLeadingComments(e,true)}function emitTrailingComments(e){forEachTrailingCommentToEmit(e,emitTrailingComment)}function emitTrailingComment(t,r,n,i){if(!shouldWriteComment(y.text,t))return;if(!E.isAtStartOfLine()){E.writeSpace(" ")}emitPos(t);e.writeCommentRange(y.text,getCurrentLineMap(),E,t,r,g);emitPos(r);if(i){E.writeLine()}}function emitTrailingCommentsOfPosition(e,t){if(j){return}W();forEachTrailingCommentToEmit(e,t?emitTrailingComment:emitTrailingCommentOfPosition);U()}function emitTrailingCommentOfPosition(t,r,n,i){emitPos(t);e.writeCommentRange(y.text,getCurrentLineMap(),E,t,r,g);emitPos(r);if(i){E.writeLine()}else{E.writeSpace(" ")}}function forEachLeadingCommentToEmit(t,r){if(y&&(I===-1||t!==I)){if(hasDetachedComments(t)){forEachLeadingCommentWithoutDetachedComments(r)}else{e.forEachLeadingCommentRange(y.text,t,r,t)}}}function forEachTrailingCommentToEmit(t,r){if(y&&(w===-1||t!==w&&t!==M)){e.forEachTrailingCommentRange(y.text,t,r)}}function hasDetachedComments(t){return R!==undefined&&e.last(R).nodePos===t}function forEachLeadingCommentWithoutDetachedComments(t){var r=e.last(R).detachedCommentEndPos;if(R.length-1){R.pop()}else{R=undefined}e.forEachLeadingCommentRange(y.text,r,t,r)}function emitDetachedCommentsAndUpdateCommentsInfo(t){var r=e.emitDetachedComments(y.text,getCurrentLineMap(),E,emitComment,t,g,j);if(r){if(R){R.push(r)}else{R=[r]}}}function emitComment(t,r,n,i,a,o){if(!shouldWriteComment(y.text,i))return;emitPos(i);e.writeCommentRange(t,r,n,i,a,o);emitPos(a)}function isTripleSlashComment(t,r){return e.isRecognizedTripleSlashComment(y.text,t,r)}function pipelineEmitWithSourceMap(t,r){var n=getNextPipelinePhase(3,r);if(e.isUnparsedSource(r)&&r.sourceMapText!==undefined){var i=e.tryParseRawSourceMap(r.sourceMapText);if(i){O.appendSourceMap(E.getLine(),E.getColumn(),i,r.sourceMapPath)}n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=c===void 0?F:c;var l=e.getEmitFlags(r);if(r.kind!==307&&(l&16)===0&&o>=0){emitSourcePos(u,skipSourceTrivia(u,o))}if(l&64){A=true;n(t,r);A=false}else{n(t,r)}if(r.kind!==307&&(l&32)===0&&s>=0){emitSourcePos(u,s)}}}function skipSourceTrivia(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(F.text,r)}function emitPos(t){if(A||e.positionIsSynthesized(t)||isJsonSourceMapSource(F)){return}var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;O.addMapping(E.getLine(),E.getColumn(),P,n,i,undefined)}function emitSourcePos(e,t){if(e!==F){var r=F;setSourceMapSource(e);emitPos(t);setSourceMapSource(r)}else{emitPos(t)}}function emitTokenWithSourceMap(t,r,n,i,a){if(A||t&&e.isInJsonFile(t)){return a(r,n,i)}var o=t&&t.emitNode;var s=o&&o.flags||0;var c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r];var u=c&&c.source||F;i=skipSourceTrivia(u,c?c.pos:i);if((s&128)===0&&i>=0){emitSourcePos(u,i)}i=a(r,n,i);if(c)i=c.end;if((s&256)===0&&i>=0){emitSourcePos(u,i)}return i}function setSourceMapSource(e){if(A){return}F=e;if(isJsonSourceMapSource(e)){return}P=O.addSource(e.fileName);if(t.inlineSources){O.setSourceContent(P,e.text)}}function isJsonSourceMapSource(t){return e.fileExtensionIs(t.fileName,".json")}}e.createPrinter=createPrinter;function createBracketsMap(){var e=[];e[1024]=["{","}"];e[2048]=["(",")"];e[4096]=["<",">"];e[8192]=["[","]"];return e}function getOpeningBracket(e){return r[e&15360][0]}function getClosingBracket(e){return r[e&15360][1]}var a;(function(e){e[e["Auto"]=0]="Auto";e[e["CountMask"]=268435455]="CountMask";e[e["_i"]=268435456]="_i"})(a||(a={}))})(s||(s={}));var s;(function(e){function createCachedDirectoryStructureHost(t,r,n){if(!t.getDirectories||!t.readDirectory){return undefined}var i=e.createMap();var a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:fileExists,readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&directoryExists,getDirectories:getDirectories,readDirectory:readDirectory,createDirectory:t.createDirectory&&createDirectory,writeFile:t.writeFile&&writeFile,addOrDeleteFileOrDirectory:addOrDeleteFileOrDirectory,addOrDeleteFile:addOrDeleteFile,clearCache:clearCache};function toPath(t){return e.toPath(t,r,a)}function getCachedFileSystemEntries(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function getCachedFileSystemEntriesForBaseDir(t){return getCachedFileSystemEntries(e.getDirectoryPath(t))}function getBaseNameOfFileName(t){return e.getBaseFileName(e.normalizePath(t))}function createCachedFileSystemEntries(r,n){var a={files:e.map(t.readDirectory(r,undefined,undefined,["*.*"]),getBaseNameOfFileName)||[],directories:t.getDirectories(r)||[]};i.set(e.ensureTrailingDirectorySeparator(n),a);return a}function tryReadDirectory(t,r){r=e.ensureTrailingDirectorySeparator(r);var n=getCachedFileSystemEntries(r);if(n){return n}try{return createCachedFileSystemEntries(t,r)}catch(t){e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(r)));return undefined}}function fileNameEqual(e,t){return a(e)===a(t)}function hasEntry(t,r){return e.some(t,function(e){return fileNameEqual(e,r)})}function updateFileSystemEntry(t,r,n){if(hasEntry(t,r)){if(!n){return e.filterMutate(t,function(e){return!fileNameEqual(e,r)})}}else if(n){return t.push(r)}}function writeFile(e,r,n){var i=toPath(e);var a=getCachedFileSystemEntriesForBaseDir(i);if(a){updateFilesOfFileSystemEntry(a,getBaseNameOfFileName(e),true)}return t.writeFile(e,r,n)}function fileExists(e){var r=toPath(e);var n=getCachedFileSystemEntriesForBaseDir(r);return n&&hasEntry(n.files,getBaseNameOfFileName(e))||t.fileExists(e)}function directoryExists(r){var n=toPath(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}function createDirectory(e){var r=toPath(e);var n=getCachedFileSystemEntriesForBaseDir(r);var i=getBaseNameOfFileName(e);if(n){updateFileSystemEntry(n.directories,i,true)}t.createDirectory(e)}function getDirectories(e){var r=toPath(e);var n=tryReadDirectory(e,r);if(n){return n.directories.slice()}return t.getDirectories(e)}function readDirectory(i,a,o,s,c){var u=toPath(i);var l=tryReadDirectory(i,u);if(l){return e.matchFiles(i,a,o,s,n,r,c,getFileSystemEntries)}return t.readDirectory(i,a,o,s,c);function getFileSystemEntries(t){var r=toPath(t);if(r===u){return l}return tryReadDirectory(t,r)||e.emptyFileSystemEntries}}function addOrDeleteFileOrDirectory(e,r){var n=getCachedFileSystemEntries(r);if(n){clearCache();return undefined}var i=getCachedFileSystemEntriesForBaseDir(r);if(!i){return undefined}if(!t.directoryExists){clearCache();return undefined}var a=getBaseNameOfFileName(e);var o={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};if(o.directoryExists||hasEntry(i.directories,a)){clearCache()}else{updateFilesOfFileSystemEntry(i,a,o.fileExists)}return o}function addOrDeleteFile(t,r,n){if(n===e.FileWatcherEventKind.Changed){return}var i=getCachedFileSystemEntriesForBaseDir(r);if(i){updateFilesOfFileSystemEntry(i,getBaseNameOfFileName(t),n===e.FileWatcherEventKind.Created)}}function updateFilesOfFileSystemEntry(e,t,r){updateFileSystemEntry(e.files,t,r)}function clearCache(){i.clear()}}e.createCachedDirectoryStructureHost=createCachedDirectoryStructureHost;var t;(function(e){e[e["None"]=0]="None";e[e["Partial"]=1]="Partial";e[e["Full"]=2]="Full"})(t=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function updateMissingFilePathsWatch(t,r,n){var i=t.getMissingFilePaths();var a=e.arrayToSet(i);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=updateMissingFilePathsWatch;function updateWatchingWildcardDirectories(t,r,n){e.mutateMap(t,r,{createNewValue:createWildcardDirectoryWatcher,onDeleteValue:closeFileWatcherOf,onExistingValue:updateWildcardDirectoryWatcher});function createWildcardDirectoryWatcher(e,t){return{watcher:n(e,t),flags:t}}function updateWildcardDirectoryWatcher(e,r,n){if(e.flags===r){return}e.watcher.close();t.set(n,createWildcardDirectoryWatcher(n,r))}}e.updateWatchingWildcardDirectories=updateWatchingWildcardDirectories;function isEmittedFileOfProgram(e,t){if(!e){return false}return e.isEmittedFile(t)}e.isEmittedFileOfProgram=isEmittedFileOfProgram;var r;(function(e){e[e["None"]=0]="None";e[e["TriggerOnly"]=1]="TriggerOnly";e[e["Verbose"]=2]="Verbose"})(r=e.WatchLogLevel||(e.WatchLogLevel={}));function getWatchFactory(e,t,r){return getWatchFactoryWith(e,t,r,watchFile,watchDirectory)}e.getWatchFactory=getWatchFactory;function getWatchFactoryWith(e,t,n,i,a){var o=getCreateFileWatcher(e,i);var s=e===r.None?watchFilePath:o;var c=getCreateFileWatcher(e,a);return{watchFile:function(e,r,a,s,c,u){return o(e,r,a,s,undefined,c,u,i,t,"FileWatcher",n)},watchFilePath:function(e,r,a,o,c,u,l){return s(e,r,a,o,c,u,l,i,t,"FileWatcher",n)},watchDirectory:function(e,r,i,o,s,u){return c(e,r,i,o,undefined,s,u,a,t,"DirectoryWatcher",n)}};function watchFilePath(e,t,r,n,a){return i(e,t,function(e,t){return r(e,t,a)},n)}}function watchFile(e,t,r,n){return e.watchFile(t,r,n)}function watchDirectory(e,t,r,n){return e.watchDirectory(t,r,(n&1)!==0)}function getCreateFileWatcher(e,t){switch(e){case r.None:return t;case r.TriggerOnly:return createFileWatcherWithTriggerLogging;case r.Verbose:return t===watchDirectory?createDirectoryWatcherWithLogging:createFileWatcherWithLogging}}function createFileWatcherWithLogging(e,t,r,n,i,a,o,s,c,u,l){c(u+":: Added:: "+getWatchInfo(t,n,a,o,l));var f=createFileWatcherWithTriggerLogging(e,t,r,n,i,a,o,s,c,u,l);return{close:function(){c(u+":: Close:: "+getWatchInfo(t,n,a,o,l));f.close()}}}function createDirectoryWatcherWithLogging(t,r,n,i,a,o,s,c,u,l,f){var d=l+":: Added:: "+getWatchInfo(r,i,o,s,f);u(d);var p=e.timestamp();var g=createFileWatcherWithTriggerLogging(t,r,n,i,a,o,s,c,u,l,f);var _=e.timestamp()-p;u("Elapsed:: "+_+"ms "+d);return{close:function(){var t=l+":: Close:: "+getWatchInfo(r,i,o,s,f);u(t);var n=e.timestamp();g.close();var a=e.timestamp()-n;u("Elapsed:: "+a+"ms "+t)}}}function createFileWatcherWithTriggerLogging(t,r,n,i,a,o,s,c,u,l,f){return c(t,r,function(t,c){var d=l+":: Triggered with "+t+" "+(c!==undefined?c:"")+":: "+getWatchInfo(r,i,o,s,f);u(d);var p=e.timestamp();n(t,c,a);var g=e.timestamp()-p;u("Elapsed:: "+g+"ms "+d)},i)}function getWatchInfo(e,t,r,n,i){return"WatchInfo: "+e+" "+t+" "+(i?i(r,n):r)}function closeFileWatcherOf(e){e.watcher.close()}e.closeFileWatcherOf=closeFileWatcherOf})(s||(s={}));var s;(function(e){var t=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function findConfigFile(t,r,n){if(n===void 0){n="tsconfig.json"}return e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:undefined})}e.findConfigFile=findConfigFile;function resolveTripleslashReference(t,r){var n=e.getDirectoryPath(r);var i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}e.resolveTripleslashReference=resolveTripleslashReference;function computeCommonSourceDirectoryOfFilenames(t,r,n){var i;var a=e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,r);a.pop();if(!i){i=a;return}var o=Math.min(i.length,a.length);for(var s=0;s<o;s++){if(n(i[s])!==n(a[s])){if(s===0){return true}i.length=s;break}}if(a.length<i.length){i.length=a.length}});if(a){return""}if(!i){return r}return e.getPathFromPathComponents(i)}e.computeCommonSourceDirectoryOfFilenames=computeCommonSourceDirectoryOfFilenames;function createCompilerHost(e,t){return createCompilerHostWorker(e,t)}e.createCompilerHost=createCompilerHost;function createCompilerHostWorker(t,r,n){if(n===void 0){n=e.sys}var i=e.createMap();function getCanonicalFileName(e){return n.useCaseSensitiveFileNames?e:e.toLowerCase()}function getSourceFile(t,n,i){var a;try{e.performance.mark("beforeIORead");a=c.readFile(t);e.performance.mark("afterIORead");e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){if(i){i(e.message)}a=""}return a!==undefined?e.createSourceFile(t,a,n,r):undefined}function directoryExists(e){if(i.has(e)){return true}if(n.directoryExists(e)){i.set(e,true);return true}return false}function ensureDirectoriesExist(t){if(t.length>e.getRootLength(t)&&!directoryExists(t)){var r=e.getDirectoryPath(t);ensureDirectoriesExist(r);if(c.createDirectory){c.createDirectory(t)}else{n.createDirectory(t)}}}var a;function writeFileIfUpdated(t,r,i){if(!a){a=e.createMap()}var o=n.createHash(r);var s=n.getModifiedTime(t);if(s){var c=a.get(t);if(c&&c.byteOrderMark===i&&c.hash===o&&c.mtime.getTime()===s.getTime()){return}}n.writeFile(t,r,i);var u=n.getModifiedTime(t)||e.missingFileModifiedTime;a.set(t,{hash:o,byteOrderMark:i,mtime:u})}function writeFile(r,i,a,o){try{e.performance.mark("beforeIOWrite");ensureDirectoriesExist(e.getDirectoryPath(e.normalizePath(r)));if(e.isWatchSet(t)&&n.createHash&&n.getModifiedTime){writeFileIfUpdated(r,i,a)}else{n.writeFile(r,i,a)}e.performance.mark("afterIOWrite");e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){if(o){o(e.message)}}}function getDefaultLibLocation(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var o=e.getNewLineCharacter(t,function(){return n.newLine});var s=n.realpath&&function(e){return n.realpath(e)};var c={getSourceFile:getSourceFile,getDefaultLibLocation:getDefaultLibLocation,getDefaultLibFileName:function(t){return e.combinePaths(getDefaultLibLocation(),e.getDefaultLibFileName(t))},writeFile:writeFile,getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:getCanonicalFileName,getNewLine:function(){return o},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+o)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:s,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)}};return c}e.createCompilerHostWorker=createCompilerHostWorker;function changeCompilerHostToUseCache(t,r,n){var i=t.readFile;var a=t.fileExists;var o=t.directoryExists;var s=t.createDirectory;var c=t.writeFile;var u=t.getSourceFile;var l=e.createMap();var f=e.createMap();var d=e.createMap();var p=e.createMap();var g=function(e){var t=r(e);var n=l.get(t);if(n!==undefined)return n||undefined;return _(t,e)};var _=function(e,r){var n=i.call(t,r);l.set(e,n||false);return n};t.readFile=function(n){var a=r(n);var o=l.get(a);if(o!==undefined)return o;if(!e.fileExtensionIs(n,".json")){return i.call(t,n)}return _(a,n)};if(n){t.getSourceFile=function(n,i,a,o){var s=r(n);var c=p.get(s);if(c)return c;var l=u.call(t,n,i,a,o);if(l&&(e.isDeclarationFileName(n)||e.fileExtensionIs(n,".json"))){p.set(s,l)}return l}}t.fileExists=function(e){var n=r(e);var i=f.get(n);if(i!==undefined)return i;var o=a.call(t,e);f.set(n,!!o);return o};t.writeFile=function(e,i,a,o,s){var u=r(e);f.delete(u);var d=l.get(u);if(d&&d!==i){l.delete(u);p.delete(u)}else if(n){var g=p.get(u);if(g&&g.text!==i){p.delete(u)}}c.call(t,e,i,a,o,s)};if(o&&s){t.directoryExists=function(e){var n=r(e);var i=d.get(n);if(i!==undefined)return i;var a=o.call(t,e);d.set(n,!!a);return a};t.createDirectory=function(e){var n=r(e);d.delete(n);s.call(t,e)}}return{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,originalGetSourceFile:u,readFileWithCache:g}}e.changeCompilerHostToUseCache=changeCompilerHostToUseCache;function getPreEmitDiagnostics(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));if(e.getEmitDeclarations(t.getCompilerOptions())){e.addRange(i,t.getDeclarationDiagnostics(r,n))}return e.sortAndDeduplicateDiagnostics(i)}e.getPreEmitDiagnostics=getPreEmitDiagnostics;function formatDiagnostics(e,t){var r="";for(var n=0,i=e;n<i.length;n++){var a=i[n];r+=formatDiagnostic(a,t)}return r}e.formatDiagnostics=formatDiagnostics;function formatDiagnostic(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+flattenDiagnosticMessageText(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character;var s=t.file.fileName;var c=e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)});return c+"("+(a+1)+","+(o+1)+"): "+n}return n}e.formatDiagnostic=formatDiagnostic;var r;(function(e){e["Grey"]="[90m";e["Red"]="[91m";e["Yellow"]="[93m";e["Blue"]="[94m";e["Cyan"]="[96m"})(r=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var i="[7m";var a=" ";var o="[0m";var s="...";var c=" ";var u=" ";function getCategoryFormat(t){switch(t){case e.DiagnosticCategory.Error:return r.Red;case e.DiagnosticCategory.Warning:return r.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return r.Blue}}function formatColorAndReset(e,t){return t+e+o}e.formatColorAndReset=formatColorAndReset;function padLeft(e,t){while(e.length<t){e=" "+e}return e}function formatCodeSpan(t,r,n,c,u,l){var f=e.getLineAndCharacterOfPosition(t,r),d=f.line,p=f.character;var g=e.getLineAndCharacterOfPosition(t,r+n),_=g.line,m=g.character;var y=e.getLineAndCharacterOfPosition(t,t.text.length).line;var h=_-d>=4;var v=(_+1+"").length;if(h){v=Math.max(s.length,v)}var T="";for(var S=d;S<=_;S++){T+=l.getNewLine();if(h&&d+1<S&&S<_-1){T+=c+formatColorAndReset(padLeft(s,v),i)+a+l.getNewLine();S=_-1}var b=e.getPositionOfLineAndCharacter(t,S,0);var x=S<y?e.getPositionOfLineAndCharacter(t,S+1,0):t.text.length;var C=t.text.slice(b,x);C=C.replace(/\s+$/g,"");C=C.replace("\t"," ");T+=c+formatColorAndReset(padLeft(S+1+"",v),i)+a;T+=C+l.getNewLine();T+=c+formatColorAndReset(padLeft("",v),i)+a;T+=u;if(S===d){var E=S===_?m:undefined;T+=C.slice(0,p).replace(/\S/g," ");T+=C.slice(p,E).replace(/./g,"~")}else if(S===_){T+=C.slice(0,m).replace(/./g,"~")}else{T+=C.replace(/./g,"~")}T+=o}return T}function formatLocation(t,n,i,a){if(a===void 0){a=formatColorAndReset}var o=e.getLineAndCharacterOfPosition(t,n),s=o.line,c=o.character;var u=i?e.convertToRelativePath(t.fileName,i.getCurrentDirectory(),function(e){return i.getCanonicalFileName(e)}):t.fileName;var l="";l+=a(u,r.Cyan);l+=":";l+=a(""+(s+1),r.Yellow);l+=":";l+=a(""+(c+1),r.Yellow);return l}e.formatLocation=formatLocation;function formatDiagnosticsWithColorAndContext(t,n){var i="";for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.file){var l=s.file,f=s.start;i+=formatLocation(l,f,n);i+=" - "}i+=formatColorAndReset(e.diagnosticCategoryName(s),getCategoryFormat(s.category));i+=formatColorAndReset(" TS"+s.code+": ",r.Grey);i+=flattenDiagnosticMessageText(s.messageText,n.getNewLine());if(s.file){i+=n.getNewLine();i+=formatCodeSpan(s.file,s.start,s.length,"",getCategoryFormat(s.category),n);if(s.relatedInformation){i+=n.getNewLine();for(var d=0,p=s.relatedInformation;d<p.length;d++){var g=p[d],l=g.file,f=g.start,_=g.length,m=g.messageText;if(l){i+=n.getNewLine();i+=c+formatLocation(l,f,n);i+=formatCodeSpan(l,f,_,u,r.Cyan,n)}i+=n.getNewLine();i+=u+flattenDiagnosticMessageText(m,n.getNewLine())}}}i+=n.getNewLine()}return i}e.formatDiagnosticsWithColorAndContext=formatDiagnosticsWithColorAndContext;function flattenDiagnosticMessageText(t,r){if(e.isString(t)){return t}else{var n=t;var i="";var a=0;while(n){if(a){i+=r;for(var o=0;o<a;o++){i+=" "}}i+=n.messageText;a++;n=n.next}return i}}e.flattenDiagnosticMessageText=flattenDiagnosticMessageText;function loadWithLocalCache(t,r,n,i){if(t.length===0){return[]}var a=[];var o=e.createMap();for(var s=0,c=t;s<c.length;s++){var u=c[s];var l=void 0;if(o.has(u)){l=o.get(u)}else{o.set(u,l=i(u,r,n))}a.push(l)}return a}function isProgramUptoDate(t,r,n,i,a,o,s,c){if(!t||s){return false}if(t.getRootFileNames().length!==r.length){return false}var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),c,projectReferenceUptoDate)){return false}if(t.getSourceFiles().some(sourceFileNotUptoDate)){return false}if(t.getMissingFilePaths().some(a)){return false}var l=t.getCompilerOptions();if(!e.compareDataObjects(l,n)){return false}if(l.configFile&&n.configFile){return l.configFile.text===n.configFile.text}return true;function sourceFileNotUptoDate(e){return!sourceFileVersionUptoDate(e)||o(e.path)}function sourceFileVersionUptoDate(e){return e.version===i(e.resolvedPath)}function projectReferenceUptoDate(r,n,i){if(!e.projectReferenceIsEqualTo(r,n)){return false}return resolvedProjectReferenceUptoDate(t.getResolvedProjectReferences()[i],r)}function resolvedProjectReferenceUptoDate(t,r){if(t){if(e.contains(u,t)){return true}if(!sourceFileVersionUptoDate(t.sourceFile)){return false}(u||(u=[])).push(t);return!e.forEach(t.references,function(e,r){return!resolvedProjectReferenceUptoDate(e,t.commandLine.projectReferences[r])})}return!a(resolveProjectReferencePath(r))}}e.isProgramUptoDate=isProgramUptoDate;function getConfigFileParsingDiagnostics(e){return e.options.configFile?e.options.configFile.parseDiagnostics.concat(e.errors):e.errors}e.getConfigFileParsingDiagnostics=getConfigFileParsingDiagnostics;function shouldProgramCreateNewSourceFiles(t,r){if(!t)return false;var n=t.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some(function(t){return!e.isJsonEqual(e.getCompilerOptionValue(n,t),e.getCompilerOptionValue(r,t))})}function createCreateProgramOptions(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}function createProgram(r,i,a,o,s){var c=e.isArray(r)?createCreateProgramOptions(r,i,a,o,s):r;var u=c.rootNames,l=c.options,f=c.configFileParsingDiagnostics,d=c.projectReferences;var p=c.oldProgram;var g;var _;var m;var y;var h;var v;var T;var S;var b=e.createMap();var x={};var C={};var E=e.createMap();var D=e.createDiagnosticCollection();var k=typeof l.maxNodeModuleJsDepth==="number"?l.maxNodeModuleJsDepth:0;var N=0;var A=e.createMap();var O=e.createMap();e.performance.mark("beforeProgram");var F=c.host||createCompilerHost(l);var P=parseConfigHostFromCompilerHost(F);var I=l.noLib;var w=e.memoize(function(){return F.getDefaultLibFileName(l)});var M=F.getDefaultLibLocation?F.getDefaultLibLocation():e.getDirectoryPath(w());var L=e.createDiagnosticCollection();var R=F.getCurrentDirectory();var B=e.getSupportedExtensions(l);var j=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(l,B);var J=e.createMap();var W;var U;var z;var V=F.hasInvalidatedResolution||e.returnFalse;if(F.resolveModuleNames){z=function(t,r,n,i){return F.resolveModuleNames(e.Debug.assertEachDefined(t),r,n,i).map(function(t){if(!t||t.extension!==undefined){return t}var r=e.clone(t);r.extension=e.extensionFromPath(t.resolvedFileName);return r})}}else{U=e.createModuleResolutionCache(R,function(e){return F.getCanonicalFileName(e)});var K=function(t,r,n){return e.resolveModuleName(t,r,l,F,U,n).resolvedModule};z=function(t,r,n,i){return loadWithLocalCache(e.Debug.assertEachDefined(t),r,i,K)}}var q;if(F.resolveTypeReferenceDirectives){q=function(t,r,n){return F.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(t),r,n)}}else{var G=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,l,F,n).resolvedTypeReferenceDirective};q=function(t,r,n){return loadWithLocalCache(e.Debug.assertEachDefined(t),r,n,G)}}var H=e.createMap();var Q=e.createMap();var $=e.createMultiMap();var X=e.createMap();var Y;var Z=F.useCaseSensitiveFileNames()?e.createMap():undefined;var ee;var te;var re;var ne=shouldProgramCreateNewSourceFiles(p,l);var ie=tryReuseStructureFromOldProgram();if(ie!==2){_=[];m=[];if(d){if(!ee){ee=d.map(parseProjectReferenceConfigFile)}if(u.length){for(var ae=0,oe=ee;ae<oe.length;ae++){var se=oe[ae];if(se){var ce=se.commandLine.options.outFile||se.commandLine.options.out;if(ce){var ue=e.changeExtension(ce,".d.ts");processSourceFile(ue,false,false,undefined)}}}}}e.forEach(u,function(e){return processRootFile(e,false,false)});var le=u.length?e.getAutomaticTypeDirectiveNames(l,F):e.emptyArray;if(le.length){var fe=l.configFilePath?e.getDirectoryPath(l.configFilePath):F.getCurrentDirectory();var de=e.combinePaths(fe,"__inferred type names__.ts");var pe=q(le,de);for(var ge=0;ge<le.length;ge++){processTypeReferenceDirective(le[ge],pe[ge])}}if(u.length&&!I){var _e=w();if(!l.lib&&_e){processRootFile(_e,true,false)}else{e.forEach(l.lib,function(t){processRootFile(e.combinePaths(M,t),true,false)})}}Y=e.arrayFrom(X.keys(),function(e){return e}).filter(function(e){return!X.get(e)});y=e.stableSort(_,compareDefaultLibFiles).concat(m);_=undefined;m=undefined}e.Debug.assert(!!Y);if(p&&F.onReleaseOldSourceFile){var me=p.getSourceFiles();for(var ye=0,he=me;ye<he.length;ye++){var ve=he[ye];var Te=getSourceFileByPath(ve.resolvedPath);if(ne||!Te||ve.resolvedPath===ve.path&&Te.resolvedPath!==ve.path){F.onReleaseOldSourceFile(ve,p.getCompilerOptions(),!!getSourceFileByPath(ve.path))}}p.forEachResolvedProjectReference(function(e,t){if(e&&!getResolvedProjectReferenceByPath(t)){F.onReleaseOldSourceFile(e.sourceFile,p.getCompilerOptions(),false)}})}p=undefined;g={getRootFileNames:function(){return u},getSourceFile:getSourceFile,getSourceFileByPath:getSourceFileByPath,getSourceFiles:function(){return y},getMissingFilePaths:function(){return Y},getCompilerOptions:function(){return l},getSyntacticDiagnostics:getSyntacticDiagnostics,getOptionsDiagnostics:getOptionsDiagnostics,getGlobalDiagnostics:getGlobalDiagnostics,getSemanticDiagnostics:getSemanticDiagnostics,getSuggestionDiagnostics:getSuggestionDiagnostics,getDeclarationDiagnostics:getDeclarationDiagnostics,getTypeChecker:getTypeChecker,getClassifiableNames:getClassifiableNames,getDiagnosticsProducingTypeChecker:getDiagnosticsProducingTypeChecker,getCommonSourceDirectory:getCommonSourceDirectory,emit:emit,getCurrentDirectory:function(){return R},getNodeCount:function(){return getDiagnosticsProducingTypeChecker().getNodeCount()},getIdentifierCount:function(){return getDiagnosticsProducingTypeChecker().getIdentifierCount()},getSymbolCount:function(){return getDiagnosticsProducingTypeChecker().getSymbolCount()},getTypeCount:function(){return getDiagnosticsProducingTypeChecker().getTypeCount()},getFileProcessingDiagnostics:function(){return D},getResolvedTypeReferenceDirectives:function(){return E},isSourceFileFromExternalLibrary:isSourceFileFromExternalLibrary,isSourceFileDefaultLibrary:isSourceFileDefaultLibrary,dropDiagnosticsProducingTypeChecker:dropDiagnosticsProducingTypeChecker,getSourceFileFromReference:getSourceFileFromReference,getLibFileFromReference:getLibFileFromReference,sourceFileToPackageName:Q,redirectTargetsMap:$,isEmittedFile:isEmittedFile,getConfigFileParsingDiagnostics:getConfigFileParsingDiagnostics,getResolvedModuleWithFailedLookupLocationsFromCache:getResolvedModuleWithFailedLookupLocationsFromCache,getProjectReferences:getProjectReferences,getResolvedProjectReferences:getResolvedProjectReferences,getProjectReferenceRedirect:getProjectReferenceRedirect,getResolvedProjectReferenceToRedirect:getResolvedProjectReferenceToRedirect,getResolvedProjectReferenceByPath:getResolvedProjectReferenceByPath,forEachResolvedProjectReference:forEachResolvedProjectReference};verifyCompilerOptions();e.performance.mark("afterProgram");e.performance.measure("Program","beforeProgram","afterProgram");return g;function compareDefaultLibFiles(t,r){return e.compareValues(getDefaultLibFilePriority(t),getDefaultLibFilePriority(r))}function getDefaultLibFilePriority(t){if(e.containsPath(M,t.fileName,false)){var r=e.getBaseFileName(t.fileName);if(r==="lib.d.ts"||r==="lib.es6.d.ts")return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts");var i=e.libs.indexOf(n);if(i!==-1)return i+1}return e.libs.length+2}function getResolvedModuleWithFailedLookupLocationsFromCache(t,r){return U&&e.resolveModuleNameFromCache(t,r,U)}function toPath(t){return e.toPath(t,R,getCanonicalFileName)}function getCommonSourceDirectory(){if(h===undefined){var t=e.filter(y,function(t){return e.sourceFileMayBeEmitted(t,l,isSourceFileFromExternalLibrary)});if(l.rootDir&&checkSourceFilesBelongToPath(t,l.rootDir)){h=e.getNormalizedAbsolutePath(l.rootDir,R)}else if(l.composite&&l.configFilePath){h=e.getDirectoryPath(e.normalizeSlashes(l.configFilePath));checkSourceFilesBelongToPath(t,h)}else{h=computeCommonSourceDirectory(t)}if(h&&h[h.length-1]!==e.directorySeparator){h+=e.directorySeparator}}return h}function getClassifiableNames(){if(!S){getTypeChecker();S=e.createUnderscoreEscapedMap();for(var t=0,r=y;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,S)}}return S}function resolveModuleNamesReusingOldState(t,r,n){if(ie===0&&!n.ambientModuleNames.length){return z(t,r,undefined,getResolvedProjectReferenceToRedirect(n.originalFileName))}var i=p&&p.getSourceFile(r);if(i!==n&&n.resolvedModules){var a=[];for(var o=0,s=t;o<s.length;o++){var c=s[o];var u=n.resolvedModules.get(c);a.push(u)}return a}var f;var d;var g;var _={};for(var m=0;m<t.length;m++){var c=t[m];if(n===i&&!V(i.path)){var y=i&&i.resolvedModules.get(c);if(y){if(e.isTraceEnabled(l,F)){e.trace(F,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,c,r)}(d||(d=new Array(t.length)))[m]=y;(g||(g=[])).push(c);continue}}var h=false;if(e.contains(n.ambientModuleNames,c)){h=true;if(e.isTraceEnabled(l,F)){e.trace(F,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,c,r)}}else{h=moduleNameResolvesToAmbientModuleInNonModifiedFile(c)}if(h){(d||(d=new Array(t.length)))[m]=_}else{(f||(f=[])).push(c)}}var v=f&&f.length?z(f,r,g,getResolvedProjectReferenceToRedirect(n.originalFileName)):e.emptyArray;if(!d){e.Debug.assert(v.length===t.length);return v}var T=0;for(var m=0;m<d.length;m++){if(d[m]){if(d[m]===_){d[m]=undefined}}else{d[m]=v[T];T++}}e.Debug.assert(T===v.length);return d;function moduleNameResolvesToAmbientModuleInNonModifiedFile(t){var r=e.getResolvedModule(i,t);var n=r&&p.getSourceFile(r.resolvedFileName);if(r&&n&&!n.externalModuleIndicator){return false}var a=b.get(t);if(!a){return false}if(e.isTraceEnabled(l,F)){e.trace(F,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a)}return true}}function canReuseProjectReferences(){return!forEachProjectReference(p.getProjectReferences(),p.getResolvedProjectReferences(),function(e,t,r){var n=(r?r.commandLine.projectReferences:d)[t];var i=parseProjectReferenceConfigFile(n);if(e){return!i||i.sourceFile!==e.sourceFile}else{return i!==undefined}},function(t,r){var n=r?getResolvedProjectReferenceByPath(r.sourceFile.path).commandLine.projectReferences:d;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})}function tryReuseStructureFromOldProgram(){if(!p){return 0}var t=p.getCompilerOptions();if(e.changesAffectModuleResolution(t,l)){return p.structureIsReused=0}e.Debug.assert(!(p.structureIsReused&(2|1)));var r=p.getRootFileNames();if(!e.arrayIsEqualTo(r,u)){return p.structureIsReused=0}if(!e.arrayIsEqualTo(l.types,t.types)){return p.structureIsReused=0}if(!canReuseProjectReferences()){return p.structureIsReused=0}if(d){ee=d.map(parseProjectReferenceConfigFile)}var n=[];var i=[];p.structureIsReused=2;if(p.getMissingFilePaths().some(function(e){return F.fileExists(e)})){return p.structureIsReused=0}var a=p.getSourceFiles();var o;(function(e){e[e["Exists"]=0]="Exists";e[e["Modified"]=1]="Modified"})(o||(o={}));var s=e.createMap();for(var c=0,f=a;c<f.length;c++){var g=f[c];var _=F.getSourceFileByPath?F.getSourceFileByPath(g.fileName,g.resolvedPath,l.target,undefined,ne):F.getSourceFile(g.fileName,l.target,undefined,ne);if(!_){return p.structureIsReused=0}e.Debug.assert(!_.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var m=void 0;if(g.redirectInfo){if(_!==g.redirectInfo.unredirected){return p.structureIsReused=0}m=false;_=g}else if(p.redirectTargetsMap.has(g.path)){if(_!==g){return p.structureIsReused=0}m=false}else{m=_!==g}_.path=g.path;_.originalFileName=g.originalFileName;_.resolvedPath=g.resolvedPath;_.fileName=g.fileName;var h=p.sourceFileToPackageName.get(g.path);if(h!==undefined){var v=s.get(h);var T=m?1:0;if(v!==undefined&&T===1||v===1){return p.structureIsReused=0}s.set(h,T)}if(m){if(!e.arrayIsEqualTo(g.libReferenceDirectives,_.libReferenceDirectives,fileReferenceIsEqualTo)){return p.structureIsReused=0}if(g.hasNoDefaultLib!==_.hasNoDefaultLib){p.structureIsReused=1}if(!e.arrayIsEqualTo(g.referencedFiles,_.referencedFiles,fileReferenceIsEqualTo)){p.structureIsReused=1}collectExternalModuleReferences(_);if(!e.arrayIsEqualTo(g.imports,_.imports,moduleNameIsEqualTo)){p.structureIsReused=1}if(!e.arrayIsEqualTo(g.moduleAugmentations,_.moduleAugmentations,moduleNameIsEqualTo)){p.structureIsReused=1}if((g.flags&1572864)!==(_.flags&1572864)){p.structureIsReused=1}if(!e.arrayIsEqualTo(g.typeReferenceDirectives,_.typeReferenceDirectives,fileReferenceIsEqualTo)){p.structureIsReused=1}i.push({oldFile:g,newFile:_})}else if(V(g.path)){p.structureIsReused=1;i.push({oldFile:g,newFile:_})}n.push(_)}if(p.structureIsReused!==2){return p.structureIsReused}var S=i.map(function(e){return e.oldFile});for(var x=0,C=a;x<C.length;x++){var k=C[x];if(!e.contains(S,k)){for(var N=0,A=k.ambientModuleNames;N<A.length;N++){var P=A[N];b.set(P,k.fileName)}}}for(var I=0,w=i;I<w.length;I++){var M=w[I],g=M.oldFile,_=M.newFile;var L=e.getNormalizedAbsolutePath(_.originalFileName,R);if(z){var B=getModuleNames(_);var j=resolveModuleNamesReusingOldState(B,L,_);var J=e.hasChangesInResolutions(B,j,g.resolvedModules,e.moduleResolutionIsEqualTo);if(J){p.structureIsReused=1;_.resolvedModules=e.zipToMap(B,j)}else{_.resolvedModules=g.resolvedModules}}if(q){var W=e.map(_.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});var j=q(W,L,getResolvedProjectReferenceToRedirect(_.originalFileName));var J=e.hasChangesInResolutions(W,j,g.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);if(J){p.structureIsReused=1;_.resolvedTypeReferenceDirectiveNames=e.zipToMap(W,j)}else{_.resolvedTypeReferenceDirectiveNames=g.resolvedTypeReferenceDirectiveNames}}}if(p.structureIsReused!==2){return p.structureIsReused}if(F.hasChangedAutomaticTypeDirectiveNames){return p.structureIsReused=1}Y=p.getMissingFilePaths();for(var U=0,K=n;U<K.length;U++){var _=K[U];var G=_.path;addFileToFilesByName(_,G,_.resolvedPath);if(p.isSourceFileFromExternalLibrary(p.getSourceFileByPath(G))){O.set(G,true)}}y=n;D=p.getFileProcessingDiagnostics();for(var H=0,X=i;H<X.length;H++){var Z=X[H];D.reattachFileDiagnostics(Z.newFile)}E=p.getResolvedTypeReferenceDirectives();Q=p.sourceFileToPackageName;$=p.redirectTargetsMap;return p.structureIsReused=2}function getEmitHost(t){return n({getPrependNodes:getPrependNodes,getCanonicalFileName:getCanonicalFileName,getCommonSourceDirectory:g.getCommonSourceDirectory,getCompilerOptions:g.getCompilerOptions,getCurrentDirectory:function(){return R},getNewLine:function(){return F.getNewLine()},getSourceFile:g.getSourceFile,getSourceFileByPath:g.getSourceFileByPath,getSourceFiles:g.getSourceFiles,getLibFileFromReference:g.getLibFileFromReference,isSourceFileFromExternalLibrary:isSourceFileFromExternalLibrary,writeFile:t||function(e,t,r,n,i){return F.writeFile(e,t,r,n,i)},isEmitBlocked:isEmitBlocked,readFile:function(e){return F.readFile(e)},fileExists:function(t){var r=toPath(t);if(getSourceFileByPath(r))return true;if(e.contains(Y,r))return false;return F.fileExists(t)}},F.directoryExists?{directoryExists:function(e){return F.directoryExists(e)}}:{},{useCaseSensitiveFileNames:function(){return F.useCaseSensitiveFileNames()}})}function getResolvedProjectReferences(){return ee}function getProjectReferences(){return d}function getPrependNodes(){if(!d){return e.emptyArray}var t=[];for(var r=0;r<d.length;r++){var n=d[r];var i=ee[r].commandLine;if(n.prepend&&i&&i.options){var a=i.options.outFile||i.options.out;if(!a)continue;var o=e.changeExtension(a,".d.ts");var s=F.readFile(a)||"/* Input file "+a+" was missing */\r\n";var c=a+".map";var u=F.readFile(c);var l=F.readFile(o)||"/* Input file "+o+" was missing */\r\n";var f=o+".map";var p=F.readFile(f);var g=e.createInputFiles(s,l,u&&c,u,p&&f,p);t.push(g)}}return t}function isSourceFileFromExternalLibrary(e){return!!O.get(e.path)}function isSourceFileDefaultLibrary(t){if(t.hasNoDefaultLib){return true}if(!l.noLib){return false}var r=F.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;if(!l.lib){return r(t.fileName,w())}else{return e.some(l.lib,function(n){return r(t.fileName,e.combinePaths(M,n))})}}function getDiagnosticsProducingTypeChecker(){return v||(v=e.createTypeChecker(g,true))}function dropDiagnosticsProducingTypeChecker(){v=undefined}function getTypeChecker(){return T||(T=e.createTypeChecker(g,false))}function emit(e,t,r,n,i){return runWithCancellationToken(function(){return emitWorker(g,e,t,r,n,i)})}function isEmitBlocked(e){return J.has(toPath(e))}function emitWorker(t,r,n,i,a,o){var s=[];if(!a){if(l.noEmit){return{diagnostics:s,sourceMaps:undefined,emittedFiles:undefined,emitSkipped:true}}if(l.noEmitOnError){var c=t.getOptionsDiagnostics(i).concat(t.getSyntacticDiagnostics(r,i),t.getGlobalDiagnostics(i),t.getSemanticDiagnostics(r,i));if(c.length===0&&e.getEmitDeclarations(t.getCompilerOptions())){s=t.getDeclarationDiagnostics(undefined,i)}if(c.length>0||s.length>0){return{diagnostics:e.concatenate(c,s),sourceMaps:undefined,emittedFiles:undefined,emitSkipped:true}}}}var u=getDiagnosticsProducingTypeChecker().getEmitResolver(l.outFile||l.out?undefined:r,i);e.performance.mark("beforeEmit");var f=a?[]:e.getTransformers(l,o);var d=e.emitFiles(u,getEmitHost(n),r,a,f,o&&o.afterDeclarations);e.performance.mark("afterEmit");e.performance.measure("Emit","beforeEmit","afterEmit");return d}function getSourceFile(e){return getSourceFileByPath(toPath(e))}function getSourceFileByPath(e){return X.get(e)}function getDiagnosticsHelper(t,r,n){if(t){return r(t,n)}return e.sortAndDeduplicateDiagnostics(e.flatMap(g.getSourceFiles(),function(e){if(n){n.throwIfCancellationRequested()}return r(e,n)}))}function getSyntacticDiagnostics(e,t){return getDiagnosticsHelper(e,getSyntacticDiagnosticsForFile,t)}function getSemanticDiagnostics(e,t){return getDiagnosticsHelper(e,getSemanticDiagnosticsForFile,t)}function getDeclarationDiagnostics(e,t){var r=g.getCompilerOptions();if(!e||r.out||r.outFile){return getDeclarationDiagnosticsWorker(e,t)}else{return getDiagnosticsHelper(e,getDeclarationDiagnosticsForFile,t)}}function getSyntacticDiagnosticsForFile(t){if(e.isSourceFileJS(t)){if(!t.additionalSyntacticDiagnostics){t.additionalSyntacticDiagnostics=getJSSyntacticDiagnosticsForFile(t)}return e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)}return t.parseDiagnostics}function runWithCancellationToken(t){try{return t()}catch(t){if(t instanceof e.OperationCanceledException){T=undefined;v=undefined}throw t}}function getSemanticDiagnosticsForFile(e,t){return getAndCacheDiagnostics(e,t,x,getSemanticDiagnosticsForFileNoCache)}function getSemanticDiagnosticsForFileNoCache(t,r){return runWithCancellationToken(function(){if(e.skipTypeChecking(t,l)){return e.emptyArray}var n=getDiagnosticsProducingTypeChecker();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,l);var a=t.scriptKind===3||t.scriptKind===4||t.scriptKind===5||i||t.scriptKind===7;var o=a?t.bindDiagnostics:e.emptyArray;var s=a?n.getDiagnostics(t,r):e.emptyArray;var c=D.getDiagnostics(t.fileName);var u=L.getDiagnostics(t.fileName);var f;for(var d=0,p=[o,s,c,u,i?t.jsDocDiagnostics:undefined];d<p.length;d++){var g=p[d];if(g){for(var _=0,m=g;_<m.length;_++){var y=m[_];if(shouldReportDiagnostic(y)){f=e.append(f,y)}}}}return f})}function getSuggestionDiagnostics(e,t){return runWithCancellationToken(function(){return getDiagnosticsProducingTypeChecker().getSuggestionDiagnostics(e,t)})}function shouldReportDiagnostic(r){var n=r.file,i=r.start;if(n){var a=e.getLineStarts(n);var o=e.computeLineAndCharacterOfPosition(a,i).line;while(o>0){var s=n.text.slice(a[o-1],a[o]);var c=t.exec(s);if(!c){return true}if(c[3]){return false}o--}}return true}function getJSSyntacticDiagnosticsForFile(t){return runWithCancellationToken(function(){var r=[];var n=t;walk(t);return r;function walk(t){switch(n.kind){case 151:case 154:if(n.questionToken===t){r.push(createDiagnosticForNode(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));return}case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:case 237:if(n.type===t){r.push(createDiagnosticForNode(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file));return}}switch(t.kind){case 248:r.push(createDiagnosticForNode(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));return;case 254:if(t.isExportEquals){r.push(createDiagnosticForNode(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));return}break;case 273:var i=t;if(i.token===109){r.push(createDiagnosticForNode(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));return}break;case 241:r.push(createDiagnosticForNode(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));return;case 244:r.push(createDiagnosticForNode(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));return;case 242:r.push(createDiagnosticForNode(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));return;case 243:r.push(createDiagnosticForNode(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));return;case 213:r.push(createDiagnosticForNode(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));return;case 212:r.push(createDiagnosticForNode(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));return;case 194:e.Debug.fail()}var a=n;n=t;e.forEachChild(t,walk,walkArray);n=a}function walkArray(t){if(n.decorators===t&&!l.experimentalDecorators){r.push(createDiagnosticForNode(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning))}switch(n.kind){case 240:case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:if(t===n.typeParameters){r.push(createDiagnosticForNodeArray(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));return}case 219:if(t===n.modifiers){return checkModifiers(t,n.kind===219)}break;case 154:if(t===n.modifiers){for(var i=0,a=t;i<a.length;i++){var o=a[i];if(o.kind!==116){r.push(createDiagnosticForNode(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}return}break;case 151:if(t===n.modifiers){r.push(createDiagnosticForNodeArray(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));return}break;case 191:case 192:case 211:case 261:case 262:if(t===n.typeArguments){r.push(createDiagnosticForNodeArray(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file));return}break}for(var s=0,c=t;s<c.length;s++){var u=c[s];walk(u)}}function checkModifiers(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 77:if(n){continue}case 115:case 113:case 114:case 133:case 125:case 118:r.push(createDiagnosticForNode(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)));break;case 116:case 85:case 80:}}}function createDiagnosticForNodeArray(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function createDiagnosticForNode(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})}function getDeclarationDiagnosticsWorker(e,t){return getAndCacheDiagnostics(e,t,C,getDeclarationDiagnosticsForFileNoCache)}function getDeclarationDiagnosticsForFileNoCache(t,r){return runWithCancellationToken(function(){var n=getDiagnosticsProducingTypeChecker().getEmitResolver(t,r);return e.getDeclarationDiagnostics(getEmitHost(e.noop),n,t)})}function getAndCacheDiagnostics(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a){return a}var o=i(t,r)||e.emptyArray;if(t){if(!n.perFile){n.perFile=e.createMap()}n.perFile.set(t.path,o)}else{n.allDiagnostics=o}return o}function getDeclarationDiagnosticsForFile(e,t){return e.isDeclarationFile?[]:getDeclarationDiagnosticsWorker(e,t)}function getOptionsDiagnostics(){return e.sortAndDeduplicateDiagnostics(e.concatenate(D.getGlobalDiagnostics(),e.concatenate(L.getGlobalDiagnostics(),getOptionsDiagnosticsOfConfigFile())))}function getOptionsDiagnosticsOfConfigFile(){if(!l.configFile){return e.emptyArray}var t=L.getDiagnostics(l.configFile.fileName);forEachResolvedProjectReference(function(r){if(r){t=e.concatenate(t,L.getDiagnostics(r.sourceFile.fileName))}});return t}function getGlobalDiagnostics(){return u.length?e.sortAndDeduplicateDiagnostics(getDiagnosticsProducingTypeChecker().getGlobalDiagnostics().slice()):e.emptyArray}function getConfigFileParsingDiagnostics(){return f||e.emptyArray}function processRootFile(t,r,n){processSourceFile(e.normalizePath(t),r,n,undefined)}function fileReferenceIsEqualTo(e,t){return e.fileName===t.fileName}function moduleNameIsEqualTo(e,t){return e.kind===72?t.kind===72&&e.escapedText===t.escapedText:t.kind===10&&e.text===t.text}function collectExternalModuleReferences(t){if(t.imports){return}var r=e.isSourceFileJS(t);var n=e.isExternalModule(t);var i;var a;var o;if(l.importHelpers&&(l.isolatedModules||n)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText);var c=e.createImportDeclaration(undefined,undefined,undefined,s);e.addEmitFlags(c,67108864);s.parent=c;c.parent=t;i=[s]}for(var u=0,f=t.statements;u<f.length;u++){var d=f[u];collectModuleReferences(d,false)}if(t.flags&524288||r){collectDynamicImportOrRequireCalls(t)}t.imports=i||e.emptyArray;t.moduleAugmentations=a||e.emptyArray;t.ambientModuleNames=o||e.emptyArray;return;function collectModuleReferences(r,s){if(e.isAnyImportOrReExport(r)){var c=e.getExternalModuleName(r);if(c&&e.isStringLiteral(c)&&c.text&&(!s||!e.isExternalModuleNameRelative(c.text))){i=e.append(i,c)}}else if(e.isModuleDeclaration(r)){if(e.isAmbientModule(r)&&(s||e.hasModifier(r,2)||t.isDeclarationFile)){var u=e.getTextOfIdentifierOrLiteral(r.name);if(n||s&&!e.isExternalModuleNameRelative(u)){(a||(a=[])).push(r.name)}else if(!s){if(t.isDeclarationFile){(o||(o=[])).push(u)}var l=r.body;if(l){for(var f=0,d=l.statements;f<d.length;f++){var p=d[f];collectModuleReferences(p,true)}}}}}}function collectDynamicImportOrRequireCalls(t){var r=/import|require/g;while(r.exec(t.text)!==null){var n=getNodeAtPosition(t,r.lastIndex);if(e.isRequireCall(n,true)){i=e.append(i,n.arguments[0])}else if(e.isImportCall(n)&&n.arguments.length===1&&e.isStringLiteralLike(n.arguments[0])){i=e.append(i,n.arguments[0])}else if(e.isLiteralImportTypeNode(n)){i=e.append(i,n.argument.literal)}}}function getNodeAtPosition(t,n){var i=t;var a=function(e){if(e.pos<=n&&(n<e.end||n===e.end&&e.kind===1)){return e}};while(true){var o=r&&e.hasJSDocNodes(i)&&e.forEach(i.jsDoc,a)||e.forEachChild(i,a);if(!o){return i}i=o}}}function getLibFileFromReference(t){var r=t.fileName.toLocaleLowerCase();var n=e.libMap.get(r);if(n){return getSourceFile(e.combinePaths(M,n))}}function getSourceFileFromReference(e,t){return getSourceFileFromReferenceWorker(resolveTripleslashReference(t.fileName,e.fileName),function(e){return X.get(toPath(e))})}function getSourceFileFromReferenceWorker(t,r,n,i){if(e.hasExtension(t)){if(!l.allowNonTsExtensions&&!e.forEach(j,function(r){return e.fileExtensionIs(F.getCanonicalFileName(t),r)})){if(n)n(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+B.join("', '")+"'");return undefined}var a=r(t);if(n){if(!a){var o=getProjectReferenceRedirect(t);if(o){n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,o,t)}else{n(e.Diagnostics.File_0_not_found,t)}}else if(i&&F.getCanonicalFileName(t)===F.getCanonicalFileName(i.fileName)){n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself)}}return a}else{var s=l.allowNonTsExtensions&&r(t);if(s)return s;if(n&&l.allowNonTsExtensions){n(e.Diagnostics.File_0_not_found,t);return undefined}var c=e.forEach(B,function(e){return r(t+e)});if(n&&!c)n(e.Diagnostics.File_0_not_found,t+".ts");return c}}function processSourceFile(t,r,n,i,a,o,s){getSourceFileFromReferenceWorker(t,function(e){return findSourceFile(e,toPath(e),r,n,a,o,s,i)},function(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}D.add(a!==undefined&&s!==undefined&&o!==undefined?e.createFileDiagnostic.apply(void 0,[a,o,s-o,t].concat(r)):e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))},a)}function reportFileNamesDifferOnlyInCasingError(t,r,n,i,a){if(n!==undefined&&i!==undefined&&a!==undefined){D.add(e.createFileDiagnostic(n,i,a-i,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}else{D.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}}function createRedirectSourceFile(e,t,r,n,i,a){var o=Object.create(e);o.fileName=r;o.path=n;o.resolvedPath=i;o.originalFileName=a;o.redirectInfo={redirectTarget:e,unredirected:t};O.set(n,N>0);Object.defineProperties(o,{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}}});return o}function findSourceFile(t,r,n,i,a,o,s,c){var u=t;if(X.has(r)){var f=X.get(r);if(f&&l.forceConsistentCasingInFileNames){var d=t;var p=f.fileName;var g=toPath(p)!==toPath(d);if(g){d=getProjectReferenceRedirect(t)||t}if(e.getNormalizedAbsolutePath(p,R)!==e.getNormalizedAbsolutePath(d,R)){reportFileNamesDifferOnlyInCasingError(d,p,a,o,s)}}if(f&&O.get(f.path)&&N===0){O.set(f.path,false);if(!l.noResolve){processReferencedFiles(f,n);processTypeReferenceDirectives(f)}processLibReferenceDirectives(f);A.set(f.path,false);processImportedModules(f)}else if(f&&A.get(f.path)){if(N<k){A.set(f.path,false);processImportedModules(f)}}return f}var y;if(a){var h=getProjectReferenceRedirect(t);if(h){(a.redirectedReferences||(a.redirectedReferences=[])).push(t);t=h;y=toPath(h)}}var v=F.getSourceFile(t,l.target,function(r){if(a!==undefined&&o!==undefined&&s!==undefined){D.add(e.createFileDiagnostic(a,o,s-o,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))}else{D.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))}},ne);if(c){var T=e.packageIdToString(c);var S=H.get(T);if(S){var b=createRedirectSourceFile(S,v,t,r,toPath(t),u);$.add(S.path,t);addFileToFilesByName(b,r,y);Q.set(r,c.name);m.push(b);return b}else if(v){H.set(T,v);Q.set(r,c.name)}}addFileToFilesByName(v,r,y);if(v){O.set(r,N>0);v.path=r;v.resolvedPath=toPath(t);v.originalFileName=u;if(F.useCaseSensitiveFileNames()){var x=r.toLowerCase();var C=Z.get(x);if(C){reportFileNamesDifferOnlyInCasingError(t,C.fileName,a,o,s)}else{Z.set(x,v)}}I=I||v.hasNoDefaultLib&&!i;if(!l.noResolve){processReferencedFiles(v,n);processTypeReferenceDirectives(v)}processLibReferenceDirectives(v);processImportedModules(v);if(n){_.push(v)}else{m.push(v)}}return v}function addFileToFilesByName(e,t,r){X.set(t,e);if(r){X.set(r,e)}}function getProjectReferenceRedirect(t){if(!ee||!ee.length||e.fileExtensionIs(t,".d.ts")||!e.fileExtensionIsOneOf(t,e.supportedTSExtensions)){return undefined}var r=getResolvedProjectReferenceToRedirect(t);if(!r){return undefined}var n=r.commandLine.options.outFile||r.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(t,r.commandLine)}function getResolvedProjectReferenceToRedirect(t){if(re===undefined){re=e.createMap();forEachResolvedProjectReference(function(e,t){if(e&&toPath(l.configFilePath)!==t){e.commandLine.fileNames.forEach(function(e){return re.set(toPath(e),t)})}})}var r=re.get(toPath(t));return r&&getResolvedProjectReferenceByPath(r)}function forEachResolvedProjectReference(e){return forEachProjectReference(d,ee,function(t,r,n){var i=(n?n.commandLine.projectReferences:d)[r];var a=toPath(resolveProjectReferencePath(i));return e(t,a)})}function forEachProjectReference(t,r,n,i){var a;return worker(t,r,undefined,n,i);function worker(t,r,n,i,o){if(o){var s=o(t,n);if(s){return s}}return e.forEach(r,function(t,r){if(e.contains(a,t)){return undefined}var s=i(t,r,n);if(s){return s}if(!t)return undefined;(a||(a=[])).push(t);return worker(t.commandLine.projectReferences,t.references,t,i,o)})}}function getResolvedProjectReferenceByPath(e){if(!te){return undefined}return te.get(e)||undefined}function processReferencedFiles(t,r){e.forEach(t.referencedFiles,function(e){var n=resolveTripleslashReference(e.fileName,t.originalFileName);processSourceFile(n,r,false,undefined,t,e.pos,e.end)})}function processTypeReferenceDirectives(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(!r){return}var n=q(r,t.originalFileName,getResolvedProjectReferenceToRedirect(t.originalFileName));for(var i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i];var o=n[i];var s=a.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o);processTypeReferenceDirective(s,o,t,a.pos,a.end)}}function processTypeReferenceDirective(t,r,n,i,a){var o=E.get(t);if(o&&o.primary){return}var s=true;if(r){if(r.isExternalLibraryImport)N++;if(r.primary){processSourceFile(r.resolvedFileName,false,false,r.packageId,n,i,a)}else{if(o){if(r.resolvedFileName!==o.resolvedFileName){var c=F.readFile(r.resolvedFileName);if(c!==getSourceFile(o.resolvedFileName).text){D.add(createDiagnostic(n,i,a,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,o.resolvedFileName))}}s=false}else{processSourceFile(r.resolvedFileName,false,false,r.packageId,n,i,a)}}if(r.isExternalLibraryImport)N--}else{D.add(createDiagnostic(n,i,a,e.Diagnostics.Cannot_find_type_definition_file_for_0,t))}if(s){E.set(t,r)}}function processLibReferenceDirectives(t){e.forEach(t.libReferenceDirectives,function(r){var n=r.fileName.toLocaleLowerCase();var i=e.libMap.get(n);if(i){processRootFile(e.combinePaths(M,i),true,true)}else{var a=e.removeSuffix(e.removePrefix(n,"lib."),".d.ts");var o=e.getSpellingSuggestion(a,e.libs,e.identity);var s=o?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;D.add(createDiagnostic(t,r.pos,r.end,s,n,o))}})}function createDiagnostic(t,r,n,i){var a=[];for(var o=4;o<arguments.length;o++){a[o-4]=arguments[o]}if(t===undefined||r===undefined||n===undefined){return e.createCompilerDiagnostic.apply(void 0,[i].concat(a))}else{return e.createFileDiagnostic.apply(void 0,[t,r,n-r,i].concat(a))}}function getCanonicalFileName(e){return F.getCanonicalFileName(e)}function processImportedModules(t){collectExternalModuleReferences(t);if(t.imports.length||t.moduleAugmentations.length){var r=getModuleNames(t);var n=resolveModuleNamesReusingOldState(r,e.getNormalizedAbsolutePath(t.originalFileName,R),t);e.Debug.assert(n.length===r.length);for(var i=0;i<r.length;i++){var a=n[i];e.setResolvedModule(t,r[i],a);if(!a){continue}var o=a.isExternalLibraryImport;var s=!e.resolutionExtensionIsTSOrJson(a.extension);var c=o&&s;var u=a.resolvedFileName;if(o){N++}var f=c&&N>k;var d=u&&!getResolutionDiagnostic(l,a)&&!l.noResolve&&i<t.imports.length&&!f&&!(s&&!l.allowJs)&&(e.isInJSFile(t.imports[i])||!(t.imports[i].flags&2097152));if(f){A.set(t.path,true)}else if(d){var p=toPath(u);var g=e.skipTrivia(t.text,t.imports[i].pos);findSourceFile(u,p,false,false,t,g,t.imports[i].end,a.packageId)}if(o){N--}}}else{t.resolvedModules=undefined}}function computeCommonSourceDirectory(t){var r=e.mapDefined(t,function(e){return e.isDeclarationFile?undefined:e.fileName});return computeCommonSourceDirectoryOfFilenames(r,R,getCanonicalFileName)}function checkSourceFilesBelongToPath(t,r){var n=true;var i=F.getCanonicalFileName(e.getNormalizedAbsolutePath(r,R));for(var a=0,o=t;a<o.length;a++){var s=o[a];if(!s.isDeclarationFile){var c=F.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,R));if(c.indexOf(i)!==0){L.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,s.fileName,r));n=false}}}return n}function parseProjectReferenceConfigFile(t){if(!te){te=e.createMap()}var r=resolveProjectReferencePath(t);var n=toPath(r);var i=te.get(n);if(i!==undefined){return i||undefined}var a=e.getNormalizedAbsolutePath(e.getDirectoryPath(r),F.getCurrentDirectory());var o=F.getSourceFile(r,100);addFileToFilesByName(o,n,undefined);if(o===undefined){te.set(n,false);return undefined}o.path=n;o.resolvedPath=n;o.originalFileName=r;var s=e.parseJsonSourceFileConfigFileContent(o,P,a,undefined,r);var c={commandLine:s,sourceFile:o};te.set(n,c);if(s.projectReferences){c.references=s.projectReferences.map(parseProjectReferenceConfigFile)}return c}function verifyCompilerOptions(){if(l.strictPropertyInitialization&&!e.getStrictOptionValue(l,"strictNullChecks")){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks")}if(l.isolatedModules){if(e.getEmitDeclarations(l)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,getEmitDeclarationOptionName(l),"isolatedModules")}if(l.noEmitOnError){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules")}if(l.out){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules")}if(l.outFile){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")}}if(l.inlineSourceMap){if(l.sourceMap){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap")}if(l.mapRoot){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")}}if(l.paths&&l.baseUrl===undefined){createDiagnosticForOptionName(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths")}if(l.composite){if(l.declaration===false){createDiagnosticForOptionName(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration")}}verifyProjectReferences();if(l.composite){var t=y.filter(function(e){return!e.isDeclarationFile});if(u.length<t.length){var r=u.map(function(t){return e.normalizePath(t).toLowerCase()});for(var n=0,i=t.map(function(t){return e.normalizePath(t.path).toLowerCase()});n<i.length;n++){var a=i[n];if(r.indexOf(a)===-1){L.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern,a))}}}}if(l.paths){for(var o in l.paths){if(!e.hasProperty(l.paths,o)){continue}if(!e.hasZeroOrOneAsteriskCharacter(o)){createDiagnosticForOptionPaths(true,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o)}if(e.isArray(l.paths[o])){var s=l.paths[o].length;if(s===0){createDiagnosticForOptionPaths(false,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o)}for(var c=0;c<s;c++){var f=l.paths[o][c];var d=typeof f;if(d==="string"){if(!e.hasZeroOrOneAsteriskCharacter(f)){createDiagnosticForOptionPathKeyValue(o,c,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,f,o)}}else{createDiagnosticForOptionPathKeyValue(o,c,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,f,o,d)}}}else{createDiagnosticForOptionPaths(false,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o)}}}if(!l.sourceMap&&!l.inlineSourceMap){if(l.inlineSources){createDiagnosticForOptionName(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources")}if(l.sourceRoot){createDiagnosticForOptionName(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")}}if(l.out&&l.outFile){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile")}if(l.mapRoot&&!(l.sourceMap||l.declarationMap)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap")}if(l.declarationDir){if(!e.getEmitDeclarations(l)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite")}if(l.out||l.outFile){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",l.out?"out":"outFile")}}if(l.declarationMap&&!e.getEmitDeclarations(l)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite")}if(l.lib&&l.noLib){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib")}if(l.noImplicitUseStrict&&e.getStrictOptionValue(l,"alwaysStrict")){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict")}var p=l.target||0;var g=l.outFile||l.out;var _=e.find(y,function(t){return e.isExternalModule(t)&&!t.isDeclarationFile});if(l.isolatedModules){if(l.module===e.ModuleKind.None&&p<2){createDiagnosticForOptionName(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target")}var m=e.find(y,function(t){return!e.isExternalModule(t)&&!t.isDeclarationFile&&t.scriptKind!==6});if(m){var h=e.getErrorSpanForNode(m,m);L.add(e.createFileDiagnostic(m,h.start,h.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(_&&p<2&&l.module===e.ModuleKind.None){var h=e.getErrorSpanForNode(_,_.externalModuleIndicator);L.add(e.createFileDiagnostic(_,h.start,h.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(g&&!l.emitDeclarationOnly){if(l.module&&!(l.module===e.ModuleKind.AMD||l.module===e.ModuleKind.System)){createDiagnosticForOptionName(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,l.out?"out":"outFile","module")}else if(l.module===undefined&&_){var h=e.getErrorSpanForNode(_,_.externalModuleIndicator);L.add(e.createFileDiagnostic(_,h.start,h.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,l.out?"out":"outFile"))}}if(l.resolveJsonModule){if(e.getEmitModuleResolutionKind(l)!==e.ModuleResolutionKind.NodeJs){createDiagnosticForOptionName(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule")}else if(!e.hasJsonModuleEmitEnabled(l)){createDiagnosticForOptionName(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")}}if(l.outDir||l.sourceRoot||l.mapRoot){var v=getCommonSourceDirectory();if(l.outDir&&v===""&&y.some(function(t){return e.getRootLength(t.fileName)>1})){createDiagnosticForOptionName(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}}if(!l.noEmit&&l.allowJs&&e.getEmitDeclarations(l)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",getEmitDeclarationOptionName(l))}if(l.checkJs&&!l.allowJs){L.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"))}if(l.emitDeclarationOnly){if(!e.getEmitDeclarations(l)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")}if(l.noEmit){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")}}if(l.emitDecoratorMetadata&&!l.experimentalDecorators){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")}if(l.jsxFactory){if(l.reactNamespace){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")}if(!e.parseIsolatedEntityName(l.jsxFactory,p)){createOptionValueDiagnostic("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,l.jsxFactory)}}else if(l.reactNamespace&&!e.isIdentifierText(l.reactNamespace,p)){createOptionValueDiagnostic("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,l.reactNamespace)}if(!l.noEmit&&!l.suppressOutputPathCheck){var T=getEmitHost();var S=e.createMap();e.forEachEmittedFile(T,function(e){if(!l.emitDeclarationOnly){verifyEmitFilePath(e.jsFilePath,S)}verifyEmitFilePath(e.declarationFilePath,S)})}function verifyEmitFilePath(t,r){if(t){var n=toPath(t);if(X.has(n)){var i;if(!l.configFilePath){i=e.chainDiagnosticMessages(undefined,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)}i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t);blockEmittingOfFile(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=!F.useCaseSensitiveFileNames()?n.toLocaleLowerCase():n;if(r.has(a)){blockEmittingOfFile(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t))}else{r.set(a,true)}}}}function verifyProjectReferences(){forEachProjectReference(d,ee,function(t,r,n){var i=(n?n.commandLine.projectReferences:d)[r];var a=n&&n.sourceFile;if(!t){createDiagnosticForReference(a,r,e.Diagnostics.File_0_not_found,i.path);return}var o=t.commandLine.options;if(!o.composite){var s=n?n.commandLine.fileNames:u;if(s.length){createDiagnosticForReference(a,r,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path)}}if(i.prepend){var c=o.outFile||o.out;if(c){if(!F.fileExists(c)){createDiagnosticForReference(a,r,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,i.path)}}else{createDiagnosticForReference(a,r,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}}})}function createDiagnosticForOptionPathKeyValue(t,r,n,i,a,o){var s=true;var c=getOptionPathsSyntax();for(var u=0,f=c;u<f.length;u++){var d=f[u];if(e.isObjectLiteralExpression(d.initializer)){for(var p=0,g=e.getPropertyAssignment(d.initializer,t);p<g.length;p++){var _=g[p];var m=_.initializer;if(e.isArrayLiteralExpression(m)&&m.elements.length>r){L.add(e.createDiagnosticForNodeInSourceFile(l.configFile,m.elements[r],n,i,a,o));s=false}}}}if(s){L.add(e.createCompilerDiagnostic(n,i,a,o))}}function createDiagnosticForOptionPaths(t,r,n,i){var a=true;var o=getOptionPathsSyntax();for(var s=0,c=o;s<c.length;s++){var u=c[s];if(e.isObjectLiteralExpression(u.initializer)&&createOptionDiagnosticInObjectLiteralSyntax(u.initializer,t,r,undefined,n,i)){a=false}}if(a){L.add(e.createCompilerDiagnostic(n,i))}}function getOptionsSyntaxByName(t){var r=getCompilerOptionsObjectLiteralSyntax();if(r){return e.getPropertyAssignment(r,t)}return undefined}function getOptionPathsSyntax(){return getOptionsSyntaxByName("paths")||e.emptyArray}function createDiagnosticForOptionName(e,t,r,n){createDiagnosticForOption(true,t,r,e,t,r,n)}function createOptionValueDiagnostic(e,t,r){createDiagnosticForOption(false,e,undefined,t,r)}function createDiagnosticForReference(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||l.configFile,"references"),function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:undefined});if(o&&o.elements.length>r){L.add(e.createDiagnosticForNodeInSourceFile(t||l.configFile,o.elements[r],n,i,a))}else{L.add(e.createCompilerDiagnostic(n,i,a))}}function createDiagnosticForOption(t,r,n,i,a,o,s){var c=getCompilerOptionsObjectLiteralSyntax();var u=!c||!createOptionDiagnosticInObjectLiteralSyntax(c,t,r,n,i,a,o,s);if(u){L.add(e.createCompilerDiagnostic(i,a,o,s))}}function getCompilerOptionsObjectLiteralSyntax(){if(W===undefined){W=null;var t=e.getTsConfigObjectLiteralExpression(l.configFile);if(t){for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){W=i.initializer;break}}}}return W}function createOptionDiagnosticInObjectLiteralSyntax(t,r,n,i,a,o,s,c){var u=e.getPropertyAssignment(t,n,i);for(var f=0,d=u;f<d.length;f++){var p=d[f];L.add(e.createDiagnosticForNodeInSourceFile(l.configFile,r?p.name:p.initializer,a,o,s,c))}return!!u.length}function blockEmittingOfFile(e,t){J.set(toPath(e),true);L.add(t)}function isEmittedFile(t){if(l.noEmit){return false}var r=toPath(t);if(getSourceFileByPath(r)){return false}var n=l.outFile||l.out;if(n){return isSameFile(r,n)||isSameFile(r,e.removeFileExtension(n)+".d.ts")}if(l.declarationDir&&e.containsPath(l.declarationDir,r,R,!F.useCaseSensitiveFileNames())){return true}if(l.outDir){return e.containsPath(l.outDir,r,R,!F.useCaseSensitiveFileNames())}if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!getSourceFileByPath(i+".ts")||!!getSourceFileByPath(i+".tsx")}return false}function isSameFile(t,r){return e.comparePaths(t,r,R,!F.useCaseSensitiveFileNames())===0}}e.createProgram=createProgram;function parseConfigHostFromCompilerHost(t){return{fileExists:function(e){return t.fileExists(e)},readDirectory:function(r,n,i,a,o){e.Debug.assertDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'");return t.readDirectory(r,n,i,a,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:function(){return undefined},trace:t.trace?function(e){return t.trace(e)}:undefined}}e.parseConfigHostFromCompilerHost=parseConfigHostFromCompilerHost;function resolveProjectReferencePath(t,r){var n=r?r:t;return e.resolveConfigFileProjectName(n.path)}e.resolveProjectReferencePath=resolveProjectReferencePath;function getEmitDeclarationOptionName(e){return e.declaration?"declaration":"composite"}function getResolutionDiagnostic(t,r){var n=r.extension;switch(n){case".ts":case".d.ts":return undefined;case".tsx":return needJsx();case".jsx":return needJsx()||needAllowJs();case".js":return needAllowJs();case".json":return needResolveJsonModule()}function needJsx(){return t.jsx?undefined:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function needAllowJs(){return t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?undefined:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function needResolveJsonModule(){return t.resolveJsonModule?undefined:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=getResolutionDiagnostic;function getModuleNames(e){var t=e.imports,r=e.moduleAugmentations;var n=t.map(function(e){return e.text});for(var i=0,a=r;i<a.length;i++){var o=a[i];if(o.kind===10){n.push(o.text)}}return n}})(s||(s={}));var s;(function(e){function getFileEmitOutput(e,t,r,n,i){var a=[];var o=e.emit(t,writeFile,n,r,i);return{outputFiles:a,emitSkipped:o.emitSkipped,exportedModulesFromDeclarationEmit:o.exportedModulesFromDeclarationEmit};function writeFile(e,t,r){a.push({name:e,writeByteOrderMark:r,text:t})}}e.getFileEmitOutput=getFileEmitOutput})(s||(s={}));(function(e){var t;(function(t){function getReferencedFileFromImportedModuleSymbol(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function getReferencedFileFromImportLiteral(e,t){var r=e.getSymbolAtLocation(t);return r&&getReferencedFileFromImportedModuleSymbol(r)}function getReferencedFileFromFileName(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function getReferencedFiles(t,r,n){var i;if(r.imports&&r.imports.length>0){var a=t.getTypeChecker();for(var o=0,s=r.imports;o<s.length;o++){var c=s[o];var u=getReferencedFileFromImportLiteral(a,c);if(u){addReferencedFile(u)}}}var l=e.getDirectoryPath(r.path);if(r.referencedFiles&&r.referencedFiles.length>0){for(var f=0,d=r.referencedFiles;f<d.length;f++){var p=d[f];var g=getReferencedFileFromFileName(t,p.fileName,l,n);addReferencedFile(g)}}if(r.resolvedTypeReferenceDirectiveNames){r.resolvedTypeReferenceDirectiveNames.forEach(function(e){if(!e){return}var r=e.resolvedFileName;var i=getReferencedFileFromFileName(t,r,l,n);addReferencedFile(i)})}if(r.moduleAugmentations.length){var a=t.getTypeChecker();for(var _=0,m=r.moduleAugmentations;_<m.length;_++){var y=m[_];if(!e.isStringLiteral(y)){continue}var h=a.getSymbolAtLocation(y);if(!h){continue}addReferenceFromAmbientModule(h)}}for(var v=0,T=t.getTypeChecker().getAmbientModules();v<T.length;v++){var S=T[v];if(S.declarations.length>1){addReferenceFromAmbientModule(S)}}return i;function addReferenceFromAmbientModule(t){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];var o=e.getSourceFileOfNode(a);if(o&&o!==r){addReferencedFile(o.resolvedPath)}}}function addReferencedFile(t){if(!i){i=e.createMap()}i.set(t,true)}}function canReuseOldState(e,t){return t&&!t.referencedMap===!e}t.canReuseOldState=canReuseOldState;function create(t,r,n){var i=e.createMap();var a=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():undefined;var o=a?e.createMap():undefined;var s=e.createMap();var c=canReuseOldState(a,n);for(var u=0,l=t.getSourceFiles();u<l.length;u++){var f=l[u];var d=f.version;var p=c?n.fileInfos.get(f.path):undefined;if(a){var g=getReferencedFiles(t,f,r);if(g){a.set(f.path,g)}if(c){var _=n.exportedModulesMap.get(f.path);if(_){o.set(f.path,_)}}}i.set(f.path,{version:d,signature:p&&p.signature})}return{fileInfos:i,referencedMap:a,exportedModulesMap:o,hasCalledUpdateShapeSignature:s,allFilesExcludingDefaultLibraryFile:undefined,allFileNames:undefined}}t.create=create;function getFilesAffectedBy(t,r,n,i,a,o,s){var c=o||e.createMap();var u=r.getSourceFileByPath(n);if(!u){return e.emptyArray}if(!updateShapeSignature(t,r,u,c,i,a,s)){return[u]}var l=(t.referencedMap?getFilesAffectedByUpdatedShapeWhenModuleEmit:getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(t,r,u,c,i,a,s);if(!o){updateSignaturesFromCache(t,c)}return l}t.getFilesAffectedBy=getFilesAffectedBy;function updateSignaturesFromCache(e,t){t.forEach(function(t,r){e.fileInfos.get(r).signature=t;e.hasCalledUpdateShapeSignature.set(r,true)})}t.updateSignaturesFromCache=updateSignaturesFromCache;function updateShapeSignature(t,r,n,i,a,o,s){e.Debug.assert(!!n);e.Debug.assert(!s||!!t.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state");if(t.hasCalledUpdateShapeSignature.has(n.path)||i.has(n.path)){return false}var c=t.fileInfos.get(n.path);if(!c)return e.Debug.fail();var u=c.signature;var l;if(n.isDeclarationFile){l=n.version;if(s&&l!==u){var f=t.referencedMap?t.referencedMap.get(n.path):undefined;s.set(n.path,f||false)}}else{var d=e.getFileEmitOutput(r,n,true,a);if(d.outputFiles&&d.outputFiles.length>0){l=o(d.outputFiles[0].text);if(s&&l!==u){updateExportedModules(n,d.exportedModulesFromDeclarationEmit,s)}}else{l=u}}i.set(n.path,l);return!u||l!==u}function updateExportedModules(t,r,n){if(!r){n.set(t.path,false);return}var i;r.forEach(function(e){return addExportedModule(getReferencedFileFromImportedModuleSymbol(e))});n.set(t.path,i||false);function addExportedModule(t){if(t){if(!i){i=e.createMap()}i.set(t,true)}}}function updateExportedFilesMapFromCache(t,r){if(r){e.Debug.assert(!!t.exportedModulesMap);r.forEach(function(e,r){if(e){t.exportedModulesMap.set(r,e)}else{t.exportedModulesMap.delete(r)}})}}t.updateExportedFilesMapFromCache=updateExportedFilesMapFromCache;function getAllDependencies(t,r,n){var i;var a=r.getCompilerOptions();if(a.outFile||a.out){return getAllFileNames(t,r)}if(!t.referencedMap||isFileAffectingGlobalScope(n)){return getAllFileNames(t,r)}var o=e.createMap();var s=[n.path];while(s.length){var c=s.pop();if(!o.has(c)){o.set(c,true);var u=t.referencedMap.get(c);if(u){var l=u.keys();for(var f=l.next(),d=f.value,p=f.done;!p;i=l.next(),d=i.value,p=i.done,i){s.push(d)}}}}return e.arrayFrom(e.mapDefinedIterator(o.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}t.getAllDependencies=getAllDependencies;function getAllFileNames(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function getReferencedByPaths(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0],n=e[1];return n.has(r)?t:undefined}))}function containsOnlyAmbientModules(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i)){return false}}return true}function containsGlobalScopeAugmentation(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}function isFileAffectingGlobalScope(t){return containsGlobalScopeAugmentation(t)||!e.isExternalModule(t)&&!containsOnlyAmbientModules(t)}function getAllFilesExcludingDefaultLibraryFile(t,r,n){if(t.allFilesExcludingDefaultLibraryFile){return t.allFilesExcludingDefaultLibraryFile}var i;addSourceFile(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];if(s!==n){addSourceFile(s)}}t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray;return t.allFilesExcludingDefaultLibraryFile;function addSourceFile(e){if(!r.isSourceFileDefaultLibrary(e)){(i||(i=[])).push(e)}}}function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(e,t,r){var n=t.getCompilerOptions();if(n&&(n.out||n.outFile)){return[r]}return getAllFilesExcludingDefaultLibraryFile(e,t,r)}function getFilesAffectedByUpdatedShapeWhenModuleEmit(t,r,n,i,a,o,s){if(isFileAffectingGlobalScope(n)){return getAllFilesExcludingDefaultLibraryFile(t,r,n)}var c=r.getCompilerOptions();if(c&&(c.isolatedModules||c.out||c.outFile)){return[n]}var u=e.createMap();u.set(n.path,n);var l=getReferencedByPaths(t,n.path);while(l.length>0){var f=l.pop();if(!u.has(f)){var d=r.getSourceFileByPath(f);u.set(f,d);if(d&&updateShapeSignature(t,r,d,i,a,o,s)){l.push.apply(l,getReferencedByPaths(t,f))}}}return e.arrayFrom(e.mapDefinedIterator(u.values(),function(e){return e}))}})(t=e.BuilderState||(e.BuilderState={}))})(s||(s={}));var s;(function(e){function hasSameKeys(t,r){return t===r||t!==undefined&&r!==undefined&&t.size===r.size&&!e.forEachKey(t,function(e){return!r.has(e)})}function createBuilderProgramState(t,r,n){var i=e.BuilderState.create(t,r,n);i.program=t;var a=t.getCompilerOptions();if(!a.outFile&&!a.out){i.semanticDiagnosticsPerFile=e.createMap()}i.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(i.referencedMap,n);var s=o?n.program.getCompilerOptions():undefined;var c=o&&n.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(a,s);if(o){if(!n.currentChangedFilePath){e.Debug.assert(!n.affectedFiles&&(!n.currentAffectedFilesSignatures||!n.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}if(c){e.Debug.assert(!e.forEachKey(n.changedFilesSet,function(e){return n.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files")}e.copyEntries(n.changedFilesSet,i.changedFilesSet)}var u=i.referencedMap;var l=o?n.referencedMap:undefined;var f=c&&!a.skipLibCheck===!s.skipLibCheck;var d=f&&!a.skipDefaultLibCheck===!s.skipDefaultLibCheck;i.fileInfos.forEach(function(t,r){var a;var s;if(!o||!(a=n.fileInfos.get(r))||a.version!==t.version||!hasSameKeys(s=u&&u.get(r),l&&l.get(r))||s&&e.forEachKey(s,function(e){return!i.fileInfos.has(e)&&n.fileInfos.has(e)})){i.changedFilesSet.set(r,true)}else if(c){var p=i.program.getSourceFileByPath(r);if(p.isDeclarationFile&&!f){return}if(p.hasNoDefaultLib&&!d){return}var g=n.semanticDiagnosticsPerFile.get(r);if(g){i.semanticDiagnosticsPerFile.set(r,g);if(!i.semanticDiagnosticsFromOldState){i.semanticDiagnosticsFromOldState=e.createMap()}i.semanticDiagnosticsFromOldState.set(r,true)}}});return i}function assertSourceFileOkWithoutNextAffectedCall(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function getNextAffectedFile(t,r,n){while(true){var i=t.affectedFiles;if(i){var a=t.seenAffectedFiles;var o=t.affectedFilesIndex;while(o<i.length){var s=i[o];if(!a.has(s.path)){t.affectedFilesIndex=o;cleanSemanticDiagnosticsOfAffectedFile(t,s);return s}a.set(s.path,true);o++}t.changedFilesSet.delete(t.currentChangedFilePath);t.currentChangedFilePath=undefined;e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures);t.currentAffectedFilesSignatures.clear();e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap);t.affectedFiles=undefined}var c=t.changedFilesSet.keys().next();if(c.done){return undefined}var u=t.program.getCompilerOptions();if(u.outFile||u.out){e.Debug.assert(!t.semanticDiagnosticsPerFile);return t.program}t.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures||e.createMap();if(t.exportedModulesMap){t.currentAffectedFilesExportedModulesMap=t.currentAffectedFilesExportedModulesMap||e.createMap()}t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,t.program,c.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap);t.currentChangedFilePath=c.value;t.affectedFilesIndex=0;t.seenAffectedFiles=t.seenAffectedFiles||e.createMap()}}function cleanSemanticDiagnosticsOfAffectedFile(t,r){if(removeSemanticDiagnosticsOf(t,r.path)){return}if(t.allFilesExcludingDefaultLibraryFile===t.affectedFiles&&!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=true;var n=t.program.getCompilerOptions();if(e.forEach(t.program.getSourceFiles(),function(r){return t.program.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,n)&&removeSemanticDiagnosticsOf(t,r.path)})){return}}if(!t.exportedModulesMap||t.affectedFiles.length===1||!t.changedFilesSet.has(r.path)){return}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var i=e.createMap();if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,n){return e&&e.has(r.path)&&removeSemanticDiagnosticsOfFilesReferencingPath(t,n,i)})){return}e.forEachEntry(t.exportedModulesMap,function(e,n){return!t.currentAffectedFilesExportedModulesMap.has(n)&&e.has(r.path)&&removeSemanticDiagnosticsOfFilesReferencingPath(t,n,i)})}function removeSemanticDiagnosticsOfFilesReferencingPath(t,r,n){return e.forEachEntry(t.referencedMap,function(e,i){return e.has(r)&&removeSemanticDiagnosticsOfFileAndExportsOfFile(t,i,n)})}function removeSemanticDiagnosticsOfFileAndExportsOfFile(t,r,n){if(!e.addToSeen(n,r)){return false}if(removeSemanticDiagnosticsOf(t,r)){return true}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);if(e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,i){return e&&e.has(r)&&removeSemanticDiagnosticsOfFileAndExportsOfFile(t,i,n)})){return true}return!!e.forEachEntry(t.exportedModulesMap,function(e,i){return!t.currentAffectedFilesExportedModulesMap.has(i)&&e.has(r)&&removeSemanticDiagnosticsOfFileAndExportsOfFile(t,i,n)})}function removeSemanticDiagnosticsOf(e,t){if(!e.semanticDiagnosticsFromOldState){return true}e.semanticDiagnosticsFromOldState.delete(t);e.semanticDiagnosticsPerFile.delete(t);return!e.semanticDiagnosticsFromOldState.size}function doneWithAffectedFile(e,t){if(t===e.program){e.changedFilesSet.clear()}else{e.seenAffectedFiles.set(t.path,true);e.affectedFilesIndex++}}function toAffectedFileResult(e,t,r){doneWithAffectedFile(e,r);return{result:t,affected:r}}function getSemanticDiagnosticsOfFile(e,t,r){var n=t.path;var i=e.semanticDiagnosticsPerFile.get(n);if(i){return i}var a=e.program.getSemanticDiagnostics(t,r);e.semanticDiagnosticsPerFile.set(n,a);return a}var t;(function(e){e[e["SemanticDiagnosticsBuilderProgram"]=0]="SemanticDiagnosticsBuilderProgram";e[e["EmitAndSemanticDiagnosticsBuilderProgram"]=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(t=e.BuilderProgramKind||(e.BuilderProgramKind={}));function getBuilderCreationParameters(t,r,n,i,a,o){var s;var c;var u;if(t===undefined){e.Debug.assert(r===undefined);s=n;u=i;e.Debug.assert(!!u);c=u.getProgram()}else if(e.isArray(t)){u=i;c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:u&&u.getProgram(),configFileParsingDiagnostics:a,projectReferences:o});s=n}else{c=t;s=r;u=n;a=i}return{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}}e.getBuilderCreationParameters=getBuilderCreationParameters;function createBuilderProgram(r,n){var i=n.newProgram,a=n.host,o=n.oldProgram,s=n.configFileParsingDiagnostics;var c=o&&o.getState();if(c&&i===c.program&&s===i.getConfigFileParsingDiagnostics()){i=undefined;c=undefined;return o}var u=e.createGetCanonicalFileName(a.useCaseSensitiveFileNames());var l=a.createHash||e.identity;var f=createBuilderProgramState(i,u,c);i=undefined;o=undefined;c=undefined;var d={getState:function(){return f},getProgram:function(){return f.program},getCompilerOptions:function(){return f.program.getCompilerOptions()},getSourceFile:function(e){return f.program.getSourceFile(e)},getSourceFiles:function(){return f.program.getSourceFiles()},getOptionsDiagnostics:function(e){return f.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return f.program.getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return s||f.program.getConfigFileParsingDiagnostics()},getSyntacticDiagnostics:function(e,t){return f.program.getSyntacticDiagnostics(e,t)},getSemanticDiagnostics:getSemanticDiagnostics,emit:emit,getAllDependencies:function(t){return e.BuilderState.getAllDependencies(f,f.program,t)},getCurrentDirectory:function(){return f.program.getCurrentDirectory()}};if(r===t.SemanticDiagnosticsBuilderProgram){d.getSemanticDiagnosticsOfNextAffectedFile=getSemanticDiagnosticsOfNextAffectedFile}else if(r===t.EmitAndSemanticDiagnosticsBuilderProgram){d.emitNextAffectedFile=emitNextAffectedFile}else{e.notImplemented()}return d;function emitNextAffectedFile(e,t,r,n){var i=getNextAffectedFile(f,t,l);if(!i){return undefined}return toAffectedFileResult(f,f.program.emit(i===f.program?undefined:i,e||a.writeFile,t,r,n),i)}function emit(n,i,o,s,c){if(r===t.EmitAndSemanticDiagnosticsBuilderProgram){assertSourceFileOkWithoutNextAffectedCall(f,n);if(!n){var u=[];var l=false;var d=void 0;var p=[];var g=void 0;while(g=emitNextAffectedFile(i,o,s,c)){l=l||g.result.emitSkipped;d=e.addRange(d,g.result.diagnostics);p=e.addRange(p,g.result.emittedFiles);u=e.addRange(u,g.result.sourceMaps)}return{emitSkipped:l,diagnostics:d||e.emptyArray,emittedFiles:p,sourceMaps:u}}}return f.program.emit(n,i||a.writeFile,o,s,c)}function getSemanticDiagnosticsOfNextAffectedFile(e,t){while(true){var r=getNextAffectedFile(f,e,l);if(!r){return undefined}else if(r===f.program){return toAffectedFileResult(f,f.program.getSemanticDiagnostics(undefined,e),r)}if(t&&t(r)){doneWithAffectedFile(f,r);continue}return toAffectedFileResult(f,getSemanticDiagnosticsOfFile(f,r,e),r)}}function getSemanticDiagnostics(n,i){assertSourceFileOkWithoutNextAffectedCall(f,n);var a=f.program.getCompilerOptions();if(a.outFile||a.out){e.Debug.assert(!f.semanticDiagnosticsPerFile);return f.program.getSemanticDiagnostics(n,i)}if(n){return getSemanticDiagnosticsOfFile(f,n,i)}if(r===t.SemanticDiagnosticsBuilderProgram){var o=void 0;while(o=getNextAffectedFile(f,i,l)){doneWithAffectedFile(f,o)}}var s;for(var c=0,u=f.program.getSourceFiles();c<u.length;c++){var d=u[c];s=e.addRange(s,getSemanticDiagnosticsOfFile(f,d,i))}return s||e.emptyArray}}e.createBuilderProgram=createBuilderProgram})(s||(s={}));(function(e){function createSemanticDiagnosticsBuilderProgram(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))}e.createSemanticDiagnosticsBuilderProgram=createSemanticDiagnosticsBuilderProgram;function createEmitAndSemanticDiagnosticsBuilderProgram(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))}e.createEmitAndSemanticDiagnosticsBuilderProgram=createEmitAndSemanticDiagnosticsBuilderProgram;function createAbstractBuilder(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o).newProgram;return{getProgram:function(){return s},getState:e.notImplemented,getCompilerOptions:e.notImplemented,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented}}e.createAbstractBuilder=createAbstractBuilder})(s||(s={}));var s;(function(e){function isPathInNodeModulesStartingWithDot(t){return e.stringContains(t,"/node_modules/.")}e.isPathInNodeModulesStartingWithDot=isPathInNodeModulesStartingWithDot;e.maxNumberOfFilesToIterateForInvalidation=256;function createResolutionCache(t,r,n){var i;var a;var o;var s=false;var c=e.createMultiMap();var u=e.memoize(function(){return t.getCurrentDirectory()});var l=t.getCachedDirectoryStructureHost();var f=e.createMap();var d=e.createCacheWithRedirects();var p=e.createCacheWithRedirects();var g=e.createModuleResolutionCacheWithMaps(d,p,u(),t.getCanonicalFileName);var _=e.createMap();var m=e.createCacheWithRedirects();var y=[".ts",".tsx",".js",".jsx",".json"];var h=e.createMap();var v=e.createMap();var T=r&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(r,u()));var S=T&&t.toPath(T);var b=e.createMap();return{startRecordingFilesWithChangedResolutions:startRecordingFilesWithChangedResolutions,finishRecordingFilesWithChangedResolutions:finishRecordingFilesWithChangedResolutions,startCachingPerDirectoryResolution:clearPerDirectoryResolutions,finishCachingPerDirectoryResolution:finishCachingPerDirectoryResolution,resolveModuleNames:resolveModuleNames,getResolvedModuleWithFailedLookupLocationsFromCache:getResolvedModuleWithFailedLookupLocationsFromCache,resolveTypeReferenceDirectives:resolveTypeReferenceDirectives,removeResolutionsFromProjectReferenceRedirects:removeResolutionsFromProjectReferenceRedirects,removeResolutionsOfFile:removeResolutionsOfFile,invalidateResolutionOfFile:invalidateResolutionOfFile,setFilesWithInvalidatedNonRelativeUnresolvedImports:setFilesWithInvalidatedNonRelativeUnresolvedImports,createHasInvalidatedResolution:createHasInvalidatedResolution,updateTypeRootsWatch:updateTypeRootsWatch,closeTypeRootsWatch:closeTypeRootsWatch,clear:clear};function getResolvedModule(e){return e.resolvedModule}function getResolvedTypeReferenceDirective(e){return e.resolvedTypeReferenceDirective}function isInDirectoryPath(t,r){if(t===undefined||r.length<=t.length){return false}return e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function clear(){e.clearMap(v,e.closeFileWatcherOf);h.clear();c.clear();closeTypeRootsWatch();f.clear();_.clear();s=false;clearPerDirectoryResolutions()}function startRecordingFilesWithChangedResolutions(){i=[]}function finishRecordingFilesWithChangedResolutions(){var e=i;i=undefined;return e}function isFileWithInvalidatedNonRelativeUnresolvedImports(e){if(!o){return false}var t=o.get(e);return!!t&&!!t.length}function createHasInvalidatedResolution(t){if(s||t){a=undefined;return e.returnTrue}var r=a;a=undefined;return function(e){return!!r&&r.has(e)||isFileWithInvalidatedNonRelativeUnresolvedImports(e)}}function clearPerDirectoryResolutions(){d.clear();p.clear();m.clear();c.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);c.clear()}function finishCachingPerDirectoryResolution(){s=false;o=undefined;clearPerDirectoryResolutions();v.forEach(function(e,t){if(e.refCount===0){v.delete(t);e.watcher.close()}})}function resolveModuleName(r,n,i,a,o){var s=e.resolveModuleName(r,n,i,a,g,o);if(!t.getGlobalCache){return s}var c=t.getGlobalCache();if(c!==undefined&&!e.isExternalModuleNameRelative(r)&&!(s.resolvedModule&&e.extensionIsTS(s.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(r,t.projectName,i,a,c),l=u.resolvedModule,f=u.failedLookupLocations;if(l){return{resolvedModule:l,failedLookupLocations:e.addRange(s.failedLookupLocations,f)}}}return s}function resolveNamesWithLocalCache(r,n,a,o,c,u,l,f,d,p){var g=t.toPath(n);var _=o.get(g)||o.set(g,e.createMap()).get(g);var m=e.getDirectoryPath(g);var y=c.getOrCreateMapOfCacheRedirects(a);var h=y.get(m);if(!h){h=e.createMap();y.set(m,h)}var v=[];var T=t.getCompilationSettings();var S=p&&isFileWithInvalidatedNonRelativeUnresolvedImports(g);var b=t.getCurrentProgram();var x=b&&b.getResolvedProjectReferenceToRedirect(n);var C=x?!a||a.sourceFile.path!==x.sourceFile.path:!!a;var E=e.createMap();for(var D=0,k=r;D<k.length;D++){var N=k[D];var A=_.get(N);if(!E.has(N)&&s||C||!A||A.isInvalidated||S&&!e.isExternalModuleNameRelative(N)&&f(A)){var O=A;var F=h.get(N);if(F){A=F}else{A=u(N,n,T,t,a);h.set(N,A)}_.set(N,A);watchFailedLookupLocationsOfExternalModuleResolutions(N,A);if(O){stopWatchFailedLookupLocationOfResolution(O)}if(p&&i&&!resolutionIsEqualTo(O,A)){i.push(g);p=false}}e.Debug.assert(A!==undefined&&!A.isInvalidated);E.set(N,true);v.push(l(A))}_.forEach(function(t,r){if(!E.has(r)&&!e.contains(d,r)){stopWatchFailedLookupLocationOfResolution(t);_.delete(r)}});return v;function resolutionIsEqualTo(e,t){if(e===t){return true}if(!e||!t){return false}var r=l(e);var n=l(t);if(r===n){return true}if(!r||!n){return false}return r.resolvedFileName===n.resolvedFileName}}function resolveTypeReferenceDirectives(t,r,n){return resolveNamesWithLocalCache(t,r,n,_,m,e.resolveTypeReferenceDirective,getResolvedTypeReferenceDirective,function(e){return e.resolvedTypeReferenceDirective===undefined},undefined,false)}function resolveModuleNames(t,r,i,a){return resolveNamesWithLocalCache(t,r,a,f,d,resolveModuleName,getResolvedModule,function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},i,n)}function getResolvedModuleWithFailedLookupLocationsFromCache(e,r){var n=f.get(t.toPath(r));return n&&n.get(e)}function isNodeModulesDirectory(t){return e.endsWith(t,"/node_modules")}function isNodeModulesAtTypesDirectory(t){return e.endsWith(t,"/node_modules/@types")}function canWatchDirectory(t){var r=e.getRootLength(t);if(t.length===r){return false}var n=t.indexOf(e.directorySeparator,r);if(n===-1){return false}if(t.charCodeAt(0)!==47&&t.substr(r,n).search(/users/i)===-1){return true}for(var i=n+1,a=2;a>0;a--){i=t.indexOf(e.directorySeparator,i)+1;if(i===0){return false}}return true}function getDirectoryToWatchFailedLookupLocation(t,r){if(isInDirectoryPath(S,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,u());e.Debug.assert(t.length===r.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r);var n=r.indexOf(e.directorySeparator,S.length+1);if(n!==-1){return{dir:t.substr(0,n),dirPath:r.substr(0,n)}}else{return{dir:T,dirPath:S,nonRecursive:false}}}return getDirectoryToWatchFromFailedLookupLocationDirectory(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,u())),e.getDirectoryPath(r))}function getDirectoryToWatchFromFailedLookupLocationDirectory(t,r){while(e.pathContainsNodeModules(r)){t=e.getDirectoryPath(t);r=e.getDirectoryPath(r)}if(isNodeModulesDirectory(r)){return canWatchDirectory(e.getDirectoryPath(r))?{dir:t,dirPath:r}:undefined}var n=true;var i,a;if(S!==undefined){while(!isInDirectoryPath(r,S)){var o=e.getDirectoryPath(r);if(o===r){break}n=false;i=r;a=t;r=o;t=e.getDirectoryPath(t)}}return canWatchDirectory(r)?{dir:a||t,dirPath:i||r,nonRecursive:n}:undefined}function isPathWithDefaultFailedLookupExtension(t){return e.fileExtensionIsOneOf(t,y)}function watchFailedLookupLocationsOfExternalModuleResolutions(t,r){if(r.failedLookupLocations&&r.failedLookupLocations.length){if(r.refCount){r.refCount++}else{r.refCount=1;if(e.isExternalModuleNameRelative(t)){watchFailedLookupLocationOfResolution(r)}else{c.add(t,r)}}}}function watchFailedLookupLocationOfResolution(r){e.Debug.assert(!!r.refCount);var n=r.failedLookupLocations;var i=false;for(var a=0,o=n;a<o.length;a++){var s=o[a];var c=t.toPath(s);var u=getDirectoryToWatchFailedLookupLocation(s,c);if(u){var l=u.dir,f=u.dirPath,d=u.nonRecursive;if(!isPathWithDefaultFailedLookupExtension(c)){var p=h.get(c)||0;h.set(c,p+1)}if(f===S){e.Debug.assert(!d);i=true}else{setDirectoryWatcher(l,f,d)}}}if(i){setDirectoryWatcher(T,S,true)}}function setRefCountToUndefined(e){e.refCount=undefined}function watchFailedLookupLocationOfNonRelativeModuleResolutions(e,r){var n=t.getCurrentProgram();var i=n&&n.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(r)?setRefCountToUndefined:watchFailedLookupLocationOfResolution;e.forEach(i)}function setDirectoryWatcher(t,r,n){var i=v.get(r);if(i){e.Debug.assert(!!n===!!i.nonRecursive);i.refCount++}else{v.set(r,{watcher:createDirectoryWatcher(t,r,n),refCount:1,nonRecursive:n})}}function stopWatchFailedLookupLocationOfResolution(r){if(!r.refCount){return}r.refCount--;if(r.refCount){return}var n=r.failedLookupLocations;var i=false;for(var a=0,o=n;a<o.length;a++){var s=o[a];var c=t.toPath(s);var u=getDirectoryToWatchFailedLookupLocation(s,c);if(u){var l=u.dirPath;var f=h.get(c);if(f){if(f===1){h.delete(c)}else{e.Debug.assert(f>1);h.set(c,f-1)}}if(l===S){i=true}else{removeDirectoryWatcher(l)}}}if(i){removeDirectoryWatcher(S)}}function removeDirectoryWatcher(e){var t=v.get(e);t.refCount--}function createDirectoryWatcher(e,r,n){return t.watchDirectoryOfFailedLookupLocation(e,function(e){var n=t.toPath(e);if(l){l.addOrDeleteFileOrDirectory(e,n)}if(!s&&invalidateResolutionOfFailedLookupLocation(n,r===n)){t.onInvalidatedResolution()}},n?0:1)}function removeResolutionsOfFileFromCache(e,t){var r=e.get(t);if(r){r.forEach(stopWatchFailedLookupLocationOfResolution);e.delete(t)}}function removeResolutionsFromProjectReferenceRedirects(r){if(!e.fileExtensionIs(r,".json")){return}var n=t.getCurrentProgram();if(!n){return}var i=n.getResolvedProjectReferenceByPath(r);if(!i){return}i.commandLine.fileNames.forEach(function(e){return removeResolutionsOfFile(t.toPath(e))})}function removeResolutionsOfFile(e){removeResolutionsOfFileFromCache(f,e);removeResolutionsOfFileFromCache(_,e)}function invalidateResolutionCache(t,r,n){var i=e.createMap();t.forEach(function(t,o){var s=e.getDirectoryPath(o);var c=i.get(s);if(!c){c=e.createMap();i.set(s,c)}t.forEach(function(t,i){if(c.has(i)){return}c.set(i,true);if(!t.isInvalidated&&r(t,n)){t.isInvalidated=true;(a||(a=e.createMap())).set(o,true)}})})}function hasReachedResolutionIterationLimit(){var r=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation;return f.size>r||_.size>r}function invalidateResolutions(e){if(hasReachedResolutionIterationLimit()){s=true;return}invalidateResolutionCache(f,e,getResolvedModule);invalidateResolutionCache(_,e,getResolvedTypeReferenceDirective)}function invalidateResolutionOfFile(e){removeResolutionsOfFile(e);invalidateResolutions(function(r,n){var i=n(r);return!!i&&t.toPath(i.resolvedFileName)===e})}function setFilesWithInvalidatedNonRelativeUnresolvedImports(t){e.Debug.assert(o===t||o===undefined);o=t}function invalidateResolutionOfFailedLookupLocation(r,n){var i;if(n){i=function(e){return isInDirectoryPath(r,t.toPath(e))}}else{if(isPathInNodeModulesStartingWithDot(r))return false;var o=e.getDirectoryPath(r);if(isNodeModulesAtTypesDirectory(r)||isNodeModulesDirectory(r)||isNodeModulesAtTypesDirectory(o)||isNodeModulesDirectory(o)){i=function(n){var i=t.toPath(n);return i===r||e.startsWith(t.toPath(n),r)}}else{if(!isPathWithDefaultFailedLookupExtension(r)&&!h.has(r)){return false}if(e.isEmittedFileOfProgram(t.getCurrentProgram(),r)){return false}i=function(e){return t.toPath(e)===r}}}var c=function(t){return e.some(t.failedLookupLocations,i)};var u=a&&a.size;invalidateResolutions(c);return s||a&&a.size!==u}function closeTypeRootsWatch(){e.clearMap(b,e.closeFileWatcher)}function getDirectoryToWatchFailedLookupLocationFromTypeRoot(e,t){if(s){return undefined}if(isInDirectoryPath(S,t)){return S}var r=getDirectoryToWatchFromFailedLookupLocationDirectory(e,t);return r&&v.has(r.dirPath)?r.dirPath:undefined}function createTypeRootsWatch(e,r){return t.watchTypeRootsDirectory(r,function(n){var i=t.toPath(n);if(l){l.addOrDeleteFileOrDirectory(n,i)}t.onChangedAutomaticTypeDirectiveNames();var a=getDirectoryToWatchFailedLookupLocationFromTypeRoot(r,e);if(a&&invalidateResolutionOfFailedLookupLocation(i,a===i)){t.onInvalidatedResolution()}},1)}function updateTypeRootsWatch(){var r=t.getCompilationSettings();if(r.types){closeTypeRootsWatch();return}var n=e.getEffectiveTypeRoots(r,{directoryExists:directoryExistsForTypeRootWatch,getCurrentDirectory:u});if(n){e.mutateMap(b,e.arrayToMap(n,function(e){return t.toPath(e)}),{createNewValue:createTypeRootsWatch,onDeleteValue:e.closeFileWatcher})}else{closeTypeRootsWatch()}}function directoryExistsForTypeRootWatch(r){var n=e.getDirectoryPath(e.getDirectoryPath(r));var i=t.toPath(n);return i===S||canWatchDirectory(i)}}e.createResolutionCache=createResolutionCache})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["Relative"]=0]="Relative";e[e["NonRelative"]=1]="NonRelative";e[e["Auto"]=2]="Auto"})(r||(r={}));var n;(function(e){e[e["Minimal"]=0]="Minimal";e[e["Index"]=1]="Index";e[e["JsExtension"]=2]="JsExtension"})(n||(n={}));function getPreferences(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:i==="relative"?0:i==="non-relative"?1:2,ending:getEnding()};function getEnding(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return usesJsExtensionOnImports(n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}}function getPreferencesForUpdate(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSOrJsonFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}function updateModuleSpecifier(e,t,r,n,i,a,o){var s=getModuleSpecifierWorker(e,t,r,n,i,a,getPreferencesForUpdate(e,o));if(s===o)return undefined;return s}t.updateModuleSpecifier=updateModuleSpecifier;function getModuleSpecifier(e,t,r,n,i,a,o,s){if(o===void 0){o={}}return getModuleSpecifierWorker(e,r,n,i,a,s,getPreferences(o,e,t))}t.getModuleSpecifier=getModuleSpecifier;function getModuleSpecifierWorker(t,r,n,i,a,o,s){var c=getInfo(r,i);var u=getAllModulePaths(a,r,n,c.getCanonicalFileName,i,o);return e.firstDefined(u,function(e){return tryGetModuleNameAsNodeModule(e,c,i,t)})||getLocalModuleSpecifier(n,c,t,s)}function getModuleSpecifiers(t,r,n,i,a,o,s){var c=tryGetModuleNameFromAmbientModule(t);if(c)return[c];var u=getInfo(n.path,i);var l=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t));var f=getAllModulePaths(a,n.path,l.fileName,u.getCanonicalFileName,i,s);var d=getPreferences(o,r,n);var p=e.mapDefined(f,function(e){return tryGetModuleNameAsNodeModule(e,u,i,r)});return p.length?p:f.map(function(e){return getLocalModuleSpecifier(e,u,r,d)})}t.getModuleSpecifiers=getModuleSpecifiers;function getInfo(t,r){var n=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames():true);var i=e.getDirectoryPath(t);return{getCanonicalFileName:n,sourceDirectory:i}}function getLocalModuleSpecifier(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory;var s=i.ending,c=i.relativePreference;var u=n.baseUrl,l=n.paths,f=n.rootDirs;var d=f&&tryGetModuleNameFromRootDirs(f,t,o,a)||removeExtensionAndIndexPostFix(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!u||c===0){return d}var p=getRelativePathIfInDirectory(t,u,a);if(!p){return d}var g=removeExtensionAndIndexPostFix(p,s,n);var _=l&&tryGetModuleNameFromPaths(e.removeFileExtension(p),g,l);var m=_===undefined?g:_;if(c===1){return m}if(c!==2)e.Debug.assertNever(c);return isPathRelativeToParent(m)||countPathComponents(d)<countPathComponents(m)?d:m}function countPathComponents(t){var r=0;for(var n=e.startsWith(t,"./")?2:0;n<t.length;n++){if(t.charCodeAt(n)===47)r++}return r}t.countPathComponents=countPathComponents;function usesJsExtensionOnImports(t){var r=t.imports;return e.firstDefined(r,function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSOrJsonFileExtension(r):undefined})||false}function stringsEqual(e,t,r){return r(e)===r(t)}function isNodeModulesOrScopedPackageDirectory(t,r){return r(t)==="node_modules"||e.startsWith(t,"@")}function guessDirectorySymlink(t,r,n,i){var a=e.getPathComponents(e.toPath(t,n,i));var o=e.getPathComponents(e.toPath(r,n,i));while(!isNodeModulesOrScopedPackageDirectory(a[a.length-2],i)&&!isNodeModulesOrScopedPackageDirectory(o[o.length-2],i)&&stringsEqual(a[a.length-1],o[o.length-1],i)){a.pop();o.pop()}return[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]}function discoverProbableSymlinks(t,r,n){var i=e.createMap();var a=e.mapDefined(t,function(t){return t.resolvedModules&&e.firstDefinedIterator(t.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:undefined})});for(var o=0,s=a;o<s.length;o++){var c=s[o],u=c[0],l=c[1];var f=guessDirectorySymlink(u,l,n,r),d=f[0],p=f[1];i.set(p,d)}return i}function getAllModulePaths(t,r,n,i,a,o){var s=o.get(n);var c=s?s.concat([n]):[n];var u=a.getCurrentDirectory?a.getCurrentDirectory():"";var l=c.map(function(t){return e.getNormalizedAbsolutePath(t,u)});var f=discoverProbableSymlinks(t,i,u);var d=[];var p=!a.useCaseSensitiveFileNames||a.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;f.forEach(function(t,n){if(e.startsWithDirectory(r,t,i)){return}var o=l.find(function(e){return p(e.slice(0,t.length+1),t+"/")===0});if(o===undefined)return;var s=e.getRelativePathFromDirectory(t,o,i);var c=e.resolvePath(n,s);if(!a.fileExists||a.fileExists(c)){d.push(c)}});d.push.apply(d,l);return d}function tryGetModuleNameFromAmbientModule(t){var r=e.find(t.declarations,function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))});if(r){return r.name.text}}function tryGetModuleNameFromPaths(t,r,n){for(var i in n){for(var a=0,o=n[i];a<o.length;a++){var s=o[a];var c=e.removeFileExtension(e.normalizePath(s));var u=c.indexOf("*");if(u!==-1){var l=c.substr(0,u);var f=c.substr(u+1);if(r.length>=l.length+f.length&&e.startsWith(r,l)&&e.endsWith(r,f)||!f&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-f.length);return i.replace("*",d)}}else if(c===r||c===t){return i}}}}function tryGetModuleNameFromRootDirs(t,r,n,i){var a=getPathRelativeToRootDirs(r,t,i);if(a===undefined){return undefined}var o=getPathRelativeToRootDirs(n,t,i);var s=o!==undefined?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,a,i)):a;return e.removeFileExtension(s)}function tryGetModuleNameAsNodeModule(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory;if(!n.fileExists||!n.readFile){return undefined}var s=getNodeModulePathParts(t);if(!s){return undefined}var c=t.substring(0,s.packageRootIndex);var u=e.combinePaths(c,"package.json");var l=n.fileExists(u)?JSON.parse(n.readFile(u)):undefined;var f=l&&l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):undefined;if(f){var d=t.slice(s.packageRootIndex+1);var p=tryGetModuleNameFromPaths(e.removeFileExtension(d),removeExtensionAndIndexPostFix(d,0,i),f.paths);if(p!==undefined){t=e.combinePaths(t.slice(0,s.packageRootIndex),p)}}var g=getDirectoryOrExtensionlessFileName(t);if(!e.startsWith(o,a(g.substring(0,s.topLevelNodeModulesIndex))))return undefined;var _=g.substring(s.topLevelPackageNameIndex+1);var m=e.getPackageNameFromTypesPackageName(_);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&m===_?undefined:m;function getDirectoryOrExtensionlessFileName(t){if(l){var r=l.typings||l.types||l.main;if(r){var i=e.toPath(r,c,a);if(e.removeFileExtension(i)===e.removeFileExtension(a(t))){return c}}}var o=e.removeFileExtension(t);if(a(o.substring(s.fileNameIndex))==="/index"&&!tryGetAnyFileFromPath(n,o.substring(0,s.fileNameIndex))){return o.substring(0,s.fileNameIndex)}return o}}function tryGetAnyFileFromPath(t,r){if(!t.fileExists)return;var n=e.getSupportedExtensions({allowJs:true},[{extension:"node",isMixedContent:false},{extension:"json",isMixedContent:false,scriptKind:6}]);for(var i=0,a=n;i<a.length;i++){var o=a[i];var s=r+o;if(t.fileExists(s)){return s}}}function getNodeModulePathParts(t){var r=0;var n=0;var i=0;var a=0;var o;(function(e){e[e["BeforeNodeModules"]=0]="BeforeNodeModules";e[e["NodeModules"]=1]="NodeModules";e[e["Scope"]=2]="Scope";e[e["PackageContent"]=3]="PackageContent"})(o||(o={}));var s=0;var c=0;var u=0;while(c>=0){s=c;c=t.indexOf("/",s+1);switch(u){case 0:if(t.indexOf(e.nodeModulesPathPart,s)===s){r=s;n=c;u=1}break;case 1:case 2:if(u===1&&t.charAt(s+1)==="@"){u=2}else{i=c;u=3}break;case 3:if(t.indexOf(e.nodeModulesPathPart,s)===s){u=1}else{u=3}break}}a=s;return u>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:undefined}function getPathRelativeToRootDirs(t,r,n){return e.firstDefined(r,function(e){var r=getRelativePathIfInDirectory(t,e,n);return isPathRelativeToParent(r)?undefined:r})}function removeExtensionAndIndexPostFix(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+getJSExtensionForFile(t,n);default:return e.Debug.assertNever(r)}}function getJSExtensionForFile(t,r){var n=e.extensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return r.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return n;default:return e.Debug.assertNever(n)}}function getRelativePathIfInDirectory(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,false);return e.isRootedDiskPath(i)?undefined:i}function isPathRelativeToParent(t){return e.startsWith(t,"..")}})(t=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(s||(s={}));var s;(function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:undefined;function createDiagnosticReporter(r,n){var i=r===e.sys?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n){return function(t){return r.write(e.formatDiagnostic(t,i))}}var a=new Array(1);return function(t){a[0]=t;r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine());a[0]=undefined}}e.createDiagnosticReporter=createDiagnosticReporter;function clearScreenIfNotWatchingForFileChanges(t,r,n){if(t.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&e.contains(e.screenStartingMessageCodes,r.code)){t.clearScreen();return true}return false}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function getPlainDiagnosticFollowingNewLines(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}function createWatchStatusReporter(t,r){return r?function(r,n,i){clearScreenIfNotWatchingForFileChanges(t,r,i);var a="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";a+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(n+n);t.write(a)}:function(r,n,i){var a="";if(!clearScreenIfNotWatchingForFileChanges(t,r,i)){a+=n}a+=(new Date).toLocaleTimeString()+" - ";a+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+getPlainDiagnosticFollowingNewLines(r,n);t.write(a)}}e.createWatchStatusReporter=createWatchStatusReporter;function parseConfigFileWithSystem(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return reportUnrecoverableDiagnostic(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);a.onUnRecoverableConfigFileDiagnostic=undefined;return o}e.parseConfigFileWithSystem=parseConfigFileWithSystem;function getErrorCountForSummary(t){return e.countWhere(t,function(t){return t.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=getErrorCountForSummary;function getWatchErrorSummaryDiagnosticMessage(t){return t===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=getWatchErrorSummaryDiagnosticMessage;function getErrorSummaryText(t,r){if(t===0)return"";var n=e.createCompilerDiagnostic(t===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r}e.getErrorSummaryText=getErrorSummaryText;function emitFilesAndReportErrors(t,r,n,i,a){var o=t.getConfigFileParsingDiagnostics().slice();var s=o.length;e.addRange(o,t.getSyntacticDiagnostics());var c=false;if(o.length===s){e.addRange(o,t.getOptionsDiagnostics());e.addRange(o,t.getGlobalDiagnostics());if(o.length===s){c=true}}var u=t.emit(undefined,a),l=u.emittedFiles,f=u.emitSkipped,d=u.diagnostics;e.addRange(o,d);if(c){e.addRange(o,t.getSemanticDiagnostics())}e.sortAndDeduplicateDiagnostics(o).forEach(r);if(n){var p=t.getCurrentDirectory();e.forEach(l,function(t){var r=e.getNormalizedAbsolutePath(t,p);n("TSFILE: "+r)});if(t.getCompilerOptions().listFiles){e.forEach(t.getSourceFiles(),function(e){n(e.fileName)})}}if(i){i(getErrorCountForSummary(o))}if(f&&o.length>0){return e.ExitStatus.DiagnosticsPresent_OutputsSkipped}else if(o.length>0){return e.ExitStatus.DiagnosticsPresent_OutputsGenerated}return e.ExitStatus.Success}e.emitFilesAndReportErrors=emitFilesAndReportErrors;var r={close:e.noop};function createWatchHost(t,n){if(t===void 0){t=e.sys}var i=n||createWatchStatusReporter(t);return{onWatchStatusChange:i,watchFile:t.watchFile?function(e,r,n){return t.watchFile(e,r,n)}:function(){return r},watchDirectory:t.watchDirectory?function(e,r,n){return t.watchDirectory(e,r,n)}:function(){return r},setTimeout:t.setTimeout?function(e,r){var n=[];for(var i=2;i<arguments.length;i++){n[i-2]=arguments[i]}var a;return(a=t.setTimeout).call.apply(a,[t,e,r].concat(n))}:e.noop,clearTimeout:t.clearTimeout?function(e){return t.clearTimeout(e)}:e.noop}}e.createWatchHost=createWatchHost;function createWatchCompilerHost(t,r,n,i){if(t===void 0){t=e.sys}if(!r){r=e.createEmitAndSemanticDiagnosticsBuilderProgram}var a=t;a;var o=function(){return t.useCaseSensitiveFileNames};var s=function(e){return t.write(e+t.newLine)};var c=createWatchHost(t,i),u=c.onWatchStatusChange,l=c.watchFile,f=c.watchDirectory,d=c.setTimeout,p=c.clearTimeout;return{useCaseSensitiveFileNames:o,getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:getDefaultLibLocation,getDefaultLibFileName:function(t){return e.combinePaths(getDefaultLibLocation(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:l,watchDirectory:f,setTimeout:d,clearTimeout:p,trace:function(e){return t.write(e)},onWatchStatusChange:u,createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},onCachedDirectoryStructureHostCreate:function(e){return a=e||t},createHash:t.createHash&&function(e){return t.createHash(e)},createProgram:r,afterProgramCreate:emitFilesAndReportErrorUsingBuilder};function getDefaultLibLocation(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}function emitFilesAndReportErrorUsingBuilder(r){var i=r.getCompilerOptions();var a=e.getNewLineCharacter(i,function(){return t.newLine});emitFilesAndReportErrors(r,n,s,function(t){return u(e.createCompilerDiagnostic(getWatchErrorSummaryDiagnosticMessage(t),t),a,i)})}}function reportUnrecoverableDiagnostic(t,r,n){r(n);t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function createWatchCompilerHostOfConfigFile(e,t,r,n,i,a){var o=i||createDiagnosticReporter(r);var s=createWatchCompilerHost(r,n,o,a);s.onUnRecoverableConfigFileDiagnostic=function(e){return reportUnrecoverableDiagnostic(r,o,e)};s.configFileName=e;s.optionsToExtend=t;return s}e.createWatchCompilerHostOfConfigFile=createWatchCompilerHostOfConfigFile;function createWatchCompilerHostOfFilesAndCompilerOptions(e,t,r,n,i,a,o){var s=createWatchCompilerHost(r,n,i||createDiagnosticReporter(r),a);s.rootFiles=e;s.options=t;s.projectReferences=o;return s}e.createWatchCompilerHostOfFilesAndCompilerOptions=createWatchCompilerHostOfFilesAndCompilerOptions})(s||(s={}));(function(e){function createWatchCompilerHost(t,r,n,i,a,o,s){if(e.isArray(t)){return e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o,s)}else{return e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)}}e.createWatchCompilerHost=createWatchCompilerHost;var t=1;function createWatchProgram(r){var n;var i;var a;var o;var s;var c=e.createMap();var u;var l=false;var f=false;var d=r.useCaseSensitiveFileNames();var p=r.getCurrentDirectory();var g=function(){return p};var _=function(e,t){return r.readFile(e,t)};var m=r.configFileName,y=r.optionsToExtend,h=y===void 0?{}:y,v=r.createProgram;var T=r.rootFiles,S=r.options,b=r.projectReferences;var x;var C;var E=false;var D=false;var k=m===undefined?undefined:e.createCachedDirectoryStructureHost(r,p,d);if(k&&r.onCachedDirectoryStructureHostCreate){r.onCachedDirectoryStructureHostCreate(k)}var N=k||r;var A={useCaseSensitiveFileNames:d,readDirectory:function(e,t,r,n,i){return N.readDirectory(e,t,r,n,i)},fileExists:function(e){return r.fileExists(e)},readFile:_,getCurrentDirectory:g,onUnRecoverableConfigFileDiagnostic:r.onUnRecoverableConfigFileDiagnostic,trace:r.trace?function(e){return r.trace(e)}:undefined};var O=updateNewLine();if(m&&r.configFileParsingResult){setConfigFileParsingResult(r.configFileParsingResult);O=updateNewLine()}reportWatchDiagnostic(e.Diagnostics.Starting_compilation_in_watch_mode);if(m&&!r.configFileParsingResult){O=e.getNewLineCharacter(h,function(){return r.getNewLine()});e.Debug.assert(!T);parseConfigFile();O=updateNewLine()}var F=r.trace&&function(e){r.trace(e+O)};var P=F?S.extendedDiagnostics?e.WatchLogLevel.Verbose:S.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None;var I=P!==e.WatchLogLevel.None?F:e.noop;var w=e.getWatchFactory(P,I),M=w.watchFile,L=w.watchFilePath,R=w.watchDirectory;var B=e.createGetCanonicalFileName(d);I("Current directory: "+p+" CaseSensitiveFileNames: "+d);if(m){M(r,m,scheduleProgramReload,e.PollingInterval.High,"Config file")}var j={getSourceFile:function(e,t,r,n){return getVersionedSourceFileByPath(e,toPath(e),t,r,n)},getSourceFileByPath:getVersionedSourceFileByPath,getDefaultLibLocation:r.getDefaultLibLocation&&function(){return r.getDefaultLibLocation()},getDefaultLibFileName:function(e){return r.getDefaultLibFileName(e)},writeFile:writeFile,getCurrentDirectory:g,useCaseSensitiveFileNames:function(){return d},getCanonicalFileName:B,getNewLine:function(){return O},fileExists:fileExists,readFile:_,trace:F,directoryExists:N.directoryExists&&function(e){return N.directoryExists(e)},getDirectories:N.getDirectories&&function(e){return N.getDirectories(e)},realpath:r.realpath&&function(e){return r.realpath(e)},getEnvironmentVariable:r.getEnvironmentVariable?function(e){return r.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:onReleaseOldSourceFile,createHash:r.createHash&&function(e){return r.createHash(e)},toPath:toPath,getCompilationSettings:function(){return S},watchDirectoryOfFailedLookupLocation:function(e,t,n){return R(r,e,t,n,"Failed Lookup Locations")},watchTypeRootsDirectory:function(e,t,n){return R(r,e,t,n,"Type roots")},getCachedDirectoryStructureHost:function(){return k},onInvalidatedResolution:scheduleProgramUpdate,onChangedAutomaticTypeDirectiveNames:function(){f=true;scheduleProgramUpdate()},maxNumberOfFilesToIterateForInvalidation:r.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:getCurrentProgram,writeLog:I,readDirectory:function(e,t,r,n,i){return N.readDirectory(e,t,r,n,i)}};var J=e.createResolutionCache(j,m?e.getDirectoryPath(e.getNormalizedAbsolutePath(m,p)):p,false);j.resolveModuleNames=r.resolveModuleNames?function(e,t,n,i){return r.resolveModuleNames(e,t,n,i)}:function(e,t,r,n){return J.resolveModuleNames(e,t,r,n)};j.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(e,t,n){return r.resolveTypeReferenceDirectives(e,t,n)}:function(e,t,r){return J.resolveTypeReferenceDirectives(e,t,r)};var W=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;synchronizeProgram();watchConfigFileWildCardDirectories();return m?{getCurrentProgram:getCurrentBuilderProgram,getProgram:synchronizeProgram}:{getCurrentProgram:getCurrentBuilderProgram,getProgram:synchronizeProgram,updateRootFileNames:updateRootFileNames};function getCurrentBuilderProgram(){return n}function getCurrentProgram(){return n&&n.getProgram()}function synchronizeProgram(){I("Synchronizing program");var t=getCurrentProgram();if(l){O=updateNewLine();if(t&&e.changesAffectModuleResolution(t.getCompilerOptions(),S)){J.clear()}}var i=J.createHasInvalidatedResolution(W);if(e.isProgramUptoDate(getCurrentProgram(),T,S,getSourceVersion,fileExists,i,f,b)){if(D){n=v(undefined,undefined,j,n,C,b);D=false}}else{createNewProgram(t,i)}if(r.afterProgramCreate){r.afterProgramCreate(n)}return n}function createNewProgram(t,r){if(P!==e.WatchLogLevel.None){I("CreatingProgramWith::");I(" roots: "+JSON.stringify(T));I(" options: "+JSON.stringify(S))}var i=l||!t;l=false;D=false;J.startCachingPerDirectoryResolution();j.hasInvalidatedResolution=r;j.hasChangedAutomaticTypeDirectiveNames=f;n=v(T,S,j,n,C,b);J.finishCachingPerDirectoryResolution();e.updateMissingFilePathsWatch(n.getProgram(),a||(a=e.createMap()),watchMissingFilePath);if(i){J.updateTypeRootsWatch()}if(u){for(var o=0,s=u;o<s.length;o++){var d=s[o];if(!a.has(d)){c.delete(d)}}u=undefined}}function updateRootFileNames(t){e.Debug.assert(!m,"Cannot update root file names with config file watch mode");T=t;scheduleProgramUpdate()}function updateNewLine(){return e.getNewLineCharacter(S||h,function(){return r.getNewLine()})}function toPath(t){return e.toPath(t,p,B)}function isFileMissingOnHost(e){return typeof e==="number"}function isFilePresentOnHost(e){return!!e.sourceFile}function fileExists(e){var t=toPath(e);if(isFileMissingOnHost(c.get(t))){return true}return N.fileExists(e)}function getVersionedSourceFileByPath(n,i,a,o,s){var u=c.get(i);if(isFileMissingOnHost(u)){return undefined}if(!u||s||!isFilePresentOnHost(u)||u.version.toString()!==u.sourceFile.version){var l=getNewSourceFile();if(u){if(s){u.version++}if(l){u.sourceFile=l;l.version=u.version.toString();if(!u.fileWatcher){u.fileWatcher=L(r,n,onSourceFileChange,e.PollingInterval.Low,i,"Source file")}}else{if(isFilePresentOnHost(u)){u.fileWatcher.close()}c.set(i,u.version)}}else{if(l){l.version=t.toString();var f=L(r,n,onSourceFileChange,e.PollingInterval.Low,i,"Source file");c.set(i,{sourceFile:l,version:t,fileWatcher:f})}else{c.set(i,t)}}return l}return u.sourceFile;function getNewSourceFile(){var t;try{e.performance.mark("beforeIORead");t=r.readFile(n,S.charset);e.performance.mark("afterIORead");e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){if(o){o(e.message)}}return t!==undefined?e.createSourceFile(n,t,a):undefined}}function nextSourceFileVersion(e){var t=c.get(e);if(t!==undefined){if(isFileMissingOnHost(t)){c.set(e,{version:Number(t)+1})}else{t.version++}}}function getSourceVersion(e){var t=c.get(e);return!t||isFileMissingOnHost(t)?undefined:t.version.toString()}function onReleaseOldSourceFile(e,t,r){var n=c.get(e.resolvedPath);if(n){if(isFileMissingOnHost(n)){(u||(u=[])).push(e.path)}else if(n.sourceFile===e){if(n.fileWatcher){n.fileWatcher.close()}c.delete(e.resolvedPath);if(!r){J.removeResolutionsOfFile(e.path)}}}}function reportWatchDiagnostic(t){if(r.onWatchStatusChange){r.onWatchStatusChange(e.createCompilerDiagnostic(t),O,S||h)}}function scheduleProgramUpdate(){if(!r.setTimeout||!r.clearTimeout){return}if(s){r.clearTimeout(s)}I("Scheduling update");s=r.setTimeout(updateProgram,250)}function scheduleProgramReload(){e.Debug.assert(!!m);i=e.ConfigFileProgramReloadLevel.Full;scheduleProgramUpdate()}function updateProgram(){s=undefined;reportWatchDiagnostic(e.Diagnostics.File_change_detected_Starting_incremental_compilation);switch(i){case e.ConfigFileProgramReloadLevel.Partial:return reloadFileNamesFromConfigFile();case e.ConfigFileProgramReloadLevel.Full:return reloadConfigFile();default:synchronizeProgram();return}}function reloadFileNamesFromConfigFile(){I("Reloading new file names and options");var t=e.getFileNamesFromConfigSpecs(x,e.getDirectoryPath(m),S,A);if(e.updateErrorForNoInputFiles(t,m,x,C,E)){D=true}T=t.fileNames;synchronizeProgram()}function reloadConfigFile(){I("Reloading config file: "+m);i=e.ConfigFileProgramReloadLevel.None;if(k){k.clearCache()}parseConfigFile();l=true;synchronizeProgram();watchConfigFileWildCardDirectories()}function parseConfigFile(){setConfigFileParsingResult(e.getParsedCommandLineOfConfigFile(m,h,A))}function setConfigFileParsingResult(t){T=t.fileNames;S=t.options;x=t.configFileSpecs;b=t.projectReferences;C=e.getConfigFileParsingDiagnostics(t).slice();E=e.canJsonReportNoInutFiles(t.raw);D=true}function onSourceFileChange(t,r,n){updateCachedSystemWithFile(t,n,r);if(r===e.FileWatcherEventKind.Deleted&&c.get(n)){J.invalidateResolutionOfFile(n)}J.removeResolutionsFromProjectReferenceRedirects(n);nextSourceFileVersion(n);scheduleProgramUpdate()}function updateCachedSystemWithFile(e,t,r){if(k){k.addOrDeleteFile(e,t,r)}}function watchMissingFilePath(t){return L(r,t,onMissingFileChange,e.PollingInterval.Medium,t,"Missing file")}function onMissingFileChange(t,r,n){updateCachedSystemWithFile(t,n,r);if(r===e.FileWatcherEventKind.Created&&a.has(n)){a.get(n).close();a.delete(n);nextSourceFileVersion(n);scheduleProgramUpdate()}}function watchConfigFileWildCardDirectories(){if(x){e.updateWatchingWildcardDirectories(o||(o=e.createMap()),e.createMapFromTemplate(x.wildcardDirectories),watchWildcardDirectory)}else if(o){e.clearMap(o,e.closeFileWatcherOf)}}function watchWildcardDirectory(t,n){return R(r,t,function(r){e.Debug.assert(!!m);var n=toPath(r);if(k){k.addOrDeleteFileOrDirectory(r,n)}nextSourceFileVersion(n);if(e.isPathInNodeModulesStartingWithDot(n))return;if(n!==t&&e.hasExtension(n)&&!e.isSupportedSourceFileName(r,S)){I("Project: "+m+" Detected file add/remove of non supported extension: "+r);return}if(i!==e.ConfigFileProgramReloadLevel.Full){i=e.ConfigFileProgramReloadLevel.Partial;scheduleProgramUpdate()}},n,"Wild card directories")}function ensureDirectoriesExist(t){if(t.length>e.getRootLength(t)&&!r.directoryExists(t)){var n=e.getDirectoryPath(t);ensureDirectoriesExist(n);r.createDirectory(t)}}function writeFile(t,n,i,a){try{e.performance.mark("beforeIOWrite");ensureDirectoriesExist(e.getDirectoryPath(e.normalizePath(t)));r.writeFile(t,n,i);e.performance.mark("afterIOWrite");e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){if(a){a(e.message)}}}}e.createWatchProgram=createWatchProgram})(s||(s={}));var s;(function(e){var t=new Date(-864e13);var r=new Date(864e13);var n;(function(e){e[e["None"]=0]="None";e[e["Success"]=1]="Success";e[e["DeclarationOutputUnchanged"]=2]="DeclarationOutputUnchanged";e[e["ConfigFileErrors"]=4]="ConfigFileErrors";e[e["SyntaxErrors"]=8]="SyntaxErrors";e[e["TypeErrors"]=16]="TypeErrors";e[e["DeclarationEmitErrors"]=32]="DeclarationEmitErrors";e[e["EmitErrors"]=64]="EmitErrors";e[e["AnyErrors"]=124]="AnyErrors"})(n||(n={}));var i;(function(e){e[e["Unbuildable"]=0]="Unbuildable";e[e["UpToDate"]=1]="UpToDate";e[e["UpToDateWithUpstreamTypes"]=2]="UpToDateWithUpstreamTypes";e[e["OutputMissing"]=3]="OutputMissing";e[e["OutOfDateWithSelf"]=4]="OutOfDateWithSelf";e[e["OutOfDateWithUpstream"]=5]="OutOfDateWithUpstream";e[e["UpstreamOutOfDate"]=6]="UpstreamOutOfDate";e[e["UpstreamBlocked"]=7]="UpstreamBlocked";e[e["ComputingUpstream"]=8]="ComputingUpstream";e[e["ContainerOnly"]=9]="ContainerOnly"})(i=e.UpToDateStatusType||(e.UpToDateStatusType={}));function createFileMap(t){var r=e.createMap();return{setValue:setValue,getValue:getValue,removeKey:removeKey,forEach:forEach,hasKey:hasKey,getSize:getSize,clear:clear};function forEach(e){r.forEach(e)}function hasKey(e){return r.has(t(e))}function removeKey(e){r.delete(t(e))}function setValue(e,n){r.set(t(e),n)}function getValue(e){return r.get(t(e))}function getSize(){return r.size}function clear(){r.clear()}}function getOrCreateValueFromConfigFileMap(e,t,r){var n=e.getValue(t);var i;if(!n){i=r();e.setValue(t,i)}return n||i}function getOrCreateValueMapFromConfigFileMap(t,r){return getOrCreateValueFromConfigFileMap(t,r,e.createMap)}function getOutputDeclarationFileName(t,r){var n=e.getRelativePathFromDirectory(rootDirOfOptions(r.options,r.options.configFilePath),t,true);var i=e.resolvePath(r.options.declarationDir||r.options.outDir||e.getDirectoryPath(r.options.configFilePath),n);return e.changeExtension(i,".d.ts")}e.getOutputDeclarationFileName=getOutputDeclarationFileName;function getOutputJSFileName(t,r){var n=e.getRelativePathFromDirectory(rootDirOfOptions(r.options,r.options.configFilePath),t,true);var i=e.resolvePath(r.options.outDir||e.getDirectoryPath(r.options.configFilePath),n);var a=e.fileExtensionIs(t,".json")?".json":e.fileExtensionIs(t,".tsx")&&r.options.jsx===1?".jsx":".js";return e.changeExtension(i,a)}function getOutputFileNames(t,r){if(r.options.outFile||r.options.out||e.fileExtensionIs(t,".d.ts")){return e.emptyArray}var n=[];var i=getOutputJSFileName(t,r);n.push(i);if(r.options.sourceMap){n.push(i+".map")}if(e.getEmitDeclarations(r.options)&&!e.fileExtensionIs(t,".json")){var a=getOutputDeclarationFileName(t,r);n.push(a);if(r.options.declarationMap){n.push(a+".map")}}return n}function getOutFileOutputs(t){var r=t.options.outFile||t.options.out;if(!r){return e.Debug.fail("outFile must be set")}var n=[];n.push(r);if(t.options.sourceMap){n.push(r+".map")}if(e.getEmitDeclarations(t.options)){var i=e.changeExtension(r,".d.ts");n.push(i);if(t.options.declarationMap){n.push(i+".map")}}return n}function rootDirOfOptions(t,r){return t.rootDir||e.getDirectoryPath(r)}function newer(e,t){return t>e?t:e}function isDeclarationFile(t){return e.fileExtensionIs(t,".d.ts")}function createBuilderStatusReporter(t,r){return function(n){var i=r?"["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine);t.write(i)}}e.createBuilderStatusReporter=createBuilderStatusReporter;function createSolutionBuilderHostBase(t,r,n){if(t===void 0){t=e.sys}var i=e.createCompilerHostWorker({},undefined,t);i.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:function(){return undefined};i.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop;i.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop;i.reportDiagnostic=r||e.createDiagnosticReporter(t);i.reportSolutionBuilderStatus=n||createBuilderStatusReporter(t);return i}function createSolutionBuilderHost(t,r,n,i){if(t===void 0){t=e.sys}var a=createSolutionBuilderHostBase(t,r,n);a.reportErrorSummary=i;return a}e.createSolutionBuilderHost=createSolutionBuilderHost;function createSolutionBuilderWithWatchHost(t,r,n,i){var a=createSolutionBuilderHostBase(t,r,n);var o=e.createWatchHost(t,i);a.onWatchStatusChange=o.onWatchStatusChange;a.watchFile=o.watchFile;a.watchDirectory=o.watchDirectory;a.setTimeout=o.setTimeout;a.clearTimeout=o.clearTimeout;return a}e.createSolutionBuilderWithWatchHost=createSolutionBuilderWithWatchHost;function getCompilerOptionsOfBuildOptions(t){var r={};e.commonOptionsWithBuild.forEach(function(e){r[e.name]=t[e.name]});return r}function createSolutionBuilder(a,o,s){var c=a;var u=a.getCurrentDirectory();var l=e.createGetCanonicalFileName(a.useCaseSensitiveFileNames());var f=e.parseConfigHostFromCompilerHost(a);var d=s;var p=getCompilerOptionsOfBuildOptions(d);var g=createFileMap(toPath);var _=createFileMap(toPath);var m=createFileMap(toPath);var y=e.createMap();var h;var v=function(e){return a.trace&&a.trace(e)};var T=function(e){return a.readFile(e)};var S=createFileMap(toPath);var b=createFileMap(toPath);var x=createFileMap(toPath);var C=[];var E=0;var D;var k=false;var N=createFileMap(toPath);var A=createFileMap(toPath);var O=createFileMap(toPath);return{buildAllProjects:buildAllProjects,getUpToDateStatusOfFile:getUpToDateStatusOfFile,cleanAllProjects:cleanAllProjects,resetBuildContext:resetBuildContext,getBuildGraph:getBuildGraph,invalidateProject:invalidateProject,buildInvalidatedProject:buildInvalidatedProject,resolveProjectName:resolveProjectName,startWatching:startWatching};function toPath(t){return e.toPath(t,u,l)}function resetBuildContext(t){if(t===void 0){t=s}d=t;p=getCompilerOptionsOfBuildOptions(d);g.clear();_.clear();m.clear();y.clear();h=undefined;S.clear();b.clear();x.clear();C.length=0;E=0;if(D){clearTimeout(D);D=undefined}k=false;e.clearMap(N,function(t){return e.clearMap(t,e.closeFileWatcherOf)});e.clearMap(A,function(t){return e.clearMap(t,e.closeFileWatcher)});e.clearMap(O,e.closeFileWatcher)}function isParsedCommandLine(e){return!!e.options}function parseConfigFile(t){var r=g.getValue(t);if(r){return isParsedCommandLine(r)?r:undefined}var n;f.onUnRecoverableConfigFileDiagnostic=function(e){return n=e};var i=e.getParsedCommandLineOfConfigFile(t,p,f);f.onUnRecoverableConfigFileDiagnostic=e.noop;g.setValue(t,i||n);return i}function reportStatus(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}a.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))}function reportWatchStatus(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}if(c.onWatchStatusChange){c.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,[t].concat(r)),a.getNewLine(),p)}}function startWatching(){var e=getGlobalDependencyGraph();for(var t=0,r=e.buildQueue;t<r.length;t++){var n=r[t];watchConfigFile(n);var i=parseConfigFile(n);if(i){watchWildCardDirectories(n,i);watchInputFiles(n,i)}}}function watchConfigFile(t){if(d.watch&&!O.hasKey(t)){O.setValue(t,c.watchFile(t,function(){invalidateProjectAndScheduleBuilds(t,e.ConfigFileProgramReloadLevel.Full)}))}}function watchWildCardDirectories(t,r){if(!d.watch)return;e.updateWatchingWildcardDirectories(getOrCreateValueMapFromConfigFileMap(N,t),e.createMapFromTemplate(r.configFileSpecs.wildcardDirectories),function(n,i){return c.watchDirectory(n,function(i){var a=toPath(i);if(a!==toPath(n)&&e.hasExtension(a)&&!e.isSupportedSourceFileName(i,r.options)){return}if(isOutputFile(i,r)){return}invalidateProjectAndScheduleBuilds(t,e.ConfigFileProgramReloadLevel.Partial)},!!(i&1))})}function watchInputFiles(t,r){if(!d.watch)return;e.mutateMap(getOrCreateValueMapFromConfigFileMap(A,t),e.arrayToMap(r.fileNames,toPath),{createNewValue:function(r,n){return c.watchFile(n,function(){invalidateProjectAndScheduleBuilds(t,e.ConfigFileProgramReloadLevel.None)})},onDeleteValue:e.closeFileWatcher})}function isOutputFile(t,r){if(r.options.noEmit)return false;if(!e.fileExtensionIs(t,".d.ts")&&(e.fileExtensionIs(t,".ts")||e.fileExtensionIs(t,".tsx"))){return false}var n=r.options.outFile||r.options.out;if(n&&(isSameFile(t,n)||isSameFile(t,e.removeFileExtension(n)+".d.ts"))){return true}if(r.options.declarationDir&&e.containsPath(r.options.declarationDir,t,u,!a.useCaseSensitiveFileNames())){return true}if(r.options.outDir&&e.containsPath(r.options.outDir,t,u,!a.useCaseSensitiveFileNames())){return true}return!e.forEach(r.fileNames,function(e){return isSameFile(t,e)})}function isSameFile(t,r){return e.comparePaths(t,r,u,!a.useCaseSensitiveFileNames())===0}function invalidateProjectAndScheduleBuilds(e,t){k=true;invalidateResolvedProject(e,t);scheduleBuildInvalidatedProject()}function getUpToDateStatusOfFile(e){return getUpToDateStatus(parseConfigFile(e))}function getBuildGraph(e){return createDependencyGraph(resolveProjectNames(e))}function getGlobalDependencyGraph(){return h||(h=getBuildGraph(o))}function getUpToDateStatus(e){if(e===undefined){return{type:i.Unbuildable,reason:"File deleted mid-build"}}var t=m.getValue(e.options.configFilePath);if(t!==undefined){return t}var r=getUpToDateStatusWorker(e);m.setValue(e.options.configFilePath,r);return r}function getUpToDateStatusWorker(n){var o=undefined;var s=t;for(var c=0,u=n.fileNames;c<u.length;c++){var l=u[c];if(!a.fileExists(l)){return{type:i.Unbuildable,reason:l+" does not exist"}}var f=a.getModifiedTime(l)||e.missingFileModifiedTime;if(f>s){o=l;s=f}}var d=getAllProjectOutputs(n);if(d.length===0){return{type:i.ContainerOnly}}var p="(none)";var g=r;var y="(none)";var h=t;var v;var T=t;var S=false;for(var b=0,x=d;b<x.length;b++){var C=x[b];if(!a.fileExists(C)){v=C;break}var E=a.getModifiedTime(C)||e.missingFileModifiedTime;if(E<g){g=E;p=C}if(E<s){S=true;break}if(E>h){h=E;y=C}if(isDeclarationFile(C)){var D=_.getValue(C);if(D!==undefined){T=newer(D,T)}else{var k=a.getModifiedTime(C)||e.missingFileModifiedTime;T=newer(T,k)}}}var N=false;var A=false;var O;if(n.projectReferences){m.setValue(n.options.configFilePath,{type:i.ComputingUpstream});for(var F=0,P=n.projectReferences;F<P.length;F++){var I=P[F];A=A||!!I.prepend;var w=e.resolveProjectReferencePath(I);var M=getUpToDateStatus(parseConfigFile(w));if(M.type===i.ComputingUpstream){continue}if(M.type===i.Unbuildable){return{type:i.UpstreamBlocked,upstreamProjectName:I.path}}if(M.type!==i.UpToDate){return{type:i.UpstreamOutOfDate,upstreamProjectName:I.path}}if(M.newestInputFileTime&&M.newestInputFileTime<=g){continue}if(M.newestDeclarationFileContentChangedTime&&M.newestDeclarationFileContentChangedTime<=g){N=true;O=I.path;continue}e.Debug.assert(p!==undefined,"Should have an oldest output filename here");return{type:i.OutOfDateWithUpstream,outOfDateOutputFileName:p,newerProjectName:I.path}}}if(v!==undefined){return{type:i.OutputMissing,missingOutputFileName:v}}if(S){return{type:i.OutOfDateWithSelf,outOfDateOutputFileName:p,newerInputFileName:o}}if(A&&N){return{type:i.OutOfDateWithUpstream,outOfDateOutputFileName:p,newerProjectName:O}}return{type:N?i.UpToDateWithUpstreamTypes:i.UpToDate,newestDeclarationFileContentChangedTime:T,newestInputFileTime:s,newestOutputFileTime:h,newestInputFileName:o,newestOutputFileName:y,oldestOutputFileName:p}}function invalidateProject(e,t){invalidateResolvedProject(resolveProjectName(e),t)}function invalidateResolvedProject(t,r){if(r===e.ConfigFileProgramReloadLevel.Full){g.removeKey(t);h=undefined}m.removeKey(t);S.removeKey(t);addProjToQueue(t,r)}function addProjToQueue(t,r){var n=b.getValue(t);if(n===undefined){b.setValue(t,r||e.ConfigFileProgramReloadLevel.None);C.push(t)}else if(n<(r||e.ConfigFileProgramReloadLevel.None)){b.setValue(t,r||e.ConfigFileProgramReloadLevel.None)}}function getNextInvalidatedProject(){if(E<C.length){var e=C[E];E++;var t=b.getValue(e);b.removeKey(e);if(!b.getSize()){C.length=0;E=0}return{project:e,reloadLevel:t}}}function hasPendingInvalidatedProjects(){return!!b.getSize()}function scheduleBuildInvalidatedProject(){if(!c.setTimeout||!c.clearTimeout){return}if(D){c.clearTimeout(D)}D=c.setTimeout(buildInvalidatedProject,250)}function buildInvalidatedProject(){D=undefined;if(k){k=false;x.clear();reportWatchStatus(e.Diagnostics.File_change_detected_Starting_incremental_compilation)}var t=getNextInvalidatedProject();if(t){buildSingleInvalidatedProject(t.project,t.reloadLevel);if(hasPendingInvalidatedProjects()){if(d.watch&&!D){scheduleBuildInvalidatedProject()}}else{reportErrorSummary()}}}function reportErrorSummary(){if(d.watch||a.reportErrorSummary){getGlobalDependencyGraph().buildQueue.forEach(function(t){if(!x.hasKey(t)){reportErrors(S.getValue(t)||e.emptyArray)}});var t=0;S.forEach(function(r){return t+=e.getErrorCountForSummary(r)});if(d.watch){reportWatchStatus(e.getWatchErrorSummaryDiagnosticMessage(t),t)}else{a.reportErrorSummary(t)}}}function buildSingleInvalidatedProject(t,r){var a=parseConfigFile(t);if(!a){reportParseConfigFileDiagnostic(t);return}if(r===e.ConfigFileProgramReloadLevel.Full){watchConfigFile(t);watchWildCardDirectories(t,a);watchInputFiles(t,a)}else if(r===e.ConfigFileProgramReloadLevel.Partial){var o=e.getFileNamesFromConfigSpecs(a.configFileSpecs,e.getDirectoryPath(t),a.options,f);e.updateErrorForNoInputFiles(o,t,a.configFileSpecs,a.errors,e.canJsonReportNoInutFiles(a.raw));a.fileNames=o.fileNames;watchInputFiles(t,a)}var s=getUpToDateStatus(a);verboseReportProjectStatus(t,s);if(s.type===i.UpstreamBlocked){if(d.verbose)reportStatus(e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,t,s.upstreamProjectName);return}var c=buildSingleProject(t);var u=getGlobalDependencyGraph();var l=u.referencingProjectsMap.getValue(t);if(!l)return;for(var p=0,g=u.buildQueue;p<g.length;p++){var _=g[p];var m=l.getValue(_);if(m||m!==undefined&&!(c&n.DeclarationOutputUnchanged)){addProjToQueue(_)}}}function createDependencyGraph(t){var r=createFileMap(toPath);var n=createFileMap(toPath);var i=[];var a=[];var o=createFileMap(toPath);for(var s=0,c=t;s<c.length;s++){var u=c[s];visit(u)}return{buildQueue:a,referencingProjectsMap:o};function visit(t,s){if(n.hasKey(t))return;if(r.hasKey(t)){if(!s){reportStatus(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))}return}r.setValue(t,true);i.push(t);var c=parseConfigFile(t);if(c&&c.projectReferences){for(var u=0,l=c.projectReferences;u<l.length;u++){var f=l[u];var d=resolveProjectName(f.path);visit(d,s||f.circular);var p=getOrCreateValueFromConfigFileMap(o,d,function(){return createFileMap(toPath)});p.setValue(t,!!f.prepend)}}i.pop();n.setValue(t,true);a.push(t)}}function buildSingleProject(o){if(d.dry){reportStatus(e.Diagnostics.A_non_dry_build_would_build_project_0,o);return n.Success}if(d.verbose)reportStatus(e.Diagnostics.Building_project_0,o);var s=n.None;s|=n.DeclarationOutputUnchanged;var c=parseConfigFile(o);if(!c){s|=n.ConfigFileErrors;reportParseConfigFileDiagnostic(o);m.setValue(o,{type:i.Unbuildable,reason:"Config file errors"});return s}if(c.fileNames.length===0){reportAndStoreErrors(o,c.errors);return n.None}var u={projectReferences:c.projectReferences,host:a,rootNames:c.fileNames,options:c.options,configFileParsingDiagnostics:c.errors};if(a.beforeCreateProgram){a.beforeCreateProgram(d)}var l=e.createProgram(u);var f=l.getOptionsDiagnostics().concat(l.getConfigFileParsingDiagnostics(),l.getSyntacticDiagnostics());if(f.length){return buildErrors(f,n.SyntaxErrors,"Syntactic")}var p=l.getSemanticDiagnostics();if(p.length){return buildErrors(p,n.TypeErrors,"Semantic")}var g=t;var y=false;var h;var b=function(e){return(h||(h=[])).push(e)};var x=[];e.emitFilesAndReportErrors(l,b,v,undefined,function(e,t,r){return x.push({name:e,text:t,writeByteOrderMark:r})});if(h){return buildErrors(h,n.DeclarationEmitErrors,"Declaration file")}var C=e.createDiagnosticCollection();x.forEach(function(t){var r=t.name,i=t.text,o=t.writeByteOrderMark;var c;if(!y&&isDeclarationFile(r)){if(a.fileExists(r)&&T(r)===i){c=a.getModifiedTime(r)}else{s&=~n.DeclarationOutputUnchanged;y=true}}e.writeFile(a,C,r,i,o);if(c!==undefined){g=newer(c,g);_.setValue(r,c)}});var E=C.getDiagnostics();if(E.length){return buildErrors(E,n.EmitErrors,"Emit")}var D={type:i.UpToDate,newestDeclarationFileContentChangedTime:y?r:g};S.removeKey(o);m.setValue(o,D);if(a.afterProgramEmitAndDiagnostics){a.afterProgramEmitAndDiagnostics(l)}return s;function buildErrors(e,t,r){s|=t;reportAndStoreErrors(o,e);m.setValue(o,{type:i.Unbuildable,reason:r+" errors"});if(a.afterProgramEmitAndDiagnostics){a.afterProgramEmitAndDiagnostics(l)}return s}}function updateOutputTimestamps(r){if(d.dry){return reportStatus(e.Diagnostics.A_non_dry_build_would_build_project_0,r.options.configFilePath)}if(d.verbose){reportStatus(e.Diagnostics.Updating_output_timestamps_of_project_0,r.options.configFilePath)}var n=new Date;var o=getAllProjectOutputs(r);var s=t;for(var c=0,u=o;c<u.length;c++){var l=u[c];if(isDeclarationFile(l)){s=newer(s,a.getModifiedTime(l)||e.missingFileModifiedTime)}a.setModifiedTime(l,n)}m.setValue(r.options.configFilePath,{type:i.UpToDate,newestDeclarationFileContentChangedTime:s})}function getFilesToClean(){var e=getGlobalDependencyGraph();var t=[];for(var r=0,n=e.buildQueue;r<n.length;r++){var i=n[r];var o=parseConfigFile(i);if(o===undefined){reportParseConfigFileDiagnostic(i);continue}var s=getAllProjectOutputs(o);for(var c=0,u=s;c<u.length;c++){var l=u[c];if(a.fileExists(l)){t.push(l)}}}return t}function cleanAllProjects(){var t=getFilesToClean();if(d.dry){reportStatus(e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,t.map(function(e){return"\r\n * "+e}).join(""));return e.ExitStatus.Success}for(var r=0,n=t;r<n.length;r++){var i=n[r];a.deleteFile(i)}return e.ExitStatus.Success}function resolveProjectName(t){return resolveConfigFileProjectName(e.resolvePath(a.getCurrentDirectory(),t))}function resolveProjectNames(e){return e.map(resolveProjectName)}function buildAllProjects(){if(d.watch){reportWatchStatus(e.Diagnostics.Starting_compilation_in_watch_mode)}var t=e.changeCompilerHostToUseCache(a,toPath,true),r=t.originalReadFile,o=t.originalFileExists,c=t.originalDirectoryExists,u=t.originalCreateDirectory,l=t.originalWriteFile,f=t.originalGetSourceFile,p=t.readFileWithCache;var g=T;T=p;var _=getGlobalDependencyGraph();reportBuildQueue(_);var m=false;for(var y=0,h=_.buildQueue;y<h.length;y++){var v=h[y];var S=parseConfigFile(v);if(S===undefined){reportParseConfigFileDiagnostic(v);m=true;break}var b=S.errors;var x=getUpToDateStatus(S);verboseReportProjectStatus(v,x);var C=S.options.configFilePath;if(x.type===i.UpToDate&&!d.force){reportAndStoreErrors(v,b);if(s.dry){reportStatus(e.Diagnostics.Project_0_is_up_to_date,C)}continue}if(x.type===i.UpToDateWithUpstreamTypes&&!d.force){reportAndStoreErrors(v,b);updateOutputTimestamps(S);continue}if(x.type===i.UpstreamBlocked){reportAndStoreErrors(v,b);if(d.verbose)reportStatus(e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,C,x.upstreamProjectName);continue}if(x.type===i.ContainerOnly){reportAndStoreErrors(v,b);continue}var E=buildSingleProject(v);m=m||!!(E&n.AnyErrors)}reportErrorSummary();a.readFile=r;a.fileExists=o;a.directoryExists=c;a.createDirectory=u;a.writeFile=l;T=g;a.getSourceFile=f;return m?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function reportParseConfigFileDiagnostic(e){reportAndStoreErrors(e,[g.getValue(e)])}function reportAndStoreErrors(e,t){reportErrors(t);x.setValue(e,true);S.setValue(e,t)}function reportErrors(e){e.forEach(function(e){return a.reportDiagnostic(e)})}function reportBuildQueue(t){if(d.verbose){reportStatus(e.Diagnostics.Projects_in_this_build_Colon_0,t.buildQueue.map(function(e){return"\r\n * "+relName(e)}).join(""))}}function relName(t){return e.convertToRelativePath(t,a.getCurrentDirectory(),function(e){return a.getCanonicalFileName(e)})}function verboseReportProjectStatus(e,t){if(!d.verbose)return;return formatUpToDateStatus(e,t,relName,reportStatus)}}e.createSolutionBuilder=createSolutionBuilder;function resolveConfigFileProjectName(t){if(e.fileExtensionIs(t,".json")){return t}return e.combinePaths(t,"tsconfig.json")}e.resolveConfigFileProjectName=resolveConfigFileProjectName;function getAllProjectOutputs(e){if(e.options.outFile||e.options.out){return getOutFileOutputs(e)}else{var t=[];for(var r=0,n=e.fileNames;r<n.length;r++){var i=n[r];t.push.apply(t,getOutputFileNames(i,e))}return t}}e.getAllProjectOutputs=getAllProjectOutputs;function formatUpToDateStatus(t,r,n,a){switch(r.type){case i.OutOfDateWithSelf:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,n(t),n(r.outOfDateOutputFileName),n(r.newerInputFileName));case i.OutOfDateWithUpstream:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,n(t),n(r.outOfDateOutputFileName),n(r.newerProjectName));case i.OutputMissing:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,n(t),n(r.missingOutputFileName));case i.UpToDate:if(r.newestInputFileTime!==undefined){return a(e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,n(t),n(r.newestInputFileName||""),n(r.oldestOutputFileName||""))}break;case i.UpToDateWithUpstreamTypes:return a(e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,n(t));case i.UpstreamOutOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,n(t),n(r.upstreamProjectName));case i.UpstreamBlocked:return a(e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,n(t),n(r.upstreamProjectName));case i.Unbuildable:return a(e.Diagnostics.Failed_to_parse_file_0_Colon_1,n(t),r.reason);case i.ContainerOnly:case i.ComputingUpstream:break;default:e.assertType(r)}}e.formatUpToDateStatus=formatUpToDateStatus})(s||(s={}));var s;(function(e){var t;(function(e){e[e["Const"]=0]="Const";e[e["Array"]=1]="Array";e[e["FunctionOrClass"]=2]="FunctionOrClass";e[e["Object"]=3]="Object"})(t=e.ValueKind||(e.ValueKind={}));function inspectModule(t){return inspectValue(e.removeFileExtension(e.getBaseFileName(t)),tryRequire(t))}e.inspectModule=inspectModule;function inspectValue(e,t){return getValueInfo(e,t,getRecurser())}e.inspectValue=inspectValue;function getRecurser(){var e=new Set;var t=[];return function(r,n,i,a){if(e.has(r)||t.length>4){return a(e.has(r),t)}e.add(r);t.push(n);var o=i();t.pop();e.delete(r);return o}}function getValueInfo(t,r,n){return n(r,t,function(){if(typeof r==="function")return getFunctionOrClassInfo(r,t,n);if(typeof r==="object"){var i=getBuiltinType(t,r,n);if(i!==undefined)return i;var a=getEntriesOfObject(r);var o=Object.getPrototypeOf(r)!==Object.prototype;var s=e.flatMap(a,function(e){var t=e.key,r=e.value;return getValueInfo(t,r,n)});return{kind:3,name:t,hasNontrivialPrototype:o,members:s}}return{kind:0,name:t,typeName:isNullOrUndefined(r)?"any":typeof r}},function(e,r){return anyValue(t," "+(e?"Circular reference":"Too-deep object hierarchy")+" from "+r.join("."))})}function getFunctionOrClassInfo(t,r,n){var i=getPrototypeMembers(t,n);var a=e.flatMap(getEntriesOfObject(t),function(e){var t=e.key,r=e.value;return getValueInfo(t,r,n)});var o=e.cast(Function.prototype.toString.call(t),e.isString);var s=e.stringContains(o,"{ [native code] }")?getFunctionLength(t):o;return{kind:2,name:r,source:s,namespaceMembers:a,prototypeMembers:i}}var r=e.memoize(function(){var t=e.createMap();for(var r=0,n=getEntriesOfObject(global);r<n.length;r++){var i=n[r],a=i.key,o=i.value;if(typeof o==="function"&&typeof o.prototype==="object"&&o!==Object){t.set(a,o)}}return t});function getBuiltinType(t,n,i){return e.isArray(n)?{name:t,kind:1,inner:n.length&&getValueInfo("element",e.first(n),i)||anyValue(t)}:e.forEachEntry(r(),function(e,r){return n instanceof e?{kind:0,name:t,typeName:r}:undefined})}function getPrototypeMembers(t,r){var n=t.prototype;return typeof n!=="object"||n===null?e.emptyArray:e.mapDefined(getEntriesOfObject(n),function(e){var t=e.key,n=e.value;return t==="constructor"?undefined:getValueInfo(t,n,r)})}var n=new Set(["arguments","caller","constructor","eval","super_"]);var i=new Set(Object.getOwnPropertyNames(e.noop));function getEntriesOfObject(t){var r=e.createMap();var a=[];var o=t;while(!isNullOrUndefined(o)&&o!==Object.prototype&&o!==Function.prototype){for(var s=0,c=Object.getOwnPropertyNames(o);s<c.length;s++){var u=c[s];if(!isJsPrivate(u)&&!n.has(u)&&(typeof t!=="function"||!i.has(u))&&e.addToSeen(r,u)){var l=safeGetPropertyOfObject(o,u);if(!(u==="toString"&&typeof l==="function"&&l.length===0)){a.push({key:u,value:l})}}}o=Object.getPrototypeOf(o)}return a.sort(function(t,r){return e.compareStringsCaseSensitive(t.key,r.key)})}function getFunctionLength(t){return e.tryCast(safeGetPropertyOfObject(t,"length"),e.isNumber)||0}function safeGetPropertyOfObject(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return r&&r.value}function isNullOrUndefined(e){return e==null}function anyValue(e,t){return{kind:0,name:e,typeName:"any",comment:t}}function isJsPrivate(e){return e.startsWith("_")}e.isJsPrivate=isJsPrivate;function tryRequire(e){try{return require(e)}catch(e){return undefined}}})(s||(s={}));var s;(function(e){var t;(function(t){t.ActionSet="action::set";t.ActionInvalidate="action::invalidate";t.ActionPackageInstalled="action::packageInstalled";t.ActionValueInspected="action::valueInspected";t.EventTypesRegistry="event::typesRegistry";t.EventBeginInstallTypes="event::beginInstallTypes";t.EventEndInstallTypes="event::endInstallTypes";t.EventInitializationFailed="event::initializationFailed";var r;(function(e){e.GlobalCacheLocation="--globalTypingsCacheLocation";e.LogFile="--logFile";e.EnableTelemetry="--enableTelemetry";e.TypingSafeListLocation="--typingSafeListLocation";e.TypesMapLocation="--typesMapLocation";e.NpmLocation="--npmLocation"})(r=t.Arguments||(t.Arguments={}));function hasArgument(t){return e.sys.args.indexOf(t)>=0}t.hasArgument=hasArgument;function findArgument(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:undefined}t.findArgument=findArgument;function nowString(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}t.nowString=nowString})(t=e.server||(e.server={}))})(s||(s={}));var s;(function(e){var t;(function(t){function isTypingUpToDate(t,r){var n=new e.Version(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest"));return n.compareTo(t.version)<=0}t.isTypingUpToDate=isTypingUpToDate;t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"];t.nodeCoreModules=e.arrayToSet(t.nodeCoreModuleList);function loadSafeList(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});return e.createMapFromTemplate(n.config)}t.loadSafeList=loadSafeList;function loadTypesMap(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});if(n.config){return e.createMapFromTemplate(n.config.simpleMap)}return undefined}t.loadTypesMap=loadTypesMap;function discoverTypings(r,n,i,a,o,s,c,u,l){if(!c||!c.enable){return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]}}var f=e.createMap();i=e.mapDefined(i,function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r)){return r}});var d=[];if(c.include)addInferredTypings(c.include,"Explicitly included types");var p=c.exclude||[];var g=e.arrayToSet(i,e.getDirectoryPath);g.set(a,true);g.forEach(function(t,r){var n=e.combinePaths(r,"package.json");getTypingNamesFromJson(n,d);var i=e.combinePaths(r,"bower.json");getTypingNamesFromJson(i,d);var a=e.combinePaths(r,"bower_components");getTypingNamesFromPackagesFolder(a,d);var o=e.combinePaths(r,"node_modules");getTypingNamesFromPackagesFolder(o,d)});getTypingNamesFromSourceFileNames(i);if(u){var _=e.deduplicate(u.map(function(e){return t.nodeCoreModules.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);addInferredTypings(_,"Inferred typings from unresolved imports")}s.forEach(function(e,t){var r=l.get(t);if(f.has(t)&&f.get(t)===undefined&&r!==undefined&&isTypingUpToDate(e,r)){f.set(t,e.typingLocation)}});for(var m=0,y=p;m<y.length;m++){var h=y[m];var v=f.delete(h);if(v&&n)n("Typing for "+h+" is in exclude list, will be ignored.")}var T=[];var S=[];f.forEach(function(e,t){if(e!==undefined){S.push(e)}else{T.push(t)}});var b={cachedTypingPaths:S,newTypingNames:T,filesToWatch:d};if(n)n("Result: "+JSON.stringify(b));return b;function addInferredTyping(e){if(!f.has(e)){f.set(e,undefined)}}function addInferredTypings(t,r){if(n)n(r+": "+JSON.stringify(t));e.forEach(t,addInferredTyping)}function getTypingNamesFromJson(t,n){if(!r.fileExists(t)){return}n.push(t);var i=e.readConfigFile(t,function(e){return r.readFile(e)}).config;var a=e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys);addInferredTypings(a,"Typing names in '"+t+"' dependencies")}function getTypingNamesFromSourceFileNames(t){var r=e.mapDefined(t,function(t){if(!e.hasJSFileExtension(t))return undefined;var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase()));var n=e.removeMinAndVersionNumbers(r);return o.get(n)});if(r.length){addInferredTypings(r,"Inferred typings from file names")}var i=e.some(t,function(t){return e.fileExtensionIs(t,".jsx")});if(i){if(n)n("Inferred 'react' typings due to presence of '.jsx' extension");addInferredTyping("react")}}function getTypingNamesFromPackagesFolder(t,i){i.push(t);if(!r.directoryExists(t)){return}var a=r.readDirectory(t,[".json"],undefined,undefined,2);if(n)n("Searching for typing names in "+t+"; all files: "+JSON.stringify(a));var o=[];for(var s=0,c=a;s<c.length;s++){var u=c[s];var l=e.normalizePath(u);var d=e.getBaseFileName(l);if(d!=="package.json"&&d!=="bower.json"){continue}var p=e.readConfigFile(l,function(e){return r.readFile(e)});var g=p.config;if(d==="package.json"&&g._requiredBy&&e.filter(g._requiredBy,function(e){return e[0]==="#"||e==="/"}).length===0){continue}if(!g.name){continue}var _=g.types||g.typings;if(_){var m=e.getNormalizedAbsolutePath(_,e.getDirectoryPath(l));if(n)n(" Package '"+g.name+"' provides its own types.");f.set(g.name,m)}else{o.push(g.name)}}addInferredTypings(o," Found package names")}}t.discoverTypings=discoverTypings;var r;(function(e){e[e["Ok"]=0]="Ok";e[e["ScopedPackagesNotSupported"]=1]="ScopedPackagesNotSupported";e[e["EmptyName"]=2]="EmptyName";e[e["NameTooLong"]=3]="NameTooLong";e[e["NameStartsWithDot"]=4]="NameStartsWithDot";e[e["NameStartsWithUnderscore"]=5]="NameStartsWithUnderscore";e[e["NameContainsNonURISafeCharacters"]=6]="NameContainsNonURISafeCharacters"})(r=t.PackageNameValidationResult||(t.PackageNameValidationResult={}));var n=214;function validatePackageName(e){if(!e){return 2}if(e.length>n){return 3}if(e.charCodeAt(0)===46){return 4}if(e.charCodeAt(0)===95){return 5}if(/^@[^/]+\/[^/]+$/.test(e)){return 1}if(encodeURIComponent(e)!==e){return 6}return 0}t.validatePackageName=validatePackageName;function renderPackageNameValidationFailure(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+n+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}t.renderPackageNameValidationFailure=renderPackageNameValidationFailure})(t=e.JsTyping||(e.JsTyping={}))})(s||(s={}));var s;(function(e){var t;(function(e){var t=function(){function StringScriptSnapshot(e){this.text=e}StringScriptSnapshot.prototype.getText=function(e,t){return e===0&&t===this.text.length?this.text:this.text.substring(e,t)};StringScriptSnapshot.prototype.getLength=function(){return this.text.length};StringScriptSnapshot.prototype.getChangeRange=function(){return undefined};return StringScriptSnapshot}();function fromString(e){return new t(e)}e.fromString=fromString})(t=e.ScriptSnapshot||(e.ScriptSnapshot={}));e.emptyOptions={};var r;(function(e){e["none"]="none";e["definition"]="definition";e["reference"]="reference";e["writtenReference"]="writtenReference"})(r=e.HighlightSpanKind||(e.HighlightSpanKind={}));var n;(function(e){e[e["None"]=0]="None";e[e["Block"]=1]="Block";e[e["Smart"]=2]="Smart"})(n=e.IndentStyle||(e.IndentStyle={}));function getDefaultFormatCodeSettings(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:true,indentStyle:n.Smart,insertSpaceAfterConstructor:false,insertSpaceAfterCommaDelimiter:true,insertSpaceAfterSemicolonInForStatements:true,insertSpaceBeforeAndAfterBinaryOperators:true,insertSpaceAfterKeywordsInControlFlowStatements:true,insertSpaceAfterFunctionKeywordForAnonymousFunctions:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:true,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:false,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:false,insertSpaceBeforeFunctionParenthesis:false,placeOpenBraceOnNewLineForFunctions:false,placeOpenBraceOnNewLineForControlBlocks:false}}e.getDefaultFormatCodeSettings=getDefaultFormatCodeSettings;e.testFormatSettings=getDefaultFormatCodeSettings("\n");var i;(function(e){e[e["aliasName"]=0]="aliasName";e[e["className"]=1]="className";e[e["enumName"]=2]="enumName";e[e["fieldName"]=3]="fieldName";e[e["interfaceName"]=4]="interfaceName";e[e["keyword"]=5]="keyword";e[e["lineBreak"]=6]="lineBreak";e[e["numericLiteral"]=7]="numericLiteral";e[e["stringLiteral"]=8]="stringLiteral";e[e["localName"]=9]="localName";e[e["methodName"]=10]="methodName";e[e["moduleName"]=11]="moduleName";e[e["operator"]=12]="operator";e[e["parameterName"]=13]="parameterName";e[e["propertyName"]=14]="propertyName";e[e["punctuation"]=15]="punctuation";e[e["space"]=16]="space";e[e["text"]=17]="text";e[e["typeParameterName"]=18]="typeParameterName";e[e["enumMemberName"]=19]="enumMemberName";e[e["functionName"]=20]="functionName";e[e["regularExpressionLiteral"]=21]="regularExpressionLiteral"})(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var a;(function(e){e["Comment"]="comment";e["Region"]="region";e["Code"]="code";e["Imports"]="imports"})(a=e.OutliningSpanKind||(e.OutliningSpanKind={}));var o;(function(e){e[e["JavaScript"]=0]="JavaScript";e[e["SourceMap"]=1]="SourceMap";e[e["Declaration"]=2]="Declaration"})(o=e.OutputFileType||(e.OutputFileType={}));var s;(function(e){e[e["None"]=0]="None";e[e["InMultiLineCommentTrivia"]=1]="InMultiLineCommentTrivia";e[e["InSingleQuoteStringLiteral"]=2]="InSingleQuoteStringLiteral";e[e["InDoubleQuoteStringLiteral"]=3]="InDoubleQuoteStringLiteral";e[e["InTemplateHeadOrNoSubstitutionTemplate"]=4]="InTemplateHeadOrNoSubstitutionTemplate";e[e["InTemplateMiddleOrTail"]=5]="InTemplateMiddleOrTail";e[e["InTemplateSubstitutionPosition"]=6]="InTemplateSubstitutionPosition"})(s=e.EndOfLineState||(e.EndOfLineState={}));var c;(function(e){e[e["Punctuation"]=0]="Punctuation";e[e["Keyword"]=1]="Keyword";e[e["Operator"]=2]="Operator";e[e["Comment"]=3]="Comment";e[e["Whitespace"]=4]="Whitespace";e[e["Identifier"]=5]="Identifier";e[e["NumberLiteral"]=6]="NumberLiteral";e[e["BigIntLiteral"]=7]="BigIntLiteral";e[e["StringLiteral"]=8]="StringLiteral";e[e["RegExpLiteral"]=9]="RegExpLiteral"})(c=e.TokenClass||(e.TokenClass={}));var u;(function(e){e["unknown"]="";e["warning"]="warning";e["keyword"]="keyword";e["scriptElement"]="script";e["moduleElement"]="module";e["classElement"]="class";e["localClassElement"]="local class";e["interfaceElement"]="interface";e["typeElement"]="type";e["enumElement"]="enum";e["enumMemberElement"]="enum member";e["variableElement"]="var";e["localVariableElement"]="local var";e["functionElement"]="function";e["localFunctionElement"]="local function";e["memberFunctionElement"]="method";e["memberGetAccessorElement"]="getter";e["memberSetAccessorElement"]="setter";e["memberVariableElement"]="property";e["constructorImplementationElement"]="constructor";e["callSignatureElement"]="call";e["indexSignatureElement"]="index";e["constructSignatureElement"]="construct";e["parameterElement"]="parameter";e["typeParameterElement"]="type parameter";e["primitiveType"]="primitive type";e["label"]="label";e["alias"]="alias";e["constElement"]="const";e["letElement"]="let";e["directory"]="directory";e["externalModuleName"]="external module name";e["jsxAttribute"]="JSX attribute";e["string"]="string"})(u=e.ScriptElementKind||(e.ScriptElementKind={}));var l;(function(e){e["none"]="";e["publicMemberModifier"]="public";e["privateMemberModifier"]="private";e["protectedMemberModifier"]="protected";e["exportedModifier"]="export";e["ambientModifier"]="declare";e["staticModifier"]="static";e["abstractModifier"]="abstract";e["optionalModifier"]="optional";e["dtsModifier"]=".d.ts";e["tsModifier"]=".ts";e["tsxModifier"]=".tsx";e["jsModifier"]=".js";e["jsxModifier"]=".jsx";e["jsonModifier"]=".json"})(l=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var f;(function(e){e["comment"]="comment";e["identifier"]="identifier";e["keyword"]="keyword";e["numericLiteral"]="number";e["bigintLiteral"]="bigint";e["operator"]="operator";e["stringLiteral"]="string";e["whiteSpace"]="whitespace";e["text"]="text";e["punctuation"]="punctuation";e["className"]="class name";e["enumName"]="enum name";e["interfaceName"]="interface name";e["moduleName"]="module name";e["typeParameterName"]="type parameter name";e["typeAliasName"]="type alias name";e["parameterName"]="parameter name";e["docCommentTagName"]="doc comment tag name";e["jsxOpenTagName"]="jsx open tag name";e["jsxCloseTagName"]="jsx close tag name";e["jsxSelfClosingTagName"]="jsx self closing tag name";e["jsxAttribute"]="jsx attribute";e["jsxText"]="jsx text";e["jsxAttributeStringLiteralValue"]="jsx attribute string literal value"})(f=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var d;(function(e){e[e["comment"]=1]="comment";e[e["identifier"]=2]="identifier";e[e["keyword"]=3]="keyword";e[e["numericLiteral"]=4]="numericLiteral";e[e["operator"]=5]="operator";e[e["stringLiteral"]=6]="stringLiteral";e[e["regularExpressionLiteral"]=7]="regularExpressionLiteral";e[e["whiteSpace"]=8]="whiteSpace";e[e["text"]=9]="text";e[e["punctuation"]=10]="punctuation";e[e["className"]=11]="className";e[e["enumName"]=12]="enumName";e[e["interfaceName"]=13]="interfaceName";e[e["moduleName"]=14]="moduleName";e[e["typeParameterName"]=15]="typeParameterName";e[e["typeAliasName"]=16]="typeAliasName";e[e["parameterName"]=17]="parameterName";e[e["docCommentTagName"]=18]="docCommentTagName";e[e["jsxOpenTagName"]=19]="jsxOpenTagName";e[e["jsxCloseTagName"]=20]="jsxCloseTagName";e[e["jsxSelfClosingTagName"]=21]="jsxSelfClosingTagName";e[e["jsxAttribute"]=22]="jsxAttribute";e[e["jsxText"]=23]="jsxText";e[e["jsxAttributeStringLiteralValue"]=24]="jsxAttributeStringLiteralValue";e[e["bigintLiteral"]=25]="bigintLiteral"})(d=e.ClassificationType||(e.ClassificationType={}))})(s||(s={}));var s;(function(e){e.scanner=e.createScanner(6,true);var t;(function(e){e[e["None"]=0]="None";e[e["Value"]=1]="Value";e[e["Type"]=2]="Type";e[e["Namespace"]=4]="Namespace";e[e["All"]=7]="All"})(t=e.SemanticMeaning||(e.SemanticMeaning={}));function getMeaningFromDeclaration(t){switch(t.kind){case 237:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 151:case 186:case 154:case 153:case 275:case 276:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 274:case 267:return 1;case 150:case 241:case 242:case 168:return 2;case 304:return t.name===undefined?1|2:2;case 278:case 240:return 1|2;case 244:if(e.isAmbientModule(t)){return 4|1}else if(e.getModuleInstanceState(t)===1){return 4|1}else{return 4}case 243:case 252:case 253:case 248:case 249:case 254:case 255:return 7;case 279:return 4|1}return 7}e.getMeaningFromDeclaration=getMeaningFromDeclaration;function getMeaningFromLocation(t){if(t.kind===279){return 1}else if(t.parent.kind===254||t.parent.kind===259){return 7}else if(isInRightSideOfInternalImportEqualsDeclaration(t)){return getMeaningFromRightHandSideOfImportEquals(t)}else if(e.isDeclarationName(t)){return getMeaningFromDeclaration(t.parent)}else if(isTypeReference(t)){return 2}else if(isNamespaceReference(t)){return 4}else if(e.isTypeParameterDeclaration(t.parent)){e.Debug.assert(e.isJSDocTemplateTag(t.parent.parent));return 2}else if(e.isLiteralTypeNode(t.parent)){return 2|1}else{return 1}}e.getMeaningFromLocation=getMeaningFromLocation;function getMeaningFromRightHandSideOfImportEquals(t){var r=t.kind===148?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:undefined;return r&&r.parent.kind===248?7:4}function isInRightSideOfInternalImportEqualsDeclaration(t){while(t.parent.kind===148){t=t.parent}return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}e.isInRightSideOfInternalImportEqualsDeclaration=isInRightSideOfInternalImportEqualsDeclaration;function isNamespaceReference(e){return isQualifiedNameNamespaceReference(e)||isPropertyAccessNamespaceReference(e)}function isQualifiedNameNamespaceReference(e){var t=e;var r=true;if(t.parent.kind===148){while(t.parent&&t.parent.kind===148){t=t.parent}r=t.right===e}return t.parent.kind===164&&!r}function isPropertyAccessNamespaceReference(e){var t=e;var r=true;if(t.parent.kind===189){while(t.parent&&t.parent.kind===189){t=t.parent}r=t.name===e}if(!r&&t.parent.kind===211&&t.parent.parent.kind===273){var n=t.parent.parent.parent;return n.kind===240&&t.parent.parent.token===109||n.kind===241&&t.parent.parent.token===86}return false}function isTypeReference(t){if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}switch(t.kind){case 100:return!e.isExpressionNode(t);case 178:return true}switch(t.parent.kind){case 164:return true;case 183:return!t.parent.isTypeOf;case 211:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return false}function isCallExpressionTarget(t){return isCallOrNewExpressionTargetWorker(t,e.isCallExpression)}e.isCallExpressionTarget=isCallExpressionTarget;function isNewExpressionTarget(t){return isCallOrNewExpressionTargetWorker(t,e.isNewExpression)}e.isNewExpressionTarget=isNewExpressionTarget;function isCallOrNewExpressionTarget(t){return isCallOrNewExpressionTargetWorker(t,e.isCallOrNewExpression)}e.isCallOrNewExpressionTarget=isCallOrNewExpressionTarget;function isCallOrNewExpressionTargetWorker(e,t){var r=climbPastPropertyAccess(e);return!!r&&!!r.parent&&t(r.parent)&&r.parent.expression===r}function climbPastPropertyAccess(e){return isRightSideOfPropertyAccess(e)?e.parent:e}e.climbPastPropertyAccess=climbPastPropertyAccess;function getTargetLabel(e,t){while(e){if(e.kind===233&&e.label.escapedText===t){return e.label}e=e.parent}return undefined}e.getTargetLabel=getTargetLabel;function hasPropertyAccessExpressionWithName(t,r){if(!e.isPropertyAccessExpression(t.expression)){return false}return t.expression.name.text===r}e.hasPropertyAccessExpressionWithName=hasPropertyAccessExpressionWithName;function isJumpStatementTarget(t){return t.kind===72&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}e.isJumpStatementTarget=isJumpStatementTarget;function isLabelOfLabeledStatement(t){return t.kind===72&&e.isLabeledStatement(t.parent)&&t.parent.label===t}e.isLabelOfLabeledStatement=isLabelOfLabeledStatement;function isLabelName(e){return isLabelOfLabeledStatement(e)||isJumpStatementTarget(e)}e.isLabelName=isLabelName;function isTagName(t){return e.isJSDocTag(t.parent)&&t.parent.tagName===t}e.isTagName=isTagName;function isRightSideOfQualifiedName(e){return e.parent.kind===148&&e.parent.right===e}e.isRightSideOfQualifiedName=isRightSideOfQualifiedName;function isRightSideOfPropertyAccess(e){return e&&e.parent&&e.parent.kind===189&&e.parent.name===e}e.isRightSideOfPropertyAccess=isRightSideOfPropertyAccess;function isNameOfModuleDeclaration(e){return e.parent.kind===244&&e.parent.name===e}e.isNameOfModuleDeclaration=isNameOfModuleDeclaration;function isNameOfFunctionDeclaration(t){return t.kind===72&&e.isFunctionLike(t.parent)&&t.parent.name===t}e.isNameOfFunctionDeclaration=isNameOfFunctionDeclaration;function isLiteralNameOfPropertyDeclarationOrIndexAccess(t){switch(t.parent.kind){case 154:case 153:case 275:case 278:case 156:case 155:case 158:case 159:case 244:return e.getNameOfDeclaration(t.parent)===t;case 190:return t.parent.argumentExpression===t;case 149:return true;case 182:return t.parent.parent.kind===180;default:return false}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=isLiteralNameOfPropertyDeclarationOrIndexAccess;function isExpressionOfExternalModuleImportEqualsDeclaration(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t}e.isExpressionOfExternalModuleImportEqualsDeclaration=isExpressionOfExternalModuleImportEqualsDeclaration;function getContainerNode(t){if(e.isJSDocTypeAlias(t)){t=t.parent.parent}while(true){t=t.parent;if(!t){return undefined}switch(t.kind){case 279:case 156:case 155:case 239:case 196:case 158:case 159:case 240:case 241:case 243:case 244:return t}}}e.getContainerNode=getContainerNode;function getNodeKind(t){switch(t.kind){case 279:return e.isExternalModule(t)?"module":"script";case 244:return"module";case 240:case 209:return"class";case 241:return"interface";case 242:case 297:case 304:return"type";case 243:return"enum";case 237:return getKindOfVariableDeclaration(t);case 186:return getKindOfVariableDeclaration(e.getRootDeclaration(t));case 197:case 239:case 196:return"function";case 158:return"getter";case 159:return"setter";case 156:case 155:return"method";case 154:case 153:return"property";case 162:return"index";case 161:return"construct";case 160:return"call";case 157:return"constructor";case 150:return"type parameter";case 278:return"enum member";case 151:return e.hasModifier(t,92)?"property":"parameter";case 248:case 253:case 257:case 251:return"alias";case 204:var r=e.getAssignmentDeclarationKind(t);var n=t.right;switch(r){case 7:case 8:case 9:case 0:return"";case 1:case 2:var i=getNodeKind(n);return i===""?"const":i;case 3:return e.isFunctionExpression(n)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(n)?"method":"property";case 6:return"local class";default:{e.assertType(r);return""}}case 72:return e.isImportClause(t.parent)?"alias":"";default:return""}function getKindOfVariableDeclaration(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}}e.getNodeKind=getNodeKind;function isThis(t){switch(t.kind){case 100:return true;case 72:return e.identifierIsThisKeyword(t)&&t.parent.kind===151;default:return false}}e.isThis=isThis;var r=/^\/\/\/\s*</;function getLineStartPositionForPosition(t,r){var n=e.getLineStarts(r);var i=r.getLineAndCharacterOfPosition(t).line;return n[i]}e.getLineStartPositionForPosition=getLineStartPositionForPosition;function rangeContainsRange(e,t){return startEndContainsRange(e.pos,e.end,t)}e.rangeContainsRange=rangeContainsRange;function rangeContainsRangeExclusive(e,t){return rangeContainsPositionExclusive(e,t.pos)&&rangeContainsPositionExclusive(e,t.end)}e.rangeContainsRangeExclusive=rangeContainsRangeExclusive;function rangeContainsPosition(e,t){return e.pos<=t&&t<=e.end}e.rangeContainsPosition=rangeContainsPosition;function rangeContainsPositionExclusive(e,t){return e.pos<t&&t<e.end}e.rangeContainsPositionExclusive=rangeContainsPositionExclusive;function startEndContainsRange(e,t,r){return e<=r.pos&&t>=r.end}e.startEndContainsRange=startEndContainsRange;function rangeContainsStartEnd(e,t,r){return e.pos<=t&&e.end>=r}e.rangeContainsStartEnd=rangeContainsStartEnd;function rangeOverlapsWithStartEnd(e,t,r){return startEndOverlapsWithStartEnd(e.pos,e.end,t,r)}e.rangeOverlapsWithStartEnd=rangeOverlapsWithStartEnd;function nodeOverlapsWithStartEnd(e,t,r,n){return startEndOverlapsWithStartEnd(e.getStart(t),e.end,r,n)}e.nodeOverlapsWithStartEnd=nodeOverlapsWithStartEnd;function startEndOverlapsWithStartEnd(e,t,r,n){var i=Math.max(e,r);var a=Math.min(t,n);return i<a}e.startEndOverlapsWithStartEnd=startEndOverlapsWithStartEnd;function positionBelongsToNode(t,r,n){e.Debug.assert(t.pos<=r);return r<t.end||!isCompletedNode(t,n)}e.positionBelongsToNode=positionBelongsToNode;function isCompletedNode(t,r){if(t===undefined||e.nodeIsMissing(t)){return false}switch(t.kind){case 240:case 241:case 243:case 188:case 184:case 168:case 218:case 245:case 246:case 252:case 256:return nodeEndsWith(t,19,r);case 274:return isCompletedNode(t.block,r);case 192:if(!t.arguments){return true}case 191:case 195:case 177:return nodeEndsWith(t,21,r);case 165:case 166:return isCompletedNode(t.type,r);case 157:case 158:case 159:case 239:case 196:case 156:case 155:case 161:case 160:case 197:if(t.body){return isCompletedNode(t.body,r)}if(t.type){return isCompletedNode(t.type,r)}return hasChildOfKind(t,21,r);case 244:return!!t.body&&isCompletedNode(t.body,r);case 222:if(t.elseStatement){return isCompletedNode(t.elseStatement,r)}return isCompletedNode(t.thenStatement,r);case 221:return isCompletedNode(t.expression,r)||hasChildOfKind(t,26,r);case 187:case 185:case 190:case 149:case 170:return nodeEndsWith(t,23,r);case 162:if(t.type){return isCompletedNode(t.type,r)}return hasChildOfKind(t,23,r);case 271:case 272:return false;case 225:case 226:case 227:case 224:return isCompletedNode(t.statement,r);case 223:return hasChildOfKind(t,107,r)?nodeEndsWith(t,21,r):isCompletedNode(t.statement,r);case 167:return isCompletedNode(t.exprName,r);case 199:case 198:case 200:case 207:case 208:var n=t;return isCompletedNode(n.expression,r);case 193:return isCompletedNode(t.template,r);case 206:var i=e.lastOrUndefined(t.templateSpans);return isCompletedNode(i,r);case 216:return e.nodeIsPresent(t.literal);case 255:case 249:return e.nodeIsPresent(t.moduleSpecifier);case 202:return isCompletedNode(t.operand,r);case 204:return isCompletedNode(t.right,r);case 205:return isCompletedNode(t.whenFalse,r);default:return true}}function nodeEndsWith(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r){return true}else if(a.kind===26&&i.length!==1){return i[i.length-2].kind===r}}return false}function findListItemInfo(t){var r=findContainingList(t);if(!r){return undefined}var n=r.getChildren();var i=e.indexOfNode(n,t);return{listItemIndex:i,list:r}}e.findListItemInfo=findListItemInfo;function hasChildOfKind(e,t,r){return!!findChildOfKind(e,t,r)}e.hasChildOfKind=hasChildOfKind;function findChildOfKind(t,r,n){return e.find(t.getChildren(n),function(e){return e.kind===r})}e.findChildOfKind=findChildOfKind;function findContainingList(t){var r=e.find(t.parent.getChildren(),function(r){return e.isSyntaxList(r)&&rangeContainsRange(r,t)});e.Debug.assert(!r||e.contains(r.getChildren(),t));return r}e.findContainingList=findContainingList;function getTouchingPropertyName(t,r){return getTouchingToken(t,r,function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)})}e.getTouchingPropertyName=getTouchingPropertyName;function getTouchingToken(e,t,r){return getTokenAtPositionWorker(e,t,false,r,false)}e.getTouchingToken=getTouchingToken;function getTokenAtPosition(e,t){return getTokenAtPositionWorker(e,t,true,undefined,false)}e.getTokenAtPosition=getTokenAtPosition;function getTokenAtPositionWorker(e,t,r,n,i){var a=e;e:while(true){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];var u=r?c.getFullStart():c.getStart(e,true);if(u>t){break}var l=c.getEnd();if(t<l||t===l&&(c.kind===1||i)){a=c;continue e}else if(n&&l===t){var f=findPrecedingToken(t,e,c);if(f&&n(f)){return f}}}return a}}function findTokenOnLeftOfPosition(t,r){var n=getTokenAtPosition(t,r);if(e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()){return n}return findPrecedingToken(r,t)}e.findTokenOnLeftOfPosition=findTokenOnLeftOfPosition;function findNextToken(t,r,n){return find(r);function find(r){if(e.isToken(r)&&r.pos===t.end){return r}return e.firstDefined(r.getChildren(),function(e){var r=e.pos<=t.pos&&e.end>t.end||e.pos===t.end;return r&&nodeHasTokens(e,n)?find(e):undefined})}}e.findNextToken=findNextToken;function findPrecedingToken(t,r,n,i){var a=find(n||r);e.Debug.assert(!(a&&isWhiteSpaceOnlyJsxText(a)));return a;function find(a){if(isNonWhitespaceToken(a)&&a.kind!==1){return a}var o=a.getChildren(r);for(var s=0;s<o.length;s++){var c=o[s];if(t<c.end){var u=c.getStart(r,!i);var l=u>=t||!nodeHasTokens(c,r)||isWhiteSpaceOnlyJsxText(c);if(l){var f=findRightmostChildNodeWithTokens(o,s,r);return f&&findRightmostToken(f,r)}else{return find(c)}}}e.Debug.assert(n!==undefined||a.kind===279||a.kind===1||e.isJSDocCommentContainingNode(a));var d=findRightmostChildNodeWithTokens(o,o.length,r);return d&&findRightmostToken(d,r)}}e.findPrecedingToken=findPrecedingToken;function isNonWhitespaceToken(t){return e.isToken(t)&&!isWhiteSpaceOnlyJsxText(t)}function findRightmostToken(e,t){if(isNonWhitespaceToken(e)){return e}var r=e.getChildren(t);var n=findRightmostChildNodeWithTokens(r,r.length,t);return n&&findRightmostToken(n,t)}function findRightmostChildNodeWithTokens(t,r,n){for(var i=r-1;i>=0;i--){var a=t[i];if(isWhiteSpaceOnlyJsxText(a)){e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`")}else if(nodeHasTokens(t[i],n)){return t[i]}}}function isInString(t,r,n){if(n===void 0){n=findPrecedingToken(r,t)}if(n&&e.isStringTextContainingNode(n)){var i=n.getStart(t);var a=n.getEnd();if(i<r&&r<a){return true}if(r===a){return!!n.isUnterminated}}return false}e.isInString=isInString;function isInsideJsxElementOrAttribute(e,t){var r=getTokenAtPosition(e,t);if(!r){return false}if(r.kind===11){return true}if(r.kind===28&&r.parent.kind===11){return true}if(r.kind===28&&r.parent.kind===270){return true}if(r&&r.kind===19&&r.parent.kind===270){return true}if(r.kind===28&&r.parent.kind===263){return true}return false}e.isInsideJsxElementOrAttribute=isInsideJsxElementOrAttribute;function isWhiteSpaceOnlyJsxText(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function isInTemplateString(t,r){var n=getTokenAtPosition(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)}e.isInTemplateString=isInTemplateString;function isInJSXText(t,r){var n=getTokenAtPosition(t,r);if(e.isJsxText(n)){return true}if(n.kind===18&&e.isJsxExpression(n.parent)&&e.isJsxElement(n.parent.parent)){return true}if(n.kind===28&&e.isJsxOpeningLikeElement(n.parent)&&e.isJsxElement(n.parent.parent)){return true}return false}e.isInJSXText=isInJSXText;function findPrecedingMatchingToken(e,t,r){var n=e.kind;var i=0;while(true){var a=findPrecedingToken(e.getFullStart(),r);if(!a){return undefined}e=a;if(e.kind===t){if(i===0){return e}i--}else if(e.kind===n){i++}}}e.findPrecedingMatchingToken=findPrecedingMatchingToken;function isPossiblyTypeArgumentPosition(t,r,n){var i=getPossibleTypeArgumentsInfo(t,r);return i!==undefined&&(e.isPartOfTypeNode(i.called)||getPossibleGenericSignatures(i.called,i.nTypeArguments,n).length!==0||isPossiblyTypeArgumentPosition(i.called,r,n))}e.isPossiblyTypeArgumentPosition=isPossiblyTypeArgumentPosition;function getPossibleGenericSignatures(t,r,n){var i=n.getTypeAtLocation(t);var a=e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures();return a.filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}e.getPossibleGenericSignatures=getPossibleGenericSignatures;function getPossibleTypeArgumentsInfo(t,r){var n=t;var i=0;var a=0;while(n){switch(n.kind){case 28:n=findPrecedingToken(n.getFullStart(),r);if(!n||!e.isIdentifier(n))return undefined;if(!i){return e.isDeclarationName(n)?undefined:{called:n,nTypeArguments:a}}i--;break;case 48:i=+3;break;case 47:i=+2;break;case 30:i++;break;case 19:n=findPrecedingMatchingToken(n,18,r);if(!n)return undefined;break;case 21:n=findPrecedingMatchingToken(n,20,r);if(!n)return undefined;break;case 23:n=findPrecedingMatchingToken(n,22,r);if(!n)return undefined;break;case 27:a++;break;case 37:case 72:case 10:case 8:case 9:case 102:case 87:case 104:case 86:case 129:case 24:case 50:case 56:case 57:break;default:if(e.isTypeNode(n)){break}return undefined}n=findPrecedingToken(n.getFullStart(),r)}return undefined}e.getPossibleTypeArgumentsInfo=getPossibleTypeArgumentsInfo;function isInComment(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,undefined,n)}e.isInComment=isInComment;function hasDocComment(t,r){var n=getTokenAtPosition(t,r);return!!e.findAncestor(n,e.isJSDoc)}e.hasDocComment=hasDocComment;function nodeHasTokens(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function getNodeModifiers(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0;var n=[];if(r&8)n.push("private");if(r&16)n.push("protected");if(r&4)n.push("public");if(r&32)n.push("static");if(r&128)n.push("abstract");if(r&1)n.push("export");if(t.flags&4194304)n.push("declare");return n.length>0?n.join(","):""}e.getNodeModifiers=getNodeModifiers;function getTypeArgumentOrTypeParameterList(t){if(t.kind===164||t.kind===191){return t.typeArguments}if(e.isFunctionLike(t)||t.kind===240||t.kind===241){return t.typeParameters}return undefined}e.getTypeArgumentOrTypeParameterList=getTypeArgumentOrTypeParameterList;function isComment(e){return e===2||e===3}e.isComment=isComment;function isStringOrRegularExpressionOrTemplateLiteral(t){if(t===10||t===13||e.isTemplateLiteralKind(t)){return true}return false}e.isStringOrRegularExpressionOrTemplateLiteral=isStringOrRegularExpressionOrTemplateLiteral;function isPunctuation(e){return 18<=e&&e<=71}e.isPunctuation=isPunctuation;function isInsideTemplateLiteral(t,r,n){return e.isTemplateLiteralKind(t.kind)&&(t.getStart(n)<r&&r<t.end)||!!t.isUnterminated&&r===t.end}e.isInsideTemplateLiteral=isInsideTemplateLiteral;function isAccessibilityModifier(e){switch(e){case 115:case 113:case 114:return true}return false}e.isAccessibilityModifier=isAccessibilityModifier;function cloneCompilerOptions(t){var r=e.clone(t);e.setConfigFileInOptions(r,t&&t.configFile);return r}e.cloneCompilerOptions=cloneCompilerOptions;function isArrayLiteralOrObjectLiteralDestructuringPattern(e){if(e.kind===187||e.kind===188){if(e.parent.kind===204&&e.parent.left===e&&e.parent.operatorToken.kind===59){return true}if(e.parent.kind===227&&e.parent.initializer===e){return true}if(isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.kind===275?e.parent.parent:e.parent)){return true}}return false}e.isArrayLiteralOrObjectLiteralDestructuringPattern=isArrayLiteralOrObjectLiteralDestructuringPattern;function isInReferenceComment(e,t){return isInReferenceCommentWorker(e,t,true)}e.isInReferenceComment=isInReferenceComment;function isInNonReferenceComment(e,t){return isInReferenceCommentWorker(e,t,false)}e.isInNonReferenceComment=isInNonReferenceComment;function isInReferenceCommentWorker(e,t,n){var i=isInComment(e,t,undefined);return!!i&&n===r.test(e.text.substring(i.pos,i.end))}function createTextSpanFromNode(t,r){return e.createTextSpanFromBounds(t.getStart(r),t.getEnd())}e.createTextSpanFromNode=createTextSpanFromNode;function createTextRangeFromNode(t,r){return e.createRange(t.getStart(r),t.end)}e.createTextRangeFromNode=createTextRangeFromNode;function createTextSpanFromRange(t){return e.createTextSpanFromBounds(t.pos,t.end)}e.createTextSpanFromRange=createTextSpanFromRange;function createTextRangeFromSpan(t){return e.createRange(t.start,t.start+t.length)}e.createTextRangeFromSpan=createTextRangeFromSpan;function createTextChangeFromStartLength(t,r,n){return createTextChange(e.createTextSpan(t,r),n)}e.createTextChangeFromStartLength=createTextChangeFromStartLength;function createTextChange(e,t){return{span:e,newText:t}}e.createTextChange=createTextChange;e.typeKeywords=[120,146,123,87,129,132,96,135,136,138,139,102,106,141,142,143];function isTypeKeyword(t){return e.contains(e.typeKeywords,t)}e.isTypeKeyword=isTypeKeyword;function isExternalModuleSymbol(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}e.isExternalModuleSymbol=isExternalModuleSymbol;function nodeSeenTracker(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=true)}}e.nodeSeenTracker=nodeSeenTracker;function getSnapshotText(e){return e.getText(0,e.getLength())}e.getSnapshotText=getSnapshotText;function repeatString(e,t){var r="";for(var n=0;n<t;n++){r+=e}return r}e.repeatString=repeatString;function skipConstraint(e){return e.isTypeParameter()?e.getConstraint()||e:e}e.skipConstraint=skipConstraint;function getNameFromPropertyName(t){return t.kind===149?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:undefined:e.getTextOfIdentifierOrLiteral(t)}e.getNameFromPropertyName=getNameFromPropertyName;function programContainsEs6Modules(e){return e.getSourceFiles().some(function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator})}e.programContainsEs6Modules=programContainsEs6Modules;function compilerOptionsIndicateEs6Modules(e){return!!e.module||e.target>=2||!!e.noEmit}e.compilerOptionsIndicateEs6Modules=compilerOptionsIndicateEs6Modules;function hostUsesCaseSensitiveFileNames(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():false}e.hostUsesCaseSensitiveFileNames=hostUsesCaseSensitiveFileNames;function hostGetCanonicalFileName(t){return e.createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(t))}e.hostGetCanonicalFileName=hostGetCanonicalFileName;function makeImportIfNecessary(e,t,r,n){return e||t&&t.length?makeImport(e,t,r,n):undefined}e.makeImportIfNecessary=makeImportIfNecessary;function makeImport(t,r,n,i){return e.createImportDeclaration(undefined,undefined,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):undefined):undefined,typeof n==="string"?makeStringLiteral(n,i):n)}e.makeImport=makeImport;function makeStringLiteral(t,r){return e.createLiteral(t,r===0)}e.makeStringLiteral=makeStringLiteral;var n;(function(e){e[e["Single"]=0]="Single";e[e["Double"]=1]="Double"})(n=e.QuotePreference||(e.QuotePreference={}));function quotePreferenceFromString(t,r){return e.isStringDoubleQuoted(t,r)?1:0}e.quotePreferenceFromString=quotePreferenceFromString;function getQuotePreference(t,r){if(r.quotePreference){return r.quotePreference==="single"?0:1}else{var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?quotePreferenceFromString(n,t):1}}e.getQuotePreference=getQuotePreference;function getQuoteFromPreference(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}}e.getQuoteFromPreference=getQuoteFromPreference;function symbolNameNoDefault(t){var r=symbolEscapedNameNoDefault(t);return r===undefined?undefined:e.unescapeLeadingUnderscores(r)}e.symbolNameNoDefault=symbolNameNoDefault;function symbolEscapedNameNoDefault(t){if(t.escapedName!=="default"){return t.escapedName}return e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&r.kind===72?r.escapedText:undefined})}e.symbolEscapedNameNoDefault=symbolEscapedNameNoDefault;function isObjectBindingElementWithoutPropertyName(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName}e.isObjectBindingElementWithoutPropertyName=isObjectBindingElementWithoutPropertyName;function getPropertySymbolFromBindingElement(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}e.getPropertySymbolFromBindingElement=getPropertySymbolFromBindingElement;function getPropertySymbolsFromBaseTypes(t,r,n,i){var a=e.createMap();return recur(t);function recur(t){if(!(t.flags&(32|64))||!e.addToSeen(a,e.getSymbolId(t)))return;return e.firstDefined(t.declarations,function(t){return e.firstDefined(e.getAllSuperTypeNodes(t),function(t){var a=n.getTypeAtLocation(t);var o=a&&a.symbol&&n.getPropertyOfType(a,r);return a&&o&&(e.firstDefined(n.getRootSymbols(o),i)||recur(a.symbol))})})}}e.getPropertySymbolsFromBaseTypes=getPropertySymbolsFromBaseTypes;function isMemberSymbolInBaseType(e,t){return getPropertySymbolsFromBaseTypes(e.parent,e.name,t,function(e){return true})||false}e.isMemberSymbolInBaseType=isMemberSymbolInBaseType;function getParentNodeInSpan(t,r,n){if(!t)return undefined;while(t.parent){if(e.isSourceFile(t.parent)||!spanContainsNode(n,t.parent,r)){return t}t=t.parent}}e.getParentNodeInSpan=getParentNodeInSpan;function spanContainsNode(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function findModifier(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})}e.findModifier=findModifier;function insertImport(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);if(i){t.insertNodeAfter(r,i,n)}else{t.insertNodeAtTopOfFile(r,n,true)}}e.insertImport=insertImport;function textSpansEqual(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.textSpansEqual=textSpansEqual;function documentSpansEqual(e,t){return e.fileName===t.fileName&&textSpansEqual(e.textSpan,t.textSpan)}e.documentSpansEqual=documentSpansEqual})(s||(s={}));(function(e){function isFirstDeclarationOfSymbolParameter(e){return e.declarations&&e.declarations.length>0&&e.declarations[0].kind===151}e.isFirstDeclarationOfSymbolParameter=isFirstDeclarationOfSymbolParameter;var t=getDisplayPartWriter();function getDisplayPartWriter(){var t=e.defaultMaximumTruncationLength*10;var r;var n;var i;var a;resetWriter();var o=function(t){return writeKind(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var n=r.length&&r[r.length-1].text;if(a>t&&n&&n!=="..."){if(!e.isWhiteSpaceLike(n.charCodeAt(n.length-1))){r.push(displayPart(" ",e.SymbolDisplayPartKind.space))}r.push(displayPart("...",e.SymbolDisplayPartKind.punctuation))}return r},writeKeyword:function(t){return writeKind(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return writeKind(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return writeKind(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return writeKind(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return writeKind(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return writeKind(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return writeKind(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return writeKind(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return writeKind(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:writeSymbol,writeLine:writeLine,write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return false},rawWrite:e.notImplemented,getIndent:function(){return i},increaseIndent:function(){i++},decreaseIndent:function(){i--},clear:resetWriter,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function writeIndent(){if(a>t)return;if(n){var o=e.getIndentString(i);if(o){a+=o.length;r.push(displayPart(o,e.SymbolDisplayPartKind.space))}n=false}}function writeKind(e,n){if(a>t)return;writeIndent();a+=e.length;r.push(displayPart(e,n))}function writeSymbol(e,n){if(a>t)return;writeIndent();a+=e.length;r.push(symbolPart(e,n))}function writeLine(){if(a>t)return;a+=1;r.push(lineBreakPart());n=true}function resetWriter(){r=[];n=true;i=0;a=0}}function symbolPart(t,r){return displayPart(t,displayPartKind(r));function displayPartKind(t){var r=t.flags;if(r&3){return isFirstDeclarationOfSymbolParameter(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName}else if(r&4){return e.SymbolDisplayPartKind.propertyName}else if(r&32768){return e.SymbolDisplayPartKind.propertyName}else if(r&65536){return e.SymbolDisplayPartKind.propertyName}else if(r&8){return e.SymbolDisplayPartKind.enumMemberName}else if(r&16){return e.SymbolDisplayPartKind.functionName}else if(r&32){return e.SymbolDisplayPartKind.className}else if(r&64){return e.SymbolDisplayPartKind.interfaceName}else if(r&384){return e.SymbolDisplayPartKind.enumName}else if(r&1536){return e.SymbolDisplayPartKind.moduleName}else if(r&8192){return e.SymbolDisplayPartKind.methodName}else if(r&262144){return e.SymbolDisplayPartKind.typeParameterName}else if(r&524288){return e.SymbolDisplayPartKind.aliasName}else if(r&2097152){return e.SymbolDisplayPartKind.aliasName}return e.SymbolDisplayPartKind.text}}e.symbolPart=symbolPart;function displayPart(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}e.displayPart=displayPart;function spacePart(){return displayPart(" ",e.SymbolDisplayPartKind.space)}e.spacePart=spacePart;function keywordPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}e.keywordPart=keywordPart;function punctuationPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=punctuationPart;function operatorPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}e.operatorPart=operatorPart;function textOrKeywordPart(t){var r=e.stringToToken(t);return r===undefined?textPart(t):keywordPart(r)}e.textOrKeywordPart=textOrKeywordPart;function textPart(t){return displayPart(t,e.SymbolDisplayPartKind.text)}e.textPart=textPart;var r="\r\n";function getNewLineOrDefaultFromHost(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||r}e.getNewLineOrDefaultFromHost=getNewLineOrDefaultFromHost;function lineBreakPart(){return displayPart("\n",e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=lineBreakPart;function mapToDisplayParts(e){try{e(t);return t.displayParts()}finally{t.clear()}}e.mapToDisplayParts=mapToDisplayParts;function typeToDisplayParts(e,t,r,n){if(n===void 0){n=0}return mapToDisplayParts(function(i){e.writeType(t,r,n|1024|16384,i)})}e.typeToDisplayParts=typeToDisplayParts;function symbolToDisplayParts(e,t,r,n,i){if(i===void 0){i=0}return mapToDisplayParts(function(a){e.writeSymbol(t,r,n,i|8,a)})}e.symbolToDisplayParts=symbolToDisplayParts;function signatureToDisplayParts(e,t,r,n){if(n===void 0){n=0}n|=16384|1024|32|8192;return mapToDisplayParts(function(i){e.writeSignature(t,r,n,undefined,i)})}e.signatureToDisplayParts=signatureToDisplayParts;function isImportOrExportSpecifierName(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t}e.isImportOrExportSpecifierName=isImportOrExportSpecifierName;function stripQuotes(e){var t=e.length;if(t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&startsWithQuote(e)){return e.substring(1,t-1)}return e}e.stripQuotes=stripQuotes;function startsWithQuote(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}e.startsWithQuote=startsWithQuote;function scriptKindIs(t,r){var n=[];for(var i=2;i<arguments.length;i++){n[i-2]=arguments[i]}var a=getScriptKind(t,r);return e.some(n,function(e){return e===a})}e.scriptKindIs=scriptKindIs;function getScriptKind(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}e.getScriptKind=getScriptKind;function getUniqueSymbolId(t,r){return e.getSymbolId(e.skipAlias(t,r))}e.getUniqueSymbolId=getUniqueSymbolId;function getFirstNonSpaceCharacterPosition(t,r){while(e.isWhiteSpaceLike(t.charCodeAt(r))){r+=1}return r}e.getFirstNonSpaceCharacterPosition=getFirstNonSpaceCharacterPosition;function getPrecedingNonSpaceCharacterPosition(t,r){while(r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r))){r-=1}return r+1}e.getPrecedingNonSpaceCharacterPosition=getPrecedingNonSpaceCharacterPosition;function getSynthesizedDeepClone(e,t){if(t===void 0){t=true}var r=e&&getSynthesizedDeepCloneWorker(e);if(r&&!t)suppressLeadingAndTrailingTrivia(r);return r}e.getSynthesizedDeepClone=getSynthesizedDeepClone;function getSynthesizedDeepCloneWithRenames(t,r,n,i,a){if(r===void 0){r=true}var o;if(e.isIdentifier(t)&&n&&i){var s=i.getSymbolAtLocation(t);var c=s&&n.get(String(e.getSymbolId(s)));if(c){o=e.createIdentifier(c.text)}}if(!o){o=getSynthesizedDeepCloneWorker(t,n,i,a)}if(o&&!r)suppressLeadingAndTrailingTrivia(o);if(a&&o)a(t,o);return o}e.getSynthesizedDeepCloneWithRenames=getSynthesizedDeepCloneWithRenames;function getSynthesizedDeepCloneWorker(t,r,n,i){var a=r||n||i?e.visitEachChild(t,wrapper,e.nullTransformationContext):e.visitEachChild(t,getSynthesizedDeepClone,e.nullTransformationContext);if(a===t){var o=e.getSynthesizedClone(t);if(e.isStringLiteral(o)){o.textSourceNode=t}else if(e.isNumericLiteral(o)){o.numericLiteralFlags=t.numericLiteralFlags}return e.setTextRange(o,t)}a.parent=undefined;return a;function wrapper(e){return getSynthesizedDeepCloneWithRenames(e,true,r,n,i)}}function getSynthesizedDeepClones(t,r){if(r===void 0){r=true}return t&&e.createNodeArray(t.map(function(e){return getSynthesizedDeepClone(e,r)}),t.hasTrailingComma)}e.getSynthesizedDeepClones=getSynthesizedDeepClones;function suppressLeadingAndTrailingTrivia(e){suppressLeadingTrivia(e);suppressTrailingTrivia(e)}e.suppressLeadingAndTrailingTrivia=suppressLeadingAndTrailingTrivia;function suppressLeadingTrivia(e){addEmitFlagsRecursively(e,512,getFirstChild)}e.suppressLeadingTrivia=suppressLeadingTrivia;function suppressTrailingTrivia(t){addEmitFlagsRecursively(t,1024,e.getLastChild)}e.suppressTrailingTrivia=suppressTrailingTrivia;function addEmitFlagsRecursively(t,r,n){e.addEmitFlags(t,r);var i=n(t);if(i)addEmitFlagsRecursively(i,r,n)}function getFirstChild(e){return e.forEachChild(function(e){return e})}function getUniqueName(t,r){var n=t;for(var i=1;!e.isFileLevelUniqueName(r,n);i++){n=t+"_"+i}return n}e.getUniqueName=getUniqueName;function getRenameLocation(t,r,n,i){var a=0;var o=-1;for(var s=0,c=t;s<c.length;s++){var u=c[s],l=u.fileName,f=u.textChanges;e.Debug.assert(l===r);for(var d=0,p=f;d<p.length;d++){var g=p[d];var _=g.span,m=g.newText;var y=indexInTextChange(m,n);if(y!==-1){o=_.start+a+y;if(!i){return o}}a+=m.length-_.length}}e.Debug.assert(i);e.Debug.assert(o>=0);return o}e.getRenameLocation=getRenameLocation;function copyComments(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,function(t,o,s,c){if(s===3){t+=2;o-=2}else{t+=2}e.addSyntheticLeadingComment(r,i||s,n.text.slice(t,o),a!==undefined?a:c)})}e.copyComments=copyComments;function indexInTextChange(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);if(n===-1)n=t.indexOf("."+r);if(n===-1)n=t.indexOf('"'+r);return n===-1?-1:n+1}function getContextualTypeFromParent(e,t){var r=e.parent;switch(r.kind){case 192:return t.getContextualType(r);case 204:{var n=r,i=n.left,a=n.operatorToken,o=n.right;return isEqualityOperatorKind(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e)}case 271:return r.expression===e?getSwitchedType(r,t):undefined;default:return t.getContextualType(e)}}e.getContextualTypeFromParent=getContextualTypeFromParent;function quote(t,r){if(/^\d+$/.test(t)){return t}var n=JSON.stringify(t);switch(r.quotePreference){case undefined:case"double":return n;case"single":return"'"+stripQuotes(n).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r.quotePreference)}}e.quote=quote;function isEqualityOperatorKind(e){switch(e){case 35:case 33:case 36:case 34:return true;default:return false}}e.isEqualityOperatorKind=isEqualityOperatorKind;function isStringLiteralOrTemplate(e){switch(e.kind){case 10:case 14:case 206:case 193:return true;default:return false}}e.isStringLiteralOrTemplate=isStringLiteralOrTemplate;function hasIndexSignature(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}e.hasIndexSignature=hasIndexSignature;function getSwitchedType(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}e.getSwitchedType=getSwitchedType})(s||(s={}));var s;(function(e){function createClassifier(){var r=e.createScanner(6,false);function getClassificationsForLine(e,t,r){return convertClassificationsToResult(getEncodedLexicalClassifications(e,t,r),e)}function getEncodedLexicalClassifications(n,i,a){var o=0;var s=0;var c=[];var u=getPrefixFromLexState(i),l=u.prefix,f=u.pushTemplate;n=l+n;var d=l.length;if(f){c.push(15)}r.setText(n);var p=0;var g=[];var _=0;do{o=r.scan();if(!e.isTrivia(o)){handleToken();s=o}var m=r.getTextPos();pushEncodedClassification(r.getTokenPos(),m,d,classFromKind(o),g);if(m>=n.length){var y=getNewEndOfLineState(r,o,e.lastOrUndefined(c));if(y!==undefined){p=y}}}while(o!==1);function handleToken(){switch(o){case 42:case 64:if(!t[s]&&r.reScanSlashToken()===13){o=13}break;case 28:if(s===72){_++}break;case 30:if(_>0){_--}break;case 120:case 138:case 135:case 123:case 139:if(_>0&&!a){o=72}break;case 15:c.push(o);break;case 18:if(c.length>0){c.push(o)}break;case 19:if(c.length>0){var n=e.lastOrUndefined(c);if(n===15){o=r.reScanTemplateToken();if(o===17){c.pop()}else{e.Debug.assertEqual(o,16,"Should have been a template middle.")}}else{e.Debug.assertEqual(n,18,"Should have been an open brace");c.pop()}}break;default:if(!e.isKeyword(o)){break}if(s===24){o=72}else if(e.isKeyword(s)&&e.isKeyword(o)&&!canFollow(s,o)){o=72}}}return{endOfLineState:p,spans:g}}return{getClassificationsForLine:getClassificationsForLine,getEncodedLexicalClassifications:getEncodedLexicalClassifications}}e.createClassifier=createClassifier;var t=e.arrayToNumericMap([72,10,8,9,13,100,44,45,21,23,19,102,87],function(e){return e},function(){return true});function getNewEndOfLineState(t,r,n){switch(r){case 10:{if(!t.isUnterminated())return undefined;var i=t.getTokenText();var a=i.length-1;var o=0;while(i.charCodeAt(a-o)===92){o++}if((o&1)===0)return undefined;return i.charCodeAt(0)===34?3:2}case 3:return t.isUnterminated()?1:undefined;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated()){return undefined}switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return n===15?6:undefined}}function pushEncodedClassification(e,t,r,n,i){if(n===8){return}if(e===0&&r>0){e+=r}var a=t-e;if(a>0){i.push(e-r,a,n)}}function convertClassificationsToResult(t,r){var n=[];var i=t.spans;var a=0;for(var o=0;o<i.length;o+=3){var s=i[o];var c=i[o+1];var u=i[o+2];if(a>=0){var l=s-a;if(l>0){n.push({length:l,classification:e.TokenClass.Whitespace})}}n.push({length:c,classification:convertClassification(u)});a=s+c}var f=r.length-a;if(f>0){n.push({length:f,classification:e.TokenClass.Whitespace})}return{entries:n,finalLexState:t.endOfLineState}}function convertClassification(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 undefined}}function canFollow(t,r){if(!e.isAccessibilityModifier(t)){return true}switch(r){case 126:case 137:case 124:case 116:return true;default:return false}}function getPrefixFromLexState(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:true};case 6:return{prefix:"",pushTemplate:true};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}function isBinaryExpressionOperatorToken(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 94:case 93:case 119:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 70:case 69:case 71:case 66:case 67:case 68:case 60:case 61:case 62:case 64:case 65:case 59:case 27:return true;default:return false}}function isPrefixUnaryExpressionOperatorToken(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return true;default:return false}}function classFromKind(t){if(e.isKeyword(t)){return 3}else if(isBinaryExpressionOperatorToken(t)||isPrefixUnaryExpressionOperatorToken(t)){return 5}else if(t>=18&&t<=71){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;case 72:default:if(e.isTemplateLiteralKind(t)){return 6}return 2}}function getSemanticClassifications(e,t,r,n,i){return convertClassificationsToSpans(getEncodedSemanticClassifications(e,t,r,n,i))}e.getSemanticClassifications=getSemanticClassifications;function checkForClassificationCancellation(e,t){switch(t){case 244:case 240:case 241:case 239:e.throwIfCancellationRequested()}}function getEncodedSemanticClassifications(t,r,n,i,a){var o=[];n.forEachChild(function cb(o){if(!o||!e.textSpanIntersectsWith(a,o.pos,o.getFullWidth())){return}checkForClassificationCancellation(r,o.kind);if(e.isIdentifier(o)&&!e.nodeIsMissing(o)&&i.has(o.escapedText)){var s=t.getSymbolAtLocation(o);var c=s&&classifySymbol(s,e.getMeaningFromLocation(o),t);if(c){pushClassification(o.getStart(n),o.getEnd(),c)}}o.forEachChild(cb)});return{spans:o,endOfLineState:0};function pushClassification(e,t,r){o.push(e);o.push(t-e);o.push(r)}}e.getEncodedSemanticClassifications=getEncodedSemanticClassifications;function classifySymbol(e,t,r){var n=e.getFlags();if((n&2885600)===0){return undefined}else if(n&32){return 11}else if(n&384){return 12}else if(n&524288){return 16}else if(n&1536){return t&4||t&1&&hasValueSideModule(e)?14:undefined}else if(n&2097152){return classifySymbol(r.getAliasedSymbol(e),t,r)}else if(t&2){return n&64?13:n&262144?15:undefined}else{return undefined}}function hasValueSideModule(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)===1})}function getClassificationTypeName(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 undefined}}function convertClassificationsToSpans(t){e.Debug.assert(t.spans.length%3===0);var r=t.spans;var n=[];for(var i=0;i<r.length;i+=3){n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:getClassificationTypeName(r[i+2])})}return n}function getSyntacticClassifications(e,t,r){return convertClassificationsToSpans(getEncodedSyntacticClassifications(e,t,r))}e.getSyntacticClassifications=getSyntacticClassifications;function getEncodedSyntacticClassifications(t,r,n){var i=n.start;var a=n.length;var o=e.createScanner(6,false,r.languageVariant,r.text);var s=e.createScanner(6,false,r.languageVariant,r.text);var c=[];processElement(r);return{spans:c,endOfLineState:0};function pushClassification(e,t,r){c.push(e);c.push(t);c.push(r)}function classifyLeadingTriviaAndGetTokenStart(t){o.setTextPos(t.pos);while(true){var n=o.getTextPos();if(!e.couldStartTrivia(r.text,n)){return n}var i=o.scan();var a=o.getTextPos();var s=a-n;if(!e.isTrivia(i)){return n}switch(i){case 4:case 5:continue;case 2:case 3:classifyComment(t,i,n,s);o.setTextPos(a);continue;case 7:var c=r.text;var u=c.charCodeAt(n);if(u===60||u===62){pushClassification(n,s,1);continue}e.Debug.assert(u===124||u===61);classifyDisabledMergeCode(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}function classifyComment(t,n,i,a){if(n===3){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc){o.jsDoc.parent=t;classifyJSDocComment(o.jsDoc);return}}pushCommentRange(i,a)}function pushCommentRange(e,t){pushClassification(e,t,1)}function classifyJSDocComment(e){var t=e.pos;if(e.tags){for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];if(i.pos!==t){pushCommentRange(t,i.pos-t)}pushClassification(i.pos,1,10);pushClassification(i.tagName.pos,i.tagName.end-i.tagName.pos,18);t=i.tagName.end;switch(i.kind){case 299:processJSDocParameterTag(i);break;case 303:processJSDocTemplateTag(i);t=i.end;break;case 302:processElement(i.typeExpression);t=i.end;break;case 300:processElement(i.typeExpression);t=i.end;break}}}if(t!==e.end){pushCommentRange(t,e.end-t)}return;function processJSDocParameterTag(e){if(e.isNameFirst){pushCommentRange(t,e.name.pos-t);pushClassification(e.name.pos,e.name.end-e.name.pos,17);t=e.name.end}if(e.typeExpression){pushCommentRange(t,e.typeExpression.pos-t);processElement(e.typeExpression);t=e.typeExpression.end}if(!e.isNameFirst){pushCommentRange(t,e.name.pos-t);pushClassification(e.name.pos,e.name.end-e.name.pos,17);t=e.name.end}}}function processJSDocTemplateTag(e){for(var t=0,r=e.getChildren();t<r.length;t++){var n=r[t];processElement(n)}}function classifyDisabledMergeCode(t,r,n){var i;for(i=r;i<n;i++){if(e.isLineBreak(t.charCodeAt(i))){break}}pushClassification(r,i-r,1);s.setTextPos(i);while(s.getTextPos()<n){classifyDisabledCodeToken()}}function classifyDisabledCodeToken(){var e=s.getTextPos();var t=s.scan();var r=s.getTextPos();var n=classifyTokenType(t);if(n){pushClassification(e,r-e,n)}}function tryClassifyNode(t){if(e.isJSDoc(t)){return true}if(e.nodeIsMissing(t)){return true}var r=tryClassifyJsxElementName(t);if(!e.isToken(t)&&t.kind!==11&&r===undefined){return false}var n=t.kind===11?t.pos:classifyLeadingTriviaAndGetTokenStart(t);var i=t.end-n;e.Debug.assert(i>=0);if(i>0){var a=r||classifyTokenType(t.kind,t);if(a){pushClassification(n,i,a)}}return true}function tryClassifyJsxElementName(e){switch(e.parent&&e.parent.kind){case 262:if(e.parent.tagName===e){return 19}break;case 263:if(e.parent.tagName===e){return 20}break;case 261:if(e.parent.tagName===e){return 21}break;case 267:if(e.parent.name===e){return 22}break}return undefined}function classifyTokenType(t,r){if(e.isKeyword(t)){return 3}if(t===28||t===30){if(r&&e.getTypeArgumentOrTypeParameterList(r.parent)){return 10}}if(e.isPunctuation(t)){if(r){var n=r.parent;if(t===59){if(n.kind===237||n.kind===154||n.kind===151||n.kind===267){return 5}}if(n.kind===204||n.kind===202||n.kind===203||n.kind===205){return 5}}return 10}else if(t===8){return 4}else if(t===9){return 25}else if(t===10){return r.parent.kind===267?24:6}else if(t===13){return 6}else if(e.isTemplateLiteralKind(t)){return 6}else if(t===11){return 23}else if(t===72){if(r){switch(r.parent.kind){case 240:if(r.parent.name===r){return 11}return;case 150:if(r.parent.name===r){return 15}return;case 241:if(r.parent.name===r){return 13}return;case 243:if(r.parent.name===r){return 12}return;case 244:if(r.parent.name===r){return 14}return;case 151:if(r.parent.name===r){return e.isThisIdentifier(r)?3:17}return}}return 2}}function processElement(n){if(!n){return}if(e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){checkForClassificationCancellation(t,n.kind);for(var o=0,s=n.getChildren(r);o<s.length;o++){var c=s[o];if(!tryClassifyNode(c)){processElement(c)}}}}}e.getEncodedSyntacticClassifications=getEncodedSyntacticClassifications})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(r){function getStringLiteralCompletions(t,r,n,i,a,o,s,c){if(e.isInReferenceComment(t,r)){var u=getTripleSlashReferenceCompletion(t,r,a,o);return u&&convertPathCompletions(u)}if(e.isInString(t,r,n)){return!n||!e.isStringLiteralLike(n)?undefined:convertStringLiteralCompletions(getStringLiteralCompletionEntries(t,n,r,i,a,o),t,i,s,c)}}r.getStringLiteralCompletions=getStringLiteralCompletions;function convertStringLiteralCompletions(r,n,i,a,o){if(r===undefined){return undefined}switch(r.kind){case 0:return convertPathCompletions(r.paths);case 1:{var s=[];t.getCompletionEntriesFromSymbols(r.symbols,s,n,n,i,6,a,4,o);return{isGlobalCompletion:false,isMemberCompletion:true,isNewIdentifierLocation:r.hasIndexSignature,entries:s}}case 2:{var s=r.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:false,isMemberCompletion:false,isNewIdentifierLocation:r.isNewIdentifier,entries:s}}default:return e.Debug.assertNever(r)}}function getStringLiteralCompletionDetails(t,r,n,i,a,o,s,c){if(!i||!e.isStringLiteralLike(i))return undefined;var u=getStringLiteralCompletionEntries(r,i,n,a,o,s);return u&&stringLiteralCompletionDetails(t,i,u,r,a,c)}r.getStringLiteralCompletionDetails=getStringLiteralCompletionDetails;function stringLiteralCompletionDetails(r,n,i,a,o,s){switch(i.kind){case 0:{var c=e.find(i.paths,function(e){return e.name===r});return c&&t.createCompletionDetails(r,kindModifiersFromExtension(c.extension),c.kind,[e.textPart(r)])}case 1:{var c=e.find(i.symbols,function(e){return e.name===r});return c&&t.createCompletionDetailsForSymbol(c,o,a,n,s)}case 2:return e.find(i.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):undefined;default:return e.Debug.assertNever(i)}}function convertPathCompletions(e){var t=false;var r=true;var n=e.map(function(e){var t=e.name,r=e.kind,n=e.span,i=e.extension;return{name:t,kind:r,kindModifiers:kindModifiersFromExtension(i),sortText:"0",replacementSpan:n}});return{isGlobalCompletion:t,isMemberCompletion:false,isNewIdentifierLocation:r,entries:n}}function kindModifiersFromExtension(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case undefined:return"";default:return e.Debug.assertNever(t)}}var n;(function(e){e[e["Paths"]=0]="Paths";e[e["Properties"]=1]="Properties";e[e["Types"]=2]="Types"})(n||(n={}));function getStringLiteralCompletionEntries(t,r,n,i,a,o){var s=r.parent;switch(s.kind){case 182:switch(s.parent.kind){case 164:return{kind:2,types:getStringLiteralTypes(i.getTypeArgumentConstraint(s)),isNewIdentifier:false};case 180:return stringLiteralCompletionsFromProperties(i.getTypeFromTypeNode(s.parent.objectType));case 183:return{kind:0,paths:getStringLiteralCompletionsFromModuleNames(t,r,a,o,i)};case 173:{if(!e.isTypeReferenceNode(s.parent.parent))return undefined;var c=getAlreadyUsedTypesInStringLiteralUnion(s.parent,s);var u=getStringLiteralTypes(i.getTypeArgumentConstraint(s.parent)).filter(function(t){return!e.contains(c,t.value)});return{kind:2,types:u,isNewIdentifier:false}}default:return undefined}case 275:if(e.isObjectLiteralExpression(s.parent)&&s.name===r){return stringLiteralCompletionsFromProperties(i.getContextualType(s.parent))}return fromContextualType();case 190:{var l=s,f=l.expression,d=l.argumentExpression;if(r===d){return stringLiteralCompletionsFromProperties(i.getTypeAtLocation(f))}return undefined}case 191:case 192:if(!e.isRequireCall(s,false)&&!e.isImportCall(s)){var p=e.SignatureHelp.getArgumentInfoForCompletions(r,n,t);return p?getStringLiteralCompletionsFromSignature(p,i):fromContextualType()}case 249:case 255:case 259:return{kind:0,paths:getStringLiteralCompletionsFromModuleNames(t,r,a,o,i)};default:return fromContextualType()}function fromContextualType(){return{kind:2,types:getStringLiteralTypes(e.getContextualTypeFromParent(r,i)),isNewIdentifier:false}}}function getAlreadyUsedTypesInStringLiteralUnion(t,r){return e.mapDefined(t.types,function(t){return t!==r&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:undefined})}function getStringLiteralCompletionsFromSignature(t,r){var n=false;var i=e.createMap();var a=[];r.getResolvedSignature(t.invocation,a,t.argumentCount);var o=e.flatMap(a,function(e){if(!e.hasRestParameter&&t.argumentCount>e.parameters.length)return;var a=r.getParameterType(e,t.argumentIndex);n=n||!!(a.flags&4);return getStringLiteralTypes(a,i)});return{kind:2,types:o,isNewIdentifier:n}}function stringLiteralCompletionsFromProperties(t){return t&&{kind:1,symbols:t.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(t)}}function getStringLiteralTypes(t,r){if(r===void 0){r=e.createMap()}if(!t)return e.emptyArray;t=e.skipConstraint(t);return t.isUnion()?e.flatMap(t.types,function(e){return getStringLiteralTypes(e,r)}):t.isStringLiteral()&&!(t.flags&1024)&&e.addToSeen(r,t.value)?[t]:e.emptyArray}function nameAndKind(e,t,r){return{name:e,kind:t,extension:r}}function directoryResult(e){return nameAndKind(e,"directory",undefined)}function addReplacementSpans(e,t,r){var n=getDirectoryFragmentTextSpan(e,t);return r.map(function(e){var t=e.name,r=e.kind,i=e.extension;return{name:t,kind:r,extension:i,span:n}})}function getStringLiteralCompletionsFromModuleNames(e,t,r,n,i){return addReplacementSpans(t.text,t.getStart(e)+1,getStringLiteralCompletionsFromModuleNamesWorker(e,t,r,n,i))}function getStringLiteralCompletionsFromModuleNamesWorker(t,r,n,i,a){var o=e.normalizeSlashes(r.text);var s=t.path;var c=e.getDirectoryPath(s);return isPathRelativeToScript(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?getCompletionEntriesForRelativeModules(o,c,n,i,s):getCompletionEntriesForNonRelativeModules(o,c,n,i,a)}function getExtensionOptions(e,t){if(t===void 0){t=false}return{extensions:getSupportedExtensionsForModuleResolution(e),includeExtensions:t}}function getCompletionEntriesForRelativeModules(e,t,r,n,i){var a=getExtensionOptions(r);if(r.rootDirs){return getCompletionEntriesForDirectoryFragmentWithRootDirs(r.rootDirs,e,t,a,r,n,i)}else{return getCompletionEntriesForDirectoryFragment(e,t,a,n,i)}}function getSupportedExtensionsForModuleResolution(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function getBaseDirectoriesFromRootDirs(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):undefined});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}).concat([n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function getCompletionEntriesForDirectoryFragmentWithRootDirs(t,r,n,i,a,o,s){var c=a.project||o.getCurrentDirectory();var u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());var l=getBaseDirectoriesFromRootDirs(t,c,n,u);return e.flatMap(l,function(e){return getCompletionEntriesForDirectoryFragment(r,e,i,o,s)})}function getCompletionEntriesForDirectoryFragment(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensions;if(o===void 0){o=[]}if(t===undefined){t=""}t=e.normalizeSlashes(t);if(!e.hasTrailingDirectorySeparator(t)){t=e.getDirectoryPath(t)}if(t===""){t="."+e.directorySeparator}t=e.ensureTrailingDirectorySeparator(t);var u=e.resolvePath(r,t);var l=e.hasTrailingDirectorySeparator(u)?u:e.getDirectoryPath(u);var f=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!tryDirectoryExists(i,l))return o;var d=tryReadDirectory(i,l,s,undefined,["./*"]);if(d){var p=e.createMap();for(var g=0,_=d;g<_.length;g++){var m=_[g];m=e.normalizePath(m);if(a&&e.comparePaths(m,a,r,f)===0){continue}var y=c||e.fileExtensionIs(m,".json")?e.getBaseFileName(m):e.removeFileExtension(e.getBaseFileName(m));p.set(y,e.tryGetExtensionFromPath(m))}p.forEach(function(e,t){o.push(nameAndKind(t,"script",e))})}var h=tryGetDirectories(i,l);if(h){for(var v=0,T=h;v<T.length;v++){var S=T[v];var b=e.getBaseFileName(e.normalizePath(S));if(b!=="@types"){o.push(directoryResult(b))}}}var x=findPackageJson(l,i);if(x){var C=e.readJson(x,i);var E=C.typesVersions;if(typeof E==="object"){var D=e.getPackageJsonTypesVersionsPaths(E);var k=D&&D.paths;var N=u.slice(e.ensureTrailingDirectorySeparator(l).length);if(k){addCompletionEntriesFromPaths(o,N,l,s,k,i)}}}return o}function addCompletionEntriesFromPaths(t,r,n,i,a,o){for(var s in a){if(!e.hasProperty(a,s))continue;var c=a[s];if(c){var u=function(e,r,n){if(!t.some(function(t){return t.name===e})){t.push(nameAndKind(e,r,n))}};for(var l=0,f=getCompletionsForPathMapping(s,c,r,n,i,o);l<f.length;l++){var d=f[l],p=d.name,g=d.kind,_=d.extension;u(p,g,_)}}}}function getCompletionEntriesForNonRelativeModules(t,r,n,i,a){var o=n.baseUrl,s=n.paths;var c=[];var u=getExtensionOptions(n);if(o){var l=n.project||i.getCurrentDirectory();var f=e.normalizePath(e.combinePaths(l,o));getCompletionEntriesForDirectoryFragment(t,f,u,i,undefined,c);if(s){addCompletionEntriesFromPaths(c,t,f,u.extensions,s,i)}}var d=getFragmentDirectory(t);for(var p=0,g=getAmbientModuleCompletions(t,d,a);p<g.length;p++){var _=g[p];c.push(nameAndKind(_,"external module name",undefined))}getCompletionEntriesFromTypings(i,n,r,d,u,c);if(e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var m=false;if(d===undefined){var y=function(e){if(!c.some(function(t){return t.name===e})){m=true;c.push(nameAndKind(e,"external module name",undefined))}};for(var h=0,v=enumerateNodeModulesVisibleToScript(i,r);h<v.length;h++){var T=v[h];y(T)}}if(!m){e.forEachAncestorDirectory(r,function(r){var n=e.combinePaths(r,"node_modules");if(tryDirectoryExists(i,n)){getCompletionEntriesForDirectoryFragment(t,n,u,i,undefined,c)}})}}return c}function getFragmentDirectory(t){return containsSlash(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):undefined}function getCompletionsForPathMapping(t,r,n,i,a,o){if(!e.endsWith(t,"*")){return!e.stringContains(t,"*")?justPathMappingName(t):e.emptyArray}var s=t.slice(0,t.length-1);var c=e.tryRemovePrefix(n,s);return c===undefined?justPathMappingName(s):e.flatMap(r,function(e){return getModulesForPathsPattern(c,i,e,a,o)});function justPathMappingName(t){return e.startsWith(t,n)?[directoryResult(t)]:e.emptyArray}}function getModulesForPathsPattern(t,r,n,i,a){if(!a.readDirectory){return undefined}var o=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):undefined;if(!o){return undefined}var s=e.resolvePath(o.prefix);var c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s);var u=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s);var l=containsSlash(t);var f=l?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):undefined;var d=l?e.combinePaths(c,u+f):c;var p=e.normalizePath(o.suffix);var g=e.normalizePath(e.combinePaths(r,d));var _=l?g:e.ensureTrailingDirectorySeparator(g)+u;var m=p?"**/*":"./*";var y=e.mapDefined(tryReadDirectory(a,g,i,undefined,[m]),function(t){var r=e.tryGetExtensionFromPath(t);var n=trimPrefixAndSuffix(t);return n===undefined?undefined:nameAndKind(e.removeFileExtension(n),"script",r)});var h=e.mapDefined(tryGetDirectories(a,g).map(function(t){return e.combinePaths(g,t)}),function(e){var t=trimPrefixAndSuffix(e);return t===undefined?undefined:directoryResult(t)});return y.concat(h);function trimPrefixAndSuffix(t){var r=withoutStartAndEnd(e.normalizePath(t),_,p);return r===undefined?undefined:removeLeadingDirectorySeparator(r)}}function withoutStartAndEnd(t,r,n){return e.startsWith(t,r)&&e.endsWith(t,n)?t.slice(r.length,t.length-n.length):undefined}function removeLeadingDirectorySeparator(t){return t[0]===e.directorySeparator?t.slice(1):t}function getAmbientModuleCompletions(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)});var a=i.filter(function(r){return e.startsWith(r,t)});if(r!==undefined){var o=e.ensureTrailingDirectorySeparator(r);return a.map(function(t){return e.removePrefix(t,o)})}return a}function getTripleSlashReferenceCompletion(t,r,n,a){var o=e.getTokenAtPosition(t,r);var s=e.getLeadingCommentRanges(t.text,o.pos);var c=s&&e.find(s,function(e){return r>=e.pos&&r<=e.end});if(!c){return undefined}var u=t.text.slice(c.pos,r);var l=i.exec(u);if(!l){return undefined}var f=l[1],d=l[2],p=l[3];var g=e.getDirectoryPath(t.path);var _=d==="path"?getCompletionEntriesForDirectoryFragment(p,g,getExtensionOptions(n,true),a,t.path):d==="types"?getCompletionEntriesFromTypings(a,n,g,getFragmentDirectory(p),getExtensionOptions(n)):e.Debug.fail();return addReplacementSpans(p,c.pos+f.length,_)}function getCompletionEntriesFromTypings(t,r,n,i,a,o){if(o===void 0){o=[]}var s=e.createMap();var c=tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(r,t)})||e.emptyArray;for(var u=0,l=c;u<l.length;u++){var f=l[u];getCompletionEntriesFromDirectories(f)}for(var d=0,p=findPackageJsons(n,t);d<p.length;d++){var g=p[d];var _=e.combinePaths(e.getDirectoryPath(g),"node_modules/@types");getCompletionEntriesFromDirectories(_)}return o;function getCompletionEntriesFromDirectories(n){if(!tryDirectoryExists(t,n))return;for(var c=0,u=tryGetDirectories(t,n);c<u.length;c++){var l=u[c];var f=e.unmangleScopedPackageName(l);if(r.types&&!e.contains(r.types,f))continue;if(i===undefined){if(!s.has(f)){o.push(nameAndKind(f,"external module name",undefined));s.set(f,true)}}else{var d=e.combinePaths(n,l);var p=e.tryRemoveDirectoryPrefix(i,f,e.hostGetCanonicalFileName(t));if(p!==undefined){getCompletionEntriesForDirectoryFragment(p,d,a,t,undefined,o)}}}}}function findPackageJsons(t,r){var n=[];e.forEachAncestorDirectory(t,function(t){var i=e.findConfigFile(t,function(e){return tryFileExists(r,e)},"package.json");if(!i){return true}n.push(i)});return n}function findPackageJson(t,r){var n;e.forEachAncestorDirectory(t,function(t){if(t==="node_modules")return true;n=e.findConfigFile(t,function(e){return tryFileExists(r,e)},"package.json");if(n){return true}});return n}function enumerateNodeModulesVisibleToScript(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;var n=[];for(var i=0,o=findPackageJsons(r,t);i<o.length;i++){var s=o[i];var c=e.readJson(s,t);for(var u=0,l=a;u<l.length;u++){var f=l[u];var d=c[f];if(!d)continue;for(var p in d){if(d.hasOwnProperty(p)&&!e.startsWith(p,"@types/")){n.push(p)}}}}return n}function getDirectoryFragmentTextSpan(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\"));var i=n!==-1?n+1:0;var a=t.length-i;return a===0||e.isIdentifierText(t.substr(i,a),6)?undefined:e.createTextSpan(r+i,a)}function isPathRelativeToScript(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){var t=e.length>=3&&e.charCodeAt(1)===46?2:1;var r=e.charCodeAt(t);return r===47||r===92}return false}var i=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/;var a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function tryGetDirectories(e,t){return tryIOAndConsumeErrors(e,e.getDirectories,t)||[]}function tryReadDirectory(t,r,n,i,a){return tryIOAndConsumeErrors(t,t.readDirectory,r,n,i,a)||e.emptyArray}function tryFileExists(e,t){return tryIOAndConsumeErrors(e,e.fileExists,t)}function tryDirectoryExists(t,r){return tryAndIgnoreErrors(function(){return e.directoryProbablyExists(r,t)})||false}function tryIOAndConsumeErrors(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}return tryAndIgnoreErrors(function(){return t&&t.apply(e,r)})}function tryAndIgnoreErrors(e){try{return e()}catch(e){return undefined}}function containsSlash(t){return e.stringContains(t,e.directorySeparator)}})(r=t.StringCompletions||(t.StringCompletions={}))})(t=e.Completions||(e.Completions={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["ThisType"]=0]="ThisType";e[e["SymbolMemberNoExport"]=1]="SymbolMemberNoExport";e[e["SymbolMemberExport"]=2]="SymbolMemberExport";e[e["Export"]=3]="Export"})(r||(r={}));function originIsSymbolMember(e){return e.kind===2||e.kind===1}function originIsExport(e){return e.kind===2||e.kind===3}var n;(function(e){e[e["None"]=0]="None";e[e["All"]=1]="All";e[e["ClassElementKeywords"]=2]="ClassElementKeywords";e[e["InterfaceElementKeywords"]=3]="InterfaceElementKeywords";e[e["ConstructorParameterKeywords"]=4]="ConstructorParameterKeywords";e[e["FunctionLikeBodyKeywords"]=5]="FunctionLikeBodyKeywords";e[e["TypeKeywords"]=6]="TypeKeywords"})(n||(n={}));var i;(function(e){e[e["Continue"]=0]="Continue";e[e["Success"]=1]="Success";e[e["Fail"]=2]="Fail"})(i||(i={}));function getCompletionsAtPosition(r,n,i,a,o,s,c){var u=n.getTypeChecker();var l=n.getCompilerOptions();var f=e.findPrecedingToken(o,a);if(c&&!isValidTrigger(a,c,f,o))return undefined;var d=t.StringCompletions.getStringLiteralCompletions(a,o,f,u,l,r,i,s);if(d){return d}if(f&&e.isBreakOrContinueStatement(f.parent)&&(f.kind===73||f.kind===78||f.kind===72)){return getLabelCompletionAtPosition(f.parent)}var p=getCompletionData(n,i,a,isUncheckedFile(a,l),o,s,undefined);if(!p){return undefined}switch(p.kind){case 0:return completionInfoFromData(a,u,l,i,p,s);case 1:return jsdocCompletionInfo(e.JsDoc.getJSDocTagNameCompletions());case 2:return jsdocCompletionInfo(e.JsDoc.getJSDocTagCompletions());case 3:return jsdocCompletionInfo(e.JsDoc.getJSDocParameterNameCompletions(p.tag));default:return e.Debug.assertNever(p)}}t.getCompletionsAtPosition=getCompletionsAtPosition;function jsdocCompletionInfo(e){return{isGlobalCompletion:false,isMemberCompletion:false,isNewIdentifierLocation:false,entries:e}}function completionInfoFromData(t,r,n,i,a,o){var s=a.symbols,c=a.completionKind,u=a.isInSnippetScope,l=a.isNewIdentifierLocation,f=a.location,d=a.propertyAccessToConvert,p=a.keywordFilters,g=a.literals,_=a.symbolToOriginInfoMap,m=a.recommendedCompletion,y=a.isJsxInitializer;if(f&&f.parent&&e.isJsxClosingElement(f.parent)){var h=f.parent.parent.openingElement.tagName;var v=!!e.findChildOfKind(f.parent,30,t);var T={name:h.getFullText(t)+(v?"":">"),kind:"class",kindModifiers:undefined,sortText:"0"};return{isGlobalCompletion:false,isMemberCompletion:true,isNewIdentifierLocation:false,entries:[T]}}var S=[];if(isUncheckedFile(t,n)){var b=getCompletionEntriesFromSymbols(s,S,f,t,r,n.target,i,c,o,d,y,m,_);getJSCompletionEntries(t,f.pos,b,n.target,S)}else{if((!s||s.length===0)&&p===0){return undefined}getCompletionEntriesFromSymbols(s,S,f,t,r,n.target,i,c,o,d,y,m,_)}if(p!==0){var x=e.arrayToSet(S,function(e){return e.name});for(var C=0,E=getKeywordCompletions(p);C<E.length;C++){var D=E[C];if(!x.has(D.name)){S.push(D)}}}for(var k=0,N=g;k<N.length;k++){var A=N[k];S.push(createCompletionEntryForLiteral(A))}return{isGlobalCompletion:u,isMemberCompletion:isMemberCompletionKind(c),isNewIdentifierLocation:l,entries:S}}function isUncheckedFile(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function isMemberCompletionKind(e){switch(e){case 0:case 3:case 2:return true;default:return false}}function getJSCompletionEntries(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t===r){return}var s=e.unescapeLeadingUnderscores(o);if(e.addToSeen(n,s)&&e.isIdentifierText(s,i)){a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}var a=function(t){return typeof t==="object"?e.pseudoBigIntToString(t)+"n":JSON.stringify(t)};function createCompletionEntryForLiteral(e){return{name:a(e),kind:"string",kindModifiers:"",sortText:"0"}}function createCompletionEntry(t,r,n,i,a,o,s,c,u,l,f){var d=getCompletionEntryDisplayNameForSymbol(t,a,s,o);if(!d){return undefined}var p=d.name,g=d.needsConvertPropertyAccess;var _;var m;if(s&&s.kind===0){_=g?"this["+e.quote(p,f)+"]":"this."+p}else if((s&&originIsSymbolMember(s)||g)&&u){_=g?"["+e.quote(p,f)+"]":"["+p+"]";var y=e.findChildOfKind(u,24,n);var h=e.startsWith(p,u.name.text)?u.name.end:y.end;m=e.createTextSpanFromBounds(y.getStart(n),h)}if(l){if(_===undefined)_=p;_="{"+_+"}";if(typeof l!=="boolean"){m=e.createTextSpanFromNode(l,n)}}if(_!==undefined&&!f.includeCompletionsWithInsertText){return undefined}return{name:p,kind:e.SymbolDisplay.getSymbolKind(i,t,r),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0",source:getSourceFromOrigin(s),hasAction:trueOrUndefined(!!s&&originIsExport(s)),isRecommended:trueOrUndefined(isRecommendedCompletionMatch(t,c,i)),insertText:_,replacementSpan:m}}function isRecommendedCompletionMatch(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function trueOrUndefined(e){return e?true:undefined}function getSourceFromOrigin(t){return t&&originIsExport(t)?e.stripQuotes(t.moduleSymbol.name):undefined}function getCompletionEntriesFromSymbols(t,r,n,i,a,o,s,c,u,l,f,d,p){var g=e.timestamp();var _=e.createMap();for(var m=0,y=t;m<y.length;m++){var h=y[m];var v=p?p[e.getSymbolId(h)]:undefined;var T=createCompletionEntry(h,n,i,a,o,c,v,d,l,f,u);if(!T){continue}var S=T.name;if(_.has(S)){continue}if(!v&&!(h.parent===undefined&&!e.some(h.declarations,function(e){return e.getSourceFile()===n.getSourceFile()}))){_.set(S,true)}r.push(T)}s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-g));return _}t.getCompletionEntriesFromSymbols=getCompletionEntriesFromSymbols;function getLabelCompletionAtPosition(e){var t=getLabelStatementCompletions(e);if(t.length){return{isGlobalCompletion:false,isMemberCompletion:false,isNewIdentifierLocation:false,entries:t}}}function getLabelStatementCompletions(t){var r=[];var n=e.createMap();var i=t;while(i){if(e.isFunctionLike(i)){break}if(e.isLabeledStatement(i)){var a=i.label.text;if(!n.has(a)){n.set(a,true);r.push({name:a,kindModifiers:"",kind:"label",sortText:"0"})}}i=i.parent}return r}function getSymbolCompletionFromEntryId(t,r,n,i,o){var s=t.getCompilerOptions();var c=getCompletionData(t,r,n,isUncheckedFile(n,s),i,{includeCompletionsForModuleExports:true,includeCompletionsWithInsertText:true},o);if(!c){return{type:"none"}}if(c.kind!==0){return{type:"request",request:c}}var u=c.symbols,l=c.literals,f=c.location,d=c.completionKind,p=c.symbolToOriginInfoMap,g=c.previousToken,_=c.isJsxInitializer;var m=e.find(l,function(e){return a(e)===o.name});if(m!==undefined)return{type:"literal",literal:m};return e.firstDefined(u,function(t){var r=p[e.getSymbolId(t)];var n=getCompletionEntryDisplayNameForSymbol(t,s.target,r,d);return n&&n.name===o.name&&getSourceFromOrigin(r)===o.source?{type:"symbol",symbol:t,location:f,symbolToOriginInfoMap:p,previousToken:g,isJsxInitializer:_}:undefined})||{type:"none"}}function getSymbolName(t,r,n){return r&&originIsExport(r)&&r.isDefaultExport&&t.escapedName==="default"?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:undefined})||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function getCompletionEntryDetails(r,n,i,o,s,c,l,f,d){var p=r.getTypeChecker();var g=r.getCompilerOptions();var _=s.name;var m=e.findPrecedingToken(o,i);if(e.isInString(i,o,m)){return t.StringCompletions.getStringLiteralCompletionDetails(_,i,o,m,p,g,c,d)}var y=getSymbolCompletionFromEntryId(r,n,i,o,s);switch(y.type){case"request":{var h=y.request;switch(h.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(_);case 2:return e.JsDoc.getJSDocTagCompletionDetails(_);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(_);default:return e.Debug.assertNever(h)}}case"symbol":{var v=y.symbol,T=y.location,S=y.symbolToOriginInfoMap,b=y.previousToken;var x=getCompletionEntryCodeActionsAndSourceDisplay(S,v,r,p,c,g,i,o,b,l,f),C=x.codeActions,E=x.sourceDisplay;return createCompletionDetailsForSymbol(v,p,i,T,d,C,E)}case"literal":{var D=y.literal;return createSimpleDetails(a(D),"string",typeof D==="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return u().some(function(e){return e.name===_})?createSimpleDetails(_,"keyword",e.SymbolDisplayPartKind.keyword):undefined;default:e.Debug.assertNever(y)}}t.getCompletionEntryDetails=getCompletionEntryDetails;function createSimpleDetails(t,r,n){return createCompletionDetails(t,"",r,[e.displayPart(t,n)])}function createCompletionDetailsForSymbol(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)}),u=c.displayParts,l=c.documentation,f=c.symbolKind,d=c.tags;return createCompletionDetails(t.name,e.SymbolDisplay.getSymbolModifiers(t),f,u,l,d,o,s)}t.createCompletionDetailsForSymbol=createCompletionDetailsForSymbol;function createCompletionDetails(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}t.createCompletionDetails=createCompletionDetails;function getCompletionEntryCodeActionsAndSourceDisplay(t,r,n,i,a,o,s,c,u,l,f){var d=t[e.getSymbolId(r)];if(!d||!originIsExport(d)){return{codeActions:undefined,sourceDisplay:undefined}}var p=d.moduleSymbol;var g=i.getMergedSymbol(e.skipAlias(r.exportSymbol||r,i));var _=e.codefix.getImportCompletionAction(g,p,s,getSymbolName(r,d,o.target),a,n,l,u&&e.isIdentifier(u)?u.getStart(s):c,f),m=_.moduleSpecifier,y=_.codeAction;return{sourceDisplay:[e.textPart(m)],codeActions:[y]}}function getCompletionEntrySymbol(e,t,r,n,i){var a=getSymbolCompletionFromEntryId(e,t,r,n,i);return a.type==="symbol"?a.symbol:undefined}t.getCompletionEntrySymbol=getCompletionEntrySymbol;var o;(function(e){e[e["Data"]=0]="Data";e[e["JsDocTagName"]=1]="JsDocTagName";e[e["JsDocTag"]=2]="JsDocTag";e[e["JsDocParameterName"]=3]="JsDocParameterName"})(o||(o={}));var s;(function(e){e[e["ObjectPropertyDeclaration"]=0]="ObjectPropertyDeclaration";e[e["Global"]=1]="Global";e[e["PropertyAccess"]=2]="PropertyAccess";e[e["MemberLike"]=3]="MemberLike";e[e["String"]=4]="String";e[e["None"]=5]="None"})(s=t.CompletionKind||(t.CompletionKind={}));function getRecommendedCompletion(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),function(r){var i=r&&r.symbol;return i&&(i.flags&(8|384|32)&&!e.isAbstractConstructorSymbol(i))?getFirstSymbolInChain(i,t,n):undefined})}function getContextualType(t,r,n,i){var a=t.parent;switch(t.kind){case 72:return e.getContextualTypeFromParent(t,i);case 59:switch(a.kind){case 237:return i.getContextualType(a.initializer);case 204:return i.getTypeAtLocation(a.left);case 267:return i.getContextualTypeForJsxAttribute(a);default:return undefined}case 95:return i.getContextualType(a);case 74:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&a.parent.kind!==260?i.getContextualTypeForJsxAttribute(a.parent):undefined;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(t.kind===27?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}function getFirstSymbolInChain(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,false);if(i)return e.first(i);return t.parent&&(isModuleSymbol(t.parent)?t:getFirstSymbolInChain(t.parent,r,n))}function isModuleSymbol(e){return e.declarations.some(function(e){return e.kind===279})}function getCompletionData(t,r,n,i,a,o,s){var c=t.getTypeChecker();var u=e.timestamp();var l=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-u));u=e.timestamp();var f=e.isInComment(n,a,l);r("getCompletionData: Is inside comment: "+(e.timestamp()-u));var d=false;var p=false;if(f){if(e.hasDocComment(n,a)){if(n.text.charCodeAt(a-1)===64){return{kind:1}}else{var g=e.getLineStartPositionForPosition(a,n);if(!n.text.substring(g,a).match(/[^\*|\s|(/\*\*)]/)){return{kind:2}}}}var _=getJsDocTagAtPosition(l,a);if(_){if(_.tagName.pos<=a&&a<=_.tagName.end){return{kind:1}}if(isTagWithTypeExpression(_)&&_.typeExpression&&_.typeExpression.kind===283){l=e.getTokenAtPosition(n,a);if(!l||!e.isDeclarationName(l)&&(l.parent.kind!==305||l.parent.name!==l)){d=isCurrentlyEditingNode(_.typeExpression)}}if(e.isJSDocParameterTag(_)&&(e.nodeIsMissing(_.name)||_.name.pos<=a&&a<=_.name.end)){return{kind:3,tag:_}}}if(!d){r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return undefined}}u=e.timestamp();var m=e.findPrecedingToken(a,n,undefined);r("getCompletionData: Get previous token 1: "+(e.timestamp()-u));var y=m;if(y&&a<=y.end&&(e.isIdentifier(y)||e.isKeyword(y.kind))){var h=e.timestamp();y=e.findPrecedingToken(y.getFullStart(),n,undefined);r("getCompletionData: Get previous token 2: "+(e.timestamp()-h))}var v=l;var T;var S=false;var b=false;var x=false;var C=false;var E=e.getTouchingPropertyName(n,a);if(y){if(isCompletionListBlocker(y)){r("Returning an empty list because completion was requested in an invalid position.");return undefined}var D=y.parent;if(y.kind===24){S=true;switch(D.kind){case 189:T=D;v=T.expression;break;case 148:v=D.left;break;case 244:v=D.name;break;case 183:case 214:v=D;break;default:return undefined}}else if(n.languageVariant===1){if(D&&D.kind===189){y=D;D=D.parent}if(l.parent===E){switch(l.kind){case 30:if(l.parent.kind===260||l.parent.kind===262){E=l}break;case 42:if(l.parent.kind===261){E=l}break}}switch(D.kind){case 263:if(y.kind===42){x=true;E=y}break;case 204:if(!binaryExpressionMayBeOpenTag(D)){break}case 261:case 260:case 262:if(y.kind===28){b=true;E=y}break;case 267:switch(m.kind){case 59:C=true;break;case 72:if(D!==m.parent&&!D.initializer&&e.findChildOfKind(D,59,n)){C=m}}break}}}var k=e.timestamp();var N=5;var A=false;var O=0;var F=[];var P=[];if(S){getTypeScriptMemberSymbols()}else if(b){var I=e.Debug.assertEachDefined(c.getJsxIntrinsicTagNamesAt(E),"getJsxIntrinsicTagNames() should all be defined");tryGetGlobalSymbols();F=I.concat(F);N=3;O=0}else if(x){var w=y.parent.parent.openingElement.tagName;var M=c.getSymbolAtLocation(w);if(M){F=[M]}N=3;O=0}else{if(!tryGetGlobalSymbols()){return undefined}}r("getCompletionData: Semantic work: "+(e.timestamp()-k));var L=m&&getContextualType(m,a,n,c);var R=e.mapDefined(L&&(L.isUnion()?L.types:[L]),function(e){return e.isLiteral()?e.value:undefined});var B=m&&L&&getRecommendedCompletion(m,L,c);return{kind:0,symbols:F,completionKind:N,isInSnippetScope:p,propertyAccessToConvert:T,isNewIdentifierLocation:A,location:E,keywordFilters:O,literals:R,symbolToOriginInfoMap:P,recommendedCompletion:B,previousToken:m,isJsxInitializer:C};function isTagWithTypeExpression(e){switch(e.kind){case 299:case 305:case 300:case 302:case 304:return true;default:return false}}function getTypeScriptMemberSymbols(){N=2;var t=e.isLiteralImportTypeNode(v);var r=d||t&&!v.isTypeOf||e.isPartOfTypeNode(v.parent);var i=e.isInRightSideOfInternalImportEqualsDeclaration(v);var a=i||!r&&e.isPossiblyTypeArgumentPosition(y,n,c);if(e.isEntityName(v)||t){var o=e.isModuleDeclaration(v.parent);if(o)A=true;var s=c.getSymbolAtLocation(v);if(s){s=e.skipAlias(s,c);if(s.flags&(1536|384)){var u=e.Debug.assertEachDefined(c.getExportsOfModule(s),"getExportsOfModule() should all be defined");var l=function(e){return c.isValidPropertyAccess(t?v:v.parent,e.name)};var f=function(e){return symbolCanBeReferencedAtTypeLocation(e)};var p=o?function(e){return!!(e.flags&1920)&&!e.declarations.every(function(e){return e.parent===v.parent})}:a?function(e){return f(e)||l(e)}:r?f:l;for(var g=0,_=u;g<_.length;g++){var m=_[g];if(p(m)){F.push(m)}}if(!r&&s.declarations.some(function(e){return e.kind!==279&&e.kind!==244&&e.kind!==243})){addTypeProperties(c.getTypeOfSymbolAtLocation(s,v))}return}}}if(e.isMetaProperty(v)&&(v.keywordToken===95||v.keywordToken===92)){var h=v.keywordToken===95?"target":"meta";F.push(c.createSymbol(4,e.escapeLeadingUnderscores(h)));return}if(!r){addTypeProperties(c.getTypeAtLocation(v))}}function addTypeProperties(e){A=!!e.getStringIndexType();if(i){F.push.apply(F,getPropertiesForCompletion(e,c))}else{for(var t=0,r=e.getApparentProperties();t<r.length;t++){var n=r[t];if(c.isValidPropertyAccessForCompletions(v.kind===183?v:v.parent,e,n)){addPropertySymbol(n)}}}}function addPropertySymbol(t){var r=e.firstDefined(t.declarations,function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)});if(r){var n=getLeftMostName(r.expression);var i=n&&c.getSymbolAtLocation(n);var a=i&&getFirstSymbolInChain(i,y,c);if(a&&!P[e.getSymbolId(a)]){F.push(a);var o=a.parent;P[e.getSymbolId(a)]=!o||!e.isExternalModuleSymbol(o)?{kind:1}:{kind:2,moduleSymbol:o,isDefaultExport:false}}}else{F.push(t)}}function getLeftMostName(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?getLeftMostName(t.expression):undefined}function tryGetGlobalSymbols(){var e=tryGetObjectLikeCompletionSymbols()||tryGetImportOrExportClauseCompletionSymbols()||tryGetConstructorCompletion()||tryGetClassLikeCompletionSymbols()||tryGetJsxCompletionSymbols()||(getGlobalCompletions(),1);return e===1}function tryGetConstructorCompletion(){if(!tryGetConstructorLikeCompletionContainer(y))return 0;N=5;A=true;O=4;return 1}function tryGetJsxCompletionSymbols(){var e=tryGetContainingJsxElement(y);var t=e&&c.getContextualType(e.attributes);if(!t)return 0;F=filterJsxAttributes(getPropertiesForObjectExpression(t,e.attributes,c),e.attributes.properties);N=3;A=false;return 1}function getGlobalCompletions(){O=tryGetFunctionLikeBodyCompletionContainer(y)?5:1;N=1;A=isNewIdentifierDefinitionLocation(y);if(m!==y){e.Debug.assert(!!m,"Expected 'contextToken' to be defined when different from 'previousToken'.")}var r=m!==y?m.getStart():a;var i=getScopeNode(y,r,n)||n;p=isSnippetScope(i);var s=isTypeOnlyCompletion();var u=(s?0:67220415)|67897832|1920|2097152;F=e.Debug.assertEachDefined(c.getSymbolsInScope(i,u),"getSymbolsInScope() should all be defined");if(o.includeCompletionsWithInsertText&&i.kind!==279){var l=c.tryGetThisTypeAt(i);if(l){for(var f=0,d=getPropertiesForCompletion(l,c);f<d.length;f++){var g=d[f];P[e.getSymbolId(g)]={kind:0};F.push(g)}}}if(shouldOfferImportCompletions()){getSymbolsFromOtherSourceFileExports(F,m&&e.isIdentifier(m)?m.text:"",t.getCompilerOptions().target)}filterGlobalCompletion(F)}function shouldOfferImportCompletions(){if(!o.includeCompletionsForModuleExports)return false;if(n.externalModuleIndicator)return true;if(n.commonJsModuleIndicator)return false;if(e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions()))return true;return e.programContainsEs6Modules(t)}function isSnippetScope(t){switch(t.kind){case 279:case 206:case 270:case 218:return true;default:return e.isStatement(t)}}function filterGlobalCompletion(t){var r=isTypeOnlyCompletion();var i=r||!isContextTokenValueLocation(y)&&e.isPossiblyTypeArgumentPosition(y,n,c);if(r)O=6;e.filterMutate(t,function(t){if(!e.isSourceFile(E)){if(e.isExportAssignment(E.parent)){return true}t=e.skipAlias(t,c);if(e.isInRightSideOfInternalImportEqualsDeclaration(E)){return!!(t.flags&1920)}if(i){var n=symbolCanBeReferencedAtTypeLocation(t);if(n||r){return n}}}return!!(e.getCombinedLocalAndExportSymbolFlags(t)&67220415)})}function isTypeOnlyCompletion(){return d||!isContextTokenValueLocation(y)&&(e.isPartOfTypeNode(E)||isContextTokenTypeLocation(y))}function isContextTokenValueLocation(t){return t&&t.kind===104&&(t.parent.kind===167||e.isTypeOfExpression(t.parent))}function isContextTokenTypeLocation(t){if(t){var r=t.parent.kind;switch(t.kind){case 57:return r===154||r===153||r===151||r===237||e.isFunctionLikeKind(r);case 59:return r===242;case 119:return r===212}}return false}function symbolCanBeReferencedAtTypeLocation(t,r){if(r===void 0){r=e.createMap()}var n=e.skipAlias(t.exportSymbol||t,c);return!!(n.flags&67897832)||!!(n.flags&1536)&&e.addToSeen(r,e.getSymbolId(n))&&c.getExportsOfModule(n).some(function(e){return symbolCanBeReferencedAtTypeLocation(e,r)})}function getSymbolsFromOtherSourceFileExports(r,i,a){var o=i.toLowerCase();var u=e.createMap();e.codefix.forEachExternalModuleToImportFrom(c,n,t.getSourceFiles(),function(t){if(s&&s.source&&e.stripQuotes(t.name)!==s.source){return}var n=c.resolveExternalModuleSymbol(t);if(!e.addToSeen(u,e.getSymbolId(n))){return}if(n!==t&&e.some(n.declarations,function(e){return!!e.getSourceFile().externalModuleIndicator})){r.push(n);P[e.getSymbolId(n)]={kind:3,moduleSymbol:t,isDefaultExport:false}}for(var i=0,l=c.getExportsOfModule(t);i<l.length;i++){var f=l[i];if(c.getMergedSymbol(f.parent)!==n||e.some(f.declarations,function(t){return e.isExportSpecifier(t)&&(t.propertyName?e.isIdentifierANonContextualKeyword(t.name):!!t.parent.parent.moduleSpecifier)})){continue}var d=f.escapedName==="default";if(d){f=e.getLocalSymbolForExportDefault(f)||f}var p={kind:3,moduleSymbol:t,isDefaultExport:d};if(s||stringContainsCharactersInOrder(getSymbolName(f,p,a).toLowerCase(),o)){r.push(f);P[e.getSymbolId(f)]=p}}})}function stringContainsCharactersInOrder(e,t){if(t.length===0){return true}var r=0;for(var n=0;n<e.length;n++){if(e.charCodeAt(n)===t.charCodeAt(r)){r++;if(r===t.length){return true}}}return false}function getScopeNode(t,r,n){var i=t;while(i&&!e.positionBelongsToNode(i,r,n)){i=i.parent}return i}function isCompletionListBlocker(t){var n=e.timestamp();var i=isInStringOrRegularExpressionOrTemplateLiteral(t)||isSolelyIdentifierDefinitionLocation(t)||isDotOfNumericLiteral(t)||isInJsxText(t);r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n));return i}function isInJsxText(e){if(e.kind===11){return true}if(e.kind===30&&e.parent){if(e.parent.kind===262){return true}if(e.parent.kind===263||e.parent.kind===261){return!!e.parent.parent&&e.parent.parent.kind===260}}return false}function isNewIdentifierDefinitionLocation(e){if(e){var t=e.parent.kind;switch(keywordForNode(e)){case 27:return t===191||t===157||t===192||t===187||t===204||t===165;case 20:return t===191||t===157||t===192||t===195||t===177;case 22:return t===187||t===162||t===149;case 130:case 131:return true;case 24:return t===244;case 18:return t===240;case 59:return t===237||t===204;case 15:return t===206;case 16:return t===216;case 115:case 113:case 114:return t===154}}return false}function isInStringOrRegularExpressionOrTemplateLiteral(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),a)||a===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}function tryGetObjectLikeCompletionSymbols(){var t=tryGetObjectLikeCompletionContainer(y);if(!t)return 0;N=0;var r;var n;if(t.kind===188){var i=c.getContextualType(t);if(!i)return 2;A=e.hasIndexSignature(i);r=getPropertiesForObjectExpression(i,t,c);n=t.properties}else{e.Debug.assert(t.kind===184);A=false;var a=e.getRootDeclaration(t.parent);if(!e.isVariableLike(a))return e.Debug.fail("Root declaration is not variable-like.");var o=e.hasInitializer(a)||e.hasType(a)||a.parent.parent.kind===227;if(!o&&a.kind===151){if(e.isExpression(a.parent)){o=!!c.getContextualType(a.parent)}else if(a.parent.kind===156||a.parent.kind===159){o=e.isExpression(a.parent.parent)&&!!c.getContextualType(a.parent.parent)}}if(o){var i=c.getTypeAtLocation(t);if(!i)return 2;r=c.getPropertiesOfType(i).filter(function(t){return!(e.getDeclarationModifierFlagsFromSymbol(t)&24)});n=t.elements}}if(r&&r.length>0){F=filterObjectMembersList(r,e.Debug.assertDefined(n))}return 1}function tryGetImportOrExportClauseCompletionSymbols(){var t=y&&(y.kind===18||y.kind===27)?e.tryCast(y.parent,e.isNamedImportsOrExports):undefined;if(!t)return 0;var r=(t.kind===252?t.parent.parent:t.parent).moduleSpecifier;var n=c.getSymbolAtLocation(r);if(!n)return 2;N=3;A=false;var i=c.getExportsAndPropertiesOfModule(n);var a=e.arrayToSet(t.elements,function(e){return isCurrentlyEditingNode(e)?undefined:(e.propertyName||e.name).escapedText});F=i.filter(function(e){return e.escapedName!=="default"&&!a.get(e.escapedName)});return 1}function tryGetClassLikeCompletionSymbols(){var t=tryGetObjectTypeDeclarationCompletionContainer(n,y,E);if(!t)return 0;N=3;A=true;O=y.kind===40?0:e.isClassLike(t)?2:3;if(!e.isClassLike(t))return 1;var r=y.parent;var i=e.isClassElement(r)?e.getModifierFlags(r):0;if(y.kind===72&&!isCurrentlyEditingNode(y)){switch(y.getText()){case"private":i=i|8;break;case"static":i=i|32;break}}if(!(i&8)){var a=e.flatMap(e.getAllSuperTypeNodes(t),function(e){var r=c.getTypeAtLocation(e);return r&&c.getPropertiesOfType(i&32?c.getTypeOfSymbolAtLocation(r.symbol,t):r)});F=filterClassMembersList(a,t.members,i)}return 1}function tryGetObjectLikeCompletionContainer(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r)){return r}break;case 40:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):undefined;case 72:return t.text==="async"&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:undefined}}return undefined}function isConstructorParameterCompletion(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function tryGetConstructorLikeCompletionContainer(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:undefined;default:if(isConstructorParameterCompletion(t)){return r.parent}}}return undefined}function tryGetFunctionLikeBodyCompletionContainer(t){if(t){var r;var n=e.findAncestor(t.parent,function(t){if(e.isClassLike(t)){return"quit"}if(e.isFunctionLikeDeclaration(t)&&r===t.body){return true}r=t;return false});return n&&n}}function tryGetContainingJsxElement(t){if(t){var r=t.parent;switch(t.kind){case 30:case 29:case 42:case 72:case 189:case 268:case 267:case 269:if(r&&(r.kind===261||r.kind===262)){if(t.kind===30){var i=e.findPrecedingToken(t.pos,n,undefined);if(!r.typeArguments||i&&i.kind===42)break}return r}else if(r.kind===267){return r.parent.parent}break;case 10:if(r&&(r.kind===267||r.kind===269)){return r.parent.parent}break;case 19:if(r&&r.kind===270&&r.parent&&r.parent.kind===267){return r.parent.parent.parent}if(r&&r.kind===269){return r.parent.parent}break}}return undefined}function isSolelyIdentifierDefinitionLocation(t){var r=t.parent;var n=r.kind;switch(t.kind){case 27:return n===237||n===238||n===219||n===243||isFunctionLikeButNotConstructor(n)||n===241||n===185||n===242||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return n===185;case 57:return n===186;case 22:return n===185;case 20:return n===274||isFunctionLikeButNotConstructor(n);case 18:return n===243;case 28:return n===240||n===209||n===241||n===242||e.isFunctionLikeKind(n);case 116:return n===154&&!e.isClassLike(r.parent);case 25:return n===151||!!r.parent&&r.parent.kind===185;case 115:case 113:case 114:return n===151&&!e.isConstructorDeclaration(r.parent);case 119:return n===253||n===257||n===251;case 126:case 137:return!isFromObjectTypeDeclaration(t);case 76:case 84:case 110:case 90:case 105:case 92:case 111:case 77:case 117:case 140:return true;case 40:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(isClassMemberCompletionKeyword(keywordForNode(t))&&isFromObjectTypeDeclaration(t)){return false}if(isConstructorParameterCompletion(t)){if(!e.isIdentifier(t)||e.isParameterPropertyModifier(keywordForNode(t))||isCurrentlyEditingNode(t)){return false}}switch(keywordForNode(t)){case 118:case 76:case 77:case 125:case 84:case 90:case 110:case 111:case 113:case 114:case 115:case 116:case 105:case 117:return true;case 121:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==m||a>m.end))}function isFunctionLikeButNotConstructor(t){return e.isFunctionLikeKind(t)&&t!==157}function isDotOfNumericLiteral(e){if(e.kind===8){var t=e.getFullText();return t.charAt(t.length-1)==="."}return false}function filterObjectMembersList(t,r){if(r.length===0){return t}var n=e.createUnderscoreEscapedMap();for(var i=0,a=r;i<a.length;i++){var o=a[i];if(o.kind!==275&&o.kind!==276&&o.kind!==186&&o.kind!==156&&o.kind!==158&&o.kind!==159){continue}if(isCurrentlyEditingNode(o)){continue}var s=void 0;if(e.isBindingElement(o)&&o.propertyName){if(o.propertyName.kind===72){s=o.propertyName.escapedText}}else{var c=e.getNameOfDeclaration(o);s=c&&e.isPropertyNameLiteral(c)?e.getEscapedTextOfIdentifierOrLiteral(c):undefined}n.set(s,true)}return t.filter(function(e){return!n.get(e.escapedName)})}function filterClassMembersList(t,r,n){var i=e.createUnderscoreEscapedMap();for(var a=0,o=r;a<o.length;a++){var s=o[a];if(s.kind!==154&&s.kind!==156&&s.kind!==158&&s.kind!==159){continue}if(isCurrentlyEditingNode(s)){continue}if(e.hasModifier(s,8)){continue}if(e.hasModifier(s,32)!==!!(n&32)){continue}var c=e.getPropertyNameForPropertyNameNode(s.name);if(c){i.set(c,true)}}return t.filter(function(t){return!i.has(t.escapedName)&&!!t.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(t)&8)})}function filterJsxAttributes(t,r){var n=e.createUnderscoreEscapedMap();for(var i=0,a=r;i<a.length;i++){var o=a[i];if(isCurrentlyEditingNode(o)){continue}if(o.kind===267){n.set(o.name.escapedText,true)}}return t.filter(function(e){return!n.get(e.escapedName)})}function isCurrentlyEditingNode(e){return e.getStart(n)<=a&&a<=e.getEnd()}}function getCompletionEntryDisplayNameForSymbol(t,r,n,i){var a=getSymbolName(t,n,r);if(a===undefined||t.flags&1536&&e.startsWithQuote(a)||e.isKnownSymbol(t)){return undefined}var o={name:a,needsConvertPropertyAccess:false};if(e.isIdentifierText(a,r))return o;switch(i){case 3:return undefined;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:false};case 2:case 1:return a.charCodeAt(0)===32?undefined:{name:a,needsConvertPropertyAccess:true};case 5:case 4:return o;default:e.Debug.assertNever(i)}}var c=[];var u=e.memoize(function(){var t=[];for(var r=73;r<=147;r++){t.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:"0"})}return t});function getKeywordCompletions(t){return c[t]||(c[t]=u().filter(function(r){var n=e.stringToToken(r.name);switch(t){case 0:return false;case 1:return n===121||122||!e.isContextualKeyword(n)&&!isClassMemberCompletionKeyword(n)||n===125||n===130||e.isTypeKeyword(n)&&n!==141;case 2:return isClassMemberCompletionKeyword(n);case 3:return isInterfaceOrTypeLiteralCompletionKeyword(n);case 4:return e.isParameterPropertyModifier(n);case 5:return isFunctionLikeBodyKeyword(n);case 6:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}}))}function isInterfaceOrTypeLiteralCompletionKeyword(e){return e===133}function isClassMemberCompletionKeyword(t){switch(t){case 118:case 124:case 126:case 137:case 121:return true;default:return e.isClassMemberModifier(t)}}function isFunctionLikeBodyKeyword(t){return t===121||t===122||!e.isContextualKeyword(t)&&!isClassMemberCompletionKeyword(t)}function keywordForNode(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function getJsDocTagAtPosition(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,function(e){return e.pos<r}):undefined)}function getPropertiesForObjectExpression(t,r,n){return t.isUnion()?n.getAllPossiblePropertiesOfTypes(t.types.filter(function(t){return!(t.flags&131068||n.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,n)||n.isTypeInvalidDueToUnionDiscriminant(t,r))})):t.getApparentProperties()}function getPropertiesForCompletion(t,r){return t.isUnion()?e.Debug.assertEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function tryGetObjectTypeDeclarationCompletionContainer(t,r,n){switch(n.kind){case 306:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,19,t)){return i}}if(!r)return undefined;switch(r.kind){case 26:case 19:return isFromObjectTypeDeclaration(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!isFromObjectTypeDeclaration(r))return undefined;var a=e.isClassLike(r.parent.parent)?isClassMemberCompletionKeyword:isInterfaceOrTypeLiteralCompletionKeyword;return a(r.kind)||r.kind===40||e.isIdentifier(r)&&a(e.stringToToken(r.text))?r.parent.parent:undefined}}function isFromObjectTypeDeclaration(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function isValidTrigger(t,r,n,i){switch(r){case".":case"@":return true;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"<":return!!n&&n.kind===28&&(!e.isBinaryExpression(n.parent)||binaryExpressionMayBeOpenTag(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):n.kind===42&&e.isJsxClosingElement(n.parent));default:return e.Debug.assertNever(r)}}function binaryExpressionMayBeOpenTag(t){var r=t.left;return e.nodeIsMissing(r)}})(t=e.Completions||(e.Completions={}))})(s||(s={}));var s;(function(e){var t;(function(t){function getDocumentHighlights(t,r,n,i,a){var o=e.getTouchingPropertyName(n,i);if(o.parent&&(e.isJsxOpeningElement(o.parent)&&o.parent.tagName===o||e.isJsxClosingElement(o.parent))){var s=o.parent.parent,c=s.openingElement,u=s.closingElement;var l=[c,u].map(function(e){var t=e.tagName;return getHighlightSpanForNode(t,n)});return[{fileName:n.fileName,highlightSpans:l}]}return getSemanticDocumentHighlights(i,o,t,r,a)||getSyntacticDocumentHighlights(o,n)}t.getDocumentHighlights=getDocumentHighlights;function getHighlightSpanForNode(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function getSemanticDocumentHighlights(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName});var s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,undefined,o);if(!s)return undefined;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r);var c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName;e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}function getSyntacticDocumentHighlights(e,t){var r=getHighlightSpans(e,t);return r&&[{fileName:t.fileName,highlightSpans:r}]}function getHighlightSpans(t,r){switch(t.kind){case 91:case 83:return e.isIfStatement(t.parent)?getIfElseOccurrences(t.parent,r):undefined;case 97:return useParent(t.parent,e.isReturnStatement,getReturnOccurrences);case 101:return useParent(t.parent,e.isThrowStatement,getThrowOccurrences);case 103:case 75:case 88:var n=t.kind===75?t.parent.parent:t.parent;return useParent(n,e.isTryStatement,getTryCatchFinallyOccurrences);case 99:return useParent(t.parent,e.isSwitchStatement,getSwitchCaseDefaultOccurrences);case 74:case 80:return useParent(t.parent.parent.parent,e.isSwitchStatement,getSwitchCaseDefaultOccurrences);case 73:case 78:return useParent(t.parent,e.isBreakOrContinueStatement,getBreakOrContinueStatementOccurrences);case 89:case 107:case 82:return useParent(t.parent,function(t){return e.isIterationStatement(t,true)},getLoopBreakContinueOccurrences);case 124:return getFromAllDeclarations(e.isConstructorDeclaration,[124]);case 126:case 137:return getFromAllDeclarations(e.isAccessor,[126,137]);case 122:return useParent(t.parent,e.isAwaitExpression,getAsyncAndAwaitOccurrences);case 121:return highlightSpans(getAsyncAndAwaitOccurrences(t));case 117:return highlightSpans(getYieldOccurrences(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?highlightSpans(getModifierOccurrences(t.kind,t.parent)):undefined}function getFromAllDeclarations(n,i){return useParent(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(r),function(t){return e.contains(i,t.kind)}):undefined})})}function useParent(e,t,n){return t(e)?highlightSpans(n(e,r)):undefined}function highlightSpans(e){return e&&e.map(function(e){return getHighlightSpanForNode(e,r)})}}function aggregateOwnedThrowStatements(t){if(e.isThrowStatement(t)){return[t]}else if(e.isTryStatement(t)){return e.concatenate(t.catchClause?aggregateOwnedThrowStatements(t.catchClause):t.tryBlock&&aggregateOwnedThrowStatements(t.tryBlock),t.finallyBlock&&aggregateOwnedThrowStatements(t.finallyBlock))}return e.isFunctionLike(t)?undefined:flatMapChildren(t,aggregateOwnedThrowStatements)}function getThrowStatementOwner(t){var r=t;while(r.parent){var n=r.parent;if(e.isFunctionBlock(n)||n.kind===279){return n}if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause){return r}r=n}return undefined}function aggregateAllBreakAndContinueStatements(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?undefined:flatMapChildren(t,aggregateAllBreakAndContinueStatements)}function flatMapChildren(t,r){var n=[];t.forEachChild(function(t){var i=r(t);if(i!==undefined){n.push.apply(n,e.toArray(i))}});return n}function ownsBreakOrContinueStatement(e,t){var r=getBreakOrContinueOwner(t);return!!r&&r===e}function getBreakOrContinueOwner(t){return e.findAncestor(t,function(r){switch(r.kind){case 232:if(t.kind===228){return false}case 225:case 226:case 227:case 224:case 223:return!t.label||isLabeledBy(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}})}function getModifierOccurrences(t,r){return e.mapDefined(getNodesToSearchForModifier(r,e.modifierToFlag(t)),function(r){return e.findModifier(r,t)})}function getNodesToSearchForModifier(t,r){var n=t.parent;switch(n.kind){case 245:case 279:case 218:case 271:case 272:if(r&128&&e.isClassDeclaration(t)){return t.members.concat([t])}else{return n.statements}case 157:case 156:case 239:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 240:case 209:var i=n.members;if(r&28){var a=e.find(n.members,e.isConstructorDeclaration);if(a){return i.concat(a.parameters)}}else if(r&128){return i.concat([n])}return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}function pushKeywordIf(t,r){var n=[];for(var i=2;i<arguments.length;i++){n[i-2]=arguments[i]}if(r&&e.contains(n,r.kind)){t.push(r);return true}return false}function getLoopBreakContinueOccurrences(t){var r=[];if(pushKeywordIf(r,t.getFirstToken(),89,107,82)){if(t.kind===223){var n=t.getChildren();for(var i=n.length-1;i>=0;i--){if(pushKeywordIf(r,n[i],107)){break}}}}e.forEach(aggregateAllBreakAndContinueStatements(t.statement),function(e){if(ownsBreakOrContinueStatement(t,e)){pushKeywordIf(r,e.getFirstToken(),73,78)}});return r}function getBreakOrContinueStatementOccurrences(e){var t=getBreakOrContinueOwner(e);if(t){switch(t.kind){case 225:case 226:case 227:case 223:case 224:return getLoopBreakContinueOccurrences(t);case 232:return getSwitchCaseDefaultOccurrences(t)}}return undefined}function getSwitchCaseDefaultOccurrences(t){var r=[];pushKeywordIf(r,t.getFirstToken(),99);e.forEach(t.caseBlock.clauses,function(n){pushKeywordIf(r,n.getFirstToken(),74,80);e.forEach(aggregateAllBreakAndContinueStatements(n),function(e){if(ownsBreakOrContinueStatement(t,e)){pushKeywordIf(r,e.getFirstToken(),73)}})});return r}function getTryCatchFinallyOccurrences(t,r){var n=[];pushKeywordIf(n,t.getFirstToken(),103);if(t.catchClause){pushKeywordIf(n,t.catchClause.getFirstToken(),75)}if(t.finallyBlock){var i=e.findChildOfKind(t,88,r);pushKeywordIf(n,i,88)}return n}function getThrowOccurrences(t,r){var n=getThrowStatementOwner(t);if(!n){return undefined}var i=[];e.forEach(aggregateOwnedThrowStatements(n),function(t){i.push(e.findChildOfKind(t,101,r))});if(e.isFunctionBlock(n)){e.forEachReturnStatement(n,function(t){i.push(e.findChildOfKind(t,97,r))})}return i}function getReturnOccurrences(t,r){var n=e.getContainingFunction(t);if(!n){return undefined}var i=[];e.forEachReturnStatement(e.cast(n.body,e.isBlock),function(t){i.push(e.findChildOfKind(t,97,r))});e.forEach(aggregateOwnedThrowStatements(n.body),function(t){i.push(e.findChildOfKind(t,101,r))});return i}function getAsyncAndAwaitOccurrences(t){var r=e.getContainingFunction(t);if(!r){return undefined}var n=[];if(r.modifiers){r.modifiers.forEach(function(e){pushKeywordIf(n,e,121)})}e.forEachChild(r,function(t){traverseWithoutCrossingFunction(t,function(t){if(e.isAwaitExpression(t)){pushKeywordIf(n,t.getFirstToken(),122)}})});return n}function getYieldOccurrences(t){var r=e.getContainingFunction(t);if(!r){return undefined}var n=[];e.forEachChild(r,function(t){traverseWithoutCrossingFunction(t,function(t){if(e.isYieldExpression(t)){pushKeywordIf(n,t.getFirstToken(),117)}})});return n}function traverseWithoutCrossingFunction(t,r){r(t);if(!e.isFunctionLike(t)&&!e.isClassLike(t)&&!e.isInterfaceDeclaration(t)&&!e.isModuleDeclaration(t)&&!e.isTypeAliasDeclaration(t)&&!e.isTypeNode(t)){e.forEachChild(t,function(e){return traverseWithoutCrossingFunction(e,r)})}}function getIfElseOccurrences(t,r){var n=getIfElseKeywords(t,r);var i=[];for(var a=0;a<n.length;a++){if(n[a].kind===83&&a<n.length-1){var o=n[a];var s=n[a+1];var c=true;for(var u=s.getStart(r)-1;u>=o.end;u--){if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(u))){c=false;break}}if(c){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(o.getStart(),s.end),kind:"reference"});a++;continue}}i.push(getHighlightSpanForNode(n[a],r))}return i}function getIfElseKeywords(t,r){var n=[];while(e.isIfStatement(t.parent)&&t.parent.elseStatement===t){t=t.parent}while(true){var i=t.getChildren(r);pushKeywordIf(n,i[0],91);for(var a=i.length-1;a>=0;a--){if(pushKeywordIf(n,i[a],83)){break}}if(!t.elseStatement||!e.isIfStatement(t.elseStatement)){break}t=t.elseStatement}return n}function isLabeledBy(t,r){return!!e.findAncestor(t.parent,function(t){return!e.isLabeledStatement(t)?"quit":t.label.escapedText===r})}})(t=e.DocumentHighlights||(e.DocumentHighlights={}))})(s||(s={}));var s;(function(e){function createDocumentRegistry(e,t){return createDocumentRegistryInternal(e,t)}e.createDocumentRegistry=createDocumentRegistry;function createDocumentRegistryInternal(t,r,n){if(r===void 0){r=""}var i=e.createMap();var a=e.createGetCanonicalFileName(!!t);function reportStats(){var t=e.arrayFrom(i.keys()).filter(function(e){return e&&e.charAt(0)==="_"}).map(function(e){var t=i.get(e);var r=[];t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})});r.sort(function(e,t){return t.refCount-e.refCount});return{bucket:e,sourceFiles:r}});return JSON.stringify(t,undefined,2)}function acquireDocument(t,n,i,o,s){var c=e.toPath(t,r,a);var u=getKeyForCompilationSettings(n);return acquireDocumentWithKey(t,c,n,u,i,o,s)}function acquireDocumentWithKey(e,t,r,n,i,a,o){return acquireOrUpdateDocument(e,t,r,n,i,a,true,o)}function updateDocument(t,n,i,o,s){var c=e.toPath(t,r,a);var u=getKeyForCompilationSettings(n);return updateDocumentWithKey(t,c,n,u,i,o,s)}function updateDocumentWithKey(e,t,r,n,i,a,o){return acquireOrUpdateDocument(e,t,r,n,i,a,false,o)}function acquireOrUpdateDocument(t,r,a,o,s,c,u,l){var f=e.getOrUpdate(i,o,e.createMap);var d=f.get(r);var p=l===6?100:a.target||1;if(!d&&n){var g=n.getDocument(o,r);if(g){e.Debug.assert(u);d={sourceFile:g,languageServiceRefCount:0};f.set(r,d)}}if(!d){var g=e.createLanguageServiceSourceFile(t,s,p,c,false,l);if(n){n.setDocument(o,r,g)}d={sourceFile:g,languageServiceRefCount:1};f.set(r,d)}else{if(d.sourceFile.version!==c){d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot));if(n){n.setDocument(o,r,d.sourceFile)}}if(u){d.languageServiceRefCount++}}e.Debug.assert(d.languageServiceRefCount!==0);return d.sourceFile}function releaseDocument(t,n){var i=e.toPath(t,r,a);var o=getKeyForCompilationSettings(n);return releaseDocumentWithKey(i,o)}function releaseDocumentWithKey(t,r){var n=e.Debug.assertDefined(i.get(r));var a=n.get(t);a.languageServiceRefCount--;e.Debug.assert(a.languageServiceRefCount>=0);if(a.languageServiceRefCount===0){n.delete(t)}}function getLanguageServiceRefCounts(t){return e.arrayFrom(i.entries(),function(e){var r=e[0],n=e[1];var i=n.get(t);return[r,i&&i.languageServiceRefCount]})}return{acquireDocument:acquireDocument,acquireDocumentWithKey:acquireDocumentWithKey,updateDocument:updateDocument,updateDocumentWithKey:updateDocumentWithKey,releaseDocument:releaseDocument,releaseDocumentWithKey:releaseDocumentWithKey,getLanguageServiceRefCounts:getLanguageServiceRefCounts,reportStats:reportStats,getKeyForCompilationSettings:getKeyForCompilationSettings}}e.createDocumentRegistryInternal=createDocumentRegistryInternal;function getKeyForCompilationSettings(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}})(s||(s={}));var s;(function(e){var t;(function(t){function createImportTracker(e,t,r,i){var a=getDirectImportsMap(e,r,i);return function(o,s,c){var u=getImportersForExport(e,t,a,s,r,i),l=u.directImports,f=u.indirectUsers;return n({indirectUsers:f},getSearchesFromDirectImports(l,o,s.exportKind,r,c))}}t.createImportTracker=createImportTracker;var r;(function(e){e[e["Named"]=0]="Named";e[e["Default"]=1]="Default";e[e["ExportEquals"]=2]="ExportEquals"})(r=t.ExportKind||(t.ExportKind={}));var i;(function(e){e[e["Import"]=0]="Import";e[e["Export"]=1]="Export"})(i=t.ImportExport||(t.ImportExport={}));function getImportersForExport(t,r,n,i,a,o){var s=i.exportingModuleSymbol,c=i.exportKind;var u=e.nodeSeenTracker();var l=e.nodeSeenTracker();var f=[];var d=!!s.globalExports;var p=d?undefined:[];handleDirectImports(s);return{directImports:f,indirectUsers:getIndirectUsers()};function getIndirectUsers(){if(d){return t}for(var n=0,i=s.declarations;n<i.length;n++){var a=i[n];if(e.isExternalModuleAugmentation(a)&&r.has(a.getSourceFile().fileName)){addIndirectUser(a)}}return p.map(e.getSourceFileOfNode)}function handleDirectImports(t){var r=getDirectImports(t);if(r){for(var n=0,i=r;n<i.length;n++){var s=i[n];if(!u(s)){continue}if(o)o.throwIfCancellationRequested();switch(s.kind){case 191:if(!d){var l=s.parent;if(c===2&&l.kind===237){var p=l.name;if(p.kind===72){f.push(p);break}}addIndirectUser(s.getSourceFile())}break;case 72:break;case 248:handleNamespaceImport(s,s.name,e.hasModifier(s,1),false);break;case 249:f.push(s);var g=s.importClause&&s.importClause.namedBindings;if(g&&g.kind===251){handleNamespaceImport(s,g.name,false,true)}else if(!d&&e.isDefaultImport(s)){addIndirectUser(getSourceFileLikeForImportDeclaration(s))}break;case 255:if(!s.exportClause){handleDirectImports(getContainingModuleSymbol(s,a))}else{f.push(s)}break;case 183:f.push(s);break;default:e.Debug.assertNever(s,"Unexpected import kind: "+e.Debug.showSyntaxKind(s))}}}}function handleNamespaceImport(t,r,n,i){if(c===2){if(!i)f.push(t)}else if(!d){var o=getSourceFileLikeForImportDeclaration(t);e.Debug.assert(o.kind===279||o.kind===244);if(n||findNamespaceReExports(o,r,a)){addIndirectUsers(o)}else{addIndirectUser(o)}}}function addIndirectUser(t){e.Debug.assert(!d);var r=l(t);if(r){p.push(t)}return r}function addIndirectUsers(t){if(!addIndirectUser(t)){return}var r=a.getMergedSymbol(t.symbol);e.Debug.assert(!!(r.flags&1536));var n=getDirectImports(r);if(n){for(var i=0,o=n;i<o.length;i++){var s=o[i];addIndirectUsers(getSourceFileLikeForImportDeclaration(s))}}}function getDirectImports(t){return n.get(e.getSymbolId(t).toString())}}function getSearchesFromDirectImports(t,r,n,i,a){var o=[];var s=[];function addSearch(e,t){o.push([e,t])}if(t){for(var c=0,u=t;c<u.length;c++){var l=u[c];handleImport(l)}}return{importSearches:o,singleReferences:s};function handleImport(t){if(t.kind===248){if(isExternalModuleImportEquals(t)){handleNamespaceImportLike(t.name)}return}if(t.kind===72){handleNamespaceImportLike(t);return}if(t.kind===183){if(t.qualifier){if(e.isIdentifier(t.qualifier)&&t.qualifier.escapedText===e.symbolName(r)){s.push(t.qualifier)}}else if(n===2){s.push(t.argument.literal)}return}if(t.moduleSpecifier.kind!==10){return}if(t.kind===255){searchForNamedImport(t.exportClause);return}var o=t.importClause||{name:undefined,namedBindings:undefined},c=o.name,u=o.namedBindings;if(u){switch(u.kind){case 251:handleNamespaceImportLike(u.name);break;case 252:if(n===0||n===1){searchForNamedImport(u)}break;default:e.Debug.assertNever(u)}}if(c&&(n===1||n===2)&&(!a||c.escapedText===e.symbolEscapedNameNoDefault(r))){var l=i.getSymbolAtLocation(c);addSearch(c,l)}}function handleNamespaceImportLike(e){if(n===2&&(!a||isNameMatch(e.escapedText))){addSearch(e,i.getSymbolAtLocation(e))}}function searchForNamedImport(e){if(!e){return}for(var t=0,n=e.elements;t<n.length;t++){var o=n[t];var c=o.name,u=o.propertyName;if(!isNameMatch((u||c).escapedText)){continue}if(u){s.push(u);if(!a||c.escapedText===r.escapedName){addSearch(c,i.getSymbolAtLocation(c))}}else{var l=o.kind===257&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(c);addSearch(c,l)}}}function isNameMatch(e){return e===r.escapedName||n!==0&&e==="default"}}function findNamespaceReExports(t,r,n){var i=n.getSymbolAtLocation(r);return!!forEachPossibleImportOrExportStatement(t,function(t){if(!e.isExportDeclaration(t))return;var r=t.exportClause,a=t.moduleSpecifier;return!a&&r&&r.elements.some(function(e){return n.getExportSpecifierLocalTargetSymbol(e)===i})})}function findModuleReferences(e,t,r){var n=[];var i=e.getTypeChecker();for(var a=0,o=t;a<o.length;a++){var s=o[a];var c=r.valueDeclaration;if(c.kind===279){for(var u=0,l=s.referencedFiles;u<l.length;u++){var f=l[u];if(e.getSourceFileFromReference(s,f)===c){n.push({kind:"reference",referencingFile:s,ref:f})}}for(var d=0,p=s.typeReferenceDirectives;d<p.length;d++){var f=p[d];var g=e.getResolvedTypeReferenceDirectives().get(f.fileName);if(g!==undefined&&g.resolvedFileName===c.fileName){n.push({kind:"reference",referencingFile:s,ref:f})}}}forEachImport(s,function(e,t){var a=i.getSymbolAtLocation(t);if(a===r){n.push({kind:"import",literal:t})}})}return n}t.findModuleReferences=findModuleReferences;function getDirectImportsMap(t,r,n){var i=e.createMap();for(var a=0,o=t;a<o.length;a++){var s=o[a];if(n)n.throwIfCancellationRequested();forEachImport(s,function(t,n){var a=r.getSymbolAtLocation(n);if(a){var o=e.getSymbolId(a).toString();var s=i.get(o);if(!s){i.set(o,s=[])}s.push(t)}})}return i}function forEachPossibleImportOrExportStatement(t,r){return e.forEach(t.kind===279?t.statements:t.body.statements,function(t){return r(t)||isAmbientModuleDeclaration(t)&&e.forEach(t.body&&t.body.statements,r)})}function forEachImport(t,r){if(t.externalModuleIndicator||t.imports!==undefined){for(var n=0,i=t.imports;n<i.length;n++){var a=i[n];r(e.importFromModuleSpecifier(a),a)}}else{forEachPossibleImportOrExportStatement(t,function(t){switch(t.kind){case 255:case 249:{var n=t;if(n.moduleSpecifier&&e.isStringLiteral(n.moduleSpecifier)){r(n,n.moduleSpecifier)}break}case 248:{var n=t;if(isExternalModuleImportEquals(n)){r(n,n.moduleReference.expression)}break}}})}}function getImportOrExportSymbol(t,r,n,i){return i?getExport():getExport()||getImport();function getExport(){var a=t.parent;var o=a.parent;if(r.exportSymbol){if(a.kind===189){return r.declarations.some(function(e){return e===a})&&e.isBinaryExpression(o)?getSpecialPropertyExport(o,false):undefined}else{return exportInfo(r.exportSymbol,getExportKindForDeclaration(a))}}else{var s=getExportNode(a,t);if(s&&e.hasModifier(s,1)){if(e.isImportEqualsDeclaration(s)&&s.moduleReference===t){if(i){return undefined}var c=n.getSymbolAtLocation(s.name);return{kind:0,symbol:c}}else{return exportInfo(r,getExportKindForDeclaration(s))}}else if(e.isExportAssignment(a)){return getExportAssignmentExport(a)}else if(e.isExportAssignment(o)){return getExportAssignmentExport(o)}else if(e.isBinaryExpression(a)){return getSpecialPropertyExport(a,true)}else if(e.isBinaryExpression(o)){return getSpecialPropertyExport(o,true)}else if(e.isJSDocTypedefTag(a)){return exportInfo(r,0)}}function getExportAssignmentExport(t){var n=e.Debug.assertDefined(t.symbol.parent,"Expected export symbol to have a parent");var i=t.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:i}}}function getSpecialPropertyExport(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return undefined}var o=i?n.getSymbolAtLocation(e.cast(t.left,e.isPropertyAccessExpression).name):r;if(o&&!(n.getMergedSymbol(o.parent).flags&1536)){e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.showSymbol(o)+", parent is "+e.Debug.showSymbol(o.parent))}return o&&exportInfo(o,a)}}function getImport(){var i=isNodeImport(t);if(!i)return undefined;var a=n.getImmediateAliasedSymbol(r);if(!a)return undefined;a=skipExportSpecifierSymbol(a,n);if(a.escapedName==="export="){a=getExportEqualsLocalSymbol(a,n)}var o=e.symbolEscapedNameNoDefault(a);if(o===undefined||o==="default"||o===r.escapedName){return{kind:0,symbol:a}}}function exportInfo(e,t){var r=getExportInfo(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function getExportKindForDeclaration(t){return e.hasModifier(t,512)?1:0}}t.getImportOrExportSymbol=getImportOrExportSymbol;function getExportEqualsLocalSymbol(t,r){if(t.flags&2097152){return e.Debug.assertDefined(r.getImmediateAliasedSymbol(t))}var n=t.valueDeclaration;if(e.isExportAssignment(n)){return e.Debug.assertDefined(n.expression.symbol)}else if(e.isBinaryExpression(n)){return e.Debug.assertDefined(n.right.symbol)}else if(e.isSourceFile(n)){return e.Debug.assertDefined(n.symbol)}return e.Debug.fail()}function getExportNode(e,t){if(e.kind===237){var r=e;return r.name!==t?undefined:r.parent.kind===274?undefined:r.parent.parent.kind===219?r.parent.parent:undefined}else{return e}}function isNodeImport(t){var r=t.parent;switch(r.kind){case 248:return r.name===t&&isExternalModuleImportEquals(r);case 253:return!r.propertyName;case 250:case 251:e.Debug.assert(r.name===t);return true;default:return false}}function getExportInfo(t,r,n){var i=t.parent;if(!i)return undefined;var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:undefined}t.getExportInfo=getExportInfo;function skipExportSpecifierSymbol(t,r){if(t.declarations){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier){return r.getExportSpecifierLocalTargetSymbol(a)}}}return t}function getContainingModuleSymbol(e,t){return t.getMergedSymbol(getSourceFileLikeForImportDeclaration(e).symbol)}function getSourceFileLikeForImportDeclaration(t){if(t.kind===191){return t.getSourceFile()}var r=t.parent;if(r.kind===279){return r}e.Debug.assert(r.kind===245);return e.cast(r.parent,isAmbientModuleDeclaration)}function isAmbientModuleDeclaration(e){return e.kind===244&&e.name.kind===10}function isExternalModuleImportEquals(e){return e.moduleReference.kind===259&&e.moduleReference.expression.kind===10}})(t=e.FindAllReferences||(e.FindAllReferences={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["Symbol"]=0]="Symbol";e[e["Label"]=1]="Label";e[e["Keyword"]=2]="Keyword";e[e["This"]=3]="This";e[e["String"]=4]="String"})(r=t.DefinitionKind||(t.DefinitionKind={}));var i;(function(e){e[e["Span"]=0]="Span";e[e["Node"]=1]="Node";e[e["StringLiteral"]=2]="StringLiteral";e[e["SearchedLocalFoundProperty"]=3]="SearchedLocalFoundProperty";e[e["SearchedPropertyFoundLocal"]=4]="SearchedPropertyFoundLocal"})(i=t.EntryKind||(t.EntryKind={}));function nodeEntry(e,t){if(t===void 0){t=1}return{kind:t,node:e.name||e}}t.nodeEntry=nodeEntry;function findReferencedSymbols(r,n,i,a,o){var s=e.getTouchingPropertyName(a,o);var c=t.Core.getReferencedSymbolsForNode(o,s,r,i,n);var u=r.getTypeChecker();return!c||!c.length?undefined:e.mapDefined(c,function(e){var t=e.definition,r=e.references;return t&&{definition:u.runWithCancellationToken(n,function(e){return definitionToReferencedSymbolDefinitionInfo(t,e,s)}),references:r.map(toReferenceEntry)}})}t.findReferencedSymbols=findReferencedSymbols;function getImplementationsAtPosition(t,r,n,i,a){var o=e.getTouchingPropertyName(i,a);var s=getImplementationReferenceEntries(t,r,n,o,a);var c=t.getTypeChecker();return e.map(s,function(e){return toImplementationLocation(e,c)})}t.getImplementationsAtPosition=getImplementationsAtPosition;function getImplementationReferenceEntries(r,n,i,a,o){if(a.kind===279){return undefined}var s=r.getTypeChecker();if(a.parent.kind===276){var c=[];t.Core.getReferenceEntriesForShorthandPropertyAssignment(a,s,function(e){return c.push(nodeEntry(e))});return c}else if(a.kind===98||e.isSuperProperty(a.parent)){var u=s.getSymbolAtLocation(a);return u.valueDeclaration&&[nodeEntry(u.valueDeclaration)]}else{return getReferenceEntriesForNode(o,a,r,i,n,{implementations:true})}}function findReferenceOrRenameEntries(r,n,i,a,o,s,c){return e.map(flattenEntries(t.Core.getReferencedSymbolsForNode(o,a,r,i,n,s)),function(e){return c(e,a,r.getTypeChecker())})}t.findReferenceOrRenameEntries=findReferenceOrRenameEntries;function getReferenceEntriesForNode(r,n,i,a,o,s,c){if(s===void 0){s={}}if(c===void 0){c=e.arrayToSet(a,function(e){return e.fileName})}return flattenEntries(t.Core.getReferencedSymbolsForNode(r,n,i,a,o,s,c))}t.getReferenceEntriesForNode=getReferenceEntriesForNode;function flattenEntries(t){return t&&e.flatMap(t,function(e){return e.references})}function definitionToReferencedSymbolDefinitionInfo(t,r,n){var i=function(){switch(t.type){case 0:{var i=t.symbol;var a=getDefinitionKindAndDisplayParts(i,r,n),o=a.displayParts,s=a.kind;var c=o.map(function(e){return e.text}).join("");return{node:i.declarations?e.getNameOfDeclaration(e.first(i.declarations))||e.first(i.declarations):n,name:c,kind:s,displayParts:o}}case 1:{var u=t.node;return{node:u,name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]}}case 2:{var l=t.node;var f=e.tokenToString(l.kind);return{node:l,name:f,kind:"keyword",displayParts:[{text:f,kind:"keyword"}]}}case 3:{var d=t.node;var i=r.getSymbolAtLocation(d);var p=i&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,i,d.getSourceFile(),e.getContainerNode(d),d).displayParts||[e.textPart("this")];return{node:d,name:"this",kind:"var",displayParts:p}}case 4:{var g=t.node;return{node:g,name:g.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(g),e.SymbolDisplayPartKind.stringLiteral)]}}default:return e.Debug.assertNever(t)}}();var a=i.node,o=i.name,s=i.kind,c=i.displayParts;var u=a.getSourceFile();return{containerKind:"",containerName:"",fileName:u.fileName,kind:s,name:o,textSpan:getTextSpan(e.isComputedPropertyName(a)?a.expression:a,u),displayParts:c}}function getDefinitionKindAndDisplayParts(r,n,i){var a=t.Core.getIntersectingMeaningFromDeclarations(i,r);var o=r.declarations&&e.firstOrUndefined(r.declarations)||i;var s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,o.getSourceFile(),o,o,a),c=s.displayParts,u=s.symbolKind;return{displayParts:c,kind:u}}function toRenameLocation(e,t,r){return n({},entryToDocumentSpan(e),getPrefixAndSuffixText(e,t,r))}t.toRenameLocation=toRenameLocation;function toReferenceEntry(t){var r=entryToDocumentSpan(t),n=r.textSpan,i=r.fileName;if(t.kind===0){return{textSpan:n,fileName:i,isWriteAccess:false,isDefinition:false}}var a=t.kind,o=t.node;return{textSpan:n,fileName:i,isWriteAccess:isWriteAccessForReference(o),isDefinition:o.kind===80||!!e.getDeclarationFromName(o)||e.isLiteralComputedPropertyDeclarationName(o),isInString:a===2?true:undefined}}t.toReferenceEntry=toReferenceEntry;function entryToDocumentSpan(e){if(e.kind===0){return{textSpan:e.textSpan,fileName:e.fileName}}else{var t=e.node.getSourceFile();return{textSpan:getTextSpan(e.node,t),fileName:t.fileName}}}function getPrefixAndSuffixText(t,r,n){if(t.kind!==0&&e.isIdentifier(r)){var i=t.node,a=t.kind;var o=r.text;var s=e.isShorthandPropertyAssignment(i.parent);if(s||e.isObjectBindingElementWithoutPropertyName(i.parent)){var c={prefixText:o+": "};var u={suffixText:": "+o};return a===3?c:a===4?u:s?u:c}else if(e.isImportSpecifier(t.node.parent)&&!t.node.parent.propertyName){var l=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(l.declarations,t.node.parent)?{prefixText:o+" as "}:e.emptyOptions}else if(e.isExportSpecifier(t.node.parent)&&!t.node.parent.propertyName){return r===t.node?{prefixText:o+" as "}:{suffixText:" as "+o}}}return e.emptyOptions}function toImplementationLocation(e,t){if(e.kind!==0){var r=e.node;var i=r.getSourceFile();return n({textSpan:getTextSpan(r,i),fileName:i.fileName},implementationKindDisplayParts(r,t))}else{var a=e.textSpan,o=e.fileName;return{textSpan:a,fileName:o,kind:"",displayParts:[]}}}function implementationKindDisplayParts(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);if(n){return getDefinitionKindAndDisplayParts(n,r,t)}else if(t.kind===188){return{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}}else if(t.kind===209){return{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}}else{return{kind:e.getNodeKind(t),displayParts:[]}}}function toHighlightSpan(e){if(e.kind===0){var t=e.fileName,r=e.textSpan;return{fileName:t,span:{textSpan:r,kind:"reference"}}}var n=e.node,i=e.kind;var a=n.getSourceFile();var o=isWriteAccessForReference(n);var s={textSpan:getTextSpan(n,a),kind:o?"writtenReference":"reference",isInString:i===2?true:undefined};return{fileName:a.fileName,span:s}}t.toHighlightSpan=toHighlightSpan;function getTextSpan(t,r){var n=t.getStart(r);var i=t.getEnd();if(t.kind===10){n+=1;i-=1}return e.createTextSpanFromBounds(n,i)}function isWriteAccessForReference(t){var r=e.getDeclarationFromName(t);return!!r&&declarationIsWriteAccess(r)||t.kind===80||e.isWriteAccess(t)}function declarationIsWriteAccess(t){if(!!(t.flags&4194304))return true;switch(t.kind){case 204:case 186:case 240:case 209:case 80:case 243:case 278:case 257:case 250:case 248:case 253:case 241:case 297:case 304:case 267:case 244:case 247:case 251:case 151:case 276:case 242:case 150:return true;case 275:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 239:case 196:case 157:case 156:case 158:case 159:return!!t.body;case 237:case 154:return!!t.initializer||e.isCatchClause(t.parent);case 155:case 153:case 305:case 299:return false;default:return e.Debug.failBadSyntaxKind(t)}}})(t=e.FindAllReferences||(e.FindAllReferences={}))})(s||(s={}));(function(e){var t;(function(t){var r;(function(r){function getReferencedSymbolsForNode(t,r,n,i,a,o,s){if(o===void 0){o={}}if(s===void 0){s=e.arrayToSet(i,function(e){return e.fileName})}if(e.isSourceFile(r)){var c=e.GoToDefinition.getReferenceAtPosition(r,t,n);var u=c&&n.getTypeChecker().getMergedSymbol(c.file.symbol);return u&&getReferencedSymbolsForModule(n,u,false,i,s)}if(!o.implementations){var l=getReferencedSymbolsSpecial(r,i,a);if(l){return l}}var f=n.getTypeChecker();var d=f.getSymbolAtLocation(r);if(!d){return!o.implementations&&e.isStringLiteral(r)?getReferencesForStringLiteral(r,i,a):undefined}if(d.escapedName==="export="){return getReferencedSymbolsForModule(n,d.parent,false,i,s)}var p=e.emptyArray;var g=isModuleSymbol(d);var _=r;if(g){var m=d.exports.get("export=");p=getReferencedSymbolsForModule(n,d,!!m,i,s);if(!m||!s.has(g.fileName))return p;d=e.skipAlias(m,f);_=undefined}return e.concatenate(p,getReferencedSymbolsForSymbol(d,_,i,s,f,a,o))}r.getReferencedSymbolsForNode=getReferencedSymbolsForNode;function isModuleSymbol(t){return t.flags&1536?e.find(t.declarations,e.isSourceFile):undefined}function getReferencedSymbolsForModule(r,n,i,a,o){e.Debug.assert(!!n.valueDeclaration);var s=e.mapDefined(t.findModuleReferences(r,a,n),function(r){if(r.kind==="import"){var n=r.literal.parent;if(e.isLiteralTypeNode(n)){var a=e.cast(n.parent,e.isImportTypeNode);if(i&&!a.qualifier){return undefined}}return t.nodeEntry(r.literal)}else{return{kind:0,fileName:r.referencingFile.fileName,textSpan:e.createTextSpanFromRange(r.ref)}}});for(var c=0,u=n.declarations;c<u.length;c++){var l=u[c];switch(l.kind){case 279:break;case 244:if(o.has(l.getSourceFile().fileName)){s.push(t.nodeEntry(l.name))}break;default:e.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var f=n.exports.get("export=");if(f){for(var d=0,p=f.declarations;d<p.length;d++){var l=p[d];var g=l.getSourceFile();if(o.has(g.fileName)){var _=e.isBinaryExpression(l)&&e.isPropertyAccessExpression(l.left)?l.left.expression:e.isExportAssignment(l)?e.Debug.assertDefined(e.findChildOfKind(l,85,g)):e.getNameOfDeclaration(l)||l;s.push(t.nodeEntry(_))}}}return s.length?[{definition:{type:0,symbol:n},references:s}]:e.emptyArray}function getReferencedSymbolsSpecial(t,r,n){if(e.isTypeKeyword(t.kind)){return getAllReferencesForKeyword(r,t.kind,n)}if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&getLabelReferencesInNode(i.parent,i)}else if(e.isLabelOfLabeledStatement(t)){return getLabelReferencesInNode(t.parent,t)}if(e.isThis(t)){return getReferencesForThisKeyword(t,r,n)}if(t.kind===98){return getReferencesForSuperKeyword(t)}return undefined}function getReferencedSymbolsForSymbol(t,r,n,a,o,s,c){var u=r&&skipPastExportOrImportSpecifierOrUnion(t,r,o,!!c.isForRename)||t;var l=r?getIntersectingMeaningFromDeclarations(r,u):7;var f=[];var d=new i(n,a,r?getSpecialSearchKind(r):0,o,s,l,c,f);var p=!c.isForRename?undefined:e.find(u.declarations,e.isExportSpecifier);if(p){getReferencesAtExportSpecifier(p.name,u,p,d.createSearch(r,t,undefined),d,true,true)}else if(r&&r.kind===80){addReference(r,u,d);searchForImportsOfExport(r,u,{exportingModuleSymbol:e.Debug.assertDefined(u.parent,"Expected export symbol to have a parent"),exportKind:1},d)}else{var g=d.createSearch(r,u,undefined,{allSearchSymbols:r?populateSearchSymbolSet(u,r,o,!!c.isForRename,!!c.implementations):[u]});var _=getSymbolScope(u);if(_){getReferencesInContainer(_,_.getSourceFile(),g,d,!(e.isSourceFile(_)&&!e.contains(n,_)))}else{for(var m=0,y=d.sourceFiles;m<y.length;m++){var h=y[m];d.cancellationToken.throwIfCancellationRequested();searchForName(h,g,d)}}}return f}function getSpecialSearchKind(t){switch(t.kind){case 124:return 1;case 72:if(e.isClassLike(t.parent)){e.Debug.assert(t.parent.name===t);return 2}default:return 0}}function skipPastExportOrImportSpecifierOrUnion(t,r,n,i){var a=r.parent;if(e.isExportSpecifier(a)&&!i){return getLocalSymbolForExportSpecifier(r,t,a,n)}return e.firstDefined(t.declarations,function(i){if(!i.parent){e.Debug.fail("Unexpected symbol at "+e.Debug.showSyntaxKind(r)+": "+e.Debug.showSymbol(t))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):undefined})}var n;(function(e){e[e["None"]=0]="None";e[e["Constructor"]=1]="Constructor";e[e["Class"]=2]="Class"})(n||(n={}));var i=function(){function State(t,r,n,i,a,o,s,c){this.sourceFiles=t;this.sourceFilesSet=r;this.specialSearchKind=n;this.checker=i;this.cancellationToken=a;this.searchMeaning=o;this.options=s;this.result=c;this.inheritsFromCache=e.createMap();this.markSeenContainingTypeReference=e.nodeSeenTracker();this.markSeenReExportRHS=e.nodeSeenTracker();this.symbolIdToReferences=[];this.sourceFileToSeenSymbols=[]}State.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)};State.prototype.getImportSearches=function(e,r){if(!this.importTracker)this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken);return this.importTracker(e,r,!!this.options.isForRename)};State.prototype.createSearch=function(t,r,n,i){if(i===void 0){i={}}var a=i.text,o=a===void 0?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(r)||r).escapedName)):a,s=i.allSearchSymbols,c=s===void 0?[r]:s;var u=e.escapeLeadingUnderscores(o);var l=this.options.implementations&&t?getParentSymbolsOfPropertyAccess(t,r,this.checker):undefined;return{symbol:r,comingFrom:n,text:o,escapedText:u,parents:l,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}};State.prototype.referenceAdder=function(r){var n=e.getSymbolId(r);var i=this.symbolIdToReferences[n];if(!i){i=this.symbolIdToReferences[n]=[];this.result.push({definition:{type:0,symbol:r},references:i})}return function(e,r){return i.push(t.nodeEntry(e,r))}};State.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:undefined,references:[{kind:0,fileName:e,textSpan:t}]})};State.prototype.markSearchedSymbols=function(t,r){var n=e.getNodeId(t);var i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=e.createMap());var a=false;for(var o=0,s=r;o<s.length;o++){var c=s[o];a=e.addToSeen(i,e.getSymbolId(c))||a}return a};return State}();function searchForImportsOfExport(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length){var c=n.referenceAdder(t);for(var u=0,l=o;u<l.length;u++){var f=l[u];if(shouldAddSingleReference(f,n))c(f)}}for(var d=0,p=a;d<p.length;d++){var g=p[d],_=g[0],m=g[1];getReferencesInSourceFile(_.getSourceFile(),n.createSearch(_,m,1),n)}if(s.length){var y=void 0;switch(r.exportKind){case 0:y=n.createSearch(e,t,1);break;case 1:y=n.options.isForRename?undefined:n.createSearch(e,t,1,{text:"default"});break;case 2:break}if(y){for(var h=0,v=s;h<v.length;h++){var T=v[h];searchForName(T,y,n)}}}}function eachExportReference(r,n,i,a,o,s,c,u){var l=t.createImportTracker(r,e.arrayToSet(r,function(e){return e.fileName}),n,i);var f=l(a,{exportKind:c?1:0,exportingModuleSymbol:o},false),d=f.importSearches,p=f.indirectUsers;for(var g=0,_=d;g<_.length;g++){var m=_[g][0];u(m)}for(var y=0,h=p;y<h.length;y++){var v=h[y];for(var T=0,S=getPossibleSymbolReferenceNodes(v,c?"default":s);T<S.length;T++){var b=S[T];if(e.isIdentifier(b)&&!e.isImportOrExportSpecifier(b.parent)&&n.getSymbolAtLocation(b)===a){u(b)}}}}r.eachExportReference=eachExportReference;function shouldAddSingleReference(t,r){if(!hasMatchingMeaning(t,r))return false;if(!r.options.isForRename)return true;if(!e.isIdentifier(t))return false;return!(e.isImportOrExportSpecifier(t.parent)&&t.escapedText==="default")}function searchForImportedSymbol(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];var a=i.getSourceFile();getReferencesInSourceFile(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function searchForName(t,r,n){if(e.getNameTable(t).get(r.escapedText)!==undefined){getReferencesInSourceFile(t,r,n)}}function getPropertySymbolOfDestructuringAssignment(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):undefined}function getSymbolScope(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(a.kind===196||a.kind===209)){return a}if(!r){return undefined}if(n&(4|8192)){var o=e.find(r,function(t){return e.hasModifier(t,8)});if(o){return e.getAncestor(o,240)}return undefined}if(r.some(e.isObjectBindingElementWithoutPropertyName)){return undefined}var s=i&&!(t.flags&262144);if(s&&!(e.isExternalModuleSymbol(i)&&!i.globalExports)){return undefined}var c;for(var u=0,l=r;u<l.length;u++){var f=l[u];var d=e.getContainerNode(f);if(c&&c!==d){return undefined}if(!d||d.kind===279&&!e.isExternalOrCommonJsModule(d)){return undefined}c=d}return s?c.getSourceFile():c}function isSymbolReferencedInFile(e,t,r){return eachSymbolReferenceInFile(e,t,r,function(){return true})||false}r.isSymbolReferencedInFile=isSymbolReferencedInFile;function eachSymbolReferenceInFile(t,r,n,i){var a=e.isParameterPropertyDeclaration(t.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(!a)return undefined;for(var o=0,s=getPossibleSymbolReferenceNodes(n,a.name);o<s.length;o++){var c=s[o];if(!e.isIdentifier(c)||c===t||c.escapedText!==t.escapedText)continue;var u=r.getSymbolAtLocation(c);if(u===a||r.getShorthandAssignmentValueSymbol(c.parent)===a||e.isExportSpecifier(c.parent)&&getLocalSymbolForExportSpecifier(c,u,c.parent,r)===a){var l=i(c);if(l)return l}}}r.eachSymbolReferenceInFile=eachSymbolReferenceInFile;function eachSignatureCall(t,r,n,i){if(!t.name||!e.isIdentifier(t.name))return;var a=e.Debug.assertDefined(n.getSymbolAtLocation(t.name));for(var o=0,s=r;o<s.length;o++){var c=s[o];for(var u=0,l=getPossibleSymbolReferenceNodes(c,a.name);u<l.length;u++){var f=l[u];if(!e.isIdentifier(f)||f===t.name||f.escapedText!==t.name.escapedText)continue;var d=e.climbPastPropertyAccess(f);var p=d.parent;if(!e.isCallExpression(p)||p.expression!==d)continue;var g=n.getSymbolAtLocation(f);if(g&&n.getRootSymbols(g).some(function(e){return e===a})){i(p)}}}}r.eachSignatureCall=eachSignatureCall;function getPossibleSymbolReferenceNodes(t,r,n){if(n===void 0){n=t}return getPossibleSymbolReferencePositions(t,r,n).map(function(r){return e.getTouchingPropertyName(t,r)})}function getPossibleSymbolReferencePositions(t,r,n){if(n===void 0){n=t}var i=[];if(!r||!r.length){return i}var a=t.text;var o=a.length;var s=r.length;var c=a.indexOf(r,n.pos);while(c>=0){if(c>n.end)break;var u=c+s;if((c===0||!e.isIdentifierPart(a.charCodeAt(c-1),6))&&(u===o||!e.isIdentifierPart(a.charCodeAt(u),6))){i.push(c)}c=a.indexOf(r,c+s+1)}return i}function getLabelReferencesInNode(r,n){var i=r.getSourceFile();var a=n.text;var o=e.mapDefined(getPossibleSymbolReferenceNodes(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):undefined});return[{definition:{type:1,node:n},references:o}]}function isValidReferencePosition(t,r){switch(t.kind){case 72:return t.text.length===r.length;case 10:{var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 80:return"default".length===r.length;default:return false}}function getAllReferencesForKeyword(r,n,i){var a=e.flatMap(r,function(r){i.throwIfCancellationRequested();return e.mapDefined(getPossibleSymbolReferenceNodes(r,e.tokenToString(n),r),function(e){return e.kind===n?t.nodeEntry(e):undefined})});return a.length?[{definition:{type:2,node:a[0].node},references:a}]:undefined}function getReferencesInSourceFile(e,t,r,n){if(n===void 0){n=true}r.cancellationToken.throwIfCancellationRequested();return getReferencesInContainer(e,e,t,r,n)}function getReferencesInContainer(e,t,r,n,i){if(!n.markSearchedSymbols(t,r.allSearchSymbols)){return}for(var a=0,o=getPossibleSymbolReferencePositions(t,r.text,e);a<o.length;a++){var s=o[a];getReferencesAtLocation(t,s,r,n,i)}}function hasMatchingMeaning(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function getReferencesAtLocation(t,r,n,i,a){var o=e.getTouchingPropertyName(t,r);if(!isValidReferencePosition(o,n.text)){if(!i.options.implementations&&(i.options.findInStrings&&e.isInString(t,r)||i.options.findInComments&&e.isInNonReferenceComment(t,r))){i.addStringOrCommentReference(t.fileName,e.createTextSpan(r,n.text.length))}return}if(!hasMatchingMeaning(o,i))return;var s=i.checker.getSymbolAtLocation(o);if(!s){return}var c=o.parent;if(e.isImportSpecifier(c)&&c.propertyName===o){return}if(e.isExportSpecifier(c)){e.Debug.assert(o.kind===72);getReferencesAtExportSpecifier(o,s,c,n,i,a);return}var u=getRelatedSymbol(n,s,o,i);if(!u){getReferenceForShorthandProperty(s,n,i);return}switch(i.specialSearchKind){case 0:if(a)addReference(o,u,i);break;case 1:addConstructorReferences(o,t,n,i);break;case 2:addClassStaticThisReferences(o,n,i);break;default:e.Debug.assertNever(i.specialSearchKind)}getImportOrExportReferences(o,s,n,i)}function getReferencesAtExportSpecifier(r,n,i,a,o,s,c){var u=i.parent,l=i.propertyName,f=i.name;var d=u.parent;var p=getLocalSymbolForExportSpecifier(r,n,i,o.checker);if(!c&&!a.includes(p)){return}if(!l){if(!(o.options.isForRename&&f.escapedText==="default")){addRef()}}else if(r===l){if(!d.moduleSpecifier){addRef()}if(s&&!o.options.isForRename&&o.markSeenReExportRHS(f)){addReference(f,e.Debug.assertDefined(i.symbol),o)}}else{if(o.markSeenReExportRHS(r)){addRef()}}if(!o.options.isForRename||c){var g=r.originalKeywordKind===80?1:0;var _=e.Debug.assertDefined(i.symbol);var m=e.Debug.assertDefined(t.getExportInfo(_,g,o.checker));searchForImportsOfExport(r,_,m,o)}if(a.comingFrom!==1&&d.moduleSpecifier&&!l&&!o.options.isForRename){var y=o.checker.getExportSpecifierLocalTargetSymbol(i);if(y)searchForImportedSymbol(y,o)}function addRef(){if(s)addReference(r,p,o)}}function getLocalSymbolForExportSpecifier(e,t,r,n){return isExportSpecifierAlias(e,r)&&n.getExportSpecifierLocalTargetSymbol(r)||t}function isExportSpecifierAlias(t,r){var n=r.parent,i=r.propertyName,a=r.name;e.Debug.assert(i===t||a===t);if(i){return i===t}else{return!n.parent.moduleSpecifier}}function getImportOrExportReferences(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,n.comingFrom===1);if(!a)return;var o=a.symbol;if(a.kind===0){if(!i.options.isForRename){searchForImportedSymbol(o,i)}}else{searchForImportsOfExport(e,o,a.exportInfo,i)}}function getReferenceForShorthandProperty(t,r,n){var i=t.flags,a=t.valueDeclaration;var o=n.checker.getShorthandAssignmentValueSymbol(a);var s=a&&e.getNameOfDeclaration(a);if(!(i&33554432)&&s&&r.includes(o)){addReference(s,o,n)}}function addReference(e,t,r){var n="kind"in t?t:{kind:undefined,symbol:t},i=n.kind,a=n.symbol;var o=r.referenceAdder(a);if(r.options.implementations){addImplementationReferences(e,o,r)}else{o(e,i)}}function addConstructorReferences(t,r,n,i){if(e.isNewExpressionTarget(t)){addReference(t,n.symbol,i)}var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent)){e.Debug.assert(t.kind===80||t.parent.name===t);findOwnConstructorReferences(n.symbol,r,a())}else{var o=tryGetClassByExtendingIdentifier(t);if(o){findSuperConstructorAccesses(o,a())}}}function addClassStaticThisReferences(t,r,n){addReference(t,r.symbol,n);var i=t.parent;if(n.options.isForRename||!e.isClassLike(i))return;e.Debug.assert(i.name===t);var a=n.referenceAdder(r.symbol);for(var o=0,s=i.members;o<s.length;o++){var c=s[o];if(!(e.isMethodOrAccessor(c)&&e.hasModifier(c,32))){continue}if(c.body){c.body.forEachChild(function cb(t){if(t.kind===100){a(t)}else if(!e.isFunctionLike(t)&&!e.isClassLike(t)){t.forEachChild(cb)}})}}}function findOwnConstructorReferences(t,r,n){for(var i=0,a=t.members.get("__constructor").declarations;i<a.length;i++){var o=a[i];var s=e.findChildOfKind(o,124,r);e.Debug.assert(o.kind===157&&!!s);n(s)}t.exports.forEach(function(t){var r=t.valueDeclaration;if(r&&r.kind===156){var i=r.body;if(i){forEachDescendantOfKind(i,100,function(t){if(e.isNewExpressionTarget(t)){n(t)}})}}})}function findSuperConstructorAccesses(t,r){var n=t.symbol.members.get("__constructor");if(!n){return}for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(o.kind===157);var s=o.body;if(s){forEachDescendantOfKind(s,98,function(t){if(e.isCallExpressionTarget(t)){r(t)}})}}}function addImplementationReferences(t,r,n){if(e.isDeclarationName(t)&&isImplementation(t.parent)){r(t);return}if(t.kind!==72){return}if(t.parent.kind===276){getReferenceEntriesForShorthandPropertyAssignment(t,n.checker,r)}var i=getContainingClassIfInHeritageClause(t);if(i){r(i);return}var a=e.findAncestor(t,function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)});var o=a.parent;if(e.hasType(o)&&o.type===a&&n.markSeenContainingTypeReference(o)){if(e.hasInitializer(o)){addIfImplementation(o.initializer)}else if(e.isFunctionLike(o)&&o.body){var s=o.body;if(s.kind===218){e.forEachReturnStatement(s,function(e){if(e.expression)addIfImplementation(e.expression)})}else{addIfImplementation(s)}}else if(e.isAssertionExpression(o)){addIfImplementation(o.expression)}}function addIfImplementation(e){if(isImplementationExpression(e))r(e)}}function getContainingClassIfInHeritageClause(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?getContainingClassIfInHeritageClause(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):undefined}function isImplementationExpression(e){switch(e.kind){case 195:return isImplementationExpression(e.expression);case 197:case 196:case 188:case 209:case 187:return true;default:return false}}function explicitlyInheritsFrom(t,r,n,i){if(t===r){return true}var a=e.getSymbolId(t)+","+e.getSymbolId(r);var o=n.get(a);if(o!==undefined){return o}n.set(a,false);var s=t.declarations.some(function(t){return e.getAllSuperTypeNodes(t).some(function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&explicitlyInheritsFrom(t.symbol,r,n,i)})});n.set(a,s);return s}function getReferencesForSuperKeyword(r){var n=e.getSuperContainer(r,false);if(!n){return undefined}var i=32;switch(n.kind){case 154:case 153:case 156:case 155:case 157:case 158:case 159:i&=e.getModifierFlags(n);n=n.parent;break;default:return undefined}var a=n.getSourceFile();var o=e.mapDefined(getPossibleSymbolReferenceNodes(a,"super",n),function(r){if(r.kind!==98){return}var a=e.getSuperContainer(r,false);return a&&(32&e.getModifierFlags(a))===i&&a.parent.symbol===n.symbol?t.nodeEntry(r):undefined});return[{definition:{type:0,symbol:n.symbol},references:o}]}function getReferencesForThisKeyword(r,n,i){var a=e.getThisContainer(r,false);var o=32;switch(a.kind){case 156:case 155:if(e.isObjectLiteralMethod(a)){break}case 154:case 153:case 157:case 158:case 159:o&=e.getModifierFlags(a);a=a.parent;break;case 279:if(e.isExternalModule(a)){return undefined}case 239:case 196:break;default:return undefined}var s=e.flatMap(a.kind===279?n:[a.getSourceFile()],function(t){i.throwIfCancellationRequested();return getPossibleSymbolReferenceNodes(t,"this",e.isSourceFile(a)?t:a).filter(function(t){if(!e.isThis(t)){return false}var r=e.getThisContainer(t,false);switch(a.kind){case 196:case 239:return a.symbol===r.symbol;case 156:case 155:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 209:case 240:return r.parent&&a.symbol===r.parent.symbol&&(e.getModifierFlags(r)&32)===o;case 279:return r.kind===279&&!e.isExternalModule(r)}})}).map(function(e){return t.nodeEntry(e)});var c=e.firstDefined(s,function(t){return e.isParameter(t.node.parent)?t.node:undefined});return[{definition:{type:3,node:c||r},references:s}]}function getReferencesForStringLiteral(r,n,i){var a=e.flatMap(n,function(n){i.throwIfCancellationRequested();return e.mapDefined(getPossibleSymbolReferenceNodes(n,r.text),function(n){return e.isStringLiteral(n)&&n.text===r.text?t.nodeEntry(n,2):undefined})});return[{definition:{type:4,node:r},references:a}]}function populateSearchSymbolSet(e,t,r,n,i){var a=[];forEachRelatedSymbol(e,t,r,n,function(e,t,r){a.push(r||t||e)},function(){return!i});return a}function forEachRelatedSymbol(t,r,n,i,a,o){var s=e.getContainingObjectLiteralElement(r);if(s){var c=n.getShorthandAssignmentValueSymbol(r.parent);if(c&&i){return a(c,undefined,undefined,3)}var u=n.getContextualType(s.parent);var l=u&&e.firstDefined(e.getPropertySymbolsFromContextualType(s,n,u,true),function(e){return fromRoot(e,4)});if(l)return l;var f=getPropertySymbolOfDestructuringAssignment(r,n);var d=f&&a(f,undefined,undefined,4);if(d)return d;var p=c&&a(c,undefined,undefined,3);if(p)return p}var g=fromRoot(t);if(g)return g;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration)){var _=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);e.Debug.assert(_.length===2&&!!(_[0].flags&1)&&!!(_[1].flags&4));return fromRoot(t.flags&1?_[1]:_[0])}if(!i){var m=e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):undefined;return m&&fromRoot(m,4)}function fromRoot(t,r){return e.firstDefined(n.getRootSymbols(t),function(i){return a(t,i,undefined,r)||(i.parent&&i.parent.flags&(32|64)&&o(i)?e.getPropertySymbolsFromBaseTypes(i.parent,i.name,n,function(e){return a(t,i,e,r)}):undefined)})}}function getRelatedSymbol(t,r,n,i){var a=i.checker;return forEachRelatedSymbol(r,n,a,false,function(r,n,i,a){return t.includes(i||n||r)?{symbol:n&&!(e.getCheckFlags(r)&6)?n:r,kind:a}:undefined},function(e){return!(t.parents&&!t.parents.some(function(t){return explicitlyInheritsFrom(e.parent,t,i.inheritsFromCache,a)}))})}function getIntersectingMeaningFromDeclarations(t,r){var n=e.getMeaningFromLocation(t);var i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o];var u=e.getMeaningFromDeclaration(c);if(u&n){n|=u}}}while(n!==a)}return n}r.getIntersectingMeaningFromDeclarations=getIntersectingMeaningFromDeclarations;function isImplementation(t){return!!(t.flags&4194304)||(e.isVariableLike(t)?e.hasInitializer(t):e.isFunctionLikeDeclaration(t)?!!t.body:e.isClassLike(t)||e.isModuleOrEnumDeclaration(t))}function getReferenceEntriesForShorthandPropertyAssignment(t,r,n){var i=r.getSymbolAtLocation(t);var a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a){for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];if(e.getMeaningFromDeclaration(c)&1){n(c)}}}}r.getReferenceEntriesForShorthandPropertyAssignment=getReferenceEntriesForShorthandPropertyAssignment;function forEachDescendantOfKind(t,r,n){e.forEachChild(t,function(e){if(e.kind===r){n(e)}forEachDescendantOfKind(e,r,n)})}function tryGetClassByExtendingIdentifier(t){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent)}function getParentSymbolsOfPropertyAccess(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:undefined;var a=i&&n.getTypeAtLocation(i.expression);var o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?undefined:[a]),function(e){return e.symbol&&e.symbol.flags&(32|64)?e.symbol:undefined});return o.length===0?undefined:o}})(r=t.Core||(t.Core={}))})(t=e.FindAllReferences||(e.FindAllReferences={}))})(s||(s={}));var s;(function(e){function getEditsForFileRename(t,r,n,i,a,o,s){var c=e.hostUsesCaseSensitiveFileNames(i);var u=e.createGetCanonicalFileName(c);var l=getPathUpdater(r,n,u,s);var f=getPathUpdater(n,r,u,s);return e.textChanges.ChangeTracker.with({host:i,formatContext:a},function(e){updateTsconfigFiles(t,e,l,r,n,i.getCurrentDirectory(),c);updateImports(t,e,l,f,i,u)})}e.getEditsForFileRename=getEditsForFileRename;function getPathUpdater(t,r,n,i){var a=n(t);return function(e){var t=i&&i.tryGetSourcePosition({fileName:e,pos:0});var r=getUpdatedPath(t?t.fileName:e);return t?r===undefined?undefined:makeCorrespondingRelativeChange(t.fileName,r,e,n):r};function getUpdatedPath(t){if(n(t)===a)return r;var i=e.tryRemoveDirectoryPrefix(t,a,n);return i===undefined?undefined:r+"/"+i}}e.getPathUpdater=getPathUpdater;function makeCorrespondingRelativeChange(t,r,n,i){var a=e.getRelativePathFromFile(t,r,i);return combinePathsSafe(e.getDirectoryPath(n),a)}function updateTsconfigFiles(t,r,n,i,a,o,s){var c=t.getCompilerOptions().configFile;if(!c)return;var u=e.getDirectoryPath(c.fileName);var l=e.getTsConfigObjectLiteralExpression(c);if(!l)return;forEachProperty(l,function(t,n){switch(n){case"files":case"include":case"exclude":{var l=updatePaths(t);if(!l&&n==="include"&&e.isArrayLiteralExpression(t.initializer)){var f=e.mapDefined(t.initializer.elements,function(t){return e.isStringLiteral(t)?t.text:undefined});var d=e.getFileMatcherPatterns(u,[],f,s,o);if(e.getRegexFromPattern(e.Debug.assertDefined(d.includeFilePattern),s).test(i)&&!e.getRegexFromPattern(e.Debug.assertDefined(d.includeFilePattern),s).test(a)){r.insertNodeAfter(c,e.last(t.initializer.elements),e.createStringLiteral(relativePath(a)))}}break}case"compilerOptions":forEachProperty(t.initializer,function(t,r){var n=e.getOptionFromName(r);if(n&&(n.isFilePath||n.type==="list"&&n.element.isFilePath)){updatePaths(t)}else if(r==="paths"){forEachProperty(t.initializer,function(t){if(!e.isArrayLiteralExpression(t.initializer))return;for(var r=0,n=t.initializer.elements;r<n.length;r++){var i=n[r];tryUpdateString(i)}})}});break}});function updatePaths(t){var r=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];var n=false;for(var i=0,a=r;i<a.length;i++){var o=a[i];n=tryUpdateString(o)||n}return n}function tryUpdateString(t){if(!e.isStringLiteral(t))return false;var i=combinePathsSafe(u,t.text);var a=n(i);if(a!==undefined){r.replaceRangeWithText(c,createStringRange(t,c),relativePath(a));return true}return false}function relativePath(t){return e.getRelativePathFromDirectory(u,t,!s)}}function updateImports(t,r,n,i,a,o){var s=t.getSourceFiles();var c=function(c){var u=n(c.path);var l=u!==undefined?u:c.path;var f=e.getDirectoryPath(l);var d=i(c.fileName);var p=d||c.fileName;var g=e.getDirectoryPath(p);var _=u!==undefined||d!==undefined;updateImportsWorker(c,r,function(t){if(!e.pathIsRelative(t))return undefined;var r=combinePathsSafe(g,t);var i=n(r);return i===undefined?undefined:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,o))},function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(i&&i.declarations.some(function(t){return e.isAmbientModule(t)}))return undefined;var o=d!==undefined?getSourceFileToImportFromResolved(e.resolveModuleName(r.text,p,t.getCompilerOptions(),a),n,a):getSourceFileToImport(i,r,c,t,a,n);return o!==undefined&&(o.updated||_&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),l,o.newFileName,a,s,t.redirectTargetsMap,r.text):undefined})};for(var u=0,l=s;u<l.length;u++){var f=l[u];c(f)}}function combineNormal(t,r){return e.normalizePath(e.combinePaths(t,r))}function combinePathsSafe(t,r){return e.ensurePathIsNonModuleName(combineNormal(t,r))}function getSourceFileToImport(t,r,n,i,a,o){if(t){var s=e.find(t.declarations,e.isSourceFile).fileName;var c=o(s);return c===undefined?{newFileName:s,updated:false}:{newFileName:c,updated:true}}else{var u=a.resolveModuleNames?a.getResolvedModuleWithFailedLookupLocationsFromCache&&a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,n.fileName):i.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,n.fileName);return getSourceFileToImportFromResolved(u,o,a)}}function getSourceFileToImportFromResolved(t,r,n){return tryEach(tryGetNewFile)||tryEach(tryGetOldFile);function tryEach(r){return t&&(t.resolvedModule&&r(t.resolvedModule.resolvedFileName)||e.firstDefined(t.failedLookupLocations,r))}function tryGetNewFile(e){var t=r(e);return t!==undefined&&n.fileExists(t)?{newFileName:t,updated:true}:undefined}function tryGetOldFile(e){var t=r(e);return n.fileExists(e)?t!==undefined?{newFileName:t,updated:true}:{newFileName:e,updated:false}:undefined}}function updateImportsWorker(t,r,n,i){for(var a=0,o=t.referencedFiles||e.emptyArray;a<o.length;a++){var s=o[a];var c=n(s.fileName);if(c!==undefined&&c!==t.text.slice(s.pos,s.end))r.replaceRangeWithText(t,s,c)}for(var u=0,l=t.imports;u<l.length;u++){var f=l[u];var c=i(f);if(c!==undefined&&c!==f.text)r.replaceRangeWithText(t,createStringRange(f,t),c)}}function createStringRange(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function forEachProperty(t,r){if(!e.isObjectLiteralExpression(t))return;for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];if(e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)){r(a,a.name.text)}}}})(s||(s={}));var s;(function(e){var t;(function(t){function getDefinitionAtPosition(t,r,n){var i=getReferenceAtPosition(r,n,t);if(i){return[getDefinitionInfoForFileReference(i.fileName,i.file.fileName)]}var a=e.getTouchingPropertyName(r,n);if(a===r){return undefined}var o=a.parent;if(e.isJumpStatementTarget(a)){var s=e.getTargetLabel(a.parent,a.text);return s?[createDefinitionInfoFromName(s,"label",a.text,undefined)]:undefined}var c=t.getTypeChecker();var u=getSymbol(a,c);if(!u){return getDefinitionInfoForIndexSignatures(a,c)}var l=tryGetSignatureDeclaration(c,a);if(l&&!(e.isJsxOpeningLikeElement(a.parent)&&isConstructorLike(l))){var f=createDefinitionFromSignatureDeclaration(c,l);if(c.getRootSymbols(u).some(function(e){return symbolMatchesSignature(e,l)})||u.declarations&&u.declarations.some(function(t){return e.isVariableDeclaration(t)&&!!t.initializer&&e.isRequireCall(t.initializer,false)})){return[f]}else{var d=getDefinitionFromSymbol(c,u,a)||e.emptyArray;return a.kind===98?[f].concat(d):d.concat([f])}}if(a.parent.kind===276){var p=c.getShorthandAssignmentValueSymbol(u.valueDeclaration);return p?p.declarations.map(function(e){return createDefinitionInfo(e,c,p,a)}):[]}if(e.isPropertyName(a)&&e.isBindingElement(o)&&e.isObjectBindingPattern(o.parent)&&a===(o.propertyName||o.name)){var g=e.getNameFromPropertyName(a);var _=c.getTypeAtLocation(o.parent);return g===undefined?e.emptyArray:e.flatMap(_.isUnion()?_.types:[_],function(e){var t=e.getProperty(g);return t&&getDefinitionFromSymbol(c,t,a)})}var m=e.getContainingObjectLiteralElement(a);if(m){var y=m&&c.getContextualType(m.parent);if(y){return e.flatMap(e.getPropertySymbolsFromContextualType(m,c,y,false),function(e){return getDefinitionFromSymbol(c,e,a)})}}return getDefinitionFromSymbol(c,u,a)}t.getDefinitionAtPosition=getDefinitionAtPosition;function symbolMatchesSignature(t,r){return t===r.symbol||t===r.symbol.parent||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}function getReferenceAtPosition(t,r,n){var i=findReferenceInPosition(t.referencedFiles,r);if(i){var a=e.tryResolveScriptReference(n,t,i);return a&&{fileName:i.fileName,file:a}}var o=findReferenceInPosition(t.typeReferenceDirectives,r);if(o){var s=n.getResolvedTypeReferenceDirectives().get(o.fileName);var a=s&&n.getSourceFile(s.resolvedFileName);return a&&{fileName:o.fileName,file:a}}var c=findReferenceInPosition(t.libReferenceDirectives,r);if(c){var a=n.getLibFileFromReference(c);return a&&{fileName:c.fileName,file:a}}return undefined}t.getReferenceAtPosition=getReferenceAtPosition;function getTypeDefinitionAtPosition(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i===r){return undefined}var a=t.getSymbolAtLocation(i);if(!a)return undefined;var o=t.getTypeOfSymbolAtLocation(a,i);var s=tryGetReturnTypeOfFunction(a,o,t);var c=s&&definitionFromType(s,t,i);return c&&c.length!==0?c:definitionFromType(o,t,i)}t.getTypeDefinitionAtPosition=getTypeDefinitionAtPosition;function definitionFromType(t,r,n){return e.flatMap(t.isUnion()&&!(t.flags&32)?t.types:[t],function(e){return e.symbol&&getDefinitionFromSymbol(r,e.symbol,n)})}function tryGetReturnTypeOfFunction(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(e.first(i))}return undefined}function getDefinitionAndBoundSpan(t,r,n){var i=getDefinitionAtPosition(t,r,n);if(!i||i.length===0){return undefined}var a=findReferenceInPosition(r.referencedFiles,n)||findReferenceInPosition(r.typeReferenceDirectives,n)||findReferenceInPosition(r.libReferenceDirectives,n);if(a){return{definitions:i,textSpan:e.createTextSpanFromRange(a)}}var o=e.getTouchingPropertyName(r,n);var s=e.createTextSpan(o.getStart(),o.getWidth());return{definitions:i,textSpan:s}}t.getDefinitionAndBoundSpan=getDefinitionAndBoundSpan;function getDefinitionInfoForIndexSignatures(t,r){if(!e.isPropertyAccessExpression(t.parent)||t.parent.name!==t)return;var n=r.getTypeAtLocation(t.parent.expression);return e.mapDefined(n.isUnionOrIntersection()?n.types:[n],function(e){var t=r.getIndexInfoOfType(e,0);return t&&t.declaration&&createDefinitionFromSignatureDeclaration(r,t.declaration)})}function getSymbol(e,t){var r=t.getSymbolAtLocation(e);if(r&&r.flags&2097152&&shouldSkipAlias(e,r.declarations[0])){var n=t.getAliasedSymbol(r);if(n.declarations){return n}}return r}function shouldSkipAlias(e,t){if(e.kind!==72){return false}if(e.parent===t){return true}switch(t.kind){case 250:case 248:return true;case 253:return t.parent.kind===252;default:return false}}function getDefinitionFromSymbol(t,r,n){return getConstructSignatureDefinition()||getCallSignatureDefinition()||e.map(r.declarations,function(e){return createDefinitionInfo(e,t,r,n)});function getConstructSignatureDefinition(){if(r.flags&32&&(e.isNewExpressionTarget(n)||n.kind===124)){var t=e.find(r.declarations,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return getSignatureDefinition(t.members,true)}}function getCallSignatureDefinition(){return e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?getSignatureDefinition(r.declarations,false):undefined}function getSignatureDefinition(i,a){if(!i){return undefined}var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike);return o.length?[createDefinitionInfo(e.find(o,function(e){return!!e.body})||e.last(o),t,r,n)]:undefined}}function createDefinitionInfo(t,r,n,i){var a=r.symbolToString(n);var o=e.SymbolDisplay.getSymbolKind(r,n,i);var s=n.parent?r.symbolToString(n.parent,i):"";return createDefinitionInfoFromName(t,o,a,s)}function createDefinitionInfoFromName(t,r,n,i){var a=e.getNameOfDeclaration(t)||t;var o=a.getSourceFile();return{fileName:o.fileName,textSpan:e.createTextSpanFromNode(a,o),kind:r,name:n,containerKind:undefined,containerName:i}}function createDefinitionFromSignatureDeclaration(e,t){return createDefinitionInfo(t,e,t.symbol,t)}function findReferenceInPosition(t,r){return e.find(t,function(t){return e.textRangeContainsPositionInclusive(t,r)})}t.findReferenceInPosition=findReferenceInPosition;function getDefinitionInfoForFileReference(t,r){return{fileName:r,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:t,containerName:undefined,containerKind:undefined}}function getAncestorCallLikeExpression(t){var r=climbPastManyPropertyAccesses(t);var n=r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:undefined}function climbPastManyPropertyAccesses(t){return e.isRightSideOfPropertyAccess(t)?climbPastManyPropertyAccesses(t.parent):t}function tryGetSignatureDeclaration(t,r){var n=getAncestorCallLikeExpression(r);var i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)})}function isConstructorLike(e){switch(e.kind){case 157:case 166:case 161:return true;default:return false}}})(t=e.GoToDefinition||(e.GoToDefinition={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];var n;var i;function getJsDocCommentsFromDeclarations(t){var r=[];forEachUnique(t,function(t){for(var n=0,i=getCommentHavingNodes(t);n<i.length;n++){var a=i[n].comment;if(a===undefined)continue;if(r.length){r.push(e.lineBreakPart())}r.push(e.textPart(a))}});return r}t.getJsDocCommentsFromDeclarations=getJsDocCommentsFromDeclarations;function getCommentHavingNodes(t){switch(t.kind){case 299:case 305:return[t];case 297:case 304:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}function getJsDocTagsFromDeclarations(t){var r=[];forEachUnique(t,function(t){for(var n=0,i=e.getJSDocTags(t);n<i.length;n++){var a=i[n];r.push({name:a.tagName.text,text:getCommentText(a)})}});return r}t.getJsDocTagsFromDeclarations=getJsDocTagsFromDeclarations;function getCommentText(e){var t=e.comment;switch(e.kind){case 295:return withNode(e.class);case 303:return withList(e.typeParameters);case 302:return withNode(e.typeExpression);case 304:case 297:case 305:case 299:var r=e.name;return r?withNode(r):t;default:return t}function withNode(e){return addComment(e.getText())}function withList(e){return addComment(e.map(function(e){return e.getText()}).join(", "))}function addComment(e){return t===undefined?e:e+" "+t}}function forEachUnique(e,t){if(e){for(var r=0;r<e.length;r++){if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n){return n}}}}return undefined}function getJSDocTagNameCompletions(){return n||(n=e.map(r,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))}t.getJSDocTagNameCompletions=getJSDocTagNameCompletions;t.getJSDocTagNameCompletionDetails=getJSDocTagCompletionDetails;function getJSDocTagCompletions(){return i||(i=e.map(r,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))}t.getJSDocTagCompletions=getJSDocTagCompletions;function getJSDocTagCompletionDetails(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:undefined,codeActions:undefined}}t.getJSDocTagCompletionDetails=getJSDocTagCompletionDetails;function getJSDocParameterNameCompletions(t){if(!e.isIdentifier(t.name)){return e.emptyArray}var r=t.name.text;var n=t.parent;var i=n.parent;if(!e.isFunctionLike(i))return[];return e.mapDefined(i.parameters,function(i){if(!e.isIdentifier(i.name))return undefined;var a=i.name.text;if(n.tags.some(function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a})||r!==undefined&&!e.startsWith(a,r)){return undefined}return{name:a,kind:"parameter",kindModifiers:"",sortText:"0"}})}t.getJSDocParameterNameCompletions=getJSDocParameterNameCompletions;function getJSDocParameterNameCompletionDetails(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:undefined,codeActions:undefined}}t.getJSDocParameterNameCompletionDetails=getJSDocParameterNameCompletionDetails;function getDocCommentTemplateAtPosition(t,r,n){var i=e.getTokenAtPosition(r,n);var a=e.findAncestor(i,e.isJSDoc);if(a&&(a.comment!==undefined||e.length(a.tags))){return undefined}var o=i.getStart(r);if(!a&&o<n){return undefined}var s=getCommentOwnerInfo(i);if(!s){return undefined}var c=s.commentOwner,u=s.parameters;if(c.getStart(r)<n){return undefined}if(!u||u.length===0){var l="/** */";return{newText:l,caretOffset:3}}var f=getIndentationStringAtPosition(r,n);var d="/**"+t+f+" * ";var p=d+t+parameterDocComments(u,e.hasJSFileExtension(r.fileName),f,t)+f+" */"+(o===n?t+f:"");return{newText:p,caretOffset:d.length}}t.getDocCommentTemplateAtPosition=getDocCommentTemplateAtPosition;function getIndentationStringAtPosition(t,r){var n=t.text;var i=e.getLineStartPositionForPosition(r,t);var a=i;for(;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}function parameterDocComments(e,t,r,n){return e.map(function(e,i){var a=e.name,o=e.dotDotDotToken;var s=a.kind===72?a.text:"param"+i;var c=t?o?"{...any} ":"{any} ":"";return r+" * @param "+c+s+n}).join("")}function getCommentOwnerInfo(t){return e.forEachAncestor(t,getCommentOwnerInfoWorker)}function getCommentOwnerInfoWorker(t){switch(t.kind){case 239:case 196:case 156:case 157:case 155:var r=t.parameters;return{commentOwner:t,parameters:r};case 275:return getCommentOwnerInfoWorker(t.initializer);case 240:case 241:case 153:case 243:case 278:case 242:return{commentOwner:t};case 219:{var n=t;var i=n.declarationList.declarations;var a=i.length===1&&i[0].initializer?getParametersFromRightHandSideOfAssignment(i[0].initializer):undefined;return{commentOwner:t,parameters:a}}case 279:return"quit";case 244:return t.parent.kind===244?undefined:{commentOwner:t};case 204:{var o=t;if(e.getAssignmentDeclarationKind(o)===0){return"quit"}var s=e.isFunctionLike(o.right)?o.right.parameters:e.emptyArray;return{commentOwner:t,parameters:s}}}}function getParametersFromRightHandSideOfAssignment(t){while(t.kind===195){t=t.expression}switch(t.kind){case 196:case 197:return t.parameters;case 209:{var r=e.find(t.members,e.isConstructorDeclaration);return r?r.parameters:e.emptyArray}}return e.emptyArray}})(t=e.JsDoc||(e.JsDoc={}))})(s||(s={}));var s;(function(e){var t;(function(t){function getNavigateToItems(t,r,n,i,a,o){var s=e.createPatternMatcher(i);if(!s)return e.emptyArray;var c=[];var u=function(e){n.throwIfCancellationRequested();if(o&&e.isDeclarationFile){return"continue"}e.getNamedDeclarations().forEach(function(t,n){getItemsFromNamedDeclaration(s,n,t,r,e.fileName,c)})};for(var l=0,f=t;l<f.length;l++){var d=f[l];u(d)}c.sort(compareNavigateToItems);return(a===undefined?c:c.slice(0,a)).map(createNavigateToItem)}t.getNavigateToItems=getNavigateToItems;function getItemsFromNamedDeclaration(e,t,r,n,i,a){var o=e.getMatchForLastSegmentOfPattern(t);if(!o){return}for(var s=0,c=r;s<c.length;s++){var u=c[s];if(!shouldKeepItem(u,n))continue;if(e.patternContainsDots){var l=e.getFullMatch(getContainers(u),t);if(l){a.push({name:t,fileName:i,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:u})}}else{a.push({name:t,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:u})}}}function shouldKeepItem(e,t){switch(e.kind){case 250:case 253:case 248:var r=t.getSymbolAtLocation(e.name);var n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return true}}function tryAddSingleDeclarationName(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(pushLiteral(n,r)||n.kind===149&&tryAddComputedPropertyName(n.expression,r))}function tryAddComputedPropertyName(t,r){return pushLiteral(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),true)&&tryAddComputedPropertyName(t.expression,r)}function pushLiteral(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),true)}function getContainers(t){var r=[];var n=e.getNameOfDeclaration(t);if(n&&n.kind===149&&!tryAddComputedPropertyName(n.expression,r)){return e.emptyArray}r.shift();var i=e.getContainerNode(t);while(i){if(!tryAddSingleDeclarationName(i,r)){return e.emptyArray}i=e.getContainerNode(i)}return r.reverse()}function compareNavigateToItems(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function createNavigateToItem(t){var r=t.declaration;var n=e.getContainerNode(r);var i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}})(t=e.NavigateTo||(e.NavigateTo={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=/\s+/g;var n;var i;var a=[];var o;var s=[];function getNavigationBarItems(t,r){n=r;i=t;try{return e.map(topLevelItems(rootNavigationBarNode(t)),convertToTopLevelItem)}finally{reset()}}t.getNavigationBarItems=getNavigationBarItems;function getNavigationTree(e,t){n=t;i=e;try{return convertToTree(rootNavigationBarNode(e))}finally{reset()}}t.getNavigationTree=getNavigationTree;function reset(){i=undefined;n=undefined;a=[];o=undefined;s=[]}function nodeText(e){return e.getText(i)}function navigationBarNodeKind(e){return e.node.kind}function pushChild(e,t){if(e.children){e.children.push(t)}else{e.children=[t]}}function rootNavigationBarNode(t){e.Debug.assert(!a.length);var r={node:t,name:undefined,additionalNodes:undefined,parent:undefined,children:undefined,indent:0};o=r;for(var n=0,i=t.statements;n<i.length;n++){var s=i[n];addChildrenRecursively(s)}endNode();e.Debug.assert(!o&&!a.length);return r}function addLeafNode(e){pushChild(o,emptyNavigationBarNode(e))}function emptyNavigationBarNode(t){return{node:t,name:e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):undefined,additionalNodes:undefined,parent:o,children:undefined,indent:o.indent+1}}function startNode(e){var t=emptyNavigationBarNode(e);pushChild(o,t);a.push(o);o=t}function endNode(){if(o.children){mergeChildren(o.children,o);sortChildren(o.children)}o=a.pop()}function addNodeWithRecursiveChild(e,t){startNode(e);addChildrenRecursively(t);endNode()}function addChildrenRecursively(t){n.throwIfCancellationRequested();if(!t||e.isToken(t)){return}switch(t.kind){case 157:var r=t;addNodeWithRecursiveChild(r,r.body);for(var i=0,a=r.parameters;i<a.length;i++){var o=a[i];if(e.isParameterPropertyDeclaration(o)){addLeafNode(o)}}break;case 156:case 158:case 159:case 155:if(!e.hasDynamicName(t)){addNodeWithRecursiveChild(t,t.body)}break;case 154:case 153:if(!e.hasDynamicName(t)){addLeafNode(t)}break;case 250:var s=t;if(s.name){addLeafNode(s.name)}var c=s.namedBindings;if(c){if(c.kind===251){addLeafNode(c)}else{for(var u=0,l=c.elements;u<l.length;u++){var f=l[u];addLeafNode(f)}}}break;case 186:case 237:var d=t,p=d.name,g=d.initializer;if(e.isBindingPattern(p)){addChildrenRecursively(p)}else if(g&&isFunctionOrClassExpression(g)){if(g.name){addChildrenRecursively(g)}else{startNode(t);e.forEachChild(g,addChildrenRecursively);endNode()}}else{addNodeWithRecursiveChild(t,g)}break;case 197:case 239:case 196:addNodeWithRecursiveChild(t,t.body);break;case 243:startNode(t);for(var _=0,m=t.members;_<m.length;_++){var y=m[_];if(!isComputedProperty(y)){addLeafNode(y)}}endNode();break;case 240:case 209:case 241:startNode(t);for(var h=0,v=t.members;h<v.length;h++){var y=v[h];addChildrenRecursively(y)}endNode();break;case 244:addNodeWithRecursiveChild(t,getInteriorModule(t).body);break;case 257:case 248:case 162:case 160:case 161:case 242:addLeafNode(t);break;case 204:{var T=e.getAssignmentDeclarationKind(t);switch(T){case 1:case 2:case 3:case 6:addNodeWithRecursiveChild(t,t.right);return;case 4:case 5:case 0:case 7:case 8:case 9:break;default:e.Debug.assertNever(T)}}default:if(e.hasJSDocNodes(t)){e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){if(e.isJSDocTypeAlias(t)){addLeafNode(t)}})})}e.forEachChild(t,addChildrenRecursively)}}function mergeChildren(t,r){var n=e.createMap();e.filterMutate(t,function(t){var i=e.getNameOfDeclaration(t.node);var a=i&&nodeText(i);if(!a){return true}var o=n.get(a);if(!o){n.set(a,t);return true}if(o instanceof Array){for(var s=0,c=o;s<c.length;s++){var u=c[s];if(tryMerge(u,t,r)){return false}}o.push(t);return true}else{var u=o;if(tryMerge(u,t,r)){return false}n.set(a,[u,t]);return true}})}function tryMerge(e,t,r){if(shouldReallyMerge(e.node,t.node,r)){merge(e,t);return true}return false}function shouldReallyMerge(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&!(isOwnChild(t,n)&&isOwnChild(r,n))){return false}switch(t.kind){case 154:case 156:case 158:case 159:return e.hasModifier(t,32)===e.hasModifier(r,32);case 244:return areSameModule(t,r);default:return true}}function isOwnChild(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function areSameModule(e,t){return e.body.kind===t.body.kind&&(e.body.kind!==244||areSameModule(e.body,t.body))}function merge(t,r){var n;t.additionalNodes=t.additionalNodes||[];t.additionalNodes.push(r.node);if(r.additionalNodes){(n=t.additionalNodes).push.apply(n,r.additionalNodes)}t.children=e.concatenate(t.children,r.children);if(t.children){mergeChildren(t.children,t);sortChildren(t.children)}}function sortChildren(e){e.sort(compareChildren)}function compareChildren(t,r){return e.compareStringsCaseSensitiveUI(tryGetName(t.node),tryGetName(r.node))||e.compareValues(navigationBarNodeKind(t),navigationBarNodeKind(r))}function tryGetName(t){if(t.kind===244){return getModuleName(t)}var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(r))}switch(t.kind){case 196:case 197:case 209:return getFunctionOrClassName(t);default:return undefined}}function getItemName(t,r){if(t.kind===244){return getModuleName(t)}if(r){var n=nodeText(r);if(n.length>0){return n}}switch(t.kind){case 279:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 197:case 239:case 196:case 240:case 209:if(e.getModifierFlags(t)&512){return"default"}return getFunctionOrClassName(t);case 157:return"constructor";case 161:return"new()";case 160:return"()";case 162:return"[]";default:return"<unknown>"}}function topLevelItems(t){var r=[];function recur(e){if(isTopLevel(e)){r.push(e);if(e.children){for(var t=0,n=e.children;t<n.length;t++){var i=n[t];recur(i)}}}}recur(t);return r;function isTopLevel(t){switch(navigationBarNodeKind(t)){case 240:case 209:case 243:case 241:case 244:case 279:case 242:case 304:case 297:return true;case 157:case 156:case 158:case 159:case 237:return hasSomeImportantChild(t);case 197:case 239:case 196:return isTopLevelFunctionDeclaration(t);default:return false}function isTopLevelFunctionDeclaration(e){if(!e.node.body){return false}switch(navigationBarNodeKind(e.parent)){case 245:case 279:case 156:case 157:return true;default:return hasSomeImportantChild(e)}}function hasSomeImportantChild(t){return e.some(t.children,function(e){var t=navigationBarNodeKind(e);return t!==237&&t!==186})}}}function convertToTree(t){return{text:getItemName(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:getModifiers(t.node),spans:getSpans(t),nameSpan:t.name&&getNodeSpan(t.name),childItems:e.map(t.children,convertToTree)}}function convertToTopLevelItem(t){return{text:getItemName(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:getModifiers(t.node),spans:getSpans(t),childItems:e.map(t.children,convertToChildItem)||s,indent:t.indent,bolded:false,grayed:false};function convertToChildItem(t){return{text:getItemName(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:getSpans(t),childItems:s,indent:0,bolded:false,grayed:false}}}function getSpans(e){var t=[getNodeSpan(e.node)];if(e.additionalNodes){for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(getNodeSpan(i))}}return t}function getModuleName(t){if(e.isAmbientModule(t)){return e.getTextOfNode(t.name)}var r=[];r.push(e.getTextOfIdentifierOrLiteral(t.name));while(t.body&&t.body.kind===244){t=t.body;r.push(e.getTextOfIdentifierOrLiteral(t.name))}return r.join(".")}function getInteriorModule(t){return t.body&&e.isModuleDeclaration(t.body)?getInteriorModule(t.body):t}function isComputedProperty(e){return!e.name||e.name.kind===149}function getNodeSpan(t){return t.kind===279?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function getModifiers(t){if(t.parent&&t.parent.kind===237){t=t.parent}return e.getNodeModifiers(t)}function getFunctionOrClassName(t){var n=t.parent;if(t.name&&e.getFullWidth(t.name)>0){return e.declarationNameToString(t.name)}else if(e.isVariableDeclaration(n)){return e.declarationNameToString(n.name)}else if(e.isBinaryExpression(n)&&n.operatorToken.kind===59){return nodeText(n.left).replace(r,"")}else if(e.isPropertyAssignment(n)){return nodeText(n.name)}else if(e.getModifierFlags(t)&512){return"default"}else if(e.isClassLike(t)){return"<class>"}else if(e.isCallExpression(n)){var a=getCalledExpressionName(n.expression);if(a!==undefined){var o=e.mapDefined(n.arguments,function(t){return e.isStringLiteral(t)?t.getText(i):undefined}).join(", ");return a+"("+o+") callback"}}return"<function>"}function getCalledExpressionName(t){if(e.isIdentifier(t)){return t.text}else if(e.isPropertyAccessExpression(t)){var r=getCalledExpressionName(t.expression);var n=t.name.text;return r===undefined?n:r+"."+n}else{return undefined}}function isFunctionOrClassExpression(e){switch(e.kind){case 197:case 196:case 209:return true;default:return false}}})(t=e.NavigationBar||(e.NavigationBar={}))})(s||(s={}));var s;(function(e){var t;(function(t){function organizeImports(t,r,n,i,a){var o=e.textChanges.ChangeTracker.fromContext({host:n,formatContext:r});var s=function(e){return coalesceImports(removeUnusedImports(e,t,i))};var c=t.statements.filter(e.isImportDeclaration);organizeImportsWorker(c,s);var u=t.statements.filter(e.isExportDeclaration);organizeImportsWorker(u,coalesceExports);for(var l=0,f=t.statements.filter(e.isAmbientModule);l<f.length;l++){var d=f[l];var p=getModuleBlock(d);var g=p.statements.filter(e.isImportDeclaration);organizeImportsWorker(g,s);var _=p.statements.filter(e.isExportDeclaration);organizeImportsWorker(_,coalesceExports)}return o.getChanges();function organizeImportsWorker(i,a){if(e.length(i)===0){return}e.suppressLeadingTrivia(i[0]);var s=e.group(i,function(e){return getExternalModuleName(e.moduleSpecifier)});var c=e.stableSort(s,function(e,t){return compareModuleSpecifiers(e[0].moduleSpecifier,t[0].moduleSpecifier)});var u=e.flatMap(c,function(e){return getExternalModuleName(e[0].moduleSpecifier)?a(e):e});if(u.length===0){o.delete(t,i[0])}else{o.replaceNodeWithNodes(t,i[0],u,{useNonAdjustedStartPosition:true,useNonAdjustedEndPosition:false,suffix:e.getNewLineOrDefaultFromHost(n,r.options)})}for(var l=1;l<i.length;l++){o.delete(t,i[l])}}}t.organizeImports=organizeImports;function getModuleBlock(t){var r=t.body;return r&&!e.isIdentifier(r)?e.isModuleBlock(r)?r:getModuleBlock(r):undefined}function removeUnusedImports(t,r,n){var i=n.getTypeChecker();var a=i.getJsxNamespace();var o=!!(r.transformFlags&4);var s=[];for(var c=0,u=t;c<u.length;c++){var l=u[c];var f=l.importClause;if(!f){s.push(l);continue}var d=f.name,p=f.namedBindings;if(d&&!isDeclarationUsed(d)){d=undefined}if(p){if(e.isNamespaceImport(p)){if(!isDeclarationUsed(p.name)){p=undefined}}else{var g=p.elements.filter(function(e){return isDeclarationUsed(e.name)});if(g.length<p.elements.length){p=g.length?e.updateNamedImports(p,g):undefined}}}if(d||p){s.push(updateImportDeclarationAndClause(l,d,p))}}return s;function isDeclarationUsed(t){return o&&t.text===a||e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,r)}}function getExternalModuleName(t){return t!==undefined&&e.isStringLiteralLike(t)?t.text:undefined}function coalesceImports(t){if(t.length===0){return t}var r=getCategorizedImports(t),n=r.importWithoutClause,i=r.defaultImports,a=r.namespaceImports,o=r.namedImports;var s=[];if(n){s.push(n)}if(i.length===1&&a.length===1&&o.length===0){var c=i[0];s.push(updateImportDeclarationAndClause(c,c.importClause.name,a[0].importClause.namedBindings));return s}var u=e.stableSort(a,function(e,t){return compareIdentifiers(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});for(var l=0,f=u;l<f.length;l++){var d=f[l];s.push(updateImportDeclarationAndClause(d,undefined,d.importClause.namedBindings))}if(i.length===0&&o.length===0){return s}var p;var g=[];if(i.length===1){p=i[0].importClause.name}else{for(var _=0,m=i;_<m.length;_++){var c=m[_];g.push(e.createImportSpecifier(e.createIdentifier("default"),c.importClause.name))}}g.push.apply(g,e.flatMap(o,function(e){return e.importClause.namedBindings.elements}));var y=sortSpecifiers(g);var h=i.length>0?i[0]:o[0];var v=y.length===0?p?undefined:e.createNamedImports(e.emptyArray):o.length===0?e.createNamedImports(y):e.updateNamedImports(o[0].importClause.namedBindings,y);s.push(updateImportDeclarationAndClause(h,p,v));return s;function getCategorizedImports(t){var r;var n=[];var i=[];var a=[];for(var o=0,s=t;o<s.length;o++){var c=s[o];if(c.importClause===undefined){r=r||c;continue}var u=c.importClause,l=u.name,f=u.namedBindings;if(l){n.push(c)}if(f){if(e.isNamespaceImport(f)){i.push(c)}else{a.push(c)}}}return{importWithoutClause:r,defaultImports:n,namespaceImports:i,namedImports:a}}}t.coalesceImports=coalesceImports;function coalesceExports(t){if(t.length===0){return t}var r=getCategorizedExports(t),n=r.exportWithoutClause,i=r.namedExports;var a=[];if(n){a.push(n)}if(i.length===0){return a}var o=[];o.push.apply(o,e.flatMap(i,function(e){return e.exportClause.elements}));var s=sortSpecifiers(o);var c=i[0];a.push(e.updateExportDeclaration(c,c.decorators,c.modifiers,e.updateNamedExports(c.exportClause,s),c.moduleSpecifier));return a;function getCategorizedExports(e){var t;var r=[];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.exportClause===undefined){t=t||a}else{r.push(a)}}return{exportWithoutClause:t,namedExports:r}}}t.coalesceExports=coalesceExports;function updateImportDeclarationAndClause(t,r,n){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,r,n),t.moduleSpecifier)}function sortSpecifiers(t){return e.stableSort(t,function(e,t){return compareIdentifiers(e.propertyName||e.name,t.propertyName||t.name)||compareIdentifiers(e.name,t.name)})}function compareModuleSpecifiers(t,r){var n=getExternalModuleName(t);var i=getExternalModuleName(r);return e.compareBooleans(n===undefined,i===undefined)||e.compareBooleans(e.isExternalModuleNameRelative(n),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(n,i)}t.compareModuleSpecifiers=compareModuleSpecifiers;function compareIdentifiers(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}})(t=e.OrganizeImports||(e.OrganizeImports={}))})(s||(s={}));var s;(function(e){var t;(function(t){function collectElements(e,t){var r=[];addNodeOutliningSpans(e,t,r);addRegionOutliningSpans(e,r);return r.sort(function(e,t){return e.textSpan.start-t.textSpan.start})}t.collectElements=collectElements;function addNodeOutliningSpans(t,r,n){var i=40;var a=0;var o=t.statements;var s=o.length;while(a<s){while(a<s&&!e.isAnyImportSyntax(o[a])){visitNonImportNode(o[a]);a++}if(a===s)break;var c=a;while(a<s&&e.isAnyImportSyntax(o[a])){addOutliningForLeadingCommentsForNode(o[a],t,r,n);a++}var u=a-1;if(u!==c){n.push(createOutliningSpanFromBounds(e.findChildOfKind(o[c],92,t).getStart(t),o[u].getEnd(),"imports"))}}function visitNonImportNode(a){if(i===0)return;r.throwIfCancellationRequested();if(e.isDeclaration(a)){addOutliningForLeadingCommentsForNode(a,t,r,n)}var o=getOutliningSpanForNode(a,t);if(o)n.push(o);i--;if(e.isIfStatement(a)&&a.elseStatement&&e.isIfStatement(a.elseStatement)){visitNonImportNode(a.expression);visitNonImportNode(a.thenStatement);i++;visitNonImportNode(a.elseStatement);i--}else{a.forEachChild(visitNonImportNode)}i++}}function addRegionOutliningSpans(t,r){var n=[];var i=t.getLineStarts();for(var a=0;a<i.length;a++){var o=i[a];var s=a+1===i.length?t.getEnd():i[a+1]-1;var c=t.text.substring(o,s);var u=isRegionDelimiter(c);if(!u||e.isInComment(t,o)){continue}if(!u[1]){var l=e.createTextSpanFromBounds(t.text.indexOf("//",o),s);n.push(createOutliningSpan(l,"region",l,false,u[2]||"#region"))}else{var f=n.pop();if(f){f.textSpan.length=s-f.textSpan.start;f.hintSpan.length=s-f.textSpan.start;r.push(f)}}}}var r=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function isRegionDelimiter(e){return r.exec(e)}function addOutliningForLeadingCommentsForNode(t,r,n,i){var a=e.getLeadingCommentRangesOfNode(t,r);if(!a)return;var o=-1;var s=-1;var c=0;var u=r.getFullText();for(var l=0,f=a;l<f.length;l++){var d=f[l],p=d.kind,g=d.pos,_=d.end;n.throwIfCancellationRequested();switch(p){case 2:var m=u.slice(g,_);if(isRegionDelimiter(m)){combineAndAddMultipleSingleLineComments();c=0;break}if(c===0){o=g}s=_;c++;break;case 3:combineAndAddMultipleSingleLineComments();i.push(createOutliningSpanFromBounds(g,_,"comment"));c=0;break;default:e.Debug.assertNever(p)}}combineAndAddMultipleSingleLineComments();function combineAndAddMultipleSingleLineComments(){if(c>1){i.push(createOutliningSpanFromBounds(o,s,"comment"))}}}function createOutliningSpanFromBounds(t,r,n){return createOutliningSpan(e.createTextSpanFromBounds(t,r),n)}function getOutliningSpanForNode(t,r){switch(t.kind){case 218:if(e.isFunctionBlock(t)){return spanForNode(t.parent,t.parent.kind!==197)}switch(t.parent.kind){case 223:case 226:case 227:case 225:case 222:case 224:case 231:case 274:return spanForNode(t.parent);case 235:var n=t.parent;if(n.tryBlock===t){return spanForNode(t.parent)}else if(n.finallyBlock===t){return spanForNode(e.findChildOfKind(n,88,r))}default:return createOutliningSpan(e.createTextSpanFromNode(t,r),"code")}case 245:return spanForNode(t.parent);case 240:case 241:case 243:case 246:return spanForNode(t);case 188:return spanForObjectOrArrayLiteral(t);case 187:return spanForObjectOrArrayLiteral(t,22);case 260:return spanForJSXElement(t);case 261:case 262:return spanForJSXAttributes(t.attributes)}function spanForJSXElement(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd());var i=t.openingElement.tagName.getText(r);var a="<"+i+">...</"+i+">";return createOutliningSpan(n,"code",n,false,a)}function spanForJSXAttributes(e){if(e.properties.length===0){return undefined}return createOutliningSpanFromBounds(e.getStart(r),e.getEnd(),"code")}function spanForObjectOrArrayLiteral(t,r){if(r===void 0){r=18}return spanForNode(t,false,!e.isArrayLiteralExpression(t.parent),r)}function spanForNode(n,i,a,o){if(i===void 0){i=false}if(a===void 0){a=true}if(o===void 0){o=18}var s=e.findChildOfKind(t,o,r);var c=o===18?19:23;var u=e.findChildOfKind(t,c,r);if(!s||!u){return undefined}var l=e.createTextSpanFromBounds(a?s.getFullStart():s.getStart(r),u.getEnd());return createOutliningSpan(l,"code",e.createTextSpanFromNode(n,r),i)}}function createOutliningSpan(e,t,r,n,i){if(r===void 0){r=e}if(n===void 0){n=false}if(i===void 0){i="..."}return{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}})(t=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(s||(s={}));var s;(function(e){var t;(function(e){e[e["exact"]=0]="exact";e[e["prefix"]=1]="prefix";e[e["substring"]=2]="substring";e[e["camelCase"]=3]="camelCase"})(t=e.PatternMatchKind||(e.PatternMatchKind={}));function createPatternMatch(e,t){return{kind:e,isCaseSensitive:t}}function createPatternMatcher(t){var r=e.createMap();var n=t.trim().split(".").map(function(e){return createSegment(e.trim())});if(n.some(function(e){return!e.subWordTextChunks.length}))return undefined;return{getFullMatch:function(e,t){return getFullMatch(e,t,n,r)},getMatchForLastSegmentOfPattern:function(t){return matchSegment(t,e.last(n),r)},patternContainsDots:n.length>1}}e.createPatternMatcher=createPatternMatcher;function getFullMatch(t,r,n,i){var a=matchSegment(r,e.last(n),i);if(!a){return undefined}if(n.length-1>t.length){return undefined}var o;for(var s=n.length-2,c=t.length-1;s>=0;s-=1,c-=1){o=betterMatch(o,matchSegment(t[c],n[s],i))}return o}function getWordSpans(e,t){var r=t.get(e);if(!r){t.set(e,r=breakIntoWordSpans(e))}return r}function matchTextChunk(r,n,i){var a=indexOfIgnoringCase(r,n.textLowerCase);if(a===0){return createPatternMatch(n.text.length===r.length?t.exact:t.prefix,e.startsWith(r,n.text))}if(n.isLowerCase){if(a===-1)return undefined;var o=getWordSpans(r,i);for(var s=0,c=o;s<c.length;s++){var u=c[s];if(partStartsWith(r,u,n.text,true)){return createPatternMatch(t.substring,partStartsWith(r,u,n.text,false))}}if(n.text.length<r.length&&isUpperCaseLetter(r.charCodeAt(a))){return createPatternMatch(t.substring,false)}}else{if(r.indexOf(n.text)>0){return createPatternMatch(t.substring,true)}if(n.characterSpans.length>0){var l=getWordSpans(r,i);var f=tryCamelCaseMatch(r,l,n,false)?true:tryCamelCaseMatch(r,l,n,true)?false:undefined;if(f!==undefined){return createPatternMatch(t.camelCase,f)}}}}function matchSegment(e,t,r){if(every(t.totalTextChunk.text,function(e){return e!==32&&e!==42})){var n=matchTextChunk(e,t.totalTextChunk,r);if(n)return n}var i=t.subWordTextChunks;var a;for(var o=0,s=i;o<s.length;o++){var c=s[o];a=betterMatch(a,matchTextChunk(e,c,r))}return a}function betterMatch(t,r){return e.min(t,r,compareMatches)}function compareMatches(t,r){return t===undefined?1:r===undefined?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function partStartsWith(e,t,r,n,i){if(i===void 0){i={start:0,length:r.length}}return i.length<=t.length&&everyInRange(0,i.length,function(a){return equalChars(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)})}function equalChars(e,t,r){return r?toLowerCase(e)===toLowerCase(t):e===t}function tryCamelCaseMatch(t,r,n,i){var a=n.characterSpans;var o=0;var s=0;var c;var u;while(true){if(s===a.length){return true}else if(o===r.length){return false}var l=r[o];var f=false;for(;s<a.length;s++){var d=a[s];if(f){if(!isUpperCaseLetter(n.text.charCodeAt(a[s-1].start))||!isUpperCaseLetter(n.text.charCodeAt(a[s].start))){break}}if(!partStartsWith(t,l,n.text,i,d)){break}f=true;c=c===undefined?o:c;u=u===undefined?true:u;l=e.createTextSpan(l.start+d.length,l.length-d.length)}if(!f&&u!==undefined){u=false}o++}}function createSegment(e){return{totalTextChunk:createTextChunk(e),subWordTextChunks:breakPatternIntoTextChunks(e)}}function isUpperCaseLetter(t){if(t>=65&&t<=90){return true}if(t<127||!e.isUnicodeIdentifierStart(t,6)){return false}var r=String.fromCharCode(t);return r===r.toUpperCase()}function isLowerCaseLetter(t){if(t>=97&&t<=122){return true}if(t<127||!e.isUnicodeIdentifierStart(t,6)){return false}var r=String.fromCharCode(t);return r===r.toLowerCase()}function indexOfIgnoringCase(e,t){var r=e.length-t.length;var n=function(r){if(every(t,function(t,n){return toLowerCase(e.charCodeAt(n+r))===t})){return{value:r}}};for(var i=0;i<=r;i++){var a=n(i);if(typeof a==="object")return a.value}return-1}function toLowerCase(e){if(e>=65&&e<=90){return 97+(e-65)}if(e<127){return e}return String.fromCharCode(e).toLowerCase().charCodeAt(0)}function isDigit(e){return e>=48&&e<=57}function isWordChar(e){return isUpperCaseLetter(e)||isLowerCaseLetter(e)||isDigit(e)||e===95||e===36}function breakPatternIntoTextChunks(e){var t=[];var r=0;var n=0;for(var i=0;i<e.length;i++){var a=e.charCodeAt(i);if(isWordChar(a)){if(n===0){r=i}n++}else{if(n>0){t.push(createTextChunk(e.substr(r,n)));n=0}}}if(n>0){t.push(createTextChunk(e.substr(r,n)))}return t}function createTextChunk(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:breakIntoCharacterSpans(e)}}function breakIntoCharacterSpans(e){return breakIntoSpans(e,false)}e.breakIntoCharacterSpans=breakIntoCharacterSpans;function breakIntoWordSpans(e){return breakIntoSpans(e,true)}e.breakIntoWordSpans=breakIntoWordSpans;function breakIntoSpans(t,r){var n=[];var i=0;for(var a=1;a<t.length;a++){var o=isDigit(t.charCodeAt(a-1));var s=isDigit(t.charCodeAt(a));var c=transitionFromLowerToUpper(t,r,a);var u=r&&transitionFromUpperToLower(t,a,i);if(charIsPunctuation(t.charCodeAt(a-1))||charIsPunctuation(t.charCodeAt(a))||o!==s||c||u){if(!isAllPunctuation(t,i,a)){n.push(e.createTextSpan(i,a-i))}i=a}}if(!isAllPunctuation(t,i,t.length)){n.push(e.createTextSpan(i,t.length-i))}return n}function charIsPunctuation(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return true}return false}function isAllPunctuation(e,t,r){return every(e,function(e){return charIsPunctuation(e)&&e!==95},t,r)}function transitionFromUpperToLower(e,t,r){return t!==r&&t+1<e.length&&isUpperCaseLetter(e.charCodeAt(t))&&isLowerCaseLetter(e.charCodeAt(t+1))&&every(e,isUpperCaseLetter,r,t)}function transitionFromLowerToUpper(e,t,r){var n=isUpperCaseLetter(e.charCodeAt(r-1));var i=isUpperCaseLetter(e.charCodeAt(r));return i&&(!t||!n)}function everyInRange(e,t,r){for(var n=e;n<t;n++){if(!r(n)){return false}}return true}function every(e,t,r,n){if(r===void 0){r=0}if(n===void 0){n=e.length}return everyInRange(r,n,function(r){return t(e.charCodeAt(r),r)})}})(s||(s={}));var s;(function(e){function preProcessFile(t,r,n){if(r===void 0){r=true}if(n===void 0){n=false}var i={languageVersion:1,pragmas:undefined,checkJsDirective:undefined,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:undefined,moduleName:undefined};var a=[];var o;var s;var c;var u=0;var l=false;function nextToken(){s=c;c=e.scanner.scan();if(c===18){u++}else if(c===19){u--}return c}function getFileReference(){var t=e.scanner.getTokenValue();var r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function recordAmbientExternalModule(){if(!o){o=[]}o.push({ref:getFileReference(),depth:u})}function recordModuleName(){a.push(getFileReference());markAsExternalModuleIfTopLevel()}function markAsExternalModuleIfTopLevel(){if(u===0){l=true}}function tryConsumeDeclare(){var t=e.scanner.getToken();if(t===125){t=nextToken();if(t===130){t=nextToken();if(t===10){recordAmbientExternalModule()}}return true}return false}function tryConsumeImport(){if(s===24){return false}var t=e.scanner.getToken();if(t===92){t=nextToken();if(t===20){t=nextToken();if(t===10){recordModuleName();return true}}else if(t===10){recordModuleName();return true}else{if(t===72||e.isKeyword(t)){t=nextToken();if(t===144){t=nextToken();if(t===10){recordModuleName();return true}}else if(t===59){if(tryConsumeRequireCall(true)){return true}}else if(t===27){t=nextToken()}else{return true}}if(t===18){t=nextToken();while(t!==19&&t!==1){t=nextToken()}if(t===19){t=nextToken();if(t===144){t=nextToken();if(t===10){recordModuleName()}}}}else if(t===40){t=nextToken();if(t===119){t=nextToken();if(t===72||e.isKeyword(t)){t=nextToken();if(t===144){t=nextToken();if(t===10){recordModuleName()}}}}}}return true}return false}function tryConsumeExport(){var t=e.scanner.getToken();if(t===85){markAsExternalModuleIfTopLevel();t=nextToken();if(t===18){t=nextToken();while(t!==19&&t!==1){t=nextToken()}if(t===19){t=nextToken();if(t===144){t=nextToken();if(t===10){recordModuleName()}}}}else if(t===40){t=nextToken();if(t===144){t=nextToken();if(t===10){recordModuleName()}}}else if(t===92){t=nextToken();if(t===72||e.isKeyword(t)){t=nextToken();if(t===59){if(tryConsumeRequireCall(true)){return true}}}}return true}return false}function tryConsumeRequireCall(t){var r=t?nextToken():e.scanner.getToken();if(r===134){r=nextToken();if(r===20){r=nextToken();if(r===10){recordModuleName()}}return true}return false}function tryConsumeDefine(){var t=e.scanner.getToken();if(t===72&&e.scanner.getTokenValue()==="define"){t=nextToken();if(t!==20){return true}t=nextToken();if(t===10){t=nextToken();if(t===27){t=nextToken()}else{return true}}if(t!==22){return true}t=nextToken();while(t!==23&&t!==1){if(t===10){recordModuleName()}t=nextToken()}return true}return false}function processImports(){e.scanner.setText(t);nextToken();while(true){if(e.scanner.getToken()===1){break}if(tryConsumeDeclare()||tryConsumeImport()||tryConsumeExport()||n&&(tryConsumeRequireCall(false)||tryConsumeDefine())){continue}else{nextToken()}}e.scanner.setText(undefined)}if(r){processImports()}e.processCommentPragmas(i,t);e.processPragmasIntoFields(i,e.noop);if(l){if(o){for(var f=0,d=o;f<d.length;f++){var p=d[f];a.push(p.ref)}}return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:undefined}}else{var g=void 0;if(o){for(var _=0,m=o;_<m.length;_++){var p=m[_];if(p.depth===0){if(!g){g=[]}g.push(p.ref.fileName)}else{a.push(p.ref)}}}return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:a,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:g}}}e.preProcessFile=preProcessFile})(s||(s={}));var s;(function(e){var t;(function(t){function getRenameInfo(t,r,n){var i=e.getTouchingPropertyName(r,n);var a=i&&nodeIsEligibleForRename(i)?getRenameInfoForNode(i,t.getTypeChecker(),r,function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}):undefined;return a||getRenameInfoError(e.Diagnostics.You_cannot_rename_this_element)}t.getRenameInfo=getRenameInfo;function getRenameInfoForNode(t,r,n,i){var a=r.getSymbolAtLocation(t);if(!a)return;var o=a.declarations;if(!o||o.length===0)return;if(o.some(i)){return getRenameInfoError(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library)}if(e.isIdentifier(t)&&t.originalKeywordKind===80&&a.parent.flags&1536){return undefined}if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t)){return getRenameInfoForModule(t,n,a)}var s=e.SymbolDisplay.getSymbolKind(r,a,t);var c=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&t.parent.kind===149?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):undefined;var u=c||r.symbolToString(a);var l=c||r.getFullyQualifiedName(a);return getRenameInfoSuccess(u,l,s,e.SymbolDisplay.getSymbolModifiers(a),t,n)}function getRenameInfoForModule(t,r,n){if(!e.isExternalModuleNameRelative(t.text)){return getRenameInfoError(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import)}var i=e.find(n.declarations,e.isSourceFile);if(!i)return undefined;var a=t.text.endsWith("/index")||t.text.endsWith("/index.js")?undefined:e.tryRemoveSuffix(e.removeFileExtension(i.fileName),"/index");var o=a===undefined?i.fileName:a;var s=a===undefined?"module":"directory";var c=t.text.lastIndexOf("/")+1;var u=e.createTextSpan(t.getStart(r)+1+c,t.text.length-c);return{canRename:true,fileToRename:o,kind:s,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:u}}function getRenameInfoSuccess(e,t,r,n,i,a){return{canRename:true,fileToRename:undefined,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:createTriggerSpanForNode(i,a)}}function getRenameInfoError(t){return{canRename:false,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function createTriggerSpanForNode(t,r){var n=t.getStart(r);var i=t.getWidth(r);if(t.kind===10){n+=1;i-=2}return e.createTextSpan(n,i)}function nodeIsEligibleForRename(t){switch(t.kind){case 72:case 10:case 100:return true;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return false}}})(t=e.Rename||(e.Rename={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["Call"]=0]="Call";e[e["TypeArgs"]=1]="TypeArgs";e[e["Contextual"]=2]="Contextual"})(r||(r={}));function getSignatureHelpItems(t,r,n,i,a){var o=t.getTypeChecker();var s=e.findTokenOnLeftOfPosition(r,n);if(!s){return undefined}var c=!!i&&i.kind==="characterTyped";if(c&&(e.isInString(r,n,s)||e.isInComment(r,n))){return undefined}var u=!!i&&i.kind==="invoked";var l=getContainingArgumentInfo(s,n,r,o,u);if(!l)return undefined;a.throwIfCancellationRequested();var f=getCandidateOrTypeInfo(l,o,r,s,c);a.throwIfCancellationRequested();if(!f){return e.isSourceFileJS(r)?createJSSignatureHelpItems(l,t,a):undefined}return o.runWithCancellationToken(a,function(e){return f.kind===0?createSignatureHelpItems(f.candidates,f.resolvedSignature,l,r,e):createTypeHelpItems(f.symbol,l,r,e)})}t.getSignatureHelpItems=getSignatureHelpItems;var n;(function(e){e[e["Candidate"]=0]="Candidate";e[e["Type"]=1]="Type"})(n||(n={}));function getCandidateOrTypeInfo(t,r,n,i,a){var o=t.invocation,s=t.argumentCount;switch(o.kind){case 0:{if(a&&!isSyntacticOwner(i,o.node,n)){return undefined}var c=[];var u=r.getResolvedSignatureForSignatureHelp(o.node,c,s);return c.length===0?undefined:{kind:0,candidates:c,resolvedSignature:u}}case 1:{var l=o.called;if(a&&!containsPrecedingToken(i,n,e.isIdentifier(l)?l.parent:l)){return undefined}var c=e.getPossibleGenericSignatures(l,s,r);if(c.length!==0)return{kind:0,candidates:c,resolvedSignature:e.first(c)};var f=r.getSymbolAtLocation(l);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[o.signature],resolvedSignature:o.signature};default:return e.Debug.assertNever(o)}}function isSyntacticOwner(t,r,n){if(!e.isCallOrNewExpression(r))return false;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:{var a=e.findContainingList(t);return!!a&&e.contains(i,a)}case 28:return containsPrecedingToken(t,n,r.expression);default:return false}}function createJSSignatureHelpItems(t,r,n){if(t.invocation.kind===2)return undefined;var i=getExpressionFromInvocation(t.invocation);var a=e.isIdentifier(i)?i.text:e.isPropertyAccessExpression(i)?i.name.text:undefined;var o=r.getTypeChecker();return a===undefined?undefined:e.firstDefined(r.getSourceFiles(),function(r){return e.firstDefined(r.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e);var a=i&&i.getCallSignatures();if(a&&a.length){return o.runWithCancellationToken(n,function(e){return createSignatureHelpItems(a,a[0],t,r,e)})}})})}function containsPrecedingToken(t,r,n){var i=e.Debug.assertDefined(e.findPrecedingToken(t.getFullStart(),r,t.parent,true));return e.rangeContainsRange(n,i)}function getArgumentInfoForCompletions(e,t,r){var n=getImmediatelyContainingArgumentInfo(e,t,r);return!n||n.isTypeParameterList||n.invocation.kind!==0?undefined:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}}t.getArgumentInfoForCompletions=getArgumentInfoForCompletions;function getArgumentOrParameterListInfo(t,r){var n=getArgumentOrParameterListAndIndex(t,r);if(!n)return undefined;var i=n.list,a=n.argumentIndex;var o=getArgumentCount(i);if(a!==0){e.Debug.assertLessThan(a,o)}var s=getApplicableSpanForArguments(i,r);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}function getArgumentOrParameterListAndIndex(t,r){if(t.kind===28||t.kind===20){return{list:getChildListThatStartsWithOpenerToken(t.parent,t,r),argumentIndex:0}}else{var n=e.findContainingList(t);return n&&{list:n,argumentIndex:getArgumentIndex(n,t)}}}function getImmediatelyContainingArgumentInfo(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i;var o=getArgumentOrParameterListInfo(t,n);if(!o)return undefined;var s=o.list,c=o.argumentIndex,u=o.argumentCount,l=o.argumentsSpan;var f=!!i.typeArguments&&i.typeArguments.pos===s.pos;return{isTypeParameterList:f,invocation:{kind:0,node:a},argumentsSpan:l,argumentIndex:c,argumentCount:u}}else if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i)){if(e.isInsideTemplateLiteral(t,r,n)){return getArgumentListInfoForTemplate(i,0,n)}return undefined}else if(e.isTemplateHead(t)&&i.parent.kind===193){var d=i;var p=d.parent;e.Debug.assert(d.kind===206);var c=e.isInsideTemplateLiteral(t,r,n)?0:1;return getArgumentListInfoForTemplate(p,c,n)}else if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;var p=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n)){return undefined}var _=g.parent.templateSpans.indexOf(g);var c=getArgumentIndexForTemplatePiece(_,t,r,n);return getArgumentListInfoForTemplate(p,c,n)}else if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos;var y=e.skipTrivia(n.text,i.attributes.end,false);return{isTypeParameterList:false,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}else{var h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,T=h.nTypeArguments;var a={kind:1,called:v};var l=e.createTextSpanFromBounds(v.getStart(n),t.end);return{isTypeParameterList:true,invocation:a,argumentsSpan:l,argumentIndex:T,argumentCount:T+1}}return undefined}}function getImmediatelyContainingArgumentOrContextualParameterInfo(e,t,r,n){return tryGetParameterInfo(e,t,r,n)||getImmediatelyContainingArgumentInfo(e,t,r)}function getHighestBinary(t){return e.isBinaryExpression(t.parent)?getHighestBinary(t.parent):t}function countBinaryExpressionParameters(t){return e.isBinaryExpression(t.left)?countBinaryExpressionParameters(t.left)+1:2}function tryGetParameterInfo(t,r,n,i){var a=getContextualSignatureLocationInfo(t,n,i);if(!a)return undefined;var o=a.contextualType,s=a.argumentIndex,c=a.argumentCount,u=a.argumentsSpan;var l=o.getCallSignatures();if(l.length!==1)return undefined;var f={kind:2,signature:e.first(l),node:t,symbol:chooseBetterSymbol(o.symbol)};return{isTypeParameterList:false,invocation:f,argumentsSpan:u,argumentIndex:s,argumentCount:c}}function getContextualSignatureLocationInfo(t,r,n){if(t.kind!==20&&t.kind!==27)return undefined;var i=t.parent;switch(i.kind){case 195:case 156:case 196:case 197:var a=getArgumentOrParameterListInfo(t,r);if(!a)return undefined;var o=a.argumentIndex,s=a.argumentCount,c=a.argumentsSpan;var u=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return u&&{contextualType:u,argumentIndex:o,argumentCount:s,argumentsSpan:c};case 204:{var l=getHighestBinary(i);var f=n.getContextualType(l);var d=t.kind===20?0:countBinaryExpressionParameters(i)-1;var p=countBinaryExpressionParameters(l);return f&&{contextualType:f,argumentIndex:d,argumentCount:p,argumentsSpan:e.createTextSpanFromNode(i)}}default:return undefined}}function chooseBetterSymbol(t){return t.name==="__type"?e.firstDefined(t.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:undefined})||t:t}function getArgumentIndex(e,t){var r=0;for(var n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t){break}if(a.kind!==27){r++}}return r}function getArgumentCount(t){var r=t.getChildren();var n=e.countWhere(r,function(e){return e.kind!==27});if(r.length>0&&e.last(r).kind===27){n++}return n}function getArgumentIndexForTemplatePiece(t,r,n,i){e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node.");if(e.isTemplateLiteralToken(r)){if(e.isInsideTemplateLiteral(r,n,i)){return 0}return t+2}return t+1}function getArgumentListInfoForTemplate(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;if(r!==0){e.Debug.assertLessThan(r,i)}return{isTypeParameterList:false,invocation:{kind:0,node:t},argumentsSpan:getApplicableSpanForTaggedTemplate(t,n),argumentIndex:r,argumentCount:i}}function getApplicableSpanForArguments(t,r){var n=t.getFullStart();var i=e.skipTrivia(r.text,t.getEnd(),false);return e.createTextSpan(n,i-n)}function getApplicableSpanForTaggedTemplate(t,r){var n=t.template;var i=n.getStart();var a=n.getEnd();if(n.kind===206){var o=e.last(n.templateSpans);if(o.literal.getFullWidth()===0){a=e.skipTrivia(r.text,a,false)}}return e.createTextSpan(i,a-i)}function getContainingArgumentInfo(t,r,n,i,a){var o=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.showSyntaxKind(t)+", parent: "+e.Debug.showSyntaxKind(t.parent)});var a=getImmediatelyContainingArgumentOrContextualParameterInfo(t,r,n,i);if(a){return{value:a}}};for(var s=t;a||!e.isBlock(s)&&!e.isSourceFile(s);s=s.parent){var c=o(s);if(typeof c==="object")return c.value}return undefined}function getChildListThatStartsWithOpenerToken(t,r,n){var i=t.getChildren(n);var a=i.indexOf(r);e.Debug.assert(a>=0&&i.length>a+1);return i[a+1]}function getExpressionFromInvocation(t){return t.kind===0?e.getInvokedExpression(t.node):t.called}function getEnclosingDeclarationFromInvocation(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var i=8192|70221824|16384;function createSignatureHelpItems(t,r,n,i,a){var o=n.isTypeParameterList,s=n.argumentCount,c=n.argumentsSpan,u=n.invocation,l=n.argumentIndex;var f=getEnclosingDeclarationFromInvocation(u);var d=u.kind===2?u.symbol:a.getSymbolAtLocation(getExpressionFromInvocation(u));var p=d?e.symbolToDisplayParts(a,d,undefined,undefined):e.emptyArray;var g=t.map(function(e){return getSignatureHelpItem(e,p,o,a,f,i)});if(l!==0){e.Debug.assertLessThan(l,s)}var _=t.indexOf(r);e.Debug.assert(_!==-1);return{items:g,applicableSpan:c,selectedItemIndex:_,argumentIndex:l,argumentCount:s}}function createTypeHelpItems(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex;var c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!c)return undefined;var u=[getTypeHelpItem(e,c,n,getEnclosingDeclarationFromInvocation(o),r)];return{items:u,applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}}function getTypeHelpItem(t,r,n,i,o){var s=e.symbolToDisplayParts(n,t);var c=e.createPrinter({removeComments:true});var u=r.map(function(e){return createSignatureHelpParameterForTypeParameter(e,n,i,o,c)});var l=t.getDocumentationComment(n);var f=t.getJsDocTags();var d=s.concat([e.punctuationPart(28)]);return{isVariadic:false,prefixDisplayParts:d,suffixDisplayParts:[e.punctuationPart(30)],separatorDisplayParts:a,parameters:u,documentation:l,tags:f}}var a=[e.punctuationPart(27),e.spacePart()];function getSignatureHelpItem(e,t,r,n,i,o){var s=(r?itemInfoForTypeParameters:itemInfoForParameters)(e,n,i,o),c=s.isVariadic,u=s.parameters,l=s.prefix,f=s.suffix;var d=t.concat(l);var p=f.concat(returnTypeToDisplayParts(e,i,n));var g=e.getDocumentationComment(n);var _=e.getJsDocTags();return{isVariadic:c,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:a,parameters:u,documentation:g,tags:_}}function returnTypeToDisplayParts(t,r,n){return e.mapToDisplayParts(function(e){e.writePunctuation(":");e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);if(i){n.writeTypePredicate(i,r,undefined,e)}else{n.writeType(n.getReturnTypeOfSignature(t),r,undefined,e)}})}function itemInfoForTypeParameters(t,r,n,a){var o=(t.target||t).typeParameters;var s=e.createPrinter({removeComments:true});var c=(o||e.emptyArray).map(function(e){return createSignatureHelpParameterForTypeParameter(e,r,n,a,s)});var u=e.mapToDisplayParts(function(o){var c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,i)]:[];var u=e.createNodeArray(c.concat(t.parameters.map(function(e){return r.symbolToParameterDeclaration(e,n,i)})));s.writeList(2576,u,a,o)});return{isVariadic:false,parameters:c,prefix:[e.punctuationPart(28)],suffix:[e.punctuationPart(30)].concat(u)}}function itemInfoForParameters(t,r,n,i){var a=t.hasRestParameter;var o=e.createPrinter({removeComments:true});var s=e.mapToDisplayParts(function(a){if(t.typeParameters&&t.typeParameters.length){var s=e.createNodeArray(t.typeParameters.map(function(e){return r.typeParameterToDeclaration(e,n)}));o.writeList(53776,s,i,a)}});var c=t.parameters.map(function(e){return createSignatureHelpParameterForParameter(e,r,n,i,o)});return{isVariadic:a,parameters:c,prefix:s.concat([e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}function createSignatureHelpParameterForParameter(t,r,n,a,o){var s=e.mapToDisplayParts(function(e){var s=r.symbolToParameterDeclaration(t,n,i);o.writeNode(4,s,a,e)});var c=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:s,isOptional:c}}function createSignatureHelpParameterForTypeParameter(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.typeParameterToDeclaration(t,n);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:false}}})(t=e.SignatureHelp||(e.SignatureHelp={}))})(s||(s={}));var s;(function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function getSourceMapper(r,n,i,a,o){var s=e.createGetCanonicalFileName(r);var c;return{tryGetSourcePosition:tryGetSourcePosition,tryGetGeneratedPosition:tryGetGeneratedPosition,toLineColumnOffset:toLineColumnOffset,clearCache:clearCache};function toPath(t){return e.toPath(t,n,s)}function scanForSourcemapURL(t){var r=c.get(toPath(t));if(!r){return}return e.tryGetSourceMappingURL(r.text,e.getLineStarts(r))}function convertDocumentToSourceMapper(t,r,n){var a=e.tryParseRawSourceMap(r);if(!a||!a.sources||!a.file||!a.mappings){return t.sourceMapper=e.identitySourceMapConsumer}var u=o();return t.sourceMapper=e.createDocumentPositionMapper({getSourceFileLike:function(e){var t=u&&u.getSourceFileByPath(e);if(t===undefined||t.resolvedPath!==e){return c.get(e)}return t},getCanonicalFileName:s,log:i},a,n)}function getSourceMapper(r,n){if(!a.readFile||!a.fileExists){return n.sourceMapper=e.identitySourceMapConsumer}if(n.sourceMapper){return n.sourceMapper}var i=scanForSourcemapURL(r);if(i){var o=t.exec(i);if(o){if(o[1]){var c=o[1];return convertDocumentToSourceMapper(n,e.base64decode(e.sys,c),r)}i=undefined}}var u=[];if(i){u.push(i)}u.push(r+".map");for(var l=0,f=u;l<f.length;l++){var d=f[l];var p=e.toPath(d,e.getDirectoryPath(r),s);if(a.fileExists(p)){return convertDocumentToSourceMapper(n,a.readFile(p),p)}}return n.sourceMapper=e.identitySourceMapConsumer}function tryGetSourcePosition(t){if(!e.isDeclarationFileName(t.fileName))return undefined;var r=getFile(t.fileName);if(!r)return undefined;var n=getSourceMapper(t.fileName,r).getSourcePosition(t);return n===t?undefined:tryGetSourcePosition(n)||n}function tryGetGeneratedPosition(t){var r=o();var i=r.getCompilerOptions();var a=i.outFile||i.out;var c=a?e.removeFileExtension(a)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(t.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),s);if(c===undefined)return undefined;var u=getFile(c);if(!u)return undefined;var l=getSourceMapper(c,u).getGeneratedPosition(t);return l===t?undefined:l}function getFile(e){var t=toPath(e);var r=o().getSourceFileByPath(t);if(r&&r.resolvedPath===t){return r}return c.get(t)}function toLineColumnOffset(e,t){var r=getFile(e);return r.getLineAndCharacterOfPosition(t)}function clearCache(){c=createSourceFileLikeCache(a)}}e.getSourceMapper=getSourceMapper;function createSourceFileLikeCache(t){var r=e.createMap();return{get:function(n){if(r.has(n)){return r.get(n)}if(!t.fileExists||!t.readFile||!t.fileExists(n))return;var i=t.readFile(n);var a={text:i,lineMap:undefined,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}};r.set(n,a);return a}}}})(s||(s={}));var s;(function(e){function computeSuggestionDiagnostics(t,r,n){r.getSemanticDiagnostics(t,n);var i=[];var a=r.getTypeChecker();if(t.commonJsModuleIndicator&&(e.programContainsEs6Modules(r)||e.compilerOptionsIndicateEs6Modules(r.getCompilerOptions()))&&containsTopLevelCommonjs(t)){i.push(e.createDiagnosticForNode(getErrorNodeFromCommonJsIndicator(t.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module))}var o=e.isSourceFileJS(t);check(t);if(e.getAllowSyntheticDefaultImports(r.getCompilerOptions())){for(var s=0,c=t.imports;s<c.length;s++){var u=c[s];var l=e.importFromModuleSpecifier(u);var f=importNameForConvertToDefaultImport(l);if(!f)continue;var d=e.getResolvedModule(t,u.text);var p=d&&r.getSourceFile(d.resolvedFileName);if(p&&p.externalModuleIndicator&&e.isExportAssignment(p.externalModuleIndicator)&&p.externalModuleIndicator.isExportEquals){i.push(e.createDiagnosticForNode(f,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}}e.addRange(i,t.bindSuggestionDiagnostics);e.addRange(i,r.getSuggestionDiagnostics(t,n));return i.sort(function(e,t){return e.start-t.start});function check(r){if(o){switch(r.kind){case 196:var n=e.getDeclarationOfExpando(r);if(n){var s=n.symbol;if(s&&(s.exports&&s.exports.size||s.members&&s.members.size)){i.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 239:var c=r.symbol;if(c.members&&c.members.size>0){i.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}break}}else{if(e.isVariableStatement(r)&&r.parent===t&&r.declarationList.flags&2&&r.declarationList.declarations.length===1){var u=r.declarationList.declarations[0].initializer;if(u&&e.isRequireCall(u,true)){i.push(e.createDiagnosticForNode(u,e.Diagnostics.require_call_may_be_converted_to_an_import))}}if(e.codefix.parameterShouldGetTypeFromJSDoc(r)){i.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}}if(e.isFunctionLikeDeclaration(r)){addConvertToAsyncFunctionDiagnostics(r,a,i)}r.forEachChild(check)}}e.computeSuggestionDiagnostics=computeSuggestionDiagnostics;function containsTopLevelCommonjs(t){return t.statements.some(function(t){switch(t.kind){case 219:return t.declarationList.declarations.some(function(t){return!!t.initializer&&e.isRequireCall(propertyAccessLeftHandSide(t.initializer),true)});case 221:{var r=t.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,true);var n=e.getAssignmentDeclarationKind(r);return n===1||n===2}default:return false}})}function propertyAccessLeftHandSide(t){return e.isPropertyAccessExpression(t)?propertyAccessLeftHandSide(t.expression):t}function importNameForConvertToDefaultImport(t){switch(t.kind){case 249:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&r.namedBindings.kind===251&&e.isStringLiteral(n)?r.namedBindings.name:undefined;case 248:return t.name;default:return undefined}}function addConvertToAsyncFunctionDiagnostics(t,r,n){if(!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&hasReturnStatementWithPromiseHandler(t.body)&&returnsPromise(t,r)){n.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}}function returnsPromise(e,t){var r=t.getTypeAtLocation(e);var n=t.getSignaturesOfType(r,0);var i=n.length?t.getReturnTypeOfSignature(n[0]):undefined;return!!i&&!!t.getPromisedTypeOfPromise(i)}function getErrorNodeFromCommonJsIndicator(t){return e.isBinaryExpression(t)?t.left:t}function hasReturnStatementWithPromiseHandler(t){return!!e.forEachReturnStatement(t,isReturnStatementWithFixablePromiseHandler)}function isReturnStatementWithFixablePromiseHandler(t){return e.isReturnStatement(t)&&!!t.expression&&isFixablePromiseHandler(t.expression)}e.isReturnStatementWithFixablePromiseHandler=isReturnStatementWithFixablePromiseHandler;function isFixablePromiseHandler(t){if(!isPromiseHandler(t)||!t.arguments.every(isFixablePromiseArgument)){return false}var r=t.expression;while(isPromiseHandler(r)||e.isPropertyAccessExpression(r)){if(e.isCallExpression(r)&&!r.arguments.every(isFixablePromiseArgument)){return false}r=r.expression}return true}e.isFixablePromiseHandler=isFixablePromiseHandler;function isPromiseHandler(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch"))}function isFixablePromiseArgument(e){switch(e.kind){case 96:case 72:case 239:case 196:case 197:return true;default:return false}}})(s||(s={}));var s;(function(e){var t;(function(t){function getSymbolKind(t,r,n){var i=getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,r,n);if(i!==""){return i}var a=e.getCombinedLocalAndExportSymbolFlags(r);if(a&32){return e.getDeclarationOfKind(r,209)?"local class":"class"}if(a&384)return"enum";if(a&524288)return"type";if(a&64)return"interface";if(a&262144)return"type parameter";if(a&262144)return"type parameter";if(a&8)return"enum member";if(a&2097152)return"alias";if(a&1536)return"module";return i}t.getSymbolKind=getSymbolKind;function getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,r,n){var i=t.getRootSymbols(r);if(i.length===1&&e.first(i).flags&8192&&t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length!==0){return"method"}if(t.isUndefinedSymbol(r)){return"var"}if(t.isArgumentsSymbol(r)){return"local var"}if(n.kind===100&&e.isExpression(n)){return"parameter"}var a=e.getCombinedLocalAndExportSymbolFlags(r);if(a&3){if(e.isFirstDeclarationOfSymbolParameter(r)){return"parameter"}else if(r.valueDeclaration&&e.isVarConst(r.valueDeclaration)){return"const"}else if(e.forEach(r.declarations,e.isLet)){return"let"}return isLocalVariableOrFunction(r)?"local var":"var"}if(a&16)return isLocalVariableOrFunction(r)?"local function":"function";if(a&32768)return"getter";if(a&65536)return"setter";if(a&8192)return"method";if(a&16384)return"constructor";if(a&4){if(a&33554432&&r.checkFlags&6){var o=e.forEach(t.getRootSymbols(r),function(t){var r=t.getFlags();if(r&(98308|3)){return"property"}e.Debug.assert(!!(r&(8192|16)))});if(!o){var s=t.getTypeOfSymbolAtLocation(r,n);if(s.getCallSignatures().length){return"method"}return"property"}return o}switch(n.parent&&n.parent.kind){case 262:case 260:case 261:return n.kind===72?"property":"JSX attribute";case 267:return"JSX attribute";default:return"property"}}return""}function getSymbolModifiers(t){var r=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"";var n=t&&t.flags&16777216?"optional":"";return r&&n?r+","+n:r||n}t.getSymbolModifiers=getSymbolModifiers;function getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n,i,a,o,s){if(o===void 0){o=e.getMeaningFromLocation(a)}var c=[];var u;var l;var f=e.getCombinedLocalAndExportSymbolFlags(r);var d=o&1?getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,r,a):"";var p=false;var g=a.kind===100&&e.isInExpressionContext(a);var _;var m;var y;var h;if(a.kind===100&&!g){return{displayParts:[e.keywordPart(100)],documentation:[],symbolKind:"primitive type",tags:undefined}}if(d!==""||f&32||f&2097152){if(d==="getter"||d==="setter"){d="property"}var v=void 0;_=g?t.getTypeAtLocation(a):t.getTypeOfSymbolAtLocation(r.exportSymbol||r,a);if(a.parent&&a.parent.kind===189){var T=a.parent.name;if(T===a||T&&T.getFullWidth()===0){a=a.parent}}var S=void 0;if(e.isCallOrNewExpression(a)){S=a}else if(e.isCallExpressionTarget(a)||e.isNewExpressionTarget(a)){S=a.parent}else if(a.parent&&e.isJsxOpeningLikeElement(a.parent)&&e.isFunctionLike(r.valueDeclaration)){S=a.parent}if(S){var b=[];v=t.getResolvedSignature(S,b);var x=S.kind===192||e.isCallExpression(S)&&S.expression.kind===98;var C=x?_.getConstructSignatures():_.getCallSignatures();if(!e.contains(C,v.target)&&!e.contains(C,v)){v=C.length?C[0]:undefined}if(v){if(x&&f&32){d="constructor";addPrefixForAnyFunctionOrVar(_.symbol,d)}else if(f&2097152){d="alias";pushSymbolKind(d);c.push(e.spacePart());if(x){c.push(e.keywordPart(95));c.push(e.spacePart())}addFullSymbolName(r)}else{addPrefixForAnyFunctionOrVar(r,d)}switch(d){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":c.push(e.punctuationPart(57));c.push(e.spacePart());if(!(e.getObjectFlags(_)&16)&&_.symbol){e.addRange(c,e.symbolToDisplayParts(t,_.symbol,i,undefined,4|1));c.push(e.lineBreakPart())}if(x){c.push(e.keywordPart(95));c.push(e.spacePart())}addSignatureDisplayParts(v,C,262144);break;default:addSignatureDisplayParts(v,C)}p=true}}else if(e.isNameOfFunctionDeclaration(a)&&!(f&98304)||a.kind===124&&a.parent.kind===157){var E=a.parent;var D=e.find(r.declarations,function(e){return e===(a.kind===124?E.parent:E)});if(D){var C=E.kind===157?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();if(!t.isImplementationOfOverload(E)){v=t.getSignatureFromDeclaration(E)}else{v=C[0]}if(E.kind===157){d="constructor";addPrefixForAnyFunctionOrVar(_.symbol,d)}else{addPrefixForAnyFunctionOrVar(E.kind===160&&!(_.symbol.flags&2048||_.symbol.flags&4096)?_.symbol:r,d)}addSignatureDisplayParts(v,C);p=true}}}if(f&32&&!p&&!g){addAliasPrefixIfNecessary();if(e.getDeclarationOfKind(r,209)){pushSymbolKind("local class")}else{c.push(e.keywordPart(76))}c.push(e.spacePart());addFullSymbolName(r);writeTypeParametersOfSymbol(r,n)}if(f&64&&o&2){prefixNextMeaning();c.push(e.keywordPart(110));c.push(e.spacePart());addFullSymbolName(r);writeTypeParametersOfSymbol(r,n)}if(f&524288&&o&2){prefixNextMeaning();c.push(e.keywordPart(140));c.push(e.spacePart());addFullSymbolName(r);writeTypeParametersOfSymbol(r,n);c.push(e.spacePart());c.push(e.operatorPart(59));c.push(e.spacePart());e.addRange(c,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(r),i,8388608))}if(f&384){prefixNextMeaning();if(e.some(r.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})){c.push(e.keywordPart(77));c.push(e.spacePart())}c.push(e.keywordPart(84));c.push(e.spacePart());addFullSymbolName(r)}if(f&1536){prefixNextMeaning();var k=e.getDeclarationOfKind(r,244);var N=k&&k.name&&k.name.kind===72;c.push(e.keywordPart(N?131:130));c.push(e.spacePart());addFullSymbolName(r)}if(f&262144&&o&2){prefixNextMeaning();c.push(e.punctuationPart(20));c.push(e.textPart("type parameter"));c.push(e.punctuationPart(21));c.push(e.spacePart());addFullSymbolName(r);if(r.parent){addInPrefix();addFullSymbolName(r.parent,i);writeTypeParametersOfSymbol(r.parent,i)}else{var A=e.getDeclarationOfKind(r,150);if(A===undefined)return e.Debug.fail();var k=A.parent;if(k){if(e.isFunctionLikeKind(k.kind)){addInPrefix();var v=t.getSignatureFromDeclaration(k);if(k.kind===161){c.push(e.keywordPart(95));c.push(e.spacePart())}else if(k.kind!==160&&k.name){addFullSymbolName(k.symbol)}e.addRange(c,e.signatureToDisplayParts(t,v,n,32))}else if(k.kind===242){addInPrefix();c.push(e.keywordPart(140));c.push(e.spacePart());addFullSymbolName(k.symbol);writeTypeParametersOfSymbol(k.symbol,n)}}}}if(f&8){d="enum member";addPrefixForAnyFunctionOrVar(r,"enum member");var k=r.declarations[0];if(k.kind===278){var O=t.getConstantValue(k);if(O!==undefined){c.push(e.spacePart());c.push(e.operatorPart(59));c.push(e.spacePart());c.push(e.displayPart(e.getTextOfConstantValue(O),typeof O==="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral))}}}if(f&2097152){prefixNextMeaning();if(!p){var F=t.getAliasedSymbol(r);if(F!==r&&F.declarations&&F.declarations.length>0){var P=F.declarations[0];var I=e.getNameOfDeclaration(P);if(I){var w=e.isModuleWithStringLiteralName(P)&&e.hasModifier(P,2);var M=r.name!=="default"&&!w;var L=getSymbolDisplayPartsDocumentationAndSymbolKind(t,F,e.getSourceFileOfNode(P),P,I,o,M?r:F);c.push.apply(c,L.displayParts);c.push(e.lineBreakPart());y=L.documentation;h=L.tags}}}switch(r.declarations[0].kind){case 247:c.push(e.keywordPart(85));c.push(e.spacePart());c.push(e.keywordPart(131));break;case 254:c.push(e.keywordPart(85));c.push(e.spacePart());c.push(e.keywordPart(r.declarations[0].isExportEquals?59:80));break;case 257:c.push(e.keywordPart(85));break;default:c.push(e.keywordPart(92))}c.push(e.spacePart());addFullSymbolName(r);e.forEach(r.declarations,function(r){if(r.kind===248){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n)){c.push(e.spacePart());c.push(e.operatorPart(59));c.push(e.spacePart());c.push(e.keywordPart(134));c.push(e.punctuationPart(20));c.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral));c.push(e.punctuationPart(21))}else{var a=t.getSymbolAtLocation(n.moduleReference);if(a){c.push(e.spacePart());c.push(e.operatorPart(59));c.push(e.spacePart());addFullSymbolName(a,i)}}return true}})}if(!p){if(d!==""){if(_){if(g){prefixNextMeaning();c.push(e.keywordPart(100))}else{addPrefixForAnyFunctionOrVar(r,d)}if(d==="property"||d==="JSX attribute"||f&3||d==="local var"||g){c.push(e.punctuationPart(57));c.push(e.spacePart());if(_.symbol&&_.symbol.flags&262144){var R=e.mapToDisplayParts(function(r){var n=t.typeParameterToDeclaration(_,i);getPrinter().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(i)),r)});e.addRange(c,R)}else{e.addRange(c,e.typeToDisplayParts(t,_,i))}}else if(f&16||f&8192||f&16384||f&131072||f&98304||d==="method"){var C=_.getNonNullableType().getCallSignatures();if(C.length){addSignatureDisplayParts(C[0],C)}}}}else{d=getSymbolKind(t,r,a)}}if(!u){u=r.getDocumentationComment(t);l=r.getJsDocTags();if(u.length===0&&f&4){if(r.parent&&e.forEach(r.parent.declarations,function(e){return e.kind===279})){for(var B=0,j=r.declarations;B<j.length;B++){var k=j[B];if(!k.parent||k.parent.kind!==204){continue}var J=t.getSymbolAtLocation(k.parent.right);if(!J){continue}u=J.getDocumentationComment(t);l=J.getJsDocTags();if(u.length>0){break}}}}}if(u.length===0&&y){u=y}if(l.length===0&&h){l=h}return{displayParts:c,documentation:u,symbolKind:d,tags:l.length===0?undefined:l};function getPrinter(){if(!m){m=e.createPrinter({removeComments:true})}return m}function prefixNextMeaning(){if(c.length){c.push(e.lineBreakPart())}addAliasPrefixIfNecessary()}function addAliasPrefixIfNecessary(){if(s){pushSymbolKind("alias");c.push(e.spacePart())}}function addInPrefix(){c.push(e.spacePart());c.push(e.keywordPart(93));c.push(e.spacePart())}function addFullSymbolName(i,a){if(s&&i===r){i=s}var o=e.symbolToDisplayParts(t,i,a||n,undefined,1|2|4);e.addRange(c,o);if(r.flags&16777216){c.push(e.punctuationPart(56))}}function addPrefixForAnyFunctionOrVar(t,r){prefixNextMeaning();if(r){pushSymbolKind(r);if(t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})){c.push(e.spacePart());addFullSymbolName(t)}}}function pushSymbolKind(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":c.push(e.textOrKeywordPart(t));return;default:c.push(e.punctuationPart(20));c.push(e.textOrKeywordPart(t));c.push(e.punctuationPart(21));return}}function addSignatureDisplayParts(r,n,a){if(a===void 0){a=0}e.addRange(c,e.signatureToDisplayParts(t,r,i,a|32));if(n.length>1){c.push(e.spacePart());c.push(e.punctuationPart(20));c.push(e.operatorPart(38));c.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral));c.push(e.spacePart());c.push(e.textPart(n.length===2?"overload":"overloads"));c.push(e.punctuationPart(21))}var o=r.getDocumentationComment(t);u=o.length===0?undefined:o;l=r.getJsDocTags()}function writeTypeParametersOfSymbol(r,n){var i=e.mapToDisplayParts(function(i){var a=t.symbolToTypeParameterDeclarations(r,n);getPrinter().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)});e.addRange(c,i)}}t.getSymbolDisplayPartsDocumentationAndSymbolKind=getSymbolDisplayPartsDocumentationAndSymbolKind;function isLocalVariableOrFunction(t){if(t.parent){return false}return e.forEach(t.declarations,function(t){if(t.kind===196){return true}if(t.kind!==237&&t.kind!==239){return false}for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent){if(r.kind===279||r.kind===245){return false}}return true})}})(t=e.SymbolDisplay||(e.SymbolDisplay={}))})(s||(s={}));var s;(function(e){function transpileModule(t,r){var n=[];var i=r.compilerOptions?fixupCompilerOptions(r.compilerOptions,n):e.getDefaultCompilerOptions();i.isolatedModules=true;i.suppressOutputPathCheck=true;i.allowNonTsExtensions=true;i.noLib=true;i.lib=undefined;i.types=undefined;i.noEmit=undefined;i.noEmitOnError=undefined;i.paths=undefined;i.rootDirs=undefined;i.declaration=undefined;i.composite=undefined;i.declarationDir=undefined;i.out=undefined;i.outFile=undefined;i.noResolve=true;var a=r.fileName||(i.jsx?"module.tsx":"module.ts");var o=e.createSourceFile(a,t,i.target);if(r.moduleName){o.moduleName=r.moduleName}if(r.renamedDependencies){o.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies)}var s=e.getNewLineCharacter(i);var c;var u;var l={getSourceFile:function(t){return t===e.normalizePath(a)?o:undefined},writeFile:function(t,r){if(e.fileExtensionIs(t,".map")){e.Debug.assertEqual(u,undefined,"Unexpected multiple source map outputs, file:",t);u=r}else{e.Debug.assertEqual(c,undefined,"Unexpected multiple outputs, file:",t);c=r}},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return false},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return s},fileExists:function(e){return e===a},readFile:function(){return""},directoryExists:function(){return true},getDirectories:function(){return[]}};var f=e.createProgram([a],i,l);if(r.reportDiagnostics){e.addRange(n,f.getSyntacticDiagnostics(o));e.addRange(n,f.getOptionsDiagnostics())}f.emit(undefined,undefined,undefined,undefined,r.transformers);if(c===undefined)return e.Debug.fail("Output generation failed");return{outputText:c,diagnostics:n,sourceMapText:u}}e.transpileModule=transpileModule;function transpile(t,r,n,i,a){var o=transpileModule(t,{compilerOptions:r,fileName:n,reportDiagnostics:!!i,moduleName:a});e.addRange(i,o.diagnostics);return o.outputText}e.transpile=transpile;var t;function fixupCompilerOptions(r,n){t=t||e.filter(e.optionDeclarations,function(t){return typeof t.type==="object"&&!e.forEachEntry(t.type,function(e){return typeof e!=="number"})});r=e.cloneCompilerOptions(r);var i=function(t){if(!e.hasProperty(r,t.name)){return"continue"}var i=r[t.name];if(e.isString(i)){r[t.name]=e.parseCustomTypeOption(t,i,n)}else{if(!e.forEachEntry(t.type,function(e){return e===i})){n.push(e.createCompilerDiagnosticForInvalidCustomType(t))}}};for(var a=0,o=t;a<o.length;a++){var s=o[a];i(s)}return r}e.fixupCompilerOptions=fixupCompilerOptions})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["FormatDocument"]=0]="FormatDocument";e[e["FormatSelection"]=1]="FormatSelection";e[e["FormatOnEnter"]=2]="FormatOnEnter";e[e["FormatOnSemicolon"]=3]="FormatOnSemicolon";e[e["FormatOnOpeningCurlyBrace"]=4]="FormatOnOpeningCurlyBrace";e[e["FormatOnClosingCurlyBrace"]=5]="FormatOnClosingCurlyBrace"})(r=t.FormattingRequestKind||(t.FormattingRequestKind={}));var n=function(){function FormattingContext(e,t,r){this.sourceFile=e;this.formattingRequestKind=t;this.options=r}FormattingContext.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.assertDefined(t);this.currentTokenParent=e.Debug.assertDefined(r);this.nextTokenSpan=e.Debug.assertDefined(n);this.nextTokenParent=e.Debug.assertDefined(i);this.contextNode=e.Debug.assertDefined(a);this.contextNodeAllOnSameLine=undefined;this.nextNodeAllOnSameLine=undefined;this.tokensAreOnSameLine=undefined;this.contextNodeBlockIsOnOneLine=undefined;this.nextNodeBlockIsOnOneLine=undefined};FormattingContext.prototype.ContextNodeAllOnSameLine=function(){if(this.contextNodeAllOnSameLine===undefined){this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)}return this.contextNodeAllOnSameLine};FormattingContext.prototype.NextNodeAllOnSameLine=function(){if(this.nextNodeAllOnSameLine===undefined){this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)}return this.nextNodeAllOnSameLine};FormattingContext.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===undefined){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line;var t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine};FormattingContext.prototype.ContextNodeBlockIsOnOneLine=function(){if(this.contextNodeBlockIsOnOneLine===undefined){this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)}return this.contextNodeBlockIsOnOneLine};FormattingContext.prototype.NextNodeBlockIsOnOneLine=function(){if(this.nextNodeBlockIsOnOneLine===undefined){this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)}return this.nextNodeBlockIsOnOneLine};FormattingContext.prototype.NodeIsOnOneLine=function(e){var t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line;var r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r};FormattingContext.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile);var n=e.findChildOfKind(t,19,this.sourceFile);if(r&&n){var i=this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line;var a=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===a}return false};return FormattingContext}();t.FormattingContext=n})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=e.createScanner(6,false,0);var n=e.createScanner(6,false,1);var i;(function(e){e[e["Scan"]=0]="Scan";e[e["RescanGreaterThanToken"]=1]="RescanGreaterThanToken";e[e["RescanSlashToken"]=2]="RescanSlashToken";e[e["RescanTemplateToken"]=3]="RescanTemplateToken";e[e["RescanJsxIdentifier"]=4]="RescanJsxIdentifier";e[e["RescanJsxText"]=5]="RescanJsxText"})(i||(i={}));function getFormattingScanner(t,i,a,o,s){var c=i===1?n:r;c.setText(t);c.setTextPos(a);var u=true;var l;var f;var d;var p;var g;var _=s({advance:advance,readTokenInfo:readTokenInfo,isOnToken:isOnToken,getCurrentLeadingTrivia:function(){return l},lastTrailingTriviaWasNewLine:function(){return u},skipToEndOf:skipToEndOf});g=undefined;c.setText(undefined);return _;function advance(){g=undefined;var t=c.getStartPos()!==a;if(t){u=!!f&&e.last(f).kind===4}else{c.scan()}l=undefined;f=undefined;var r=c.getStartPos();while(r<o){var n=c.getToken();if(!e.isTrivia(n)){break}c.scan();var i={pos:r,end:c.getStartPos(),kind:n};r=c.getStartPos();l=e.append(l,i)}d=c.getStartPos()}function shouldRescanGreaterThanToken(e){switch(e.kind){case 32:case 67:case 68:case 48:case 47:return true}return false}function shouldRescanJsxIdentifier(t){if(t.parent){switch(t.parent.kind){case 267:case 262:case 263:case 261:return e.isKeyword(t.kind)||t.kind===72}}return false}function shouldRescanJsxText(e){return e.kind===11}function shouldRescanSlashToken(e){return e.kind===13}function shouldRescanTemplateToken(e){return e.kind===16||e.kind===17}function startsWithSlashToken(e){return e===42||e===64}function readTokenInfo(t){e.Debug.assert(isOnToken());var r=shouldRescanGreaterThanToken(t)?1:shouldRescanSlashToken(t)?2:shouldRescanTemplateToken(t)?3:shouldRescanJsxIdentifier(t)?4:shouldRescanJsxText(t)?5:0;if(g&&r===p){return fixTokenKind(g,t)}if(c.getStartPos()!==d){e.Debug.assert(g!==undefined);c.setTextPos(d);c.scan()}var n=getNextToken(t,r);var i={pos:c.getStartPos(),end:c.getTextPos(),kind:n};if(f){f=undefined}while(c.getStartPos()<o){n=c.scan();if(!e.isTrivia(n)){break}var a={pos:c.getStartPos(),end:c.getTextPos(),kind:n};if(!f){f=[]}f.push(a);if(n===4){c.scan();break}}g={leadingTrivia:l,trailingTrivia:f,token:i};return fixTokenKind(g,t)}function getNextToken(t,r){var n=c.getToken();p=0;switch(r){case 1:if(n===30){p=1;var i=c.reScanGreaterToken();e.Debug.assert(t.kind===i);return i}break;case 2:if(startsWithSlashToken(n)){p=2;var i=c.reScanSlashToken();e.Debug.assert(t.kind===i);return i}break;case 3:if(n===19){p=3;return c.reScanTemplateToken()}break;case 4:p=4;return c.scanJsxIdentifier();case 5:p=5;return c.reScanJsxToken();case 0:break;default:e.Debug.assertNever(r)}return n}function isOnToken(){var t=g?g.token.kind:c.getToken();var r=g?g.token.pos:c.getStartPos();return r<o&&t!==1&&!e.isTrivia(t)}function fixTokenKind(t,r){if(e.isToken(r)&&t.token.kind!==r.kind){t.token.kind=r.kind}return t}function skipToEndOf(e){c.setTextPos(e.end);d=c.getStartPos();p=undefined;g=undefined;u=false;l=undefined;f=undefined}}t.getFormattingScanner=getFormattingScanner})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){t.anyContext=e.emptyArray;var r;(function(e){e[e["Ignore"]=1]="Ignore";e[e["Space"]=2]="Space";e[e["NewLine"]=4]="NewLine";e[e["Delete"]=8]="Delete"})(r=t.RuleAction||(t.RuleAction={}));var n;(function(e){e[e["None"]=0]="None";e[e["CanDeleteNewLines"]=1]="CanDeleteNewLines"})(n=t.RuleFlags||(t.RuleFlags={}))})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){function getAllRules(){var r=[];for(var n=0;n<=147;n++){r.push(n)}function anyTokenExcept(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return{tokens:r.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:false}}var i={tokens:r,isSpecific:false};var a=tokenRangeFrom(r.concat([3]));var o=tokenRangeFromRange(73,147);var s=tokenRangeFromRange(28,71);var c=[93,94,147,119,128];var u=[44,45,53,52];var l=[8,9,72,20,22,18,100,95];var f=[72,20,100,95];var d=[72,21,23,95];var p=[72,20,100,95];var g=[72,21,23,95];var _=[2,3];var m=[72].concat(e.typeKeywords);var y=a;var h=tokenRangeFrom([72,3,76,85,92]);var v=tokenRangeFrom([21,3,82,103,88,83]);var T=[rule("IgnoreBeforeComment",i,_,t.anyContext,1),rule("IgnoreAfterLineComment",2,i,t.anyContext,1),rule("NotSpaceBeforeColon",i,57,[isNonJsxSameLineTokenContext,isNotBinaryOpContext,isNotTypeAnnotationContext],8),rule("SpaceAfterColon",57,i,[isNonJsxSameLineTokenContext,isNotBinaryOpContext],2),rule("NoSpaceBeforeQuestionMark",i,56,[isNonJsxSameLineTokenContext,isNotBinaryOpContext],8),rule("SpaceAfterQuestionMarkInConditionalOperator",56,i,[isNonJsxSameLineTokenContext,isConditionalOperatorContext],2),rule("NoSpaceAfterQuestionMark",56,i,[isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeDot",i,24,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterDot",24,i,[isNonJsxSameLineTokenContext],8),rule("NoSpaceBetweenImportParenInImportType",92,20,[isNonJsxSameLineTokenContext,isImportTypeContext],8),rule("NoSpaceAfterUnaryPrefixOperator",u,l,[isNonJsxSameLineTokenContext,isNotBinaryOpContext],8),rule("NoSpaceAfterUnaryPreincrementOperator",44,f,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterUnaryPredecrementOperator",45,p,[isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeUnaryPostincrementOperator",d,44,[isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeUnaryPostdecrementOperator",g,45,[isNonJsxSameLineTokenContext],8),rule("SpaceAfterPostincrementWhenFollowedByAdd",44,38,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterAddWhenFollowedByUnaryPlus",38,38,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterAddWhenFollowedByPreincrement",38,44,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterPostdecrementWhenFollowedBySubtract",45,39,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterSubtractWhenFollowedByUnaryMinus",39,39,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterSubtractWhenFollowedByPredecrement",39,45,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("NoSpaceAfterCloseBrace",19,[27,26],[isNonJsxSameLineTokenContext],8),rule("NewLineBeforeCloseBraceInBlockContext",a,19,[isMultilineBlockContext],4),rule("SpaceAfterCloseBrace",19,anyTokenExcept(21),[isNonJsxSameLineTokenContext,isAfterCodeBlockContext],2),rule("SpaceBetweenCloseBraceAndElse",19,83,[isNonJsxSameLineTokenContext],2),rule("SpaceBetweenCloseBraceAndWhile",19,107,[isNonJsxSameLineTokenContext],2),rule("NoSpaceBetweenEmptyBraceBrackets",18,19,[isNonJsxSameLineTokenContext,isObjectContext],8),rule("SpaceAfterConditionalClosingParen",21,22,[isControlDeclContext],2),rule("NoSpaceBetweenFunctionKeywordAndStar",90,40,[isFunctionDeclarationOrFunctionExpressionContext],8),rule("SpaceAfterStarInGeneratorDeclaration",40,[72,20],[isFunctionDeclarationOrFunctionExpressionContext],2),rule("SpaceAfterFunctionInFuncDecl",90,i,[isFunctionDeclContext],2),rule("NewLineAfterOpenBraceInBlockContext",18,i,[isMultilineBlockContext],4),rule("SpaceAfterGetSetInMember",[126,137],72,[isFunctionDeclContext],2),rule("NoSpaceBetweenYieldKeywordAndStar",117,40,[isNonJsxSameLineTokenContext,isYieldOrYieldStarWithOperand],8),rule("SpaceBetweenYieldOrYieldStarAndOperand",[117,40],i,[isNonJsxSameLineTokenContext,isYieldOrYieldStarWithOperand],2),rule("NoSpaceBetweenReturnAndSemicolon",97,26,[isNonJsxSameLineTokenContext],8),rule("SpaceAfterCertainKeywords",[105,101,95,81,97,104,122],i,[isNonJsxSameLineTokenContext],2),rule("SpaceAfterLetConstInVariableDeclaration",[111,77],i,[isNonJsxSameLineTokenContext,isStartOfVariableDeclarationList],2),rule("NoSpaceBeforeOpenParenInFuncCall",i,20,[isNonJsxSameLineTokenContext,isFunctionCallOrNewContext,isPreviousTokenNotComma],8),rule("SpaceBeforeBinaryKeywordOperator",i,c,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterBinaryKeywordOperator",c,i,[isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterVoidOperator",106,i,[isNonJsxSameLineTokenContext,isVoidOpContext],2),rule("SpaceBetweenAsyncAndOpenParen",121,20,[isArrowFunctionContext,isNonJsxSameLineTokenContext],2),rule("SpaceBetweenAsyncAndFunctionKeyword",121,90,[isNonJsxSameLineTokenContext],2),rule("NoSpaceBetweenTagAndTemplateString",[72,21],[14,15],[isNonJsxSameLineTokenContext],8),rule("SpaceBeforeJsxAttribute",i,72,[isNextTokenParentJsxAttribute,isNonJsxSameLineTokenContext],2),rule("SpaceBeforeSlashInJsxOpeningElement",i,42,[isJsxSelfClosingElementContext,isNonJsxSameLineTokenContext],2),rule("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",42,30,[isJsxSelfClosingElementContext,isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeEqualInJsxAttribute",i,59,[isJsxAttributeContext,isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterEqualInJsxAttribute",59,i,[isJsxAttributeContext,isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterModuleImport",[130,134],20,[isNonJsxSameLineTokenContext],8),rule("SpaceAfterCertainTypeScriptKeywords",[118,76,125,80,84,85,86,126,109,92,110,130,131,113,115,114,133,137,116,140,144,129,127],i,[isNonJsxSameLineTokenContext],2),rule("SpaceBeforeCertainTypeScriptKeywords",i,[86,109,144],[isNonJsxSameLineTokenContext],2),rule("SpaceAfterModuleName",10,18,[isModuleDeclContext],2),rule("SpaceBeforeArrow",i,37,[isNonJsxSameLineTokenContext],2),rule("SpaceAfterArrow",37,i,[isNonJsxSameLineTokenContext],2),rule("NoSpaceAfterEllipsis",25,72,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterOptionalParameters",56,[21,27],[isNonJsxSameLineTokenContext,isNotBinaryOpContext],8),rule("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[isNonJsxSameLineTokenContext,isObjectTypeContext],8),rule("NoSpaceBeforeOpenAngularBracket",m,28,[isNonJsxSameLineTokenContext,isTypeArgumentOrParameterOrAssertionContext],8),rule("NoSpaceBetweenCloseParenAndAngularBracket",21,28,[isNonJsxSameLineTokenContext,isTypeArgumentOrParameterOrAssertionContext],8),rule("NoSpaceAfterOpenAngularBracket",28,i,[isNonJsxSameLineTokenContext,isTypeArgumentOrParameterOrAssertionContext],8),rule("NoSpaceBeforeCloseAngularBracket",i,30,[isNonJsxSameLineTokenContext,isTypeArgumentOrParameterOrAssertionContext],8),rule("NoSpaceAfterCloseAngularBracket",30,[20,22,30,27],[isNonJsxSameLineTokenContext,isTypeArgumentOrParameterOrAssertionContext,isNotFunctionDeclContext],8),rule("SpaceBeforeAt",[21,72],58,[isNonJsxSameLineTokenContext],2),rule("NoSpaceAfterAt",58,i,[isNonJsxSameLineTokenContext],8),rule("SpaceAfterDecorator",i,[118,72,85,80,76,116,115,113,114,126,137,22,40],[isEndOfDecoratorContextOnSameLine],2),rule("NoSpaceBeforeNonNullAssertionOperator",i,52,[isNonJsxSameLineTokenContext,isNonNullAssertionContext],8),rule("NoSpaceAfterNewKeywordOnConstructorSignature",95,20,[isNonJsxSameLineTokenContext,isConstructorSignatureContext],8)];var S=[rule("SpaceAfterConstructor",124,20,[isOptionEnabled("insertSpaceAfterConstructor"),isNonJsxSameLineTokenContext],2),rule("NoSpaceAfterConstructor",124,20,[isOptionDisabledOrUndefined("insertSpaceAfterConstructor"),isNonJsxSameLineTokenContext],8),rule("SpaceAfterComma",27,i,[isOptionEnabled("insertSpaceAfterCommaDelimiter"),isNonJsxSameLineTokenContext,isNonJsxElementOrFragmentContext,isNextTokenNotCloseBracket],2),rule("NoSpaceAfterComma",27,i,[isOptionDisabledOrUndefined("insertSpaceAfterCommaDelimiter"),isNonJsxSameLineTokenContext,isNonJsxElementOrFragmentContext],8),rule("SpaceAfterAnonymousFunctionKeyword",90,20,[isOptionEnabled("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),isFunctionDeclContext],2),rule("NoSpaceAfterAnonymousFunctionKeyword",90,20,[isOptionDisabledOrUndefined("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),isFunctionDeclContext],8),rule("SpaceAfterKeywordInControl",o,20,[isOptionEnabled("insertSpaceAfterKeywordsInControlFlowStatements"),isControlDeclContext],2),rule("NoSpaceAfterKeywordInControl",o,20,[isOptionDisabledOrUndefined("insertSpaceAfterKeywordsInControlFlowStatements"),isControlDeclContext],8),rule("SpaceAfterOpenParen",20,i,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),isNonJsxSameLineTokenContext],2),rule("SpaceBeforeCloseParen",i,21,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),isNonJsxSameLineTokenContext],2),rule("SpaceBetweenOpenParens",20,20,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),isNonJsxSameLineTokenContext],2),rule("NoSpaceBetweenParens",20,21,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterOpenParen",20,i,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeCloseParen",i,21,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),isNonJsxSameLineTokenContext],8),rule("SpaceAfterOpenBracket",22,i,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),isNonJsxSameLineTokenContext],2),rule("SpaceBeforeCloseBracket",i,23,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),isNonJsxSameLineTokenContext],2),rule("NoSpaceBetweenBrackets",22,23,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterOpenBracket",22,i,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeCloseBracket",i,23,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),isNonJsxSameLineTokenContext],8),rule("SpaceAfterOpenBrace",18,i,[isOptionEnabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),isBraceWrappedContext],2),rule("SpaceBeforeCloseBrace",i,19,[isOptionEnabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),isBraceWrappedContext],2),rule("NoSpaceBetweenEmptyBraceBrackets",18,19,[isNonJsxSameLineTokenContext,isObjectContext],8),rule("NoSpaceAfterOpenBrace",18,i,[isOptionDisabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeCloseBrace",i,19,[isOptionDisabled("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),isNonJsxSameLineTokenContext],8),rule("SpaceAfterTemplateHeadAndMiddle",[15,16],i,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),isNonJsxSameLineTokenContext],2),rule("SpaceBeforeTemplateMiddleAndTail",i,[16,17],[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),isNonJsxSameLineTokenContext],2),rule("NoSpaceAfterTemplateHeadAndMiddle",[15,16],i,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeTemplateMiddleAndTail",i,[16,17],[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),isNonJsxSameLineTokenContext],8),rule("SpaceAfterOpenBraceInJsxExpression",18,i,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),isNonJsxSameLineTokenContext,isJsxExpressionContext],2),rule("SpaceBeforeCloseBraceInJsxExpression",i,19,[isOptionEnabled("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),isNonJsxSameLineTokenContext,isJsxExpressionContext],2),rule("NoSpaceAfterOpenBraceInJsxExpression",18,i,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),isNonJsxSameLineTokenContext,isJsxExpressionContext],8),rule("NoSpaceBeforeCloseBraceInJsxExpression",i,19,[isOptionDisabledOrUndefined("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),isNonJsxSameLineTokenContext,isJsxExpressionContext],8),rule("SpaceAfterSemicolonInFor",26,i,[isOptionEnabled("insertSpaceAfterSemicolonInForStatements"),isNonJsxSameLineTokenContext,isForContext],2),rule("NoSpaceAfterSemicolonInFor",26,i,[isOptionDisabledOrUndefined("insertSpaceAfterSemicolonInForStatements"),isNonJsxSameLineTokenContext,isForContext],8),rule("SpaceBeforeBinaryOperator",i,s,[isOptionEnabled("insertSpaceBeforeAndAfterBinaryOperators"),isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("SpaceAfterBinaryOperator",s,i,[isOptionEnabled("insertSpaceBeforeAndAfterBinaryOperators"),isNonJsxSameLineTokenContext,isBinaryOpContext],2),rule("NoSpaceBeforeBinaryOperator",i,s,[isOptionDisabledOrUndefined("insertSpaceBeforeAndAfterBinaryOperators"),isNonJsxSameLineTokenContext,isBinaryOpContext],8),rule("NoSpaceAfterBinaryOperator",s,i,[isOptionDisabledOrUndefined("insertSpaceBeforeAndAfterBinaryOperators"),isNonJsxSameLineTokenContext,isBinaryOpContext],8),rule("SpaceBeforeOpenParenInFuncDecl",i,20,[isOptionEnabled("insertSpaceBeforeFunctionParenthesis"),isNonJsxSameLineTokenContext,isFunctionDeclContext],2),rule("NoSpaceBeforeOpenParenInFuncDecl",i,20,[isOptionDisabledOrUndefined("insertSpaceBeforeFunctionParenthesis"),isNonJsxSameLineTokenContext,isFunctionDeclContext],8),rule("NewLineBeforeOpenBraceInControl",v,18,[isOptionEnabled("placeOpenBraceOnNewLineForControlBlocks"),isControlDeclContext,isBeforeMultilineBlockContext],4,1),rule("NewLineBeforeOpenBraceInFunction",y,18,[isOptionEnabled("placeOpenBraceOnNewLineForFunctions"),isFunctionDeclContext,isBeforeMultilineBlockContext],4,1),rule("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",h,18,[isOptionEnabled("placeOpenBraceOnNewLineForFunctions"),isTypeScriptDeclWithBlockContext,isBeforeMultilineBlockContext],4,1),rule("SpaceAfterTypeAssertion",30,i,[isOptionEnabled("insertSpaceAfterTypeAssertion"),isNonJsxSameLineTokenContext,isTypeAssertionContext],2),rule("NoSpaceAfterTypeAssertion",30,i,[isOptionDisabledOrUndefined("insertSpaceAfterTypeAssertion"),isNonJsxSameLineTokenContext,isTypeAssertionContext],8),rule("SpaceBeforeTypeAnnotation",i,57,[isOptionEnabled("insertSpaceBeforeTypeAnnotation"),isNonJsxSameLineTokenContext,isTypeAnnotationContext],2),rule("NoSpaceBeforeTypeAnnotation",i,57,[isOptionDisabledOrUndefined("insertSpaceBeforeTypeAnnotation"),isNonJsxSameLineTokenContext,isTypeAnnotationContext],8)];var b=[rule("NoSpaceBeforeSemicolon",i,26,[isNonJsxSameLineTokenContext],8),rule("SpaceBeforeOpenBraceInControl",v,18,[isOptionDisabledOrUndefinedOrTokensOnSameLine("placeOpenBraceOnNewLineForControlBlocks"),isControlDeclContext,isNotFormatOnEnter,isSameLineTokenOrBeforeBlockContext],2,1),rule("SpaceBeforeOpenBraceInFunction",y,18,[isOptionDisabledOrUndefinedOrTokensOnSameLine("placeOpenBraceOnNewLineForFunctions"),isFunctionDeclContext,isBeforeBlockContext,isNotFormatOnEnter,isSameLineTokenOrBeforeBlockContext],2,1),rule("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",h,18,[isOptionDisabledOrUndefinedOrTokensOnSameLine("placeOpenBraceOnNewLineForFunctions"),isTypeScriptDeclWithBlockContext,isNotFormatOnEnter,isSameLineTokenOrBeforeBlockContext],2,1),rule("NoSpaceBeforeComma",i,27,[isNonJsxSameLineTokenContext],8),rule("NoSpaceBeforeOpenBracket",anyTokenExcept(121,74),22,[isNonJsxSameLineTokenContext],8),rule("NoSpaceAfterCloseBracket",23,i,[isNonJsxSameLineTokenContext,isNotBeforeBlockInFunctionDeclarationContext],8),rule("SpaceAfterSemicolon",26,i,[isNonJsxSameLineTokenContext],2),rule("SpaceBetweenForAndAwaitKeyword",89,122,[isNonJsxSameLineTokenContext],2),rule("SpaceBetweenStatements",[21,82,83,74],i,[isNonJsxSameLineTokenContext,isNonJsxElementOrFragmentContext,isNotForContext],2),rule("SpaceAfterTryFinally",[103,88],18,[isNonJsxSameLineTokenContext],2)];return T.concat(S,b)}t.getAllRules=getAllRules;function rule(e,t,r,n,i,a){if(a===void 0){a=0}return{leftTokenRange:toTokenRange(t),rightTokenRange:toTokenRange(r),rule:{debugName:e,context:n,action:i,flags:a}}}function tokenRangeFrom(e){return{tokens:e,isSpecific:true}}function toTokenRange(t){return typeof t==="number"?tokenRangeFrom([t]):e.isArray(t)?tokenRangeFrom(t):t}function tokenRangeFromRange(t,r,n){if(n===void 0){n=[]}var i=[];for(var a=t;a<=r;a++){if(!e.contains(n,a)){i.push(a)}}return tokenRangeFrom(i)}function isOptionEnabled(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function isOptionDisabled(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function isOptionDisabledOrUndefined(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function isOptionDisabledOrUndefinedOrTokensOnSameLine(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function isOptionEnabledOrUndefined(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function isForContext(e){return e.contextNode.kind===225}function isNotForContext(e){return!isForContext(e)}function isBinaryOpContext(e){switch(e.contextNode.kind){case 204:case 205:case 175:case 212:case 257:case 253:case 163:case 173:case 174:return true;case 186:case 242:case 248:case 237:case 151:case 278:case 154:case 153:return e.currentTokenSpan.kind===59||e.nextTokenSpan.kind===59;case 226:case 150:return e.currentTokenSpan.kind===93||e.nextTokenSpan.kind===93;case 227:return e.currentTokenSpan.kind===147||e.nextTokenSpan.kind===147}return false}function isNotBinaryOpContext(e){return!isBinaryOpContext(e)}function isNotTypeAnnotationContext(e){return!isTypeAnnotationContext(e)}function isTypeAnnotationContext(t){var r=t.contextNode.kind;return r===154||r===153||r===151||r===237||e.isFunctionLikeKind(r)}function isConditionalOperatorContext(e){return e.contextNode.kind===205||e.contextNode.kind===175}function isSameLineTokenOrBeforeBlockContext(e){return e.TokensAreOnSameLine()||isBeforeBlockContext(e)}function isBraceWrappedContext(e){return e.contextNode.kind===184||e.contextNode.kind===181||isSingleLineBlockContext(e)}function isBeforeMultilineBlockContext(e){return isBeforeBlockContext(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function isMultilineBlockContext(e){return isBlockContext(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function isSingleLineBlockContext(e){return isBlockContext(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function isBlockContext(e){return nodeIsBlockContext(e.contextNode)}function isBeforeBlockContext(e){return nodeIsBlockContext(e.nextTokenParent)}function nodeIsBlockContext(e){if(nodeIsTypeScriptDeclWithBlockContext(e)){return true}switch(e.kind){case 218:case 246:case 188:case 245:return true}return false}function isFunctionDeclContext(e){switch(e.contextNode.kind){case 239:case 156:case 155:case 158:case 159:case 160:case 196:case 157:case 197:case 241:return true}return false}function isNotFunctionDeclContext(e){return!isFunctionDeclContext(e)}function isFunctionDeclarationOrFunctionExpressionContext(e){return e.contextNode.kind===239||e.contextNode.kind===196}function isTypeScriptDeclWithBlockContext(e){return nodeIsTypeScriptDeclWithBlockContext(e.contextNode)}function nodeIsTypeScriptDeclWithBlockContext(e){switch(e.kind){case 240:case 209:case 241:case 243:case 168:case 244:case 255:case 256:case 249:case 252:return true}return false}function isAfterCodeBlockContext(e){switch(e.currentTokenParent.kind){case 240:case 244:case 243:case 274:case 245:case 232:return true;case 218:{var t=e.currentTokenParent.parent;if(!t||t.kind!==197&&t.kind!==196){return true}}}return false}function isControlDeclContext(e){switch(e.contextNode.kind){case 222:case 232:case 225:case 226:case 227:case 224:case 235:case 223:case 231:case 274:return true;default:return false}}function isObjectContext(e){return e.contextNode.kind===188}function isFunctionCallContext(e){return e.contextNode.kind===191}function isNewContext(e){return e.contextNode.kind===192}function isFunctionCallOrNewContext(e){return isFunctionCallContext(e)||isNewContext(e)}function isPreviousTokenNotComma(e){return e.currentTokenSpan.kind!==27}function isNextTokenNotCloseBracket(e){return e.nextTokenSpan.kind!==23}function isArrowFunctionContext(e){return e.contextNode.kind===197}function isImportTypeContext(e){return e.contextNode.kind===183}function isNonJsxSameLineTokenContext(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function isNonJsxElementOrFragmentContext(e){return e.contextNode.kind!==260&&e.contextNode.kind!==264}function isJsxExpressionContext(e){return e.contextNode.kind===270||e.contextNode.kind===269}function isNextTokenParentJsxAttribute(e){return e.nextTokenParent.kind===267}function isJsxAttributeContext(e){return e.contextNode.kind===267}function isJsxSelfClosingElementContext(e){return e.contextNode.kind===261}function isNotBeforeBlockInFunctionDeclarationContext(e){return!isFunctionDeclContext(e)&&!isBeforeBlockContext(e)}function isEndOfDecoratorContextOnSameLine(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&nodeIsInDecoratorContext(e.currentTokenParent)&&!nodeIsInDecoratorContext(e.nextTokenParent)}function nodeIsInDecoratorContext(t){while(e.isExpressionNode(t)){t=t.parent}return t.kind===152}function isStartOfVariableDeclarationList(e){return e.currentTokenParent.kind===238&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function isNotFormatOnEnter(e){return e.formattingRequestKind!==2}function isModuleDeclContext(e){return e.contextNode.kind===244}function isObjectTypeContext(e){return e.contextNode.kind===168}function isConstructorSignatureContext(e){return e.contextNode.kind===161}function isTypeArgumentOrParameterOrAssertion(e,t){if(e.kind!==28&&e.kind!==30){return false}switch(t.kind){case 164:case 194:case 242:case 240:case 209:case 241:case 239:case 196:case 197:case 156:case 155:case 160:case 161:case 191:case 192:case 211:return true;default:return false}}function isTypeArgumentOrParameterOrAssertionContext(e){return isTypeArgumentOrParameterOrAssertion(e.currentTokenSpan,e.currentTokenParent)||isTypeArgumentOrParameterOrAssertion(e.nextTokenSpan,e.nextTokenParent)}function isTypeAssertionContext(e){return e.contextNode.kind===194}function isVoidOpContext(e){return e.currentTokenSpan.kind===106&&e.currentTokenParent.kind===200}function isYieldOrYieldStarWithOperand(e){return e.contextNode.kind===207&&e.contextNode.expression!==undefined}function isNonNullAssertionContext(e){return e.contextNode.kind===213}})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){function getFormatContext(e){return{options:e,getRule:getRulesMap()}}t.getFormatContext=getFormatContext;var r;function getRulesMap(){if(r===undefined){r=createRulesMap(t.getAllRules())}return r}function createRulesMap(t){var r=buildMap(t);return function(t){var n=r[getRuleBucketIndex(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return n&&e.find(n,function(r){return e.every(r.context,function(e){return e(t)})})}}function buildMap(e){var t=new Array(a*a);var r=new Array(t.length);for(var n=0,i=e;n<i.length;n++){var o=i[n];var s=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific;for(var c=0,u=o.leftTokenRange.tokens;c<u.length;c++){var l=u[c];for(var f=0,d=o.rightTokenRange.tokens;f<d.length;f++){var p=d[f];var g=getRuleBucketIndex(l,p);var _=t[g];if(_===undefined){_=t[g]=[]}addRule(_,o.rule,s,r,g)}}}return t}function getRuleBucketIndex(t,r){e.Debug.assert(t<=147&&r<=147,"Must compute formatting context from tokens");return t*a+r}var n=5;var i=31;var a=147+1;var o;(function(e){e[e["IgnoreRulesSpecific"]=0]="IgnoreRulesSpecific";e[e["IgnoreRulesAny"]=n*1]="IgnoreRulesAny";e[e["ContextRulesSpecific"]=n*2]="ContextRulesSpecific";e[e["ContextRulesAny"]=n*3]="ContextRulesAny";e[e["NoContextRulesSpecific"]=n*4]="NoContextRulesSpecific";e[e["NoContextRulesAny"]=n*5]="NoContextRulesAny"})(o||(o={}));function addRule(e,r,n,i,a){var s=r.action===1?n?o.IgnoreRulesSpecific:o.IgnoreRulesAny:r.context!==t.anyContext?n?o.ContextRulesSpecific:o.ContextRulesAny:n?o.NoContextRulesSpecific:o.NoContextRulesAny;var c=i[a]||0;e.splice(getInsertionIndex(c,s),0,r);i[a]=increaseInsertionIndex(c,s)}function getInsertionIndex(e,t){var r=0;for(var a=0;a<=t;a+=n){r+=e&i;e>>=n}return r}function increaseInsertionIndex(t,r){var n=(t>>r&i)+1;e.Debug.assert((n&i)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");return t&~(i<<r)|n<<r}})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(e){e[e["Unknown"]=-1]="Unknown"})(r||(r={}));function formatOnEnter(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(i===0){return[]}var a=e.getEndLinePosition(i,r);while(e.isWhiteSpaceSingleLine(r.text.charCodeAt(a))){a--}if(e.isLineBreak(r.text.charCodeAt(a))){a--}var o={pos:e.getStartPositionOfLine(i-1,r),end:a+1};return formatSpan(o,r,n,2)}t.formatOnEnter=formatOnEnter;function formatOnSemicolon(e,t,r){var n=findImmediatelyPrecedingTokenOfKind(e,26,t);return formatNodeLines(findOutermostNodeWithinListLevel(n),t,r,3)}t.formatOnSemicolon=formatOnSemicolon;function formatOnOpeningCurly(t,r,n){var i=findImmediatelyPrecedingTokenOfKind(t,18,r);if(!i){return[]}var a=i.parent;var o=findOutermostNodeWithinListLevel(a);var s={pos:e.getLineStartPositionForPosition(o.getStart(r),r),end:t};return formatSpan(s,r,n,4)}t.formatOnOpeningCurly=formatOnOpeningCurly;function formatOnClosingCurly(e,t,r){var n=findImmediatelyPrecedingTokenOfKind(e,19,t);return formatNodeLines(findOutermostNodeWithinListLevel(n),t,r,5)}t.formatOnClosingCurly=formatOnClosingCurly;function formatDocument(e,t){var r={pos:0,end:e.text.length};return formatSpan(r,e,t,0)}t.formatDocument=formatDocument;function formatSelection(t,r,n,i){var a={pos:e.getLineStartPositionForPosition(t,n),end:r};return formatSpan(a,n,i,1)}t.formatSelection=formatSelection;function findImmediatelyPrecedingTokenOfKind(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:undefined}function findOutermostNodeWithinListLevel(e){var t=e;while(t&&t.parent&&t.parent.end===e.end&&!isListElement(t.parent,t)){t=t.parent}return t}function isListElement(t,r){switch(t.kind){case 240:case 241:return e.rangeContainsRange(t.members,r);case 244:var n=t.body;return!!n&&n.kind===245&&e.rangeContainsRange(n.statements,r);case 279:case 218:case 245:return e.rangeContainsRange(t.statements,r);case 274:return e.rangeContainsRange(t.block.statements,r)}return false}function findEnclosingNode(t,r){return find(r);function find(n){var i=e.forEachChild(n,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(i){var a=find(i);if(a){return a}}return n}}function prepareRangeContainsErrorFunction(t,r){if(!t.length){return rangeHasNoErrors}var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length){return rangeHasNoErrors}var i=0;return function(t){while(true){if(i>=n.length){return false}var r=n[i];if(t.end<=r.start){return false}if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length)){return true}i++}};function rangeHasNoErrors(){return false}}function getScanStartPosition(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end){return i}var a=e.findPrecedingToken(r.pos,n);if(!a){return t.pos}if(a.end>=r.pos){return t.pos}return a.end}function getOwnOrInheritedDelta(e,r,n){var i=-1;var a;while(e){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i){break}if(t.SmartIndenter.shouldIndentChildNode(r,e,a,n)){return r.indentSize}i=o;a=e;e=e.parent}return 0}function formatNodeGivenIndentation(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return formatSpanWorker(s,e,i,a,t,o,1,function(e){return false},r)})}t.formatNodeGivenIndentation=formatNodeGivenIndentation;function formatNodeLines(t,r,n,i){if(!t){return[]}var a={pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end};return formatSpan(a,r,n,i)}function formatSpan(e,r,n,i){var a=findEnclosingNode(e,r);return t.getFormattingScanner(r.text,r.languageVariant,getScanStartPosition(a,e,r),e.end,function(o){return formatSpanWorker(e,a,t.SmartIndenter.getIndentationForNode(a,e,r,n.options),getOwnOrInheritedDelta(a,n.options,r),o,n,i,prepareRangeContainsErrorFunction(r.parseDiagnostics,e),r)})}function formatSpanWorker(r,n,i,a,o,s,c,u,l){var f=s.options,d=s.getRule;var p=new t.FormattingContext(l,c,f);var g;var _;var m;var y;var h=-1;var v=[];o.advance();if(o.isOnToken()){var T=l.getLineAndCharacterOfPosition(n.getStart(l)).line;var S=T;if(n.decorators){S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line}processNode(n,n,T,S,i,a)}if(!o.isOnToken()){var b=o.getCurrentLeadingTrivia();if(b){indentTriviaItems(b,i,false,function(e){return processRange(e,l.getLineAndCharacterOfPosition(e.pos),n,n,undefined)});trimTrailingWhitespacesForRemainingRange()}}return v;function tryComputeIndentationForListItem(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(o!==-1){return o}}else{var s=l.getLineAndCharacterOfPosition(r).line;var c=e.getLineStartPositionForPosition(r,l);var u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,f);if(s!==i||r===u){var d=t.SmartIndenter.getBaseIndentation(f);return d>u?d:u}}return-1}function computeIndentation(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(f,e)?f.indentSize:0;if(o===r){return{indentation:r===y?h:a.getIndentation(),delta:Math.min(f.indentSize,a.getDelta(e)+s)}}else if(n===-1){if(e.kind===20&&r===y){return{indentation:h,delta:a.getDelta(e)}}else if(t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)){return{indentation:a.getIndentation(),delta:s}}else{return{indentation:a.getIndentation()+a.getDelta(e),delta:s}}}else{return{indentation:n,delta:s}}}function getFirstNonDecoratorTokenOfNode(t){if(t.modifiers&&t.modifiers.length){return t.modifiers[0].kind}switch(t.kind){case 240:return 76;case 241:return 110;case 239:return 90;case 243:return 243;case 158:return 126;case 159:return 137;case 156:if(t.asteriskToken){return 40}case 154:case 151:var r=e.getNameOfDeclaration(t);if(r){return r.kind}}}function getDynamicIndentation(e,r,n,i){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return n+getDelta(r)}return t!==-1?t:n},getIndentationForToken:function(e,t,r,i){return!i&&shouldAddDelta(e,t,r)?n+getDelta(r):n},getIndentation:function(){return n},getDelta:getDelta,recomputeIndentation:function(r){if(e.parent&&t.SmartIndenter.shouldIndentChildNode(f,e.parent,e,l)){n+=r?f.indentSize:-f.indentSize;i=t.SmartIndenter.shouldIndentChildNode(f,e)?f.indentSize:0}}};function shouldAddDelta(t,n,i){switch(n){case 18:case 19:case 21:case 83:case 107:case 58:return false;case 42:case 30:switch(i.kind){case 262:case 263:case 261:return false}break;case 22:case 23:if(i.kind!==181){return false}break}return r!==t&&!(e.decorators&&n===getFirstNonDecoratorTokenOfNode(e))}function getDelta(r){return t.SmartIndenter.nodeWillIndentChild(f,e,r,l,true)?i:0}}function processNode(n,i,a,s,c,d){if(!e.rangeOverlapsWithStartEnd(r,n.getStart(l),n.getEnd())){return}var p=getDynamicIndentation(n,a,c,d);var _=i;e.forEachChild(n,function(e){processChildNode(e,-1,n,p,a,s,false)},function(e){processChildNodes(e,n,a,p)});while(o.isOnToken()){var m=o.readTokenInfo(n);if(m.token.end>n.end){break}consumeTokenAndAdvanceScanner(m,n,p,n)}function processChildNode(t,i,a,s,c,u,f,d){var p=t.getStart(l);var g=l.getLineAndCharacterOfPosition(p).line;var m=g;if(t.decorators){m=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(t,l)).line}var y=-1;if(f&&e.rangeContainsRange(r,a)){y=tryComputeIndentationForListItem(p,t.end,c,r,i);if(y!==-1){i=y}}if(!e.rangeOverlapsWithStartEnd(r,t.pos,t.end)){if(t.end<r.pos){o.skipToEndOf(t)}return i}if(t.getFullWidth()===0){return i}while(o.isOnToken()){var h=o.readTokenInfo(n);if(h.token.end>p){break}consumeTokenAndAdvanceScanner(h,n,s,n)}if(!o.isOnToken()){return i}if(e.isToken(t)&&t.kind!==11){var h=o.readTokenInfo(t);e.Debug.assert(h.token.end===t.end,"Token end is child end");consumeTokenAndAdvanceScanner(h,n,s,t);return i}var v=t.kind===152?g:u;var T=computeIndentation(t,g,y,n,s,v);processNode(t,_,g,m,T.indentation,T.delta);if(t.kind===11){var S={pos:t.getStart(),end:t.getEnd()};indentMultilineCommentOrJsxText(S,T.indentation,true,false)}_=n;if(d&&a.kind===187&&i===-1){i=T.indentation}return i}function processChildNodes(r,i,a,s){e.Debug.assert(e.isNodeArray(r));var c=getOpenTokenForList(i,r);var u=s;var d=a;if(c!==0){while(o.isOnToken()){var p=o.readTokenInfo(i);if(p.token.end>r.pos){break}else if(p.token.kind===c){d=l.getLineAndCharacterOfPosition(p.token.pos).line;consumeTokenAndAdvanceScanner(p,i,s,i);var g=void 0;if(h!==-1){g=h}else{var _=e.getLineStartPositionForPosition(p.token.pos,l);g=t.SmartIndenter.findFirstNonWhitespaceColumn(_,p.token.pos,l,f)}u=getDynamicIndentation(i,a,g,f.indentSize)}else{consumeTokenAndAdvanceScanner(p,i,s,i)}}}var m=-1;for(var y=0;y<r.length;y++){var v=r[y];m=processChildNode(v,m,n,u,d,d,true,y===0)}var T=getCloseTokenForOpenToken(c);if(T!==0&&o.isOnToken()){var p=o.readTokenInfo(i);if(p.token.kind===27&&e.isCallLikeExpression(i)){o.advance();p=o.isOnToken()?o.readTokenInfo(i):undefined}if(p&&p.token.kind===T&&e.rangeContainsRange(i,p.token)){consumeTokenAndAdvanceScanner(p,i,u,i,true)}}}function consumeTokenAndAdvanceScanner(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine();var f=false;if(t.leadingTrivia){processTrivia(t.leadingTrivia,n,_,i)}var d=0;var p=e.rangeContainsRange(r,t.token);var m=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var v=u(t.token);var T=g;d=processRange(t.token,m,n,_,i);if(!v){if(d===0){var S=T&&l.getLineAndCharacterOfPosition(T.end).line;f=c&&m.line!==S}else{f=d===1}}}if(t.trailingTrivia){processTrivia(t.trailingTrivia,n,_,i)}if(f){var b=p&&!u(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1;var x=true;if(t.leadingTrivia){var C=i.getIndentationForComment(t.token.kind,b,a);x=indentTriviaItems(t.leadingTrivia,C,x,function(e){return insertIndentation(e.pos,C,false)})}if(b!==-1&&x){insertIndentation(t.token.pos,b,d===1);y=m.line;h=b}}o.advance();_=n}}function indentTriviaItems(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];var u=e.rangeContainsRange(r,c);switch(c.kind){case 3:if(u){indentMultilineCommentOrJsxText(c,n,!i)}i=false;break;case 2:if(i&&u){a(c)}i=false;break;case 4:i=true;break}}return i}function processTrivia(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c)){var u=l.getLineAndCharacterOfPosition(c.pos);processRange(c,u,n,i,a)}}}function processRange(e,t,n,i,a){var o=u(e);var s=0;if(!o){if(!g){var c=l.getLineAndCharacterOfPosition(r.pos);trimTrailingWhitespacesForLines(c.line,t.line)}else{s=processPair(e,t.line,n,g,m,_,i,a)}}g=e;_=n;m=t.line;return s}function processPair(t,r,n,i,a,o,s,c){p.updateContext(i,o,t,n,s);var u=d(p);var f;var g=0;if(u){g=applyRuleEdits(u,i,a,t,r);switch(g){case 2:if(n.getStart(l)===t.pos){c.recomputeIndentation(false)}break;case 1:if(n.getStart(l)===t.pos){c.recomputeIndentation(true)}break;default:e.Debug.assert(g===0)}f=!(u.action&8)&&u.flags!==1}else{f=true}if(r!==a&&f){trimTrailingWhitespacesForLines(a,r,i)}return g}function insertIndentation(t,r,n){var i=getIndentationString(r,f);if(n){recordReplace(t,0,i)}else{var a=l.getLineAndCharacterOfPosition(t);var o=e.getStartPositionOfLine(a.line,l);if(r!==characterToColumn(o,a.character)||indentationIsDifferent(i,o)){recordReplace(o,a.character,i)}}}function characterToColumn(e,t){var r=0;for(var n=0;n<t;n++){if(l.text.charCodeAt(e+n)===9){r+=f.tabSize-r%f.tabSize}else{r++}}return r}function indentationIsDifferent(e,t){return e!==l.text.substr(t,e.length)}function indentMultilineCommentOrJsxText(r,n,i,a){if(a===void 0){a=true}var o=l.getLineAndCharacterOfPosition(r.pos).line;var s=l.getLineAndCharacterOfPosition(r.end).line;if(o===s){if(!i){insertIndentation(r.pos,n,false)}return}var c=[];var u=r.pos;for(var d=o;d<s;d++){var p=e.getEndLinePosition(d,l);c.push({pos:u,end:p});u=e.getStartPositionOfLine(d+1,l)}if(a){c.push({pos:u,end:r.end})}if(c.length===0)return;var g=e.getStartPositionOfLine(o,l);var _=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(g,c[0].pos,l,f);if(n===_.column){return}var m=0;if(i){m=1;o++}var y=n-_.column;for(var h=m;h<c.length;h++,o++){var v=e.getStartPositionOfLine(o,l);var T=h===0?_:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[h].pos,c[h].end,l,f);var S=T.column+y;if(S>0){var b=getIndentationString(S,f);recordReplace(v,T.character,b)}else{recordDelete(v,T.character)}}}function trimTrailingWhitespacesForLines(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,l);var o=e.getEndLinePosition(i,l);if(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o){continue}var s=getTrailingWhitespaceStartPosition(a,o);if(s!==-1){e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1)));recordDelete(s,o+1-s)}}}function getTrailingWhitespaceStartPosition(t,r){var n=r;while(n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n))){n--}if(n!==r){return n+1}return-1}function trimTrailingWhitespacesForRemainingRange(){var e=g?g.end:r.pos;var t=l.getLineAndCharacterOfPosition(e).line;var n=l.getLineAndCharacterOfPosition(r.end).line;trimTrailingWhitespacesForLines(t,n+1,g)}function recordDelete(t,r){if(r){v.push(e.createTextChangeFromStartLength(t,r,""))}}function recordReplace(t,r,n){if(r||n){v.push(e.createTextChangeFromStartLength(t,r,n))}}function applyRuleEdits(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 8:if(t.end!==n.pos){recordDelete(t.end,n.pos-t.end);return a?2:0}break;case 4:if(e.flags!==1&&r!==i){return 0}var o=i-r;if(o!==1){recordReplace(t.end,n.pos-t.end,f.newLineCharacter);return a?0:1}break;case 2:if(e.flags!==1&&r!==i){return 0}var s=n.pos-t.end;if(s!==1||l.text.charCodeAt(t.end)!==32){recordReplace(t.end,n.pos-t.end," ");return a?2:0}}return 0}}var n;(function(e){e[e["None"]=0]="None";e[e["LineAdded"]=1]="LineAdded";e[e["LineRemoved"]=2]="LineRemoved"})(n||(n={}));function getRangeOfEnclosingComment(t,r,n,i){if(i===void 0){i=e.getTokenAtPosition(t,r)}var a=e.findAncestor(i,e.isJSDoc);if(a)i=a.parent;var o=i.getStart(t);if(o<=r&&r<i.getEnd()){return undefined}n=n===null?undefined:n===undefined?e.findPrecedingToken(r,t):n;var s=n&&e.getTrailingCommentRanges(t.text,n.end);var c=e.getLeadingCommentRangesOfNode(i,t);var u=e.concatenate(s,c);return u&&e.find(u,function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(n.kind===2||r===t.getFullWidth())})}t.getRangeOfEnclosingComment=getRangeOfEnclosingComment;function getOpenTokenForList(e,t){switch(e.kind){case 157:case 239:case 196:case 156:case 155:case 197:if(e.typeParameters===t){return 28}else if(e.parameters===t){return 20}break;case 191:case 192:if(e.typeArguments===t){return 28}else if(e.arguments===t){return 20}break;case 164:if(e.typeArguments===t){return 28}break;case 168:return 18}return 0}function getCloseTokenForOpenToken(e){switch(e){case 20:return 21;case 28:return 30;case 18:return 19}return 0}var i;var a;var o;function getIndentationString(t,r){var n=!i||(i.tabSize!==r.tabSize||i.indentSize!==r.indentSize);if(n){i={tabSize:r.tabSize,indentSize:r.indentSize};a=o=undefined}if(!r.convertTabsToSpaces){var s=Math.floor(t/r.tabSize);var c=t-s*r.tabSize;var u=void 0;if(!a){a=[]}if(a[s]===undefined){a[s]=u=e.repeatString("\t",s)}else{u=a[s]}return c?u+e.repeatString(" ",c):u}else{var l=void 0;var f=Math.floor(t/r.indentSize);var d=t%r.indentSize;if(!o){o=[]}if(o[f]===undefined){l=e.repeatString(" ",r.indentSize*f);o[f]=l}else{l=o[f]}return d?l+e.repeatString(" ",d):l}}t.getIndentationString=getIndentationString})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(r){var n;(function(e){e[e["Unknown"]=-1]="Unknown"})(n||(n={}));function getIndentation(r,n,i,a){if(a===void 0){a=false}if(r>n.text.length){return getBaseIndentation(i)}if(i.indentStyle===e.IndentStyle.None){return 0}var o=e.findPrecedingToken(r,n,undefined,true);var s=t.getRangeOfEnclosingComment(n,r,o||null);if(s&&s.kind===3){return getCommentIndent(n,r,i,s)}if(!o){return getBaseIndentation(i)}var c=e.isStringOrRegularExpressionOrTemplateLiteral(o.kind);if(c&&o.getStart(n)<=r&&r<o.end){return 0}var u=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block){return getBlockIndent(n,r,i)}if(o.kind===27&&o.parent.kind!==204){var l=getActualIndentationForListItemBeforeComma(o,n,i);if(l!==-1){return l}}var f=getListByPosition(r,o.parent,n);if(f&&!e.rangeContainsRange(f,o)){return getActualIndentationForListStartLine(f,n,i)+i.indentSize}return getSmartIndent(n,r,o,u,a,i)}r.getIndentation=getIndentation;function getCommentIndent(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1;var o=e.getLineAndCharacterOfPosition(t,i.pos).line;e.Debug.assert(o>=0);if(a<=o){return findFirstNonWhitespaceColumn(e.getStartPositionOfLine(o,t),r,t,n)}var s=e.getStartPositionOfLine(a,t);var c=findFirstNonWhitespaceCharacterAndColumn(s,r,t,n),u=c.column,l=c.character;if(u===0){return u}var f=t.text.charCodeAt(s+l);return f===42?u-1:u}function getBlockIndent(t,r,n){var i=r;while(i>0){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a)){break}i--}var o=e.getLineStartPositionForPosition(i,t);return findFirstNonWhitespaceColumn(o,i,t,n)}function getSmartIndent(t,r,n,i,a,o){var s;var c=n;while(c){if(e.positionBelongsToNode(c,r,t)&&shouldIndentChildNode(o,c,s,t,true)){var u=getStartLineAndCharacterForNode(c,t);var l=nextTokenIsCurlyBraceOnSameLineAsCursor(n,c,i,t);var f=l!==0?a&&l===2?o.indentSize:0:i!==u.line?o.indentSize:0;return getIndentationForNodeWorker(c,u,undefined,f,t,true,o)}var d=getActualIndentationForListItem(c,t,o,true);if(d!==-1){return d}s=c;c=c.parent}return getBaseIndentation(o)}function getIndentationForNode(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return getIndentationForNodeWorker(e,i,t,0,r,false,n)}r.getIndentationForNode=getIndentationForNode;function getBaseIndentation(e){return e.baseIndentSize||0}r.getBaseIndentation=getBaseIndentation;function getIndentationForNodeWorker(e,t,r,n,i,a,o){var s=e.parent;while(s){var c=true;if(r){var u=e.getStart(i);c=u<r.pos||u>r.end}var l=getContainingListOrParentStart(s,e,i);var f=l.line===t.line||childStartsOnTheSameLineWithElseInIfStatement(s,e,t.line,i);if(c){var d=getActualIndentationForListItem(e,i,o,!f);if(d!==-1){return d+n}d=getActualIndentationForNode(e,s,t,f,i,o);if(d!==-1){return d+n}}if(shouldIndentChildNode(o,s,e,i,a)&&!f){n+=o.indentSize}var p=isArgumentAndStartLineOverlapsExpressionBeingCalled(s,e,t.line,i);e=s;s=e.parent;t=p?i.getLineAndCharacterOfPosition(e.getStart(i)):l}return n+getBaseIndentation(o)}function getContainingListOrParentStart(e,t,r){var n=getContainingList(t,r);var i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function getActualIndentationForListItemBeforeComma(t,r,n){var i=e.findListItemInfo(t);if(i&&i.listItemIndex>0){return deriveActualIndentationFromList(i.list.getChildren(),i.listItemIndex-1,r,n)}else{return-1}}function getActualIndentationForNode(t,r,n,i,a,o){var s=(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(r.kind===279||!i);if(!s){return-1}return findColumnForFirstNonWhitespaceCharacterInLine(n,a,o)}var i;(function(e){e[e["Unknown"]=0]="Unknown";e[e["OpenBrace"]=1]="OpenBrace";e[e["CloseBrace"]=2]="CloseBrace"})(i||(i={}));function nextTokenIsCurlyBraceOnSameLineAsCursor(t,r,n,i){var a=e.findNextToken(t,r,i);if(!a){return 0}if(a.kind===18){return 1}else if(a.kind===19){var o=getStartLineAndCharacterForNode(a,i).line;return n===o?2:0}return 0}function getStartLineAndCharacterForNode(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function isArgumentAndStartLineOverlapsExpressionBeingCalled(t,r,n,i){if(!(e.isCallExpression(t)&&e.contains(t.arguments,r))){return false}var a=t.expression.getEnd();var o=e.getLineAndCharacterOfPosition(i,a).line;return o===n}r.isArgumentAndStartLineOverlapsExpressionBeingCalled=isArgumentAndStartLineOverlapsExpressionBeingCalled;function childStartsOnTheSameLineWithElseInIfStatement(t,r,n,i){if(t.kind===222&&t.elseStatement===r){var a=e.findChildOfKind(t,83,i);e.Debug.assert(a!==undefined);var o=getStartLineAndCharacterForNode(a,i).line;return o===n}return false}r.childStartsOnTheSameLineWithElseInIfStatement=childStartsOnTheSameLineWithElseInIfStatement;function getContainingList(e,t){return e.parent&&getListByRange(e.getStart(t),e.getEnd(),e.parent,t)}r.getContainingList=getContainingList;function getListByPosition(e,t,r){return t&&getListByRange(e,e,t,r)}function getListByRange(t,r,n,i){switch(n.kind){case 164:return getList(n.typeArguments);case 188:return getList(n.properties);case 187:return getList(n.elements);case 168:return getList(n.members);case 239:case 196:case 197:case 156:case 155:case 160:case 157:case 166:case 161:return getList(n.typeParameters)||getList(n.parameters);case 240:case 209:case 241:case 242:case 303:return getList(n.typeParameters);case 192:case 191:return getList(n.typeArguments)||getList(n.arguments);case 238:return getList(n.declarations);case 252:case 256:return getList(n.elements);case 184:case 185:return getList(n.elements)}function getList(a){return a&&e.rangeContainsStartEnd(getVisualListRange(n,a,i),t,r)?a:undefined}}function getVisualListRange(e,t,r){var n=e.getChildren(r);for(var i=1;i<n.length-1;i++){if(n[i].pos===t.pos&&n[i].end===t.end){return{pos:n[i-1].end,end:n[i+1].getStart(r)}}}return t}function getActualIndentationForListStartLine(e,t,r){if(!e){return-1}return findColumnForFirstNonWhitespaceCharacterInLine(t.getLineAndCharacterOfPosition(e.pos),t,r)}function getActualIndentationForListItem(e,t,r,n){if(e.parent&&e.parent.kind===238){return-1}var i=getContainingList(e,t);if(i){var a=i.indexOf(e);if(a!==-1){var o=deriveActualIndentationFromList(i,a,t,r);if(o!==-1){return o}}return getActualIndentationForListStartLine(i,t,r)+(n?r.indentSize:0)}return-1}function deriveActualIndentationFromList(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);var a=t[r];var o=getStartLineAndCharacterForNode(a,n);for(var s=r-1;s>=0;s--){if(t[s].kind===27){continue}var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line){return findColumnForFirstNonWhitespaceCharacterInLine(o,n,i)}o=getStartLineAndCharacterForNode(t[s],n)}return-1}function findColumnForFirstNonWhitespaceCharacterInLine(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return findFirstNonWhitespaceColumn(n,n+e.character,t,r)}function findFirstNonWhitespaceCharacterAndColumn(t,r,n,i){var a=0;var o=0;for(var s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c)){break}if(c===9){o+=i.tabSize+o%i.tabSize}else{o++}a++}return{column:o,character:a}}r.findFirstNonWhitespaceCharacterAndColumn=findFirstNonWhitespaceCharacterAndColumn;function findFirstNonWhitespaceColumn(e,t,r,n){return findFirstNonWhitespaceCharacterAndColumn(e,t,r,n).column}r.findFirstNonWhitespaceColumn=findFirstNonWhitespaceColumn;function nodeWillIndentChild(e,t,r,n,i){var a=r?r.kind:0;switch(t.kind){case 221:case 240:case 209:case 241:case 243:case 242:case 187:case 218:case 245:case 188:case 168:case 181:case 170:case 246:case 272:case 271:case 195:case 189:case 191:case 192:case 219:case 254:case 230:case 205:case 185:case 184:case 262:case 265:case 261:case 270:case 155:case 160:case 161:case 151:case 165:case 166:case 177:case 193:case 201:case 256:case 252:case 257:case 253:case 154:return true;case 237:case 275:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&a===188){return rangeIsOnOneLine(n,r)}return true;case 223:case 224:case 226:case 227:case 225:case 222:case 239:case 196:case 156:case 197:case 157:case 158:case 159:return a!==218;case 255:return a!==256;case 249:return a!==250||!!r.namedBindings&&r.namedBindings.kind!==252;case 260:return a!==263;case 264:return a!==266;case 174:case 173:if(a===168){return false}}return i}r.nodeWillIndentChild=nodeWillIndentChild;function isControlFlowEndingStatement(e,t){switch(e){case 230:case 234:case 228:case 229:return t.kind!==218;default:return false}}function shouldIndentChildNode(e,t,r,n,i){if(i===void 0){i=false}return nodeWillIndentChild(e,t,r,n,false)&&!(i&&r&&isControlFlowEndingStatement(r.kind,t))}r.shouldIndentChildNode=shouldIndentChildNode;function rangeIsOnOneLine(t,r){var n=e.skipTrivia(t.text,r.pos);var i=t.getLineAndCharacterOfPosition(n).line;var a=t.getLineAndCharacterOfPosition(r.end).line;return i===a}})(r=t.SmartIndenter||(t.SmartIndenter={}))})(t=e.formatting||(e.formatting={}))})(s||(s={}));var s;(function(e){var t;(function(t){function getPos(t){var r=t.__pos;e.Debug.assert(typeof r==="number");return r}function setPos(t,r){e.Debug.assert(typeof r==="number");t.__pos=r}function getEnd(t){var r=t.__end;e.Debug.assert(typeof r==="number");return r}function setEnd(t,r){e.Debug.assert(typeof r==="number");t.__end=r}var r;(function(e){e[e["FullStart"]=0]="FullStart";e[e["Start"]=1]="Start"})(r=t.Position||(t.Position={}));function skipWhitespacesAndLineBreaks(t,r){return e.skipTrivia(t,r,false,true)}function hasCommentsBeforeLineBreak(t,r){var n=r;while(n<t.length){var i=t.charCodeAt(n);if(e.isWhiteSpaceSingleLine(i)){n++;continue}return i===47}return false}t.useNonAdjustedPositions={useNonAdjustedStartPosition:true,useNonAdjustedEndPosition:true};var i;(function(e){e[e["Remove"]=0]="Remove";e[e["ReplaceWithSingleNode"]=1]="ReplaceWithSingleNode";e[e["ReplaceWithMultipleNodes"]=2]="ReplaceWithMultipleNodes";e[e["Text"]=3]="Text"})(i||(i={}));function getAdjustedRange(e,t,n,i){return{pos:getAdjustedStartPosition(e,t,i,r.Start),end:getAdjustedEndPosition(e,n,i)}}function getAdjustedStartPosition(t,n,i,a){if(i.useNonAdjustedStartPosition){return n.getStart(t)}var o=n.getFullStart();var s=n.getStart(t);if(o===s){return s}var c=e.getLineStartPositionForPosition(o,t);var u=e.getLineStartPositionForPosition(s,t);if(u===c){return a===r.Start?s:o}var l=o>0?1:0;var f=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);f=skipWhitespacesAndLineBreaks(t.text,f);return e.getStartPositionOfLine(e.getLineOfLocalPosition(t,f),t)}function getAdjustedEndPosition(t,r,n){var i=r.end;if(n.useNonAdjustedEndPosition||e.isExpression(r)){return i}var a=e.skipTrivia(t.text,i,true);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function isSeparator(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===188)}function spaces(e){var t="";for(var r=0;r<e;r++){t+=" "}return t}var a=function(){function ChangeTracker(t,r){this.newLineCharacter=t;this.formatContext=r;this.changes=[];this.newFiles=[];this.classesWithNodesInsertedAtStart=e.createMap();this.deletedNodes=[]}ChangeTracker.fromContext=function(t){return new ChangeTracker(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)};ChangeTracker.with=function(e,t){var r=ChangeTracker.fromContext(e);t(r);return r.getChanges()};ChangeTracker.prototype.deleteRange=function(e,t){this.changes.push({kind:i.Remove,sourceFile:e,range:t})};ChangeTracker.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})};ChangeTracker.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,true)})};ChangeTracker.prototype.deleteNodeRange=function(e,t,n,i){if(i===void 0){i={}}var a=getAdjustedStartPosition(e,t,i,r.FullStart);var o=getAdjustedEndPosition(e,n,i);this.deleteRange(e,{pos:a,end:o})};ChangeTracker.prototype.deleteNodeRangeExcludingEnd=function(e,t,n,i){if(i===void 0){i={}}var a=getAdjustedStartPosition(e,t,i,r.FullStart);var o=n===undefined?e.text.length:getAdjustedStartPosition(e,n,i,r.FullStart);this.deleteRange(e,{pos:a,end:o})};ChangeTracker.prototype.replaceRange=function(e,t,r,n){if(n===void 0){n={}}this.changes.push({kind:i.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})};ChangeTracker.prototype.replaceNode=function(e,r,n,i){if(i===void 0){i=t.useNonAdjustedPositions}this.replaceRange(e,getAdjustedRange(e,r,r,i),n,i)};ChangeTracker.prototype.replaceNodeRange=function(e,r,n,i,a){if(a===void 0){a=t.useNonAdjustedPositions}this.replaceRange(e,getAdjustedRange(e,r,n,a),i,a)};ChangeTracker.prototype.replaceRangeWithNodes=function(e,t,r,n){if(n===void 0){n={}}this.changes.push({kind:i.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})};ChangeTracker.prototype.replaceNodeWithNodes=function(e,r,n,i){if(i===void 0){i=t.useNonAdjustedPositions}this.replaceRangeWithNodes(e,getAdjustedRange(e,r,r,i),n,i)};ChangeTracker.prototype.replaceNodeWithText=function(e,r,n){this.replaceRangeWithText(e,getAdjustedRange(e,r,r,t.useNonAdjustedPositions),n)};ChangeTracker.prototype.replaceNodeRangeWithNodes=function(e,r,n,i,a){if(a===void 0){a=t.useNonAdjustedPositions}this.replaceRangeWithNodes(e,getAdjustedRange(e,r,n,a),i,a)};ChangeTracker.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&n.kind===27?n:undefined};ChangeTracker.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})};ChangeTracker.prototype.insertNodeAt=function(t,r,n,i){if(i===void 0){i={}}this.replaceRange(t,e.createRange(r),n,i)};ChangeTracker.prototype.insertNodesAt=function(t,r,n,i){if(i===void 0){i={}}this.replaceRangeWithNodes(t,e.createRange(r),n,i)};ChangeTracker.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=getInsertionPositionAtSourceFileTop(t);this.insertNodeAt(t,i,r,{prefix:i===0?undefined:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")})};ChangeTracker.prototype.insertNodeBefore=function(e,t,n,i){if(i===void 0){i=false}this.insertNodeAt(e,getAdjustedStartPosition(e,t,{},r.Start),n,this.getOptionsForInsertNodeBefore(t,i))};ChangeTracker.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.insertNodeAt(t,i,e.createToken(r),{suffix:" "})};ChangeTracker.prototype.insertLastModifierBefore=function(t,r,n){if(!n.modifiers){this.insertModifierBefore(t,r,n);return}var i=n.modifiers.end;this.insertNodeAt(t,i,e.createToken(r),{prefix:" "})};ChangeTracker.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t);var o=e.getFirstNonSpaceCharacterPosition(t.text,a);var s=isValidLocationToAddComment(t,o);var c=e.getTouchingToken(t,s?o:n);var u=t.text.slice(a,o);var l=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+u;this.insertText(t,c.getStart(t),l)};ChangeTracker.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc){for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:getAdjustedEndPosition(t,s,{})})}}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1);var u=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:false,suffix:this.newLineCharacter+u})};ChangeTracker.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:i.Text,sourceFile:e,range:t,text:r})};ChangeTracker.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)};ChangeTracker.prototype.tryInsertTypeAnnotation=function(t,r,n){var i;if(e.isFunctionLike(r)){i=e.findChildOfKind(r,21,t);if(!i){if(!e.isArrowFunction(r))return;i=e.first(r.parameters)}}else{i=r.kind!==237&&r.questionToken?r.questionToken:r.name}this.insertNodeAt(t,i.end,n,{prefix:": "})};ChangeTracker.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">"})};ChangeTracker.prototype.getOptionsForInsertNodeBefore=function(t,r){if(e.isStatement(t)||e.isClassElement(t)){return{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}}else if(e.isVariableDeclaration(t)){return{suffix:", "}}else if(e.isParameter(t)){return{}}else if(e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)){return{suffix:", "}}return e.Debug.failBadSyntaxKind(t)};ChangeTracker.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);if(!i||!r.body.multiLine){this.replaceConstructorBody(t,r,[n].concat(r.body.statements))}else{this.insertNodeBefore(t,i,n)}};ChangeTracker.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);if(!i||!r.body.multiLine){this.replaceConstructorBody(t,r,r.body.statements.concat([n]))}else{this.insertNodeAfter(t,i,n)}};ChangeTracker.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,true))};ChangeTracker.prototype.insertNodeAtEndOfScope=function(t,n,i){var a=getAdjustedStartPosition(t,n.getLastToken(),{},r.Start);this.insertNodeAt(t,a,i,{prefix:e.isLineBreak(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})};ChangeTracker.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)};ChangeTracker.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)};ChangeTracker.prototype.insertNodeAtStartWorker=function(t,r,i){var a=r.getStart(t);var o=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,t),a,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,getMembersOrProperties(r).pos,i,n({indentation:o},this.getInsertNodeAtStartPrefixSuffix(t,r)))};ChangeTracker.prototype.getInsertNodeAtStartPrefixSuffix=function(t,r){var n=e.isObjectLiteralExpression(r)?",":"";if(getMembersOrProperties(r).length===0){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t})){var i=e.positionsAreOnSameLine.apply(void 0,getClassOrObjectBraceEnds(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n+(i?this.newLineCharacter:"")}}else{return{prefix:"",suffix:n+this.newLineCharacter}}}else{return{prefix:this.newLineCharacter,suffix:n}}};ChangeTracker.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))};ChangeTracker.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))};ChangeTracker.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})};ChangeTracker.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))};ChangeTracker.prototype.insertNodeAfterWorker=function(t,r,n){if(needSemicolonBetween(r,n)){if(t.text.charCodeAt(r.end-1)!==59){this.replaceRange(t,e.createRange(r.end),e.createToken(26))}}var i=getAdjustedEndPosition(t,r,{});return i};ChangeTracker.prototype.getInsertNodeAfterOptions=function(t,r){var i=this.getInsertNodeAfterOptionsWorker(r);return n({},i,{prefix:r.end===t.end&&e.isStatement(r)?i.prefix?"\n"+i.prefix:"\n":i.prefix})};ChangeTracker.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 240:case 244:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 237:case 10:case 72:return{prefix:", "};case 275:return{suffix:","+this.newLineCharacter};case 85:return{prefix:" "};case 151:return{};default:e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t));return{suffix:this.newLineCharacter}}};ChangeTracker.prototype.insertName=function(t,r,n){e.Debug.assert(!r.name);if(r.kind===197){var i=e.findChildOfKind(r,37,t);var a=e.findChildOfKind(r,20,t);if(a){this.insertNodesAt(t,a.getStart(t),[e.createToken(90),e.createIdentifier(n)],{joiner:" "});deleteNode(this,t,i)}else{this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"(");this.replaceRange(t,i,e.createToken(21))}if(r.body.kind!==218){this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(97)],{joiner:" ",suffix:" "});this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "})}}else{var o=e.findChildOfKind(r,r.kind===196?90:76,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}};ChangeTracker.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")};ChangeTracker.prototype.insertNodeInListAfter=function(t,r,n,i){if(i===void 0){i=e.formatting.SmartIndenter.getContainingList(r,t)}if(!i){e.Debug.fail("node is not a list element");return}var a=e.indexOfNode(i,r);if(a<0){return}var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&isSeparator(r,s)){var c=e.getLineAndCharacterOfPosition(t,skipWhitespacesAndLineBreaks(t.text,i[a+1].getFullStart()));var u=e.getLineAndCharacterOfPosition(t,s.end);var l=void 0;var f=void 0;if(u.line===c.line){f=s.end;l=spaces(c.character-u.character)}else{f=e.getStartPositionOfLine(c.line,t)}var d=""+e.tokenToString(s.kind)+t.text.substring(s.end,i[a+1].getStart(t));this.replaceRange(t,e.createRange(f,i[a+1].getStart(t)),n,{prefix:l,suffix:d})}}else{var p=r.getStart(t);var g=e.getLineStartPositionForPosition(p,t);var _=void 0;var m=false;if(i.length===1){_=27}else{var y=e.findPrecedingToken(r.pos,t);_=isSeparator(r,y)?y.kind:27;var h=e.getLineStartPositionForPosition(i[a-1].getStart(t),t);m=h!==g}if(hasCommentsBeforeLineBreak(t.text,r.end)){m=true}if(m){this.replaceRange(t,e.createRange(o),e.createToken(_));var v=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,p,t,this.formatContext.options);var T=e.skipTrivia(t.text,o,true,false);if(T!==o&&e.isLineBreak(t.text.charCodeAt(T-1))){T--}this.replaceRange(t,e.createRange(T),n,{indentation:v,prefix:this.newLineCharacter})}else{this.replaceRange(t,e.createRange(o),n,{prefix:e.tokenToString(_)+" "})}}};ChangeTracker.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach(function(r){var n=r.node,i=r.sourceFile;var a=getClassOrObjectBraceEnds(n,i),o=a[0],s=a[1];if(e.positionsAreOnSameLine(o,s,i)&&o!==s-1){t.deleteRange(i,e.createRange(o,s-1))}})};ChangeTracker.prototype.finishDeleteDeclarations=function(){var t=this;var r=new e.NodeSet;var n=function(t,n){if(!i.deletedNodes.some(function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)})){if(e.isArray(n)){i.deleteRange(t,e.rangeOfTypeParameters(n))}else{c.deleteDeclaration(i,r,t,n)}}};var i=this;for(var a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a],u=s.sourceFile,l=s.node;n(u,l)}r.forEach(function(n){var i=n.getSourceFile();var a=e.formatting.SmartIndenter.getContainingList(n,i);if(n!==e.last(a))return;var o=e.findLastIndex(a,function(e){return!r.has(e)},a.length-2);if(o!==-1){t.deleteRange(i,{pos:a[o].end,end:startPositionToDeleteNodeInList(i,a[o+1])})}})};ChangeTracker.prototype.getChanges=function(e){this.finishDeleteDeclarations();this.finishClassesWithNodesInsertedAtStart();var t=o.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(var r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,s=i.fileName,c=i.statements;t.push(o.newFileChanges(a,s,c,this.newLineCharacter,this.formatContext))}return t};ChangeTracker.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})};return ChangeTracker}();t.ChangeTracker=a;function startPositionToDeleteNodeInList(t,n){return e.skipTrivia(t.text,getAdjustedStartPosition(t,n,{},r.FullStart),false,true)}function getClassOrObjectBraceEnds(t,r){return[e.findChildOfKind(t,18,r).end,e.findChildOfKind(t,19,r).end]}function getMembersOrProperties(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function getNewFileText(e,t,r,n){return o.newFileChangesWorker(undefined,t,e,r,n)}t.getNewFileText=getNewFileText;var o;(function(t){function getTextChangesFromChanges(t,r,n,i){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){var a=t[0].sourceFile;var o=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end});var s=function(t){e.Debug.assert(o[t].range.end<=o[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(o[t].range)+" and "+JSON.stringify(o[t+1].range)})};for(var c=0;c<o.length-1;c++){s(c)}var u=o.map(function(t){return e.createTextChange(e.createTextSpanFromRange(t.range),computeNewText(t,a,r,n,i))});return{fileName:a.fileName,textChanges:u}})}t.getTextChangesFromChanges=getTextChangesFromChanges;function newFileChanges(t,r,n,i,a){var o=newFileChangesWorker(t,e.getScriptKindFromFileName(r),n,i,a);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),o)],isNewFile:true}}t.newFileChanges=newFileChanges;function newFileChangesWorker(t,r,n,i,a){var o=n.map(function(e){return getNonformattedText(e,t,i).text}).join(i);var s=e.createSourceFile("any file name",o,6,true,r);var c=e.formatting.formatDocument(s,a);return applyChanges(o,c)+i}t.newFileChangesWorker=newFileChangesWorker;function computeNewText(t,r,n,a,o){if(t.kind===i.Remove){return""}if(t.kind===i.Text){return t.text}var s=t.options,c=s===void 0?{}:s,u=t.range.pos;var l=function(e){return getFormattedTextOfNode(e,r,u,c,n,a,o)};var f=t.kind===i.ReplaceWithMultipleNodes?t.nodes.map(function(t){return e.removeSuffix(l(t),n)}).join(t.options.joiner||n):l(t.node);var d=c.preserveLeadingWhitespace||c.indentation!==undefined||e.getLineStartPositionForPosition(u,r)===u?f:f.replace(/^\s+/,"");return(c.prefix||"")+d+(c.suffix||"")}function getFormattedTextOfNode(t,r,n,i,a,o,s){var c=i.indentation,u=i.prefix,l=i.delta;var f=getNonformattedText(t,r,a),d=f.node,p=f.text;if(s)s(d,p);var g=o.options;var _=c!==undefined?c:e.formatting.SmartIndenter.getIndentation(n,r,g,u===a||e.getLineStartPositionForPosition(n,r)===n);if(l===undefined){l=e.formatting.SmartIndenter.shouldIndentChildNode(o.options,t)?g.indentSize||0:0}var m={text:p,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}};var y=e.formatting.formatNodeGivenIndentation(d,m,r.languageVariant,_,l,o);return applyChanges(p,y)}function getNonformattedText(t,r,n){var i=new s(n);var a=n==="\n"?1:0;e.createPrinter({newLine:a,neverAsciiEscape:true},i).writeNode(4,t,r,i);return{text:i.getText(),node:assignPositionsToNode(t)}}t.getNonformattedText=getNonformattedText})(o||(o={}));function applyChanges(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}t.applyChanges=applyChanges;function isTrivia(t){return e.skipTrivia(t,0)===t.length}function assignPositionsToNode(t){var r=e.visitEachChild(t,assignPositionsToNode,e.nullTransformationContext,assignPositionsToNodeArray,assignPositionsToNode);var n=e.nodeIsSynthesized(r)?r:Object.create(r);n.pos=getPos(t);n.end=getEnd(t);return n}function assignPositionsToNodeArray(t,r,n,i,a){var o=e.visitNodes(t,r,n,i,a);if(!o){return o}var s=o===t?e.createNodeArray(o.slice(0)):o;s.pos=getPos(t);s.end=getEnd(t);return s}var s=function(){function Writer(t){var r=this;this.lastNonTriviaPosition=0;this.writer=e.createTextWriter(t);this.onEmitNode=function(e,t,n){if(t){setPos(t,r.lastNonTriviaPosition)}n(e,t);if(t){setEnd(t,r.lastNonTriviaPosition)}};this.onBeforeEmitNodeArray=function(e){if(e){setPos(e,r.lastNonTriviaPosition)}};this.onAfterEmitNodeArray=function(e){if(e){setEnd(e,r.lastNonTriviaPosition)}};this.onBeforeEmitToken=function(e){if(e){setPos(e,r.lastNonTriviaPosition)}};this.onAfterEmitToken=function(e){if(e){setEnd(e,r.lastNonTriviaPosition)}}}Writer.prototype.setLastNonTriviaPosition=function(t,r){if(r||!isTrivia(t)){this.lastNonTriviaPosition=this.writer.getTextPos();var n=0;while(e.isWhiteSpaceLike(t.charCodeAt(t.length-n-1))){n++}this.lastNonTriviaPosition-=n}};Writer.prototype.write=function(e){this.writer.write(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeComment=function(e){this.writer.writeComment(e)};Writer.prototype.writeKeyword=function(e){this.writer.writeKeyword(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeOperator=function(e){this.writer.writeOperator(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writePunctuation=function(e){this.writer.writePunctuation(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeTrailingSemicolon=function(e){this.writer.writeTrailingSemicolon(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeParameter=function(e){this.writer.writeParameter(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeProperty=function(e){this.writer.writeProperty(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeSpace=function(e){this.writer.writeSpace(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeLine=function(){this.writer.writeLine()};Writer.prototype.increaseIndent=function(){this.writer.increaseIndent()};Writer.prototype.decreaseIndent=function(){this.writer.decreaseIndent()};Writer.prototype.getText=function(){return this.writer.getText()};Writer.prototype.rawWrite=function(e){this.writer.rawWrite(e);this.setLastNonTriviaPosition(e,false)};Writer.prototype.writeLiteral=function(e){this.writer.writeLiteral(e);this.setLastNonTriviaPosition(e,true)};Writer.prototype.getTextPos=function(){return this.writer.getTextPos()};Writer.prototype.getLine=function(){return this.writer.getLine()};Writer.prototype.getColumn=function(){return this.writer.getColumn()};Writer.prototype.getIndent=function(){return this.writer.getIndent()};Writer.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()};Writer.prototype.clear=function(){this.writer.clear();this.lastNonTriviaPosition=0};return Writer}();function getInsertionPositionAtSourceFileTop(t){var r;for(var n=0,i=t.statements;n<i.length;n++){var a=i[n];if(e.isPrologueDirective(a)){r=a}else{break}}var o=0;var s=t.text;if(r){o=r.end;advancePastLineBreak();return o}var c=e.getShebang(s);if(c!==undefined){o=c.length;advancePastLineBreak()}var u=e.getLeadingCommentRanges(s,o);if(!u)return o;if(u.length&&u[0].kind===3&&e.isPinnedComment(s,u[0].pos)){o=u[0].end;advancePastLineBreak();u=u.slice(1)}for(var l=0,f=u;l<f.length;l++){var d=f[l];if(d.kind===2&&e.isRecognizedTripleSlashComment(s,d.pos,d.end)){o=d.end;advancePastLineBreak();continue}break}return o;function advancePastLineBreak(){if(o<s.length){var t=s.charCodeAt(o);if(e.isLineBreak(t)){o++;if(o<s.length&&t===13&&s.charCodeAt(o)===10){o++}}}}}function isValidLocationToAddComment(t,r){return!e.isInComment(t,r)&&!e.isInString(t,r)&&!e.isInTemplateString(t,r)&&!e.isInJSXText(t,r)}t.isValidLocationToAddComment=isValidLocationToAddComment;function needSemicolonBetween(t,r){return(e.isPropertySignature(t)||e.isPropertyDeclaration(t))&&e.isClassOrTypeElement(r)&&r.name.kind===149||e.isStatementButNotDeclaration(t)&&e.isStatementButNotDeclaration(r)}var c;(function(t){function deleteDeclaration(t,r,n,i){switch(i.kind){case 151:{var a=i.parent;if(e.isArrowFunction(a)&&a.parameters.length===1&&!e.findChildOfKind(a,20,n)){t.replaceNodeWithText(n,i,"()")}else{deleteNodeInList(t,r,n,i)}break}case 249:deleteNode(t,n,i,i===n.imports[0].parent?{useNonAdjustedStartPosition:true,useNonAdjustedEndPosition:false}:undefined);break;case 186:var o=i.parent;var s=o.kind===185&&i!==e.last(o.elements);if(s){deleteNode(t,n,i)}else{deleteNodeInList(t,r,n,i)}break;case 237:deleteVariableDeclaration(t,r,n,i);break;case 150:deleteNodeInList(t,r,n,i);break;case 253:var c=i.parent;if(c.elements.length===1){deleteImportBinding(t,n,c)}else{deleteNodeInList(t,r,n,i)}break;case 251:deleteImportBinding(t,n,i);break;default:if(e.isImportClause(i.parent)&&i.parent.name===i){deleteDefaultImport(t,n,i.parent)}else if(e.isCallLikeExpression(i.parent)){deleteNodeInList(t,r,n,i)}else{deleteNode(t,n,i,i.kind===26?{useNonAdjustedEndPosition:true}:undefined)}}}t.deleteDeclaration=deleteDeclaration;function deleteDefaultImport(t,r,n){if(!n.namedBindings){deleteNode(t,r,n.parent)}else{var i=n.name.getStart(r);var a=e.getTokenAtPosition(r,n.name.end);if(a&&a.kind===27){var o=e.skipTrivia(r.text,a.end,false,true);t.deleteRange(r,{pos:i,end:o})}else{deleteNode(t,r,n.name)}}}function deleteImportBinding(t,r,n){if(n.parent.name){var i=e.Debug.assertDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{var a=e.getAncestor(n,249);deleteNode(t,r,a)}}function deleteVariableDeclaration(t,r,n,i){var a=i.parent;if(a.kind===274){t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));return}if(a.declarations.length!==1){deleteNodeInList(t,r,n,i);return}var o=a.parent;switch(o.kind){case 227:case 226:t.replaceNode(n,i,e.createObjectLiteral());break;case 225:deleteNode(t,n,a);break;case 219:deleteNode(t,n,o);break;default:e.Debug.assertNever(o)}}})(c||(c={}));function deleteNode(e,t,n,i){if(i===void 0){i={}}var a=getAdjustedStartPosition(t,n,i,r.FullStart);var o=getAdjustedEndPosition(t,n,i);e.deleteRange(t,{pos:a,end:o})}t.deleteNode=deleteNode;function deleteNodeInList(t,r,n,i){var a=e.Debug.assertDefined(e.formatting.SmartIndenter.getContainingList(i,n));var o=e.indexOfNode(a,i);e.Debug.assert(o!==-1);if(a.length===1){deleteNode(t,n,i);return}e.Debug.assert(!r.has(i),"Deleting a node twice");r.add(i);t.deleteRange(n,{pos:startPositionToDeleteNodeInList(n,i),end:o===a.length-1?getAdjustedEndPosition(n,i,{}):startPositionToDeleteNodeInList(n,a[o+1])})}})(t=e.textChanges||(e.textChanges={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=e.createMultiMap();var n=e.createMap();function diagnosticToString(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function createCodeFixActionNoFixId(e,t,r){return createCodeFixActionWorker(e,diagnosticToString(r),t,undefined,undefined)}t.createCodeFixActionNoFixId=createCodeFixActionNoFixId;function createCodeFixAction(e,t,r,n,i,a){return createCodeFixActionWorker(e,diagnosticToString(r),t,n,diagnosticToString(i),a)}t.createCodeFixAction=createCodeFixAction;function createCodeFixActionWorker(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:undefined}}function registerCodeFix(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds){for(var s=0,c=t.fixIds;s<c.length;s++){var u=c[s];e.Debug.assert(!n.has(u));n.set(u,t)}}}t.registerCodeFix=registerCodeFix;function getSupportedErrorCodes(){return e.arrayFrom(r.keys())}t.getSupportedErrorCodes=getSupportedErrorCodes;function getFixes(t){return e.flatMap(r.get(String(t.errorCode))||e.emptyArray,function(e){return e.getCodeActions(t)})}t.getFixes=getFixes;function getAllFixes(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)}t.getAllFixes=getAllFixes;function createCombinedCodeActions(e,t){return{changes:e,commands:t}}t.createCombinedCodeActions=createCombinedCodeActions;function createFileTextChanges(e,t){return{fileName:e,textChanges:t}}t.createFileTextChanges=createFileTextChanges;function codeFixAll(t,r,n){var i=[];var a=e.textChanges.ChangeTracker.with(t,function(e){return eachDiagnostic(t,r,function(t){return n(e,t,i)})});return createCombinedCodeActions(a,i.length===0?undefined:i)}t.codeFixAll=codeFixAll;function eachDiagnostic(t,r,n){var i=t.program,a=t.sourceFile,o=t.cancellationToken;for(var s=0,c=i.getSemanticDiagnostics(a,o).concat(e.computeSuggestionDiagnostics(a,i,o));s<c.length;s++){var u=c[s];if(e.contains(r,u.code)){n(u)}}}t.eachDiagnostic=eachDiagnostic})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=e.createMap();function registerRefactor(e,t){r.set(e,t)}t.registerRefactor=registerRefactor;function getApplicableRefactors(t){return e.arrayFrom(e.flatMapIterator(r.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?undefined:e.getAvailableActions(t)}))}t.getApplicableRefactors=getApplicableRefactors;function getEditsForRefactor(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}t.getEditsForRefactor=getEditsForRefactor})(t=e.refactor||(e.refactor={}));function getRefactorContextSpan(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,n===undefined?r:n)}e.getRefactorContextSpan=getRefactorContextSpan})(s||(s={}));var s;(function(e){var t;(function(t){var r="addConvertToUnknownForNonOverlappingTypes";var n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,i,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t.start)})}});function makeChange(t,r,n){var i=e.getTokenAtPosition(r,n);var a=e.Debug.assertDefined(e.findAncestor(i,function(t){return e.isAsExpression(t)||e.isTypeAssertion(t)}));var o=e.isAsExpression(a)?e.createAsExpression(a.expression,e.createKeywordTypeNode(143)):e.createTypeAssertion(e.createKeywordTypeNode(143),a.expression);t.replaceNode(r,a.expression,o)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="addMissingInvocationForDecorator";var n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,i,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t.start)})}});function makeChange(t,r,n){var i=e.getTokenAtPosition(r,n);var a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.createCall(a.expression,undefined,undefined);t.replaceNode(r,a.expression,o)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="annotateWithTypeFromJSDoc";var n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=getDeclaration(n.sourceFile,n.span.start);if(!i)return;var a=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,i)});return[t.createCodeFixAction(r,a,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=getDeclaration(t.file,t.start);if(r)doChange(e,t.file,r)})}});function getDeclaration(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,parameterShouldGetTypeFromJSDoc)}function parameterShouldGetTypeFromJSDoc(e){return isDeclarationWithType(e)&&hasUsableJSDoc(e)}t.parameterShouldGetTypeFromJSDoc=parameterShouldGetTypeFromJSDoc;function hasUsableJSDoc(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(hasUsableJSDoc)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function doChange(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);if(i.length)t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);if(a)t.insertNodeBefore(r,e.first(n.parameters),e.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var c=s[o];if(!c.type){var u=e.getJSDocType(c);if(u)t.tryInsertTypeAnnotation(r,c,transformJSDocType(u))}}if(a)t.insertNodeAfter(r,e.last(n.parameters),e.createToken(21));if(!n.type){var l=e.getJSDocReturnType(n);if(l)t.tryInsertTypeAnnotation(r,n,transformJSDocType(l))}}else{var f=e.Debug.assertDefined(e.getJSDocType(n));e.Debug.assert(!n.type);t.tryInsertTypeAnnotation(r,n,transformJSDocType(f))}}function isDeclarationWithType(t){return e.isFunctionLikeDeclaration(t)||t.kind===237||t.kind===153||t.kind===154}function transformJSDocType(t){switch(t.kind){case 284:case 285:return e.createTypeReferenceNode("any",e.emptyArray);case 288:return transformJSDocOptionalType(t);case 287:return transformJSDocType(t.type);case 286:return transformJSDocNullableType(t);case 290:return transformJSDocVariadicType(t);case 289:return transformJSDocFunctionType(t);case 164:return transformJSDocTypeReference(t);default:var r=e.visitEachChild(t,transformJSDocType,undefined);e.setEmitFlags(r,1);return r}}function transformJSDocOptionalType(t){return e.createUnionTypeNode([e.visitNode(t.type,transformJSDocType),e.createTypeReferenceNode("undefined",e.emptyArray)])}function transformJSDocNullableType(t){return e.createUnionTypeNode([e.visitNode(t.type,transformJSDocType),e.createTypeReferenceNode("null",e.emptyArray)])}function transformJSDocVariadicType(t){return e.createArrayTypeNode(e.visitNode(t.type,transformJSDocType))}function transformJSDocFunctionType(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(transformJSDocParameter),t.type)}function transformJSDocParameter(t){var r=t.parent.parameters.indexOf(t);var n=t.type.kind===290&&r===t.parent.parameters.length-1;var i=t.name||(n?"rest":"arg"+r);var a=n?e.createToken(25):t.dotDotDotToken;return e.createParameter(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,transformJSDocType),t.initializer)}function transformJSDocTypeReference(t){var r=t.typeName;var n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t)){return transformJSDocIndexSignature(t)}var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}r=e.createIdentifier(i);if((i==="Array"||i==="Promise")&&!t.typeArguments){n=e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}else{n=e.visitNodes(t.typeArguments,transformJSDocType)}}return e.createTypeReferenceNode(r,n)}function transformJSDocIndexSignature(t){var r=e.createParameter(undefined,undefined,undefined,t.typeArguments[0].kind===135?"n":"s",undefined,e.createTypeReferenceNode(t.typeArguments[0].kind===135?"number":"string",[]),undefined);var n=e.createTypeLiteralNode([e.createIndexSignature(undefined,undefined,[r],t.typeArguments[1])]);e.setEmitFlags(n,1);return n}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="inferFromUsage";var n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.program,o=n.span.start,s=n.errorCode,c=n.cancellationToken,u=n.host;var l=e.getTokenAtPosition(i,o);var f;var d=e.textChanges.ChangeTracker.with(n,function(t){f=doChange(t,i,l,s,a,c,e.returnTrue,u)});var p=f&&e.getNameOfDeclaration(f);return!p||d.length===0?undefined:[t.createCodeFixAction(r,d,[getDiagnostic(s,l),p.getText(i)],r,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[r],getAllCodeActions:function(r){var i=r.sourceFile,a=r.program,o=r.cancellationToken,s=r.host;var c=e.nodeSeenTracker();return t.codeFixAll(r,n,function(t,r){doChange(t,i,e.getTokenAtPosition(r.file,r.start),r.code,a,o,c,s)})}});function getDiagnostic(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function mapSuggestionDiagnostic(t){switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t}function doChange(t,r,n,i,a,o,s,c){if(!e.isParameterPropertyModifier(n.kind)&&n.kind!==72&&n.kind!==25&&n.kind!==100){return undefined}var u=n.parent;i=mapSuggestionDiagnostic(i);switch(i){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(u)&&s(u)||e.isPropertyDeclaration(u)||e.isPropertySignature(u)){annotateVariableDeclaration(t,r,u,a,c,o);return u}if(e.isPropertyAccessExpression(u)){var l=inferTypeForVariableFromUsage(u.name,a,o);var f=getTypeNodeIfAccessible(l,u,a,c);if(f){var d=e.createJSDocTypeTag(e.createJSDocTypeExpression(f),"");addJSDocTags(t,r,e.cast(u.parent.parent,e.isExpressionStatement),[d])}return u}return undefined;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var p=a.getTypeChecker().getSymbolAtLocation(n);if(p&&p.valueDeclaration&&e.isVariableDeclaration(p.valueDeclaration)&&s(p.valueDeclaration)){annotateVariableDeclaration(t,r,p.valueDeclaration,a,c,o);return p.valueDeclaration}return undefined}}var g=e.getContainingFunction(n);if(g===undefined){return undefined}switch(i){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(g)){annotateSetAccessor(t,r,g,a,c,o);return g}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(s(g)){var _=e.cast(u,e.isParameter);annotateParameters(t,r,_,g,a,c,o);return _}return undefined;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:if(e.isGetAccessorDeclaration(g)&&e.isIdentifier(g.name)){annotate(t,r,g,inferTypeForVariableFromUsage(g.name,a,o),a,c);return g}return undefined;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:if(e.isSetAccessorDeclaration(g)){annotateSetAccessor(t,r,g,a,c,o);return g}return undefined;default:return e.Debug.fail(String(i))}}function annotateVariableDeclaration(t,r,n,i,a,o){if(e.isIdentifier(n.name)){annotate(t,r,n,inferTypeForVariableFromUsage(n.name,i,o),i,a)}}function annotateParameters(t,r,n,i,a,o,s){if(!e.isIdentifier(n.name)){return}var c=inferTypeForParametersFromUsage(i,r,a,s)||i.parameters.map(function(t){return{declaration:t,type:e.isIdentifier(t.name)?inferTypeForVariableFromUsage(t.name,a,s):a.getTypeChecker().getAnyType()}});e.Debug.assert(i.parameters.length===c.length);if(e.isInJSFile(i)){annotateJSDocParameters(t,r,c,a,o)}else{var u=e.isArrowFunction(i)&&!e.findChildOfKind(i,20,r);if(u)t.insertNodeBefore(r,e.first(i.parameters),e.createToken(20));for(var l=0,f=c;l<f.length;l++){var d=f[l],p=d.declaration,g=d.type;if(p&&!p.type&&!p.initializer){annotate(t,r,p,g,a,o)}}if(u)t.insertNodeAfter(r,e.last(i.parameters),e.createToken(21))}}function annotateSetAccessor(t,r,n,i,a,o){var s=e.firstOrUndefined(n.parameters);if(s&&e.isIdentifier(n.name)&&e.isIdentifier(s.name)){var c=inferTypeForVariableFromUsage(n.name,i,o);if(c===i.getTypeChecker().getAnyType()){c=inferTypeForVariableFromUsage(s.name,i,o)}if(e.isInJSFile(n)){annotateJSDocParameters(t,r,[{declaration:s,type:c}],i,a)}else{annotate(t,r,s,c,i,a)}}}function annotate(t,r,n,i,a,o){var s=getTypeNodeIfAccessible(i,n,a,o);if(s){if(e.isInJSFile(r)&&n.kind!==153){var c=e.isVariableDeclaration(n)?e.tryCast(n.parent.parent,e.isVariableStatement):n;if(!c){return}var u=e.createJSDocTypeExpression(s);var l=e.isGetAccessorDeclaration(n)?e.createJSDocReturnTag(u,""):e.createJSDocTypeTag(u,"");addJSDocTags(t,r,c,[l])}else{t.tryInsertTypeAnnotation(r,n,s)}}}function annotateJSDocParameters(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(!o){return}var s=e.mapDefined(n,function(t){var r=t.declaration;if(r.initializer||e.getJSDocType(r)||!e.isIdentifier(r.name))return;var n=t.type&&getTypeNodeIfAccessible(t.type,r,i,a);var o=e.getSynthesizedClone(r.name);e.setEmitFlags(o,1536|2048);return n&&e.createJSDocParamTag(o,!!t.isOptional,e.createJSDocTypeExpression(n),"")});addJSDocTags(t,r,o,s)}function addJSDocTags(t,r,n,i){var a=e.mapDefined(n.jsDoc,function(e){return e.comment});var o=e.flatMapToMutable(n.jsDoc,function(e){return e.tags});var s=i.filter(function(e){return!o||!o.some(function(t,r){var n=tryMergeJsdocTags(t,e);if(n)o[r]=n;return!!n})});var c=e.createJSDocComment(a.join("\n"),e.createNodeArray((o||e.emptyArray).concat(s)));t.insertJsdocCommentBefore(r,n,c)}function tryMergeJsdocTags(t,r){if(t.kind!==r.kind){return undefined}switch(t.kind){case 299:{var n=t;var i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.createJSDocParamTag(i.name,i.isBracketed,i.typeExpression,n.comment):undefined}case 300:return e.createJSDocReturnTag(r.typeExpression,t.comment)}}function getTypeNodeIfAccessible(e,t,r,n){var i=r.getTypeChecker();var a=true;var o=function(){a=false};var s=i.typeToTypeNode(e,t,undefined,{trackSymbol:function(e,t,r){a=a&&i.isSymbolAccessible(e,t,r,false).accessibility===0},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:n.readFile,fileExists:n.fileExists,directoryExists:n.directoryExists,getSourceFiles:r.getSourceFiles,getCurrentDirectory:r.getCurrentDirectory,getCommonSourceDirectory:r.getCommonSourceDirectory}});return a?s:undefined}function getReferences(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),function(t){return t.kind!==0?e.tryCast(t.node,e.isIdentifier):undefined})}function inferTypeForVariableFromUsage(e,t,r){var n=getReferences(e,t,r);var a=t.getTypeChecker();var o=i.inferTypesFromReferences(n,a,r);return i.unifyFromContext(o,a)}function inferTypeForParametersFromUsage(t,r,n,a){var o;switch(t.kind){case 157:o=e.findChildOfKind(t,124,r);break;case 197:case 196:var s=t.parent;o=e.isVariableDeclaration(s)&&e.isIdentifier(s.name)?s.name:t.name;break;case 239:case 156:o=t.name;break}if(o){return i.inferTypeForParametersFromReferences(getReferences(o,n,a),t,n,a)}}var i;(function(t){function inferTypesFromReferences(e,t,r){var n={};for(var i=0,a=e;i<a.length;i++){var o=a[i];r.throwIfCancellationRequested();inferTypeFromContext(o,t,n)}return inferFromContext(n,t)}t.inferTypesFromReferences=inferTypesFromReferences;function inferTypeForParametersFromReferences(t,r,n,i){var a=n.getTypeChecker();if(t.length===0){return undefined}if(!r.parameters){return undefined}var o={};for(var s=0,c=t;s<c.length;s++){var u=c[s];i.throwIfCancellationRequested();inferTypeFromContext(u,a,o)}var l=(o.constructContexts||[]).concat(o.callContexts||[]);return r.parameters.map(function(t,o){var s=[];var c=e.isRestParameter(t);var u=false;for(var f=0,d=l;f<d.length;f++){var p=d[f];if(p.argumentTypes.length<=o){u=e.isInJSFile(r);s.push(a.getUndefinedType())}else if(c){for(var g=o;g<p.argumentTypes.length;g++){s.push(a.getBaseTypeOfLiteralType(p.argumentTypes[g]))}}else{s.push(a.getBaseTypeOfLiteralType(p.argumentTypes[o]))}}if(e.isIdentifier(t.name)){var _=inferTypesFromReferences(getReferences(t.name,n,i),a,i);s.push.apply(s,c?e.mapDefined(_,a.getElementTypeOfArrayType):_)}var m=unifyFromContext(s,a);return{type:c?a.createArrayType(m):m,isOptional:u&&!c,declaration:t}})}t.inferTypeForParametersFromReferences=inferTypeForParametersFromReferences;function inferTypeFromContext(t,r,n){while(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}switch(t.parent.kind){case 203:n.isNumber=true;break;case 202:inferTypeFromPrefixUnaryExpressionContext(t.parent,n);break;case 204:inferTypeFromBinaryExpressionContext(t,t.parent,r,n);break;case 271:case 272:inferTypeFromSwitchStatementLabelContext(t.parent,r,n);break;case 191:case 192:if(t.parent.expression===t){inferTypeFromCallExpressionContext(t.parent,r,n)}else{inferTypeFromContextualType(t,r,n)}break;case 189:inferTypeFromPropertyAccessExpressionContext(t.parent,r,n);break;case 190:inferTypeFromPropertyElementExpressionContext(t.parent,t,r,n);break;case 237:{var i=t.parent,a=i.name,o=i.initializer;if(t===a){if(o){addCandidateType(n,r.getTypeAtLocation(o))}break}}default:return inferTypeFromContextualType(t,r,n)}}function inferTypeFromContextualType(t,r,n){if(e.isExpressionNode(t)){addCandidateType(n,r.getContextualType(t))}}function inferTypeFromPrefixUnaryExpressionContext(e,t){switch(e.operator){case 44:case 45:case 39:case 53:t.isNumber=true;break;case 38:t.isNumberOrString=true;break}}function inferTypeFromBinaryExpressionContext(t,r,n,i){switch(r.operatorToken.kind){case 41:case 40:case 42:case 43:case 46:case 47:case 48:case 49:case 50:case 51:case 61:case 63:case 62:case 64:case 65:case 69:case 70:case 71:case 66:case 68:case 67:case 39:case 28:case 31:case 30:case 32:var a=n.getTypeAtLocation(r.left===t?r.right:r.left);if(a.flags&1056){addCandidateType(i,a)}else{i.isNumber=true}break;case 60:case 38:var o=n.getTypeAtLocation(r.left===t?r.right:r.left);if(o.flags&1056){addCandidateType(i,o)}else if(o.flags&296){i.isNumber=true}else if(o.flags&132){i.isString=true}else{i.isNumberOrString=true}break;case 59:case 33:case 35:case 36:case 34:addCandidateType(i,n.getTypeAtLocation(r.left===t?r.right:r.left));break;case 93:if(t===r.left){i.isString=true}break;case 55:if(t===r.left&&(t.parent.parent.kind===237||e.isAssignmentExpression(t.parent.parent,true))){addCandidateType(i,n.getTypeAtLocation(r.right))}break;case 54:case 27:case 94:break}}function inferTypeFromSwitchStatementLabelContext(e,t,r){addCandidateType(r,t.getTypeAtLocation(e.parent.parent.expression))}function inferTypeFromCallExpressionContext(e,t,r){var n={argumentTypes:[],returnType:{}};if(e.arguments){for(var i=0,a=e.arguments;i<a.length;i++){var o=a[i];n.argumentTypes.push(t.getTypeAtLocation(o))}}inferTypeFromContext(e,t,n.returnType);if(e.kind===191){(r.callContexts||(r.callContexts=[])).push(n)}else{(r.constructContexts||(r.constructContexts=[])).push(n)}}function inferTypeFromPropertyAccessExpressionContext(t,r,n){var i=e.escapeLeadingUnderscores(t.name.text);if(!n.properties){n.properties=e.createUnderscoreEscapedMap()}var a=n.properties.get(i)||{};inferTypeFromContext(t,r,a);n.properties.set(i,a)}function inferTypeFromPropertyElementExpressionContext(e,t,r,n){if(t===e.argumentExpression){n.isNumberOrString=true;return}else{var i=r.getTypeAtLocation(e.argumentExpression);var a={};inferTypeFromContext(e,r,a);if(i.flags&296){n.numberIndexContext=a}else{n.stringIndexContext=a}}}function removeLowPriorityInferences(t,r){var n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];for(var s=0,c=r;s<c.length;s++){var u=c[s],l=u.high,f=u.low;if(l(o)){e.Debug.assert(!f(o));n.push(f)}}}return t.filter(function(e){return n.every(function(t){return!t(e)})})}function unifyFromContext(e,t,r){if(r===void 0){r=t.getAnyType()}if(!e.length)return r;var n=t.getUnionType([t.getStringType(),t.getNumberType()]);var i=[{high:function(e){return e===t.getStringType()||e===t.getNumberType()},low:function(e){return e===n}},{high:function(e){return!(e.flags&(1|16384))},low:function(e){return!!(e.flags&(1|16384))}},{high:function(e){return!(e.flags&(98304|1|16384))&&!(t.getObjectFlags(e)&16)},low:function(e){return!!(t.getObjectFlags(e)&16)}}];var a=removeLowPriorityInferences(e,i);var o=a.filter(function(e){return t.getObjectFlags(e)&16});if(o.length){a=a.filter(function(e){return!(t.getObjectFlags(e)&16)});a.push(unifyAnonymousTypes(o,t))}return t.getWidenedType(t.getUnionType(a))}t.unifyFromContext=unifyFromContext;function unifyAnonymousTypes(t,r){if(t.length===1){return t[0]}var n=[];var i=[];var a=[];var o=[];var s=false;var c=false;var u=e.createMultiMap();for(var l=0,f=t;l<f.length;l++){var d=f[l];for(var p=0,g=r.getPropertiesOfType(d);p<g.length;p++){var _=g[p];u.add(_.name,r.getTypeOfSymbolAtLocation(_,_.valueDeclaration))}n.push.apply(n,r.getSignaturesOfType(d,0));i.push.apply(i,r.getSignaturesOfType(d,1));if(d.stringIndexInfo){a.push(d.stringIndexInfo.type);s=s||d.stringIndexInfo.isReadonly}if(d.numberIndexInfo){o.push(d.numberIndexInfo.type);c=c||d.numberIndexInfo.isReadonly}}var m=e.mapEntries(u,function(e,n){var i=n.length<t.length?16777216:0;var a=r.createSymbol(4|i,e);a.type=r.getUnionType(n);return[e,a]});return r.createAnonymousType(t[0].symbol,m,n,i,a.length?r.createIndexInfo(r.getUnionType(a),s):undefined,o.length?r.createIndexInfo(r.getUnionType(o),c):undefined)}function inferFromContext(t,r){var n=[];if(t.isNumber){n.push(r.getNumberType())}if(t.isString){n.push(r.getStringType())}if(t.isNumberOrString){n.push(r.getUnionType([r.getStringType(),r.getNumberType()]))}n.push.apply(n,(t.candidateTypes||[]).map(function(e){return r.getBaseTypeOfLiteralType(e)}));if(t.properties&&hasCallContext(t.properties.get("then"))){var i=getParameterTypeFromCallContexts(0,t.properties.get("then").callContexts,false,r);var a=i.getCallSignatures().map(function(e){return e.getReturnType()});a.push(r.createPromiseType(a.length?r.getUnionType(a,2):r.getAnyType()))}else if(t.properties&&hasCallContext(t.properties.get("push"))){n.push(r.createArrayType(getParameterTypeFromCallContexts(0,t.properties.get("push").callContexts,false,r)))}if(t.numberIndexContext){n.push(r.createArrayType(recur(t.numberIndexContext)))}else if(t.properties||t.callContexts||t.constructContexts||t.stringIndexContext){var o=e.createUnderscoreEscapedMap();var s=[];var c=[];var u=void 0;if(t.properties){t.properties.forEach(function(e,t){var n=r.createSymbol(4,t);n.type=recur(e);o.set(t,n)})}if(t.callContexts){for(var l=0,f=t.callContexts;l<f.length;l++){var d=f[l];s.push(getSignatureFromCallContext(d,r))}}if(t.constructContexts){for(var p=0,g=t.constructContexts;p<g.length;p++){var _=g[p];c.push(getSignatureFromCallContext(_,r))}}if(t.stringIndexContext){u=r.createIndexInfo(recur(t.stringIndexContext),false)}n.push(r.createAnonymousType(undefined,o,s,c,u,undefined))}return n;function recur(e){return unifyFromContext(inferFromContext(e,r),r)}}function getParameterTypeFromCallContexts(t,r,n,i){var a=[];if(r){for(var o=0,s=r;o<s.length;o++){var c=s[o];if(c.argumentTypes.length>t){if(n){a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)}))}else{a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t]))}}}}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return n?i.createArrayType(u):u}return undefined}function getSignatureFromCallContext(t,r){var n=[];for(var i=0;i<t.argumentTypes.length;i++){var a=r.createSymbol(1,e.escapeLeadingUnderscores("arg"+i));a.type=r.getWidenedType(r.getBaseTypeOfLiteralType(t.argumentTypes[i]));n.push(a)}var o=unifyFromContext(inferFromContext(t.returnType,r),r,r.getVoidType());return r.createSignature(undefined,undefined,undefined,n,o,undefined,t.argumentTypes.length,false,false)}function addCandidateType(e,t){if(t&&!(t.flags&1)&&!(t.flags&131072)){(e.candidateTypes||(e.candidateTypes=[])).push(t)}}function hasCallContext(e){return!!e&&!!e.callContexts}})(i||(i={}))})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="convertFunctionToEs6Class";var n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[t.createCodeFixAction(r,i,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return doChange(t,r.file,r.start,e.program.getTypeChecker())})}});function doChange(t,r,n,i){var a=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(!a||!(a.flags&(16|3))){return undefined}var o=a.valueDeclaration;var s;var c;switch(o.kind){case 239:s=o;t.delete(r,o);c=createClassFromFunctionDeclaration(o);break;case 237:s=o.parent.parent;c=createClassFromVariableDeclaration(o);if(o.parent.declarations.length===1){e.copyComments(s,c,r);t.delete(r,s)}else{t.delete(r,o)}break}if(!c){return undefined}e.copyComments(o,c,r);t.insertNodeAfter(r,s,c);function createClassElementsFromSymbol(n){var i=[];if(n.members){n.members.forEach(function(e){var t=createClassElement(e,undefined);if(t){i.push(t)}})}if(n.exports){n.exports.forEach(function(t){var r=createClassElement(t,[e.createToken(116)]);if(r){i.push(r)}})}return i;function shouldConvertDeclaration(t,r){return e.isFunctionLike(r)}function createClassElement(n,i){if(!(n.flags&8192)){return}var a=n.valueDeclaration;var o=a.parent;if(!shouldConvertDeclaration(a,o.right)){return}var s=o.parent&&o.parent.kind===221?o.parent:o;t.delete(r,s);if(!o.right){return e.createProperty([],i,n.name,undefined,undefined,undefined)}switch(o.right.kind){case 196:{var c=o.right;var u=e.concatenate(i,getModifierKindFromSource(c,121));var l=e.createMethod(undefined,u,undefined,a.name,undefined,undefined,c.parameters,undefined,c.body);e.copyComments(o,l,r);return l}case 197:{var f=o.right;var d=f.body;var p=void 0;if(d.kind===218){p=d}else{p=e.createBlock([e.createReturn(d)])}var u=e.concatenate(i,getModifierKindFromSource(f,121));var l=e.createMethod(undefined,u,undefined,a.name,undefined,undefined,f.parameters,undefined,p);e.copyComments(o,l,r);return l}default:{if(e.isSourceFileJS(r)){return}var g=e.createProperty(undefined,i,a.name,undefined,undefined,o.right);e.copyComments(o.parent,g,r);return g}}}}function createClassFromVariableDeclaration(t){var r=t.initializer;if(!r||r.kind!==196){return undefined}if(t.name.kind!==72){return undefined}var n=createClassElementsFromSymbol(t.symbol);if(r.body){n.unshift(e.createConstructor(undefined,undefined,r.parameters,r.body))}var i=getModifierKindFromSource(s,85);var a=e.createClassDeclaration(undefined,i,t.name,undefined,undefined,n);return a}function createClassFromFunctionDeclaration(t){var r=createClassElementsFromSymbol(a);if(t.body){r.unshift(e.createConstructor(undefined,undefined,t.parameters,t.body))}var n=getModifierKindFromSource(t,85);var i=e.createClassDeclaration(undefined,n,t.name,undefined,undefined,r);return i}}function getModifierKindFromSource(t,r){return e.filter(t.modifiers,function(e){return e.kind===r})}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="convertToAsyncFunction";var n=[e.Diagnostics.This_may_be_converted_to_an_async_function.code];var i=true;t.registerCodeFix({errorCodes:n,getCodeActions:function(n){i=true;var a=e.textChanges.ChangeTracker.with(n,function(e){return convertToAsyncFunction(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return i?[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return convertToAsyncFunction(t,r.file,r.start,e.program.getTypeChecker(),e)})}});function convertToAsyncFunction(t,r,n,i,a){var o=e.getTokenAtPosition(r,n);var s;if(e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)){s=o.parent.initializer}else{s=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)}if(!s){return}var c=e.createMap();var u=e.createMap();var l=[];var f=e.isInJSFile(s);var d=getAllPromiseExpressionsToReturn(s,i);var p=renameCollidingVarNames(s,i,c,a,d,u,l);var g=getConstIdentifiers(c);var _=p.body&&e.isBlock(p.body)?getReturnStatementsWithPromiseHandlers(p.body):e.emptyArray;var m={checker:i,synthNamesMap:c,allVarNames:l,setOfExpressionsToReturn:d,constIdentifiers:g,originalTypeMap:u,isInJSFile:f};if(!_.length){return}t.insertLastModifierBefore(r,121,s);function startTransformation(e,n){var i=transformExpression(e,m,e);t.replaceNodeWithNodes(r,n,i)}var y=function(t){e.forEachChild(t,function visit(r){if(e.isCallExpression(r)){startTransformation(r,t)}else if(!e.isFunctionLike(r)){e.forEachChild(r,visit)}})};for(var h=0,v=_;h<v.length;h++){var T=v[h];y(T)}}function getReturnStatementsWithPromiseHandlers(t){var r=[];e.forEachReturnStatement(t,function(t){if(e.isReturnStatementWithFixablePromiseHandler(t))r.push(t)});return r}function getConstIdentifiers(e){var t=[];e.forEach(function(e){if(e.numberOfAssignmentsOriginal===0){t.push(e.identifier)}});return t}function getAllPromiseExpressionsToReturn(t,r){if(!t.body){return e.createMap()}var n=e.createMap();e.forEachChild(t.body,function visit(t){if(isPromiseReturningExpression(t,r,"then")){n.set(e.getNodeId(t).toString(),true);e.forEach(t.arguments,visit)}else if(isPromiseReturningExpression(t,r,"catch")){n.set(e.getNodeId(t).toString(),true);e.forEachChild(t,visit)}else if(isPromiseReturningExpression(t,r)){n.set(e.getNodeId(t).toString(),true)}else{e.forEachChild(t,visit)}});return n}function isPromiseReturningExpression(t,r,n){var i=n?e.isCallExpression(t):e.isExpression(t);var a=i&&(!n||e.hasPropertyAccessExpressionWithName(t,n));var o=a&&r.getTypeAtLocation(t);return!!(o&&r.getPromisedTypeOfPromise(o))}function declaredInFile(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}function renameCollidingVarNames(t,r,n,i,a,o,s){var c=e.createMap();var u=e.createMap();e.forEachChild(t,function visit(t){if(!e.isIdentifier(t)){e.forEachChild(t,visit);return}var a=r.getSymbolAtLocation(t);var o=a&&declaredInFile(a,i.sourceFile);if(a&&o){var l=r.getTypeAtLocation(t);var f=getLastCallSignature(l,r);var d=e.getSymbolId(a).toString();if(f&&!e.isFunctionLikeDeclaration(t.parent)&&!n.has(d)){var p=e.firstOrUndefined(f.parameters);var g=p&&e.isParameter(p.valueDeclaration)&&e.tryCast(p.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result");var _=getNewNameIfConflict(g,u);n.set(d,_);s.push({identifier:_.identifier,symbol:a});addNameToFrequencyMap(u,g.text,a)}else if(t.parent&&(e.isParameter(t.parent)||e.isVariableDeclaration(t.parent))){var m=t.text;var y=u.get(m);if(y&&y.some(function(e){return e!==a})){var h=getNewNameIfConflict(t,u);c.set(d,h.identifier);n.set(d,h);s.push({identifier:h.identifier,symbol:a});addNameToFrequencyMap(u,m,a)}else{var v=e.getSynthesizedDeepClone(t);c.set(d,v);n.set(d,{identifier:v,types:[],numberOfAssignmentsOriginal:s.filter(function(e){return e.identifier.text===t.text}).length});if(e.isParameter(t.parent)&&isExpressionOrCallOnTypePromise(t.parent.parent)||e.isVariableDeclaration(t.parent)){s.push({identifier:v,symbol:a});addNameToFrequencyMap(u,m,a)}}}}});return e.getSynthesizedDeepCloneWithRenames(t,true,c,r,deepCloneCallback);function isExpressionOrCallOnTypePromise(t){var n=t.parent;if(e.isCallExpression(n)||e.isIdentifier(n)&&!a.get(e.getNodeId(n).toString())){var i=r.getTypeAtLocation(n);var o=i&&r.getPromisedTypeOfPromise(i);return!!o}return false}function deepCloneCallback(t,i){if(e.isIdentifier(t)){var s=r.getSymbolAtLocation(t);var c=s&&e.getSymbolId(s).toString();var u=s&&n.get(c);if(u){var l=r.getTypeAtLocation(t);o.set(e.getNodeId(i).toString(),l)}}var f=a.get(e.getNodeId(t).toString());if(f!==undefined){a.delete(e.getNodeId(t).toString());a.set(e.getNodeId(i).toString(),f)}}}function addNameToFrequencyMap(e,t,r){if(e.has(t)){e.get(t).push(r)}else{e.set(t,[r])}}function getNewNameIfConflict(t,r){var n=(r.get(t.text)||e.emptyArray).length;var i=0;var a=n===0?t:e.createIdentifier(t.text+"_"+n);return{identifier:a,types:[],numberOfAssignmentsOriginal:i}}function transformExpression(t,r,n,a){if(!t){return e.emptyArray}var o=e.isIdentifier(t)&&r.originalTypeMap.get(e.getNodeId(t).toString());var s=o||r.checker.getTypeAtLocation(t);if(e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"then")&&s&&!!r.checker.getPromisedTypeOfPromise(s)){return transformThen(t,r,n,a)}else if(e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"catch")&&s&&!!r.checker.getPromisedTypeOfPromise(s)){return transformCatch(t,r,a)}else if(e.isPropertyAccessExpression(t)){return transformExpression(t.expression,r,n,a)}else if(s&&r.checker.getPromisedTypeOfPromise(s)){return transformPromiseCall(t,r,a)}i=false;return e.emptyArray}function transformCatch(t,r,n){var i=t.arguments[0];var a=getArgName(i,r);var o=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString());if(n&&!o){n.numberOfAssignmentsOriginal=2;r.synthNamesMap.forEach(function(e,t){if(e.identifier.text===n.identifier.text){var i=createUniqueSynthName(n);r.synthNamesMap.set(t,i)}});if(r.constIdentifiers.some(function(e){return e.text===n.identifier.text})){r.constIdentifiers.push(createUniqueSynthName(n).identifier)}}var s=e.createBlock(transformExpression(t.expression,r,t,n));var c=getTransformationBody(i,n,a,t,r);var u=a?a.identifier.text:"e";var l=e.createCatchClause(u,e.createBlock(c));var f;if(n&&!o){var d=n.types;var p=r.checker.getUnionType(d,2);var g=r.isInJSFile?undefined:r.checker.typeToTypeNode(p);var _=[e.createVariableDeclaration(e.getSynthesizedDeepClone(n.identifier),g)];f=e.createVariableStatement(undefined,e.createVariableDeclarationList(_,1))}var m=e.createTry(s,l,undefined);return f?[f,m]:[m]}function createUniqueSynthName(t){var r=e.createOptimisticUniqueName(t.identifier.text);var n={identifier:r,types:[],numberOfAssignmentsOriginal:0};return n}function transformThen(t,r,n,i){var a=t.arguments,o=a[0],s=a[1];if(!o){return transformExpression(t.expression,r,n)}var c=getArgName(o,r);var u=getTransformationBody(o,i,c,t,r);if(s){var l=getArgName(s,r);var f=e.createBlock(transformExpression(t.expression,r,t,c).concat(u));var d=getTransformationBody(s,i,l,t,r);var p=l?l.identifier.text:"e";var g=e.createCatchClause(p,e.createBlock(d));return[e.createTry(f,g,undefined)]}return transformExpression(t.expression,r,t,c).concat(u)}function getFlagOfIdentifier(e,t){var r=t.some(function(t){return t.text===e.text});return r?2:1}function transformPromiseCall(t,r,n){var i=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString());var a=t.original?t.original.parent:t.parent;if(n&&!i&&(!a||e.isPropertyAccessExpression(a))){return createTransformedStatement(n,e.createAwait(t),r)}else if(!n&&!i&&(!a||e.isPropertyAccessExpression(a))){return[e.createStatement(e.createAwait(t))]}return[e.createReturn(e.getSynthesizedDeepClone(t))]}function createTransformedStatement(t,r,n){if(!t||t.identifier.text.length===0){return[e.createStatement(r)]}if(t.types.length<t.numberOfAssignmentsOriginal){return[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]}return[e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(t.identifier),undefined,r)],getFlagOfIdentifier(t.identifier,n.constIdentifiers)))]}function getTransformationBody(t,r,n,a,o){var s=o.setOfExpressionsToReturn.get(e.getNodeId(a).toString());switch(t.kind){case 96:break;case 72:if(!n){break}var c=e.createCall(e.getSynthesizedDeepClone(t),undefined,[n.identifier]);if(s){return[e.createReturn(c)]}var u=o.originalTypeMap.get(e.getNodeId(t).toString())||o.checker.getTypeAtLocation(t);var l=o.checker.getSignaturesOfType(u,0);if(!l.length){i=false;break}var f=l[0].getReturnType();var d=createTransformedStatement(r,e.createAwait(c),o);if(r){r.types.push(f)}return d;case 196:case 197:{var p=t.body;if(e.isBlock(p)){var g=[];var _=false;for(var m=0,y=p.statements;m<y.length;m++){var h=y[m];if(e.isReturnStatement(h)){_=true}if(e.isReturnStatementWithFixablePromiseHandler(h)){g=g.concat(getInnerTransformationBody(o,[h],r))}else{g.push(h)}}return s?g.map(function(t){return e.getSynthesizedDeepClone(t)}):removeReturns(g,r===undefined?undefined:r.identifier,o,_)}else{var v=e.isFixablePromiseHandler(p)?[e.createReturn(p)]:e.emptyArray;var T=getInnerTransformationBody(o,v,r);if(T.length>0){return T}var S=o.checker.getTypeAtLocation(t);var b=getLastCallSignature(S,o.checker).getReturnType();var x=e.getSynthesizedDeepClone(p);var C=!!o.checker.getPromisedTypeOfPromise(b)?e.createAwait(x):x;if(!s){var E=createTransformedStatement(r,C,o);if(r){r.types.push(b)}return E}else{return[e.createReturn(C)]}}}default:i=false;break}return e.emptyArray}function getLastCallSignature(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function removeReturns(t,r,n,i){var a=[];for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var u=isPromiseReturningExpression(c.expression,n.checker)?e.createAwait(c.expression):c.expression;if(r===undefined){a.push(e.createExpressionStatement(u))}else{a.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(r,undefined,u)],getFlagOfIdentifier(r,n.constIdentifiers))))}}}else{a.push(e.getSynthesizedDeepClone(c))}}if(!i&&r!==undefined){a.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(r,undefined,e.createIdentifier("undefined"))],getFlagOfIdentifier(r,n.constIdentifiers))))}return a}function getInnerTransformationBody(t,r,n){var i=[];for(var a=0,o=r;a<o.length;a++){var s=o[a];e.forEachChild(s,function visit(r){if(e.isCallExpression(r)){var a=transformExpression(r,t,r,n);i=i.concat(a);if(i.length>0){return}}else if(!e.isFunctionLike(r)){e.forEachChild(r,visit)}})}return i}function getArgName(t,r){var n=0;var i=[];var a;if(e.isFunctionLikeDeclaration(t)){if(t.parameters.length>0){var o=t.parameters[0].name;a=getMapEntryOrDefault(o)}}else if(e.isIdentifier(t)){a=getMapEntryOrDefault(t)}if(!a||a.identifier.text==="undefined"){return undefined}return a;function getMapEntryOrDefault(t){var a=getOriginalNode(t);var o=getSymbol(a);if(!o){return{identifier:t,types:i,numberOfAssignmentsOriginal:n}}var s=r.synthNamesMap.get(e.getSymbolId(o).toString());return s||{identifier:t,types:i,numberOfAssignmentsOriginal:n}}function getSymbol(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}function getOriginalNode(e){return e.original?e.original:e}}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.preferences;var o=e.textChanges.ChangeTracker.with(r,function(t){var r=convertFileToEs6Module(n,i.getTypeChecker(),t,i.getCompilerOptions().target,e.getQuotePreference(n,a));if(r){for(var o=0,s=i.getSourceFiles();o<s.length;o++){var c=s[o];fixImportOfModuleExports(c,n,t,e.getQuotePreference(c,a))}}});return[t.createCodeFixActionNoFixId("convertToEs6Module",o,e.Diagnostics.Convert_to_ES6_module)]}});function fixImportOfModuleExports(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a];var c=e.getResolvedModule(t,s.text);if(!c||c.resolvedFileName!==r.fileName){continue}var u=e.importFromModuleSpecifier(s);switch(u.kind){case 248:n.replaceNode(t,u,e.makeImport(u.name,undefined,s,i));break;case 191:if(e.isRequireCall(u,false)){n.replaceNode(t,u,e.createPropertyAccess(e.getSynthesizedDeepClone(u),"default"))}break}}}function convertFileToEs6Module(t,r,n,i,a){var o={original:collectFreeIdentifiers(t),additional:e.createMap()};var s=collectExportRenames(t,r,o);convertExportsAccesses(t,s,n);var c=false;for(var u=0,l=t.statements;u<l.length;u++){var f=l[u];var d=convertStatement(t,f,r,n,o,i,s,a);c=c||d}return c}function collectExportRenames(t,r,n){var i=e.createMap();forEachExportReference(t,function(t){var a=t.name,o=a.text,s=a.originalKeywordKind;if(!i.has(o)&&(s!==undefined&&e.isNonContextualKeyword(s)||r.resolveName(t.name.text,t,67220415,true))){i.set(o,makeUniqueName("_"+o,n))}});return i}function convertExportsAccesses(t,r,n){forEachExportReference(t,function(i,a){if(a){return}var o=i.name.text;n.replaceNode(t,i,e.createIdentifier(r.get(o)||o))})}function forEachExportReference(t,r){t.forEachChild(function recur(n){if(e.isPropertyAccessExpression(n)&&e.isExportsOrModuleExportsOrAlias(t,n.expression)){var i=n.parent;r(n,e.isBinaryExpression(i)&&i.left===n&&i.operatorToken.kind===59)}n.forEachChild(recur)})}function convertStatement(t,r,n,i,a,o,s,c){switch(r.kind){case 219:convertVariableStatement(t,r,i,n,a,o,c);return false;case 221:{var u=r.expression;switch(u.kind){case 191:{if(e.isRequireCall(u,true)){i.replaceNode(t,r,e.makeImport(undefined,undefined,u.arguments[0],c))}return false}case 204:{var l=u.operatorToken;return l.kind===59&&convertAssignment(t,n,u,i,s)}}}default:return false}}function convertVariableStatement(t,r,n,i,a,o,s){var c=r.declarationList;var u=false;var l=e.flatMap(c.declarations,function(r){var l=r.name,f=r.initializer;if(f){if(e.isExportsOrModuleExportsOrAlias(t,f)){u=true;return[]}else if(e.isRequireCall(f,true)){u=true;return convertSingleImport(t,l,f.arguments[0],n,i,a,o,s)}else if(e.isPropertyAccessExpression(f)&&e.isRequireCall(f.expression,true)){u=true;return convertPropertyAccessImport(l,f.name.text,f.expression.arguments[0],a,s)}}return e.createVariableStatement(undefined,e.createVariableDeclarationList([r],c.flags))});if(u){n.replaceNodeWithNodes(t,r,l)}}function convertPropertyAccessImport(t,r,n,i,a){switch(t.kind){case 184:case 185:{var o=makeUniqueName(r,i);return[makeSingleImport(o,r,n,a),makeConst(undefined,t,e.createIdentifier(o))]}case 72:return[makeSingleImport(t.text,r,n,a)];default:return e.Debug.assertNever(t)}}function convertAssignment(t,r,n,i,a){var o=n.left,s=n.right;if(!e.isPropertyAccessExpression(o)){return false}if(e.isExportsOrModuleExportsOrAlias(t,o)){if(e.isExportsOrModuleExportsOrAlias(t,s)){i.delete(t,n.parent)}else{var c=e.isObjectLiteralExpression(s)?tryChangeModuleExportsObject(s):e.isRequireCall(s,true)?convertReExportAll(s.arguments[0],r):undefined;if(c){i.replaceNodeWithNodes(t,n.parent,c[0]);return c[1]}else{i.replaceRangeWithText(t,e.createRange(o.getStart(t),s.pos),"export default");return true}}}else if(e.isExportsOrModuleExportsOrAlias(t,o.expression)){convertNamedExport(t,n,i,a)}return false}function tryChangeModuleExportsObject(t){var r=e.mapAllOrFail(t.properties,function(t){switch(t.kind){case 158:case 159:case 276:case 277:return undefined;case 275:return!e.isIdentifier(t.name)?undefined:convertExportsDotXEquals_replaceNode(t.name.text,t.initializer);case 156:return!e.isIdentifier(t.name)?undefined:functionExpressionToDeclaration(t.name.text,[e.createToken(85)],t);default:e.Debug.assertNever(t)}});return r&&[r,false]}function convertNamedExport(t,r,n,i){var a=r.left.name.text;var o=i.get(a);if(o!==undefined){var s=[makeConst(undefined,o,r.right),makeExportDeclaration([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else{convertExportsPropertyAssignment(r,t,n)}}function convertReExportAll(t,r){var n=t.text;var i=r.getSymbolAtLocation(t);var a=i?i.exports:e.emptyUnderscoreEscapedMap;return a.has("export=")?[[reExportDefault(n)],true]:!a.has("default")?[[reExportStar(n)],false]:a.size>1?[[reExportStar(n),reExportDefault(n)],true]:[[reExportDefault(n)],true]}function reExportStar(e){return makeExportDeclaration(undefined,e)}function reExportDefault(t){return makeExportDeclaration([e.createExportSpecifier(undefined,"default")],t)}function convertExportsPropertyAssignment(t,r,n){var i=t.left,a=t.right,o=t.parent;var s=i.name.text;if((e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))&&(!a.name||a.name.text===s)){n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(85),{suffix:" "});if(!a.name)n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);if(c)n.delete(r,c)}else{n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.createToken(85),e.createToken(77)],{joiner:" ",suffix:" "})}}function convertExportsDotXEquals_replaceNode(t,r){var n=[e.createToken(85)];switch(r.kind){case 196:{var i=r.name;if(i&&i.text!==t){return exportConst()}}case 197:return functionExpressionToDeclaration(t,n,r);case 209:return classExpressionToDeclaration(t,n,r);default:return exportConst()}function exportConst(){return makeConst(n,e.createIdentifier(t),r)}}function convertSingleImport(r,n,i,a,o,s,c,u){switch(n.kind){case 184:{var l=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?undefined:makeImportSpecifier(t.propertyName&&t.propertyName.text,t.name.text)});if(l){return[e.makeImport(undefined,l,i,u)]}}case 185:{var f=makeUniqueName(t.moduleSpecifierToValidIdentifier(i.text,c),s);return[e.makeImport(e.createIdentifier(f),undefined,i,u),makeConst(undefined,e.getSynthesizedDeepClone(n),e.createIdentifier(f))]}case 72:return convertSingleIdentifierImport(r,n,i,a,o,s,u);default:return e.Debug.assertNever(n)}}function convertSingleIdentifierImport(t,r,n,i,a,o,s){var c=a.getSymbolAtLocation(r);var u=e.createMap();var l=false;for(var f=0,d=o.original.get(r.text);f<d.length;f++){var p=d[f];if(a.getSymbolAtLocation(p)!==c||p===r){continue}var g=p.parent;if(e.isPropertyAccessExpression(g)){var _=g.expression,m=g.name.text;e.Debug.assert(_===p);var y=u.get(m);if(y===undefined){y=makeUniqueName(m,o);u.set(m,y)}i.replaceNode(t,g,e.createIdentifier(y))}else{l=true}}var h=u.size===0?undefined:e.arrayFrom(e.mapIterator(u.entries(),function(t){var r=t[0],n=t[1];return e.createImportSpecifier(r===n?undefined:e.createIdentifier(r),e.createIdentifier(n))}));if(!h){l=true}return[e.makeImport(l?e.getSynthesizedDeepClone(r):undefined,h,n,s)]}function makeUniqueName(e,t){while(t.original.has(e)||t.additional.has(e)){e="_"+e}t.additional.set(e,true);return e}function collectFreeIdentifiers(t){var r=e.createMultiMap();forEachFreeIdentifier(t,function(e){return r.add(e.text,e)});return r}function forEachFreeIdentifier(t,r){if(e.isIdentifier(t)&&isFreeIdentifier(t))r(t);t.forEachChild(function(e){return forEachFreeIdentifier(e,r)})}function isFreeIdentifier(e){var t=e.parent;switch(t.kind){case 189:return t.name!==e;case 186:return t.propertyName!==e;case 253:return t.propertyName!==e;default:return true}}function functionExpressionToDeclaration(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function classExpressionToDeclaration(t,r,n){return e.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),e.getSynthesizedDeepClones(n.members))}function makeSingleImport(t,r,n,i){return r==="default"?e.makeImport(e.createIdentifier(t),undefined,n,i):e.makeImport(undefined,[makeImportSpecifier(r,t)],n,i)}function makeImportSpecifier(t,r){return e.createImportSpecifier(t!==undefined&&t!==r?e.createIdentifier(t):undefined,e.createIdentifier(r))}function makeConst(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,undefined,n)],2))}function makeExportDeclaration(t,r){return e.createExportDeclaration(undefined,undefined,t&&e.createNamedExports(t),r===undefined?undefined:e.createLiteral(r))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="correctQualifiedNameToIndexedAccessType";var n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=getQualifiedName(n.sourceFile,n.span.start);if(!i)return undefined;var a=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,i)});var o=i.left.text+'["'+i.right.text+'"]';return[t.createCodeFixAction(r,a,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,o],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=getQualifiedName(t.file,t.start);if(r){doChange(e,t.file,r)}})}});function getQualifiedName(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);e.Debug.assert(!!n,"Expected position to be owned by a qualified name.");return e.isIdentifier(n.left)?n:undefined}function doChange(t,r,n){var i=n.right.text;var a=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(n.left,undefined),e.createLiteralTypeNode(e.createLiteral(i)));t.replaceNode(r,n,a)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code];var n="fixClassIncorrectlyImplementsInterface";t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program,a=r.sourceFile,o=r.span;var s=getClass(a,o.start);var c=i.getTypeChecker();return e.mapDefined(e.getClassImplementsHeritageClauseElements(s),function(i){var o=e.textChanges.ChangeTracker.with(r,function(e){return addMissingDeclarations(c,i,a,s,e,r.preferences)});return o.length===0?undefined:t.createCodeFixAction(n,o,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[n],getAllCodeActions:function(n){var i=e.createMap();return t.codeFixAll(n,r,function(t,r){var a=getClass(r.file,r.start);if(e.addToSeen(i,e.getNodeId(a))){for(var o=0,s=e.getClassImplementsHeritageClauseElements(a);o<s.length;o++){var c=s[o];addMissingDeclarations(n.program.getTypeChecker(),c,r.file,a,t,n.preferences)}}})}});function getClass(t,r){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(t,r)))}function symbolPointsToNonPrivateMember(t){return!(e.getModifierFlags(t.valueDeclaration)&8)}function addMissingDeclarations(r,n,i,a,o,s){var c=getHeritageClauseSymbolTable(a,r);var u=r.getTypeAtLocation(n);var l=r.getPropertiesOfType(u);var f=l.filter(e.and(symbolPointsToNonPrivateMember,function(e){return!c.has(e.escapedName)}));var d=r.getTypeAtLocation(a);if(!d.getNumberIndexType()){createMissingIndexSignatureDeclaration(u,1)}if(!d.getStringIndexType()){createMissingIndexSignatureDeclaration(u,0)}t.createMissingMemberNodes(a,f,r,s,function(e){return o.insertNodeAtClassStart(i,a,e)});function createMissingIndexSignatureDeclaration(e,t){var n=r.getIndexInfoOfType(e,t);if(n){o.insertNodeAtClassStart(i,a,r.indexInfoToIndexSignatureDeclaration(n,t,a))}}}function getHeritageClauseSymbolTable(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n);var a=r.getPropertiesOfType(i);return e.createSymbolTable(a.filter(symbolPointsToNonPrivateMember))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){t.importFixId="fixMissingImport";var r=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span;var o=getFixesInfo(t,r,a.start);if(!o)return undefined;var s=o.fixes,c=o.symbolName;var u=e.getQuotePreference(i,n);return s.map(function(e){return codeActionForFix(t,i,c,e,u)})},fixIds:[t.importFixId],getAllCodeActions:function(n){var i=n.sourceFile,a=n.preferences;var o=[];var s=[];var c=e.createMap();var u=e.createMap();t.eachDiagnostic(n,r,function(t){var r=getFixesInfo(n,t.code,t.start);if(!r||!r.fixes.length)return;var i=r.fixes,a=r.symbolName;var l=e.first(i);switch(l.kind){case 0:o.push(l);break;case 1:s.push(l);break;case 2:{var f=l.importClause,d=l.importKind;var p=String(e.getNodeId(f));var g=c.get(p);if(!g){c.set(p,g={importClause:f,defaultImport:undefined,namedImports:[]})}if(d===0){e.pushIfUnique(g.namedImports,a)}else{e.Debug.assert(g.defaultImport===undefined||g.defaultImport===a);g.defaultImport=a}break}case 3:{var _=l.moduleSpecifier,d=l.importKind;var g=u.get(_);if(!g){u.set(_,g={defaultImport:undefined,namedImports:[],namespaceLikeImport:undefined})}switch(d){case 1:e.Debug.assert(g.defaultImport===undefined||g.defaultImport===a);g.defaultImport=a;break;case 0:e.pushIfUnique(g.namedImports,a);break;case 3:case 2:e.Debug.assert(g.namespaceLikeImport===undefined||g.namespaceLikeImport.name===a);g.namespaceLikeImport={importKind:d,name:a};break}break}default:e.Debug.assertNever(l)}});return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,function(t){var r=e.getQuotePreference(i,a);for(var n=0,l=o;n<l.length;n++){var f=l[n];addNamespaceQualifier(t,i,f)}for(var d=0,p=s;d<p.length;d++){var f=p[d];addImportType(t,i,f,r)}c.forEach(function(e){var r=e.importClause,n=e.defaultImport,a=e.namedImports;doAddExistingFix(t,i,r,n,a)});u.forEach(function(e,n){addNewImports(t,i,n,r,e)})}))}});var i;(function(e){e[e["UseNamespace"]=0]="UseNamespace";e[e["ImportType"]=1]="ImportType";e[e["AddToExisting"]=2]="AddToExisting";e[e["AddNew"]=3]="AddNew"})(i||(i={}));var a;(function(e){e[e["Named"]=0]="Named";e[e["Default"]=1]="Default";e[e["Namespace"]=2]="Namespace";e[e["Equals"]=3]="Equals"})(a||(a={}));function getImportCompletionAction(t,r,n,i,a,o,s,c,u){var l=getAllReExportingModules(t,r,i,n,o.getCompilerOptions(),o.getTypeChecker(),o.getSourceFiles());e.Debug.assert(l.some(function(e){return e.moduleSymbol===r}));var f=e.first(getNewImportInfos(o,n,c,l,a,u)).moduleSpecifier;var d=e.first(getFixForImport(l,i,c,o,n,a,u));return{moduleSpecifier:f,codeAction:codeFixActionToCodeAction(codeActionForFix({host:a,formatContext:s},n,i,d,e.getQuotePreference(n,u)))}}t.getImportCompletionAction=getImportCompletionAction;function codeFixActionToCodeAction(e){var t=e.description,r=e.changes,n=e.commands;return{description:t,changes:r,commands:n}}function getAllReExportingModules(t,r,n,i,a,o,s){var c=[];forEachExternalModule(o,s,function(s,u){if(u&&s!==r&&e.startsWith(i.fileName,e.getDirectoryPath(u.fileName))){return}var l=getDefaultLikeExportInfo(s,o,a);if(l&&l.name===n&&e.skipAlias(l.symbol,o)===t){c.push({moduleSymbol:s,importKind:l.kind,exportedSymbolIsTypeOnly:isTypeOnlySymbol(l.symbol,o)})}for(var f=0,d=o.getExportsOfModule(s);f<d.length;f++){var p=d[f];if(p.name===n&&e.skipAlias(p,o)===t){c.push({moduleSymbol:s,importKind:0,exportedSymbolIsTypeOnly:isTypeOnlySymbol(p,o)})}}});return c}function isTypeOnlySymbol(t,r){return!(e.skipAlias(t,r).flags&67220415)}function getFixForImport(t,r,n,i,a,o,s){var c=i.getTypeChecker();var u=e.flatMap(t,function(e){return getExistingImportDeclarations(e,c,a)});var l=n===undefined?undefined:tryUseExistingNamespaceImport(u,r,n,c);var f=tryAddToExistingImport(u);var d=f?[f]:getFixesForAddImport(t,u,i,a,n,o,s);return(l?[l]:e.emptyArray).concat(d)}function tryUseExistingNamespaceImport(t,r,n,i){return e.firstDefined(t,function(t){var a=t.declaration;var o=getNamespaceImportName(a);if(o){var s=i.getAliasedSymbol(i.getSymbolAtLocation(o));if(s&&s.exports.has(e.escapeLeadingUnderscores(r))){return{kind:0,namespacePrefix:o.text,position:n}}}})}function tryAddToExistingImport(t){return e.firstDefined(t,function(e){var t=e.declaration,r=e.importKind;if(t.kind!==249)return undefined;var n=t.importClause;if(!n)return undefined;var i=n.name,a=n.namedBindings;return r===1&&!i||r===0&&(!a||a.kind===252)?{kind:2,importClause:n,importKind:r}:undefined})}function getNamespaceImportName(t){if(t.kind===249){var r=t.importClause&&e.isImportClause(t.importClause)&&t.importClause.namedBindings;return r&&r.kind===251?r.name:undefined}else{return t.name}}function getExistingImportDeclarations(t,r,n){var i=t.moduleSymbol,a=t.importKind,o=t.exportedSymbolIsTypeOnly;return o&&e.isSourceFileJS(n)?e.emptyArray:e.mapDefined(n.imports,function(t){var n=e.importFromModuleSpecifier(t);return(n.kind===249||n.kind===248)&&r.getSymbolAtLocation(t)===i?{declaration:n,importKind:a}:undefined})}function getNewImportInfos(t,r,n,i,a,o){var s=e.isSourceFileJS(r);var c=e.flatMap(i,function(i){var c=i.moduleSymbol,u=i.importKind,l=i.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(c,t.getCompilerOptions(),r,a,t.getSourceFiles(),o,t.redirectTargetsMap).map(function(t){return l&&s?{kind:1,moduleSpecifier:t,position:e.Debug.assertDefined(n)}:{kind:3,moduleSpecifier:t,importKind:u}})});return e.sort(c,function(e,t){return e.moduleSpecifier.length-t.moduleSpecifier.length})}function getFixesForAddImport(t,r,n,i,a,o,s){var c=e.firstDefined(r,newImportInfoFromExistingSpecifier);return c?[c]:getNewImportInfos(n,i,a,t,o,s)}function newImportInfoFromExistingSpecifier(t){var r=t.declaration,n=t.importKind;var i=r.kind===249?r.moduleSpecifier:r.moduleReference.kind===259?r.moduleReference.expression:undefined;return i&&e.isStringLiteral(i)?{kind:3,moduleSpecifier:i.text,importKind:n}:undefined}function getFixesInfo(t,r,i){var a=e.getTokenAtPosition(t.sourceFile,i);var o=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?getFixesInfoForUMDImport(t,a):e.isIdentifier(a)?getFixesInfoForNonUMDImport(t,a):undefined;return o&&n({},o,{fixes:e.sort(o.fixes,function(e,t){return e.kind-t.kind})})}function getFixesInfoForUMDImport(t,r){var n=t.sourceFile,i=t.program,a=t.host,o=t.preferences;var s=i.getTypeChecker();var c=getUmdSymbol(r,s);if(!c)return undefined;var u=s.getAliasedSymbol(c);var l=c.name;var f=[{moduleSymbol:u,importKind:getUmdImportKind(i.getCompilerOptions()),exportedSymbolIsTypeOnly:false}];var d=getFixForImport(f,l,e.isIdentifier(r)?r.getStart(n):undefined,i,n,a,o);return{fixes:d,symbolName:l}}function getUmdSymbol(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):undefined;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,67220415,false),e.isUMDExportSymbol):undefined}function getUmdImportKind(t){if(e.getAllowSyntheticDefaultImports(t)){return 1}var r=e.getEmitModuleKind(t);switch(r){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(r)}}function getFixesInfoForNonUMDImport(t,r){var n=t.sourceFile,i=t.program,a=t.cancellationToken,o=t.host,s=t.preferences;var c=i.getTypeChecker();var u=e.isJsxOpeningLikeElement(r.parent)&&r.parent.tagName===r&&(e.isIntrinsicJsxName(r.text)||c.resolveName(r.text,r,67108863,false))?c.getJsxNamespace():r.text;e.Debug.assert(u!=="default");var l=e.arrayFrom(e.flatMapIterator(getExportInfos(u,e.getMeaningFromLocation(r),a,n,c,i).entries(),function(e){var t=e[0],a=e[1];return getFixForImport(a,u,r.getStart(n),i,n,o,s)}));return{fixes:l,symbolName:u}}function getExportInfos(t,r,n,i,a,o){var s=e.createMultiMap();function addSymbol(t,r,n){s.add(e.getUniqueSymbolId(r,a).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:isTypeOnlySymbol(r,a)})}forEachExternalModuleToImportFrom(a,i,o.getSourceFiles(),function(e){n.throwIfCancellationRequested();var i=getDefaultLikeExportInfo(e,a,o.getCompilerOptions());if(i&&i.name===t&&symbolHasMeaning(i.symbolForMeaning,r)){addSymbol(e,i.symbol,i.kind)}var s=a.tryGetMemberInModuleExportsAndProperties(t,e);if(s&&symbolHasMeaning(s,r)){addSymbol(e,s,0)}});return s}function getDefaultLikeExportInfo(e,t,r){var i=getDefaultLikeExportWorker(e,t);if(!i)return undefined;var a=i.symbol,o=i.kind;var s=getDefaultExportInfoWorker(a,e,t,r);return s&&n({symbol:a,kind:o},s)}function getDefaultLikeExportWorker(e,t){var r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,kind:1};var n=t.resolveExternalModuleSymbol(e);return n===e?undefined:{symbol:n,kind:3}}function getDefaultExportInfoWorker(t,r,n,i){var a=e.getLocalSymbolForExportDefault(t);if(a)return{symbolForMeaning:a,name:a.name};var o=getNameForExportDefault(t);if(o!==undefined)return{symbolForMeaning:t,name:o};if(t.flags&2097152){var s=n.getImmediateAliasedSymbol(t);return s&&getDefaultExportInfoWorker(s,e.Debug.assertDefined(s.parent),n,i)}else{return{symbolForMeaning:t,name:moduleSymbolToValidIdentifier(r,i.target)}}}function getNameForExportDefault(t){return t.declarations&&e.firstDefined(t.declarations,function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression)){return t.expression.text}}else if(e.isExportSpecifier(t)){e.Debug.assert(t.name.text==="default");return t.propertyName&&t.propertyName.text}})}function codeActionForFix(r,n,i,a,o){var s;var c=e.textChanges.ChangeTracker.with(r,function(e){s=codeActionForFixWorker(e,n,i,a,o)});return t.createCodeFixAction("import",c,s,t.importFixId,e.Diagnostics.Add_all_missing_imports)}function codeActionForFixWorker(t,r,n,i,a){switch(i.kind){case 0:addNamespaceQualifier(t,r,i);return[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:addImportType(t,r,i,a);return[e.Diagnostics.Change_0_to_1,n,getImportTypePrefix(i.moduleSpecifier,a)+n];case 2:{var o=i.importClause,s=i.importKind;doAddExistingFix(t,r,o,s===1?n:undefined,s===0?[n]:e.emptyArray);var c=e.stripQuotes(o.parent.moduleSpecifier.getText());return[s===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,c]}case 3:{var s=i.importKind,u=i.moduleSpecifier;addNewImports(t,r,u,a,s===1?{defaultImport:n,namedImports:e.emptyArray,namespaceLikeImport:undefined}:s===0?{defaultImport:undefined,namedImports:[n],namespaceLikeImport:undefined}:{defaultImport:undefined,namedImports:e.emptyArray,namespaceLikeImport:{importKind:s,name:n}});return[s===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,u]}default:return e.Debug.assertNever(i)}}function doAddExistingFix(t,r,n,i,a){if(i){e.Debug.assert(!n.name);t.insertNodeAt(r,n.getStart(r),e.createIdentifier(i),{suffix:", "})}if(a.length){var o=a.map(function(t){return e.createImportSpecifier(undefined,e.createIdentifier(t))});if(n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements.length){for(var s=0,c=o;s<c.length;s++){var u=c[s];t.insertNodeInListAfter(r,e.last(e.cast(n.namedBindings,e.isNamedImports).elements),u)}}else{if(o.length){var l=e.createNamedImports(o);if(n.namedBindings){t.replaceNode(r,n.namedBindings,l)}else{t.insertNodeAfter(r,e.Debug.assertDefined(n.name),l)}}}}}function addNamespaceQualifier(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function addImportType(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,getImportTypePrefix(i,n))}function getImportTypePrefix(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function addNewImports(t,r,n,i,a){var o=a.defaultImport,s=a.namedImports,c=a.namespaceLikeImport;var u=e.makeStringLiteral(n,i);if(o!==undefined||s.length){e.insertImport(t,r,e.makeImport(o===undefined?undefined:e.createIdentifier(o),s.map(function(t){return e.createImportSpecifier(undefined,e.createIdentifier(t))}),n,i))}if(c){e.insertImport(t,r,c.importKind===3?e.createImportEqualsDeclaration(undefined,undefined,e.createIdentifier(c.name),e.createExternalModuleReference(u)):e.createImportDeclaration(undefined,undefined,e.createImportClause(undefined,e.createNamespaceImport(e.createIdentifier(c.name))),u))}}function symbolHasMeaning(t,r){var n=t.declarations;return e.some(n,function(t){return!!(e.getMeaningFromDeclaration(t)&r)})}function forEachExternalModuleToImportFrom(e,t,r,n){forEachExternalModule(e,r,function(e,r){if(r===undefined||r!==t&&isImportablePath(t.fileName,r.fileName)){n(e)}})}t.forEachExternalModuleToImportFrom=forEachExternalModuleToImportFrom;function forEachExternalModule(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){var o=a[i];n(o,undefined)}for(var s=0,c=r;s<c.length;s++){var u=c[s];if(e.isExternalOrCommonJsModule(u)){n(t.getMergedSymbol(u.symbol),u)}}}function isImportablePath(t,r){var n=e.forEachAncestorDirectory(r,function(t){return e.getBaseFileName(t)==="node_modules"?t:undefined});return n===undefined||e.startsWith(t,e.getDirectoryPath(n))}function moduleSymbolToValidIdentifier(t,r){return moduleSpecifierToValidIdentifier(e.removeFileExtension(e.stripQuotes(t.name)),r)}t.moduleSymbolToValidIdentifier=moduleSymbolToValidIdentifier;function moduleSpecifierToValidIdentifier(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index"));var i="";var a=true;var o=n.charCodeAt(0);if(e.isIdentifierStart(o,r)){i+=String.fromCharCode(o)}else{a=false}for(var s=1;s<n.length;s++){var c=n.charCodeAt(s);var u=e.isIdentifierPart(c,r);if(u){var l=String.fromCharCode(c);if(!a){l=l.toUpperCase()}i+=l}a=u}return!e.isStringANonContextualKeyword(i)?i||"_":"_"+i}t.moduleSpecifierToValidIdentifier=moduleSpecifierToValidIdentifier})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixSpelling";var n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile;var a=getInfo(i,n.span.start,n);if(!a)return undefined;var o=a.node,s=a.suggestion;var c=n.host.getCompilationSettings().target;var u=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o,s,c)});return[t.createCodeFixAction("spelling",u,[e.Diagnostics.Change_spelling_to_0,s],r,e.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=getInfo(r.file,r.start,e);var i=e.host.getCompilationSettings().target;if(n)doChange(t,e.sourceFile,n.node,n.suggestion,i)})}});function getInfo(t,r,n){var i=e.getTokenAtPosition(t,r);var a=n.program.getTypeChecker();var o;if(e.isPropertyAccessExpression(i.parent)&&i.parent.name===i){e.Debug.assert(i.kind===72);var s=a.getTypeAtLocation(i.parent.expression);o=a.getSuggestionForNonexistentProperty(i,s)}else if(e.isImportSpecifier(i.parent)&&i.parent.name===i){e.Debug.assert(i.kind===72);var c=e.findAncestor(i,e.isImportDeclaration);var u=getResolvedSourceFileFromImportDeclaration(t,n,c);if(u&&u.symbol){o=a.getSuggestionForNonexistentExport(i,u.symbol)}}else{var l=e.getMeaningFromLocation(i);var f=e.getTextOfNode(i);e.Debug.assert(f!==undefined,"name should be defined");o=a.getSuggestionForNonexistentSymbol(i,f,convertSemanticMeaningToSymbolFlags(l))}return o===undefined?undefined:{node:i,suggestion:o}}function doChange(t,r,n,i,a){if(!e.isIdentifierText(i,a)&&e.isPropertyAccessExpression(n.parent)){t.replaceNode(r,n.parent,e.createElementAccess(n.parent.expression,e.createLiteral(i)))}else{t.replaceNode(r,n,e.createIdentifier(i))}}function convertSemanticMeaningToSymbolFlags(e){var t=0;if(e&4){t|=1920}if(e&2){t|=67897832}if(e&1){t|=67220415}return t}function getResolvedSourceFileFromImportDeclaration(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return undefined;var i=e.getResolvedModule(t,n.moduleSpecifier.text);if(!i)return undefined;return r.program.getSourceFile(i.resolvedFileName)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="addMissingMember";var n=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code];var i="addMissingMember";t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=getInfo(n.sourceFile,n.span.start,n.program.getTypeChecker());if(!a)return undefined;if(a.kind===0){var o=a.token,s=a.parentDeclaration;var c=e.textChanges.ChangeTracker.with(n,function(e){return addEnumMemberDeclaration(e,n.program.getTypeChecker(),o,s)});return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_missing_enum_member_0,o.text],i,e.Diagnostics.Add_all_missing_members)]}var u=a.parentDeclaration,l=a.declSourceFile,f=a.inJs,d=a.makeStatic,p=a.token,g=a.call;var _=g&&getActionForMethodDeclaration(n,l,u,p,g,d,f,n.preferences);var m=f&&!e.isInterfaceDeclaration(u)?e.singleElementArray(getActionsForAddMissingMemberInJavascriptFile(n,l,u,p.text,d)):getActionsForAddMissingMemberInTypeScriptFile(n,l,u,p,d);return e.concatenate(e.singleElementArray(_),m)},fixIds:[i],getAllCodeActions:function(r){var i=r.program,a=r.preferences;var o=i.getTypeChecker();var s=e.createMap();var c=new e.NodeMap;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,function(u){t.eachDiagnostic(r,n,function(t){var r=getInfo(t.file,t.start,o);if(!r||!e.addToSeen(s,e.getNodeId(r.parentDeclaration)+"#"+r.token.text)){return}if(r.kind===0){var n=r.token,i=r.parentDeclaration;addEnumMemberDeclaration(u,o,n,i)}else{var i=r.parentDeclaration,a=r.token;var l=c.getOrUpdate(i,function(){return[]});if(!l.some(function(e){return e.token.text===a.text}))l.push(r)}});c.forEach(function(t,n){var s=getAllSupers(n,o);var l=function(t){if(s.some(function(e){var r=c.get(e);return!!r&&r.some(function(e){var r=e.token;return r.text===t.token.text})}))return"continue";var n=t.parentDeclaration,o=t.declSourceFile,l=t.inJs,f=t.makeStatic,d=t.token,p=t.call;if(p){addMethodDeclaration(r,u,o,n,d,p,f,l,a)}else{if(l&&!e.isInterfaceDeclaration(n)){addMissingMemberInJs(u,o,n,d.text,f)}else{var g=getTypeNode(i.getTypeChecker(),n,d);addPropertyDeclaration(u,o,n,d.text,g,f)}}};for(var f=0,d=t;f<d.length;f++){var p=d[f];l(p)}})}))}});function getAllSupers(t,r){var n=[];while(t){var i=e.getClassExtendsHeritageElement(t);var a=i&&r.getSymbolAtLocation(i.expression);var o=a&&e.find(a.declarations,e.isClassLike);if(o){n.push(o)}t=o}return n}var a;(function(e){e[e["Enum"]=0]="Enum";e[e["ClassOrInterface"]=1]="ClassOrInterface"})(a||(a={}));function getInfo(t,r,n){var i=e.getTokenAtPosition(t,r);if(!e.isIdentifier(i)){return undefined}var a=i.parent;if(!e.isPropertyAccessExpression(a))return undefined;var o=e.skipConstraint(n.getTypeAtLocation(a.expression));var s=o.symbol;if(!s||!s.declarations)return undefined;var c=e.find(s.declarations,e.isClassLike)||e.find(s.declarations,e.isInterfaceDeclaration);if(c){var u=(o.target||o)!==n.getDeclaredTypeOfSymbol(s);var l=c.getSourceFile();var f=e.isSourceFileJS(l);var d=e.tryCast(a.parent,e.isCallExpression);return{kind:1,token:i,parentDeclaration:c,makeStatic:u,declSourceFile:l,inJs:f,call:d}}var p=e.find(s.declarations,e.isEnumDeclaration);if(p){return{kind:0,token:i,parentDeclaration:p}}return undefined}function getActionsForAddMissingMemberInJavascriptFile(n,a,o,s,c){var u=e.textChanges.ChangeTracker.with(n,function(e){return addMissingMemberInJs(e,a,o,s,c)});return u.length===0?undefined:t.createCodeFixAction(r,u,[c?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,s],i,e.Diagnostics.Add_all_missing_members)}function addMissingMemberInJs(t,r,n,i,a){if(a){if(n.kind===209){return}var o=n.name.getText();var s=initializePropertyToUndefined(e.createIdentifier(o),i);t.insertNodeAfter(r,n,s)}else{var c=e.getFirstConstructorWithBody(n);if(!c){return}var u=initializePropertyToUndefined(e.createThis(),i);t.insertNodeAtConstructorEnd(r,c,u)}}function initializePropertyToUndefined(t,r){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,r),e.createIdentifier("undefined")))}function getActionsForAddMissingMemberInTypeScriptFile(e,t,r,n,i){var a=getTypeNode(e.program.getTypeChecker(),r,n);var o=createAddPropertyDeclarationAction(e,t,r,i,n.text,a);return i?[o]:[o,createAddIndexSignatureAction(e,t,r,n.text,a)]}function getTypeNode(t,r,n){var i;if(n.parent.parent.kind===204){var a=n.parent.parent;var o=n.parent===a.left?a.right:a.left;var s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c):undefined}return i||e.createKeywordTypeNode(120)}function createAddPropertyDeclarationAction(n,a,o,s,c,u){var l=e.textChanges.ChangeTracker.with(n,function(e){return addPropertyDeclaration(e,a,o,c,u,s)});return t.createCodeFixAction(r,l,[s?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,c],i,e.Diagnostics.Add_all_missing_members)}function addPropertyDeclaration(t,r,n,i,a,o){var s=e.createProperty(undefined,o?[e.createToken(116)]:undefined,i,undefined,a,undefined);var c=getNodeToInsertPropertyAfter(n);if(c){t.insertNodeAfter(r,c,s)}else{t.insertNodeAtClassStart(r,n,s)}}function getNodeToInsertPropertyAfter(t){var r;for(var n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function createAddIndexSignatureAction(n,i,a,o,s){var c=e.createKeywordTypeNode(138);var u=e.createParameter(undefined,undefined,undefined,"x",undefined,c,undefined);var l=e.createIndexSignature(undefined,undefined,[u],s);var f=e.textChanges.ChangeTracker.with(n,function(e){return e.insertNodeAtClassStart(i,a,l)});return t.createCodeFixActionNoFixId(r,f,[e.Diagnostics.Add_index_signature_for_property_0,o])}function getActionForMethodDeclaration(n,a,o,s,c,u,l,f){var d=e.textChanges.ChangeTracker.with(n,function(e){return addMethodDeclaration(n,e,a,o,s,c,u,l,f)});return t.createCodeFixAction(r,d,[u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],i,e.Diagnostics.Add_all_missing_members)}function addMethodDeclaration(r,n,i,a,o,s,c,u,l){var f=t.createMethodFromCallExpression(r,s,o.text,u,c,l,!e.isInterfaceDeclaration(a));var d=e.getAncestor(s,156);if(d&&d.parent===a){n.insertNodeAfter(i,d,f)}else{n.insertNodeAtClassStart(i,a,f)}}function addEnumMemberDeclaration(t,r,n,i){var a=e.some(i.members,function(e){var t=r.getTypeAtLocation(e);return!!(t&&t.flags&132)});var o=e.createEnumMember(n,a?e.createStringLiteral(n.text):undefined);t.replaceNode(i.getSourceFile(),i,e.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,e.concatenate(i.members,e.singleElementArray(o))))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixCannotFindModule";var n="installTypesPackage";var i="generateTypes";var a=e.Diagnostics.Cannot_find_module_0.code;var o=[a,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var a=i.host,o=i.sourceFile,s=i.span.start;var c=tryGetImportedPackageName(o,s);if(c===undefined)return undefined;var u=getTypesPackageNameToInstall(c,a,i.errorCode);return u===undefined?e.singleElementArray(tryGetGenerateTypesAction(i,c)):[t.createCodeFixAction(r,[],[e.Diagnostics.Install_0,u],n,e.Diagnostics.Install_all_missing_types_packages,getInstallCommand(o.fileName,u))]},fixIds:[n,i],getAllCodeActions:function(r){var a=null;return t.codeFixAll(r,o,function(t,o,s){var c=tryGetImportedPackageName(o.file,o.start);if(c===undefined)return undefined;switch(r.fixId){case n:{var u=getTypesPackageNameToInstall(c,r.host,o.code);if(u){s.push(getInstallCommand(o.file.fileName,u))}break}case i:{var l=a!==null?a:a=getOrCreateTypesDirectory(t,r);var f=l===undefined?undefined:tryGenerateTypes(l,c,r);if(f)s.push(f);break}default:e.Debug.fail("Bad fixId: "+r.fixId)}})}});function tryGetGenerateTypesAction(n,a){var o;var s=e.textChanges.ChangeTracker.with(n,function(e){var t=getOrCreateTypesDirectory(e,n);o=t===undefined?undefined:tryGenerateTypes(t,a,n)});return o&&t.createCodeFixAction(r,s,[e.Diagnostics.Generate_types_for_0,a],i,e.Diagnostics.Generate_types_for_all_packages_without_types,o)}function tryGenerateTypes(t,r,n){var i=n.sourceFile.fileName;var a=e.tryResolveJSModule(r,e.getDirectoryPath(i),n.host);if(a===undefined)return undefined;var o=e.resolvePath(e.getDirectoryPath(n.program.getCompilerOptions().configFile.fileName),t,r+".d.ts");if(n.host.fileExists(o))return undefined;return{type:"generate types",file:i,fileToGenerateTypesFor:a,outputFileName:o}}function getOrCreateTypesDirectory(t,r){var n=r.program.getCompilerOptions().configFile;if(!n)return undefined;var i=e.getTsConfigObjectLiteralExpression(n);if(!i)return undefined;var a=findProperty(i,"compilerOptions");if(!a){var o=e.createObjectLiteral([makeDefaultBaseUrl(),makeDefaultPaths()]);t.insertNodeAtObjectStart(n,i,createJsonPropertyAssignment("compilerOptions",o));return c}var s=a.initializer;if(!e.isObjectLiteralExpression(s))return c;var u=getOrAddBaseUrl(t,n,s);var l=getOrAddPathMapping(t,n,s);return e.combinePaths(u,l)}var s=".";function makeDefaultBaseUrl(){return createJsonPropertyAssignment("baseUrl",e.createStringLiteral(s))}function getOrAddBaseUrl(t,r,n){var i=findProperty(n,"baseUrl");if(i){return e.isStringLiteral(i.initializer)?i.initializer.text:s}else{t.insertNodeAtObjectStart(r,n,makeDefaultBaseUrl());return s}}var c="types";function makeDefaultPathMapping(){return createJsonPropertyAssignment("*",e.createArrayLiteral([e.createStringLiteral(c+"/*")]))}function makeDefaultPaths(){return createJsonPropertyAssignment("paths",e.createObjectLiteral([makeDefaultPathMapping()]))}function getOrAddPathMapping(t,r,n){var i=findProperty(n,"paths");if(!i||!e.isObjectLiteralExpression(i.initializer)){t.insertNodeAtObjectStart(r,n,makeDefaultPaths());return c}var a=e.firstDefined(i.initializer.properties,function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&t.name.text==="*"&&e.isArrayLiteralExpression(t.initializer)?e.firstDefined(t.initializer.elements,function(t){return e.isStringLiteral(t)?e.tryRemoveSuffix(t.text,"/*"):undefined}):undefined});if(a)return a;t.insertNodeAtObjectStart(r,i.initializer,makeDefaultPathMapping());return c}function createJsonPropertyAssignment(t,r){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function findProperty(t,r){return e.find(t.properties,function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r})}function getInstallCommand(e,t){return{type:"install package",file:e,packageName:t}}function tryGetImportedPackageName(t,r){var n=e.cast(e.getTokenAtPosition(t,r),e.isStringLiteral).text;var i=e.parsePackageName(n).packageName;return e.isExternalModuleNameRelative(i)?undefined:i}function getTypesPackageNameToInstall(t,r,n){return n===a?e.JsTyping.nodeCoreModules.has(t)?"@types/node":undefined:r.isKnownTypesPackageName(t)?e.getTypesPackageName(t):undefined}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code];var n="fixClassDoesntImplementInheritedAbstractMember";t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.program,a=r.sourceFile,o=r.span;var s=e.textChanges.ChangeTracker.with(r,function(e){return addMissingMembers(getClass(a,o.start),a,i.getTypeChecker(),e,r.preferences)});return s.length===0?undefined:[t.createCodeFixAction(n,s,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var i=e.createMap();return t.codeFixAll(n,r,function(t,r){var a=getClass(r.file,r.start);if(e.addToSeen(i,e.getNodeId(a))){addMissingMembers(a,n.sourceFile,n.program.getTypeChecker(),t,n.preferences)}})}});function getClass(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function addMissingMembers(r,n,i,a,o){var s=e.getEffectiveBaseTypeNode(r);var c=i.getTypeAtLocation(s);var u=i.getPropertiesOfType(c).filter(symbolPointsToNonPrivateAndAbstractMember);t.createMissingMemberNodes(r,u,i,o,function(e){return a.insertNodeAtClassStart(n,r,e)})}function symbolPointsToNonPrivateAndAbstractMember(t){var r=e.getModifierFlags(e.first(t.getDeclarations()));return!(r&8)&&!!(r&128)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="classSuperMustPrecedeThisAccess";var n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span;var o=getNodes(i,a.start);if(!o)return undefined;var s=o.constructor,c=o.superCall;var u=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,s,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[r],getAllCodeActions:function(r){var i=r.sourceFile;var a=e.createMap();return t.codeFixAll(r,n,function(t,r){var n=getNodes(r.file,r.start);if(!n)return;var o=n.constructor,s=n.superCall;if(e.addToSeen(a,e.getNodeId(o.parent))){doChange(t,i,o,s)}})}});function doChange(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n);e.delete(t,n)}function getNodes(t,r){var n=e.getTokenAtPosition(t,r);if(n.kind!==100)return undefined;var i=e.getContainingFunction(n);var a=findSuperCall(i.body);return a&&!a.expression.arguments.some(function(t){return e.isPropertyAccessExpression(t)&&t.expression===n})?{constructor:i,superCall:a}:undefined}function findSuperCall(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?undefined:e.forEachChild(t,findSuperCall)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="constructorForDerivedNeedSuperCall";var n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span;var o=getNode(i,a.start);var s=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o)});return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return doChange(t,e.sourceFile,getNode(r.file,r.start))})}});function getNode(t,r){var n=e.getTokenAtPosition(t,r);e.Debug.assert(n.kind===124);return n.parent}function doChange(t,r,n){var i=e.createStatement(e.createCall(e.createSuper(),undefined,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="extendsInterfaceBecomesImplements";var n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile;var a=getNodes(i,n.span.start);if(!a)return undefined;var o=a.extendsToken,s=a.heritageClauses;var c=e.textChanges.ChangeTracker.with(n,function(e){return doChanges(e,i,o,s)});return[t.createCodeFixAction(r,c,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=getNodes(t.file,t.start);if(r)doChanges(e,t.file,r.extendsToken,r.heritageClauses)})}});function getNodes(t,r){var n=e.getTokenAtPosition(t,r);var i=e.getContainingClass(n).heritageClauses;var a=i[0].getFirstToken();return a.kind===86?{extendsToken:a,heritageClauses:i}:undefined}function doChanges(t,r,n,i){t.replaceNode(r,n,e.createToken(109));if(i.length===2&&i[0].token===86&&i[1].token===109){var a=i[1].getFirstToken();var o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.createToken(27));var s=r.text;var c=a.end;while(c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c))){c++}t.deleteRange(r,{pos:a.getStart(),end:c})}}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="forgottenThisPropertyAccess";var n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code;var i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,n];t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile;var a=getInfo(i,n.span.start,n.errorCode);if(!a){return undefined}var o=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,a)});return[t.createCodeFixAction(r,o,[e.Diagnostics.Add_0_to_unresolved_variable,a.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){var n=getInfo(r.file,r.start,r.code);if(n)doChange(t,e.sourceFile,n)})}});function getInfo(t,r,i){var a=e.getTokenAtPosition(t,r);if(!e.isIdentifier(a))return undefined;return{node:a,className:i===n?e.getContainingClass(a).name.text:undefined}}function doChange(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i);t.replaceNode(r,i,e.createPropertyAccess(a?e.createIdentifier(a):e.createThis(),i))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="unusedIdentifier";var n="unusedIdentifier_prefix";var i="unusedIdentifier_delete";var a="unusedIdentifier_infer";var o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,s=i.sourceFile,c=i.program;var u=c.getTypeChecker();var l=c.getSourceFiles();var f=e.getTokenAtPosition(s,i.span.start);if(e.isJSDocTemplateTag(f)){return[createDeleteFix(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(s,f)}),e.Diagnostics.Remove_template_tag)]}if(f.kind===28){var d=e.textChanges.ChangeTracker.with(i,function(e){return deleteTypeParameters(e,s,f)});return[createDeleteFix(d,e.Diagnostics.Remove_type_parameters)]}var p=tryGetFullImport(f);if(p){var d=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(s,p)});return[createDeleteFix(d,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(p)])]}var g=e.textChanges.ChangeTracker.with(i,function(e){return tryDeleteFullDestructure(f,e,s,u,l,false)});if(g.length){return[createDeleteFix(g,e.Diagnostics.Remove_destructuring)]}var _=e.textChanges.ChangeTracker.with(i,function(e){return tryDeleteFullVariableStatement(s,f,e)});if(_.length){return[createDeleteFix(_,e.Diagnostics.Remove_variable_statement)]}var m=[];if(f.kind===127){var d=e.textChanges.ChangeTracker.with(i,function(e){return changeInferToUnknown(e,s,f)});var y=e.cast(f.parent,e.isInferTypeNode).typeParameter.name.text;m.push(t.createCodeFixAction(r,d,[e.Diagnostics.Replace_infer_0_with_unknown,y],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var h=e.textChanges.ChangeTracker.with(i,function(e){return tryDeleteDeclaration(s,f,e,u,l,false)});if(h.length){var y=e.isComputedPropertyName(f.parent)?f.parent:f;m.push(createDeleteFix(h,[e.Diagnostics.Remove_declaration_for_Colon_0,y.getText(s)]))}}var v=e.textChanges.ChangeTracker.with(i,function(e){return tryPrefixDeclaration(e,o,s,f)});if(v.length){m.push(t.createCodeFixAction(r,v,[e.Diagnostics.Prefix_0_with_an_underscore,f.getText(s)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible))}return m},fixIds:[n,i,a],getAllCodeActions:function(r){var s=r.sourceFile,c=r.program;var u=c.getTypeChecker();var l=c.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var c=e.getTokenAtPosition(s,o.start);switch(r.fixId){case n:tryPrefixDeclaration(t,o.code,s,c);break;case i:{if(c.kind===127)break;var f=tryGetFullImport(c);if(f){t.delete(s,f)}else if(e.isJSDocTemplateTag(c)){t.delete(s,c)}else if(c.kind===28){deleteTypeParameters(t,s,c)}else if(!tryDeleteFullDestructure(c,t,s,u,l,true)&&!tryDeleteFullVariableStatement(s,c,t)){tryDeleteDeclaration(s,c,t,u,l,true)}break}case a:if(c.kind===127){changeInferToUnknown(t,s,c)}break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}});function changeInferToUnknown(t,r,n){t.replaceNode(r,n.parent,e.createKeywordTypeNode(143))}function createDeleteFix(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function deleteTypeParameters(t,r,n){t.delete(r,e.Debug.assertDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters))}function tryGetFullImport(t){return t.kind===92?e.tryCast(t.parent,e.isImportDeclaration):undefined}function tryDeleteFullDestructure(t,r,n,i,a,o){if(t.kind!==18||!e.isObjectBindingPattern(t.parent))return false;var s=t.parent.parent;if(s.kind===151){tryDeleteParameter(r,n,s,i,a,o)}else{r.delete(n,s)}return true}function tryDeleteFullVariableStatement(t,r,n){var i=e.tryCast(r.parent,e.isVariableDeclarationList);if(i&&i.getChildren(t)[0]===r){n.delete(t,i.parent.kind===219?i.parent:i);return true}return false}function tryPrefixDeclaration(t,r,n,i){if(r===e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)return;if(i.kind===127){i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name}if(e.isIdentifier(i)&&canPrefix(i)){t.replaceNode(n,i,e.createIdentifier("_"+i.text))}}function canPrefix(e){switch(e.parent.kind){case 151:case 150:return true;case 237:{var t=e.parent;switch(t.parent.parent.kind){case 227:case 226:return true}}}return false}function tryDeleteDeclaration(t,r,n,i,a,o){tryDeleteDeclarationWorker(r,n,t,i,a,o);if(e.isIdentifier(r))deleteAssignments(n,t,r,i)}function deleteAssignments(t,r,n,i){e.FindAllReferences.Core.eachSymbolReferenceInFile(n,i,r,function(n){if(e.isPropertyAccessExpression(n.parent)&&n.parent.name===n)n=n.parent;if(e.isBinaryExpression(n.parent)&&e.isExpressionStatement(n.parent.parent)&&n.parent.left===n){t.delete(r,n.parent.parent)}})}function tryDeleteDeclarationWorker(t,r,n,i,a,o){var s=t.parent;if(e.isParameter(s)){tryDeleteParameter(r,n,s,i,a,o)}else{r.delete(n,e.isImportClause(s)?t:e.isComputedPropertyName(s)?s.parent:s)}}function tryDeleteParameter(t,r,n,i,a,o){if(mayDeleteParameter(n,i,o)){if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))){n.modifiers.forEach(function(e){t.deleteModifier(r,e)})}else{t.delete(r,n);deleteUnusedArguments(t,r,n,a,i)}}}function mayDeleteParameter(t,r,n){var i=t.parent;switch(i.kind){case 156:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return false;case 157:case 239:return true;case 196:case 197:{var o=i.parameters;var s=o.indexOf(t);e.Debug.assert(s!==-1);return n?o.slice(s+1).every(function(e){return e.name.kind===72&&!e.symbol.isReferenced}):s===o.length-1}case 159:return false;default:return e.Debug.failBadSyntaxKind(i)}}function deleteUnusedArguments(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,function(e){var i=n.parent.parameters.indexOf(n);if(e.arguments.length>i){t.delete(r,e.arguments[i])}})}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixUnreachableCode";var n=[e.Diagnostics.Unreachable_code_detected.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,n.span.start,n.span.length)});return[t.createCodeFixAction(r,i,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return doChange(e,t.file,t.start,t.length)})}});function doChange(t,r,n,i){var a=e.getTokenAtPosition(r,n);var o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements)){switch(s.kind){case 222:if(s.elseStatement){if(e.isBlock(o.parent)){break}else{t.replaceNode(r,o,e.createBlock(e.emptyArray))}return}case 224:case 225:t.delete(r,s);return}}if(e.isBlock(o.parent)){var c=n+i;var u=e.Debug.assertDefined(lastWhere(e.sliceAfter(o.parent.statements,o),function(e){return e.pos<c}));t.deleteNodeRange(r,o,u)}else{t.delete(r,o)}}function lastWhere(e,t){var r;for(var n=0,i=e;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixUnusedLabel";var n=[e.Diagnostics.Unused_label.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,i,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return doChange(e,t.file,t.start)})}});function doChange(t,r,n){var i=e.getTokenAtPosition(r,n);var a=e.cast(i.parent,e.isLabeledStatement);var o=i.getStart(r);var s=a.statement.getStart(r);var c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,57,r).end,true);t.deleteRange(r,{pos:o,end:c})}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixJSDocTypes_plain";var n="fixJSDocTypes_nullable";var i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var a=i.sourceFile;var o=i.program.getTypeChecker();var s=getInfo(a,i.span.start,o);if(!s)return undefined;var c=s.typeNode,u=s.type;var l=c.getText(a);var f=[fix(u,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];if(c.kind===286){f.push(fix(o.getNullableType(u,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types))}return f;function fix(r,n,s){var u=e.textChanges.ChangeTracker.with(i,function(e){return doChange(e,a,c,r,o)});return t.createCodeFixAction("jdocTypes",u,[e.Diagnostics.Change_0_to_1,l,o.typeToString(r)],n,s)}},fixIds:[r,n],getAllCodeActions:function(e){var r=e.fixId,a=e.program,o=e.sourceFile;var s=a.getTypeChecker();return t.codeFixAll(e,i,function(e,t){var i=getInfo(t.file,t.start,s);if(!i)return;var a=i.typeNode,c=i.type;var u=a.kind===286&&r===n?s.getNullableType(c,32768):c;doChange(e,o,a,u,s)})}});function doChange(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r))}function getInfo(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),isTypeContainer);var a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function isTypeContainer(e){switch(e.kind){case 212:case 160:case 161:case 239:case 158:case 162:case 181:case 156:case 155:case 151:case 154:case 153:case 159:case 242:case 194:case 237:return true;default:return false}}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixAwaitInSyncFunction";var n=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span;var o=getNodes(i,a.start);if(!o)return undefined;var s=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o)});return[t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=getNodes(r.file,r.start);if(!n)return;doChange(t,e.sourceFile,n)})}});function getReturnType(t){if(t.type){return t.type}if(e.isVariableDeclaration(t.parent)&&t.parent.type&&e.isFunctionTypeNode(t.parent.type)){return t.parent.type.type}}function getNodes(t,r){var n=e.getTokenAtPosition(t,r);var i=e.getContainingFunction(n);if(!i){return}var a;switch(i.kind){case 156:a=i.name;break;case 239:case 196:a=e.findChildOfKind(i,90,t);break;case 197:a=e.findChildOfKind(i,20,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:getReturnType(i)}}function doChange(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);if(!o||o.kind!==72||o.text!=="Promise"){t.replaceNode(r,a,e.createTypeReferenceNode("Promise",e.createNodeArray([a])))}}t.insertModifierBefore(r,121,i)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="disableJsDiagnostics";var n="disableJsDiagnostics";var i=e.mapDefined(Object.keys(e.Diagnostics),function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:undefined});t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var a=i.sourceFile,o=i.program,s=i.span,c=i.host,u=i.formatContext;if(!e.isInJSFile(a)||!e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){return undefined}var l=[t.createCodeFixActionNoFixId(r,[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(c,u.options))])],e.Diagnostics.Disable_checking_for_this_file)];if(e.textChanges.isValidLocationToAddComment(a,s.start)){l.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,function(e){return makeChange(e,a,s.start)}),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages))}return l},fixIds:[n],getAllCodeActions:function(r){var n=e.createMap();return t.codeFixAll(r,i,function(t,r){if(e.textChanges.isValidLocationToAddComment(r.file,r.start)){makeChange(t,r.file,r.start,n)}})}});function makeChange(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;if(!i||e.addToSeen(i,a)){t.insertCommentBeforeLine(r,a,n," @ts-ignore")}}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){function createMissingMemberNodes(e,t,r,n,i){var a=e.symbol.members;for(var o=0,s=t;o<s.length;o++){var c=s[o];if(!a.has(c.escapedName)){addNewNodeForMemberSymbol(c,e,r,n,i)}}}t.createMissingMemberNodes=createMissingMemberNodes;function addNewNodeForMemberSymbol(t,r,n,i,a){var o=t.getDeclarations();if(!(o&&o.length)){return undefined}var s=o[0];var c=e.getSynthesizedDeepClone(e.getNameOfDeclaration(s),false);var u=createVisibilityModifier(e.getModifierFlags(s));var l=u?e.createNodeArray([u]):undefined;var f=n.getWidenedType(n.getTypeOfSymbolAtLocation(t,r));var d=!!(t.flags&16777216);switch(s.kind){case 158:case 159:case 153:case 154:var p=n.typeToTypeNode(f,r);a(e.createProperty(undefined,l,c,d?e.createToken(56):undefined,p,undefined));break;case 155:case 156:var g=n.getSignaturesOfType(f,0);if(!e.some(g)){break}if(o.length===1){e.Debug.assert(g.length===1);var _=g[0];outputMethod(_,l,c,createStubbedMethodBody(i));break}for(var m=0,y=g;m<y.length;m++){var _=y[m];outputMethod(_,e.getSynthesizedDeepClones(l,false),e.getSynthesizedDeepClone(c,false))}if(o.length>g.length){var _=n.getSignatureFromDeclaration(o[o.length-1]);outputMethod(_,l,c,createStubbedMethodBody(i))}else{e.Debug.assert(o.length===g.length);a(createMethodImplementingSignatures(g,c,d,l,i))}break}function outputMethod(e,t,i,o){var s=signatureToMethodDeclaration(n,e,r,t,i,d,o);if(s)a(s)}}function signatureToMethodDeclaration(t,r,n,i,a,o,s){var c=t.signatureToSignatureDeclaration(r,156,n,256);if(!c){return undefined}c.decorators=undefined;c.modifiers=i;c.name=a;c.questionToken=o?e.createToken(56):undefined;c.body=s;return c}function createMethodFromCallExpression(t,r,n,i,a,o,s){var c=r.typeArguments,u=r.arguments,l=r.parent;var f=t.program.getTypeChecker();var d=e.map(u,function(e){return f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(e)))});var p=e.map(u,function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)?t.name.text:undefined});var g=f.getContextualType(r);var _=i?undefined:g&&f.typeToTypeNode(g,r)||e.createKeywordTypeNode(120);return e.createMethod(undefined,a?[e.createToken(116)]:undefined,e.isYieldExpression(l)?e.createToken(40):undefined,n,undefined,i?undefined:e.map(c,function(t,r){return e.createTypeParameterDeclaration(84+c.length-1<=90?String.fromCharCode(84+r):"T"+r)}),createDummyParameters(u.length,p,d,undefined,i),_,s?createStubbedMethodBody(o):undefined)}t.createMethodFromCallExpression=createMethodFromCallExpression;function createDummyParameters(t,r,n,i,a){var o=[];for(var s=0;s<t;s++){var c=e.createParameter(undefined,undefined,undefined,r&&r[s]||"arg"+s,i!==undefined&&s>=i?e.createToken(56):undefined,a?undefined:n&&n[s]||e.createKeywordTypeNode(120),undefined);o.push(c)}return o}function createMethodImplementingSignatures(t,r,n,i,a){var o=t[0];var s=t[0].minArgumentCount;var c=false;for(var u=0,l=t;u<l.length;u++){var f=l[u];s=Math.min(f.minArgumentCount,s);if(f.hasRestParameter){c=true}if(f.parameters.length>=o.parameters.length&&(!f.hasRestParameter||o.hasRestParameter)){o=f}}var d=o.parameters.length-(o.hasRestParameter?1:0);var p=o.parameters.map(function(e){return e.name});var g=createDummyParameters(d,p,undefined,s,false);if(c){var _=e.createArrayTypeNode(e.createKeywordTypeNode(120));var m=e.createParameter(undefined,undefined,e.createToken(25),p[d]||"rest",d>=s?e.createToken(56):undefined,_,undefined);g.push(m)}return createStubbedMethod(i,r,n,undefined,g,undefined,a)}function createStubbedMethod(t,r,n,i,a,o,s){return e.createMethod(undefined,t,undefined,r,n?e.createToken(56):undefined,i,a,o,createStubbedMethodBody(s))}function createStubbedMethodBody(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),undefined,[e.createLiteral("Method not implemented.",t.quotePreference==="single")]))],true)}function createVisibilityModifier(t){if(t&4){return e.createToken(115)}else if(t&16){return e.createToken(114)}return undefined}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="invalidImportSyntax";function getCodeFixesForImportDeclaration(t,r){var n=e.getSourceFileOfNode(r);var i=e.getNamespaceDeclarationNode(r);var a=t.program.getCompilerOptions();var o=[];o.push(createAction(t,n,r,e.makeImport(i.name,undefined,r.moduleSpecifier,e.getQuotePreference(n,t.preferences))));if(e.getEmitModuleKind(a)===e.ModuleKind.CommonJS){o.push(createAction(t,n,r,e.createImportEqualsDeclaration(undefined,undefined,i.name,e.createExternalModuleReference(r.moduleSpecifier))))}return o}function createAction(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,function(e){return e.replaceNode(i,a,o)});return t.createCodeFixActionNoFixId(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:getActionsForUsageOfInvalidImport});function getActionsForUsageOfInvalidImport(t){var r=t.sourceFile;var n=e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===t.errorCode?191:192;var i=e.findAncestor(e.getTokenAtPosition(r,t.span.start),function(e){return e.kind===n&&e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!i){return[]}var a=i.expression;return getImportCodeFixesForExpression(t,a)}t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:getActionsForInvalidImportLocation});function getActionsForInvalidImportLocation(t){var r=t.sourceFile;var n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!n){return[]}return getImportCodeFixesForExpression(t,n)}function getImportCodeFixesForExpression(n,i){var a=n.program.getTypeChecker().getTypeAtLocation(i);if(!(a.symbol&&a.symbol.originatingImport)){return[]}var o=[];var s=a.symbol.originatingImport;if(!e.isImportCall(s)){e.addRange(o,getCodeFixesForImportDeclaration(n,s))}if(e.isExpression(i)&&!(e.isNamedDeclaration(i.parent)&&i.parent.name===i)){var c=n.sourceFile;var u=e.textChanges.ChangeTracker.with(n,function(t){return t.replaceNode(c,i,e.createPropertyAccess(i,"default"),{})});o.push(t.createCodeFixActionNoFixId(r,u,e.Diagnostics.Use_synthetic_default_member))}return o}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="strictClassInitialization";var n="addMissingPropertyDefiniteAssignmentAssertions";var i="addMissingPropertyUndefinedType";var a="addMissingPropertyInitializer";var o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(t){var r=getPropertyDeclaration(t.sourceFile,t.span.start);if(!r)return;var n=[getActionForAddMissingUndefinedType(t,r),getActionForAddMissingDefiniteAssignmentAssertion(t,r)];e.append(n,getActionForAddMissingInitializer(t,r));return n},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,function(t,o){var s=getPropertyDeclaration(o.file,o.start);if(!s)return;switch(r.fixId){case n:addDefiniteAssignmentAssertion(t,o.file,s);break;case i:addUndefinedType(t,o.file,s);break;case a:var c=r.program.getTypeChecker();var u=getInitializer(c,s);if(!u)return;addInitializer(t,o.file,s,u);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}});function getPropertyDeclaration(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):undefined}function getActionForAddMissingDefiniteAssignmentAssertion(i,a){var o=e.textChanges.ChangeTracker.with(i,function(e){return addDefiniteAssignmentAssertion(e,i.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function addDefiniteAssignmentAssertion(t,r,n){var i=e.updateProperty(n,n.decorators,n.modifiers,n.name,e.createToken(52),n.type,n.initializer);t.replaceNode(r,n,i)}function getActionForAddMissingUndefinedType(n,a){var o=e.textChanges.ChangeTracker.with(n,function(e){return addUndefinedType(e,n.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function addUndefinedType(t,r,n){var i=e.createKeywordTypeNode(141);var a=n.type;var o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.createUnionTypeNode(o))}function getActionForAddMissingInitializer(n,i){var o=n.program.getTypeChecker();var s=getInitializer(o,i);if(!s)return undefined;var c=e.textChanges.ChangeTracker.with(n,function(e){return addInitializer(e,n.sourceFile,i,s)});return t.createCodeFixAction(r,c,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}function addInitializer(t,r,n,i){var a=e.updateProperty(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function getInitializer(e,t){return getDefaultValueFromType(e,e.getTypeFromTypeNode(t.type))}function getDefaultValueFromType(t,r){if(r.flags&512){return r===t.getFalseType()||r===t.getFalseType(true)?e.createFalse():e.createTrue()}else if(r.isLiteral()){return e.createLiteral(r.value)}else if(r.isUnion()){return e.firstDefined(r.types,function(e){return getDefaultValueFromType(t,e)})}else if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasModifier(n,128))return undefined;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return undefined;return e.createNew(e.createIdentifier(r.symbol.name),undefined,undefined)}else if(t.isArrayLikeType(r)){return e.createArrayLiteral()}return undefined}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){function generateTypesForModule(e,t,r){return generateTypesForModuleOrGlobal(e,t,r,0)}e.generateTypesForModule=generateTypesForModule;function generateTypesForGlobal(e,t,r){return generateTypesForModuleOrGlobal(e,t,r,3)}e.generateTypesForGlobal=generateTypesForGlobal;function generateTypesForModuleOrGlobal(t,r,n,i){return valueInfoToDeclarationFileText(e.inspectValue(t,r),n,i)}function valueInfoToDeclarationFileText(t,r,n){if(n===void 0){n=0}return e.textChanges.getNewFileText(toStatements(t,n),3,r.newLineCharacter||"\n",e.formatting.getFormatContext(r))}e.valueInfoToDeclarationFileText=valueInfoToDeclarationFileText;var t;(function(e){e[e["ExportEquals"]=0]="ExportEquals";e[e["NamedExport"]=1]="NamedExport";e[e["NamespaceMember"]=2]="NamespaceMember";e[e["Global"]=3]="Global"})(t||(t={}));function toNamespaceMemberStatements(e){return toStatements(e,2)}function toStatements(t,r){var n=t.name==="default";var i=n?"_default":t.name;if(!isValidIdentifier(i)||n&&r!==1)return e.emptyArray;var a=n&&t.kind===2?[e.createModifier(85),e.createModifier(80)]:r===3||r===0?[e.createModifier(125)]:r===1?[e.createModifier(85)]:undefined;var o=function(){return r===0?[exportEqualsOrDefault(t.name,true)]:e.emptyArray};var s=function(){return n?[exportEqualsOrDefault("_default",false)]:e.emptyArray};switch(t.kind){case 2:return o().concat(functionOrClassToStatements(a,i,t));case 3:var c=t.members,u=t.hasNontrivialPrototype;if(!u){if(r===0){return e.flatMap(c,function(e){return toStatements(e,1)})}if(c.some(function(e){return e.kind===2})){return s().concat([createNamespace(a,i,e.flatMap(c,toNamespaceMemberStatements))])}}case 0:case 1:{var l=t.kind===0?t.comment:undefined;var f=e.createVariableStatement(a,e.createVariableDeclarationList([e.createVariableDeclaration(i,toType(t))],2));return o().concat(s(),[addComment(f,l)])}default:return e.Debug.assertNever(t)}}function exportEqualsOrDefault(t,r){return e.createExportAssignment(undefined,undefined,r,e.createIdentifier(t))}function functionOrClassToStatements(t,r,n){var i=n.source,a=n.prototypeMembers,o=n.namespaceMembers;var s=parseClassOrFunctionBody(i);var c=s===undefined?{parameters:e.emptyArray,returnType:anyType()}:getParametersAndReturnType(s),u=c.parameters,l=c.returnType;var f=e.createMap();if(typeof s==="object")getConstructorFunctionInstanceProperties(s,f);for(var d=0,p=a;d<p.length;d++){var g=p[d];if(g.kind===2){var _=tryGetMethod(g);if(_){f.set(g.name,_)}}}var m=f.size!==0||s===undefined||typeof s!=="number"&&s.kind===157?[]:undefined;var y=e.flatMap(o,function(t){if(!isValidIdentifier(t.name))return undefined;if(m){switch(t.kind){case 3:if(t.members.some(function(e){return e.kind===2})){break}case 1:case 0:m.push(addComment(e.createProperty(undefined,[e.createModifier(116)],t.name,undefined,toType(t),undefined),t.kind===0?t.comment:undefined));return undefined;case 2:if(!t.namespaceMembers.length){var r=tryGetMethod(t,[e.createModifier(116)]);if(r){m.push(r);return undefined}}break;default:e.Debug.assertNever(t)}}return toStatements(t,2)});var h=m?e.createClassDeclaration(undefined,t,r,undefined,undefined,m.concat(u.length?[e.createConstructor(undefined,undefined,u,undefined)]:e.emptyArray,e.arrayFrom(f.values()))):e.createFunctionDeclaration(undefined,t,undefined,r,undefined,u,l,undefined);return[h].concat(y.length===0?e.emptyArray:[createNamespace(t&&t.map(function(t){return e.getSynthesizedDeepClone(t)}),r,y)])}function tryGetMethod(t,r){var n=t.name,i=t.source;if(!isValidIdentifier(n))return undefined;var a=parseClassOrFunctionBody(i);if(a===undefined||typeof a!=="number"&&a.kind===157)return undefined;var o=getParametersAndReturnType(a);return o&&e.createMethod(undefined,r,undefined,n,undefined,undefined,o.parameters,o.returnType,undefined)}function toType(t){switch(t.kind){case 0:return e.createTypeReferenceNode(t.typeName,undefined);case 1:return e.createArrayTypeNode(toType(t.inner));case 2:return e.createTypeReferenceNode("Function",undefined);case 3:return e.createTypeLiteralNode(t.members.map(function(t){return e.createPropertySignature(undefined,toPropertyName(t.name),undefined,toType(t),undefined)}));default:return e.Debug.assertNever(t)}}function toPropertyName(t){return e.isIdentifierText(t,6)?e.createIdentifier(t):e.createStringLiteral(t)}function getConstructorFunctionInstanceProperties(t,r){forEachOwnNodeOfFunction(t,function(t){if(e.isAssignmentExpression(t,true)&&e.isPropertyAccessExpression(t.left)&&t.left.expression.kind===100){var n=t.left.name.text;if(!e.isJsPrivate(n)){e.getOrUpdate(r,n,function(){return e.createProperty(undefined,undefined,n,undefined,anyType(),undefined)})}}})}function getParametersAndReturnType(t){if(typeof t==="number"){return{parameters:e.fill(t,function(e){return makeParameter("p"+e,anyType())}),returnType:anyType()}}var r=false,n=false;forEachOwnNodeOfFunction(t,function(t){r=r||e.isIdentifier(t)&&t.text==="arguments";n=n||e.isReturnStatement(t)&&!!t.expression&&t.expression.kind!==200});var i=t.parameters.map(function(e){return makeParameter(""+e.name.getText(),inferParameterType(t,e))}).concat(r?[makeRestParameter()]:e.emptyArray);return{parameters:i,returnType:n?anyType():e.createKeywordTypeNode(106)}}function makeParameter(t,r){return e.createParameter(undefined,undefined,undefined,t,undefined,r)}function makeRestParameter(){return e.createParameter(undefined,undefined,e.createToken(25),"args",undefined,e.createArrayTypeNode(anyType()))}function parseClassOrFunctionBody(t){if(typeof t==="number")return t;var r=e.tryCast(parseExpression(t),function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)});return r?e.isClassExpression(r)?e.find(r.members,e.isConstructorDeclaration):r:e.cast(e.first(e.cast(parseExpression("{ "+t+" }"),e.isObjectLiteralExpression).properties),e.isMethodDeclaration)}function parseExpression(t){var r="const _ = "+t;var n=e.createSourceFile("test.ts",r,6,true);return e.first(e.cast(e.first(n.statements),e.isVariableStatement).declarationList.declarations).initializer}function inferParameterType(e,t){return anyType()}function forEachOwnNodeOfFunction(t,r){t.body.forEachChild(function recur(t){r(t);if(!e.isFunctionLike(t))t.forEachChild(recur)})}function isValidIdentifier(t){var r=e.stringToToken(t);return!(r&&e.isNonContextualKeyword(r))&&e.isIdentifierText(t,6)}function addComment(t,r){if(r!==undefined)e.addSyntheticLeadingComment(t,2,r);return t}function anyType(){return e.createKeywordTypeNode(120)}function createNamespace(t,r,n){return e.createModuleDeclaration(undefined,t,e.createIdentifier(r),e.createModuleBlock(n),16)}})(s||(s={}));var s;(function(e){var t;(function(t){var r="requireInTs";var n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,n.span.start,n.program)});return[t.createCodeFixAction(r,i,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return doChange(t,r.file,r.start,e.program)})}});function doChange(t,r,n,i){var a=getInfo(r,n),o=a.statement,s=a.name,c=a.required;t.replaceNode(r,o,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())?e.createImportDeclaration(undefined,undefined,e.createImportClause(s,undefined),c):e.createImportEqualsDeclaration(undefined,undefined,s,e.createExternalModuleReference(c)))}function getInfo(t,r){var n=e.getTokenAtPosition(t,r).parent;if(!e.isRequireCall(n,true))throw e.Debug.failBadSyntaxKind(n);var i=e.cast(n.parent,e.isVariableDeclaration);return{statement:e.cast(i.parent.parent,e.isVariableStatement),name:e.cast(i.name,e.isIdentifier),required:n.arguments[0]}}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="useDefaultImport";var n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span.start;var o=getInfo(i,a);if(!o)return undefined;var s=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o,n.preferences)});return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=getInfo(r.file,r.start);if(n)doChange(t,r.file,n,e.preferences)})}});function getInfo(t,r){var n=e.getTokenAtPosition(t,r);if(!e.isIdentifier(n))return undefined;var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression}}else if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}function doChange(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,undefined,n.moduleSpecifier,e.getQuotePreference(r,i)))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixAddModuleReferTypeMissingTypeof";var n=r;var i=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,a=r.span;var o=getImportTypeNode(i,a.start);var s=e.textChanges.ChangeTracker.with(r,function(e){return doChange(e,i,o)});return[t.createCodeFixAction(n,s,e.Diagnostics.Add_missing_typeof,n,e.Diagnostics.Add_missing_typeof)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){return doChange(t,e.sourceFile,getImportTypeNode(r.file,r.start))})}});function getImportTypeNode(t,r){var n=e.getTokenAtPosition(t,r);e.Debug.assert(n.kind===92);e.Debug.assert(n.parent.kind===183);return n.parent}function doChange(t,r,n){var i=e.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,true);t.replaceNode(r,n,i)}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="fixConvertToMappedObjectType";var n=r;var i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,a=r.span;var o=getInfo(i,a.start);if(!o)return undefined;var s=e.textChanges.ChangeTracker.with(r,function(e){return doChange(e,i,o)});var c=e.idText(o.container.name);return[t.createCodeFixAction(n,s,[e.Diagnostics.Convert_0_to_mapped_object_type,c],n,[e.Diagnostics.Convert_0_to_mapped_object_type,c])]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(e,t){var r=getInfo(t.file,t.start);if(r)doChange(e,t.file,r)})}});function getInfo(t,r){var n=e.getTokenAtPosition(t,r);var i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(e.isClassDeclaration(i.parent))return undefined;var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:i,container:a}}function createTypeAliasFromInterface(t,r){return e.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}function doChange(t,r,n){var i=n.indexSignature,a=n.container;var o=e.isInterfaceDeclaration(a)?a.members:a.type.members;var s=o.filter(function(t){return!e.isIndexSignatureDeclaration(t)});var c=e.first(i.parameters);var u=e.createTypeParameterDeclaration(e.cast(c.name,e.isIdentifier),c.type);var l=e.createMappedTypeNode(e.hasReadonlyModifier(i)?e.createModifier(133):undefined,u,i.questionToken,i.type);var f=e.createIntersectionTypeNode(e.getAllSuperTypeNodes(a).concat([l],s.length?[e.createTypeLiteralNode(s)]:e.emptyArray));t.replaceNode(r,a,createTypeAliasFromInterface(a,f))}})(t=e.codefix||(e.codefix={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="Convert export";var n="Convert default export to named export";var i="Convert named export to default export";t.registerRefactor(r,{getAvailableActions:function(t){var a=getInfo(t);if(!a)return e.emptyArray;var o=a.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;var s=a.wasDefault?n:i;return[{name:r,description:o,actions:[{name:s,description:o}]}]},getEditsForAction:function(t,r){e.Debug.assert(r===n||r===i);var a=e.textChanges.ChangeTracker.with(t,function(r){return doChange(t.file,t.program,e.Debug.assertDefined(getInfo(t)),r,t.cancellationToken)});return{edits:a,renameFilename:undefined,renameLocation:undefined}}});function getInfo(t){var r=t.file;var n=e.getRefactorContextSpan(t);var i=e.getTokenAtPosition(r,n.start);var a=e.getParentNodeInSpan(i,r,n);if(!a||!e.isSourceFile(a.parent)&&!(e.isModuleBlock(a.parent)&&e.isAmbientModule(a.parent.parent))){return undefined}var o=e.isSourceFile(a.parent)?a.parent.symbol:a.parent.parent.symbol;var s=e.getModifierFlags(a);var c=!!(s&512);if(!(s&1)||!c&&o.exports.has("default")){return undefined}switch(a.kind){case 239:case 240:case 241:case 243:case 242:case 244:{var u=a;return u.name&&e.isIdentifier(u.name)?{exportNode:u,exportName:u.name,wasDefault:c,exportingModuleSymbol:o}:undefined}case 219:{var l=a;if(!(l.declarationList.flags&2)||l.declarationList.declarations.length!==1){return undefined}var f=e.first(l.declarationList.declarations);if(!f.initializer)return undefined;e.Debug.assert(!c);return e.isIdentifier(f.name)?{exportNode:l,exportName:f.name,wasDefault:c,exportingModuleSymbol:o}:undefined}default:return undefined}}function doChange(e,t,r,n,i){changeExport(e,r,n,t.getTypeChecker());changeImports(t,r,n,i)}function changeExport(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a){n.delete(t,e.Debug.assertDefined(e.findModifier(o,80)))}else{var c=e.Debug.assertDefined(e.findModifier(o,85));switch(o.kind){case 239:case 240:case 241:n.insertNodeAfter(t,c,e.createToken(80));break;case 219:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)){n.replaceNode(t,o,e.createExportDefault(e.Debug.assertDefined(e.first(o.declarationList.declarations).initializer)));break}case 243:case 242:case 244:n.deleteModifier(t,c);n.insertNodeAfter(t,o,e.createExportDefault(e.createIdentifier(s.text)));break;default:e.Debug.assertNever(o)}}}function changeImports(t,r,n,i){var a=r.wasDefault,o=r.exportName,s=r.exportingModuleSymbol;var c=t.getTypeChecker();var u=e.Debug.assertDefined(c.getSymbolAtLocation(o));e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),c,i,u,s,o.text,a,function(e){var t=e.getSourceFile();if(a){changeDefaultToNamedImport(t,e,n,o.text)}else{changeNamedToDefaultImport(t,e,n)}})}function changeDefaultToNamedImport(t,r,n,i){var a=r.parent;switch(a.kind){case 189:n.replaceNode(t,r,e.createIdentifier(i));break;case 253:case 257:{var o=a;n.replaceNode(t,o,makeImportSpecifier(i,o.name.text));break}case 250:{var s=a;e.Debug.assert(s.name===r);var o=makeImportSpecifier(i,r.text);var c=s.namedBindings;if(!c){n.replaceNode(t,r,e.createNamedImports([o]))}else if(c.kind===251){n.deleteRange(t,{pos:r.getStart(t),end:c.getStart(t)});var u=e.isStringLiteral(s.parent.moduleSpecifier)?e.quotePreferenceFromString(s.parent.moduleSpecifier,t):1;var l=e.makeImport(undefined,[makeImportSpecifier(i,r.text)],s.parent.moduleSpecifier,u);n.insertNodeAfter(t,s.parent,l)}else{n.delete(t,r);n.insertNodeAtEndOfList(t,c.elements,o)}break}default:e.Debug.failBadSyntaxKind(a)}}function changeNamedToDefaultImport(t,r,n){var i=r.parent;switch(i.kind){case 189:n.replaceNode(t,r,e.createIdentifier("default"));break;case 253:{var a=e.createIdentifier(i.name.text);if(i.parent.elements.length===1){n.replaceNode(t,i.parent,a)}else{n.delete(t,i);n.insertNodeBefore(t,i.parent,a)}break}case 257:{n.replaceNode(t,i,makeExportSpecifier("default",i.name.text));break}default:e.Debug.assertNever(i)}}function makeImportSpecifier(t,r){return e.createImportSpecifier(t===r?undefined:e.createIdentifier(t),e.createIdentifier(r))}function makeExportSpecifier(t,r){return e.createExportSpecifier(t===r?undefined:e.createIdentifier(t),e.createIdentifier(r))}})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="Convert import";var n="Convert namespace import to named imports";var i="Convert named imports to namespace import";t.registerRefactor(r,{getAvailableActions:function(t){var a=getImportToConvert(t);if(!a)return e.emptyArray;var o=a.kind===251?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;var s=a.kind===251?n:i;return[{name:r,description:o,actions:[{name:s,description:o}]}]},getEditsForAction:function(t,r){e.Debug.assert(r===n||r===i);var a=e.textChanges.ChangeTracker.with(t,function(r){return doChange(t.file,t.program,r,e.Debug.assertDefined(getImportToConvert(t)))});return{edits:a,renameFilename:undefined,renameLocation:undefined}}});function getImportToConvert(t){var r=t.file;var n=e.getRefactorContextSpan(t);var i=e.getTokenAtPosition(r,n.start);var a=e.getParentNodeInSpan(i,r,n);if(!a||!e.isImportDeclaration(a))return undefined;var o=a.importClause;return o&&o.namedBindings}function doChange(t,r,n,i){var a=r.getTypeChecker();if(i.kind===251){doChangeNamespaceToNamed(t,a,n,i,e.getAllowSyntheticDefaultImports(r.getCompilerOptions()))}else{doChangeNamedToNamespace(t,a,n,i)}}function doChangeNamespaceToNamed(t,r,n,i,a){var o=false;var s=[];var c=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,function(t){if(!e.isPropertyAccessExpression(t.parent)){o=true}else{var n=e.cast(t.parent,e.isPropertyAccessExpression);var i=n.name.text;if(r.resolveName(i,t,67108863,true)){c.set(i,true)}e.Debug.assert(n.expression===t);s.push(n)}});var u=e.createMap();for(var l=0,f=s;l<f.length;l++){var d=f[l];var p=d.name.text;var g=u.get(p);if(g===undefined){u.set(p,g=c.has(p)?e.getUniqueName(p,t):p)}n.replaceNode(t,d,e.createIdentifier(g))}var _=[];u.forEach(function(t,r){_.push(e.createImportSpecifier(t===r?undefined:e.createIdentifier(r),e.createIdentifier(t)))});var m=i.parent.parent;if(o&&!a){n.insertNodeAfter(t,m,updateImport(m,undefined,_))}else{n.replaceNode(t,m,updateImport(m,o?e.createIdentifier(i.name.text):undefined,_))}}function doChangeNamedToNamespace(t,r,n,i){var a=i.parent.parent;var o=a.moduleSpecifier;var s=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,6):"module";var c=i.elements.some(function(n){return e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,function(e){return!!r.resolveName(s,e,67108863,true)})||false});var u=c?e.getUniqueName(s,t):s;var l=[];var f=function(i){var a=(i.propertyName||i.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,function(r){var o=e.createPropertyAccess(e.createIdentifier(u),a);if(e.isShorthandPropertyAssignment(r.parent)){n.replaceNode(t,r.parent,e.createPropertyAssignment(r.text,o))}else if(e.isExportSpecifier(r.parent)&&!r.parent.propertyName){if(!l.some(function(e){return e.name===i.name})){l.push(e.createImportSpecifier(i.propertyName&&e.createIdentifier(i.propertyName.text),e.createIdentifier(i.name.text)))}}else{n.replaceNode(t,r,o)}})};for(var d=0,p=i.elements;d<p.length;d++){var g=p[d];f(g)}n.replaceNode(t,i,e.createNamespaceImport(e.createIdentifier(u)));if(l.length){n.insertNodeAfter(t,i.parent.parent,updateImport(a,undefined,l))}}function updateImport(t,r,n){return e.createImportDeclaration(undefined,undefined,e.createImportClause(r,n&&n.length?e.createNamedImports(n):undefined),t.moduleSpecifier)}})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(r){var n="Extract Symbol";t.registerRefactor(n,{getAvailableActions:getAvailableActions,getEditsForAction:getEditsForAction});function getAvailableActions(t){var r=getRangeToExtract(t.file,e.getRefactorContextSpan(t));var i=r.targetRange;if(i===undefined){return e.emptyArray}var a=getPossibleExtractions(i,t);if(a===undefined){return e.emptyArray}var o=[];var s=e.createMap();var c=[];var u=e.createMap();var l=0;for(var f=0,d=a;f<d.length;f++){var p=d[f],g=p.functionExtraction,_=p.constantExtraction;if(g.errors.length===0){var m=g.description;if(!s.has(m)){s.set(m,true);o.push({description:m,name:"function_scope_"+l})}}if(_.errors.length===0){var m=_.description;if(!u.has(m)){u.set(m,true);c.push({description:m,name:"constant_scope_"+l})}}l++}var y=[];if(o.length){y.push({name:n,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:o})}if(c.length){y.push({name:n,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:c})}return y.length?y:e.emptyArray}r.getAvailableActions=getAvailableActions;function getEditsForAction(t,r){var n=getRangeToExtract(t.file,e.getRefactorContextSpan(t));var i=n.targetRange;var a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index");return getFunctionExtractionAtIndex(i,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s){var o=+s[1];e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index");return getConstantExtractionAtIndex(i,t,o)}e.Debug.fail("Unrecognized action name")}r.getEditsForAction=getEditsForAction;var i;(function(t){function createMessage(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=createMessage("Cannot extract range.");t.cannotExtractImport=createMessage("Cannot extract import statement.");t.cannotExtractSuper=createMessage("Cannot extract super call.");t.cannotExtractEmpty=createMessage("Cannot extract empty range.");t.expressionExpected=createMessage("expression expected.");t.uselessConstantType=createMessage("No reason to extract constant of type.");t.statementOrExpressionExpected=createMessage("Statement or expression expected.");t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=createMessage("Cannot extract range containing conditional break or continue statements.");t.cannotExtractRangeContainingConditionalReturnStatement=createMessage("Cannot extract range containing conditional return statement.");t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=createMessage("Cannot extract range containing labeled break or continue with target outside of the range.");t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=createMessage("Cannot extract range containing writes to references located outside of the target range in generators.");t.typeWillNotBeVisibleInTheNewScope=createMessage("Type will not visible in the new scope.");t.functionWillNotBeVisibleInTheNewScope=createMessage("Function will not visible in the new scope.");t.cannotExtractIdentifier=createMessage("Select more than a single identifier.");t.cannotExtractExportedEntity=createMessage("Cannot extract exported declaration");t.cannotWriteInExpression=createMessage("Cannot write back side-effects when extracting an expression");t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=createMessage("Cannot move initialization of read-only class property outside of the constructor");t.cannotExtractAmbientBlock=createMessage("Cannot extract code from ambient contexts");t.cannotAccessVariablesFromNestedScopes=createMessage("Cannot access variables from nested scopes");t.cannotExtractToOtherFunctionLike=createMessage("Cannot extract method to a function-like scope that is not a function");t.cannotExtractToJSClass=createMessage("Cannot extract constant to a class scope in JS");t.cannotExtractToExpressionArrowFunction=createMessage("Cannot extract constant to an arrow function without a block")})(i=r.Messages||(r.Messages={}));var a;(function(e){e[e["None"]=0]="None";e[e["HasReturn"]=1]="HasReturn";e[e["IsGenerator"]=2]="IsGenerator";e[e["IsAsyncFunction"]=4]="IsAsyncFunction";e[e["UsesThis"]=8]="UsesThis";e[e["InStaticRegion"]=16]="InStaticRegion"})(a||(a={}));function getRangeToExtract(t,r){var n=r.length;if(n===0){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractEmpty)]}}var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r);var s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r);var c=[];var u=a.None;if(!o||!s){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractRange)]}}if(o.parent!==s.parent){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractRange)]}}if(o!==s){if(!isBlockLike(o.parent)){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractRange)]}}var l=[];var f=o;for(var d=0,p=f.parent.statements;d<p.length;d++){var g=p[d];if(g===o||l.length){var _=checkNode(g);if(_){return{errors:_}}l.push(g)}if(g===s){break}}if(!l.length){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractRange)]}}return{targetRange:{range:l,facts:u,declarations:c}}}if(e.isReturnStatement(o)&&!o.expression){return{errors:[e.createFileDiagnostic(t,r.start,n,i.cannotExtractRange)]}}var m=refineNode(o);var y=checkRootNode(m)||checkNode(m);if(y){return{errors:y}}return{targetRange:{range:getStatementOrExpressionRange(m),facts:u,declarations:c}};function refineNode(t){if(e.isReturnStatement(t)){if(t.expression){return t.expression}}else if(e.isVariableStatement(t)){var r=0;var n=void 0;for(var i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];if(o.initializer){r++;n=o.initializer}}if(r===1){return n}}else if(e.isVariableDeclaration(t)){if(t.initializer){return t.initializer}}return t}function checkRootNode(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t)){return[e.createDiagnosticForNode(t,i.cannotExtractIdentifier)]}return undefined}function checkForStaticContext(t,r){var n=t;while(n!==r){if(n.kind===154){if(e.hasModifier(n,32)){u|=a.InStaticRegion}break}else if(n.kind===151){var i=e.getContainingFunction(n);if(i.kind===157){u|=a.InStaticRegion}break}else if(n.kind===156){if(e.hasModifier(n,32)){u|=a.InStaticRegion}}n=n.parent}}function checkNode(t){var n;(function(e){e[e["None"]=0]="None";e[e["Break"]=1]="Break";e[e["Continue"]=2]="Continue";e[e["Return"]=4]="Return"})(n||(n={}));e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");if(!e.isStatement(t)&&!(e.isExpressionNode(t)&&isExtractableExpression(t))){return[e.createDiagnosticForNode(t,i.statementOrExpressionExpected)]}if(t.flags&4194304){return[e.createDiagnosticForNode(t,i.cannotExtractAmbientBlock)]}var o=e.getContainingClass(t);if(o){checkForStaticContext(t,o)}var s;var l=4;var f;visit(t);return s;function visit(t){if(s){return true}if(e.isDeclaration(t)){var n=t.kind===237?t.parent.parent:t;if(e.hasModifier(n,1)){(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractExportedEntity));return true}c.push(t.symbol)}switch(t.kind){case 249:(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractImport));return true;case 98:if(t.parent.kind===191){var o=e.getContainingClass(t);if(o.pos<r.start||o.end>=r.start+r.length){(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractSuper));return true}}else{u|=a.UsesThis}break}if(e.isFunctionLikeDeclaration(t)||e.isClassLike(t)){switch(t.kind){case 239:case 240:if(e.isSourceFile(t.parent)&&t.parent.externalModuleIndicator===undefined){(s||(s=[])).push(e.createDiagnosticForNode(t,i.functionWillNotBeVisibleInTheNewScope))}break}return false}var d=l;switch(t.kind){case 222:l=0;break;case 235:l=0;break;case 218:if(t.parent&&t.parent.kind===235&&t.parent.finallyBlock===t){l=4}break;case 271:l|=1;break;default:if(e.isIterationStatement(t,false)){l|=1|2}break}switch(t.kind){case 178:case 100:u|=a.UsesThis;break;case 233:{var p=t.label;(f||(f=[])).push(p.escapedText);e.forEachChild(t,visit);f.pop();break}case 229:case 228:{var p=t.label;if(p){if(!e.contains(f,p.escapedText)){(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange))}}else{if(!(l&(t.kind===229?1:2))){(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractRangeContainingConditionalBreakOrContinueStatements))}}break}case 201:u|=a.IsAsyncFunction;break;case 207:u|=a.IsGenerator;break;case 230:if(l&4){u|=a.HasReturn}else{(s||(s=[])).push(e.createDiagnosticForNode(t,i.cannotExtractRangeContainingConditionalReturnStatement))}break;default:e.forEachChild(t,visit);break}l=d}}}r.getRangeToExtract=getRangeToExtract;function getStatementOrExpressionRange(t){if(e.isStatement(t)){return[t]}else if(e.isExpressionNode(t)){return e.isExpressionStatement(t.parent)?[t.parent]:t}return undefined}function isScope(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function collectEnclosingScopes(t){var r=isReadonlyArray(t.range)?e.first(t.range):t.range;if(t.facts&a.UsesThis){var n=e.getContainingClass(r);if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);return i?[i,n]:[n]}}var o=[];while(true){r=r.parent;if(r.kind===151){r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent}if(isScope(r)){o.push(r);if(r.kind===279){return o}}}}function getFunctionExtractionAtIndex(t,r,n){var i=getPossibleExtractionsWorker(t,r),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,u=o.functionErrorsPerScope,l=o.exposedVariableDeclarations;e.Debug.assert(!u[n].length,"The extraction went missing? How?");r.cancellationToken.throwIfCancellationRequested();return extractFunctionInScope(s,a[n],c[n],l,t,r)}function getConstantExtractionAtIndex(t,r,n){var i=getPossibleExtractionsWorker(t,r),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,u=o.constantErrorsPerScope,l=o.exposedVariableDeclarations;e.Debug.assert(!u[n].length,"The extraction went missing? How?");e.Debug.assert(l.length===0,"Extract constant accepted a range containing a variable declaration?");r.cancellationToken.throwIfCancellationRequested();var f=e.isExpression(s)?s:s.statements[0].expression;return extractConstantInScope(f,a[n],c[n],t.facts,r)}function getPossibleExtractions(t,r){var n=getPossibleExtractionsWorker(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;var c=i.map(function(t,r){var n=getDescriptionForFunctionInScope(t);var i=getDescriptionForConstantInScope(t);var a=e.isFunctionLikeDeclaration(t)?getDescriptionForFunctionLikeDeclaration(t):e.isClassLike(t)?getDescriptionForClassLikeDeclaration(t):getDescriptionForModuleLikeDeclaration(t);var c;var u;if(a===1){c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[n,"global"]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"])}else if(a===0){c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[n,"module"]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"module"])}else{c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[n,a]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,a])}if(r===0&&!e.isClassLike(t)){u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[i])}return{functionExtraction:{description:c,errors:o[r]},constantExtraction:{description:u,errors:s[r]}}});return c}function getPossibleExtractionsWorker(e,t){var r=t.file;var n=collectEnclosingScopes(e);var i=getEnclosingTextRange(e,r);var a=collectReadsAndWrites(e,n,i,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:n,readsAndWrites:a}}function getDescriptionForFunctionInScope(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}function getDescriptionForConstantInScope(t){return e.isClassLike(t)?"readonly field":"constant"}function getDescriptionForFunctionLikeDeclaration(t){switch(t.kind){case 157:return"constructor";case 196:case 239:return t.name?"function '"+t.name.text+"'":"anonymous function";case 197:return"arrow function";case 156:return"method '"+t.name.getText()+"'";case 158:return"'get "+t.name.getText()+"'";case 159:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t)}}function getDescriptionForClassLikeDeclaration(e){return e.kind===240?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}function getDescriptionForModuleLikeDeclaration(e){return e.kind===245?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}var o;(function(e){e[e["Module"]=0]="Module";e[e["Global"]=1]="Global"})(o||(o={}));function extractFunctionInScope(t,r,n,i,o,s){var c=n.usages,u=n.typeParameterUsages,l=n.substitutions;var f=s.program.getTypeChecker();var d=r.getSourceFile();var p=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",d);var g=e.isInJSFile(r);var _=e.createIdentifier(p);var m;var y=[];var h=[];var v;c.forEach(function(t,n){var i;if(!g){var a=f.getTypeOfSymbolAtLocation(t.symbol,t.node);a=f.getBaseTypeOfLiteralType(a);i=f.typeToTypeNode(a,r,1)}var o=e.createParameter(undefined,undefined,undefined,n,undefined,i);y.push(o);if(t.usage===2){(v||(v=[])).push(t)}h.push(e.createIdentifier(n))});var T=e.arrayFrom(u.values()).map(function(e){return{type:e,declaration:getFirstDeclaration(e)}});var S=T.sort(compareTypesByDeclarationOrder);var b=S.length===0?undefined:S.map(function(e){return e.declaration});var x=b!==undefined?b.map(function(t){return e.createTypeReferenceNode(t.name,undefined)}):undefined;if(e.isExpression(t)&&!g){var C=f.getContextualType(t);m=f.typeToTypeNode(C,r,1)}var E=transformFunctionBody(t,i,v,l,!!(o.facts&a.HasReturn)),D=E.body,k=E.returnValueProperty;e.suppressLeadingAndTrailingTrivia(D);var N;if(e.isClassLike(r)){var A=g?[]:[e.createToken(113)];if(o.facts&a.InStaticRegion){A.push(e.createToken(116))}if(o.facts&a.IsAsyncFunction){A.push(e.createToken(121))}N=e.createMethod(undefined,A.length?A:undefined,o.facts&a.IsGenerator?e.createToken(40):undefined,_,undefined,b,y,m,D)}else{N=e.createFunctionDeclaration(undefined,o.facts&a.IsAsyncFunction?[e.createToken(121)]:undefined,o.facts&a.IsGenerator?e.createToken(40):undefined,_,b,y,m,D)}var O=e.textChanges.ChangeTracker.fromContext(s);var F=(isReadonlyArray(o.range)?e.last(o.range):o.range).end;var P=getNodeToInsertFunctionBefore(F,r);if(P){O.insertNodeBefore(s.file,P,N,true)}else{O.insertNodeAtEndOfScope(s.file,r,N)}var I=[];var w=getCalledExpression(r,o,p);var M=e.createCall(w,x,h);if(o.facts&a.IsGenerator){M=e.createYield(e.createToken(40),M)}if(o.facts&a.IsAsyncFunction){M=e.createAwait(M)}if(i.length&&!v){e.Debug.assert(!k);e.Debug.assert(!(o.facts&a.HasReturn));if(i.length===1){var L=i[0];I.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(L.name),e.getSynthesizedDeepClone(L.type),M)],L.parent.flags)))}else{var R=[];var B=[];var j=i[0].parent.flags;var J=false;for(var W=0,U=i;W<U.length;W++){var L=U[W];R.push(e.createBindingElement(undefined,undefined,e.getSynthesizedDeepClone(L.name)));var z=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(L)),r,1);B.push(e.createPropertySignature(undefined,L.symbol.name,undefined,z,undefined));J=J||L.type!==undefined;j=j&L.parent.flags}var V=J?e.createTypeLiteralNode(B):undefined;if(V){e.setEmitFlags(V,1)}I.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(R),V,M)],j)))}}else if(i.length||v){if(i.length){for(var K=0,q=i;K<q.length;K++){var L=q[K];var G=L.parent.flags;if(G&2){G=G&~2|1}I.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(L.symbol.name,getTypeDeepCloneUnionUndefined(L.type))],G)))}}if(k){I.push(e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(k,getTypeDeepCloneUnionUndefined(m))],1)))}var H=getPropertyAssignmentsForWritesAndVariableDeclarations(i,v);if(k){H.unshift(e.createShorthandPropertyAssignment(k))}if(H.length===1){e.Debug.assert(!k);I.push(e.createStatement(e.createAssignment(H[0].name,M)));if(o.facts&a.HasReturn){I.push(e.createReturn())}}else{I.push(e.createStatement(e.createAssignment(e.createObjectLiteral(H),M)));if(k){I.push(e.createReturn(e.createIdentifier(k)))}}}else{if(o.facts&a.HasReturn){I.push(e.createReturn(M))}else if(isReadonlyArray(o.range)){I.push(e.createStatement(M))}else{I.push(M)}}if(isReadonlyArray(o.range)){O.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),I)}else{O.replaceNodeWithNodes(s.file,o.range,I)}var Q=O.getChanges();var $=isReadonlyArray(o.range)?e.first(o.range):o.range;var X=$.getSourceFile().fileName;var Y=e.getRenameLocation(Q,X,p,false);return{renameFilename:X,renameLocation:Y,edits:Q};function getTypeDeepCloneUnionUndefined(t){if(t===undefined){return undefined}var r=e.getSynthesizedDeepClone(t);var n=r;while(e.isParenthesizedTypeNode(n)){n=n.type}return e.isUnionTypeNode(n)&&e.find(n.types,function(e){return e.kind===141})?r:e.createUnionTypeNode([r,e.createKeywordTypeNode(141)])}}function extractConstantInScope(t,r,n,i,o){var s=n.substitutions;var c=o.program.getTypeChecker();var u=r.getSourceFile();var l=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u);var f=e.isInJSFile(r);var d=f||!c.isContextSensitive(t)?undefined:c.typeToTypeNode(c.getContextualType(t),r,1);var p=transformConstantInitializer(t,s);e.suppressLeadingAndTrailingTrivia(p);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!f);var _=[];_.push(e.createToken(113));if(i&a.InStaticRegion){_.push(e.createToken(116))}_.push(e.createToken(133));var m=e.createProperty(undefined,_,l,undefined,d,p);var y=e.createPropertyAccess(i&a.InStaticRegion?e.createIdentifier(r.name.getText()):e.createThis(),e.createIdentifier(l));var h=t.pos;var v=getNodeToInsertPropertyBefore(h,r);g.insertNodeBefore(o.file,v,m,true);g.replaceNode(o.file,t,y)}else{var T=e.createVariableDeclaration(l,d,p);var S=getContainingVariableDeclarationIfInList(t,r);if(S){g.insertNodeBefore(o.file,S,T);var y=e.createIdentifier(l);g.replaceNode(o.file,t,y)}else if(t.parent.kind===221&&r===e.findAncestor(t,isScope)){var b=e.createVariableStatement(undefined,e.createVariableDeclarationList([T],2));g.replaceNode(o.file,t.parent,b)}else{var b=e.createVariableStatement(undefined,e.createVariableDeclarationList([T],2));var v=getNodeToInsertConstantBefore(t,r);if(v.pos===0){g.insertNodeAtTopOfFile(o.file,b,false)}else{g.insertNodeBefore(o.file,v,b,false)}if(t.parent.kind===221){g.delete(o.file,t.parent)}else{var y=e.createIdentifier(l);g.replaceNode(o.file,t,y)}}}var x=g.getChanges();var C=t.getSourceFile().fileName;var E=e.getRenameLocation(x,C,l,true);return{renameFilename:C,renameLocation:E,edits:x}}function getContainingVariableDeclarationIfInList(t,r){var n;while(t!==undefined&&t!==r){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1){return t}n=t;t=t.parent}}function getFirstDeclaration(e){var t;var r=e.symbol;if(r&&r.declarations){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];if(t===undefined||a.pos<t.pos){t=a}}}return t}function compareTypesByDeclarationOrder(t,r){var n=t.type,i=t.declaration;var a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function getCalledExpression(t,r,n){var i=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&a.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,i)}else{return i}}function transformFunctionBody(t,r,n,i,a){var o=n!==undefined||r.length>0;if(e.isBlock(t)&&!o&&i.size===0){return{body:e.createBlock(t.statements,true),returnValueProperty:undefined}}var s;var c=false;var u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(o||i.size){var l=e.visitNodes(u,visitor).slice();if(o&&!a&&e.isStatement(t)){var f=getPropertyAssignmentsForWritesAndVariableDeclarations(r,n);if(f.length===1){l.push(e.createReturn(f[0].name))}else{l.push(e.createReturn(e.createObjectLiteral(f)))}}return{body:e.createBlock(l,true),returnValueProperty:s}}else{return{body:e.createBlock(u,true),returnValueProperty:undefined}}function visitor(t){if(!c&&t.kind===230&&o){var a=getPropertyAssignmentsForWritesAndVariableDeclarations(r,n);if(t.expression){if(!s){s="__return"}a.unshift(e.createPropertyAssignment(s,e.visitNode(t.expression,visitor)))}if(a.length===1){return e.createReturn(a[0].name)}else{return e.createReturn(e.createObjectLiteral(a))}}else{var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString());var f=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,visitor,e.nullTransformationContext);c=u;return f}}}function transformConstantInitializer(t,r){return r.size?visitor(t):t;function visitor(t){var n=r.get(e.getNodeId(t).toString());return n?e.getSynthesizedDeepClone(n):e.visitEachChild(t,visitor,e.nullTransformationContext)}}function getStatementsOrClassElements(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r)){return r.statements}}else if(e.isModuleBlock(t)||e.isSourceFile(t)){return t.statements}else if(e.isClassLike(t)){return t.members}else{e.assertType(t)}return e.emptyArray}function getNodeToInsertFunctionBefore(t,r){return e.find(getStatementsOrClassElements(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}function getNodeToInsertPropertyBefore(t,r){var n=r.members;e.Debug.assert(n.length>0);var i;var a=true;for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>t){return i||n[0]}if(a&&!e.isPropertyDeclaration(c)){if(i!==undefined){return c}a=false}i=c}if(i===undefined)return e.Debug.fail();return i}function getNodeToInsertConstantBefore(t,r){e.Debug.assert(!e.isClassLike(r));var n;for(var i=t;i!==r;i=i.parent){if(isScope(i)){n=i}}for(var i=(n||t).parent;;i=i.parent){if(isBlockLike(i)){var a=void 0;for(var o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos){break}a=c}if(!a&&e.isCaseClause(i)){e.Debug.assert(e.isSwitchStatement(i.parent.parent));return i.parent.parent}return e.Debug.assertDefined(a)}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}function getPropertyAssignmentsForWritesAndVariableDeclarations(t,r){var n=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});var i=e.map(r,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return n===undefined?i:i===undefined?n:n.concat(i)}function isReadonlyArray(t){return e.isArray(t)}function getEnclosingTextRange(t,r){return isReadonlyArray(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}var s;(function(e){e[e["Read"]=1]="Read";e[e["Write"]=2]="Write"})(s||(s={}));function collectReadsAndWrites(t,r,n,o,s,c){var u=e.createMap();var l=[];var f=[];var d=[];var p=[];var g=[];var _=e.createMap();var m=[];var y;var h=!isReadonlyArray(t.range)?t.range:t.range.length===1&&e.isExpressionStatement(t.range[0])?t.range[0].expression:undefined;var v;if(h===undefined){var T=t.range;var S=e.first(T).getStart();var b=e.last(T).end;v=e.createFileDiagnostic(o,S,b-S,i.expressionExpected)}else if(s.getTypeAtLocation(h).flags&(16384|131072)){v=e.createDiagnosticForNode(h,i.uselessConstantType)}for(var x=0,C=r;x<C.length;x++){var E=C[x];l.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()});f.push(e.createMap());d.push(e.isFunctionLikeDeclaration(E)&&E.kind!==239?[e.createDiagnosticForNode(E,i.cannotExtractToOtherFunctionLike)]:[]);var D=[];if(v){D.push(v)}if(e.isClassLike(E)&&e.isInJSFile(E)){D.push(e.createDiagnosticForNode(E,i.cannotExtractToJSClass))}if(e.isArrowFunction(E)&&!e.isBlock(E.body)){D.push(e.createDiagnosticForNode(E,i.cannotExtractToExpressionArrowFunction))}p.push(D)}var k=e.createMap();var N=isReadonlyArray(t.range)?e.createBlock(t.range):t.range;var A=isReadonlyArray(t.range)?e.first(t.range):t.range;var O=isInGenericContext(A);collectUsages(N);if(O&&!isReadonlyArray(t.range)){var F=s.getContextualType(t.range);recordTypeParameterUsages(F)}if(u.size>0){var P=e.createMap();var I=0;for(var w=A;w!==undefined&&I<r.length;w=w.parent){if(w===r[I]){P.forEach(function(e,t){l[I].typeParameterUsages.set(t,e)});I++}if(e.isDeclarationWithTypeParameters(w)){for(var M=0,L=e.getEffectiveTypeParameterDeclarations(w);M<L.length;M++){var R=L[M];var B=s.getTypeAtLocation(R);if(u.has(B.id.toString())){P.set(B.id.toString(),B)}}}}e.Debug.assert(I===r.length)}if(g.length){var j=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(j,checkForUsedDeclarations)}var J=function(r){var n=l[r];if(r>0&&(n.usages.size>0||n.typeParameterUsages.size>0)){var a=isReadonlyArray(t.range)?t.range[0]:t.range;p[r].push(e.createDiagnosticForNode(a,i.cannotAccessVariablesFromNestedScopes))}var o=false;var s;l[r].usages.forEach(function(t){if(t.usage===2){o=true;if(t.symbol.flags&106500&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)){s=t.symbol.valueDeclaration}}});e.Debug.assert(isReadonlyArray(t.range)||m.length===0);if(o&&!isReadonlyArray(t.range)){var c=e.createDiagnosticForNode(t.range,i.cannotWriteInExpression);d[r].push(c);p[r].push(c)}else if(s&&r>0){var c=e.createDiagnosticForNode(s,i.cannotExtractReadonlyPropertyInitializerOutsideConstructor);d[r].push(c);p[r].push(c)}else if(y){var c=e.createDiagnosticForNode(y,i.cannotExtractExportedEntity);d[r].push(c);p[r].push(c)}};for(var W=0;W<r.length;W++){J(W)}return{target:N,usagesPerScope:l,functionErrorsPerScope:d,constantErrorsPerScope:p,exposedVariableDeclarations:m};function isInGenericContext(t){return!!e.findAncestor(t,function(t){return e.isDeclarationWithTypeParameters(t)&&e.getEffectiveTypeParameterDeclarations(t).length!==0})}function recordTypeParameterUsages(e){var t=s.getSymbolWalker(function(){return c.throwIfCancellationRequested(),true});var r=t.walkType(e).visitedTypes;for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.isTypeParameter()){u.set(a.id.toString(),a)}}}function collectUsages(t,r){if(r===void 0){r=1}if(O){var n=s.getTypeAtLocation(t);recordTypeParameterUsages(n)}if(e.isDeclaration(t)&&t.symbol){g.push(t)}if(e.isAssignmentExpression(t)){collectUsages(t.left,2);collectUsages(t.right)}else if(e.isUnaryExpressionWithWrite(t)){collectUsages(t.operand,2)}else if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)){e.forEachChild(t,collectUsages)}else if(e.isIdentifier(t)){if(!t.parent){return}if(e.isQualifiedName(t.parent)&&t!==t.parent.left){return}if(e.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression){return}recordUsage(t,r,e.isPartOfTypeNode(t))}else{e.forEachChild(t,collectUsages)}}function recordUsage(t,n,i){var a=recordUsagebySymbol(t,n,i);if(a){for(var o=0;o<r.length;o++){var s=f[o].get(a);if(s){l[o].substitutions.set(e.getNodeId(t).toString(),s)}}}}function recordUsagebySymbol(c,u,g){var _=getSymbolReferencedByIdentifier(c);if(!_){return undefined}var m=e.getSymbolId(_).toString();var y=k.get(m);if(y&&y>=u){return m}k.set(m,u);if(y){for(var h=0,v=l;h<v.length;h++){var T=v[h];var S=T.usages.get(c.text);if(S){T.usages.set(c.text,{usage:u,symbol:_,node:c})}}return m}var b=_.getDeclarations();var x=b&&e.find(b,function(e){return e.getSourceFile()===o});if(!x){return undefined}if(e.rangeContainsStartEnd(n,x.getStart(),x.end)){return undefined}if(t.facts&a.IsGenerator&&u===2){var C=e.createDiagnosticForNode(c,i.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(var E=0,D=d;E<D.length;E++){var N=D[E];N.push(C)}for(var A=0,O=p;A<O.length;A++){var N=O[A];N.push(C)}}for(var F=0;F<r.length;F++){var P=r[F];var I=s.resolveName(_.name,P,_.flags,false);if(I===_){continue}if(!f[F].has(m)){var w=tryReplaceWithQualifiedNameOrPropertyAccess(_.exportSymbol||_,P,g);if(w){f[F].set(m,w)}else if(g){if(!(_.flags&262144)){var C=e.createDiagnosticForNode(c,i.typeWillNotBeVisibleInTheNewScope);d[F].push(C);p[F].push(C)}}else{l[F].usages.set(c.text,{usage:u,symbol:_,node:c})}}}return m}function checkForUsedDeclarations(r){if(r===t.range||isReadonlyArray(t.range)&&t.range.indexOf(r)>=0){return}var n=e.isIdentifier(r)?getSymbolReferencedByIdentifier(r):s.getSymbolAtLocation(r);if(n){var i=e.find(g,function(e){return e.symbol===n});if(i){if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();if(!_.has(a)){m.push(i);_.set(a,true)}}else{y=y||i}}}e.forEachChild(r,checkForUsedDeclarations)}function getSymbolReferencedByIdentifier(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function tryReplaceWithQualifiedNameOrPropertyAccess(t,r,n){if(!t){return undefined}var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r})){return e.createIdentifier(t.name)}var a=tryReplaceWithQualifiedNameOrPropertyAccess(t.parent,r,n);if(a===undefined){return undefined}return n?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}function isExtractableExpression(e){var t=e.parent;switch(t.kind){case 278:return false}switch(e.kind){case 10:return t.kind!==249&&t.kind!==253;case 208:case 184:case 186:return false;case 72:return t.kind!==186&&t.kind!==253&&t.kind!==257}return true}function isBlockLike(e){switch(e.kind){case 218:case 279:case 245:case 271:return true;default:return false}}})(r=t.extractSymbol||(t.extractSymbol={}))})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(r){var n="Generate 'get' and 'set' accessors";var i=e.Diagnostics.Generate_get_and_set_accessors.message;t.registerRefactor(n,{getEditsForAction:getEditsForAction,getAvailableActions:getAvailableActions});function getAvailableActions(t){if(!getConvertibleFieldAtPosition(t))return e.emptyArray;return[{name:n,description:i,actions:[{name:n,description:i}]}]}function getEditsForAction(t,r){var n=t.file;var i=getConvertibleFieldAtPosition(t);if(!i)return undefined;var a=e.isSourceFileJS(n);var o=e.textChanges.ChangeTracker.fromContext(t);var s=i.isStatic,c=i.isReadonly,u=i.fieldName,l=i.accessorName,f=i.originalName,d=i.type,p=i.container,g=i.declaration,_=i.renameAccessor;e.suppressLeadingAndTrailingTrivia(u);e.suppressLeadingAndTrailingTrivia(g);e.suppressLeadingAndTrailingTrivia(p);var m=e.isClassLike(p);var y=e.getModifierFlags(g)&~64;var h=m?!y||y&8?getModifiers(a,s,115):e.createNodeArray(e.createModifiersFromModifierFlags(y)):undefined;var v=m?getModifiers(a,s,113):undefined;updateFieldDeclaration(o,n,g,u,v);var T=generateGetAccessor(u,l,d,h,s,p);e.suppressLeadingAndTrailingTrivia(T);insertAccessor(o,n,T,g,p);if(c){var S=e.getFirstConstructorWithBody(p);if(S){updateReadonlyPropertyInitializerStatementConstructor(o,n,S,u.text,f)}}else{var b=generateSetAccessor(u,l,d,h,s,p);e.suppressLeadingAndTrailingTrivia(b);insertAccessor(o,n,b,g,p)}var x=o.getChanges();var C=n.fileName;var E=_?l:u;var D=e.isIdentifier(E)?0:-1;var k=D+e.getRenameLocation(x,C,E.text,e.isParameter(g));return{renameFilename:C,renameLocation:k,edits:x}}function isConvertibleName(t){return e.isIdentifier(t)||e.isStringLiteral(t)}function isAcceptedDeclaration(t){return e.isParameterPropertyDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function createPropertyName(t,r){return e.isIdentifier(r)?e.createIdentifier(t):e.createLiteral(t)}function createAccessorAccessExpression(t,r,n){var i=r?n.name:e.createThis();return e.isIdentifier(t)?e.createPropertyAccess(i,t):e.createElementAccess(i,e.createLiteral(t))}function getModifiers(t,r,n){var i=e.append(!t?[e.createToken(n)]:undefined,r?e.createToken(116):undefined);return i&&e.createNodeArray(i)}function startsWithUnderscore(e){return e.charCodeAt(0)===95}function getConvertibleFieldAtPosition(t){var r=t.file,n=t.startPosition,i=t.endPosition;var a=e.getTokenAtPosition(r,n);var o=e.findAncestor(a.parent,isAcceptedDeclaration);var s=28|32|64;if(!o||!e.nodeOverlapsWithStartEnd(o.name,r,n,i)||!isConvertibleName(o.name)||(e.getModifierFlags(o)|s)!==s)return undefined;var c=o.name.text;var u=startsWithUnderscore(c);var l=createPropertyName(u?c:e.getUniqueName("_"+c,r),o.name);var f=createPropertyName(u?e.getUniqueName(c.substring(1),r):c,o.name);return{isStatic:e.hasStaticModifier(o),isReadonly:e.hasReadonlyModifier(o),type:e.getTypeAnnotationNode(o),container:o.kind===151?o.parent.parent:o.parent,originalName:o.name.text,declaration:o,fieldName:l,accessorName:f,renameAccessor:u}}function generateGetAccessor(t,r,n,i,a,o){return e.createGetAccessor(undefined,i,r,undefined,n,e.createBlock([e.createReturn(createAccessorAccessExpression(t,a,o))],true))}function generateSetAccessor(t,r,n,i,a,o){return e.createSetAccessor(undefined,i,r,[e.createParameter(undefined,undefined,undefined,e.createIdentifier("value"),undefined,n)],e.createBlock([e.createStatement(e.createAssignment(createAccessorAccessExpression(t,a,o),e.createIdentifier("value")))],true))}function updatePropertyDeclaration(t,r,n,i,a){var o=e.updateProperty(n,n.decorators,a,i,n.questionToken||n.exclamationToken,n.type,n.initializer);t.replaceNode(r,n,o)}function updatePropertyAssignmentDeclaration(t,r,n,i){var a=e.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}function updateFieldDeclaration(t,r,n,i,a){if(e.isPropertyDeclaration(n)){updatePropertyDeclaration(t,r,n,i,a)}else if(e.isPropertyAssignment(n)){updatePropertyAssignmentDeclaration(t,r,n,i)}else{t.replaceNode(r,n,e.updateParameter(n,n.decorators,a,n.dotDotDotToken,e.cast(i,e.isIdentifier),n.questionToken,n.type,n.initializer))}}function insertAccessor(t,r,n,i,a){e.isParameterPropertyDeclaration(i)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function updateReadonlyPropertyInitializerStatementConstructor(t,r,n,i,a){if(!n.body)return;n.body.forEachChild(function recur(n){if(e.isElementAccessExpression(n)&&n.expression.kind===100&&e.isStringLiteral(n.argumentExpression)&&n.argumentExpression.text===a&&e.isWriteAccess(n)){t.replaceNode(r,n.argumentExpression,e.createStringLiteral(i))}if(e.isPropertyAccessExpression(n)&&n.expression.kind===100&&n.name.text===a&&e.isWriteAccess(n)){t.replaceNode(r,n.name,e.createIdentifier(i))}if(!e.isFunctionLike(n)&&!e.isClassLike(n)){n.forEachChild(recur)}})}})(r=t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}))})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r="Move to a new file";t.registerRefactor(r,{getAvailableActions:function(t){if(!t.preferences.allowTextChangesInNewFiles||getStatementsToMove(t)===undefined)return e.emptyArray;var n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:r,description:n,actions:[{name:r,description:n}]}]},getEditsForAction:function(t,n){e.Debug.assert(n===r);var i=e.Debug.assertDefined(getStatementsToMove(t));var a=e.textChanges.ChangeTracker.with(t,function(e){return doChange(t.file,t.program,i,e,t.host,t.preferences)});return{edits:a,renameFilename:undefined,renameLocation:undefined}}});function getRangeToMove(t){var r=t.file;var n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t));var i=r.statements;var a=e.findIndex(i,function(e){return e.end>n.pos});if(a===-1)return undefined;var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n)){return{toMove:[i[a]],afterLast:i[a+1]}}if(n.pos>o.getStart(r))return undefined;var s=e.findIndex(i,function(e){return e.end>n.end},a);if(s!==-1&&(s===0||i[s].getStart(r)<n.end))return undefined;return{toMove:i.slice(a,s===-1?i.length:s),afterLast:s===-1?undefined:i[s]}}function doChange(t,r,n,i,a,o){var s=r.getTypeChecker();var c=getUsageInfo(t,n.all,s);var u=e.getDirectoryPath(t.fileName);var l=e.extensionFromPath(t.fileName);var f=makeUniqueModuleName(getNewModuleName(c.movedSymbols),l,u,a);var d=f+l;i.createNewFile(t,e.combinePaths(u,d),getNewStatementsAndRemoveFromOldFile(t,c,i,n,r,f,o));addNewFileToTsconfig(r,i,t.fileName,d,e.hostGetCanonicalFileName(a))}function getStatementsToMove(t){var r=getRangeToMove(t);if(r===undefined)return undefined;var n=[];var i=[];var a=r.toMove,o=r.afterLast;e.getRangesWhere(a,function(e){return!isPureImport(e)},function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})});return n.length===0?undefined:{all:n,ranges:i}}function isPureImport(t){switch(t.kind){case 249:return true;case 248:return!e.hasModifier(t,1);case 219:return t.declarationList.declarations.every(function(t){return!!t.initializer&&e.isRequireCall(t.initializer,true)});default:return false}}function addNewFileToTsconfig(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(!o)return;var s=e.normalizePath(e.combinePaths(n,"..",i));var c=e.getRelativePathFromFile(o.fileName,s,a);var u=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression);var l=u&&e.find(u.properties,function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&t.name.text==="files"});if(l&&e.isArrayLiteralExpression(l.initializer)){r.insertNodeInListAfter(o,e.last(l.initializer.elements),e.createLiteral(c),l.initializer.elements)}}function getNewStatementsAndRemoveFromOldFile(t,r,n,i,a,o,s){var c=a.getTypeChecker();if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator){deleteMovedStatements(t,i.ranges,n);return i.all}var u=!!t.externalModuleIndicator;var l=e.getQuotePreference(t,s);var f=createOldFileImportsFromNewFile(r.oldFileImportsFromNewFile,o,u,l);if(f){e.insertImport(n,t,f)}deleteUnusedOldImports(t,i.all,n,r.unusedImportsFromOldFile,c);deleteMovedStatements(t,i.ranges,n);updateImportsInOtherFiles(n,a,t,r.movedSymbols,o);return getNewFileImportsAndAddExportInOldFile(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,c,u,l).concat(addExports(t,i.all,r.oldFileImportsFromNewFile,u))}function deleteMovedStatements(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function deleteUnusedOldImports(t,r,n,i,a){for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.contains(r,c))continue;forEachImportInStatement(c,function(e){return deleteUnusedImports(t,e,n,function(e){return i.has(a.getSymbolAtLocation(e))})})}}function updateImportsInOtherFiles(t,r,n,i,a){var o=r.getTypeChecker();var s=function(r){if(r===n)return"continue";var s=function(s){forEachImportInStatement(s,function(c){if(o.getSymbolAtLocation(moduleSpecifierFromImport(c))!==n.symbol)return;var u=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};deleteUnusedImports(r,c,t,u);var l=e.combinePaths(e.getDirectoryPath(moduleSpecifierFromImport(c).text),a);var f=filterImport(c,e.createLiteral(l),u);if(f)t.insertNodeAfter(r,s,f);var d=getNamespaceLikeImport(c);if(d)updateNamespaceLikeImport(t,r,o,i,a,l,d,c)})};for(var c=0,u=r.statements;c<u.length;c++){var l=u[c];s(l)}};for(var c=0,u=r.getSourceFiles();c<u.length;c++){var l=u[c];s(l)}}function getNamespaceLikeImport(t){switch(t.kind){case 249:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===251?t.importClause.namedBindings.name:undefined;case 248:return t.name;case 237:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t)}}function updateNamespaceLikeImport(t,r,n,i,a,o,s,c){var u=e.codefix.moduleSpecifierToValidIdentifier(a,6);var l=false;var f=[];e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,function(t){if(!e.isPropertyAccessExpression(t.parent))return;l=l||!!n.resolveName(u,t,67108863,true);if(i.has(n.getSymbolAtLocation(t.parent.name))){f.push(t)}});if(f.length){var d=l?e.getUniqueName(u,r):u;for(var p=0,g=f;p<g.length;p++){var _=g[p];t.replaceNode(r,_,e.createIdentifier(d))}t.insertNodeAfter(r,c,updateNamespaceLikeImportNode(c,a,o))}}function updateNamespaceLikeImportNode(t,r,n){var i=e.createIdentifier(r);var a=e.createLiteral(n);switch(t.kind){case 249:return e.createImportDeclaration(undefined,undefined,e.createImportClause(undefined,e.createNamespaceImport(i)),a);case 248:return e.createImportEqualsDeclaration(undefined,undefined,i,e.createExternalModuleReference(a));case 237:return e.createVariableDeclaration(i,undefined,createRequireCall(a));default:return e.Debug.assertNever(t)}}function moduleSpecifierFromImport(e){return e.kind===249?e.moduleSpecifier:e.kind===248?e.moduleReference.expression:e.initializer.arguments[0]}function forEachImportInStatement(t,r){if(e.isImportDeclaration(t)){if(e.isStringLiteral(t.moduleSpecifier))r(t)}else if(e.isImportEqualsDeclaration(t)){if(e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)){r(t)}}else if(e.isVariableStatement(t)){for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];if(a.initializer&&e.isRequireCall(a.initializer,true)){r(a)}}}}function createOldFileImportsFromNewFile(t,r,n,i){var a;var o=[];t.forEach(function(t){if(t.escapedName==="default"){a=e.createIdentifier(e.symbolNameNoDefault(t))}else{o.push(t.name)}});return makeImportOrRequire(a,o,r,n,i)}function makeImportOrRequire(t,r,n,i,a){n=e.ensurePathIsNonModuleName(n);if(i){var o=r.map(function(t){return e.createImportSpecifier(undefined,e.createIdentifier(t))});return e.makeImportIfNecessary(t,o,n,a)}else{e.Debug.assert(!t);var s=r.map(function(t){return e.createBindingElement(undefined,undefined,t)});return s.length?makeVariableStatement(e.createObjectBindingPattern(s),undefined,createRequireCall(e.createLiteral(n))):undefined}}function makeVariableStatement(t,r,n,i){if(i===void 0){i=2}return e.createVariableStatement(undefined,e.createVariableDeclarationList([e.createVariableDeclaration(t,r,n)],i))}function createRequireCall(t){return e.createCall(e.createIdentifier("require"),undefined,[t])}function addExports(t,r,n,i){return e.flatMap(r,function(r){if(isTopLevelDeclarationStatement(r)&&!isExported(t,r,i)&&forEachTopLevelDeclaration(r,function(t){return n.has(e.Debug.assertDefined(t.symbol))})){var a=addExport(r,i);if(a)return a}return r})}function deleteUnusedImports(t,r,n,i){switch(r.kind){case 249:deleteUnusedImportsInDeclaration(t,r,n,i);break;case 248:if(i(r.name)){n.delete(t,r)}break;case 237:deleteUnusedImportsInVariableDeclaration(t,r,n,i);break;default:e.Debug.assertNever(r)}}function deleteUnusedImportsInDeclaration(e,t,r,n){if(!t.importClause)return;var i=t.importClause,a=i.name,o=i.namedBindings;var s=!a||n(a);var c=!o||(o.kind===251?n(o.name):o.elements.length!==0&&o.elements.every(function(e){return n(e.name)}));if(s&&c){r.delete(e,t)}else{if(a&&s){r.delete(e,a)}if(o){if(c){r.delete(e,o)}else if(o.kind===252){for(var u=0,l=o.elements;u<l.length;u++){var f=l[u];if(n(f.name))r.delete(e,f)}}}}}function deleteUnusedImportsInVariableDeclaration(t,r,n,i){var a=r.name;switch(a.kind){case 72:if(i(a)){n.delete(t,a)}break;case 185:break;case 184:if(a.elements.every(function(t){return e.isIdentifier(t.name)&&i(t.name)})){n.delete(t,e.isVariableDeclarationList(r.parent)&&r.parent.declarations.length===1?r.parent.parent:r)}else{for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];if(e.isIdentifier(c.name)&&i(c.name)){n.delete(t,c.name)}}}break}}function getNewFileImportsAndAddExportInOldFile(t,r,n,i,a,o,s){var c=[];for(var u=0,l=t.statements;u<l.length;u++){var f=l[u];forEachImportInStatement(f,function(t){e.append(c,filterImport(t,moduleSpecifierFromImport(t),function(e){return r.has(a.getSymbolAtLocation(e))}))})}var d;var p=[];var g=e.nodeSeenTracker();n.forEach(function(r){for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(!isTopLevelDeclaration(s))continue;var c=nameOfTopLevelDeclaration(s);if(!c)continue;var u=getTopLevelDeclarationStatement(s);if(g(u)){addExportToChanges(t,u,i,o)}if(e.hasModifier(s,512)){d=c}else{p.push(c.text)}}});e.append(c,makeImportOrRequire(d,p,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s));return c}function makeUniqueModuleName(t,r,n,i){var a=t;for(var o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a=t+"."+o}}function getNewModuleName(t){return t.forEachEntry(e.symbolNameNoDefault)||"newFile"}function getUsageInfo(t,r,i){var a=new n;var o=new n;var s=new n;for(var c=0,u=r;c<u.length;c++){var l=u[c];forEachTopLevelDeclaration(l,function(t){a.add(e.Debug.assertDefined(e.isExpressionStatement(t)?i.getSymbolAtLocation(t.expression.left):t.symbol))})}for(var f=0,d=r;f<d.length;f++){var l=d[f];forEachReference(l,i,function(e){if(!e.declarations)return;for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r];if(isInImport(i)){o.add(e)}else if(isTopLevelDeclaration(i)&&sourceFileOfTopLevelDeclaration(i)===t&&!a.has(e)){s.add(e)}}})}var p=o.clone();var g=new n;for(var _=0,m=t.statements;_<m.length;_++){var l=m[_];if(e.contains(r,l))continue;forEachReference(l,i,function(e){if(a.has(e))g.add(e);p.delete(e)})}return{movedSymbols:a,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:g,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:p}}function isInImport(t){switch(t.kind){case 248:case 253:case 250:return true;case 237:return isVariableDeclarationInImport(t);case 186:return e.isVariableDeclaration(t.parent.parent)&&isVariableDeclarationInImport(t.parent.parent);default:return false}}function isVariableDeclarationInImport(t){return e.isSourceFile(t.parent.parent.parent)&&t.initializer&&e.isRequireCall(t.initializer,true)}function filterImport(t,r,n){switch(t.kind){case 249:{var i=t.importClause;if(!i)return undefined;var a=i.name&&n(i.name)?i.name:undefined;var o=i.namedBindings&&filterNamedBindings(i.namedBindings,n);return a||o?e.createImportDeclaration(undefined,undefined,e.createImportClause(a,o),r):undefined}case 248:return n(t.name)?t:undefined;case 237:{var s=filterBindingName(t.name,n);return s?makeVariableStatement(s,t.type,createRequireCall(r),t.parent.flags):undefined}default:return e.Debug.assertNever(t)}}function filterNamedBindings(t,r){if(t.kind===251){return r(t.name)?t:undefined}else{var n=t.elements.filter(function(e){return r(e.name)});return n.length?e.createNamedImports(n):undefined}}function filterBindingName(t,r){switch(t.kind){case 72:return r(t)?t:undefined;case 185:return t;case 184:{var n=t.elements.filter(function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)});return n.length?e.createObjectBindingPattern(n):undefined}}}function forEachReference(t,r,n){t.forEachChild(function cb(t){if(e.isIdentifier(t)&&!e.isDeclarationName(t)){var i=r.getSymbolAtLocation(t);if(i)n(i)}else{t.forEachChild(cb)}})}var n=function(){function SymbolSet(){this.map=e.createMap()}SymbolSet.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)};SymbolSet.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))};SymbolSet.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))};SymbolSet.prototype.forEach=function(e){this.map.forEach(e)};SymbolSet.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)};SymbolSet.prototype.clone=function(){var t=new SymbolSet;e.copyEntries(this.map,t.map);return t};return SymbolSet}();function isTopLevelDeclaration(t){return isNonVariableTopLevelDeclaration(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function sourceFileOfTopLevelDeclaration(t){return e.isVariableDeclaration(t)?t.parent.parent.parent:t.parent}function isTopLevelDeclarationStatement(t){e.Debug.assert(e.isSourceFile(t.parent));return isNonVariableTopLevelDeclaration(t)||e.isVariableStatement(t)}function isNonVariableTopLevelDeclaration(e){switch(e.kind){case 239:case 240:case 244:case 243:case 242:case 241:case 248:return true;default:return false}}function forEachTopLevelDeclaration(t,r){switch(t.kind){case 239:case 240:case 244:case 243:case 242:case 241:case 248:return r(t);case 219:return e.firstDefined(t.declarationList.declarations,function(e){return forEachTopLevelDeclarationInBindingName(e.name,r)});case 221:{var n=t.expression;return e.isBinaryExpression(n)&&e.getAssignmentDeclarationKind(n)===1?r(t):undefined}}}function forEachTopLevelDeclarationInBindingName(t,r){switch(t.kind){case 72:return r(e.cast(t.parent,function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)}));case 185:case 184:return e.firstDefined(t.elements,function(t){return e.isOmittedExpression(t)?undefined:forEachTopLevelDeclarationInBindingName(t.name,r)});default:return e.Debug.assertNever(t)}}function nameOfTopLevelDeclaration(t){return e.isExpressionStatement(t)?t.expression.left.name:e.tryCast(t.name,e.isIdentifier)}function getTopLevelDeclarationStatement(t){switch(t.kind){case 237:return t.parent.parent;case 186:return getTopLevelDeclarationStatement(e.cast(t.parent.parent,function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)}));default:return t}}function addExportToChanges(t,r,n,i){if(isExported(t,r,i))return;if(i){if(!e.isExpressionStatement(r))n.insertExportModifier(t,r)}else{var a=getNamesToExportInCommonJS(r);if(a.length!==0)n.insertNodesAfter(t,r,a.map(createExportAssignment))}}function isExported(t,r,n){if(n){return!e.isExpressionStatement(r)&&e.hasModifier(r,1)}else{return getNamesToExportInCommonJS(r).some(function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))})}}function addExport(e,t){return t?[addEs6Export(e)]:addCommonjsExport(e)}function addEs6Export(t){var r=e.concatenate([e.createModifier(85)],t.modifiers);switch(t.kind){case 239:return e.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 240:return e.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 219:return e.updateVariableStatement(t,r,t.declarationList);case 244:return e.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 243:return e.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 242:return e.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 241:return e.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 248:return e.updateImportEqualsDeclaration(t,t.decorators,r,t.name,t.moduleReference);case 221:return e.Debug.fail();default:return e.Debug.assertNever(t)}}function addCommonjsExport(e){return[e].concat(getNamesToExportInCommonJS(e).map(createExportAssignment))}function getNamesToExportInCommonJS(t){switch(t.kind){case 239:case 240:return[t.name.text];case 219:return e.mapDefined(t.declarationList.declarations,function(t){return e.isIdentifier(t.name)?t.name.text:undefined});case 244:case 243:case 242:case 241:case 248:return e.emptyArray;case 221:return e.Debug.fail();default:return e.Debug.assertNever(t)}}function createExportAssignment(t){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(t)),59,e.createIdentifier(t)))}})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){var t;(function(t){var r;(function(r){var n="Add or remove braces in an arrow function";var i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message;var a="Add braces to arrow function";var o="Remove braces from arrow function";var s=e.Diagnostics.Add_braces_to_arrow_function.message;var c=e.Diagnostics.Remove_braces_from_arrow_function.message;t.registerRefactor(n,{getEditsForAction:getEditsForAction,getAvailableActions:getAvailableActions});function getAvailableActions(t){var r=t.file,u=t.startPosition;var l=getConvertibleArrowFunctionAtPosition(r,u);if(!l)return e.emptyArray;return[{name:n,description:i,actions:[l.addBraces?{name:a,description:s}:{name:o,description:c}]}]}function getEditsForAction(t,r){var n=t.file,i=t.startPosition;var s=getConvertibleArrowFunctionAtPosition(n,i);if(!s)return undefined;var c=s.expression,u=s.returnStatement,l=s.func;var f;if(r===a){var d=e.createReturn(c);f=e.createBlock([d],true);e.suppressLeadingAndTrailingTrivia(f);e.copyComments(c,d,n,3,true)}else if(r===o&&u){var p=c||e.createVoidZero();f=needsParentheses(p)?e.createParen(p):p;e.suppressLeadingAndTrailingTrivia(f);e.copyComments(u,f,n,3,false)}else{e.Debug.fail("invalid action")}var g=e.textChanges.ChangeTracker.with(t,function(e){return e.replaceNode(n,l.body,f)});return{renameFilename:undefined,renameLocation:undefined,edits:g}}function needsParentheses(t){return e.isBinaryExpression(t)&&t.operatorToken.kind===27||e.isObjectLiteralExpression(t)}function getConvertibleArrowFunctionAtPosition(t,r){var n=e.getTokenAtPosition(t,r);var i=e.getContainingFunction(n);if(!i||!e.isArrowFunction(i)||(!e.rangeContainsRange(i,n)||e.rangeContainsRange(i.body,n)))return undefined;if(e.isExpression(i.body)){return{func:i,addBraces:true,expression:i.body}}else if(i.body.statements.length===1){var a=e.first(i.body.statements);if(e.isReturnStatement(a)){return{func:i,addBraces:false,expression:a.expression,returnStatement:a}}}return undefined}})(r=t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(t=e.refactor||(e.refactor={}))})(s||(s={}));var s;(function(e){e.servicesVersion="0.8";function createNode(r,n,i,a){var o=e.isNodeKind(r)?new t(r,n,i):r===72?new c(72,n,i):new s(r,n,i);o.parent=a;o.flags=a.flags&12679168;return o}var t=function(){function NodeObject(e,t,r){this.pos=t;this.end=r;this.flags=0;this.transformFlags=undefined;this.parent=undefined;this.kind=e}NodeObject.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")};NodeObject.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)};NodeObject.prototype.getStart=function(t,r){this.assertHasRealPosition();return e.getTokenPosOfNode(this,t,r)};NodeObject.prototype.getFullStart=function(){this.assertHasRealPosition();return this.pos};NodeObject.prototype.getEnd=function(){this.assertHasRealPosition();return this.end};NodeObject.prototype.getWidth=function(e){this.assertHasRealPosition();return this.getEnd()-this.getStart(e)};NodeObject.prototype.getFullWidth=function(){this.assertHasRealPosition();return this.end-this.pos};NodeObject.prototype.getLeadingTriviaWidth=function(e){this.assertHasRealPosition();return this.getStart(e)-this.pos};NodeObject.prototype.getFullText=function(e){this.assertHasRealPosition();return(e||this.getSourceFile()).text.substring(this.pos,this.end)};NodeObject.prototype.getText=function(e){this.assertHasRealPosition();if(!e){e=this.getSourceFile()}return e.text.substring(this.getStart(e),this.getEnd())};NodeObject.prototype.getChildCount=function(e){return this.getChildren(e).length};NodeObject.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]};NodeObject.prototype.getChildren=function(e){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");return this._children||(this._children=createChildren(this,e))};NodeObject.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(!r.length){return undefined}var n=e.find(r,function(e){return e.kind<283||e.kind>305});return n.kind<148?n:n.getFirstToken(t)};NodeObject.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);var n=e.lastOrUndefined(r);if(!n){return undefined}return n.kind<148?n:n.getLastToken(t)};NodeObject.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)};return NodeObject}();function createChildren(t,r){if(!e.isNodeKind(t.kind)){return e.emptyArray}var n=[];if(e.isJSDocCommentContainingNode(t)){t.forEachChild(function(e){n.push(e)});return n}e.scanner.setText((r||t.getSourceFile()).text);var i=t.pos;var a=function(e){addSyntheticNodes(n,i,e.pos,t);n.push(e);i=e.end};var o=function(e){addSyntheticNodes(n,i,e.pos,t);n.push(createSyntaxList(e,t));i=e.end};e.forEach(t.jsDoc,a);i=t.pos;t.forEachChild(a,o);addSyntheticNodes(n,i,t.end,t);e.scanner.setText(undefined);return n}function addSyntheticNodes(t,r,n,i){e.scanner.setTextPos(r);while(r<n){var a=e.scanner.scan();var o=e.scanner.getTextPos();if(o<=n){if(a===72){e.Debug.fail("Did not expect "+e.Debug.showSyntaxKind(i)+" to have an Identifier in its trivia")}t.push(createNode(a,r,o,i))}r=o;if(a===1){break}}}function createSyntaxList(e,t){var r=createNode(306,e.pos,e.end,t);r._children=[];var n=e.pos;for(var i=0,a=e;i<a.length;i++){var o=a[i];addSyntheticNodes(r._children,n,o.pos,t);r._children.push(o);n=o.end}addSyntheticNodes(r._children,n,e.end,t);return r}var i=function(){function TokenOrIdentifierObject(e,t){this.pos=e;this.end=t;this.flags=0;this.parent=undefined}TokenOrIdentifierObject.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)};TokenOrIdentifierObject.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)};TokenOrIdentifierObject.prototype.getFullStart=function(){return this.pos};TokenOrIdentifierObject.prototype.getEnd=function(){return this.end};TokenOrIdentifierObject.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)};TokenOrIdentifierObject.prototype.getFullWidth=function(){return this.end-this.pos};TokenOrIdentifierObject.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos};TokenOrIdentifierObject.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)};TokenOrIdentifierObject.prototype.getText=function(e){if(!e){e=this.getSourceFile()}return e.text.substring(this.getStart(e),this.getEnd())};TokenOrIdentifierObject.prototype.getChildCount=function(){return 0};TokenOrIdentifierObject.prototype.getChildAt=function(){return undefined};TokenOrIdentifierObject.prototype.getChildren=function(){return this.kind===1?this.jsDoc||e.emptyArray:e.emptyArray};TokenOrIdentifierObject.prototype.getFirstToken=function(){return undefined};TokenOrIdentifierObject.prototype.getLastToken=function(){return undefined};TokenOrIdentifierObject.prototype.forEachChild=function(){return undefined};return TokenOrIdentifierObject}();var a=function(){function SymbolObject(e,t){this.flags=e;this.escapedName=t}SymbolObject.prototype.getFlags=function(){return this.flags};Object.defineProperty(SymbolObject.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:true,configurable:true});SymbolObject.prototype.getEscapedName=function(){return this.escapedName};SymbolObject.prototype.getName=function(){return this.name};SymbolObject.prototype.getDeclarations=function(){return this.declarations};SymbolObject.prototype.getDocumentationComment=function(t){if(!this.documentationComment){this.documentationComment=e.emptyArray;this.documentationComment=getDocumentationComment(this.declarations,t)}return this.documentationComment};SymbolObject.prototype.getJsDocTags=function(){if(this.tags===undefined){this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)}return this.tags};return SymbolObject}();var s=function(e){o(TokenObject,e);function TokenObject(t,r,n){var i=e.call(this,r,n)||this;i.kind=t;return i}return TokenObject}(i);var c=function(t){o(IdentifierObject,t);function IdentifierObject(e,r,n){return t.call(this,r,n)||this}Object.defineProperty(IdentifierObject.prototype,"text",{get:function(){return e.idText(this)},enumerable:true,configurable:true});return IdentifierObject}(i);c.prototype.kind=72;var u=function(){function TypeObject(e,t){this.checker=e;this.flags=t}TypeObject.prototype.getFlags=function(){return this.flags};TypeObject.prototype.getSymbol=function(){return this.symbol};TypeObject.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)};TypeObject.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)};TypeObject.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)};TypeObject.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)};TypeObject.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)};TypeObject.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)};TypeObject.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)};TypeObject.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):undefined};TypeObject.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)};TypeObject.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)};TypeObject.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)};TypeObject.prototype.isUnion=function(){return!!(this.flags&1048576)};TypeObject.prototype.isIntersection=function(){return!!(this.flags&2097152)};TypeObject.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)};TypeObject.prototype.isLiteral=function(){return!!(this.flags&384)};TypeObject.prototype.isStringLiteral=function(){return!!(this.flags&128)};TypeObject.prototype.isNumberLiteral=function(){return!!(this.flags&256)};TypeObject.prototype.isTypeParameter=function(){return!!(this.flags&262144)};TypeObject.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)};TypeObject.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)};return TypeObject}();var l=function(){function SignatureObject(e){this.checker=e}SignatureObject.prototype.getDeclaration=function(){return this.declaration};SignatureObject.prototype.getTypeParameters=function(){return this.typeParameters};SignatureObject.prototype.getParameters=function(){return this.parameters};SignatureObject.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)};SignatureObject.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=getDocumentationComment(e.singleElementArray(this.declaration),this.checker))};SignatureObject.prototype.getJsDocTags=function(){if(this.jsDocTags===undefined){this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]}return this.jsDocTags};return SignatureObject}();function hasJSDocInheritDocTag(t){return e.getJSDocTags(t).some(function(e){return e.tagName.text==="inheritDoc"})}function getDocumentationComment(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);if(n.length===0||t.some(hasJSDocInheritDocTag)){for(var i=0,a=t;i<a.length;i++){var o=a[i];var s=findInheritedJSDocComments(o,o.symbol.name,r);if(s)n=n.length===0?s.slice():s.concat(e.lineBreakPart(),n)}}return n}function findInheritedJSDocComments(t,r,n){return e.firstDefined(t.parent?e.getAllSuperTypeNodes(t.parent):e.emptyArray,function(e){var t=n.getTypeAtLocation(e);var i=t&&n.getPropertyOfType(t,r);var a=i&&i.getDocumentationComment(n);return a&&a.length?a:undefined})}var f=function(t){o(SourceFileObject,t);function SourceFileObject(e,r,n){return t.call(this,e,r,n)||this}SourceFileObject.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)};SourceFileObject.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)};SourceFileObject.prototype.getLineStarts=function(){return e.getLineStarts(this)};SourceFileObject.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)};SourceFileObject.prototype.getLineEndOfPosition=function(e){var t=this.getLineAndCharacterOfPosition(e).line;var r=this.getLineStarts();var n;if(t+1>=r.length){n=this.getEnd()}if(!n){n=r[t+1]-1}var i=this.getFullText();return i[n]==="\n"&&i[n-1]==="\r"?n-1:n};SourceFileObject.prototype.getNamedDeclarations=function(){if(!this.namedDeclarations){this.namedDeclarations=this.computeNamedDeclarations()}return this.namedDeclarations};SourceFileObject.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();this.forEachChild(visit);return t;function addDeclaration(e){var r=getDeclarationName(e);if(r){t.add(r,e)}}function getDeclarations(e){var r=t.get(e);if(!r){t.set(e,r=[])}return r}function getDeclarationName(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):undefined)}function visit(t){switch(t.kind){case 239:case 196:case 156:case 155:var r=t;var n=getDeclarationName(r);if(n){var i=getDeclarations(n);var a=e.lastOrUndefined(i);if(a&&r.parent===a.parent&&r.symbol===a.symbol){if(r.body&&!a.body){i[i.length-1]=r}}else{i.push(r)}}e.forEachChild(t,visit);break;case 240:case 209:case 241:case 242:case 243:case 244:case 248:case 257:case 253:case 250:case 251:case 158:case 159:case 168:addDeclaration(t);e.forEachChild(t,visit);break;case 151:if(!e.hasModifier(t,92)){break}case 237:case 186:{var o=t;if(e.isBindingPattern(o.name)){e.forEachChild(o.name,visit);break}if(o.initializer){visit(o.initializer)}}case 278:case 154:case 153:addDeclaration(t);break;case 255:if(t.exportClause){e.forEach(t.exportClause.elements,visit)}break;case 249:var s=t.importClause;if(s){if(s.name){addDeclaration(s.name)}if(s.namedBindings){if(s.namedBindings.kind===251){addDeclaration(s.namedBindings)}else{e.forEach(s.namedBindings.elements,visit)}}}break;case 204:if(e.getAssignmentDeclarationKind(t)!==0){addDeclaration(t)}default:e.forEachChild(t,visit)}}};return SourceFileObject}(t);var d=function(){function SourceMapSourceObject(e,t,r){this.fileName=e;this.text=t;this.skipTrivia=r}SourceMapSourceObject.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)};return SourceMapSourceObject}();function getServicesObjectAllocator(){return{getNodeConstructor:function(){return t},getTokenConstructor:function(){return s},getIdentifierConstructor:function(){return c},getSourceFileConstructor:function(){return f},getSymbolConstructor:function(){return a},getTypeConstructor:function(){return u},getSignatureConstructor:function(){return l},getSourceMapSourceConstructor:function(){return d}}}function toEditorSettings(t){var r=true;for(var n in t){if(e.hasProperty(t,n)&&!isCamelCase(n)){r=false;break}}if(r){return t}var i={};for(var n in t){if(e.hasProperty(t,n)){var a=isCamelCase(n)?n:n.charAt(0).toLowerCase()+n.substr(1);i[a]=t[n]}}return i}e.toEditorSettings=toEditorSettings;function isCamelCase(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function displayPartsToString(t){if(t){return e.map(t,function(e){return e.text}).join("")}return""}e.displayPartsToString=displayPartsToString;function getDefaultCompilerOptions(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=getDefaultCompilerOptions;function getSupportedCodeFixes(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=getSupportedCodeFixes;var p=function(){function HostCache(t,r){this.host=t;this.currentDirectory=t.getCurrentDirectory();this.fileNameToEntry=e.createMap();var n=t.getScriptFileNames();for(var i=0,a=n;i<a.length;i++){var o=a[i];this.createEntry(o,e.toPath(o,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||getDefaultCompilerOptions()}HostCache.prototype.compilationSettings=function(){return this._compilationSettings};HostCache.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()};HostCache.prototype.createEntry=function(t,r){var n;var i=this.host.getScriptSnapshot(t);if(i){n={hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}}else{n=t}this.fileNameToEntry.set(r,n);return n};HostCache.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)};HostCache.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return!e.isString(r)?r:undefined};HostCache.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?undefined:n};HostCache.prototype.getRootFileNames=function(){var t=[];this.fileNameToEntry.forEach(function(r){if(e.isString(r)){t.push(r)}else{if(r.scriptKind!==6){t.push(r.hostFileName)}}});return t};HostCache.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version};HostCache.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot};return HostCache}();var g=function(){function SyntaxTreeCache(e){this.host=e}SyntaxTreeCache.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r){throw new Error("Could not find file: '"+t+"'.")}var n=e.getScriptKind(t,this.host);var i=this.host.getScriptVersion(t);var a;if(this.currentFileName!==t){a=createLanguageServiceSourceFile(t,r,6,i,true,n)}else if(this.currentFileVersion!==i){var o=r.getChangeRange(this.currentFileScriptSnapshot);a=updateLanguageServiceSourceFile(this.currentSourceFile,r,i,o)}if(a){this.currentFileVersion=i;this.currentFileName=t;this.currentFileScriptSnapshot=r;this.currentSourceFile=a}return this.currentSourceFile};return SyntaxTreeCache}();function setSourceFileFields(e,t,r){e.version=r;e.scriptSnapshot=t}function createLanguageServiceSourceFile(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);setSourceFileFields(s,r,i);return s}e.createLanguageServiceSourceFile=createLanguageServiceSourceFile;e.disableIncrementalParsing=false;function updateLanguageServiceSourceFile(t,r,n,i,a){if(i){if(n!==t.version){if(!e.disableIncrementalParsing){var o=void 0;var s=i.span.start!==0?t.text.substr(0,i.span.start):"";var c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(i.newLength===0){o=s&&c?s+c:s||c}else{var u=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);setSourceFileFields(l,r,n);l.nameTable=undefined;if(t!==l&&t.scriptSnapshot){if(t.scriptSnapshot.dispose){t.scriptSnapshot.dispose()}t.scriptSnapshot=undefined}return l}}}return createLanguageServiceSourceFile(t.fileName,r,t.languageVersion,n,true,t.scriptKind)}e.updateLanguageServiceSourceFile=updateLanguageServiceSourceFile;var _=function(){function CancellationTokenObject(e){this.cancellationToken=e}CancellationTokenObject.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()};CancellationTokenObject.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested()){throw new e.OperationCanceledException}};return CancellationTokenObject}();var m=function(){function ThrottledCancellationToken(e,t){if(t===void 0){t=20}this.hostCancellationToken=e;this.throttleWaitMilliseconds=t;this.lastCancellationCheckTime=0}ThrottledCancellationToken.prototype.isCancellationRequested=function(){var t=e.timestamp();var r=Math.abs(t-this.lastCancellationCheckTime);if(r>=this.throttleWaitMilliseconds){this.lastCancellationCheckTime=t;return this.hostCancellationToken.isCancellationRequested()}return false};ThrottledCancellationToken.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested()){throw new e.OperationCanceledException}};return ThrottledCancellationToken}();e.ThrottledCancellationToken=m;function createLanguageService(t,r,i){if(r===void 0){r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())}if(i===void 0){i=false}var a;var o=new g(t);var s;var c;var u=0;var l=new _(t.getCancellationToken&&t.getCancellationToken());var f=t.getCurrentDirectory();if(!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages){e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages()}function log(e){if(t.log){t.log(e)}}var d=e.hostUsesCaseSensitiveFileNames(t);var m=e.createGetCanonicalFileName(d);var y=e.getSourceMapper(d,f,log,t,function(){return s});function getValidSourceFile(e){var t=s.getSourceFile(e);if(!t){throw new Error("Could not find file: '"+e+"'.")}return t}function synchronizeHostData(){e.Debug.assert(!i);if(t.getProjectVersion){var n=t.getProjectVersion();if(n){if(c===n&&!t.hasChangedAutomaticTypeDirectiveNames){return}c=n}}var a=t.getTypeRootsVersion?t.getTypeRootsVersion():0;if(u!==a){log("TypeRoots version has changed; provide new program");s=undefined;u=a}var o=new p(t,m);var g=o.getRootFileNames();var _=t.hasInvalidatedResolution||e.returnFalse;var h=o.getProjectReferences();if(e.isProgramUptoDate(s,g,o.compilationSettings(),function(e){return o.getVersion(e)},fileExists,_,!!t.hasChangedAutomaticTypeDirectiveNames,h)){return}var v=o.compilationSettings();var T={getSourceFile:getOrCreateSourceFile,getSourceFileByPath:getOrCreateSourceFileByPath,getCancellationToken:function(){return l},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return d},getNewLine:function(){return e.getNewLineCharacter(v,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:fileExists,readFile:function(r){var n=e.toPath(r,f,m);var i=o&&o.getEntryByPath(n);if(i){return e.isString(i)?undefined:e.getSnapshotText(i.scriptSnapshot)}return t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){e.Debug.assertDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'");return t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:onReleaseOldSourceFile,hasInvalidatedResolution:_,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};if(t.trace){T.trace=function(e){return t.trace(e)}}if(t.resolveModuleNames){T.resolveModuleNames=function(e,r,n,i){return t.resolveModuleNames(e,r,n,i)}}if(t.resolveTypeReferenceDirectives){T.resolveTypeReferenceDirectives=function(e,r,n){return t.resolveTypeReferenceDirectives(e,r,n)}}var S=r.getKeyForCompilationSettings(v);var b={rootNames:g,options:v,host:T,oldProgram:s,projectReferences:h};s=e.createProgram(b);o=undefined;y.clearCache();s.getTypeChecker();return;function fileExists(r){var n=e.toPath(r,f,m);var i=o&&o.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function onReleaseOldSourceFile(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)}function getOrCreateSourceFile(t,r,n,i){return getOrCreateSourceFileByPath(t,e.toPath(t,f,m),r,n,i)}function getOrCreateSourceFileByPath(t,n,i,a,c){e.Debug.assert(o!==undefined,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=o&&o.getOrCreateEntryByPath(t,n);if(!u){return undefined}if(!c){var l=s&&s.getSourceFileByPath(n);if(l){e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",n);return r.updateDocumentWithKey(t,n,v,S,u.scriptSnapshot,u.version,u.scriptKind)}}return r.acquireDocumentWithKey(t,n,v,S,u.scriptSnapshot,u.version,u.scriptKind)}}function getProgram(){if(i){e.Debug.assert(s===undefined);return undefined}synchronizeHostData();return s}function cleanupSemanticCache(){s=undefined}function dispose(){if(s){e.forEach(s.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,s.getCompilerOptions())});s=undefined}t=undefined}function getSyntacticDiagnostics(e){synchronizeHostData();return s.getSyntacticDiagnostics(getValidSourceFile(e),l).slice()}function getSemanticDiagnostics(t){synchronizeHostData();var r=getValidSourceFile(t);var n=s.getSemanticDiagnostics(r,l);if(!e.getEmitDeclarations(s.getCompilerOptions())){return n.slice()}var i=s.getDeclarationDiagnostics(r,l);return n.concat(i)}function getSuggestionDiagnostics(t){synchronizeHostData();return e.computeSuggestionDiagnostics(getValidSourceFile(t),s,l)}function getCompilerOptionsDiagnostics(){synchronizeHostData();return s.getOptionsDiagnostics(l).concat(s.getGlobalDiagnostics(l))}function getCompletionsAtPosition(r,i,a){if(a===void 0){a=e.emptyOptions}var o=n({},e.identity(a),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});synchronizeHostData();return e.Completions.getCompletionsAtPosition(t,s,log,getValidSourceFile(r),i,o,a.triggerCharacter)}function getCompletionEntryDetails(r,n,i,a,o,c){if(c===void 0){c=e.emptyOptions}synchronizeHostData();return e.Completions.getCompletionEntryDetails(s,log,getValidSourceFile(r),n,{name:i,source:o},t,a&&e.formatting.getFormatContext(a),c,l)}function getCompletionEntrySymbol(t,r,n,i){synchronizeHostData();return e.Completions.getCompletionEntrySymbol(s,log,getValidSourceFile(t),r,{name:n,source:i})}function getQuickInfoAtPosition(t,r){synchronizeHostData();var n=getValidSourceFile(t);var i=e.getTouchingPropertyName(n,r);if(i===n){return undefined}var a=s.getTypeChecker();var o=getSymbolAtLocationForQuickInfo(i,a);if(!o||a.isUnknownSymbol(o)){var c=shouldGetType(n,i,r)?a.getTypeAtLocation(i):undefined;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:a.runWithCancellationToken(l,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(i))}),documentation:c.symbol?c.symbol.getDocumentationComment(a):undefined,tags:c.symbol?c.symbol.getJsDocTags():undefined}}var u=a.runWithCancellationToken(l,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,o,n,e.getContainerNode(i),i)}),f=u.symbolKind,d=u.displayParts,p=u.documentation,g=u.tags;return{kind:f,kindModifiers:e.SymbolDisplay.getSymbolModifiers(o),textSpan:e.createTextSpanFromNode(i,n),displayParts:d,documentation:p,tags:g}}function shouldGetType(t,r,n){switch(r.kind){case 72:return!e.isLabelName(r)&&!e.isTagName(r);case 189:case 148:return!e.isInComment(t,n);case 100:case 178:case 98:return true;default:return false}}function getDefinitionAtPosition(t,r){synchronizeHostData();return e.GoToDefinition.getDefinitionAtPosition(s,getValidSourceFile(t),r)}function getDefinitionAndBoundSpan(t,r){synchronizeHostData();return e.GoToDefinition.getDefinitionAndBoundSpan(s,getValidSourceFile(t),r)}function getTypeDefinitionAtPosition(t,r){synchronizeHostData();return e.GoToDefinition.getTypeDefinitionAtPosition(s.getTypeChecker(),getValidSourceFile(t),r)}function getImplementationAtPosition(t,r){synchronizeHostData();return e.FindAllReferences.getImplementationsAtPosition(s,l,s.getSourceFiles(),getValidSourceFile(t),r)}function getOccurrencesAtPosition(t,r){return e.flatMap(getDocumentHighlights(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:t.kind==="writtenReference",isDefinition:false,isInString:t.isInString}})})}function getDocumentHighlights(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i}));synchronizeHostData();var a=n.map(getValidSourceFile);var o=getValidSourceFile(t);return e.DocumentHighlights.getDocumentHighlights(s,l,o,r,a)}function findRenameLocations(t,r,n,i){synchronizeHostData();var a=getValidSourceFile(t);var o=e.getTouchingPropertyName(a,r);if(e.isIdentifier(o)&&(e.isJsxOpeningElement(o.parent)||e.isJsxClosingElement(o.parent))&&e.isIntrinsicJsxName(o.escapedText)){var s=o.parent.parent,c=s.openingElement,u=s.closingElement;return[c,u].map(function(t){return{fileName:a.fileName,textSpan:e.createTextSpanFromNode(t.tagName,a)}})}else{return getReferencesWorker(o,r,{findInStrings:n,findInComments:i,isForRename:true},e.FindAllReferences.toRenameLocation)}}function getReferencesAtPosition(t,r){synchronizeHostData();return getReferencesWorker(e.getTouchingPropertyName(getValidSourceFile(t),r),r,{},e.FindAllReferences.toReferenceEntry)}function getReferencesWorker(t,r,n,i){synchronizeHostData();var a=n&&n.isForRename?s.getSourceFiles().filter(function(e){return!s.isSourceFileDefaultLibrary(e)}):s.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(s,l,a,t,r,n,i)}function findReferences(t,r){synchronizeHostData();return e.FindAllReferences.findReferencedSymbols(s,l,s.getSourceFiles(),getValidSourceFile(t),r)}function getNavigateToItems(t,r,n,i){if(i===void 0){i=false}synchronizeHostData();var a=n?[getValidSourceFile(n)]:s.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,s.getTypeChecker(),l,t,r,i)}function getEmitOutput(r,n){if(n===void 0){n=false}synchronizeHostData();var i=getValidSourceFile(r);var a=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(s,i,n,l,a)}function getSignatureHelpItems(t,r,n){var i=(n===void 0?e.emptyOptions:n).triggerReason;synchronizeHostData();var a=getValidSourceFile(t);return e.SignatureHelp.getSignatureHelpItems(s,a,r,i,l)}function getNonBoundSourceFile(e){return o.getCurrentSourceFile(e)}function getNameOrDottedNameSpan(t,r,n){var i=o.getCurrentSourceFile(t);var a=e.getTouchingPropertyName(i,r);if(a===i){return undefined}switch(a.kind){case 189:case 148:case 10:case 87:case 102:case 96:case 98:case 100:case 178:case 72:break;default:return undefined}var s=a;while(true){if(e.isRightSideOfPropertyAccess(s)||e.isRightSideOfQualifiedName(s)){s=s.parent}else if(e.isNameOfModuleDeclaration(s)){if(s.parent.parent.kind===244&&s.parent.parent.body===s.parent){s=s.parent.parent.name}else{break}}else{break}}return e.createTextSpanFromBounds(s.getStart(),a.getEnd())}function getBreakpointStatementAtPosition(t,r){var n=o.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)}function getNavigationBarItems(t){return e.NavigationBar.getNavigationBarItems(o.getCurrentSourceFile(t),l)}function getNavigationTree(t){return e.NavigationBar.getNavigationTree(o.getCurrentSourceFile(t),l)}function isTsOrTsxFile(r){var n=e.getScriptKind(r,t);return n===3||n===4}function getSemanticClassifications(t,r){if(!isTsOrTsxFile(t)){return[]}synchronizeHostData();return e.getSemanticClassifications(s.getTypeChecker(),l,getValidSourceFile(t),s.getClassifiableNames(),r)}function getEncodedSemanticClassifications(t,r){if(!isTsOrTsxFile(t)){return{spans:[],endOfLineState:0}}synchronizeHostData();return e.getEncodedSemanticClassifications(s.getTypeChecker(),l,getValidSourceFile(t),s.getClassifiableNames(),r)}function getSyntacticClassifications(t,r){return e.getSyntacticClassifications(l,o.getCurrentSourceFile(t),r)}function getEncodedSyntacticClassifications(t,r){return e.getEncodedSyntacticClassifications(l,o.getCurrentSourceFile(t),r)}function getOutliningSpans(t){var r=o.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)}var h=e.createMapFromTemplate((a={},a[18]=19,a[20]=21,a[22]=23,a[30]=28,a));h.forEach(function(e,t){return h.set(e.toString(),Number(t))});function getBraceMatchingAtPosition(t,r){var n=o.getCurrentSourceFile(t);var i=e.getTouchingToken(n,r);var a=i.getStart(n)===r?h.get(i.kind.toString()):undefined;var s=a&&e.findChildOfKind(i.parent,a,n);return s?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(s,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray}function getIndentationAtPosition(t,r,n){var i=e.timestamp();var a=toEditorSettings(n);var s=o.getCurrentSourceFile(t);log("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i));i=e.timestamp();var c=e.formatting.SmartIndenter.getIndentation(r,s,a);log("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i));return c}function getFormattingEditsForRange(t,r,n,i){var a=o.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(toEditorSettings(i)))}function getFormattingEditsForDocument(t,r){return e.formatting.formatDocument(o.getCurrentSourceFile(t),e.formatting.getFormatContext(toEditorSettings(r)))}function getFormattingEditsAfterKeystroke(t,r,n,i){var a=o.getCurrentSourceFile(t);var s=e.formatting.getFormatContext(toEditorSettings(i));if(!e.isInComment(a,r)){switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,s);case"}":return e.formatting.formatOnClosingCurly(r,a,s);case";":return e.formatting.formatOnSemicolon(r,a,s);case"\n":return e.formatting.formatOnEnter(r,a,s)}}return[]}function getCodeFixesAtPosition(r,n,i,a,o,c){if(c===void 0){c=e.emptyOptions}synchronizeHostData();var u=getValidSourceFile(r);var f=e.createTextSpanFromBounds(n,i);var d=e.formatting.getFormatContext(o);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){l.throwIfCancellationRequested();return e.codefix.getFixes({errorCode:r,sourceFile:u,span:f,program:s,host:t,cancellationToken:l,formatContext:d,preferences:c})})}function getCombinedCodeFix(r,n,i,a){if(a===void 0){a=e.emptyOptions}synchronizeHostData();e.Debug.assert(r.type==="file");var o=getValidSourceFile(r.fileName);var c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:s,host:t,cancellationToken:l,formatContext:c,preferences:a})}function organizeImports(r,n,i){if(i===void 0){i=e.emptyOptions}synchronizeHostData();e.Debug.assert(r.type==="file");var a=getValidSourceFile(r.fileName);var o=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(a,o,t,s,i)}function getEditsForFileRename(r,n,i,a){if(a===void 0){a=e.emptyOptions}return e.getEditsForFileRename(getProgram(),r,n,t,e.formatting.getFormatContext(i),a,y)}function applyCodeActionCommand(t,r){var n=typeof t==="string"?r:t;var i=typeof t!=="string"?r:undefined;return e.isArray(n)?Promise.all(n.map(function(e){return applySingleCodeActionCommand(e,i)})):applySingleCodeActionCommand(n,i)}function applySingleCodeActionCommand(r,n){var i=function(t){return e.toPath(t,f,m)};switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:i(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");case"generate types":{var a=r.fileToGenerateTypesFor,o=r.outputFileName;if(!t.inspectValue)return Promise.reject("Host does not implement `installPackage`");var s=t.inspectValue({fileNameToRequire:a});return s.then(function(r){var a=i(o);t.writeFile(a,e.valueInfoToDeclarationFileText(r,n||e.testFormatSettings));return{successMessage:"Wrote types to '"+a+"'"}})}default:return e.Debug.assertNever(r)}}function getDocCommentTemplateAtPosition(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),o.getCurrentSourceFile(r),n)}function isValidBraceCompletionAtPosition(t,r,n){if(n===60){return false}var i=o.getCurrentSourceFile(t);if(e.isInString(i,r)){return false}if(e.isInsideJsxElementOrAttribute(i,r)){return n===123}if(e.isInTemplateString(i,r)){return false}switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return true}function getJsxClosingTagAtPosition(t,r){var n=o.getCurrentSourceFile(t);var i=e.findPrecedingToken(r,n);if(!i)return undefined;var a=i.kind===30&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:undefined;if(a&&isUnclosedTag(a)){return{newText:"</"+a.openingElement.tagName.getText(n)+">"}}}function isUnclosedTag(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&isUnclosedTag(i)}function getSpanOfEnclosingComment(t,r,n){var i=o.getCurrentSourceFile(t);var a=e.formatting.getRangeOfEnclosingComment(i,r);return a&&(!n||a.kind===3)?e.createTextSpanFromRange(a):undefined}function getTodoComments(t,r){synchronizeHostData();var n=getValidSourceFile(t);l.throwIfCancellationRequested();var i=n.text;var a=[];if(r.length>0&&!isNodeModulesFile(n.fileName)){var o=getTodoCommentsRegExp();var s=void 0;while(s=o.exec(i)){l.throwIfCancellationRequested();var c=3;e.Debug.assert(s.length===r.length+c);var u=s[1];var f=s.index+u.length;if(!e.isInComment(n,f)){continue}var d=void 0;for(var p=0;p<r.length;p++){if(s[p+c]){d=r[p]}}if(d===undefined)return e.Debug.fail();if(isLetterOrDigit(i.charCodeAt(f+d.text.length))){continue}var g=s[2];a.push({descriptor:d,message:g,position:f})}}return a;function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function getTodoCommentsRegExp(){var t=/(?:\/\/+\s*)/.source;var n=/(?:\/\*+\s*)/.source;var i=/(?:^(?:\s|\*)*)/.source;var a="("+i+"|"+t+"|"+n+")";var o="(?:"+e.map(r,function(e){return"("+escapeRegExp(e.text)+")"}).join("|")+")";var s=/(?:$|\*\/)/.source;var c=/(?:.*?)/.source;var u="("+o+c+")";var l=a+u+s;return new RegExp(l,"gim")}function isLetterOrDigit(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function isNodeModulesFile(t){return e.stringContains(t,"/node_modules/")}}function getRenameInfo(t,r){synchronizeHostData();return e.Rename.getRenameInfo(s,getValidSourceFile(t),r)}function getRefactorContext(r,n,i,a){var o=typeof n==="number"?[n,undefined]:[n.pos,n.end],s=o[0],c=o[1];return{file:r,startPosition:s,endPosition:c,program:getProgram(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}function getApplicableRefactors(t,r,n){if(n===void 0){n=e.emptyOptions}synchronizeHostData();var i=getValidSourceFile(t);return e.refactor.getApplicableRefactors(getRefactorContext(i,r,n))}function getEditsForRefactor(t,r,n,i,a,o){if(o===void 0){o=e.emptyOptions}synchronizeHostData();var s=getValidSourceFile(t);return e.refactor.getEditsForRefactor(getRefactorContext(s,n,o,r),i,a)}return{dispose:dispose,cleanupSemanticCache:cleanupSemanticCache,getSyntacticDiagnostics:getSyntacticDiagnostics,getSemanticDiagnostics:getSemanticDiagnostics,getSuggestionDiagnostics:getSuggestionDiagnostics,getCompilerOptionsDiagnostics:getCompilerOptionsDiagnostics,getSyntacticClassifications:getSyntacticClassifications,getSemanticClassifications:getSemanticClassifications,getEncodedSyntacticClassifications:getEncodedSyntacticClassifications,getEncodedSemanticClassifications:getEncodedSemanticClassifications,getCompletionsAtPosition:getCompletionsAtPosition,getCompletionEntryDetails:getCompletionEntryDetails,getCompletionEntrySymbol:getCompletionEntrySymbol,getSignatureHelpItems:getSignatureHelpItems,getQuickInfoAtPosition:getQuickInfoAtPosition,getDefinitionAtPosition:getDefinitionAtPosition,getDefinitionAndBoundSpan:getDefinitionAndBoundSpan,getImplementationAtPosition:getImplementationAtPosition,getTypeDefinitionAtPosition:getTypeDefinitionAtPosition,getReferencesAtPosition:getReferencesAtPosition,findReferences:findReferences,getOccurrencesAtPosition:getOccurrencesAtPosition,getDocumentHighlights:getDocumentHighlights,getNameOrDottedNameSpan:getNameOrDottedNameSpan,getBreakpointStatementAtPosition:getBreakpointStatementAtPosition,getNavigateToItems:getNavigateToItems,getRenameInfo:getRenameInfo,findRenameLocations:findRenameLocations,getNavigationBarItems:getNavigationBarItems,getNavigationTree:getNavigationTree,getOutliningSpans:getOutliningSpans,getTodoComments:getTodoComments,getBraceMatchingAtPosition:getBraceMatchingAtPosition,getIndentationAtPosition:getIndentationAtPosition,getFormattingEditsForRange:getFormattingEditsForRange,getFormattingEditsForDocument:getFormattingEditsForDocument,getFormattingEditsAfterKeystroke:getFormattingEditsAfterKeystroke,getDocCommentTemplateAtPosition:getDocCommentTemplateAtPosition,isValidBraceCompletionAtPosition:isValidBraceCompletionAtPosition,getJsxClosingTagAtPosition:getJsxClosingTagAtPosition,getSpanOfEnclosingComment:getSpanOfEnclosingComment,getCodeFixesAtPosition:getCodeFixesAtPosition,getCombinedCodeFix:getCombinedCodeFix,applyCodeActionCommand:applyCodeActionCommand,organizeImports:organizeImports,getEditsForFileRename:getEditsForFileRename,getEmitOutput:getEmitOutput,getNonBoundSourceFile:getNonBoundSourceFile,getProgram:getProgram,getApplicableRefactors:getApplicableRefactors,getEditsForRefactor:getEditsForRefactor,toLineColumnOffset:y.toLineColumnOffset,getSourceMapper:function(){return y}}}e.createLanguageService=createLanguageService;function getNameTable(e){if(!e.nameTable){initializeNameTable(e)}return e.nameTable}e.getNameTable=getNameTable;function initializeNameTable(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function walk(t){if(e.isIdentifier(t)&&!e.isTagName(t)&&t.escapedText||e.isStringOrNumericLiteralLike(t)&&literalIsName(t)){var n=e.getEscapedTextOfIdentifierOrLiteral(t);r.set(n,r.get(n)===undefined?t.pos:-1)}e.forEachChild(t,walk);if(e.hasJSDocNodes(t)){for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.forEachChild(o,walk)}}})}function literalIsName(t){return e.isDeclarationName(t)||t.parent.kind===259||isArgumentOfElementAccessExpression(t)||e.isLiteralComputedPropertyDeclarationName(t)}function getContainingObjectLiteralElement(t){var r=getContainingObjectLiteralElementWorker(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:undefined}e.getContainingObjectLiteralElement=getContainingObjectLiteralElement;function getContainingObjectLiteralElementWorker(t){switch(t.kind){case 10:case 8:if(t.parent.kind===149){return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:undefined}case 72:return e.isObjectLiteralElement(t.parent)&&(t.parent.parent.kind===188||t.parent.parent.kind===268)&&t.parent.name===t?t.parent:undefined}return undefined}function getSymbolAtLocationForQuickInfo(t,r){var n=getContainingObjectLiteralElement(t);if(n){var i=r.getContextualType(n.parent);var a=i&&getPropertySymbolsFromContextualType(n,r,i,false);if(a&&a.length===1){return e.first(a)}}return r.getSymbolAtLocation(t)}function getPropertySymbolsFromContextualType(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion()){var o=n.getProperty(a);return o?[o]:e.emptyArray}var s=e.mapDefined(n.types,function(n){return e.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?undefined:n.getProperty(a)});if(i&&(s.length===0||s.length===n.types.length)){var o=n.getProperty(a);if(o)return[o]}if(s.length===0){return e.mapDefined(n.types,function(e){return e.getProperty(a)})}return s}e.getPropertySymbolsFromContextualType=getPropertySymbolsFromContextualType;function isArgumentOfElementAccessExpression(e){return e&&e.parent&&e.parent.kind===190&&e.parent.argumentExpression===e}function getDefaultLibFilePath(t){if(typeof __dirname!=="undefined"){return r.ab+"typescript/lib"+e.directorySeparator+""+e.getDefaultLibFileName(t)}throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=getDefaultLibFilePath;e.objectAllocator=getServicesObjectAllocator()})(s||(s={}));var s;(function(e){var t;(function(t){function spanInSourceFileAtLocation(t,r){if(t.isDeclarationFile){return undefined}var n=e.getTokenAtPosition(t,r);var i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i){return undefined}n=a}if(n.flags&4194304){return undefined}return spanInNode(n);function textSpan(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function textSpanEndingAtNextToken(r,n){return textSpan(r,e.findNextToken(n,n.parent,t))}function spanInNodeIfStartsOnSameLine(e,r){if(e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line){return spanInNode(e)}return spanInNode(r)}function spanInNodeArray(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function spanInPreviousNode(r){return spanInNode(e.findPrecedingToken(r.pos,t))}function spanInNextNode(r){return spanInNode(e.findNextToken(r,r.parent,t))}function spanInNode(r){if(r){var n=r.parent;switch(r.kind){case 219:return spanInVariableDeclaration(r.declarationList.declarations[0]);case 237:case 154:case 153:return spanInVariableDeclaration(r);case 151:return spanInParameterDeclaration(r);case 239:case 156:case 155:case 158:case 159:case 157:case 196:case 197:return spanInFunctionDeclaration(r);case 218:if(e.isFunctionBlock(r)){return spanInFunctionBlock(r)}case 245:return spanInBlock(r);case 274:return spanInBlock(r.block);case 221:return textSpan(r.expression);case 230:return textSpan(r.getChildAt(0),r.expression);case 224:return textSpanEndingAtNextToken(r,r.expression);case 223:return spanInNode(r.statement);case 236:return textSpan(r.getChildAt(0));case 222:return textSpanEndingAtNextToken(r,r.expression);case 233:return spanInNode(r.statement);case 229:case 228:return textSpan(r.getChildAt(0),r.label);case 225:return spanInForStatement(r);case 226:return textSpanEndingAtNextToken(r,r.expression);case 227:return spanInInitializerOfForLike(r);case 232:return textSpanEndingAtNextToken(r,r.expression);case 271:case 272:return spanInNode(r.statements[0]);case 235:return spanInBlock(r.tryBlock);case 234:return textSpan(r,r.expression);case 254:return textSpan(r,r.expression);case 248:return textSpan(r,r.moduleReference);case 249:return textSpan(r,r.moduleSpecifier);case 255:return textSpan(r,r.moduleSpecifier);case 244:if(e.getModuleInstanceState(r)!==1){return undefined}case 240:case 243:case 278:case 186:return textSpan(r);case 231:return spanInNode(r.statement);case 152:return spanInNodeArray(n.decorators);case 184:case 185:return spanInBindingPattern(r);case 241:case 242:return undefined;case 26:case 1:return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t));case 27:return spanInPreviousNode(r);case 18:return spanInOpenBraceToken(r);case 19:return spanInCloseBraceToken(r);case 23:return spanInCloseBracketToken(r);case 20:return spanInOpenParenToken(r);case 21:return spanInCloseParenToken(r);case 57:return spanInColonToken(r);case 30:case 28:return spanInGreaterThanOrLessThanToken(r);case 107:return spanInWhileKeyword(r);case 83:case 75:case 88:return spanInNextNode(r);case 147:return spanInOfKeyword(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r)){return spanInArrayLiteralOrObjectLiteralDestructuringPattern(r)}if((r.kind===72||r.kind===208||r.kind===275||r.kind===276)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n)){return textSpan(r)}if(r.kind===204){var i=r,a=i.left,o=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)){return spanInArrayLiteralOrObjectLiteralDestructuringPattern(a)}if(o.kind===59&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent)){return textSpan(r)}if(o.kind===27){return spanInNode(a)}}if(e.isExpressionNode(r)){switch(n.kind){case 223:return spanInPreviousNode(r);case 152:return spanInNode(r.parent);case 225:case 227:return textSpan(r);case 204:if(r.parent.operatorToken.kind===27){return textSpan(r)}break;case 197:if(r.parent.body===r){return textSpan(r)}break}}switch(r.parent.kind){case 275:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent)){return spanInNode(r.parent.initializer)}break;case 194:if(r.parent.type===r){return spanInNextNode(r.parent.type)}break;case 237:case 151:{var s=r.parent,c=s.initializer,u=s.type;if(c===r||u===r||e.isAssignmentOperator(r.kind)){return spanInPreviousNode(r)}break}case 204:{var a=r.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a){return spanInPreviousNode(r)}break}default:if(e.isFunctionLike(r.parent)&&r.parent.type===r){return spanInPreviousNode(r)}}return spanInNode(r.parent)}}function textSpanFromVariableDeclaration(r){if(e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r){return textSpan(e.findPrecedingToken(r.pos,t,r.parent),r)}else{return textSpan(r)}}function spanInVariableDeclaration(r){if(r.parent.parent.kind===226){return spanInNode(r.parent.parent)}var n=r.parent;if(e.isBindingPattern(r.name)){return spanInBindingPattern(r.name)}if(r.initializer||e.hasModifier(r,1)||n.parent.kind===227){return textSpanFromVariableDeclaration(r)}if(e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r){return spanInNode(e.findPrecedingToken(r.pos,t,r.parent))}}function canHaveSpanInParameterDeclaration(t){return!!t.initializer||t.dotDotDotToken!==undefined||e.hasModifier(t,4|8)}function spanInParameterDeclaration(t){if(e.isBindingPattern(t.name)){return spanInBindingPattern(t.name)}else if(canHaveSpanInParameterDeclaration(t)){return textSpan(t)}else{var r=t.parent;var n=r.parameters.indexOf(t);e.Debug.assert(n!==-1);if(n!==0){return spanInParameterDeclaration(r.parameters[n-1])}else{return spanInNode(r.body)}}}function canFunctionHaveSpanInWholeDeclaration(t){return e.hasModifier(t,1)||t.parent.kind===240&&t.kind!==157}function spanInFunctionDeclaration(e){if(!e.body){return undefined}if(canFunctionHaveSpanInWholeDeclaration(e)){return textSpan(e)}return spanInNode(e.body)}function spanInFunctionBlock(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(canFunctionHaveSpanInWholeDeclaration(e.parent)){return spanInNodeIfStartsOnSameLine(e.parent,t)}return spanInNode(t)}function spanInBlock(r){switch(r.parent.kind){case 244:if(e.getModuleInstanceState(r.parent)!==1){return undefined}case 224:case 222:case 226:return spanInNodeIfStartsOnSameLine(r.parent,r.statements[0]);case 225:case 227:return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return spanInNode(r.statements[0])}function spanInInitializerOfForLike(e){if(e.initializer.kind===238){var t=e.initializer;if(t.declarations.length>0){return spanInNode(t.declarations[0])}}else{return spanInNode(e.initializer)}}function spanInForStatement(e){if(e.initializer){return spanInInitializerOfForLike(e)}if(e.condition){return textSpan(e.condition)}if(e.incrementor){return textSpan(e.incrementor)}}function spanInBindingPattern(t){var r=e.forEach(t.elements,function(e){return e.kind!==210?e:undefined});if(r){return spanInNode(r)}if(t.parent.kind===186){return textSpan(t.parent)}return textSpanFromVariableDeclaration(t.parent)}function spanInArrayLiteralOrObjectLiteralDestructuringPattern(t){e.Debug.assert(t.kind!==185&&t.kind!==184);var r=t.kind===187?t.elements:t.properties;var n=e.forEach(r,function(e){return e.kind!==210?e:undefined});if(n){return spanInNode(n)}return textSpan(t.parent.kind===204?t.parent:t)}function spanInOpenBraceToken(r){switch(r.parent.kind){case 243:var n=r.parent;return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 240:var i=r.parent;return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 246:return spanInNodeIfStartsOnSameLine(r.parent.parent,r.parent.clauses[0])}return spanInNode(r.parent)}function spanInCloseBraceToken(t){switch(t.parent.kind){case 245:if(e.getModuleInstanceState(t.parent.parent)!==1){return undefined}case 243:case 240:return textSpan(t);case 218:if(e.isFunctionBlock(t.parent)){return textSpan(t)}case 274:return spanInNode(e.lastOrUndefined(t.parent.statements));case 246:var r=t.parent;var n=e.lastOrUndefined(r.clauses);if(n){return spanInNode(e.lastOrUndefined(n.statements))}return undefined;case 184:var i=t.parent;return spanInNode(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return textSpan(e.lastOrUndefined(a.properties)||a)}return spanInNode(t.parent)}}function spanInCloseBracketToken(t){switch(t.parent.kind){case 185:var r=t.parent;return textSpan(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return textSpan(e.lastOrUndefined(n.elements)||n)}return spanInNode(t.parent)}}function spanInOpenParenToken(e){if(e.parent.kind===223||e.parent.kind===191||e.parent.kind===192){return spanInPreviousNode(e)}if(e.parent.kind===195){return spanInNextNode(e)}return spanInNode(e.parent)}function spanInCloseParenToken(e){switch(e.parent.kind){case 196:case 239:case 197:case 156:case 155:case 158:case 159:case 157:case 224:case 223:case 225:case 227:case 191:case 192:case 195:return spanInPreviousNode(e);default:return spanInNode(e.parent)}}function spanInColonToken(t){if(e.isFunctionLike(t.parent)||t.parent.kind===275||t.parent.kind===151){return spanInPreviousNode(t)}return spanInNode(t.parent)}function spanInGreaterThanOrLessThanToken(e){if(e.parent.kind===194){return spanInNextNode(e)}return spanInNode(e.parent)}function spanInWhileKeyword(e){if(e.parent.kind===223){return textSpanEndingAtNextToken(e,e.parent.expression)}return spanInNode(e.parent)}function spanInOfKeyword(e){if(e.parent.kind===227){return spanInNextNode(e)}return spanInNode(e.parent)}}}t.spanInSourceFileAtLocation=spanInSourceFileAtLocation})(t=e.BreakpointResolver||(e.BreakpointResolver={}))})(s||(s={}));var s;(function(e){function transform(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t];var o=e.transformNodes(undefined,undefined,n,a,r,true);o.diagnostics=e.concatenate(o.diagnostics,i);return o}e.transform=transform})(s||(s={}));var c=function(){return this}();var s;(function(t){function logInternalError(e,t){if(e){e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}}var r=function(){function ScriptSnapshotShimAdapter(e){this.scriptSnapshotShim=e}ScriptSnapshotShimAdapter.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)};ScriptSnapshotShimAdapter.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()};ScriptSnapshotShimAdapter.prototype.getChangeRange=function(e){var r=e;var n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(n===null){return null}var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)};ScriptSnapshotShimAdapter.prototype.dispose=function(){if("dispose"in this.scriptSnapshotShim){this.scriptSnapshotShim.dispose()}};return ScriptSnapshotShimAdapter}();var n=function(){function LanguageServiceShimHostAdapter(e){var r=this;this.shimHost=e;this.loggingEnabled=false;this.tracingEnabled=false;if("getModuleResolutionsForFile"in this.shimHost){this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:false}:undefined})}}if("directoryExists"in this.shimHost){this.directoryExists=function(e){return r.shimHost.directoryExists(e)}}if("getTypeReferenceDirectiveResolutionsForFile"in this.shimHost){this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,e)})}}}LanguageServiceShimHostAdapter.prototype.log=function(e){if(this.loggingEnabled){this.shimHost.log(e)}};LanguageServiceShimHostAdapter.prototype.trace=function(e){if(this.tracingEnabled){this.shimHost.trace(e)}};LanguageServiceShimHostAdapter.prototype.error=function(e){this.shimHost.error(e)};LanguageServiceShimHostAdapter.prototype.getProjectVersion=function(){if(!this.shimHost.getProjectVersion){return undefined}return this.shimHost.getProjectVersion()};LanguageServiceShimHostAdapter.prototype.getTypeRootsVersion=function(){if(!this.shimHost.getTypeRootsVersion){return 0}return this.shimHost.getTypeRootsVersion()};LanguageServiceShimHostAdapter.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():false};LanguageServiceShimHostAdapter.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(e===null||e===""){throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings")}var t=JSON.parse(e);t.allowNonTsExtensions=true;return t};LanguageServiceShimHostAdapter.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)};LanguageServiceShimHostAdapter.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)};LanguageServiceShimHostAdapter.prototype.getScriptKind=function(e){if("getScriptKind"in this.shimHost){return this.shimHost.getScriptKind(e)}else{return 0}};LanguageServiceShimHostAdapter.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)};LanguageServiceShimHostAdapter.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e===""){return null}try{return JSON.parse(e)}catch(e){this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format");return null}};LanguageServiceShimHostAdapter.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)};LanguageServiceShimHostAdapter.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()};LanguageServiceShimHostAdapter.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))};LanguageServiceShimHostAdapter.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))};LanguageServiceShimHostAdapter.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))};LanguageServiceShimHostAdapter.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)};LanguageServiceShimHostAdapter.prototype.fileExists=function(e){return this.shimHost.fileExists(e)};return LanguageServiceShimHostAdapter}();t.LanguageServiceShimHostAdapter=n;var i=function(){function CoreServicesShimHostAdapter(e){var t=this;this.shimHost=e;this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():false;if("directoryExists"in this.shimHost){this.directoryExists=function(e){return t.shimHost.directoryExists(e)}}else{this.directoryExists=undefined}if("realpath"in this.shimHost){this.realpath=function(e){return t.shimHost.realpath(e)}}else{this.realpath=undefined}}CoreServicesShimHostAdapter.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))};CoreServicesShimHostAdapter.prototype.fileExists=function(e){return this.shimHost.fileExists(e)};CoreServicesShimHostAdapter.prototype.readFile=function(e){return this.shimHost.readFile(e)};CoreServicesShimHostAdapter.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))};return CoreServicesShimHostAdapter}();t.CoreServicesShimHostAdapter=i;function simpleForwardCall(e,r,n,i){var a;if(i){e.log(r);a=t.timestamp()}var o=n();if(i){var s=t.timestamp();e.log(r+" completed in "+(s-a)+" msec");if(t.isString(o)){var c=o;if(c.length>128){c=c.substring(0,128)+"..."}e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function forwardJSONCall(e,t,r,n){return forwardCall(e,t,true,r,n)}function forwardCall(e,r,n,i,a){try{var o=simpleForwardCall(e,r,i,a);return n?JSON.stringify({result:o}):o}catch(n){if(n instanceof t.OperationCanceledException){return JSON.stringify({canceled:true})}logInternalError(e,n);n.description=r;return JSON.stringify({error:n})}}var a=function(){function ShimBase(e){this.factory=e;e.registerShim(this)}ShimBase.prototype.dispose=function(e){this.factory.unregisterShim(this)};return ShimBase}();function realizeDiagnostics(e,t){return e.map(function(e){return realizeDiagnostic(e,t)})}t.realizeDiagnostics=realizeDiagnostics;function realizeDiagnostic(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}var s=function(e){o(LanguageServiceShimObject,e);function LanguageServiceShimObject(t,r,n){var i=e.call(this,t)||this;i.host=r;i.languageService=n;i.logPerformance=false;i.logger=i.host;return i}LanguageServiceShimObject.prototype.forwardJSONCall=function(e,t){return forwardJSONCall(this.logger,e,t,this.logPerformance)};LanguageServiceShimObject.prototype.dispose=function(t){this.logger.log("dispose()");this.languageService.dispose();this.languageService=null;if(c&&c.CollectGarbage){c.CollectGarbage();this.logger.log("CollectGarbage()")}this.logger=null;e.prototype.dispose.call(this,t)};LanguageServiceShimObject.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})};LanguageServiceShimObject.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){e.languageService.cleanupSemanticCache();return null})};LanguageServiceShimObject.prototype.realizeDiagnostics=function(e){var r=t.getNewLineOrDefaultFromHost(this.host);return realizeDiagnostics(e,r)};LanguageServiceShimObject.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})};LanguageServiceShimObject.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})};LanguageServiceShimObject.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return convertClassifications(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})};LanguageServiceShimObject.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return convertClassifications(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})};LanguageServiceShimObject.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})};LanguageServiceShimObject.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})};LanguageServiceShimObject.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})};LanguageServiceShimObject.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})};LanguageServiceShimObject.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})};LanguageServiceShimObject.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})};LanguageServiceShimObject.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})};LanguageServiceShimObject.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})};LanguageServiceShimObject.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})};LanguageServiceShimObject.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})};LanguageServiceShimObject.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})};LanguageServiceShimObject.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})};LanguageServiceShimObject.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})};LanguageServiceShimObject.prototype.findRenameLocations=function(e,t,r,n){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return i.languageService.findRenameLocations(e,t,r,n)})};LanguageServiceShimObject.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})};LanguageServiceShimObject.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})};LanguageServiceShimObject.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})};LanguageServiceShimObject.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})};LanguageServiceShimObject.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})};LanguageServiceShimObject.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})};LanguageServiceShimObject.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})};LanguageServiceShimObject.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n));var o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})};LanguageServiceShimObject.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})};LanguageServiceShimObject.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=n===undefined?undefined:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})};LanguageServiceShimObject.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})};LanguageServiceShimObject.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})};LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})};LanguageServiceShimObject.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})};LanguageServiceShimObject.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})};LanguageServiceShimObject.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})};LanguageServiceShimObject.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})};LanguageServiceShimObject.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})};LanguageServiceShimObject.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})};LanguageServiceShimObject.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})};LanguageServiceShimObject.prototype.getEmitOutputObject=function(e){var t=this;return forwardCall(this.logger,"getEmitOutput('"+e+"')",false,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)};return LanguageServiceShimObject}(a);function convertClassifications(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var u=function(e){o(ClassifierShimObject,e);function ClassifierShimObject(r,n){var i=e.call(this,r)||this;i.logger=n;i.logPerformance=false;i.classifier=t.createClassifier();return i}ClassifierShimObject.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;if(r===void 0){r=false}return forwardJSONCall(this.logger,"getEncodedLexicalClassifications",function(){return convertClassifications(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)};ClassifierShimObject.prototype.getClassificationsForLine=function(e,t,r){if(r===void 0){r=false}var n=this.classifier.getClassificationsForLine(e,t,r);var i="";for(var a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n";i+=s.classification+"\n"}i+=n.finalLexState;return i};return ClassifierShimObject}(a);var l=function(e){o(CoreServicesShimObject,e);function CoreServicesShimObject(t,r,n){var i=e.call(this,t)||this;i.logger=r;i.host=n;i.logPerformance=false;return i}CoreServicesShimObject.prototype.forwardJSONCall=function(e,t){return forwardJSONCall(this.logger,e,t,this.logPerformance)};CoreServicesShimObject.prototype.resolveModuleName=function(e,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+e+"')",function(){var a=JSON.parse(n);var o=t.resolveModuleName(r,t.normalizeSlashes(e),a,i.host);var s=o.resolvedModule?o.resolvedModule.resolvedFileName:undefined;if(o.resolvedModule&&o.resolvedModule.extension!==".ts"&&o.resolvedModule.extension!==".tsx"&&o.resolvedModule.extension!==".d.ts"){s=undefined}return{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})};CoreServicesShimObject.prototype.resolveTypeReferenceDirective=function(e,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+e+")",function(){var a=JSON.parse(n);var o=t.resolveTypeReferenceDirective(r,t.normalizeSlashes(e),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:undefined,primary:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.primary:true,failedLookupLocations:o.failedLookupLocations}})};CoreServicesShimObject.prototype.getPreProcessedFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=t.preProcessFile(t.getSnapshotText(r),true,true);return{referencedFiles:n.convertFileReferences(e.referencedFiles),importedFiles:n.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:n.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(e.libReferenceDirectives)}})};CoreServicesShimObject.prototype.getAutomaticTypeDirectiveNames=function(e){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+e+"')",function(){var n=JSON.parse(e);return t.getAutomaticTypeDirectiveNames(n,r.host)})};CoreServicesShimObject.prototype.convertFileReferences=function(e){if(!e){return undefined}var r=[];for(var n=0,i=e;n<i.length;n++){var a=i[n];r.push({path:t.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r};CoreServicesShimObject.prototype.getTSConfigFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+e+"')",function(){var i=t.parseJsonText(e,t.getSnapshotText(r));var a=t.normalizeSlashes(e);var o=t.parseJsonSourceFileConfigFileContent(i,n.host,t.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:realizeDiagnostics(i.parseDiagnostics.concat(o.errors),"\r\n")}})};CoreServicesShimObject.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return t.getDefaultCompilerOptions()})};CoreServicesShimObject.prototype.discoverTypings=function(e){var r=this;var n=t.createGetCanonicalFileName(false);return this.forwardJSONCall("discoverTypings()",function(){var i=JSON.parse(e);if(r.safeList===undefined){r.safeList=t.JsTyping.loadSafeList(r.host,t.toPath(i.safeListPath,i.safeListPath,n))}return t.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},i.fileNames,t.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)})};return CoreServicesShimObject}(a);var f=function(){function TypeScriptServicesFactory(){this._shims=[]}TypeScriptServicesFactory.prototype.getServicesVersion=function(){return t.servicesVersion};TypeScriptServicesFactory.prototype.createLanguageServiceShim=function(e){try{if(this.documentRegistry===undefined){this.documentRegistry=t.createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory())}var r=new n(e);var i=t.createLanguageService(r,this.documentRegistry,false);return new s(this,e,i)}catch(t){logInternalError(e,t);throw t}};TypeScriptServicesFactory.prototype.createClassifierShim=function(e){try{return new u(this,e)}catch(t){logInternalError(e,t);throw t}};TypeScriptServicesFactory.prototype.createCoreServicesShim=function(e){try{var t=new i(e);return new l(this,e,t)}catch(t){logInternalError(e,t);throw t}};TypeScriptServicesFactory.prototype.close=function(){t.clear(this._shims);this.documentRegistry=undefined};TypeScriptServicesFactory.prototype.registerShim=function(e){this._shims.push(e)};TypeScriptServicesFactory.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++){if(this._shims[t]===e){delete this._shims[t];return}}throw new Error("Invalid operation")};return TypeScriptServicesFactory}();t.TypeScriptServicesFactory=f;if(true&&e.exports){e.exports=t}})(s||(s={}));var u;(function(e){var t;(function(e){e.TypeScriptServicesFactory=s.TypeScriptServicesFactory})(t=e.Services||(e.Services={}))})(u||(u={}));var l=s.versionMajorMinor},5770:(e,t,r)=>{"use strict";var n=r(485);var i=r(8441);var a=r(3826);var o=r(3712);e.exports=function unionValue(e,t,r){if(!n(e)){throw new TypeError("union-value expects the first argument to be an object.")}if(typeof t!=="string"){throw new TypeError("union-value expects `prop` to be a string.")}var s=arrayify(a(e,t));o(e,t,i(s,arrayify(r)));return e};function arrayify(e){if(e===null||typeof e==="undefined"){return[]}if(Array.isArray(e)){return e}return[e]}},3712:(e,t,r)=>{"use strict";var n=r(3919);var i=r(8333);var a=r(1221);var o=r(485);e.exports=function(e,t,r){if(!o(e)){return e}if(Array.isArray(t)){t=n(t)}if(typeof t!=="string"){return e}var s=t.split(".");var c=s.length,u=-1;var l=e;var f;while(++u<c){var d=s[u];while(d[d.length-1]==="\\"){d=d.slice(0,-1)+"."+s[++u]}if(u===c-1){f=d;break}if(!o(e[d])){e[d]={}}e=e[d]}if(e.hasOwnProperty(f)&&o(e[f])){if(a(r)){i(e[f],r)}else{e[f]=r}}else{e[f]=r}return l}},2093:(e,t,r)=>{"use strict";var n=r(977);var i=r(5147);e.exports=function unset(e,t){if(!n(e)){throw new TypeError("expected an object.")}if(e.hasOwnProperty(t)){delete e[t];return true}if(i(e,t)){var r=t.split(".");var a=r.pop();while(r.length&&r[r.length-1].slice(-1)==="\\"){a=r.pop().slice(0,-1)+"."+a}while(r.length)e=e[t=r.shift()];return delete e[a]}return true}},5147:(e,t,r)=>{"use strict";var n=r(5940);var i=r(6166);var a=r(3826);e.exports=function(e,t,r){if(n(e)){return i(a(e,t),r)}return i(e,t)}},5940:(e,t,r)=>{"use strict";var n=r(7523);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},6166:e=>{"use strict";e.exports=function hasValue(e,t){if(e===null||e===undefined){return false}if(typeof e==="boolean"){return true}if(typeof e==="number"){if(e===0&&t===true){return false}return true}if(e.length!==undefined){return e.length!==0}for(var r in e){if(e.hasOwnProperty(r)){return true}}return false}},6002:(e,t,r)=>{var n=r(5622);"use strict";function urix(e){if(n.sep==="\\"){return e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return e}e.exports=urix},1967:e=>{"use strict";e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var i=r[n];var a=i.length;var o=-1;while(++o<a){t.use(i[o])}return t});function use(t,i,a){var o=1;if(typeof t==="string"||Array.isArray(t)){i=wrap(t,i);o++}else{a=i;i=t}if(typeof i!=="function"){throw new TypeError("expected a function")}var s=this||e;var c=s[n];var u=[].slice.call(arguments,o);u.unshift(s);if(typeof r.hook==="function"){r.hook.apply(s,u)}var l=i.apply(s,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return s}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},2090:(e,t,r)=>{const n=r(3686);const i=n.makeLogger;n.makeLogger=function(e,t){const r=i(e,t);const n=r.logWarning;r.logWarning=function(e){if(e.indexOf("This version may or may not be compatible with ts-loader")!==-1)return;return n(e)};return r};e.exports=r(2070);e.exports.typescript=r(3779)},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},7082:e=>{"use strict";e.exports=require("console")},7619:e=>{"use strict";e.exports=require("constants")},6417:e=>{"use strict";e.exports=require("crypto")},5747:e=>{"use strict";e.exports=require("fs")},2282:e=>{"use strict";e.exports=require("module")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},8993:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}n.loaded=true;return n.exports}(()=>{__webpack_require__.nmd=(e=>{e.paths=[];if(!e.children)e.children=[];return e})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(2090)})();
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.d.ts new file mode 100644 index 0000000..38a1cc0 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.d.ts @@ -0,0 +1,24 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es5" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.d.ts new file mode 100644 index 0000000..464dea8 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.d.ts @@ -0,0 +1,17992 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +///////////////////////////// +/// DOM APIs +///////////////////////////// + +interface Account { + displayName: string; + id: string; + imageURL?: string; + name?: string; + rpDisplayName: string; +} + +interface AddEventListenerOptions extends EventListenerOptions { + once?: boolean; + passive?: boolean; +} + +interface AesCbcParams extends Algorithm { + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface AesCtrParams extends Algorithm { + counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + length: number; +} + +interface AesDerivedKeyParams extends Algorithm { + length: number; +} + +interface AesGcmParams extends Algorithm { + additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + tagLength?: number; +} + +interface AesKeyAlgorithm extends KeyAlgorithm { + length: number; +} + +interface AesKeyGenParams extends Algorithm { + length: number; +} + +interface Algorithm { + name: string; +} + +interface AnalyserOptions extends AudioNodeOptions { + fftSize?: number; + maxDecibels?: number; + minDecibels?: number; + smoothingTimeConstant?: number; +} + +interface AnimationEventInit extends EventInit { + animationName?: string; + elapsedTime?: number; + pseudoElement?: string; +} + +interface AnimationPlaybackEventInit extends EventInit { + currentTime?: number | null; + timelineTime?: number | null; +} + +interface AssertionOptions { + allowList?: ScopedCredentialDescriptor[]; + extensions?: WebAuthnExtensions; + rpId?: string; + timeoutSeconds?: number; +} + +interface AssignedNodesOptions { + flatten?: boolean; +} + +interface AudioBufferOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface AudioBufferSourceOptions { + buffer?: AudioBuffer | null; + detune?: number; + loop?: boolean; + loopEnd?: number; + loopStart?: number; + playbackRate?: number; +} + +interface AudioContextInfo { + currentTime?: number; + sampleRate?: number; +} + +interface AudioContextOptions { + latencyHint?: AudioContextLatencyCategory | number; + sampleRate?: number; +} + +interface AudioNodeOptions { + channelCount?: number; + channelCountMode?: ChannelCountMode; + channelInterpretation?: ChannelInterpretation; +} + +interface AudioParamDescriptor { + automationRate?: AutomationRate; + defaultValue?: number; + maxValue?: number; + minValue?: number; + name: string; +} + +interface AudioProcessingEventInit extends EventInit { + inputBuffer: AudioBuffer; + outputBuffer: AudioBuffer; + playbackTime: number; +} + +interface AudioTimestamp { + contextTime?: number; + performanceTime?: number; +} + +interface AudioWorkletNodeOptions extends AudioNodeOptions { + numberOfInputs?: number; + numberOfOutputs?: number; + outputChannelCount?: number[]; + parameterData?: Record<string, number>; + processorOptions?: any; +} + +interface BiquadFilterOptions extends AudioNodeOptions { + Q?: number; + detune?: number; + frequency?: number; + gain?: number; + type?: BiquadFilterType; +} + +interface BlobPropertyBag { + endings?: EndingType; + type?: string; +} + +interface ByteLengthChunk { + byteLength?: number; +} + +interface CacheQueryOptions { + cacheName?: string; + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; +} + +interface CanvasRenderingContext2DSettings { + alpha?: boolean; +} + +interface ChannelMergerOptions extends AudioNodeOptions { + numberOfInputs?: number; +} + +interface ChannelSplitterOptions extends AudioNodeOptions { + numberOfOutputs?: number; +} + +interface ClientData { + challenge: string; + extensions?: WebAuthnExtensions; + hashAlg: string | Algorithm; + origin: string; + rpId: string; + tokenBinding?: string; +} + +interface ClientQueryOptions { + includeUncontrolled?: boolean; + type?: ClientTypes; +} + +interface CloseEventInit extends EventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} + +interface CompositionEventInit extends UIEventInit { + data?: string; +} + +interface ComputedEffectTiming extends EffectTiming { + activeDuration?: number; + currentIteration?: number | null; + endTime?: number; + localTime?: number | null; + progress?: number | null; +} + +interface ComputedKeyframe { + composite: CompositeOperationOrAuto; + computedOffset: number; + easing: string; + offset: number | null; + [property: string]: string | number | null | undefined; +} + +interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { + arrayOfDomainStrings?: string[]; +} + +interface ConstantSourceOptions { + offset?: number; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainLongRange extends LongRange { + exact?: number; + ideal?: number; +} + +interface ConstrainVideoFacingModeParameters { + exact?: VideoFacingModeEnum | VideoFacingModeEnum[]; + ideal?: VideoFacingModeEnum | VideoFacingModeEnum[]; +} + +interface ConvolverOptions extends AudioNodeOptions { + buffer?: AudioBuffer | null; + disableNormalization?: boolean; +} + +interface CustomEventInit<T = any> extends EventInit { + detail?: T; +} + +interface DOMMatrix2DInit { + a?: number; + b?: number; + c?: number; + d?: number; + e?: number; + f?: number; + m11?: number; + m12?: number; + m21?: number; + m22?: number; + m41?: number; + m42?: number; +} + +interface DOMMatrixInit extends DOMMatrix2DInit { + is2D?: boolean; + m13?: number; + m14?: number; + m23?: number; + m24?: number; + m31?: number; + m32?: number; + m33?: number; + m34?: number; + m43?: number; + m44?: number; +} + +interface DOMPointInit { + w?: number; + x?: number; + y?: number; + z?: number; +} + +interface DOMQuadInit { + p1?: DOMPointInit; + p2?: DOMPointInit; + p3?: DOMPointInit; + p4?: DOMPointInit; +} + +interface DOMRectInit { + height?: number; + width?: number; + x?: number; + y?: number; +} + +interface DelayOptions extends AudioNodeOptions { + delayTime?: number; + maxDelayTime?: number; +} + +interface DeviceAccelerationDict { + x?: number | null; + y?: number | null; + z?: number | null; +} + +interface DeviceLightEventInit extends EventInit { + value?: number; +} + +interface DeviceMotionEventInit extends EventInit { + acceleration?: DeviceAccelerationDict | null; + accelerationIncludingGravity?: DeviceAccelerationDict | null; + interval?: number | null; + rotationRate?: DeviceRotationRateDict | null; +} + +interface DeviceOrientationEventInit extends EventInit { + absolute?: boolean; + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DeviceRotationRateDict { + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DocumentTimelineOptions { + originTime?: number; +} + +interface DoubleRange { + max?: number; + min?: number; +} + +interface DragEventInit extends MouseEventInit { + dataTransfer?: DataTransfer | null; +} + +interface DynamicsCompressorOptions extends AudioNodeOptions { + attack?: number; + knee?: number; + ratio?: number; + release?: number; + threshold?: number; +} + +interface EcKeyAlgorithm extends KeyAlgorithm { + namedCurve: NamedCurve; +} + +interface EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface EffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; +} + +interface 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; + modifierOS?: boolean; + modifierScrollLock?: boolean; + modifierSuper?: boolean; + modifierSymbol?: boolean; + modifierSymbolLock?: boolean; + shiftKey?: boolean; +} + +interface ExceptionInformation { + domain?: string | null; +} + +interface FilePropertyBag extends BlobPropertyBag { + lastModified?: number; +} + +interface FocusEventInit extends UIEventInit { + relatedTarget?: EventTarget | null; +} + +interface FocusNavigationEventInit extends EventInit { + navigationReason?: string | null; + originHeight?: number; + originLeft?: number; + originTop?: number; + originWidth?: number; +} + +interface FocusNavigationOrigin { + originHeight?: number; + originLeft?: number; + originTop?: number; + originWidth?: number; +} + +interface FocusOptions { + preventScroll?: boolean; +} + +interface GainOptions extends AudioNodeOptions { + gain?: number; +} + +interface GamepadEventInit extends EventInit { + gamepad?: Gamepad; +} + +interface GetNotificationOptions { + tag?: string; +} + +interface GetRootNodeOptions { + composed?: boolean; +} + +interface HashChangeEventInit extends EventInit { + newURL?: string; + oldURL?: string; +} + +interface HkdfParams extends Algorithm { + hash: HashAlgorithmIdentifier; + info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface HmacKeyAlgorithm extends KeyAlgorithm { + hash: KeyAlgorithm; + length: number; +} + +interface HmacKeyGenParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface IDBIndexParameters { + multiEntry?: boolean; + unique?: boolean; +} + +interface IDBObjectStoreParameters { + autoIncrement?: boolean; + keyPath?: string | string[] | null; +} + +interface IDBVersionChangeEventInit extends EventInit { + newVersion?: number | null; + oldVersion?: number; +} + +interface IIRFilterOptions extends AudioNodeOptions { + feedback: number[]; + feedforward: number[]; +} + +interface IntersectionObserverEntryInit { + boundingClientRect: DOMRectInit; + intersectionRect: DOMRectInit; + isIntersecting: boolean; + rootBounds: DOMRectInit; + target: Element; + time: number; +} + +interface IntersectionObserverInit { + root?: Element | null; + rootMargin?: string; + threshold?: number | number[]; +} + +interface JsonWebKey { + alg?: string; + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + ext?: boolean; + k?: string; + key_ops?: string[]; + kty?: string; + n?: string; + oth?: RsaOtherPrimesInfo[]; + p?: string; + q?: string; + qi?: string; + use?: string; + x?: string; + y?: string; +} + +interface KeyAlgorithm { + name: string; +} + +interface KeyboardEventInit extends EventModifierInit { + code?: string; + key?: string; + location?: number; + repeat?: boolean; +} + +interface Keyframe { + composite?: CompositeOperationOrAuto; + easing?: string; + offset?: number | null; + [property: string]: string | number | null | undefined; +} + +interface KeyframeAnimationOptions extends KeyframeEffectOptions { + id?: string; +} + +interface KeyframeEffectOptions extends EffectTiming { + composite?: CompositeOperation; + iterationComposite?: IterationCompositeOperation; +} + +interface LongRange { + max?: number; + min?: number; +} + +interface MediaElementAudioSourceOptions { + mediaElement: HTMLMediaElement; +} + +interface MediaEncryptedEventInit extends EventInit { + initData?: ArrayBuffer | null; + initDataType?: string; +} + +interface MediaKeyMessageEventInit extends EventInit { + message?: ArrayBuffer | null; + messageType?: MediaKeyMessageType; +} + +interface MediaKeySystemConfiguration { + audioCapabilities?: MediaKeySystemMediaCapability[]; + distinctiveIdentifier?: MediaKeysRequirement; + initDataTypes?: string[]; + persistentState?: MediaKeysRequirement; + videoCapabilities?: MediaKeySystemMediaCapability[]; +} + +interface MediaKeySystemMediaCapability { + contentType?: string; + robustness?: string; +} + +interface MediaQueryListEventInit extends EventInit { + matches?: boolean; + media?: string; +} + +interface MediaStreamAudioSourceOptions { + mediaStream: MediaStream; +} + +interface MediaStreamConstraints { + audio?: boolean | MediaTrackConstraints; + peerIdentity?: string; + video?: boolean | MediaTrackConstraints; +} + +interface MediaStreamErrorEventInit extends EventInit { + error?: MediaStreamError | null; +} + +interface MediaStreamEventInit extends EventInit { + stream?: MediaStream; +} + +interface MediaStreamTrackAudioSourceOptions { + mediaStreamTrack: MediaStreamTrack; +} + +interface MediaStreamTrackEventInit extends EventInit { + track?: MediaStreamTrack | null; +} + +interface MediaTrackCapabilities { + aspectRatio?: number | DoubleRange; + deviceId?: string; + echoCancellation?: boolean[]; + facingMode?: string; + frameRate?: number | DoubleRange; + groupId?: string; + height?: number | LongRange; + sampleRate?: number | LongRange; + sampleSize?: number | LongRange; + volume?: number | DoubleRange; + width?: number | LongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: number | ConstrainDoubleRange; + channelCount?: number | ConstrainLongRange; + deviceId?: string | string[] | ConstrainDOMStringParameters; + displaySurface?: string | string[] | ConstrainDOMStringParameters; + echoCancellation?: boolean | ConstrainBooleanParameters; + facingMode?: string | string[] | ConstrainDOMStringParameters; + frameRate?: number | ConstrainDoubleRange; + groupId?: string | string[] | ConstrainDOMStringParameters; + height?: number | ConstrainLongRange; + latency?: number | ConstrainDoubleRange; + logicalSurface?: boolean | ConstrainBooleanParameters; + sampleRate?: number | ConstrainLongRange; + sampleSize?: number | ConstrainLongRange; + volume?: number | ConstrainDoubleRange; + width?: number | ConstrainLongRange; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + deviceId?: string; + echoCancellation?: boolean; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + sampleRate?: number; + sampleSize?: number; + volume?: number; + width?: number; +} + +interface MediaTrackSupportedConstraints { + aspectRatio?: boolean; + deviceId?: boolean; + echoCancellation?: boolean; + facingMode?: boolean; + frameRate?: boolean; + groupId?: boolean; + height?: boolean; + sampleRate?: boolean; + sampleSize?: boolean; + volume?: boolean; + width?: boolean; +} + +interface MessageEventInit extends EventInit { + data?: any; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; +} + +interface MouseEventInit extends EventModifierInit { + button?: number; + buttons?: number; + clientX?: number; + clientY?: number; + relatedTarget?: EventTarget | null; + screenX?: number; + screenY?: number; +} + +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?: number; + vibrate?: VibratePattern; +} + +interface OfflineAudioCompletionEventInit extends EventInit { + renderedBuffer: AudioBuffer; +} + +interface OfflineAudioContextOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface OptionalEffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; +} + +interface OscillatorOptions extends AudioNodeOptions { + detune?: number; + frequency?: number; + periodicWave?: PeriodicWave; + type?: OscillatorType; +} + +interface PannerOptions extends AudioNodeOptions { + coneInnerAngle?: number; + coneOuterAngle?: number; + coneOuterGain?: number; + distanceModel?: DistanceModelType; + maxDistance?: number; + orientationX?: number; + orientationY?: number; + orientationZ?: number; + panningModel?: PanningModelType; + positionX?: number; + positionY?: number; + positionZ?: number; + refDistance?: number; + rolloffFactor?: number; +} + +interface PaymentCurrencyAmount { + currency: string; + currencySystem?: string; + value: string; +} + +interface PaymentDetailsBase { + displayItems?: PaymentItem[]; + modifiers?: PaymentDetailsModifier[]; + shippingOptions?: PaymentShippingOption[]; +} + +interface PaymentDetailsInit extends PaymentDetailsBase { + id?: string; + total: PaymentItem; +} + +interface PaymentDetailsModifier { + additionalDisplayItems?: PaymentItem[]; + data?: any; + supportedMethods: string | string[]; + total?: PaymentItem; +} + +interface PaymentDetailsUpdate extends PaymentDetailsBase { + error?: string; + total?: PaymentItem; +} + +interface PaymentItem { + amount: PaymentCurrencyAmount; + label: string; + pending?: boolean; +} + +interface PaymentMethodData { + data?: any; + supportedMethods: string | string[]; +} + +interface PaymentOptions { + requestPayerEmail?: boolean; + requestPayerName?: boolean; + requestPayerPhone?: boolean; + requestShipping?: boolean; + shippingType?: string; +} + +interface PaymentRequestUpdateEventInit extends EventInit { +} + +interface PaymentShippingOption { + amount: PaymentCurrencyAmount; + id: string; + label: string; + selected?: boolean; +} + +interface Pbkdf2Params extends Algorithm { + hash: HashAlgorithmIdentifier; + iterations: number; + salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface PerformanceObserverInit { + buffered?: boolean; + entryTypes: string[]; +} + +interface PeriodicWaveConstraints { + disableNormalization?: boolean; +} + +interface PeriodicWaveOptions extends PeriodicWaveConstraints { + imag?: number[] | Float32Array; + real?: number[] | Float32Array; +} + +interface PipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + preventClose?: boolean; +} + +interface PointerEventInit extends MouseEventInit { + height?: number; + isPrimary?: boolean; + pointerId?: number; + pointerType?: string; + pressure?: number; + tangentialPressure?: number; + tiltX?: number; + tiltY?: number; + twist?: number; + width?: number; +} + +interface PopStateEventInit extends EventInit { + state?: any; +} + +interface PositionOptions { + enableHighAccuracy?: boolean; + maximumAge?: number; + timeout?: number; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +interface PromiseRejectionEventInit extends EventInit { + promise: Promise<any>; + reason?: any; +} + +interface PropertyIndexedKeyframes { + composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; + easing?: string | string[]; + offset?: number | (number | null)[]; + [property: string]: string | string[] | number | null | (number | null)[] | undefined; +} + +interface PushSubscriptionJSON { + endpoint?: string; + expirationTime?: number | null; + keys?: Record<string, string>; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy<T = any> { + highWaterMark?: number; + size?: QueuingStrategySizeCallback<T>; +} + +interface RTCAnswerOptions extends RTCOfferAnswerOptions { +} + +interface RTCCertificateExpiration { + expires?: number; +} + +interface RTCConfiguration { + bundlePolicy?: RTCBundlePolicy; + certificates?: RTCCertificate[]; + iceCandidatePoolSize?: number; + iceServers?: RTCIceServer[]; + iceTransportPolicy?: RTCIceTransportPolicy; + peerIdentity?: string; + rtcpMuxPolicy?: RTCRtcpMuxPolicy; +} + +interface RTCDTMFToneChangeEventInit extends EventInit { + tone: string; +} + +interface RTCDataChannelEventInit extends EventInit { + channel: RTCDataChannel; +} + +interface RTCDataChannelInit { + id?: number; + maxPacketLifeTime?: number; + maxRetransmits?: number; + negotiated?: boolean; + ordered?: boolean; + priority?: RTCPriorityType; + protocol?: string; +} + +interface RTCDtlsFingerprint { + algorithm?: string; + value?: string; +} + +interface RTCDtlsParameters { + fingerprints?: RTCDtlsFingerprint[]; + role?: RTCDtlsRole; +} + +interface RTCErrorEventInit extends EventInit { + error?: RTCError | null; +} + +interface RTCIceCandidateAttributes extends RTCStats { + addressSourceUrl?: string; + candidateType?: RTCStatsIceCandidateType; + ipAddress?: string; + portNumber?: number; + priority?: number; + transport?: string; +} + +interface RTCIceCandidateComplete { +} + +interface RTCIceCandidateDictionary { + foundation?: string; + ip?: string; + msMTurnSessionId?: string; + port?: number; + priority?: number; + protocol?: RTCIceProtocol; + relatedAddress?: string; + relatedPort?: number; + tcpType?: RTCIceTcpCandidateType; + type?: RTCIceCandidateType; +} + +interface RTCIceCandidateInit { + candidate?: string; + sdpMLineIndex?: number | null; + sdpMid?: string | null; + usernameFragment?: string; +} + +interface RTCIceCandidatePair { + local?: RTCIceCandidate; + remote?: RTCIceCandidate; +} + +interface RTCIceCandidatePairStats extends RTCStats { + availableIncomingBitrate?: number; + availableOutgoingBitrate?: number; + bytesReceived?: number; + bytesSent?: number; + localCandidateId?: string; + nominated?: boolean; + priority?: number; + readable?: boolean; + remoteCandidateId?: string; + roundTripTime?: number; + state?: RTCStatsIceCandidatePairState; + transportId?: string; + writable?: boolean; +} + +interface RTCIceGatherOptions { + gatherPolicy?: RTCIceGatherPolicy; + iceservers?: RTCIceServer[]; +} + +interface RTCIceParameters { + password?: string; + usernameFragment?: string; +} + +interface RTCIceServer { + credential?: string | RTCOAuthCredential; + credentialType?: RTCIceCredentialType; + urls: string | string[]; + username?: string; +} + +interface RTCIdentityProviderOptions { + peerIdentity?: string; + protocol?: string; + usernameHint?: string; +} + +interface RTCInboundRTPStreamStats extends RTCRTPStreamStats { + bytesReceived?: number; + fractionLost?: number; + jitter?: number; + packetsLost?: number; + packetsReceived?: number; +} + +interface RTCMediaStreamTrackStats extends RTCStats { + audioLevel?: number; + echoReturnLoss?: number; + echoReturnLossEnhancement?: number; + frameHeight?: number; + frameWidth?: number; + framesCorrupted?: number; + framesDecoded?: number; + framesDropped?: number; + framesPerSecond?: number; + framesReceived?: number; + framesSent?: number; + remoteSource?: boolean; + ssrcIds?: string[]; + trackIdentifier?: string; +} + +interface RTCOAuthCredential { + accessToken: string; + macKey: string; +} + +interface RTCOfferAnswerOptions { + voiceActivityDetection?: boolean; +} + +interface RTCOfferOptions extends RTCOfferAnswerOptions { + iceRestart?: boolean; + offerToReceiveAudio?: boolean; + offerToReceiveVideo?: boolean; +} + +interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats { + bytesSent?: number; + packetsSent?: number; + roundTripTime?: number; + targetBitrate?: number; +} + +interface RTCPeerConnectionIceErrorEventInit extends EventInit { + errorCode: number; + hostCandidate?: string; + statusText?: string; + url?: string; +} + +interface RTCPeerConnectionIceEventInit extends EventInit { + candidate?: RTCIceCandidate | null; + url?: string | null; +} + +interface RTCRTPStreamStats extends RTCStats { + associateStatsId?: string; + codecId?: string; + firCount?: number; + isRemote?: boolean; + mediaTrackId?: string; + mediaType?: string; + nackCount?: number; + pliCount?: number; + sliCount?: number; + ssrc?: string; + transportId?: string; +} + +interface RTCRtcpFeedback { + parameter?: string; + type?: string; +} + +interface RTCRtcpParameters { + cname?: string; + reducedSize?: boolean; +} + +interface RTCRtpCapabilities { + codecs: RTCRtpCodecCapability[]; + headerExtensions: RTCRtpHeaderExtensionCapability[]; +} + +interface RTCRtpCodecCapability { + channels?: number; + clockRate: number; + mimeType: string; + sdpFmtpLine?: string; +} + +interface RTCRtpCodecParameters { + channels?: number; + clockRate: number; + mimeType: string; + payloadType: number; + sdpFmtpLine?: string; +} + +interface RTCRtpCodingParameters { + rid?: string; +} + +interface RTCRtpContributingSource { + audioLevel?: number; + source: number; + timestamp: number; +} + +interface RTCRtpDecodingParameters extends RTCRtpCodingParameters { +} + +interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { + active?: boolean; + codecPayloadType?: number; + dtx?: RTCDtxStatus; + maxBitrate?: number; + maxFramerate?: number; + priority?: RTCPriorityType; + ptime?: number; + scaleResolutionDownBy?: number; +} + +interface RTCRtpFecParameters { + mechanism?: string; + ssrc?: number; +} + +interface RTCRtpHeaderExtension { + kind?: string; + preferredEncrypt?: boolean; + preferredId?: number; + uri?: string; +} + +interface RTCRtpHeaderExtensionCapability { + uri?: string; +} + +interface RTCRtpHeaderExtensionParameters { + encrypted?: boolean; + id: number; + uri: string; +} + +interface RTCRtpParameters { + codecs: RTCRtpCodecParameters[]; + headerExtensions: RTCRtpHeaderExtensionParameters[]; + rtcp: RTCRtcpParameters; +} + +interface RTCRtpReceiveParameters extends RTCRtpParameters { + encodings: RTCRtpDecodingParameters[]; +} + +interface RTCRtpRtxParameters { + ssrc?: number; +} + +interface RTCRtpSendParameters extends RTCRtpParameters { + degradationPreference?: RTCDegradationPreference; + encodings: RTCRtpEncodingParameters[]; + transactionId: string; +} + +interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { + voiceActivityFlag?: boolean; +} + +interface RTCRtpTransceiverInit { + direction?: RTCRtpTransceiverDirection; + sendEncodings?: RTCRtpEncodingParameters[]; + streams?: MediaStream[]; +} + +interface RTCRtpUnhandled { + muxId?: string; + payloadType?: number; + ssrc?: number; +} + +interface RTCSessionDescriptionInit { + sdp?: string; + type: RTCSdpType; +} + +interface RTCSrtpKeyParam { + keyMethod?: string; + keySalt?: string; + lifetime?: string; + mkiLength?: number; + mkiValue?: number; +} + +interface RTCSrtpSdesParameters { + cryptoSuite?: string; + keyParams?: RTCSrtpKeyParam[]; + sessionParams?: string[]; + tag?: number; +} + +interface RTCSsrcRange { + max?: number; + min?: number; +} + +interface RTCStats { + id: string; + timestamp: number; + type: RTCStatsType; +} + +interface RTCStatsEventInit extends EventInit { + report: RTCStatsReport; +} + +interface RTCStatsReport { +} + +interface RTCTrackEventInit extends EventInit { + receiver: RTCRtpReceiver; + streams?: MediaStream[]; + track: MediaStreamTrack; + transceiver: RTCRtpTransceiver; +} + +interface RTCTransportStats extends RTCStats { + activeConnection?: boolean; + bytesReceived?: number; + bytesSent?: number; + localCertificateId?: string; + remoteCertificateId?: string; + rtcpTransportStatsId?: string; + selectedCandidatePairId?: string; +} + +interface RegistrationOptions { + scope?: string; + type?: WorkerType; + updateViaCache?: ServiceWorkerUpdateViaCache; +} + +interface RequestInit { + 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?: any; +} + +interface ResponseInit { + headers?: HeadersInit; + status?: number; + statusText?: string; +} + +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { + hash: KeyAlgorithm; +} + +interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; +} + +interface RsaKeyAlgorithm extends KeyAlgorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaKeyGenParams extends Algorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaOaepParams extends Algorithm { + label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface RsaOtherPrimesInfo { + d?: string; + r?: string; + t?: string; +} + +interface RsaPssParams extends Algorithm { + saltLength: number; +} + +interface SVGBoundingBoxOptions { + clipped?: boolean; + fill?: boolean; + markers?: boolean; + stroke?: boolean; +} + +interface ScopedCredentialDescriptor { + id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null; + transports?: Transport[]; + type: ScopedCredentialType; +} + +interface ScopedCredentialOptions { + excludeList?: ScopedCredentialDescriptor[]; + extensions?: WebAuthnExtensions; + rpId?: string; + timeoutSeconds?: number; +} + +interface ScopedCredentialParameters { + algorithm: string | Algorithm; + type: ScopedCredentialType; +} + +interface ScrollIntoViewOptions extends ScrollOptions { + block?: ScrollLogicalPosition; + inline?: ScrollLogicalPosition; +} + +interface ScrollOptions { + behavior?: ScrollBehavior; +} + +interface ScrollToOptions extends ScrollOptions { + left?: number; + top?: number; +} + +interface SecurityPolicyViolationEventInit extends EventInit { + blockedURI?: string; + columnNumber?: number; + documentURI?: string; + effectiveDirective?: string; + lineNumber?: number; + originalPolicy?: string; + referrer?: string; + sourceFile?: string; + statusCode?: number; + violatedDirective?: string; +} + +interface ServiceWorkerMessageEventInit extends EventInit { + data?: any; + lastEventId?: string; + origin?: string; + ports?: MessagePort[] | null; + source?: ServiceWorker | MessagePort | null; +} + +interface StereoPannerOptions extends AudioNodeOptions { + pan?: number; +} + +interface StorageEstimate { + quota?: number; + usage?: number; +} + +interface StorageEventInit extends EventInit { + key?: string | null; + newValue?: string | null; + oldValue?: string | null; + storageArea?: Storage | null; + url?: string; +} + +interface StoreExceptionsInformation extends ExceptionInformation { + detailURI?: string | null; + explanationString?: string | null; + siteName?: string | null; +} + +interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { + arrayOfDomainStrings?: string[]; +} + +interface TextDecodeOptions { + stream?: boolean; +} + +interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; +} + +interface TouchEventInit extends EventModifierInit { + changedTouches?: Touch[]; + targetTouches?: Touch[]; + touches?: Touch[]; +} + +interface TouchInit { + altitudeAngle?: number; + azimuthAngle?: number; + clientX?: number; + clientY?: number; + force?: number; + identifier: number; + pageX?: number; + pageY?: number; + radiusX?: number; + radiusY?: number; + rotationAngle?: number; + screenX?: number; + screenY?: number; + target: EventTarget; + touchType?: TouchType; +} + +interface TrackEventInit extends EventInit { + track?: VideoTrack | AudioTrack | TextTrack | null; +} + +interface Transformer<I = any, O = any> { + flush?: TransformStreamDefaultControllerCallback<O>; + readableType?: undefined; + start?: TransformStreamDefaultControllerCallback<O>; + transform?: TransformStreamDefaultControllerTransformCallback<I, O>; + writableType?: undefined; +} + +interface TransitionEventInit extends EventInit { + elapsedTime?: number; + propertyName?: string; + pseudoElement?: string; +} + +interface UIEventInit extends EventInit { + detail?: number; + view?: Window | null; +} + +interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: ReadableStreamErrorCallback; + pull?: ReadableByteStreamControllerCallback; + start?: ReadableByteStreamControllerCallback; + type: "bytes"; +} + +interface UnderlyingSink<W = any> { + abort?: WritableStreamErrorCallback; + close?: WritableStreamDefaultControllerCloseCallback; + start?: WritableStreamDefaultControllerStartCallback; + type?: undefined; + write?: WritableStreamDefaultControllerWriteCallback<W>; +} + +interface UnderlyingSource<R = any> { + cancel?: ReadableStreamErrorCallback; + pull?: ReadableStreamDefaultControllerCallback<R>; + start?: ReadableStreamDefaultControllerCallback<R>; + type?: undefined; +} + +interface VRDisplayEventInit extends EventInit { + display: VRDisplay; + reason?: VRDisplayEventReason; +} + +interface VRLayer { + leftBounds?: number[] | Float32Array | null; + rightBounds?: number[] | Float32Array | null; + source?: HTMLCanvasElement | null; +} + +interface VRStageParameters { + sittingToStandingTransform?: Float32Array; + sizeX?: number; + sizeY?: number; +} + +interface WaveShaperOptions extends AudioNodeOptions { + curve?: number[] | Float32Array; + oversample?: OverSampleType; +} + +interface WebAuthnExtensions { +} + +interface WebGLContextAttributes { + alpha?: GLboolean; + antialias?: GLboolean; + depth?: GLboolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: GLboolean; + preserveDrawingBuffer?: GLboolean; + stencil?: GLboolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + +interface WheelEventInit extends MouseEventInit { + deltaMode?: number; + deltaX?: number; + deltaY?: number; + deltaZ?: number; +} + +interface WorkerOptions { + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; +} + +interface WorkletOptions { + credentials?: RequestCredentials; +} + +interface EventListener { + (evt: Event): void; +} + +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 { + /** + * Returns the AbortSignal object associated with this object. + */ + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and + * signal to any observers that the associated activity is to be aborted. + */ + abort(): void; +} + +declare var AbortController: { + prototype: AbortController; + new(): AbortController; +}; + +interface AbortSignalEventMap { + "abort": ProgressEvent; +} + +interface AbortSignal extends EventTarget { + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false + * otherwise. + */ + readonly aborted: boolean; + onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null; + addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AbortSignal: { + prototype: AbortSignal; + new(): AbortSignal; +}; + +interface AbstractRange { + 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<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface AesCfbParams extends Algorithm { + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface AesCmacParams extends Algorithm { + length: number; +} + +interface AnalyserNode extends AudioNode { + fftSize: number; + readonly frequencyBinCount: number; + maxDecibels: number; + minDecibels: number; + smoothingTimeConstant: number; + getByteFrequencyData(array: Uint8Array): void; + getByteTimeDomainData(array: Uint8Array): void; + getFloatFrequencyData(array: Float32Array): void; + getFloatTimeDomainData(array: Float32Array): void; +} + +declare var AnalyserNode: { + prototype: AnalyserNode; + new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; +}; + +interface Animatable { + animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; + getAnimations(): Animation[]; +} + +interface AnimationEventMap { + "cancel": AnimationPlaybackEvent; + "finish": AnimationPlaybackEvent; +} + +interface Animation extends EventTarget { + currentTime: number | null; + effect: AnimationEffect | null; + readonly finished: Promise<Animation>; + id: string; + oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + readonly pending: boolean; + readonly playState: AnimationPlayState; + playbackRate: number; + readonly ready: Promise<Animation>; + startTime: number | null; + timeline: AnimationTimeline | null; + cancel(): void; + finish(): void; + pause(): void; + play(): void; + reverse(): void; + updatePlaybackRate(playbackRate: number): void; + addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Animation: { + prototype: Animation; + new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; +}; + +interface AnimationEffect { + getComputedTiming(): ComputedEffectTiming; + getTiming(): EffectTiming; + updateTiming(timing?: OptionalEffectTiming): void; +} + +declare var AnimationEffect: { + prototype: AnimationEffect; + new(): AnimationEffect; +}; + +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 AnimationPlaybackEvent extends Event { + readonly currentTime: number | null; + readonly timelineTime: number | null; +} + +declare var AnimationPlaybackEvent: { + prototype: AnimationPlaybackEvent; + new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; +}; + +interface AnimationTimeline { + readonly currentTime: number | null; +} + +declare var AnimationTimeline: { + prototype: AnimationTimeline; + new(): AnimationTimeline; +}; + +interface ApplicationCacheEventMap { + "cached": Event; + "checking": Event; + "downloading": Event; + "error": Event; + "noupdate": Event; + "obsolete": Event; + "progress": ProgressEvent; + "updateready": Event; +} + +interface ApplicationCache extends EventTarget { + /** @deprecated */ + oncached: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + onchecking: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + ondownloading: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + onerror: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + onobsolete: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null; + /** @deprecated */ + onupdateready: ((this: ApplicationCache, ev: Event) => any) | null; + /** @deprecated */ + readonly status: number; + /** @deprecated */ + abort(): void; + /** @deprecated */ + swapCache(): void; + /** @deprecated */ + update(): void; + readonly CHECKING: number; + readonly DOWNLOADING: number; + readonly IDLE: number; + readonly OBSOLETE: number; + readonly UNCACHED: number; + readonly UPDATEREADY: number; + addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ApplicationCache: { + prototype: ApplicationCache; + new(): ApplicationCache; + readonly CHECKING: number; + readonly DOWNLOADING: number; + readonly IDLE: number; + readonly OBSOLETE: number; + readonly UNCACHED: number; + readonly UPDATEREADY: number; +}; + +interface Attr extends Node { + readonly localName: string; + readonly name: string; + readonly namespaceURI: string | null; + readonly ownerElement: Element | null; + readonly prefix: string | null; + readonly specified: boolean; + value: string; +} + +declare var Attr: { + prototype: Attr; + new(): Attr; +}; + +interface AudioBuffer { + readonly duration: number; + readonly length: number; + readonly numberOfChannels: number; + readonly sampleRate: number; + copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void; + copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void; + getChannelData(channel: number): Float32Array; +} + +declare var AudioBuffer: { + prototype: AudioBuffer; + new(options: AudioBufferOptions): AudioBuffer; +}; + +interface AudioBufferSourceNode extends AudioScheduledSourceNode { + buffer: AudioBuffer | null; + readonly detune: AudioParam; + loop: boolean; + loopEnd: number; + loopStart: number; + readonly playbackRate: AudioParam; + start(when?: number, offset?: number, duration?: number): void; + addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioBufferSourceNode: { + prototype: AudioBufferSourceNode; + new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; +}; + +interface AudioContext extends BaseAudioContext { + readonly baseLatency: number; + readonly outputLatency: number; + close(): Promise<void>; + createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; + createMediaStreamDestination(): MediaStreamAudioDestinationNode; + createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; + createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode; + getOutputTimestamp(): AudioTimestamp; + suspend(): Promise<void>; + addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioContext: { + prototype: AudioContext; + new(contextOptions?: AudioContextOptions): AudioContext; +}; + +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; + /** @deprecated */ + setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; + /** @deprecated */ + setPosition(x: number, y: number, z: number): void; +} + +declare var AudioListener: { + prototype: AudioListener; + new(): AudioListener; +}; + +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<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioScheduledSourceNode: { + prototype: AudioScheduledSourceNode; + new(): AudioScheduledSourceNode; +}; + +interface AudioTrack { + enabled: boolean; + readonly id: string; + kind: string; + readonly label: string; + language: string; + readonly sourceBuffer: SourceBuffer; +} + +declare var AudioTrack: { + prototype: AudioTrack; + new(): AudioTrack; +}; + +interface AudioTrackListEventMap { + "addtrack": TrackEvent; + "change": Event; + "removetrack": TrackEvent; +} + +interface AudioTrackList extends EventTarget { + readonly length: number; + onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null; + onchange: ((this: AudioTrackList, ev: Event) => any) | null; + onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null; + getTrackById(id: string): AudioTrack | null; + item(index: number): AudioTrack; + addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: AudioTrack; +} + +declare var AudioTrackList: { + prototype: AudioTrackList; + new(): AudioTrackList; +}; + +interface AudioWorklet extends Worklet { +} + +declare var AudioWorklet: { + prototype: AudioWorklet; + new(): AudioWorklet; +}; + +interface AudioWorkletNodeEventMap { + "processorerror": Event; +} + +interface AudioWorkletNode extends AudioNode { + onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; + readonly parameters: AudioParamMap; + readonly port: MessagePort; + addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioWorkletNode: { + prototype: AudioWorkletNode; + new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; +}; + +interface BarProp { + readonly visible: boolean; +} + +declare var BarProp: { + prototype: BarProp; + new(): BarProp; +}; + +interface BaseAudioContextEventMap { + "statechange": Event; +} + +interface BaseAudioContext extends EventTarget { + readonly audioWorklet: AudioWorklet; + readonly currentTime: number; + readonly destination: AudioDestinationNode; + readonly listener: AudioListener; + onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; + readonly sampleRate: number; + readonly state: AudioContextState; + createAnalyser(): AnalyserNode; + createBiquadFilter(): BiquadFilterNode; + createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; + createBufferSource(): AudioBufferSourceNode; + createChannelMerger(numberOfInputs?: number): ChannelMergerNode; + createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; + createConstantSource(): ConstantSourceNode; + createConvolver(): ConvolverNode; + createDelay(maxDelayTime?: number): DelayNode; + createDynamicsCompressor(): DynamicsCompressorNode; + createGain(): GainNode; + createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; + createOscillator(): OscillatorNode; + createPanner(): PannerNode; + createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; + createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; + createStereoPanner(): StereoPannerNode; + createWaveShaper(): WaveShaperNode; + decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>; + resume(): Promise<void>; + addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BaseAudioContext: { + prototype: BaseAudioContext; + new(): BaseAudioContext; +}; + +interface BeforeUnloadEvent extends Event { + returnValue: any; +} + +declare var BeforeUnloadEvent: { + prototype: BeforeUnloadEvent; + new(): BeforeUnloadEvent; +}; + +interface BhxBrowser { + readonly lastError: DOMException; + checkMatchesGlobExpression(pattern: string, value: string): boolean; + checkMatchesUriExpression(pattern: string, value: string): boolean; + clearLastError(): void; + currentWindowId(): number; + fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void; + genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void; + genericSynchronousFunction(functionId: number, parameters?: string): string; + getExtensionId(): string; + getThisAddress(): any; + registerGenericFunctionCallbackHandler(callbackHandler: Function): void; + registerGenericListenerHandler(eventHandler: Function): void; + setLastError(parameters: string): void; + webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void; +} + +declare var BhxBrowser: { + prototype: BhxBrowser; + new(): BhxBrowser; +}; + +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; + slice(start?: number, end?: number, contentType?: string): Blob; +} + +declare var Blob: { + prototype: Blob; + new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; +}; + +interface Body { + readonly body: ReadableStream<Uint8Array> | null; + readonly bodyUsed: boolean; + arrayBuffer(): Promise<ArrayBuffer>; + blob(): Promise<Blob>; + formData(): Promise<FormData>; + json(): Promise<any>; + text(): Promise<string>; +} + +interface BroadcastChannelEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface BroadcastChannel extends EventTarget { + /** + * Returns the channel name (as passed to the constructor). + */ + readonly name: string; + onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** + * Closes the BroadcastChannel object, opening it up to garbage collection. + */ + close(): void; + /** + * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. + */ + postMessage(message: any): void; + addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BroadcastChannel: { + prototype: BroadcastChannel; + new(name: string): BroadcastChannel; +}; + +interface BroadcastChannelEventMap { + message: MessageEvent; + messageerror: MessageEvent; +} + +interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> { + highWaterMark: number; + size(chunk: ArrayBufferView): number; +} + +declare var ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(options: { highWaterMark: number }): ByteLengthQueuingStrategy; +}; + +interface CDATASection extends Text { +} + +declare var CDATASection: { + prototype: CDATASection; + new(): CDATASection; +}; + +interface CSS { + escape(value: string): string; + supports(property: string, value?: string): boolean; +} +declare var CSS: CSS; + +interface CSSConditionRule extends CSSGroupingRule { + conditionText: string; +} + +declare var CSSConditionRule: { + prototype: CSSConditionRule; + new(): CSSConditionRule; +}; + +interface CSSFontFaceRule extends CSSRule { + readonly style: CSSStyleDeclaration; +} + +declare var CSSFontFaceRule: { + prototype: CSSFontFaceRule; + new(): CSSFontFaceRule; +}; + +interface CSSGroupingRule extends CSSRule { + readonly cssRules: CSSRuleList; + deleteRule(index: number): void; + insertRule(rule: string, index: number): number; +} + +declare var CSSGroupingRule: { + prototype: CSSGroupingRule; + new(): CSSGroupingRule; +}; + +interface CSSImportRule extends CSSRule { + readonly href: string; + readonly media: MediaList; + readonly styleSheet: CSSStyleSheet; +} + +declare var CSSImportRule: { + prototype: CSSImportRule; + new(): CSSImportRule; +}; + +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 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 CSSRule { + readonly pseudoClass: string; + readonly selector: string; + 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; + readonly UNKNOWN_RULE: number; + readonly VIEWPORT_RULE: number; +} + +declare var CSSRule: { + prototype: CSSRule; + new(): CSSRule; + readonly CHARSET_RULE: number; + readonly FONT_FACE_RULE: number; + readonly IMPORT_RULE: number; + readonly KEYFRAMES_RULE: number; + readonly KEYFRAME_RULE: number; + readonly MEDIA_RULE: number; + readonly NAMESPACE_RULE: number; + readonly PAGE_RULE: number; + readonly STYLE_RULE: number; + readonly SUPPORTS_RULE: number; + readonly UNKNOWN_RULE: number; + readonly VIEWPORT_RULE: number; +}; + +interface CSSRuleList { + readonly length: number; + item(index: number): CSSRule | null; + [index: number]: CSSRule; +} + +declare var CSSRuleList: { + prototype: CSSRuleList; + new(): CSSRuleList; +}; + +interface CSSStyleDeclaration { + alignContent: string | null; + alignItems: string | null; + alignSelf: string | null; + alignmentBaseline: string | null; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string | null; + background: string | null; + backgroundAttachment: string | null; + backgroundClip: string | null; + backgroundColor: string | null; + backgroundImage: string | null; + backgroundOrigin: string | null; + backgroundPosition: string | null; + backgroundPositionX: string | null; + backgroundPositionY: string | null; + backgroundRepeat: string | null; + backgroundSize: string | null; + baselineShift: string | null; + border: string | null; + borderBottom: string | null; + borderBottomColor: string | null; + borderBottomLeftRadius: string | null; + borderBottomRightRadius: string | null; + borderBottomStyle: string | null; + borderBottomWidth: string | null; + borderCollapse: string | null; + borderColor: string | null; + borderImage: string | null; + borderImageOutset: string | null; + borderImageRepeat: string | null; + borderImageSlice: string | null; + borderImageSource: string | null; + borderImageWidth: string | null; + borderLeft: string | null; + borderLeftColor: string | null; + borderLeftStyle: string | null; + borderLeftWidth: string | null; + borderRadius: string | null; + borderRight: string | null; + borderRightColor: string | null; + borderRightStyle: string | null; + borderRightWidth: string | null; + borderSpacing: string | null; + borderStyle: string | null; + borderTop: string | null; + borderTopColor: string | null; + borderTopLeftRadius: string | null; + borderTopRightRadius: string | null; + borderTopStyle: string | null; + borderTopWidth: string | null; + borderWidth: string | null; + bottom: string | null; + boxShadow: string | null; + boxSizing: string | null; + breakAfter: string | null; + breakBefore: string | null; + breakInside: string | null; + captionSide: string | null; + clear: string | null; + clip: string | null; + clipPath: string | null; + clipRule: string | null; + color: string | null; + colorInterpolationFilters: string | null; + columnCount: any; + columnFill: string | null; + columnGap: any; + columnRule: string | null; + columnRuleColor: any; + columnRuleStyle: string | null; + columnRuleWidth: any; + columnSpan: string | null; + columnWidth: any; + columns: string | null; + content: string | null; + counterIncrement: string | null; + counterReset: string | null; + cssFloat: string | null; + cssText: string; + cursor: string | null; + direction: string | null; + display: string | null; + dominantBaseline: string | null; + emptyCells: string | null; + enableBackground: string | null; + fill: string | null; + fillOpacity: string | null; + fillRule: string | null; + filter: string | null; + flex: string | null; + flexBasis: string | null; + flexDirection: string | null; + flexFlow: string | null; + flexGrow: string | null; + flexShrink: string | null; + flexWrap: string | null; + floodColor: string | null; + floodOpacity: string | null; + font: string | null; + fontFamily: string | null; + fontFeatureSettings: string | null; + fontSize: string | null; + fontSizeAdjust: string | null; + fontStretch: string | null; + fontStyle: string | null; + fontVariant: string | null; + fontWeight: string | null; + gap: string | null; + glyphOrientationHorizontal: string | null; + glyphOrientationVertical: string | null; + grid: string | null; + gridArea: string | null; + gridAutoColumns: string | null; + gridAutoFlow: string | null; + gridAutoRows: string | null; + gridColumn: string | null; + gridColumnEnd: string | null; + gridColumnGap: string | null; + gridColumnStart: string | null; + gridGap: string | null; + gridRow: string | null; + gridRowEnd: string | null; + gridRowGap: string | null; + gridRowStart: string | null; + gridTemplate: string | null; + gridTemplateAreas: string | null; + gridTemplateColumns: string | null; + gridTemplateRows: string | null; + height: string | null; + imeMode: string | null; + justifyContent: string | null; + justifyItems: string | null; + justifySelf: string | null; + kerning: string | null; + layoutGrid: string | null; + layoutGridChar: string | null; + layoutGridLine: string | null; + layoutGridMode: string | null; + layoutGridType: string | null; + left: string | null; + readonly length: number; + letterSpacing: string | null; + lightingColor: string | null; + lineBreak: string | null; + lineHeight: string | null; + listStyle: string | null; + listStyleImage: string | null; + listStylePosition: string | null; + listStyleType: string | null; + margin: string | null; + marginBottom: string | null; + marginLeft: string | null; + marginRight: string | null; + marginTop: string | null; + marker: string | null; + markerEnd: string | null; + markerMid: string | null; + markerStart: string | null; + mask: string | null; + maskImage: string | null; + maxHeight: string | null; + maxWidth: string | null; + minHeight: string | null; + minWidth: string | null; + msContentZoomChaining: string | null; + msContentZoomLimit: string | null; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string | null; + msContentZoomSnapPoints: string | null; + msContentZoomSnapType: string | null; + msContentZooming: string | null; + msFlowFrom: string | null; + msFlowInto: string | null; + msFontFeatureSettings: string | null; + msGridColumn: any; + msGridColumnAlign: string | null; + msGridColumnSpan: any; + msGridColumns: string | null; + msGridRow: any; + msGridRowAlign: string | null; + msGridRowSpan: any; + msGridRows: string | null; + msHighContrastAdjust: string | null; + msHyphenateLimitChars: string | null; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string | null; + msImeAlign: string | null; + msOverflowStyle: string | null; + msScrollChaining: string | null; + msScrollLimit: string | null; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string | null; + msScrollSnapPointsX: string | null; + msScrollSnapPointsY: string | null; + msScrollSnapType: string | null; + msScrollSnapX: string | null; + msScrollSnapY: string | null; + msScrollTranslation: string | null; + msTextCombineHorizontal: string | null; + msTextSizeAdjust: any; + msTouchAction: string | null; + msTouchSelect: string | null; + msUserSelect: string | null; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + objectFit: string | null; + objectPosition: string | null; + opacity: string | null; + order: string | null; + orphans: string | null; + outline: string | null; + outlineColor: string | null; + outlineOffset: string | null; + outlineStyle: string | null; + outlineWidth: string | null; + overflow: string | null; + overflowX: string | null; + overflowY: string | null; + padding: string | null; + paddingBottom: string | null; + paddingLeft: string | null; + paddingRight: string | null; + paddingTop: string | null; + pageBreakAfter: string | null; + pageBreakBefore: string | null; + pageBreakInside: string | null; + readonly parentRule: CSSRule; + penAction: string | null; + perspective: string | null; + perspectiveOrigin: string | null; + pointerEvents: string | null; + position: string | null; + quotes: string | null; + resize: string | null; + right: string | null; + rotate: string | null; + rowGap: string | null; + rubyAlign: string | null; + rubyOverhang: string | null; + rubyPosition: string | null; + scale: string | null; + scrollBehavior: string; + stopColor: string | null; + stopOpacity: string | null; + stroke: string | null; + strokeDasharray: string | null; + strokeDashoffset: string | null; + strokeLinecap: string | null; + strokeLinejoin: string | null; + strokeMiterlimit: string | null; + strokeOpacity: string | null; + strokeWidth: string | null; + tableLayout: string | null; + textAlign: string | null; + textAlignLast: string | null; + textAnchor: string | null; + textCombineUpright: string | null; + textDecoration: string | null; + textIndent: string | null; + textJustify: string | null; + textKashida: string | null; + textKashidaSpace: string | null; + textOverflow: string | null; + textShadow: string | null; + textTransform: string | null; + textUnderlinePosition: string | null; + top: string | null; + touchAction: string; + transform: string | null; + transformOrigin: string | null; + transformStyle: string | null; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + translate: string | null; + unicodeBidi: string | null; + userSelect: string | null; + verticalAlign: string | null; + visibility: string | null; + /** @deprecated */ + webkitAlignContent: string; + /** @deprecated */ + webkitAlignItems: string; + /** @deprecated */ + webkitAlignSelf: string; + /** @deprecated */ + webkitAnimation: string; + /** @deprecated */ + webkitAnimationDelay: string; + /** @deprecated */ + webkitAnimationDirection: string; + /** @deprecated */ + webkitAnimationDuration: string; + /** @deprecated */ + webkitAnimationFillMode: string; + /** @deprecated */ + webkitAnimationIterationCount: string; + /** @deprecated */ + webkitAnimationName: string; + /** @deprecated */ + webkitAnimationPlayState: string; + /** @deprecated */ + webkitAnimationTimingFunction: string; + /** @deprecated */ + webkitAppearance: string; + /** @deprecated */ + webkitBackfaceVisibility: string; + /** @deprecated */ + webkitBackgroundClip: string; + /** @deprecated */ + webkitBackgroundOrigin: string; + /** @deprecated */ + webkitBackgroundSize: string; + /** @deprecated */ + webkitBorderBottomLeftRadius: string; + /** @deprecated */ + webkitBorderBottomRightRadius: string; + webkitBorderImage: string | null; + /** @deprecated */ + webkitBorderRadius: string; + /** @deprecated */ + webkitBorderTopLeftRadius: string; + /** @deprecated */ + webkitBorderTopRightRadius: string; + /** @deprecated */ + webkitBoxAlign: string; + webkitBoxDirection: string | null; + /** @deprecated */ + webkitBoxFlex: string; + /** @deprecated */ + webkitBoxOrdinalGroup: string; + webkitBoxOrient: string | null; + /** @deprecated */ + webkitBoxPack: string; + /** @deprecated */ + webkitBoxShadow: string; + /** @deprecated */ + webkitBoxSizing: string; + webkitColumnBreakAfter: string | null; + webkitColumnBreakBefore: string | null; + webkitColumnBreakInside: string | null; + webkitColumnCount: any; + webkitColumnGap: any; + webkitColumnRule: string | null; + webkitColumnRuleColor: any; + webkitColumnRuleStyle: string | null; + webkitColumnRuleWidth: any; + webkitColumnSpan: string | null; + webkitColumnWidth: any; + webkitColumns: string | null; + /** @deprecated */ + webkitFilter: string; + /** @deprecated */ + webkitFlex: string; + /** @deprecated */ + webkitFlexBasis: string; + /** @deprecated */ + webkitFlexDirection: string; + /** @deprecated */ + webkitFlexFlow: string; + /** @deprecated */ + webkitFlexGrow: string; + /** @deprecated */ + webkitFlexShrink: string; + /** @deprecated */ + webkitFlexWrap: string; + /** @deprecated */ + webkitJustifyContent: string; + /** @deprecated */ + webkitMask: string; + /** @deprecated */ + webkitMaskBoxImage: string; + /** @deprecated */ + webkitMaskBoxImageOutset: string; + /** @deprecated */ + webkitMaskBoxImageRepeat: string; + /** @deprecated */ + webkitMaskBoxImageSlice: string; + /** @deprecated */ + webkitMaskBoxImageSource: string; + /** @deprecated */ + webkitMaskBoxImageWidth: string; + /** @deprecated */ + webkitMaskClip: string; + /** @deprecated */ + webkitMaskComposite: string; + /** @deprecated */ + webkitMaskImage: string; + /** @deprecated */ + webkitMaskOrigin: string; + /** @deprecated */ + webkitMaskPosition: string; + /** @deprecated */ + webkitMaskRepeat: string; + /** @deprecated */ + webkitMaskSize: string; + /** @deprecated */ + webkitOrder: string; + /** @deprecated */ + webkitPerspective: string; + /** @deprecated */ + webkitPerspectiveOrigin: string; + webkitTapHighlightColor: string | null; + /** @deprecated */ + webkitTextFillColor: string; + /** @deprecated */ + webkitTextSizeAdjust: string; + /** @deprecated */ + webkitTextStroke: string; + /** @deprecated */ + webkitTextStrokeColor: string; + /** @deprecated */ + webkitTextStrokeWidth: string; + /** @deprecated */ + webkitTransform: string; + /** @deprecated */ + webkitTransformOrigin: string; + /** @deprecated */ + webkitTransformStyle: string; + /** @deprecated */ + webkitTransition: string; + /** @deprecated */ + webkitTransitionDelay: string; + /** @deprecated */ + webkitTransitionDuration: string; + /** @deprecated */ + webkitTransitionProperty: string; + /** @deprecated */ + webkitTransitionTimingFunction: string; + webkitUserModify: string | null; + webkitUserSelect: string | null; + webkitWritingMode: string | null; + whiteSpace: string | null; + widows: string | null; + width: string | null; + wordBreak: string | null; + wordSpacing: string | null; + wordWrap: string | null; + writingMode: string | null; + zIndex: string | null; + zoom: string | null; + getPropertyPriority(propertyName: string): string; + getPropertyValue(propertyName: string): string; + item(index: number): string; + removeProperty(propertyName: string): string; + setProperty(propertyName: string, value: string | null, priority?: string | null): void; + [index: number]: string; +} + +declare var CSSStyleDeclaration: { + prototype: CSSStyleDeclaration; + new(): CSSStyleDeclaration; +}; + +interface CSSStyleRule extends CSSRule { + selectorText: string; + readonly style: CSSStyleDeclaration; +} + +declare var CSSStyleRule: { + prototype: CSSStyleRule; + new(): CSSStyleRule; +}; + +interface CSSStyleSheet extends StyleSheet { + readonly cssRules: CSSRuleList; + /** @deprecated */ + cssText: string; + /** @deprecated */ + readonly id: string; + /** @deprecated */ + readonly imports: StyleSheetList; + /** @deprecated */ + readonly isAlternate: boolean; + /** @deprecated */ + readonly isPrefAlternate: boolean; + readonly ownerRule: CSSRule | null; + /** @deprecated */ + readonly owningElement: Element; + /** @deprecated */ + readonly pages: any; + /** @deprecated */ + readonly readOnly: boolean; + readonly rules: CSSRuleList; + /** @deprecated */ + addImport(bstrURL: string, lIndex?: number): number; + /** @deprecated */ + addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; + addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number; + deleteRule(index?: number): void; + insertRule(rule: string, index?: number): number; + /** @deprecated */ + removeImport(lIndex: number): void; + removeRule(lIndex: number): void; +} + +declare var CSSStyleSheet: { + prototype: CSSStyleSheet; + new(): CSSStyleSheet; +}; + +interface CSSSupportsRule extends CSSConditionRule { +} + +declare var CSSSupportsRule: { + prototype: CSSSupportsRule; + new(): CSSSupportsRule; +}; + +interface Cache { + add(request: RequestInfo): Promise<void>; + addAll(requests: RequestInfo[]): Promise<void>; + delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>; + keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; + match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>; + matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; + put(request: RequestInfo, response: Response): Promise<void>; +} + +declare var Cache: { + prototype: Cache; + new(): Cache; +}; + +interface CacheStorage { + delete(cacheName: string): Promise<boolean>; + has(cacheName: string): Promise<boolean>; + keys(): Promise<string[]>; + match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>; + open(cacheName: string): Promise<Cache>; +} + +declare var CacheStorage: { + prototype: CacheStorage; + new(): CacheStorage; +}; + +interface CanvasCompositing { + globalAlpha: number; + globalCompositeOperation: string; +} + +interface CanvasDrawImage { + drawImage(image: CanvasImageSource, dx: number, dy: number): void; + drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; + drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; +} + +interface CanvasDrawPath { + beginPath(): void; + clip(fillRule?: CanvasFillRule): void; + clip(path: Path2D, fillRule?: CanvasFillRule): void; + fill(fillRule?: CanvasFillRule): void; + fill(path: Path2D, fillRule?: CanvasFillRule): void; + isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; + isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; + isPointInStroke(x: number, y: number): boolean; + isPointInStroke(path: Path2D, x: number, y: number): boolean; + stroke(): void; + stroke(path: Path2D): void; +} + +interface CanvasFillStrokeStyles { + fillStyle: string | CanvasGradient | CanvasPattern; + strokeStyle: string | CanvasGradient | CanvasPattern; + createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; + createPattern(image: CanvasImageSource, repetition: string): CanvasPattern | null; + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; +} + +interface CanvasFilters { + filter: string; +} + +interface CanvasGradient { + /** + * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset + * at one end of the gradient, 1.0 is the offset at the other end. + * Throws an "IndexSizeError" DOMException if the offset + * is out of range. Throws a "SyntaxError" DOMException if + * the color cannot be parsed. + */ + addColorStop(offset: number, color: string): void; +} + +declare var CanvasGradient: { + prototype: CanvasGradient; + new(): CanvasGradient; +}; + +interface CanvasImageData { + createImageData(sw: number, sh: number): ImageData; + createImageData(imagedata: ImageData): ImageData; + getImageData(sx: number, sy: number, sw: number, sh: number): ImageData; + putImageData(imagedata: ImageData, dx: number, dy: number): void; + putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; +} + +interface CanvasImageSmoothing { + imageSmoothingEnabled: boolean; + imageSmoothingQuality: ImageSmoothingQuality; +} + +interface CanvasPath { + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + closePath(): void; + ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; + lineTo(x: number, y: number): void; + moveTo(x: number, y: number): void; + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + rect(x: number, y: number, w: number, h: number): void; +} + +interface CanvasPathDrawingStyles { + lineCap: CanvasLineCap; + lineDashOffset: number; + lineJoin: CanvasLineJoin; + lineWidth: number; + miterLimit: number; + getLineDash(): number[]; + setLineDash(segments: number[]): void; +} + +interface CanvasPattern { + /** + * Sets the transformation matrix that will be used when rendering the pattern during a fill or + * stroke painting operation. + */ + setTransform(transform?: DOMMatrix2DInit): void; +} + +declare var CanvasPattern: { + prototype: CanvasPattern; + new(): CanvasPattern; +}; + +interface CanvasRect { + clearRect(x: number, y: number, w: number, h: number): void; + fillRect(x: number, y: number, w: number, h: number): void; + strokeRect(x: number, y: number, w: number, h: number): void; +} + +interface CanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasUserInterface, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath { + readonly canvas: HTMLCanvasElement; +} + +declare var CanvasRenderingContext2D: { + prototype: CanvasRenderingContext2D; + new(): CanvasRenderingContext2D; +}; + +interface CanvasShadowStyles { + shadowBlur: number; + shadowColor: string; + shadowOffsetX: number; + shadowOffsetY: number; +} + +interface CanvasState { + restore(): void; + save(): void; +} + +interface CanvasText { + fillText(text: string, x: number, y: number, maxWidth?: number): void; + measureText(text: string): TextMetrics; + strokeText(text: string, x: number, y: number, maxWidth?: number): void; +} + +interface CanvasTextDrawingStyles { + direction: CanvasDirection; + font: string; + textAlign: CanvasTextAlign; + textBaseline: CanvasTextBaseline; +} + +interface CanvasTransform { + getTransform(): DOMMatrix; + resetTransform(): void; + rotate(angle: number): void; + scale(x: number, y: number): void; + setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; + setTransform(transform?: DOMMatrix2DInit): void; + transform(a: number, b: number, c: number, d: number, e: number, f: number): void; + translate(x: number, y: number): void; +} + +interface CanvasUserInterface { + drawFocusIfNeeded(element: Element): void; + drawFocusIfNeeded(path: Path2D, element: Element): void; + scrollPathIntoView(): void; + scrollPathIntoView(path: Path2D): void; +} + +interface CaretPosition { + readonly offset: number; + readonly offsetNode: Node; + getClientRect(): DOMRect | null; +} + +declare var CaretPosition: { + prototype: CaretPosition; + new(): CaretPosition; +}; + +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, NonDocumentTypeChildNode, ChildNode { + data: string; + readonly length: number; + appendData(data: string): void; + deleteData(offset: number, count: number): void; + insertData(offset: number, data: string): void; + replaceData(offset: number, count: number, data: string): void; + substringData(offset: number, count: number): string; +} + +declare var CharacterData: { + prototype: CharacterData; + new(): CharacterData; +}; + +interface ChildNode extends Node { + /** + * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. + * Throws a "HierarchyRequestError" DOMException if the constraints of + * the node tree are violated. + */ + after(...nodes: (Node | string)[]): void; + /** + * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. + * Throws a "HierarchyRequestError" DOMException if the constraints of + * the node tree are violated. + */ + before(...nodes: (Node | string)[]): void; + /** + * Removes node. + */ + remove(): void; + /** + * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. + * Throws a "HierarchyRequestError" DOMException if the constraints of + * the node tree are violated. + */ + replaceWith(...nodes: (Node | string)[]): void; +} + +interface ClientRect { + bottom: number; + readonly height: number; + left: number; + right: number; + top: number; + readonly width: number; +} + +declare var ClientRect: { + prototype: ClientRect; + new(): ClientRect; +}; + +interface ClientRectList { + readonly length: number; + item(index: number): ClientRect; + [index: number]: ClientRect; +} + +declare var ClientRectList: { + prototype: ClientRectList; + new(): ClientRectList; +}; + +interface ClipboardEvent extends Event { + readonly clipboardData: DataTransfer; +} + +declare var ClipboardEvent: { + prototype: ClipboardEvent; + new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; +}; + +interface ClipboardEventInit extends EventInit { + data?: string; + dataType?: string; +} + +interface CloseEvent extends Event { + readonly code: number; + readonly reason: string; + readonly wasClean: boolean; + /** @deprecated */ + initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void; +} + +declare var CloseEvent: { + prototype: CloseEvent; + new(type: string, eventInitDict?: CloseEventInit): CloseEvent; +}; + +interface Comment extends CharacterData { +} + +declare var Comment: { + prototype: Comment; + new(data?: string): Comment; +}; + +interface CompositionEvent extends UIEvent { + readonly data: string; + readonly locale: string; + initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; +} + +declare var CompositionEvent: { + prototype: CompositionEvent; + new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; +}; + +interface ConcatParams extends Algorithm { + algorithmId: Uint8Array; + hash?: string | Algorithm; + partyUInfo: Uint8Array; + partyVInfo: Uint8Array; + privateInfo?: Uint8Array; + publicInfo?: Uint8Array; +} + +interface Console { + memory: any; + assert(condition?: boolean, message?: string, ...data: any[]): void; + clear(): void; + count(label?: string): void; + debug(message?: any, ...optionalParams: any[]): void; + dir(value?: any, ...optionalParams: any[]): void; + dirxml(value: any): void; + error(message?: any, ...optionalParams: any[]): void; + exception(message?: string, ...optionalParams: any[]): void; + group(groupTitle?: string, ...optionalParams: any[]): void; + groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void; + groupEnd(): void; + info(message?: any, ...optionalParams: any[]): void; + log(message?: any, ...optionalParams: any[]): void; + markTimeline(label?: string): void; + profile(reportName?: string): void; + profileEnd(reportName?: string): void; + table(...tabularData: any[]): void; + time(label?: string): void; + timeEnd(label?: string): void; + timeStamp(label?: string): void; + timeline(label?: string): void; + timelineEnd(label?: string): void; + trace(message?: any, ...optionalParams: any[]): void; + warn(message?: any, ...optionalParams: any[]): void; +} + +declare var Console: { + prototype: Console; + new(): Console; +}; + +interface ConstantSourceNode extends AudioScheduledSourceNode { + readonly offset: AudioParam; + addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ConstantSourceNode: { + prototype: ConstantSourceNode; + new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; +}; + +interface ConvolverNode extends AudioNode { + buffer: AudioBuffer | null; + normalize: boolean; +} + +declare var ConvolverNode: { + prototype: ConvolverNode; + new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; +}; + +interface Coordinates { + readonly accuracy: number; + readonly altitude: number | null; + readonly altitudeAccuracy: number | null; + readonly heading: number | null; + readonly latitude: number; + readonly longitude: number; + readonly speed: number | null; +} + +interface CountQueuingStrategy extends QueuingStrategy { + highWaterMark: number; + size(chunk: any): 1; +} + +declare var CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new(options: { highWaterMark: number }): CountQueuingStrategy; +}; + +interface Crypto { + readonly subtle: SubtleCrypto; + getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T; +} + +declare var Crypto: { + prototype: Crypto; + new(): Crypto; +}; + +interface CryptoKey { + readonly algorithm: KeyAlgorithm; + readonly extractable: boolean; + readonly type: KeyType; + readonly usages: KeyUsage[]; +} + +declare var CryptoKey: { + prototype: CryptoKey; + new(): CryptoKey; +}; + +interface CryptoKeyPair { + privateKey: CryptoKey; + publicKey: CryptoKey; +} + +declare var CryptoKeyPair: { + prototype: CryptoKeyPair; + new(): CryptoKeyPair; +}; + +interface CustomElementRegistry { + define(name: string, constructor: Function, options?: ElementDefinitionOptions): void; + get(name: string): any; + upgrade(root: Node): void; + whenDefined(name: string): Promise<void>; +} + +declare var CustomElementRegistry: { + prototype: CustomElementRegistry; + new(): CustomElementRegistry; +}; + +interface CustomEvent<T = any> extends Event { + /** + * Returns any custom data event was created with. + * Typically used for synthetic events. + */ + readonly detail: T; + initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void; +} + +declare var CustomEvent: { + prototype: CustomEvent; + new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; +}; + +interface DOMError { + readonly name: string; + toString(): string; +} + +declare var DOMError: { + prototype: DOMError; + new(): DOMError; +}; + +interface DOMException { + readonly code: number; + readonly message: string; + readonly name: string; + readonly ABORT_ERR: number; + readonly DATA_CLONE_ERR: number; + readonly DOMSTRING_SIZE_ERR: number; + readonly HIERARCHY_REQUEST_ERR: number; + readonly INDEX_SIZE_ERR: number; + readonly INUSE_ATTRIBUTE_ERR: number; + readonly INVALID_ACCESS_ERR: number; + readonly INVALID_CHARACTER_ERR: number; + readonly INVALID_MODIFICATION_ERR: number; + readonly INVALID_NODE_TYPE_ERR: number; + readonly INVALID_STATE_ERR: number; + readonly NAMESPACE_ERR: number; + readonly NETWORK_ERR: number; + readonly NOT_FOUND_ERR: number; + readonly NOT_SUPPORTED_ERR: number; + readonly NO_DATA_ALLOWED_ERR: number; + readonly NO_MODIFICATION_ALLOWED_ERR: number; + readonly QUOTA_EXCEEDED_ERR: number; + readonly SECURITY_ERR: number; + readonly SYNTAX_ERR: number; + readonly TIMEOUT_ERR: number; + readonly TYPE_MISMATCH_ERR: number; + readonly URL_MISMATCH_ERR: number; + readonly VALIDATION_ERR: number; + readonly WRONG_DOCUMENT_ERR: number; +} + +declare var DOMException: { + prototype: DOMException; + new(message?: string, name?: string): DOMException; + readonly ABORT_ERR: number; + readonly DATA_CLONE_ERR: number; + readonly DOMSTRING_SIZE_ERR: number; + readonly HIERARCHY_REQUEST_ERR: number; + readonly INDEX_SIZE_ERR: number; + readonly INUSE_ATTRIBUTE_ERR: number; + readonly INVALID_ACCESS_ERR: number; + readonly INVALID_CHARACTER_ERR: number; + readonly INVALID_MODIFICATION_ERR: number; + readonly INVALID_NODE_TYPE_ERR: number; + readonly INVALID_STATE_ERR: number; + readonly NAMESPACE_ERR: number; + readonly NETWORK_ERR: number; + readonly NOT_FOUND_ERR: number; + readonly NOT_SUPPORTED_ERR: number; + readonly NO_DATA_ALLOWED_ERR: number; + readonly NO_MODIFICATION_ALLOWED_ERR: number; + readonly QUOTA_EXCEEDED_ERR: number; + readonly SECURITY_ERR: number; + readonly SYNTAX_ERR: number; + readonly TIMEOUT_ERR: number; + readonly TYPE_MISMATCH_ERR: number; + readonly URL_MISMATCH_ERR: number; + readonly VALIDATION_ERR: number; + readonly WRONG_DOCUMENT_ERR: number; +}; + +interface DOMImplementation { + createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document; + createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; + createHTMLDocument(title?: string): Document; + /** @deprecated */ + hasFeature(...args: any[]): true; +} + +declare var DOMImplementation: { + prototype: DOMImplementation; + new(): DOMImplementation; +}; + +interface DOML2DeprecatedColorProperty { + color: string; +} + +interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + invertSelf(): DOMMatrix; + multiplySelf(other?: DOMMatrixInit): DOMMatrix; + preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; + rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + setMatrixValue(transformList: string): DOMMatrix; + skewXSelf(sx?: number): DOMMatrix; + skewYSelf(sy?: number): DOMMatrix; + translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; +} + +declare var DOMMatrix: { + prototype: DOMMatrix; + new(init?: string | number[]): DOMMatrix; + fromFloat32Array(array32: Float32Array): DOMMatrix; + fromFloat64Array(array64: Float64Array): DOMMatrix; + fromMatrix(other?: DOMMatrixInit): DOMMatrix; +}; + +type SVGMatrix = DOMMatrix; +declare var SVGMatrix: typeof DOMMatrix; + +type WebKitCSSMatrix = DOMMatrix; +declare var WebKitCSSMatrix: typeof DOMMatrix; + +interface DOMMatrixReadOnly { + readonly a: number; + readonly b: number; + readonly c: number; + readonly d: number; + readonly e: number; + readonly f: number; + readonly is2D: boolean; + readonly isIdentity: boolean; + readonly m11: number; + readonly m12: number; + readonly m13: number; + readonly m14: number; + readonly m21: number; + readonly m22: number; + readonly m23: number; + readonly m24: number; + readonly m31: number; + readonly m32: number; + readonly m33: number; + readonly m34: number; + readonly m41: number; + readonly m42: number; + readonly m43: number; + readonly m44: number; + flipX(): DOMMatrix; + flipY(): DOMMatrix; + inverse(): DOMMatrix; + multiply(other?: DOMMatrixInit): DOMMatrix; + rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVector(x?: number, y?: number): DOMMatrix; + scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + 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 DOMParser { + parseFromString(str: string, type: SupportedType): Document; +} + +declare var DOMParser: { + prototype: DOMParser; + new(): DOMParser; +}; + +interface DOMPoint extends DOMPointReadOnly { + w: number; + x: number; + y: number; + z: number; +} + +declare var DOMPoint: { + prototype: DOMPoint; + new(x?: number, y?: number, z?: number, w?: number): DOMPoint; + fromPoint(other?: DOMPointInit): DOMPoint; +}; + +type SVGPoint = DOMPoint; +declare var SVGPoint: typeof DOMPoint; + +interface DOMPointReadOnly { + readonly w: number; + readonly x: number; + readonly y: number; + readonly z: number; + matrixTransform(matrix?: DOMMatrixInit): DOMPoint; + toJSON(): any; +} + +declare var DOMPointReadOnly: { + prototype: DOMPointReadOnly; + new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; + fromPoint(other?: DOMPointInit): DOMPointReadOnly; +}; + +interface DOMQuad { + readonly p1: DOMPoint; + readonly p2: DOMPoint; + readonly p3: DOMPoint; + readonly p4: DOMPoint; + getBounds(): DOMRect; + toJSON(): any; +} + +declare var DOMQuad: { + prototype: DOMQuad; + new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; + fromQuad(other?: DOMQuadInit): DOMQuad; + fromRect(other?: DOMRectInit): DOMQuad; +}; + +interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; +} + +declare var DOMRect: { + prototype: DOMRect; + new(x?: number, y?: number, width?: number, height?: number): DOMRect; + fromRect(other?: DOMRectInit): DOMRect; +}; + +type SVGRect = DOMRect; +declare var SVGRect: typeof DOMRect; + +interface DOMRectList { + readonly length: number; + item(index: number): DOMRect | null; + [index: number]: DOMRect; +} + +declare var DOMRectList: { + prototype: DOMRectList; + new(): DOMRectList; +}; + +interface DOMRectReadOnly { + readonly bottom: number; + readonly height: number; + readonly left: number; + readonly right: number; + readonly top: number; + readonly width: number; + readonly x: number; + readonly y: number; + toJSON(): any; +} + +declare var DOMRectReadOnly: { + prototype: DOMRectReadOnly; + new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; + fromRect(other?: DOMRectInit): DOMRectReadOnly; +}; + +interface DOMSettableTokenList extends DOMTokenList { + value: string; +} + +declare var DOMSettableTokenList: { + prototype: DOMSettableTokenList; + new(): DOMSettableTokenList; +}; + +interface DOMStringList { + /** + * Returns the number of strings in strings. + */ + readonly length: number; + /** + * Returns true if strings contains string, and false + * otherwise. + */ + contains(string: string): boolean; + /** + * Returns the string with index index from strings. + */ + item(index: number): string | null; + [index: number]: string; +} + +declare var DOMStringList: { + prototype: DOMStringList; + new(): DOMStringList; +}; + +interface DOMStringMap { + [name: string]: string | undefined; +} + +declare var DOMStringMap: { + prototype: DOMStringMap; + new(): DOMStringMap; +}; + +interface DOMTokenList { + /** + * Returns the number of tokens. + */ + readonly length: number; + /** + * Returns the associated set as string. + * Can be set, to change the associated attribute. + */ + value: string; + /** + * Adds all arguments passed, except those already present. + * Throws a "SyntaxError" DOMException if one of the arguments is the empty + * string. + * Throws an "InvalidCharacterError" DOMException if one of the arguments + * contains any ASCII whitespace. + */ + add(...tokens: string[]): void; + /** + * Returns true if token is present, and false otherwise. + */ + contains(token: string): boolean; + /** + * tokenlist[index] + */ + item(index: number): string | null; + /** + * Removes arguments passed, if they are present. + * Throws a "SyntaxError" DOMException if one of the arguments is the empty + * string. + * Throws an "InvalidCharacterError" DOMException if one of the arguments + * contains any ASCII whitespace. + */ + remove(...tokens: string[]): void; + /** + * Replaces token with newToken. + * Returns true if token was replaced with newToken, and false otherwise. + * Throws a "SyntaxError" DOMException if one of the arguments is the empty + * string. + * Throws an "InvalidCharacterError" DOMException if one of the arguments + * contains any ASCII whitespace. + */ + replace(oldToken: string, newToken: string): void; + /** + * Returns true if token is in the associated attribute's supported tokens. Returns + * false otherwise. + * Throws a TypeError if the associated attribute has no supported tokens defined. + */ + supports(token: string): boolean; + toggle(token: string, force?: boolean): boolean; + forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; + [index: number]: string; +} + +declare var DOMTokenList: { + prototype: DOMTokenList; + new(): DOMTokenList; +}; + +interface DataCue extends TextTrackCue { + data: ArrayBuffer; + addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var DataCue: { + prototype: DataCue; + new(): DataCue; +}; + +interface DataTransfer { + dropEffect: string; + effectAllowed: string; + /** + * Returns a FileList of the files being dragged, if any. + */ + readonly files: FileList; + /** + * Returns a DataTransferItemList object, with the drag data. + */ + readonly items: DataTransferItemList; + /** + * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being + * dragged, then one of the types will be the string "Files". + */ + readonly types: ReadonlyArray<string>; + /** + * Removes the data of the specified formats. Removes all data if the argument is omitted. + */ + clearData(format?: string): void; + /** + * Returns the specified data. If there is no such data, returns the empty string. + */ + getData(format: string): string; + /** + * Adds the specified data. + */ + setData(format: string, data: string): void; + /** + * Uses the given element to update the drag feedback, replacing any previously specified + * feedback. + */ + setDragImage(image: Element, x: number, y: number): void; +} + +declare var DataTransfer: { + prototype: DataTransfer; + new(): DataTransfer; +}; + +interface DataTransferItem { + /** + * Returns the drag data item kind, one of: "string", + * "file". + */ + readonly kind: string; + /** + * Returns the drag data item type string. + */ + readonly type: string; + /** + * Returns a File object, if the drag data item kind is File. + */ + getAsFile(): File | null; + /** + * Invokes the callback with the string data as the argument, if the drag data item + * kind is Plain Unicode string. + */ + getAsString(callback: FunctionStringCallback | null): void; + webkitGetAsEntry(): any; +} + +declare var DataTransferItem: { + prototype: DataTransferItem; + new(): DataTransferItem; +}; + +interface DataTransferItemList { + /** + * Returns the number of items in the drag data store. + */ + readonly length: number; + /** + * Adds a new entry for the given data to the drag data store. If the data is plain + * text then a type string has to be provided + * also. + */ + add(data: string, type: string): DataTransferItem | null; + add(data: File): DataTransferItem | null; + /** + * Removes all the entries in the drag data store. + */ + clear(): void; + item(index: number): DataTransferItem; + /** + * Removes the indexth entry in the drag data store. + */ + remove(index: number): void; + [name: number]: DataTransferItem; +} + +declare var DataTransferItemList: { + prototype: DataTransferItemList; + new(): DataTransferItemList; +}; + +interface DeferredPermissionRequest { + readonly id: number; + readonly type: MSWebViewPermissionType; + readonly uri: string; + allow(): void; + deny(): void; +} + +declare var DeferredPermissionRequest: { + prototype: DeferredPermissionRequest; + new(): DeferredPermissionRequest; +}; + +interface DelayNode extends AudioNode { + readonly delayTime: AudioParam; +} + +declare var DelayNode: { + prototype: DelayNode; + new(context: BaseAudioContext, options?: DelayOptions): DelayNode; +}; + +interface DeviceAcceleration { + readonly x: number | null; + readonly y: number | null; + readonly z: number | null; +} + +declare var DeviceAcceleration: { + prototype: DeviceAcceleration; + new(): DeviceAcceleration; +}; + +interface DeviceLightEvent extends Event { + readonly value: number; +} + +declare var DeviceLightEvent: { + prototype: DeviceLightEvent; + new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent; +}; + +interface DeviceMotionEvent extends Event { + readonly acceleration: DeviceAcceleration | null; + readonly accelerationIncludingGravity: DeviceAcceleration | null; + readonly interval: number | null; + readonly rotationRate: DeviceRotationRate | null; + initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void; +} + +declare var DeviceMotionEvent: { + prototype: DeviceMotionEvent; + new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; +}; + +interface DeviceOrientationEvent extends Event { + readonly absolute: boolean; + readonly alpha: number | null; + readonly beta: number | null; + readonly gamma: number | null; + initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void; +} + +declare var DeviceOrientationEvent: { + prototype: DeviceOrientationEvent; + new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; +}; + +interface DeviceRotationRate { + readonly alpha: number | null; + readonly beta: number | null; + readonly gamma: number | null; +} + +declare var DeviceRotationRate: { + prototype: DeviceRotationRate; + new(): DeviceRotationRate; +}; + +interface DhImportKeyParams extends Algorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface DhKeyAlgorithm extends KeyAlgorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface DhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface DhKeyGenParams extends Algorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap { + "fullscreenchange": Event; + "fullscreenerror": Event; + "readystatechange": ProgressEvent; + "visibilitychange": Event; +} + +interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, ParentNode, GlobalEventHandlers, DocumentAndElementEventHandlers { + /** + * Sets or gets the URL for the current document. + */ + readonly URL: string; + /** + * Gets the object that has the focus when the parent document has focus. + */ + readonly activeElement: Element | null; + /** + * Sets or gets the color of all active links in the document. + */ + /** @deprecated */ + alinkColor: string; + /** + * Returns a reference to the collection of elements contained by the object. + */ + /** @deprecated */ + readonly all: HTMLAllCollection; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + */ + /** @deprecated */ + readonly anchors: HTMLCollectionOf<HTMLAnchorElement>; + /** + * Retrieves a collection of all applet objects in the document. + */ + /** @deprecated */ + readonly applets: HTMLCollectionOf<HTMLAppletElement>; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + */ + /** @deprecated */ + bgColor: string; + /** + * Specifies the beginning and end of the document body. + */ + body: HTMLElement; + /** + * Returns document's encoding. + */ + readonly characterSet: string; + /** + * Gets or sets the character set used to encode the object. + */ + readonly charset: string; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + */ + readonly compatMode: string; + /** + * Returns document's content type. + */ + readonly contentType: string; + /** + * Returns the HTTP cookies that apply to the Document. If there are no cookies or + * cookies can't be applied to this resource, the empty string will be returned. + * Can be set, to add a new cookie to the element's set of HTTP cookies. + * If the contents are sandboxed into a + * unique origin (e.g. in an iframe with the sandbox attribute), a + * "SecurityError" DOMException will be thrown on getting + * and setting. + */ + cookie: string; + /** + * Returns the script element, or the SVG script element, + * that is currently executing, as long as the element represents a classic script. + * In the case of reentrant script execution, returns the one that most recently started executing + * amongst those that have not yet finished executing. + * Returns null if the Document is not currently executing a script + * or SVG script element (e.g., because the running script is an event + * handler, or a timeout), or if the currently executing script or SVG + * script element represents a module script. + */ + readonly currentScript: HTMLOrSVGScriptElement | null; + readonly defaultView: WindowProxy | null; + /** + * Sets or gets a value that indicates whether the document can be edited. + */ + designMode: string; + /** + * Sets or retrieves a value that indicates the reading order of the object. + */ + dir: string; + /** + * Gets an object representing the document type declaration associated with the current document. + */ + readonly doctype: DocumentType | null; + /** + * Gets a reference to the root node of the document. + */ + readonly documentElement: HTMLElement; + /** + * Returns document's URL. + */ + readonly documentURI: string; + /** + * Sets or gets the security domain of the document. + */ + domain: string; + /** + * Retrieves a collection of all embed objects in the document. + */ + readonly embeds: HTMLCollectionOf<HTMLEmbedElement>; + /** + * Sets or gets the foreground (text) color of the document. + */ + /** @deprecated */ + fgColor: string; + /** + * Retrieves a collection, in source order, of all form objects in the document. + */ + readonly forms: HTMLCollectionOf<HTMLFormElement>; + /** @deprecated */ + readonly fullscreen: boolean; + /** + * Returns true if document has the ability to display elements fullscreen + * and fullscreen is supported, or false otherwise. + */ + readonly fullscreenEnabled: boolean; + /** + * Returns the head element. + */ + readonly head: HTMLHeadElement; + readonly hidden: boolean; + /** + * Retrieves a collection, in source order, of img objects in the document. + */ + readonly images: HTMLCollectionOf<HTMLImageElement>; + /** + * Gets the implementation object of the current document. + */ + readonly implementation: DOMImplementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + */ + readonly inputEncoding: string; + /** + * Gets the date that the page was last modified, if the page supplies one. + */ + readonly lastModified: string; + /** + * Sets or gets the color of the document links. + */ + /** @deprecated */ + linkColor: string; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + */ + readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>; + /** + * Contains information about the current URL. + */ + location: Location; + onfullscreenchange: ((this: Document, ev: Event) => any) | null; + onfullscreenerror: ((this: Document, ev: Event) => any) | null; + /** + * Fires when the state of the object has changed. + * @param ev The event + */ + onreadystatechange: ((this: Document, ev: ProgressEvent) => any) | null; + onvisibilitychange: ((this: Document, ev: Event) => any) | null; + /** + * Returns document's origin. + */ + readonly origin: string; + /** + * Return an HTMLCollection of the embed elements in the Document. + */ + readonly plugins: HTMLCollectionOf<HTMLEmbedElement>; + /** + * Retrieves a value that indicates the current state of the object. + */ + readonly readyState: DocumentReadyState; + /** + * Gets the URL of the location that referred the user to the current page. + */ + readonly referrer: string; + /** + * Retrieves a collection of all script objects in the document. + */ + readonly scripts: HTMLCollectionOf<HTMLScriptElement>; + readonly scrollingElement: Element | null; + readonly timeline: DocumentTimeline; + /** + * Contains the title of the document. + */ + title: string; + readonly visibilityState: VisibilityState; + /** + * Sets or gets the color of the links that the user has visited. + */ + /** @deprecated */ + vlinkColor: string; + /** + * Moves node from another document and returns it. + * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a + * "HierarchyRequestError" DOMException. + */ + adoptNode<T extends Node>(source: T): T; + /** @deprecated */ + captureEvents(): void; + caretPositionFromPoint(x: number, y: number): CaretPosition | null; + /** @deprecated */ + caretRangeFromPoint(x: number, y: number): Range; + /** @deprecated */ + clear(): void; + /** + * Closes an output stream and forces the sent data to display. + */ + close(): void; + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + */ + createAttribute(localName: string): Attr; + createAttributeNS(namespace: string | null, qualifiedName: string): Attr; + /** + * Returns a CDATASection node whose data is data. + */ + createCDATASection(data: string): CDATASection; + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + */ + createComment(data: string): Comment; + /** + * Creates a new document. + */ + createDocumentFragment(): DocumentFragment; + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + */ + createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; + /** @deprecated */ + createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; + createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; + /** + * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after + * ":" (U+003E) in qualifiedName or qualifiedName. + * If localName does not match the Name production an + * "InvalidCharacterError" DOMException will be thrown. + * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: + * localName does not match the QName production. + * Namespace prefix is not null and namespace is the empty string. + * Namespace prefix is "xml" and namespace is not the XML namespace. + * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. + * namespace is the XMLNS namespace and + * neither qualifiedName nor namespace prefix is "xmlns". + * When supplied, options's is can be used to create a customized built-in element. + */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "cursor"): SVGCursorElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; + createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; + createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; + createEvent(eventInterface: "AnimationEvent"): AnimationEvent; + createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; + createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent(eventInterface: "CustomEvent"): CustomEvent; + createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent; + createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface: "DragEvent"): DragEvent; + createEvent(eventInterface: "ErrorEvent"): ErrorEvent; + createEvent(eventInterface: "Event"): Event; + createEvent(eventInterface: "Events"): Event; + createEvent(eventInterface: "FocusEvent"): FocusEvent; + createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent; + createEvent(eventInterface: "GamepadEvent"): GamepadEvent; + createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent; + createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent; + createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent; + createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent; + createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent; + createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; + createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; + createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; + createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent; + createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent; + createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; + createEvent(eventInterface: "MessageEvent"): MessageEvent; + createEvent(eventInterface: "MouseEvent"): MouseEvent; + createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent(eventInterface: "MutationEvent"): MutationEvent; + createEvent(eventInterface: "MutationEvents"): MutationEvent; + createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; + createEvent(eventInterface: "OverflowEvent"): OverflowEvent; + createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; + createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; + createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent; + createEvent(eventInterface: "PointerEvent"): PointerEvent; + createEvent(eventInterface: "PopStateEvent"): PopStateEvent; + createEvent(eventInterface: "ProgressEvent"): ProgressEvent; + createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; + createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; + createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; + createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent; + createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; + createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent; + createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent; + createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent; + createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; + createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent; + createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent; + createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; + createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent; + createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent; + createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent; + createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError; + createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; + createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; + createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; + createEvent(eventInterface: "StorageEvent"): StorageEvent; + createEvent(eventInterface: "TextEvent"): TextEvent; + createEvent(eventInterface: "TouchEvent"): TouchEvent; + createEvent(eventInterface: "TrackEvent"): TrackEvent; + createEvent(eventInterface: "TransitionEvent"): TransitionEvent; + createEvent(eventInterface: "UIEvent"): UIEvent; + createEvent(eventInterface: "UIEvents"): UIEvent; + createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent; + createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ; + createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface: "WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; + /** + * Returns a ProcessingInstruction node whose target is target and data is data. + * If target does not match the Name production an + * "InvalidCharacterError" DOMException will be thrown. + * If data contains "?>" an + * "InvalidCharacterError" DOMException will be thrown. + */ + createProcessingInstruction(target: string, data: string): ProcessingInstruction; + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + */ + createRange(): Range; + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + */ + createTextNode(data: string): Text; + createTouch(view: WindowProxy, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch; + createTouchList(...touches: Touch[]): TouchList; + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. + */ + createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; + /** @deprecated */ + createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker; + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + elementFromPoint(x: number, y: number): Element | null; + elementsFromPoint(x: number, y: number): Element[]; + evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | null, type: number, result: XPathResult | null): XPathResult; + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + */ + execCommand(commandId: string, showUI?: boolean, value?: string): boolean; + /** + * Stops document's fullscreen element from being displayed fullscreen and + * resolves promise when done. + */ + exitFullscreen(): Promise<void>; + getAnimations(): Animation[]; + /** + * Returns a reference to the first object with the specified value of the ID or NAME attribute. + * @param elementId String that specifies the ID value. Case-insensitive. + */ + getElementById(elementId: string): HTMLElement | null; + /** + * collection = element . getElementsByClassName(classNames) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + */ + getElementsByName(elementName: string): NodeListOf<HTMLElement>; + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + */ + getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; + getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; + /** + * If namespace and localName are + * "*" returns a HTMLCollection of all descendant elements. + * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. + * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. + * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. + */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; + getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>; + /** + * Gets a value indicating whether the object currently has focus. + */ + hasFocus(): boolean; + importNode<T extends Node>(importedNode: T, deep: boolean): T; + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + */ + open(url?: string, name?: string, features?: string, replace?: boolean): Document; + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + */ + queryCommandEnabled(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + */ + queryCommandIndeterm(commandId: string): boolean; + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + */ + queryCommandState(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + */ + queryCommandSupported(commandId: string): boolean; + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + */ + queryCommandValue(commandId: string): string; + /** @deprecated */ + releaseEvents(): void; + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + */ + write(...text: string[]): void; + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + */ + writeln(...text: string[]): void; + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + */ + addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Document: { + prototype: Document; + new(): Document; +}; + +interface DocumentAndElementEventHandlersEventMap { + "copy": ClipboardEvent; + "cut": ClipboardEvent; + "paste": ClipboardEvent; +} + +interface DocumentAndElementEventHandlers { + oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null; + oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null; + onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null; + addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface DocumentEvent { + createEvent(eventInterface: "AnimationEvent"): AnimationEvent; + createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; + createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent(eventInterface: "CustomEvent"): CustomEvent; + createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent; + createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface: "DragEvent"): DragEvent; + createEvent(eventInterface: "ErrorEvent"): ErrorEvent; + createEvent(eventInterface: "Event"): Event; + createEvent(eventInterface: "Events"): Event; + createEvent(eventInterface: "FocusEvent"): FocusEvent; + createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent; + createEvent(eventInterface: "GamepadEvent"): GamepadEvent; + createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent; + createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent; + createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent; + createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent; + createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent; + createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; + createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; + createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; + createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent; + createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent; + createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; + createEvent(eventInterface: "MessageEvent"): MessageEvent; + createEvent(eventInterface: "MouseEvent"): MouseEvent; + createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent(eventInterface: "MutationEvent"): MutationEvent; + createEvent(eventInterface: "MutationEvents"): MutationEvent; + createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; + createEvent(eventInterface: "OverflowEvent"): OverflowEvent; + createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; + createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; + createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent; + createEvent(eventInterface: "PointerEvent"): PointerEvent; + createEvent(eventInterface: "PopStateEvent"): PopStateEvent; + createEvent(eventInterface: "ProgressEvent"): ProgressEvent; + createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; + createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; + createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; + createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent; + createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; + createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent; + createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent; + createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent; + createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; + createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent; + createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent; + createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; + createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent; + createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent; + createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent; + createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError; + createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; + createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; + createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; + createEvent(eventInterface: "StorageEvent"): StorageEvent; + createEvent(eventInterface: "TextEvent"): TextEvent; + createEvent(eventInterface: "TouchEvent"): TouchEvent; + createEvent(eventInterface: "TrackEvent"): TrackEvent; + createEvent(eventInterface: "TransitionEvent"): TransitionEvent; + createEvent(eventInterface: "UIEvent"): UIEvent; + createEvent(eventInterface: "UIEvents"): UIEvent; + createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent; + createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ; + createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface: "WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; +} + +interface DocumentFragment extends Node, NonElementParentNode, ParentNode { + getElementById(elementId: string): HTMLElement | null; +} + +declare var DocumentFragment: { + prototype: DocumentFragment; + new(): DocumentFragment; +}; + +interface DocumentOrShadowRoot { + readonly activeElement: Element | null; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + */ + readonly styleSheets: StyleSheetList; + caretPositionFromPoint(x: number, y: number): CaretPosition | null; + /** @deprecated */ + caretRangeFromPoint(x: number, y: number): Range; + elementFromPoint(x: number, y: number): Element | null; + elementsFromPoint(x: number, y: number): Element[]; + getSelection(): Selection | null; +} + +interface DocumentTimeline extends AnimationTimeline { +} + +declare var DocumentTimeline: { + prototype: DocumentTimeline; + new(options?: DocumentTimelineOptions): DocumentTimeline; +}; + +interface DocumentType extends Node, ChildNode { + readonly name: string; + readonly publicId: string; + readonly systemId: string; +} + +declare var DocumentType: { + prototype: DocumentType; + new(): DocumentType; +}; + +interface DragEvent extends MouseEvent { + /** + * Returns the DataTransfer object for the event. + */ + readonly dataTransfer: DataTransfer | null; +} + +declare var DragEvent: { + prototype: DragEvent; + new(type: string, eventInitDict?: DragEventInit): DragEvent; +}; + +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_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_filter_anisotropic { + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum; + readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum; +} + +interface ElementEventMap { + "fullscreenchange": Event; + "fullscreenerror": Event; +} + +interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, Animatable { + readonly assignedSlot: HTMLSlotElement | null; + readonly attributes: NamedNodeMap; + /** + * Allows for manipulation of element's class content attribute as a + * set of whitespace-separated tokens through a DOMTokenList object. + */ + readonly classList: DOMTokenList; + /** + * Returns the value of element's class content attribute. Can be set + * to change it. + */ + className: string; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + /** + * Returns the value of element's id content attribute. Can be set to + * change it. + */ + id: string; + innerHTML: string; + /** + * Returns the local name. + */ + readonly localName: string; + /** + * Returns the namespace. + */ + readonly namespaceURI: string | null; + onfullscreenchange: ((this: Element, ev: Event) => any) | null; + onfullscreenerror: ((this: Element, ev: Event) => any) | null; + outerHTML: string; + /** + * Returns the namespace prefix. + */ + readonly prefix: string | null; + readonly scrollHeight: number; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + /** + * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the value of element's slot content attribute. Can be set to + * change it. + */ + slot: string; + /** + * Returns the HTML-uppercased qualified name. + */ + readonly tagName: string; + /** + * Creates a shadow root for element and returns it. + */ + attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot; + /** + * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. + */ + closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null; + closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null; + closest(selector: string): Element | null; + /** + * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. + */ + getAttribute(qualifiedName: string): string | null; + /** + * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is + * no such attribute otherwise. + */ + getAttributeNS(namespace: string | null, localName: string): string | null; + /** + * Returns the qualified names of all element's attributes. + * Can contain duplicates. + */ + getAttributeNames(): string[]; + getAttributeNode(name: string): Attr | null; + getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null; + getBoundingClientRect(): ClientRect | DOMRect; + getClientRects(): ClientRectList | DOMRectList; + getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; + getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; + getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; + getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>; + /** + * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. + */ + hasAttribute(qualifiedName: string): boolean; + /** + * Returns true if element has an attribute whose namespace is namespace and local name is localName. + */ + hasAttributeNS(namespace: string | null, localName: string): boolean; + /** + * Returns true if element has attributes, and false otherwise. + */ + hasAttributes(): boolean; + hasPointerCapture(pointerId: number): boolean; + insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null; + insertAdjacentHTML(where: InsertPosition, html: string): void; + insertAdjacentText(where: InsertPosition, text: string): void; + /** + * Returns true if matching selectors against element's root yields element, and false otherwise. + */ + matches(selectors: string): boolean; + msGetRegionContent(): any; + releasePointerCapture(pointerId: number): void; + /** + * Removes element's first attribute whose qualified name is qualifiedName. + */ + removeAttribute(qualifiedName: string): void; + /** + * Removes element's attribute whose namespace is namespace and local name is localName. + */ + removeAttributeNS(namespace: string | null, localName: string): void; + removeAttributeNode(attr: Attr): Attr; + /** + * Displays element fullscreen and resolves promise when done. + */ + requestFullscreen(): Promise<void>; + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Sets the value of element's first attribute whose qualified name is qualifiedName to value. + */ + setAttribute(qualifiedName: string, value: string): void; + /** + * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. + */ + setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; + setAttributeNode(attr: Attr): Attr | null; + setAttributeNodeNS(attr: Attr): Attr | null; + setPointerCapture(pointerId: number): void; + /** + * If force is not given, "toggles" qualifiedName, removing it if it is + * present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. + * Returns true if qualifiedName is now present, and false otherwise. + */ + toggleAttribute(qualifiedName: string, force?: boolean): boolean; + webkitMatchesSelector(selectors: string): boolean; + addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Element: { + prototype: Element; + new(): Element; +}; + +interface ElementCSSInlineStyle { + readonly style: CSSStyleDeclaration; +} + +interface ElementContentEditable { + contentEditable: string; + inputMode: string; + readonly isContentEditable: boolean; +} + +interface ElementCreationOptions { + is?: string; +} + +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 { + /** + * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. + */ + readonly bubbles: boolean; + cancelBubble: boolean; + readonly cancelable: boolean; + /** + * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. + */ + readonly composed: boolean; + /** + * Returns the object whose event listener's callback is currently being + * invoked. + */ + readonly currentTarget: EventTarget | null; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + /** + * Returns true if event was dispatched by the user agent, and + * false otherwise. + */ + readonly isTrusted: boolean; + returnValue: boolean; + /** @deprecated */ + readonly srcElement: Element | null; + /** + * Returns the object to which event is dispatched (its target). + */ + readonly target: EventTarget | null; + /** + * Returns the event's timestamp as the number of milliseconds measured relative to + * the time origin. + */ + readonly timeStamp: number; + /** + * Returns the type of event, e.g. + * "click", "hashchange", or + * "submit". + */ + readonly type: string; + composedPath(): EventTarget[]; + initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; + preventDefault(): void; + /** + * Invoking this method prevents event from reaching + * any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any + * other objects. + */ + stopImmediatePropagation(): void; + /** + * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. + */ + stopPropagation(): void; + readonly AT_TARGET: number; + readonly BUBBLING_PHASE: number; + readonly CAPTURING_PHASE: number; + readonly NONE: number; +} + +declare var Event: { + prototype: Event; + new(type: string, eventInitDict?: EventInit): Event; + readonly AT_TARGET: number; + readonly BUBBLING_PHASE: number; + readonly CAPTURING_PHASE: number; + readonly NONE: number; +}; + +interface EventListenerObject { + handleEvent(evt: Event): void; +} + +interface EventSource extends EventTarget { + readonly CLOSED: number; + readonly CONNECTING: number; + readonly OPEN: number; + onerror: (evt: MessageEvent) => any; + onmessage: (evt: MessageEvent) => any; + onopen: (evt: MessageEvent) => any; + readonly readyState: number; + readonly url: string; + readonly withCredentials: boolean; + close(): void; +} + +declare var EventSource: { + prototype: EventSource; + new(url: string, eventSourceInitDict?: EventSourceInit): EventSource; +}; + +interface EventSourceInit { + readonly withCredentials: boolean; +} + +interface EventTarget { + /** + * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. + * The options argument sets listener-specific options. For compatibility this can be a + * boolean, in which case the method behaves exactly as if the value was specified as options's capture. + * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. + * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners. + * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will + * be removed. + * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. + */ + addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void; + /** + * Dispatches a synthetic event event to target and returns true + * if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + */ + dispatchEvent(event: Event): boolean; + /** + * Removes the event listener in target's event listener list with the same type, callback, and options. + */ + removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; +} + +declare var EventTarget: { + prototype: EventTarget; + new(): EventTarget; +}; + +interface ExtensionScriptApis { + extensionIdToShortId(extensionId: string): number; + fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void; + genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void; + genericSynchronousFunction(functionId: number, parameters?: string): string; + genericWebRuntimeCallout(to: any, from: any, payload: string): void; + getExtensionId(): string; + registerGenericFunctionCallbackHandler(callbackHandler: Function): void; + registerGenericPersistentCallbackHandler(callbackHandler: Function): void; + registerWebRuntimeCallbackHandler(handler: Function): any; +} + +declare var ExtensionScriptApis: { + prototype: ExtensionScriptApis; + new(): ExtensionScriptApis; +}; + +interface External { + /** @deprecated */ + AddSearchProvider(): void; + /** @deprecated */ + IsSearchProviderInstalled(): void; +} + +interface File extends Blob { + readonly lastModified: number; + readonly name: 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<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FileReader: { + prototype: FileReader; + new(): FileReader; + readonly DONE: number; + readonly EMPTY: number; + readonly LOADING: number; +}; + +interface FocusEvent extends UIEvent { + readonly relatedTarget: EventTarget; + initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; +} + +declare var FocusEvent: { + prototype: FocusEvent; + new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; +}; + +interface FocusNavigationEvent extends Event { + readonly navigationReason: NavigationReason; + readonly originHeight: number; + readonly originLeft: number; + readonly originTop: number; + readonly originWidth: number; + requestFocus(): void; +} + +declare var FocusNavigationEvent: { + prototype: FocusNavigationEvent; + new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent; +}; + +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 GainNode extends AudioNode { + readonly gain: AudioParam; +} + +declare var GainNode: { + prototype: GainNode; + new(context: BaseAudioContext, options?: GainOptions): GainNode; +}; + +interface Gamepad { + readonly axes: number[]; + readonly buttons: GamepadButton[]; + readonly connected: boolean; + readonly displayId: number; + readonly hand: GamepadHand; + readonly hapticActuators: GamepadHapticActuator[]; + readonly id: string; + readonly index: number; + readonly mapping: GamepadMappingType; + readonly pose: GamepadPose | null; + readonly timestamp: number; +} + +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(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent; +}; + +interface GamepadHapticActuator { + readonly type: GamepadHapticActuatorType; + pulse(value: number, duration: number): Promise<boolean>; +} + +declare var GamepadHapticActuator: { + prototype: GamepadHapticActuator; + new(): GamepadHapticActuator; +}; + +interface GamepadPose { + readonly angularAcceleration: Float32Array | null; + readonly angularVelocity: Float32Array | null; + readonly hasOrientation: boolean; + readonly hasPosition: boolean; + readonly linearAcceleration: Float32Array | null; + readonly linearVelocity: Float32Array | null; + readonly orientation: Float32Array | null; + readonly position: Float32Array | null; +} + +declare var GamepadPose: { + prototype: GamepadPose; + new(): GamepadPose; +}; + +interface Geolocation { + clearWatch(watchId: number): void; + getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; + watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number; +} + +interface GetSVGDocument { + getSVGDocument(): Document; +} + +interface GlobalEventHandlersEventMap { + "abort": UIEvent; + "animationcancel": AnimationEvent; + "animationend": AnimationEvent; + "animationiteration": AnimationEvent; + "animationstart": AnimationEvent; + "auxclick": Event; + "blur": FocusEvent; + "cancel": Event; + "canplay": Event; + "canplaythrough": Event; + "change": Event; + "click": MouseEvent; + "close": Event; + "contextmenu": MouseEvent; + "cuechange": Event; + "dblclick": MouseEvent; + "drag": DragEvent; + "dragend": DragEvent; + "dragenter": DragEvent; + "dragexit": Event; + "dragleave": DragEvent; + "dragover": DragEvent; + "dragstart": DragEvent; + "drop": DragEvent; + "durationchange": Event; + "emptied": Event; + "ended": Event; + "error": ErrorEvent; + "focus": FocusEvent; + "gotpointercapture": PointerEvent; + "input": Event; + "invalid": Event; + "keydown": KeyboardEvent; + "keypress": KeyboardEvent; + "keyup": KeyboardEvent; + "load": Event; + "loadeddata": Event; + "loadedmetadata": Event; + "loadend": ProgressEvent; + "loadstart": Event; + "lostpointercapture": PointerEvent; + "mousedown": MouseEvent; + "mouseenter": MouseEvent; + "mouseleave": MouseEvent; + "mousemove": MouseEvent; + "mouseout": MouseEvent; + "mouseover": MouseEvent; + "mouseup": MouseEvent; + "pause": Event; + "play": Event; + "playing": Event; + "pointercancel": PointerEvent; + "pointerdown": PointerEvent; + "pointerenter": PointerEvent; + "pointerleave": PointerEvent; + "pointermove": PointerEvent; + "pointerout": PointerEvent; + "pointerover": PointerEvent; + "pointerup": PointerEvent; + "progress": ProgressEvent; + "ratechange": Event; + "reset": Event; + "resize": UIEvent; + "scroll": UIEvent; + "securitypolicyviolation": SecurityPolicyViolationEvent; + "seeked": Event; + "seeking": Event; + "select": UIEvent; + "stalled": Event; + "submit": Event; + "suspend": Event; + "timeupdate": Event; + "toggle": Event; + "touchcancel": TouchEvent; + "touchend": TouchEvent; + "touchmove": TouchEvent; + "touchstart": TouchEvent; + "transitioncancel": TransitionEvent; + "transitionend": TransitionEvent; + "transitionrun": TransitionEvent; + "transitionstart": TransitionEvent; + "volumechange": Event; + "waiting": Event; + "wheel": WheelEvent; +} + +interface GlobalEventHandlers { + /** + * Fires when the user aborts the download. + * @param ev The event. + */ + onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + onauxclick: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + */ + onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + */ + oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + */ + onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + */ + onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + */ + oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + */ + ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + */ + ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + */ + ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + */ + ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + */ + ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + */ + ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + */ + ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + */ + ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + */ + onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the end of playback is reached. + * @param ev The event + */ + onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + */ + onerror: ErrorEventHandler; + /** + * Fires when the object receives focus. + * @param ev The event. + */ + onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; + oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + */ + onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + */ + onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + */ + onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + */ + onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + */ + onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + */ + onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onloadend: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + */ + onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + */ + onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + */ + onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + */ + onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + */ + onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + */ + onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Occurs when playback is paused. + * @param ev The event. + */ + onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the play method is requested. + * @param ev The event. + */ + onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + */ + onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + */ + onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + */ + onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user resets a form. + * @param ev The event. + */ + onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + */ + onscroll: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; + /** + * Occurs when the seek operation ends. + * @param ev The event. + */ + onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + */ + onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the current selection changes. + * @param ev The event. + */ + onselect: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** + * Occurs when the download has stopped. + * @param ev The event. + */ + onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + */ + onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + */ + ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; + ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; + ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; + ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; + ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; + ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + */ + onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + */ + onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; + onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; + addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface GlobalFetch { + fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +} + +interface HTMLAllCollection { + /** + * Returns the number of elements in the collection. + */ + readonly length: number; + /** + * element = collection(index) + */ + item(nameOrIndex?: string): HTMLCollection | Element | null; + /** + * element = collection(name) + */ + namedItem(name: string): HTMLCollection | Element | null; + [index: number]: Element; +} + +declare var HTMLAllCollection: { + prototype: HTMLAllCollection; + new(): HTMLAllCollection; +}; + +interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves the character set used to encode the object. + */ + /** @deprecated */ + charset: string; + /** + * Sets or retrieves the coordinates of the object. + */ + /** @deprecated */ + coords: string; + download: string; + /** + * Sets or retrieves the language code of the object. + */ + hreflang: string; + /** + * Sets or retrieves the shape of the object. + */ + /** @deprecated */ + name: string; + ping: string; + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rel: string; + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + /** @deprecated */ + rev: string; + /** + * Sets or retrieves the shape of the object. + */ + /** @deprecated */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAnchorElement: { + prototype: HTMLAnchorElement; + new(): HTMLAnchorElement; +}; + +interface HTMLAppletElement extends HTMLElement { + /** @deprecated */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + /** @deprecated */ + alt: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + /** @deprecated */ + archive: string; + /** @deprecated */ + code: string; + /** + * Sets or retrieves the URL of the component. + */ + /** @deprecated */ + codeBase: string; + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the height of the object. + */ + /** @deprecated */ + height: string; + /** @deprecated */ + hspace: number; + /** + * Sets or retrieves the shape of the object. + */ + /** @deprecated */ + name: string; + /** @deprecated */ + object: string; + /** @deprecated */ + vspace: number; + /** @deprecated */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAppletElement: { + prototype: HTMLAppletElement; + new(): HTMLAppletElement; +}; + +interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Sets or retrieves the coordinates of the object. + */ + coords: string; + download: string; + /** + * Sets or gets whether clicks in this region cause action. + */ + /** @deprecated */ + noHref: boolean; + ping: string; + referrerPolicy: string; + rel: string; + readonly relList: DOMTokenList; + /** + * Sets or retrieves the shape of the object. + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAreaElement: { + prototype: HTMLAreaElement; + new(): HTMLAreaElement; +}; + +interface HTMLAudioElement extends HTMLMediaElement { + addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAudioElement: { + prototype: HTMLAudioElement; + new(): HTMLAudioElement; +}; + +interface HTMLBRElement extends HTMLElement { + /** + * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. + */ + /** @deprecated */ + clear: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBRElement: { + prototype: HTMLBRElement; + new(): HTMLBRElement; +}; + +interface HTMLBaseElement extends HTMLElement { + /** + * Gets or sets the baseline URL on which relative links are based. + */ + href: string; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBaseElement: { + prototype: HTMLBaseElement; + new(): HTMLBaseElement; +}; + +interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { + /** + * Sets or retrieves the current typeface family. + */ + /** @deprecated */ + face: string; + /** + * Sets or retrieves the font size of the object. + */ + /** @deprecated */ + size: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBaseFontElement: { + prototype: HTMLBaseFontElement; + new(): HTMLBaseFontElement; +}; + +interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { + "orientationchange": Event; +} + +interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { + /** @deprecated */ + aLink: string; + /** @deprecated */ + background: string; + /** @deprecated */ + bgColor: string; + bgProperties: string; + /** @deprecated */ + link: string; + /** @deprecated */ + noWrap: boolean; + /** @deprecated */ + onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; + /** @deprecated */ + text: string; + /** @deprecated */ + vLink: string; + addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLBodyElement: { + prototype: HTMLBodyElement; + new(): HTMLBodyElement; +}; + +interface HTMLButtonElement extends HTMLElement { + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + formNoValidate: boolean; + /** + * Overrides the target attribute on a form element. + */ + formTarget: string; + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Gets the classification and default behavior of the button. + */ + type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the default or selected value of the control. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLButtonElement: { + prototype: HTMLButtonElement; + new(): HTMLButtonElement; +}; + +interface HTMLCanvasElement extends HTMLElement { + /** + * Gets or sets the height of a canvas element on a document. + */ + height: number; + /** + * Gets or sets the width of a canvas element on a document. + */ + width: number; + /** + * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. + * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); + */ + getContext(contextId: "2d", contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null; + getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null; + getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null; + toBlob(callback: BlobCallback, type?: string, quality?: any): void; + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + */ + toDataURL(type?: string, quality?: any): string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLCanvasElement: { + prototype: HTMLCanvasElement; + new(): HTMLCanvasElement; +}; + +interface HTMLCollectionBase { + /** + * Sets or retrieves the number of objects in a collection. + */ + readonly length: number; + /** + * Retrieves an object from various collections. + */ + item(index: number): Element | null; + [index: number]: Element; +} + +interface HTMLCollection extends HTMLCollectionBase { + /** + * Retrieves a select object or an object from an options collection. + */ + namedItem(name: string): Element | null; +} + +declare var HTMLCollection: { + prototype: HTMLCollection; + new(): HTMLCollection; +}; + +interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase { + item(index: number): T | null; + namedItem(name: string): T | null; + [index: number]: T; +} + +interface HTMLDListElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDListElement: { + prototype: HTMLDListElement; + new(): HTMLDListElement; +}; + +interface HTMLDataElement extends HTMLElement { + value: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDataElement: { + prototype: HTMLDataElement; + new(): HTMLDataElement; +}; + +interface HTMLDataListElement extends HTMLElement { + readonly options: HTMLCollectionOf<HTMLOptionElement>; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDataListElement: { + prototype: HTMLDataListElement; + new(): HTMLDataListElement; +}; + +interface HTMLDetailsElement extends HTMLElement { + open: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDetailsElement: { + prototype: HTMLDetailsElement; + new(): HTMLDetailsElement; +}; + +interface HTMLDialogElement extends HTMLElement { + open: boolean; + returnValue: string; + close(returnValue?: string): void; + show(): void; + showModal(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDialogElement: { + prototype: HTMLDialogElement; + new(): HTMLDialogElement; +}; + +interface HTMLDirectoryElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDirectoryElement: { + prototype: HTMLDirectoryElement; + new(): HTMLDirectoryElement; +}; + +interface HTMLDivElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDivElement: { + prototype: HTMLDivElement; + new(): HTMLDivElement; +}; + +interface HTMLDocument extends Document { + addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLDocument: { + prototype: HTMLDocument; + new(): HTMLDocument; +}; + +interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap { +} + +interface HTMLElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable, HTMLOrSVGElement, ElementCSSInlineStyle { + accessKey: string; + readonly accessKeyLabel: string; + autocapitalize: string; + dir: string; + draggable: boolean; + hidden: boolean; + innerText: string; + lang: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: Element | null; + readonly offsetTop: number; + readonly offsetWidth: number; + spellcheck: boolean; + title: string; + translate: boolean; + click(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLElement: { + prototype: HTMLElement; + new(): HTMLElement; +}; + +interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { + /** @deprecated */ + align: string; + /** + * Sets or retrieves the height of the object. + */ + height: string; + hidden: any; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + readonly msPlayToSource: any; + /** + * Sets or retrieves the name of the object. + */ + /** @deprecated */ + name: string; + /** + * Retrieves the palette used for the embedded document. + */ + readonly palette: string; + /** + * Retrieves the URL of the plug-in used to view an embedded document. + */ + readonly pluginspage: string; + readonly readyState: string; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + src: string; + /** + * Sets or retrieves the height and width units of the embed object. + */ + units: string; + /** + * Sets or retrieves the width of the object. + */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLEmbedElement: { + prototype: HTMLEmbedElement; + new(): HTMLEmbedElement; +}; + +interface HTMLFieldSetElement extends HTMLElement { + disabled: boolean; + readonly elements: HTMLCollection; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + name: string; + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLFieldSetElement: { + prototype: HTMLFieldSetElement; + new(): HTMLFieldSetElement; +}; + +interface HTMLFontElement extends HTMLElement { + /** @deprecated */ + color: string; + /** + * Sets or retrieves the current typeface family. + */ + /** @deprecated */ + face: string; + /** @deprecated */ + size: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLFontElement: { + prototype: HTMLFontElement; + new(): HTMLFontElement; +}; + +interface HTMLFormControlsCollection extends HTMLCollectionBase { + /** + * element = collection[name] + */ + namedItem(name: string): RadioNodeList | Element | null; +} + +declare var HTMLFormControlsCollection: { + prototype: HTMLFormControlsCollection; + new(): HTMLFormControlsCollection; +}; + +interface HTMLFormElement extends HTMLElement { + /** + * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. + */ + acceptCharset: string; + /** + * Sets or retrieves the URL to which the form content is sent for processing. + */ + action: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + autocomplete: string; + /** + * Retrieves a collection, in source order, of all controls in a given form. + */ + readonly elements: HTMLFormControlsCollection; + /** + * Sets or retrieves the MIME encoding for the form. + */ + encoding: string; + /** + * Sets or retrieves the encoding type for the form. + */ + enctype: string; + /** + * Sets or retrieves the number of objects in a collection. + */ + readonly length: number; + /** + * Sets or retrieves how to send the form data to the server. + */ + method: string; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Designates a form that is not validated when submitted. + */ + noValidate: boolean; + /** + * Sets or retrieves the window or frame at which to target content. + */ + target: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Fires when the user resets a form. + */ + reset(): void; + /** + * Fires when a FORM is about to be submitted. + */ + submit(): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: Element; + [name: string]: any; +} + +declare var HTMLFormElement: { + prototype: HTMLFormElement; + new(): HTMLFormElement; +}; + +interface HTMLFrameElement extends HTMLElement { + /** + * Retrieves the document object of the page or frame. + */ + /** @deprecated */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + */ + /** @deprecated */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves whether to display a border for the frame. + */ + /** @deprecated */ + frameBorder: string; + /** + * Sets or retrieves a URI to a long description of the object. + */ + /** @deprecated */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + /** @deprecated */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + /** @deprecated */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + */ + /** @deprecated */ + name: string; + /** + * Sets or retrieves whether the user can resize the frame. + */ + /** @deprecated */ + noResize: boolean; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + /** @deprecated */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + /** @deprecated */ + src: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLFrameElement: { + prototype: HTMLFrameElement; + new(): HTMLFrameElement; +}; + +interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { +} + +interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers { + /** + * Sets or retrieves the frame widths of the object. + */ + /** @deprecated */ + cols: string; + /** + * Sets or retrieves the frame heights of the object. + */ + /** @deprecated */ + rows: string; + addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLFrameSetElement: { + prototype: HTMLFrameSetElement; + new(): HTMLFrameSetElement; +}; + +interface HTMLHRElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + /** @deprecated */ + color: string; + /** + * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. + */ + /** @deprecated */ + noShade: boolean; + /** @deprecated */ + size: string; + /** + * Sets or retrieves the width of the object. + */ + /** @deprecated */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHRElement: { + prototype: HTMLHRElement; + new(): HTMLHRElement; +}; + +interface HTMLHeadElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHeadElement: { + prototype: HTMLHeadElement; + new(): HTMLHeadElement; +}; + +interface HTMLHeadingElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + /** @deprecated */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHeadingElement: { + prototype: HTMLHeadingElement; + new(): HTMLHeadingElement; +}; + +interface HTMLHtmlElement extends HTMLElement { + /** + * Sets or retrieves the DTD version that governs the current document. + */ + /** @deprecated */ + version: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLHtmlElement: { + prototype: HTMLHtmlElement; + new(): HTMLHtmlElement; +}; + +interface HTMLHyperlinkElementUtils { + hash: string; + host: string; + hostname: string; + href: string; + readonly origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + username: string; +} + +interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + allowFullscreen: boolean; + allowPaymentRequest: boolean; + /** + * Retrieves the document object of the page or frame. + */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + */ + readonly contentWindow: Window | null; + /** + * Sets or retrieves whether to display a border for the frame. + */ + /** @deprecated */ + frameBorder: string; + /** + * Sets or retrieves the height of the object. + */ + height: string; + /** + * Sets or retrieves a URI to a long description of the object. + */ + /** @deprecated */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + */ + /** @deprecated */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + */ + /** @deprecated */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + */ + name: string; + readonly referrerPolicy: ReferrerPolicy; + readonly sandbox: DOMTokenList; + /** + * Sets or retrieves whether the frame can be scrolled. + */ + /** @deprecated */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + */ + src: string; + /** + * Sets or retrives the content of the page that is to contain. + */ + srcdoc: string; + /** + * Sets or retrieves the width of the object. + */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLIFrameElement: { + prototype: HTMLIFrameElement; + new(): HTMLIFrameElement; +}; + +interface HTMLImageElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Specifies the properties of a border drawn around an object. + */ + /** @deprecated */ + border: string; + /** + * Retrieves whether the object is fully loaded. + */ + readonly complete: boolean; + crossOrigin: string | null; + readonly currentSrc: string; + decoding: "async" | "sync" | "auto"; + /** + * Sets or retrieves the height of the object. + */ + height: number; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + /** @deprecated */ + hspace: number; + /** + * Sets or retrieves whether the image is a server-side image map. + */ + isMap: boolean; + /** + * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. + */ + /** @deprecated */ + longDesc: string; + /** @deprecated */ + lowsrc: string; + /** + * Sets or retrieves the name of the object. + */ + /** @deprecated */ + name: string; + /** + * The original height of the image resource before sizing. + */ + readonly naturalHeight: number; + /** + * The original width of the image resource before sizing. + */ + readonly naturalWidth: number; + referrerPolicy: string; + sizes: string; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + srcset: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + /** + * Sets or retrieves the vertical margin for the object. + */ + /** @deprecated */ + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: number; + readonly x: number; + readonly y: number; + decode(): Promise<void>; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLImageElement: { + prototype: HTMLImageElement; + new(): HTMLImageElement; +}; + +interface HTMLInputElement extends HTMLElement { + /** + * Sets or retrieves a comma-separated list of content types. + */ + accept: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + */ + alt: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + */ + autocomplete: string; + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + /** + * Sets or retrieves the state of the check box or radio button. + */ + checked: boolean; + /** + * Sets or retrieves the state of the check box or radio button. + */ + defaultChecked: boolean; + /** + * Sets or retrieves the initial contents of the object. + */ + defaultValue: string; + dirName: string; + disabled: boolean; + /** + * Returns a FileList object on a file type input object. + */ + files: FileList | null; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + */ + formMethod: string; + /** + * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. + */ + formNoValidate: boolean; + /** + * Overrides the target attribute on a form element. + */ + formTarget: string; + /** + * Sets or retrieves the height of the object. + */ + height: number; + indeterminate: boolean; + readonly labels: NodeListOf<HTMLLabelElement> | null; + /** + * Specifies the ID of a pre-defined datalist of options for an input element. + */ + readonly list: HTMLElement | null; + /** + * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. + */ + max: string; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + maxLength: number; + /** + * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. + */ + min: string; + minLength: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Gets or sets a string containing a regular expression that the user's input must match. + */ + pattern: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + placeholder: string; + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + selectionDirection: string | null; + /** + * Gets or sets the end position or offset of a text selection. + */ + selectionEnd: number | null; + /** + * Gets or sets the starting position or offset of a text selection. + */ + selectionStart: number | null; + size: number; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + /** + * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. + */ + step: string; + /** + * Returns the content type of the object. + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + /** @deprecated */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** + * Returns the value of the data at the cursor's current position. + */ + value: string; + valueAsDate: any; + /** + * Returns the input field value as a number. + */ + valueAsNumber: number; + /** + * Sets or retrieves the width of the object. + */ + width: number; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Makes the selection equal to the current object. + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + setRangeText(replacement: string): void; + setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + */ + setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void; + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + */ + stepDown(n?: number): void; + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + */ + stepUp(n?: number): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLInputElement: { + prototype: HTMLInputElement; + new(): HTMLInputElement; +}; + +interface HTMLLIElement extends HTMLElement { + /** @deprecated */ + type: string; + /** + * Sets or retrieves the value of a list item. + */ + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLIElement: { + prototype: HTMLLIElement; + new(): HTMLLIElement; +}; + +interface HTMLLabelElement extends HTMLElement { + readonly control: HTMLElement | null; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the object to which the given label object is assigned. + */ + htmlFor: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLabelElement: { + prototype: HTMLLabelElement; + new(): HTMLLabelElement; +}; + +interface HTMLLegendElement extends HTMLElement { + /** @deprecated */ + align: string; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLegendElement: { + prototype: HTMLLegendElement; + new(): HTMLLegendElement; +}; + +interface HTMLLinkElement extends HTMLElement, LinkStyle { + as: string; + /** + * Sets or retrieves the character set used to encode the object. + */ + /** @deprecated */ + charset: string; + crossOrigin: string | null; + disabled: boolean; + /** + * Sets or retrieves a destination URL or an anchor point. + */ + href: string; + /** + * Sets or retrieves the language code of the object. + */ + hreflang: string; + integrity: string; + /** + * Sets or retrieves the media type. + */ + media: string; + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + rel: string; + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + */ + /** @deprecated */ + rev: string; + readonly sizes: DOMTokenList; + /** + * Sets or retrieves the window or frame at which to target content. + */ + /** @deprecated */ + target: string; + /** + * Sets or retrieves the MIME type of the object. + */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLLinkElement: { + prototype: HTMLLinkElement; + new(): HTMLLinkElement; +}; + +interface HTMLMainElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMainElement: { + prototype: HTMLMainElement; + new(): HTMLMainElement; +}; + +interface HTMLMapElement extends HTMLElement { + /** + * Retrieves a collection of the area objects defined for the given map object. + */ + readonly areas: HTMLCollection; + /** + * Sets or retrieves the name of the object. + */ + name: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMapElement: { + prototype: HTMLMapElement; + new(): HTMLMapElement; +}; + +interface HTMLMarqueeElementEventMap extends HTMLElementEventMap { + "bounce": Event; + "finish": Event; + "start": Event; +} + +interface HTMLMarqueeElement extends HTMLElement { + /** @deprecated */ + behavior: string; + /** @deprecated */ + bgColor: string; + /** @deprecated */ + direction: string; + /** @deprecated */ + height: string; + /** @deprecated */ + hspace: number; + /** @deprecated */ + loop: number; + /** @deprecated */ + onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null; + /** @deprecated */ + onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null; + /** @deprecated */ + onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null; + /** @deprecated */ + scrollAmount: number; + /** @deprecated */ + scrollDelay: number; + /** @deprecated */ + trueSpeed: boolean; + /** @deprecated */ + vspace: number; + /** @deprecated */ + width: string; + /** @deprecated */ + start(): void; + /** @deprecated */ + stop(): void; + addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMarqueeElement: { + prototype: HTMLMarqueeElement; + new(): HTMLMarqueeElement; +}; + +interface HTMLMediaElementEventMap extends HTMLElementEventMap { + "encrypted": MediaEncryptedEvent; + "msneedkey": Event; +} + +interface HTMLMediaElement extends HTMLElement { + /** + * Returns an AudioTrackList object with the audio tracks for a given video element. + */ + readonly audioTracks: AudioTrackList; + /** + * Gets or sets a value that indicates whether to start playing the media automatically. + */ + autoplay: boolean; + /** + * Gets a collection of buffered time ranges. + */ + readonly buffered: TimeRanges; + /** + * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). + */ + controls: boolean; + crossOrigin: string | null; + /** + * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. + */ + readonly currentSrc: string; + /** + * Gets or sets the current playback position, in seconds. + */ + currentTime: number; + defaultMuted: boolean; + /** + * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. + */ + defaultPlaybackRate: number; + /** + * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. + */ + readonly duration: number; + /** + * Gets information about whether the playback has ended or not. + */ + readonly ended: boolean; + /** + * Returns an object representing the current error state of the audio or video element. + */ + readonly error: MediaError | null; + /** + * Gets or sets a flag to specify whether playback should restart after it completes. + */ + loop: boolean; + readonly mediaKeys: MediaKeys | null; + /** + * Specifies the purpose of the audio or video media, such as background audio or alerts. + */ + msAudioCategory: string; + /** + * Specifies the output device id that the audio will be sent to. + */ + msAudioDeviceType: string; + readonly msGraphicsTrustStatus: MSGraphicsTrust; + /** + * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element. + */ + /** @deprecated */ + readonly msKeys: MSMediaKeys; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + readonly msPlayToSource: any; + /** + * Specifies whether or not to enable low-latency playback on the media element. + */ + msRealTime: boolean; + /** + * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. + */ + muted: boolean; + /** + * Gets the current network activity for the element. + */ + readonly networkState: number; + onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null; + /** @deprecated */ + onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null; + /** + * Gets a flag that specifies whether playback is paused. + */ + readonly paused: boolean; + /** + * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. + */ + playbackRate: number; + /** + * Gets TimeRanges for the current media resource that has been played. + */ + readonly played: TimeRanges; + /** + * Gets or sets the current playback position, in seconds. + */ + preload: string; + readonly readyState: number; + /** + * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. + */ + readonly seekable: TimeRanges; + /** + * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. + */ + readonly seeking: boolean; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + srcObject: MediaStream | MediaSource | Blob | null; + readonly textTracks: TextTrackList; + readonly videoTracks: VideoTrackList; + /** + * Gets or sets the volume level for audio portions of the media element. + */ + volume: number; + addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack; + /** + * Returns a string that specifies whether the client can play a given media resource type. + */ + canPlayType(type: string): CanPlayTypeResult; + /** + * Resets the audio or video object and loads a new media resource. + */ + load(): void; + /** + * Clears all effects from the media pipeline. + */ + msClearEffects(): void; + msGetAsCastingSource(): any; + /** + * Inserts the specified audio effect into media pipeline. + */ + msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; + /** @deprecated */ + msSetMediaKeys(mediaKeys: MSMediaKeys): void; + /** + * Specifies the media protection manager for a given media pipeline. + */ + msSetMediaProtectionManager(mediaProtectionManager?: any): void; + /** + * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. + */ + pause(): void; + /** + * Loads and starts playback of a media resource. + */ + play(): Promise<void>; + setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>; + readonly HAVE_CURRENT_DATA: number; + readonly HAVE_ENOUGH_DATA: number; + readonly HAVE_FUTURE_DATA: number; + readonly HAVE_METADATA: number; + readonly HAVE_NOTHING: number; + readonly NETWORK_EMPTY: number; + readonly NETWORK_IDLE: number; + readonly NETWORK_LOADING: number; + readonly NETWORK_NO_SOURCE: number; + addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMediaElement: { + prototype: HTMLMediaElement; + new(): HTMLMediaElement; + readonly HAVE_CURRENT_DATA: number; + readonly HAVE_ENOUGH_DATA: number; + readonly HAVE_FUTURE_DATA: number; + readonly HAVE_METADATA: number; + readonly HAVE_NOTHING: number; + readonly NETWORK_EMPTY: number; + readonly NETWORK_IDLE: number; + readonly NETWORK_LOADING: number; + readonly NETWORK_NO_SOURCE: number; +}; + +interface HTMLMenuElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMenuElement: { + prototype: HTMLMenuElement; + new(): HTMLMenuElement; +}; + +interface HTMLMetaElement extends HTMLElement { + /** + * Gets or sets meta-information to associate with httpEquiv or name. + */ + content: string; + /** + * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. + */ + httpEquiv: string; + /** + * Sets or retrieves the value specified in the content attribute of the meta object. + */ + name: string; + /** + * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. + */ + /** @deprecated */ + scheme: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMetaElement: { + prototype: HTMLMetaElement; + new(): HTMLMetaElement; +}; + +interface HTMLMeterElement extends HTMLElement { + high: number; + readonly labels: NodeListOf<HTMLLabelElement>; + low: number; + max: number; + min: number; + optimum: number; + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLMeterElement: { + prototype: HTMLMeterElement; + new(): HTMLMeterElement; +}; + +interface HTMLModElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + /** + * Sets or retrieves the date and time of a modification to the object. + */ + dateTime: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLModElement: { + prototype: HTMLModElement; + new(): HTMLModElement; +}; + +interface HTMLOListElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + reversed: boolean; + /** + * The starting number. + */ + start: number; + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOListElement: { + prototype: HTMLOListElement; + new(): HTMLOListElement; +}; + +interface HTMLObjectElement extends HTMLElement, GetSVGDocument { + /** + * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. + */ + readonly BaseHref: string; + /** @deprecated */ + align: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + */ + /** @deprecated */ + archive: string; + /** @deprecated */ + border: string; + /** + * Sets or retrieves the URL of the file containing the compiled Java class. + */ + /** @deprecated */ + code: string; + /** + * Sets or retrieves the URL of the component. + */ + /** @deprecated */ + codeBase: string; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + */ + /** @deprecated */ + codeType: string; + /** + * Retrieves the document object of the page or frame. + */ + readonly contentDocument: Document | null; + /** + * Sets or retrieves the URL that references the data of the object. + */ + data: string; + /** @deprecated */ + declare: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the height of the object. + */ + height: string; + /** @deprecated */ + hspace: number; + /** + * Gets or sets whether the DLNA PlayTo device is available. + */ + msPlayToDisabled: boolean; + /** + * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. + */ + msPlayToPreferredSourceUri: string; + /** + * Gets or sets the primary DLNA PlayTo device. + */ + msPlayToPrimary: boolean; + /** + * Gets the source associated with the media element for use by the PlayToManager. + */ + readonly msPlayToSource: any; + /** + * Sets or retrieves the name of the object. + */ + name: string; + readonly readyState: number; + /** + * Sets or retrieves a message to be displayed while an object is loading. + */ + /** @deprecated */ + standby: string; + /** + * Sets or retrieves the MIME type of the object. + */ + type: string; + typemustmatch: boolean; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** @deprecated */ + vspace: number; + /** + * Sets or retrieves the width of the object. + */ + width: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLObjectElement: { + prototype: HTMLObjectElement; + new(): HTMLObjectElement; +}; + +interface HTMLOptGroupElement extends HTMLElement { + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + label: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOptGroupElement: { + prototype: HTMLOptGroupElement; + new(): HTMLOptGroupElement; +}; + +interface HTMLOptionElement extends HTMLElement { + /** + * Sets or retrieves the status of an option. + */ + defaultSelected: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the ordinal position of an option in a list box. + */ + readonly index: number; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + */ + label: string; + /** + * Sets or retrieves whether the option in the list box is the default item. + */ + selected: boolean; + /** + * Sets or retrieves the text string specified by the option tag. + */ + text: string; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + value: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOptionElement: { + prototype: HTMLOptionElement; + new(): HTMLOptionElement; +}; + +interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> { + /** + * Returns the number of elements in the collection. + * When set to a smaller number, truncates the number of option elements in the corresponding container. + * When set to a greater number, adds new blank option elements to that container. + */ + length: number; + /** + * Returns the index of the first selected item, if any, or −1 if there is no selected + * item. + * Can be set, to change the selection. + */ + selectedIndex: number; + /** + * Inserts element before the node given by before. + * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the + * collection, in which case element is inserted before that element. + * If before is omitted, null, or a number out of range, then element will be added at the end of the list. + * This method will throw a "HierarchyRequestError" DOMException if + * element is an ancestor of the element into which it is to be inserted. + */ + add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; + /** + * Removes the item with index index from the collection. + */ + remove(index: number): void; +} + +declare var HTMLOptionsCollection: { + prototype: HTMLOptionsCollection; + new(): HTMLOptionsCollection; +}; + +interface HTMLOrSVGElement { + readonly dataset: DOMStringMap; + nonce: string; + tabIndex: number; + blur(): void; + focus(options?: FocusOptions): void; +} + +interface HTMLOutputElement extends HTMLElement { + defaultValue: string; + readonly form: HTMLFormElement | null; + readonly htmlFor: DOMTokenList; + readonly labels: NodeListOf<HTMLLabelElement>; + name: string; + readonly type: string; + readonly validationMessage: string; + readonly validity: ValidityState; + value: string; + readonly willValidate: boolean; + checkValidity(): boolean; + reportValidity(): boolean; + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLOutputElement: { + prototype: HTMLOutputElement; + new(): HTMLOutputElement; +}; + +interface HTMLParagraphElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLParagraphElement: { + prototype: HTMLParagraphElement; + new(): HTMLParagraphElement; +}; + +interface HTMLParamElement extends HTMLElement { + /** + * Sets or retrieves the name of an input parameter for an element. + */ + name: string; + /** + * Sets or retrieves the content type of the resource designated by the value attribute. + */ + /** @deprecated */ + type: string; + /** + * Sets or retrieves the value of an input parameter for an element. + */ + value: string; + /** + * Sets or retrieves the data type of the value attribute. + */ + /** @deprecated */ + valueType: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLParamElement: { + prototype: HTMLParamElement; + new(): HTMLParamElement; +}; + +interface HTMLPictureElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLPictureElement: { + prototype: HTMLPictureElement; + new(): HTMLPictureElement; +}; + +interface HTMLPreElement extends HTMLElement { + /** + * Sets or gets a value that you can use to implement your own width functionality for the object. + */ + /** @deprecated */ + width: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLPreElement: { + prototype: HTMLPreElement; + new(): HTMLPreElement; +}; + +interface HTMLProgressElement extends HTMLElement { + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Defines the maximum, or "done" value for a progress element. + */ + max: number; + /** + * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). + */ + readonly position: number; + /** + * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. + */ + value: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLProgressElement: { + prototype: HTMLProgressElement; + new(): HTMLProgressElement; +}; + +interface HTMLQuoteElement extends HTMLElement { + /** + * Sets or retrieves reference information about the object. + */ + cite: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLQuoteElement: { + prototype: HTMLQuoteElement; + new(): HTMLQuoteElement; +}; + +interface HTMLScriptElement extends HTMLElement { + async: boolean; + /** + * Sets or retrieves the character set used to encode the object. + */ + /** @deprecated */ + charset: string; + crossOrigin: string | null; + /** + * Sets or retrieves the status of the script. + */ + defer: boolean; + /** + * Sets or retrieves the event for which the script is written. + */ + /** @deprecated */ + event: string; + /** + * Sets or retrieves the object that is bound to the event script. + */ + /** @deprecated */ + htmlFor: string; + integrity: string; + noModule: boolean; + referrerPolicy: string; + /** + * Retrieves the URL to an external file that contains the source code or data. + */ + src: string; + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; + /** + * Sets or retrieves the MIME type for the associated scripting engine. + */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLScriptElement: { + prototype: HTMLScriptElement; + new(): HTMLScriptElement; +}; + +interface HTMLSelectElement extends HTMLElement { + autocomplete: string; + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Sets or retrieves the number of objects in a collection. + */ + length: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + */ + name: string; + readonly options: HTMLOptionsCollection; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + /** + * Sets or retrieves the index of the selected option in a select object. + */ + selectedIndex: number; + readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>; + /** + * Sets or retrieves the number of rows in the list box. + */ + size: number; + /** + * Retrieves the type of select control based on the value of the MULTIPLE attribute. + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + */ + add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + */ + item(index: number): Element | null; + /** + * Retrieves a select object or an object from an options collection. + * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. + */ + namedItem(name: string): HTMLOptionElement | null; + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + */ + remove(): void; + remove(index: number): void; + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [name: number]: HTMLOptionElement | HTMLOptGroupElement; +} + +declare var HTMLSelectElement: { + prototype: HTMLSelectElement; + new(): HTMLSelectElement; +}; + +interface HTMLSlotElement extends HTMLElement { + name: string; + assignedElements(options?: AssignedNodesOptions): Element[]; + assignedNodes(options?: AssignedNodesOptions): Node[]; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSlotElement: { + prototype: HTMLSlotElement; + new(): HTMLSlotElement; +}; + +interface HTMLSourceElement extends HTMLElement { + /** + * Gets or sets the intended media type of the media source. + */ + media: string; + sizes: string; + /** + * The address or URL of the a media resource that is to be considered. + */ + src: string; + srcset: string; + /** + * Gets or sets the MIME type of a media resource. + */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSourceElement: { + prototype: HTMLSourceElement; + new(): HTMLSourceElement; +}; + +interface HTMLSpanElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLSpanElement: { + prototype: HTMLSpanElement; + new(): HTMLSpanElement; +}; + +interface HTMLStyleElement extends HTMLElement, LinkStyle { + /** + * Sets or retrieves the media type. + */ + media: string; + /** + * Retrieves the CSS language in which the style sheet is written. + */ + /** @deprecated */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLStyleElement: { + prototype: HTMLStyleElement; + new(): HTMLStyleElement; +}; + +interface HTMLTableCaptionElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the caption or legend. + */ + /** @deprecated */ + align: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableCaptionElement: { + prototype: HTMLTableCaptionElement; + new(): HTMLTableCaptionElement; +}; + +interface HTMLTableCellElement extends HTMLElement { + /** + * Sets or retrieves abbreviated text for the object. + */ + abbr: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + /** + * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. + */ + /** @deprecated */ + axis: string; + /** @deprecated */ + bgColor: string; + /** + * Retrieves the position of the object in the cells collection of a row. + */ + readonly cellIndex: number; + /** @deprecated */ + ch: string; + /** @deprecated */ + chOff: string; + /** + * Sets or retrieves the number columns in the table that the object should span. + */ + colSpan: number; + /** + * Sets or retrieves a list of header cells that provide information for the object. + */ + headers: string; + /** + * Sets or retrieves the height of the object. + */ + /** @deprecated */ + height: string; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + */ + /** @deprecated */ + noWrap: boolean; + /** + * Sets or retrieves how many rows in a table the cell should span. + */ + rowSpan: number; + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + */ + scope: string; + /** @deprecated */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + */ + /** @deprecated */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableCellElement: { + prototype: HTMLTableCellElement; + new(): HTMLTableCellElement; +}; + +interface HTMLTableColElement extends HTMLElement { + /** + * Sets or retrieves the alignment of the object relative to the display or table. + */ + /** @deprecated */ + align: string; + /** @deprecated */ + ch: string; + /** @deprecated */ + chOff: string; + /** + * Sets or retrieves the number of columns in the group. + */ + span: number; + /** @deprecated */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + */ + /** @deprecated */ + width: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableColElement: { + prototype: HTMLTableColElement; + new(): HTMLTableColElement; +}; + +interface HTMLTableDataCellElement extends HTMLTableCellElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableDataCellElement: { + prototype: HTMLTableDataCellElement; + new(): HTMLTableDataCellElement; +}; + +interface HTMLTableElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + /** @deprecated */ + align: string; + /** @deprecated */ + bgColor: string; + /** + * Sets or retrieves the width of the border to draw around the object. + */ + /** @deprecated */ + border: string; + /** + * Retrieves the caption object of a table. + */ + caption: HTMLTableCaptionElement | null; + /** + * Sets or retrieves the amount of space between the border of the cell and the content of the cell. + */ + /** @deprecated */ + cellPadding: string; + /** + * Sets or retrieves the amount of space between cells in a table. + */ + /** @deprecated */ + cellSpacing: string; + /** + * Sets or retrieves the way the border frame around the table is displayed. + */ + /** @deprecated */ + frame: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + readonly rows: HTMLCollectionOf<HTMLTableRowElement>; + /** + * Sets or retrieves which dividing lines (inner borders) are displayed. + */ + /** @deprecated */ + rules: string; + /** + * Sets or retrieves a description and/or structure of the object. + */ + /** @deprecated */ + summary: string; + /** + * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. + */ + readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>; + /** + * Retrieves the tFoot object of the table. + */ + tFoot: HTMLTableSectionElement | null; + /** + * Retrieves the tHead object of the table. + */ + tHead: HTMLTableSectionElement | null; + /** + * Sets or retrieves the width of the object. + */ + /** @deprecated */ + width: string; + /** + * Creates an empty caption element in the table. + */ + createCaption(): HTMLTableCaptionElement; + /** + * Creates an empty tBody element in the table. + */ + createTBody(): HTMLTableSectionElement; + /** + * Creates an empty tFoot element in the table. + */ + createTFoot(): HTMLTableSectionElement; + /** + * Returns the tHead element object if successful, or null otherwise. + */ + createTHead(): HTMLTableSectionElement; + /** + * Deletes the caption element and its contents from the table. + */ + deleteCaption(): void; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + deleteRow(index: number): void; + /** + * Deletes the tFoot element and its contents from the table. + */ + deleteTFoot(): void; + /** + * Deletes the tHead element and its contents from the table. + */ + deleteTHead(): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableElement: { + prototype: HTMLTableElement; + new(): HTMLTableElement; +}; + +interface HTMLTableHeaderCellElement extends HTMLTableCellElement { + scope: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableHeaderCellElement: { + prototype: HTMLTableHeaderCellElement; + new(): HTMLTableHeaderCellElement; +}; + +interface HTMLTableRowElement extends HTMLElement { + /** + * Sets or retrieves how the object is aligned with adjacent text. + */ + /** @deprecated */ + align: string; + /** @deprecated */ + bgColor: string; + /** + * Retrieves a collection of all cells in the table row. + */ + readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>; + /** @deprecated */ + ch: string; + /** @deprecated */ + chOff: string; + /** + * Retrieves the position of the object in the rows collection for the table. + */ + readonly rowIndex: number; + /** + * Retrieves the position of the object in the collection. + */ + readonly sectionRowIndex: number; + /** @deprecated */ + vAlign: string; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + */ + deleteCell(index: number): void; + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + */ + insertCell(index?: number): HTMLTableDataCellElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableRowElement: { + prototype: HTMLTableRowElement; + new(): HTMLTableRowElement; +}; + +interface HTMLTableSectionElement extends HTMLElement { + /** + * Sets or retrieves a value that indicates the table alignment. + */ + /** @deprecated */ + align: string; + /** @deprecated */ + ch: string; + /** @deprecated */ + chOff: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + readonly rows: HTMLCollectionOf<HTMLTableRowElement>; + /** @deprecated */ + vAlign: string; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + */ + deleteRow(index: number): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTableSectionElement: { + prototype: HTMLTableSectionElement; + new(): HTMLTableSectionElement; +}; + +interface HTMLTemplateElement extends HTMLElement { + readonly content: DocumentFragment; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTemplateElement: { + prototype: HTMLTemplateElement; + new(): HTMLTemplateElement; +}; + +interface HTMLTextAreaElement extends HTMLElement { + autocomplete: string; + /** + * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. + */ + autofocus: boolean; + /** + * Sets or retrieves the width of the object. + */ + cols: number; + /** + * Sets or retrieves the initial contents of the object. + */ + defaultValue: string; + dirName: string; + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + */ + readonly form: HTMLFormElement | null; + readonly labels: NodeListOf<HTMLLabelElement>; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + */ + maxLength: number; + minLength: number; + /** + * Sets or retrieves the name of the object. + */ + name: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + */ + placeholder: string; + /** + * Sets or retrieves the value indicated whether the content of the object is read-only. + */ + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + */ + required: boolean; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + */ + rows: number; + selectionDirection: string; + /** + * Gets or sets the end position or offset of a text selection. + */ + selectionEnd: number; + /** + * Gets or sets the starting position or offset of a text selection. + */ + selectionStart: number; + readonly textLength: number; + /** + * Retrieves the type of control. + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + */ + readonly validity: ValidityState; + /** + * Retrieves or sets the text in the entry field of the textArea element. + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + */ + readonly willValidate: boolean; + /** + * Sets or retrieves how to handle wordwrapping in the object. + */ + wrap: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + */ + checkValidity(): boolean; + reportValidity(): boolean; + /** + * Highlights the input area of a form element. + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + */ + setCustomValidity(error: string): void; + setRangeText(replacement: string): void; + setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + */ + setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTextAreaElement: { + prototype: HTMLTextAreaElement; + new(): HTMLTextAreaElement; +}; + +interface HTMLTimeElement extends HTMLElement { + dateTime: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTimeElement: { + prototype: HTMLTimeElement; + new(): HTMLTimeElement; +}; + +interface HTMLTitleElement extends HTMLElement { + /** + * Retrieves or sets the text of the object as a string. + */ + text: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTitleElement: { + prototype: HTMLTitleElement; + new(): HTMLTitleElement; +}; + +interface HTMLTrackElement extends HTMLElement { + default: boolean; + kind: string; + label: string; + readonly readyState: number; + src: string; + srclang: string; + readonly track: TextTrack; + readonly ERROR: number; + readonly LOADED: number; + readonly LOADING: number; + readonly NONE: number; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLTrackElement: { + prototype: HTMLTrackElement; + new(): HTMLTrackElement; + readonly ERROR: number; + readonly LOADED: number; + readonly LOADING: number; + readonly NONE: number; +}; + +interface HTMLUListElement extends HTMLElement { + /** @deprecated */ + compact: boolean; + /** @deprecated */ + type: string; + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLUListElement: { + prototype: HTMLUListElement; + new(): HTMLUListElement; +}; + +interface HTMLUnknownElement extends HTMLElement { + addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLUnknownElement: { + prototype: HTMLUnknownElement; + new(): HTMLUnknownElement; +}; + +interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { + "MSVideoFormatChanged": Event; + "MSVideoFrameStepCompleted": Event; + "MSVideoOptimalLayoutChanged": Event; +} + +interface HTMLVideoElement extends HTMLMediaElement { + /** + * Gets or sets the height of the video element. + */ + height: number; + msHorizontalMirror: boolean; + readonly msIsLayoutOptimalForPlayback: boolean; + readonly msIsStereo3D: boolean; + msStereo3DPackingMode: string; + msStereo3DRenderMode: string; + msZoom: boolean; + onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null; + onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null; + onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null; + /** + * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. + */ + poster: string; + /** + * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. + */ + readonly videoHeight: number; + /** + * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. + */ + readonly videoWidth: number; + readonly webkitDisplayingFullscreen: boolean; + readonly webkitSupportsFullscreen: boolean; + /** + * Gets or sets the width of the video element. + */ + width: number; + getVideoPlaybackQuality(): VideoPlaybackQuality; + msFrameStep(forward: boolean): void; + msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; + msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void; + webkitEnterFullScreen(): void; + webkitEnterFullscreen(): void; + webkitExitFullScreen(): void; + webkitExitFullscreen(): void; + addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLVideoElement: { + prototype: HTMLVideoElement; + new(): HTMLVideoElement; +}; + +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, title: string, url?: string | null): void; + replaceState(data: any, title: string, url?: string | null): void; +} + +declare var History: { + prototype: History; + new(): History; +}; + +interface HkdfCtrParams extends Algorithm { + context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + hash: string | Algorithm; + label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface IDBArrayKey extends Array<IDBValidKey> { +} + +interface IDBCursor { + /** + * Returns the direction ("next", "nextunique", "prev" or "prevunique") + * of the cursor. + */ + readonly direction: IDBCursorDirection; + /** + * Returns the key of the cursor. + * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + */ + readonly key: IDBValidKey | IDBKeyRange; + /** + * Returns the effective key of the cursor. + * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + */ + readonly primaryKey: IDBValidKey | IDBKeyRange; + /** + * Returns the IDBObjectStore or IDBIndex the cursor was opened from. + */ + readonly source: IDBObjectStore | IDBIndex; + /** + * Advances the cursor through the next count records in + * range. + */ + advance(count: number): void; + /** + * Advances the cursor to the next record in range matching or + * after key. + */ + continue(key?: IDBValidKey | IDBKeyRange): void; + /** + * Advances the cursor to the next record in range matching + * or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. + */ + continuePrimaryKey(key: IDBValidKey | IDBKeyRange, primaryKey: IDBValidKey | IDBKeyRange): void; + /** + * Delete the record pointed at by the cursor with a new value. + * If successful, request's result will be undefined. + */ + delete(): IDBRequest<undefined>; + /** + * Updated the record pointed at by the cursor with a new value. + * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. + * If successful, request's result will be the record's key. + */ + update(value: any): IDBRequest<IDBValidKey>; +} + +declare var IDBCursor: { + prototype: IDBCursor; + new(): IDBCursor; +}; + +interface IDBCursorWithValue extends IDBCursor { + /** + * Returns the cursor's current value. + */ + readonly value: any; +} + +declare var IDBCursorWithValue: { + prototype: IDBCursorWithValue; + new(): IDBCursorWithValue; +}; + +interface IDBDatabaseEventMap { + "abort": Event; + "close": Event; + "error": Event; + "versionchange": IDBVersionChangeEvent; +} + +interface IDBDatabase extends EventTarget { + /** + * Returns the name of the database. + */ + readonly name: string; + /** + * Returns a list of the names of object stores in the database. + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBDatabase, ev: Event) => any) | null; + onclose: ((this: IDBDatabase, ev: Event) => any) | null; + onerror: ((this: IDBDatabase, ev: Event) => any) | null; + onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; + /** + * Returns the version of the database. + */ + readonly version: number; + /** + * Closes the connection once all running transactions have finished. + */ + close(): void; + /** + * Creates a new object store with the given name and options and returns a new IDBObjectStore. + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + */ + createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; + /** + * Deletes the object store with the given name. + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + */ + deleteObjectStore(name: string): void; + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") + * and scope which can be a single object store name or an array of names. + */ + transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction; + addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBDatabase: { + prototype: IDBDatabase; + new(): IDBDatabase; +}; + +interface IDBEnvironment { + readonly indexedDB: IDBFactory; +} + +interface IDBFactory { + /** + * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if + * the keys are equal. + * Throws a "DataError" DOMException if either input is not a valid key. + */ + cmp(first: any, second: any): number; + /** + * Attempts to delete the named database. If the + * database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request + * is successful request's result will be null. + */ + deleteDatabase(name: string): IDBOpenDBRequest; + /** + * Attempts to open a connection to the named database with the specified version. If the database already exists + * with a lower version and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close, then an upgrade + * will occur. If the database already exists with a higher + * version the request will fail. If the request is + * successful request's result will + * be the connection. + */ + open(name: string, version?: number): IDBOpenDBRequest; +} + +declare var IDBFactory: { + prototype: IDBFactory; + new(): IDBFactory; +}; + +interface IDBIndex { + readonly keyPath: string | string[]; + readonly multiEntry: boolean; + /** + * Updates the name of the store to newName. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + name: string; + /** + * Returns the IDBObjectStore the index belongs to. + */ + readonly objectStore: IDBObjectStore; + readonly unique: boolean; + /** + * Retrieves the number of records matching the given key or key range in query. + * If successful, request's result will be the + * count. + */ + count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Retrieves the value of the first record matching the + * given key or key range in query. + * If successful, request's result will be the value, or undefined if there was no matching record. + */ + get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * If successful, request's result will be an Array of the values. + */ + getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * If successful, request's result will be an Array of the keys. + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the + * given key or key range in query. + * If successful, request's result will be the key, or undefined if there was no matching record. + */ + getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** + * Opens a cursor over the records matching query, + * ordered by direction. If query is null, all records in index are matched. + * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. + */ + openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. + * If successful, request's result will be an IDBCursor, or null if there were no matching records. + */ + openKeyCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; +} + +declare var IDBIndex: { + prototype: IDBIndex; + new(): IDBIndex; +}; + +interface IDBKeyRange { + /** + * Returns lower bound, or undefined if none. + */ + readonly lower: any; + /** + * Returns true if the lower open flag is set, and false otherwise. + */ + readonly lowerOpen: boolean; + /** + * Returns upper bound, or undefined if none. + */ + readonly upper: any; + /** + * Returns true if the upper open flag is set, and false otherwise. + */ + readonly upperOpen: boolean; + /** + * Returns true if key is included in the range, and false otherwise. + */ + includes(key: any): boolean; +} + +declare var IDBKeyRange: { + prototype: IDBKeyRange; + new(): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning from lower to upper. + * If lowerOpen is true, lower is not included in the range. + * If upperOpen is true, upper is not included in the range. + */ + bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange starting at key with no + * upper bound. If open is true, key is not included in the + * range. + */ + lowerBound(lower: any, open?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning only key. + */ + only(value: any): IDBKeyRange; + /** + * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. + */ + upperBound(upper: any, open?: boolean): IDBKeyRange; +}; + +interface IDBObjectStore { + /** + * Returns true if the store has a key generator, and false otherwise. + */ + readonly autoIncrement: boolean; + /** + * Returns a list of the names of indexes in the store. + */ + readonly indexNames: DOMStringList; + /** + * Returns the key path of the store, or null if none. + */ + readonly keyPath: string | string[]; + /** + * Updates the name of the store to newName. + * Throws "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + name: string; + /** + * Returns the associated transaction. + */ + readonly transaction: IDBTransaction; + add(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>; + /** + * Deletes all records in store. + * If successful, request's result will + * be undefined. + */ + clear(): IDBRequest<undefined>; + /** + * Retrieves the number of records matching the + * given key or key range in query. + * If successful, request's result will be the count. + */ + count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be + * satisfied with the data already in store the upgrade + * transaction will abort with + * a "ConstraintError" DOMException. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + /** + * Deletes records in store with the given key or in the given key range in query. + * If successful, request's result will + * be undefined. + */ + delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; + /** + * Deletes the index in store with the given name. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + deleteIndex(name: string): void; + /** + * Retrieves the value of the first record matching the + * given key or key range in query. + * If successful, request's result will be the value, or undefined if there was no matching record. + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>; + /** + * Retrieves the values of the records matching the + * given key or key range in query (up to count if given). + * If successful, request's result will + * be an Array of the values. + */ + getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the + * given key or key range in query (up to count if given). + * If successful, request's result will + * be an Array of the keys. + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the + * given key or key range in query. + * If successful, request's result will be the key, or undefined if there was no matching record. + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + index(name: string): IDBIndex; + /** + * Opens a cursor over the records matching query, + * ordered by direction. If query is null, all records in store are matched. + * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. + */ + openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. + * If successful, request's result will be an IDBCursor pointing at the first matching record, or + * null if there were no matching records. + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; + put(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>; +} + +declare var IDBObjectStore: { + prototype: IDBObjectStore; + new(): IDBObjectStore; +}; + +interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { + "blocked": Event; + "upgradeneeded": IDBVersionChangeEvent; +} + +interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { + onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null; + onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBOpenDBRequest: { + prototype: IDBOpenDBRequest; + new(): IDBOpenDBRequest; +}; + +interface IDBRequestEventMap { + "error": Event; + "success": Event; +} + +interface IDBRequest<T = any> extends EventTarget { + /** + * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws + * a "InvalidStateError" DOMException if the request is still pending. + */ + readonly error: DOMException | null; + onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; + onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** + * Returns "pending" until a request is complete, + * then returns "done". + */ + readonly readyState: IDBRequestReadyState; + /** + * When a request is completed, returns the result, + * or undefined if the request failed. Throws a + * "InvalidStateError" DOMException if the request is still pending. + */ + readonly result: T; + /** + * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open + * request. + */ + readonly source: IDBObjectStore | IDBIndex | IDBCursor; + /** + * Returns the IDBTransaction the request was made within. + * If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. + */ + readonly transaction: IDBTransaction | null; + addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBRequest: { + prototype: IDBRequest; + new(): IDBRequest; +}; + +interface IDBTransactionEventMap { + "abort": Event; + "complete": Event; + "error": Event; +} + +interface IDBTransaction extends EventTarget { + /** + * Returns the transaction's connection. + */ + readonly db: IDBDatabase; + /** + * If the transaction was aborted, returns the + * error (a DOMException) providing the reason. + */ + readonly error: DOMException; + /** + * Returns the mode the transaction was created with + * ("readonly" or "readwrite"), or "versionchange" for + * an upgrade transaction. + */ + readonly mode: IDBTransactionMode; + /** + * Returns a list of the names of object stores in the + * transaction's scope. For an upgrade transaction this is all object stores in the database. + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBTransaction, ev: Event) => any) | null; + oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; + onerror: ((this: IDBTransaction, ev: Event) => any) | null; + /** + * Aborts the transaction. All pending requests will fail with + * a "AbortError" DOMException and all changes made to the database will be + * reverted. + */ + abort(): void; + /** + * Returns an IDBObjectStore in the transaction's scope. + */ + objectStore(name: string): IDBObjectStore; + addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBTransaction: { + prototype: IDBTransaction; + new(): IDBTransaction; +}; + +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 ImageBitmap { + /** + * Returns the intrinsic height of the image, in CSS + * pixels. + */ + readonly height: number; + /** + * Returns the intrinsic width of the image, in CSS + * pixels. + */ + readonly width: number; + /** + * Releases imageBitmap's underlying bitmap data. + */ + close(): void; +} + +declare var ImageBitmap: { + prototype: ImageBitmap; + new(): ImageBitmap; +}; + +interface ImageBitmapOptions { + colorSpaceConversion?: "none" | "default"; + imageOrientation?: "none" | "flipY"; + premultiplyAlpha?: "none" | "premultiply" | "default"; + resizeHeight?: number; + resizeQuality?: "pixelated" | "low" | "medium" | "high"; + resizeWidth?: number; +} + +interface ImageBitmapRenderingContext { + /** + * Returns the canvas element that the context is bound to. + */ + readonly canvas: HTMLCanvasElement; + /** + * Replaces contents of the canvas element to which context + * is bound with a transparent black bitmap whose size corresponds to the width and height + * content attributes of the canvas element. + */ + transferFromImageBitmap(bitmap: ImageBitmap | null): void; +} + +declare var ImageBitmapRenderingContext: { + prototype: ImageBitmapRenderingContext; + new(): ImageBitmapRenderingContext; +}; + +interface ImageData { + /** + * Returns the one-dimensional array containing the data in RGBA order, as integers in the + * range 0 to 255. + */ + readonly data: Uint8ClampedArray; + /** + * Returns the actual dimensions of the data in the ImageData object, in + * pixels. + */ + readonly height: number; + readonly width: number; +} + +declare var ImageData: { + prototype: ImageData; + new(width: number, height: number): ImageData; + new(array: Uint8ClampedArray, width: number, height: number): ImageData; +}; + +interface IntersectionObserver { + readonly root: Element | null; + readonly rootMargin: string; + readonly thresholds: number[]; + 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: ClientRect | DOMRect; + readonly intersectionRatio: number; + readonly intersectionRect: ClientRect | DOMRect; + readonly isIntersecting: boolean; + readonly rootBounds: ClientRect | DOMRect; + readonly target: Element; + readonly time: number; +} + +declare var IntersectionObserverEntry: { + prototype: IntersectionObserverEntry; + new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; +}; + +interface KeyboardEvent extends UIEvent { + readonly altKey: boolean; + /** @deprecated */ + char: string; + /** @deprecated */ + readonly charCode: number; + readonly code: string; + readonly ctrlKey: boolean; + readonly key: string; + /** @deprecated */ + readonly keyCode: number; + readonly location: number; + readonly metaKey: boolean; + readonly repeat: boolean; + readonly shiftKey: boolean; + /** @deprecated */ + readonly which: number; + getModifierState(keyArg: string): boolean; + /** @deprecated */ + initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void; + readonly DOM_KEY_LOCATION_JOYSTICK: number; + readonly DOM_KEY_LOCATION_LEFT: number; + readonly DOM_KEY_LOCATION_MOBILE: 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(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; + readonly DOM_KEY_LOCATION_JOYSTICK: number; + readonly DOM_KEY_LOCATION_LEFT: number; + readonly DOM_KEY_LOCATION_MOBILE: number; + readonly DOM_KEY_LOCATION_NUMPAD: number; + readonly DOM_KEY_LOCATION_RIGHT: number; + readonly DOM_KEY_LOCATION_STANDARD: number; +}; + +interface KeyframeEffect extends AnimationEffect { + composite: CompositeOperation; + iterationComposite: IterationCompositeOperation; + target: Element | null; + getKeyframes(): ComputedKeyframe[]; + setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void; +} + +declare var KeyframeEffect: { + prototype: KeyframeEffect; + new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect; + new(source: KeyframeEffect): KeyframeEffect; +}; + +interface LinkStyle { + readonly sheet: StyleSheet | null; +} + +interface ListeningStateChangedEvent extends Event { + readonly label: string; + readonly state: ListeningState; +} + +declare var ListeningStateChangedEvent: { + prototype: ListeningStateChangedEvent; + new(): ListeningStateChangedEvent; +}; + +interface Location { + /** + * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing + * context to the top-level browsing context. + */ + readonly ancestorOrigins: DOMStringList; + /** + * Returns the Location object's URL's fragment (includes leading "#" if non-empty). + * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). + */ + hash: string; + /** + * Returns the Location object's URL's host and port (if different from the default + * port for the scheme). + * Can be set, to navigate to the same URL with a changed host and port. + */ + host: string; + /** + * Returns the Location object's URL's host. + * Can be set, to navigate to the same URL with a changed host. + */ + hostname: string; + /** + * Returns the Location object's URL. + * Can be set, to navigate to the given URL. + */ + href: string; + /** + * Returns the Location object's URL's origin. + */ + readonly origin: string; + /** + * Returns the Location object's URL's path. + * Can be set, to navigate to the same URL with a changed path. + */ + pathname: string; + /** + * Returns the Location object's URL's port. + * Can be set, to navigate to the same URL with a changed port. + */ + port: string; + /** + * Returns the Location object's URL's scheme. + * Can be set, to navigate to the same URL with a changed scheme. + */ + protocol: string; + /** + * Returns the Location object's URL's query (includes leading "?" if non-empty). + * Can be set, to navigate to the same URL with a changed query (ignores leading "?"). + */ + search: string; + /** + * Navigates to the given URL. + */ + assign(url: string): void; + /** + * Reloads the current page. + */ + reload(): void; + /** @deprecated */ + reload(forcedReload: boolean): void; + /** + * Removes the current page from the session history and navigates to the given URL. + */ + replace(url: string): void; +} + +declare var Location: { + prototype: Location; + new(): Location; +}; + +interface MSAssertion { + readonly id: string; + readonly type: MSCredentialType; +} + +declare var MSAssertion: { + prototype: MSAssertion; + new(): MSAssertion; +}; + +interface MSBlobBuilder { + append(data: any, endings?: string): void; + getBlob(contentType?: string): Blob; +} + +declare var MSBlobBuilder: { + prototype: MSBlobBuilder; + new(): MSBlobBuilder; +}; + +interface MSFIDOCredentialAssertion extends MSAssertion { + readonly algorithm: string | Algorithm; + readonly attestation: any; + readonly publicKey: string; + readonly transportHints: MSTransportType[]; +} + +declare var MSFIDOCredentialAssertion: { + prototype: MSFIDOCredentialAssertion; + new(): MSFIDOCredentialAssertion; +}; + +interface MSFIDOSignature { + readonly authnrData: string; + readonly clientData: string; + readonly signature: string; +} + +declare var MSFIDOSignature: { + prototype: MSFIDOSignature; + new(): MSFIDOSignature; +}; + +interface MSFIDOSignatureAssertion extends MSAssertion { + readonly signature: MSFIDOSignature; +} + +declare var MSFIDOSignatureAssertion: { + prototype: MSFIDOSignatureAssertion; + new(): MSFIDOSignatureAssertion; +}; + +interface MSFileSaver { + msSaveBlob(blob: any, defaultName?: string): boolean; + msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; +} + +interface MSGesture { + target: Element; + addPointer(pointerId: number): void; + stop(): void; +} + +declare var MSGesture: { + prototype: MSGesture; + new(): MSGesture; +}; + +interface MSGestureEvent extends UIEvent { + readonly clientX: number; + readonly clientY: number; + readonly expansion: number; + readonly gestureObject: any; + readonly hwTimestamp: number; + readonly offsetX: number; + readonly offsetY: number; + readonly rotation: number; + readonly scale: number; + readonly screenX: number; + readonly screenY: number; + readonly translationX: number; + readonly translationY: number; + readonly velocityAngular: number; + readonly velocityExpansion: number; + readonly velocityX: number; + readonly velocityY: number; + initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void; + readonly MSGESTURE_FLAG_BEGIN: number; + readonly MSGESTURE_FLAG_CANCEL: number; + readonly MSGESTURE_FLAG_END: number; + readonly MSGESTURE_FLAG_INERTIA: number; + readonly MSGESTURE_FLAG_NONE: number; +} + +declare var MSGestureEvent: { + prototype: MSGestureEvent; + new(): MSGestureEvent; + readonly MSGESTURE_FLAG_BEGIN: number; + readonly MSGESTURE_FLAG_CANCEL: number; + readonly MSGESTURE_FLAG_END: number; + readonly MSGESTURE_FLAG_INERTIA: number; + readonly MSGESTURE_FLAG_NONE: number; +}; + +interface MSGraphicsTrust { + readonly constrictionActive: boolean; + readonly status: string; +} + +declare var MSGraphicsTrust: { + prototype: MSGraphicsTrust; + new(): MSGraphicsTrust; +}; + +interface MSInputMethodContextEventMap { + "MSCandidateWindowHide": Event; + "MSCandidateWindowShow": Event; + "MSCandidateWindowUpdate": Event; +} + +interface MSInputMethodContext extends EventTarget { + readonly compositionEndOffset: number; + readonly compositionStartOffset: number; + oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null; + oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null; + oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null; + readonly target: HTMLElement; + getCandidateWindowClientRect(): ClientRect; + getCompositionAlternatives(): string[]; + hasComposition(): boolean; + isCandidateWindowVisible(): boolean; + addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MSInputMethodContext: { + prototype: MSInputMethodContext; + new(): MSInputMethodContext; +}; + +interface MSMediaKeyError { + readonly code: number; + readonly systemCode: number; + readonly MS_MEDIA_KEYERR_CLIENT: number; + readonly MS_MEDIA_KEYERR_DOMAIN: number; + readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number; + readonly MS_MEDIA_KEYERR_OUTPUT: number; + readonly MS_MEDIA_KEYERR_SERVICE: number; + readonly MS_MEDIA_KEYERR_UNKNOWN: number; +} + +declare var MSMediaKeyError: { + prototype: MSMediaKeyError; + new(): MSMediaKeyError; + readonly MS_MEDIA_KEYERR_CLIENT: number; + readonly MS_MEDIA_KEYERR_DOMAIN: number; + readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number; + readonly MS_MEDIA_KEYERR_OUTPUT: number; + readonly MS_MEDIA_KEYERR_SERVICE: number; + readonly MS_MEDIA_KEYERR_UNKNOWN: number; +}; + +interface MSMediaKeyMessageEvent extends Event { + readonly destinationURL: string | null; + readonly message: Uint8Array; +} + +declare var MSMediaKeyMessageEvent: { + prototype: MSMediaKeyMessageEvent; + new(): MSMediaKeyMessageEvent; +}; + +interface MSMediaKeyNeededEvent extends Event { + readonly initData: Uint8Array | null; +} + +declare var MSMediaKeyNeededEvent: { + prototype: MSMediaKeyNeededEvent; + new(): MSMediaKeyNeededEvent; +}; + +interface MSMediaKeySession extends EventTarget { + readonly error: MSMediaKeyError | null; + readonly keySystem: string; + readonly sessionId: string; + close(): void; + update(key: Uint8Array): void; +} + +declare var MSMediaKeySession: { + prototype: MSMediaKeySession; + new(): MSMediaKeySession; +}; + +interface MSMediaKeys { + readonly keySystem: string; + createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession; +} + +declare var MSMediaKeys: { + prototype: MSMediaKeys; + new(keySystem: string): MSMediaKeys; + isTypeSupported(keySystem: string, type?: string | null): boolean; + isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string; +}; + +interface MSNavigatorDoNotTrack { + confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; + confirmWebWideTrackingException(args: ExceptionInformation): boolean; + removeSiteSpecificTrackingException(args: ExceptionInformation): void; + removeWebWideTrackingException(args: ExceptionInformation): void; + storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; + storeWebWideTrackingException(args: StoreExceptionsInformation): void; +} + +interface MSPointerEvent extends MouseEvent { + readonly currentPoint: any; + readonly height: number; + readonly hwTimestamp: number; + readonly intermediatePoints: any; + readonly isPrimary: boolean; + readonly pointerId: number; + readonly pointerType: any; + readonly pressure: number; + readonly rotation: number; + readonly tiltX: number; + readonly tiltY: number; + readonly width: number; + getCurrentPoint(element: Element): void; + getIntermediatePoints(element: Element): void; + initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; +} + +declare var MSPointerEvent: { + prototype: MSPointerEvent; + new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; +}; + +interface MSStream { + readonly type: string; + msClose(): void; + msDetachStream(): any; +} + +declare var MSStream: { + prototype: MSStream; + new(): MSStream; +}; + +interface MediaDeviceInfo { + readonly deviceId: string; + readonly groupId: string; + readonly kind: MediaDeviceKind; + readonly label: string; +} + +declare var MediaDeviceInfo: { + prototype: MediaDeviceInfo; + new(): MediaDeviceInfo; +}; + +interface MediaDevicesEventMap { + "devicechange": Event; +} + +interface MediaDevices extends EventTarget { + ondevicechange: ((this: MediaDevices, ev: Event) => any) | null; + enumerateDevices(): Promise<MediaDeviceInfo[]>; + getSupportedConstraints(): MediaTrackSupportedConstraints; + getUserMedia(constraints: MediaStreamConstraints): Promise<MediaStream>; + addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaDevices: { + prototype: MediaDevices; + new(): MediaDevices; +}; + +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 msExtendedCode: number; + readonly MEDIA_ERR_ABORTED: number; + readonly MEDIA_ERR_DECODE: number; + readonly MEDIA_ERR_NETWORK: number; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number; + readonly MS_MEDIA_ERR_ENCRYPTED: number; +} + +declare var MediaError: { + prototype: MediaError; + new(): MediaError; + readonly MEDIA_ERR_ABORTED: number; + readonly MEDIA_ERR_DECODE: number; + readonly MEDIA_ERR_NETWORK: number; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number; + readonly MS_MEDIA_ERR_ENCRYPTED: number; +}; + +interface MediaKeyMessageEvent extends Event { + readonly message: ArrayBuffer; + readonly messageType: MediaKeyMessageType; +} + +declare var MediaKeyMessageEvent: { + prototype: MediaKeyMessageEvent; + new(type: string, eventInitDict?: MediaKeyMessageEventInit): MediaKeyMessageEvent; +}; + +interface MediaKeySession extends EventTarget { + readonly closed: Promise<void>; + readonly expiration: number; + readonly keyStatuses: MediaKeyStatusMap; + readonly sessionId: string; + close(): Promise<void>; + generateRequest(initDataType: string, initData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>; + load(sessionId: string): Promise<boolean>; + remove(): Promise<void>; + update(response: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>; +} + +declare var MediaKeySession: { + prototype: MediaKeySession; + new(): MediaKeySession; +}; + +interface MediaKeyStatusMap { + readonly size: number; + forEach(callback: Function, thisArg?: any): void; + get(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): MediaKeyStatus; + has(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): boolean; +} + +declare var MediaKeyStatusMap: { + prototype: MediaKeyStatusMap; + new(): MediaKeyStatusMap; +}; + +interface MediaKeySystemAccess { + readonly keySystem: string; + createMediaKeys(): Promise<MediaKeys>; + getConfiguration(): MediaKeySystemConfiguration; +} + +declare var MediaKeySystemAccess: { + prototype: MediaKeySystemAccess; + new(): MediaKeySystemAccess; +}; + +interface MediaKeys { + createSession(sessionType?: MediaKeySessionType): MediaKeySession; + setServerCertificate(serverCertificate: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>; +} + +declare var MediaKeys: { + prototype: MediaKeys; + new(): MediaKeys; +}; + +interface MediaList { + readonly length: number; + mediaText: string; + appendMedium(medium: string): void; + deleteMedium(medium: string): void; + item(index: number): string | null; + toString(): number; + [index: number]: string; +} + +declare var MediaList: { + prototype: MediaList; + new(): MediaList; +}; + +interface MediaQueryListEventMap { + "change": MediaQueryListEvent; +} + +interface MediaQueryList extends EventTarget { + readonly matches: boolean; + readonly media: string; + onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null; + /** @deprecated */ + addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; + /** @deprecated */ + removeListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; + addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaQueryList: { + prototype: MediaQueryList; + new(): MediaQueryList; +}; + +interface MediaQueryListEvent extends Event { + readonly matches: boolean; + readonly media: string; +} + +declare var MediaQueryListEvent: { + prototype: MediaQueryListEvent; + new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent; +}; + +interface MediaSource extends EventTarget { + readonly activeSourceBuffers: SourceBufferList; + duration: number; + readonly readyState: ReadyState; + readonly sourceBuffers: SourceBufferList; + addSourceBuffer(type: string): SourceBuffer; + endOfStream(error?: EndOfStreamError): void; + removeSourceBuffer(sourceBuffer: SourceBuffer): void; +} + +declare var MediaSource: { + prototype: MediaSource; + new(): MediaSource; + isTypeSupported(type: string): boolean; +}; + +interface MediaStreamEventMap { + "active": Event; + "addtrack": MediaStreamTrackEvent; + "inactive": Event; + "removetrack": MediaStreamTrackEvent; +} + +interface MediaStream extends EventTarget { + readonly active: boolean; + readonly id: string; + onactive: ((this: MediaStream, ev: Event) => any) | null; + onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; + oninactive: ((this: MediaStream, ev: Event) => 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; + stop(): void; + addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStream: { + prototype: MediaStream; + new(): MediaStream; + new(stream: MediaStream): MediaStream; + new(tracks: MediaStreamTrack[]): MediaStream; +}; + +interface MediaStreamAudioDestinationNode extends AudioNode { + readonly stream: MediaStream; +} + +declare var MediaStreamAudioDestinationNode: { + prototype: MediaStreamAudioDestinationNode; + new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode; +}; + +interface MediaStreamAudioSourceNode extends AudioNode { + readonly mediaStream: MediaStream; +} + +declare var MediaStreamAudioSourceNode: { + prototype: MediaStreamAudioSourceNode; + new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode; +}; + +interface MediaStreamError { + readonly constraintName: string | null; + readonly message: string | null; + readonly name: string; +} + +declare var MediaStreamError: { + prototype: MediaStreamError; + new(): MediaStreamError; +}; + +interface MediaStreamErrorEvent extends Event { + readonly error: MediaStreamError | null; +} + +declare var MediaStreamErrorEvent: { + prototype: MediaStreamErrorEvent; + new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent; +}; + +interface MediaStreamEvent extends Event { + readonly stream: MediaStream | null; +} + +declare var MediaStreamEvent: { + prototype: MediaStreamEvent; + new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent; +}; + +interface MediaStreamTrackEventMap { + "ended": MediaStreamErrorEvent; + "isolationchange": Event; + "mute": Event; + "overconstrained": MediaStreamErrorEvent; + "unmute": Event; +} + +interface MediaStreamTrack extends EventTarget { + enabled: boolean; + readonly id: string; + readonly isolated: boolean; + readonly kind: string; + readonly label: string; + readonly muted: boolean; + onended: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null; + onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null; + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + onoverconstrained: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null; + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + readonly readonly: boolean; + readonly readyState: MediaStreamTrackState; + readonly remote: boolean; + applyConstraints(constraints: MediaTrackConstraints): Promise<void>; + clone(): MediaStreamTrack; + getCapabilities(): MediaTrackCapabilities; + getConstraints(): MediaTrackConstraints; + getSettings(): MediaTrackSettings; + stop(): void; + addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + +interface MediaStreamTrackAudioSourceNode extends AudioNode { +} + +declare var MediaStreamTrackAudioSourceNode: { + prototype: MediaStreamTrackAudioSourceNode; + new(context: AudioContext, options: MediaStreamTrackAudioSourceOptions): MediaStreamTrackAudioSourceNode; +}; + +interface MediaStreamTrackEvent extends Event { + readonly track: MediaStreamTrack; +} + +declare var MediaStreamTrackEvent: { + prototype: MediaStreamTrackEvent; + new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent; +}; + +interface MessageChannel { + readonly port1: MessagePort; + readonly port2: MessagePort; +} + +declare var MessageChannel: { + prototype: MessageChannel; + new(): MessageChannel; +}; + +interface MessageEvent extends Event { + /** + * Returns the data of the message. + */ + readonly data: any; + /** + * Returns the last event ID string, for + * server-sent events. + */ + readonly lastEventId: string; + /** + * Returns the origin of the message, for server-sent events and + * cross-document messaging. + */ + readonly origin: string; + /** + * Returns the MessagePort array sent with the message, for cross-document + * messaging and channel messaging. + */ + readonly ports: ReadonlyArray<MessagePort>; + /** + * Returns the WindowProxy of the source window, for cross-document + * messaging, and the MessagePort being attached, in the connect event fired at + * SharedWorkerGlobalScope objects. + */ + readonly source: MessageEventSource | null; +} + +declare var MessageEvent: { + prototype: MessageEvent; + new(type: string, eventInitDict?: MessageEventInit): MessageEvent; +}; + +interface MessagePortEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface MessagePort extends EventTarget { + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** + * Disconnects the port, so that it is no longer active. + */ + close(): void; + /** + * Posts a message through the channel. Objects listed in transfer are + * transferred, not just cloned, meaning that they are no longer usable on the sending side. + * Throws a "DataCloneError" DOMException if + * transfer contains duplicate objects or port, or if message + * could not be cloned. + */ + postMessage(message: any, transfer?: Transferable[]): void; + /** + * Begins dispatching messages received on the port. + */ + start(): void; + addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MessagePort: { + prototype: MessagePort; + new(): MessagePort; +}; + +interface 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): Plugin; + namedItem(type: string): Plugin; + [index: number]: Plugin; +} + +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; + /** @deprecated */ + readonly fromElement: Element; + readonly layerX: number; + readonly layerY: number; + readonly metaKey: boolean; + readonly movementX: number; + readonly movementY: number; + readonly offsetX: number; + readonly offsetY: number; + readonly pageX: number; + readonly pageY: number; + readonly relatedTarget: EventTarget; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + /** @deprecated */ + readonly toElement: Element; + /** @deprecated */ + readonly which: number; + 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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; +}; + +interface MutationEvent extends Event { + readonly attrChange: number; + readonly attrName: string; + readonly newValue: string; + readonly prevValue: string; + readonly relatedNode: Node; + initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void; + readonly ADDITION: number; + readonly MODIFICATION: number; + readonly REMOVAL: number; +} + +declare var MutationEvent: { + prototype: MutationEvent; + new(): MutationEvent; + readonly ADDITION: number; + readonly MODIFICATION: number; + readonly REMOVAL: number; +}; + +interface MutationObserver { + disconnect(): void; + /** + * Instructs the user agent to observe a given target (a node) and report any mutations based on + * the criteria given by options (an object). + * The options argument allows for setting mutation + * observation options via object members. These are the object members that + * can be used: + * childList + * Set to true if mutations to target's children are to be observed. + * attributes + * Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is + * specified. + * characterData + * Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. + * subtree + * Set to true if mutations to not just target, but + * also target's descendants are to be + * observed. + * attributeOldValue + * Set to true if attributes is true or omitted + * and target's attribute value before the mutation + * needs to be recorded. + * characterDataOldValue + * Set to true if characterData is set to true or omitted and target's data before the mutation + * needs to be recorded. + * attributeFilter + * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be + * observed and attributes is true + * or omitted. + */ + observe(target: Node, options?: MutationObserverInit): void; + /** + * Empties the record queue and + * returns what was in there. + */ + takeRecords(): MutationRecord[]; +} + +declare var MutationObserver: { + prototype: MutationObserver; + new(callback: MutationCallback): MutationObserver; +}; + +interface MutationRecord { + readonly addedNodes: NodeList; + /** + * Returns the local name of the + * changed attribute, and null otherwise. + */ + readonly attributeName: string | null; + /** + * Returns the namespace of the + * changed attribute, and null otherwise. + */ + readonly attributeNamespace: string | null; + /** + * Return the previous and next sibling respectively + * of the added or removed nodes, and null otherwise. + */ + readonly nextSibling: Node | null; + /** + * The return value depends on type. For + * "attributes", it is the value of the + * changed attribute before the change. + * For "characterData", it is the data of the changed node before the change. For + * "childList", it is null. + */ + readonly oldValue: string | null; + readonly previousSibling: Node | null; + /** + * Return the nodes added and removed + * respectively. + */ + readonly removedNodes: NodeList; + readonly target: Node; + /** + * Returns "attributes" if it was an attribute mutation. + * "characterData" if it was a mutation to a CharacterData node. And + * "childList" if it was a mutation to the tree of nodes. + */ + readonly type: MutationRecordType; +} + +declare var MutationRecord: { + prototype: MutationRecord; + new(): MutationRecord; +}; + +interface NamedNodeMap { + readonly length: number; + getNamedItem(qualifiedName: string): Attr | null; + getNamedItemNS(namespace: string | null, localName: string): Attr | null; + item(index: number): Attr | null; + removeNamedItem(qualifiedName: string): Attr; + removeNamedItemNS(namespace: string | null, localName: string): Attr; + setNamedItem(attr: Attr): Attr | null; + setNamedItemNS(attr: Attr): Attr | null; + [index: number]: Attr; +} + +declare var NamedNodeMap: { + prototype: NamedNodeMap; + new(): NamedNodeMap; +}; + +interface NavigationPreloadManager { + disable(): Promise<void>; + enable(): Promise<void>; + getState(): Promise<NavigationPreloadState>; + setHeaderValue(value: string): Promise<void>; +} + +declare var NavigationPreloadManager: { + prototype: NavigationPreloadManager; + new(): NavigationPreloadManager; +}; + +interface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia, NavigatorLanguage, NavigatorStorage, NavigatorAutomationInformation { + readonly activeVRDisplays: ReadonlyArray<VRDisplay>; + readonly authentication: WebAuthentication; + readonly cookieEnabled: boolean; + readonly doNotTrack: string | null; + gamepadInputEmulation: GamepadInputEmulationType; + readonly geolocation: Geolocation; + readonly maxTouchPoints: number; + readonly mimeTypes: MimeTypeArray; + readonly msManipulationViewsEnabled: boolean; + readonly msMaxTouchPoints: number; + readonly msPointerEnabled: boolean; + readonly plugins: PluginArray; + readonly pointerEnabled: boolean; + readonly serviceWorker: ServiceWorkerContainer; + readonly webdriver: boolean; + getGamepads(): (Gamepad | null)[]; + getVRDisplays(): Promise<VRDisplay[]>; + javaEnabled(): boolean; + msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; + requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>; + vibrate(pattern: number | number[]): boolean; +} + +declare var Navigator: { + prototype: Navigator; + new(): Navigator; +}; + +interface NavigatorAutomationInformation { + readonly webdriver: boolean; +} + +interface NavigatorBeacon { + sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean; +} + +interface NavigatorConcurrentHardware { + readonly hardwareConcurrency: number; +} + +interface NavigatorContentUtils { +} + +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<string>; +} + +interface NavigatorOnLine { + readonly onLine: boolean; +} + +interface NavigatorStorage { + readonly storage: StorageManager; +} + +interface NavigatorStorageUtils { +} + +interface NavigatorUserMedia { + readonly mediaDevices: MediaDevices; + getDisplayMedia(constraints: MediaStreamConstraints): Promise<MediaStream>; + getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void; +} + +interface Node extends EventTarget { + /** + * Returns node's node document's document base URL. + */ + readonly baseURI: string; + /** + * Returns the children. + */ + readonly childNodes: NodeListOf<ChildNode>; + /** + * Returns the first child. + */ + readonly firstChild: ChildNode | null; + /** + * Returns true if node is connected and false otherwise. + */ + readonly isConnected: boolean; + /** + * Returns the last child. + */ + readonly lastChild: ChildNode | null; + /** @deprecated */ + readonly namespaceURI: string | null; + /** + * Returns the next sibling. + */ + readonly nextSibling: Node | null; + /** + * Returns a string appropriate for the type of node, as + * follows: + * Element + * Its HTML-uppercased qualified name. + * Attr + * Its qualified name. + * Text + * "#text". + * CDATASection + * "#cdata-section". + * ProcessingInstruction + * Its target. + * Comment + * "#comment". + * Document + * "#document". + * DocumentType + * Its name. + * DocumentFragment + * "#document-fragment". + */ + readonly nodeName: string; + readonly nodeType: number; + nodeValue: string | null; + /** + * Returns the node document. + * Returns null for documents. + */ + readonly ownerDocument: Document | null; + /** + * Returns the parent element. + */ + readonly parentElement: HTMLElement | null; + /** + * Returns the parent. + */ + readonly parentNode: Node & ParentNode | null; + /** + * Returns the previous sibling. + */ + readonly previousSibling: Node | null; + textContent: string | null; + appendChild<T extends Node>(newChild: T): T; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + */ + cloneNode(deep?: boolean): Node; + compareDocumentPosition(other: Node): number; + /** + * Returns true if other is an inclusive descendant of node, and false otherwise. + */ + contains(other: Node | null): boolean; + /** + * Returns node's shadow-including root. + */ + getRootNode(options?: GetRootNodeOptions): Node; + /** + * Returns whether node has children. + */ + hasChildNodes(): boolean; + insertBefore<T extends Node>(newChild: T, refChild: Node | null): T; + isDefaultNamespace(namespace: string | null): boolean; + /** + * Returns whether node and otherNode have the same properties. + */ + isEqualNode(otherNode: Node | null): boolean; + isSameNode(otherNode: Node | null): boolean; + lookupNamespaceURI(prefix: string | null): string | null; + lookupPrefix(namespace: string | null): string | null; + /** + * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. + */ + normalize(): void; + removeChild<T extends Node>(oldChild: T): T; + replaceChild<T extends Node>(newChild: Node, oldChild: T): T; + readonly ATTRIBUTE_NODE: number; + 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 NodeFilter { + acceptNode(node: Node): number; +} + +declare var NodeFilter: { + readonly FILTER_ACCEPT: number; + readonly FILTER_REJECT: number; + readonly FILTER_SKIP: number; + readonly SHOW_ALL: number; + readonly SHOW_ATTRIBUTE: number; + readonly SHOW_CDATA_SECTION: number; + readonly SHOW_COMMENT: number; + readonly SHOW_DOCUMENT: number; + readonly SHOW_DOCUMENT_FRAGMENT: number; + readonly SHOW_DOCUMENT_TYPE: number; + readonly SHOW_ELEMENT: number; + readonly SHOW_ENTITY: number; + readonly SHOW_ENTITY_REFERENCE: number; + readonly SHOW_NOTATION: number; + readonly SHOW_PROCESSING_INSTRUCTION: number; + readonly SHOW_TEXT: number; +}; + +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 { + /** + * Returns the number of nodes in the collection. + */ + readonly length: number; + /** + * element = collection[index] + */ + item(index: number): Node | null; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void; + [index: number]: Node; +} + +declare var NodeList: { + prototype: NodeList; + new(): NodeList; +}; + +interface NodeListOf<TNode extends Node> extends NodeList { + length: number; + item(index: number): TNode; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void; + [index: number]: TNode; +} + +interface NodeSelector { + querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; + querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null; + querySelector<E extends Element = Element>(selectors: string): E | null; + querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>; + querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>; + querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>; +} + +interface NonDocumentTypeChildNode { + /** + * Returns the first following sibling that + * is an element, and null otherwise. + */ + readonly nextElementSibling: Element | null; + /** + * Returns the first preceding sibling that + * is an element, and null otherwise. + */ + readonly previousElementSibling: Element | null; +} + +interface NonElementParentNode { + /** + * Returns the first element within node's descendants whose ID is elementId. + */ + getElementById(elementId: string): Element | null; +} + +interface NotificationEventMap { + "click": Event; + "close": Event; + "error": Event; + "show": Event; +} + +interface Notification extends EventTarget { + readonly actions: ReadonlyArray<NotificationAction>; + readonly badge: string; + readonly body: string; + readonly data: any; + readonly dir: NotificationDirection; + readonly icon: string; + readonly image: string; + readonly lang: string; + onclick: ((this: Notification, ev: Event) => any) | null; + onclose: ((this: Notification, ev: Event) => any) | null; + onerror: ((this: Notification, ev: Event) => any) | null; + onshow: ((this: Notification, ev: Event) => any) | null; + readonly renotify: boolean; + readonly requireInteraction: boolean; + readonly silent: boolean; + readonly tag: string; + readonly timestamp: number; + readonly title: string; + readonly vibrate: ReadonlyArray<number>; + close(): void; + addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Notification: { + prototype: Notification; + new(title: string, options?: NotificationOptions): Notification; + readonly maxActions: number; + readonly permission: NotificationPermission; + requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>; +}; + +interface OES_element_index_uint { +} + +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 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; + startRendering(): Promise<AudioBuffer>; + suspend(suspendTime: number): Promise<void>; + addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OfflineAudioContext: { + prototype: OfflineAudioContext; + new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext; + new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; +}; + +interface OscillatorNode extends AudioScheduledSourceNode { + readonly detune: AudioParam; + readonly frequency: AudioParam; + type: OscillatorType; + setPeriodicWave(periodicWave: PeriodicWave): void; + addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var OscillatorNode: { + prototype: OscillatorNode; + new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode; +}; + +interface OverflowEvent extends UIEvent { + readonly horizontalOverflow: boolean; + readonly orient: number; + readonly verticalOverflow: boolean; + readonly BOTH: number; + readonly HORIZONTAL: number; + readonly VERTICAL: number; +} + +declare var OverflowEvent: { + prototype: OverflowEvent; + new(): OverflowEvent; + readonly BOTH: number; + readonly HORIZONTAL: number; + readonly VERTICAL: number; +}; + +interface PageTransitionEvent extends Event { + readonly persisted: boolean; +} + +declare var PageTransitionEvent: { + prototype: PageTransitionEvent; + new(): 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; + /** @deprecated */ + setOrientation(x: number, y: number, z: number): void; + /** @deprecated */ + setPosition(x: number, y: number, z: number): void; +} + +declare var PannerNode: { + prototype: PannerNode; + new(context: BaseAudioContext, options?: PannerOptions): PannerNode; +}; + +interface ParentNode { + readonly childElementCount: number; + /** + * Returns the child elements. + */ + readonly children: HTMLCollection; + /** + * Returns the first child that is an element, and null otherwise. + */ + readonly firstElementChild: Element | null; + /** + * Returns the last child that is an element, and null otherwise. + */ + readonly lastElementChild: Element | null; + /** + * Inserts nodes after the last child of node, while replacing + * strings in nodes with equivalent Text nodes. + * Throws a "HierarchyRequestError" DOMException if the constraints of + * the node tree are violated. + */ + append(...nodes: (Node | string)[]): void; + /** + * Inserts nodes before the first child of node, while + * replacing strings in nodes with equivalent Text nodes. + * Throws a "HierarchyRequestError" DOMException if the constraints of + * the node tree are violated. + */ + prepend(...nodes: (Node | string)[]): void; + /** + * Returns the first element that is a descendant of node that + * matches selectors. + */ + querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; + querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null; + querySelector<E extends Element = Element>(selectors: string): E | null; + /** + * Returns all element descendants of node that + * match selectors. + */ + querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>; + querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>; + querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>; +} + +interface Path2D extends CanvasPath { + addPath(path: Path2D, transform?: DOMMatrix2DInit): void; +} + +declare var Path2D: { + prototype: Path2D; + new(path?: Path2D | string): Path2D; +}; + +interface PaymentAddress { + readonly addressLine: string[]; + readonly city: string; + readonly country: string; + readonly dependentLocality: string; + readonly languageCode: string; + readonly organization: string; + readonly phone: string; + readonly postalCode: string; + readonly recipient: string; + readonly region: string; + readonly sortingCode: string; + toJSON(): any; +} + +declare var PaymentAddress: { + prototype: PaymentAddress; + new(): PaymentAddress; +}; + +interface PaymentRequestEventMap { + "shippingaddresschange": Event; + "shippingoptionchange": Event; +} + +interface PaymentRequest extends EventTarget { + readonly id: string; + onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null; + onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null; + readonly shippingAddress: PaymentAddress | null; + readonly shippingOption: string | null; + readonly shippingType: PaymentShippingType | null; + abort(): Promise<void>; + canMakePayment(): Promise<boolean>; + show(): Promise<PaymentResponse>; + addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var PaymentRequest: { + prototype: PaymentRequest; + new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; +}; + +interface PaymentRequestUpdateEvent extends Event { + updateWith(detailsPromise: Promise<PaymentDetailsUpdate>): void; +} + +declare var PaymentRequestUpdateEvent: { + prototype: PaymentRequestUpdateEvent; + new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; +}; + +interface PaymentResponse { + readonly details: any; + readonly methodName: string; + readonly payerEmail: string | null; + readonly payerName: string | null; + readonly payerPhone: string | null; + readonly requestId: string; + readonly shippingAddress: PaymentAddress | null; + readonly shippingOption: string | null; + complete(result?: PaymentComplete): Promise<void>; + toJSON(): any; +} + +declare var PaymentResponse: { + prototype: PaymentResponse; + new(): PaymentResponse; +}; + +interface PerfWidgetExternal { + readonly activeNetworkRequestCount: number; + readonly averageFrameTime: number; + readonly averagePaintTime: number; + readonly extraInformationEnabled: boolean; + readonly independentRenderingEnabled: boolean; + readonly irDisablingContentString: string; + readonly irStatusAvailable: boolean; + readonly maxCpuSpeed: number; + readonly paintRequestsPerSecond: number; + readonly performanceCounter: number; + readonly performanceCounterFrequency: number; + addEventListener(eventType: string, callback: Function): void; + getMemoryUsage(): number; + getProcessCpuUsage(): number; + getRecentCpuUsage(last: number | null): any; + getRecentFrames(last: number | null): any; + getRecentMemoryUsage(last: number | null): any; + getRecentPaintRequests(last: number | null): any; + removeEventListener(eventType: string, callback: Function): void; + repositionWindow(x: number, y: number): void; + resizeWindow(width: number, height: number): void; +} + +declare var PerfWidgetExternal: { + prototype: PerfWidgetExternal; + new(): PerfWidgetExternal; +}; + +interface PerformanceEventMap { + "resourcetimingbufferfull": Event; +} + +interface Performance extends EventTarget { + /** @deprecated */ + readonly navigation: PerformanceNavigation; + onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; + readonly timeOrigin: number; + /** @deprecated */ + readonly timing: PerformanceTiming; + clearMarks(markName?: string): void; + clearMeasures(measureName?: string): void; + clearResourceTimings(): void; + getEntries(): PerformanceEntryList; + getEntriesByName(name: string, type?: string): PerformanceEntryList; + getEntriesByType(type: string): PerformanceEntryList; + mark(markName: string): void; + measure(measureName: string, startMark?: string, endMark?: string): void; + now(): number; + setResourceTimingBufferSize(maxSize: number): void; + toJSON(): any; + addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Performance: { + prototype: Performance; + new(): Performance; +}; + +interface PerformanceEntry { + readonly duration: number; + readonly entryType: string; + readonly name: string; + readonly startTime: number; + toJSON(): any; +} + +declare var PerformanceEntry: { + prototype: PerformanceEntry; + new(): PerformanceEntry; +}; + +interface PerformanceMark extends PerformanceEntry { +} + +declare var PerformanceMark: { + prototype: PerformanceMark; + new(): PerformanceMark; +}; + +interface PerformanceMeasure extends PerformanceEntry { +} + +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: number; + readonly domContentLoadedEventEnd: number; + readonly domContentLoadedEventStart: number; + readonly domInteractive: number; + readonly loadEventEnd: number; + readonly loadEventStart: number; + readonly redirectCount: number; + readonly type: NavigationType; + readonly unloadEventEnd: number; + readonly unloadEventStart: number; + toJSON(): any; +} + +declare var PerformanceNavigationTiming: { + prototype: PerformanceNavigationTiming; + new(): PerformanceNavigationTiming; +}; + +interface PerformanceObserver { + disconnect(): void; + observe(options: PerformanceObserverInit): void; + takeRecords(): PerformanceEntryList; +} + +declare var PerformanceObserver: { + prototype: PerformanceObserver; + new(callback: PerformanceObserverCallback): PerformanceObserver; +}; + +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: number; + readonly connectStart: number; + readonly decodedBodySize: number; + readonly domainLookupEnd: number; + readonly domainLookupStart: number; + readonly encodedBodySize: number; + readonly fetchStart: number; + readonly initiatorType: string; + readonly nextHopProtocol: string; + readonly redirectEnd: number; + readonly redirectStart: number; + readonly requestStart: number; + readonly responseEnd: number; + readonly responseStart: number; + readonly secureConnectionStart: number; + readonly transferSize: number; + readonly workerStart: number; + toJSON(): any; +} + +declare var PerformanceResourceTiming: { + prototype: PerformanceResourceTiming; + new(): PerformanceResourceTiming; +}; + +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 PermissionRequest extends DeferredPermissionRequest { + readonly state: MSWebViewPermissionState; + defer(): void; +} + +declare var PermissionRequest: { + prototype: PermissionRequest; + new(): PermissionRequest; +}; + +interface PermissionRequestedEvent extends Event { + readonly permissionRequest: PermissionRequest; +} + +declare var PermissionRequestedEvent: { + prototype: PermissionRequestedEvent; + new(): PermissionRequestedEvent; +}; + +interface Plugin { + readonly description: string; + readonly filename: string; + readonly length: number; + readonly name: string; + readonly version: string; + item(index: number): MimeType; + namedItem(type: string): MimeType; + [index: number]: MimeType; +} + +declare var Plugin: { + prototype: Plugin; + new(): Plugin; +}; + +interface PluginArray { + readonly length: number; + item(index: number): Plugin; + namedItem(name: string): Plugin; + refresh(reload?: boolean): 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; +} + +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 Position { + readonly coords: Coordinates; + readonly timestamp: number; +} + +interface PositionError { + readonly code: number; + readonly message: string; + readonly PERMISSION_DENIED: number; + readonly POSITION_UNAVAILABLE: number; + readonly TIMEOUT: number; +} + +interface ProcessingInstruction extends CharacterData { + readonly target: string; +} + +declare var ProcessingInstruction: { + prototype: ProcessingInstruction; + new(): ProcessingInstruction; +}; + +interface ProgressEvent extends Event { + readonly lengthComputable: boolean; + readonly loaded: number; + readonly total: number; +} + +declare var ProgressEvent: { + prototype: ProgressEvent; + new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; +}; + +interface PromiseRejectionEvent extends Event { + readonly promise: Promise<any>; + readonly reason: any; +} + +declare var PromiseRejectionEvent: { + prototype: PromiseRejectionEvent; + new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; +}; + +interface PushManager { + getSubscription(): Promise<PushSubscription | null>; + permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>; + subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; +} + +declare var PushManager: { + prototype: PushManager; + new(): PushManager; + readonly supportedContentEncodings: ReadonlyArray<string>; +}; + +interface PushSubscription { + readonly endpoint: string; + readonly expirationTime: number | null; + readonly options: PushSubscriptionOptions; + getKey(name: PushEncryptionKeyName): ArrayBuffer | null; + toJSON(): PushSubscriptionJSON; + unsubscribe(): Promise<boolean>; +} + +declare var PushSubscription: { + prototype: PushSubscription; + new(): PushSubscription; +}; + +interface PushSubscriptionOptions { + readonly applicationServerKey: ArrayBuffer | null; + readonly userVisibleOnly: boolean; +} + +declare var PushSubscriptionOptions: { + prototype: PushSubscriptionOptions; + new(): PushSubscriptionOptions; +}; + +interface RTCCertificate { + readonly expires: number; + getFingerprints(): RTCDtlsFingerprint[]; +} + +declare var RTCCertificate: { + prototype: RTCCertificate; + new(): RTCCertificate; + getSupportedAlgorithms(): AlgorithmIdentifier[]; +}; + +interface RTCDTMFSenderEventMap { + "tonechange": RTCDTMFToneChangeEvent; +} + +interface RTCDTMFSender extends EventTarget { + readonly canInsertDTMF: boolean; + ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null; + readonly toneBuffer: string; + insertDTMF(tones: string, duration?: number, interToneGap?: number): void; + addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDTMFSender: { + prototype: RTCDTMFSender; + new(): RTCDTMFSender; +}; + +interface RTCDTMFToneChangeEvent extends Event { + readonly tone: string; +} + +declare var RTCDTMFToneChangeEvent: { + prototype: RTCDTMFToneChangeEvent; + new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent; +}; + +interface RTCDataChannelEventMap { + "bufferedamountlow": Event; + "close": Event; + "error": RTCErrorEvent; + "message": MessageEvent; + "open": Event; +} + +interface RTCDataChannel extends EventTarget { + binaryType: string; + readonly bufferedAmount: number; + bufferedAmountLowThreshold: number; + readonly id: number | null; + readonly label: string; + readonly maxPacketLifeTime: number | null; + readonly maxRetransmits: number | null; + readonly negotiated: boolean; + onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; + onclose: ((this: RTCDataChannel, ev: Event) => any) | null; + onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null; + onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; + onopen: ((this: RTCDataChannel, ev: Event) => any) | null; + readonly ordered: boolean; + readonly priority: RTCPriorityType; + readonly protocol: string; + readonly readyState: RTCDataChannelState; + close(): void; + send(data: string): void; + send(data: Blob): void; + send(data: ArrayBuffer): void; + send(data: ArrayBufferView): void; + addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDataChannel: { + prototype: RTCDataChannel; + new(): RTCDataChannel; +}; + +interface RTCDataChannelEvent extends Event { + readonly channel: RTCDataChannel; +} + +declare var RTCDataChannelEvent: { + prototype: RTCDataChannelEvent; + new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent; +}; + +interface RTCDtlsTransportEventMap { + "error": RTCErrorEvent; + "statechange": Event; +} + +interface RTCDtlsTransport extends EventTarget { + onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null; + onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; + readonly state: RTCDtlsTransportState; + readonly transport: RTCIceTransport; + getRemoteCertificates(): ArrayBuffer[]; + addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDtlsTransport: { + prototype: RTCDtlsTransport; + new(): RTCDtlsTransport; +}; + +interface RTCDtlsTransportStateChangedEvent extends Event { + readonly state: RTCDtlsTransportState; +} + +declare var RTCDtlsTransportStateChangedEvent: { + prototype: RTCDtlsTransportStateChangedEvent; + new(): RTCDtlsTransportStateChangedEvent; +}; + +interface RTCDtmfSenderEventMap { + "tonechange": RTCDTMFToneChangeEvent; +} + +interface RTCDtmfSender extends EventTarget { + readonly canInsertDTMF: boolean; + readonly duration: number; + readonly interToneGap: number; + ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null; + readonly sender: RTCRtpSender; + readonly toneBuffer: string; + insertDTMF(tones: string, duration?: number, interToneGap?: number): void; + addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCDtmfSender: { + prototype: RTCDtmfSender; + new(sender: RTCRtpSender): RTCDtmfSender; +}; + +interface RTCError extends Error { + errorDetail: string; + httpRequestStatusCode: number; + message: string; + name: string; + receivedAlert: number | null; + sctpCauseCode: number; + sdpLineNumber: number; + sentAlert: number | null; +} + +declare var RTCError: { + prototype: RTCError; + new(errorDetail?: string, message?: string): RTCError; +}; + +interface RTCErrorEvent extends Event { + readonly error: RTCError | null; +} + +declare var RTCErrorEvent: { + prototype: RTCErrorEvent; + new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent; +}; + +interface RTCIceCandidate { + readonly candidate: string; + readonly component: RTCIceComponent | null; + readonly foundation: string | null; + readonly ip: string | null; + readonly port: number | null; + readonly priority: number | null; + readonly protocol: RTCIceProtocol | null; + readonly relatedAddress: string | null; + readonly relatedPort: number | null; + readonly sdpMLineIndex: number | null; + readonly sdpMid: string | null; + readonly tcpType: RTCIceTcpCandidateType | null; + readonly type: RTCIceCandidateType | null; + readonly usernameFragment: string | null; + toJSON(): RTCIceCandidateInit; +} + +declare var RTCIceCandidate: { + prototype: RTCIceCandidate; + new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; +}; + +interface RTCIceCandidatePairChangedEvent extends Event { + readonly pair: RTCIceCandidatePair; +} + +declare var RTCIceCandidatePairChangedEvent: { + prototype: RTCIceCandidatePairChangedEvent; + new(): RTCIceCandidatePairChangedEvent; +}; + +interface RTCIceGathererEventMap { + "error": Event; + "localcandidate": RTCIceGathererEvent; +} + +interface RTCIceGatherer extends RTCStatsProvider { + readonly component: RTCIceComponent; + onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; + onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null; + createAssociatedGatherer(): RTCIceGatherer; + getLocalCandidates(): RTCIceCandidateDictionary[]; + getLocalParameters(): RTCIceParameters; + addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCIceGatherer: { + prototype: RTCIceGatherer; + new(options: RTCIceGatherOptions): RTCIceGatherer; +}; + +interface RTCIceGathererEvent extends Event { + readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete; +} + +declare var RTCIceGathererEvent: { + prototype: RTCIceGathererEvent; + new(): RTCIceGathererEvent; +}; + +interface RTCIceTransportEventMap { + "gatheringstatechange": Event; + "selectedcandidatepairchange": Event; + "statechange": Event; +} + +interface RTCIceTransport extends EventTarget { + readonly component: RTCIceComponent; + readonly gatheringState: RTCIceGathererState; + ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; + onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + readonly role: RTCIceRole; + readonly state: RTCIceTransportState; + getLocalCandidates(): RTCIceCandidate[]; + getLocalParameters(): RTCIceParameters | null; + getRemoteCandidates(): RTCIceCandidate[]; + getRemoteParameters(): RTCIceParameters | null; + getSelectedCandidatePair(): RTCIceCandidatePair | null; + addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCIceTransport: { + prototype: RTCIceTransport; + new(): RTCIceTransport; +}; + +interface RTCIceTransportStateChangedEvent extends Event { + readonly state: RTCIceTransportState; +} + +declare var RTCIceTransportStateChangedEvent: { + prototype: RTCIceTransportStateChangedEvent; + new(): RTCIceTransportStateChangedEvent; +}; + +interface RTCIdentityAssertion { + idp: string; + name: string; +} + +declare var RTCIdentityAssertion: { + prototype: RTCIdentityAssertion; + new(idp: string, name: string): RTCIdentityAssertion; +}; + +interface RTCPeerConnectionEventMap { + "connectionstatechange": Event; + "datachannel": RTCDataChannelEvent; + "icecandidate": RTCPeerConnectionIceEvent; + "icecandidateerror": RTCPeerConnectionIceErrorEvent; + "iceconnectionstatechange": Event; + "icegatheringstatechange": Event; + "negotiationneeded": Event; + "signalingstatechange": Event; + "statsended": RTCStatsEvent; + "track": RTCTrackEvent; +} + +interface RTCPeerConnection extends EventTarget { + readonly canTrickleIceCandidates: boolean | null; + readonly connectionState: RTCPeerConnectionState; + readonly currentLocalDescription: RTCSessionDescription | null; + readonly currentRemoteDescription: RTCSessionDescription | null; + readonly iceConnectionState: RTCIceConnectionState; + readonly iceGatheringState: RTCIceGatheringState; + readonly idpErrorInfo: string | null; + readonly idpLoginUrl: string | null; + readonly localDescription: RTCSessionDescription | null; + onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null; + onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null; + onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null; + oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null; + onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null; + ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null; + readonly peerIdentity: Promise<RTCIdentityAssertion>; + readonly pendingLocalDescription: RTCSessionDescription | null; + readonly pendingRemoteDescription: RTCSessionDescription | null; + readonly remoteDescription: RTCSessionDescription | null; + readonly sctp: RTCSctpTransport | null; + readonly signalingState: RTCSignalingState; + addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>; + addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; + addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver; + close(): void; + createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>; + createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel; + createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>; + getConfiguration(): RTCConfiguration; + getIdentityAssertion(): Promise<string>; + getReceivers(): RTCRtpReceiver[]; + getSenders(): RTCRtpSender[]; + getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>; + getTransceivers(): RTCRtpTransceiver[]; + removeTrack(sender: RTCRtpSender): void; + setConfiguration(configuration: RTCConfiguration): void; + setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void; + setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>; + setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>; + addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCPeerConnection: { + prototype: RTCPeerConnection; + new(configuration?: RTCConfiguration): RTCPeerConnection; + generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>; + getDefaultIceServers(): RTCIceServer[]; +}; + +interface RTCPeerConnectionIceErrorEvent extends Event { + readonly errorCode: number; + readonly errorText: string; + readonly hostCandidate: string; + readonly url: string; +} + +declare var RTCPeerConnectionIceErrorEvent: { + prototype: RTCPeerConnectionIceErrorEvent; + new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent; +}; + +interface RTCPeerConnectionIceEvent extends Event { + readonly candidate: RTCIceCandidate | null; + readonly url: string | null; +} + +declare var RTCPeerConnectionIceEvent: { + prototype: RTCPeerConnectionIceEvent; + new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent; +}; + +interface RTCRtpReceiver { + readonly rtcpTransport: RTCDtlsTransport | null; + readonly track: MediaStreamTrack; + readonly transport: RTCDtlsTransport | null; + getContributingSources(): RTCRtpContributingSource[]; + getParameters(): RTCRtpReceiveParameters; + getStats(): Promise<RTCStatsReport>; + getSynchronizationSources(): RTCRtpSynchronizationSource[]; +} + +declare var RTCRtpReceiver: { + prototype: RTCRtpReceiver; + new(): RTCRtpReceiver; + getCapabilities(kind: string): RTCRtpCapabilities | null; +}; + +interface RTCRtpSender { + readonly dtmf: RTCDTMFSender | null; + readonly rtcpTransport: RTCDtlsTransport | null; + readonly track: MediaStreamTrack | null; + readonly transport: RTCDtlsTransport | null; + getParameters(): RTCRtpSendParameters; + getStats(): Promise<RTCStatsReport>; + replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>; + setParameters(parameters: RTCRtpSendParameters): Promise<void>; + setStreams(...streams: MediaStream[]): void; +} + +declare var RTCRtpSender: { + prototype: RTCRtpSender; + new(): RTCRtpSender; + getCapabilities(kind: string): RTCRtpCapabilities | null; +}; + +interface RTCRtpTransceiver { + readonly currentDirection: RTCRtpTransceiverDirection | null; + direction: RTCRtpTransceiverDirection; + readonly mid: string | null; + readonly receiver: RTCRtpReceiver; + readonly sender: RTCRtpSender; + readonly stopped: boolean; + setCodecPreferences(codecs: RTCRtpCodecCapability[]): void; + stop(): void; +} + +declare var RTCRtpTransceiver: { + prototype: RTCRtpTransceiver; + new(): RTCRtpTransceiver; +}; + +interface RTCSctpTransportEventMap { + "statechange": Event; +} + +interface RTCSctpTransport { + readonly maxChannels: number | null; + readonly maxMessageSize: number; + onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; + readonly state: RTCSctpTransportState; + readonly transport: RTCDtlsTransport; + addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCSctpTransport: { + prototype: RTCSctpTransport; + new(): RTCSctpTransport; +}; + +interface RTCSessionDescription { + readonly sdp: string; + readonly type: RTCSdpType; + toJSON(): any; +} + +declare var RTCSessionDescription: { + prototype: RTCSessionDescription; + new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription; +}; + +interface RTCSrtpSdesTransportEventMap { + "error": Event; +} + +interface RTCSrtpSdesTransport extends EventTarget { + onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; + readonly transport: RTCIceTransport; + addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var RTCSrtpSdesTransport: { + prototype: RTCSrtpSdesTransport; + new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport; + getLocalParameters(): RTCSrtpSdesParameters[]; +}; + +interface RTCSsrcConflictEvent extends Event { + readonly ssrc: number; +} + +declare var RTCSsrcConflictEvent: { + prototype: RTCSsrcConflictEvent; + new(): RTCSsrcConflictEvent; +}; + +interface RTCStatsEvent extends Event { + readonly report: RTCStatsReport; +} + +declare var RTCStatsEvent: { + prototype: RTCStatsEvent; + new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent; +}; + +interface RTCStatsProvider extends EventTarget { + getStats(): Promise<RTCStatsReport>; + msGetStats(): Promise<RTCStatsReport>; +} + +declare var RTCStatsProvider: { + prototype: RTCStatsProvider; + new(): RTCStatsProvider; +}; + +interface RTCStatsReport { + forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; +} + +declare var RTCStatsReport: { + prototype: RTCStatsReport; + new(): RTCStatsReport; +}; + +interface RTCTrackEvent extends Event { + readonly receiver: RTCRtpReceiver; + readonly streams: ReadonlyArray<MediaStream>; + readonly track: MediaStreamTrack; + readonly transceiver: RTCRtpTransceiver; +} + +declare var RTCTrackEvent: { + prototype: RTCTrackEvent; + new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent; +}; + +interface RadioNodeList extends NodeList { + value: string; +} + +declare var RadioNodeList: { + prototype: RadioNodeList; + new(): RadioNodeList; +}; + +interface RandomSource { + getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T; +} + +declare var RandomSource: { + prototype: RandomSource; + new(): RandomSource; +}; + +interface Range extends AbstractRange { + /** + * Returns the node, furthest away from + * the document, that is an ancestor of both range's start node and end node. + */ + readonly commonAncestorContainer: Node; + cloneContents(): DocumentFragment; + cloneRange(): Range; + collapse(toStart?: boolean): void; + compareBoundaryPoints(how: number, sourceRange: Range): number; + /** + * Returns −1 if the point is before the range, 0 if the point is + * in the range, and 1 if the point is after the range. + */ + comparePoint(node: Node, offset: number): number; + createContextualFragment(fragment: string): DocumentFragment; + deleteContents(): void; + detach(): void; + extractContents(): DocumentFragment; + getBoundingClientRect(): ClientRect | DOMRect; + getClientRects(): ClientRectList | DOMRectList; + insertNode(node: Node): void; + /** + * Returns whether range intersects node. + */ + intersectsNode(node: Node): boolean; + isPointInRange(node: Node, offset: number): boolean; + selectNode(node: Node): void; + selectNodeContents(node: Node): void; + setEnd(node: Node, offset: number): void; + setEndAfter(node: Node): void; + setEndBefore(node: Node): void; + setStart(node: Node, offset: number): void; + setStartAfter(node: Node): void; + setStartBefore(node: Node): void; + surroundContents(newParent: Node): void; + readonly END_TO_END: number; + readonly END_TO_START: number; + readonly START_TO_END: number; + readonly START_TO_START: number; +} + +declare var Range: { + prototype: Range; + new(): Range; + readonly END_TO_END: number; + readonly END_TO_START: number; + readonly START_TO_END: number; + readonly START_TO_START: number; +}; + +interface ReadableByteStreamController { + readonly byobRequest: ReadableStreamBYOBRequest | undefined; + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: ArrayBufferView): void; + error(error?: any): void; +} + +interface ReadableStream<R = any> { + readonly locked: boolean; + cancel(reason?: any): Promise<void>; + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader<R>; + pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>; + pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>; + tee(): [ReadableStream<R>, ReadableStream<R>]; +} + +declare var ReadableStream: { + prototype: ReadableStream; + new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>; + new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; +}; + +interface ReadableStreamBYOBReader { + readonly closed: Promise<void>; + cancel(reason?: any): Promise<void>; + read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; + releaseLock(): void; +} + +declare var ReadableStreamBYOBReader: { + prototype: ReadableStreamBYOBReader; + new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader; +}; + +interface ReadableStreamBYOBRequest { + readonly view: ArrayBufferView; + respond(bytesWritten: number): void; + respondWithNewView(view: ArrayBufferView): void; +} + +interface ReadableStreamDefaultController<R = any> { + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: R): void; + error(error?: any): void; +} + +interface ReadableStreamDefaultReader<R = any> { + readonly closed: Promise<void>; + cancel(reason?: any): Promise<void>; + read(): Promise<ReadableStreamReadResult<R>>; + releaseLock(): void; +} + +interface ReadableStreamReadResult<T> { + done: boolean; + value: T; +} + +interface ReadableStreamReader<R = any> { + cancel(): Promise<void>; + read(): Promise<ReadableStreamReadResult<R>>; + releaseLock(): void; +} + +declare var ReadableStreamReader: { + prototype: ReadableStreamReader; + new(): ReadableStreamReader; +}; + +interface Request extends Body { + /** + * Returns the cache mode associated with request, which is a string indicating + * how the request will interact with the browser's cache when fetching. + */ + readonly cache: RequestCache; + /** + * Returns the credentials mode associated with request, which is a string + * indicating whether credentials will be sent with the request always, never, or only when sent to a + * same-origin URL. + */ + readonly credentials: RequestCredentials; + /** + * Returns the kind of resource requested by request, e.g., "document" or + * "script". + */ + readonly destination: RequestDestination; + /** + * Returns a Headers object consisting of the headers associated with request. + * Note that headers added in the network layer by the user agent will not be accounted for in this + * object, e.g., the "Host" header. + */ + readonly headers: Headers; + /** + * Returns request's subresource integrity metadata, which is a cryptographic hash of + * the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] + */ + readonly integrity: string; + /** + * Returns a boolean indicating whether or not request is for a history + * navigation (a.k.a. back-foward navigation). + */ + readonly isHistoryNavigation: boolean; + /** + * Returns a boolean indicating whether or not request is for a reload navigation. + */ + readonly isReloadNavigation: boolean; + /** + * Returns a boolean indicating whether or not request can outlive the global in which + * it was created. + */ + readonly keepalive: boolean; + /** + * Returns request's HTTP method, which is "GET" by default. + */ + readonly method: string; + /** + * Returns the mode associated with request, which is a string indicating + * whether the request will use CORS, or will be restricted to same-origin URLs. + */ + readonly mode: RequestMode; + /** + * Returns the redirect mode associated with request, which is a string + * indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. + */ + readonly redirect: RequestRedirect; + /** + * Returns the referrer of request. Its value can be a same-origin URL if + * explicitly set in init, the empty string to indicate no referrer, and + * "about:client" when defaulting to the global's default. This is used during + * fetching to determine the value of the `Referer` header of the request being made. + */ + readonly referrer: string; + /** + * Returns the referrer policy associated with request. This is used during + * fetching to compute the value of the request's referrer. + */ + readonly referrerPolicy: ReferrerPolicy; + /** + * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort + * event handler. + */ + readonly signal: AbortSignal; + /** + * Returns the URL of request as a string. + */ + readonly url: string; + clone(): Request; +} + +declare var Request: { + prototype: Request; + new(input: RequestInfo, init?: RequestInit): Request; +}; + +interface Response extends Body { + readonly headers: Headers; + readonly ok: boolean; + readonly redirected: boolean; + readonly status: number; + readonly statusText: string; + readonly trailer: Promise<Headers>; + readonly type: ResponseType; + readonly url: string; + clone(): Response; +} + +declare var Response: { + prototype: Response; + new(body?: BodyInit | null, init?: ResponseInit): Response; + error(): Response; + redirect(url: string, status?: number): Response; +}; + +interface SVGAElement extends SVGGraphicsElement, SVGURIReference { + readonly target: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAElement: { + prototype: SVGAElement; + new(): SVGAElement; +}; + +interface SVGAngle { + readonly unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + readonly SVG_ANGLETYPE_DEG: number; + readonly SVG_ANGLETYPE_GRAD: number; + readonly SVG_ANGLETYPE_RAD: number; + readonly SVG_ANGLETYPE_UNKNOWN: number; + readonly SVG_ANGLETYPE_UNSPECIFIED: number; +} + +declare var SVGAngle: { + prototype: SVGAngle; + new(): SVGAngle; + readonly SVG_ANGLETYPE_DEG: number; + readonly SVG_ANGLETYPE_GRAD: number; + readonly SVG_ANGLETYPE_RAD: number; + readonly SVG_ANGLETYPE_UNKNOWN: number; + readonly SVG_ANGLETYPE_UNSPECIFIED: number; +}; + +interface SVGAnimateElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateElement: { + prototype: SVGAnimateElement; + new(): SVGAnimateElement; +}; + +interface SVGAnimateMotionElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateMotionElement: { + prototype: SVGAnimateMotionElement; + new(): SVGAnimateMotionElement; +}; + +interface SVGAnimateTransformElement extends SVGAnimationElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimateTransformElement: { + prototype: SVGAnimateTransformElement; + new(): SVGAnimateTransformElement; +}; + +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 { + readonly targetElement: SVGElement; + getCurrentTime(): number; + getSimpleDuration(): number; + getStartTime(): number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGAnimationElement: { + prototype: SVGAnimationElement; + new(): SVGAnimationElement; +}; + +interface SVGCircleElement extends SVGGraphicsElement { + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly r: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGCircleElement: { + prototype: SVGCircleElement; + new(): SVGCircleElement; +}; + +interface SVGClipPathElement extends SVGGraphicsElement { + readonly clipPathUnits: SVGAnimatedEnumeration; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGClipPathElement: { + prototype: SVGClipPathElement; + new(): SVGClipPathElement; +}; + +interface SVGComponentTransferFunctionElement extends SVGElement { + readonly amplitude: SVGAnimatedNumber; + readonly exponent: SVGAnimatedNumber; + readonly intercept: SVGAnimatedNumber; + readonly offset: SVGAnimatedNumber; + readonly slope: SVGAnimatedNumber; + readonly tableValues: SVGAnimatedNumberList; + readonly type: SVGAnimatedEnumeration; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGComponentTransferFunctionElement: { + prototype: SVGComponentTransferFunctionElement; + new(): SVGComponentTransferFunctionElement; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; +}; + +interface SVGCursorElement extends SVGElement { + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGCursorElement: { + prototype: SVGCursorElement; + new(): SVGCursorElement; +}; + +interface SVGDefsElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGDefsElement: { + prototype: SVGDefsElement; + new(): SVGDefsElement; +}; + +interface SVGDescElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGDescElement: { + prototype: SVGDescElement; + new(): SVGDescElement; +}; + +interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap { +} + +interface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement, ElementCSSInlineStyle { + /** @deprecated */ + readonly className: any; + readonly ownerSVGElement: SVGSVGElement | null; + readonly viewportElement: SVGElement | null; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGElement: { + prototype: SVGElement; + new(): SVGElement; +}; + +interface SVGElementInstance extends EventTarget { + readonly correspondingElement: SVGElement; + readonly correspondingUseElement: SVGUseElement; +} + +declare var SVGElementInstance: { + prototype: SVGElementInstance; + new(): SVGElementInstance; +}; + +interface SVGElementInstanceList { + /** @deprecated */ + readonly length: number; + /** @deprecated */ + item(index: number): SVGElementInstance; +} + +declare var SVGElementInstanceList: { + prototype: SVGElementInstanceList; + new(): SVGElementInstanceList; +}; + +interface SVGEllipseElement extends SVGGraphicsElement { + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGEllipseElement: { + prototype: SVGEllipseElement; + new(): SVGEllipseElement; +}; + +interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly mode: SVGAnimatedEnumeration; + readonly SVG_FEBLEND_MODE_COLOR: number; + readonly SVG_FEBLEND_MODE_COLOR_BURN: number; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: number; + readonly SVG_FEBLEND_MODE_DARKEN: number; + readonly SVG_FEBLEND_MODE_DIFFERENCE: number; + readonly SVG_FEBLEND_MODE_EXCLUSION: number; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: number; + readonly SVG_FEBLEND_MODE_HUE: number; + readonly SVG_FEBLEND_MODE_LIGHTEN: number; + readonly SVG_FEBLEND_MODE_LUMINOSITY: number; + readonly SVG_FEBLEND_MODE_MULTIPLY: number; + readonly SVG_FEBLEND_MODE_NORMAL: number; + readonly SVG_FEBLEND_MODE_OVERLAY: number; + readonly SVG_FEBLEND_MODE_SATURATION: number; + readonly SVG_FEBLEND_MODE_SCREEN: number; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; + readonly SVG_FEBLEND_MODE_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEBlendElement: { + prototype: SVGFEBlendElement; + new(): SVGFEBlendElement; + readonly SVG_FEBLEND_MODE_COLOR: number; + readonly SVG_FEBLEND_MODE_COLOR_BURN: number; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: number; + readonly SVG_FEBLEND_MODE_DARKEN: number; + readonly SVG_FEBLEND_MODE_DIFFERENCE: number; + readonly SVG_FEBLEND_MODE_EXCLUSION: number; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: number; + readonly SVG_FEBLEND_MODE_HUE: number; + readonly SVG_FEBLEND_MODE_LIGHTEN: number; + readonly SVG_FEBLEND_MODE_LUMINOSITY: number; + readonly SVG_FEBLEND_MODE_MULTIPLY: number; + readonly SVG_FEBLEND_MODE_NORMAL: number; + readonly SVG_FEBLEND_MODE_OVERLAY: number; + readonly SVG_FEBLEND_MODE_SATURATION: number; + readonly SVG_FEBLEND_MODE_SCREEN: number; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; + readonly SVG_FEBLEND_MODE_UNKNOWN: number; +}; + +interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly type: SVGAnimatedEnumeration; + readonly values: SVGAnimatedNumberList; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEColorMatrixElement: { + prototype: SVGFEColorMatrixElement; + new(): SVGFEColorMatrixElement; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; +}; + +interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEComponentTransferElement: { + prototype: SVGFEComponentTransferElement; + new(): SVGFEComponentTransferElement; +}; + +interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly k1: SVGAnimatedNumber; + readonly k2: SVGAnimatedNumber; + readonly k3: SVGAnimatedNumber; + readonly k4: SVGAnimatedNumber; + readonly operator: SVGAnimatedEnumeration; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number; + readonly SVG_FECOMPOSITE_OPERATOR_IN: number; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: number; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: number; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFECompositeElement: { + prototype: SVGFECompositeElement; + new(): SVGFECompositeElement; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number; + readonly SVG_FECOMPOSITE_OPERATOR_IN: number; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: number; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: number; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; +}; + +interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly bias: SVGAnimatedNumber; + readonly divisor: SVGAnimatedNumber; + readonly edgeMode: SVGAnimatedEnumeration; + readonly in1: SVGAnimatedString; + readonly kernelMatrix: SVGAnimatedNumberList; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly orderX: SVGAnimatedInteger; + readonly orderY: SVGAnimatedInteger; + readonly preserveAlpha: SVGAnimatedBoolean; + readonly targetX: SVGAnimatedInteger; + readonly targetY: SVGAnimatedInteger; + readonly SVG_EDGEMODE_DUPLICATE: number; + readonly SVG_EDGEMODE_NONE: number; + readonly SVG_EDGEMODE_UNKNOWN: number; + readonly SVG_EDGEMODE_WRAP: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEConvolveMatrixElement: { + prototype: SVGFEConvolveMatrixElement; + new(): SVGFEConvolveMatrixElement; + readonly SVG_EDGEMODE_DUPLICATE: number; + readonly SVG_EDGEMODE_NONE: number; + readonly SVG_EDGEMODE_UNKNOWN: number; + readonly SVG_EDGEMODE_WRAP: number; +}; + +interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly diffuseConstant: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDiffuseLightingElement: { + prototype: SVGFEDiffuseLightingElement; + new(): SVGFEDiffuseLightingElement; +}; + +interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly scale: SVGAnimatedNumber; + readonly xChannelSelector: SVGAnimatedEnumeration; + readonly yChannelSelector: SVGAnimatedEnumeration; + readonly SVG_CHANNEL_A: number; + readonly SVG_CHANNEL_B: number; + readonly SVG_CHANNEL_G: number; + readonly SVG_CHANNEL_R: number; + readonly SVG_CHANNEL_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDisplacementMapElement: { + prototype: SVGFEDisplacementMapElement; + new(): SVGFEDisplacementMapElement; + readonly SVG_CHANNEL_A: number; + readonly SVG_CHANNEL_B: number; + readonly SVG_CHANNEL_G: number; + readonly SVG_CHANNEL_R: number; + readonly SVG_CHANNEL_UNKNOWN: number; +}; + +interface SVGFEDistantLightElement extends SVGElement { + readonly azimuth: SVGAnimatedNumber; + readonly elevation: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEDistantLightElement: { + prototype: SVGFEDistantLightElement; + new(): SVGFEDistantLightElement; +}; + +interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFloodElement: { + prototype: SVGFEFloodElement; + new(): SVGFEFloodElement; +}; + +interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncAElement: { + prototype: SVGFEFuncAElement; + new(): SVGFEFuncAElement; +}; + +interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncBElement: { + prototype: SVGFEFuncBElement; + new(): SVGFEFuncBElement; +}; + +interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncGElement: { + prototype: SVGFEFuncGElement; + new(): SVGFEFuncGElement; +}; + +interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEFuncRElement: { + prototype: SVGFEFuncRElement; + new(): SVGFEFuncRElement; +}; + +interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly stdDeviationX: SVGAnimatedNumber; + readonly stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEGaussianBlurElement: { + prototype: SVGFEGaussianBlurElement; + new(): SVGFEGaussianBlurElement; +}; + +interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEImageElement: { + prototype: SVGFEImageElement; + new(): SVGFEImageElement; +}; + +interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMergeElement: { + prototype: SVGFEMergeElement; + new(): SVGFEMergeElement; +}; + +interface SVGFEMergeNodeElement extends SVGElement { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMergeNodeElement: { + prototype: SVGFEMergeNodeElement; + new(): SVGFEMergeNodeElement; +}; + +interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly operator: SVGAnimatedEnumeration; + readonly radiusX: SVGAnimatedNumber; + readonly radiusY: SVGAnimatedNumber; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEMorphologyElement: { + prototype: SVGFEMorphologyElement; + new(): SVGFEMorphologyElement; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; +}; + +interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly dx: SVGAnimatedNumber; + readonly dy: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEOffsetElement: { + prototype: SVGFEOffsetElement; + new(): SVGFEOffsetElement; +}; + +interface SVGFEPointLightElement extends SVGElement { + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFEPointLightElement: { + prototype: SVGFEPointLightElement; + new(): SVGFEPointLightElement; +}; + +interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly specularConstant: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFESpecularLightingElement: { + prototype: SVGFESpecularLightingElement; + new(): SVGFESpecularLightingElement; +}; + +interface SVGFESpotLightElement extends SVGElement { + readonly limitingConeAngle: SVGAnimatedNumber; + readonly pointsAtX: SVGAnimatedNumber; + readonly pointsAtY: SVGAnimatedNumber; + readonly pointsAtZ: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFESpotLightElement: { + prototype: SVGFESpotLightElement; + new(): SVGFESpotLightElement; +}; + +interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFETileElement: { + prototype: SVGFETileElement; + new(): SVGFETileElement; +}; + +interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly baseFrequencyX: SVGAnimatedNumber; + readonly baseFrequencyY: SVGAnimatedNumber; + readonly numOctaves: SVGAnimatedInteger; + readonly seed: SVGAnimatedNumber; + readonly stitchTiles: SVGAnimatedEnumeration; + readonly type: SVGAnimatedEnumeration; + readonly SVG_STITCHTYPE_NOSTITCH: number; + readonly SVG_STITCHTYPE_STITCH: number; + readonly SVG_STITCHTYPE_UNKNOWN: number; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFETurbulenceElement: { + prototype: SVGFETurbulenceElement; + new(): SVGFETurbulenceElement; + readonly SVG_STITCHTYPE_NOSTITCH: number; + readonly SVG_STITCHTYPE_STITCH: number; + readonly SVG_STITCHTYPE_UNKNOWN: number; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; +}; + +interface SVGFilterElement extends SVGElement, SVGURIReference { + /** @deprecated */ + readonly filterResX: SVGAnimatedInteger; + /** @deprecated */ + readonly filterResY: SVGAnimatedInteger; + readonly filterUnits: SVGAnimatedEnumeration; + readonly height: SVGAnimatedLength; + readonly primitiveUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + /** @deprecated */ + setFilterRes(filterResX: number, filterResY: number): void; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGFilterElement: { + prototype: SVGFilterElement; + new(): SVGFilterElement; +}; + +interface SVGFilterPrimitiveStandardAttributes { + readonly height: SVGAnimatedLength; + readonly result: SVGAnimatedString; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; +} + +interface SVGFitToViewBox { + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly viewBox: SVGAnimatedRect; +} + +interface SVGForeignObjectElement extends SVGGraphicsElement { + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGForeignObjectElement: { + prototype: SVGForeignObjectElement; + new(): SVGForeignObjectElement; +}; + +interface SVGGElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGElement: { + prototype: SVGGElement; + new(): SVGGElement; +}; + +interface SVGGeometryElement extends SVGGraphicsElement { + readonly pathLength: SVGAnimatedNumber; + getPointAtLength(distance: number): DOMPoint; + getTotalLength(): number; + isPointInFill(point?: DOMPointInit): boolean; + isPointInStroke(point?: DOMPointInit): boolean; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGeometryElement: { + prototype: SVGGeometryElement; + new(): SVGGeometryElement; +}; + +interface SVGGradientElement extends SVGElement, SVGURIReference { + readonly gradientTransform: SVGAnimatedTransformList; + readonly gradientUnits: SVGAnimatedEnumeration; + readonly spreadMethod: SVGAnimatedEnumeration; + readonly SVG_SPREADMETHOD_PAD: number; + readonly SVG_SPREADMETHOD_REFLECT: number; + readonly SVG_SPREADMETHOD_REPEAT: number; + readonly SVG_SPREADMETHOD_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGradientElement: { + prototype: SVGGradientElement; + new(): SVGGradientElement; + readonly SVG_SPREADMETHOD_PAD: number; + readonly SVG_SPREADMETHOD_REFLECT: number; + readonly SVG_SPREADMETHOD_REPEAT: number; + readonly SVG_SPREADMETHOD_UNKNOWN: number; +}; + +interface SVGGraphicsElement extends SVGElement, SVGTests { + readonly transform: SVGAnimatedTransformList; + getBBox(options?: SVGBoundingBoxOptions): DOMRect; + getCTM(): DOMMatrix | null; + getScreenCTM(): DOMMatrix | null; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGGraphicsElement: { + prototype: SVGGraphicsElement; + new(): SVGGraphicsElement; +}; + +interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { + readonly height: SVGAnimatedLength; + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGImageElement: { + prototype: SVGImageElement; + new(): SVGImageElement; +}; + +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 SVGGraphicsElement { + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGLineElement: { + prototype: SVGLineElement; + new(): SVGLineElement; +}; + +interface SVGLinearGradientElement extends SVGGradientElement { + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGLinearGradientElement: { + prototype: SVGLinearGradientElement; + new(): SVGLinearGradientElement; +}; + +interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { + readonly markerHeight: SVGAnimatedLength; + readonly markerUnits: SVGAnimatedEnumeration; + readonly markerWidth: SVGAnimatedLength; + readonly orientAngle: SVGAnimatedAngle; + readonly orientType: SVGAnimatedEnumeration; + readonly refX: SVGAnimatedLength; + readonly refY: SVGAnimatedLength; + setOrientToAngle(angle: SVGAngle): void; + setOrientToAuto(): void; + readonly SVG_MARKERUNITS_STROKEWIDTH: number; + readonly SVG_MARKERUNITS_UNKNOWN: number; + readonly SVG_MARKERUNITS_USERSPACEONUSE: number; + readonly SVG_MARKER_ORIENT_ANGLE: number; + readonly SVG_MARKER_ORIENT_AUTO: number; + readonly SVG_MARKER_ORIENT_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMarkerElement: { + prototype: SVGMarkerElement; + new(): SVGMarkerElement; + readonly SVG_MARKERUNITS_STROKEWIDTH: number; + readonly SVG_MARKERUNITS_UNKNOWN: number; + readonly SVG_MARKERUNITS_USERSPACEONUSE: number; + readonly SVG_MARKER_ORIENT_ANGLE: number; + readonly SVG_MARKER_ORIENT_AUTO: number; + readonly SVG_MARKER_ORIENT_UNKNOWN: number; +}; + +interface SVGMaskElement extends SVGElement, SVGTests { + readonly height: SVGAnimatedLength; + readonly maskContentUnits: SVGAnimatedEnumeration; + readonly maskUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMaskElement: { + prototype: SVGMaskElement; + new(): SVGMaskElement; +}; + +interface SVGMetadataElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGMetadataElement: { + prototype: SVGMetadataElement; + new(): SVGMetadataElement; +}; + +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 SVGGraphicsElement { + /** @deprecated */ + readonly pathSegList: SVGPathSegList; + /** @deprecated */ + createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; + /** @deprecated */ + createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel; + /** @deprecated */ + createSVGPathSegClosePath(): SVGPathSegClosePath; + /** @deprecated */ + createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs; + /** @deprecated */ + createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel; + /** @deprecated */ + createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs; + /** @deprecated */ + createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel; + /** @deprecated */ + createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs; + /** @deprecated */ + createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel; + /** @deprecated */ + createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs; + /** @deprecated */ + createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel; + /** @deprecated */ + createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs; + /** @deprecated */ + createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs; + /** @deprecated */ + createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel; + /** @deprecated */ + createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel; + /** @deprecated */ + createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs; + /** @deprecated */ + createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel; + /** @deprecated */ + createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs; + /** @deprecated */ + createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel; + /** @deprecated */ + getPathSegAtLength(distance: number): number; + getPointAtLength(distance: number): SVGPoint; + getTotalLength(): number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPathElement: { + prototype: SVGPathElement; + new(): SVGPathElement; +}; + +interface SVGPathSeg { + readonly pathSegType: number; + readonly pathSegTypeAsLetter: string; + readonly PATHSEG_ARC_ABS: number; + readonly PATHSEG_ARC_REL: number; + readonly PATHSEG_CLOSEPATH: number; + readonly PATHSEG_CURVETO_CUBIC_ABS: number; + readonly PATHSEG_CURVETO_CUBIC_REL: number; + readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; + readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; + readonly PATHSEG_CURVETO_QUADRATIC_ABS: number; + readonly PATHSEG_CURVETO_QUADRATIC_REL: number; + readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; + readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; + readonly PATHSEG_LINETO_ABS: number; + readonly PATHSEG_LINETO_HORIZONTAL_ABS: number; + readonly PATHSEG_LINETO_HORIZONTAL_REL: number; + readonly PATHSEG_LINETO_REL: number; + readonly PATHSEG_LINETO_VERTICAL_ABS: number; + readonly PATHSEG_LINETO_VERTICAL_REL: number; + readonly PATHSEG_MOVETO_ABS: number; + readonly PATHSEG_MOVETO_REL: number; + readonly PATHSEG_UNKNOWN: number; +} + +declare var SVGPathSeg: { + prototype: SVGPathSeg; + new(): SVGPathSeg; + readonly PATHSEG_ARC_ABS: number; + readonly PATHSEG_ARC_REL: number; + readonly PATHSEG_CLOSEPATH: number; + readonly PATHSEG_CURVETO_CUBIC_ABS: number; + readonly PATHSEG_CURVETO_CUBIC_REL: number; + readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; + readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; + readonly PATHSEG_CURVETO_QUADRATIC_ABS: number; + readonly PATHSEG_CURVETO_QUADRATIC_REL: number; + readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; + readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; + readonly PATHSEG_LINETO_ABS: number; + readonly PATHSEG_LINETO_HORIZONTAL_ABS: number; + readonly PATHSEG_LINETO_HORIZONTAL_REL: number; + readonly PATHSEG_LINETO_REL: number; + readonly PATHSEG_LINETO_VERTICAL_ABS: number; + readonly PATHSEG_LINETO_VERTICAL_REL: number; + readonly PATHSEG_MOVETO_ABS: number; + readonly PATHSEG_MOVETO_REL: number; + readonly PATHSEG_UNKNOWN: number; +}; + +interface SVGPathSegArcAbs extends SVGPathSeg { + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; +} + +declare var SVGPathSegArcAbs: { + prototype: SVGPathSegArcAbs; + new(): SVGPathSegArcAbs; +}; + +interface SVGPathSegArcRel extends SVGPathSeg { + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; +} + +declare var SVGPathSegArcRel: { + prototype: SVGPathSegArcRel; + new(): SVGPathSegArcRel; +}; + +interface SVGPathSegClosePath extends SVGPathSeg { +} + +declare var SVGPathSegClosePath: { + prototype: SVGPathSegClosePath; + new(): SVGPathSegClosePath; +}; + +interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicAbs: { + prototype: SVGPathSegCurvetoCubicAbs; + new(): SVGPathSegCurvetoCubicAbs; +}; + +interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicRel: { + prototype: SVGPathSegCurvetoCubicRel; + new(): SVGPathSegCurvetoCubicRel; +}; + +interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { + x: number; + x2: number; + y: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicSmoothAbs: { + prototype: SVGPathSegCurvetoCubicSmoothAbs; + new(): SVGPathSegCurvetoCubicSmoothAbs; +}; + +interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { + x: number; + x2: number; + y: number; + y2: number; +} + +declare var SVGPathSegCurvetoCubicSmoothRel: { + prototype: SVGPathSegCurvetoCubicSmoothRel; + new(): SVGPathSegCurvetoCubicSmoothRel; +}; + +interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { + x: number; + x1: number; + y: number; + y1: number; +} + +declare var SVGPathSegCurvetoQuadraticAbs: { + prototype: SVGPathSegCurvetoQuadraticAbs; + new(): SVGPathSegCurvetoQuadraticAbs; +}; + +interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { + x: number; + x1: number; + y: number; + y1: number; +} + +declare var SVGPathSegCurvetoQuadraticRel: { + prototype: SVGPathSegCurvetoQuadraticRel; + new(): SVGPathSegCurvetoQuadraticRel; +}; + +interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegCurvetoQuadraticSmoothAbs: { + prototype: SVGPathSegCurvetoQuadraticSmoothAbs; + new(): SVGPathSegCurvetoQuadraticSmoothAbs; +}; + +interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegCurvetoQuadraticSmoothRel: { + prototype: SVGPathSegCurvetoQuadraticSmoothRel; + new(): SVGPathSegCurvetoQuadraticSmoothRel; +}; + +interface SVGPathSegLinetoAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegLinetoAbs: { + prototype: SVGPathSegLinetoAbs; + new(): SVGPathSegLinetoAbs; +}; + +interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { + x: number; +} + +declare var SVGPathSegLinetoHorizontalAbs: { + prototype: SVGPathSegLinetoHorizontalAbs; + new(): SVGPathSegLinetoHorizontalAbs; +}; + +interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { + x: number; +} + +declare var SVGPathSegLinetoHorizontalRel: { + prototype: SVGPathSegLinetoHorizontalRel; + new(): SVGPathSegLinetoHorizontalRel; +}; + +interface SVGPathSegLinetoRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegLinetoRel: { + prototype: SVGPathSegLinetoRel; + new(): SVGPathSegLinetoRel; +}; + +interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { + y: number; +} + +declare var SVGPathSegLinetoVerticalAbs: { + prototype: SVGPathSegLinetoVerticalAbs; + new(): SVGPathSegLinetoVerticalAbs; +}; + +interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { + y: number; +} + +declare var SVGPathSegLinetoVerticalRel: { + prototype: SVGPathSegLinetoVerticalRel; + new(): SVGPathSegLinetoVerticalRel; +}; + +interface SVGPathSegList { + readonly numberOfItems: number; + appendItem(newItem: SVGPathSeg): SVGPathSeg; + clear(): void; + getItem(index: number): SVGPathSeg; + initialize(newItem: SVGPathSeg): SVGPathSeg; + insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg; + removeItem(index: number): SVGPathSeg; + replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg; +} + +declare var SVGPathSegList: { + prototype: SVGPathSegList; + new(): SVGPathSegList; +}; + +interface SVGPathSegMovetoAbs extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegMovetoAbs: { + prototype: SVGPathSegMovetoAbs; + new(): SVGPathSegMovetoAbs; +}; + +interface SVGPathSegMovetoRel extends SVGPathSeg { + x: number; + y: number; +} + +declare var SVGPathSegMovetoRel: { + prototype: SVGPathSegMovetoRel; + new(): SVGPathSegMovetoRel; +}; + +interface SVGPatternElement extends SVGElement, SVGTests, SVGFitToViewBox, SVGURIReference { + readonly height: SVGAnimatedLength; + readonly patternContentUnits: SVGAnimatedEnumeration; + readonly patternTransform: SVGAnimatedTransformList; + readonly patternUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPatternElement: { + prototype: SVGPatternElement; + new(): SVGPatternElement; +}; + +interface SVGPointList { + readonly numberOfItems: number; + appendItem(newItem: SVGPoint): SVGPoint; + clear(): void; + getItem(index: number): SVGPoint; + initialize(newItem: SVGPoint): SVGPoint; + insertItemBefore(newItem: SVGPoint, index: number): SVGPoint; + removeItem(index: number): SVGPoint; + replaceItem(newItem: SVGPoint, index: number): SVGPoint; +} + +declare var SVGPointList: { + prototype: SVGPointList; + new(): SVGPointList; +}; + +interface SVGPolygonElement extends SVGGraphicsElement, SVGAnimatedPoints { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPolygonElement: { + prototype: SVGPolygonElement; + new(): SVGPolygonElement; +}; + +interface SVGPolylineElement extends SVGGraphicsElement, SVGAnimatedPoints { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGPolylineElement: { + prototype: SVGPolylineElement; + new(): SVGPolylineElement; +}; + +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 fx: SVGAnimatedLength; + readonly fy: SVGAnimatedLength; + readonly r: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGRadialGradientElement: { + prototype: SVGRadialGradientElement; + new(): SVGRadialGradientElement; +}; + +interface SVGRectElement extends SVGGraphicsElement { + readonly height: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGRectElement: { + prototype: SVGRectElement; + new(): SVGRectElement; +}; + +interface SVGSVGElementEventMap extends SVGElementEventMap { + "SVGUnload": Event; + "SVGZoom": SVGZoomEvent; +} + +interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan { + /** @deprecated */ + contentScriptType: string; + /** @deprecated */ + contentStyleType: string; + currentScale: number; + readonly currentTranslate: SVGPoint; + readonly height: SVGAnimatedLength; + onunload: ((this: SVGSVGElement, ev: Event) => any) | null; + onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null; + /** @deprecated */ + readonly pixelUnitToMillimeterX: number; + /** @deprecated */ + readonly pixelUnitToMillimeterY: number; + /** @deprecated */ + readonly screenPixelToMillimeterX: number; + /** @deprecated */ + readonly screenPixelToMillimeterY: number; + /** @deprecated */ + readonly viewport: SVGRect; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + checkEnclosure(element: SVGElement, rect: SVGRect): boolean; + checkIntersection(element: SVGElement, rect: SVGRect): boolean; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): SVGMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): SVGPoint; + createSVGRect(): SVGRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + deselectAll(): void; + /** @deprecated */ + forceRedraw(): void; + getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; + /** @deprecated */ + getCurrentTime(): number; + getElementById(elementId: string): Element; + getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; + getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; + /** @deprecated */ + pauseAnimations(): void; + /** @deprecated */ + setCurrentTime(seconds: number): void; + /** @deprecated */ + suspendRedraw(maxWaitMilliseconds: number): number; + /** @deprecated */ + unpauseAnimations(): void; + /** @deprecated */ + unsuspendRedraw(suspendHandleID: number): void; + /** @deprecated */ + unsuspendRedrawAll(): void; + addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSVGElement: { + prototype: SVGSVGElement; + new(): SVGSVGElement; + readonly SVG_ZOOMANDPAN_DISABLE: number; + readonly SVG_ZOOMANDPAN_MAGNIFY: number; + readonly SVG_ZOOMANDPAN_UNKNOWN: number; +}; + +interface SVGScriptElement extends SVGElement, SVGURIReference { + type: string; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGScriptElement: { + prototype: SVGScriptElement; + new(): SVGScriptElement; +}; + +interface SVGStopElement extends SVGElement { + readonly offset: SVGAnimatedNumber; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGStopElement: { + prototype: SVGStopElement; + new(): SVGStopElement; +}; + +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 { + disabled: boolean; + media: string; + title: string; + type: string; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGStyleElement: { + prototype: SVGStyleElement; + new(): SVGStyleElement; +}; + +interface SVGSwitchElement extends SVGGraphicsElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSwitchElement: { + prototype: SVGSwitchElement; + new(): SVGSwitchElement; +}; + +interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGSymbolElement: { + prototype: SVGSymbolElement; + new(): SVGSymbolElement; +}; + +interface SVGTSpanElement extends SVGTextPositioningElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTSpanElement: { + prototype: SVGTSpanElement; + new(): SVGTSpanElement; +}; + +interface SVGTests { + readonly requiredExtensions: SVGStringList; + readonly systemLanguage: SVGStringList; +} + +interface SVGTextContentElement extends SVGGraphicsElement { + readonly lengthAdjust: SVGAnimatedEnumeration; + readonly textLength: SVGAnimatedLength; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + selectSubString(charnum: number, nchars: number): void; + readonly LENGTHADJUST_SPACING: number; + readonly LENGTHADJUST_SPACINGANDGLYPHS: number; + readonly LENGTHADJUST_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextContentElement: { + prototype: SVGTextContentElement; + new(): SVGTextContentElement; + readonly LENGTHADJUST_SPACING: number; + readonly LENGTHADJUST_SPACINGANDGLYPHS: number; + readonly LENGTHADJUST_UNKNOWN: number; +}; + +interface SVGTextElement extends SVGTextPositioningElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextElement: { + prototype: SVGTextElement; + new(): SVGTextElement; +}; + +interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { + readonly method: SVGAnimatedEnumeration; + readonly spacing: SVGAnimatedEnumeration; + readonly startOffset: SVGAnimatedLength; + readonly TEXTPATH_METHODTYPE_ALIGN: number; + readonly TEXTPATH_METHODTYPE_STRETCH: number; + readonly TEXTPATH_METHODTYPE_UNKNOWN: number; + readonly TEXTPATH_SPACINGTYPE_AUTO: number; + readonly TEXTPATH_SPACINGTYPE_EXACT: number; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextPathElement: { + prototype: SVGTextPathElement; + new(): SVGTextPathElement; + readonly TEXTPATH_METHODTYPE_ALIGN: number; + readonly TEXTPATH_METHODTYPE_STRETCH: number; + readonly TEXTPATH_METHODTYPE_UNKNOWN: number; + readonly TEXTPATH_SPACINGTYPE_AUTO: number; + readonly TEXTPATH_SPACINGTYPE_EXACT: number; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; +}; + +interface SVGTextPositioningElement extends SVGTextContentElement { + readonly dx: SVGAnimatedLengthList; + readonly dy: SVGAnimatedLengthList; + readonly rotate: SVGAnimatedNumberList; + readonly x: SVGAnimatedLengthList; + readonly y: SVGAnimatedLengthList; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTextPositioningElement: { + prototype: SVGTextPositioningElement; + new(): SVGTextPositioningElement; +}; + +interface SVGTitleElement extends SVGElement { + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGTitleElement: { + prototype: SVGTitleElement; + new(): SVGTitleElement; +}; + +interface SVGTransform { + readonly angle: number; + readonly matrix: SVGMatrix; + readonly type: number; + setMatrix(matrix: SVGMatrix): void; + setRotate(angle: number, cx: number, cy: number): void; + setScale(sx: number, sy: number): void; + setSkewX(angle: number): void; + setSkewY(angle: number): void; + setTranslate(tx: number, ty: number): void; + readonly SVG_TRANSFORM_MATRIX: number; + readonly SVG_TRANSFORM_ROTATE: number; + readonly SVG_TRANSFORM_SCALE: number; + readonly SVG_TRANSFORM_SKEWX: number; + readonly SVG_TRANSFORM_SKEWY: number; + readonly SVG_TRANSFORM_TRANSLATE: number; + readonly SVG_TRANSFORM_UNKNOWN: number; +} + +declare var SVGTransform: { + prototype: SVGTransform; + new(): SVGTransform; + readonly SVG_TRANSFORM_MATRIX: number; + readonly SVG_TRANSFORM_ROTATE: number; + readonly SVG_TRANSFORM_SCALE: number; + readonly SVG_TRANSFORM_SKEWX: number; + readonly SVG_TRANSFORM_SKEWY: number; + readonly SVG_TRANSFORM_TRANSLATE: number; + readonly SVG_TRANSFORM_UNKNOWN: number; +}; + +interface SVGTransformList { + readonly numberOfItems: number; + appendItem(newItem: SVGTransform): SVGTransform; + clear(): void; + consolidate(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + getItem(index: number): SVGTransform; + initialize(newItem: SVGTransform): SVGTransform; + insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + removeItem(index: number): SVGTransform; + replaceItem(newItem: SVGTransform, index: number): SVGTransform; +} + +declare var SVGTransformList: { + prototype: SVGTransformList; + new(): SVGTransformList; +}; + +interface SVGURIReference { + readonly href: SVGAnimatedString; +} + +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 animatedInstanceRoot: SVGElementInstance | null; + readonly height: SVGAnimatedLength; + readonly instanceRoot: SVGElementInstance | null; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGUseElement: { + prototype: SVGUseElement; + new(): SVGUseElement; +}; + +interface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan { + /** @deprecated */ + readonly viewTarget: SVGStringList; + addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SVGViewElement: { + prototype: SVGViewElement; + new(): SVGViewElement; + readonly SVG_ZOOMANDPAN_DISABLE: number; + readonly SVG_ZOOMANDPAN_MAGNIFY: number; + readonly SVG_ZOOMANDPAN_UNKNOWN: number; +}; + +interface SVGZoomAndPan { + readonly zoomAndPan: number; +} + +declare var SVGZoomAndPan: { + readonly SVG_ZOOMANDPAN_DISABLE: number; + readonly SVG_ZOOMANDPAN_MAGNIFY: number; + readonly SVG_ZOOMANDPAN_UNKNOWN: number; +}; + +interface SVGZoomEvent extends UIEvent { + readonly newScale: number; + readonly newTranslate: SVGPoint; + readonly previousScale: number; + readonly previousTranslate: SVGPoint; + readonly zoomRectScreen: SVGRect; +} + +declare var SVGZoomEvent: { + prototype: SVGZoomEvent; + new(): SVGZoomEvent; +}; + +interface ScopedCredential { + readonly id: ArrayBuffer; + readonly type: ScopedCredentialType; +} + +declare var ScopedCredential: { + prototype: ScopedCredential; + new(): ScopedCredential; +}; + +interface ScopedCredentialInfo { + readonly credential: ScopedCredential; + readonly publicKey: CryptoKey; +} + +declare var ScopedCredentialInfo: { + prototype: ScopedCredentialInfo; + new(): ScopedCredentialInfo; +}; + +interface Screen { + readonly availHeight: number; + readonly availWidth: number; + readonly colorDepth: number; + readonly height: number; + readonly orientation: ScreenOrientation; + readonly pixelDepth: number; + readonly width: number; +} + +declare var Screen: { + prototype: Screen; + new(): Screen; +}; + +interface ScreenOrientationEventMap { + "change": Event; +} + +interface ScreenOrientation extends EventTarget { + readonly angle: number; + onchange: ((this: ScreenOrientation, ev: Event) => any) | null; + readonly type: OrientationType; + lock(orientation: OrientationLockType): Promise<void>; + unlock(): void; + addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ScreenOrientation: { + prototype: ScreenOrientation; + new(): ScreenOrientation; +}; + +interface ScriptProcessorNodeEventMap { + "audioprocess": AudioProcessingEvent; +} + +interface ScriptProcessorNode extends AudioNode { + /** @deprecated */ + readonly bufferSize: number; + /** @deprecated */ + onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null; + addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ScriptProcessorNode: { + prototype: ScriptProcessorNode; + new(): ScriptProcessorNode; +}; + +interface SecurityPolicyViolationEvent extends Event { + readonly blockedURI: string; + readonly columnNumber: number; + readonly documentURI: string; + readonly effectiveDirective: string; + readonly lineNumber: number; + readonly originalPolicy: string; + readonly referrer: string; + readonly sourceFile: string; + readonly statusCode: number; + readonly violatedDirective: string; +} + +declare var SecurityPolicyViolationEvent: { + prototype: SecurityPolicyViolationEvent; + new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; +}; + +interface Selection { + readonly anchorNode: Node; + readonly anchorOffset: number; + readonly baseNode: Node; + readonly baseOffset: number; + readonly extentNode: Node; + readonly extentOffset: number; + readonly focusNode: Node; + readonly focusOffset: number; + readonly isCollapsed: boolean; + readonly rangeCount: number; + readonly type: string; + addRange(range: Range): void; + collapse(parentNode: Node, offset: number): void; + collapseToEnd(): void; + collapseToStart(): void; + containsNode(node: Node, partlyContained: boolean): boolean; + deleteFromDocument(): void; + empty(): void; + extend(newNode: Node, offset: number): void; + getRangeAt(index: number): Range; + removeAllRanges(): void; + removeRange(range: Range): void; + selectAllChildren(parentNode: Node): void; + setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void; + setPosition(parentNode: Node, offset: number): void; + toString(): string; +} + +declare var Selection: { + prototype: Selection; + new(): Selection; +}; + +interface ServiceUIFrameContext { + getCachedFrameMessage(key: string): string; + postFrameMessage(key: string, data: string): void; +} +declare var ServiceUIFrameContext: ServiceUIFrameContext; + +interface ServiceWorkerEventMap extends AbstractWorkerEventMap { + "statechange": Event; +} + +interface ServiceWorker extends EventTarget, AbstractWorker { + onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; + readonly scriptURL: string; + readonly state: ServiceWorkerState; + postMessage(message: any, transfer?: Transferable[]): void; + addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorker: { + prototype: ServiceWorker; + new(): ServiceWorker; +}; + +interface ServiceWorkerContainerEventMap { + "controllerchange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface ServiceWorkerContainer extends EventTarget { + readonly controller: ServiceWorker | null; + oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; + onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + readonly ready: Promise<ServiceWorkerRegistration>; + getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>; + getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; + register(scriptURL: string, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; + startMessages(): void; + addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerContainer: { + prototype: ServiceWorkerContainer; + new(): ServiceWorkerContainer; +}; + +interface ServiceWorkerMessageEvent extends Event { + readonly data: any; + readonly lastEventId: string; + readonly origin: string; + readonly ports: ReadonlyArray<MessagePort> | null; + readonly source: ServiceWorker | MessagePort | null; +} + +declare var ServiceWorkerMessageEvent: { + prototype: ServiceWorkerMessageEvent; + new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent; +}; + +interface ServiceWorkerRegistrationEventMap { + "updatefound": Event; +} + +interface ServiceWorkerRegistration extends EventTarget { + readonly active: ServiceWorker | null; + readonly installing: ServiceWorker | null; + readonly navigationPreload: NavigationPreloadManager; + onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; + readonly pushManager: PushManager; + readonly scope: string; + readonly sync: SyncManager; + readonly updateViaCache: ServiceWorkerUpdateViaCache; + readonly waiting: ServiceWorker | null; + getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; + showNotification(title: string, options?: NotificationOptions): Promise<void>; + unregister(): Promise<boolean>; + update(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerRegistration: { + prototype: ServiceWorkerRegistration; + new(): ServiceWorkerRegistration; +}; + +interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment, DocumentOrShadowRoot { + readonly host: Element; + innerHTML: string; + readonly mode: ShadowRootMode; +} + +interface ShadowRootInit { + delegatesFocus?: boolean; + mode: "open" | "closed"; +} + +interface Slotable { + readonly assignedSlot: HTMLSlotElement | null; +} + +interface SourceBuffer extends EventTarget { + appendWindowEnd: number; + appendWindowStart: number; + readonly audioTracks: AudioTrackList; + readonly buffered: TimeRanges; + mode: AppendMode; + readonly textTracks: TextTrackList; + timestampOffset: number; + readonly updating: boolean; + readonly videoTracks: VideoTrackList; + abort(): void; + appendBuffer(data: ArrayBuffer | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void; + appendStream(stream: MSStream, maxSize?: number): void; + remove(start: number, end: number): void; +} + +declare var SourceBuffer: { + prototype: SourceBuffer; + new(): SourceBuffer; +}; + +interface SourceBufferList extends EventTarget { + readonly length: number; + item(index: number): SourceBuffer; + [index: number]: SourceBuffer; +} + +declare var SourceBufferList: { + prototype: SourceBufferList; + new(): SourceBufferList; +}; + +interface SpeechGrammar { + src: string; + weight: number; +} + +declare var SpeechGrammar: { + prototype: SpeechGrammar; + new(): SpeechGrammar; +}; + +interface SpeechGrammarList { + readonly length: number; + addFromString(string: string, weight?: number): void; + addFromURI(src: string, weight?: number): void; + item(index: number): SpeechGrammar; + [index: number]: SpeechGrammar; +} + +declare var SpeechGrammarList: { + prototype: SpeechGrammarList; + new(): SpeechGrammarList; +}; + +interface SpeechRecognitionEventMap { + "audioend": Event; + "audiostart": Event; + "end": Event; + "error": SpeechRecognitionError; + "nomatch": SpeechRecognitionEvent; + "result": SpeechRecognitionEvent; + "soundend": Event; + "soundstart": Event; + "speechend": Event; + "speechstart": Event; + "start": Event; +} + +interface SpeechRecognition extends EventTarget { + continuous: boolean; + grammars: SpeechGrammarList; + interimResults: boolean; + lang: string; + maxAlternatives: number; + onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null; + onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null; + onend: ((this: SpeechRecognition, ev: Event) => any) | null; + onerror: ((this: SpeechRecognition, ev: SpeechRecognitionError) => any) | null; + onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null; + onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null; + onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null; + onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null; + onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null; + onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null; + onstart: ((this: SpeechRecognition, ev: Event) => any) | null; + serviceURI: string; + abort(): void; + start(): void; + stop(): void; + addEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SpeechRecognition: { + prototype: SpeechRecognition; + new(): SpeechRecognition; +}; + +interface SpeechRecognitionAlternative { + readonly confidence: number; + readonly transcript: string; +} + +declare var SpeechRecognitionAlternative: { + prototype: SpeechRecognitionAlternative; + new(): SpeechRecognitionAlternative; +}; + +interface SpeechRecognitionError extends Event { + readonly error: SpeechRecognitionErrorCode; + readonly message: string; +} + +declare var SpeechRecognitionError: { + prototype: SpeechRecognitionError; + new(): SpeechRecognitionError; +}; + +interface SpeechRecognitionEvent extends Event { + readonly emma: Document | null; + readonly interpretation: any; + readonly resultIndex: number; + readonly results: SpeechRecognitionResultList; +} + +declare var SpeechRecognitionEvent: { + prototype: SpeechRecognitionEvent; + new(): SpeechRecognitionEvent; +}; + +interface SpeechRecognitionResult { + readonly isFinal: boolean; + readonly length: number; + item(index: number): SpeechRecognitionAlternative; + [index: number]: SpeechRecognitionAlternative; +} + +declare var SpeechRecognitionResult: { + prototype: SpeechRecognitionResult; + new(): SpeechRecognitionResult; +}; + +interface SpeechRecognitionResultList { + readonly length: number; + item(index: number): SpeechRecognitionResult; + [index: number]: SpeechRecognitionResult; +} + +declare var SpeechRecognitionResultList: { + prototype: SpeechRecognitionResultList; + new(): SpeechRecognitionResultList; +}; + +interface SpeechSynthesisEventMap { + "voiceschanged": Event; +} + +interface SpeechSynthesis extends EventTarget { + onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null; + readonly paused: boolean; + readonly pending: boolean; + readonly speaking: boolean; + cancel(): void; + getVoices(): SpeechSynthesisVoice[]; + pause(): void; + resume(): void; + speak(utterance: SpeechSynthesisUtterance): void; + addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SpeechSynthesis: { + prototype: SpeechSynthesis; + new(): SpeechSynthesis; +}; + +interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { + readonly error: SpeechSynthesisErrorCode; +} + +declare var SpeechSynthesisErrorEvent: { + prototype: SpeechSynthesisErrorEvent; + new(): SpeechSynthesisErrorEvent; +}; + +interface SpeechSynthesisEvent extends Event { + readonly charIndex: number; + readonly elapsedTime: number; + readonly name: string; + readonly utterance: SpeechSynthesisUtterance; +} + +declare var SpeechSynthesisEvent: { + prototype: SpeechSynthesisEvent; + new(): SpeechSynthesisEvent; +}; + +interface SpeechSynthesisUtteranceEventMap { + "boundary": SpeechSynthesisEvent; + "end": SpeechSynthesisEvent; + "error": SpeechSynthesisErrorEvent; + "mark": SpeechSynthesisEvent; + "pause": SpeechSynthesisEvent; + "resume": SpeechSynthesisEvent; + "start": SpeechSynthesisEvent; +} + +interface SpeechSynthesisUtterance extends EventTarget { + lang: string; + onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null; + onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; + pitch: number; + rate: number; + text: string; + voice: SpeechSynthesisVoice; + volume: number; + addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var SpeechSynthesisUtterance: { + prototype: SpeechSynthesisUtterance; + new(): SpeechSynthesisUtterance; + new(text: string): SpeechSynthesisUtterance; +}; + +interface SpeechSynthesisVoice { + readonly default: boolean; + readonly lang: string; + readonly localService: boolean; + readonly name: string; + readonly voiceURI: string; +} + +declare var SpeechSynthesisVoice: { + prototype: SpeechSynthesisVoice; + new(): SpeechSynthesisVoice; +}; + +interface StaticRange extends AbstractRange { +} + +declare var StaticRange: { + prototype: StaticRange; + new(): StaticRange; +}; + +interface StereoPannerNode extends AudioNode { + readonly pan: AudioParam; +} + +declare var StereoPannerNode: { + prototype: StereoPannerNode; + new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode; +}; + +interface Storage { + /** + * Returns the number of key/value pairs currently present in the list associated with the + * object. + */ + readonly length: number; + /** + * Empties the list associated with the object of all key/value pairs, if there are any. + */ + clear(): void; + /** + * value = storage[key] + */ + getItem(key: string): string | null; + /** + * Returns the name of the nth key in the list, or null if n is greater + * than or equal to the number of key/value pairs in the object. + */ + key(index: number): string | null; + /** + * delete storage[key] + */ + removeItem(key: string): void; + /** + * storage[key] = value + */ + setItem(key: string, value: string): void; + [name: string]: any; +} + +declare var Storage: { + prototype: Storage; + new(): Storage; +}; + +interface StorageEvent extends Event { + /** + * Returns the key of the storage item being changed. + */ + readonly key: string | null; + /** + * Returns the new value of the key of the storage item whose value is being changed. + */ + readonly newValue: string | null; + /** + * Returns the old value of the key of the storage item whose value is being changed. + */ + readonly oldValue: string | null; + /** + * Returns the Storage object that was affected. + */ + readonly storageArea: Storage | null; + /** + * Returns the URL of the document whose storage item changed. + */ + readonly url: string; +} + +declare var StorageEvent: { + prototype: StorageEvent; + new(type: string, eventInitDict?: StorageEventInit): StorageEvent; +}; + +interface StorageManager { + estimate(): Promise<StorageEstimate>; + persist(): Promise<boolean>; + persisted(): Promise<boolean>; +} + +declare var StorageManager: { + prototype: StorageManager; + new(): StorageManager; +}; + +interface StyleMedia { + readonly type: string; + matchMedium(mediaquery: string): boolean; +} + +declare var StyleMedia: { + prototype: StyleMedia; + new(): StyleMedia; +}; + +interface StyleSheet { + disabled: boolean; + readonly href: string | null; + readonly media: MediaList; + readonly ownerNode: Node; + readonly parentStyleSheet: StyleSheet | null; + readonly title: string | null; + readonly type: string; +} + +declare var StyleSheet: { + prototype: StyleSheet; + new(): StyleSheet; +}; + +interface StyleSheetList { + readonly length: number; + item(index: number): StyleSheet | null; + [index: number]: StyleSheet; +} + +declare var StyleSheetList: { + prototype: StyleSheetList; + new(): StyleSheetList; +}; + +interface SubtleCrypto { + decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>; + deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>; + exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>; + exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>; + generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>; + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>; +} + +declare var SubtleCrypto: { + prototype: SubtleCrypto; + new(): SubtleCrypto; +}; + +interface SyncManager { + getTags(): Promise<string[]>; + register(tag: string): Promise<void>; +} + +declare var SyncManager: { + prototype: SyncManager; + new(): SyncManager; +}; + +interface Text extends CharacterData, Slotable { + readonly assignedSlot: HTMLSlotElement | null; + /** + * Returns the combined data of all direct Text node siblings. + */ + readonly wholeText: string; + /** + * Splits data at the given offset and returns the remainder as Text node. + */ + splitText(offset: number): Text; +} + +declare var Text: { + prototype: Text; + new(data?: string): Text; +}; + +interface TextDecoder { + /** + * Returns encoding's name, lowercased. + */ + readonly encoding: string; + /** + * Returns true if error mode is "fatal", and false + * otherwise. + */ + readonly fatal: boolean; + /** + * Returns true if ignore BOM flag is set, and false otherwise. + */ + readonly ignoreBOM: boolean; + /** + * Returns the result of running encoding's decoder. The + * method can be invoked zero or more times with options's stream set to + * true, and then once without options's stream (or set to false), to process + * a fragmented stream. If the invocation without options's stream (or set to + * false) has no input, it's clearest to omit both arguments. + * var string = "", decoder = new TextDecoder(encoding), buffer; + * while(buffer = next_chunk()) { + * string += decoder.decode(buffer, {stream:true}); + * } + * string += decoder.decode(); // end-of-stream + * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. + */ + decode(input?: BufferSource, options?: TextDecodeOptions): string; +} + +declare var TextDecoder: { + prototype: TextDecoder; + new(label?: string, options?: TextDecoderOptions): TextDecoder; +}; + +interface TextEncoder { + /** + * Returns "utf-8". + */ + readonly encoding: string; + /** + * Returns the result of running UTF-8's encoder. + */ + encode(input?: string): Uint8Array; +} + +declare var TextEncoder: { + prototype: TextEncoder; + new(): TextEncoder; +}; + +interface TextEvent extends UIEvent { + readonly data: string; + initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void; + readonly DOM_INPUT_METHOD_DROP: number; + readonly DOM_INPUT_METHOD_HANDWRITING: number; + readonly DOM_INPUT_METHOD_IME: number; + readonly DOM_INPUT_METHOD_KEYBOARD: number; + readonly DOM_INPUT_METHOD_MULTIMODAL: number; + readonly DOM_INPUT_METHOD_OPTION: number; + readonly DOM_INPUT_METHOD_PASTE: number; + readonly DOM_INPUT_METHOD_SCRIPT: number; + readonly DOM_INPUT_METHOD_UNKNOWN: number; + readonly DOM_INPUT_METHOD_VOICE: number; +} + +declare var TextEvent: { + prototype: TextEvent; + new(): TextEvent; + readonly DOM_INPUT_METHOD_DROP: number; + readonly DOM_INPUT_METHOD_HANDWRITING: number; + readonly DOM_INPUT_METHOD_IME: number; + readonly DOM_INPUT_METHOD_KEYBOARD: number; + readonly DOM_INPUT_METHOD_MULTIMODAL: number; + readonly DOM_INPUT_METHOD_OPTION: number; + readonly DOM_INPUT_METHOD_PASTE: number; + readonly DOM_INPUT_METHOD_SCRIPT: number; + readonly DOM_INPUT_METHOD_UNKNOWN: number; + readonly DOM_INPUT_METHOD_VOICE: number; +}; + +interface TextMetrics { + readonly actualBoundingBoxAscent: number; + readonly actualBoundingBoxDescent: number; + readonly actualBoundingBoxLeft: number; + readonly actualBoundingBoxRight: number; + readonly alphabeticBaseline: number; + readonly emHeightAscent: number; + readonly emHeightDescent: number; + readonly fontBoundingBoxAscent: number; + readonly fontBoundingBoxDescent: number; + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + */ + readonly ideographicBaseline: number; + readonly width: number; +} + +declare var TextMetrics: { + prototype: TextMetrics; + new(): TextMetrics; +}; + +interface TextTrackEventMap { + "cuechange": Event; + "error": Event; + "load": Event; +} + +interface TextTrack extends EventTarget { + readonly activeCues: TextTrackCueList; + readonly cues: TextTrackCueList; + readonly inBandMetadataTrackDispatchType: string; + readonly kind: string; + readonly label: string; + readonly language: string; + mode: TextTrackMode | number; + oncuechange: ((this: TextTrack, ev: Event) => any) | null; + onerror: ((this: TextTrack, ev: Event) => any) | null; + onload: ((this: TextTrack, ev: Event) => any) | null; + readonly readyState: number; + addCue(cue: TextTrackCue): void; + removeCue(cue: TextTrackCue): void; + readonly DISABLED: number; + readonly ERROR: number; + readonly HIDDEN: number; + readonly LOADED: number; + readonly LOADING: number; + readonly NONE: number; + readonly SHOWING: number; + addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var TextTrack: { + prototype: TextTrack; + new(): TextTrack; + readonly DISABLED: number; + readonly ERROR: number; + readonly HIDDEN: number; + readonly LOADED: number; + readonly LOADING: number; + readonly NONE: number; + readonly SHOWING: number; +}; + +interface TextTrackCueEventMap { + "enter": Event; + "exit": Event; +} + +interface TextTrackCue extends EventTarget { + endTime: number; + id: string; + onenter: ((this: TextTrackCue, ev: Event) => any) | null; + onexit: ((this: TextTrackCue, ev: Event) => any) | null; + pauseOnExit: boolean; + startTime: number; + text: string; + readonly track: TextTrack; + getCueAsHTML(): DocumentFragment; + addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var TextTrackCue: { + prototype: TextTrackCue; + new(startTime: number, endTime: number, text: string): TextTrackCue; +}; + +interface TextTrackCueList { + readonly length: number; + getCueById(id: string): TextTrackCue; + item(index: number): TextTrackCue; + [index: number]: TextTrackCue; +} + +declare var TextTrackCueList: { + prototype: TextTrackCueList; + new(): TextTrackCueList; +}; + +interface TextTrackListEventMap { + "addtrack": TrackEvent; +} + +interface TextTrackList extends EventTarget { + readonly length: number; + onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + item(index: number): TextTrack; + addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: TextTrack; +} + +declare var TextTrackList: { + prototype: TextTrackList; + new(): TextTrackList; +}; + +interface TimeRanges { + readonly length: number; + end(index: number): number; + start(index: number): number; +} + +declare var TimeRanges: { + prototype: TimeRanges; + new(): TimeRanges; +}; + +interface Touch { + readonly altitudeAngle: number; + readonly azimuthAngle: number; + readonly clientX: number; + readonly clientY: number; + readonly force: number; + readonly identifier: number; + readonly pageX: number; + readonly pageY: number; + readonly radiusX: number; + readonly radiusY: number; + readonly rotationAngle: number; + readonly screenX: number; + readonly screenY: number; + readonly target: EventTarget; + readonly touchType: TouchType; +} + +declare var Touch: { + prototype: Touch; + new(touchInitDict: TouchInit): Touch; +}; + +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: VideoTrack | AudioTrack | TextTrack | null; +} + +declare var TrackEvent: { + prototype: TrackEvent; + new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent; +}; + +interface TransformStream<I = any, O = any> { + readonly readable: ReadableStream<O>; + readonly writable: WritableStream<I>; +} + +declare var TransformStream: { + prototype: TransformStream; + new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; +}; + +interface TransformStreamDefaultController<O = any> { + readonly desiredSize: number | null; + enqueue(chunk: O): void; + error(reason?: any): void; + terminate(): void; +} + +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; + initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; +} + +declare var UIEvent: { + prototype: UIEvent; + new(typeArg: string, eventInitDict?: UIEventInit): UIEvent; +}; + +interface URL { + hash: string; + host: string; + hostname: string; + href: string; + readonly origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + readonly searchParams: URLSearchParams; + username: string; + toJSON(): string; +} + +declare var URL: { + prototype: URL; + new(url: string, base?: string | URL): URL; + createObjectURL(object: any): string; + revokeObjectURL(url: string): void; +}; + +type webkitURL = URL; +declare var webkitURL: typeof URL; + +interface URLSearchParams { + /** + * Appends a specified key/value pair as a new search parameter. + */ + append(name: string, value: string): void; + /** + * Deletes the given search parameter, and its associated value, from the list of all search parameters. + */ + delete(name: string): void; + /** + * Returns the first value associated to the given search parameter. + */ + get(name: string): string | null; + /** + * Returns all the values association with a given search parameter. + */ + getAll(name: string): string[]; + /** + * Returns a Boolean indicating if such a search parameter exists. + */ + has(name: string): boolean; + /** + * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. + */ + set(name: string, value: string): void; + sort(): void; + forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; +} + +declare var URLSearchParams: { + prototype: URLSearchParams; + new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; +}; + +interface VRDisplay extends EventTarget { + readonly capabilities: VRDisplayCapabilities; + depthFar: number; + depthNear: number; + readonly displayId: number; + readonly displayName: string; + readonly isConnected: boolean; + readonly isPresenting: boolean; + readonly stageParameters: VRStageParameters | null; + cancelAnimationFrame(handle: number): void; + exitPresent(): Promise<void>; + getEyeParameters(whichEye: string): VREyeParameters; + getFrameData(frameData: VRFrameData): boolean; + getLayers(): VRLayer[]; + /** @deprecated */ + getPose(): VRPose; + requestAnimationFrame(callback: FrameRequestCallback): number; + requestPresent(layers: VRLayer[]): Promise<void>; + resetPose(): void; + submitFrame(pose?: VRPose): void; +} + +declare var VRDisplay: { + prototype: VRDisplay; + new(): VRDisplay; +}; + +interface VRDisplayCapabilities { + readonly canPresent: boolean; + readonly hasExternalDisplay: boolean; + readonly hasOrientation: boolean; + readonly hasPosition: boolean; + readonly maxLayers: number; +} + +declare var VRDisplayCapabilities: { + prototype: VRDisplayCapabilities; + new(): VRDisplayCapabilities; +}; + +interface VRDisplayEvent extends Event { + readonly display: VRDisplay; + readonly reason: VRDisplayEventReason | null; +} + +declare var VRDisplayEvent: { + prototype: VRDisplayEvent; + new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent; +}; + +interface VREyeParameters { + /** @deprecated */ + readonly fieldOfView: VRFieldOfView; + readonly offset: Float32Array; + readonly renderHeight: number; + readonly renderWidth: number; +} + +declare var VREyeParameters: { + prototype: VREyeParameters; + new(): VREyeParameters; +}; + +interface VRFieldOfView { + readonly downDegrees: number; + readonly leftDegrees: number; + readonly rightDegrees: number; + readonly upDegrees: number; +} + +declare var VRFieldOfView: { + prototype: VRFieldOfView; + new(): VRFieldOfView; +}; + +interface VRFrameData { + readonly leftProjectionMatrix: Float32Array; + readonly leftViewMatrix: Float32Array; + readonly pose: VRPose; + readonly rightProjectionMatrix: Float32Array; + readonly rightViewMatrix: Float32Array; + readonly timestamp: number; +} + +declare var VRFrameData: { + prototype: VRFrameData; + new(): VRFrameData; +}; + +interface VRPose { + readonly angularAcceleration: Float32Array | null; + readonly angularVelocity: Float32Array | null; + readonly linearAcceleration: Float32Array | null; + readonly linearVelocity: Float32Array | null; + readonly orientation: Float32Array | null; + readonly position: Float32Array | null; + readonly timestamp: number; +} + +declare var VRPose: { + prototype: VRPose; + new(): VRPose; +}; + +interface VTTCue extends TextTrackCue { + align: AlignSetting; + line: LineAndPositionSetting; + lineAlign: LineAlignSetting; + position: LineAndPositionSetting; + positionAlign: PositionAlignSetting; + region: VTTRegion | null; + size: number; + snapToLines: boolean; + text: string; + vertical: DirectionSetting; + getCueAsHTML(): DocumentFragment; + addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var VTTCue: { + prototype: VTTCue; + new(startTime: number, endTime: number, text: string): VTTCue; +}; + +interface VTTRegion { + id: string; + lines: number; + regionAnchorX: number; + regionAnchorY: number; + scroll: ScrollSetting; + viewportAnchorX: number; + viewportAnchorY: number; + width: number; +} + +declare var VTTRegion: { + prototype: VTTRegion; + new(): VTTRegion; +}; + +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 VideoPlaybackQuality { + readonly corruptedVideoFrames: number; + readonly creationTime: number; + readonly droppedVideoFrames: number; + readonly totalFrameDelay: number; + readonly totalVideoFrames: number; +} + +declare var VideoPlaybackQuality: { + prototype: VideoPlaybackQuality; + new(): VideoPlaybackQuality; +}; + +interface VideoTrack { + readonly id: string; + kind: string; + readonly label: string; + language: string; + selected: boolean; + readonly sourceBuffer: SourceBuffer; +} + +declare var VideoTrack: { + prototype: VideoTrack; + new(): VideoTrack; +}; + +interface VideoTrackListEventMap { + "addtrack": TrackEvent; + "change": Event; + "removetrack": TrackEvent; +} + +interface VideoTrackList extends EventTarget { + readonly length: number; + onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null; + onchange: ((this: VideoTrackList, ev: Event) => any) | null; + onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null; + readonly selectedIndex: number; + getTrackById(id: string): VideoTrack | null; + item(index: number): VideoTrack; + addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + [index: number]: VideoTrack; +} + +declare var VideoTrackList: { + prototype: VideoTrackList; + new(): VideoTrackList; +}; + +interface WEBGL_color_buffer_float { + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum; + readonly RGBA32F_EXT: GLenum; + readonly UNSIGNED_NORMALIZED_EXT: GLenum; +} + +interface WEBGL_compressed_texture_astc { + getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum; +} + +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 WaveShaperNode extends AudioNode { + curve: Float32Array | null; + oversample: OverSampleType; +} + +declare var WaveShaperNode: { + prototype: WaveShaperNode; + new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode; +}; + +interface WebAuthentication { + getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>; + makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>; +} + +declare var WebAuthentication: { + prototype: WebAuthentication; + new(): WebAuthentication; +}; + +interface WebAuthnAssertion { + readonly authenticatorData: ArrayBuffer; + readonly clientData: ArrayBuffer; + readonly credential: ScopedCredential; + readonly signature: ArrayBuffer; +} + +declare var WebAuthnAssertion: { + prototype: WebAuthnAssertion; + new(): WebAuthnAssertion; +}; + +interface WebGLActiveInfo { + readonly name: string; + readonly size: GLint; + readonly type: GLenum; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +}; + +interface WebGLBuffer extends WebGLObject { +} + +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 extends WebGLObject { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +}; + +interface WebGLObject { +} + +declare var WebGLObject: { + prototype: WebGLObject; + new(): WebGLObject; +}; + +interface WebGLProgram extends WebGLObject { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +}; + +interface WebGLRenderbuffer extends WebGLObject { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +}; + +interface WebGLRenderingContext extends WebGLRenderingContextBase { +} + +declare var WebGLRenderingContext: { + prototype: WebGLRenderingContext; + new(): WebGLRenderingContext; + readonly ACTIVE_ATTRIBUTES: GLenum; + readonly ACTIVE_TEXTURE: GLenum; + readonly ACTIVE_UNIFORMS: GLenum; + readonly ALIASED_LINE_WIDTH_RANGE: GLenum; + readonly ALIASED_POINT_SIZE_RANGE: GLenum; + readonly ALPHA: GLenum; + readonly ALPHA_BITS: GLenum; + readonly ALWAYS: GLenum; + readonly ARRAY_BUFFER: GLenum; + readonly ARRAY_BUFFER_BINDING: GLenum; + readonly ATTACHED_SHADERS: GLenum; + readonly BACK: GLenum; + readonly BLEND: GLenum; + readonly BLEND_COLOR: GLenum; + readonly BLEND_DST_ALPHA: GLenum; + readonly BLEND_DST_RGB: GLenum; + readonly BLEND_EQUATION: GLenum; + readonly BLEND_EQUATION_ALPHA: GLenum; + readonly BLEND_EQUATION_RGB: GLenum; + readonly BLEND_SRC_ALPHA: GLenum; + readonly BLEND_SRC_RGB: GLenum; + readonly BLUE_BITS: GLenum; + readonly BOOL: GLenum; + readonly BOOL_VEC2: GLenum; + readonly BOOL_VEC3: GLenum; + readonly BOOL_VEC4: GLenum; + readonly BROWSER_DEFAULT_WEBGL: GLenum; + readonly BUFFER_SIZE: GLenum; + readonly BUFFER_USAGE: GLenum; + readonly BYTE: GLenum; + readonly CCW: GLenum; + readonly CLAMP_TO_EDGE: GLenum; + readonly COLOR_ATTACHMENT0: GLenum; + readonly COLOR_BUFFER_BIT: GLenum; + readonly COLOR_CLEAR_VALUE: GLenum; + readonly COLOR_WRITEMASK: GLenum; + readonly COMPILE_STATUS: GLenum; + readonly COMPRESSED_TEXTURE_FORMATS: GLenum; + readonly CONSTANT_ALPHA: GLenum; + readonly CONSTANT_COLOR: GLenum; + readonly CONTEXT_LOST_WEBGL: GLenum; + readonly CULL_FACE: GLenum; + readonly CULL_FACE_MODE: GLenum; + readonly CURRENT_PROGRAM: GLenum; + readonly CURRENT_VERTEX_ATTRIB: GLenum; + readonly CW: GLenum; + readonly DECR: GLenum; + readonly DECR_WRAP: GLenum; + readonly DELETE_STATUS: GLenum; + readonly DEPTH_ATTACHMENT: GLenum; + readonly DEPTH_BITS: GLenum; + readonly DEPTH_BUFFER_BIT: GLenum; + readonly DEPTH_CLEAR_VALUE: GLenum; + readonly DEPTH_COMPONENT: GLenum; + readonly DEPTH_COMPONENT16: GLenum; + readonly DEPTH_FUNC: GLenum; + readonly DEPTH_RANGE: GLenum; + readonly DEPTH_STENCIL: GLenum; + readonly DEPTH_STENCIL_ATTACHMENT: GLenum; + readonly DEPTH_TEST: GLenum; + readonly DEPTH_WRITEMASK: GLenum; + readonly DITHER: GLenum; + readonly DONT_CARE: GLenum; + readonly DST_ALPHA: GLenum; + readonly DST_COLOR: GLenum; + readonly DYNAMIC_DRAW: GLenum; + readonly ELEMENT_ARRAY_BUFFER: GLenum; + readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum; + readonly EQUAL: GLenum; + readonly FASTEST: GLenum; + readonly FLOAT: GLenum; + readonly FLOAT_MAT2: GLenum; + readonly FLOAT_MAT3: GLenum; + readonly FLOAT_MAT4: GLenum; + readonly FLOAT_VEC2: GLenum; + readonly FLOAT_VEC3: GLenum; + readonly FLOAT_VEC4: GLenum; + readonly FRAGMENT_SHADER: GLenum; + readonly FRAMEBUFFER: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum; + readonly FRAMEBUFFER_BINDING: GLenum; + readonly FRAMEBUFFER_COMPLETE: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum; + readonly FRAMEBUFFER_UNSUPPORTED: GLenum; + readonly FRONT: GLenum; + readonly FRONT_AND_BACK: GLenum; + readonly FRONT_FACE: GLenum; + readonly FUNC_ADD: GLenum; + readonly FUNC_REVERSE_SUBTRACT: GLenum; + readonly FUNC_SUBTRACT: GLenum; + readonly GENERATE_MIPMAP_HINT: GLenum; + readonly GEQUAL: GLenum; + readonly GREATER: GLenum; + readonly GREEN_BITS: GLenum; + readonly HIGH_FLOAT: GLenum; + readonly HIGH_INT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum; + readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum; + readonly INCR: GLenum; + readonly INCR_WRAP: GLenum; + readonly INT: GLenum; + readonly INT_VEC2: GLenum; + readonly INT_VEC3: GLenum; + readonly INT_VEC4: GLenum; + readonly INVALID_ENUM: GLenum; + readonly INVALID_FRAMEBUFFER_OPERATION: GLenum; + readonly INVALID_OPERATION: GLenum; + readonly INVALID_VALUE: GLenum; + readonly INVERT: GLenum; + readonly KEEP: GLenum; + readonly LEQUAL: GLenum; + readonly LESS: GLenum; + readonly LINEAR: GLenum; + readonly LINEAR_MIPMAP_LINEAR: GLenum; + readonly LINEAR_MIPMAP_NEAREST: GLenum; + readonly LINES: GLenum; + readonly LINE_LOOP: GLenum; + readonly LINE_STRIP: GLenum; + readonly LINE_WIDTH: GLenum; + readonly LINK_STATUS: GLenum; + readonly LOW_FLOAT: GLenum; + readonly LOW_INT: GLenum; + readonly LUMINANCE: GLenum; + readonly LUMINANCE_ALPHA: GLenum; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum; + readonly MAX_RENDERBUFFER_SIZE: GLenum; + readonly MAX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_TEXTURE_SIZE: GLenum; + readonly MAX_VARYING_VECTORS: GLenum; + readonly MAX_VERTEX_ATTRIBS: GLenum; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum; + readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum; + readonly MAX_VIEWPORT_DIMS: GLenum; + readonly MEDIUM_FLOAT: GLenum; + readonly MEDIUM_INT: GLenum; + readonly MIRRORED_REPEAT: GLenum; + readonly NEAREST: GLenum; + readonly NEAREST_MIPMAP_LINEAR: GLenum; + readonly NEAREST_MIPMAP_NEAREST: GLenum; + readonly NEVER: GLenum; + readonly NICEST: GLenum; + readonly NONE: GLenum; + readonly NOTEQUAL: GLenum; + readonly NO_ERROR: GLenum; + readonly ONE: GLenum; + readonly ONE_MINUS_CONSTANT_ALPHA: GLenum; + readonly ONE_MINUS_CONSTANT_COLOR: GLenum; + readonly ONE_MINUS_DST_ALPHA: GLenum; + readonly ONE_MINUS_DST_COLOR: GLenum; + readonly ONE_MINUS_SRC_ALPHA: GLenum; + readonly ONE_MINUS_SRC_COLOR: GLenum; + readonly OUT_OF_MEMORY: GLenum; + readonly PACK_ALIGNMENT: GLenum; + readonly POINTS: GLenum; + readonly POLYGON_OFFSET_FACTOR: GLenum; + readonly POLYGON_OFFSET_FILL: GLenum; + readonly POLYGON_OFFSET_UNITS: GLenum; + readonly RED_BITS: GLenum; + readonly RENDERBUFFER: GLenum; + readonly RENDERBUFFER_ALPHA_SIZE: GLenum; + readonly RENDERBUFFER_BINDING: GLenum; + readonly RENDERBUFFER_BLUE_SIZE: GLenum; + readonly RENDERBUFFER_DEPTH_SIZE: GLenum; + readonly RENDERBUFFER_GREEN_SIZE: GLenum; + readonly RENDERBUFFER_HEIGHT: GLenum; + readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum; + readonly RENDERBUFFER_RED_SIZE: GLenum; + readonly RENDERBUFFER_STENCIL_SIZE: GLenum; + readonly RENDERBUFFER_WIDTH: GLenum; + readonly RENDERER: GLenum; + readonly REPEAT: GLenum; + readonly REPLACE: GLenum; + readonly RGB: GLenum; + readonly RGB565: GLenum; + readonly RGB5_A1: GLenum; + readonly RGBA: GLenum; + readonly RGBA4: GLenum; + readonly SAMPLER_2D: GLenum; + readonly SAMPLER_CUBE: GLenum; + readonly SAMPLES: GLenum; + readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum; + readonly SAMPLE_BUFFERS: GLenum; + readonly SAMPLE_COVERAGE: GLenum; + readonly SAMPLE_COVERAGE_INVERT: GLenum; + readonly SAMPLE_COVERAGE_VALUE: GLenum; + readonly SCISSOR_BOX: GLenum; + readonly SCISSOR_TEST: GLenum; + readonly SHADER_TYPE: GLenum; + readonly SHADING_LANGUAGE_VERSION: GLenum; + readonly SHORT: GLenum; + readonly SRC_ALPHA: GLenum; + readonly SRC_ALPHA_SATURATE: GLenum; + readonly SRC_COLOR: GLenum; + readonly STATIC_DRAW: GLenum; + readonly STENCIL_ATTACHMENT: GLenum; + readonly STENCIL_BACK_FAIL: GLenum; + readonly STENCIL_BACK_FUNC: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_BACK_REF: GLenum; + readonly STENCIL_BACK_VALUE_MASK: GLenum; + readonly STENCIL_BACK_WRITEMASK: GLenum; + readonly STENCIL_BITS: GLenum; + readonly STENCIL_BUFFER_BIT: GLenum; + readonly STENCIL_CLEAR_VALUE: GLenum; + readonly STENCIL_FAIL: GLenum; + readonly STENCIL_FUNC: GLenum; + readonly STENCIL_INDEX8: GLenum; + readonly STENCIL_PASS_DEPTH_FAIL: GLenum; + readonly STENCIL_PASS_DEPTH_PASS: GLenum; + readonly STENCIL_REF: GLenum; + readonly STENCIL_TEST: GLenum; + readonly STENCIL_VALUE_MASK: GLenum; + readonly STENCIL_WRITEMASK: GLenum; + readonly STREAM_DRAW: GLenum; + readonly SUBPIXEL_BITS: GLenum; + readonly TEXTURE: GLenum; + readonly TEXTURE0: GLenum; + readonly TEXTURE1: GLenum; + readonly TEXTURE10: GLenum; + readonly TEXTURE11: GLenum; + readonly TEXTURE12: GLenum; + readonly TEXTURE13: GLenum; + readonly TEXTURE14: GLenum; + readonly TEXTURE15: GLenum; + readonly TEXTURE16: GLenum; + readonly TEXTURE17: GLenum; + readonly TEXTURE18: GLenum; + readonly TEXTURE19: GLenum; + readonly TEXTURE2: GLenum; + readonly TEXTURE20: GLenum; + readonly TEXTURE21: GLenum; + readonly TEXTURE22: GLenum; + readonly TEXTURE23: GLenum; + readonly TEXTURE24: GLenum; + readonly TEXTURE25: GLenum; + readonly TEXTURE26: GLenum; + readonly TEXTURE27: GLenum; + readonly TEXTURE28: GLenum; + readonly TEXTURE29: GLenum; + readonly TEXTURE3: GLenum; + readonly TEXTURE30: GLenum; + readonly TEXTURE31: GLenum; + readonly TEXTURE4: GLenum; + readonly TEXTURE5: GLenum; + readonly TEXTURE6: GLenum; + readonly TEXTURE7: GLenum; + readonly TEXTURE8: GLenum; + readonly TEXTURE9: GLenum; + readonly TEXTURE_2D: GLenum; + readonly TEXTURE_BINDING_2D: GLenum; + readonly TEXTURE_BINDING_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum; + readonly TEXTURE_MAG_FILTER: GLenum; + readonly TEXTURE_MIN_FILTER: GLenum; + readonly TEXTURE_WRAP_S: GLenum; + readonly TEXTURE_WRAP_T: GLenum; + readonly TRIANGLES: GLenum; + readonly TRIANGLE_FAN: GLenum; + readonly TRIANGLE_STRIP: GLenum; + readonly UNPACK_ALIGNMENT: GLenum; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum; + readonly UNPACK_FLIP_Y_WEBGL: GLenum; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum; + readonly UNSIGNED_BYTE: GLenum; + readonly UNSIGNED_INT: GLenum; + readonly UNSIGNED_SHORT: GLenum; + readonly UNSIGNED_SHORT_4_4_4_4: GLenum; + readonly UNSIGNED_SHORT_5_5_5_1: GLenum; + readonly UNSIGNED_SHORT_5_6_5: GLenum; + readonly VALIDATE_STATUS: GLenum; + readonly VENDOR: GLenum; + readonly VERSION: GLenum; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum; + readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum; + readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum; + readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum; + readonly VERTEX_SHADER: GLenum; + readonly VIEWPORT: GLenum; + readonly ZERO: GLenum; +}; + +interface WebGLRenderingContextBase { + readonly canvas: HTMLCanvasElement; + readonly drawingBufferHeight: GLsizei; + readonly drawingBufferWidth: GLsizei; + activeTexture(texture: GLenum): void; + attachShader(program: WebGLProgram, shader: WebGLShader): void; + bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; + bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; + bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; + bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + bindTexture(target: GLenum, texture: WebGLTexture | null): void; + blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; + blendEquation(mode: GLenum): void; + blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; + blendFunc(sfactor: GLenum, dfactor: GLenum): void; + blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + 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; + 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; + 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; + copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; + copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + createBuffer(): WebGLBuffer | null; + createFramebuffer(): WebGLFramebuffer | null; + createProgram(): WebGLProgram | null; + createRenderbuffer(): WebGLRenderbuffer | null; + createShader(type: GLenum): WebGLShader | null; + createTexture(): WebGLTexture | null; + cullFace(mode: GLenum): void; + deleteBuffer(buffer: WebGLBuffer | null): void; + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + deleteProgram(program: WebGLProgram | null): void; + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + deleteShader(shader: WebGLShader | null): void; + deleteTexture(texture: WebGLTexture | null): void; + depthFunc(func: GLenum): void; + depthMask(flag: GLboolean): void; + depthRange(zNear: GLclampf, zFar: GLclampf): void; + detachShader(program: WebGLProgram, shader: WebGLShader): void; + disable(cap: GLenum): void; + disableVertexAttribArray(index: GLuint): void; + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; + enable(cap: GLenum): void; + enableVertexAttribArray(index: GLuint): void; + finish(): void; + flush(): void; + framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; + frontFace(mode: GLenum): void; + generateMipmap(target: GLenum): void; + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + getAttribLocation(program: WebGLProgram, name: string): GLint; + getBufferParameter(target: GLenum, pname: GLenum): any; + getContextAttributes(): WebGLContextAttributes | null; + getError(): GLenum; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; + getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; + getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; + getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; + getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; + getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; + getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; + getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; + getExtension(extensionName: string): any; + getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; + getParameter(pname: GLenum): any; + getProgramInfoLog(program: WebGLProgram): string | null; + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + getShaderInfoLog(shader: WebGLShader): string | null; + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; + getShaderSource(shader: WebGLShader): string | null; + getSupportedExtensions(): string[] | null; + getTexParameter(target: GLenum, pname: GLenum): any; + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; + getVertexAttrib(index: GLuint, pname: GLenum): any; + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + hint(target: GLenum, mode: GLenum): void; + isBuffer(buffer: WebGLBuffer | null): GLboolean; + isContextLost(): boolean; + isEnabled(cap: GLenum): GLboolean; + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + isProgram(program: WebGLProgram | null): GLboolean; + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + isShader(shader: WebGLShader | null): GLboolean; + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + linkProgram(program: WebGLProgram): void; + pixelStorei(pname: GLenum, param: GLint): void; + polygonOffset(factor: GLfloat, units: GLfloat): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): 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; + 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; + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + texParameteri(target: GLenum, pname: GLenum, param: GLint): 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; + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): 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; + 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 WebGLShader extends WebGLObject { +} + +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 WebGLTexture extends WebGLObject { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +}; + +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +}; + +interface WebGLVertexArrayObjectOES extends WebGLObject { +} + +interface WebKitPoint { + x: number; + y: number; +} + +declare var WebKitPoint: { + prototype: WebKitPoint; + new(x?: number, y?: number): WebKitPoint; +}; + +interface WebSocketEventMap { + "close": CloseEvent; + "error": Event; + "message": MessageEvent; + "open": Event; +} + +interface WebSocket extends EventTarget { + binaryType: BinaryType; + readonly bufferedAmount: number; + readonly extensions: string; + onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; + onerror: ((this: WebSocket, ev: Event) => any) | null; + onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; + onopen: ((this: WebSocket, ev: Event) => any) | null; + readonly protocol: string; + readonly readyState: number; + readonly url: string; + close(code?: number, reason?: string): void; + send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; + readonly CLOSED: number; + readonly CLOSING: number; + readonly CONNECTING: number; + readonly OPEN: number; + addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WebSocket: { + prototype: WebSocket; + new(url: string, protocols?: string | string[]): WebSocket; + readonly CLOSED: number; + readonly CLOSING: number; + readonly CONNECTING: number; + readonly OPEN: number; +}; + +interface WheelEvent extends MouseEvent { + readonly deltaMode: number; + readonly deltaX: number; + readonly deltaY: number; + readonly deltaZ: number; + getCurrentPoint(element: Element): void; + initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void; + readonly DOM_DELTA_LINE: number; + readonly DOM_DELTA_PAGE: number; + readonly DOM_DELTA_PIXEL: number; +} + +declare var WheelEvent: { + prototype: WheelEvent; + new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent; + readonly DOM_DELTA_LINE: number; + readonly DOM_DELTA_PAGE: number; + readonly DOM_DELTA_PIXEL: number; +}; + +interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap { + "abort": UIEvent; + "afterprint": Event; + "beforeprint": Event; + "beforeunload": BeforeUnloadEvent; + "blur": FocusEvent; + "canplay": Event; + "canplaythrough": Event; + "change": Event; + "click": MouseEvent; + "compassneedscalibration": Event; + "contextmenu": MouseEvent; + "dblclick": MouseEvent; + "devicelight": DeviceLightEvent; + "devicemotion": DeviceMotionEvent; + "deviceorientation": DeviceOrientationEvent; + "drag": DragEvent; + "dragend": DragEvent; + "dragenter": DragEvent; + "dragleave": DragEvent; + "dragover": DragEvent; + "dragstart": DragEvent; + "drop": DragEvent; + "durationchange": Event; + "emptied": Event; + "ended": Event; + "error": ErrorEvent; + "focus": FocusEvent; + "hashchange": HashChangeEvent; + "input": Event; + "invalid": Event; + "keydown": KeyboardEvent; + "keypress": KeyboardEvent; + "keyup": KeyboardEvent; + "load": Event; + "loadeddata": Event; + "loadedmetadata": Event; + "loadstart": Event; + "message": MessageEvent; + "mousedown": MouseEvent; + "mouseenter": MouseEvent; + "mouseleave": MouseEvent; + "mousemove": MouseEvent; + "mouseout": MouseEvent; + "mouseover": MouseEvent; + "mouseup": MouseEvent; + "mousewheel": Event; + "MSGestureChange": Event; + "MSGestureDoubleTap": Event; + "MSGestureEnd": Event; + "MSGestureHold": Event; + "MSGestureStart": Event; + "MSGestureTap": Event; + "MSInertiaStart": Event; + "MSPointerCancel": Event; + "MSPointerDown": Event; + "MSPointerEnter": Event; + "MSPointerLeave": Event; + "MSPointerMove": Event; + "MSPointerOut": Event; + "MSPointerOver": Event; + "MSPointerUp": Event; + "offline": Event; + "online": Event; + "orientationchange": Event; + "pagehide": PageTransitionEvent; + "pageshow": PageTransitionEvent; + "pause": Event; + "play": Event; + "playing": Event; + "popstate": PopStateEvent; + "progress": ProgressEvent; + "ratechange": Event; + "readystatechange": ProgressEvent; + "reset": Event; + "resize": UIEvent; + "scroll": UIEvent; + "seeked": Event; + "seeking": Event; + "select": UIEvent; + "stalled": Event; + "storage": StorageEvent; + "submit": Event; + "suspend": Event; + "timeupdate": Event; + "unload": Event; + "volumechange": Event; + "vrdisplayactivate": Event; + "vrdisplayblur": Event; + "vrdisplayconnect": Event; + "vrdisplaydeactivate": Event; + "vrdisplaydisconnect": Event; + "vrdisplayfocus": Event; + "vrdisplaypointerrestricted": Event; + "vrdisplaypointerunrestricted": Event; + "vrdisplaypresentchange": Event; + "waiting": Event; +} + +interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch, WindowOrWorkerGlobalScope, WindowEventHandlers { + Blob: typeof Blob; + URL: typeof URL; + URLSearchParams: typeof URLSearchParams; + readonly applicationCache: ApplicationCache; + readonly caches: CacheStorage; + readonly clientInformation: Navigator; + readonly closed: boolean; + readonly crypto: Crypto; + customElements: CustomElementRegistry; + defaultStatus: string; + readonly devicePixelRatio: number; + readonly doNotTrack: string; + readonly document: Document; + readonly event: Event | undefined; + /** @deprecated */ + readonly external: External; + readonly frameElement: Element; + readonly frames: Window; + readonly history: History; + readonly innerHeight: number; + readonly innerWidth: number; + readonly isSecureContext: boolean; + readonly length: number; + location: Location; + readonly locationbar: BarProp; + readonly menubar: BarProp; + readonly msContentScript: ExtensionScriptApis; + name: string; + readonly navigator: Navigator; + offscreenBuffering: string | boolean; + oncompassneedscalibration: ((this: Window, ev: Event) => any) | null; + ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null; + ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; + ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; + onmousewheel: ((this: Window, ev: Event) => any) | null; + onmsgesturechange: ((this: Window, ev: Event) => any) | null; + onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null; + onmsgestureend: ((this: Window, ev: Event) => any) | null; + onmsgesturehold: ((this: Window, ev: Event) => any) | null; + onmsgesturestart: ((this: Window, ev: Event) => any) | null; + onmsgesturetap: ((this: Window, ev: Event) => any) | null; + onmsinertiastart: ((this: Window, ev: Event) => any) | null; + onmspointercancel: ((this: Window, ev: Event) => any) | null; + onmspointerdown: ((this: Window, ev: Event) => any) | null; + onmspointerenter: ((this: Window, ev: Event) => any) | null; + onmspointerleave: ((this: Window, ev: Event) => any) | null; + onmspointermove: ((this: Window, ev: Event) => any) | null; + onmspointerout: ((this: Window, ev: Event) => any) | null; + onmspointerover: ((this: Window, ev: Event) => any) | null; + onmspointerup: ((this: Window, ev: Event) => any) | null; + /** @deprecated */ + onorientationchange: ((this: Window, ev: Event) => any) | null; + onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null; + onvrdisplayactivate: ((this: Window, ev: Event) => any) | null; + onvrdisplayblur: ((this: Window, ev: Event) => any) | null; + onvrdisplayconnect: ((this: Window, ev: Event) => any) | null; + onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null; + onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null; + onvrdisplayfocus: ((this: Window, ev: Event) => any) | null; + onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null; + onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null; + onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null; + opener: any; + /** @deprecated */ + readonly orientation: string | number; + readonly outerHeight: number; + readonly outerWidth: number; + readonly pageXOffset: number; + readonly pageYOffset: number; + readonly parent: Window; + readonly performance: Performance; + readonly personalbar: BarProp; + readonly screen: Screen; + readonly screenLeft: number; + readonly screenTop: number; + readonly screenX: number; + readonly screenY: number; + readonly scrollX: number; + readonly scrollY: number; + readonly scrollbars: BarProp; + readonly self: Window; + readonly speechSynthesis: SpeechSynthesis; + status: string; + readonly statusbar: BarProp; + readonly styleMedia: StyleMedia; + readonly toolbar: BarProp; + readonly top: Window; + readonly window: Window; + alert(message?: any): void; + blur(): void; + cancelAnimationFrame(handle: number): void; + /** @deprecated */ + captureEvents(): void; + close(): void; + confirm(message?: string): boolean; + departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void; + focus(): void; + getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; + getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList; + getSelection(): Selection; + matchMedia(query: string): MediaQueryList; + moveBy(x: number, y: number): void; + moveTo(x: number, y: number): void; + msWriteProfilerMark(profilerMarkName: string): void; + open(url?: string, target?: string, features?: string, replace?: boolean): Window | null; + postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; + print(): void; + prompt(message?: string, _default?: string): string | null; + /** @deprecated */ + releaseEvents(): void; + requestAnimationFrame(callback: FrameRequestCallback): number; + resizeBy(x: number, y: number): void; + resizeTo(x: number, y: number): void; + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + stop(): void; + webkitCancelAnimationFrame(handle: number): void; + webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; + webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; + webkitRequestAnimationFrame(callback: FrameRequestCallback): number; + addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Window: { + prototype: Window; + new(): Window; +}; + +interface WindowBase64 { + atob(encodedString: string): string; + btoa(rawString: string): string; +} + +interface WindowConsole { + readonly console: Console; +} + +interface WindowEventHandlersEventMap { + "afterprint": Event; + "beforeprint": Event; + "beforeunload": BeforeUnloadEvent; + "hashchange": HashChangeEvent; + "languagechange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; + "offline": Event; + "online": Event; + "pagehide": PageTransitionEvent; + "pageshow": PageTransitionEvent; + "popstate": PopStateEvent; + "rejectionhandled": Event; + "storage": StorageEvent; + "unhandledrejection": PromiseRejectionEvent; + "unload": Event; +} + +interface WindowEventHandlers { + onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null; + onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null; + onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null; + onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null; + ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; + onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; + onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; + onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null; + onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; + onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; + onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; + addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface WindowLocalStorage { + readonly localStorage: Storage; +} + +interface WindowOrWorkerGlobalScope { + readonly caches: CacheStorage; + readonly crypto: Crypto; + readonly indexedDB: IDBFactory; + readonly origin: string; + readonly performance: Performance; + atob(data: string): string; + btoa(data: string): string; + clearInterval(handle?: number): void; + clearTimeout(handle?: number): void; + createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>; + createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>; + fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; + queueMicrotask(callback: Function): void; + setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +} + +interface WindowSessionStorage { + readonly sessionStorage: Storage; +} + +interface WindowTimers { +} + +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; +} + +interface Worker extends EventTarget, AbstractWorker { + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + postMessage(message: any, transfer?: Transferable[]): void; + terminate(): void; + addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Worker: { + prototype: Worker; + new(stringUrl: string, options?: WorkerOptions): Worker; +}; + +interface Worklet { + addModule(moduleURL: string, options?: WorkletOptions): Promise<void>; +} + +declare var Worklet: { + prototype: Worklet; + new(): Worklet; +}; + +interface WritableStream<W = any> { + readonly locked: boolean; + abort(reason?: any): Promise<void>; + getWriter(): WritableStreamDefaultWriter<W>; +} + +declare var WritableStream: { + prototype: WritableStream; + new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; +}; + +interface WritableStreamDefaultController { + error(error?: any): void; +} + +interface WritableStreamDefaultWriter<W = any> { + readonly closed: Promise<void>; + readonly desiredSize: number | null; + readonly ready: Promise<void>; + abort(reason?: any): Promise<void>; + close(): Promise<void>; + releaseLock(): void; + write(chunk: W): Promise<void>; +} + +interface XMLDocument extends Document { + addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLDocument: { + prototype: XMLDocument; + new(): XMLDocument; +}; + +interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { + "readystatechange": Event; +} + +interface XMLHttpRequest extends XMLHttpRequestEventTarget { + onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; + /** + * Returns client's state. + */ + readonly readyState: number; + /** + * Returns the response's body. + */ + readonly response: any; + /** + * Returns the text response. + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". + */ + readonly responseText: string; + /** + * Returns the response type. + * Can be set to change the response type. Values are: + * the empty string (default), + * "arraybuffer", + * "blob", + * "document", + * "json", and + * "text". + * When set: setting to "document" is ignored if current global object is not a Window object. + * When set: throws an "InvalidStateError" DOMException if state is loading or done. + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + */ + responseType: XMLHttpRequestResponseType; + readonly responseURL: string; + /** + * Returns the document response. + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document". + */ + readonly responseXML: Document | null; + readonly status: number; + readonly statusText: string; + /** + * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the + * request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a + * "TimeoutError" DOMException will be thrown otherwise (for the send() method). + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + */ + timeout: number; + /** + * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is + * transferred to a server. + */ + readonly upload: XMLHttpRequestUpload; + /** + * True when credentials are to be included in a cross-origin request. False when they are + * to be excluded in a cross-origin request and when cookies are to be ignored in its response. + * Initially false. + * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. + */ + withCredentials: boolean; + /** + * Cancels any network activity. + */ + abort(): void; + getAllResponseHeaders(): string; + getResponseHeader(name: string): string | null; + /** + * Sets the request method, request URL, and synchronous flag. + * Throws a "SyntaxError" DOMException if either method is not a + * valid HTTP method or url cannot be parsed. + * Throws a "SecurityError" DOMException if method is a + * case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`. + * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. + */ + open(method: string, url: string): void; + open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void; + /** + * Acts as if the `Content-Type` header value for response is mime. + * (It does not actually change the header though.) + * Throws an "InvalidStateError" DOMException if state is loading or done. + */ + overrideMimeType(mime: string): void; + /** + * Initiates the request. The optional argument provides the request body. The argument is ignored if request method is GET or HEAD. + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + */ + send(body?: Document | BodyInit | null): void; + /** + * Combines a header in author request headers. + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * Throws a "SyntaxError" DOMException if name is not a header name + * or if value is not a header value. + */ + setRequestHeader(name: string, value: string): void; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequest: { + prototype: XMLHttpRequest; + new(): XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; +}; + +interface XMLHttpRequestEventTargetEventMap { + "abort": ProgressEvent; + "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<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestEventTarget: { + prototype: XMLHttpRequestEventTarget; + new(): XMLHttpRequestEventTarget; +}; + +interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestUpload: { + prototype: XMLHttpRequestUpload; + new(): XMLHttpRequestUpload; +}; + +interface XMLSerializer { + serializeToString(root: Node): string; +} + +declare var XMLSerializer: { + prototype: XMLSerializer; + new(): XMLSerializer; +}; + +interface XPathEvaluator { + createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; + createNSResolver(nodeResolver?: Node): XPathNSResolver; + evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | null, type: number, result: XPathResult | null): XPathResult; +} + +declare var XPathEvaluator: { + prototype: XPathEvaluator; + new(): XPathEvaluator; +}; + +interface XPathExpression { + evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult; +} + +declare var XPathExpression: { + prototype: XPathExpression; + new(): XPathExpression; +}; + +interface XPathNSResolver { + lookupNamespaceURI(prefix: string): string | null; +} + +declare var XPathNSResolver: { + prototype: XPathNSResolver; + new(): XPathNSResolver; +}; + +interface XPathResult { + readonly booleanValue: boolean; + readonly invalidIteratorState: boolean; + readonly numberValue: number; + readonly resultType: number; + readonly singleNodeValue: Node; + readonly snapshotLength: number; + readonly stringValue: string; + iterateNext(): Node; + snapshotItem(index: number): Node; + 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, localName: string): any; + importStylesheet(style: Node): void; + removeParameter(namespaceURI: string, localName: string): void; + reset(): void; + setParameter(namespaceURI: string, localName: string, value: any): void; + transformToDocument(source: Node): Document; + transformToFragment(source: Node, document: Document): DocumentFragment; +} + +declare var XSLTProcessor: { + prototype: XSLTProcessor; + new(): XSLTProcessor; +}; + +interface webkitRTCPeerConnection extends RTCPeerConnection { + addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var webkitRTCPeerConnection: { + prototype: webkitRTCPeerConnection; + new(configuration: RTCConfiguration): webkitRTCPeerConnection; +}; + +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; + +interface BlobCallback { + (blob: Blob | null): void; +} + +interface DecodeErrorCallback { + (error: DOMException): void; +} + +interface DecodeSuccessCallback { + (decodedData: AudioBuffer): void; +} + +interface ErrorEventHandler { + (event: Event | string, source?: string, fileno?: number, columnNumber?: number, error?: Error): void; +} + +interface EventHandlerNonNull { + (event: Event): any; +} + +interface ForEachCallback { + (keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void; +} + +interface FrameRequestCallback { + (time: number): void; +} + +interface FunctionStringCallback { + (data: string): void; +} + +interface IntersectionObserverCallback { + (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; +} + +interface MSLaunchUriCallback { + (): void; +} + +interface MutationCallback { + (mutations: MutationRecord[], observer: MutationObserver): void; +} + +interface NavigatorUserMediaErrorCallback { + (error: MediaStreamError): void; +} + +interface NavigatorUserMediaSuccessCallback { + (stream: MediaStream): void; +} + +interface NotificationPermissionCallback { + (permission: NotificationPermission): void; +} + +interface OnBeforeUnloadEventHandlerNonNull { + (event: Event): string | null; +} + +interface OnErrorEventHandlerNonNull { + (event: Event | string, source?: string, lineno?: number, colno?: number, error?: any): any; +} + +interface PerformanceObserverCallback { + (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; +} + +interface PositionCallback { + (position: Position): void; +} + +interface PositionErrorCallback { + (positionError: PositionError): void; +} + +interface QueuingStrategySizeCallback<T = any> { + (chunk: T): number; +} + +interface RTCPeerConnectionErrorCallback { + (error: DOMException): void; +} + +interface RTCSessionDescriptionCallback { + (description: RTCSessionDescriptionInit): void; +} + +interface RTCStatsCallback { + (report: RTCStatsReport): void; +} + +interface ReadableByteStreamControllerCallback { + (controller: ReadableByteStreamController): void | PromiseLike<void>; +} + +interface ReadableStreamDefaultControllerCallback<R> { + (controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>; +} + +interface ReadableStreamErrorCallback { + (reason: any): void | PromiseLike<void>; +} + +interface TransformStreamDefaultControllerCallback<O> { + (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface TransformStreamDefaultControllerTransformCallback<I, O> { + (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface VoidFunction { + (): void; +} + +interface WritableStreamDefaultControllerCloseCallback { + (): void | PromiseLike<void>; +} + +interface WritableStreamDefaultControllerStartCallback { + (controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface WritableStreamDefaultControllerWriteCallback<W> { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface WritableStreamErrorCallback { + (reason: any): void | PromiseLike<void>; +} + +interface HTMLElementTagNameMap { + "a": HTMLAnchorElement; + "abbr": HTMLElement; + "address": HTMLElement; + "applet": HTMLAppletElement; + "area": HTMLAreaElement; + "article": HTMLElement; + "aside": HTMLElement; + "audio": HTMLAudioElement; + "b": HTMLElement; + "base": HTMLBaseElement; + "basefont": HTMLBaseFontElement; + "bdo": HTMLElement; + "blockquote": HTMLQuoteElement; + "body": HTMLBodyElement; + "br": HTMLBRElement; + "button": HTMLButtonElement; + "canvas": HTMLCanvasElement; + "caption": HTMLTableCaptionElement; + "cite": HTMLElement; + "code": HTMLElement; + "col": HTMLTableColElement; + "colgroup": HTMLTableColElement; + "data": HTMLDataElement; + "datalist": HTMLDataListElement; + "dd": HTMLElement; + "del": HTMLModElement; + "details": HTMLDetailsElement; + "dfn": HTMLElement; + "dialog": HTMLDialogElement; + "dir": HTMLDirectoryElement; + "div": HTMLDivElement; + "dl": HTMLDListElement; + "dt": HTMLElement; + "em": HTMLElement; + "embed": HTMLEmbedElement; + "fieldset": HTMLFieldSetElement; + "figcaption": HTMLElement; + "figure": HTMLElement; + "font": HTMLFontElement; + "footer": HTMLElement; + "form": HTMLFormElement; + "frame": HTMLFrameElement; + "frameset": HTMLFrameSetElement; + "h1": HTMLHeadingElement; + "h2": HTMLHeadingElement; + "h3": HTMLHeadingElement; + "h4": HTMLHeadingElement; + "h5": HTMLHeadingElement; + "h6": HTMLHeadingElement; + "head": HTMLHeadElement; + "header": HTMLElement; + "hgroup": HTMLElement; + "hr": HTMLHRElement; + "html": HTMLHtmlElement; + "i": HTMLElement; + "iframe": HTMLIFrameElement; + "img": HTMLImageElement; + "input": HTMLInputElement; + "ins": HTMLModElement; + "kbd": HTMLElement; + "label": HTMLLabelElement; + "legend": HTMLLegendElement; + "li": HTMLLIElement; + "link": HTMLLinkElement; + "map": HTMLMapElement; + "mark": HTMLElement; + "marquee": HTMLMarqueeElement; + "menu": HTMLMenuElement; + "meta": HTMLMetaElement; + "meter": HTMLMeterElement; + "nav": HTMLElement; + "noscript": HTMLElement; + "object": HTMLObjectElement; + "ol": HTMLOListElement; + "optgroup": HTMLOptGroupElement; + "option": HTMLOptionElement; + "output": HTMLOutputElement; + "p": HTMLParagraphElement; + "param": HTMLParamElement; + "picture": HTMLPictureElement; + "pre": HTMLPreElement; + "progress": HTMLProgressElement; + "q": HTMLQuoteElement; + "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; + "sup": HTMLElement; + "table": HTMLTableElement; + "tbody": HTMLTableSectionElement; + "td": HTMLTableDataCellElement; + "template": HTMLTemplateElement; + "textarea": HTMLTextAreaElement; + "tfoot": HTMLTableSectionElement; + "th": HTMLTableHeaderCellElement; + "thead": HTMLTableSectionElement; + "time": HTMLTimeElement; + "title": HTMLTitleElement; + "tr": HTMLTableRowElement; + "track": HTMLTrackElement; + "u": HTMLElement; + "ul": HTMLUListElement; + "var": HTMLElement; + "video": HTMLVideoElement; + "wbr": HTMLElement; +} + +interface HTMLElementDeprecatedTagNameMap { + "listing": HTMLPreElement; + "xmp": HTMLPreElement; +} + +interface SVGElementTagNameMap { + "circle": SVGCircleElement; + "clipPath": SVGClipPathElement; + "defs": SVGDefsElement; + "desc": SVGDescElement; + "ellipse": SVGEllipseElement; + "feBlend": SVGFEBlendElement; + "feColorMatrix": SVGFEColorMatrixElement; + "feComponentTransfer": SVGFEComponentTransferElement; + "feComposite": SVGFECompositeElement; + "feConvolveMatrix": SVGFEConvolveMatrixElement; + "feDiffuseLighting": SVGFEDiffuseLightingElement; + "feDisplacementMap": SVGFEDisplacementMapElement; + "feDistantLight": SVGFEDistantLightElement; + "feFlood": SVGFEFloodElement; + "feFuncA": SVGFEFuncAElement; + "feFuncB": SVGFEFuncBElement; + "feFuncG": SVGFEFuncGElement; + "feFuncR": SVGFEFuncRElement; + "feGaussianBlur": SVGFEGaussianBlurElement; + "feImage": SVGFEImageElement; + "feMerge": SVGFEMergeElement; + "feMergeNode": SVGFEMergeNodeElement; + "feMorphology": SVGFEMorphologyElement; + "feOffset": SVGFEOffsetElement; + "fePointLight": SVGFEPointLightElement; + "feSpecularLighting": SVGFESpecularLightingElement; + "feSpotLight": SVGFESpotLightElement; + "feTile": SVGFETileElement; + "feTurbulence": SVGFETurbulenceElement; + "filter": SVGFilterElement; + "foreignObject": SVGForeignObjectElement; + "g": SVGGElement; + "image": SVGImageElement; + "line": SVGLineElement; + "linearGradient": SVGLinearGradientElement; + "marker": SVGMarkerElement; + "mask": SVGMaskElement; + "metadata": SVGMetadataElement; + "path": SVGPathElement; + "pattern": SVGPatternElement; + "polygon": SVGPolygonElement; + "polyline": SVGPolylineElement; + "radialGradient": SVGRadialGradientElement; + "rect": SVGRectElement; + "stop": SVGStopElement; + "svg": SVGSVGElement; + "switch": SVGSwitchElement; + "symbol": SVGSymbolElement; + "text": SVGTextElement; + "textPath": SVGTextPathElement; + "tspan": SVGTSpanElement; + "use": SVGUseElement; + "view": SVGViewElement; +} + +/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */ +interface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { } + +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 Blob: typeof Blob; +declare var URL: typeof URL; +declare var URLSearchParams: typeof URLSearchParams; +declare var applicationCache: ApplicationCache; +declare var caches: CacheStorage; +declare var clientInformation: Navigator; +declare var closed: boolean; +declare var crypto: Crypto; +declare var customElements: CustomElementRegistry; +declare var defaultStatus: string; +declare var devicePixelRatio: number; +declare var doNotTrack: string; +declare var document: Document; +declare var event: Event | undefined; +/** @deprecated */ +declare var external: External; +declare var frameElement: Element; +declare var frames: Window; +declare var history: History; +declare var innerHeight: number; +declare var innerWidth: number; +declare var isSecureContext: boolean; +declare var length: number; +declare var location: Location; +declare var locationbar: BarProp; +declare var menubar: BarProp; +declare var msContentScript: ExtensionScriptApis; +declare const name: never; +declare var navigator: Navigator; +declare var offscreenBuffering: string | boolean; +declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null; +declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null; +declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; +declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; +declare var onmousewheel: ((this: Window, ev: Event) => any) | null; +declare var onmsgesturechange: ((this: Window, ev: Event) => any) | null; +declare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null; +declare var onmsgestureend: ((this: Window, ev: Event) => any) | null; +declare var onmsgesturehold: ((this: Window, ev: Event) => any) | null; +declare var onmsgesturestart: ((this: Window, ev: Event) => any) | null; +declare var onmsgesturetap: ((this: Window, ev: Event) => any) | null; +declare var onmsinertiastart: ((this: Window, ev: Event) => any) | null; +declare var onmspointercancel: ((this: Window, ev: Event) => any) | null; +declare var onmspointerdown: ((this: Window, ev: Event) => any) | null; +declare var onmspointerenter: ((this: Window, ev: Event) => any) | null; +declare var onmspointerleave: ((this: Window, ev: Event) => any) | null; +declare var onmspointermove: ((this: Window, ev: Event) => any) | null; +declare var onmspointerout: ((this: Window, ev: Event) => any) | null; +declare var onmspointerover: ((this: Window, ev: Event) => any) | null; +declare var onmspointerup: ((this: Window, ev: Event) => any) | null; +/** @deprecated */ +declare var onorientationchange: ((this: Window, ev: Event) => any) | null; +declare var onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null; +declare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null; +declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null; +declare var opener: any; +/** @deprecated */ +declare var orientation: string | number; +declare var outerHeight: number; +declare var outerWidth: number; +declare var pageXOffset: number; +declare var pageYOffset: number; +declare var parent: Window; +declare var performance: Performance; +declare var personalbar: BarProp; +declare var screen: Screen; +declare var screenLeft: number; +declare var screenTop: number; +declare var screenX: number; +declare var screenY: number; +declare var scrollX: number; +declare var scrollY: number; +declare var scrollbars: BarProp; +declare var self: Window; +declare var speechSynthesis: SpeechSynthesis; +declare var status: string; +declare var statusbar: BarProp; +declare var styleMedia: StyleMedia; +declare var toolbar: BarProp; +declare var top: Window; +declare var window: Window; +declare function alert(message?: any): void; +declare function blur(): void; +declare function cancelAnimationFrame(handle: number): void; +/** @deprecated */ +declare function captureEvents(): void; +declare function close(): void; +declare function confirm(message?: string): boolean; +declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void; +declare function focus(): void; +declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; +declare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList; +declare function getSelection(): Selection; +declare function matchMedia(query: string): MediaQueryList; +declare function moveBy(x: number, y: number): void; +declare function moveTo(x: number, y: number): void; +declare function msWriteProfilerMark(profilerMarkName: string): void; +declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null; +declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; +declare function print(): void; +declare function prompt(message?: string, _default?: string): string | null; +/** @deprecated */ +declare function releaseEvents(): void; +declare function requestAnimationFrame(callback: FrameRequestCallback): number; +declare function resizeBy(x: number, y: number): void; +declare function resizeTo(x: number, y: number): void; +declare function scroll(options?: ScrollToOptions): void; +declare function scroll(x: number, y: number): void; +declare function scrollBy(options?: ScrollToOptions): void; +declare function scrollBy(x: number, y: number): void; +declare function scrollTo(options?: ScrollToOptions): void; +declare function scrollTo(x: number, y: number): void; +declare function stop(): void; +declare function webkitCancelAnimationFrame(handle: number): void; +declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; +declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; +declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number; +declare function toString(): string; +/** + * Dispatches a synthetic event event to target and returns true + * if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + */ +declare function dispatchEvent(event: Event): boolean; +declare var sessionStorage: Storage; +declare var localStorage: Storage; +declare var console: Console; +/** + * Fires when the user aborts the download. + * @param ev The event. + */ +declare var onabort: ((this: Window, ev: UIEvent) => any) | null; +declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onauxclick: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the object loses the input focus. + * @param ev The focus event. + */ +declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; +declare var oncancel: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + */ +declare var oncanplay: ((this: Window, ev: Event) => any) | null; +declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + */ +declare var onchange: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + */ +declare var onclick: ((this: Window, ev: MouseEvent) => any) | null; +declare var onclose: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + */ +declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null; +declare var oncuechange: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + */ +declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + */ +declare var ondrag: ((this: Window, ev: DragEvent) => any) | null; +/** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + */ +declare var ondragend: ((this: Window, ev: DragEvent) => any) | null; +/** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + */ +declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null; +declare var ondragexit: ((this: Window, ev: Event) => any) | null; +/** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + */ +declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null; +/** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + */ +declare var ondragover: ((this: Window, ev: DragEvent) => any) | null; +/** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + */ +declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null; +declare var ondrop: ((this: Window, ev: DragEvent) => any) | null; +/** + * Occurs when the duration attribute is updated. + * @param ev The event. + */ +declare var ondurationchange: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + */ +declare var onemptied: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the end of playback is reached. + * @param ev The event + */ +declare var onended: ((this: Window, ev: Event) => any) | null; +/** + * Fires when an error occurs during object loading. + * @param ev The event. + */ +declare var onerror: ErrorEventHandler; +/** + * Fires when the object receives focus. + * @param ev The event. + */ +declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; +declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null; +declare var oninput: ((this: Window, ev: Event) => any) | null; +declare var oninvalid: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the user presses a key. + * @param ev The keyboard event + */ +declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null; +/** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + */ +declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null; +/** + * Fires when the user releases a key. + * @param ev The keyboard event + */ +declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null; +/** + * Fires immediately after the browser loads the object. + * @param ev The event. + */ +declare var onload: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + */ +declare var onloadeddata: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + */ +declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null; +declare var onloadend: ((this: Window, ev: ProgressEvent) => any) | null; +/** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + */ +declare var onloadstart: ((this: Window, ev: Event) => any) | null; +declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null; +/** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + */ +declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null; +declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null; +declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + */ +declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + */ +declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + */ +declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + */ +declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null; +/** + * Occurs when playback is paused. + * @param ev The event. + */ +declare var onpause: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the play method is requested. + * @param ev The event. + */ +declare var onplay: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the audio or video has started playing. + * @param ev The event. + */ +declare var onplaying: ((this: Window, ev: Event) => any) | null; +declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; +declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null; +/** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + */ +declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null; +/** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + */ +declare var onratechange: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the user resets a form. + * @param ev The event. + */ +declare var onreset: ((this: Window, ev: Event) => any) | null; +declare var onresize: ((this: Window, ev: UIEvent) => any) | null; +/** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + */ +declare var onscroll: ((this: Window, ev: UIEvent) => any) | null; +declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null; +/** + * Occurs when the seek operation ends. + * @param ev The event. + */ +declare var onseeked: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when the current playback position is moved. + * @param ev The event. + */ +declare var onseeking: ((this: Window, ev: Event) => any) | null; +/** + * Fires when the current selection changes. + * @param ev The event. + */ +declare var onselect: ((this: Window, ev: UIEvent) => any) | null; +/** + * Occurs when the download has stopped. + * @param ev The event. + */ +declare var onstalled: ((this: Window, ev: Event) => any) | null; +declare var onsubmit: ((this: Window, ev: Event) => any) | null; +/** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + */ +declare var onsuspend: ((this: Window, ev: Event) => any) | null; +/** + * Occurs to indicate the current playback position. + * @param ev The event. + */ +declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; +declare var ontoggle: ((this: Window, ev: Event) => any) | null; +declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null; +declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null; +declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null; +declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null; +declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null; +/** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + */ +declare var onvolumechange: ((this: Window, ev: Event) => any) | null; +/** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + */ +declare var onwaiting: ((this: Window, ev: Event) => any) | null; +declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; +declare var indexedDB: IDBFactory; +declare function atob(encodedString: string): string; +declare function btoa(rawString: string): string; +declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +declare var caches: CacheStorage; +declare var crypto: Crypto; +declare var indexedDB: IDBFactory; +declare var origin: string; +declare var performance: Performance; +declare function atob(data: string): string; +declare function btoa(data: string): string; +declare function clearInterval(handle?: number): void; +declare function clearTimeout(handle?: number): void; +declare function createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>; +declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>; +declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +declare function queueMicrotask(callback: Function): void; +declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare var sessionStorage: Storage; +declare var localStorage: Storage; +declare var onafterprint: ((this: Window, ev: Event) => any) | null; +declare var onbeforeprint: ((this: Window, ev: Event) => any) | null; +declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null; +declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null; +declare var onlanguagechange: ((this: Window, ev: Event) => any) | null; +declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null; +declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null; +declare var onoffline: ((this: Window, ev: Event) => any) | null; +declare var ononline: ((this: Window, ev: Event) => any) | null; +declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; +declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; +declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; +declare var onrejectionhandled: ((this: Window, ev: Event) => any) | null; +declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; +declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null; +declare var onunload: ((this: Window, ev: Event) => any) | null; +declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; +declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; +declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type BlobPart = BufferSource | Blob | string; +type HeadersInit = Headers | string[][] | Record<string, string>; +type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string; +type RequestInfo = Request | string; +type DOMHighResTimeStamp = number; +type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext; +type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; +type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap; +type MessageEventSource = WindowProxy | MessagePort | ServiceWorker; +type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; +type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; +type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null; +type TimerHandler = string | Function; +type PerformanceEntryList = PerformanceEntry[]; +type VibratePattern = number | number[]; +type AlgorithmIdentifier = string | Algorithm; +type HashAlgorithmIdentifier = AlgorithmIdentifier; +type BigInteger = Uint8Array; +type NamedCurve = string; +type GLenum = number; +type GLboolean = boolean; +type GLbitfield = number; +type GLint = number; +type GLsizei = number; +type GLintptr = number; +type GLsizeiptr = number; +type GLuint = number; +type GLfloat = number; +type GLclampf = number; +type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement; +type Float32List = Float32Array | GLfloat[]; +type Int32List = Int32Array | GLint[]; +type BufferSource = ArrayBufferView | ArrayBuffer; +type DOMTimeStamp = number; +type LineAndPositionSetting = number | AutoKeyword; +type FormDataEntryValue = File | string; +type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend"; +type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey; +type MutationRecordType = "attributes" | "characterData" | "childList"; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainLong = number | ConstrainLongRange; +type IDBKeyPath = string; +type Transferable = ArrayBuffer | MessagePort | ImageBitmap; +type RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete; +type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport; +/** @deprecated */ +type MouseWheelEvent = WheelEvent; +type WindowProxy = Window; +type AlignSetting = "start" | "center" | "end" | "left" | "right"; +type AnimationPlayState = "idle" | "running" | "paused" | "finished"; +type AppendMode = "segments" | "sequence"; +type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; +type AudioContextState = "suspended" | "running" | "closed"; +type AutoKeyword = "auto"; +type AutomationRate = "a-rate" | "k-rate"; +type BinaryType = "blob" | "arraybuffer"; +type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass"; +type CanPlayTypeResult = "" | "maybe" | "probably"; +type CanvasDirection = "ltr" | "rtl" | "inherit"; +type CanvasFillRule = "nonzero" | "evenodd"; +type CanvasLineCap = "butt" | "round" | "square"; +type CanvasLineJoin = "round" | "bevel" | "miter"; +type CanvasTextAlign = "start" | "end" | "left" | "right" | "center"; +type CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom"; +type ChannelCountMode = "max" | "clamped-max" | "explicit"; +type ChannelInterpretation = "speakers" | "discrete"; +type ClientTypes = "window" | "worker" | "sharedworker" | "all"; +type CompositeOperation = "replace" | "add" | "accumulate"; +type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto"; +type DirectionSetting = "" | "rl" | "lr"; +type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser"; +type DistanceModelType = "linear" | "inverse" | "exponential"; +type DocumentReadyState = "loading" | "interactive" | "complete"; +type EndOfStreamError = "network" | "decode"; +type EndingType = "transparent" | "native"; +type FillMode = "none" | "forwards" | "backwards" | "both" | "auto"; +type GamepadHand = "" | "left" | "right"; +type GamepadHapticActuatorType = "vibration"; +type GamepadInputEmulationType = "mouse" | "keyboard" | "gamepad"; +type GamepadMappingType = "" | "standard"; +type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; +type IDBRequestReadyState = "pending" | "done"; +type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; +type ImageSmoothingQuality = "low" | "medium" | "high"; +type IterationCompositeOperation = "replace" | "accumulate"; +type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk"; +type KeyType = "public" | "private" | "secret"; +type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey"; +type LineAlignSetting = "start" | "center" | "end"; +type ListeningState = "inactive" | "active" | "disambiguation"; +type MSCredentialType = "FIDO_2_0"; +type MSTransportType = "Embedded" | "USB" | "NFC" | "BT"; +type MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny"; +type MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications"; +type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput"; +type MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request"; +type MediaKeySessionType = "temporary" | "persistent-license" | "persistent-release-message"; +type MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error"; +type MediaKeysRequirement = "required" | "optional" | "not-allowed"; +type MediaStreamTrackState = "live" | "ended"; +type NavigationReason = "up" | "down" | "left" | "right"; +type NavigationType = "navigate" | "reload" | "back_forward" | "prerender"; +type NotificationDirection = "auto" | "ltr" | "rtl"; +type NotificationPermission = "default" | "denied" | "granted"; +type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; +type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary"; +type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom"; +type OverSampleType = "none" | "2x" | "4x"; +type PanningModelType = "equalpower" | "HRTF"; +type PaymentComplete = "success" | "fail" | "unknown"; +type PaymentShippingType = "shipping" | "delivery" | "pickup"; +type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse"; +type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto"; +type PushEncryptionKeyName = "p256dh" | "auth"; +type PushPermissionState = "denied" | "granted" | "prompt"; +type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle"; +type RTCDataChannelState = "connecting" | "open" | "closing" | "closed"; +type RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced"; +type RTCDtlsRole = "auto" | "client" | "server"; +type RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed" | "failed"; +type RTCDtxStatus = "disabled" | "enabled"; +type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error" | "hardware-encoder-not-available" | "hardware-encoder-error"; +type RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay"; +type RTCIceComponent = "rtp" | "rtcp"; +type RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed"; +type RTCIceCredentialType = "password" | "oauth"; +type RTCIceGatherPolicy = "all" | "nohost" | "relay"; +type RTCIceGathererState = "new" | "gathering" | "complete"; +type RTCIceGatheringState = "new" | "gathering" | "complete"; +type RTCIceProtocol = "udp" | "tcp"; +type RTCIceRole = "controlling" | "controlled"; +type RTCIceTcpCandidateType = "active" | "passive" | "so"; +type RTCIceTransportPolicy = "relay" | "all"; +type RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed"; +type RTCPeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed"; +type RTCPriorityType = "very-low" | "low" | "medium" | "high"; +type RTCRtcpMuxPolicy = "negotiate" | "require"; +type RTCRtpTransceiverDirection = "sendrecv" | "sendonly" | "recvonly" | "inactive"; +type RTCSctpTransportState = "connecting" | "connected" | "closed"; +type RTCSdpType = "offer" | "pranswer" | "answer" | "rollback"; +type RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed"; +type RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled"; +type RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed"; +type RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate"; +type ReadyState = "closed" | "open" | "ended"; +type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url"; +type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached"; +type RequestCredentials = "omit" | "same-origin" | "include"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors"; +type RequestRedirect = "follow" | "error" | "manual"; +type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ScopedCredentialType = "ScopedCred"; +type ScrollBehavior = "auto" | "smooth"; +type ScrollLogicalPosition = "start" | "center" | "end" | "nearest"; +type ScrollRestoration = "auto" | "manual"; +type ScrollSetting = "" | "up"; +type SelectionMode = "select" | "start" | "end" | "preserve"; +type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant"; +type ServiceWorkerUpdateViaCache = "imports" | "all" | "none"; +type ShadowRootMode = "open" | "closed"; +type SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported"; +type SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument"; +type SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml"; +type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata"; +type TextTrackMode = "disabled" | "hidden" | "showing"; +type TouchType = "direct" | "stylus"; +type Transport = "usb" | "nfc" | "ble"; +type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted"; +type VideoFacingModeEnum = "user" | "environment" | "left" | "right"; +type VisibilityState = "hidden" | "visible" | "prerender"; +type WebGLPowerPreference = "default" | "low-power" | "high-performance"; +type WorkerType = "classic" | "module"; +type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.iterable.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.iterable.d.ts new file mode 100644 index 0000000..0948f70 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.dom.iterable.d.ts @@ -0,0 +1,236 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +///////////////////////////// +/// DOM Iterable APIs +///////////////////////////// + +interface AudioParamMap extends ReadonlyMap<string, AudioParam> { +} + +interface AudioTrackList { + [Symbol.iterator](): IterableIterator<AudioTrack>; +} + +interface CSSRuleList { + [Symbol.iterator](): IterableIterator<CSSRule>; +} + +interface CSSStyleDeclaration { + [Symbol.iterator](): IterableIterator<string>; +} + +interface ClientRectList { + [Symbol.iterator](): IterableIterator<ClientRect>; +} + +interface DOMRectList { + [Symbol.iterator](): IterableIterator<DOMRect>; +} + +interface DOMStringList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface DOMTokenList { + [Symbol.iterator](): IterableIterator<string>; + entries(): IterableIterator<[number, string]>; + keys(): IterableIterator<number>; + values(): IterableIterator<string>; +} + +interface DataTransferItemList { + [Symbol.iterator](): IterableIterator<DataTransferItem>; +} + +interface FileList { + [Symbol.iterator](): IterableIterator<File>; +} + +interface FormData { + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; + /** + * Returns an array of key, value pairs for every entry in the list. + */ + entries(): IterableIterator<[string, FormDataEntryValue]>; + /** + * Returns a list of keys in the list. + */ + keys(): IterableIterator<string>; + /** + * Returns a list of values in the list. + */ + values(): IterableIterator<FormDataEntryValue>; +} + +interface HTMLAllCollection { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLCollectionBase { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLCollectionOf<T extends Element> { + [Symbol.iterator](): IterableIterator<T>; +} + +interface HTMLFormElement { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface HTMLSelectElement { + [Symbol.iterator](): IterableIterator<Element>; +} + +interface Headers { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** + * Returns an iterator allowing to go through all key/value pairs contained in this object. + */ + entries(): IterableIterator<[string, string]>; + /** + * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. + */ + keys(): IterableIterator<string>; + /** + * Returns an iterator allowing to go through all values of the key/value pairs contained in this object. + */ + values(): IterableIterator<string>; +} + +interface MediaList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface MimeTypeArray { + [Symbol.iterator](): IterableIterator<Plugin>; +} + +interface NamedNodeMap { + [Symbol.iterator](): IterableIterator<Attr>; +} + +interface NodeList { + [Symbol.iterator](): IterableIterator<Node>; + /** + * Returns an array of key, value pairs for every entry in the list. + */ + entries(): IterableIterator<[number, Node]>; + /** + * Returns an list of keys in the list. + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the list. + */ + values(): IterableIterator<Node>; +} + +interface NodeListOf<TNode extends Node> { + [Symbol.iterator](): IterableIterator<TNode>; + /** + * Returns an array of key, value pairs for every entry in the list. + */ + entries(): IterableIterator<[number, TNode]>; + /** + * Returns an list of keys in the list. + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the list. + */ + values(): IterableIterator<TNode>; +} + +interface Plugin { + [Symbol.iterator](): IterableIterator<MimeType>; +} + +interface PluginArray { + [Symbol.iterator](): IterableIterator<Plugin>; +} + +interface RTCStatsReport extends ReadonlyMap<string, any> { +} + +interface SVGLengthList { + [Symbol.iterator](): IterableIterator<SVGLength>; +} + +interface SVGNumberList { + [Symbol.iterator](): IterableIterator<SVGNumber>; +} + +interface SVGStringList { + [Symbol.iterator](): IterableIterator<string>; +} + +interface SourceBufferList { + [Symbol.iterator](): IterableIterator<SourceBuffer>; +} + +interface SpeechGrammarList { + [Symbol.iterator](): IterableIterator<SpeechGrammar>; +} + +interface SpeechRecognitionResult { + [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; +} + +interface SpeechRecognitionResultList { + [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; +} + +interface StyleSheetList { + [Symbol.iterator](): IterableIterator<StyleSheet>; +} + +interface TextTrackCueList { + [Symbol.iterator](): IterableIterator<TextTrackCue>; +} + +interface TextTrackList { + [Symbol.iterator](): IterableIterator<TextTrack>; +} + +interface TouchList { + [Symbol.iterator](): IterableIterator<Touch>; +} + +interface URLSearchParams { + [Symbol.iterator](): IterableIterator<[string, string]>; + /** + * Returns an array of key, value pairs for every entry in the search params. + */ + entries(): IterableIterator<[string, string]>; + /** + * Returns a list of keys in the search params. + */ + keys(): IterableIterator<string>; + /** + * Returns a list of values in the search params. + */ + values(): IterableIterator<string>; +} + +interface VideoTrackList { + [Symbol.iterator](): IterableIterator<VideoTrack>; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.collection.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.collection.d.ts new file mode 100644 index 0000000..2c19919 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.collection.d.ts @@ -0,0 +1,89 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Map<K, V> { + clear(): void; + delete(key: K): boolean; + forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; + get(key: K): V | undefined; + has(key: K): boolean; + set(key: K, value: V): this; + readonly size: number; +} + +interface MapConstructor { + new(): Map<any, any>; + new<K, V>(entries?: ReadonlyArray<[K, V]> | null): Map<K, V>; + readonly prototype: Map<any, any>; +} +declare var Map: MapConstructor; + +interface ReadonlyMap<K, V> { + forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void; + get(key: K): V | undefined; + has(key: K): boolean; + readonly size: number; +} + +interface WeakMap<K extends object, V> { + delete(key: K): boolean; + get(key: K): V | undefined; + has(key: K): boolean; + set(key: K, value: V): this; +} + +interface WeakMapConstructor { + new <K extends object = object, V = any>(entries?: ReadonlyArray<[K, V]> | null): WeakMap<K, V>; + readonly prototype: WeakMap<object, any>; +} +declare var WeakMap: WeakMapConstructor; + +interface Set<T> { + add(value: T): this; + clear(): void; + delete(value: T): boolean; + forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; + has(value: T): boolean; + readonly size: number; +} + +interface SetConstructor { + new <T = any>(values?: ReadonlyArray<T> | null): Set<T>; + readonly prototype: Set<any>; +} +declare var Set: SetConstructor; + +interface ReadonlySet<T> { + forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void; + has(value: T): boolean; + readonly size: number; +} + +interface WeakSet<T extends object> { + add(value: T): this; + delete(value: T): boolean; + has(value: T): boolean; +} + +interface WeakSetConstructor { + new <T extends object = object>(values?: ReadonlyArray<T> | null): WeakSet<T>; + readonly prototype: WeakSet<object>; +} +declare var WeakSet: WeakSetConstructor; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.core.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.core.d.ts new file mode 100644 index 0000000..7c43b36 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.core.d.ts @@ -0,0 +1,511 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Array<T> { + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; + find(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): number; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: T, start?: number, end?: number): this; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; +} + +interface ArrayConstructor { + /** + * Creates an array from an array-like object. + * @param arrayLike An array-like object to convert to an array. + */ + from<T>(arrayLike: ArrayLike<T>): T[]; + + /** + * Creates an array from an iterable object. + * @param arrayLike An array-like object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of<T>(...items: T[]): T[]; +} + +interface DateConstructor { + new (value: number | string | Date): Date; +} + +interface Function { + /** + * Returns the name of the function. Function names are read-only and can not be changed. + */ + readonly name: string; +} + +interface Math { + /** + * Returns the number of leading zero bits in the 32-bit binary representation of a number. + * @param x A numeric expression. + */ + clz32(x: number): number; + + /** + * Returns the result of 32-bit multiplication of two numbers. + * @param x First number + * @param y Second number + */ + imul(x: number, y: number): number; + + /** + * Returns the sign of the x, indicating whether x is positive, negative or zero. + * @param x The numeric expression to test + */ + sign(x: number): number; + + /** + * Returns the base 10 logarithm of a number. + * @param x A numeric expression. + */ + log10(x: number): number; + + /** + * Returns the base 2 logarithm of a number. + * @param x A numeric expression. + */ + log2(x: number): number; + + /** + * Returns the natural logarithm of 1 + x. + * @param x A numeric expression. + */ + log1p(x: number): number; + + /** + * Returns the result of (e^x - 1), which is an implementation-dependent approximation to + * subtracting 1 from the exponential function of x (e raised to the power of x, where e + * is the base of the natural logarithms). + * @param x A numeric expression. + */ + expm1(x: number): number; + + /** + * Returns the hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + cosh(x: number): number; + + /** + * Returns the hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + sinh(x: number): number; + + /** + * Returns the hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + tanh(x: number): number; + + /** + * Returns the inverse hyperbolic cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + acosh(x: number): number; + + /** + * Returns the inverse hyperbolic sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + asinh(x: number): number; + + /** + * Returns the inverse hyperbolic tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + atanh(x: number): number; + + /** + * Returns the square root of the sum of squares of its arguments. + * @param values Values to compute the square root for. + * If no arguments are passed, the result is +0. + * If there is only one argument, the result is the absolute value. + * If any argument is +Infinity or -Infinity, the result is +Infinity. + * If any argument is NaN, the result is NaN. + * If all arguments are either +0 or −0, the result is +0. + */ + hypot(...values: number[]): number; + + /** + * Returns the integral part of the a numeric expression, x, removing any fractional digits. + * If x is already an integer, the result is x. + * @param x A numeric expression. + */ + trunc(x: number): number; + + /** + * Returns the nearest single precision float representation of a number. + * @param x A numeric expression. + */ + fround(x: number): number; + + /** + * Returns an implementation-dependent approximation to the cube root of number. + * @param x A numeric expression. + */ + cbrt(x: number): number; +} + +interface NumberConstructor { + /** + * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 + * that is representable as a Number value, which is approximately: + * 2.2204460492503130808472633361816 x 10−16. + */ + readonly EPSILON: number; + + /** + * Returns true if passed value is finite. + * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a + * number. Only finite values of the type number, result in true. + * @param number A numeric value. + */ + isFinite(number: number): boolean; + + /** + * Returns true if the value passed is an integer, false otherwise. + * @param number A numeric value. + */ + isInteger(number: number): boolean; + + /** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a + * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter + * to a number. Only values of the type number, that are also NaN, result in true. + * @param number A numeric value. + */ + isNaN(number: number): boolean; + + /** + * Returns true if the value passed is a safe integer. + * @param number A numeric value. + */ + isSafeInteger(number: number): boolean; + + /** + * The value of the largest integer n such that n and n + 1 are both exactly representable as + * a Number value. + * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1. + */ + readonly MAX_SAFE_INTEGER: number; + + /** + * The value of the smallest integer n such that n and n − 1 are both exactly representable as + * a Number value. + * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)). + */ + readonly MIN_SAFE_INTEGER: number; + + /** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ + parseFloat(string: string): number; + + /** + * Converts A string to an integer. + * @param s A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in numString. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ + parseInt(string: string, radix?: number): number; +} + +interface ObjectConstructor { + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source The source object from which to copy properties. + */ + assign<T, U>(target: T, source: U): T & U; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source1 The first source object from which to copy properties. + * @param source2 The second source object from which to copy properties. + */ + assign<T, U, V>(target: T, source1: U, source2: V): T & U & V; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param source1 The first source object from which to copy properties. + * @param source2 The second source object from which to copy properties. + * @param source3 The third source object from which to copy properties. + */ + assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; + + /** + * Copy the values of all of the enumerable own properties from one or more source objects to a + * target object. Returns the target object. + * @param target The target object to copy to. + * @param sources One or more source objects from which to copy properties + */ + assign(target: object, ...sources: any[]): any; + + /** + * Returns an array of all symbol properties found directly on object o. + * @param o Object to retrieve the symbols from. + */ + getOwnPropertySymbols(o: any): symbol[]; + + /** + * Returns true if the values are the same value, false otherwise. + * @param value1 The first value. + * @param value2 The second value. + */ + is(value1: any, value2: any): boolean; + + /** + * Sets the prototype of a specified object o to object proto or null. Returns the object o. + * @param o The object to change its prototype. + * @param proto The value of the new prototype or null. + */ + setPrototypeOf(o: any, proto: object | null): any; +} + +interface ReadonlyArray<T> { + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find<S extends T>(predicate: (this: void, value: T, index: number, obj: ReadonlyArray<T>) => value is S, thisArg?: any): S | undefined; + find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): number; +} + +interface RegExp { + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + readonly flags: string; + + /** + * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular + * expression. Default is false. Read-only. + */ + readonly sticky: boolean; + + /** + * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular + * expression. Default is false. Read-only. + */ + readonly unicode: boolean; +} + +interface RegExpConstructor { + new (pattern: RegExp, flags?: string): RegExp; + (pattern: RegExp, flags?: string): RegExp; +} + +interface String { + /** + * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point + * value of the UTF-16 encoded code point starting at the string element at position pos in + * the String resulting from converting this object to a String. + * If there is no element at that position, the result is undefined. + * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. + */ + codePointAt(pos: number): number | undefined; + + /** + * Returns true if searchString appears as a substring of the result of converting this + * object to a String, at one or more positions that are + * greater than or equal to position; otherwise, returns false. + * @param searchString search string + * @param position If position is undefined, 0 is assumed, so as to search all of the String. + */ + includes(searchString: string, position?: number): boolean; + + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * endPosition – length(this). Otherwise returns false. + */ + endsWith(searchString: string, endPosition?: number): boolean; + + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; + + /** + * Returns the String value result of normalizing the string into the normalization form + * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. + * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default + * is "NFC" + */ + normalize(form?: string): string; + + /** + * Returns a String value that is made from count copies appended together. If count is 0, + * the empty string is returned. + * @param count number of copies to append + */ + repeat(count: number): string; + + /** + * Returns true if the sequence of elements of searchString converted to a String is the + * same as the corresponding elements of this object (converted to a String) starting at + * position. Otherwise returns false. + */ + startsWith(searchString: string, position?: number): boolean; + + /** + * Returns an <a> HTML anchor element and sets the name attribute to the text value + * @param name + */ + anchor(name: string): string; + + /** Returns a <big> HTML element */ + big(): string; + + /** Returns a <blink> HTML element */ + blink(): string; + + /** Returns a <b> HTML element */ + bold(): string; + + /** Returns a <tt> HTML element */ + fixed(): string; + + /** Returns a <font> HTML element and sets the color attribute value */ + fontcolor(color: string): string; + + /** Returns a <font> HTML element and sets the size attribute value */ + fontsize(size: number): string; + + /** Returns a <font> HTML element and sets the size attribute value */ + fontsize(size: string): string; + + /** Returns an <i> HTML element */ + italics(): string; + + /** Returns an <a> HTML element and sets the href attribute value */ + link(url: string): string; + + /** Returns a <small> HTML element */ + small(): string; + + /** Returns a <strike> HTML element */ + strike(): string; + + /** Returns a <sub> HTML element */ + sub(): string; + + /** Returns a <sup> HTML element */ + sup(): string; +} + +interface StringConstructor { + /** + * Return the String value whose elements are, in order, the elements in the List elements. + * If length is 0, the empty string is returned. + */ + fromCodePoint(...codePoints: number[]): string; + + /** + * String.raw is intended for use as a tag function of a Tagged Template String. When called + * as such the first argument will be a well formed template call site object and the rest + * parameter will contain the substitution values. + * @param template A well-formed template string call site representation. + * @param substitutions A set of substitution values. + */ + raw(template: TemplateStringsArray, ...substitutions: any[]): string; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.d.ts new file mode 100644 index 0000000..80aaba0 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.d.ts @@ -0,0 +1,30 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es5" /> +/// <reference lib="es2015.core" /> +/// <reference lib="es2015.collection" /> +/// <reference lib="es2015.generator" /> +/// <reference lib="es2015.promise" /> +/// <reference lib="es2015.iterable" /> +/// <reference lib="es2015.proxy" /> +/// <reference lib="es2015.reflect" /> +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.symbol.wellknown" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.generator.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.generator.d.ts new file mode 100644 index 0000000..df6a987 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.generator.d.ts @@ -0,0 +1,71 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Generator extends Iterator<any> { } + +interface GeneratorFunction { + /** + * Creates a new Generator object. + * @param args A list of arguments the function accepts. + */ + new (...args: any[]): Generator; + /** + * Creates a new Generator object. + * @param args A list of arguments the function accepts. + */ + (...args: any[]): Generator; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: Generator; +} + +interface GeneratorFunctionConstructor { + /** + * Creates a new Generator function. + * @param args A list of arguments the function accepts. + */ + new (...args: string[]): GeneratorFunction; + /** + * Creates a new Generator function. + * @param args A list of arguments the function accepts. + */ + (...args: string[]): GeneratorFunction; + /** + * The length of the arguments. + */ + readonly length: number; + /** + * Returns the name of the function. + */ + readonly name: string; + /** + * A reference to the prototype. + */ + readonly prototype: GeneratorFunction; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.iterable.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.iterable.d.ts new file mode 100644 index 0000000..43b021a --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.iterable.d.ts @@ -0,0 +1,493 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A method that returns the default iterator for an object. Called by the semantics of the + * for-of statement. + */ + readonly iterator: symbol; +} + +interface IteratorResult<T> { + done: boolean; + value: T; +} + +interface Iterator<T> { + next(value?: any): IteratorResult<T>; + return?(value?: any): IteratorResult<T>; + throw?(e?: any): IteratorResult<T>; +} + +interface Iterable<T> { + [Symbol.iterator](): Iterator<T>; +} + +interface IterableIterator<T> extends Iterator<T> { + [Symbol.iterator](): IterableIterator<T>; +} + +interface Array<T> { + /** Iterator */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface ArrayConstructor { + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + */ + from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]; + + /** + * Creates an array from an iterable object. + * @param iterable An iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; +} + +interface ReadonlyArray<T> { + /** Iterator of values in the array. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, T]>; + + /** + * Returns an iterable of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an iterable of values in the array + */ + values(): IterableIterator<T>; +} + +interface IArguments { + /** Iterator */ + [Symbol.iterator](): IterableIterator<any>; +} + +interface Map<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface ReadonlyMap<K, V> { + /** Returns an iterable of entries in the map. */ + [Symbol.iterator](): IterableIterator<[K, V]>; + + /** + * Returns an iterable of key, value pairs for every entry in the map. + */ + entries(): IterableIterator<[K, V]>; + + /** + * Returns an iterable of keys in the map + */ + keys(): IterableIterator<K>; + + /** + * Returns an iterable of values in the map + */ + values(): IterableIterator<V>; +} + +interface MapConstructor { + new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>; +} + +interface WeakMap<K extends object, V> { } + +interface WeakMapConstructor { + new <K extends object, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>; +} + +interface Set<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + /** + * Returns an iterable of [v,v] pairs for every value `v` in the set. + */ + entries(): IterableIterator<[T, T]>; + /** + * Despite its name, returns an iterable of the values in the set, + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface ReadonlySet<T> { + /** Iterates over values in the set. */ + [Symbol.iterator](): IterableIterator<T>; + + /** + * Returns an iterable of [v,v] pairs for every value `v` in the set. + */ + entries(): IterableIterator<[T, T]>; + + /** + * Despite its name, returns an iterable of the values in the set, + */ + keys(): IterableIterator<T>; + + /** + * Returns an iterable of values in the set. + */ + values(): IterableIterator<T>; +} + +interface SetConstructor { + new <T>(iterable: Iterable<T>): Set<T>; +} + +interface WeakSet<T extends object> { } + +interface WeakSetConstructor { + new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>; +} + +interface Promise<T> { } + +interface PromiseConstructor { + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>; +} + +declare namespace Reflect { + function enumerate(target: object): IterableIterator<any>; +} + +interface String { + /** Iterator */ + [Symbol.iterator](): IterableIterator<string>; +} + +interface Int8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int8ArrayConstructor { + new (elements: Iterable<number>): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; +} + +interface Uint8Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ArrayConstructor { + new (elements: Iterable<number>): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; +} + +interface Uint8ClampedArray { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint8ClampedArrayConstructor { + new (elements: Iterable<number>): Uint8ClampedArray; + + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; +} + +interface Int16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int16ArrayConstructor { + new (elements: Iterable<number>): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; +} + +interface Uint16Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint16ArrayConstructor { + new (elements: Iterable<number>): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; +} + +interface Int32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Int32ArrayConstructor { + new (elements: Iterable<number>): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; +} + +interface Uint32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Uint32ArrayConstructor { + new (elements: Iterable<number>): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; +} + +interface Float32Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float32ArrayConstructor { + new (elements: Iterable<number>): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; +} + +interface Float64Array { + [Symbol.iterator](): IterableIterator<number>; + /** + * Returns an array of key, value pairs for every entry in the array + */ + entries(): IterableIterator<[number, number]>; + /** + * Returns an list of keys in the array + */ + keys(): IterableIterator<number>; + /** + * Returns an list of values in the array + */ + values(): IterableIterator<number>; +} + +interface Float64ArrayConstructor { + new (elements: Iterable<number>): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.promise.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.promise.d.ts new file mode 100644 index 0000000..002d691 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.promise.d.ts @@ -0,0 +1,216 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface PromiseConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: Promise<any>; + + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used to resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>; + + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<T1 | T2 | T3>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<T1 | T2>; + + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + race<T>(values: (T | PromiseLike<T>)[]): Promise<T>; + + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected Promise. + */ + reject<T = never>(reason?: any): Promise<T>; + + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve<T>(value: T | PromiseLike<T>): Promise<T>; + + /** + * Creates a new resolved promise . + * @returns A resolved promise. + */ + resolve(): Promise<void>; +} + +declare var Promise: PromiseConstructor; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.proxy.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.proxy.d.ts new file mode 100644 index 0000000..4408970 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.proxy.d.ts @@ -0,0 +1,42 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface ProxyHandler<T extends object> { + getPrototypeOf? (target: T): object | null; + setPrototypeOf? (target: T, v: any): boolean; + isExtensible? (target: T): boolean; + preventExtensions? (target: T): boolean; + getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined; + has? (target: T, p: PropertyKey): boolean; + get? (target: T, p: PropertyKey, receiver: any): any; + set? (target: T, p: PropertyKey, value: any, receiver: any): boolean; + deleteProperty? (target: T, p: PropertyKey): boolean; + defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean; + enumerate? (target: T): PropertyKey[]; + ownKeys? (target: T): PropertyKey[]; + apply? (target: T, thisArg: any, argArray?: any): any; + construct? (target: T, argArray: any, newTarget?: any): object; +} + +interface ProxyConstructor { + revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; }; + new <T extends object>(target: T, handler: ProxyHandler<T>): T; +} +declare var Proxy: ProxyConstructor; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.reflect.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.reflect.d.ts new file mode 100644 index 0000000..1139f1c --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.reflect.d.ts @@ -0,0 +1,35 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +declare namespace Reflect { + function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any; + function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any; + function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; + function deleteProperty(target: object, propertyKey: PropertyKey): boolean; + function get(target: object, propertyKey: PropertyKey, receiver?: any): any; + function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined; + function getPrototypeOf(target: object): object; + function has(target: object, propertyKey: PropertyKey): boolean; + function isExtensible(target: object): boolean; + function ownKeys(target: object): PropertyKey[]; + function preventExtensions(target: object): boolean; + function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean; + function setPrototypeOf(target: object, proto: any): boolean; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.d.ts new file mode 100644 index 0000000..bf09484 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.d.ts @@ -0,0 +1,48 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface SymbolConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: Symbol; + + /** + * Returns a new unique Symbol value. + * @param description Description of the new Symbol object. + */ + (description?: string | number): symbol; + + /** + * Returns a Symbol object from the global symbol registry matching the given key if found. + * Otherwise, returns a new symbol with this key. + * @param key key to search for. + */ + for(key: string): symbol; + + /** + * Returns a key from the global symbol registry matching the given Symbol if found. + * Otherwise, returns a undefined. + * @param sym Symbol to find the key for. + */ + keyFor(sym: symbol): string | undefined; +} + +declare var Symbol: SymbolConstructor;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.wellknown.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.wellknown.d.ts new file mode 100644 index 0000000..400f70a --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2015.symbol.wellknown.d.ts @@ -0,0 +1,318 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015.symbol" /> + +interface SymbolConstructor { + /** + * A method that determines if a constructor object recognizes an object as one of the + * constructor’s instances. Called by the semantics of the instanceof operator. + */ + readonly hasInstance: symbol; + + /** + * A Boolean value that if true indicates that an object should flatten to its array elements + * by Array.prototype.concat. + */ + readonly isConcatSpreadable: symbol; + + /** + * A regular expression method that matches the regular expression against a string. Called + * by the String.prototype.match method. + */ + readonly match: symbol; + + /** + * A regular expression method that replaces matched substrings of a string. Called by the + * String.prototype.replace method. + */ + readonly replace: symbol; + + /** + * A regular expression method that returns the index within a string that matches the + * regular expression. Called by the String.prototype.search method. + */ + readonly search: symbol; + + /** + * A function valued property that is the constructor function that is used to create + * derived objects. + */ + readonly species: symbol; + + /** + * A regular expression method that splits a string at the indices that match the regular + * expression. Called by the String.prototype.split method. + */ + readonly split: symbol; + + /** + * A method that converts an object to a corresponding primitive value. + * Called by the ToPrimitive abstract operation. + */ + readonly toPrimitive: symbol; + + /** + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. + */ + readonly toStringTag: symbol; + + /** + * An Object whose own property names are property names that are excluded from the 'with' + * environment bindings of the associated objects. + */ + readonly unscopables: symbol; +} + +interface Symbol { + readonly [Symbol.toStringTag]: string; +} + +interface Array<T> { + /** + * Returns an object whose properties have the value 'true' + * when they will be absent when used in a 'with' statement. + */ + [Symbol.unscopables](): { + copyWithin: boolean; + entries: boolean; + fill: boolean; + find: boolean; + findIndex: boolean; + keys: boolean; + values: boolean; + }; +} + +interface Date { + /** + * Converts a Date object to a string. + */ + [Symbol.toPrimitive](hint: "default"): string; + /** + * Converts a Date object to a string. + */ + [Symbol.toPrimitive](hint: "string"): string; + /** + * Converts a Date object to a number. + */ + [Symbol.toPrimitive](hint: "number"): number; + /** + * Converts a Date object to a string or number. + * + * @param hint The strings "number", "string", or "default" to specify what primitive to return. + * + * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default". + * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default". + */ + [Symbol.toPrimitive](hint: string): string | number; +} + +interface Map<K, V> { + readonly [Symbol.toStringTag]: string; +} + +interface WeakMap<K extends object, V> { + readonly [Symbol.toStringTag]: string; +} + +interface Set<T> { + readonly [Symbol.toStringTag]: string; +} + +interface WeakSet<T extends object> { + readonly [Symbol.toStringTag]: string; +} + +interface JSON { + readonly [Symbol.toStringTag]: string; +} + +interface Function { + /** + * Determines whether the given value inherits from this function if this function was used + * as a constructor function. + * + * A constructor function can control which objects are recognized as its instances by + * 'instanceof' by overriding this method. + */ + [Symbol.hasInstance](value: any): boolean; +} + +interface GeneratorFunction { + readonly [Symbol.toStringTag]: string; +} + +interface Math { + readonly [Symbol.toStringTag]: string; +} + +interface Promise<T> { + readonly [Symbol.toStringTag]: string; +} + +interface PromiseConstructor { + readonly [Symbol.species]: PromiseConstructor; +} + +interface RegExp { + /** + * Matches a string with this regular expression, and returns an array containing the results of + * that search. + * @param string A string to search within. + */ + [Symbol.match](string: string): RegExpMatchArray | null; + + /** + * Replaces text in a string, using this regular expression. + * @param string A String object or string literal whose contents matching against + * this regular expression will be replaced + * @param replaceValue A String object or string literal containing the text to replace for every + * successful match of this regular expression. + */ + [Symbol.replace](string: string, replaceValue: string): string; + + /** + * Replaces text in a string, using this regular expression. + * @param string A String object or string literal whose contents matching against + * this regular expression will be replaced + * @param replacer A function that returns the replacement text. + */ + [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the position beginning first substring match in a regular expression search + * using this regular expression. + * + * @param string The string to search within. + */ + [Symbol.search](string: string): number; + + /** + * Returns an array of substrings that were delimited by strings in the original input that + * match against this regular expression. + * + * If the regular expression contains capturing parentheses, then each time this + * regular expression matches, the results (including any undefined results) of the + * capturing parentheses are spliced. + * + * @param string string value to split + * @param limit if not undefined, the output array is truncated so that it contains no more + * than 'limit' elements. + */ + [Symbol.split](string: string, limit?: number): string[]; +} + +interface RegExpConstructor { + readonly [Symbol.species]: RegExpConstructor; +} + +interface String { + /** + * Matches a string an object that supports being matched against, and returns an array containing the results of that search. + * @param matcher An object that supports being matched against. + */ + match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; + + /** + * Replaces text in a string, using an object that supports replacement within a string. + * @param searchValue A object can search for and replace matches within a string. + * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + */ + replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; + + /** + * Replaces text in a string, using an object that supports replacement within a string. + * @param searchValue A object can search for and replace matches within a string. + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the first substring match in a regular expression search. + * @param searcher An object which supports searching within a string. + */ + search(searcher: { [Symbol.search](string: string): number; }): number; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param splitter An object that can split a string. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; +} + +interface ArrayBuffer { + readonly [Symbol.toStringTag]: string; +} + +interface DataView { + readonly [Symbol.toStringTag]: string; +} + +interface Int8Array { + readonly [Symbol.toStringTag]: "Int8Array"; +} + +interface Uint8Array { + readonly [Symbol.toStringTag]: "UInt8Array"; +} + +interface Uint8ClampedArray { + readonly [Symbol.toStringTag]: "Uint8ClampedArray"; +} + +interface Int16Array { + readonly [Symbol.toStringTag]: "Int16Array"; +} + +interface Uint16Array { + readonly [Symbol.toStringTag]: "Uint16Array"; +} + +interface Int32Array { + readonly [Symbol.toStringTag]: "Int32Array"; +} + +interface Uint32Array { + readonly [Symbol.toStringTag]: "Uint32Array"; +} + +interface Float32Array { + readonly [Symbol.toStringTag]: "Float32Array"; +} + +interface Float64Array { + readonly [Symbol.toStringTag]: "Float64Array"; +} + +interface ArrayConstructor { + readonly [Symbol.species]: ArrayConstructor; +} +interface MapConstructor { + readonly [Symbol.species]: MapConstructor; +} +interface SetConstructor { + readonly [Symbol.species]: SetConstructor; +} +interface ArrayBufferConstructor { + readonly [Symbol.species]: ArrayBufferConstructor; +}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.array.include.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.array.include.d.ts new file mode 100644 index 0000000..734fa45 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.array.include.d.ts @@ -0,0 +1,118 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Array<T> { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: T, fromIndex?: number): boolean; +} + +interface ReadonlyArray<T> { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: T, fromIndex?: number): boolean; +} + +interface Int8Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint8Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint8ClampedArray { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Int16Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint16Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Int32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Uint32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Float32Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +} + +interface Float64Array { + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: number, fromIndex?: number): boolean; +}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.d.ts new file mode 100644 index 0000000..b2d59b8 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.d.ts @@ -0,0 +1,22 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015" /> +/// <reference lib="es2016.array.include" />
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.full.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.full.d.ts new file mode 100644 index 0000000..6ecfe0a --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2016.full.d.ts @@ -0,0 +1,25 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2016" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" />
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.d.ts new file mode 100644 index 0000000..850e81d --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.d.ts @@ -0,0 +1,26 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2016" /> +/// <reference lib="es2017.object" /> +/// <reference lib="es2017.sharedmemory" /> +/// <reference lib="es2017.string" /> +/// <reference lib="es2017.intl" /> +/// <reference lib="es2017.typedarrays" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.full.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.full.d.ts new file mode 100644 index 0000000..46d2ee8 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.full.d.ts @@ -0,0 +1,25 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2017" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" />
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.intl.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.intl.d.ts new file mode 100644 index 0000000..25b1fa5 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.intl.d.ts @@ -0,0 +1,32 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +declare namespace Intl { + type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year"; + + interface DateTimeFormatPart { + type: DateTimeFormatPartTypes; + value: string; + } + + interface DateTimeFormat { + formatToParts(date?: Date | number): DateTimeFormatPart[]; + } +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.object.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.object.d.ts new file mode 100644 index 0000000..65aa1f9 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.object.d.ts @@ -0,0 +1,51 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface ObjectConstructor { + /** + * Returns an array of values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + values<T>(o: { [s: string]: T } | ArrayLike<T>): T[]; + + /** + * Returns an array of values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + values(o: {}): any[]; + + /** + * Returns an array of key/values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][]; + + /** + * Returns an array of key/values of the enumerable properties of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + entries(o: {}): [string, any][]; + + /** + * Returns an object containing all own property descriptors of an object + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor }; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.sharedmemory.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.sharedmemory.d.ts new file mode 100644 index 0000000..ef304d3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.sharedmemory.d.ts @@ -0,0 +1,138 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.symbol.wellknown" /> + +interface SharedArrayBuffer { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + readonly byteLength: number; + + /* + * The SharedArrayBuffer constructor's length property whose value is 1. + */ + length: number; + /** + * Returns a section of an SharedArrayBuffer. + */ + slice(begin: number, end?: number): SharedArrayBuffer; + readonly [Symbol.species]: SharedArrayBuffer; + readonly [Symbol.toStringTag]: "SharedArrayBuffer"; +} + +interface SharedArrayBufferConstructor { + readonly prototype: SharedArrayBuffer; + new (byteLength: number): SharedArrayBuffer; +} +declare var SharedArrayBuffer: SharedArrayBufferConstructor; + +interface ArrayBufferTypes { + SharedArrayBuffer: SharedArrayBuffer; +} + +interface Atomics { + /** + * Adds a value to the value at the given position in the array, returning the original value. + * Until this atomic operation completes, any other read or write operation against the array + * will block. + */ + add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Stores the bitwise AND of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or + * write operation against the array will block. + */ + and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Replaces the value at the given position in the array if the original value equals the given + * expected value, returning the original value. Until this atomic operation completes, any + * other read or write operation against the array will block. + */ + compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number; + + /** + * Replaces the value at the given position in the array, returning the original value. Until + * this atomic operation completes, any other read or write operation against the array will + * block. + */ + exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Returns a value indicating whether high-performance algorithms can use atomic operations + * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed + * array. + */ + isLockFree(size: number): boolean; + + /** + * Returns the value at the given position in the array. Until this atomic operation completes, + * any other read or write operation against the array will block. + */ + load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number; + + /** + * Stores the bitwise OR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Stores a value at the given position in the array, returning the new value. Until this + * atomic operation completes, any other read or write operation against the array will block. + */ + store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * Subtracts a value from the value at the given position in the array, returning the original + * value. Until this atomic operation completes, any other read or write operation against the + * array will block. + */ + sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + /** + * If the value at the given position in the array is equal to the provided value, the current + * agent is put to sleep causing execution to suspend until the timeout expires (returning + * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns + * `"not-equal"`. + */ + wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; + + /** + * Wakes up sleeping agents that are waiting on the given index of the array, returning the + * number of agents that were awoken. + */ + wake(typedArray: Int32Array, index: number, count: number): number; + + /** + * Stores the bitwise XOR of a value with the value at the given position in the array, + * returning the original value. Until this atomic operation completes, any other read or write + * operation against the array will block. + */ + xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + + readonly [Symbol.toStringTag]: "Atomics"; +} + +declare var Atomics: Atomics;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.string.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.string.d.ts new file mode 100644 index 0000000..dad64f0 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.string.d.ts @@ -0,0 +1,47 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface String { + /** + * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. + * The padding is applied from the start (left) of the current string. + * + * @param maxLength The length of the resulting string once the current string has been padded. + * If this parameter is smaller than the current string's length, the current string will be returned as it is. + * + * @param fillString The string to pad the current string with. + * If this string is too long, it will be truncated and the left-most part will be applied. + * The default value for this parameter is " " (U+0020). + */ + padStart(maxLength: number, fillString?: string): string; + + /** + * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. + * The padding is applied from the end (right) of the current string. + * + * @param maxLength The length of the resulting string once the current string has been padded. + * If this parameter is smaller than the current string's length, the current string will be returned as it is. + * + * @param fillString The string to pad the current string with. + * If this string is too long, it will be truncated and the left-most part will be applied. + * The default value for this parameter is " " (U+0020). + */ + padEnd(maxLength: number, fillString?: string): string; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.typedarrays.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.typedarrays.d.ts new file mode 100644 index 0000000..4f6f6e7 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2017.typedarrays.d.ts @@ -0,0 +1,55 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Int8ArrayConstructor { + new (): Int8Array; +} + +interface Uint8ArrayConstructor { + new (): Uint8Array; +} + +interface Uint8ClampedArrayConstructor { + new (): Uint8ClampedArray; +} + +interface Int16ArrayConstructor { + new (): Int16Array; +} + +interface Uint16ArrayConstructor { + new (): Uint16Array; +} + +interface Int32ArrayConstructor { + new (): Int32Array; +} + +interface Uint32ArrayConstructor { + new (): Uint32Array; +} + +interface Float32ArrayConstructor { + new (): Float32Array; +} + +interface Float64ArrayConstructor { + new (): Float64Array; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.d.ts new file mode 100644 index 0000000..2a694e3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.d.ts @@ -0,0 +1,24 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2017" /> +/// <reference lib="es2018.promise" /> +/// <reference lib="es2018.regexp" /> +/// <reference lib="es2018.intl" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.full.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.full.d.ts new file mode 100644 index 0000000..277d541 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.full.d.ts @@ -0,0 +1,25 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2018" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" />
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.intl.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.intl.d.ts new file mode 100644 index 0000000..84e95f4 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.intl.d.ts @@ -0,0 +1,51 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +declare namespace Intl { + interface PluralRulesOptions { + localeMatcher?: 'lookup' | 'best fit'; + type?: 'cardinal' | 'ordinal'; + } + + interface ResolvedPluralRulesOptions { + locale: string; + pluralCategories: string[]; + type: 'cardinal' | 'ordinal'; + minimumIntegerDigits: number; + minimumFractionDigits: number; + maximumFractionDigits: number; + minimumSignificantDigits: number; + maximumSignificantDigits: number; + } + + interface PluralRules { + resolvedOptions(): ResolvedPluralRulesOptions; + select(n: number): string; + } + + const PluralRules: { + new (locales?: string | string[], options?: PluralRulesOptions): PluralRules; + (locales?: string | string[], options?: PluralRulesOptions): PluralRules; + supportedLocalesOf( + locales: string | string[], + options?: PluralRulesOptions, + ): string[]; + }; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.promise.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.promise.d.ts new file mode 100644 index 0000000..d73b4d4 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.promise.d.ts @@ -0,0 +1,32 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/** + * Represents the completion of an asynchronous operation + */ +interface Promise<T> { + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): Promise<T> +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.regexp.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.regexp.d.ts new file mode 100644 index 0000000..4ba698f --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es2018.regexp.d.ts @@ -0,0 +1,39 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface RegExpMatchArray { + groups?: { + [key: string]: string + } +} + +interface RegExpExecArray { + groups?: { + [key: string]: string + } +} + +interface RegExp { + /** + * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression. + * Default is false. Read-only. + */ + readonly dotAll: boolean; +}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es5.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es5.d.ts new file mode 100644 index 0000000..d1a9d6f --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es5.d.ts @@ -0,0 +1,4243 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +///////////////////////////// +/// ECMAScript APIs +///////////////////////////// + +declare const NaN: number; +declare const Infinity: number; + +/** + * Evaluates JavaScript code and executes it. + * @param x A String value that contains valid JavaScript code. + */ +declare function eval(x: string): any; + +/** + * Converts A string to an integer. + * @param s A string to convert into a number. + * @param radix A value between 2 and 36 that specifies the base of the number in numString. + * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. + * All other strings are considered decimal. + */ +declare function parseInt(s: string, radix?: number): number; + +/** + * Converts a string to a floating-point number. + * @param string A string that contains a floating-point number. + */ +declare function parseFloat(string: string): number; + +/** + * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). + * @param number A numeric value. + */ +declare function isNaN(number: number): boolean; + +/** + * Determines whether a supplied number is finite. + * @param number Any numeric value. + */ +declare function isFinite(number: number): boolean; + +/** + * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). + * @param encodedURI A value representing an encoded URI. + */ +declare function decodeURI(encodedURI: string): string; + +/** + * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). + * @param encodedURIComponent A value representing an encoded URI component. + */ +declare function decodeURIComponent(encodedURIComponent: string): string; + +/** + * Encodes a text string as a valid Uniform Resource Identifier (URI) + * @param uri A value representing an encoded URI. + */ +declare function encodeURI(uri: string): string; + +/** + * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). + * @param uriComponent A value representing an encoded URI component. + */ +declare function encodeURIComponent(uriComponent: string): string; + +/** + * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. + * @param string A string value + */ +declare function escape(string: string): string; + +/** + * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. + * @param string A string value + */ +declare function unescape(string: string): string; + +interface Symbol { + /** Returns a string representation of an object. */ + toString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): symbol; +} + +declare type PropertyKey = string | number | symbol; + +interface PropertyDescriptor { + configurable?: boolean; + enumerable?: boolean; + value?: any; + writable?: boolean; + get?(): any; + set?(v: any): void; +} + +interface PropertyDescriptorMap { + [s: string]: PropertyDescriptor; +} + +interface Object { + /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ + constructor: Function; + + /** Returns a string representation of an object. */ + toString(): string; + + /** Returns a date converted to a string using the current locale. */ + toLocaleString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): Object; + + /** + * Determines whether an object has a property with the specified name. + * @param v A property name. + */ + hasOwnProperty(v: PropertyKey): boolean; + + /** + * Determines whether an object exists in another object's prototype chain. + * @param v Another object whose prototype chain is to be checked. + */ + isPrototypeOf(v: Object): boolean; + + /** + * Determines whether a specified property is enumerable. + * @param v A property name. + */ + propertyIsEnumerable(v: PropertyKey): boolean; +} + +interface ObjectConstructor { + new(value?: any): Object; + (): any; + (value: any): any; + + /** A reference to the prototype for a class of objects. */ + readonly prototype: Object; + + /** + * Returns the prototype of an object. + * @param o The object that references the prototype. + */ + getPrototypeOf(o: any): any; + + /** + * Gets the own property descriptor of the specified object. + * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. + * @param o Object that contains the property. + * @param p Name of the property. + */ + getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined; + + /** + * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly + * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. + * @param o Object that contains the own properties. + */ + getOwnPropertyNames(o: any): string[]; + + /** + * Creates an object that has the specified prototype or that has null prototype. + * @param o Object to use as a prototype. May be null. + */ + create(o: object | null): any; + + /** + * Creates an object that has the specified prototype, and that optionally contains specified properties. + * @param o Object to use as a prototype. May be null + * @param properties JavaScript object that contains one or more property descriptors. + */ + create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any; + + /** + * Adds a property to an object, or modifies attributes of an existing property. + * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. + * @param p The property name. + * @param attributes Descriptor for the property. It can be for a data property or an accessor property. + */ + defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any; + + /** + * Adds one or more properties to an object, and/or modifies attributes of existing properties. + * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. + * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. + */ + defineProperties(o: any, properties: PropertyDescriptorMap & ThisType<any>): any; + + /** + * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + seal<T>(o: T): T; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze<T>(a: T[]): ReadonlyArray<T>; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze<T extends Function>(f: T): T; + + /** + * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. + * @param o Object on which to lock the attributes. + */ + freeze<T>(o: T): Readonly<T>; + + /** + * Prevents the addition of new properties to an object. + * @param o Object to make non-extensible. + */ + preventExtensions<T>(o: T): T; + + /** + * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. + * @param o Object to test. + */ + isSealed(o: any): boolean; + + /** + * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. + * @param o Object to test. + */ + isFrozen(o: any): boolean; + + /** + * Returns a value that indicates whether new properties can be added to an object. + * @param o Object to test. + */ + isExtensible(o: any): boolean; + + /** + * Returns the names of the enumerable properties and methods of an object. + * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. + */ + keys(o: {}): string[]; +} + +/** + * Provides functionality common to all JavaScript objects. + */ +declare const Object: ObjectConstructor; + +/** + * Creates a new function. + */ +interface Function { + /** + * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. + * @param thisArg The object to be used as the this object. + * @param argArray A set of arguments to be passed to the function. + */ + apply(this: Function, thisArg: any, argArray?: any): any; + + /** + * Calls a method of an object, substituting another object for the current object. + * @param thisArg The object to be used as the current object. + * @param argArray A list of arguments to be passed to the method. + */ + call(this: Function, thisArg: any, ...argArray: any[]): any; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg An object to which the this keyword can refer inside the new function. + * @param argArray A list of arguments to be passed to the new function. + */ + bind(this: Function, thisArg: any, ...argArray: any[]): any; + + /** Returns a string representation of a function. */ + toString(): string; + + prototype: any; + readonly length: number; + + // Non-standard extensions + arguments: any; + caller: Function; +} + +interface FunctionConstructor { + /** + * Creates a new function. + * @param args A list of arguments the function accepts. + */ + new(...args: string[]): Function; + (...args: string[]): Function; + readonly prototype: Function; +} + +declare const Function: FunctionConstructor; + +interface CallableFunction extends Function { + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ + apply<T, R>(this: (this: T) => R, thisArg: T): R; + apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R; + + /** + * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. + * @param thisArg The object to be used as the this object. + * @param args Argument values to be passed to the function. + */ + call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T): (...args: A) => R; + bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R; + bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R; + bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R; + bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R; + bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R; +} + +interface NewableFunction extends Function { + /** + * Calls the function with the specified object as the this value and the elements of specified array as the arguments. + * @param thisArg The object to be used as the this object. + * @param args An array of argument values to be passed to the function. + */ + apply<T>(this: new () => T, thisArg: T): void; + apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void; + + /** + * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. + * @param thisArg The object to be used as the this object. + * @param args Argument values to be passed to the function. + */ + call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void; + + /** + * For a given function, creates a bound function that has the same body as the original function. + * The this object of the bound function is associated with the specified object, and has the specified initial parameters. + * @param thisArg The object to be used as the this object. + * @param args Arguments to bind to the parameters of the function. + */ + bind<A extends any[], R>(this: new (...args: A) => R, thisArg: any): new (...args: A) => R; + bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R; + bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R; + bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R; + bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R; + bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R; +} + +interface IArguments { + [index: number]: any; + length: number; + callee: Function; +} + +interface String { + /** Returns a string representation of a string. */ + toString(): string; + + /** + * Returns the character at the specified index. + * @param pos The zero-based index of the desired character. + */ + charAt(pos: number): string; + + /** + * Returns the Unicode value of the character at the specified location. + * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. + */ + charCodeAt(index: number): number; + + /** + * Returns a string that contains the concatenation of two or more strings. + * @param strings The strings to append to the end of the string. + */ + concat(...strings: string[]): string; + + /** + * Returns the position of the first occurrence of a substring. + * @param searchString The substring to search for in the string + * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. + */ + indexOf(searchString: string, position?: number): number; + + /** + * Returns the last occurrence of a substring in the string. + * @param searchString The substring to search for. + * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. + */ + lastIndexOf(searchString: string, position?: number): number; + + /** + * Determines whether two strings are equivalent in the current locale. + * @param that String to compare to target string + */ + localeCompare(that: string): number; + + /** + * Matches a string with a regular expression, and returns an array containing the results of that search. + * @param regexp A variable name or string literal containing the regular expression pattern and flags. + */ + match(regexp: string | RegExp): RegExpMatchArray | null; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string to search for. + * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + */ + replace(searchValue: string | RegExp, replaceValue: string): string; + + /** + * Replaces text in a string, using a regular expression or search string. + * @param searchValue A string to search for. + * @param replacer A function that returns the replacement text. + */ + replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; + + /** + * Finds the first substring match in a regular expression search. + * @param regexp The regular expression pattern and applicable flags. + */ + search(regexp: string | RegExp): number; + + /** + * Returns a section of a string. + * @param start The index to the beginning of the specified portion of stringObj. + * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. + * If this value is not specified, the substring continues to the end of stringObj. + */ + slice(start?: number, end?: number): string; + + /** + * Split a string into substrings using the specified separator and return them as an array. + * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. + * @param limit A value used to limit the number of elements returned in the array. + */ + split(separator: string | RegExp, limit?: number): string[]; + + /** + * Returns the substring at the specified location within a String object. + * @param start The zero-based index number indicating the beginning of the substring. + * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. + * If end is omitted, the characters from start through the end of the original string are returned. + */ + substring(start: number, end?: number): string; + + /** Converts all the alphabetic characters in a string to lowercase. */ + toLowerCase(): string; + + /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ + toLocaleLowerCase(): string; + + /** Converts all the alphabetic characters in a string to uppercase. */ + toUpperCase(): string; + + /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ + toLocaleUpperCase(): string; + + /** Removes the leading and trailing white space and line terminator characters from a string. */ + trim(): string; + + /** Returns the length of a String object. */ + readonly length: number; + + // IE extensions + /** + * Gets a substring beginning at the specified location and having the specified length. + * @param from The starting position of the desired substring. The index of the first character in the string is zero. + * @param length The number of characters to include in the returned substring. + */ + substr(from: number, length?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): string; + + readonly [index: number]: string; +} + +interface StringConstructor { + new(value?: any): String; + (value?: any): string; + readonly prototype: String; + fromCharCode(...codes: number[]): string; +} + +/** + * Allows manipulation and formatting of text strings and determination and location of substrings within strings. + */ +declare const String: StringConstructor; + +interface Boolean { + /** Returns the primitive value of the specified object. */ + valueOf(): boolean; +} + +interface BooleanConstructor { + new(value?: any): Boolean; + (value?: any): boolean; + readonly prototype: Boolean; +} + +declare const Boolean: BooleanConstructor; + +interface Number { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. + */ + toString(radix?: number): string; + + /** + * Returns a string representing a number in fixed-point notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toFixed(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented in exponential notation. + * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. + */ + toExponential(fractionDigits?: number): string; + + /** + * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. + * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. + */ + toPrecision(precision?: number): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): number; +} + +interface NumberConstructor { + new(value?: any): Number; + (value?: any): number; + readonly prototype: Number; + + /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ + readonly MAX_VALUE: number; + + /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ + readonly MIN_VALUE: number; + + /** + * A value that is not a number. + * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. + */ + readonly NaN: number; + + /** + * A value that is less than the largest negative number that can be represented in JavaScript. + * JavaScript displays NEGATIVE_INFINITY values as -infinity. + */ + readonly NEGATIVE_INFINITY: number; + + /** + * A value greater than the largest number that can be represented in JavaScript. + * JavaScript displays POSITIVE_INFINITY values as infinity. + */ + readonly POSITIVE_INFINITY: number; +} + +/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */ +declare const Number: NumberConstructor; + +interface TemplateStringsArray extends ReadonlyArray<string> { + readonly raw: ReadonlyArray<string>; +} + +/** + * The type of `import.meta`. + * + * If you need to declare that a given property exists on `import.meta`, + * this type may be augmented via interface merging. + */ +interface ImportMeta { +} + +interface Math { + /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ + readonly E: number; + /** The natural logarithm of 10. */ + readonly LN10: number; + /** The natural logarithm of 2. */ + readonly LN2: number; + /** The base-2 logarithm of e. */ + readonly LOG2E: number; + /** The base-10 logarithm of e. */ + readonly LOG10E: number; + /** Pi. This is the ratio of the circumference of a circle to its diameter. */ + readonly PI: number; + /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ + readonly SQRT1_2: number; + /** The square root of 2. */ + readonly SQRT2: number; + /** + * Returns the absolute value of a number (the value without regard to whether it is positive or negative). + * For example, the absolute value of -5 is the same as the absolute value of 5. + * @param x A numeric expression for which the absolute value is needed. + */ + abs(x: number): number; + /** + * Returns the arc cosine (or inverse cosine) of a number. + * @param x A numeric expression. + */ + acos(x: number): number; + /** + * Returns the arcsine of a number. + * @param x A numeric expression. + */ + asin(x: number): number; + /** + * Returns the arctangent of a number. + * @param x A numeric expression for which the arctangent is needed. + */ + atan(x: number): number; + /** + * Returns the angle (in radians) from the X axis to a point. + * @param y A numeric expression representing the cartesian y-coordinate. + * @param x A numeric expression representing the cartesian x-coordinate. + */ + atan2(y: number, x: number): number; + /** + * Returns the smallest integer greater than or equal to its numeric argument. + * @param x A numeric expression. + */ + ceil(x: number): number; + /** + * Returns the cosine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + cos(x: number): number; + /** + * Returns e (the base of natural logarithms) raised to a power. + * @param x A numeric expression representing the power of e. + */ + exp(x: number): number; + /** + * Returns the greatest integer less than or equal to its numeric argument. + * @param x A numeric expression. + */ + floor(x: number): number; + /** + * Returns the natural logarithm (base e) of a number. + * @param x A numeric expression. + */ + log(x: number): number; + /** + * Returns the larger of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + max(...values: number[]): number; + /** + * Returns the smaller of a set of supplied numeric expressions. + * @param values Numeric expressions to be evaluated. + */ + min(...values: number[]): number; + /** + * Returns the value of a base expression taken to a specified power. + * @param x The base value of the expression. + * @param y The exponent value of the expression. + */ + pow(x: number, y: number): number; + /** Returns a pseudorandom number between 0 and 1. */ + random(): number; + /** + * Returns a supplied numeric expression rounded to the nearest number. + * @param x The value to be rounded to the nearest number. + */ + round(x: number): number; + /** + * Returns the sine of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + sin(x: number): number; + /** + * Returns the square root of a number. + * @param x A numeric expression. + */ + sqrt(x: number): number; + /** + * Returns the tangent of a number. + * @param x A numeric expression that contains an angle measured in radians. + */ + tan(x: number): number; +} +/** An intrinsic object that provides basic mathematics functionality and constants. */ +declare const Math: Math; + +/** Enables basic storage and retrieval of dates and times. */ +interface Date { + /** Returns a string representation of a date. The format of the string depends on the locale. */ + toString(): string; + /** Returns a date as a string value. */ + toDateString(): string; + /** Returns a time as a string value. */ + toTimeString(): string; + /** Returns a value as a string value appropriate to the host environment's current locale. */ + toLocaleString(): string; + /** Returns a date as a string value appropriate to the host environment's current locale. */ + toLocaleDateString(): string; + /** Returns a time as a string value appropriate to the host environment's current locale. */ + toLocaleTimeString(): string; + /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ + valueOf(): number; + /** Gets the time value in milliseconds. */ + getTime(): number; + /** Gets the year, using local time. */ + getFullYear(): number; + /** Gets the year using Universal Coordinated Time (UTC). */ + getUTCFullYear(): number; + /** Gets the month, using local time. */ + getMonth(): number; + /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ + getUTCMonth(): number; + /** Gets the day-of-the-month, using local time. */ + getDate(): number; + /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ + getUTCDate(): number; + /** Gets the day of the week, using local time. */ + getDay(): number; + /** Gets the day of the week using Universal Coordinated Time (UTC). */ + getUTCDay(): number; + /** Gets the hours in a date, using local time. */ + getHours(): number; + /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ + getUTCHours(): number; + /** Gets the minutes of a Date object, using local time. */ + getMinutes(): number; + /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ + getUTCMinutes(): number; + /** Gets the seconds of a Date object, using local time. */ + getSeconds(): number; + /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCSeconds(): number; + /** Gets the milliseconds of a Date, using local time. */ + getMilliseconds(): number; + /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ + getUTCMilliseconds(): number; + /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ + getTimezoneOffset(): number; + /** + * Sets the date and time value in the Date object. + * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. + */ + setTime(time: number): number; + /** + * Sets the milliseconds value in the Date object using local time. + * @param ms A numeric value equal to the millisecond value. + */ + setMilliseconds(ms: number): number; + /** + * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). + * @param ms A numeric value equal to the millisecond value. + */ + setUTCMilliseconds(ms: number): number; + + /** + * Sets the seconds value in the Date object using local time. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setSeconds(sec: number, ms?: number): number; + /** + * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCSeconds(sec: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using local time. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCMinutes(min: number, sec?: number, ms?: number): number; + /** + * Sets the hour value in the Date object using local time. + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the hours value in the Date object using Universal Coordinated Time (UTC). + * @param hours A numeric value equal to the hours value. + * @param min A numeric value equal to the minutes value. + * @param sec A numeric value equal to the seconds value. + * @param ms A numeric value equal to the milliseconds value. + */ + setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; + /** + * Sets the numeric day-of-the-month value of the Date object using local time. + * @param date A numeric value equal to the day of the month. + */ + setDate(date: number): number; + /** + * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). + * @param date A numeric value equal to the day of the month. + */ + setUTCDate(date: number): number; + /** + * Sets the month value in the Date object using local time. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. + */ + setMonth(month: number, date?: number): number; + /** + * Sets the month value in the Date object using Universal Coordinated Time (UTC). + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. + * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. + */ + setUTCMonth(month: number, date?: number): number; + /** + * Sets the year of the Date object using local time. + * @param year A numeric value for the year. + * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. + * @param date A numeric value equal for the day of the month. + */ + setFullYear(year: number, month?: number, date?: number): number; + /** + * Sets the year value in the Date object using Universal Coordinated Time (UTC). + * @param year A numeric value equal to the year. + * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. + * @param date A numeric value equal to the day of the month. + */ + setUTCFullYear(year: number, month?: number, date?: number): number; + /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ + toUTCString(): string; + /** Returns a date as a string value in ISO format. */ + toISOString(): string; + /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ + toJSON(key?: any): string; +} + +interface DateConstructor { + new(): Date; + new(value: number | string): Date; + new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; + (): string; + readonly prototype: Date; + /** + * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. + * @param s A date string + */ + parse(s: string): number; + /** + * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. + * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. + * @param month The month as an number between 0 and 11 (January to December). + * @param date The date as an number between 1 and 31. + * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. + * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. + * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. + * @param ms An number from 0 to 999 that specifies the milliseconds. + */ + UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; + now(): number; +} + +declare const Date: DateConstructor; + +interface RegExpMatchArray extends Array<string> { + index?: number; + input?: string; +} + +interface RegExpExecArray extends Array<string> { + index: number; + input: string; +} + +interface RegExp { + /** + * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. + * @param string The String object or string literal on which to perform the search. + */ + exec(string: string): RegExpExecArray | null; + + /** + * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. + * @param string String on which to perform the search. + */ + test(string: string): boolean; + + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ + readonly source: string; + + /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ + readonly global: boolean; + + /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ + readonly ignoreCase: boolean; + + /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ + readonly multiline: boolean; + + lastIndex: number; + + // Non-standard extensions + compile(): this; +} + +interface RegExpConstructor { + new(pattern: RegExp | string): RegExp; + new(pattern: string, flags?: string): RegExp; + (pattern: RegExp | string): RegExp; + (pattern: string, flags?: string): RegExp; + readonly prototype: RegExp; + + // Non-standard extensions + $1: string; + $2: string; + $3: string; + $4: string; + $5: string; + $6: string; + $7: string; + $8: string; + $9: string; + lastMatch: string; +} + +declare const RegExp: RegExpConstructor; + +interface Error { + name: string; + message: string; + stack?: string; +} + +interface ErrorConstructor { + new(message?: string): Error; + (message?: string): Error; + readonly prototype: Error; +} + +declare const Error: ErrorConstructor; + +interface EvalError extends Error { +} + +interface EvalErrorConstructor { + new(message?: string): EvalError; + (message?: string): EvalError; + readonly prototype: EvalError; +} + +declare const EvalError: EvalErrorConstructor; + +interface RangeError extends Error { +} + +interface RangeErrorConstructor { + new(message?: string): RangeError; + (message?: string): RangeError; + readonly prototype: RangeError; +} + +declare const RangeError: RangeErrorConstructor; + +interface ReferenceError extends Error { +} + +interface ReferenceErrorConstructor { + new(message?: string): ReferenceError; + (message?: string): ReferenceError; + readonly prototype: ReferenceError; +} + +declare const ReferenceError: ReferenceErrorConstructor; + +interface SyntaxError extends Error { +} + +interface SyntaxErrorConstructor { + new(message?: string): SyntaxError; + (message?: string): SyntaxError; + readonly prototype: SyntaxError; +} + +declare const SyntaxError: SyntaxErrorConstructor; + +interface TypeError extends Error { +} + +interface TypeErrorConstructor { + new(message?: string): TypeError; + (message?: string): TypeError; + readonly prototype: TypeError; +} + +declare const TypeError: TypeErrorConstructor; + +interface URIError extends Error { +} + +interface URIErrorConstructor { + new(message?: string): URIError; + (message?: string): URIError; + readonly prototype: URIError; +} + +declare const URIError: URIErrorConstructor; + +interface JSON { + /** + * Converts a JavaScript Object Notation (JSON) string into an object. + * @param text A valid JSON string. + * @param reviver A function that transforms the results. This function is called for each member of the object. + * If a member contains nested objects, the nested objects are transformed before the parent object is. + */ + parse(text: string, reviver?: (key: any, value: any) => any): any; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer A function that transforms the results. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; + /** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + */ + stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string; +} + +/** + * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. + */ +declare const JSON: JSON; + + +///////////////////////////// +/// ECMAScript Array API (specially handled by compiler) +///////////////////////////// + +interface ReadonlyArray<T> { + /** + * Gets the length of the array. This is a number one higher than the highest element defined in an array. + */ + readonly length: number; + /** + * Returns a string representation of an array. + */ + toString(): string; + /** + * Returns a string representation of an array. The elements are converted to string using their toLocalString methods. + */ + toLocaleString(): string; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: ConcatArray<T>[]): T[]; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: (T | ConcatArray<T>)[]): T[]; + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): T[]; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean; + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean; + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, thisArg?: any): void; + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => U, thisArg?: any): U[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter<S extends T>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => value is S, thisArg?: any): S[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => any, thisArg?: any): T[]; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T): T; + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T): T; + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U; + + readonly [n: number]: T; +} + +interface ConcatArray<T> { + readonly length: number; + readonly [n: number]: T; + join(separator?: string): string; + slice(start?: number, end?: number): T[]; +} + +interface Array<T> { + /** + * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. + */ + length: number; + /** + * Returns a string representation of an array. + */ + toString(): string; + /** + * Returns a string representation of an array. The elements are converted to string using their toLocalString methods. + */ + toLocaleString(): string; + /** + * Removes the last element from an array and returns it. + */ + pop(): T | undefined; + /** + * Appends new elements to an array, and returns the new length of the array. + * @param items New elements of the Array. + */ + push(...items: T[]): number; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: ConcatArray<T>[]): T[]; + /** + * Combines two or more arrays. + * @param items Additional items to add to the end of array1. + */ + concat(...items: (T | ConcatArray<T>)[]): T[]; + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + /** + * Reverses the elements in an Array. + */ + reverse(): T[]; + /** + * Removes the first element from an array and returns it. + */ + shift(): T | undefined; + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): T[]; + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: T, b: T) => number): this; + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + */ + splice(start: number, deleteCount?: number): T[]; + /** + * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. + * @param start The zero-based location in the array from which to start removing elements. + * @param deleteCount The number of elements to remove. + * @param items Elements to insert into the array in place of the deleted elements. + */ + splice(start: number, deleteCount: number, ...items: T[]): T[]; + /** + * Inserts new elements at the start of an array. + * @param items Elements to insert at the start of the Array. + */ + unshift(...items: T[]): number; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. + */ + indexOf(searchElement: T, fromIndex?: number): number; + /** + * Returns the index of the last occurrence of a specified value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. + */ + lastIndexOf(searchElement: T, fromIndex?: number): number; + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; + /** + * Calls a defined callback function on each element of an array, and returns an array that contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter<S extends T>(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[]; + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: T, index: number, array: T[]) => any, thisArg?: any): T[]; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; + reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; + reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; + /** + * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; + + [n: number]: T; +} + +interface ArrayConstructor { + new(arrayLength?: number): any[]; + new <T>(arrayLength: number): T[]; + new <T>(...items: T[]): T[]; + (arrayLength?: number): any[]; + <T>(arrayLength: number): T[]; + <T>(...items: T[]): T[]; + isArray(arg: any): arg is Array<any>; + readonly prototype: Array<any>; +} + +declare const Array: ArrayConstructor; + +interface TypedPropertyDescriptor<T> { + enumerable?: boolean; + configurable?: boolean; + writable?: boolean; + value?: T; + get?: () => T; + set?: (value: T) => void; +} + +declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void; +declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; +declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; + +declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>; + +interface PromiseLike<T> { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>; +} + +/** + * Represents the completion of an asynchronous operation + */ +interface Promise<T> { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>; + + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>; +} + +interface ArrayLike<T> { + readonly length: number; + readonly [n: number]: T; +} + +/** + * Make all properties in T optional + */ +type Partial<T> = { + [P in keyof T]?: T[P]; +}; + +/** + * Make all properties in T required + */ +type Required<T> = { + [P in keyof T]-?: T[P]; +}; + +/** + * Make all properties in T readonly + */ +type Readonly<T> = { + readonly [P in keyof T]: T[P]; +}; + +/** + * From T, pick a set of properties whose keys are in the union K + */ +type Pick<T, K extends keyof T> = { + [P in K]: T[P]; +}; + +/** + * Construct a type with a set of properties K of type T + */ +type Record<K extends keyof any, T> = { + [P in K]: T; +}; + +/** + * Exclude from T those types that are assignable to U + */ +type Exclude<T, U> = T extends U ? never : T; + +/** + * Extract from T those types that are assignable to U + */ +type Extract<T, U> = T extends U ? T : never; + +/** + * Exclude null and undefined from T + */ +type NonNullable<T> = T extends null | undefined ? never : T; + +/** + * Obtain the parameters of a function type in a tuple + */ +type Parameters<T extends (...args: any[]) => any> = T extends (...args: infer P) => any ? P : never; + +/** + * Obtain the parameters of a constructor function type in a tuple + */ +type ConstructorParameters<T extends new (...args: any[]) => any> = T extends new (...args: infer P) => any ? P : never; + +/** + * Obtain the return type of a function type + */ +type ReturnType<T extends (...args: any[]) => any> = T extends (...args: any[]) => infer R ? R : any; + +/** + * Obtain the return type of a constructor function type + */ +type InstanceType<T extends new (...args: any[]) => any> = T extends new (...args: any[]) => infer R ? R : any; + +/** + * Marker for contextual 'this' type + */ +interface ThisType<T> { } + +/** + * Represents a raw buffer of binary data, which is used to store data for the + * different typed arrays. ArrayBuffers cannot be read from or written to directly, + * but can be passed to a typed array or DataView Object to interpret the raw + * buffer as needed. + */ +interface ArrayBuffer { + /** + * Read-only. The length of the ArrayBuffer (in bytes). + */ + readonly byteLength: number; + + /** + * Returns a section of an ArrayBuffer. + */ + slice(begin: number, end?: number): ArrayBuffer; +} + +/** + * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays. + */ +interface ArrayBufferTypes { + ArrayBuffer: ArrayBuffer; +} +type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes]; + +interface ArrayBufferConstructor { + readonly prototype: ArrayBuffer; + new(byteLength: number): ArrayBuffer; + isView(arg: any): arg is ArrayBufferView; +} +declare const ArrayBuffer: ArrayBufferConstructor; + +interface ArrayBufferView { + /** + * The ArrayBuffer instance referenced by the array. + */ + buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + byteLength: number; + + /** + * The offset in bytes of the array. + */ + byteOffset: number; +} + +interface DataView { + readonly buffer: ArrayBuffer; + readonly byteLength: number; + readonly byteOffset: number; + /** + * Gets the Float32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getFloat32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Float64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getFloat64(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Int8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt8(byteOffset: number): number; + + /** + * Gets the Int16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt16(byteOffset: number, littleEndian?: boolean): number; + /** + * Gets the Int32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getInt32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint8 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint8(byteOffset: number): number; + + /** + * Gets the Uint16 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint16(byteOffset: number, littleEndian?: boolean): number; + + /** + * Gets the Uint32 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getUint32(byteOffset: number, littleEndian?: boolean): number; + + /** + * Stores an Float32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Float64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setInt8(byteOffset: number, value: number): void; + + /** + * Stores an Int16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setInt16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Int32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setInt32(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint8 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + */ + setUint8(byteOffset: number, value: number): void; + + /** + * Stores an Uint16 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setUint16(byteOffset: number, value: number, littleEndian?: boolean): void; + + /** + * Stores an Uint32 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; +} + +interface DataViewConstructor { + new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView; +} +declare const DataView: DataViewConstructor; + +/** + * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Int8Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int8Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} +interface Int8ArrayConstructor { + readonly prototype: Int8Array; + new(length: number): Int8Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int8Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; + + +} +declare const Int8Array: Int8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint8Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint8Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint8ArrayConstructor { + readonly prototype: Uint8Array; + new(length: number): Uint8Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; + +} +declare const Uint8Array: Uint8ArrayConstructor; + +/** + * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. + * If the requested number of bytes could not be allocated an exception is raised. + */ +interface Uint8ClampedArray { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint8ClampedArray; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint8ClampedArray; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint8ClampedArray; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint8ClampedArrayConstructor { + readonly prototype: Uint8ClampedArray; + new(length: number): Uint8ClampedArray; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint8ClampedArray; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; +} +declare const Uint8ClampedArray: Uint8ClampedArrayConstructor; + +/** + * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int16Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int16Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Int16ArrayConstructor { + readonly prototype: Int16Array; + new(length: number): Int16Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int16Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; + + +} +declare const Int16Array: Int16ArrayConstructor; + +/** + * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint16Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint16Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint16Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint16Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint16ArrayConstructor { + readonly prototype: Uint16Array; + new(length: number): Uint16Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint16Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint16Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; + + +} +declare const Uint16Array: Uint16ArrayConstructor; +/** + * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Int32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Int32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Int32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Int32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Int32ArrayConstructor { + readonly prototype: Int32Array; + new(length: number): Int32Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int32Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Int32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; + +} +declare const Int32Array: Int32ArrayConstructor; + +/** + * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated an exception is raised. + */ +interface Uint32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Uint32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Uint32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Uint32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Uint32ArrayConstructor { + readonly prototype: Uint32Array; + new(length: number): Uint32Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint32Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Uint32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; + +} +declare const Uint32Array: Uint32ArrayConstructor; + +/** + * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number + * of bytes could not be allocated an exception is raised. + */ +interface Float32Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float32Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Float32Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Float32Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Float32ArrayConstructor { + readonly prototype: Float32Array; + new(length: number): Float32Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float32Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float32Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; + + +} +declare const Float32Array: Float32ArrayConstructor; + +/** + * A typed array of 64-bit float values. The contents are initialized to 0. If the requested + * number of bytes could not be allocated an exception is raised. + */ +interface Float64Array { + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * The ArrayBuffer instance referenced by the array. + */ + readonly buffer: ArrayBufferLike; + + /** + * The length in bytes of the array. + */ + readonly byteLength: number; + + /** + * The offset in bytes of the array. + */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in array1 until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: number, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: number, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: number, fromIndex?: number): number; + + /** + * The length of the array. + */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; + + /** + * Reverses the elements in an Array. + */ + reverse(): Float64Array; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<number>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): Float64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in array1 until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts an array. + * @param compareFn The name of the function used to determine the order of the elements. If + * omitted, the elements are sorted in ascending, ASCII character order. + */ + sort(compareFn?: (a: number, b: number) => number): this; + + /** + * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): Float64Array; + + /** + * Converts a number to a string by using the current locale. + */ + toLocaleString(): string; + + /** + * Returns a string representation of an array. + */ + toString(): string; + + [index: number]: number; +} + +interface Float64ArrayConstructor { + readonly prototype: Float64Array; + new(length: number): Float64Array; + new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float64Array; + new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array; + + /** + * The size in bytes of each element in the array. + */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: number[]): Float64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; + +} +declare const Float64Array: Float64ArrayConstructor; + +///////////////////////////// +/// ECMAScript Internationalization API +///////////////////////////// + +declare namespace Intl { + interface CollatorOptions { + usage?: string; + localeMatcher?: string; + numeric?: boolean; + caseFirst?: string; + sensitivity?: string; + ignorePunctuation?: boolean; + } + + interface ResolvedCollatorOptions { + locale: string; + usage: string; + sensitivity: string; + ignorePunctuation: boolean; + collation: string; + caseFirst: string; + numeric: boolean; + } + + interface Collator { + compare(x: string, y: string): number; + resolvedOptions(): ResolvedCollatorOptions; + } + var Collator: { + new(locales?: string | string[], options?: CollatorOptions): Collator; + (locales?: string | string[], options?: CollatorOptions): Collator; + supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[]; + }; + + interface NumberFormatOptions { + localeMatcher?: string; + style?: string; + currency?: string; + currencyDisplay?: string; + useGrouping?: boolean; + minimumIntegerDigits?: number; + minimumFractionDigits?: number; + maximumFractionDigits?: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + } + + interface ResolvedNumberFormatOptions { + locale: string; + numberingSystem: string; + style: string; + currency?: string; + currencyDisplay?: string; + minimumIntegerDigits: number; + minimumFractionDigits: number; + maximumFractionDigits: number; + minimumSignificantDigits?: number; + maximumSignificantDigits?: number; + useGrouping: boolean; + } + + interface NumberFormat { + format(value: number): string; + resolvedOptions(): ResolvedNumberFormatOptions; + } + var NumberFormat: { + new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat; + (locales?: string | string[], options?: NumberFormatOptions): NumberFormat; + supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[]; + }; + + interface DateTimeFormatOptions { + localeMatcher?: string; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + formatMatcher?: string; + hour12?: boolean; + timeZone?: string; + } + + interface ResolvedDateTimeFormatOptions { + locale: string; + calendar: string; + numberingSystem: string; + timeZone: string; + hour12?: boolean; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + } + + interface DateTimeFormat { + format(date?: Date | number): string; + resolvedOptions(): ResolvedDateTimeFormatOptions; + } + var DateTimeFormat: { + new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; + (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; + supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[]; + }; +} + +interface String { + /** + * Determines whether two strings are equivalent in the current or specified locale. + * @param that String to compare to target string + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. + * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. + */ + localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; +} + +interface Number { + /** + * Converts a number to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; +} + +interface Date { + /** + * Converts a date and time to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; + /** + * Converts a date to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; + + /** + * Converts a time to a string by using the current or specified locale. + * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. + * @param options An object that contains one or more properties that specify comparison options. + */ + toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es6.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es6.d.ts new file mode 100644 index 0000000..6149c4a --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.es6.d.ts @@ -0,0 +1,25 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015" /> +/// <reference lib="dom" /> +/// <reference lib="dom.iterable" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.array.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.array.d.ts new file mode 100644 index 0000000..6c75122 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.array.d.ts @@ -0,0 +1,223 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface ReadonlyArray<T> { + + /** + * Calls a defined callback function on each element of an array. Then, flattens the result into + * a new array. + * This is identical to a map followed by flat with depth 1. + * + * @param callback A function that accepts up to three arguments. The flatMap method calls the + * callback function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callback function. If + * thisArg is omitted, undefined is used as the this value. + */ + flatMap<U, This = undefined> ( + callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray<U>, + thisArg?: This + ): U[] + + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: + ReadonlyArray<U[][][][]> | + + ReadonlyArray<ReadonlyArray<U[][][]>> | + ReadonlyArray<ReadonlyArray<U[][]>[]> | + ReadonlyArray<ReadonlyArray<U[]>[][]> | + ReadonlyArray<ReadonlyArray<U>[][][]> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<U[][]>>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>[][]>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>[][]> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>[]>[]> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U[]>>[]> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U[]>[]>> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U[]>>>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U>[]>>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>[]>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>>[]> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>>>>, + depth: 4): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: + ReadonlyArray<U[][][]> | + + ReadonlyArray<ReadonlyArray<U>[][]> | + ReadonlyArray<ReadonlyArray<U[]>[]> | + ReadonlyArray<ReadonlyArray<U[][]>> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<U[]>>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>[]>> | + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>[]> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>>>, + depth: 3): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: + ReadonlyArray<U[][]> | + + ReadonlyArray<ReadonlyArray<U[]>> | + ReadonlyArray<ReadonlyArray<U>[]> | + + ReadonlyArray<ReadonlyArray<ReadonlyArray<U>>>, + depth: 2): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: + ReadonlyArray<U[]> | + ReadonlyArray<ReadonlyArray<U>>, + depth?: 1 + ): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: + ReadonlyArray<U>, + depth: 0 + ): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. If no depth is provided, flat method defaults to the depth of 1. + * + * @param depth The maximum recursion depth + */ + flat<U>(depth?: number): any[]; + } + +interface Array<T> { + + /** + * Calls a defined callback function on each element of an array. Then, flattens the result into + * a new array. + * This is identical to a map followed by flat with depth 1. + * + * @param callback A function that accepts up to three arguments. The flatMap method calls the + * callback function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callback function. If + * thisArg is omitted, undefined is used as the this value. + */ + flatMap<U, This = undefined> ( + callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray<U>, + thisArg?: This + ): U[] + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][][][][][][], depth: 7): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][][][][][], depth: 6): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][][][][], depth: 5): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][][][], depth: 4): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][][], depth: 3): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][][], depth: 2): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[][], depth?: 1): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. + * + * @param depth The maximum recursion depth + */ + flat<U>(this: U[], depth: 0): U[]; + + /** + * Returns a new array with all sub-array elements concatenated into it recursively up to the + * specified depth. If no depth is provided, flat method defaults to the depth of 1. + * + * @param depth The maximum recursion depth + */ + flat<U>(depth?: number): any[]; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.asynciterable.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.asynciterable.d.ts new file mode 100644 index 0000000..38e12a7 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.asynciterable.d.ts @@ -0,0 +1,44 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2015.symbol" /> +/// <reference lib="es2015.iterable" /> + +interface SymbolConstructor { + /** + * A method that returns the default async iterator for an object. Called by the semantics of + * the for-await-of statement. + */ + readonly asyncIterator: symbol; +} + +interface AsyncIterator<T> { + next(value?: any): Promise<IteratorResult<T>>; + return?(value?: any): Promise<IteratorResult<T>>; + throw?(e?: any): Promise<IteratorResult<T>>; +} + +interface AsyncIterable<T> { + [Symbol.asyncIterator](): AsyncIterator<T>; +} + +interface AsyncIterableIterator<T> extends AsyncIterator<T> { + [Symbol.asyncIterator](): AsyncIterableIterator<T>; +}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.bigint.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.bigint.d.ts new file mode 100644 index 0000000..ccb73be --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.bigint.d.ts @@ -0,0 +1,629 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface BigInt { + /** + * Returns a string representation of an object. + * @param radix Specifies a radix for converting numeric values to strings. + */ + toString(radix?: number): string; + + /** Returns a string representation appropriate to the host environment's current locale. */ + toLocaleString(): string; + + /** Returns the primitive value of the specified object. */ + valueOf(): bigint; + + readonly [Symbol.toStringTag]: "BigInt"; +} + +interface BigIntConstructor { + (value?: any): bigint; + readonly prototype: BigInt; + + /** + * Interprets the low bits of a BigInt as a 2's-complement signed integer. + * All higher bits are discarded. + * @param bits The number of low bits to use + * @param int The BigInt whose bits to extract + */ + asIntN(bits: number, int: bigint): bigint; + /** + * Interprets the low bits of a BigInt as an unsigned integer. + * All higher bits are discarded. + * @param bits The number of low bits to use + * @param int The BigInt whose bits to extract + */ + asUintN(bits: number, int: bigint): bigint; +} + +declare const BigInt: BigIntConstructor; + +/** + * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated, an exception is raised. + */ +interface BigInt64Array { + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** The ArrayBuffer instance referenced by the array. */ + readonly buffer: ArrayBufferLike; + + /** The length in bytes of the array. */ + readonly byteLength: number; + + /** The offset in bytes of the array. */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** Yields index, value pairs for every entry in the array. */ + entries(): IterableIterator<[number, bigint]>; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in the array until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: bigint, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: bigint, fromIndex?: number): boolean; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: bigint, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** Yields each index in the array. */ + keys(): IterableIterator<number>; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: bigint, fromIndex?: number): number; + + /** The length of the array. */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + + /** Reverses the elements in the array. */ + reverse(): this; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<bigint>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): BigInt64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in the array until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts the array. + * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. + */ + sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; + + /** + * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): BigInt64Array; + + /** Converts the array to a string by using the current locale. */ + toLocaleString(): string; + + /** Returns a string representation of the array. */ + toString(): string; + + /** Yields each value in the array. */ + values(): IterableIterator<bigint>; + + [Symbol.iterator](): IterableIterator<bigint>; + + readonly [Symbol.toStringTag]: "BigInt64Array"; + + [index: number]: bigint; +} + +interface BigInt64ArrayConstructor { + readonly prototype: BigInt64Array; + new(length?: number): BigInt64Array; + new(array: Iterable<bigint>): BigInt64Array; + new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; + + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: bigint[]): BigInt64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<bigint>): BigInt64Array; + from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; +} + +declare const BigInt64Array: BigInt64ArrayConstructor; + +/** + * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the + * requested number of bytes could not be allocated, an exception is raised. + */ +interface BigUint64Array { + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** The ArrayBuffer instance referenced by the array. */ + readonly buffer: ArrayBufferLike; + + /** The length in bytes of the array. */ + readonly byteLength: number; + + /** The offset in bytes of the array. */ + readonly byteOffset: number; + + /** + * Returns the this object after copying a section of the array identified by start and end + * to the same array starting at position target + * @param target If target is negative, it is treated as length+target where length is the + * length of the array. + * @param start If start is negative, it is treated as length+start. If end is negative, it + * is treated as length+end. + * @param end If not specified, length of the this object is used as its default value. + */ + copyWithin(target: number, start: number, end?: number): this; + + /** Yields index, value pairs for every entry in the array. */ + entries(): IterableIterator<[number, bigint]>; + + /** + * Determines whether all the members of an array satisfy the specified test. + * @param callbackfn A function that accepts up to three arguments. The every method calls + * the callbackfn function for each element in the array until the callbackfn returns false, + * or until the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + every(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + + /** + * Returns the this object after filling the section identified by start and end with value + * @param value value to fill array section with + * @param start index to start filling the array at. If start is negative, it is treated as + * length+start where length is the length of the array. + * @param end index to stop filling the array at. If end is negative, it is treated as + * length+end. + */ + fill(value: bigint, start?: number, end?: number): this; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * @param callbackfn A function that accepts up to three arguments. The filter method calls + * the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + filter(callbackfn: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array; + + /** + * Returns the value of the first element in the array where predicate is true, and undefined + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, find + * immediately returns that element value. Otherwise, find returns undefined. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined; + + /** + * Returns the index of the first element in the array where predicate is true, and -1 + * otherwise. + * @param predicate find calls predicate once for each element of the array, in ascending + * order, until it finds one where predicate returns true. If such an element is found, + * findIndex immediately returns that element index. Otherwise, findIndex returns -1. + * @param thisArg If provided, it will be used as the this value for each invocation of + * predicate. If it is not provided, undefined is used instead. + */ + findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number; + + /** + * Performs the specified action for each element in an array. + * @param callbackfn A function that accepts up to three arguments. forEach calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void; + + /** + * Determines whether an array includes a certain element, returning true or false as appropriate. + * @param searchElement The element to search for. + * @param fromIndex The position in this array at which to begin searching for searchElement. + */ + includes(searchElement: bigint, fromIndex?: number): boolean; + + /** + * Returns the index of the first occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + indexOf(searchElement: bigint, fromIndex?: number): number; + + /** + * Adds all the elements of an array separated by the specified separator string. + * @param separator A string used to separate one element of an array from the next in the + * resulting String. If omitted, the array elements are separated with a comma. + */ + join(separator?: string): string; + + /** Yields each index in the array. */ + keys(): IterableIterator<number>; + + /** + * Returns the index of the last occurrence of a value in an array. + * @param searchElement The value to locate in the array. + * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the + * search starts at index 0. + */ + lastIndexOf(searchElement: bigint, fromIndex?: number): number; + + /** The length of the array. */ + readonly length: number; + + /** + * Calls a defined callback function on each element of an array, and returns an array that + * contains the results. + * @param callbackfn A function that accepts up to three arguments. The map method calls the + * callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array. The return value of + * the callback function is the accumulated result, and is provided as an argument in the next + * call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduce method calls the + * callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an + * argument instead of an array value. + */ + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + + /** + * Calls the specified callback function for all the elements in an array, in descending order. + * The return value of the callback function is the accumulated result, and is provided as an + * argument in the next call to the callback function. + * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls + * the callbackfn function one time for each element in the array. + * @param initialValue If initialValue is specified, it is used as the initial value to start + * the accumulation. The first call to the callbackfn function provides this value as an argument + * instead of an array value. + */ + reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + + /** Reverses the elements in the array. */ + reverse(): this; + + /** + * Sets a value or an array of values. + * @param array A typed or untyped array of values to set. + * @param offset The index in the current array at which the values are to be written. + */ + set(array: ArrayLike<bigint>, offset?: number): void; + + /** + * Returns a section of an array. + * @param start The beginning of the specified portion of the array. + * @param end The end of the specified portion of the array. + */ + slice(start?: number, end?: number): BigUint64Array; + + /** + * Determines whether the specified callback function returns true for any element of an array. + * @param callbackfn A function that accepts up to three arguments. The some method calls the + * callbackfn function for each element in the array until the callbackfn returns true, or until + * the end of the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * If thisArg is omitted, undefined is used as the this value. + */ + some(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + + /** + * Sorts the array. + * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. + */ + sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; + + /** + * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements + * at begin, inclusive, up to end, exclusive. + * @param begin The index of the beginning of the array. + * @param end The index of the end of the array. + */ + subarray(begin: number, end?: number): BigUint64Array; + + /** Converts the array to a string by using the current locale. */ + toLocaleString(): string; + + /** Returns a string representation of the array. */ + toString(): string; + + /** Yields each value in the array. */ + values(): IterableIterator<bigint>; + + [Symbol.iterator](): IterableIterator<bigint>; + + readonly [Symbol.toStringTag]: "BigUint64Array"; + + [index: number]: bigint; +} + +interface BigUint64ArrayConstructor { + readonly prototype: BigUint64Array; + new(length?: number): BigUint64Array; + new(array: Iterable<bigint>): BigUint64Array; + new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; + + /** The size in bytes of each element in the array. */ + readonly BYTES_PER_ELEMENT: number; + + /** + * Returns a new array from a set of elements. + * @param items A set of elements to include in the new array object. + */ + of(...items: bigint[]): BigUint64Array; + + /** + * Creates an array from an array-like or iterable object. + * @param arrayLike An array-like or iterable object to convert to an array. + * @param mapfn A mapping function to call on every element of the array. + * @param thisArg Value of 'this' used to invoke the mapfn. + */ + from(arrayLike: ArrayLike<bigint>): BigUint64Array; + from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; +} + +declare const BigUint64Array: BigUint64ArrayConstructor; + +interface DataView { + /** + * Gets the BigInt64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getBigInt64(byteOffset: number, littleEndian?: boolean): bigint; + + /** + * Gets the BigUint64 value at the specified byte offset from the start of the view. There is + * no alignment constraint; multi-byte values may be fetched from any offset. + * @param byteOffset The place in the buffer at which the value should be retrieved. + */ + getBigUint64(byteOffset: number, littleEndian?: boolean): bigint; + + /** + * Stores a BigInt64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void; + + /** + * Stores a BigUint64 value at the specified byte offset from the start of the view. + * @param byteOffset The place in the buffer at which the value should be set. + * @param value The value to set. + * @param littleEndian If false or undefined, a big-endian value should be written, + * otherwise a little-endian value should be written. + */ + setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void; +}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.d.ts new file mode 100644 index 0000000..f213999 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.d.ts @@ -0,0 +1,26 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="es2018" /> +/// <reference lib="esnext.asynciterable" /> +/// <reference lib="esnext.array" /> +/// <reference lib="esnext.bigint" /> +/// <reference lib="esnext.symbol" /> +/// <reference lib="esnext.intl" /> diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.full.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.full.d.ts new file mode 100644 index 0000000..e3c4fa5 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.full.d.ts @@ -0,0 +1,25 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +/// <reference lib="esnext" /> +/// <reference lib="dom" /> +/// <reference lib="webworker.importscripts" /> +/// <reference lib="scripthost" /> +/// <reference lib="dom.iterable" />
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.intl.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.intl.d.ts new file mode 100644 index 0000000..73a45ee --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.intl.d.ts @@ -0,0 +1,32 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +declare namespace Intl { + type NumberFormatPartTypes = "currency" | "decimal" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign"; + + interface NumberFormatPart { + type: NumberFormatPartTypes; + value: string; + } + + interface NumberFormat { + formatToParts(number?: number): NumberFormatPart[]; + } + } diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.symbol.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.symbol.d.ts new file mode 100644 index 0000000..98293ea --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.esnext.symbol.d.ts @@ -0,0 +1,26 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +interface Symbol { + /** + * expose the [[Description]] internal slot of a symbol directly + */ + readonly description: string; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.scripthost.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.scripthost.d.ts new file mode 100644 index 0000000..5aab121 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.scripthost.d.ts @@ -0,0 +1,327 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + + + +///////////////////////////// +/// Windows Script Host APIS +///////////////////////////// + + +interface ActiveXObject { + new (s: string): any; +} +declare var ActiveXObject: ActiveXObject; + +interface ITextWriter { + Write(s: string): void; + WriteLine(s: string): void; + Close(): void; +} + +interface TextStreamBase { + /** + * The column number of the current character position in an input stream. + */ + Column: number; + + /** + * The current line number in an input stream. + */ + Line: number; + + /** + * Closes a text stream. + * It is not necessary to close standard streams; they close automatically when the process ends. If + * you close a standard stream, be aware that any other pointers to that standard stream become invalid. + */ + Close(): void; +} + +interface TextStreamWriter extends TextStreamBase { + /** + * Sends a string to an output stream. + */ + Write(s: string): void; + + /** + * Sends a specified number of blank lines (newline characters) to an output stream. + */ + WriteBlankLines(intLines: number): void; + + /** + * Sends a string followed by a newline character to an output stream. + */ + WriteLine(s: string): void; +} + +interface TextStreamReader extends TextStreamBase { + /** + * Returns a specified number of characters from an input stream, starting at the current pointer position. + * Does not return until the ENTER key is pressed. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + Read(characters: number): string; + + /** + * Returns all characters from an input stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadAll(): string; + + /** + * Returns an entire line from an input stream. + * Although this method extracts the newline character, it does not add it to the returned string. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + */ + ReadLine(): string; + + /** + * Skips a specified number of characters when reading from an input text stream. + * Can only be used on a stream in reading mode; causes an error in writing or appending mode. + * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.) + */ + Skip(characters: number): void; + + /** + * Skips the next line when reading from an input text stream. + * Can only be used on a stream in reading mode, not writing or appending mode. + */ + SkipLine(): void; + + /** + * Indicates whether the stream pointer position is at the end of a line. + */ + AtEndOfLine: boolean; + + /** + * Indicates whether the stream pointer position is at the end of a stream. + */ + AtEndOfStream: boolean; +} + +declare var WScript: { + /** + * Outputs text to either a message box (under WScript.exe) or the command console window followed by + * a newline (under CScript.exe). + */ + Echo(s: any): void; + + /** + * Exposes the write-only error output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdErr: TextStreamWriter; + + /** + * Exposes the write-only output stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdOut: TextStreamWriter; + Arguments: { length: number; Item(n: number): string; }; + + /** + * The full path of the currently running script. + */ + ScriptFullName: string; + + /** + * Forces the script to stop immediately, with an optional exit code. + */ + Quit(exitCode?: number): number; + + /** + * The Windows Script Host build version number. + */ + BuildVersion: number; + + /** + * Fully qualified path of the host executable. + */ + FullName: string; + + /** + * Gets/sets the script mode - interactive(true) or batch(false). + */ + Interactive: boolean; + + /** + * The name of the host executable (WScript.exe or CScript.exe). + */ + Name: string; + + /** + * Path of the directory containing the host executable. + */ + Path: string; + + /** + * The filename of the currently running script. + */ + ScriptName: string; + + /** + * Exposes the read-only input stream for the current script. + * Can be accessed only while using CScript.exe. + */ + StdIn: TextStreamReader; + + /** + * Windows Script Host version + */ + Version: string; + + /** + * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event. + */ + ConnectObject(objEventSource: any, strPrefix: string): void; + + /** + * Creates a COM object. + * @param strProgiID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + CreateObject(strProgID: string, strPrefix?: string): any; + + /** + * Disconnects a COM object from its event sources. + */ + DisconnectObject(obj: any): void; + + /** + * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. + * @param strPathname Fully qualified path to the file containing the object persisted to disk. + * For objects in memory, pass a zero-length string. + * @param strProgID + * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. + */ + GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any; + + /** + * Suspends script execution for a specified length of time, then continues execution. + * @param intTime Interval (in milliseconds) to suspend script execution. + */ + Sleep(intTime: number): void; +}; + +/** + * WSH is an alias for WScript under Windows Script Host + */ +declare var WSH: typeof WScript; + +/** + * Represents an Automation SAFEARRAY + */ +declare class SafeArray<T = any> { + private constructor(); + private SafeArray_typekey: SafeArray<T>; +} + +/** + * Allows enumerating over a COM collection, which may not have indexed item access. + */ +interface Enumerator<T = any> { + /** + * Returns true if the current item is the last one in the collection, or the collection is empty, + * or the current item is undefined. + */ + atEnd(): boolean; + + /** + * Returns the current item in the collection + */ + item(): T; + + /** + * Resets the current item in the collection to the first item. If there are no items in the collection, + * the current item is set to undefined. + */ + moveFirst(): void; + + /** + * Moves the current item to the next item in the collection. If the enumerator is at the end of + * the collection or the collection is empty, the current item is set to undefined. + */ + moveNext(): void; +} + +interface EnumeratorConstructor { + new <T = any>(safearray: SafeArray<T>): Enumerator<T>; + new <T = any>(collection: { Item(index: any): T }): Enumerator<T>; + new <T = any>(collection: any): Enumerator<T>; +} + +declare var Enumerator: EnumeratorConstructor; + +/** + * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions. + */ +interface VBArray<T = any> { + /** + * Returns the number of dimensions (1-based). + */ + dimensions(): number; + + /** + * Takes an index for each dimension in the array, and returns the item at the corresponding location. + */ + getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T; + + /** + * Returns the smallest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + lbound(dimension?: number): number; + + /** + * Returns the largest available index for a given dimension. + * @param dimension 1-based dimension (defaults to 1) + */ + ubound(dimension?: number): number; + + /** + * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions, + * each successive dimension is appended to the end of the array. + * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6] + */ + toArray(): T[]; +} + +interface VBArrayConstructor { + new <T = any>(safeArray: SafeArray<T>): VBArray<T>; +} + +declare var VBArray: VBArrayConstructor; + +/** + * Automation date (VT_DATE) + */ +declare class VarDate { + private constructor(); + private VarDate_typekey: VarDate; +} + +interface DateConstructor { + new (vd: VarDate): Date; +} + +interface Date { + getVarDate: () => VarDate; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.d.ts new file mode 100644 index 0000000..2387027 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.d.ts @@ -0,0 +1,4294 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + +///////////////////////////// +/// Worker APIs +///////////////////////////// + +interface AddEventListenerOptions extends EventListenerOptions { + once?: boolean; + passive?: boolean; +} + +interface AesCbcParams extends Algorithm { + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface AesCtrParams extends Algorithm { + counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + length: number; +} + +interface AesDerivedKeyParams extends Algorithm { + length: number; +} + +interface AesGcmParams extends Algorithm { + additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + tagLength?: number; +} + +interface AesKeyAlgorithm extends KeyAlgorithm { + length: number; +} + +interface AesKeyGenParams extends Algorithm { + length: number; +} + +interface Algorithm { + name: string; +} + +interface BlobPropertyBag { + endings?: EndingType; + type?: string; +} + +interface CacheQueryOptions { + cacheName?: string; + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; +} + +interface ClientQueryOptions { + includeUncontrolled?: boolean; + type?: ClientTypes; +} + +interface CloseEventInit extends EventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} + +interface CryptoKeyPair { + privateKey?: CryptoKey; + publicKey?: CryptoKey; +} + +interface CustomEventInit<T = any> extends EventInit { + detail?: T; +} + +interface DOMMatrix2DInit { + a?: number; + b?: number; + c?: number; + d?: number; + e?: number; + f?: number; + m11?: number; + m12?: number; + m21?: number; + m22?: number; + m41?: number; + m42?: number; +} + +interface DOMMatrixInit extends DOMMatrix2DInit { + is2D?: boolean; + m13?: number; + m14?: number; + m23?: number; + m24?: number; + m31?: number; + m32?: number; + m33?: number; + m34?: number; + m43?: number; + m44?: number; +} + +interface DOMPointInit { + w?: number; + x?: number; + y?: number; + z?: number; +} + +interface DOMQuadInit { + p1?: DOMPointInit; + p2?: DOMPointInit; + p3?: DOMPointInit; + p4?: DOMPointInit; +} + +interface DOMRectInit { + height?: number; + width?: number; + x?: number; + y?: number; +} + +interface EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface ErrorEventInit extends EventInit { + colno?: number; + error?: any; + filename?: string; + lineno?: number; + message?: string; +} + +interface EventInit { + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; +} + +interface EventListenerOptions { + capture?: boolean; +} + +interface 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; + preloadResponse?: Promise<any>; + request: Request; + resultingClientId?: string; + targetClientId?: string; +} + +interface FilePropertyBag extends BlobPropertyBag { + lastModified?: number; +} + +interface GetNotificationOptions { + tag?: string; +} + +interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface HmacKeyGenParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface IDBIndexParameters { + multiEntry?: boolean; + unique?: boolean; +} + +interface IDBObjectStoreParameters { + autoIncrement?: boolean; + keyPath?: string | string[] | null; +} + +interface IDBVersionChangeEventInit extends EventInit { + newVersion?: number | null; + oldVersion?: number; +} + +interface 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 MessageEventInit extends EventInit { + data?: any; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; +} + +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?: number; + vibrate?: VibratePattern; +} + +interface Pbkdf2Params extends Algorithm { + hash: HashAlgorithmIdentifier; + iterations: number; + salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface PerformanceObserverInit { + buffered?: boolean; + entryTypes: string[]; +} + +interface PipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + preventClose?: boolean; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +interface PromiseRejectionEventInit extends EventInit { + promise: Promise<any>; + reason?: any; +} + +interface PushEventInit extends ExtendableEventInit { + data?: PushMessageDataInit; +} + +interface PushSubscriptionChangeInit extends ExtendableEventInit { + newSubscription?: PushSubscription; + oldSubscription?: PushSubscription; +} + +interface PushSubscriptionJSON { + endpoint?: string; + expirationTime?: number | null; + keys?: Record<string, string>; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy<T = any> { + highWaterMark?: number; + size?: QueuingStrategySizeCallback<T>; +} + +interface 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?: any; +} + +interface ResponseInit { + headers?: HeadersInit; + status?: number; + statusText?: string; +} + +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; +} + +interface RsaKeyGenParams extends Algorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaOaepParams extends Algorithm { + label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface RsaOtherPrimesInfo { + d?: string; + r?: string; + t?: string; +} + +interface RsaPssParams extends Algorithm { + saltLength: number; +} + +interface StorageEstimate { + quota?: number; + usage?: number; +} + +interface SyncEventInit extends ExtendableEventInit { + lastChance?: boolean; + tag: string; +} + +interface TextDecodeOptions { + stream?: boolean; +} + +interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; +} + +interface Transformer<I = any, O = any> { + flush?: TransformStreamDefaultControllerCallback<O>; + readableType?: undefined; + start?: TransformStreamDefaultControllerCallback<O>; + transform?: TransformStreamDefaultControllerTransformCallback<I, O>; + writableType?: undefined; +} + +interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: ReadableStreamErrorCallback; + pull?: ReadableByteStreamControllerCallback; + start?: ReadableByteStreamControllerCallback; + type: "bytes"; +} + +interface UnderlyingSink<W = any> { + abort?: WritableStreamErrorCallback; + close?: WritableStreamDefaultControllerCloseCallback; + start?: WritableStreamDefaultControllerStartCallback; + type?: undefined; + write?: WritableStreamDefaultControllerWriteCallback<W>; +} + +interface UnderlyingSource<R = any> { + cancel?: ReadableStreamErrorCallback; + pull?: ReadableStreamDefaultControllerCallback<R>; + start?: ReadableStreamDefaultControllerCallback<R>; + type?: undefined; +} + +interface WebGLContextAttributes { + alpha?: GLboolean; + antialias?: GLboolean; + depth?: GLboolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: GLboolean; + preserveDrawingBuffer?: GLboolean; + stencil?: GLboolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + +interface WorkerOptions { + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; +} + +interface EventListener { + (evt: Event): void; +} + +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 { + /** + * Returns the AbortSignal object associated with this object. + */ + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and + * signal to any observers that the associated activity is to be aborted. + */ + abort(): void; +} + +declare var AbortController: { + prototype: AbortController; + new(): AbortController; +}; + +interface AbortSignalEventMap { + "abort": ProgressEvent; +} + +interface AbortSignal extends EventTarget { + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false + * otherwise. + */ + readonly aborted: boolean; + onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null; + addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AbortSignal: { + prototype: AbortSignal; + new(): AbortSignal; +}; + +interface AbstractWorkerEventMap { + "error": ErrorEvent; +} + +interface AbstractWorker { + onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; + addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +interface AesCfbParams extends Algorithm { + iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface AesCmacParams extends Algorithm { + length: number; +} + +interface Blob { + readonly size: number; + readonly type: string; + slice(start?: number, end?: number, contentType?: string): Blob; +} + +declare var Blob: { + prototype: Blob; + new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; +}; + +interface Body { + readonly body: ReadableStream<Uint8Array> | null; + readonly bodyUsed: boolean; + arrayBuffer(): Promise<ArrayBuffer>; + blob(): Promise<Blob>; + formData(): Promise<FormData>; + json(): Promise<any>; + text(): Promise<string>; +} + +interface BroadcastChannelEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface BroadcastChannel extends EventTarget { + /** + * Returns the channel name (as passed to the constructor). + */ + readonly name: string; + onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** + * Closes the BroadcastChannel object, opening it up to garbage collection. + */ + close(): void; + /** + * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. + */ + postMessage(message: any): void; + addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BroadcastChannel: { + prototype: BroadcastChannel; + new(name: string): BroadcastChannel; +}; + +interface BroadcastChannelEventMap { + message: MessageEvent; + messageerror: MessageEvent; +} + +interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> { + highWaterMark: number; + size(chunk: ArrayBufferView): number; +} + +declare var ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(options: { highWaterMark: number }): ByteLengthQueuingStrategy; +}; + +interface Cache { + add(request: RequestInfo): Promise<void>; + addAll(requests: RequestInfo[]): Promise<void>; + delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>; + keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; + match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>; + matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; + put(request: RequestInfo, response: Response): Promise<void>; +} + +declare var Cache: { + prototype: Cache; + new(): Cache; +}; + +interface CacheStorage { + delete(cacheName: string): Promise<boolean>; + has(cacheName: string): Promise<boolean>; + keys(): Promise<string[]>; + match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>; + open(cacheName: string): Promise<Cache>; +} + +declare var CacheStorage: { + prototype: CacheStorage; + new(): CacheStorage; +}; + +interface CanvasGradient { + /** + * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset + * at one end of the gradient, 1.0 is the offset at the other end. + * Throws an "IndexSizeError" DOMException if the offset + * is out of range. Throws a "SyntaxError" DOMException if + * the color cannot be parsed. + */ + addColorStop(offset: number, color: string): void; +} + +declare var CanvasGradient: { + prototype: CanvasGradient; + new(): CanvasGradient; +}; + +interface CanvasPath { + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + closePath(): void; + ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; + lineTo(x: number, y: number): void; + moveTo(x: number, y: number): void; + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + rect(x: number, y: number, w: number, h: number): void; +} + +interface CanvasPattern { + /** + * Sets the transformation matrix that will be used when rendering the pattern during a fill or + * stroke painting operation. + */ + setTransform(transform?: DOMMatrix2DInit): void; +} + +declare var CanvasPattern: { + prototype: CanvasPattern; + new(): CanvasPattern; +}; + +interface Client { + readonly id: string; + readonly type: ClientTypes; + readonly url: string; + postMessage(message: any, transfer?: Transferable[]): void; +} + +declare var Client: { + prototype: Client; + new(): Client; +}; + +interface Clients { + claim(): Promise<void>; + get(id: string): Promise<any>; + matchAll(options?: ClientQueryOptions): Promise<ReadonlyArray<Client>>; + openWindow(url: string): Promise<WindowClient | null>; +} + +declare var Clients: { + prototype: Clients; + new(): Clients; +}; + +interface CloseEvent extends Event { + readonly code: number; + readonly reason: string; + readonly wasClean: boolean; + /** @deprecated */ + initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void; +} + +declare var CloseEvent: { + prototype: CloseEvent; + new(type: string, eventInitDict?: CloseEventInit): CloseEvent; +}; + +interface ConcatParams extends Algorithm { + algorithmId: Uint8Array; + hash?: string | Algorithm; + partyUInfo: Uint8Array; + partyVInfo: Uint8Array; + privateInfo?: Uint8Array; + publicInfo?: Uint8Array; +} + +interface Console { + memory: any; + assert(condition?: boolean, message?: string, ...data: any[]): void; + clear(): void; + count(label?: string): void; + debug(message?: any, ...optionalParams: any[]): void; + dir(value?: any, ...optionalParams: any[]): void; + dirxml(value: any): void; + error(message?: any, ...optionalParams: any[]): void; + exception(message?: string, ...optionalParams: any[]): void; + group(groupTitle?: string, ...optionalParams: any[]): void; + groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void; + groupEnd(): void; + info(message?: any, ...optionalParams: any[]): void; + log(message?: any, ...optionalParams: any[]): void; + markTimeline(label?: string): void; + profile(reportName?: string): void; + profileEnd(reportName?: string): void; + table(...tabularData: any[]): void; + time(label?: string): void; + timeEnd(label?: string): void; + timeStamp(label?: string): void; + timeline(label?: string): void; + timelineEnd(label?: string): void; + trace(message?: any, ...optionalParams: any[]): void; + warn(message?: any, ...optionalParams: any[]): void; +} + +declare var Console: { + prototype: Console; + new(): Console; +}; + +interface CountQueuingStrategy extends QueuingStrategy { + highWaterMark: number; + size(chunk: any): 1; +} + +declare var CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new(options: { highWaterMark: number }): CountQueuingStrategy; +}; + +interface Crypto { + readonly subtle: SubtleCrypto; + getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T; +} + +declare var Crypto: { + prototype: Crypto; + new(): Crypto; +}; + +interface CryptoKey { + readonly algorithm: KeyAlgorithm; + readonly extractable: boolean; + readonly type: KeyType; + readonly usages: KeyUsage[]; +} + +declare var CryptoKey: { + prototype: CryptoKey; + new(): CryptoKey; +}; + +interface CustomEvent<T = any> extends Event { + /** + * Returns any custom data event was created with. + * Typically used for synthetic events. + */ + readonly detail: T; + initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void; +} + +declare var CustomEvent: { + prototype: CustomEvent; + new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; +}; + +interface DOMException { + readonly code: number; + readonly message: string; + readonly name: string; + readonly ABORT_ERR: number; + readonly DATA_CLONE_ERR: number; + readonly DOMSTRING_SIZE_ERR: number; + readonly HIERARCHY_REQUEST_ERR: number; + readonly INDEX_SIZE_ERR: number; + readonly INUSE_ATTRIBUTE_ERR: number; + readonly INVALID_ACCESS_ERR: number; + readonly INVALID_CHARACTER_ERR: number; + readonly INVALID_MODIFICATION_ERR: number; + readonly INVALID_NODE_TYPE_ERR: number; + readonly INVALID_STATE_ERR: number; + readonly NAMESPACE_ERR: number; + readonly NETWORK_ERR: number; + readonly NOT_FOUND_ERR: number; + readonly NOT_SUPPORTED_ERR: number; + readonly NO_DATA_ALLOWED_ERR: number; + readonly NO_MODIFICATION_ALLOWED_ERR: number; + readonly QUOTA_EXCEEDED_ERR: number; + readonly SECURITY_ERR: number; + readonly SYNTAX_ERR: number; + readonly TIMEOUT_ERR: number; + readonly TYPE_MISMATCH_ERR: number; + readonly URL_MISMATCH_ERR: number; + readonly VALIDATION_ERR: number; + readonly WRONG_DOCUMENT_ERR: number; +} + +declare var DOMException: { + prototype: DOMException; + new(message?: string, name?: string): DOMException; + readonly ABORT_ERR: number; + readonly DATA_CLONE_ERR: number; + readonly DOMSTRING_SIZE_ERR: number; + readonly HIERARCHY_REQUEST_ERR: number; + readonly INDEX_SIZE_ERR: number; + readonly INUSE_ATTRIBUTE_ERR: number; + readonly INVALID_ACCESS_ERR: number; + readonly INVALID_CHARACTER_ERR: number; + readonly INVALID_MODIFICATION_ERR: number; + readonly INVALID_NODE_TYPE_ERR: number; + readonly INVALID_STATE_ERR: number; + readonly NAMESPACE_ERR: number; + readonly NETWORK_ERR: number; + readonly NOT_FOUND_ERR: number; + readonly NOT_SUPPORTED_ERR: number; + readonly NO_DATA_ALLOWED_ERR: number; + readonly NO_MODIFICATION_ALLOWED_ERR: number; + readonly QUOTA_EXCEEDED_ERR: number; + readonly SECURITY_ERR: number; + readonly SYNTAX_ERR: number; + readonly TIMEOUT_ERR: number; + readonly TYPE_MISMATCH_ERR: number; + readonly URL_MISMATCH_ERR: number; + readonly VALIDATION_ERR: number; + readonly WRONG_DOCUMENT_ERR: number; +}; + +interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + invertSelf(): DOMMatrix; + multiplySelf(other?: DOMMatrixInit): DOMMatrix; + preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; + rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + skewXSelf(sx?: number): DOMMatrix; + skewYSelf(sy?: number): DOMMatrix; + translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; +} + +declare var DOMMatrix: { + prototype: DOMMatrix; + new(init?: string | number[]): DOMMatrix; + fromFloat32Array(array32: Float32Array): DOMMatrix; + fromFloat64Array(array64: Float64Array): DOMMatrix; + fromMatrix(other?: DOMMatrixInit): DOMMatrix; +}; + +interface DOMMatrixReadOnly { + readonly a: number; + readonly b: number; + readonly c: number; + readonly d: number; + readonly e: number; + readonly f: number; + readonly is2D: boolean; + readonly isIdentity: boolean; + readonly m11: number; + readonly m12: number; + readonly m13: number; + readonly m14: number; + readonly m21: number; + readonly m22: number; + readonly m23: number; + readonly m24: number; + readonly m31: number; + readonly m32: number; + readonly m33: number; + readonly m34: number; + readonly m41: number; + readonly m42: number; + readonly m43: number; + readonly m44: number; + flipX(): DOMMatrix; + flipY(): DOMMatrix; + inverse(): DOMMatrix; + multiply(other?: DOMMatrixInit): DOMMatrix; + rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVector(x?: number, y?: number): DOMMatrix; + scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + 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 { + /** + * Returns the number of strings in strings. + */ + readonly length: number; + /** + * Returns true if strings contains string, and false + * otherwise. + */ + contains(string: string): boolean; + /** + * Returns the string with index index from strings. + */ + item(index: number): string | null; + [index: number]: string; +} + +declare var DOMStringList: { + prototype: DOMStringList; + new(): DOMStringList; +}; + +interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { + "message": MessageEvent; +} + +interface DedicatedWorkerGlobalScope extends WorkerGlobalScope { + onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; + close(): void; + postMessage(message: any, transfer?: Transferable[]): void; + addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var DedicatedWorkerGlobalScope: { + prototype: DedicatedWorkerGlobalScope; + new(): DedicatedWorkerGlobalScope; +}; + +interface DhImportKeyParams extends Algorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface DhKeyAlgorithm extends KeyAlgorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface DhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface DhKeyGenParams extends Algorithm { + generator: Uint8Array; + prime: Uint8Array; +} + +interface EXT_blend_minmax { + readonly MAX_EXT: GLenum; + readonly MIN_EXT: GLenum; +} + +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_filter_anisotropic { + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum; + readonly TEXTURE_MAX_ANISOTROPY_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 { + /** + * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. + */ + readonly bubbles: boolean; + cancelBubble: boolean; + readonly cancelable: boolean; + /** + * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. + */ + readonly composed: boolean; + /** + * Returns the object whose event listener's callback is currently being + * invoked. + */ + readonly currentTarget: EventTarget | null; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + /** + * Returns true if event was dispatched by the user agent, and + * false otherwise. + */ + readonly isTrusted: boolean; + returnValue: boolean; + /** + * Returns the object to which event is dispatched (its target). + */ + readonly target: EventTarget | null; + /** + * Returns the event's timestamp as the number of milliseconds measured relative to + * the time origin. + */ + readonly timeStamp: number; + /** + * Returns the type of event, e.g. + * "click", "hashchange", or + * "submit". + */ + readonly type: string; + composedPath(): EventTarget[]; + initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; + preventDefault(): void; + /** + * Invoking this method prevents event from reaching + * any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any + * other objects. + */ + stopImmediatePropagation(): void; + /** + * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. + */ + stopPropagation(): void; + readonly AT_TARGET: number; + readonly BUBBLING_PHASE: number; + readonly CAPTURING_PHASE: number; + readonly NONE: number; +} + +declare var Event: { + prototype: Event; + new(type: string, eventInitDict?: EventInit): Event; + readonly AT_TARGET: number; + readonly BUBBLING_PHASE: number; + readonly CAPTURING_PHASE: number; + readonly NONE: number; +}; + +interface EventListenerObject { + handleEvent(evt: Event): void; +} + +interface EventSource extends EventTarget { + readonly CLOSED: number; + readonly CONNECTING: number; + readonly OPEN: number; + onerror: (evt: MessageEvent) => any; + onmessage: (evt: MessageEvent) => any; + onopen: (evt: MessageEvent) => any; + readonly readyState: number; + readonly url: string; + readonly withCredentials: boolean; + close(): void; +} + +declare var EventSource: { + prototype: EventSource; + new(url: string, eventSourceInitDict?: EventSourceInit): EventSource; +}; + +interface EventSourceInit { + readonly withCredentials: boolean; +} + +interface EventTarget { + /** + * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. + * The options argument sets listener-specific options. For compatibility this can be a + * boolean, in which case the method behaves exactly as if the value was specified as options's capture. + * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. + * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners. + * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will + * be removed. + * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. + */ + addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void; + /** + * Dispatches a synthetic event event to target and returns true + * if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + */ + dispatchEvent(event: Event): boolean; + /** + * Removes the event listener in target's event listener list with the same type, callback, and options. + */ + removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; +} + +declare var EventTarget: { + prototype: EventTarget; + new(): EventTarget; +}; + +interface ExtendableEvent extends Event { + waitUntil(f: Promise<any>): 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<MessagePort>; + 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 preloadResponse: Promise<any>; + readonly request: Request; + readonly resultingClientId: string; + readonly targetClientId: string; + respondWith(r: Promise<Response>): void; +} + +declare var FetchEvent: { + prototype: FetchEvent; + new(type: string, eventInitDict: FetchEventInit): FetchEvent; +}; + +interface File extends Blob { + readonly lastModified: number; + readonly name: 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<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FileReader: { + prototype: FileReader; + new(): FileReader; + readonly DONE: number; + readonly EMPTY: number; + readonly LOADING: number; +}; + +interface 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 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 GlobalFetch { + fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +} + +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 HkdfCtrParams extends Algorithm { + context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; + hash: string | Algorithm; + label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; +} + +interface IDBArrayKey extends Array<IDBValidKey> { +} + +interface IDBCursor { + /** + * Returns the direction ("next", "nextunique", "prev" or "prevunique") + * of the cursor. + */ + readonly direction: IDBCursorDirection; + /** + * Returns the key of the cursor. + * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + */ + readonly key: IDBValidKey | IDBKeyRange; + /** + * Returns the effective key of the cursor. + * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + */ + readonly primaryKey: IDBValidKey | IDBKeyRange; + /** + * Returns the IDBObjectStore or IDBIndex the cursor was opened from. + */ + readonly source: IDBObjectStore | IDBIndex; + /** + * Advances the cursor through the next count records in + * range. + */ + advance(count: number): void; + /** + * Advances the cursor to the next record in range matching or + * after key. + */ + continue(key?: IDBValidKey | IDBKeyRange): void; + /** + * Advances the cursor to the next record in range matching + * or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. + */ + continuePrimaryKey(key: IDBValidKey | IDBKeyRange, primaryKey: IDBValidKey | IDBKeyRange): void; + /** + * Delete the record pointed at by the cursor with a new value. + * If successful, request's result will be undefined. + */ + delete(): IDBRequest<undefined>; + /** + * Updated the record pointed at by the cursor with a new value. + * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. + * If successful, request's result will be the record's key. + */ + update(value: any): IDBRequest<IDBValidKey>; +} + +declare var IDBCursor: { + prototype: IDBCursor; + new(): IDBCursor; +}; + +interface IDBCursorWithValue extends IDBCursor { + /** + * Returns the cursor's current value. + */ + readonly value: any; +} + +declare var IDBCursorWithValue: { + prototype: IDBCursorWithValue; + new(): IDBCursorWithValue; +}; + +interface IDBDatabaseEventMap { + "abort": Event; + "close": Event; + "error": Event; + "versionchange": IDBVersionChangeEvent; +} + +interface IDBDatabase extends EventTarget { + /** + * Returns the name of the database. + */ + readonly name: string; + /** + * Returns a list of the names of object stores in the database. + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBDatabase, ev: Event) => any) | null; + onclose: ((this: IDBDatabase, ev: Event) => any) | null; + onerror: ((this: IDBDatabase, ev: Event) => any) | null; + onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; + /** + * Returns the version of the database. + */ + readonly version: number; + /** + * Closes the connection once all running transactions have finished. + */ + close(): void; + /** + * Creates a new object store with the given name and options and returns a new IDBObjectStore. + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + */ + createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; + /** + * Deletes the object store with the given name. + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + */ + deleteObjectStore(name: string): void; + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") + * and scope which can be a single object store name or an array of names. + */ + transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction; + addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBDatabase: { + prototype: IDBDatabase; + new(): IDBDatabase; +}; + +interface IDBFactory { + /** + * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if + * the keys are equal. + * Throws a "DataError" DOMException if either input is not a valid key. + */ + cmp(first: any, second: any): number; + /** + * Attempts to delete the named database. If the + * database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request + * is successful request's result will be null. + */ + deleteDatabase(name: string): IDBOpenDBRequest; + /** + * Attempts to open a connection to the named database with the specified version. If the database already exists + * with a lower version and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close, then an upgrade + * will occur. If the database already exists with a higher + * version the request will fail. If the request is + * successful request's result will + * be the connection. + */ + open(name: string, version?: number): IDBOpenDBRequest; +} + +declare var IDBFactory: { + prototype: IDBFactory; + new(): IDBFactory; +}; + +interface IDBIndex { + readonly keyPath: string | string[]; + readonly multiEntry: boolean; + /** + * Updates the name of the store to newName. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + name: string; + /** + * Returns the IDBObjectStore the index belongs to. + */ + readonly objectStore: IDBObjectStore; + readonly unique: boolean; + /** + * Retrieves the number of records matching the given key or key range in query. + * If successful, request's result will be the + * count. + */ + count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Retrieves the value of the first record matching the + * given key or key range in query. + * If successful, request's result will be the value, or undefined if there was no matching record. + */ + get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * If successful, request's result will be an Array of the values. + */ + getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * If successful, request's result will be an Array of the keys. + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the + * given key or key range in query. + * If successful, request's result will be the key, or undefined if there was no matching record. + */ + getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + /** + * Opens a cursor over the records matching query, + * ordered by direction. If query is null, all records in index are matched. + * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. + */ + openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. + * If successful, request's result will be an IDBCursor, or null if there were no matching records. + */ + openKeyCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; +} + +declare var IDBIndex: { + prototype: IDBIndex; + new(): IDBIndex; +}; + +interface IDBKeyRange { + /** + * Returns lower bound, or undefined if none. + */ + readonly lower: any; + /** + * Returns true if the lower open flag is set, and false otherwise. + */ + readonly lowerOpen: boolean; + /** + * Returns upper bound, or undefined if none. + */ + readonly upper: any; + /** + * Returns true if the upper open flag is set, and false otherwise. + */ + readonly upperOpen: boolean; + /** + * Returns true if key is included in the range, and false otherwise. + */ + includes(key: any): boolean; +} + +declare var IDBKeyRange: { + prototype: IDBKeyRange; + new(): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning from lower to upper. + * If lowerOpen is true, lower is not included in the range. + * If upperOpen is true, upper is not included in the range. + */ + bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange starting at key with no + * upper bound. If open is true, key is not included in the + * range. + */ + lowerBound(lower: any, open?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning only key. + */ + only(value: any): IDBKeyRange; + /** + * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. + */ + upperBound(upper: any, open?: boolean): IDBKeyRange; +}; + +interface IDBObjectStore { + /** + * Returns true if the store has a key generator, and false otherwise. + */ + readonly autoIncrement: boolean; + /** + * Returns a list of the names of indexes in the store. + */ + readonly indexNames: DOMStringList; + /** + * Returns the key path of the store, or null if none. + */ + readonly keyPath: string | string[]; + /** + * Updates the name of the store to newName. + * Throws "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + name: string; + /** + * Returns the associated transaction. + */ + readonly transaction: IDBTransaction; + add(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>; + /** + * Deletes all records in store. + * If successful, request's result will + * be undefined. + */ + clear(): IDBRequest<undefined>; + /** + * Retrieves the number of records matching the + * given key or key range in query. + * If successful, request's result will be the count. + */ + count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>; + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be + * satisfied with the data already in store the upgrade + * transaction will abort with + * a "ConstraintError" DOMException. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + /** + * Deletes records in store with the given key or in the given key range in query. + * If successful, request's result will + * be undefined. + */ + delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; + /** + * Deletes the index in store with the given name. + * Throws an "InvalidStateError" DOMException if not called within an upgrade + * transaction. + */ + deleteIndex(name: string): void; + /** + * Retrieves the value of the first record matching the + * given key or key range in query. + * If successful, request's result will be the value, or undefined if there was no matching record. + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>; + /** + * Retrieves the values of the records matching the + * given key or key range in query (up to count if given). + * If successful, request's result will + * be an Array of the values. + */ + getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>; + /** + * Retrieves the keys of records matching the + * given key or key range in query (up to count if given). + * If successful, request's result will + * be an Array of the keys. + */ + getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>; + /** + * Retrieves the key of the first record matching the + * given key or key range in query. + * If successful, request's result will be the key, or undefined if there was no matching record. + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; + index(name: string): IDBIndex; + /** + * Opens a cursor over the records matching query, + * ordered by direction. If query is null, all records in store are matched. + * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. + */ + openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. + * If successful, request's result will be an IDBCursor pointing at the first matching record, or + * null if there were no matching records. + */ + openKeyCursor(query?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; + put(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>; +} + +declare var IDBObjectStore: { + prototype: IDBObjectStore; + new(): IDBObjectStore; +}; + +interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { + "blocked": Event; + "upgradeneeded": IDBVersionChangeEvent; +} + +interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { + onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null; + onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; + addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBOpenDBRequest: { + prototype: IDBOpenDBRequest; + new(): IDBOpenDBRequest; +}; + +interface IDBRequestEventMap { + "error": Event; + "success": Event; +} + +interface IDBRequest<T = any> extends EventTarget { + /** + * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws + * a "InvalidStateError" DOMException if the request is still pending. + */ + readonly error: DOMException | null; + onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; + onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; + /** + * Returns "pending" until a request is complete, + * then returns "done". + */ + readonly readyState: IDBRequestReadyState; + /** + * When a request is completed, returns the result, + * or undefined if the request failed. Throws a + * "InvalidStateError" DOMException if the request is still pending. + */ + readonly result: T; + /** + * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open + * request. + */ + readonly source: IDBObjectStore | IDBIndex | IDBCursor; + /** + * Returns the IDBTransaction the request was made within. + * If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. + */ + readonly transaction: IDBTransaction | null; + addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBRequest: { + prototype: IDBRequest; + new(): IDBRequest; +}; + +interface IDBTransactionEventMap { + "abort": Event; + "complete": Event; + "error": Event; +} + +interface IDBTransaction extends EventTarget { + /** + * Returns the transaction's connection. + */ + readonly db: IDBDatabase; + /** + * If the transaction was aborted, returns the + * error (a DOMException) providing the reason. + */ + readonly error: DOMException; + /** + * Returns the mode the transaction was created with + * ("readonly" or "readwrite"), or "versionchange" for + * an upgrade transaction. + */ + readonly mode: IDBTransactionMode; + /** + * Returns a list of the names of object stores in the + * transaction's scope. For an upgrade transaction this is all object stores in the database. + */ + readonly objectStoreNames: DOMStringList; + onabort: ((this: IDBTransaction, ev: Event) => any) | null; + oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; + onerror: ((this: IDBTransaction, ev: Event) => any) | null; + /** + * Aborts the transaction. All pending requests will fail with + * a "AbortError" DOMException and all changes made to the database will be + * reverted. + */ + abort(): void; + /** + * Returns an IDBObjectStore in the transaction's scope. + */ + objectStore(name: string): IDBObjectStore; + addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var IDBTransaction: { + prototype: IDBTransaction; + new(): IDBTransaction; +}; + +interface IDBVersionChangeEvent extends Event { + readonly newVersion: number | null; + readonly oldVersion: number; +} + +declare var IDBVersionChangeEvent: { + prototype: IDBVersionChangeEvent; + new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; +}; + +interface ImageBitmap { + /** + * Returns the intrinsic height of the image, in CSS + * pixels. + */ + readonly height: number; + /** + * Returns the intrinsic width of the image, in CSS + * pixels. + */ + readonly width: number; + /** + * Releases imageBitmap's underlying bitmap data. + */ + close(): void; +} + +declare var ImageBitmap: { + prototype: ImageBitmap; + new(): ImageBitmap; +}; + +interface ImageBitmapOptions { + colorSpaceConversion?: "none" | "default"; + imageOrientation?: "none" | "flipY"; + premultiplyAlpha?: "none" | "premultiply" | "default"; + resizeHeight?: number; + resizeQuality?: "pixelated" | "low" | "medium" | "high"; + resizeWidth?: number; +} + +interface ImageData { + /** + * Returns the one-dimensional array containing the data in RGBA order, as integers in the + * range 0 to 255. + */ + readonly data: Uint8ClampedArray; + /** + * Returns the actual dimensions of the data in the ImageData object, in + * pixels. + */ + readonly height: number; + readonly width: number; +} + +declare var ImageData: { + prototype: ImageData; + new(width: number, height: number): ImageData; + new(array: Uint8ClampedArray, width: number, height: number): ImageData; +}; + +interface MessageChannel { + readonly port1: MessagePort; + readonly port2: MessagePort; +} + +declare var MessageChannel: { + prototype: MessageChannel; + new(): MessageChannel; +}; + +interface MessageEvent extends Event { + /** + * Returns the data of the message. + */ + readonly data: any; + /** + * Returns the last event ID string, for + * server-sent events. + */ + readonly lastEventId: string; + /** + * Returns the origin of the message, for server-sent events and + * cross-document messaging. + */ + readonly origin: string; + /** + * Returns the MessagePort array sent with the message, for cross-document + * messaging and channel messaging. + */ + readonly ports: ReadonlyArray<MessagePort>; + /** + * Returns the WindowProxy of the source window, for cross-document + * messaging, and the MessagePort being attached, in the connect event fired at + * SharedWorkerGlobalScope objects. + */ + readonly source: MessageEventSource | null; +} + +declare var MessageEvent: { + prototype: MessageEvent; + new(type: string, eventInitDict?: MessageEventInit): MessageEvent; +}; + +interface MessagePortEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface MessagePort extends EventTarget { + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** + * Disconnects the port, so that it is no longer active. + */ + close(): void; + /** + * Posts a message through the channel. Objects listed in transfer are + * transferred, not just cloned, meaning that they are no longer usable on the sending side. + * Throws a "DataCloneError" DOMException if + * transfer contains duplicate objects or port, or if message + * could not be cloned. + */ + postMessage(message: any, transfer?: Transferable[]): void; + /** + * Begins dispatching messages received on the port. + */ + start(): void; + addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MessagePort: { + prototype: MessagePort; + new(): MessagePort; +}; + +interface NavigationPreloadManager { + disable(): Promise<void>; + enable(): Promise<void>; + getState(): Promise<NavigationPreloadState>; + setHeaderValue(value: string): Promise<void>; +} + +declare var NavigationPreloadManager: { + prototype: NavigationPreloadManager; + new(): NavigationPreloadManager; +}; + +interface NavigatorBeacon { + sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean; +} + +interface NavigatorConcurrentHardware { + readonly hardwareConcurrency: number; +} + +interface 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 NavigatorOnLine { + readonly onLine: boolean; +} + +interface NavigatorStorage { + readonly storage: StorageManager; +} + +interface NotificationEventMap { + "click": Event; + "close": Event; + "error": Event; + "show": Event; +} + +interface Notification extends EventTarget { + readonly actions: ReadonlyArray<NotificationAction>; + readonly badge: string; + readonly body: string; + readonly data: any; + readonly dir: NotificationDirection; + readonly icon: string; + readonly image: string; + readonly lang: string; + onclick: ((this: Notification, ev: Event) => any) | null; + onclose: ((this: Notification, ev: Event) => any) | null; + onerror: ((this: Notification, ev: Event) => any) | null; + onshow: ((this: Notification, ev: Event) => any) | null; + readonly renotify: boolean; + readonly requireInteraction: boolean; + readonly silent: boolean; + readonly tag: string; + readonly timestamp: number; + readonly title: string; + readonly vibrate: ReadonlyArray<number>; + close(): void; + addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Notification: { + prototype: Notification; + new(title: string, options?: NotificationOptions): Notification; + readonly maxActions: number; + readonly permission: NotificationPermission; +}; + +interface NotificationEvent extends ExtendableEvent { + readonly action: string; + readonly notification: Notification; +} + +declare var NotificationEvent: { + prototype: NotificationEvent; + new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; +}; + +interface OES_element_index_uint { +} + +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 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: number; + clearMarks(markName?: string): void; + clearMeasures(measureName?: string): void; + clearResourceTimings(): void; + getEntries(): PerformanceEntryList; + getEntriesByName(name: string, type?: string): PerformanceEntryList; + getEntriesByType(type: string): PerformanceEntryList; + mark(markName: string): void; + measure(measureName: string, startMark?: string, endMark?: string): void; + now(): number; + setResourceTimingBufferSize(maxSize: number): void; + toJSON(): any; + addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Performance: { + prototype: Performance; + new(): Performance; +}; + +interface PerformanceEntry { + readonly duration: number; + readonly entryType: string; + readonly name: string; + readonly startTime: number; + toJSON(): any; +} + +declare var PerformanceEntry: { + prototype: PerformanceEntry; + new(): PerformanceEntry; +}; + +interface PerformanceMark extends PerformanceEntry { +} + +declare var PerformanceMark: { + prototype: PerformanceMark; + new(): PerformanceMark; +}; + +interface PerformanceMeasure extends PerformanceEntry { +} + +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; +}; + +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: number; + readonly connectStart: number; + readonly decodedBodySize: number; + readonly domainLookupEnd: number; + readonly domainLookupStart: number; + readonly encodedBodySize: number; + readonly fetchStart: number; + readonly initiatorType: string; + readonly nextHopProtocol: string; + readonly redirectEnd: number; + readonly redirectStart: number; + readonly requestStart: number; + readonly responseEnd: number; + readonly responseStart: number; + readonly secureConnectionStart: number; + readonly transferSize: number; + readonly workerStart: number; + toJSON(): any; +} + +declare var PerformanceResourceTiming: { + prototype: PerformanceResourceTiming; + new(): PerformanceResourceTiming; +}; + +interface ProgressEvent extends Event { + readonly lengthComputable: boolean; + readonly loaded: number; + readonly total: number; +} + +declare var ProgressEvent: { + prototype: ProgressEvent; + new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; +}; + +interface PromiseRejectionEvent extends Event { + readonly promise: Promise<any>; + readonly reason: any; +} + +declare var PromiseRejectionEvent: { + prototype: PromiseRejectionEvent; + new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; +}; + +interface PushEvent extends ExtendableEvent { + readonly data: PushMessageData | null; +} + +declare var PushEvent: { + prototype: PushEvent; + new(type: string, eventInitDict?: PushEventInit): PushEvent; +}; + +interface PushManager { + getSubscription(): Promise<PushSubscription | null>; + permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>; + subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; +} + +declare var PushManager: { + prototype: PushManager; + new(): PushManager; + readonly supportedContentEncodings: ReadonlyArray<string>; +}; + +interface PushMessageData { + arrayBuffer(): ArrayBuffer; + blob(): Blob; + json(): any; + text(): string; +} + +declare var PushMessageData: { + prototype: PushMessageData; + new(): PushMessageData; +}; + +interface PushSubscription { + readonly endpoint: string; + readonly expirationTime: number | null; + readonly options: PushSubscriptionOptions; + getKey(name: PushEncryptionKeyName): ArrayBuffer | null; + toJSON(): PushSubscriptionJSON; + unsubscribe(): Promise<boolean>; +} + +declare var PushSubscription: { + prototype: PushSubscription; + new(): PushSubscription; +}; + +interface PushSubscriptionChangeEvent extends ExtendableEvent { + readonly newSubscription: PushSubscription | null; + readonly oldSubscription: PushSubscription | null; +} + +declare var PushSubscriptionChangeEvent: { + prototype: PushSubscriptionChangeEvent; + new(type: string, eventInitDict?: PushSubscriptionChangeInit): PushSubscriptionChangeEvent; +}; + +interface PushSubscriptionOptions { + readonly applicationServerKey: ArrayBuffer | null; + readonly userVisibleOnly: boolean; +} + +declare var PushSubscriptionOptions: { + prototype: PushSubscriptionOptions; + new(): PushSubscriptionOptions; +}; + +interface ReadableByteStreamController { + readonly byobRequest: ReadableStreamBYOBRequest | undefined; + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: ArrayBufferView): void; + error(error?: any): void; +} + +interface ReadableStream<R = any> { + readonly locked: boolean; + cancel(reason?: any): Promise<void>; + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader<R>; + pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>; + pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>; + tee(): [ReadableStream<R>, ReadableStream<R>]; +} + +declare var ReadableStream: { + prototype: ReadableStream; + new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>; + new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; +}; + +interface ReadableStreamBYOBReader { + readonly closed: Promise<void>; + cancel(reason?: any): Promise<void>; + read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; + releaseLock(): void; +} + +declare var ReadableStreamBYOBReader: { + prototype: ReadableStreamBYOBReader; + new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader; +}; + +interface ReadableStreamBYOBRequest { + readonly view: ArrayBufferView; + respond(bytesWritten: number): void; + respondWithNewView(view: ArrayBufferView): void; +} + +interface ReadableStreamDefaultController<R = any> { + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: R): void; + error(error?: any): void; +} + +interface ReadableStreamDefaultReader<R = any> { + readonly closed: Promise<void>; + cancel(reason?: any): Promise<void>; + read(): Promise<ReadableStreamReadResult<R>>; + releaseLock(): void; +} + +interface ReadableStreamReadResult<T> { + done: boolean; + value: T; +} + +interface ReadableStreamReader<R = any> { + cancel(): Promise<void>; + read(): Promise<ReadableStreamReadResult<R>>; + releaseLock(): void; +} + +declare var ReadableStreamReader: { + prototype: ReadableStreamReader; + new(): ReadableStreamReader; +}; + +interface Request extends Body { + /** + * Returns the cache mode associated with request, which is a string indicating + * how the request will interact with the browser's cache when fetching. + */ + readonly cache: RequestCache; + /** + * Returns the credentials mode associated with request, which is a string + * indicating whether credentials will be sent with the request always, never, or only when sent to a + * same-origin URL. + */ + readonly credentials: RequestCredentials; + /** + * Returns the kind of resource requested by request, e.g., "document" or + * "script". + */ + readonly destination: RequestDestination; + /** + * Returns a Headers object consisting of the headers associated with request. + * Note that headers added in the network layer by the user agent will not be accounted for in this + * object, e.g., the "Host" header. + */ + readonly headers: Headers; + /** + * Returns request's subresource integrity metadata, which is a cryptographic hash of + * the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] + */ + readonly integrity: string; + /** + * Returns a boolean indicating whether or not request is for a history + * navigation (a.k.a. back-foward navigation). + */ + readonly isHistoryNavigation: boolean; + /** + * Returns a boolean indicating whether or not request is for a reload navigation. + */ + readonly isReloadNavigation: boolean; + /** + * Returns a boolean indicating whether or not request can outlive the global in which + * it was created. + */ + readonly keepalive: boolean; + /** + * Returns request's HTTP method, which is "GET" by default. + */ + readonly method: string; + /** + * Returns the mode associated with request, which is a string indicating + * whether the request will use CORS, or will be restricted to same-origin URLs. + */ + readonly mode: RequestMode; + /** + * Returns the redirect mode associated with request, which is a string + * indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. + */ + readonly redirect: RequestRedirect; + /** + * Returns the referrer of request. Its value can be a same-origin URL if + * explicitly set in init, the empty string to indicate no referrer, and + * "about:client" when defaulting to the global's default. This is used during + * fetching to determine the value of the `Referer` header of the request being made. + */ + readonly referrer: string; + /** + * Returns the referrer policy associated with request. This is used during + * fetching to compute the value of the request's referrer. + */ + readonly referrerPolicy: ReferrerPolicy; + /** + * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort + * event handler. + */ + readonly signal: AbortSignal; + /** + * Returns the URL of request as a string. + */ + readonly url: string; + clone(): Request; +} + +declare var Request: { + prototype: Request; + new(input: RequestInfo, init?: RequestInit): Request; +}; + +interface Response extends Body { + readonly headers: Headers; + readonly ok: boolean; + readonly redirected: boolean; + readonly status: number; + readonly statusText: string; + readonly trailer: Promise<Headers>; + readonly type: ResponseType; + readonly url: string; + clone(): Response; +} + +declare var Response: { + prototype: Response; + new(body?: BodyInit | null, init?: ResponseInit): Response; + error(): Response; + redirect(url: string, status?: number): Response; +}; + +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; + addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorker: { + prototype: ServiceWorker; + new(): ServiceWorker; +}; + +interface ServiceWorkerContainerEventMap { + "controllerchange": Event; + "message": MessageEvent; + "messageerror": MessageEvent; +} + +interface ServiceWorkerContainer extends EventTarget { + readonly controller: ServiceWorker | null; + oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; + onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + readonly ready: Promise<ServiceWorkerRegistration>; + getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>; + getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; + register(scriptURL: string, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; + startMessages(): void; + addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerContainer: { + prototype: ServiceWorkerContainer; + new(): ServiceWorkerContainer; +}; + +interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { + "activate": ExtendableEvent; + "fetch": FetchEvent; + "install": ExtendableEvent; + "message": ExtendableMessageEvent; + "messageerror": MessageEvent; + "notificationclick": NotificationEvent; + "notificationclose": NotificationEvent; + "push": PushEvent; + "pushsubscriptionchange": PushSubscriptionChangeEvent; + "sync": SyncEvent; +} + +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: PushSubscriptionChangeEvent) => any) | null; + onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null; + readonly registration: ServiceWorkerRegistration; + skipWaiting(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerGlobalScope: { + prototype: ServiceWorkerGlobalScope; + new(): ServiceWorkerGlobalScope; +}; + +interface ServiceWorkerRegistrationEventMap { + "updatefound": Event; +} + +interface ServiceWorkerRegistration extends EventTarget { + readonly active: ServiceWorker | null; + readonly installing: ServiceWorker | null; + readonly navigationPreload: NavigationPreloadManager; + onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; + readonly pushManager: PushManager; + readonly scope: string; + readonly sync: SyncManager; + readonly updateViaCache: ServiceWorkerUpdateViaCache; + readonly waiting: ServiceWorker | null; + getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; + showNotification(title: string, options?: NotificationOptions): Promise<void>; + unregister(): Promise<boolean>; + update(): Promise<void>; + addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ServiceWorkerRegistration: { + prototype: ServiceWorkerRegistration; + new(): ServiceWorkerRegistration; +}; + +interface StorageManager { + estimate(): Promise<StorageEstimate>; + persisted(): Promise<boolean>; +} + +declare var StorageManager: { + prototype: StorageManager; + new(): StorageManager; +}; + +interface SubtleCrypto { + decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>; + deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>; + exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>; + exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>; + generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>; + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>; + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>; + unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; + verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>; + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>; +} + +declare var SubtleCrypto: { + prototype: SubtleCrypto; + new(): SubtleCrypto; +}; + +interface SyncEvent extends ExtendableEvent { + readonly lastChance: boolean; + readonly tag: string; +} + +declare var SyncEvent: { + prototype: SyncEvent; + new(type: string, init: SyncEventInit): SyncEvent; +}; + +interface SyncManager { + getTags(): Promise<string[]>; + register(tag: string): Promise<void>; +} + +declare var SyncManager: { + prototype: SyncManager; + new(): SyncManager; +}; + +interface TextDecoder { + /** + * Returns encoding's name, lowercased. + */ + readonly encoding: string; + /** + * Returns true if error mode is "fatal", and false + * otherwise. + */ + readonly fatal: boolean; + /** + * Returns true if ignore BOM flag is set, and false otherwise. + */ + readonly ignoreBOM: boolean; + /** + * Returns the result of running encoding's decoder. The + * method can be invoked zero or more times with options's stream set to + * true, and then once without options's stream (or set to false), to process + * a fragmented stream. If the invocation without options's stream (or set to + * false) has no input, it's clearest to omit both arguments. + * var string = "", decoder = new TextDecoder(encoding), buffer; + * while(buffer = next_chunk()) { + * string += decoder.decode(buffer, {stream:true}); + * } + * string += decoder.decode(); // end-of-stream + * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. + */ + decode(input?: BufferSource, options?: TextDecodeOptions): string; +} + +declare var TextDecoder: { + prototype: TextDecoder; + new(label?: string, options?: TextDecoderOptions): TextDecoder; +}; + +interface TextEncoder { + /** + * Returns "utf-8". + */ + readonly encoding: string; + /** + * Returns the result of running UTF-8's encoder. + */ + encode(input?: string): Uint8Array; +} + +declare var TextEncoder: { + prototype: TextEncoder; + new(): TextEncoder; +}; + +interface TextMetrics { + readonly actualBoundingBoxAscent: number; + readonly actualBoundingBoxDescent: number; + readonly actualBoundingBoxLeft: number; + readonly actualBoundingBoxRight: number; + readonly alphabeticBaseline: number; + readonly emHeightAscent: number; + readonly emHeightDescent: number; + readonly fontBoundingBoxAscent: number; + readonly fontBoundingBoxDescent: number; + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + */ + readonly ideographicBaseline: number; + readonly width: number; +} + +declare var TextMetrics: { + prototype: TextMetrics; + new(): TextMetrics; +}; + +interface TransformStream<I = any, O = any> { + readonly readable: ReadableStream<O>; + readonly writable: WritableStream<I>; +} + +declare var TransformStream: { + prototype: TransformStream; + new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; +}; + +interface TransformStreamDefaultController<O = any> { + readonly desiredSize: number | null; + enqueue(chunk: O): void; + error(reason?: any): void; + terminate(): void; +} + +interface URL { + hash: string; + host: string; + hostname: string; + href: string; + readonly origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + readonly searchParams: URLSearchParams; + username: string; + toJSON(): string; +} + +declare var URL: { + prototype: URL; + new(url: string, base?: string | URL): URL; + createObjectURL(object: any): string; + revokeObjectURL(url: string): void; +}; + +interface URLSearchParams { + /** + * Appends a specified key/value pair as a new search parameter. + */ + append(name: string, value: string): void; + /** + * Deletes the given search parameter, and its associated value, from the list of all search parameters. + */ + delete(name: string): void; + /** + * Returns the first value associated to the given search parameter. + */ + get(name: string): string | null; + /** + * Returns all the values association with a given search parameter. + */ + getAll(name: string): string[]; + /** + * Returns a Boolean indicating if such a search parameter exists. + */ + has(name: string): boolean; + /** + * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. + */ + set(name: string, value: string): void; + sort(): void; + forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; +} + +declare var URLSearchParams: { + prototype: URLSearchParams; + new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; +}; + +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_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 WebGLActiveInfo { + readonly name: string; + readonly size: GLint; + readonly type: GLenum; +} + +declare var WebGLActiveInfo: { + prototype: WebGLActiveInfo; + new(): WebGLActiveInfo; +}; + +interface WebGLBuffer extends WebGLObject { +} + +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 extends WebGLObject { +} + +declare var WebGLFramebuffer: { + prototype: WebGLFramebuffer; + new(): WebGLFramebuffer; +}; + +interface WebGLObject { +} + +declare var WebGLObject: { + prototype: WebGLObject; + new(): WebGLObject; +}; + +interface WebGLProgram extends WebGLObject { +} + +declare var WebGLProgram: { + prototype: WebGLProgram; + new(): WebGLProgram; +}; + +interface WebGLRenderbuffer extends WebGLObject { +} + +declare var WebGLRenderbuffer: { + prototype: WebGLRenderbuffer; + new(): WebGLRenderbuffer; +}; + +interface WebGLRenderingContext extends WebGLRenderingContextBase { +} + +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; + 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; + 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; + 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; + copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; + copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + createBuffer(): WebGLBuffer | null; + createFramebuffer(): WebGLFramebuffer | null; + createProgram(): WebGLProgram | null; + createRenderbuffer(): WebGLRenderbuffer | null; + createShader(type: GLenum): WebGLShader | null; + createTexture(): WebGLTexture | null; + cullFace(mode: GLenum): void; + deleteBuffer(buffer: WebGLBuffer | null): void; + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + deleteProgram(program: WebGLProgram | null): void; + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + deleteShader(shader: WebGLShader | null): void; + deleteTexture(texture: WebGLTexture | null): void; + depthFunc(func: GLenum): void; + depthMask(flag: GLboolean): void; + depthRange(zNear: GLclampf, zFar: GLclampf): void; + detachShader(program: WebGLProgram, shader: WebGLShader): void; + disable(cap: GLenum): void; + disableVertexAttribArray(index: GLuint): void; + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; + enable(cap: GLenum): void; + enableVertexAttribArray(index: GLuint): void; + finish(): void; + flush(): void; + framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; + framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; + frontFace(mode: GLenum): void; + generateMipmap(target: GLenum): void; + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + getAttribLocation(program: WebGLProgram, name: string): GLint; + getBufferParameter(target: GLenum, pname: GLenum): any; + getContextAttributes(): WebGLContextAttributes | null; + getError(): GLenum; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; + getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; + getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; + getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; + getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; + getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; + getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; + getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; + getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; + getExtension(extensionName: string): any; + getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; + getParameter(pname: GLenum): any; + getProgramInfoLog(program: WebGLProgram): string | null; + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + getShaderInfoLog(shader: WebGLShader): string | null; + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; + getShaderSource(shader: WebGLShader): string | null; + getSupportedExtensions(): string[] | null; + getTexParameter(target: GLenum, pname: GLenum): any; + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; + getVertexAttrib(index: GLuint, pname: GLenum): any; + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + hint(target: GLenum, mode: GLenum): void; + isBuffer(buffer: WebGLBuffer | null): GLboolean; + isContextLost(): boolean; + isEnabled(cap: GLenum): GLboolean; + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + isProgram(program: WebGLProgram | null): GLboolean; + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + isShader(shader: WebGLShader | null): GLboolean; + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + linkProgram(program: WebGLProgram): void; + pixelStorei(pname: GLenum, param: GLint): void; + polygonOffset(factor: GLfloat, units: GLfloat): void; + readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): 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; + 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; + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + texParameteri(target: GLenum, pname: GLenum, param: GLint): 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; + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): 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; + 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 WebGLShader extends WebGLObject { +} + +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 WebGLTexture extends WebGLObject { +} + +declare var WebGLTexture: { + prototype: WebGLTexture; + new(): WebGLTexture; +}; + +interface WebGLUniformLocation { +} + +declare var WebGLUniformLocation: { + prototype: WebGLUniformLocation; + new(): WebGLUniformLocation; +}; + +interface WebGLVertexArrayObjectOES extends WebGLObject { +} + +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<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WebSocket: { + prototype: WebSocket; + new(url: string, protocols?: string | string[]): WebSocket; + readonly CLOSED: number; + readonly CLOSING: number; + readonly CONNECTING: number; + readonly OPEN: number; +}; + +interface WindowBase64 { + atob(encodedString: string): string; + btoa(rawString: string): string; +} + +interface WindowClient extends Client { + readonly ancestorOrigins: ReadonlyArray<string>; + readonly focused: boolean; + readonly visibilityState: VisibilityState; + focus(): Promise<WindowClient>; + navigate(url: string): Promise<WindowClient | null>; +} + +declare var WindowClient: { + prototype: WindowClient; + new(): WindowClient; +}; + +interface WindowConsole { + readonly console: Console; +} + +interface WindowOrWorkerGlobalScope { + readonly caches: CacheStorage; + readonly crypto: Crypto; + readonly indexedDB: IDBFactory; + readonly origin: string; + readonly performance: Performance; + atob(data: string): string; + btoa(data: string): string; + clearInterval(handle?: number): void; + clearTimeout(handle?: number): void; + createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>; + createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>; + fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; + queueMicrotask(callback: Function): void; + setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; + setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +} + +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; +} + +interface Worker extends EventTarget, AbstractWorker { + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + postMessage(message: any, transfer?: Transferable[]): void; + terminate(): void; + addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Worker: { + prototype: Worker; + new(stringUrl: string, options?: WorkerOptions): Worker; +}; + +interface WorkerGlobalScopeEventMap { + "error": ErrorEvent; +} + +interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, GlobalFetch, WindowOrWorkerGlobalScope { + readonly caches: CacheStorage; + readonly isSecureContext: boolean; + readonly location: WorkerLocation; + onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null; + readonly performance: Performance; + readonly self: WorkerGlobalScope; + msWriteProfilerMark(profilerMarkName: string): void; + addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var WorkerGlobalScope: { + prototype: WorkerGlobalScope; + new(): WorkerGlobalScope; +}; + +interface WorkerLocation { + readonly hash: string; + readonly host: string; + readonly hostname: string; + readonly href: string; + readonly origin: string; + readonly pathname: string; + readonly port: string; + readonly protocol: string; + readonly search: string; + toString(): string; +} + +declare var WorkerLocation: { + prototype: WorkerLocation; + new(): WorkerLocation; +}; + +interface WorkerNavigator extends NavigatorID, NavigatorOnLine, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorStorage { + readonly serviceWorker: ServiceWorkerContainer; +} + +declare var WorkerNavigator: { + prototype: WorkerNavigator; + new(): WorkerNavigator; +}; + +interface WorkerUtils extends WindowBase64 { + readonly indexedDB: IDBFactory; + readonly msIndexedDB: IDBFactory; + readonly navigator: WorkerNavigator; + importScripts(...urls: string[]): void; +} + +interface WritableStream<W = any> { + readonly locked: boolean; + abort(reason?: any): Promise<void>; + getWriter(): WritableStreamDefaultWriter<W>; +} + +declare var WritableStream: { + prototype: WritableStream; + new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; +}; + +interface WritableStreamDefaultController { + error(error?: any): void; +} + +interface WritableStreamDefaultWriter<W = any> { + readonly closed: Promise<void>; + readonly desiredSize: number | null; + readonly ready: Promise<void>; + abort(reason?: any): Promise<void>; + close(): Promise<void>; + releaseLock(): void; + write(chunk: W): Promise<void>; +} + +interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { + "readystatechange": Event; +} + +interface XMLHttpRequest extends XMLHttpRequestEventTarget { + onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; + /** + * Returns client's state. + */ + readonly readyState: number; + /** + * Returns the response's body. + */ + readonly response: any; + /** + * Returns the text response. + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". + */ + readonly responseText: string; + /** + * Returns the response type. + * Can be set to change the response type. Values are: + * the empty string (default), + * "arraybuffer", + * "blob", + * "document", + * "json", and + * "text". + * When set: setting to "document" is ignored if current global object is not a Window object. + * When set: throws an "InvalidStateError" DOMException if state is loading or done. + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + */ + responseType: XMLHttpRequestResponseType; + readonly responseURL: string; + readonly status: number; + readonly statusText: string; + /** + * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the + * request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a + * "TimeoutError" DOMException will be thrown otherwise (for the send() method). + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + */ + timeout: number; + /** + * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is + * transferred to a server. + */ + readonly upload: XMLHttpRequestUpload; + /** + * True when credentials are to be included in a cross-origin request. False when they are + * to be excluded in a cross-origin request and when cookies are to be ignored in its response. + * Initially false. + * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. + */ + withCredentials: boolean; + /** + * Cancels any network activity. + */ + abort(): void; + getAllResponseHeaders(): string; + getResponseHeader(name: string): string | null; + /** + * Sets the request method, request URL, and synchronous flag. + * Throws a "SyntaxError" DOMException if either method is not a + * valid HTTP method or url cannot be parsed. + * Throws a "SecurityError" DOMException if method is a + * case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`. + * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. + */ + open(method: string, url: string): void; + open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void; + /** + * Acts as if the `Content-Type` header value for response is mime. + * (It does not actually change the header though.) + * Throws an "InvalidStateError" DOMException if state is loading or done. + */ + overrideMimeType(mime: string): void; + /** + * Initiates the request. The optional argument provides the request body. The argument is ignored if request method is GET or HEAD. + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + */ + send(body?: BodyInit | null): void; + /** + * Combines a header in author request headers. + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * Throws a "SyntaxError" DOMException if name is not a header name + * or if value is not a header value. + */ + setRequestHeader(name: string, value: string): void; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequest: { + prototype: XMLHttpRequest; + new(): XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; +}; + +interface XMLHttpRequestEventTargetEventMap { + "abort": ProgressEvent; + "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<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestEventTarget: { + prototype: XMLHttpRequestEventTarget; + new(): XMLHttpRequestEventTarget; +}; + +interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { + addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var XMLHttpRequestUpload: { + prototype: XMLHttpRequestUpload; + new(): XMLHttpRequestUpload; +}; + +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; + +interface EventHandlerNonNull { + (event: Event): any; +} + +interface PerformanceObserverCallback { + (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; +} + +interface QueuingStrategySizeCallback<T = any> { + (chunk: T): number; +} + +interface ReadableByteStreamControllerCallback { + (controller: ReadableByteStreamController): void | PromiseLike<void>; +} + +interface ReadableStreamDefaultControllerCallback<R> { + (controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>; +} + +interface ReadableStreamErrorCallback { + (reason: any): void | PromiseLike<void>; +} + +interface TransformStreamDefaultControllerCallback<O> { + (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface TransformStreamDefaultControllerTransformCallback<I, O> { + (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; +} + +interface WritableStreamDefaultControllerCloseCallback { + (): void | PromiseLike<void>; +} + +interface WritableStreamDefaultControllerStartCallback { + (controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface WritableStreamDefaultControllerWriteCallback<W> { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; +} + +interface WritableStreamErrorCallback { + (reason: any): void | PromiseLike<void>; +} + +declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; +declare function close(): void; +declare function postMessage(message: any, transfer?: Transferable[]): void; +/** + * Dispatches a synthetic event event to target and returns true + * if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + */ +declare function dispatchEvent(event: Event): boolean; +declare var caches: CacheStorage; +declare var isSecureContext: boolean; +declare var location: WorkerLocation; +declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null; +declare var performance: Performance; +declare var self: WorkerGlobalScope; +declare function msWriteProfilerMark(profilerMarkName: string): void; +/** + * Dispatches a synthetic event event to target and returns true + * if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + */ +declare function dispatchEvent(event: Event): boolean; +declare var indexedDB: IDBFactory; +declare var msIndexedDB: IDBFactory; +declare var navigator: WorkerNavigator; +declare function importScripts(...urls: string[]): void; +declare function atob(encodedString: string): string; +declare function btoa(rawString: string): string; +declare var console: Console; +declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +declare var caches: CacheStorage; +declare var crypto: Crypto; +declare var indexedDB: IDBFactory; +declare var origin: string; +declare var performance: Performance; +declare function atob(data: string): string; +declare function btoa(data: string): string; +declare function clearInterval(handle?: number): void; +declare function clearTimeout(handle?: number): void; +declare function createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>; +declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>; +declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; +declare function queueMicrotask(callback: Function): void; +declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; +declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; +declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type BlobPart = BufferSource | Blob | string; +type HeadersInit = Headers | string[][] | Record<string, string>; +type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string; +type RequestInfo = Request | string; +type DOMHighResTimeStamp = number; +type CanvasImageSource = ImageBitmap; +type MessageEventSource = MessagePort | ServiceWorker; +type ImageBitmapSource = CanvasImageSource | Blob | ImageData; +type TimerHandler = string | Function; +type PerformanceEntryList = PerformanceEntry[]; +type PushMessageDataInit = BufferSource | string; +type VibratePattern = number | number[]; +type AlgorithmIdentifier = string | Algorithm; +type HashAlgorithmIdentifier = AlgorithmIdentifier; +type BigInteger = Uint8Array; +type NamedCurve = string; +type GLenum = number; +type GLboolean = boolean; +type GLbitfield = number; +type GLint = number; +type GLsizei = number; +type GLintptr = number; +type GLsizeiptr = number; +type GLuint = number; +type GLfloat = number; +type GLclampf = number; +type TexImageSource = ImageBitmap | ImageData; +type Float32List = Float32Array | GLfloat[]; +type Int32List = Int32Array | GLint[]; +type BufferSource = ArrayBufferView | ArrayBuffer; +type DOMTimeStamp = number; +type FormDataEntryValue = File | string; +type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey; +type Transferable = ArrayBuffer | MessagePort | ImageBitmap; +type BinaryType = "blob" | "arraybuffer"; +type ClientTypes = "window" | "worker" | "sharedworker" | "all"; +type EndingType = "transparent" | "native"; +type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; +type IDBRequestReadyState = "pending" | "done"; +type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; +type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk"; +type KeyType = "public" | "private" | "secret"; +type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey"; +type NotificationDirection = "auto" | "ltr" | "rtl"; +type NotificationPermission = "default" | "denied" | "granted"; +type PushEncryptionKeyName = "p256dh" | "auth"; +type PushPermissionState = "denied" | "granted" | "prompt"; +type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url"; +type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached"; +type RequestCredentials = "omit" | "same-origin" | "include"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors"; +type RequestRedirect = "follow" | "error" | "manual"; +type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant"; +type ServiceWorkerUpdateViaCache = "imports" | "all" | "none"; +type VisibilityState = "hidden" | "visible" | "prerender"; +type WebGLPowerPreference = "default" | "low-power" | "high-performance"; +type WorkerType = "classic" | "module"; +type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.importscripts.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.importscripts.d.ts new file mode 100644 index 0000000..c373ba8 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/lib.webworker.importscripts.d.ts @@ -0,0 +1,26 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + + +/// <reference no-default-lib="true"/> + + + +///////////////////////////// +/// WorkerGlobalScope APIs +///////////////////////////// +// These are only available in a Web Worker +declare function importScripts(...urls: string[]): void; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/protocol.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/protocol.d.ts new file mode 100644 index 0000000..74855bf --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/protocol.d.ts @@ -0,0 +1,2552 @@ +/**
+ * Declaration module describing the TypeScript Server protocol
+ */
+declare namespace ts.server.protocol {
+ const enum CommandTypes {
+ JsxClosingTag = "jsxClosingTag",
+ Brace = "brace",
+ BraceCompletion = "braceCompletion",
+ GetSpanOfEnclosingComment = "getSpanOfEnclosingComment",
+ Change = "change",
+ Close = "close",
+ /** @deprecated Prefer CompletionInfo -- see comment on CompletionsResponse */
+ Completions = "completions",
+ CompletionInfo = "completionInfo",
+ CompletionDetails = "completionEntryDetails",
+ CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList",
+ CompileOnSaveEmitFile = "compileOnSaveEmitFile",
+ Configure = "configure",
+ Definition = "definition",
+ DefinitionAndBoundSpan = "definitionAndBoundSpan",
+ Implementation = "implementation",
+ Exit = "exit",
+ Format = "format",
+ Formatonkey = "formatonkey",
+ Geterr = "geterr",
+ GeterrForProject = "geterrForProject",
+ SemanticDiagnosticsSync = "semanticDiagnosticsSync",
+ SyntacticDiagnosticsSync = "syntacticDiagnosticsSync",
+ SuggestionDiagnosticsSync = "suggestionDiagnosticsSync",
+ NavBar = "navbar",
+ Navto = "navto",
+ NavTree = "navtree",
+ NavTreeFull = "navtree-full",
+ /** @deprecated */
+ Occurrences = "occurrences",
+ DocumentHighlights = "documentHighlights",
+ Open = "open",
+ Quickinfo = "quickinfo",
+ References = "references",
+ Reload = "reload",
+ Rename = "rename",
+ Saveto = "saveto",
+ SignatureHelp = "signatureHelp",
+ Status = "status",
+ TypeDefinition = "typeDefinition",
+ ProjectInfo = "projectInfo",
+ ReloadProjects = "reloadProjects",
+ Unknown = "unknown",
+ OpenExternalProject = "openExternalProject",
+ OpenExternalProjects = "openExternalProjects",
+ CloseExternalProject = "closeExternalProject",
+ GetOutliningSpans = "getOutliningSpans",
+ TodoComments = "todoComments",
+ Indentation = "indentation",
+ DocCommentTemplate = "docCommentTemplate",
+ CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects",
+ GetCodeFixes = "getCodeFixes",
+ GetCombinedCodeFix = "getCombinedCodeFix",
+ ApplyCodeActionCommand = "applyCodeActionCommand",
+ GetSupportedCodeFixes = "getSupportedCodeFixes",
+ GetApplicableRefactors = "getApplicableRefactors",
+ GetEditsForRefactor = "getEditsForRefactor",
+ OrganizeImports = "organizeImports",
+ GetEditsForFileRename = "getEditsForFileRename",
+ ConfigurePlugin = "configurePlugin"
+ }
+ /**
+ * A TypeScript Server message
+ */
+ interface Message {
+ /**
+ * Sequence number of the message
+ */
+ seq: number;
+ /**
+ * One of "request", "response", or "event"
+ */
+ type: "request" | "response" | "event";
+ }
+ /**
+ * Client-initiated request message
+ */
+ interface Request extends Message {
+ type: "request";
+ /**
+ * The command to execute
+ */
+ command: string;
+ /**
+ * Object containing arguments for the command
+ */
+ arguments?: any;
+ }
+ /**
+ * Request to reload the project structure for all the opened files
+ */
+ interface ReloadProjectsRequest extends Message {
+ command: CommandTypes.ReloadProjects;
+ }
+ /**
+ * Server-initiated event message
+ */
+ interface Event extends Message {
+ type: "event";
+ /**
+ * Name of event
+ */
+ event: string;
+ /**
+ * Event-specific information
+ */
+ body?: any;
+ }
+ /**
+ * Response by server to client request message.
+ */
+ interface Response extends Message {
+ type: "response";
+ /**
+ * Sequence number of the request message.
+ */
+ request_seq: number;
+ /**
+ * Outcome of the request.
+ */
+ success: boolean;
+ /**
+ * The command requested.
+ */
+ command: string;
+ /**
+ * If success === false, this should always be provided.
+ * Otherwise, may (or may not) contain a success message.
+ */
+ message?: string;
+ /**
+ * Contains message body if success === true.
+ */
+ body?: any;
+ /**
+ * Contains extra information that plugin can include to be passed on
+ */
+ metadata?: unknown;
+ }
+ /**
+ * Arguments for FileRequest messages.
+ */
+ interface FileRequestArgs {
+ /**
+ * The file for the request (absolute pathname required).
+ */
+ file: string;
+ projectFileName?: string;
+ }
+ interface StatusRequest extends Request {
+ command: CommandTypes.Status;
+ }
+ interface StatusResponseBody {
+ /**
+ * The TypeScript version (`ts.version`).
+ */
+ version: string;
+ }
+ /**
+ * Response to StatusRequest
+ */
+ interface StatusResponse extends Response {
+ body: StatusResponseBody;
+ }
+ /**
+ * Requests a JS Doc comment template for a given position
+ */
+ interface DocCommentTemplateRequest extends FileLocationRequest {
+ command: CommandTypes.DocCommentTemplate;
+ }
+ /**
+ * Response to DocCommentTemplateRequest
+ */
+ interface DocCommandTemplateResponse extends Response {
+ body?: TextInsertion;
+ }
+ /**
+ * A request to get TODO comments from the file
+ */
+ interface TodoCommentRequest extends FileRequest {
+ command: CommandTypes.TodoComments;
+ arguments: TodoCommentRequestArgs;
+ }
+ /**
+ * Arguments for TodoCommentRequest request.
+ */
+ interface TodoCommentRequestArgs extends FileRequestArgs {
+ /**
+ * Array of target TodoCommentDescriptors that describes TODO comments to be found
+ */
+ descriptors: TodoCommentDescriptor[];
+ }
+ /**
+ * Response for TodoCommentRequest request.
+ */
+ interface TodoCommentsResponse extends Response {
+ body?: TodoComment[];
+ }
+ /**
+ * A request to determine if the caret is inside a comment.
+ */
+ interface SpanOfEnclosingCommentRequest extends FileLocationRequest {
+ command: CommandTypes.GetSpanOfEnclosingComment;
+ arguments: SpanOfEnclosingCommentRequestArgs;
+ }
+ interface SpanOfEnclosingCommentRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Requires that the enclosing span be a multi-line comment, or else the request returns undefined.
+ */
+ onlyMultiLine: boolean;
+ }
+ /**
+ * Request to obtain outlining spans in file.
+ */
+ interface OutliningSpansRequest extends FileRequest {
+ command: CommandTypes.GetOutliningSpans;
+ }
+ interface OutliningSpan {
+ /** The span of the document to actually collapse. */
+ textSpan: TextSpan;
+ /** The span of the document to display when the user hovers over the collapsed span. */
+ hintSpan: TextSpan;
+ /** The text to display in the editor for the collapsed region. */
+ bannerText: string;
+ /**
+ * Whether or not this region should be automatically collapsed when
+ * the 'Collapse to Definitions' command is invoked.
+ */
+ autoCollapse: boolean;
+ /**
+ * Classification of the contents of the span
+ */
+ kind: OutliningSpanKind;
+ }
+ /**
+ * Response to OutliningSpansRequest request.
+ */
+ interface OutliningSpansResponse extends Response {
+ body?: OutliningSpan[];
+ }
+ /**
+ * A request to get indentation for a location in file
+ */
+ interface IndentationRequest extends FileLocationRequest {
+ command: CommandTypes.Indentation;
+ arguments: IndentationRequestArgs;
+ }
+ /**
+ * Response for IndentationRequest request.
+ */
+ interface IndentationResponse extends Response {
+ body?: IndentationResult;
+ }
+ /**
+ * Indentation result representing where indentation should be placed
+ */
+ interface IndentationResult {
+ /**
+ * The base position in the document that the indent should be relative to
+ */
+ position: number;
+ /**
+ * The number of columns the indent should be at relative to the position's column.
+ */
+ indentation: number;
+ }
+ /**
+ * Arguments for IndentationRequest request.
+ */
+ interface IndentationRequestArgs extends FileLocationRequestArgs {
+ /**
+ * An optional set of settings to be used when computing indentation.
+ * If argument is omitted - then it will use settings for file that were previously set via 'configure' request or global settings.
+ */
+ options?: EditorSettings;
+ }
+ /**
+ * Arguments for ProjectInfoRequest request.
+ */
+ interface ProjectInfoRequestArgs extends FileRequestArgs {
+ /**
+ * Indicate if the file name list of the project is needed
+ */
+ needFileNameList: boolean;
+ }
+ /**
+ * A request to get the project information of the current file.
+ */
+ interface ProjectInfoRequest extends Request {
+ command: CommandTypes.ProjectInfo;
+ arguments: ProjectInfoRequestArgs;
+ }
+ /**
+ * A request to retrieve compiler options diagnostics for a project
+ */
+ interface CompilerOptionsDiagnosticsRequest extends Request {
+ arguments: CompilerOptionsDiagnosticsRequestArgs;
+ }
+ /**
+ * Arguments for CompilerOptionsDiagnosticsRequest request.
+ */
+ interface CompilerOptionsDiagnosticsRequestArgs {
+ /**
+ * Name of the project to retrieve compiler options diagnostics.
+ */
+ projectFileName: string;
+ }
+ /**
+ * Response message body for "projectInfo" request
+ */
+ interface ProjectInfo {
+ /**
+ * For configured project, this is the normalized path of the 'tsconfig.json' file
+ * For inferred project, this is undefined
+ */
+ configFileName: string;
+ /**
+ * The list of normalized file name in the project, including 'lib.d.ts'
+ */
+ fileNames?: string[];
+ /**
+ * Indicates if the project has a active language service instance
+ */
+ languageServiceDisabled?: boolean;
+ }
+ /**
+ * Represents diagnostic info that includes location of diagnostic in two forms
+ * - start position and length of the error span
+ * - startLocation and endLocation - a pair of Location objects that store start/end line and offset of the error span.
+ */
+ interface DiagnosticWithLinePosition {
+ message: string;
+ start: number;
+ length: number;
+ startLocation: Location;
+ endLocation: Location;
+ category: string;
+ code: number;
+ /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
+ reportsUnnecessary?: {};
+ relatedInformation?: DiagnosticRelatedInformation[];
+ }
+ /**
+ * Response message for "projectInfo" request
+ */
+ interface ProjectInfoResponse extends Response {
+ body?: ProjectInfo;
+ }
+ /**
+ * Request whose sole parameter is a file name.
+ */
+ interface FileRequest extends Request {
+ arguments: FileRequestArgs;
+ }
+ /**
+ * Instances of this interface specify a location in a source file:
+ * (file, line, character offset), where line and character offset are 1-based.
+ */
+ interface FileLocationRequestArgs extends FileRequestArgs {
+ /**
+ * The line number for the request (1-based).
+ */
+ line: number;
+ /**
+ * The character offset (on the line) for the request (1-based).
+ */
+ offset: number;
+ }
+ type FileLocationOrRangeRequestArgs = FileLocationRequestArgs | FileRangeRequestArgs;
+ /**
+ * Request refactorings at a given position or selection area.
+ */
+ interface GetApplicableRefactorsRequest extends Request {
+ command: CommandTypes.GetApplicableRefactors;
+ arguments: GetApplicableRefactorsRequestArgs;
+ }
+ type GetApplicableRefactorsRequestArgs = FileLocationOrRangeRequestArgs;
+ /**
+ * Response is a list of available refactorings.
+ * Each refactoring exposes one or more "Actions"; a user selects one action to invoke a refactoring
+ */
+ interface GetApplicableRefactorsResponse extends Response {
+ body?: ApplicableRefactorInfo[];
+ }
+ /**
+ * A set of one or more available refactoring actions, grouped under a parent refactoring.
+ */
+ interface ApplicableRefactorInfo {
+ /**
+ * The programmatic name of the refactoring
+ */
+ name: string;
+ /**
+ * A description of this refactoring category to show to the user.
+ * If the refactoring gets inlined (see below), this text will not be visible.
+ */
+ description: string;
+ /**
+ * Inlineable refactorings can have their actions hoisted out to the top level
+ * of a context menu. Non-inlineanable refactorings should always be shown inside
+ * their parent grouping.
+ *
+ * If not specified, this value is assumed to be 'true'
+ */
+ inlineable?: boolean;
+ actions: RefactorActionInfo[];
+ }
+ /**
+ * Represents a single refactoring action - for example, the "Extract Method..." refactor might
+ * offer several actions, each corresponding to a surround class or closure to extract into.
+ */
+ interface RefactorActionInfo {
+ /**
+ * The programmatic name of the refactoring action
+ */
+ name: string;
+ /**
+ * A description of this refactoring action to show to the user.
+ * If the parent refactoring is inlined away, this will be the only text shown,
+ * so this description should make sense by itself if the parent is inlineable=true
+ */
+ description: string;
+ }
+ interface GetEditsForRefactorRequest extends Request {
+ command: CommandTypes.GetEditsForRefactor;
+ arguments: GetEditsForRefactorRequestArgs;
+ }
+ /**
+ * Request the edits that a particular refactoring action produces.
+ * Callers must specify the name of the refactor and the name of the action.
+ */
+ type GetEditsForRefactorRequestArgs = FileLocationOrRangeRequestArgs & {
+ refactor: string;
+ action: string;
+ };
+ interface GetEditsForRefactorResponse extends Response {
+ body?: RefactorEditInfo;
+ }
+ interface RefactorEditInfo {
+ edits: FileCodeEdits[];
+ /**
+ * An optional location where the editor should start a rename operation once
+ * the refactoring edits have been applied
+ */
+ renameLocation?: Location;
+ renameFilename?: string;
+ }
+ /**
+ * Organize imports by:
+ * 1) Removing unused imports
+ * 2) Coalescing imports from the same module
+ * 3) Sorting imports
+ */
+ interface OrganizeImportsRequest extends Request {
+ command: CommandTypes.OrganizeImports;
+ arguments: OrganizeImportsRequestArgs;
+ }
+ type OrganizeImportsScope = GetCombinedCodeFixScope;
+ interface OrganizeImportsRequestArgs {
+ scope: OrganizeImportsScope;
+ }
+ interface OrganizeImportsResponse extends Response {
+ body: ReadonlyArray<FileCodeEdits>;
+ }
+ interface GetEditsForFileRenameRequest extends Request {
+ command: CommandTypes.GetEditsForFileRename;
+ arguments: GetEditsForFileRenameRequestArgs;
+ }
+ /** Note: Paths may also be directories. */
+ interface GetEditsForFileRenameRequestArgs {
+ readonly oldFilePath: string;
+ readonly newFilePath: string;
+ }
+ interface GetEditsForFileRenameResponse extends Response {
+ body: ReadonlyArray<FileCodeEdits>;
+ }
+ /**
+ * Request for the available codefixes at a specific position.
+ */
+ interface CodeFixRequest extends Request {
+ command: CommandTypes.GetCodeFixes;
+ arguments: CodeFixRequestArgs;
+ }
+ interface GetCombinedCodeFixRequest extends Request {
+ command: CommandTypes.GetCombinedCodeFix;
+ arguments: GetCombinedCodeFixRequestArgs;
+ }
+ interface GetCombinedCodeFixResponse extends Response {
+ body: CombinedCodeActions;
+ }
+ interface ApplyCodeActionCommandRequest extends Request {
+ command: CommandTypes.ApplyCodeActionCommand;
+ arguments: ApplyCodeActionCommandRequestArgs;
+ }
+ interface ApplyCodeActionCommandResponse extends Response {
+ }
+ interface FileRangeRequestArgs extends FileRequestArgs {
+ /**
+ * The line number for the request (1-based).
+ */
+ startLine: number;
+ /**
+ * The character offset (on the line) for the request (1-based).
+ */
+ startOffset: number;
+ /**
+ * The line number for the request (1-based).
+ */
+ endLine: number;
+ /**
+ * The character offset (on the line) for the request (1-based).
+ */
+ endOffset: number;
+ }
+ /**
+ * Instances of this interface specify errorcodes on a specific location in a sourcefile.
+ */
+ interface CodeFixRequestArgs extends FileRangeRequestArgs {
+ /**
+ * Errorcodes we want to get the fixes for.
+ */
+ errorCodes: ReadonlyArray<number>;
+ }
+ interface GetCombinedCodeFixRequestArgs {
+ scope: GetCombinedCodeFixScope;
+ fixId: {};
+ }
+ interface GetCombinedCodeFixScope {
+ type: "file";
+ args: FileRequestArgs;
+ }
+ interface ApplyCodeActionCommandRequestArgs {
+ /** May also be an array of commands. */
+ command: {};
+ }
+ /**
+ * Response for GetCodeFixes request.
+ */
+ interface GetCodeFixesResponse extends Response {
+ body?: CodeAction[];
+ }
+ /**
+ * A request whose arguments specify a file location (file, line, col).
+ */
+ interface FileLocationRequest extends FileRequest {
+ arguments: FileLocationRequestArgs;
+ }
+ /**
+ * A request to get codes of supported code fixes.
+ */
+ interface GetSupportedCodeFixesRequest extends Request {
+ command: CommandTypes.GetSupportedCodeFixes;
+ }
+ /**
+ * A response for GetSupportedCodeFixesRequest request.
+ */
+ interface GetSupportedCodeFixesResponse extends Response {
+ /**
+ * List of error codes supported by the server.
+ */
+ body?: string[];
+ }
+ /**
+ * Arguments for EncodedSemanticClassificationsRequest request.
+ */
+ interface EncodedSemanticClassificationsRequestArgs extends FileRequestArgs {
+ /**
+ * Start position of the span.
+ */
+ start: number;
+ /**
+ * Length of the span.
+ */
+ length: number;
+ }
+ /**
+ * Arguments in document highlight request; include: filesToSearch, file,
+ * line, offset.
+ */
+ interface DocumentHighlightsRequestArgs extends FileLocationRequestArgs {
+ /**
+ * List of files to search for document highlights.
+ */
+ filesToSearch: string[];
+ }
+ /**
+ * Go to definition request; value of command field is
+ * "definition". Return response giving the file locations that
+ * define the symbol found in file at location line, col.
+ */
+ interface DefinitionRequest extends FileLocationRequest {
+ command: CommandTypes.Definition;
+ }
+ interface DefinitionAndBoundSpanRequest extends FileLocationRequest {
+ readonly command: CommandTypes.DefinitionAndBoundSpan;
+ }
+ interface DefinitionAndBoundSpanResponse extends Response {
+ readonly body: DefinitionInfoAndBoundSpan;
+ }
+ /**
+ * Go to type request; value of command field is
+ * "typeDefinition". Return response giving the file locations that
+ * define the type for the symbol found in file at location line, col.
+ */
+ interface TypeDefinitionRequest extends FileLocationRequest {
+ command: CommandTypes.TypeDefinition;
+ }
+ /**
+ * Go to implementation request; value of command field is
+ * "implementation". Return response giving the file locations that
+ * implement the symbol found in file at location line, col.
+ */
+ interface ImplementationRequest extends FileLocationRequest {
+ command: CommandTypes.Implementation;
+ }
+ /**
+ * Location in source code expressed as (one-based) line and (one-based) column offset.
+ */
+ interface Location {
+ line: number;
+ offset: number;
+ }
+ /**
+ * Object found in response messages defining a span of text in source code.
+ */
+ interface TextSpan {
+ /**
+ * First character of the definition.
+ */
+ start: Location;
+ /**
+ * One character past last character of the definition.
+ */
+ end: Location;
+ }
+ /**
+ * Object found in response messages defining a span of text in a specific source file.
+ */
+ interface FileSpan extends TextSpan {
+ /**
+ * File containing text span.
+ */
+ file: string;
+ }
+ interface DefinitionInfoAndBoundSpan {
+ definitions: ReadonlyArray<FileSpan>;
+ textSpan: TextSpan;
+ }
+ /**
+ * Definition response message. Gives text range for definition.
+ */
+ interface DefinitionResponse extends Response {
+ body?: FileSpan[];
+ }
+ interface DefinitionInfoAndBoundSpanReponse extends Response {
+ body?: DefinitionInfoAndBoundSpan;
+ }
+ /**
+ * Definition response message. Gives text range for definition.
+ */
+ interface TypeDefinitionResponse extends Response {
+ body?: FileSpan[];
+ }
+ /**
+ * Implementation response message. Gives text range for implementations.
+ */
+ interface ImplementationResponse extends Response {
+ body?: FileSpan[];
+ }
+ /**
+ * Request to get brace completion for a location in the file.
+ */
+ interface BraceCompletionRequest extends FileLocationRequest {
+ command: CommandTypes.BraceCompletion;
+ arguments: BraceCompletionRequestArgs;
+ }
+ /**
+ * Argument for BraceCompletionRequest request.
+ */
+ interface BraceCompletionRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Kind of opening brace
+ */
+ openingBrace: string;
+ }
+ interface JsxClosingTagRequest extends FileLocationRequest {
+ readonly command: CommandTypes.JsxClosingTag;
+ readonly arguments: JsxClosingTagRequestArgs;
+ }
+ interface JsxClosingTagRequestArgs extends FileLocationRequestArgs {
+ }
+ interface JsxClosingTagResponse extends Response {
+ readonly body: TextInsertion;
+ }
+ /**
+ * @deprecated
+ * Get occurrences request; value of command field is
+ * "occurrences". Return response giving spans that are relevant
+ * in the file at a given line and column.
+ */
+ interface OccurrencesRequest extends FileLocationRequest {
+ command: CommandTypes.Occurrences;
+ }
+ /** @deprecated */
+ interface OccurrencesResponseItem extends FileSpan {
+ /**
+ * True if the occurrence is a write location, false otherwise.
+ */
+ isWriteAccess: boolean;
+ /**
+ * True if the occurrence is in a string, undefined otherwise;
+ */
+ isInString?: true;
+ }
+ /** @deprecated */
+ interface OccurrencesResponse extends Response {
+ body?: OccurrencesResponseItem[];
+ }
+ /**
+ * Get document highlights request; value of command field is
+ * "documentHighlights". Return response giving spans that are relevant
+ * in the file at a given line and column.
+ */
+ interface DocumentHighlightsRequest extends FileLocationRequest {
+ command: CommandTypes.DocumentHighlights;
+ arguments: DocumentHighlightsRequestArgs;
+ }
+ /**
+ * Span augmented with extra information that denotes the kind of the highlighting to be used for span.
+ */
+ interface HighlightSpan extends TextSpan {
+ kind: HighlightSpanKind;
+ }
+ /**
+ * Represents a set of highligh spans for a give name
+ */
+ interface DocumentHighlightsItem {
+ /**
+ * File containing highlight spans.
+ */
+ file: string;
+ /**
+ * Spans to highlight in file.
+ */
+ highlightSpans: HighlightSpan[];
+ }
+ /**
+ * Response for a DocumentHighlightsRequest request.
+ */
+ interface DocumentHighlightsResponse extends Response {
+ body?: DocumentHighlightsItem[];
+ }
+ /**
+ * Find references request; value of command field is
+ * "references". Return response giving the file locations that
+ * reference the symbol found in file at location line, col.
+ */
+ interface ReferencesRequest extends FileLocationRequest {
+ command: CommandTypes.References;
+ }
+ interface ReferencesResponseItem extends FileSpan {
+ /** Text of line containing the reference. Including this
+ * with the response avoids latency of editor loading files
+ * to show text of reference line (the server already has
+ * loaded the referencing files).
+ */
+ lineText: string;
+ /**
+ * True if reference is a write location, false otherwise.
+ */
+ isWriteAccess: boolean;
+ /**
+ * True if reference is a definition, false otherwise.
+ */
+ isDefinition: boolean;
+ }
+ /**
+ * The body of a "references" response message.
+ */
+ interface ReferencesResponseBody {
+ /**
+ * The file locations referencing the symbol.
+ */
+ refs: ReadonlyArray<ReferencesResponseItem>;
+ /**
+ * The name of the symbol.
+ */
+ symbolName: string;
+ /**
+ * The start character offset of the symbol (on the line provided by the references request).
+ */
+ symbolStartOffset: number;
+ /**
+ * The full display name of the symbol.
+ */
+ symbolDisplayString: string;
+ }
+ /**
+ * Response to "references" request.
+ */
+ interface ReferencesResponse extends Response {
+ body?: ReferencesResponseBody;
+ }
+ /**
+ * Argument for RenameRequest request.
+ */
+ interface RenameRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Should text at specified location be found/changed in comments?
+ */
+ findInComments?: boolean;
+ /**
+ * Should text at specified location be found/changed in strings?
+ */
+ findInStrings?: boolean;
+ }
+ /**
+ * Rename request; value of command field is "rename". Return
+ * response giving the file locations that reference the symbol
+ * found in file at location line, col. Also return full display
+ * name of the symbol so that client can print it unambiguously.
+ */
+ interface RenameRequest extends FileLocationRequest {
+ command: CommandTypes.Rename;
+ arguments: RenameRequestArgs;
+ }
+ /**
+ * Information about the item to be renamed.
+ */
+ type RenameInfo = RenameInfoSuccess | RenameInfoFailure;
+ interface RenameInfoSuccess {
+ /**
+ * True if item can be renamed.
+ */
+ canRename: true;
+ /**
+ * File or directory to rename.
+ * If set, `getEditsForFileRename` should be called instead of `findRenameLocations`.
+ */
+ fileToRename?: string;
+ /**
+ * Display name of the item to be renamed.
+ */
+ displayName: string;
+ /**
+ * Full display name of item to be renamed.
+ */
+ fullDisplayName: string;
+ /**
+ * The items's kind (such as 'className' or 'parameterName' or plain 'text').
+ */
+ kind: ScriptElementKind;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers: string;
+ /** Span of text to rename. */
+ triggerSpan: TextSpan;
+ }
+ interface RenameInfoFailure {
+ canRename: false;
+ /**
+ * Error message if item can not be renamed.
+ */
+ localizedErrorMessage: string;
+ }
+ /**
+ * A group of text spans, all in 'file'.
+ */
+ interface SpanGroup {
+ /** The file to which the spans apply */
+ file: string;
+ /** The text spans in this group */
+ locs: RenameTextSpan[];
+ }
+ interface RenameTextSpan extends TextSpan {
+ readonly prefixText?: string;
+ readonly suffixText?: string;
+ }
+ interface RenameResponseBody {
+ /**
+ * Information about the item to be renamed.
+ */
+ info: RenameInfo;
+ /**
+ * An array of span groups (one per file) that refer to the item to be renamed.
+ */
+ locs: ReadonlyArray<SpanGroup>;
+ }
+ /**
+ * Rename response message.
+ */
+ interface RenameResponse extends Response {
+ body?: RenameResponseBody;
+ }
+ /**
+ * Represents a file in external project.
+ * External project is project whose set of files, compilation options and open\close state
+ * is maintained by the client (i.e. if all this data come from .csproj file in Visual Studio).
+ * External project will exist even if all files in it are closed and should be closed explicitly.
+ * If external project includes one or more tsconfig.json/jsconfig.json files then tsserver will
+ * create configured project for every config file but will maintain a link that these projects were created
+ * as a result of opening external project so they should be removed once external project is closed.
+ */
+ interface ExternalFile {
+ /**
+ * Name of file file
+ */
+ fileName: string;
+ /**
+ * Script kind of the file
+ */
+ scriptKind?: ScriptKindName | ts.ScriptKind;
+ /**
+ * Whether file has mixed content (i.e. .cshtml file that combines html markup with C#/JavaScript)
+ */
+ hasMixedContent?: boolean;
+ /**
+ * Content of the file
+ */
+ content?: string;
+ }
+ /**
+ * Represent an external project
+ */
+ interface ExternalProject {
+ /**
+ * Project name
+ */
+ projectFileName: string;
+ /**
+ * List of root files in project
+ */
+ rootFiles: ExternalFile[];
+ /**
+ * Compiler options for the project
+ */
+ options: ExternalProjectCompilerOptions;
+ /**
+ * @deprecated typingOptions. Use typeAcquisition instead
+ */
+ typingOptions?: TypeAcquisition;
+ /**
+ * Explicitly specified type acquisition for the project
+ */
+ typeAcquisition?: TypeAcquisition;
+ }
+ interface CompileOnSaveMixin {
+ /**
+ * If compile on save is enabled for the project
+ */
+ compileOnSave?: boolean;
+ }
+ /**
+ * For external projects, some of the project settings are sent together with
+ * compiler settings.
+ */
+ type ExternalProjectCompilerOptions = CompilerOptions & CompileOnSaveMixin;
+ /**
+ * Represents a set of changes that happen in project
+ */
+ interface ProjectChanges {
+ /**
+ * List of added files
+ */
+ added: string[];
+ /**
+ * List of removed files
+ */
+ removed: string[];
+ /**
+ * List of updated files
+ */
+ updated: string[];
+ }
+ /**
+ * Information found in a configure request.
+ */
+ interface ConfigureRequestArguments {
+ /**
+ * Information about the host, for example 'Emacs 24.4' or
+ * 'Sublime Text version 3075'
+ */
+ hostInfo?: string;
+ /**
+ * If present, tab settings apply only to this file.
+ */
+ file?: string;
+ /**
+ * The format options to use during formatting and other code editing features.
+ */
+ formatOptions?: FormatCodeSettings;
+ preferences?: UserPreferences;
+ /**
+ * The host's additional supported .js file extensions
+ */
+ extraFileExtensions?: FileExtensionInfo[];
+ }
+ /**
+ * Configure request; value of command field is "configure". Specifies
+ * host information, such as host type, tab size, and indent size.
+ */
+ interface ConfigureRequest extends Request {
+ command: CommandTypes.Configure;
+ arguments: ConfigureRequestArguments;
+ }
+ /**
+ * Response to "configure" request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface ConfigureResponse extends Response {
+ }
+ interface ConfigurePluginRequestArguments {
+ pluginName: string;
+ configuration: any;
+ }
+ interface ConfigurePluginRequest extends Request {
+ command: CommandTypes.ConfigurePlugin;
+ arguments: ConfigurePluginRequestArguments;
+ }
+ /**
+ * Information found in an "open" request.
+ */
+ interface OpenRequestArgs extends FileRequestArgs {
+ /**
+ * Used when a version of the file content is known to be more up to date than the one on disk.
+ * Then the known content will be used upon opening instead of the disk copy
+ */
+ fileContent?: string;
+ /**
+ * Used to specify the script kind of the file explicitly. It could be one of the following:
+ * "TS", "JS", "TSX", "JSX"
+ */
+ scriptKindName?: ScriptKindName;
+ /**
+ * Used to limit the searching for project config file. If given the searching will stop at this
+ * root path; otherwise it will go all the way up to the dist root path.
+ */
+ projectRootPath?: string;
+ }
+ type ScriptKindName = "TS" | "JS" | "TSX" | "JSX";
+ /**
+ * Open request; value of command field is "open". Notify the
+ * server that the client has file open. The server will not
+ * monitor the filesystem for changes in this file and will assume
+ * that the client is updating the server (using the change and/or
+ * reload messages) when the file changes. Server does not currently
+ * send a response to an open request.
+ */
+ interface OpenRequest extends Request {
+ command: CommandTypes.Open;
+ arguments: OpenRequestArgs;
+ }
+ /**
+ * Request to open or update external project
+ */
+ interface OpenExternalProjectRequest extends Request {
+ command: CommandTypes.OpenExternalProject;
+ arguments: OpenExternalProjectArgs;
+ }
+ /**
+ * Arguments to OpenExternalProjectRequest request
+ */
+ type OpenExternalProjectArgs = ExternalProject;
+ /**
+ * Request to open multiple external projects
+ */
+ interface OpenExternalProjectsRequest extends Request {
+ command: CommandTypes.OpenExternalProjects;
+ arguments: OpenExternalProjectsArgs;
+ }
+ /**
+ * Arguments to OpenExternalProjectsRequest
+ */
+ interface OpenExternalProjectsArgs {
+ /**
+ * List of external projects to open or update
+ */
+ projects: ExternalProject[];
+ }
+ /**
+ * Response to OpenExternalProjectRequest request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface OpenExternalProjectResponse extends Response {
+ }
+ /**
+ * Response to OpenExternalProjectsRequest request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface OpenExternalProjectsResponse extends Response {
+ }
+ /**
+ * Request to close external project.
+ */
+ interface CloseExternalProjectRequest extends Request {
+ command: CommandTypes.CloseExternalProject;
+ arguments: CloseExternalProjectRequestArgs;
+ }
+ /**
+ * Arguments to CloseExternalProjectRequest request
+ */
+ interface CloseExternalProjectRequestArgs {
+ /**
+ * Name of the project to close
+ */
+ projectFileName: string;
+ }
+ /**
+ * Response to CloseExternalProjectRequest request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface CloseExternalProjectResponse extends Response {
+ }
+ /**
+ * Request to set compiler options for inferred projects.
+ * External projects are opened / closed explicitly.
+ * Configured projects are opened when user opens loose file that has 'tsconfig.json' or 'jsconfig.json' anywhere in one of containing folders.
+ * This configuration file will be used to obtain a list of files and configuration settings for the project.
+ * Inferred projects are created when user opens a loose file that is not the part of external project
+ * or configured project and will contain only open file and transitive closure of referenced files if 'useOneInferredProject' is false,
+ * or all open loose files and its transitive closure of referenced files if 'useOneInferredProject' is true.
+ */
+ interface SetCompilerOptionsForInferredProjectsRequest extends Request {
+ command: CommandTypes.CompilerOptionsForInferredProjects;
+ arguments: SetCompilerOptionsForInferredProjectsArgs;
+ }
+ /**
+ * Argument for SetCompilerOptionsForInferredProjectsRequest request.
+ */
+ interface SetCompilerOptionsForInferredProjectsArgs {
+ /**
+ * Compiler options to be used with inferred projects.
+ */
+ options: ExternalProjectCompilerOptions;
+ /**
+ * Specifies the project root path used to scope compiler options.
+ * It is an error to provide this property if the server has not been started with
+ * `useInferredProjectPerProjectRoot` enabled.
+ */
+ projectRootPath?: string;
+ }
+ /**
+ * Response to SetCompilerOptionsForInferredProjectsResponse request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface SetCompilerOptionsForInferredProjectsResponse extends Response {
+ }
+ /**
+ * Exit request; value of command field is "exit". Ask the server process
+ * to exit.
+ */
+ interface ExitRequest extends Request {
+ command: CommandTypes.Exit;
+ }
+ /**
+ * Close request; value of command field is "close". Notify the
+ * server that the client has closed a previously open file. If
+ * file is still referenced by open files, the server will resume
+ * monitoring the filesystem for changes to file. Server does not
+ * currently send a response to a close request.
+ */
+ interface CloseRequest extends FileRequest {
+ command: CommandTypes.Close;
+ }
+ /**
+ * Request to obtain the list of files that should be regenerated if target file is recompiled.
+ * NOTE: this us query-only operation and does not generate any output on disk.
+ */
+ interface CompileOnSaveAffectedFileListRequest extends FileRequest {
+ command: CommandTypes.CompileOnSaveAffectedFileList;
+ }
+ /**
+ * Contains a list of files that should be regenerated in a project
+ */
+ interface CompileOnSaveAffectedFileListSingleProject {
+ /**
+ * Project name
+ */
+ projectFileName: string;
+ /**
+ * List of files names that should be recompiled
+ */
+ fileNames: string[];
+ /**
+ * true if project uses outFile or out compiler option
+ */
+ projectUsesOutFile: boolean;
+ }
+ /**
+ * Response for CompileOnSaveAffectedFileListRequest request;
+ */
+ interface CompileOnSaveAffectedFileListResponse extends Response {
+ body: CompileOnSaveAffectedFileListSingleProject[];
+ }
+ /**
+ * Request to recompile the file. All generated outputs (.js, .d.ts or .js.map files) is written on disk.
+ */
+ interface CompileOnSaveEmitFileRequest extends FileRequest {
+ command: CommandTypes.CompileOnSaveEmitFile;
+ arguments: CompileOnSaveEmitFileRequestArgs;
+ }
+ /**
+ * Arguments for CompileOnSaveEmitFileRequest
+ */
+ interface CompileOnSaveEmitFileRequestArgs extends FileRequestArgs {
+ /**
+ * if true - then file should be recompiled even if it does not have any changes.
+ */
+ forced?: boolean;
+ }
+ /**
+ * Quickinfo request; value of command field is
+ * "quickinfo". Return response giving a quick type and
+ * documentation string for the symbol found in file at location
+ * line, col.
+ */
+ interface QuickInfoRequest extends FileLocationRequest {
+ command: CommandTypes.Quickinfo;
+ }
+ /**
+ * Body of QuickInfoResponse.
+ */
+ interface QuickInfoResponseBody {
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName' or plain 'text').
+ */
+ kind: ScriptElementKind;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers: string;
+ /**
+ * Starting file location of symbol.
+ */
+ start: Location;
+ /**
+ * One past last character of symbol.
+ */
+ end: Location;
+ /**
+ * Type and kind of symbol.
+ */
+ displayString: string;
+ /**
+ * Documentation associated with symbol.
+ */
+ documentation: string;
+ /**
+ * JSDoc tags associated with symbol.
+ */
+ tags: JSDocTagInfo[];
+ }
+ /**
+ * Quickinfo response message.
+ */
+ interface QuickInfoResponse extends Response {
+ body?: QuickInfoResponseBody;
+ }
+ /**
+ * Arguments for format messages.
+ */
+ interface FormatRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Last line of range for which to format text in file.
+ */
+ endLine: number;
+ /**
+ * Character offset on last line of range for which to format text in file.
+ */
+ endOffset: number;
+ /**
+ * Format options to be used.
+ */
+ options?: FormatCodeSettings;
+ }
+ /**
+ * Format request; value of command field is "format". Return
+ * response giving zero or more edit instructions. The edit
+ * instructions will be sorted in file order. Applying the edit
+ * instructions in reverse to file will result in correctly
+ * reformatted text.
+ */
+ interface FormatRequest extends FileLocationRequest {
+ command: CommandTypes.Format;
+ arguments: FormatRequestArgs;
+ }
+ /**
+ * Object found in response messages defining an editing
+ * instruction for a span of text in source code. The effect of
+ * this instruction is to replace the text starting at start and
+ * ending one character before end with newText. For an insertion,
+ * the text span is empty. For a deletion, newText is empty.
+ */
+ interface CodeEdit {
+ /**
+ * First character of the text span to edit.
+ */
+ start: Location;
+ /**
+ * One character past last character of the text span to edit.
+ */
+ end: Location;
+ /**
+ * Replace the span defined above with this string (may be
+ * the empty string).
+ */
+ newText: string;
+ }
+ interface FileCodeEdits {
+ fileName: string;
+ textChanges: CodeEdit[];
+ }
+ interface CodeFixResponse extends Response {
+ /** The code actions that are available */
+ body?: CodeFixAction[];
+ }
+ interface CodeAction {
+ /** Description of the code action to display in the UI of the editor */
+ description: string;
+ /** Text changes to apply to each file as part of the code action */
+ changes: FileCodeEdits[];
+ /** A command is an opaque object that should be passed to `ApplyCodeActionCommandRequestArgs` without modification. */
+ commands?: {}[];
+ }
+ interface CombinedCodeActions {
+ changes: ReadonlyArray<FileCodeEdits>;
+ commands?: ReadonlyArray<{}>;
+ }
+ interface CodeFixAction extends CodeAction {
+ /** Short name to identify the fix, for use by telemetry. */
+ fixName: string;
+ /**
+ * If present, one may call 'getCombinedCodeFix' with this fixId.
+ * This may be omitted to indicate that the code fix can't be applied in a group.
+ */
+ fixId?: {};
+ /** Should be present if and only if 'fixId' is. */
+ fixAllDescription?: string;
+ }
+ /**
+ * Format and format on key response message.
+ */
+ interface FormatResponse extends Response {
+ body?: CodeEdit[];
+ }
+ /**
+ * Arguments for format on key messages.
+ */
+ interface FormatOnKeyRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Key pressed (';', '\n', or '}').
+ */
+ key: string;
+ options?: FormatCodeSettings;
+ }
+ /**
+ * Format on key request; value of command field is
+ * "formatonkey". Given file location and key typed (as string),
+ * return response giving zero or more edit instructions. The
+ * edit instructions will be sorted in file order. Applying the
+ * edit instructions in reverse to file will result in correctly
+ * reformatted text.
+ */
+ interface FormatOnKeyRequest extends FileLocationRequest {
+ command: CommandTypes.Formatonkey;
+ arguments: FormatOnKeyRequestArgs;
+ }
+ type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<";
+ /**
+ * Arguments for completions messages.
+ */
+ interface CompletionsRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Optional prefix to apply to possible completions.
+ */
+ prefix?: string;
+ /**
+ * Character that was responsible for triggering completion.
+ * Should be `undefined` if a user manually requested completion.
+ */
+ triggerCharacter?: CompletionsTriggerCharacter;
+ /**
+ * @deprecated Use UserPreferences.includeCompletionsForModuleExports
+ */
+ includeExternalModuleExports?: boolean;
+ /**
+ * @deprecated Use UserPreferences.includeCompletionsWithInsertText
+ */
+ includeInsertTextCompletions?: boolean;
+ }
+ /**
+ * Completions request; value of command field is "completions".
+ * Given a file location (file, line, col) and a prefix (which may
+ * be the empty string), return the possible completions that
+ * begin with prefix.
+ */
+ interface CompletionsRequest extends FileLocationRequest {
+ command: CommandTypes.Completions | CommandTypes.CompletionInfo;
+ arguments: CompletionsRequestArgs;
+ }
+ /**
+ * Arguments for completion details request.
+ */
+ interface CompletionDetailsRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Names of one or more entries for which to obtain details.
+ */
+ entryNames: (string | CompletionEntryIdentifier)[];
+ }
+ interface CompletionEntryIdentifier {
+ name: string;
+ source?: string;
+ }
+ /**
+ * Completion entry details request; value of command field is
+ * "completionEntryDetails". Given a file location (file, line,
+ * col) and an array of completion entry names return more
+ * detailed information for each completion entry.
+ */
+ interface CompletionDetailsRequest extends FileLocationRequest {
+ command: CommandTypes.CompletionDetails;
+ arguments: CompletionDetailsRequestArgs;
+ }
+ /**
+ * Part of a symbol description.
+ */
+ interface SymbolDisplayPart {
+ /**
+ * Text of an item describing the symbol.
+ */
+ text: string;
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName' or plain 'text').
+ */
+ kind: string;
+ }
+ /**
+ * An item found in a completion response.
+ */
+ interface CompletionEntry {
+ /**
+ * The symbol's name.
+ */
+ name: string;
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName').
+ */
+ kind: ScriptElementKind;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers?: string;
+ /**
+ * A string that is used for comparing completion items so that they can be ordered. This
+ * is often the same as the name but may be different in certain circumstances.
+ */
+ sortText: string;
+ /**
+ * Text to insert instead of `name`.
+ * This is used to support bracketed completions; If `name` might be "a-b" but `insertText` would be `["a-b"]`,
+ * coupled with `replacementSpan` to replace a dotted access with a bracket access.
+ */
+ insertText?: string;
+ /**
+ * An optional span that indicates the text to be replaced by this completion item.
+ * If present, this span should be used instead of the default one.
+ * It will be set if the required span differs from the one generated by the default replacement behavior.
+ */
+ replacementSpan?: TextSpan;
+ /**
+ * Indicates whether commiting this completion entry will require additional code actions to be
+ * made to avoid errors. The CompletionEntryDetails will have these actions.
+ */
+ hasAction?: true;
+ /**
+ * Identifier (not necessarily human-readable) identifying where this completion came from.
+ */
+ source?: string;
+ /**
+ * If true, this completion should be highlighted as recommended. There will only be one of these.
+ * This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class.
+ * Then either that enum/class or a namespace containing it will be the recommended symbol.
+ */
+ isRecommended?: true;
+ }
+ /**
+ * Additional completion entry details, available on demand
+ */
+ interface CompletionEntryDetails {
+ /**
+ * The symbol's name.
+ */
+ name: string;
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName').
+ */
+ kind: ScriptElementKind;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers: string;
+ /**
+ * Display parts of the symbol (similar to quick info).
+ */
+ displayParts: SymbolDisplayPart[];
+ /**
+ * Documentation strings for the symbol.
+ */
+ documentation?: SymbolDisplayPart[];
+ /**
+ * JSDoc tags for the symbol.
+ */
+ tags?: JSDocTagInfo[];
+ /**
+ * The associated code actions for this entry
+ */
+ codeActions?: CodeAction[];
+ /**
+ * Human-readable description of the `source` from the CompletionEntry.
+ */
+ source?: SymbolDisplayPart[];
+ }
+ /** @deprecated Prefer CompletionInfoResponse, which supports several top-level fields in addition to the array of entries. */
+ interface CompletionsResponse extends Response {
+ body?: CompletionEntry[];
+ }
+ interface CompletionInfoResponse extends Response {
+ body?: CompletionInfo;
+ }
+ interface CompletionInfo {
+ readonly isGlobalCompletion: boolean;
+ readonly isMemberCompletion: boolean;
+ readonly isNewIdentifierLocation: boolean;
+ readonly entries: ReadonlyArray<CompletionEntry>;
+ }
+ interface CompletionDetailsResponse extends Response {
+ body?: CompletionEntryDetails[];
+ }
+ /**
+ * Signature help information for a single parameter
+ */
+ interface SignatureHelpParameter {
+ /**
+ * The parameter's name
+ */
+ name: string;
+ /**
+ * Documentation of the parameter.
+ */
+ documentation: SymbolDisplayPart[];
+ /**
+ * Display parts of the parameter.
+ */
+ displayParts: SymbolDisplayPart[];
+ /**
+ * Whether the parameter is optional or not.
+ */
+ isOptional: boolean;
+ }
+ /**
+ * Represents a single signature to show in signature help.
+ */
+ interface SignatureHelpItem {
+ /**
+ * Whether the signature accepts a variable number of arguments.
+ */
+ isVariadic: boolean;
+ /**
+ * The prefix display parts.
+ */
+ prefixDisplayParts: SymbolDisplayPart[];
+ /**
+ * The suffix display parts.
+ */
+ suffixDisplayParts: SymbolDisplayPart[];
+ /**
+ * The separator display parts.
+ */
+ separatorDisplayParts: SymbolDisplayPart[];
+ /**
+ * The signature helps items for the parameters.
+ */
+ parameters: SignatureHelpParameter[];
+ /**
+ * The signature's documentation
+ */
+ documentation: SymbolDisplayPart[];
+ /**
+ * The signature's JSDoc tags
+ */
+ tags: JSDocTagInfo[];
+ }
+ /**
+ * Signature help items found in the response of a signature help request.
+ */
+ interface SignatureHelpItems {
+ /**
+ * The signature help items.
+ */
+ items: SignatureHelpItem[];
+ /**
+ * The span for which signature help should appear on a signature
+ */
+ applicableSpan: TextSpan;
+ /**
+ * The item selected in the set of available help items.
+ */
+ selectedItemIndex: number;
+ /**
+ * The argument selected in the set of parameters.
+ */
+ argumentIndex: number;
+ /**
+ * The argument count
+ */
+ argumentCount: number;
+ }
+ type SignatureHelpTriggerCharacter = "," | "(" | "<";
+ type SignatureHelpRetriggerCharacter = SignatureHelpTriggerCharacter | ")";
+ /**
+ * Arguments of a signature help request.
+ */
+ interface SignatureHelpRequestArgs extends FileLocationRequestArgs {
+ /**
+ * Reason why signature help was invoked.
+ * See each individual possible
+ */
+ triggerReason?: SignatureHelpTriggerReason;
+ }
+ type SignatureHelpTriggerReason = SignatureHelpInvokedReason | SignatureHelpCharacterTypedReason | SignatureHelpRetriggeredReason;
+ /**
+ * Signals that the user manually requested signature help.
+ * The language service will unconditionally attempt to provide a result.
+ */
+ interface SignatureHelpInvokedReason {
+ kind: "invoked";
+ triggerCharacter?: undefined;
+ }
+ /**
+ * Signals that the signature help request came from a user typing a character.
+ * Depending on the character and the syntactic context, the request may or may not be served a result.
+ */
+ interface SignatureHelpCharacterTypedReason {
+ kind: "characterTyped";
+ /**
+ * Character that was responsible for triggering signature help.
+ */
+ triggerCharacter: SignatureHelpTriggerCharacter;
+ }
+ /**
+ * Signals that this signature help request came from typing a character or moving the cursor.
+ * This should only occur if a signature help session was already active and the editor needs to see if it should adjust.
+ * The language service will unconditionally attempt to provide a result.
+ * `triggerCharacter` can be `undefined` for a retrigger caused by a cursor move.
+ */
+ interface SignatureHelpRetriggeredReason {
+ kind: "retrigger";
+ /**
+ * Character that was responsible for triggering signature help.
+ */
+ triggerCharacter?: SignatureHelpRetriggerCharacter;
+ }
+ /**
+ * Signature help request; value of command field is "signatureHelp".
+ * Given a file location (file, line, col), return the signature
+ * help.
+ */
+ interface SignatureHelpRequest extends FileLocationRequest {
+ command: CommandTypes.SignatureHelp;
+ arguments: SignatureHelpRequestArgs;
+ }
+ /**
+ * Response object for a SignatureHelpRequest.
+ */
+ interface SignatureHelpResponse extends Response {
+ body?: SignatureHelpItems;
+ }
+ /**
+ * Synchronous request for semantic diagnostics of one file.
+ */
+ interface SemanticDiagnosticsSyncRequest extends FileRequest {
+ command: CommandTypes.SemanticDiagnosticsSync;
+ arguments: SemanticDiagnosticsSyncRequestArgs;
+ }
+ interface SemanticDiagnosticsSyncRequestArgs extends FileRequestArgs {
+ includeLinePosition?: boolean;
+ }
+ /**
+ * Response object for synchronous sematic diagnostics request.
+ */
+ interface SemanticDiagnosticsSyncResponse extends Response {
+ body?: Diagnostic[] | DiagnosticWithLinePosition[];
+ }
+ interface SuggestionDiagnosticsSyncRequest extends FileRequest {
+ command: CommandTypes.SuggestionDiagnosticsSync;
+ arguments: SuggestionDiagnosticsSyncRequestArgs;
+ }
+ type SuggestionDiagnosticsSyncRequestArgs = SemanticDiagnosticsSyncRequestArgs;
+ type SuggestionDiagnosticsSyncResponse = SemanticDiagnosticsSyncResponse;
+ /**
+ * Synchronous request for syntactic diagnostics of one file.
+ */
+ interface SyntacticDiagnosticsSyncRequest extends FileRequest {
+ command: CommandTypes.SyntacticDiagnosticsSync;
+ arguments: SyntacticDiagnosticsSyncRequestArgs;
+ }
+ interface SyntacticDiagnosticsSyncRequestArgs extends FileRequestArgs {
+ includeLinePosition?: boolean;
+ }
+ /**
+ * Response object for synchronous syntactic diagnostics request.
+ */
+ interface SyntacticDiagnosticsSyncResponse extends Response {
+ body?: Diagnostic[] | DiagnosticWithLinePosition[];
+ }
+ /**
+ * Arguments for GeterrForProject request.
+ */
+ interface GeterrForProjectRequestArgs {
+ /**
+ * the file requesting project error list
+ */
+ file: string;
+ /**
+ * Delay in milliseconds to wait before starting to compute
+ * errors for the files in the file list
+ */
+ delay: number;
+ }
+ /**
+ * GeterrForProjectRequest request; value of command field is
+ * "geterrForProject". It works similarly with 'Geterr', only
+ * it request for every file in this project.
+ */
+ interface GeterrForProjectRequest extends Request {
+ command: CommandTypes.GeterrForProject;
+ arguments: GeterrForProjectRequestArgs;
+ }
+ /**
+ * Arguments for geterr messages.
+ */
+ interface GeterrRequestArgs {
+ /**
+ * List of file names for which to compute compiler errors.
+ * The files will be checked in list order.
+ */
+ files: string[];
+ /**
+ * Delay in milliseconds to wait before starting to compute
+ * errors for the files in the file list
+ */
+ delay: number;
+ }
+ /**
+ * Geterr request; value of command field is "geterr". Wait for
+ * delay milliseconds and then, if during the wait no change or
+ * reload messages have arrived for the first file in the files
+ * list, get the syntactic errors for the file, field requests,
+ * and then get the semantic errors for the file. Repeat with a
+ * smaller delay for each subsequent file on the files list. Best
+ * practice for an editor is to send a file list containing each
+ * file that is currently visible, in most-recently-used order.
+ */
+ interface GeterrRequest extends Request {
+ command: CommandTypes.Geterr;
+ arguments: GeterrRequestArgs;
+ }
+ type RequestCompletedEventName = "requestCompleted";
+ /**
+ * Event that is sent when server have finished processing request with specified id.
+ */
+ interface RequestCompletedEvent extends Event {
+ event: RequestCompletedEventName;
+ body: RequestCompletedEventBody;
+ }
+ interface RequestCompletedEventBody {
+ request_seq: number;
+ }
+ /**
+ * Item of diagnostic information found in a DiagnosticEvent message.
+ */
+ interface Diagnostic {
+ /**
+ * Starting file location at which text applies.
+ */
+ start: Location;
+ /**
+ * The last file location at which the text applies.
+ */
+ end: Location;
+ /**
+ * Text of diagnostic message.
+ */
+ text: string;
+ /**
+ * The category of the diagnostic message, e.g. "error", "warning", or "suggestion".
+ */
+ category: string;
+ reportsUnnecessary?: {};
+ /**
+ * Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites
+ */
+ relatedInformation?: DiagnosticRelatedInformation[];
+ /**
+ * The error code of the diagnostic message.
+ */
+ code?: number;
+ /**
+ * The name of the plugin reporting the message.
+ */
+ source?: string;
+ }
+ interface DiagnosticWithFileName extends Diagnostic {
+ /**
+ * Name of the file the diagnostic is in
+ */
+ fileName: string;
+ }
+ /**
+ * Represents additional spans returned with a diagnostic which are relevant to it
+ */
+ interface DiagnosticRelatedInformation {
+ /**
+ * The category of the related information message, e.g. "error", "warning", or "suggestion".
+ */
+ category: string;
+ /**
+ * The code used ot identify the related information
+ */
+ code: number;
+ /**
+ * Text of related or additional information.
+ */
+ message: string;
+ /**
+ * Associated location
+ */
+ span?: FileSpan;
+ }
+ interface DiagnosticEventBody {
+ /**
+ * The file for which diagnostic information is reported.
+ */
+ file: string;
+ /**
+ * An array of diagnostic information items.
+ */
+ diagnostics: Diagnostic[];
+ }
+ type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag";
+ /**
+ * Event message for DiagnosticEventKind event types.
+ * These events provide syntactic and semantic errors for a file.
+ */
+ interface DiagnosticEvent extends Event {
+ body?: DiagnosticEventBody;
+ event: DiagnosticEventKind;
+ }
+ interface ConfigFileDiagnosticEventBody {
+ /**
+ * The file which trigged the searching and error-checking of the config file
+ */
+ triggerFile: string;
+ /**
+ * The name of the found config file.
+ */
+ configFile: string;
+ /**
+ * An arry of diagnostic information items for the found config file.
+ */
+ diagnostics: DiagnosticWithFileName[];
+ }
+ /**
+ * Event message for "configFileDiag" event type.
+ * This event provides errors for a found config file.
+ */
+ interface ConfigFileDiagnosticEvent extends Event {
+ body?: ConfigFileDiagnosticEventBody;
+ event: "configFileDiag";
+ }
+ type ProjectLanguageServiceStateEventName = "projectLanguageServiceState";
+ interface ProjectLanguageServiceStateEvent extends Event {
+ event: ProjectLanguageServiceStateEventName;
+ body?: ProjectLanguageServiceStateEventBody;
+ }
+ interface ProjectLanguageServiceStateEventBody {
+ /**
+ * Project name that has changes in the state of language service.
+ * For configured projects this will be the config file path.
+ * For external projects this will be the name of the projects specified when project was open.
+ * For inferred projects this event is not raised.
+ */
+ projectName: string;
+ /**
+ * True if language service state switched from disabled to enabled
+ * and false otherwise.
+ */
+ languageServiceEnabled: boolean;
+ }
+ type ProjectsUpdatedInBackgroundEventName = "projectsUpdatedInBackground";
+ interface ProjectsUpdatedInBackgroundEvent extends Event {
+ event: ProjectsUpdatedInBackgroundEventName;
+ body: ProjectsUpdatedInBackgroundEventBody;
+ }
+ interface ProjectsUpdatedInBackgroundEventBody {
+ /**
+ * Current set of open files
+ */
+ openFiles: string[];
+ }
+ type ProjectLoadingStartEventName = "projectLoadingStart";
+ interface ProjectLoadingStartEvent extends Event {
+ event: ProjectLoadingStartEventName;
+ body: ProjectLoadingStartEventBody;
+ }
+ interface ProjectLoadingStartEventBody {
+ /** name of the project */
+ projectName: string;
+ /** reason for loading */
+ reason: string;
+ }
+ type ProjectLoadingFinishEventName = "projectLoadingFinish";
+ interface ProjectLoadingFinishEvent extends Event {
+ event: ProjectLoadingFinishEventName;
+ body: ProjectLoadingFinishEventBody;
+ }
+ interface ProjectLoadingFinishEventBody {
+ /** name of the project */
+ projectName: string;
+ }
+ type SurveyReadyEventName = "surveyReady";
+ interface SurveyReadyEvent extends Event {
+ event: SurveyReadyEventName;
+ body: SurveyReadyEventBody;
+ }
+ interface SurveyReadyEventBody {
+ /** Name of the survey. This is an internal machine- and programmer-friendly name */
+ surveyId: string;
+ }
+ type LargeFileReferencedEventName = "largeFileReferenced";
+ interface LargeFileReferencedEvent extends Event {
+ event: LargeFileReferencedEventName;
+ body: LargeFileReferencedEventBody;
+ }
+ interface LargeFileReferencedEventBody {
+ /**
+ * name of the large file being loaded
+ */
+ file: string;
+ /**
+ * size of the file
+ */
+ fileSize: number;
+ /**
+ * max file size allowed on the server
+ */
+ maxFileSize: number;
+ }
+ /**
+ * Arguments for reload request.
+ */
+ interface ReloadRequestArgs extends FileRequestArgs {
+ /**
+ * Name of temporary file from which to reload file
+ * contents. May be same as file.
+ */
+ tmpfile: string;
+ }
+ /**
+ * Reload request message; value of command field is "reload".
+ * Reload contents of file with name given by the 'file' argument
+ * from temporary file with name given by the 'tmpfile' argument.
+ * The two names can be identical.
+ */
+ interface ReloadRequest extends FileRequest {
+ command: CommandTypes.Reload;
+ arguments: ReloadRequestArgs;
+ }
+ /**
+ * Response to "reload" request. This is just an acknowledgement, so
+ * no body field is required.
+ */
+ interface ReloadResponse extends Response {
+ }
+ /**
+ * Arguments for saveto request.
+ */
+ interface SavetoRequestArgs extends FileRequestArgs {
+ /**
+ * Name of temporary file into which to save server's view of
+ * file contents.
+ */
+ tmpfile: string;
+ }
+ /**
+ * Saveto request message; value of command field is "saveto".
+ * For debugging purposes, save to a temporaryfile (named by
+ * argument 'tmpfile') the contents of file named by argument
+ * 'file'. The server does not currently send a response to a
+ * "saveto" request.
+ */
+ interface SavetoRequest extends FileRequest {
+ command: CommandTypes.Saveto;
+ arguments: SavetoRequestArgs;
+ }
+ /**
+ * Arguments for navto request message.
+ */
+ interface NavtoRequestArgs extends FileRequestArgs {
+ /**
+ * Search term to navigate to from current location; term can
+ * be '.*' or an identifier prefix.
+ */
+ searchValue: string;
+ /**
+ * Optional limit on the number of items to return.
+ */
+ maxResultCount?: number;
+ /**
+ * Optional flag to indicate we want results for just the current file
+ * or the entire project.
+ */
+ currentFileOnly?: boolean;
+ projectFileName?: string;
+ }
+ /**
+ * Navto request message; value of command field is "navto".
+ * Return list of objects giving file locations and symbols that
+ * match the search term given in argument 'searchTerm'. The
+ * context for the search is given by the named file.
+ */
+ interface NavtoRequest extends FileRequest {
+ command: CommandTypes.Navto;
+ arguments: NavtoRequestArgs;
+ }
+ /**
+ * An item found in a navto response.
+ */
+ interface NavtoItem extends FileSpan {
+ /**
+ * The symbol's name.
+ */
+ name: string;
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName').
+ */
+ kind: ScriptElementKind;
+ /**
+ * exact, substring, or prefix.
+ */
+ matchKind: string;
+ /**
+ * If this was a case sensitive or insensitive match.
+ */
+ isCaseSensitive: boolean;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers?: string;
+ /**
+ * Name of symbol's container symbol (if any); for example,
+ * the class name if symbol is a class member.
+ */
+ containerName?: string;
+ /**
+ * Kind of symbol's container symbol (if any).
+ */
+ containerKind?: ScriptElementKind;
+ }
+ /**
+ * Navto response message. Body is an array of navto items. Each
+ * item gives a symbol that matched the search term.
+ */
+ interface NavtoResponse extends Response {
+ body?: NavtoItem[];
+ }
+ /**
+ * Arguments for change request message.
+ */
+ interface ChangeRequestArgs extends FormatRequestArgs {
+ /**
+ * Optional string to insert at location (file, line, offset).
+ */
+ insertString?: string;
+ }
+ /**
+ * Change request message; value of command field is "change".
+ * Update the server's view of the file named by argument 'file'.
+ * Server does not currently send a response to a change request.
+ */
+ interface ChangeRequest extends FileLocationRequest {
+ command: CommandTypes.Change;
+ arguments: ChangeRequestArgs;
+ }
+ /**
+ * Response to "brace" request.
+ */
+ interface BraceResponse extends Response {
+ body?: TextSpan[];
+ }
+ /**
+ * Brace matching request; value of command field is "brace".
+ * Return response giving the file locations of matching braces
+ * found in file at location line, offset.
+ */
+ interface BraceRequest extends FileLocationRequest {
+ command: CommandTypes.Brace;
+ }
+ /**
+ * NavBar items request; value of command field is "navbar".
+ * Return response giving the list of navigation bar entries
+ * extracted from the requested file.
+ */
+ interface NavBarRequest extends FileRequest {
+ command: CommandTypes.NavBar;
+ }
+ /**
+ * NavTree request; value of command field is "navtree".
+ * Return response giving the navigation tree of the requested file.
+ */
+ interface NavTreeRequest extends FileRequest {
+ command: CommandTypes.NavTree;
+ }
+ interface NavigationBarItem {
+ /**
+ * The item's display text.
+ */
+ text: string;
+ /**
+ * The symbol's kind (such as 'className' or 'parameterName').
+ */
+ kind: ScriptElementKind;
+ /**
+ * Optional modifiers for the kind (such as 'public').
+ */
+ kindModifiers?: string;
+ /**
+ * The definition locations of the item.
+ */
+ spans: TextSpan[];
+ /**
+ * Optional children.
+ */
+ childItems?: NavigationBarItem[];
+ /**
+ * Number of levels deep this item should appear.
+ */
+ indent: number;
+ }
+ /** protocol.NavigationTree is identical to ts.NavigationTree, except using protocol.TextSpan instead of ts.TextSpan */
+ interface NavigationTree {
+ text: string;
+ kind: ScriptElementKind;
+ kindModifiers: string;
+ spans: TextSpan[];
+ nameSpan: TextSpan | undefined;
+ childItems?: NavigationTree[];
+ }
+ type TelemetryEventName = "telemetry";
+ interface TelemetryEvent extends Event {
+ event: TelemetryEventName;
+ body: TelemetryEventBody;
+ }
+ interface TelemetryEventBody {
+ telemetryEventName: string;
+ payload: any;
+ }
+ type TypesInstallerInitializationFailedEventName = "typesInstallerInitializationFailed";
+ interface TypesInstallerInitializationFailedEvent extends Event {
+ event: TypesInstallerInitializationFailedEventName;
+ body: TypesInstallerInitializationFailedEventBody;
+ }
+ interface TypesInstallerInitializationFailedEventBody {
+ message: string;
+ }
+ type TypingsInstalledTelemetryEventName = "typingsInstalled";
+ interface TypingsInstalledTelemetryEventBody extends TelemetryEventBody {
+ telemetryEventName: TypingsInstalledTelemetryEventName;
+ payload: TypingsInstalledTelemetryEventPayload;
+ }
+ interface TypingsInstalledTelemetryEventPayload {
+ /**
+ * Comma separated list of installed typing packages
+ */
+ installedPackages: string;
+ /**
+ * true if install request succeeded, otherwise - false
+ */
+ installSuccess: boolean;
+ /**
+ * version of typings installer
+ */
+ typingsInstallerVersion: string;
+ }
+ type BeginInstallTypesEventName = "beginInstallTypes";
+ type EndInstallTypesEventName = "endInstallTypes";
+ interface BeginInstallTypesEvent extends Event {
+ event: BeginInstallTypesEventName;
+ body: BeginInstallTypesEventBody;
+ }
+ interface EndInstallTypesEvent extends Event {
+ event: EndInstallTypesEventName;
+ body: EndInstallTypesEventBody;
+ }
+ interface InstallTypesEventBody {
+ /**
+ * correlation id to match begin and end events
+ */
+ eventId: number;
+ /**
+ * list of packages to install
+ */
+ packages: ReadonlyArray<string>;
+ }
+ interface BeginInstallTypesEventBody extends InstallTypesEventBody {
+ }
+ interface EndInstallTypesEventBody extends InstallTypesEventBody {
+ /**
+ * true if installation succeeded, otherwise false
+ */
+ success: boolean;
+ }
+ interface NavBarResponse extends Response {
+ body?: NavigationBarItem[];
+ }
+ interface NavTreeResponse extends Response {
+ body?: NavigationTree;
+ }
+ const enum IndentStyle {
+ None = "None",
+ Block = "Block",
+ Smart = "Smart"
+ }
+ interface EditorSettings {
+ baseIndentSize?: number;
+ indentSize?: number;
+ tabSize?: number;
+ newLineCharacter?: string;
+ convertTabsToSpaces?: boolean;
+ indentStyle?: IndentStyle | ts.IndentStyle;
+ }
+ interface FormatCodeSettings extends EditorSettings {
+ insertSpaceAfterCommaDelimiter?: boolean;
+ insertSpaceAfterSemicolonInForStatements?: boolean;
+ insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+ insertSpaceAfterConstructor?: boolean;
+ insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
+ insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
+ insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
+ insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean;
+ insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean;
+ insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
+ insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
+ insertSpaceAfterTypeAssertion?: boolean;
+ insertSpaceBeforeFunctionParenthesis?: boolean;
+ placeOpenBraceOnNewLineForFunctions?: boolean;
+ placeOpenBraceOnNewLineForControlBlocks?: boolean;
+ insertSpaceBeforeTypeAnnotation?: boolean;
+ }
+ interface UserPreferences {
+ readonly disableSuggestions?: boolean;
+ readonly quotePreference?: "double" | "single";
+ /**
+ * If enabled, TypeScript will search through all external modules' exports and add them to the completions list.
+ * This affects lone identifier completions but not completions on the right hand side of `obj.`.
+ */
+ readonly includeCompletionsForModuleExports?: boolean;
+ /**
+ * If enabled, the completion list will include completions with invalid identifier names.
+ * For those entries, The `insertText` and `replacementSpan` properties will be set to change from `.x` property access to `["x"]`.
+ */
+ readonly includeCompletionsWithInsertText?: boolean;
+ readonly importModuleSpecifierPreference?: "relative" | "non-relative";
+ readonly allowTextChangesInNewFiles?: boolean;
+ readonly lazyConfiguredProjectsFromExternalProject?: boolean;
+ }
+ interface CompilerOptions {
+ allowJs?: boolean;
+ allowSyntheticDefaultImports?: boolean;
+ allowUnreachableCode?: boolean;
+ allowUnusedLabels?: boolean;
+ alwaysStrict?: boolean;
+ baseUrl?: string;
+ charset?: string;
+ checkJs?: boolean;
+ declaration?: boolean;
+ declarationDir?: string;
+ disableSizeLimit?: boolean;
+ downlevelIteration?: boolean;
+ emitBOM?: boolean;
+ emitDecoratorMetadata?: boolean;
+ experimentalDecorators?: boolean;
+ forceConsistentCasingInFileNames?: boolean;
+ importHelpers?: boolean;
+ inlineSourceMap?: boolean;
+ inlineSources?: boolean;
+ isolatedModules?: boolean;
+ jsx?: JsxEmit | ts.JsxEmit;
+ lib?: string[];
+ locale?: string;
+ mapRoot?: string;
+ maxNodeModuleJsDepth?: number;
+ module?: ModuleKind | ts.ModuleKind;
+ moduleResolution?: ModuleResolutionKind | ts.ModuleResolutionKind;
+ newLine?: NewLineKind | ts.NewLineKind;
+ noEmit?: boolean;
+ noEmitHelpers?: boolean;
+ noEmitOnError?: boolean;
+ noErrorTruncation?: boolean;
+ noFallthroughCasesInSwitch?: boolean;
+ noImplicitAny?: boolean;
+ noImplicitReturns?: boolean;
+ noImplicitThis?: boolean;
+ noUnusedLocals?: boolean;
+ noUnusedParameters?: boolean;
+ noImplicitUseStrict?: boolean;
+ noLib?: boolean;
+ noResolve?: boolean;
+ out?: string;
+ outDir?: string;
+ outFile?: string;
+ paths?: MapLike<string[]>;
+ plugins?: PluginImport[];
+ preserveConstEnums?: boolean;
+ preserveSymlinks?: boolean;
+ project?: string;
+ reactNamespace?: string;
+ removeComments?: boolean;
+ references?: ProjectReference[];
+ rootDir?: string;
+ rootDirs?: string[];
+ skipLibCheck?: boolean;
+ skipDefaultLibCheck?: boolean;
+ sourceMap?: boolean;
+ sourceRoot?: string;
+ strict?: boolean;
+ strictNullChecks?: boolean;
+ suppressExcessPropertyErrors?: boolean;
+ suppressImplicitAnyIndexErrors?: boolean;
+ target?: ScriptTarget | ts.ScriptTarget;
+ traceResolution?: boolean;
+ resolveJsonModule?: boolean;
+ types?: string[];
+ /** Paths used to used to compute primary types search locations */
+ typeRoots?: string[];
+ [option: string]: CompilerOptionsValue | undefined;
+ }
+ const enum JsxEmit {
+ None = "None",
+ Preserve = "Preserve",
+ ReactNative = "ReactNative",
+ React = "React"
+ }
+ const enum ModuleKind {
+ None = "None",
+ CommonJS = "CommonJS",
+ AMD = "AMD",
+ UMD = "UMD",
+ System = "System",
+ ES6 = "ES6",
+ ES2015 = "ES2015",
+ ESNext = "ESNext"
+ }
+ const enum ModuleResolutionKind {
+ Classic = "Classic",
+ Node = "Node"
+ }
+ const enum NewLineKind {
+ Crlf = "Crlf",
+ Lf = "Lf"
+ }
+ const enum ScriptTarget {
+ ES3 = "ES3",
+ ES5 = "ES5",
+ ES6 = "ES6",
+ ES2015 = "ES2015",
+ ES2016 = "ES2016",
+ ES2017 = "ES2017",
+ ESNext = "ESNext"
+ }
+}
+declare namespace ts.server.protocol { + + interface TextInsertion { + newText: string; + /** The position in newText the caret should point to after the insertion. */ + caretOffset: number; + } + + interface TodoCommentDescriptor { + text: string; + priority: number; + } + + interface TodoComment { + descriptor: TodoCommentDescriptor; + message: string; + position: number; + } + + enum OutliningSpanKind { + /** Single or multi-line comments */ + Comment = "comment", + /** Sections marked by '// #region' and '// #endregion' comments */ + Region = "region", + /** Declarations and expressions */ + Code = "code", + /** Contiguous blocks of import declarations */ + Imports = "imports" + } + + enum HighlightSpanKind { + none = "none", + definition = "definition", + reference = "reference", + writtenReference = "writtenReference" + } + + enum ScriptElementKind { + unknown = "", + warning = "warning", + /** predefined type (void) or keyword (class) */ + keyword = "keyword", + /** top level script node */ + scriptElement = "script", + /** module foo {} */ + moduleElement = "module", + /** class X {} */ + classElement = "class", + /** var x = class X {} */ + localClassElement = "local class", + /** interface Y {} */ + interfaceElement = "interface", + /** type T = ... */ + typeElement = "type", + /** enum E */ + enumElement = "enum", + enumMemberElement = "enum member", + /** + * Inside module and script only + * const v = .. + */ + variableElement = "var", + /** Inside function */ + localVariableElement = "local var", + /** + * Inside module and script only + * function f() { } + */ + functionElement = "function", + /** Inside function */ + localFunctionElement = "local function", + /** class X { [public|private]* foo() {} } */ + memberFunctionElement = "method", + /** class X { [public|private]* [get|set] foo:number; } */ + memberGetAccessorElement = "getter", + memberSetAccessorElement = "setter", + /** + * class X { [public|private]* foo:number; } + * interface Y { foo:number; } + */ + memberVariableElement = "property", + /** class X { constructor() { } } */ + constructorImplementationElement = "constructor", + /** interface Y { ():number; } */ + callSignatureElement = "call", + /** interface Y { []:number; } */ + indexSignatureElement = "index", + /** interface Y { new():Y; } */ + constructSignatureElement = "construct", + /** function foo(*Y*: string) */ + parameterElement = "parameter", + typeParameterElement = "type parameter", + primitiveType = "primitive type", + label = "label", + alias = "alias", + constElement = "const", + letElement = "let", + directory = "directory", + externalModuleName = "external module name", + /** + * <JsxTagName attribute1 attribute2={0} /> + */ + jsxAttribute = "JSX attribute", + /** String literal */ + string = "string" + } + + interface TypeAcquisition { + enableAutoDiscovery?: boolean; + enable?: boolean; + include?: string[]; + exclude?: string[]; + [option: string]: string[] | boolean | undefined; + } + + interface FileExtensionInfo { + extension: string; + isMixedContent: boolean; + scriptKind?: ScriptKind; + } + + interface JSDocTagInfo { + name: string; + text?: string; + } + + /** + * Type of objects whose values are all of the same type. + * The `in` and `for-in` operators can *not* be safely used, + * since `Object.prototype` may be modified by outside code. + */ + interface MapLike<T> { + [index: string]: T; + } + + interface PluginImport { + name: string; + } + + interface ProjectReference { + /** A normalized path on disk */ + path: string; + /** The path as the user originally wrote it */ + originalPath?: string; + /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ + prepend?: boolean; + /** True if it is intended that this reference form a circularity */ + circular?: boolean; + } + + type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined; +} +declare namespace ts { + // these types are empty stubs for types from services and should not be used directly + export type ScriptKind = never; + export type IndentStyle = never; + export type JsxEmit = never; + export type ModuleKind = never; + export type ModuleResolutionKind = never; + export type NewLineKind = never; + export type ScriptTarget = never; +} +import protocol = ts.server.protocol; +export = protocol; +export as namespace protocol;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/tsserverlibrary.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/tsserverlibrary.d.ts new file mode 100644 index 0000000..e67f6d3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/tsserverlibrary.d.ts @@ -0,0 +1,8943 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +declare namespace ts { + const versionMajorMinor = "3.2"; + /** The version of the TypeScript compiler release */ + const version: string; +} +declare namespace ts { + /** + * Type of objects whose values are all of the same type. + * The `in` and `for-in` operators can *not* be safely used, + * since `Object.prototype` may be modified by outside code. + */ + interface MapLike<T> { + [index: string]: T; + } + interface SortedReadonlyArray<T> extends ReadonlyArray<T> { + " __sortedArrayBrand": any; + } + interface SortedArray<T> extends Array<T> { + " __sortedArrayBrand": any; + } + /** ES6 Map interface, only read methods included. */ + interface ReadonlyMap<T> { + get(key: string): T | undefined; + has(key: string): boolean; + forEach(action: (value: T, key: string) => void): void; + readonly size: number; + keys(): Iterator<string>; + values(): Iterator<T>; + entries(): Iterator<[string, T]>; + } + /** ES6 Map interface. */ + interface Map<T> extends ReadonlyMap<T> { + set(key: string, value: T): this; + delete(key: string): boolean; + clear(): void; + } + /** ES6 Iterator type. */ + interface Iterator<T> { + next(): { + value: T; + done: false; + } | { + value: never; + done: true; + }; + } + /** Array that is only intended to be pushed to, never read. */ + interface Push<T> { + push(...values: T[]): void; + } +} +declare namespace ts { + type Path = string & { + __pathBrand: any; + }; + interface TextRange { + pos: number; + end: number; + } + type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind; + type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; + type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; + enum SyntaxKind { + Unknown = 0, + EndOfFileToken = 1, + SingleLineCommentTrivia = 2, + MultiLineCommentTrivia = 3, + NewLineTrivia = 4, + WhitespaceTrivia = 5, + ShebangTrivia = 6, + ConflictMarkerTrivia = 7, + NumericLiteral = 8, + BigIntLiteral = 9, + StringLiteral = 10, + JsxText = 11, + JsxTextAllWhiteSpaces = 12, + RegularExpressionLiteral = 13, + NoSubstitutionTemplateLiteral = 14, + TemplateHead = 15, + TemplateMiddle = 16, + TemplateTail = 17, + OpenBraceToken = 18, + CloseBraceToken = 19, + OpenParenToken = 20, + CloseParenToken = 21, + OpenBracketToken = 22, + CloseBracketToken = 23, + DotToken = 24, + DotDotDotToken = 25, + SemicolonToken = 26, + CommaToken = 27, + LessThanToken = 28, + LessThanSlashToken = 29, + GreaterThanToken = 30, + LessThanEqualsToken = 31, + GreaterThanEqualsToken = 32, + EqualsEqualsToken = 33, + ExclamationEqualsToken = 34, + EqualsEqualsEqualsToken = 35, + ExclamationEqualsEqualsToken = 36, + EqualsGreaterThanToken = 37, + PlusToken = 38, + MinusToken = 39, + AsteriskToken = 40, + AsteriskAsteriskToken = 41, + SlashToken = 42, + PercentToken = 43, + PlusPlusToken = 44, + MinusMinusToken = 45, + LessThanLessThanToken = 46, + GreaterThanGreaterThanToken = 47, + GreaterThanGreaterThanGreaterThanToken = 48, + AmpersandToken = 49, + BarToken = 50, + CaretToken = 51, + ExclamationToken = 52, + TildeToken = 53, + AmpersandAmpersandToken = 54, + BarBarToken = 55, + QuestionToken = 56, + ColonToken = 57, + AtToken = 58, + EqualsToken = 59, + PlusEqualsToken = 60, + MinusEqualsToken = 61, + AsteriskEqualsToken = 62, + AsteriskAsteriskEqualsToken = 63, + SlashEqualsToken = 64, + PercentEqualsToken = 65, + LessThanLessThanEqualsToken = 66, + GreaterThanGreaterThanEqualsToken = 67, + GreaterThanGreaterThanGreaterThanEqualsToken = 68, + AmpersandEqualsToken = 69, + BarEqualsToken = 70, + CaretEqualsToken = 71, + Identifier = 72, + BreakKeyword = 73, + CaseKeyword = 74, + CatchKeyword = 75, + ClassKeyword = 76, + ConstKeyword = 77, + ContinueKeyword = 78, + DebuggerKeyword = 79, + DefaultKeyword = 80, + DeleteKeyword = 81, + DoKeyword = 82, + ElseKeyword = 83, + EnumKeyword = 84, + ExportKeyword = 85, + ExtendsKeyword = 86, + FalseKeyword = 87, + FinallyKeyword = 88, + ForKeyword = 89, + FunctionKeyword = 90, + IfKeyword = 91, + ImportKeyword = 92, + InKeyword = 93, + InstanceOfKeyword = 94, + NewKeyword = 95, + NullKeyword = 96, + ReturnKeyword = 97, + SuperKeyword = 98, + SwitchKeyword = 99, + ThisKeyword = 100, + ThrowKeyword = 101, + TrueKeyword = 102, + TryKeyword = 103, + TypeOfKeyword = 104, + VarKeyword = 105, + VoidKeyword = 106, + WhileKeyword = 107, + WithKeyword = 108, + ImplementsKeyword = 109, + InterfaceKeyword = 110, + LetKeyword = 111, + PackageKeyword = 112, + PrivateKeyword = 113, + ProtectedKeyword = 114, + PublicKeyword = 115, + StaticKeyword = 116, + YieldKeyword = 117, + AbstractKeyword = 118, + AsKeyword = 119, + AnyKeyword = 120, + AsyncKeyword = 121, + AwaitKeyword = 122, + BooleanKeyword = 123, + ConstructorKeyword = 124, + DeclareKeyword = 125, + GetKeyword = 126, + InferKeyword = 127, + IsKeyword = 128, + KeyOfKeyword = 129, + ModuleKeyword = 130, + NamespaceKeyword = 131, + NeverKeyword = 132, + ReadonlyKeyword = 133, + RequireKeyword = 134, + NumberKeyword = 135, + ObjectKeyword = 136, + SetKeyword = 137, + StringKeyword = 138, + SymbolKeyword = 139, + TypeKeyword = 140, + UndefinedKeyword = 141, + UniqueKeyword = 142, + UnknownKeyword = 143, + FromKeyword = 144, + GlobalKeyword = 145, + BigIntKeyword = 146, + OfKeyword = 147, + QualifiedName = 148, + ComputedPropertyName = 149, + TypeParameter = 150, + Parameter = 151, + Decorator = 152, + PropertySignature = 153, + PropertyDeclaration = 154, + MethodSignature = 155, + MethodDeclaration = 156, + Constructor = 157, + GetAccessor = 158, + SetAccessor = 159, + CallSignature = 160, + ConstructSignature = 161, + IndexSignature = 162, + TypePredicate = 163, + TypeReference = 164, + FunctionType = 165, + ConstructorType = 166, + TypeQuery = 167, + TypeLiteral = 168, + ArrayType = 169, + TupleType = 170, + OptionalType = 171, + RestType = 172, + UnionType = 173, + IntersectionType = 174, + ConditionalType = 175, + InferType = 176, + ParenthesizedType = 177, + ThisType = 178, + TypeOperator = 179, + IndexedAccessType = 180, + MappedType = 181, + LiteralType = 182, + ImportType = 183, + ObjectBindingPattern = 184, + ArrayBindingPattern = 185, + BindingElement = 186, + ArrayLiteralExpression = 187, + ObjectLiteralExpression = 188, + PropertyAccessExpression = 189, + ElementAccessExpression = 190, + CallExpression = 191, + NewExpression = 192, + TaggedTemplateExpression = 193, + TypeAssertionExpression = 194, + ParenthesizedExpression = 195, + FunctionExpression = 196, + ArrowFunction = 197, + DeleteExpression = 198, + TypeOfExpression = 199, + VoidExpression = 200, + AwaitExpression = 201, + PrefixUnaryExpression = 202, + PostfixUnaryExpression = 203, + BinaryExpression = 204, + ConditionalExpression = 205, + TemplateExpression = 206, + YieldExpression = 207, + SpreadElement = 208, + ClassExpression = 209, + OmittedExpression = 210, + ExpressionWithTypeArguments = 211, + AsExpression = 212, + NonNullExpression = 213, + MetaProperty = 214, + SyntheticExpression = 215, + TemplateSpan = 216, + SemicolonClassElement = 217, + Block = 218, + VariableStatement = 219, + EmptyStatement = 220, + ExpressionStatement = 221, + IfStatement = 222, + DoStatement = 223, + WhileStatement = 224, + ForStatement = 225, + ForInStatement = 226, + ForOfStatement = 227, + ContinueStatement = 228, + BreakStatement = 229, + ReturnStatement = 230, + WithStatement = 231, + SwitchStatement = 232, + LabeledStatement = 233, + ThrowStatement = 234, + TryStatement = 235, + DebuggerStatement = 236, + VariableDeclaration = 237, + VariableDeclarationList = 238, + FunctionDeclaration = 239, + ClassDeclaration = 240, + InterfaceDeclaration = 241, + TypeAliasDeclaration = 242, + EnumDeclaration = 243, + ModuleDeclaration = 244, + ModuleBlock = 245, + CaseBlock = 246, + NamespaceExportDeclaration = 247, + ImportEqualsDeclaration = 248, + ImportDeclaration = 249, + ImportClause = 250, + NamespaceImport = 251, + NamedImports = 252, + ImportSpecifier = 253, + ExportAssignment = 254, + ExportDeclaration = 255, + NamedExports = 256, + ExportSpecifier = 257, + MissingDeclaration = 258, + ExternalModuleReference = 259, + JsxElement = 260, + JsxSelfClosingElement = 261, + JsxOpeningElement = 262, + JsxClosingElement = 263, + JsxFragment = 264, + JsxOpeningFragment = 265, + JsxClosingFragment = 266, + JsxAttribute = 267, + JsxAttributes = 268, + JsxSpreadAttribute = 269, + JsxExpression = 270, + CaseClause = 271, + DefaultClause = 272, + HeritageClause = 273, + CatchClause = 274, + PropertyAssignment = 275, + ShorthandPropertyAssignment = 276, + SpreadAssignment = 277, + EnumMember = 278, + SourceFile = 279, + Bundle = 280, + UnparsedSource = 281, + InputFiles = 282, + JSDocTypeExpression = 283, + JSDocAllType = 284, + JSDocUnknownType = 285, + JSDocNullableType = 286, + JSDocNonNullableType = 287, + JSDocOptionalType = 288, + JSDocFunctionType = 289, + JSDocVariadicType = 290, + JSDocComment = 291, + JSDocTypeLiteral = 292, + JSDocSignature = 293, + JSDocTag = 294, + JSDocAugmentsTag = 295, + JSDocClassTag = 296, + JSDocCallbackTag = 297, + JSDocEnumTag = 298, + JSDocParameterTag = 299, + JSDocReturnTag = 300, + JSDocThisTag = 301, + JSDocTypeTag = 302, + JSDocTemplateTag = 303, + JSDocTypedefTag = 304, + JSDocPropertyTag = 305, + SyntaxList = 306, + NotEmittedStatement = 307, + PartiallyEmittedExpression = 308, + CommaListExpression = 309, + MergeDeclarationMarker = 310, + EndOfDeclarationMarker = 311, + Count = 312, + FirstAssignment = 59, + LastAssignment = 71, + FirstCompoundAssignment = 60, + LastCompoundAssignment = 71, + FirstReservedWord = 73, + LastReservedWord = 108, + FirstKeyword = 73, + LastKeyword = 147, + FirstFutureReservedWord = 109, + LastFutureReservedWord = 117, + FirstTypeNode = 163, + LastTypeNode = 183, + FirstPunctuation = 18, + LastPunctuation = 71, + FirstToken = 0, + LastToken = 147, + FirstTriviaToken = 2, + LastTriviaToken = 7, + FirstLiteralToken = 8, + LastLiteralToken = 14, + FirstTemplateToken = 14, + LastTemplateToken = 17, + FirstBinaryOperator = 28, + LastBinaryOperator = 71, + FirstNode = 148, + FirstJSDocNode = 283, + LastJSDocNode = 305, + FirstJSDocTagNode = 294, + LastJSDocTagNode = 305 + } + enum NodeFlags { + None = 0, + Let = 1, + Const = 2, + NestedNamespace = 4, + Synthesized = 8, + Namespace = 16, + ExportContext = 32, + ContainsThis = 64, + HasImplicitReturn = 128, + HasExplicitReturn = 256, + GlobalAugmentation = 512, + HasAsyncFunctions = 1024, + DisallowInContext = 2048, + YieldContext = 4096, + DecoratorContext = 8192, + AwaitContext = 16384, + ThisNodeHasError = 32768, + JavaScriptFile = 65536, + ThisNodeOrAnySubNodesHasError = 131072, + HasAggregatedChildData = 262144, + JSDoc = 2097152, + JsonFile = 16777216, + BlockScoped = 3, + ReachabilityCheckFlags = 384, + ReachabilityAndEmitFlags = 1408, + ContextFlags = 12679168, + TypeExcludesFlags = 20480 + } + enum ModifierFlags { + None = 0, + Export = 1, + Ambient = 2, + Public = 4, + Private = 8, + Protected = 16, + Static = 32, + Readonly = 64, + Abstract = 128, + Async = 256, + Default = 512, + Const = 2048, + HasComputedFlags = 536870912, + AccessibilityModifier = 28, + ParameterPropertyModifier = 92, + NonPublicAccessibilityModifier = 24, + TypeScriptModifier = 2270, + ExportDefault = 513, + All = 3071 + } + enum JsxFlags { + None = 0, + /** An element from a named property of the JSX.IntrinsicElements interface */ + IntrinsicNamedElement = 1, + /** An element inferred from the string index signature of the JSX.IntrinsicElements interface */ + IntrinsicIndexedElement = 2, + IntrinsicElement = 3 + } + interface Node extends TextRange { + kind: SyntaxKind; + flags: NodeFlags; + decorators?: NodeArray<Decorator>; + modifiers?: ModifiersArray; + parent: Node; + } + interface JSDocContainer { + } + type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | EndOfFileToken; + type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType; + type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute; + type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertySignature | PropertyDeclaration | PropertyAssignment | EnumMember; + interface NodeArray<T extends Node> extends ReadonlyArray<T>, TextRange { + hasTrailingComma?: boolean; + } + interface Token<TKind extends SyntaxKind> extends Node { + kind: TKind; + } + type DotDotDotToken = Token<SyntaxKind.DotDotDotToken>; + type QuestionToken = Token<SyntaxKind.QuestionToken>; + type ExclamationToken = Token<SyntaxKind.ExclamationToken>; + type ColonToken = Token<SyntaxKind.ColonToken>; + type EqualsToken = Token<SyntaxKind.EqualsToken>; + type AsteriskToken = Token<SyntaxKind.AsteriskToken>; + type EqualsGreaterThanToken = Token<SyntaxKind.EqualsGreaterThanToken>; + type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; + type ReadonlyToken = Token<SyntaxKind.ReadonlyKeyword>; + type AwaitKeywordToken = Token<SyntaxKind.AwaitKeyword>; + type PlusToken = Token<SyntaxKind.PlusToken>; + type MinusToken = Token<SyntaxKind.MinusToken>; + type Modifier = Token<SyntaxKind.AbstractKeyword> | Token<SyntaxKind.AsyncKeyword> | Token<SyntaxKind.ConstKeyword> | Token<SyntaxKind.DeclareKeyword> | Token<SyntaxKind.DefaultKeyword> | Token<SyntaxKind.ExportKeyword> | Token<SyntaxKind.PublicKeyword> | Token<SyntaxKind.PrivateKeyword> | Token<SyntaxKind.ProtectedKeyword> | Token<SyntaxKind.ReadonlyKeyword> | Token<SyntaxKind.StaticKeyword>; + type ModifiersArray = NodeArray<Modifier>; + interface Identifier extends PrimaryExpression, Declaration { + kind: SyntaxKind.Identifier; + /** + * Prefer to use `id.unescapedText`. (Note: This is available only in services, not internally to the TypeScript compiler.) + * Text of identifier, but if the identifier begins with two underscores, this will begin with three. + */ + escapedText: __String; + originalKeywordKind?: SyntaxKind; + isInJSDocNamespace?: boolean; + } + interface TransientIdentifier extends Identifier { + resolvedSymbol: Symbol; + } + interface QualifiedName extends Node { + kind: SyntaxKind.QualifiedName; + left: EntityName; + right: Identifier; + } + type EntityName = Identifier | QualifiedName; + type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName; + type DeclarationName = Identifier | StringLiteralLike | NumericLiteral | ComputedPropertyName | BindingPattern; + interface Declaration extends Node { + _declarationBrand: any; + } + interface NamedDeclaration extends Declaration { + name?: DeclarationName; + } + interface DeclarationStatement extends NamedDeclaration, Statement { + name?: Identifier | StringLiteral | NumericLiteral; + } + interface ComputedPropertyName extends Node { + parent: Declaration; + kind: SyntaxKind.ComputedPropertyName; + expression: Expression; + } + interface Decorator extends Node { + kind: SyntaxKind.Decorator; + parent: NamedDeclaration; + expression: LeftHandSideExpression; + } + interface TypeParameterDeclaration extends NamedDeclaration { + kind: SyntaxKind.TypeParameter; + parent: DeclarationWithTypeParameterChildren | InferTypeNode; + name: Identifier; + /** Note: Consider calling `getEffectiveConstraintOfTypeParameter` */ + constraint?: TypeNode; + default?: TypeNode; + expression?: Expression; + } + interface SignatureDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SignatureDeclaration["kind"]; + name?: PropertyName; + typeParameters?: NodeArray<TypeParameterDeclaration>; + parameters: NodeArray<ParameterDeclaration>; + type?: TypeNode; + } + type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction; + interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.CallSignature; + } + interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.ConstructSignature; + } + type BindingName = Identifier | BindingPattern; + interface VariableDeclaration extends NamedDeclaration { + kind: SyntaxKind.VariableDeclaration; + parent: VariableDeclarationList | CatchClause; + name: BindingName; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface VariableDeclarationList extends Node { + kind: SyntaxKind.VariableDeclarationList; + parent: VariableStatement | ForStatement | ForOfStatement | ForInStatement; + declarations: NodeArray<VariableDeclaration>; + } + interface ParameterDeclaration extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.Parameter; + parent: SignatureDeclaration; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface BindingElement extends NamedDeclaration { + kind: SyntaxKind.BindingElement; + parent: BindingPattern; + propertyName?: PropertyName; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + initializer?: Expression; + } + interface PropertySignature extends TypeElement, JSDocContainer { + kind: SyntaxKind.PropertySignature; + name: PropertyName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface PropertyDeclaration extends ClassElement, JSDocContainer { + kind: SyntaxKind.PropertyDeclaration; + parent: ClassLikeDeclaration; + name: PropertyName; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface ObjectLiteralElement extends NamedDeclaration { + _objectLiteralBrandBrand: any; + name?: PropertyName; + } + /** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */ + type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | MethodDeclaration | AccessorDeclaration; + interface PropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.PropertyAssignment; + name: PropertyName; + questionToken?: QuestionToken; + initializer: Expression; + } + interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.ShorthandPropertyAssignment; + name: Identifier; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + equalsToken?: Token<SyntaxKind.EqualsToken>; + objectAssignmentInitializer?: Expression; + } + interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.SpreadAssignment; + expression: Expression; + } + type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag; + interface PropertyLikeDeclaration extends NamedDeclaration { + name: PropertyName; + } + interface ObjectBindingPattern extends Node { + kind: SyntaxKind.ObjectBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<BindingElement>; + } + interface ArrayBindingPattern extends Node { + kind: SyntaxKind.ArrayBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<ArrayBindingElement>; + } + type BindingPattern = ObjectBindingPattern | ArrayBindingPattern; + type ArrayBindingElement = BindingElement | OmittedExpression; + /** + * Several node kinds share function-like features such as a signature, + * a name, and a body. These nodes should extend FunctionLikeDeclarationBase. + * Examples: + * - FunctionDeclaration + * - MethodDeclaration + * - AccessorDeclaration + */ + interface FunctionLikeDeclarationBase extends SignatureDeclarationBase { + _functionLikeDeclarationBrand: any; + asteriskToken?: AsteriskToken; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + body?: Block | Expression; + } + type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction; + /** @deprecated Use SignatureDeclaration */ + type FunctionLike = SignatureDeclaration; + interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.FunctionDeclaration; + name?: Identifier; + body?: FunctionBody; + } + interface MethodSignature extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.MethodSignature; + parent: ObjectTypeDeclaration; + name: PropertyName; + } + interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.MethodDeclaration; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer { + kind: SyntaxKind.Constructor; + parent: ClassLikeDeclaration; + body?: FunctionBody; + } + /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */ + interface SemicolonClassElement extends ClassElement { + kind: SyntaxKind.SemicolonClassElement; + parent: ClassLikeDeclaration; + } + interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.GetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.SetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration; + interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement { + kind: SyntaxKind.IndexSignature; + parent: ObjectTypeDeclaration; + } + interface TypeNode extends Node { + _typeNodeBrand: any; + } + interface KeywordTypeNode extends TypeNode { + kind: SyntaxKind.AnyKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.NumberKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.VoidKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.NullKeyword | SyntaxKind.NeverKeyword; + } + interface ImportTypeNode extends NodeWithTypeArguments { + kind: SyntaxKind.ImportType; + isTypeOf?: boolean; + argument: TypeNode; + qualifier?: EntityName; + } + interface ThisTypeNode extends TypeNode { + kind: SyntaxKind.ThisType; + } + type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode; + interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase { + kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType; + type: TypeNode; + } + interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.FunctionType; + } + interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.ConstructorType; + } + interface NodeWithTypeArguments extends TypeNode { + typeArguments?: NodeArray<TypeNode>; + } + type TypeReferenceType = TypeReferenceNode | ExpressionWithTypeArguments; + interface TypeReferenceNode extends NodeWithTypeArguments { + kind: SyntaxKind.TypeReference; + typeName: EntityName; + } + interface TypePredicateNode extends TypeNode { + kind: SyntaxKind.TypePredicate; + parent: SignatureDeclaration | JSDocTypeExpression; + parameterName: Identifier | ThisTypeNode; + type: TypeNode; + } + interface TypeQueryNode extends TypeNode { + kind: SyntaxKind.TypeQuery; + exprName: EntityName; + } + interface TypeLiteralNode extends TypeNode, Declaration { + kind: SyntaxKind.TypeLiteral; + members: NodeArray<TypeElement>; + } + interface ArrayTypeNode extends TypeNode { + kind: SyntaxKind.ArrayType; + elementType: TypeNode; + } + interface TupleTypeNode extends TypeNode { + kind: SyntaxKind.TupleType; + elementTypes: NodeArray<TypeNode>; + } + interface OptionalTypeNode extends TypeNode { + kind: SyntaxKind.OptionalType; + type: TypeNode; + } + interface RestTypeNode extends TypeNode { + kind: SyntaxKind.RestType; + type: TypeNode; + } + type UnionOrIntersectionTypeNode = UnionTypeNode | IntersectionTypeNode; + interface UnionTypeNode extends TypeNode { + kind: SyntaxKind.UnionType; + types: NodeArray<TypeNode>; + } + interface IntersectionTypeNode extends TypeNode { + kind: SyntaxKind.IntersectionType; + types: NodeArray<TypeNode>; + } + interface ConditionalTypeNode extends TypeNode { + kind: SyntaxKind.ConditionalType; + checkType: TypeNode; + extendsType: TypeNode; + trueType: TypeNode; + falseType: TypeNode; + } + interface InferTypeNode extends TypeNode { + kind: SyntaxKind.InferType; + typeParameter: TypeParameterDeclaration; + } + interface ParenthesizedTypeNode extends TypeNode { + kind: SyntaxKind.ParenthesizedType; + type: TypeNode; + } + interface TypeOperatorNode extends TypeNode { + kind: SyntaxKind.TypeOperator; + operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword; + type: TypeNode; + } + interface IndexedAccessTypeNode extends TypeNode { + kind: SyntaxKind.IndexedAccessType; + objectType: TypeNode; + indexType: TypeNode; + } + interface MappedTypeNode extends TypeNode, Declaration { + kind: SyntaxKind.MappedType; + readonlyToken?: ReadonlyToken | PlusToken | MinusToken; + typeParameter: TypeParameterDeclaration; + questionToken?: QuestionToken | PlusToken | MinusToken; + type?: TypeNode; + } + interface LiteralTypeNode extends TypeNode { + kind: SyntaxKind.LiteralType; + literal: BooleanLiteral | LiteralExpression | PrefixUnaryExpression; + } + interface StringLiteral extends LiteralExpression { + kind: SyntaxKind.StringLiteral; + } + type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral; + interface Expression extends Node { + _expressionBrand: any; + } + interface OmittedExpression extends Expression { + kind: SyntaxKind.OmittedExpression; + } + interface PartiallyEmittedExpression extends LeftHandSideExpression { + kind: SyntaxKind.PartiallyEmittedExpression; + expression: Expression; + } + interface UnaryExpression extends Expression { + _unaryExpressionBrand: any; + } + /** Deprecated, please use UpdateExpression */ + type IncrementExpression = UpdateExpression; + interface UpdateExpression extends UnaryExpression { + _updateExpressionBrand: any; + } + type PrefixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.TildeToken | SyntaxKind.ExclamationToken; + interface PrefixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: PrefixUnaryOperator; + operand: UnaryExpression; + } + type PostfixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken; + interface PostfixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PostfixUnaryExpression; + operand: LeftHandSideExpression; + operator: PostfixUnaryOperator; + } + interface LeftHandSideExpression extends UpdateExpression { + _leftHandSideExpressionBrand: any; + } + interface MemberExpression extends LeftHandSideExpression { + _memberExpressionBrand: any; + } + interface PrimaryExpression extends MemberExpression { + _primaryExpressionBrand: any; + } + interface NullLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.NullKeyword; + } + interface BooleanLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.TrueKeyword | SyntaxKind.FalseKeyword; + } + interface ThisExpression extends PrimaryExpression, KeywordTypeNode { + kind: SyntaxKind.ThisKeyword; + } + interface SuperExpression extends PrimaryExpression { + kind: SyntaxKind.SuperKeyword; + } + interface ImportExpression extends PrimaryExpression { + kind: SyntaxKind.ImportKeyword; + } + interface DeleteExpression extends UnaryExpression { + kind: SyntaxKind.DeleteExpression; + expression: UnaryExpression; + } + interface TypeOfExpression extends UnaryExpression { + kind: SyntaxKind.TypeOfExpression; + expression: UnaryExpression; + } + interface VoidExpression extends UnaryExpression { + kind: SyntaxKind.VoidExpression; + expression: UnaryExpression; + } + interface AwaitExpression extends UnaryExpression { + kind: SyntaxKind.AwaitExpression; + expression: UnaryExpression; + } + interface YieldExpression extends Expression { + kind: SyntaxKind.YieldExpression; + asteriskToken?: AsteriskToken; + expression?: Expression; + } + interface SyntheticExpression extends Expression { + kind: SyntaxKind.SyntheticExpression; + isSpread: boolean; + type: Type; + } + type ExponentiationOperator = SyntaxKind.AsteriskAsteriskToken; + type MultiplicativeOperator = SyntaxKind.AsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken; + type MultiplicativeOperatorOrHigher = ExponentiationOperator | MultiplicativeOperator; + type AdditiveOperator = SyntaxKind.PlusToken | SyntaxKind.MinusToken; + type AdditiveOperatorOrHigher = MultiplicativeOperatorOrHigher | AdditiveOperator; + type ShiftOperator = SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken; + type ShiftOperatorOrHigher = AdditiveOperatorOrHigher | ShiftOperator; + type RelationalOperator = SyntaxKind.LessThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.InstanceOfKeyword | SyntaxKind.InKeyword; + type RelationalOperatorOrHigher = ShiftOperatorOrHigher | RelationalOperator; + type EqualityOperator = SyntaxKind.EqualsEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.ExclamationEqualsToken; + type EqualityOperatorOrHigher = RelationalOperatorOrHigher | EqualityOperator; + type BitwiseOperator = SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken; + type BitwiseOperatorOrHigher = EqualityOperatorOrHigher | BitwiseOperator; + type LogicalOperator = SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken; + type LogicalOperatorOrHigher = BitwiseOperatorOrHigher | LogicalOperator; + type CompoundAssignmentOperator = SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken; + type AssignmentOperator = SyntaxKind.EqualsToken | CompoundAssignmentOperator; + type AssignmentOperatorOrHigher = LogicalOperatorOrHigher | AssignmentOperator; + type BinaryOperator = AssignmentOperatorOrHigher | SyntaxKind.CommaToken; + type BinaryOperatorToken = Token<BinaryOperator>; + interface BinaryExpression extends Expression, Declaration { + kind: SyntaxKind.BinaryExpression; + left: Expression; + operatorToken: BinaryOperatorToken; + right: Expression; + } + type AssignmentOperatorToken = Token<AssignmentOperator>; + interface AssignmentExpression<TOperator extends AssignmentOperatorToken> extends BinaryExpression { + left: LeftHandSideExpression; + operatorToken: TOperator; + } + interface ObjectDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ObjectLiteralExpression; + } + interface ArrayDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ArrayLiteralExpression; + } + type DestructuringAssignment = ObjectDestructuringAssignment | ArrayDestructuringAssignment; + type BindingOrAssignmentElement = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | OmittedExpression | SpreadElement | ArrayLiteralExpression | ObjectLiteralExpression | AssignmentExpression<EqualsToken> | Identifier | PropertyAccessExpression | ElementAccessExpression; + type BindingOrAssignmentElementRestIndicator = DotDotDotToken | SpreadElement | SpreadAssignment; + type BindingOrAssignmentElementTarget = BindingOrAssignmentPattern | Identifier | PropertyAccessExpression | ElementAccessExpression | OmittedExpression; + type ObjectBindingOrAssignmentPattern = ObjectBindingPattern | ObjectLiteralExpression; + type ArrayBindingOrAssignmentPattern = ArrayBindingPattern | ArrayLiteralExpression; + type AssignmentPattern = ObjectLiteralExpression | ArrayLiteralExpression; + type BindingOrAssignmentPattern = ObjectBindingOrAssignmentPattern | ArrayBindingOrAssignmentPattern; + interface ConditionalExpression extends Expression { + kind: SyntaxKind.ConditionalExpression; + condition: Expression; + questionToken: QuestionToken; + whenTrue: Expression; + colonToken: ColonToken; + whenFalse: Expression; + } + type FunctionBody = Block; + type ConciseBody = FunctionBody | Expression; + interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.FunctionExpression; + name?: Identifier; + body: FunctionBody; + } + interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.ArrowFunction; + equalsGreaterThanToken: EqualsGreaterThanToken; + body: ConciseBody; + name: never; + } + interface LiteralLikeNode extends Node { + text: string; + isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; + } + interface LiteralExpression extends LiteralLikeNode, PrimaryExpression { + _literalExpressionBrand: any; + } + interface RegularExpressionLiteral extends LiteralExpression { + kind: SyntaxKind.RegularExpressionLiteral; + } + interface NoSubstitutionTemplateLiteral extends LiteralExpression { + kind: SyntaxKind.NoSubstitutionTemplateLiteral; + } + interface NumericLiteral extends LiteralExpression { + kind: SyntaxKind.NumericLiteral; + } + interface BigIntLiteral extends LiteralExpression { + kind: SyntaxKind.BigIntLiteral; + } + interface TemplateHead extends LiteralLikeNode { + kind: SyntaxKind.TemplateHead; + parent: TemplateExpression; + } + interface TemplateMiddle extends LiteralLikeNode { + kind: SyntaxKind.TemplateMiddle; + parent: TemplateSpan; + } + interface TemplateTail extends LiteralLikeNode { + kind: SyntaxKind.TemplateTail; + parent: TemplateSpan; + } + type TemplateLiteral = TemplateExpression | NoSubstitutionTemplateLiteral; + interface TemplateExpression extends PrimaryExpression { + kind: SyntaxKind.TemplateExpression; + head: TemplateHead; + templateSpans: NodeArray<TemplateSpan>; + } + interface TemplateSpan extends Node { + kind: SyntaxKind.TemplateSpan; + parent: TemplateExpression; + expression: Expression; + literal: TemplateMiddle | TemplateTail; + } + interface ParenthesizedExpression extends PrimaryExpression, JSDocContainer { + kind: SyntaxKind.ParenthesizedExpression; + expression: Expression; + } + interface ArrayLiteralExpression extends PrimaryExpression { + kind: SyntaxKind.ArrayLiteralExpression; + elements: NodeArray<Expression>; + } + interface SpreadElement extends Expression { + kind: SyntaxKind.SpreadElement; + parent: ArrayLiteralExpression | CallExpression | NewExpression; + expression: Expression; + } + /** + * This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to + * ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be + * JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type + * ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.) + */ + interface ObjectLiteralExpressionBase<T extends ObjectLiteralElement> extends PrimaryExpression, Declaration { + properties: NodeArray<T>; + } + interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike> { + kind: SyntaxKind.ObjectLiteralExpression; + } + type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression; + type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression; + interface PropertyAccessExpression extends MemberExpression, NamedDeclaration { + kind: SyntaxKind.PropertyAccessExpression; + expression: LeftHandSideExpression; + name: Identifier; + } + interface SuperPropertyAccessExpression extends PropertyAccessExpression { + expression: SuperExpression; + } + /** Brand for a PropertyAccessExpression which, like a QualifiedName, consists of a sequence of identifiers separated by dots. */ + interface PropertyAccessEntityNameExpression extends PropertyAccessExpression { + _propertyAccessExpressionLikeQualifiedNameBrand?: any; + expression: EntityNameExpression; + } + interface ElementAccessExpression extends MemberExpression { + kind: SyntaxKind.ElementAccessExpression; + expression: LeftHandSideExpression; + argumentExpression: Expression; + } + interface SuperElementAccessExpression extends ElementAccessExpression { + expression: SuperExpression; + } + type SuperProperty = SuperPropertyAccessExpression | SuperElementAccessExpression; + interface CallExpression extends LeftHandSideExpression, Declaration { + kind: SyntaxKind.CallExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments: NodeArray<Expression>; + } + interface SuperCall extends CallExpression { + expression: SuperExpression; + } + interface ImportCall extends CallExpression { + expression: ImportExpression; + } + interface ExpressionWithTypeArguments extends NodeWithTypeArguments { + kind: SyntaxKind.ExpressionWithTypeArguments; + parent: HeritageClause | JSDocAugmentsTag; + expression: LeftHandSideExpression; + } + interface NewExpression extends PrimaryExpression, Declaration { + kind: SyntaxKind.NewExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments?: NodeArray<Expression>; + } + interface TaggedTemplateExpression extends MemberExpression { + kind: SyntaxKind.TaggedTemplateExpression; + tag: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + template: TemplateLiteral; + } + type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxOpeningLikeElement; + interface AsExpression extends Expression { + kind: SyntaxKind.AsExpression; + expression: Expression; + type: TypeNode; + } + interface TypeAssertion extends UnaryExpression { + kind: SyntaxKind.TypeAssertionExpression; + type: TypeNode; + expression: UnaryExpression; + } + type AssertionExpression = TypeAssertion | AsExpression; + interface NonNullExpression extends LeftHandSideExpression { + kind: SyntaxKind.NonNullExpression; + expression: Expression; + } + interface MetaProperty extends PrimaryExpression { + kind: SyntaxKind.MetaProperty; + keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword; + name: Identifier; + } + interface JsxElement extends PrimaryExpression { + kind: SyntaxKind.JsxElement; + openingElement: JsxOpeningElement; + children: NodeArray<JsxChild>; + closingElement: JsxClosingElement; + } + type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement; + type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute; + type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess; + interface JsxTagNamePropertyAccess extends PropertyAccessExpression { + expression: JsxTagNameExpression; + } + interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> { + parent: JsxOpeningLikeElement; + } + interface JsxOpeningElement extends Expression { + kind: SyntaxKind.JsxOpeningElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxSelfClosingElement extends PrimaryExpression { + kind: SyntaxKind.JsxSelfClosingElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxFragment extends PrimaryExpression { + kind: SyntaxKind.JsxFragment; + openingFragment: JsxOpeningFragment; + children: NodeArray<JsxChild>; + closingFragment: JsxClosingFragment; + } + interface JsxOpeningFragment extends Expression { + kind: SyntaxKind.JsxOpeningFragment; + parent: JsxFragment; + } + interface JsxClosingFragment extends Expression { + kind: SyntaxKind.JsxClosingFragment; + parent: JsxFragment; + } + interface JsxAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxAttribute; + parent: JsxAttributes; + name: Identifier; + initializer?: StringLiteral | JsxExpression; + } + interface JsxSpreadAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxSpreadAttribute; + parent: JsxAttributes; + expression: Expression; + } + interface JsxClosingElement extends Node { + kind: SyntaxKind.JsxClosingElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + } + interface JsxExpression extends Expression { + kind: SyntaxKind.JsxExpression; + parent: JsxElement | JsxAttributeLike; + dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>; + expression?: Expression; + } + interface JsxText extends Node { + kind: SyntaxKind.JsxText; + containsOnlyWhiteSpaces: boolean; + parent: JsxElement; + } + type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment; + interface Statement extends Node { + _statementBrand: any; + } + interface NotEmittedStatement extends Statement { + kind: SyntaxKind.NotEmittedStatement; + } + /** + * A list of comma-separated expressions. This node is only created by transformations. + */ + interface CommaListExpression extends Expression { + kind: SyntaxKind.CommaListExpression; + elements: NodeArray<Expression>; + } + interface EmptyStatement extends Statement { + kind: SyntaxKind.EmptyStatement; + } + interface DebuggerStatement extends Statement { + kind: SyntaxKind.DebuggerStatement; + } + interface MissingDeclaration extends DeclarationStatement { + kind: SyntaxKind.MissingDeclaration; + name?: Identifier; + } + type BlockLike = SourceFile | Block | ModuleBlock | CaseOrDefaultClause; + interface Block extends Statement { + kind: SyntaxKind.Block; + statements: NodeArray<Statement>; + } + interface VariableStatement extends Statement, JSDocContainer { + kind: SyntaxKind.VariableStatement; + declarationList: VariableDeclarationList; + } + interface ExpressionStatement extends Statement, JSDocContainer { + kind: SyntaxKind.ExpressionStatement; + expression: Expression; + } + interface IfStatement extends Statement { + kind: SyntaxKind.IfStatement; + expression: Expression; + thenStatement: Statement; + elseStatement?: Statement; + } + interface IterationStatement extends Statement { + statement: Statement; + } + interface DoStatement extends IterationStatement { + kind: SyntaxKind.DoStatement; + expression: Expression; + } + interface WhileStatement extends IterationStatement { + kind: SyntaxKind.WhileStatement; + expression: Expression; + } + type ForInitializer = VariableDeclarationList | Expression; + interface ForStatement extends IterationStatement { + kind: SyntaxKind.ForStatement; + initializer?: ForInitializer; + condition?: Expression; + incrementor?: Expression; + } + type ForInOrOfStatement = ForInStatement | ForOfStatement; + interface ForInStatement extends IterationStatement { + kind: SyntaxKind.ForInStatement; + initializer: ForInitializer; + expression: Expression; + } + interface ForOfStatement extends IterationStatement { + kind: SyntaxKind.ForOfStatement; + awaitModifier?: AwaitKeywordToken; + initializer: ForInitializer; + expression: Expression; + } + interface BreakStatement extends Statement { + kind: SyntaxKind.BreakStatement; + label?: Identifier; + } + interface ContinueStatement extends Statement { + kind: SyntaxKind.ContinueStatement; + label?: Identifier; + } + type BreakOrContinueStatement = BreakStatement | ContinueStatement; + interface ReturnStatement extends Statement { + kind: SyntaxKind.ReturnStatement; + expression?: Expression; + } + interface WithStatement extends Statement { + kind: SyntaxKind.WithStatement; + expression: Expression; + statement: Statement; + } + interface SwitchStatement extends Statement { + kind: SyntaxKind.SwitchStatement; + expression: Expression; + caseBlock: CaseBlock; + possiblyExhaustive?: boolean; + } + interface CaseBlock extends Node { + kind: SyntaxKind.CaseBlock; + parent: SwitchStatement; + clauses: NodeArray<CaseOrDefaultClause>; + } + interface CaseClause extends Node { + kind: SyntaxKind.CaseClause; + parent: CaseBlock; + expression: Expression; + statements: NodeArray<Statement>; + } + interface DefaultClause extends Node { + kind: SyntaxKind.DefaultClause; + parent: CaseBlock; + statements: NodeArray<Statement>; + } + type CaseOrDefaultClause = CaseClause | DefaultClause; + interface LabeledStatement extends Statement, JSDocContainer { + kind: SyntaxKind.LabeledStatement; + label: Identifier; + statement: Statement; + } + interface ThrowStatement extends Statement { + kind: SyntaxKind.ThrowStatement; + expression?: Expression; + } + interface TryStatement extends Statement { + kind: SyntaxKind.TryStatement; + tryBlock: Block; + catchClause?: CatchClause; + finallyBlock?: Block; + } + interface CatchClause extends Node { + kind: SyntaxKind.CatchClause; + parent: TryStatement; + variableDeclaration?: VariableDeclaration; + block: Block; + } + type ObjectTypeDeclaration = ClassLikeDeclaration | InterfaceDeclaration | TypeLiteralNode; + type DeclarationWithTypeParameters = DeclarationWithTypeParameterChildren | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature; + type DeclarationWithTypeParameterChildren = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag; + interface ClassLikeDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.ClassDeclaration | SyntaxKind.ClassExpression; + name?: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<ClassElement>; + } + interface ClassDeclaration extends ClassLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.ClassDeclaration; + /** May be undefined in `export default class { ... }`. */ + name?: Identifier; + } + interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression { + kind: SyntaxKind.ClassExpression; + } + type ClassLikeDeclaration = ClassDeclaration | ClassExpression; + interface ClassElement extends NamedDeclaration { + _classElementBrand: any; + name?: PropertyName; + } + interface TypeElement extends NamedDeclaration { + _typeElementBrand: any; + name?: PropertyName; + questionToken?: QuestionToken; + } + interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.InterfaceDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<TypeElement>; + } + interface HeritageClause extends Node { + kind: SyntaxKind.HeritageClause; + parent: InterfaceDeclaration | ClassLikeDeclaration; + token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword; + types: NodeArray<ExpressionWithTypeArguments>; + } + interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.TypeAliasDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + type: TypeNode; + } + interface EnumMember extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.EnumMember; + parent: EnumDeclaration; + name: PropertyName; + initializer?: Expression; + } + interface EnumDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.EnumDeclaration; + name: Identifier; + members: NodeArray<EnumMember>; + } + type ModuleName = Identifier | StringLiteral; + type ModuleBody = NamespaceBody | JSDocNamespaceBody; + interface ModuleDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ModuleDeclaration; + parent: ModuleBody | SourceFile; + name: ModuleName; + body?: ModuleBody | JSDocNamespaceDeclaration; + } + type NamespaceBody = ModuleBlock | NamespaceDeclaration; + interface NamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body: NamespaceBody; + } + type JSDocNamespaceBody = Identifier | JSDocNamespaceDeclaration; + interface JSDocNamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body?: JSDocNamespaceBody; + } + interface ModuleBlock extends Node, Statement { + kind: SyntaxKind.ModuleBlock; + parent: ModuleDeclaration; + statements: NodeArray<Statement>; + } + type ModuleReference = EntityName | ExternalModuleReference; + /** + * One of: + * - import x = require("mod"); + * - import x = M.x; + */ + interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ImportEqualsDeclaration; + parent: SourceFile | ModuleBlock; + name: Identifier; + moduleReference: ModuleReference; + } + interface ExternalModuleReference extends Node { + kind: SyntaxKind.ExternalModuleReference; + parent: ImportEqualsDeclaration; + expression: Expression; + } + interface ImportDeclaration extends Statement { + kind: SyntaxKind.ImportDeclaration; + parent: SourceFile | ModuleBlock; + importClause?: ImportClause; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier: Expression; + } + type NamedImportBindings = NamespaceImport | NamedImports; + interface ImportClause extends NamedDeclaration { + kind: SyntaxKind.ImportClause; + parent: ImportDeclaration; + name?: Identifier; + namedBindings?: NamedImportBindings; + } + interface NamespaceImport extends NamedDeclaration { + kind: SyntaxKind.NamespaceImport; + parent: ImportClause; + name: Identifier; + } + interface NamespaceExportDeclaration extends DeclarationStatement { + kind: SyntaxKind.NamespaceExportDeclaration; + name: Identifier; + } + interface ExportDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ExportDeclaration; + parent: SourceFile | ModuleBlock; + /** Will not be assigned in the case of `export * from "foo";` */ + exportClause?: NamedExports; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier?: Expression; + } + interface NamedImports extends Node { + kind: SyntaxKind.NamedImports; + parent: ImportClause; + elements: NodeArray<ImportSpecifier>; + } + interface NamedExports extends Node { + kind: SyntaxKind.NamedExports; + parent: ExportDeclaration; + elements: NodeArray<ExportSpecifier>; + } + type NamedImportsOrExports = NamedImports | NamedExports; + interface ImportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ImportSpecifier; + parent: NamedImports; + propertyName?: Identifier; + name: Identifier; + } + interface ExportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ExportSpecifier; + parent: NamedExports; + propertyName?: Identifier; + name: Identifier; + } + type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier; + /** + * This is either an `export =` or an `export default` declaration. + * Unless `isExportEquals` is set, this node was parsed as an `export default`. + */ + interface ExportAssignment extends DeclarationStatement { + kind: SyntaxKind.ExportAssignment; + parent: SourceFile; + isExportEquals?: boolean; + expression: Expression; + } + interface FileReference extends TextRange { + fileName: string; + } + interface CheckJsDirective extends TextRange { + enabled: boolean; + } + type CommentKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia; + interface CommentRange extends TextRange { + hasTrailingNewLine?: boolean; + kind: CommentKind; + } + interface SynthesizedComment extends CommentRange { + text: string; + pos: -1; + end: -1; + } + interface JSDocTypeExpression extends TypeNode { + kind: SyntaxKind.JSDocTypeExpression; + type: TypeNode; + } + interface JSDocType extends TypeNode { + _jsDocTypeBrand: any; + } + interface JSDocAllType extends JSDocType { + kind: SyntaxKind.JSDocAllType; + } + interface JSDocUnknownType extends JSDocType { + kind: SyntaxKind.JSDocUnknownType; + } + interface JSDocNonNullableType extends JSDocType { + kind: SyntaxKind.JSDocNonNullableType; + type: TypeNode; + } + interface JSDocNullableType extends JSDocType { + kind: SyntaxKind.JSDocNullableType; + type: TypeNode; + } + interface JSDocOptionalType extends JSDocType { + kind: SyntaxKind.JSDocOptionalType; + type: TypeNode; + } + interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase { + kind: SyntaxKind.JSDocFunctionType; + } + interface JSDocVariadicType extends JSDocType { + kind: SyntaxKind.JSDocVariadicType; + type: TypeNode; + } + type JSDocTypeReferencingNode = JSDocVariadicType | JSDocOptionalType | JSDocNullableType | JSDocNonNullableType; + interface JSDoc extends Node { + kind: SyntaxKind.JSDocComment; + parent: HasJSDoc; + tags?: NodeArray<JSDocTag>; + comment?: string; + } + interface JSDocTag extends Node { + parent: JSDoc | JSDocTypeLiteral; + tagName: Identifier; + comment?: string; + } + interface JSDocUnknownTag extends JSDocTag { + kind: SyntaxKind.JSDocTag; + } + /** + * Note that `@extends` is a synonym of `@augments`. + * Both tags are represented by this interface. + */ + interface JSDocAugmentsTag extends JSDocTag { + kind: SyntaxKind.JSDocAugmentsTag; + class: ExpressionWithTypeArguments & { + expression: Identifier | PropertyAccessEntityNameExpression; + }; + } + interface JSDocClassTag extends JSDocTag { + kind: SyntaxKind.JSDocClassTag; + } + interface JSDocEnumTag extends JSDocTag { + kind: SyntaxKind.JSDocEnumTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTemplateTag extends JSDocTag { + kind: SyntaxKind.JSDocTemplateTag; + constraint: JSDocTypeExpression | undefined; + typeParameters: NodeArray<TypeParameterDeclaration>; + } + interface JSDocReturnTag extends JSDocTag { + kind: SyntaxKind.JSDocReturnTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypeTag extends JSDocTag { + kind: SyntaxKind.JSDocTypeTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypedefTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocTypedefTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression?: JSDocTypeExpression | JSDocTypeLiteral; + } + interface JSDocCallbackTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocCallbackTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression: JSDocSignature; + } + interface JSDocSignature extends JSDocType, Declaration { + kind: SyntaxKind.JSDocSignature; + typeParameters?: ReadonlyArray<JSDocTemplateTag>; + parameters: ReadonlyArray<JSDocParameterTag>; + type: JSDocReturnTag | undefined; + } + interface JSDocPropertyLikeTag extends JSDocTag, Declaration { + parent: JSDoc; + name: EntityName; + typeExpression?: JSDocTypeExpression; + /** Whether the property name came before the type -- non-standard for JSDoc, but Typescript-like */ + isNameFirst: boolean; + isBracketed: boolean; + } + interface JSDocPropertyTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocPropertyTag; + } + interface JSDocParameterTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocParameterTag; + } + interface JSDocTypeLiteral extends JSDocType { + kind: SyntaxKind.JSDocTypeLiteral; + jsDocPropertyTags?: ReadonlyArray<JSDocPropertyLikeTag>; + /** If true, then this type literal represents an *array* of its type. */ + isArrayType?: boolean; + } + enum FlowFlags { + Unreachable = 1, + Start = 2, + BranchLabel = 4, + LoopLabel = 8, + Assignment = 16, + TrueCondition = 32, + FalseCondition = 64, + SwitchClause = 128, + ArrayMutation = 256, + Referenced = 512, + Shared = 1024, + PreFinally = 2048, + AfterFinally = 4096, + Label = 12, + Condition = 96 + } + interface FlowLock { + locked?: boolean; + } + interface AfterFinallyFlow extends FlowNodeBase, FlowLock { + antecedent: FlowNode; + } + interface PreFinallyFlow extends FlowNodeBase { + antecedent: FlowNode; + lock: FlowLock; + } + type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + interface FlowNodeBase { + flags: FlowFlags; + id?: number; + } + interface FlowStart extends FlowNodeBase { + container?: FunctionExpression | ArrowFunction | MethodDeclaration; + } + interface FlowLabel extends FlowNodeBase { + antecedents: FlowNode[] | undefined; + } + interface FlowAssignment extends FlowNodeBase { + node: Expression | VariableDeclaration | BindingElement; + antecedent: FlowNode; + } + interface FlowCondition extends FlowNodeBase { + expression: Expression; + antecedent: FlowNode; + } + interface FlowSwitchClause extends FlowNodeBase { + switchStatement: SwitchStatement; + clauseStart: number; + clauseEnd: number; + antecedent: FlowNode; + } + interface FlowArrayMutation extends FlowNodeBase { + node: CallExpression | BinaryExpression; + antecedent: FlowNode; + } + type FlowType = Type | IncompleteType; + interface IncompleteType { + flags: TypeFlags; + type: Type; + } + interface AmdDependency { + path: string; + name?: string; + } + interface SourceFile extends Declaration { + kind: SyntaxKind.SourceFile; + statements: NodeArray<Statement>; + endOfFileToken: Token<SyntaxKind.EndOfFileToken>; + fileName: string; + text: string; + amdDependencies: ReadonlyArray<AmdDependency>; + moduleName?: string; + referencedFiles: ReadonlyArray<FileReference>; + typeReferenceDirectives: ReadonlyArray<FileReference>; + libReferenceDirectives: ReadonlyArray<FileReference>; + languageVariant: LanguageVariant; + isDeclarationFile: boolean; + /** + * lib.d.ts should have a reference comment like + * + * /// <reference no-default-lib="true"/> + * + * If any other file has this comment, it signals not to include lib.d.ts + * because this containing file is intended to act as a default library. + */ + hasNoDefaultLib: boolean; + languageVersion: ScriptTarget; + } + interface Bundle extends Node { + kind: SyntaxKind.Bundle; + prepends: ReadonlyArray<InputFiles | UnparsedSource>; + sourceFiles: ReadonlyArray<SourceFile>; + } + interface InputFiles extends Node { + kind: SyntaxKind.InputFiles; + javascriptText: string; + javascriptMapPath?: string; + javascriptMapText?: string; + declarationText: string; + declarationMapPath?: string; + declarationMapText?: string; + } + interface UnparsedSource extends Node { + kind: SyntaxKind.UnparsedSource; + text: string; + sourceMapPath?: string; + sourceMapText?: string; + } + interface JsonSourceFile extends SourceFile { + statements: NodeArray<JsonObjectExpressionStatement>; + } + interface TsConfigSourceFile extends JsonSourceFile { + extendedSourceFiles?: string[]; + } + interface JsonMinusNumericLiteral extends PrefixUnaryExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: SyntaxKind.MinusToken; + operand: NumericLiteral; + } + interface JsonObjectExpressionStatement extends ExpressionStatement { + expression: ObjectLiteralExpression | ArrayLiteralExpression | JsonMinusNumericLiteral | NumericLiteral | StringLiteral | BooleanLiteral | NullLiteral; + } + interface ScriptReferenceHost { + getCompilerOptions(): CompilerOptions; + getSourceFile(fileName: string): SourceFile | undefined; + getSourceFileByPath(path: Path): SourceFile | undefined; + getCurrentDirectory(): string; + } + interface ParseConfigHost { + useCaseSensitiveFileNames: boolean; + readDirectory(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): ReadonlyArray<string>; + /** + * Gets a value indicating whether the specified path exists and is a file. + * @param path The path to test. + */ + fileExists(path: string): boolean; + readFile(path: string): string | undefined; + trace?(s: string): void; + } + /** + * Branded string for keeping track of when we've turned an ambiguous path + * specified like "./blah" to an absolute path to an actual + * tsconfig file, e.g. "/root/blah/tsconfig.json" + */ + type ResolvedConfigFileName = string & { + _isResolvedConfigFileName: never; + }; + type WriteFileCallback = (fileName: string, data: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles?: ReadonlyArray<SourceFile>) => void; + class OperationCanceledException { + } + interface CancellationToken { + isCancellationRequested(): boolean; + /** @throws OperationCanceledException if isCancellationRequested is true */ + throwIfCancellationRequested(): void; + } + interface Program extends ScriptReferenceHost { + /** + * Get a list of root file names that were passed to a 'createProgram' + */ + getRootFileNames(): ReadonlyArray<string>; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then + * the JavaScript and declaration files will be produced for all the files in this program. + * If targetSourceFile is specified, then only the JavaScript and declaration for that + * specific file will be generated. + * + * If writeFile is not specified then the writeFile callback from the compiler host will be + * used for writing the JavaScript and declaration files. Otherwise, the writeFile parameter + * will be invoked when writing the JavaScript and declaration files. + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getDeclarationDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Gets a type checker that can be used to semantically analyze source files in the program. + */ + getTypeChecker(): TypeChecker; + isSourceFileFromExternalLibrary(file: SourceFile): boolean; + isSourceFileDefaultLibrary(file: SourceFile): boolean; + getProjectReferences(): ReadonlyArray<ProjectReference> | undefined; + getResolvedProjectReferences(): ReadonlyArray<ResolvedProjectReference | undefined> | undefined; + } + interface ResolvedProjectReference { + commandLine: ParsedCommandLine; + sourceFile: SourceFile; + references?: ReadonlyArray<ResolvedProjectReference | undefined>; + } + interface CustomTransformers { + /** Custom transformers to evaluate before built-in .js transformations. */ + before?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .js transformations. */ + after?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .d.ts transformations. */ + afterDeclarations?: TransformerFactory<Bundle | SourceFile>[]; + } + interface SourceMapSpan { + /** Line number in the .js file. */ + emittedLine: number; + /** Column number in the .js file. */ + emittedColumn: number; + /** Line number in the .ts file. */ + sourceLine: number; + /** Column number in the .ts file. */ + sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ + nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ + sourceIndex: number; + } + /** Return code used by getEmitOutput function to indicate status of the function */ + enum ExitStatus { + Success = 0, + DiagnosticsPresent_OutputsSkipped = 1, + DiagnosticsPresent_OutputsGenerated = 2 + } + interface EmitResult { + emitSkipped: boolean; + /** Contains declaration emit diagnostics */ + diagnostics: ReadonlyArray<Diagnostic>; + emittedFiles?: string[]; + } + interface TypeChecker { + getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; + getDeclaredTypeOfSymbol(symbol: Symbol): Type; + getPropertiesOfType(type: Type): Symbol[]; + getPropertyOfType(type: Type, propertyName: string): Symbol | undefined; + getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined; + getSignaturesOfType(type: Type, kind: SignatureKind): ReadonlyArray<Signature>; + getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined; + getBaseTypes(type: InterfaceType): BaseType[]; + getBaseTypeOfLiteralType(type: Type): Type; + getWidenedType(type: Type): Type; + getReturnTypeOfSignature(signature: Signature): Type; + getNullableType(type: Type, flags: TypeFlags): Type; + getNonNullableType(type: Type): Type; + /** Note that the resulting nodes cannot be checked. */ + typeToTypeNode(type: Type, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeNode | undefined; + /** Note that the resulting nodes cannot be checked. */ + signatureToSignatureDeclaration(signature: Signature, kind: SyntaxKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): (SignatureDeclaration & { + typeArguments?: NodeArray<TypeNode>; + }) | undefined; + /** Note that the resulting nodes cannot be checked. */ + indexInfoToIndexSignatureDeclaration(indexInfo: IndexInfo, kind: IndexKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): IndexSignatureDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToEntityName(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): EntityName | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToExpression(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): Expression | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToTypeParameterDeclarations(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): NodeArray<TypeParameterDeclaration> | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToParameterDeclaration(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): ParameterDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + typeParameterToDeclaration(parameter: TypeParameter, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeParameterDeclaration | undefined; + getSymbolsInScope(location: Node, meaning: SymbolFlags): Symbol[]; + getSymbolAtLocation(node: Node): Symbol | undefined; + getSymbolsOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): Symbol[]; + /** + * The function returns the value (local variable) symbol of an identifier in the short-hand property assignment. + * This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value. + */ + getShorthandAssignmentValueSymbol(location: Node): Symbol | undefined; + getExportSpecifierLocalTargetSymbol(location: ExportSpecifier): Symbol | undefined; + /** + * If a symbol is a local symbol with an associated exported symbol, returns the exported symbol. + * Otherwise returns its input. + * For example, at `export type T = number;`: + * - `getSymbolAtLocation` at the location `T` will return the exported symbol for `T`. + * - But the result of `getSymbolsInScope` will contain the *local* symbol for `T`, not the exported symbol. + * - Calling `getExportSymbolOfSymbol` on that local symbol will return the exported symbol. + */ + getExportSymbolOfSymbol(symbol: Symbol): Symbol; + getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined; + getTypeAtLocation(node: Node): Type; + getTypeFromTypeNode(node: TypeNode): Type; + signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string; + typeToString(type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + symbolToString(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): string; + typePredicateToString(predicate: TypePredicate, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + getFullyQualifiedName(symbol: Symbol): string; + getAugmentedPropertiesOfType(type: Type): Symbol[]; + getRootSymbols(symbol: Symbol): ReadonlyArray<Symbol>; + getContextualType(node: Expression): Type | undefined; + /** + * returns unknownSignature in the case of an error. + * returns undefined if the node is not valid. + * @param argumentCount Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See `signatureHelp.ts`. + */ + getResolvedSignature(node: CallLikeExpression, candidatesOutArray?: Signature[], argumentCount?: number): Signature | undefined; + getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature | undefined; + isImplementationOfOverload(node: SignatureDeclaration): boolean | undefined; + isUndefinedSymbol(symbol: Symbol): boolean; + isArgumentsSymbol(symbol: Symbol): boolean; + isUnknownSymbol(symbol: Symbol): boolean; + getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean; + /** Follow all aliases to get the original symbol. */ + getAliasedSymbol(symbol: Symbol): Symbol; + getExportsOfModule(moduleSymbol: Symbol): Symbol[]; + getJsxIntrinsicTagNamesAt(location: Node): Symbol[]; + isOptionalParameter(node: ParameterDeclaration): boolean; + getAmbientModules(): Symbol[]; + tryGetMemberInModuleExports(memberName: string, moduleSymbol: Symbol): Symbol | undefined; + getApparentType(type: Type): Type; + getBaseConstraintOfType(type: Type): Type | undefined; + getDefaultFromTypeParameter(type: Type): Type | undefined; + /** + * Depending on the operation performed, it may be appropriate to throw away the checker + * if the cancellation token is triggered. Typically, if it is used for error checking + * and the operation is cancelled, then it should be discarded, otherwise it is safe to keep. + */ + runWithCancellationToken<T>(token: CancellationToken, cb: (checker: TypeChecker) => T): T; + } + enum NodeBuilderFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + GenerateNamesForShadowedTypeParams = 4, + UseStructuralFallback = 8, + ForbidIndexedAccessSymbolReferences = 16, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + UseOnlyExternalAliasing = 128, + SuppressAnyReturnType = 256, + WriteTypeParametersInQualifiedName = 512, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowThisInObjectLiteral = 32768, + AllowQualifedNameInPlaceOfIdentifier = 65536, + AllowAnonymousIdentifier = 131072, + AllowEmptyUnionOrIntersection = 262144, + AllowEmptyTuple = 524288, + AllowUniqueESSymbolType = 1048576, + AllowEmptyIndexInfoType = 2097152, + AllowNodeModulesRelativePaths = 67108864, + IgnoreErrors = 70221824, + InObjectTypeLiteral = 4194304, + InTypeAlias = 8388608, + InInitialEntityName = 16777216, + InReverseMappedType = 33554432 + } + enum TypeFormatFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + UseStructuralFallback = 8, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + SuppressAnyReturnType = 256, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowUniqueESSymbolType = 1048576, + AddUndefined = 131072, + WriteArrowStyleSignature = 262144, + InArrayType = 524288, + InElementType = 2097152, + InFirstTypeArgument = 4194304, + InTypeAlias = 8388608, + /** @deprecated */ WriteOwnNameForAnyLike = 0, + NodeBuilderFlagsMask = 9469291 + } + enum SymbolFormatFlags { + None = 0, + WriteTypeParametersOrArguments = 1, + UseOnlyExternalAliasing = 2, + AllowAnyNodeKind = 4, + UseAliasDefinedOutsideCurrentScope = 8 + } + enum TypePredicateKind { + This = 0, + Identifier = 1 + } + interface TypePredicateBase { + kind: TypePredicateKind; + type: Type; + } + interface ThisTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.This; + } + interface IdentifierTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.Identifier; + parameterName: string; + parameterIndex: number; + } + type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + enum SymbolFlags { + None = 0, + FunctionScopedVariable = 1, + BlockScopedVariable = 2, + Property = 4, + EnumMember = 8, + Function = 16, + Class = 32, + Interface = 64, + ConstEnum = 128, + RegularEnum = 256, + ValueModule = 512, + NamespaceModule = 1024, + TypeLiteral = 2048, + ObjectLiteral = 4096, + Method = 8192, + Constructor = 16384, + GetAccessor = 32768, + SetAccessor = 65536, + Signature = 131072, + TypeParameter = 262144, + TypeAlias = 524288, + ExportValue = 1048576, + Alias = 2097152, + Prototype = 4194304, + ExportStar = 8388608, + Optional = 16777216, + Transient = 33554432, + Assignment = 67108864, + ModuleExports = 134217728, + Enum = 384, + Variable = 3, + Value = 67220415, + Type = 67897832, + Namespace = 1920, + Module = 1536, + Accessor = 98304, + FunctionScopedVariableExcludes = 67220414, + BlockScopedVariableExcludes = 67220415, + ParameterExcludes = 67220415, + PropertyExcludes = 0, + EnumMemberExcludes = 68008959, + FunctionExcludes = 67219887, + ClassExcludes = 68008383, + InterfaceExcludes = 67897736, + RegularEnumExcludes = 68008191, + ConstEnumExcludes = 68008831, + ValueModuleExcludes = 110735, + NamespaceModuleExcludes = 0, + MethodExcludes = 67212223, + GetAccessorExcludes = 67154879, + SetAccessorExcludes = 67187647, + TypeParameterExcludes = 67635688, + TypeAliasExcludes = 67897832, + AliasExcludes = 2097152, + ModuleMember = 2623475, + ExportHasLocal = 944, + BlockScoped = 418, + PropertyOrAccessor = 98308, + ClassMember = 106500 + } + interface Symbol { + flags: SymbolFlags; + escapedName: __String; + declarations: Declaration[]; + valueDeclaration: Declaration; + members?: SymbolTable; + exports?: SymbolTable; + globalExports?: SymbolTable; + } + enum InternalSymbolName { + Call = "__call", + Constructor = "__constructor", + New = "__new", + Index = "__index", + ExportStar = "__export", + Global = "__global", + Missing = "__missing", + Type = "__type", + Object = "__object", + JSXAttributes = "__jsxAttributes", + Class = "__class", + Function = "__function", + Computed = "__computed", + Resolving = "__resolving__", + ExportEquals = "export=", + Default = "default", + This = "this" + } + /** + * This represents a string whose leading underscore have been escaped by adding extra leading underscores. + * The shape of this brand is rather unique compared to others we've used. + * Instead of just an intersection of a string and an object, it is that union-ed + * with an intersection of void and an object. This makes it wholly incompatible + * with a normal string (which is good, it cannot be misused on assignment or on usage), + * while still being comparable with a normal string via === (also good) and castable from a string. + */ + type __String = (string & { + __escapedIdentifier: void; + }) | (void & { + __escapedIdentifier: void; + }) | InternalSymbolName; + /** ReadonlyMap where keys are `__String`s. */ + interface ReadonlyUnderscoreEscapedMap<T> { + get(key: __String): T | undefined; + has(key: __String): boolean; + forEach(action: (value: T, key: __String) => void): void; + readonly size: number; + keys(): Iterator<__String>; + values(): Iterator<T>; + entries(): Iterator<[__String, T]>; + } + /** Map where keys are `__String`s. */ + interface UnderscoreEscapedMap<T> extends ReadonlyUnderscoreEscapedMap<T> { + set(key: __String, value: T): this; + delete(key: __String): boolean; + clear(): void; + } + /** SymbolTable based on ES6 Map interface. */ + type SymbolTable = UnderscoreEscapedMap<Symbol>; + enum TypeFlags { + Any = 1, + Unknown = 2, + String = 4, + Number = 8, + Boolean = 16, + Enum = 32, + BigInt = 64, + StringLiteral = 128, + NumberLiteral = 256, + BooleanLiteral = 512, + EnumLiteral = 1024, + BigIntLiteral = 2048, + ESSymbol = 4096, + UniqueESSymbol = 8192, + Void = 16384, + Undefined = 32768, + Null = 65536, + Never = 131072, + TypeParameter = 262144, + Object = 524288, + Union = 1048576, + Intersection = 2097152, + Index = 4194304, + IndexedAccess = 8388608, + Conditional = 16777216, + Substitution = 33554432, + NonPrimitive = 67108864, + Literal = 2944, + Unit = 109440, + StringOrNumberLiteral = 384, + PossiblyFalsy = 117724, + StringLike = 132, + NumberLike = 296, + BigIntLike = 2112, + BooleanLike = 528, + EnumLike = 1056, + ESSymbolLike = 12288, + VoidLike = 49152, + UnionOrIntersection = 3145728, + StructuredType = 3670016, + TypeVariable = 8650752, + InstantiableNonPrimitive = 58982400, + InstantiablePrimitive = 4194304, + Instantiable = 63176704, + StructuredOrInstantiable = 66846720, + Narrowable = 133970943, + NotUnionOrUnit = 67637251 + } + type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression; + interface Type { + flags: TypeFlags; + symbol: Symbol; + pattern?: DestructuringPattern; + aliasSymbol?: Symbol; + aliasTypeArguments?: ReadonlyArray<Type>; + } + interface LiteralType extends Type { + value: string | number | PseudoBigInt; + freshType: LiteralType; + regularType: LiteralType; + } + interface UniqueESSymbolType extends Type { + symbol: Symbol; + } + interface StringLiteralType extends LiteralType { + value: string; + } + interface NumberLiteralType extends LiteralType { + value: number; + } + interface BigIntLiteralType extends LiteralType { + value: PseudoBigInt; + } + interface EnumType extends Type { + } + enum ObjectFlags { + Class = 1, + Interface = 2, + Reference = 4, + Tuple = 8, + Anonymous = 16, + Mapped = 32, + Instantiated = 64, + ObjectLiteral = 128, + EvolvingArray = 256, + ObjectLiteralPatternWithComputedProperties = 512, + ContainsSpread = 1024, + ReverseMapped = 2048, + JsxAttributes = 4096, + MarkerType = 8192, + JSLiteral = 16384, + FreshLiteral = 32768, + ClassOrInterface = 3 + } + interface ObjectType extends Type { + objectFlags: ObjectFlags; + } + /** Class and interface types (ObjectFlags.Class and ObjectFlags.Interface). */ + interface InterfaceType extends ObjectType { + typeParameters: TypeParameter[] | undefined; + outerTypeParameters: TypeParameter[] | undefined; + localTypeParameters: TypeParameter[] | undefined; + thisType: TypeParameter | undefined; + } + type BaseType = ObjectType | IntersectionType; + interface InterfaceTypeWithDeclaredMembers extends InterfaceType { + declaredProperties: Symbol[]; + declaredCallSignatures: Signature[]; + declaredConstructSignatures: Signature[]; + declaredStringIndexInfo?: IndexInfo; + declaredNumberIndexInfo?: IndexInfo; + } + /** + * Type references (ObjectFlags.Reference). When a class or interface has type parameters or + * a "this" type, references to the class or interface are made using type references. The + * typeArguments property specifies the types to substitute for the type parameters of the + * class or interface and optionally includes an extra element that specifies the type to + * substitute for "this" in the resulting instantiation. When no extra argument is present, + * the type reference itself is substituted for "this". The typeArguments property is undefined + * if the class or interface has no type parameters and the reference isn't specifying an + * explicit "this" argument. + */ + interface TypeReference extends ObjectType { + target: GenericType; + typeArguments?: ReadonlyArray<Type>; + } + interface GenericType extends InterfaceType, TypeReference { + } + interface TupleType extends GenericType { + minLength: number; + hasRestElement: boolean; + associatedNames?: __String[]; + } + interface TupleTypeReference extends TypeReference { + target: TupleType; + } + interface UnionOrIntersectionType extends Type { + types: Type[]; + } + interface UnionType extends UnionOrIntersectionType { + } + interface IntersectionType extends UnionOrIntersectionType { + } + type StructuredType = ObjectType | UnionType | IntersectionType; + interface EvolvingArrayType extends ObjectType { + elementType: Type; + finalArrayType?: Type; + } + interface InstantiableType extends Type { + } + interface TypeParameter extends InstantiableType { + } + interface IndexedAccessType extends InstantiableType { + objectType: Type; + indexType: Type; + constraint?: Type; + simplified?: Type; + } + type TypeVariable = TypeParameter | IndexedAccessType; + interface IndexType extends InstantiableType { + type: InstantiableType | UnionOrIntersectionType; + } + interface ConditionalRoot { + node: ConditionalTypeNode; + checkType: Type; + extendsType: Type; + trueType: Type; + falseType: Type; + isDistributive: boolean; + inferTypeParameters?: TypeParameter[]; + outerTypeParameters?: TypeParameter[]; + instantiations?: Map<Type>; + aliasSymbol?: Symbol; + aliasTypeArguments?: Type[]; + } + interface ConditionalType extends InstantiableType { + root: ConditionalRoot; + checkType: Type; + extendsType: Type; + resolvedTrueType?: Type; + resolvedFalseType?: Type; + } + interface SubstitutionType extends InstantiableType { + typeVariable: TypeVariable; + substitute: Type; + } + enum SignatureKind { + Call = 0, + Construct = 1 + } + interface Signature { + declaration?: SignatureDeclaration | JSDocSignature; + typeParameters?: ReadonlyArray<TypeParameter>; + parameters: ReadonlyArray<Symbol>; + } + enum IndexKind { + String = 0, + Number = 1 + } + interface IndexInfo { + type: Type; + isReadonly: boolean; + declaration?: IndexSignatureDeclaration; + } + enum InferencePriority { + NakedTypeVariable = 1, + HomomorphicMappedType = 2, + MappedTypeConstraint = 4, + ReturnType = 8, + LiteralKeyof = 16, + NoConstraints = 32, + AlwaysStrict = 64, + PriorityImpliesCombination = 28 + } + /** @deprecated Use FileExtensionInfo instead. */ + type JsFileExtensionInfo = FileExtensionInfo; + interface FileExtensionInfo { + extension: string; + isMixedContent: boolean; + scriptKind?: ScriptKind; + } + interface DiagnosticMessage { + key: string; + category: DiagnosticCategory; + code: number; + message: string; + reportsUnnecessary?: {}; + } + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ + interface DiagnosticMessageChain { + messageText: string; + category: DiagnosticCategory; + code: number; + next?: DiagnosticMessageChain; + } + interface Diagnostic extends DiagnosticRelatedInformation { + /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */ + reportsUnnecessary?: {}; + source?: string; + relatedInformation?: DiagnosticRelatedInformation[]; + } + interface DiagnosticRelatedInformation { + category: DiagnosticCategory; + code: number; + file: SourceFile | undefined; + start: number | undefined; + length: number | undefined; + messageText: string | DiagnosticMessageChain; + } + interface DiagnosticWithLocation extends Diagnostic { + file: SourceFile; + start: number; + length: number; + } + enum DiagnosticCategory { + Warning = 0, + Error = 1, + Suggestion = 2, + Message = 3 + } + enum ModuleResolutionKind { + Classic = 1, + NodeJs = 2 + } + interface PluginImport { + name: string; + } + interface ProjectReference { + /** A normalized path on disk */ + path: string; + /** The path as the user originally wrote it */ + originalPath?: string; + /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ + prepend?: boolean; + /** True if it is intended that this reference form a circularity */ + circular?: boolean; + } + type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined; + interface CompilerOptions { + allowJs?: boolean; + allowSyntheticDefaultImports?: boolean; + allowUnreachableCode?: boolean; + allowUnusedLabels?: boolean; + alwaysStrict?: boolean; + baseUrl?: string; + charset?: string; + checkJs?: boolean; + declaration?: boolean; + declarationMap?: boolean; + emitDeclarationOnly?: boolean; + declarationDir?: string; + disableSizeLimit?: boolean; + downlevelIteration?: boolean; + emitBOM?: boolean; + emitDecoratorMetadata?: boolean; + experimentalDecorators?: boolean; + forceConsistentCasingInFileNames?: boolean; + importHelpers?: boolean; + inlineSourceMap?: boolean; + inlineSources?: boolean; + isolatedModules?: boolean; + jsx?: JsxEmit; + keyofStringsOnly?: boolean; + lib?: string[]; + locale?: string; + mapRoot?: string; + maxNodeModuleJsDepth?: number; + module?: ModuleKind; + moduleResolution?: ModuleResolutionKind; + newLine?: NewLineKind; + noEmit?: boolean; + noEmitHelpers?: boolean; + noEmitOnError?: boolean; + noErrorTruncation?: boolean; + noFallthroughCasesInSwitch?: boolean; + noImplicitAny?: boolean; + noImplicitReturns?: boolean; + noImplicitThis?: boolean; + noStrictGenericChecks?: boolean; + noUnusedLocals?: boolean; + noUnusedParameters?: boolean; + noImplicitUseStrict?: boolean; + noLib?: boolean; + noResolve?: boolean; + out?: string; + outDir?: string; + outFile?: string; + paths?: MapLike<string[]>; + preserveConstEnums?: boolean; + preserveSymlinks?: boolean; + project?: string; + reactNamespace?: string; + jsxFactory?: string; + composite?: boolean; + removeComments?: boolean; + rootDir?: string; + rootDirs?: string[]; + skipLibCheck?: boolean; + skipDefaultLibCheck?: boolean; + sourceMap?: boolean; + sourceRoot?: string; + strict?: boolean; + strictFunctionTypes?: boolean; + strictBindCallApply?: boolean; + strictNullChecks?: boolean; + strictPropertyInitialization?: boolean; + stripInternal?: boolean; + suppressExcessPropertyErrors?: boolean; + suppressImplicitAnyIndexErrors?: boolean; + target?: ScriptTarget; + traceResolution?: boolean; + resolveJsonModule?: boolean; + types?: string[]; + /** Paths used to compute primary types search locations */ + typeRoots?: string[]; + esModuleInterop?: boolean; + [option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined; + } + interface TypeAcquisition { + enableAutoDiscovery?: boolean; + enable?: boolean; + include?: string[]; + exclude?: string[]; + [option: string]: string[] | boolean | undefined; + } + enum ModuleKind { + None = 0, + CommonJS = 1, + AMD = 2, + UMD = 3, + System = 4, + ES2015 = 5, + ESNext = 6 + } + enum JsxEmit { + None = 0, + Preserve = 1, + React = 2, + ReactNative = 3 + } + enum NewLineKind { + CarriageReturnLineFeed = 0, + LineFeed = 1 + } + interface LineAndCharacter { + /** 0-based. */ + line: number; + character: number; + } + enum ScriptKind { + Unknown = 0, + JS = 1, + JSX = 2, + TS = 3, + TSX = 4, + External = 5, + JSON = 6, + /** + * Used on extensions that doesn't define the ScriptKind but the content defines it. + * Deferred extensions are going to be included in all project contexts. + */ + Deferred = 7 + } + enum ScriptTarget { + ES3 = 0, + ES5 = 1, + ES2015 = 2, + ES2016 = 3, + ES2017 = 4, + ES2018 = 5, + ESNext = 6, + JSON = 100, + Latest = 6 + } + enum LanguageVariant { + Standard = 0, + JSX = 1 + } + /** Either a parsed command line or a parsed tsconfig.json */ + interface ParsedCommandLine { + options: CompilerOptions; + typeAcquisition?: TypeAcquisition; + fileNames: string[]; + projectReferences?: ReadonlyArray<ProjectReference>; + raw?: any; + errors: Diagnostic[]; + wildcardDirectories?: MapLike<WatchDirectoryFlags>; + compileOnSave?: boolean; + } + enum WatchDirectoryFlags { + None = 0, + Recursive = 1 + } + interface ExpandResult { + fileNames: string[]; + wildcardDirectories: MapLike<WatchDirectoryFlags>; + } + interface CreateProgramOptions { + rootNames: ReadonlyArray<string>; + options: CompilerOptions; + projectReferences?: ReadonlyArray<ProjectReference>; + host?: CompilerHost; + oldProgram?: Program; + configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>; + } + interface ModuleResolutionHost { + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + trace?(s: string): void; + directoryExists?(directoryName: string): boolean; + /** + * Resolve a symbolic link. + * @see https://nodejs.org/api/fs.html#fs_fs_realpathsync_path_options + */ + realpath?(path: string): string; + getCurrentDirectory?(): string; + getDirectories?(path: string): string[]; + } + /** + * Represents the result of module resolution. + * Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. + * The Program will then filter results based on these flags. + * + * Prefer to return a `ResolvedModuleFull` so that the file type does not have to be inferred. + */ + interface ResolvedModule { + /** Path of the file the module was resolved to. */ + resolvedFileName: string; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + /** + * ResolvedModule with an explicitly provided `extension` property. + * Prefer this over `ResolvedModule`. + * If changing this, remember to change `moduleResolutionIsEqualTo`. + */ + interface ResolvedModuleFull extends ResolvedModule { + /** + * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. + * This is optional for backwards-compatibility, but will be added if not provided. + */ + extension: Extension; + packageId?: PackageId; + } + /** + * Unique identifier with a package name and version. + * If changing this, remember to change `packageIdIsEqual`. + */ + interface PackageId { + /** + * Name of the package. + * Should not include `@types`. + * If accessing a non-index file, this should include its name e.g. "foo/bar". + */ + name: string; + /** + * Name of a submodule within this package. + * May be "". + */ + subModuleName: string; + /** Version of the package, e.g. "1.2.3" */ + version: string; + } + enum Extension { + Ts = ".ts", + Tsx = ".tsx", + Dts = ".d.ts", + Js = ".js", + Jsx = ".jsx", + Json = ".json" + } + interface ResolvedModuleWithFailedLookupLocations { + readonly resolvedModule: ResolvedModuleFull | undefined; + } + interface ResolvedTypeReferenceDirective { + primary: boolean; + resolvedFileName: string | undefined; + packageId?: PackageId; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations { + readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined; + readonly failedLookupLocations: ReadonlyArray<string>; + } + interface CompilerHost extends ModuleResolutionHost { + getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getSourceFileByPath?(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getCancellationToken?(): CancellationToken; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + writeFile: WriteFileCallback; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + getCanonicalFileName(fileName: string): string; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + readDirectory?(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): string[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** + * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files + */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getEnvironmentVariable?(name: string): string | undefined; + createHash?(data: string): string; + } + interface SourceMapRange extends TextRange { + source?: SourceMapSource; + } + interface SourceMapSource { + fileName: string; + text: string; + skipTrivia?: (pos: number) => number; + } + enum EmitFlags { + None = 0, + SingleLine = 1, + AdviseOnEmitNode = 2, + NoSubstitution = 4, + CapturesThis = 8, + NoLeadingSourceMap = 16, + NoTrailingSourceMap = 32, + NoSourceMap = 48, + NoNestedSourceMaps = 64, + NoTokenLeadingSourceMaps = 128, + NoTokenTrailingSourceMaps = 256, + NoTokenSourceMaps = 384, + NoLeadingComments = 512, + NoTrailingComments = 1024, + NoComments = 1536, + NoNestedComments = 2048, + HelperName = 4096, + ExportName = 8192, + LocalName = 16384, + InternalName = 32768, + Indented = 65536, + NoIndentation = 131072, + AsyncFunctionBody = 262144, + ReuseTempVariableScope = 524288, + CustomPrologue = 1048576, + NoHoisting = 2097152, + HasEndOfDeclarationMarker = 4194304, + Iterator = 8388608, + NoAsciiEscaping = 16777216 + } + interface EmitHelper { + readonly name: string; + readonly scoped: boolean; + readonly text: string | ((node: EmitHelperUniqueNameCallback) => string); + readonly priority?: number; + } + type EmitHelperUniqueNameCallback = (name: string) => string; + enum EmitHint { + SourceFile = 0, + Expression = 1, + IdentifierName = 2, + MappedTypeParameter = 3, + Unspecified = 4, + EmbeddedStatement = 5 + } + interface TransformationContext { + /** Gets the compiler options supplied to the transformer. */ + getCompilerOptions(): CompilerOptions; + /** Starts a new lexical environment. */ + startLexicalEnvironment(): void; + /** Suspends the current lexical environment, usually after visiting a parameter list. */ + suspendLexicalEnvironment(): void; + /** Resumes a suspended lexical environment, usually before visiting a function body. */ + resumeLexicalEnvironment(): void; + /** Ends a lexical environment, returning any declarations. */ + endLexicalEnvironment(): Statement[] | undefined; + /** Hoists a function declaration to the containing scope. */ + hoistFunctionDeclaration(node: FunctionDeclaration): void; + /** Hoists a variable declaration to the containing scope. */ + hoistVariableDeclaration(node: Identifier): void; + /** Records a request for a non-scoped emit helper in the current context. */ + requestEmitHelper(helper: EmitHelper): void; + /** Gets and resets the requested non-scoped emit helpers. */ + readEmitHelpers(): EmitHelper[] | undefined; + /** Enables expression substitutions in the pretty printer for the provided SyntaxKind. */ + enableSubstitution(kind: SyntaxKind): void; + /** Determines whether expression substitutions are enabled for the provided node. */ + isSubstitutionEnabled(node: Node): boolean; + /** + * Hook used by transformers to substitute expressions just before they + * are emitted by the pretty printer. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onSubstituteNode: (hint: EmitHint, node: Node) => Node; + /** + * Enables before/after emit notifications in the pretty printer for the provided + * SyntaxKind. + */ + enableEmitNotification(kind: SyntaxKind): void; + /** + * Determines whether before/after emit notifications should be raised in the pretty + * printer when it emits a node. + */ + isEmitNotificationEnabled(node: Node): boolean; + /** + * Hook used to allow transformers to capture state before or after + * the printer emits a node. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void; + } + interface TransformationResult<T extends Node> { + /** Gets the transformed source files. */ + transformed: T[]; + /** Gets diagnostics for the transformation. */ + diagnostics?: DiagnosticWithLocation[]; + /** + * Gets a substitute for a node, if one is available; otherwise, returns the original node. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to substitute. + */ + substituteNode(hint: EmitHint, node: Node): Node; + /** + * Emits a node with possible notification. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to emit. + * @param emitCallback A callback used to emit the node. + */ + emitNodeWithNotification(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void): void; + /** + * Clean up EmitNode entries on any parse-tree nodes. + */ + dispose(): void; + } + /** + * A function that is used to initialize and return a `Transformer` callback, which in turn + * will be used to transform one or more nodes. + */ + type TransformerFactory<T extends Node> = (context: TransformationContext) => Transformer<T>; + /** + * A function that transforms a node. + */ + type Transformer<T extends Node> = (node: T) => T; + /** + * A function that accepts and possibly transforms a node. + */ + type Visitor = (node: Node) => VisitResult<Node>; + type VisitResult<T extends Node> = T | T[] | undefined; + interface Printer { + /** + * Print a node and its subtree as-is, without any emit transformations. + * @param hint A value indicating the purpose of a node. This is primarily used to + * distinguish between an `Identifier` used in an expression position, versus an + * `Identifier` used as an `IdentifierName` as part of a declaration. For most nodes you + * should just pass `Unspecified`. + * @param node The node to print. The node and its subtree are printed as-is, without any + * emit transformations. + * @param sourceFile A source file that provides context for the node. The source text of + * the file is used to emit the original source content for literals and identifiers, while + * the identifiers of the source file are used when generating unique names to avoid + * collisions. + */ + printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string; + /** + * Prints a list of nodes using the given format flags + */ + printList<T extends Node>(format: ListFormat, list: NodeArray<T>, sourceFile: SourceFile): string; + /** + * Prints a source file as-is, without any emit transformations. + */ + printFile(sourceFile: SourceFile): string; + /** + * Prints a bundle of source files as-is, without any emit transformations. + */ + printBundle(bundle: Bundle): string; + } + interface PrintHandlers { + /** + * A hook used by the Printer when generating unique names to avoid collisions with + * globally defined names that exist outside of the current source file. + */ + hasGlobalName?(name: string): boolean; + /** + * A hook used by the Printer to provide notifications prior to emitting a node. A + * compatible implementation **must** invoke `emitCallback` with the provided `hint` and + * `node` values. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @param emitCallback A callback that, when invoked, will emit the node. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * onEmitNode(hint, node, emitCallback) { + * // set up or track state prior to emitting the node... + * emitCallback(hint, node); + * // restore state after emitting the node... + * } + * }); + * ``` + */ + onEmitNode?(hint: EmitHint, node: Node | undefined, emitCallback: (hint: EmitHint, node: Node | undefined) => void): void; + /** + * A hook used by the Printer to perform just-in-time substitution of a node. This is + * primarily used by node transformations that need to substitute one node for another, + * such as replacing `myExportedVar` with `exports.myExportedVar`. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * substituteNode(hint, node) { + * // perform substitution if necessary... + * return node; + * } + * }); + * ``` + */ + substituteNode?(hint: EmitHint, node: Node): Node; + } + interface PrinterOptions { + removeComments?: boolean; + newLine?: NewLineKind; + omitTrailingSemicolon?: boolean; + noEmitHelpers?: boolean; + } + interface GetEffectiveTypeRootsHost { + directoryExists?(directoryName: string): boolean; + getCurrentDirectory?(): string; + } + interface TextSpan { + start: number; + length: number; + } + interface TextChangeRange { + span: TextSpan; + newLength: number; + } + interface SyntaxList extends Node { + _children: Node[]; + } + enum ListFormat { + None = 0, + SingleLine = 0, + MultiLine = 1, + PreserveLines = 2, + LinesMask = 3, + NotDelimited = 0, + BarDelimited = 4, + AmpersandDelimited = 8, + CommaDelimited = 16, + AsteriskDelimited = 32, + DelimitersMask = 60, + AllowTrailingComma = 64, + Indented = 128, + SpaceBetweenBraces = 256, + SpaceBetweenSiblings = 512, + Braces = 1024, + Parenthesis = 2048, + AngleBrackets = 4096, + SquareBrackets = 8192, + BracketsMask = 15360, + OptionalIfUndefined = 16384, + OptionalIfEmpty = 32768, + Optional = 49152, + PreferNewLine = 65536, + NoTrailingNewLine = 131072, + NoInterveningComments = 262144, + NoSpaceIfEmpty = 524288, + SingleElement = 1048576, + Modifiers = 262656, + HeritageClauses = 512, + SingleLineTypeLiteralMembers = 768, + MultiLineTypeLiteralMembers = 32897, + TupleTypeElements = 528, + UnionTypeConstituents = 516, + IntersectionTypeConstituents = 520, + ObjectBindingPatternElements = 525136, + ArrayBindingPatternElements = 524880, + ObjectLiteralExpressionProperties = 526226, + ArrayLiteralExpressionElements = 8914, + CommaListElements = 528, + CallExpressionArguments = 2576, + NewExpressionArguments = 18960, + TemplateExpressionSpans = 262144, + SingleLineBlockStatements = 768, + MultiLineBlockStatements = 129, + VariableDeclarationList = 528, + SingleLineFunctionBodyStatements = 768, + MultiLineFunctionBodyStatements = 1, + ClassHeritageClauses = 0, + ClassMembers = 129, + InterfaceMembers = 129, + EnumMembers = 145, + CaseBlockClauses = 129, + NamedImportsOrExportsElements = 525136, + JsxElementOrFragmentChildren = 262144, + JsxElementAttributes = 262656, + CaseOrDefaultClauseStatements = 163969, + HeritageClauseTypes = 528, + SourceFileStatements = 131073, + Decorators = 49153, + TypeArguments = 53776, + TypeParameters = 53776, + Parameters = 2576, + IndexSignatureParameters = 8848, + JSDocComment = 33 + } + interface UserPreferences { + readonly disableSuggestions?: boolean; + readonly quotePreference?: "double" | "single"; + readonly includeCompletionsForModuleExports?: boolean; + readonly includeCompletionsWithInsertText?: boolean; + readonly importModuleSpecifierPreference?: "relative" | "non-relative"; + /** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */ + readonly importModuleSpecifierEnding?: "minimal" | "index" | "js"; + readonly allowTextChangesInNewFiles?: boolean; + } + /** Represents a bigint literal value without requiring bigint support */ + interface PseudoBigInt { + negative: boolean; + base10Value: string; + } +} +declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; +declare function clearTimeout(handle: any): void; +declare namespace ts { + enum FileWatcherEventKind { + Created = 0, + Changed = 1, + Deleted = 2 + } + type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void; + type DirectoryWatcherCallback = (fileName: string) => void; + interface System { + args: string[]; + newLine: string; + useCaseSensitiveFileNames: boolean; + write(s: string): void; + writeOutputIsTTY?(): boolean; + readFile(path: string, encoding?: string): string | undefined; + getFileSize?(path: string): number; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + /** + * @pollingInterval - this parameter is used in polling-based watchers and ignored in watchers that + * use native OS file watching + */ + watchFile?(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + resolvePath(path: string): string; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + getExecutingFilePath(): string; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + getModifiedTime?(path: string): Date | undefined; + setModifiedTime?(path: string, time: Date): void; + deleteFile?(path: string): void; + /** + * A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) + */ + createHash?(data: string): string; + /** This must be cryptographically secure. Only implement this method using `crypto.createHash("sha256")`. */ + createSHA256Hash?(data: string): string; + getMemoryUsage?(): number; + exit(exitCode?: number): void; + realpath?(path: string): string; + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + clearTimeout?(timeoutId: any): void; + clearScreen?(): void; + base64decode?(input: string): string; + base64encode?(input: string): string; + } + interface FileWatcher { + close(): void; + } + function getNodeMajorVersion(): number | undefined; + let sys: System; +} +declare namespace ts { + type ErrorCallback = (message: DiagnosticMessage, length: number) => void; + interface Scanner { + getStartPos(): number; + getToken(): SyntaxKind; + getTextPos(): number; + getTokenPos(): number; + getTokenText(): string; + getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; + hasPrecedingLineBreak(): boolean; + isIdentifier(): boolean; + isReservedWord(): boolean; + isUnterminated(): boolean; + reScanGreaterToken(): SyntaxKind; + reScanSlashToken(): SyntaxKind; + reScanTemplateToken(): SyntaxKind; + scanJsxIdentifier(): SyntaxKind; + scanJsxAttributeValue(): SyntaxKind; + reScanJsxToken(): JsxTokenSyntaxKind; + scanJsxToken(): JsxTokenSyntaxKind; + scanJSDocToken(): JsDocSyntaxKind; + scan(): SyntaxKind; + getText(): string; + setText(text: string | undefined, start?: number, length?: number): void; + setOnError(onError: ErrorCallback | undefined): void; + setScriptTarget(scriptTarget: ScriptTarget): void; + setLanguageVariant(variant: LanguageVariant): void; + setTextPos(textPos: number): void; + lookAhead<T>(callback: () => T): T; + scanRange<T>(start: number, length: number, callback: () => T): T; + tryScan<T>(callback: () => T): T; + } + function tokenToString(t: SyntaxKind): string | undefined; + function getPositionOfLineAndCharacter(sourceFile: SourceFileLike, line: number, character: number): number; + function getLineAndCharacterOfPosition(sourceFile: SourceFileLike, position: number): LineAndCharacter; + function isWhiteSpaceLike(ch: number): boolean; + /** Does not include line breaks. For that, see isWhiteSpaceLike. */ + function isWhiteSpaceSingleLine(ch: number): boolean; + function isLineBreak(ch: number): boolean; + function couldStartTrivia(text: string, pos: number): boolean; + function forEachLeadingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function forEachTrailingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function reduceEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function reduceEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function getLeadingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + function getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + /** Optionally, get the shebang */ + function getShebang(text: string): string | undefined; + function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner; +} +declare namespace ts { + function isExternalModuleNameRelative(moduleName: string): boolean; + function sortAndDeduplicateDiagnostics<T extends Diagnostic>(diagnostics: ReadonlyArray<T>): SortedReadonlyArray<T>; +} +declare namespace ts { + function getDefaultLibFileName(options: CompilerOptions): string; + function textSpanEnd(span: TextSpan): number; + function textSpanIsEmpty(span: TextSpan): boolean; + function textSpanContainsPosition(span: TextSpan, position: number): boolean; + function textSpanContainsTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlapsWith(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function textSpanIntersectsWithTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean; + function decodedTextSpanIntersectsWith(start1: number, length1: number, start2: number, length2: number): boolean; + function textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean; + function textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function createTextSpan(start: number, length: number): TextSpan; + function createTextSpanFromBounds(start: number, end: number): TextSpan; + function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; + function textChangeRangeIsUnchanged(range: TextChangeRange): boolean; + function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; + let unchangedTextChangeRange: TextChangeRange; + /** + * Called to merge all the changes that occurred across several versions of a script snapshot + * into a single change. i.e. if a user keeps making successive edits to a script we will + * have a text change from V1 to V2, V2 to V3, ..., Vn. + * + * This function will then merge those changes into a single change range valid between V1 and + * Vn. + */ + function collapseTextChangeRangesAcrossMultipleVersions(changes: ReadonlyArray<TextChangeRange>): TextChangeRange; + function getTypeParameterOwner(d: Declaration): Declaration | undefined; + type ParameterPropertyDeclaration = ParameterDeclaration & { + parent: ConstructorDeclaration; + name: Identifier; + }; + function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration; + function isEmptyBindingPattern(node: BindingName): node is BindingPattern; + function isEmptyBindingElement(node: BindingElement): boolean; + function walkUpBindingElementsAndPatterns(binding: BindingElement): VariableDeclaration | ParameterDeclaration; + function getCombinedModifierFlags(node: Declaration): ModifierFlags; + function getCombinedNodeFlags(node: Node): NodeFlags; + /** + * Checks to see if the locale is in the appropriate format, + * and if it is, attempts to set the appropriate language. + */ + function validateLocaleAndSetLanguage(locale: string, sys: { + getExecutingFilePath(): string; + resolvePath(path: string): string; + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + }, errors?: Push<Diagnostic>): void; + function getOriginalNode(node: Node): Node; + function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T; + function getOriginalNode(node: Node | undefined): Node | undefined; + function getOriginalNode<T extends Node>(node: Node | undefined, nodeTest: (node: Node | undefined) => node is T): T | undefined; + /** + * Gets a value indicating whether a node originated in the parse tree. + * + * @param node The node to test. + */ + function isParseTreeNode(node: Node): boolean; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode(node: Node): Node; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @param nodeTest A callback used to ensure the correct type of parse tree node is returned. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode<T extends Node>(node: Node | undefined, nodeTest?: (node: Node) => node is T): T | undefined; + /** Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' */ + function escapeLeadingUnderscores(identifier: string): __String; + /** + * Remove extra underscore from escaped identifier text content. + * + * @param identifier The escaped identifier text. + * @returns The unescaped identifier text. + */ + function unescapeLeadingUnderscores(identifier: __String): string; + function idText(identifier: Identifier): string; + function symbolName(symbol: Symbol): string; + function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | undefined; + function getNameOfDeclaration(declaration: Declaration | Expression): DeclarationName | undefined; + /** + * Gets the JSDoc parameter tags for the node if present. + * + * @remarks Returns any JSDoc param tag whose name matches the provided + * parameter, whether a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the param + * tag on the containing function expression would be first. + * + * For binding patterns, parameter tags are matched by position. + */ + function getJSDocParameterTags(param: ParameterDeclaration): ReadonlyArray<JSDocParameterTag>; + /** + * Gets the JSDoc type parameter tags for the node if present. + * + * @remarks Returns any JSDoc template tag whose names match the provided + * parameter, whether a template tag on a containing function + * expression, or a template tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the template + * tag on the containing function expression would be first. + */ + function getJSDocTypeParameterTags(param: TypeParameterDeclaration): ReadonlyArray<JSDocTemplateTag>; + /** + * Return true if the node has JSDoc parameter tags. + * + * @remarks Includes parameter tags that are not directly on the node, + * for example on a variable declaration whose initializer is a function expression. + */ + function hasJSDocParameterTags(node: FunctionLikeDeclaration | SignatureDeclaration): boolean; + /** Gets the JSDoc augments tag for the node if present */ + function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined; + /** Gets the JSDoc class tag for the node if present */ + function getJSDocClassTag(node: Node): JSDocClassTag | undefined; + /** Gets the JSDoc enum tag for the node if present */ + function getJSDocEnumTag(node: Node): JSDocEnumTag | undefined; + /** Gets the JSDoc this tag for the node if present */ + function getJSDocThisTag(node: Node): JSDocThisTag | undefined; + /** Gets the JSDoc return tag for the node if present */ + function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined; + /** Gets the JSDoc template tag for the node if present */ + function getJSDocTemplateTag(node: Node): JSDocTemplateTag | undefined; + /** Gets the JSDoc type tag for the node if present and valid */ + function getJSDocTypeTag(node: Node): JSDocTypeTag | undefined; + /** + * Gets the type node for the node if provided via JSDoc. + * + * @remarks The search includes any JSDoc param tag that relates + * to the provided parameter, for example a type tag on the + * parameter itself, or a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are examined first, so in the previous example, the type + * tag directly on the node would be returned. + */ + function getJSDocType(node: Node): TypeNode | undefined; + /** + * Gets the return type node for the node if provided via JSDoc return tag or type tag. + * + * @remarks `getJSDocReturnTag` just gets the whole JSDoc tag. This function + * gets the type from inside the braces, after the fat arrow, etc. + */ + function getJSDocReturnType(node: Node): TypeNode | undefined; + /** Get all JSDoc tags related to a node, including those on parent nodes. */ + function getJSDocTags(node: Node): ReadonlyArray<JSDocTag>; + /** Gets all JSDoc tags of a specified kind, or undefined if not present. */ + function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): ReadonlyArray<JSDocTag>; + /** + * Gets the effective type parameters. If the node was parsed in a + * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + */ + function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): ReadonlyArray<TypeParameterDeclaration>; + function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined; +} +declare namespace ts { + function isNumericLiteral(node: Node): node is NumericLiteral; + function isBigIntLiteral(node: Node): node is BigIntLiteral; + function isStringLiteral(node: Node): node is StringLiteral; + function isJsxText(node: Node): node is JsxText; + function isRegularExpressionLiteral(node: Node): node is RegularExpressionLiteral; + function isNoSubstitutionTemplateLiteral(node: Node): node is NoSubstitutionTemplateLiteral; + function isTemplateHead(node: Node): node is TemplateHead; + function isTemplateMiddle(node: Node): node is TemplateMiddle; + function isTemplateTail(node: Node): node is TemplateTail; + function isIdentifier(node: Node): node is Identifier; + function isQualifiedName(node: Node): node is QualifiedName; + function isComputedPropertyName(node: Node): node is ComputedPropertyName; + function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration; + function isParameter(node: Node): node is ParameterDeclaration; + function isDecorator(node: Node): node is Decorator; + function isPropertySignature(node: Node): node is PropertySignature; + function isPropertyDeclaration(node: Node): node is PropertyDeclaration; + function isMethodSignature(node: Node): node is MethodSignature; + function isMethodDeclaration(node: Node): node is MethodDeclaration; + function isConstructorDeclaration(node: Node): node is ConstructorDeclaration; + function isGetAccessorDeclaration(node: Node): node is GetAccessorDeclaration; + function isSetAccessorDeclaration(node: Node): node is SetAccessorDeclaration; + function isCallSignatureDeclaration(node: Node): node is CallSignatureDeclaration; + function isConstructSignatureDeclaration(node: Node): node is ConstructSignatureDeclaration; + function isIndexSignatureDeclaration(node: Node): node is IndexSignatureDeclaration; + function isTypePredicateNode(node: Node): node is TypePredicateNode; + function isTypeReferenceNode(node: Node): node is TypeReferenceNode; + function isFunctionTypeNode(node: Node): node is FunctionTypeNode; + function isConstructorTypeNode(node: Node): node is ConstructorTypeNode; + function isTypeQueryNode(node: Node): node is TypeQueryNode; + function isTypeLiteralNode(node: Node): node is TypeLiteralNode; + function isArrayTypeNode(node: Node): node is ArrayTypeNode; + function isTupleTypeNode(node: Node): node is TupleTypeNode; + function isUnionTypeNode(node: Node): node is UnionTypeNode; + function isIntersectionTypeNode(node: Node): node is IntersectionTypeNode; + function isConditionalTypeNode(node: Node): node is ConditionalTypeNode; + function isInferTypeNode(node: Node): node is InferTypeNode; + function isParenthesizedTypeNode(node: Node): node is ParenthesizedTypeNode; + function isThisTypeNode(node: Node): node is ThisTypeNode; + function isTypeOperatorNode(node: Node): node is TypeOperatorNode; + function isIndexedAccessTypeNode(node: Node): node is IndexedAccessTypeNode; + function isMappedTypeNode(node: Node): node is MappedTypeNode; + function isLiteralTypeNode(node: Node): node is LiteralTypeNode; + function isImportTypeNode(node: Node): node is ImportTypeNode; + function isObjectBindingPattern(node: Node): node is ObjectBindingPattern; + function isArrayBindingPattern(node: Node): node is ArrayBindingPattern; + function isBindingElement(node: Node): node is BindingElement; + function isArrayLiteralExpression(node: Node): node is ArrayLiteralExpression; + function isObjectLiteralExpression(node: Node): node is ObjectLiteralExpression; + function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression; + function isElementAccessExpression(node: Node): node is ElementAccessExpression; + function isCallExpression(node: Node): node is CallExpression; + function isNewExpression(node: Node): node is NewExpression; + function isTaggedTemplateExpression(node: Node): node is TaggedTemplateExpression; + function isTypeAssertion(node: Node): node is TypeAssertion; + function isParenthesizedExpression(node: Node): node is ParenthesizedExpression; + function skipPartiallyEmittedExpressions(node: Expression): Expression; + function skipPartiallyEmittedExpressions(node: Node): Node; + function isFunctionExpression(node: Node): node is FunctionExpression; + function isArrowFunction(node: Node): node is ArrowFunction; + function isDeleteExpression(node: Node): node is DeleteExpression; + function isTypeOfExpression(node: Node): node is TypeOfExpression; + function isVoidExpression(node: Node): node is VoidExpression; + function isAwaitExpression(node: Node): node is AwaitExpression; + function isPrefixUnaryExpression(node: Node): node is PrefixUnaryExpression; + function isPostfixUnaryExpression(node: Node): node is PostfixUnaryExpression; + function isBinaryExpression(node: Node): node is BinaryExpression; + function isConditionalExpression(node: Node): node is ConditionalExpression; + function isTemplateExpression(node: Node): node is TemplateExpression; + function isYieldExpression(node: Node): node is YieldExpression; + function isSpreadElement(node: Node): node is SpreadElement; + function isClassExpression(node: Node): node is ClassExpression; + function isOmittedExpression(node: Node): node is OmittedExpression; + function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments; + function isAsExpression(node: Node): node is AsExpression; + function isNonNullExpression(node: Node): node is NonNullExpression; + function isMetaProperty(node: Node): node is MetaProperty; + function isTemplateSpan(node: Node): node is TemplateSpan; + function isSemicolonClassElement(node: Node): node is SemicolonClassElement; + function isBlock(node: Node): node is Block; + function isVariableStatement(node: Node): node is VariableStatement; + function isEmptyStatement(node: Node): node is EmptyStatement; + function isExpressionStatement(node: Node): node is ExpressionStatement; + function isIfStatement(node: Node): node is IfStatement; + function isDoStatement(node: Node): node is DoStatement; + function isWhileStatement(node: Node): node is WhileStatement; + function isForStatement(node: Node): node is ForStatement; + function isForInStatement(node: Node): node is ForInStatement; + function isForOfStatement(node: Node): node is ForOfStatement; + function isContinueStatement(node: Node): node is ContinueStatement; + function isBreakStatement(node: Node): node is BreakStatement; + function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement; + function isReturnStatement(node: Node): node is ReturnStatement; + function isWithStatement(node: Node): node is WithStatement; + function isSwitchStatement(node: Node): node is SwitchStatement; + function isLabeledStatement(node: Node): node is LabeledStatement; + function isThrowStatement(node: Node): node is ThrowStatement; + function isTryStatement(node: Node): node is TryStatement; + function isDebuggerStatement(node: Node): node is DebuggerStatement; + function isVariableDeclaration(node: Node): node is VariableDeclaration; + function isVariableDeclarationList(node: Node): node is VariableDeclarationList; + function isFunctionDeclaration(node: Node): node is FunctionDeclaration; + function isClassDeclaration(node: Node): node is ClassDeclaration; + function isInterfaceDeclaration(node: Node): node is InterfaceDeclaration; + function isTypeAliasDeclaration(node: Node): node is TypeAliasDeclaration; + function isEnumDeclaration(node: Node): node is EnumDeclaration; + function isModuleDeclaration(node: Node): node is ModuleDeclaration; + function isModuleBlock(node: Node): node is ModuleBlock; + function isCaseBlock(node: Node): node is CaseBlock; + function isNamespaceExportDeclaration(node: Node): node is NamespaceExportDeclaration; + function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration; + function isImportDeclaration(node: Node): node is ImportDeclaration; + function isImportClause(node: Node): node is ImportClause; + function isNamespaceImport(node: Node): node is NamespaceImport; + function isNamedImports(node: Node): node is NamedImports; + function isImportSpecifier(node: Node): node is ImportSpecifier; + function isExportAssignment(node: Node): node is ExportAssignment; + function isExportDeclaration(node: Node): node is ExportDeclaration; + function isNamedExports(node: Node): node is NamedExports; + function isExportSpecifier(node: Node): node is ExportSpecifier; + function isMissingDeclaration(node: Node): node is MissingDeclaration; + function isExternalModuleReference(node: Node): node is ExternalModuleReference; + function isJsxElement(node: Node): node is JsxElement; + function isJsxSelfClosingElement(node: Node): node is JsxSelfClosingElement; + function isJsxOpeningElement(node: Node): node is JsxOpeningElement; + function isJsxClosingElement(node: Node): node is JsxClosingElement; + function isJsxFragment(node: Node): node is JsxFragment; + function isJsxOpeningFragment(node: Node): node is JsxOpeningFragment; + function isJsxClosingFragment(node: Node): node is JsxClosingFragment; + function isJsxAttribute(node: Node): node is JsxAttribute; + function isJsxAttributes(node: Node): node is JsxAttributes; + function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute; + function isJsxExpression(node: Node): node is JsxExpression; + function isCaseClause(node: Node): node is CaseClause; + function isDefaultClause(node: Node): node is DefaultClause; + function isHeritageClause(node: Node): node is HeritageClause; + function isCatchClause(node: Node): node is CatchClause; + function isPropertyAssignment(node: Node): node is PropertyAssignment; + function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment; + function isSpreadAssignment(node: Node): node is SpreadAssignment; + function isEnumMember(node: Node): node is EnumMember; + function isSourceFile(node: Node): node is SourceFile; + function isBundle(node: Node): node is Bundle; + function isUnparsedSource(node: Node): node is UnparsedSource; + function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; + function isJSDocAllType(node: JSDocAllType): node is JSDocAllType; + function isJSDocUnknownType(node: Node): node is JSDocUnknownType; + function isJSDocNullableType(node: Node): node is JSDocNullableType; + function isJSDocNonNullableType(node: Node): node is JSDocNonNullableType; + function isJSDocOptionalType(node: Node): node is JSDocOptionalType; + function isJSDocFunctionType(node: Node): node is JSDocFunctionType; + function isJSDocVariadicType(node: Node): node is JSDocVariadicType; + function isJSDoc(node: Node): node is JSDoc; + function isJSDocAugmentsTag(node: Node): node is JSDocAugmentsTag; + function isJSDocClassTag(node: Node): node is JSDocClassTag; + function isJSDocEnumTag(node: Node): node is JSDocEnumTag; + function isJSDocThisTag(node: Node): node is JSDocThisTag; + function isJSDocParameterTag(node: Node): node is JSDocParameterTag; + function isJSDocReturnTag(node: Node): node is JSDocReturnTag; + function isJSDocTypeTag(node: Node): node is JSDocTypeTag; + function isJSDocTemplateTag(node: Node): node is JSDocTemplateTag; + function isJSDocTypedefTag(node: Node): node is JSDocTypedefTag; + function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag; + function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag; + function isJSDocTypeLiteral(node: Node): node is JSDocTypeLiteral; + function isJSDocCallbackTag(node: Node): node is JSDocCallbackTag; + function isJSDocSignature(node: Node): node is JSDocSignature; +} +declare namespace ts { + /** + * True if node is of some token syntax kind. + * For example, this is true for an IfKeyword but not for an IfStatement. + * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail. + */ + function isToken(n: Node): boolean; + function isLiteralExpression(node: Node): node is LiteralExpression; + type TemplateLiteralToken = NoSubstitutionTemplateLiteral | TemplateHead | TemplateMiddle | TemplateTail; + function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken; + function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail; + function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier; + function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken; + function isModifier(node: Node): node is Modifier; + function isEntityName(node: Node): node is EntityName; + function isPropertyName(node: Node): node is PropertyName; + function isBindingName(node: Node): node is BindingName; + function isFunctionLike(node: Node): node is SignatureDeclaration; + function isClassElement(node: Node): node is ClassElement; + function isClassLike(node: Node): node is ClassLikeDeclaration; + function isAccessor(node: Node): node is AccessorDeclaration; + function isTypeElement(node: Node): node is TypeElement; + function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement; + function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike; + /** + * Node test that determines whether a node is a valid type node. + * This differs from the `isPartOfTypeNode` function which determines whether a node is *part* + * of a TypeNode. + */ + function isTypeNode(node: Node): node is TypeNode; + function isFunctionOrConstructorTypeNode(node: Node): node is FunctionTypeNode | ConstructorTypeNode; + function isPropertyAccessOrQualifiedName(node: Node): node is PropertyAccessExpression | QualifiedName; + function isCallLikeExpression(node: Node): node is CallLikeExpression; + function isCallOrNewExpression(node: Node): node is CallExpression | NewExpression; + function isTemplateLiteral(node: Node): node is TemplateLiteral; + function isAssertionExpression(node: Node): node is AssertionExpression; + function isIterationStatement(node: Node, lookInLabeledStatements: false): node is IterationStatement; + function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement | LabeledStatement; + function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement; + function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause; + /** True if node is of a kind that may contain comment text. */ + function isJSDocCommentContainingNode(node: Node): boolean; + function isSetAccessor(node: Node): node is SetAccessorDeclaration; + function isGetAccessor(node: Node): node is GetAccessorDeclaration; + function isObjectLiteralElement(node: Node): node is ObjectLiteralElement; + function isStringLiteralLike(node: Node): node is StringLiteralLike; +} +declare namespace ts { + function createNode(kind: SyntaxKind, pos?: number, end?: number): Node; + /** + * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes + * stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, + * embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns + * a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned. + * + * @param node a given node to visit its children + * @param cbNode a callback to be invoked for all child nodes + * @param cbNodes a callback to be invoked for embedded array + * + * @remarks `forEachChild` must visit the children of a node in the order + * that they appear in the source code. The language service depends on this property to locate nodes by position. + */ + function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + function createSourceFile(fileName: string, sourceText: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind): SourceFile; + function parseIsolatedEntityName(text: string, languageVersion: ScriptTarget): EntityName | undefined; + /** + * Parse json text into SyntaxTree and return node and parse errors if any + * @param fileName + * @param sourceText + */ + function parseJsonText(fileName: string, sourceText: string): JsonSourceFile; + function isExternalModule(file: SourceFile): boolean; + function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile; +} +declare namespace ts { + function parseCommandLine(commandLine: ReadonlyArray<string>, readFile?: (path: string) => string | undefined): ParsedCommandLine; + type DiagnosticReporter = (diagnostic: Diagnostic) => void; + /** + * Reports config file diagnostics + */ + interface ConfigFileDiagnosticsReporter { + /** + * Reports unrecoverable error when parsing config file + */ + onUnRecoverableConfigFileDiagnostic: DiagnosticReporter; + } + /** + * Interface extending ParseConfigHost to support ParseConfigFile that reads config file and reports errors + */ + interface ParseConfigFileHost extends ParseConfigHost, ConfigFileDiagnosticsReporter { + getCurrentDirectory(): string; + } + /** + * Reads the config file, reports errors if any and exits if the config file cannot be found + */ + function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readConfigFile(fileName: string, readFile: (path: string) => string | undefined): { + config?: any; + error?: Diagnostic; + }; + /** + * Parse the text of the tsconfig.json file + * @param fileName The path to the config file + * @param jsonText The text of the config file + */ + function parseConfigFileTextToJson(fileName: string, jsonText: string): { + config?: any; + error?: Diagnostic; + }; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readJsonConfigFile(fileName: string, readFile: (path: string) => string | undefined): TsConfigSourceFile; + /** + * Convert the json syntax tree into the json value + */ + function convertToObject(sourceFile: JsonSourceFile, errors: Push<Diagnostic>): any; + /** + * Parse the contents of a config file (tsconfig.json). + * @param json The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + /** + * Parse the contents of a config file (tsconfig.json). + * @param jsonNode The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: CompilerOptions; + errors: Diagnostic[]; + }; + function convertTypeAcquisitionFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: TypeAcquisition; + errors: Diagnostic[]; + }; +} +declare namespace ts { + function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined; + /** + * @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown. + * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups + * is assumed to be the same as root directory of the project. + */ + function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations; + /** + * Given a set of options, returns the set of type directive names + * that should be included for this program automatically. + * This list could either come from the config file, + * or from enumerating the types root + initial secondary types lookup location. + * More type directives might appear in the program later as a result of loading actual source files; + * this list is only the set of defaults that are implicitly included. + */ + function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; + /** + * Cached module resolutions per containing directory. + * This assumes that any module id will have the same resolution for sibling files located in the same folder. + */ + interface ModuleResolutionCache extends NonRelativeModuleNameResolutionCache { + getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<ResolvedModuleWithFailedLookupLocations>; + } + /** + * Stored map from non-relative module name to a table: directory -> result of module lookup in this directory + * We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive. + */ + interface NonRelativeModuleNameResolutionCache { + getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache; + } + interface PerModuleNameCache { + get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined; + set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void; + } + function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): ModuleResolutionCache; + function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined; + function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; +} +declare namespace ts { + function createNodeArray<T extends Node>(elements?: ReadonlyArray<T>, hasTrailingComma?: boolean): NodeArray<T>; + /** If a node is passed, creates a string literal whose source text is read from a source node during emit. */ + function createLiteral(value: string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier): StringLiteral; + function createLiteral(value: number | PseudoBigInt): NumericLiteral; + function createLiteral(value: boolean): BooleanLiteral; + function createLiteral(value: string | number | PseudoBigInt | boolean): PrimaryExpression; + function createNumericLiteral(value: string): NumericLiteral; + function createBigIntLiteral(value: string): BigIntLiteral; + function createStringLiteral(text: string): StringLiteral; + function createRegularExpressionLiteral(text: string): RegularExpressionLiteral; + function createIdentifier(text: string): Identifier; + function updateIdentifier(node: Identifier): Identifier; + /** Create a unique temporary variable. */ + function createTempVariable(recordTempVariable: ((node: Identifier) => void) | undefined): Identifier; + /** Create a unique temporary variable for use in a loop. */ + function createLoopVariable(): Identifier; + /** Create a unique name based on the supplied text. */ + function createUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. */ + function createOptimisticUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. This does not consider names injected by the transformer. */ + function createFileLevelUniqueName(text: string): Identifier; + /** Create a unique name generated for a node. */ + function getGeneratedNameForNode(node: Node | undefined): Identifier; + function createToken<TKind extends SyntaxKind>(token: TKind): Token<TKind>; + function createSuper(): SuperExpression; + function createThis(): ThisExpression & Token<SyntaxKind.ThisKeyword>; + function createNull(): NullLiteral & Token<SyntaxKind.NullKeyword>; + function createTrue(): BooleanLiteral & Token<SyntaxKind.TrueKeyword>; + function createFalse(): BooleanLiteral & Token<SyntaxKind.FalseKeyword>; + function createModifier<T extends Modifier["kind"]>(kind: T): Token<T>; + function createModifiersFromModifierFlags(flags: ModifierFlags): Modifier[]; + function createQualifiedName(left: EntityName, right: string | Identifier): QualifiedName; + function updateQualifiedName(node: QualifiedName, left: EntityName, right: Identifier): QualifiedName; + function createComputedPropertyName(expression: Expression): ComputedPropertyName; + function updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName; + function createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration; + function updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration; + function createParameter(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration; + function updateParameter(node: ParameterDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration; + function createDecorator(expression: Expression): Decorator; + function updateDecorator(node: Decorator, expression: Expression): Decorator; + function createPropertySignature(modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function updatePropertySignature(node: PropertySignature, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function createProperty(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function updateProperty(node: PropertyDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function createMethodSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function updateMethodSignature(node: MethodSignature, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined, name: PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function createMethod(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function updateMethod(node: MethodDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function createConstructor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function updateConstructor(node: ConstructorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function createGetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function updateGetAccessor(node: GetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function createSetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function updateSetAccessor(node: SetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function createCallSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function createConstructSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function createIndexSignature(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; + function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode): TypePredicateNode; + function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray<TypeNode> | undefined): TypeReferenceNode; + function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray<TypeNode> | undefined): TypeReferenceNode; + function createFunctionTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function updateFunctionTypeNode(node: FunctionTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function createConstructorTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function createTypeQueryNode(exprName: EntityName): TypeQueryNode; + function updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName): TypeQueryNode; + function createTypeLiteralNode(members: ReadonlyArray<TypeElement> | undefined): TypeLiteralNode; + function updateTypeLiteralNode(node: TypeLiteralNode, members: NodeArray<TypeElement>): TypeLiteralNode; + function createArrayTypeNode(elementType: TypeNode): ArrayTypeNode; + function updateArrayTypeNode(node: ArrayTypeNode, elementType: TypeNode): ArrayTypeNode; + function createTupleTypeNode(elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function updateTupleTypeNode(node: TupleTypeNode, elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function createOptionalTypeNode(type: TypeNode): OptionalTypeNode; + function updateOptionalTypeNode(node: OptionalTypeNode, type: TypeNode): OptionalTypeNode; + function createRestTypeNode(type: TypeNode): RestTypeNode; + function updateRestTypeNode(node: RestTypeNode, type: TypeNode): RestTypeNode; + function createUnionTypeNode(types: ReadonlyArray<TypeNode>): UnionTypeNode; + function updateUnionTypeNode(node: UnionTypeNode, types: NodeArray<TypeNode>): UnionTypeNode; + function createIntersectionTypeNode(types: ReadonlyArray<TypeNode>): IntersectionTypeNode; + function updateIntersectionTypeNode(node: IntersectionTypeNode, types: NodeArray<TypeNode>): IntersectionTypeNode; + function createUnionOrIntersectionTypeNode(kind: SyntaxKind.UnionType | SyntaxKind.IntersectionType, types: ReadonlyArray<TypeNode>): UnionOrIntersectionTypeNode; + function createConditionalTypeNode(checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode; + function updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode; + function createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function createParenthesizedType(type: TypeNode): ParenthesizedTypeNode; + function updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode; + function createThisTypeNode(): ThisTypeNode; + function createTypeOperatorNode(type: TypeNode): TypeOperatorNode; + function createTypeOperatorNode(operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword, type: TypeNode): TypeOperatorNode; + function updateTypeOperatorNode(node: TypeOperatorNode, type: TypeNode): TypeOperatorNode; + function createIndexedAccessTypeNode(objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function updateIndexedAccessTypeNode(node: IndexedAccessTypeNode, objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function createMappedTypeNode(readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function updateMappedTypeNode(node: MappedTypeNode, readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function createLiteralTypeNode(literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function updateLiteralTypeNode(node: LiteralTypeNode, literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function createObjectBindingPattern(elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function updateObjectBindingPattern(node: ObjectBindingPattern, elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function createArrayBindingPattern(elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function updateArrayBindingPattern(node: ArrayBindingPattern, elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function createBindingElement(dotDotDotToken: DotDotDotToken | undefined, propertyName: string | PropertyName | undefined, name: string | BindingName, initializer?: Expression): BindingElement; + function updateBindingElement(node: BindingElement, dotDotDotToken: DotDotDotToken | undefined, propertyName: PropertyName | undefined, name: BindingName, initializer: Expression | undefined): BindingElement; + function createArrayLiteral(elements?: ReadonlyArray<Expression>, multiLine?: boolean): ArrayLiteralExpression; + function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression; + function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression; + function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression; + function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression; + function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression; + function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression; + function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression; + function createCall(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): CallExpression; + function updateCall(node: CallExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression>): CallExpression; + function createNew(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + function updateNew(node: NewExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + /** @deprecated */ function createTaggedTemplate(tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function createTaggedTemplate(tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + /** @deprecated */ function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + function createTypeAssertion(type: TypeNode, expression: Expression): TypeAssertion; + function updateTypeAssertion(node: TypeAssertion, type: TypeNode, expression: Expression): TypeAssertion; + function createParen(expression: Expression): ParenthesizedExpression; + function updateParen(node: ParenthesizedExpression, expression: Expression): ParenthesizedExpression; + function createFunctionExpression(modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration> | undefined, type: TypeNode | undefined, body: Block): FunctionExpression; + function updateFunctionExpression(node: FunctionExpression, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block): FunctionExpression; + function createArrowFunction(modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: EqualsGreaterThanToken | undefined, body: ConciseBody): ArrowFunction; + function updateArrowFunction(node: ArrowFunction, modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: Token<SyntaxKind.EqualsGreaterThanToken>, body: ConciseBody): ArrowFunction; + function createDelete(expression: Expression): DeleteExpression; + function updateDelete(node: DeleteExpression, expression: Expression): DeleteExpression; + function createTypeOf(expression: Expression): TypeOfExpression; + function updateTypeOf(node: TypeOfExpression, expression: Expression): TypeOfExpression; + function createVoid(expression: Expression): VoidExpression; + function updateVoid(node: VoidExpression, expression: Expression): VoidExpression; + function createAwait(expression: Expression): AwaitExpression; + function updateAwait(node: AwaitExpression, expression: Expression): AwaitExpression; + function createPrefix(operator: PrefixUnaryOperator, operand: Expression): PrefixUnaryExpression; + function updatePrefix(node: PrefixUnaryExpression, operand: Expression): PrefixUnaryExpression; + function createPostfix(operand: Expression, operator: PostfixUnaryOperator): PostfixUnaryExpression; + function updatePostfix(node: PostfixUnaryExpression, operand: Expression): PostfixUnaryExpression; + function createBinary(left: Expression, operator: BinaryOperator | BinaryOperatorToken, right: Expression): BinaryExpression; + function updateBinary(node: BinaryExpression, left: Expression, right: Expression, operator?: BinaryOperator | BinaryOperatorToken): BinaryExpression; + /** @deprecated */ function createConditional(condition: Expression, whenTrue: Expression, whenFalse: Expression): ConditionalExpression; + function createConditional(condition: Expression, questionToken: QuestionToken, whenTrue: Expression, colonToken: ColonToken, whenFalse: Expression): ConditionalExpression; + function updateConditional(node: ConditionalExpression, condition: Expression, questionToken: Token<SyntaxKind.QuestionToken>, whenTrue: Expression, colonToken: Token<SyntaxKind.ColonToken>, whenFalse: Expression): ConditionalExpression; + function createTemplateExpression(head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function createTemplateHead(text: string): TemplateHead; + function createTemplateMiddle(text: string): TemplateMiddle; + function createTemplateTail(text: string): TemplateTail; + function createNoSubstitutionTemplateLiteral(text: string): NoSubstitutionTemplateLiteral; + function createYield(expression?: Expression): YieldExpression; + function createYield(asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function updateYield(node: YieldExpression, asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function createSpread(expression: Expression): SpreadElement; + function updateSpread(node: SpreadElement, expression: Expression): SpreadElement; + function createClassExpression(modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function updateClassExpression(node: ClassExpression, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function createOmittedExpression(): OmittedExpression; + function createExpressionWithTypeArguments(typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function updateExpressionWithTypeArguments(node: ExpressionWithTypeArguments, typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function createAsExpression(expression: Expression, type: TypeNode): AsExpression; + function updateAsExpression(node: AsExpression, expression: Expression, type: TypeNode): AsExpression; + function createNonNullExpression(expression: Expression): NonNullExpression; + function updateNonNullExpression(node: NonNullExpression, expression: Expression): NonNullExpression; + function createMetaProperty(keywordToken: MetaProperty["keywordToken"], name: Identifier): MetaProperty; + function updateMetaProperty(node: MetaProperty, name: Identifier): MetaProperty; + function createTemplateSpan(expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function updateTemplateSpan(node: TemplateSpan, expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function createSemicolonClassElement(): SemicolonClassElement; + function createBlock(statements: ReadonlyArray<Statement>, multiLine?: boolean): Block; + function updateBlock(node: Block, statements: ReadonlyArray<Statement>): Block; + function createVariableStatement(modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList | ReadonlyArray<VariableDeclaration>): VariableStatement; + function updateVariableStatement(node: VariableStatement, modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList): VariableStatement; + function createEmptyStatement(): EmptyStatement; + function createExpressionStatement(expression: Expression): ExpressionStatement; + function updateExpressionStatement(node: ExpressionStatement, expression: Expression): ExpressionStatement; + /** @deprecated Use `createExpressionStatement` instead. */ + const createStatement: typeof createExpressionStatement; + /** @deprecated Use `updateExpressionStatement` instead. */ + const updateStatement: typeof updateExpressionStatement; + function createIf(expression: Expression, thenStatement: Statement, elseStatement?: Statement): IfStatement; + function updateIf(node: IfStatement, expression: Expression, thenStatement: Statement, elseStatement: Statement | undefined): IfStatement; + function createDo(statement: Statement, expression: Expression): DoStatement; + function updateDo(node: DoStatement, statement: Statement, expression: Expression): DoStatement; + function createWhile(expression: Expression, statement: Statement): WhileStatement; + function updateWhile(node: WhileStatement, expression: Expression, statement: Statement): WhileStatement; + function createFor(initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function updateFor(node: ForStatement, initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function createForIn(initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function updateForIn(node: ForInStatement, initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function createForOf(awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function updateForOf(node: ForOfStatement, awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function createContinue(label?: string | Identifier): ContinueStatement; + function updateContinue(node: ContinueStatement, label: Identifier | undefined): ContinueStatement; + function createBreak(label?: string | Identifier): BreakStatement; + function updateBreak(node: BreakStatement, label: Identifier | undefined): BreakStatement; + function createReturn(expression?: Expression): ReturnStatement; + function updateReturn(node: ReturnStatement, expression: Expression | undefined): ReturnStatement; + function createWith(expression: Expression, statement: Statement): WithStatement; + function updateWith(node: WithStatement, expression: Expression, statement: Statement): WithStatement; + function createSwitch(expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function updateSwitch(node: SwitchStatement, expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function createLabel(label: string | Identifier, statement: Statement): LabeledStatement; + function updateLabel(node: LabeledStatement, label: Identifier, statement: Statement): LabeledStatement; + function createThrow(expression: Expression): ThrowStatement; + function updateThrow(node: ThrowStatement, expression: Expression): ThrowStatement; + function createTry(tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function updateTry(node: TryStatement, tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function createDebuggerStatement(): DebuggerStatement; + function createVariableDeclaration(name: string | BindingName, type?: TypeNode, initializer?: Expression): VariableDeclaration; + function updateVariableDeclaration(node: VariableDeclaration, name: BindingName, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration; + function createVariableDeclarationList(declarations: ReadonlyArray<VariableDeclaration>, flags?: NodeFlags): VariableDeclarationList; + function updateVariableDeclarationList(node: VariableDeclarationList, declarations: ReadonlyArray<VariableDeclaration>): VariableDeclarationList; + function createFunctionDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function updateFunctionDeclaration(node: FunctionDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function createClassDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function updateClassDeclaration(node: ClassDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function createInterfaceDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function updateInterfaceDeclaration(node: InterfaceDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function createTypeAliasDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function createEnumDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function updateEnumDeclaration(node: EnumDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function createModuleDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration; + function updateModuleDeclaration(node: ModuleDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration; + function createModuleBlock(statements: ReadonlyArray<Statement>): ModuleBlock; + function updateModuleBlock(node: ModuleBlock, statements: ReadonlyArray<Statement>): ModuleBlock; + function createCaseBlock(clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function updateCaseBlock(node: CaseBlock, clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration; + function updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration; + function createImportEqualsDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function createImportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function updateImportDeclaration(node: ImportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function createImportClause(name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function updateImportClause(node: ImportClause, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function createNamespaceImport(name: Identifier): NamespaceImport; + function updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport; + function createNamedImports(elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function updateNamedImports(node: NamedImports, elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function createImportSpecifier(propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function createExportAssignment(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment; + function updateExportAssignment(node: ExportAssignment, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, expression: Expression): ExportAssignment; + function createExportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier?: Expression): ExportDeclaration; + function updateExportDeclaration(node: ExportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration; + function createNamedExports(elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function updateNamedExports(node: NamedExports, elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier; + function updateExportSpecifier(node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier; + function createExternalModuleReference(expression: Expression): ExternalModuleReference; + function updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference; + function createJsxElement(openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function updateJsxSelfClosingElement(node: JsxSelfClosingElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function createJsxOpeningElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function updateJsxOpeningElement(node: JsxOpeningElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function createJsxClosingElement(tagName: JsxTagNameExpression): JsxClosingElement; + function updateJsxClosingElement(node: JsxClosingElement, tagName: JsxTagNameExpression): JsxClosingElement; + function createJsxFragment(openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function createJsxAttributes(properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function updateJsxAttributes(node: JsxAttributes, properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute; + function updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute; + function createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression; + function updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression; + function createCaseClause(expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function updateCaseClause(node: CaseClause, expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function createDefaultClause(statements: ReadonlyArray<Statement>): DefaultClause; + function updateDefaultClause(node: DefaultClause, statements: ReadonlyArray<Statement>): DefaultClause; + function createHeritageClause(token: HeritageClause["token"], types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function updateHeritageClause(node: HeritageClause, types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function createCatchClause(variableDeclaration: string | VariableDeclaration | undefined, block: Block): CatchClause; + function updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block): CatchClause; + function createPropertyAssignment(name: string | PropertyName, initializer: Expression): PropertyAssignment; + function updatePropertyAssignment(node: PropertyAssignment, name: PropertyName, initializer: Expression): PropertyAssignment; + function createShorthandPropertyAssignment(name: string | Identifier, objectAssignmentInitializer?: Expression): ShorthandPropertyAssignment; + function updateShorthandPropertyAssignment(node: ShorthandPropertyAssignment, name: Identifier, objectAssignmentInitializer: Expression | undefined): ShorthandPropertyAssignment; + function createSpreadAssignment(expression: Expression): SpreadAssignment; + function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment; + function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember; + function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember; + function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile; + /** + * Creates a shallow, memberwise clone of a node for mutation. + */ + function getMutableClone<T extends Node>(node: T): T; + /** + * Creates a synthetic statement to act as a placeholder for a not-emitted statement in + * order to preserve comments. + * + * @param original The original statement. + */ + function createNotEmittedStatement(original: Node): NotEmittedStatement; + /** + * Creates a synthetic expression to act as a placeholder for a not-emitted expression in + * order to preserve comments or sourcemap positions. + * + * @param expression The inner expression to emit. + * @param original The original outer expression. + * @param location The location for the expression. Defaults to the positions from "original" if provided. + */ + function createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression; + function updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression; + function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression; + function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression; + function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle; + function createUnparsedSourceFile(text: string): UnparsedSource; + function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource; + function createInputFiles(javascript: string, declaration: string): InputFiles; + function createInputFiles(javascript: string, declaration: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles; + function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createComma(left: Expression, right: Expression): Expression; + function createLessThan(left: Expression, right: Expression): Expression; + function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment; + function createAssignment(left: Expression, right: Expression): BinaryExpression; + function createStrictEquality(left: Expression, right: Expression): BinaryExpression; + function createStrictInequality(left: Expression, right: Expression): BinaryExpression; + function createAdd(left: Expression, right: Expression): BinaryExpression; + function createSubtract(left: Expression, right: Expression): BinaryExpression; + function createPostfixIncrement(operand: Expression): PostfixUnaryExpression; + function createLogicalAnd(left: Expression, right: Expression): BinaryExpression; + function createLogicalOr(left: Expression, right: Expression): BinaryExpression; + function createLogicalNot(operand: Expression): PrefixUnaryExpression; + function createVoidZero(): VoidExpression; + function createExportDefault(expression: Expression): ExportAssignment; + function createExternalModuleExport(exportName: Identifier): ExportDeclaration; + /** + * Clears any EmitNode entries from parse-tree nodes. + * @param sourceFile A source file. + */ + function disposeEmitNodes(sourceFile: SourceFile): void; + function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; + /** + * Sets flags that control emit behavior of a node. + */ + function setEmitFlags<T extends Node>(node: T, emitFlags: EmitFlags): T; + /** + * Gets a custom text range to use when emitting source maps. + */ + function getSourceMapRange(node: Node): SourceMapRange; + /** + * Sets a custom text range to use when emitting source maps. + */ + function setSourceMapRange<T extends Node>(node: T, range: SourceMapRange | undefined): T; + /** + * Create an external source map source file reference + */ + function createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): SourceMapSource; + /** + * Gets the TextRange to use for source maps for a token of a node. + */ + function getTokenSourceMapRange(node: Node, token: SyntaxKind): SourceMapRange | undefined; + /** + * Sets the TextRange to use for source maps for a token of a node. + */ + function setTokenSourceMapRange<T extends Node>(node: T, token: SyntaxKind, range: SourceMapRange | undefined): T; + /** + * Gets a custom text range to use when emitting comments. + */ + function getCommentRange(node: Node): TextRange; + /** + * Sets a custom text range to use when emitting comments. + */ + function setCommentRange<T extends Node>(node: T, range: TextRange): T; + function getSyntheticLeadingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticLeadingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticLeadingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function getSyntheticTrailingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticTrailingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticTrailingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function moveSyntheticComments<T extends Node>(node: T, original: Node): T; + /** + * Gets the constant value to emit for an expression. + */ + function getConstantValue(node: PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + /** + * Sets the constant value to emit for an expression. + */ + function setConstantValue(node: PropertyAccessExpression | ElementAccessExpression, value: string | number): PropertyAccessExpression | ElementAccessExpression; + /** + * Adds an EmitHelper to a node. + */ + function addEmitHelper<T extends Node>(node: T, helper: EmitHelper): T; + /** + * Add EmitHelpers to a node. + */ + function addEmitHelpers<T extends Node>(node: T, helpers: EmitHelper[] | undefined): T; + /** + * Removes an EmitHelper from a node. + */ + function removeEmitHelper(node: Node, helper: EmitHelper): boolean; + /** + * Gets the EmitHelpers of a node. + */ + function getEmitHelpers(node: Node): EmitHelper[] | undefined; + /** + * Moves matching emit helpers from a source node to a target node. + */ + function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void; + function setOriginalNode<T extends Node>(node: T, original: Node | undefined): T; +} +declare namespace ts { + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T; + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T | undefined; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined; + /** + * Starts a new lexical environment and visits a statement list, ending the lexical environment + * and merging hoisted declarations upon completion. + */ + function visitLexicalEnvironment(statements: NodeArray<Statement>, visitor: Visitor, context: TransformationContext, start?: number, ensureUseStrict?: boolean): NodeArray<Statement>; + /** + * Starts a new lexical environment and visits a parameter list, suspending the lexical + * environment upon completion. + */ + function visitParameterList(nodes: NodeArray<ParameterDeclaration> | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes): NodeArray<ParameterDeclaration>; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody, visitor: Visitor, context: TransformationContext): FunctionBody; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody | undefined, visitor: Visitor, context: TransformationContext): FunctionBody | undefined; + /** + * Resumes a suspended lexical environment and visits a concise body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: ConciseBody, visitor: Visitor, context: TransformationContext): ConciseBody; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T, visitor: Visitor, context: TransformationContext): T; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; +} +declare namespace ts { + function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; +} +declare namespace ts { + function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined; + function resolveTripleslashReference(moduleName: string, containingFile: string): string; + function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; + function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + interface FormatDiagnosticsHost { + getCurrentDirectory(): string; + getCanonicalFileName(fileName: string): string; + getNewLine(): string; + } + function formatDiagnostics(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string; + function formatDiagnosticsWithColorAndContext(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain | undefined, newLine: string): string; + function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): ReadonlyArray<Diagnostic>; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param createProgramOptions - The options for creating a program. + * @returns A 'Program' object. + */ + function createProgram(createProgramOptions: CreateProgramOptions): Program; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param rootNames - A set of root files. + * @param options - The compiler options which should be used. + * @param host - The host interacts with the underlying file system. + * @param oldProgram - Reuses an old program structure. + * @param configFileParsingDiagnostics - error during config file parsing + * @returns A 'Program' object. + */ + function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program; + /** @deprecated */ interface ResolveProjectReferencePathHost { + fileExists(fileName: string): boolean; + } + /** + * Returns the target config filename of a project reference. + * Note: The file might not exist. + */ + function resolveProjectReferencePath(ref: ProjectReference): ResolvedConfigFileName; + /** @deprecated */ function resolveProjectReferencePath(host: ResolveProjectReferencePathHost, ref: ProjectReference): ResolvedConfigFileName; +} +declare namespace ts { + interface EmitOutput { + outputFiles: OutputFile[]; + emitSkipped: boolean; + } + interface OutputFile { + name: string; + writeByteOrderMark: boolean; + text: string; + } +} +declare namespace ts { + type AffectedFileResult<T> = { + result: T; + affected: SourceFile | Program; + } | undefined; + interface BuilderProgramHost { + /** + * return true if file names are treated with case sensitivity + */ + useCaseSensitiveFileNames(): boolean; + /** + * If provided this would be used this hash instead of actual file shape text for detecting changes + */ + createHash?: (data: string) => string; + /** + * When emit or emitNextAffectedFile are called without writeFile, + * this callback if present would be used to write files + */ + writeFile?: WriteFileCallback; + } + /** + * Builder to manage the program state changes + */ + interface BuilderProgram { + /** + * Returns current program + */ + getProgram(): Program; + /** + * Get compiler options of the program + */ + getCompilerOptions(): CompilerOptions; + /** + * Get the source file in the program with file name + */ + getSourceFile(fileName: string): SourceFile | undefined; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Get the diagnostics for compiler options + */ + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics that dont belong to any file + */ + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics from config file parsing + */ + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Get the syntax diagnostics, for all source files if source file is not supplied + */ + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get all the dependencies of the file + */ + getAllDependencies(sourceFile: SourceFile): ReadonlyArray<string>; + /** + * Gets the semantic diagnostics from the program corresponding to this state of file (if provided) or whole program + * The semantic diagnostics are cached and managed here + * Note that it is assumed that when asked about semantic diagnostics through this API, + * the file has been taken out of affected files so it is safe to use cache or get from program and cache the diagnostics + * In case of SemanticDiagnosticsBuilderProgram if the source file is not provided, + * it will iterate through all the affected files, to ensure that cache stays valid and yet provide a way to get all semantic diagnostics + */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Emits the JavaScript and declaration files. + * When targetSource file is specified, emits the files corresponding to that source file, + * otherwise for the whole program. + * In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified, + * it is assumed that that file is handled from affected file list. If targetSourceFile is not specified, + * it will only emit all the affected files instead of whole program + * + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + /** + * Get the current directory of the program + */ + getCurrentDirectory(): string; + } + /** + * The builder that caches the semantic diagnostics for the program and handles the changed files and affected files + */ + interface SemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Gets the semantic diagnostics from the program for the next affected file and caches it + * Returns undefined if the iteration is complete + */ + getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult<ReadonlyArray<Diagnostic>>; + } + /** + * The builder that can handle the changes in program and iterate through changed file to emit the files + * The semantic diagnostics are cached per file and managed by clearing for the changed/affected files + */ + interface EmitAndSemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Emits the next affected file's emit result (EmitResult and sourceFiles emitted) or returns undefined if iteration is complete + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>; + } + /** + * Create the builder to manage semantic diagnostics and cache them + */ + function createSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): SemanticDiagnosticsBuilderProgram; + function createSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): SemanticDiagnosticsBuilderProgram; + /** + * Create the builder that can handle the changes in program and iterate through changed files + * to emit the those files and manage semantic diagnostics cache as well + */ + function createEmitAndSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): EmitAndSemanticDiagnosticsBuilderProgram; + function createEmitAndSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): EmitAndSemanticDiagnosticsBuilderProgram; + /** + * Creates a builder thats just abstraction over program and can be used with watch + */ + function createAbstractBuilder(newProgram: Program, host: BuilderProgramHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): BuilderProgram; + function createAbstractBuilder(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): BuilderProgram; +} +declare namespace ts { + type WatchStatusReporter = (diagnostic: Diagnostic, newLine: string, options: CompilerOptions) => void; + /** Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program */ + type CreateProgram<T extends BuilderProgram> = (rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: T, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference> | undefined) => T; + /** Host that has watch functionality used in --watch mode */ + interface WatchHost { + /** If provided, called with Diagnostic message that informs about change in watch status */ + onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions): void; + /** Used to watch changes in source files, missing files needed to update the program or config file */ + watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ + watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + /** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */ + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + /** If provided, will be used to reset existing delayed compilation */ + clearTimeout?(timeoutId: any): void; + } + interface WatchCompilerHost<T extends BuilderProgram> extends WatchHost { + /** + * Used to create the program when need for program creation or recreation detected + */ + createProgram: CreateProgram<T>; + /** If provided, callback to invoke after every new program creation */ + afterProgramCreate?(program: T): void; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + createHash?(data: string): string; + /** + * Use to check file presence for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + fileExists(path: string): boolean; + /** + * Use to read file text for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + readFile(path: string, encoding?: string): string | undefined; + /** If provided, used for module resolution as well as to handle directory structure */ + directoryExists?(path: string): boolean; + /** If provided, used in resolutions as well as handling directory structure */ + getDirectories?(path: string): string[]; + /** If provided, used to cache and handle directory structure modifications */ + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + /** Symbol links resolution */ + realpath?(path: string): string; + /** If provided would be used to write log about compilation */ + trace?(s: string): void; + /** If provided is used to get the environment variable */ + getEnvironmentVariable?(name: string): string | undefined; + /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + } + /** + * Host to create watch with root files and options + */ + interface WatchCompilerHostOfFilesAndCompilerOptions<T extends BuilderProgram> extends WatchCompilerHost<T> { + /** root files to use to generate program */ + rootFiles: string[]; + /** Compiler options */ + options: CompilerOptions; + /** Project References */ + projectReferences?: ReadonlyArray<ProjectReference>; + } + /** + * Host to create watch with config file + */ + interface WatchCompilerHostOfConfigFile<T extends BuilderProgram> extends WatchCompilerHost<T>, ConfigFileDiagnosticsReporter { + /** Name of the config file to compile */ + configFileName: string; + /** Options to extend */ + optionsToExtend?: CompilerOptions; + /** + * Used to generate source file names from the config file and its include, exclude, files rules + * and also to cache the directory stucture + */ + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + } + interface Watch<T> { + /** Synchronize with host and get updated program */ + getProgram(): T; + } + /** + * Creates the watch what generates program using the config file + */ + interface WatchOfConfigFile<T> extends Watch<T> { + } + /** + * Creates the watch that generates program using the root files and compiler options + */ + interface WatchOfFilesAndCompilerOptions<T> extends Watch<T> { + /** Updates the root files in the program, only if this is not config file compilation */ + updateRootFileNames(fileNames: string[]): void; + } + /** + * Create the watch compiler host for either configFile or fileNames and its options + */ + function createWatchCompilerHost<T extends BuilderProgram>(configFileName: string, optionsToExtend: CompilerOptions | undefined, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): WatchCompilerHostOfConfigFile<T>; + function createWatchCompilerHost<T extends BuilderProgram>(rootFiles: string[], options: CompilerOptions, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter, projectReferences?: ReadonlyArray<ProjectReference>): WatchCompilerHostOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for root files and compiler options + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfFilesAndCompilerOptions<T>): WatchOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for config file + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfConfigFile<T>): WatchOfConfigFile<T>; +} +declare namespace ts.server { + type ActionSet = "action::set"; + type ActionInvalidate = "action::invalidate"; + type ActionPackageInstalled = "action::packageInstalled"; + type ActionValueInspected = "action::valueInspected"; + type EventTypesRegistry = "event::typesRegistry"; + type EventBeginInstallTypes = "event::beginInstallTypes"; + type EventEndInstallTypes = "event::endInstallTypes"; + type EventInitializationFailed = "event::initializationFailed"; + interface TypingInstallerResponse { + readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | ActionValueInspected | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed; + } + interface TypingInstallerRequestWithProjectName { + readonly projectName: string; + } + interface DiscoverTypings extends TypingInstallerRequestWithProjectName { + readonly fileNames: string[]; + readonly projectRootPath: Path; + readonly compilerOptions: CompilerOptions; + readonly typeAcquisition: TypeAcquisition; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly cachePath?: string; + readonly kind: "discover"; + } + interface CloseProject extends TypingInstallerRequestWithProjectName { + readonly kind: "closeProject"; + } + interface TypesRegistryRequest { + readonly kind: "typesRegistry"; + } + interface InstallPackageRequest extends TypingInstallerRequestWithProjectName { + readonly kind: "installPackage"; + readonly fileName: Path; + readonly packageName: string; + readonly projectRootPath: Path; + } + interface PackageInstalledResponse extends ProjectResponse { + readonly kind: ActionPackageInstalled; + readonly success: boolean; + readonly message: string; + } + interface InitializationFailedResponse extends TypingInstallerResponse { + readonly kind: EventInitializationFailed; + readonly message: string; + } + interface ProjectResponse extends TypingInstallerResponse { + readonly projectName: string; + } + interface InvalidateCachedTypings extends ProjectResponse { + readonly kind: ActionInvalidate; + } + interface InstallTypes extends ProjectResponse { + readonly kind: EventBeginInstallTypes | EventEndInstallTypes; + readonly eventId: number; + readonly typingsInstallerVersion: string; + readonly packagesToInstall: ReadonlyArray<string>; + } + interface BeginInstallTypes extends InstallTypes { + readonly kind: EventBeginInstallTypes; + } + interface EndInstallTypes extends InstallTypes { + readonly kind: EventEndInstallTypes; + readonly installSuccess: boolean; + } + interface SetTypings extends ProjectResponse { + readonly typeAcquisition: TypeAcquisition; + readonly compilerOptions: CompilerOptions; + readonly typings: string[]; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly kind: ActionSet; + } +} +declare namespace ts { + interface Node { + getSourceFile(): SourceFile; + getChildCount(sourceFile?: SourceFile): number; + getChildAt(index: number, sourceFile?: SourceFile): Node; + getChildren(sourceFile?: SourceFile): Node[]; + getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number; + getFullStart(): number; + getEnd(): number; + getWidth(sourceFile?: SourceFileLike): number; + getFullWidth(): number; + getLeadingTriviaWidth(sourceFile?: SourceFile): number; + getFullText(sourceFile?: SourceFile): string; + getText(sourceFile?: SourceFile): string; + getFirstToken(sourceFile?: SourceFile): Node | undefined; + getLastToken(sourceFile?: SourceFile): Node | undefined; + forEachChild<T>(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + } + interface Identifier { + readonly text: string; + } + interface Symbol { + readonly name: string; + getFlags(): SymbolFlags; + getEscapedName(): __String; + getName(): string; + getDeclarations(): Declaration[] | undefined; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface Type { + getFlags(): TypeFlags; + getSymbol(): Symbol | undefined; + getProperties(): Symbol[]; + getProperty(propertyName: string): Symbol | undefined; + getApparentProperties(): Symbol[]; + getCallSignatures(): ReadonlyArray<Signature>; + getConstructSignatures(): ReadonlyArray<Signature>; + getStringIndexType(): Type | undefined; + getNumberIndexType(): Type | undefined; + getBaseTypes(): BaseType[] | undefined; + getNonNullableType(): Type; + getConstraint(): Type | undefined; + getDefault(): Type | undefined; + isUnion(): this is UnionType; + isIntersection(): this is IntersectionType; + isUnionOrIntersection(): this is UnionOrIntersectionType; + isLiteral(): this is LiteralType; + isStringLiteral(): this is StringLiteralType; + isNumberLiteral(): this is NumberLiteralType; + isTypeParameter(): this is TypeParameter; + isClassOrInterface(): this is InterfaceType; + isClass(): this is InterfaceType; + } + interface Signature { + getDeclaration(): SignatureDeclaration; + getTypeParameters(): TypeParameter[] | undefined; + getParameters(): Symbol[]; + getReturnType(): Type; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface SourceFile { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + getLineEndOfPosition(pos: number): number; + getLineStarts(): ReadonlyArray<number>; + getPositionOfLineAndCharacter(line: number, character: number): number; + update(newText: string, textChangeRange: TextChangeRange): SourceFile; + } + interface SourceFileLike { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + interface SourceMapSource { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + /** + * Represents an immutable snapshot of a script at a specified time.Once acquired, the + * snapshot is observably immutable. i.e. the same calls with the same parameters will return + * the same values. + */ + interface IScriptSnapshot { + /** Gets a portion of the script snapshot specified by [start, end). */ + getText(start: number, end: number): string; + /** Gets the length of this script snapshot. */ + getLength(): number; + /** + * Gets the TextChangeRange that describe how the text changed between this text and + * an older version. This information is used by the incremental parser to determine + * what sections of the script need to be re-parsed. 'undefined' can be returned if the + * change range cannot be determined. However, in that case, incremental parsing will + * not happen and the entire document will be re - parsed. + */ + getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange | undefined; + /** Releases all resources held by this script snapshot */ + dispose?(): void; + } + namespace ScriptSnapshot { + function fromString(text: string): IScriptSnapshot; + } + interface PreProcessedFileInfo { + referencedFiles: FileReference[]; + typeReferenceDirectives: FileReference[]; + libReferenceDirectives: FileReference[]; + importedFiles: FileReference[]; + ambientExternalModules?: string[]; + isLibFile: boolean; + } + interface HostCancellationToken { + isCancellationRequested(): boolean; + } + interface InstallPackageOptions { + fileName: Path; + packageName: string; + } + interface LanguageServiceHost extends GetEffectiveTypeRootsHost { + getCompilationSettings(): CompilerOptions; + getNewLine?(): string; + getProjectVersion?(): string; + getScriptFileNames(): string[]; + getScriptKind?(fileName: string): ScriptKind; + getScriptVersion(fileName: string): string; + getScriptSnapshot(fileName: string): IScriptSnapshot | undefined; + getProjectReferences?(): ReadonlyArray<ProjectReference> | undefined; + getLocalizedDiagnosticMessages?(): any; + getCancellationToken?(): HostCancellationToken; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + log?(s: string): void; + trace?(s: string): void; + error?(s: string): void; + useCaseSensitiveFileNames?(): boolean; + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + readFile?(path: string, encoding?: string): string | undefined; + realpath?(path: string): string; + fileExists?(path: string): boolean; + getTypeRootsVersion?(): number; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getDirectories?(directoryName: string): string[]; + /** + * Gets a set of custom transformers to use during emit. + */ + getCustomTransformers?(): CustomTransformers | undefined; + isKnownTypesPackageName?(name: string): boolean; + installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>; + writeFile?(fileName: string, content: string): void; + } + type WithMetadata<T> = T & { + metadata?: unknown; + }; + interface LanguageService { + cleanupSemanticCache(): void; + getSyntacticDiagnostics(fileName: string): DiagnosticWithLocation[]; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(fileName: string): Diagnostic[]; + getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[]; + getCompilerOptionsDiagnostics(): Diagnostic[]; + /** + * @deprecated Use getEncodedSyntacticClassifications instead. + */ + getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + /** + * @deprecated Use getEncodedSemanticClassifications instead. + */ + getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications; + getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications; + getCompletionsAtPosition(fileName: string, position: number, options: GetCompletionsAtPositionOptions | undefined): WithMetadata<CompletionInfo> | undefined; + getCompletionEntryDetails(fileName: string, position: number, name: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined): CompletionEntryDetails | undefined; + getCompletionEntrySymbol(fileName: string, position: number, name: string, source: string | undefined): Symbol | undefined; + getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined; + getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined; + getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined; + getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined; + getRenameInfo(fileName: string, position: number): RenameInfo; + findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): ReadonlyArray<RenameLocation> | undefined; + getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined; + getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getImplementationAtPosition(fileName: string, position: number): ReadonlyArray<ImplementationLocation> | undefined; + getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[] | undefined; + findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined; + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReadonlyArray<ReferenceEntry> | undefined; + getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[]; + getNavigationBarItems(fileName: string): NavigationBarItem[]; + getNavigationTree(fileName: string): NavigationTree; + getOutliningSpans(fileName: string): OutliningSpan[]; + getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[]; + getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[]; + getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number; + getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined; + isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean; + /** + * This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag. + * Editors should call this after `>` is typed. + */ + getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined; + getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined; + toLineColumnOffset?(fileName: string, position: number): LineAndCharacter; + getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: ReadonlyArray<number>, formatOptions: FormatCodeSettings, preferences: UserPreferences): ReadonlyArray<CodeFixAction>; + getCombinedCodeFix(scope: CombinedCodeFixScope, fixId: {}, formatOptions: FormatCodeSettings, preferences: UserPreferences): CombinedCodeActions; + applyCodeActionCommand(action: CodeActionCommand, formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult>; + applyCodeActionCommand(action: CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult[]>; + applyCodeActionCommand(action: CodeActionCommand | CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand): Promise<ApplyCodeActionCommandResult>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined): ApplicableRefactorInfo[]; + getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined; + organizeImports(scope: OrganizeImportsScope, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean): EmitOutput; + getProgram(): Program | undefined; + dispose(): void; + } + interface JsxClosingTagInfo { + readonly newText: string; + } + interface CombinedCodeFixScope { + type: "file"; + fileName: string; + } + type OrganizeImportsScope = CombinedCodeFixScope; + type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<"; + interface GetCompletionsAtPositionOptions extends UserPreferences { + /** + * If the editor is asking for completions because a certain character was typed + * (as opposed to when the user explicitly requested them) this should be set. + */ + triggerCharacter?: CompletionsTriggerCharacter; + /** @deprecated Use includeCompletionsForModuleExports */ + includeExternalModuleExports?: boolean; + /** @deprecated Use includeCompletionsWithInsertText */ + includeInsertTextCompletions?: boolean; + } + type SignatureHelpTriggerCharacter = "," | "(" | "<"; + type SignatureHelpRetriggerCharacter = SignatureHelpTriggerCharacter | ")"; + interface SignatureHelpItemsOptions { + triggerReason?: SignatureHelpTriggerReason; + } + type SignatureHelpTriggerReason = SignatureHelpInvokedReason | SignatureHelpCharacterTypedReason | SignatureHelpRetriggeredReason; + /** + * Signals that the user manually requested signature help. + * The language service will unconditionally attempt to provide a result. + */ + interface SignatureHelpInvokedReason { + kind: "invoked"; + triggerCharacter?: undefined; + } + /** + * Signals that the signature help request came from a user typing a character. + * Depending on the character and the syntactic context, the request may or may not be served a result. + */ + interface SignatureHelpCharacterTypedReason { + kind: "characterTyped"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter: SignatureHelpTriggerCharacter; + } + /** + * Signals that this signature help request came from typing a character or moving the cursor. + * This should only occur if a signature help session was already active and the editor needs to see if it should adjust. + * The language service will unconditionally attempt to provide a result. + * `triggerCharacter` can be `undefined` for a retrigger caused by a cursor move. + */ + interface SignatureHelpRetriggeredReason { + kind: "retrigger"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter?: SignatureHelpRetriggerCharacter; + } + interface ApplyCodeActionCommandResult { + successMessage: string; + } + interface Classifications { + spans: number[]; + endOfLineState: EndOfLineState; + } + interface ClassifiedSpan { + textSpan: TextSpan; + classificationType: ClassificationTypeNames; + } + /** + * Navigation bar interface designed for visual studio's dual-column layout. + * This does not form a proper tree. + * The navbar is returned as a list of top-level items, each of which has a list of child items. + * Child items always have an empty array for their `childItems`. + */ + interface NavigationBarItem { + text: string; + kind: ScriptElementKind; + kindModifiers: string; + spans: TextSpan[]; + childItems: NavigationBarItem[]; + indent: number; + bolded: boolean; + grayed: boolean; + } + /** + * Node in a tree of nested declarations in a file. + * The top node is always a script or module node. + */ + interface NavigationTree { + /** Name of the declaration, or a short description, e.g. "<class>". */ + text: string; + kind: ScriptElementKind; + /** ScriptElementKindModifier separated by commas, e.g. "public,abstract" */ + kindModifiers: string; + /** + * Spans of the nodes that generated this declaration. + * There will be more than one if this is the result of merging. + */ + spans: TextSpan[]; + nameSpan: TextSpan | undefined; + /** Present if non-empty */ + childItems?: NavigationTree[]; + } + interface TodoCommentDescriptor { + text: string; + priority: number; + } + interface TodoComment { + descriptor: TodoCommentDescriptor; + message: string; + position: number; + } + interface TextChange { + span: TextSpan; + newText: string; + } + interface FileTextChanges { + fileName: string; + textChanges: TextChange[]; + isNewFile?: boolean; + } + interface CodeAction { + /** Description of the code action to display in the UI of the editor */ + description: string; + /** Text changes to apply to each file as part of the code action */ + changes: FileTextChanges[]; + /** + * If the user accepts the code fix, the editor should send the action back in a `applyAction` request. + * This allows the language service to have side effects (e.g. installing dependencies) upon a code fix. + */ + commands?: CodeActionCommand[]; + } + interface CodeFixAction extends CodeAction { + /** Short name to identify the fix, for use by telemetry. */ + fixName: string; + /** + * If present, one may call 'getCombinedCodeFix' with this fixId. + * This may be omitted to indicate that the code fix can't be applied in a group. + */ + fixId?: {}; + fixAllDescription?: string; + } + interface CombinedCodeActions { + changes: ReadonlyArray<FileTextChanges>; + commands?: ReadonlyArray<CodeActionCommand>; + } + type CodeActionCommand = InstallPackageAction | GenerateTypesAction; + interface InstallPackageAction { + } + interface GenerateTypesAction extends GenerateTypesOptions { + } + interface GenerateTypesOptions { + readonly file: string; + readonly fileToGenerateTypesFor: string; + readonly outputFileName: string; + } + /** + * A set of one or more available refactoring actions, grouped under a parent refactoring. + */ + interface ApplicableRefactorInfo { + /** + * The programmatic name of the refactoring + */ + name: string; + /** + * A description of this refactoring category to show to the user. + * If the refactoring gets inlined (see below), this text will not be visible. + */ + description: string; + /** + * Inlineable refactorings can have their actions hoisted out to the top level + * of a context menu. Non-inlineanable refactorings should always be shown inside + * their parent grouping. + * + * If not specified, this value is assumed to be 'true' + */ + inlineable?: boolean; + actions: RefactorActionInfo[]; + } + /** + * Represents a single refactoring action - for example, the "Extract Method..." refactor might + * offer several actions, each corresponding to a surround class or closure to extract into. + */ + interface RefactorActionInfo { + /** + * The programmatic name of the refactoring action + */ + name: string; + /** + * A description of this refactoring action to show to the user. + * If the parent refactoring is inlined away, this will be the only text shown, + * so this description should make sense by itself if the parent is inlineable=true + */ + description: string; + } + /** + * A set of edits to make in response to a refactor action, plus an optional + * location where renaming should be invoked from + */ + interface RefactorEditInfo { + edits: FileTextChanges[]; + renameFilename?: string; + renameLocation?: number; + commands?: CodeActionCommand[]; + } + interface TextInsertion { + newText: string; + /** The position in newText the caret should point to after the insertion. */ + caretOffset: number; + } + interface DocumentSpan { + textSpan: TextSpan; + fileName: string; + /** + * If the span represents a location that was remapped (e.g. via a .d.ts.map file), + * then the original filename and span will be specified here + */ + originalTextSpan?: TextSpan; + originalFileName?: string; + } + interface RenameLocation extends DocumentSpan { + readonly prefixText?: string; + readonly suffixText?: string; + } + interface ReferenceEntry extends DocumentSpan { + isWriteAccess: boolean; + isDefinition: boolean; + isInString?: true; + } + interface ImplementationLocation extends DocumentSpan { + kind: ScriptElementKind; + displayParts: SymbolDisplayPart[]; + } + interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + enum HighlightSpanKind { + none = "none", + definition = "definition", + reference = "reference", + writtenReference = "writtenReference" + } + interface HighlightSpan { + fileName?: string; + isInString?: true; + textSpan: TextSpan; + kind: HighlightSpanKind; + } + interface NavigateToItem { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + matchKind: "exact" | "prefix" | "substring" | "camelCase"; + isCaseSensitive: boolean; + fileName: string; + textSpan: TextSpan; + containerName: string; + containerKind: ScriptElementKind; + } + enum IndentStyle { + None = 0, + Block = 1, + Smart = 2 + } + interface EditorOptions { + BaseIndentSize?: number; + IndentSize: number; + TabSize: number; + NewLineCharacter: string; + ConvertTabsToSpaces: boolean; + IndentStyle: IndentStyle; + } + interface EditorSettings { + baseIndentSize?: number; + indentSize?: number; + tabSize?: number; + newLineCharacter?: string; + convertTabsToSpaces?: boolean; + indentStyle?: IndentStyle; + } + interface FormatCodeOptions extends EditorOptions { + InsertSpaceAfterCommaDelimiter: boolean; + InsertSpaceAfterSemicolonInForStatements: boolean; + InsertSpaceBeforeAndAfterBinaryOperators: boolean; + InsertSpaceAfterConstructor?: boolean; + InsertSpaceAfterKeywordsInControlFlowStatements: boolean; + InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean; + InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + InsertSpaceAfterTypeAssertion?: boolean; + InsertSpaceBeforeFunctionParenthesis?: boolean; + PlaceOpenBraceOnNewLineForFunctions: boolean; + PlaceOpenBraceOnNewLineForControlBlocks: boolean; + insertSpaceBeforeTypeAnnotation?: boolean; + } + interface FormatCodeSettings extends EditorSettings { + readonly insertSpaceAfterCommaDelimiter?: boolean; + readonly insertSpaceAfterSemicolonInForStatements?: boolean; + readonly insertSpaceBeforeAndAfterBinaryOperators?: boolean; + readonly insertSpaceAfterConstructor?: boolean; + readonly insertSpaceAfterKeywordsInControlFlowStatements?: boolean; + readonly insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + readonly insertSpaceAfterTypeAssertion?: boolean; + readonly insertSpaceBeforeFunctionParenthesis?: boolean; + readonly placeOpenBraceOnNewLineForFunctions?: boolean; + readonly placeOpenBraceOnNewLineForControlBlocks?: boolean; + readonly insertSpaceBeforeTypeAnnotation?: boolean; + readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean; + } + function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings; + interface DefinitionInfo extends DocumentSpan { + kind: ScriptElementKind; + name: string; + containerKind: ScriptElementKind; + containerName: string; + } + interface DefinitionInfoAndBoundSpan { + definitions?: ReadonlyArray<DefinitionInfo>; + textSpan: TextSpan; + } + interface ReferencedSymbolDefinitionInfo extends DefinitionInfo { + displayParts: SymbolDisplayPart[]; + } + interface ReferencedSymbol { + definition: ReferencedSymbolDefinitionInfo; + references: ReferenceEntry[]; + } + enum SymbolDisplayPartKind { + aliasName = 0, + className = 1, + enumName = 2, + fieldName = 3, + interfaceName = 4, + keyword = 5, + lineBreak = 6, + numericLiteral = 7, + stringLiteral = 8, + localName = 9, + methodName = 10, + moduleName = 11, + operator = 12, + parameterName = 13, + propertyName = 14, + punctuation = 15, + space = 16, + text = 17, + typeParameterName = 18, + enumMemberName = 19, + functionName = 20, + regularExpressionLiteral = 21 + } + interface SymbolDisplayPart { + text: string; + kind: string; + } + interface JSDocTagInfo { + name: string; + text?: string; + } + interface QuickInfo { + kind: ScriptElementKind; + kindModifiers: string; + textSpan: TextSpan; + displayParts?: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + } + type RenameInfo = RenameInfoSuccess | RenameInfoFailure; + interface RenameInfoSuccess { + canRename: true; + /** + * File or directory to rename. + * If set, `getEditsForFileRename` should be called instead of `findRenameLocations`. + */ + fileToRename?: string; + displayName: string; + fullDisplayName: string; + kind: ScriptElementKind; + kindModifiers: string; + triggerSpan: TextSpan; + } + interface RenameInfoFailure { + canRename: false; + localizedErrorMessage: string; + } + interface SignatureHelpParameter { + name: string; + documentation: SymbolDisplayPart[]; + displayParts: SymbolDisplayPart[]; + isOptional: boolean; + } + /** + * Represents a single signature to show in signature help. + * The id is used for subsequent calls into the language service to ask questions about the + * signature help item in the context of any documents that have been updated. i.e. after + * an edit has happened, while signature help is still active, the host can ask important + * questions like 'what parameter is the user currently contained within?'. + */ + interface SignatureHelpItem { + isVariadic: boolean; + prefixDisplayParts: SymbolDisplayPart[]; + suffixDisplayParts: SymbolDisplayPart[]; + separatorDisplayParts: SymbolDisplayPart[]; + parameters: SignatureHelpParameter[]; + documentation: SymbolDisplayPart[]; + tags: JSDocTagInfo[]; + } + /** + * Represents a set of signature help items, and the preferred item that should be selected. + */ + interface SignatureHelpItems { + items: SignatureHelpItem[]; + applicableSpan: TextSpan; + selectedItemIndex: number; + argumentIndex: number; + argumentCount: number; + } + interface CompletionInfo { + /** Not true for all glboal completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */ + isGlobalCompletion: boolean; + isMemberCompletion: boolean; + /** + * true when the current location also allows for a new identifier + */ + isNewIdentifierLocation: boolean; + entries: CompletionEntry[]; + } + interface CompletionEntry { + name: string; + kind: ScriptElementKind; + kindModifiers?: string; + sortText: string; + insertText?: string; + /** + * An optional span that indicates the text to be replaced by this completion item. + * If present, this span should be used instead of the default one. + * It will be set if the required span differs from the one generated by the default replacement behavior. + */ + replacementSpan?: TextSpan; + hasAction?: true; + source?: string; + isRecommended?: true; + } + interface CompletionEntryDetails { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + displayParts: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + codeActions?: CodeAction[]; + source?: SymbolDisplayPart[]; + } + interface OutliningSpan { + /** The span of the document to actually collapse. */ + textSpan: TextSpan; + /** The span of the document to display when the user hovers over the collapsed span. */ + hintSpan: TextSpan; + /** The text to display in the editor for the collapsed region. */ + bannerText: string; + /** + * Whether or not this region should be automatically collapsed when + * the 'Collapse to Definitions' command is invoked. + */ + autoCollapse: boolean; + /** + * Classification of the contents of the span + */ + kind: OutliningSpanKind; + } + enum OutliningSpanKind { + /** Single or multi-line comments */ + Comment = "comment", + /** Sections marked by '// #region' and '// #endregion' comments */ + Region = "region", + /** Declarations and expressions */ + Code = "code", + /** Contiguous blocks of import declarations */ + Imports = "imports" + } + enum OutputFileType { + JavaScript = 0, + SourceMap = 1, + Declaration = 2 + } + enum EndOfLineState { + None = 0, + InMultiLineCommentTrivia = 1, + InSingleQuoteStringLiteral = 2, + InDoubleQuoteStringLiteral = 3, + InTemplateHeadOrNoSubstitutionTemplate = 4, + InTemplateMiddleOrTail = 5, + InTemplateSubstitutionPosition = 6 + } + enum TokenClass { + Punctuation = 0, + Keyword = 1, + Operator = 2, + Comment = 3, + Whitespace = 4, + Identifier = 5, + NumberLiteral = 6, + BigIntLiteral = 7, + StringLiteral = 8, + RegExpLiteral = 9 + } + interface ClassificationResult { + finalLexState: EndOfLineState; + entries: ClassificationInfo[]; + } + interface ClassificationInfo { + length: number; + classification: TokenClass; + } + interface Classifier { + /** + * Gives lexical classifications of tokens on a line without any syntactic context. + * For instance, a token consisting of the text 'string' can be either an identifier + * named 'string' or the keyword 'string', however, because this classifier is not aware, + * it relies on certain heuristics to give acceptable results. For classifications where + * speed trumps accuracy, this function is preferable; however, for true accuracy, the + * syntactic classifier is ideal. In fact, in certain editing scenarios, combining the + * lexical, syntactic, and semantic classifiers may issue the best user experience. + * + * @param text The text of a line to classify. + * @param lexState The state of the lexical classifier at the end of the previous line. + * @param syntacticClassifierAbsent Whether the client is *not* using a syntactic classifier. + * If there is no syntactic classifier (syntacticClassifierAbsent=true), + * certain heuristics may be used in its place; however, if there is a + * syntactic classifier (syntacticClassifierAbsent=false), certain + * classifications which may be incorrectly categorized will be given + * back as Identifiers in order to allow the syntactic classifier to + * subsume the classification. + * @deprecated Use getLexicalClassifications instead. + */ + getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent: boolean): ClassificationResult; + getEncodedLexicalClassifications(text: string, endOfLineState: EndOfLineState, syntacticClassifierAbsent: boolean): Classifications; + } + enum ScriptElementKind { + unknown = "", + warning = "warning", + /** predefined type (void) or keyword (class) */ + keyword = "keyword", + /** top level script node */ + scriptElement = "script", + /** module foo {} */ + moduleElement = "module", + /** class X {} */ + classElement = "class", + /** var x = class X {} */ + localClassElement = "local class", + /** interface Y {} */ + interfaceElement = "interface", + /** type T = ... */ + typeElement = "type", + /** enum E */ + enumElement = "enum", + enumMemberElement = "enum member", + /** + * Inside module and script only + * const v = .. + */ + variableElement = "var", + /** Inside function */ + localVariableElement = "local var", + /** + * Inside module and script only + * function f() { } + */ + functionElement = "function", + /** Inside function */ + localFunctionElement = "local function", + /** class X { [public|private]* foo() {} } */ + memberFunctionElement = "method", + /** class X { [public|private]* [get|set] foo:number; } */ + memberGetAccessorElement = "getter", + memberSetAccessorElement = "setter", + /** + * class X { [public|private]* foo:number; } + * interface Y { foo:number; } + */ + memberVariableElement = "property", + /** class X { constructor() { } } */ + constructorImplementationElement = "constructor", + /** interface Y { ():number; } */ + callSignatureElement = "call", + /** interface Y { []:number; } */ + indexSignatureElement = "index", + /** interface Y { new():Y; } */ + constructSignatureElement = "construct", + /** function foo(*Y*: string) */ + parameterElement = "parameter", + typeParameterElement = "type parameter", + primitiveType = "primitive type", + label = "label", + alias = "alias", + constElement = "const", + letElement = "let", + directory = "directory", + externalModuleName = "external module name", + /** + * <JsxTagName attribute1 attribute2={0} /> + */ + jsxAttribute = "JSX attribute", + /** String literal */ + string = "string" + } + enum ScriptElementKindModifier { + none = "", + publicMemberModifier = "public", + privateMemberModifier = "private", + protectedMemberModifier = "protected", + exportedModifier = "export", + ambientModifier = "declare", + staticModifier = "static", + abstractModifier = "abstract", + optionalModifier = "optional", + dtsModifier = ".d.ts", + tsModifier = ".ts", + tsxModifier = ".tsx", + jsModifier = ".js", + jsxModifier = ".jsx", + jsonModifier = ".json" + } + enum ClassificationTypeNames { + comment = "comment", + identifier = "identifier", + keyword = "keyword", + numericLiteral = "number", + bigintLiteral = "bigint", + operator = "operator", + stringLiteral = "string", + whiteSpace = "whitespace", + text = "text", + punctuation = "punctuation", + className = "class name", + enumName = "enum name", + interfaceName = "interface name", + moduleName = "module name", + typeParameterName = "type parameter name", + typeAliasName = "type alias name", + parameterName = "parameter name", + docCommentTagName = "doc comment tag name", + jsxOpenTagName = "jsx open tag name", + jsxCloseTagName = "jsx close tag name", + jsxSelfClosingTagName = "jsx self closing tag name", + jsxAttribute = "jsx attribute", + jsxText = "jsx text", + jsxAttributeStringLiteralValue = "jsx attribute string literal value" + } + enum ClassificationType { + comment = 1, + identifier = 2, + keyword = 3, + numericLiteral = 4, + operator = 5, + stringLiteral = 6, + regularExpressionLiteral = 7, + whiteSpace = 8, + text = 9, + punctuation = 10, + className = 11, + enumName = 12, + interfaceName = 13, + moduleName = 14, + typeParameterName = 15, + typeAliasName = 16, + parameterName = 17, + docCommentTagName = 18, + jsxOpenTagName = 19, + jsxCloseTagName = 20, + jsxSelfClosingTagName = 21, + jsxAttribute = 22, + jsxText = 23, + jsxAttributeStringLiteralValue = 24, + bigintLiteral = 25 + } +} +declare namespace ts { + function createClassifier(): Classifier; +} +declare namespace ts { + /** + * The document registry represents a store of SourceFile objects that can be shared between + * multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) + * of files in the context. + * SourceFile objects account for most of the memory usage by the language service. Sharing + * the same DocumentRegistry instance between different instances of LanguageService allow + * for more efficient memory utilization since all projects will share at least the library + * file (lib.d.ts). + * + * A more advanced use of the document registry is to serialize sourceFile objects to disk + * and re-hydrate them when needed. + * + * To create a default DocumentRegistry, use createDocumentRegistry to create one, and pass it + * to all subsequent createLanguageService calls. + */ + interface DocumentRegistry { + /** + * Request a stored SourceFile with a given fileName and compilationSettings. + * The first call to acquire will call createLanguageServiceSourceFile to generate + * the SourceFile if was not found in the registry. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. Only used if the file was not found + * in the registry and a new one was created. + * @param version Current version of the file. Only used if the file was not found + * in the registry and a new one was created. + */ + acquireDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + acquireDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + /** + * Request an updated version of an already existing SourceFile with a given fileName + * and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile + * to get an updated SourceFile. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. + * @param version Current version of the file. + */ + updateDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + updateDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; + /** + * Informs the DocumentRegistry that a file is not needed any longer. + * + * Note: It is not allowed to call release on a SourceFile that was not acquired from + * this registry originally. + * + * @param fileName The name of the file to be released + * @param compilationSettings The compilation settings used to acquire the file + */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; + reportStats(): string; + } + type DocumentRegistryBucketKey = string & { + __bucketKey: any; + }; + function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry; +} +declare namespace ts { + function preProcessFile(sourceText: string, readImportFiles?: boolean, detectJavaScriptImports?: boolean): PreProcessedFileInfo; +} +declare namespace ts { + interface TranspileOptions { + compilerOptions?: CompilerOptions; + fileName?: string; + reportDiagnostics?: boolean; + moduleName?: string; + renamedDependencies?: MapLike<string>; + transformers?: CustomTransformers; + } + interface TranspileOutput { + outputText: string; + diagnostics?: Diagnostic[]; + sourceMapText?: string; + } + function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput; + function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string; +} +declare namespace ts { + function generateTypesForModule(name: string, moduleValue: unknown, formatSettings: FormatCodeSettings): string; + function generateTypesForGlobal(name: string, globalValue: unknown, formatSettings: FormatCodeSettings): string; +} +declare namespace ts { + /** The version of the language service API */ + const servicesVersion = "0.8"; + function toEditorSettings(options: EditorOptions | EditorSettings): EditorSettings; + function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string; + function getDefaultCompilerOptions(): CompilerOptions; + function getSupportedCodeFixes(): string[]; + function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile; + let disableIncrementalParsing: boolean; + function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile; + function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnly?: boolean): LanguageService; + /** + * Get the path of the default library files (lib.d.ts) as distributed with the typescript + * node package. + * The functionality is not supported if the ts module is consumed outside of a node module. + */ + function getDefaultLibFilePath(options: CompilerOptions): string; +} +declare namespace ts { + /** + * Transform one or more nodes using the supplied transformers. + * @param source A single `Node` or an array of `Node` objects. + * @param transformers An array of `TransformerFactory` callbacks used to process the transformation. + * @param compilerOptions Optional compiler options. + */ + function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>; +} +declare namespace ts.server { + interface CompressedData { + length: number; + compressionKind: string; + data: any; + } + type RequireResult = { + module: {}; + error: undefined; + } | { + module: undefined; + error: { + stack?: string; + message?: string; + }; + }; + interface ServerHost extends System { + watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + clearTimeout(timeoutId: any): void; + setImmediate(callback: (...args: any[]) => void, ...args: any[]): any; + clearImmediate(timeoutId: any): void; + gc?(): void; + trace?(s: string): void; + require?(initialPath: string, moduleName: string): RequireResult; + } +} +declare namespace ts.server { + enum LogLevel { + terse = 0, + normal = 1, + requestTime = 2, + verbose = 3 + } + const emptyArray: SortedReadonlyArray<never>; + interface Logger { + close(): void; + hasLevel(level: LogLevel): boolean; + loggingEnabled(): boolean; + perftrc(s: string): void; + info(s: string): void; + startGroup(): void; + endGroup(): void; + msg(s: string, type?: Msg): void; + getLogFileName(): string | undefined; + } + enum Msg { + Err = "Err", + Info = "Info", + Perf = "Perf" + } + namespace Msg { + /** @deprecated Only here for backwards-compatibility. Prefer just `Msg`. */ + type Types = Msg; + } + function createInstallTypingsRequest(project: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray<string>, cachePath?: string): DiscoverTypings; + namespace Errors { + function ThrowNoProject(): never; + function ThrowProjectLanguageServiceDisabled(): never; + function ThrowProjectDoesNotContainDocument(fileName: string, project: Project): never; + } + type NormalizedPath = string & { + __normalizedPathTag: any; + }; + function toNormalizedPath(fileName: string): NormalizedPath; + function normalizedPathToPath(normalizedPath: NormalizedPath, currentDirectory: string, getCanonicalFileName: (f: string) => string): Path; + function asNormalizedPath(fileName: string): NormalizedPath; + interface NormalizedPathMap<T> { + get(path: NormalizedPath): T | undefined; + set(path: NormalizedPath, value: T): void; + contains(path: NormalizedPath): boolean; + remove(path: NormalizedPath): void; + } + function createNormalizedPathMap<T>(): NormalizedPathMap<T>; + function isInferredProjectName(name: string): boolean; + function makeInferredProjectName(counter: number): string; + function createSortedArray<T>(): SortedArray<T>; +} +/** + * Declaration module describing the TypeScript Server protocol + */ +declare namespace ts.server.protocol { + enum CommandTypes { + JsxClosingTag = "jsxClosingTag", + Brace = "brace", + BraceCompletion = "braceCompletion", + GetSpanOfEnclosingComment = "getSpanOfEnclosingComment", + Change = "change", + Close = "close", + /** @deprecated Prefer CompletionInfo -- see comment on CompletionsResponse */ + Completions = "completions", + CompletionInfo = "completionInfo", + CompletionDetails = "completionEntryDetails", + CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList", + CompileOnSaveEmitFile = "compileOnSaveEmitFile", + Configure = "configure", + Definition = "definition", + DefinitionAndBoundSpan = "definitionAndBoundSpan", + Implementation = "implementation", + Exit = "exit", + Format = "format", + Formatonkey = "formatonkey", + Geterr = "geterr", + GeterrForProject = "geterrForProject", + SemanticDiagnosticsSync = "semanticDiagnosticsSync", + SyntacticDiagnosticsSync = "syntacticDiagnosticsSync", + SuggestionDiagnosticsSync = "suggestionDiagnosticsSync", + NavBar = "navbar", + Navto = "navto", + NavTree = "navtree", + NavTreeFull = "navtree-full", + /** @deprecated */ + Occurrences = "occurrences", + DocumentHighlights = "documentHighlights", + Open = "open", + Quickinfo = "quickinfo", + References = "references", + Reload = "reload", + Rename = "rename", + Saveto = "saveto", + SignatureHelp = "signatureHelp", + Status = "status", + TypeDefinition = "typeDefinition", + ProjectInfo = "projectInfo", + ReloadProjects = "reloadProjects", + Unknown = "unknown", + OpenExternalProject = "openExternalProject", + OpenExternalProjects = "openExternalProjects", + CloseExternalProject = "closeExternalProject", + GetOutliningSpans = "getOutliningSpans", + TodoComments = "todoComments", + Indentation = "indentation", + DocCommentTemplate = "docCommentTemplate", + CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects", + GetCodeFixes = "getCodeFixes", + GetCombinedCodeFix = "getCombinedCodeFix", + ApplyCodeActionCommand = "applyCodeActionCommand", + GetSupportedCodeFixes = "getSupportedCodeFixes", + GetApplicableRefactors = "getApplicableRefactors", + GetEditsForRefactor = "getEditsForRefactor", + OrganizeImports = "organizeImports", + GetEditsForFileRename = "getEditsForFileRename", + ConfigurePlugin = "configurePlugin" + } + /** + * A TypeScript Server message + */ + interface Message { + /** + * Sequence number of the message + */ + seq: number; + /** + * One of "request", "response", or "event" + */ + type: "request" | "response" | "event"; + } + /** + * Client-initiated request message + */ + interface Request extends Message { + type: "request"; + /** + * The command to execute + */ + command: string; + /** + * Object containing arguments for the command + */ + arguments?: any; + } + /** + * Request to reload the project structure for all the opened files + */ + interface ReloadProjectsRequest extends Message { + command: CommandTypes.ReloadProjects; + } + /** + * Server-initiated event message + */ + interface Event extends Message { + type: "event"; + /** + * Name of event + */ + event: string; + /** + * Event-specific information + */ + body?: any; + } + /** + * Response by server to client request message. + */ + interface Response extends Message { + type: "response"; + /** + * Sequence number of the request message. + */ + request_seq: number; + /** + * Outcome of the request. + */ + success: boolean; + /** + * The command requested. + */ + command: string; + /** + * If success === false, this should always be provided. + * Otherwise, may (or may not) contain a success message. + */ + message?: string; + /** + * Contains message body if success === true. + */ + body?: any; + /** + * Contains extra information that plugin can include to be passed on + */ + metadata?: unknown; + } + /** + * Arguments for FileRequest messages. + */ + interface FileRequestArgs { + /** + * The file for the request (absolute pathname required). + */ + file: string; + projectFileName?: string; + } + interface StatusRequest extends Request { + command: CommandTypes.Status; + } + interface StatusResponseBody { + /** + * The TypeScript version (`ts.version`). + */ + version: string; + } + /** + * Response to StatusRequest + */ + interface StatusResponse extends Response { + body: StatusResponseBody; + } + /** + * Requests a JS Doc comment template for a given position + */ + interface DocCommentTemplateRequest extends FileLocationRequest { + command: CommandTypes.DocCommentTemplate; + } + /** + * Response to DocCommentTemplateRequest + */ + interface DocCommandTemplateResponse extends Response { + body?: TextInsertion; + } + /** + * A request to get TODO comments from the file + */ + interface TodoCommentRequest extends FileRequest { + command: CommandTypes.TodoComments; + arguments: TodoCommentRequestArgs; + } + /** + * Arguments for TodoCommentRequest request. + */ + interface TodoCommentRequestArgs extends FileRequestArgs { + /** + * Array of target TodoCommentDescriptors that describes TODO comments to be found + */ + descriptors: TodoCommentDescriptor[]; + } + /** + * Response for TodoCommentRequest request. + */ + interface TodoCommentsResponse extends Response { + body?: TodoComment[]; + } + /** + * A request to determine if the caret is inside a comment. + */ + interface SpanOfEnclosingCommentRequest extends FileLocationRequest { + command: CommandTypes.GetSpanOfEnclosingComment; + arguments: SpanOfEnclosingCommentRequestArgs; + } + interface SpanOfEnclosingCommentRequestArgs extends FileLocationRequestArgs { + /** + * Requires that the enclosing span be a multi-line comment, or else the request returns undefined. + */ + onlyMultiLine: boolean; + } + /** + * Request to obtain outlining spans in file. + */ + interface OutliningSpansRequest extends FileRequest { + command: CommandTypes.GetOutliningSpans; + } + interface OutliningSpan { + /** The span of the document to actually collapse. */ + textSpan: TextSpan; + /** The span of the document to display when the user hovers over the collapsed span. */ + hintSpan: TextSpan; + /** The text to display in the editor for the collapsed region. */ + bannerText: string; + /** + * Whether or not this region should be automatically collapsed when + * the 'Collapse to Definitions' command is invoked. + */ + autoCollapse: boolean; + /** + * Classification of the contents of the span + */ + kind: OutliningSpanKind; + } + /** + * Response to OutliningSpansRequest request. + */ + interface OutliningSpansResponse extends Response { + body?: OutliningSpan[]; + } + /** + * A request to get indentation for a location in file + */ + interface IndentationRequest extends FileLocationRequest { + command: CommandTypes.Indentation; + arguments: IndentationRequestArgs; + } + /** + * Response for IndentationRequest request. + */ + interface IndentationResponse extends Response { + body?: IndentationResult; + } + /** + * Indentation result representing where indentation should be placed + */ + interface IndentationResult { + /** + * The base position in the document that the indent should be relative to + */ + position: number; + /** + * The number of columns the indent should be at relative to the position's column. + */ + indentation: number; + } + /** + * Arguments for IndentationRequest request. + */ + interface IndentationRequestArgs extends FileLocationRequestArgs { + /** + * An optional set of settings to be used when computing indentation. + * If argument is omitted - then it will use settings for file that were previously set via 'configure' request or global settings. + */ + options?: EditorSettings; + } + /** + * Arguments for ProjectInfoRequest request. + */ + interface ProjectInfoRequestArgs extends FileRequestArgs { + /** + * Indicate if the file name list of the project is needed + */ + needFileNameList: boolean; + } + /** + * A request to get the project information of the current file. + */ + interface ProjectInfoRequest extends Request { + command: CommandTypes.ProjectInfo; + arguments: ProjectInfoRequestArgs; + } + /** + * A request to retrieve compiler options diagnostics for a project + */ + interface CompilerOptionsDiagnosticsRequest extends Request { + arguments: CompilerOptionsDiagnosticsRequestArgs; + } + /** + * Arguments for CompilerOptionsDiagnosticsRequest request. + */ + interface CompilerOptionsDiagnosticsRequestArgs { + /** + * Name of the project to retrieve compiler options diagnostics. + */ + projectFileName: string; + } + /** + * Response message body for "projectInfo" request + */ + interface ProjectInfo { + /** + * For configured project, this is the normalized path of the 'tsconfig.json' file + * For inferred project, this is undefined + */ + configFileName: string; + /** + * The list of normalized file name in the project, including 'lib.d.ts' + */ + fileNames?: string[]; + /** + * Indicates if the project has a active language service instance + */ + languageServiceDisabled?: boolean; + } + /** + * Represents diagnostic info that includes location of diagnostic in two forms + * - start position and length of the error span + * - startLocation and endLocation - a pair of Location objects that store start/end line and offset of the error span. + */ + interface DiagnosticWithLinePosition { + message: string; + start: number; + length: number; + startLocation: Location; + endLocation: Location; + category: string; + code: number; + /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */ + reportsUnnecessary?: {}; + relatedInformation?: DiagnosticRelatedInformation[]; + } + /** + * Response message for "projectInfo" request + */ + interface ProjectInfoResponse extends Response { + body?: ProjectInfo; + } + /** + * Request whose sole parameter is a file name. + */ + interface FileRequest extends Request { + arguments: FileRequestArgs; + } + /** + * Instances of this interface specify a location in a source file: + * (file, line, character offset), where line and character offset are 1-based. + */ + interface FileLocationRequestArgs extends FileRequestArgs { + /** + * The line number for the request (1-based). + */ + line: number; + /** + * The character offset (on the line) for the request (1-based). + */ + offset: number; + } + type FileLocationOrRangeRequestArgs = FileLocationRequestArgs | FileRangeRequestArgs; + /** + * Request refactorings at a given position or selection area. + */ + interface GetApplicableRefactorsRequest extends Request { + command: CommandTypes.GetApplicableRefactors; + arguments: GetApplicableRefactorsRequestArgs; + } + type GetApplicableRefactorsRequestArgs = FileLocationOrRangeRequestArgs; + /** + * Response is a list of available refactorings. + * Each refactoring exposes one or more "Actions"; a user selects one action to invoke a refactoring + */ + interface GetApplicableRefactorsResponse extends Response { + body?: ApplicableRefactorInfo[]; + } + /** + * A set of one or more available refactoring actions, grouped under a parent refactoring. + */ + interface ApplicableRefactorInfo { + /** + * The programmatic name of the refactoring + */ + name: string; + /** + * A description of this refactoring category to show to the user. + * If the refactoring gets inlined (see below), this text will not be visible. + */ + description: string; + /** + * Inlineable refactorings can have their actions hoisted out to the top level + * of a context menu. Non-inlineanable refactorings should always be shown inside + * their parent grouping. + * + * If not specified, this value is assumed to be 'true' + */ + inlineable?: boolean; + actions: RefactorActionInfo[]; + } + /** + * Represents a single refactoring action - for example, the "Extract Method..." refactor might + * offer several actions, each corresponding to a surround class or closure to extract into. + */ + interface RefactorActionInfo { + /** + * The programmatic name of the refactoring action + */ + name: string; + /** + * A description of this refactoring action to show to the user. + * If the parent refactoring is inlined away, this will be the only text shown, + * so this description should make sense by itself if the parent is inlineable=true + */ + description: string; + } + interface GetEditsForRefactorRequest extends Request { + command: CommandTypes.GetEditsForRefactor; + arguments: GetEditsForRefactorRequestArgs; + } + /** + * Request the edits that a particular refactoring action produces. + * Callers must specify the name of the refactor and the name of the action. + */ + type GetEditsForRefactorRequestArgs = FileLocationOrRangeRequestArgs & { + refactor: string; + action: string; + }; + interface GetEditsForRefactorResponse extends Response { + body?: RefactorEditInfo; + } + interface RefactorEditInfo { + edits: FileCodeEdits[]; + /** + * An optional location where the editor should start a rename operation once + * the refactoring edits have been applied + */ + renameLocation?: Location; + renameFilename?: string; + } + /** + * Organize imports by: + * 1) Removing unused imports + * 2) Coalescing imports from the same module + * 3) Sorting imports + */ + interface OrganizeImportsRequest extends Request { + command: CommandTypes.OrganizeImports; + arguments: OrganizeImportsRequestArgs; + } + type OrganizeImportsScope = GetCombinedCodeFixScope; + interface OrganizeImportsRequestArgs { + scope: OrganizeImportsScope; + } + interface OrganizeImportsResponse extends Response { + body: ReadonlyArray<FileCodeEdits>; + } + interface GetEditsForFileRenameRequest extends Request { + command: CommandTypes.GetEditsForFileRename; + arguments: GetEditsForFileRenameRequestArgs; + } + /** Note: Paths may also be directories. */ + interface GetEditsForFileRenameRequestArgs { + readonly oldFilePath: string; + readonly newFilePath: string; + } + interface GetEditsForFileRenameResponse extends Response { + body: ReadonlyArray<FileCodeEdits>; + } + /** + * Request for the available codefixes at a specific position. + */ + interface CodeFixRequest extends Request { + command: CommandTypes.GetCodeFixes; + arguments: CodeFixRequestArgs; + } + interface GetCombinedCodeFixRequest extends Request { + command: CommandTypes.GetCombinedCodeFix; + arguments: GetCombinedCodeFixRequestArgs; + } + interface GetCombinedCodeFixResponse extends Response { + body: CombinedCodeActions; + } + interface ApplyCodeActionCommandRequest extends Request { + command: CommandTypes.ApplyCodeActionCommand; + arguments: ApplyCodeActionCommandRequestArgs; + } + interface ApplyCodeActionCommandResponse extends Response { + } + interface FileRangeRequestArgs extends FileRequestArgs { + /** + * The line number for the request (1-based). + */ + startLine: number; + /** + * The character offset (on the line) for the request (1-based). + */ + startOffset: number; + /** + * The line number for the request (1-based). + */ + endLine: number; + /** + * The character offset (on the line) for the request (1-based). + */ + endOffset: number; + } + /** + * Instances of this interface specify errorcodes on a specific location in a sourcefile. + */ + interface CodeFixRequestArgs extends FileRangeRequestArgs { + /** + * Errorcodes we want to get the fixes for. + */ + errorCodes: ReadonlyArray<number>; + } + interface GetCombinedCodeFixRequestArgs { + scope: GetCombinedCodeFixScope; + fixId: {}; + } + interface GetCombinedCodeFixScope { + type: "file"; + args: FileRequestArgs; + } + interface ApplyCodeActionCommandRequestArgs { + /** May also be an array of commands. */ + command: {}; + } + /** + * Response for GetCodeFixes request. + */ + interface GetCodeFixesResponse extends Response { + body?: CodeAction[]; + } + /** + * A request whose arguments specify a file location (file, line, col). + */ + interface FileLocationRequest extends FileRequest { + arguments: FileLocationRequestArgs; + } + /** + * A request to get codes of supported code fixes. + */ + interface GetSupportedCodeFixesRequest extends Request { + command: CommandTypes.GetSupportedCodeFixes; + } + /** + * A response for GetSupportedCodeFixesRequest request. + */ + interface GetSupportedCodeFixesResponse extends Response { + /** + * List of error codes supported by the server. + */ + body?: string[]; + } + /** + * Arguments for EncodedSemanticClassificationsRequest request. + */ + interface EncodedSemanticClassificationsRequestArgs extends FileRequestArgs { + /** + * Start position of the span. + */ + start: number; + /** + * Length of the span. + */ + length: number; + } + /** + * Arguments in document highlight request; include: filesToSearch, file, + * line, offset. + */ + interface DocumentHighlightsRequestArgs extends FileLocationRequestArgs { + /** + * List of files to search for document highlights. + */ + filesToSearch: string[]; + } + /** + * Go to definition request; value of command field is + * "definition". Return response giving the file locations that + * define the symbol found in file at location line, col. + */ + interface DefinitionRequest extends FileLocationRequest { + command: CommandTypes.Definition; + } + interface DefinitionAndBoundSpanRequest extends FileLocationRequest { + readonly command: CommandTypes.DefinitionAndBoundSpan; + } + interface DefinitionAndBoundSpanResponse extends Response { + readonly body: DefinitionInfoAndBoundSpan; + } + /** + * Go to type request; value of command field is + * "typeDefinition". Return response giving the file locations that + * define the type for the symbol found in file at location line, col. + */ + interface TypeDefinitionRequest extends FileLocationRequest { + command: CommandTypes.TypeDefinition; + } + /** + * Go to implementation request; value of command field is + * "implementation". Return response giving the file locations that + * implement the symbol found in file at location line, col. + */ + interface ImplementationRequest extends FileLocationRequest { + command: CommandTypes.Implementation; + } + /** + * Location in source code expressed as (one-based) line and (one-based) column offset. + */ + interface Location { + line: number; + offset: number; + } + /** + * Object found in response messages defining a span of text in source code. + */ + interface TextSpan { + /** + * First character of the definition. + */ + start: Location; + /** + * One character past last character of the definition. + */ + end: Location; + } + /** + * Object found in response messages defining a span of text in a specific source file. + */ + interface FileSpan extends TextSpan { + /** + * File containing text span. + */ + file: string; + } + interface DefinitionInfoAndBoundSpan { + definitions: ReadonlyArray<FileSpan>; + textSpan: TextSpan; + } + /** + * Definition response message. Gives text range for definition. + */ + interface DefinitionResponse extends Response { + body?: FileSpan[]; + } + interface DefinitionInfoAndBoundSpanReponse extends Response { + body?: DefinitionInfoAndBoundSpan; + } + /** + * Definition response message. Gives text range for definition. + */ + interface TypeDefinitionResponse extends Response { + body?: FileSpan[]; + } + /** + * Implementation response message. Gives text range for implementations. + */ + interface ImplementationResponse extends Response { + body?: FileSpan[]; + } + /** + * Request to get brace completion for a location in the file. + */ + interface BraceCompletionRequest extends FileLocationRequest { + command: CommandTypes.BraceCompletion; + arguments: BraceCompletionRequestArgs; + } + /** + * Argument for BraceCompletionRequest request. + */ + interface BraceCompletionRequestArgs extends FileLocationRequestArgs { + /** + * Kind of opening brace + */ + openingBrace: string; + } + interface JsxClosingTagRequest extends FileLocationRequest { + readonly command: CommandTypes.JsxClosingTag; + readonly arguments: JsxClosingTagRequestArgs; + } + interface JsxClosingTagRequestArgs extends FileLocationRequestArgs { + } + interface JsxClosingTagResponse extends Response { + readonly body: TextInsertion; + } + /** + * @deprecated + * Get occurrences request; value of command field is + * "occurrences". Return response giving spans that are relevant + * in the file at a given line and column. + */ + interface OccurrencesRequest extends FileLocationRequest { + command: CommandTypes.Occurrences; + } + /** @deprecated */ + interface OccurrencesResponseItem extends FileSpan { + /** + * True if the occurrence is a write location, false otherwise. + */ + isWriteAccess: boolean; + /** + * True if the occurrence is in a string, undefined otherwise; + */ + isInString?: true; + } + /** @deprecated */ + interface OccurrencesResponse extends Response { + body?: OccurrencesResponseItem[]; + } + /** + * Get document highlights request; value of command field is + * "documentHighlights". Return response giving spans that are relevant + * in the file at a given line and column. + */ + interface DocumentHighlightsRequest extends FileLocationRequest { + command: CommandTypes.DocumentHighlights; + arguments: DocumentHighlightsRequestArgs; + } + /** + * Span augmented with extra information that denotes the kind of the highlighting to be used for span. + */ + interface HighlightSpan extends TextSpan { + kind: HighlightSpanKind; + } + /** + * Represents a set of highligh spans for a give name + */ + interface DocumentHighlightsItem { + /** + * File containing highlight spans. + */ + file: string; + /** + * Spans to highlight in file. + */ + highlightSpans: HighlightSpan[]; + } + /** + * Response for a DocumentHighlightsRequest request. + */ + interface DocumentHighlightsResponse extends Response { + body?: DocumentHighlightsItem[]; + } + /** + * Find references request; value of command field is + * "references". Return response giving the file locations that + * reference the symbol found in file at location line, col. + */ + interface ReferencesRequest extends FileLocationRequest { + command: CommandTypes.References; + } + interface ReferencesResponseItem extends FileSpan { + /** Text of line containing the reference. Including this + * with the response avoids latency of editor loading files + * to show text of reference line (the server already has + * loaded the referencing files). + */ + lineText: string; + /** + * True if reference is a write location, false otherwise. + */ + isWriteAccess: boolean; + /** + * True if reference is a definition, false otherwise. + */ + isDefinition: boolean; + } + /** + * The body of a "references" response message. + */ + interface ReferencesResponseBody { + /** + * The file locations referencing the symbol. + */ + refs: ReadonlyArray<ReferencesResponseItem>; + /** + * The name of the symbol. + */ + symbolName: string; + /** + * The start character offset of the symbol (on the line provided by the references request). + */ + symbolStartOffset: number; + /** + * The full display name of the symbol. + */ + symbolDisplayString: string; + } + /** + * Response to "references" request. + */ + interface ReferencesResponse extends Response { + body?: ReferencesResponseBody; + } + /** + * Argument for RenameRequest request. + */ + interface RenameRequestArgs extends FileLocationRequestArgs { + /** + * Should text at specified location be found/changed in comments? + */ + findInComments?: boolean; + /** + * Should text at specified location be found/changed in strings? + */ + findInStrings?: boolean; + } + /** + * Rename request; value of command field is "rename". Return + * response giving the file locations that reference the symbol + * found in file at location line, col. Also return full display + * name of the symbol so that client can print it unambiguously. + */ + interface RenameRequest extends FileLocationRequest { + command: CommandTypes.Rename; + arguments: RenameRequestArgs; + } + /** + * Information about the item to be renamed. + */ + type RenameInfo = RenameInfoSuccess | RenameInfoFailure; + interface RenameInfoSuccess { + /** + * True if item can be renamed. + */ + canRename: true; + /** + * File or directory to rename. + * If set, `getEditsForFileRename` should be called instead of `findRenameLocations`. + */ + fileToRename?: string; + /** + * Display name of the item to be renamed. + */ + displayName: string; + /** + * Full display name of item to be renamed. + */ + fullDisplayName: string; + /** + * The items's kind (such as 'className' or 'parameterName' or plain 'text'). + */ + kind: ScriptElementKind; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers: string; + /** Span of text to rename. */ + triggerSpan: TextSpan; + } + interface RenameInfoFailure { + canRename: false; + /** + * Error message if item can not be renamed. + */ + localizedErrorMessage: string; + } + /** + * A group of text spans, all in 'file'. + */ + interface SpanGroup { + /** The file to which the spans apply */ + file: string; + /** The text spans in this group */ + locs: RenameTextSpan[]; + } + interface RenameTextSpan extends TextSpan { + readonly prefixText?: string; + readonly suffixText?: string; + } + interface RenameResponseBody { + /** + * Information about the item to be renamed. + */ + info: RenameInfo; + /** + * An array of span groups (one per file) that refer to the item to be renamed. + */ + locs: ReadonlyArray<SpanGroup>; + } + /** + * Rename response message. + */ + interface RenameResponse extends Response { + body?: RenameResponseBody; + } + /** + * Represents a file in external project. + * External project is project whose set of files, compilation options and open\close state + * is maintained by the client (i.e. if all this data come from .csproj file in Visual Studio). + * External project will exist even if all files in it are closed and should be closed explicitly. + * If external project includes one or more tsconfig.json/jsconfig.json files then tsserver will + * create configured project for every config file but will maintain a link that these projects were created + * as a result of opening external project so they should be removed once external project is closed. + */ + interface ExternalFile { + /** + * Name of file file + */ + fileName: string; + /** + * Script kind of the file + */ + scriptKind?: ScriptKindName | ts.ScriptKind; + /** + * Whether file has mixed content (i.e. .cshtml file that combines html markup with C#/JavaScript) + */ + hasMixedContent?: boolean; + /** + * Content of the file + */ + content?: string; + } + /** + * Represent an external project + */ + interface ExternalProject { + /** + * Project name + */ + projectFileName: string; + /** + * List of root files in project + */ + rootFiles: ExternalFile[]; + /** + * Compiler options for the project + */ + options: ExternalProjectCompilerOptions; + /** + * @deprecated typingOptions. Use typeAcquisition instead + */ + typingOptions?: TypeAcquisition; + /** + * Explicitly specified type acquisition for the project + */ + typeAcquisition?: TypeAcquisition; + } + interface CompileOnSaveMixin { + /** + * If compile on save is enabled for the project + */ + compileOnSave?: boolean; + } + /** + * For external projects, some of the project settings are sent together with + * compiler settings. + */ + type ExternalProjectCompilerOptions = CompilerOptions & CompileOnSaveMixin; + /** + * Represents a set of changes that happen in project + */ + interface ProjectChanges { + /** + * List of added files + */ + added: string[]; + /** + * List of removed files + */ + removed: string[]; + /** + * List of updated files + */ + updated: string[]; + } + /** + * Information found in a configure request. + */ + interface ConfigureRequestArguments { + /** + * Information about the host, for example 'Emacs 24.4' or + * 'Sublime Text version 3075' + */ + hostInfo?: string; + /** + * If present, tab settings apply only to this file. + */ + file?: string; + /** + * The format options to use during formatting and other code editing features. + */ + formatOptions?: FormatCodeSettings; + preferences?: UserPreferences; + /** + * The host's additional supported .js file extensions + */ + extraFileExtensions?: FileExtensionInfo[]; + } + /** + * Configure request; value of command field is "configure". Specifies + * host information, such as host type, tab size, and indent size. + */ + interface ConfigureRequest extends Request { + command: CommandTypes.Configure; + arguments: ConfigureRequestArguments; + } + /** + * Response to "configure" request. This is just an acknowledgement, so + * no body field is required. + */ + interface ConfigureResponse extends Response { + } + interface ConfigurePluginRequestArguments { + pluginName: string; + configuration: any; + } + interface ConfigurePluginRequest extends Request { + command: CommandTypes.ConfigurePlugin; + arguments: ConfigurePluginRequestArguments; + } + /** + * Information found in an "open" request. + */ + interface OpenRequestArgs extends FileRequestArgs { + /** + * Used when a version of the file content is known to be more up to date than the one on disk. + * Then the known content will be used upon opening instead of the disk copy + */ + fileContent?: string; + /** + * Used to specify the script kind of the file explicitly. It could be one of the following: + * "TS", "JS", "TSX", "JSX" + */ + scriptKindName?: ScriptKindName; + /** + * Used to limit the searching for project config file. If given the searching will stop at this + * root path; otherwise it will go all the way up to the dist root path. + */ + projectRootPath?: string; + } + type ScriptKindName = "TS" | "JS" | "TSX" | "JSX"; + /** + * Open request; value of command field is "open". Notify the + * server that the client has file open. The server will not + * monitor the filesystem for changes in this file and will assume + * that the client is updating the server (using the change and/or + * reload messages) when the file changes. Server does not currently + * send a response to an open request. + */ + interface OpenRequest extends Request { + command: CommandTypes.Open; + arguments: OpenRequestArgs; + } + /** + * Request to open or update external project + */ + interface OpenExternalProjectRequest extends Request { + command: CommandTypes.OpenExternalProject; + arguments: OpenExternalProjectArgs; + } + /** + * Arguments to OpenExternalProjectRequest request + */ + type OpenExternalProjectArgs = ExternalProject; + /** + * Request to open multiple external projects + */ + interface OpenExternalProjectsRequest extends Request { + command: CommandTypes.OpenExternalProjects; + arguments: OpenExternalProjectsArgs; + } + /** + * Arguments to OpenExternalProjectsRequest + */ + interface OpenExternalProjectsArgs { + /** + * List of external projects to open or update + */ + projects: ExternalProject[]; + } + /** + * Response to OpenExternalProjectRequest request. This is just an acknowledgement, so + * no body field is required. + */ + interface OpenExternalProjectResponse extends Response { + } + /** + * Response to OpenExternalProjectsRequest request. This is just an acknowledgement, so + * no body field is required. + */ + interface OpenExternalProjectsResponse extends Response { + } + /** + * Request to close external project. + */ + interface CloseExternalProjectRequest extends Request { + command: CommandTypes.CloseExternalProject; + arguments: CloseExternalProjectRequestArgs; + } + /** + * Arguments to CloseExternalProjectRequest request + */ + interface CloseExternalProjectRequestArgs { + /** + * Name of the project to close + */ + projectFileName: string; + } + /** + * Response to CloseExternalProjectRequest request. This is just an acknowledgement, so + * no body field is required. + */ + interface CloseExternalProjectResponse extends Response { + } + /** + * Request to set compiler options for inferred projects. + * External projects are opened / closed explicitly. + * Configured projects are opened when user opens loose file that has 'tsconfig.json' or 'jsconfig.json' anywhere in one of containing folders. + * This configuration file will be used to obtain a list of files and configuration settings for the project. + * Inferred projects are created when user opens a loose file that is not the part of external project + * or configured project and will contain only open file and transitive closure of referenced files if 'useOneInferredProject' is false, + * or all open loose files and its transitive closure of referenced files if 'useOneInferredProject' is true. + */ + interface SetCompilerOptionsForInferredProjectsRequest extends Request { + command: CommandTypes.CompilerOptionsForInferredProjects; + arguments: SetCompilerOptionsForInferredProjectsArgs; + } + /** + * Argument for SetCompilerOptionsForInferredProjectsRequest request. + */ + interface SetCompilerOptionsForInferredProjectsArgs { + /** + * Compiler options to be used with inferred projects. + */ + options: ExternalProjectCompilerOptions; + /** + * Specifies the project root path used to scope compiler options. + * It is an error to provide this property if the server has not been started with + * `useInferredProjectPerProjectRoot` enabled. + */ + projectRootPath?: string; + } + /** + * Response to SetCompilerOptionsForInferredProjectsResponse request. This is just an acknowledgement, so + * no body field is required. + */ + interface SetCompilerOptionsForInferredProjectsResponse extends Response { + } + /** + * Exit request; value of command field is "exit". Ask the server process + * to exit. + */ + interface ExitRequest extends Request { + command: CommandTypes.Exit; + } + /** + * Close request; value of command field is "close". Notify the + * server that the client has closed a previously open file. If + * file is still referenced by open files, the server will resume + * monitoring the filesystem for changes to file. Server does not + * currently send a response to a close request. + */ + interface CloseRequest extends FileRequest { + command: CommandTypes.Close; + } + /** + * Request to obtain the list of files that should be regenerated if target file is recompiled. + * NOTE: this us query-only operation and does not generate any output on disk. + */ + interface CompileOnSaveAffectedFileListRequest extends FileRequest { + command: CommandTypes.CompileOnSaveAffectedFileList; + } + /** + * Contains a list of files that should be regenerated in a project + */ + interface CompileOnSaveAffectedFileListSingleProject { + /** + * Project name + */ + projectFileName: string; + /** + * List of files names that should be recompiled + */ + fileNames: string[]; + /** + * true if project uses outFile or out compiler option + */ + projectUsesOutFile: boolean; + } + /** + * Response for CompileOnSaveAffectedFileListRequest request; + */ + interface CompileOnSaveAffectedFileListResponse extends Response { + body: CompileOnSaveAffectedFileListSingleProject[]; + } + /** + * Request to recompile the file. All generated outputs (.js, .d.ts or .js.map files) is written on disk. + */ + interface CompileOnSaveEmitFileRequest extends FileRequest { + command: CommandTypes.CompileOnSaveEmitFile; + arguments: CompileOnSaveEmitFileRequestArgs; + } + /** + * Arguments for CompileOnSaveEmitFileRequest + */ + interface CompileOnSaveEmitFileRequestArgs extends FileRequestArgs { + /** + * if true - then file should be recompiled even if it does not have any changes. + */ + forced?: boolean; + } + /** + * Quickinfo request; value of command field is + * "quickinfo". Return response giving a quick type and + * documentation string for the symbol found in file at location + * line, col. + */ + interface QuickInfoRequest extends FileLocationRequest { + command: CommandTypes.Quickinfo; + } + /** + * Body of QuickInfoResponse. + */ + interface QuickInfoResponseBody { + /** + * The symbol's kind (such as 'className' or 'parameterName' or plain 'text'). + */ + kind: ScriptElementKind; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers: string; + /** + * Starting file location of symbol. + */ + start: Location; + /** + * One past last character of symbol. + */ + end: Location; + /** + * Type and kind of symbol. + */ + displayString: string; + /** + * Documentation associated with symbol. + */ + documentation: string; + /** + * JSDoc tags associated with symbol. + */ + tags: JSDocTagInfo[]; + } + /** + * Quickinfo response message. + */ + interface QuickInfoResponse extends Response { + body?: QuickInfoResponseBody; + } + /** + * Arguments for format messages. + */ + interface FormatRequestArgs extends FileLocationRequestArgs { + /** + * Last line of range for which to format text in file. + */ + endLine: number; + /** + * Character offset on last line of range for which to format text in file. + */ + endOffset: number; + /** + * Format options to be used. + */ + options?: FormatCodeSettings; + } + /** + * Format request; value of command field is "format". Return + * response giving zero or more edit instructions. The edit + * instructions will be sorted in file order. Applying the edit + * instructions in reverse to file will result in correctly + * reformatted text. + */ + interface FormatRequest extends FileLocationRequest { + command: CommandTypes.Format; + arguments: FormatRequestArgs; + } + /** + * Object found in response messages defining an editing + * instruction for a span of text in source code. The effect of + * this instruction is to replace the text starting at start and + * ending one character before end with newText. For an insertion, + * the text span is empty. For a deletion, newText is empty. + */ + interface CodeEdit { + /** + * First character of the text span to edit. + */ + start: Location; + /** + * One character past last character of the text span to edit. + */ + end: Location; + /** + * Replace the span defined above with this string (may be + * the empty string). + */ + newText: string; + } + interface FileCodeEdits { + fileName: string; + textChanges: CodeEdit[]; + } + interface CodeFixResponse extends Response { + /** The code actions that are available */ + body?: CodeFixAction[]; + } + interface CodeAction { + /** Description of the code action to display in the UI of the editor */ + description: string; + /** Text changes to apply to each file as part of the code action */ + changes: FileCodeEdits[]; + /** A command is an opaque object that should be passed to `ApplyCodeActionCommandRequestArgs` without modification. */ + commands?: {}[]; + } + interface CombinedCodeActions { + changes: ReadonlyArray<FileCodeEdits>; + commands?: ReadonlyArray<{}>; + } + interface CodeFixAction extends CodeAction { + /** Short name to identify the fix, for use by telemetry. */ + fixName: string; + /** + * If present, one may call 'getCombinedCodeFix' with this fixId. + * This may be omitted to indicate that the code fix can't be applied in a group. + */ + fixId?: {}; + /** Should be present if and only if 'fixId' is. */ + fixAllDescription?: string; + } + /** + * Format and format on key response message. + */ + interface FormatResponse extends Response { + body?: CodeEdit[]; + } + /** + * Arguments for format on key messages. + */ + interface FormatOnKeyRequestArgs extends FileLocationRequestArgs { + /** + * Key pressed (';', '\n', or '}'). + */ + key: string; + options?: FormatCodeSettings; + } + /** + * Format on key request; value of command field is + * "formatonkey". Given file location and key typed (as string), + * return response giving zero or more edit instructions. The + * edit instructions will be sorted in file order. Applying the + * edit instructions in reverse to file will result in correctly + * reformatted text. + */ + interface FormatOnKeyRequest extends FileLocationRequest { + command: CommandTypes.Formatonkey; + arguments: FormatOnKeyRequestArgs; + } + type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<"; + /** + * Arguments for completions messages. + */ + interface CompletionsRequestArgs extends FileLocationRequestArgs { + /** + * Optional prefix to apply to possible completions. + */ + prefix?: string; + /** + * Character that was responsible for triggering completion. + * Should be `undefined` if a user manually requested completion. + */ + triggerCharacter?: CompletionsTriggerCharacter; + /** + * @deprecated Use UserPreferences.includeCompletionsForModuleExports + */ + includeExternalModuleExports?: boolean; + /** + * @deprecated Use UserPreferences.includeCompletionsWithInsertText + */ + includeInsertTextCompletions?: boolean; + } + /** + * Completions request; value of command field is "completions". + * Given a file location (file, line, col) and a prefix (which may + * be the empty string), return the possible completions that + * begin with prefix. + */ + interface CompletionsRequest extends FileLocationRequest { + command: CommandTypes.Completions | CommandTypes.CompletionInfo; + arguments: CompletionsRequestArgs; + } + /** + * Arguments for completion details request. + */ + interface CompletionDetailsRequestArgs extends FileLocationRequestArgs { + /** + * Names of one or more entries for which to obtain details. + */ + entryNames: (string | CompletionEntryIdentifier)[]; + } + interface CompletionEntryIdentifier { + name: string; + source?: string; + } + /** + * Completion entry details request; value of command field is + * "completionEntryDetails". Given a file location (file, line, + * col) and an array of completion entry names return more + * detailed information for each completion entry. + */ + interface CompletionDetailsRequest extends FileLocationRequest { + command: CommandTypes.CompletionDetails; + arguments: CompletionDetailsRequestArgs; + } + /** + * Part of a symbol description. + */ + interface SymbolDisplayPart { + /** + * Text of an item describing the symbol. + */ + text: string; + /** + * The symbol's kind (such as 'className' or 'parameterName' or plain 'text'). + */ + kind: string; + } + /** + * An item found in a completion response. + */ + interface CompletionEntry { + /** + * The symbol's name. + */ + name: string; + /** + * The symbol's kind (such as 'className' or 'parameterName'). + */ + kind: ScriptElementKind; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers?: string; + /** + * A string that is used for comparing completion items so that they can be ordered. This + * is often the same as the name but may be different in certain circumstances. + */ + sortText: string; + /** + * Text to insert instead of `name`. + * This is used to support bracketed completions; If `name` might be "a-b" but `insertText` would be `["a-b"]`, + * coupled with `replacementSpan` to replace a dotted access with a bracket access. + */ + insertText?: string; + /** + * An optional span that indicates the text to be replaced by this completion item. + * If present, this span should be used instead of the default one. + * It will be set if the required span differs from the one generated by the default replacement behavior. + */ + replacementSpan?: TextSpan; + /** + * Indicates whether commiting this completion entry will require additional code actions to be + * made to avoid errors. The CompletionEntryDetails will have these actions. + */ + hasAction?: true; + /** + * Identifier (not necessarily human-readable) identifying where this completion came from. + */ + source?: string; + /** + * If true, this completion should be highlighted as recommended. There will only be one of these. + * This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class. + * Then either that enum/class or a namespace containing it will be the recommended symbol. + */ + isRecommended?: true; + } + /** + * Additional completion entry details, available on demand + */ + interface CompletionEntryDetails { + /** + * The symbol's name. + */ + name: string; + /** + * The symbol's kind (such as 'className' or 'parameterName'). + */ + kind: ScriptElementKind; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers: string; + /** + * Display parts of the symbol (similar to quick info). + */ + displayParts: SymbolDisplayPart[]; + /** + * Documentation strings for the symbol. + */ + documentation?: SymbolDisplayPart[]; + /** + * JSDoc tags for the symbol. + */ + tags?: JSDocTagInfo[]; + /** + * The associated code actions for this entry + */ + codeActions?: CodeAction[]; + /** + * Human-readable description of the `source` from the CompletionEntry. + */ + source?: SymbolDisplayPart[]; + } + /** @deprecated Prefer CompletionInfoResponse, which supports several top-level fields in addition to the array of entries. */ + interface CompletionsResponse extends Response { + body?: CompletionEntry[]; + } + interface CompletionInfoResponse extends Response { + body?: CompletionInfo; + } + interface CompletionInfo { + readonly isGlobalCompletion: boolean; + readonly isMemberCompletion: boolean; + readonly isNewIdentifierLocation: boolean; + readonly entries: ReadonlyArray<CompletionEntry>; + } + interface CompletionDetailsResponse extends Response { + body?: CompletionEntryDetails[]; + } + /** + * Signature help information for a single parameter + */ + interface SignatureHelpParameter { + /** + * The parameter's name + */ + name: string; + /** + * Documentation of the parameter. + */ + documentation: SymbolDisplayPart[]; + /** + * Display parts of the parameter. + */ + displayParts: SymbolDisplayPart[]; + /** + * Whether the parameter is optional or not. + */ + isOptional: boolean; + } + /** + * Represents a single signature to show in signature help. + */ + interface SignatureHelpItem { + /** + * Whether the signature accepts a variable number of arguments. + */ + isVariadic: boolean; + /** + * The prefix display parts. + */ + prefixDisplayParts: SymbolDisplayPart[]; + /** + * The suffix display parts. + */ + suffixDisplayParts: SymbolDisplayPart[]; + /** + * The separator display parts. + */ + separatorDisplayParts: SymbolDisplayPart[]; + /** + * The signature helps items for the parameters. + */ + parameters: SignatureHelpParameter[]; + /** + * The signature's documentation + */ + documentation: SymbolDisplayPart[]; + /** + * The signature's JSDoc tags + */ + tags: JSDocTagInfo[]; + } + /** + * Signature help items found in the response of a signature help request. + */ + interface SignatureHelpItems { + /** + * The signature help items. + */ + items: SignatureHelpItem[]; + /** + * The span for which signature help should appear on a signature + */ + applicableSpan: TextSpan; + /** + * The item selected in the set of available help items. + */ + selectedItemIndex: number; + /** + * The argument selected in the set of parameters. + */ + argumentIndex: number; + /** + * The argument count + */ + argumentCount: number; + } + type SignatureHelpTriggerCharacter = "," | "(" | "<"; + type SignatureHelpRetriggerCharacter = SignatureHelpTriggerCharacter | ")"; + /** + * Arguments of a signature help request. + */ + interface SignatureHelpRequestArgs extends FileLocationRequestArgs { + /** + * Reason why signature help was invoked. + * See each individual possible + */ + triggerReason?: SignatureHelpTriggerReason; + } + type SignatureHelpTriggerReason = SignatureHelpInvokedReason | SignatureHelpCharacterTypedReason | SignatureHelpRetriggeredReason; + /** + * Signals that the user manually requested signature help. + * The language service will unconditionally attempt to provide a result. + */ + interface SignatureHelpInvokedReason { + kind: "invoked"; + triggerCharacter?: undefined; + } + /** + * Signals that the signature help request came from a user typing a character. + * Depending on the character and the syntactic context, the request may or may not be served a result. + */ + interface SignatureHelpCharacterTypedReason { + kind: "characterTyped"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter: SignatureHelpTriggerCharacter; + } + /** + * Signals that this signature help request came from typing a character or moving the cursor. + * This should only occur if a signature help session was already active and the editor needs to see if it should adjust. + * The language service will unconditionally attempt to provide a result. + * `triggerCharacter` can be `undefined` for a retrigger caused by a cursor move. + */ + interface SignatureHelpRetriggeredReason { + kind: "retrigger"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter?: SignatureHelpRetriggerCharacter; + } + /** + * Signature help request; value of command field is "signatureHelp". + * Given a file location (file, line, col), return the signature + * help. + */ + interface SignatureHelpRequest extends FileLocationRequest { + command: CommandTypes.SignatureHelp; + arguments: SignatureHelpRequestArgs; + } + /** + * Response object for a SignatureHelpRequest. + */ + interface SignatureHelpResponse extends Response { + body?: SignatureHelpItems; + } + /** + * Synchronous request for semantic diagnostics of one file. + */ + interface SemanticDiagnosticsSyncRequest extends FileRequest { + command: CommandTypes.SemanticDiagnosticsSync; + arguments: SemanticDiagnosticsSyncRequestArgs; + } + interface SemanticDiagnosticsSyncRequestArgs extends FileRequestArgs { + includeLinePosition?: boolean; + } + /** + * Response object for synchronous sematic diagnostics request. + */ + interface SemanticDiagnosticsSyncResponse extends Response { + body?: Diagnostic[] | DiagnosticWithLinePosition[]; + } + interface SuggestionDiagnosticsSyncRequest extends FileRequest { + command: CommandTypes.SuggestionDiagnosticsSync; + arguments: SuggestionDiagnosticsSyncRequestArgs; + } + type SuggestionDiagnosticsSyncRequestArgs = SemanticDiagnosticsSyncRequestArgs; + type SuggestionDiagnosticsSyncResponse = SemanticDiagnosticsSyncResponse; + /** + * Synchronous request for syntactic diagnostics of one file. + */ + interface SyntacticDiagnosticsSyncRequest extends FileRequest { + command: CommandTypes.SyntacticDiagnosticsSync; + arguments: SyntacticDiagnosticsSyncRequestArgs; + } + interface SyntacticDiagnosticsSyncRequestArgs extends FileRequestArgs { + includeLinePosition?: boolean; + } + /** + * Response object for synchronous syntactic diagnostics request. + */ + interface SyntacticDiagnosticsSyncResponse extends Response { + body?: Diagnostic[] | DiagnosticWithLinePosition[]; + } + /** + * Arguments for GeterrForProject request. + */ + interface GeterrForProjectRequestArgs { + /** + * the file requesting project error list + */ + file: string; + /** + * Delay in milliseconds to wait before starting to compute + * errors for the files in the file list + */ + delay: number; + } + /** + * GeterrForProjectRequest request; value of command field is + * "geterrForProject". It works similarly with 'Geterr', only + * it request for every file in this project. + */ + interface GeterrForProjectRequest extends Request { + command: CommandTypes.GeterrForProject; + arguments: GeterrForProjectRequestArgs; + } + /** + * Arguments for geterr messages. + */ + interface GeterrRequestArgs { + /** + * List of file names for which to compute compiler errors. + * The files will be checked in list order. + */ + files: string[]; + /** + * Delay in milliseconds to wait before starting to compute + * errors for the files in the file list + */ + delay: number; + } + /** + * Geterr request; value of command field is "geterr". Wait for + * delay milliseconds and then, if during the wait no change or + * reload messages have arrived for the first file in the files + * list, get the syntactic errors for the file, field requests, + * and then get the semantic errors for the file. Repeat with a + * smaller delay for each subsequent file on the files list. Best + * practice for an editor is to send a file list containing each + * file that is currently visible, in most-recently-used order. + */ + interface GeterrRequest extends Request { + command: CommandTypes.Geterr; + arguments: GeterrRequestArgs; + } + type RequestCompletedEventName = "requestCompleted"; + /** + * Event that is sent when server have finished processing request with specified id. + */ + interface RequestCompletedEvent extends Event { + event: RequestCompletedEventName; + body: RequestCompletedEventBody; + } + interface RequestCompletedEventBody { + request_seq: number; + } + /** + * Item of diagnostic information found in a DiagnosticEvent message. + */ + interface Diagnostic { + /** + * Starting file location at which text applies. + */ + start: Location; + /** + * The last file location at which the text applies. + */ + end: Location; + /** + * Text of diagnostic message. + */ + text: string; + /** + * The category of the diagnostic message, e.g. "error", "warning", or "suggestion". + */ + category: string; + reportsUnnecessary?: {}; + /** + * Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites + */ + relatedInformation?: DiagnosticRelatedInformation[]; + /** + * The error code of the diagnostic message. + */ + code?: number; + /** + * The name of the plugin reporting the message. + */ + source?: string; + } + interface DiagnosticWithFileName extends Diagnostic { + /** + * Name of the file the diagnostic is in + */ + fileName: string; + } + /** + * Represents additional spans returned with a diagnostic which are relevant to it + */ + interface DiagnosticRelatedInformation { + /** + * The category of the related information message, e.g. "error", "warning", or "suggestion". + */ + category: string; + /** + * The code used ot identify the related information + */ + code: number; + /** + * Text of related or additional information. + */ + message: string; + /** + * Associated location + */ + span?: FileSpan; + } + interface DiagnosticEventBody { + /** + * The file for which diagnostic information is reported. + */ + file: string; + /** + * An array of diagnostic information items. + */ + diagnostics: Diagnostic[]; + } + type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag"; + /** + * Event message for DiagnosticEventKind event types. + * These events provide syntactic and semantic errors for a file. + */ + interface DiagnosticEvent extends Event { + body?: DiagnosticEventBody; + event: DiagnosticEventKind; + } + interface ConfigFileDiagnosticEventBody { + /** + * The file which trigged the searching and error-checking of the config file + */ + triggerFile: string; + /** + * The name of the found config file. + */ + configFile: string; + /** + * An arry of diagnostic information items for the found config file. + */ + diagnostics: DiagnosticWithFileName[]; + } + /** + * Event message for "configFileDiag" event type. + * This event provides errors for a found config file. + */ + interface ConfigFileDiagnosticEvent extends Event { + body?: ConfigFileDiagnosticEventBody; + event: "configFileDiag"; + } + type ProjectLanguageServiceStateEventName = "projectLanguageServiceState"; + interface ProjectLanguageServiceStateEvent extends Event { + event: ProjectLanguageServiceStateEventName; + body?: ProjectLanguageServiceStateEventBody; + } + interface ProjectLanguageServiceStateEventBody { + /** + * Project name that has changes in the state of language service. + * For configured projects this will be the config file path. + * For external projects this will be the name of the projects specified when project was open. + * For inferred projects this event is not raised. + */ + projectName: string; + /** + * True if language service state switched from disabled to enabled + * and false otherwise. + */ + languageServiceEnabled: boolean; + } + type ProjectsUpdatedInBackgroundEventName = "projectsUpdatedInBackground"; + interface ProjectsUpdatedInBackgroundEvent extends Event { + event: ProjectsUpdatedInBackgroundEventName; + body: ProjectsUpdatedInBackgroundEventBody; + } + interface ProjectsUpdatedInBackgroundEventBody { + /** + * Current set of open files + */ + openFiles: string[]; + } + type ProjectLoadingStartEventName = "projectLoadingStart"; + interface ProjectLoadingStartEvent extends Event { + event: ProjectLoadingStartEventName; + body: ProjectLoadingStartEventBody; + } + interface ProjectLoadingStartEventBody { + /** name of the project */ + projectName: string; + /** reason for loading */ + reason: string; + } + type ProjectLoadingFinishEventName = "projectLoadingFinish"; + interface ProjectLoadingFinishEvent extends Event { + event: ProjectLoadingFinishEventName; + body: ProjectLoadingFinishEventBody; + } + interface ProjectLoadingFinishEventBody { + /** name of the project */ + projectName: string; + } + type SurveyReadyEventName = "surveyReady"; + interface SurveyReadyEvent extends Event { + event: SurveyReadyEventName; + body: SurveyReadyEventBody; + } + interface SurveyReadyEventBody { + /** Name of the survey. This is an internal machine- and programmer-friendly name */ + surveyId: string; + } + type LargeFileReferencedEventName = "largeFileReferenced"; + interface LargeFileReferencedEvent extends Event { + event: LargeFileReferencedEventName; + body: LargeFileReferencedEventBody; + } + interface LargeFileReferencedEventBody { + /** + * name of the large file being loaded + */ + file: string; + /** + * size of the file + */ + fileSize: number; + /** + * max file size allowed on the server + */ + maxFileSize: number; + } + /** + * Arguments for reload request. + */ + interface ReloadRequestArgs extends FileRequestArgs { + /** + * Name of temporary file from which to reload file + * contents. May be same as file. + */ + tmpfile: string; + } + /** + * Reload request message; value of command field is "reload". + * Reload contents of file with name given by the 'file' argument + * from temporary file with name given by the 'tmpfile' argument. + * The two names can be identical. + */ + interface ReloadRequest extends FileRequest { + command: CommandTypes.Reload; + arguments: ReloadRequestArgs; + } + /** + * Response to "reload" request. This is just an acknowledgement, so + * no body field is required. + */ + interface ReloadResponse extends Response { + } + /** + * Arguments for saveto request. + */ + interface SavetoRequestArgs extends FileRequestArgs { + /** + * Name of temporary file into which to save server's view of + * file contents. + */ + tmpfile: string; + } + /** + * Saveto request message; value of command field is "saveto". + * For debugging purposes, save to a temporaryfile (named by + * argument 'tmpfile') the contents of file named by argument + * 'file'. The server does not currently send a response to a + * "saveto" request. + */ + interface SavetoRequest extends FileRequest { + command: CommandTypes.Saveto; + arguments: SavetoRequestArgs; + } + /** + * Arguments for navto request message. + */ + interface NavtoRequestArgs extends FileRequestArgs { + /** + * Search term to navigate to from current location; term can + * be '.*' or an identifier prefix. + */ + searchValue: string; + /** + * Optional limit on the number of items to return. + */ + maxResultCount?: number; + /** + * Optional flag to indicate we want results for just the current file + * or the entire project. + */ + currentFileOnly?: boolean; + projectFileName?: string; + } + /** + * Navto request message; value of command field is "navto". + * Return list of objects giving file locations and symbols that + * match the search term given in argument 'searchTerm'. The + * context for the search is given by the named file. + */ + interface NavtoRequest extends FileRequest { + command: CommandTypes.Navto; + arguments: NavtoRequestArgs; + } + /** + * An item found in a navto response. + */ + interface NavtoItem extends FileSpan { + /** + * The symbol's name. + */ + name: string; + /** + * The symbol's kind (such as 'className' or 'parameterName'). + */ + kind: ScriptElementKind; + /** + * exact, substring, or prefix. + */ + matchKind: string; + /** + * If this was a case sensitive or insensitive match. + */ + isCaseSensitive: boolean; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers?: string; + /** + * Name of symbol's container symbol (if any); for example, + * the class name if symbol is a class member. + */ + containerName?: string; + /** + * Kind of symbol's container symbol (if any). + */ + containerKind?: ScriptElementKind; + } + /** + * Navto response message. Body is an array of navto items. Each + * item gives a symbol that matched the search term. + */ + interface NavtoResponse extends Response { + body?: NavtoItem[]; + } + /** + * Arguments for change request message. + */ + interface ChangeRequestArgs extends FormatRequestArgs { + /** + * Optional string to insert at location (file, line, offset). + */ + insertString?: string; + } + /** + * Change request message; value of command field is "change". + * Update the server's view of the file named by argument 'file'. + * Server does not currently send a response to a change request. + */ + interface ChangeRequest extends FileLocationRequest { + command: CommandTypes.Change; + arguments: ChangeRequestArgs; + } + /** + * Response to "brace" request. + */ + interface BraceResponse extends Response { + body?: TextSpan[]; + } + /** + * Brace matching request; value of command field is "brace". + * Return response giving the file locations of matching braces + * found in file at location line, offset. + */ + interface BraceRequest extends FileLocationRequest { + command: CommandTypes.Brace; + } + /** + * NavBar items request; value of command field is "navbar". + * Return response giving the list of navigation bar entries + * extracted from the requested file. + */ + interface NavBarRequest extends FileRequest { + command: CommandTypes.NavBar; + } + /** + * NavTree request; value of command field is "navtree". + * Return response giving the navigation tree of the requested file. + */ + interface NavTreeRequest extends FileRequest { + command: CommandTypes.NavTree; + } + interface NavigationBarItem { + /** + * The item's display text. + */ + text: string; + /** + * The symbol's kind (such as 'className' or 'parameterName'). + */ + kind: ScriptElementKind; + /** + * Optional modifiers for the kind (such as 'public'). + */ + kindModifiers?: string; + /** + * The definition locations of the item. + */ + spans: TextSpan[]; + /** + * Optional children. + */ + childItems?: NavigationBarItem[]; + /** + * Number of levels deep this item should appear. + */ + indent: number; + } + /** protocol.NavigationTree is identical to ts.NavigationTree, except using protocol.TextSpan instead of ts.TextSpan */ + interface NavigationTree { + text: string; + kind: ScriptElementKind; + kindModifiers: string; + spans: TextSpan[]; + nameSpan: TextSpan | undefined; + childItems?: NavigationTree[]; + } + type TelemetryEventName = "telemetry"; + interface TelemetryEvent extends Event { + event: TelemetryEventName; + body: TelemetryEventBody; + } + interface TelemetryEventBody { + telemetryEventName: string; + payload: any; + } + type TypesInstallerInitializationFailedEventName = "typesInstallerInitializationFailed"; + interface TypesInstallerInitializationFailedEvent extends Event { + event: TypesInstallerInitializationFailedEventName; + body: TypesInstallerInitializationFailedEventBody; + } + interface TypesInstallerInitializationFailedEventBody { + message: string; + } + type TypingsInstalledTelemetryEventName = "typingsInstalled"; + interface TypingsInstalledTelemetryEventBody extends TelemetryEventBody { + telemetryEventName: TypingsInstalledTelemetryEventName; + payload: TypingsInstalledTelemetryEventPayload; + } + interface TypingsInstalledTelemetryEventPayload { + /** + * Comma separated list of installed typing packages + */ + installedPackages: string; + /** + * true if install request succeeded, otherwise - false + */ + installSuccess: boolean; + /** + * version of typings installer + */ + typingsInstallerVersion: string; + } + type BeginInstallTypesEventName = "beginInstallTypes"; + type EndInstallTypesEventName = "endInstallTypes"; + interface BeginInstallTypesEvent extends Event { + event: BeginInstallTypesEventName; + body: BeginInstallTypesEventBody; + } + interface EndInstallTypesEvent extends Event { + event: EndInstallTypesEventName; + body: EndInstallTypesEventBody; + } + interface InstallTypesEventBody { + /** + * correlation id to match begin and end events + */ + eventId: number; + /** + * list of packages to install + */ + packages: ReadonlyArray<string>; + } + interface BeginInstallTypesEventBody extends InstallTypesEventBody { + } + interface EndInstallTypesEventBody extends InstallTypesEventBody { + /** + * true if installation succeeded, otherwise false + */ + success: boolean; + } + interface NavBarResponse extends Response { + body?: NavigationBarItem[]; + } + interface NavTreeResponse extends Response { + body?: NavigationTree; + } + enum IndentStyle { + None = "None", + Block = "Block", + Smart = "Smart" + } + interface EditorSettings { + baseIndentSize?: number; + indentSize?: number; + tabSize?: number; + newLineCharacter?: string; + convertTabsToSpaces?: boolean; + indentStyle?: IndentStyle | ts.IndentStyle; + } + interface FormatCodeSettings extends EditorSettings { + insertSpaceAfterCommaDelimiter?: boolean; + insertSpaceAfterSemicolonInForStatements?: boolean; + insertSpaceBeforeAndAfterBinaryOperators?: boolean; + insertSpaceAfterConstructor?: boolean; + insertSpaceAfterKeywordsInControlFlowStatements?: boolean; + insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean; + insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean; + insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean; + insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean; + insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + insertSpaceAfterTypeAssertion?: boolean; + insertSpaceBeforeFunctionParenthesis?: boolean; + placeOpenBraceOnNewLineForFunctions?: boolean; + placeOpenBraceOnNewLineForControlBlocks?: boolean; + insertSpaceBeforeTypeAnnotation?: boolean; + } + interface UserPreferences { + readonly disableSuggestions?: boolean; + readonly quotePreference?: "double" | "single"; + /** + * If enabled, TypeScript will search through all external modules' exports and add them to the completions list. + * This affects lone identifier completions but not completions on the right hand side of `obj.`. + */ + readonly includeCompletionsForModuleExports?: boolean; + /** + * If enabled, the completion list will include completions with invalid identifier names. + * For those entries, The `insertText` and `replacementSpan` properties will be set to change from `.x` property access to `["x"]`. + */ + readonly includeCompletionsWithInsertText?: boolean; + readonly importModuleSpecifierPreference?: "relative" | "non-relative"; + readonly allowTextChangesInNewFiles?: boolean; + readonly lazyConfiguredProjectsFromExternalProject?: boolean; + } + interface CompilerOptions { + allowJs?: boolean; + allowSyntheticDefaultImports?: boolean; + allowUnreachableCode?: boolean; + allowUnusedLabels?: boolean; + alwaysStrict?: boolean; + baseUrl?: string; + charset?: string; + checkJs?: boolean; + declaration?: boolean; + declarationDir?: string; + disableSizeLimit?: boolean; + downlevelIteration?: boolean; + emitBOM?: boolean; + emitDecoratorMetadata?: boolean; + experimentalDecorators?: boolean; + forceConsistentCasingInFileNames?: boolean; + importHelpers?: boolean; + inlineSourceMap?: boolean; + inlineSources?: boolean; + isolatedModules?: boolean; + jsx?: JsxEmit | ts.JsxEmit; + lib?: string[]; + locale?: string; + mapRoot?: string; + maxNodeModuleJsDepth?: number; + module?: ModuleKind | ts.ModuleKind; + moduleResolution?: ModuleResolutionKind | ts.ModuleResolutionKind; + newLine?: NewLineKind | ts.NewLineKind; + noEmit?: boolean; + noEmitHelpers?: boolean; + noEmitOnError?: boolean; + noErrorTruncation?: boolean; + noFallthroughCasesInSwitch?: boolean; + noImplicitAny?: boolean; + noImplicitReturns?: boolean; + noImplicitThis?: boolean; + noUnusedLocals?: boolean; + noUnusedParameters?: boolean; + noImplicitUseStrict?: boolean; + noLib?: boolean; + noResolve?: boolean; + out?: string; + outDir?: string; + outFile?: string; + paths?: MapLike<string[]>; + plugins?: PluginImport[]; + preserveConstEnums?: boolean; + preserveSymlinks?: boolean; + project?: string; + reactNamespace?: string; + removeComments?: boolean; + references?: ProjectReference[]; + rootDir?: string; + rootDirs?: string[]; + skipLibCheck?: boolean; + skipDefaultLibCheck?: boolean; + sourceMap?: boolean; + sourceRoot?: string; + strict?: boolean; + strictNullChecks?: boolean; + suppressExcessPropertyErrors?: boolean; + suppressImplicitAnyIndexErrors?: boolean; + target?: ScriptTarget | ts.ScriptTarget; + traceResolution?: boolean; + resolveJsonModule?: boolean; + types?: string[]; + /** Paths used to used to compute primary types search locations */ + typeRoots?: string[]; + [option: string]: CompilerOptionsValue | undefined; + } + enum JsxEmit { + None = "None", + Preserve = "Preserve", + ReactNative = "ReactNative", + React = "React" + } + enum ModuleKind { + None = "None", + CommonJS = "CommonJS", + AMD = "AMD", + UMD = "UMD", + System = "System", + ES6 = "ES6", + ES2015 = "ES2015", + ESNext = "ESNext" + } + enum ModuleResolutionKind { + Classic = "Classic", + Node = "Node" + } + enum NewLineKind { + Crlf = "Crlf", + Lf = "Lf" + } + enum ScriptTarget { + ES3 = "ES3", + ES5 = "ES5", + ES6 = "ES6", + ES2015 = "ES2015", + ES2016 = "ES2016", + ES2017 = "ES2017", + ESNext = "ESNext" + } +} +declare namespace ts.server { + interface ScriptInfoVersion { + svc: number; + text: number; + } + class ScriptInfo { + private readonly host; + readonly fileName: NormalizedPath; + readonly scriptKind: ScriptKind; + readonly hasMixedContent: boolean; + readonly path: Path; + /** + * All projects that include this file + */ + readonly containingProjects: Project[]; + private formatSettings; + private preferences; + private textStorage; + constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: ScriptInfoVersion); + isScriptOpen(): boolean; + open(newText: string): void; + close(fileExists?: boolean): void; + getSnapshot(): IScriptSnapshot; + private ensureRealPath; + getFormatCodeSettings(): FormatCodeSettings | undefined; + getPreferences(): protocol.UserPreferences | undefined; + attachToProject(project: Project): boolean; + isAttached(project: Project): boolean; + detachFromProject(project: Project): void; + detachAllProjects(): void; + getDefaultProject(): Project; + registerFileUpdate(): void; + setOptions(formatSettings: FormatCodeSettings, preferences: protocol.UserPreferences | undefined): void; + getLatestVersion(): string; + saveTo(fileName: string): void; + reloadFromFile(tempFileName?: NormalizedPath): boolean; + editContent(start: number, end: number, newText: string): void; + markContainingProjectsAsDirty(): void; + isOrphan(): boolean; + /** + * @param line 1 based index + */ + lineToTextSpan(line: number): TextSpan; + /** + * @param line 1 based index + * @param offset 1 based index + */ + lineOffsetToPosition(line: number, offset: number): number; + positionToLineOffset(position: number): protocol.Location; + isJavaScript(): boolean; + } +} +declare namespace ts.server { + interface InstallPackageOptionsWithProject extends InstallPackageOptions { + projectName: string; + projectRootPath: Path; + } + interface ITypingsInstaller { + isKnownTypesPackageName(name: string): boolean; + installPackage(options: InstallPackageOptionsWithProject): Promise<ApplyCodeActionCommandResult>; + enqueueInstallTypingsRequest(p: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray<string> | undefined): void; + attach(projectService: ProjectService): void; + onProjectClosed(p: Project): void; + readonly globalTypingsCacheLocation: string | undefined; + } + const nullTypingsInstaller: ITypingsInstaller; +} +declare namespace ts.server { + enum ProjectKind { + Inferred = 0, + Configured = 1, + External = 2 + } + function allRootFilesAreJsOrDts(project: Project): boolean; + function allFilesAreJsOrDts(project: Project): boolean; + interface PluginCreateInfo { + project: Project; + languageService: LanguageService; + languageServiceHost: LanguageServiceHost; + serverHost: ServerHost; + config: any; + } + interface PluginModule { + create(createInfo: PluginCreateInfo): LanguageService; + getExternalFiles?(proj: Project): string[]; + onConfigurationChanged?(config: any): void; + } + interface PluginModuleWithName { + name: string; + module: PluginModule; + } + type PluginModuleFactory = (mod: { + typescript: typeof ts; + }) => PluginModule; + /** + * The project root can be script info - if root is present, + * or it could be just normalized path if root wasnt present on the host(only for non inferred project) + */ + type ProjectRoot = ScriptInfo | NormalizedPath; + abstract class Project implements LanguageServiceHost, ModuleResolutionHost { + readonly projectName: string; + readonly projectKind: ProjectKind; + readonly projectService: ProjectService; + private documentRegistry; + private compilerOptions; + compileOnSaveEnabled: boolean; + private rootFiles; + private rootFilesMap; + private program; + private externalFiles; + private missingFilesMap; + private plugins; + private lastFileExceededProgramSize; + protected languageService: LanguageService; + languageServiceEnabled: boolean; + readonly trace?: (s: string) => void; + readonly realpath?: (path: string) => string; + private builderState; + /** + * Set of files names that were updated since the last call to getChangesSinceVersion. + */ + private updatedFileNames; + /** + * Set of files that was returned from the last call to getChangesSinceVersion. + */ + private lastReportedFileNames; + /** + * Last version that was reported. + */ + private lastReportedVersion; + /** + * Current project's program version. (incremented everytime new program is created that is not complete reuse from the old one) + * This property is changed in 'updateGraph' based on the set of files in program + */ + private projectProgramVersion; + /** + * Current version of the project state. It is changed when: + * - new root file was added/removed + * - edit happen in some file that is currently included in the project. + * This property is different from projectStructureVersion since in most cases edits don't affect set of files in the project + */ + private projectStateVersion; + protected isInitialLoadPending: () => boolean; + private readonly cancellationToken; + isNonTsProject(): boolean; + isJsOnlyProject(): boolean; + static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void): {} | undefined; + isKnownTypesPackageName(name: string): boolean; + installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>; + private readonly typingsCache; + getCompilationSettings(): CompilerOptions; + getCompilerOptions(): CompilerOptions; + getNewLine(): string; + getProjectVersion(): string; + getProjectReferences(): ReadonlyArray<ProjectReference> | undefined; + getScriptFileNames(): string[]; + private getOrCreateScriptInfoAndAttachToProject; + getScriptKind(fileName: string): ScriptKind; + getScriptVersion(filename: string): string; + getScriptSnapshot(filename: string): IScriptSnapshot | undefined; + getCancellationToken(): HostCancellationToken; + getCurrentDirectory(): string; + getDefaultLibFileName(): string; + useCaseSensitiveFileNames(): boolean; + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + readFile(fileName: string): string | undefined; + writeFile(fileName: string, content: string): void; + fileExists(file: string): boolean; + resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[]; + getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; + resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + directoryExists(path: string): boolean; + getDirectories(path: string): string[]; + log(s: string): void; + error(s: string): void; + private setInternalCompilerOptionsForEmittingJsFiles; + /** + * Get the errors that dont have any file name associated + */ + getGlobalProjectErrors(): ReadonlyArray<Diagnostic>; + getAllProjectErrors(): ReadonlyArray<Diagnostic>; + getLanguageService(ensureSynchronized?: boolean): LanguageService; + private shouldEmitFile; + getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[]; + /** + * Returns true if emit was conducted + */ + emitFile(scriptInfo: ScriptInfo, writeFile: (path: string, data: string, writeByteOrderMark?: boolean) => void): boolean; + enableLanguageService(): void; + disableLanguageService(lastFileExceededProgramSize?: string): void; + getProjectName(): string; + abstract getTypeAcquisition(): TypeAcquisition; + protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition; + getExternalFiles(): SortedReadonlyArray<string>; + getSourceFile(path: Path): SourceFile | undefined; + close(): void; + private detachScriptInfoIfNotRoot; + isClosed(): boolean; + hasRoots(): boolean; + getRootFiles(): NormalizedPath[]; + getRootScriptInfos(): ScriptInfo[]; + getScriptInfos(): ScriptInfo[]; + getExcludedFiles(): ReadonlyArray<NormalizedPath>; + getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[]; + hasConfigFile(configFilePath: NormalizedPath): boolean; + containsScriptInfo(info: ScriptInfo): boolean; + containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean; + isRoot(info: ScriptInfo): boolean; + addRoot(info: ScriptInfo): void; + addMissingFileRoot(fileName: NormalizedPath): void; + removeFile(info: ScriptInfo, fileExists: boolean, detachFromProject: boolean): void; + registerFileUpdate(fileName: string): void; + markAsDirty(): void; + /** + * Updates set of files that contribute to this project + * @returns: true if set of files in the project stays the same and false - otherwise. + */ + updateGraph(): boolean; + protected removeExistingTypings(include: string[]): string[]; + private updateGraphWorker; + private detachScriptInfoFromProject; + private addMissingFileWatcher; + private isWatchedMissingFile; + getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined; + getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined; + filesToString(writeProjectFileNames: boolean): string; + setCompilerOptions(compilerOptions: CompilerOptions): void; + protected removeRoot(info: ScriptInfo): void; + protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<any> | undefined): void; + protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<any> | undefined): void; + private enableProxy; + /** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */ + refreshDiagnostics(): void; + } + /** + * If a file is opened and no tsconfig (or jsconfig) is found, + * the file and its imports/references are put into an InferredProject. + */ + class InferredProject extends Project { + private static readonly newName; + private _isJsInferredProject; + toggleJsInferredProject(isJsInferredProject: boolean): void; + setCompilerOptions(options?: CompilerOptions): void; + /** this is canonical project root path */ + readonly projectRootPath: string | undefined; + addRoot(info: ScriptInfo): void; + removeRoot(info: ScriptInfo): void; + isProjectWithSingleRoot(): boolean; + close(): void; + getTypeAcquisition(): TypeAcquisition; + } + /** + * If a file is opened, the server will look for a tsconfig (or jsconfig) + * and if successfull create a ConfiguredProject for it. + * Otherwise it will create an InferredProject. + */ + class ConfiguredProject extends Project { + private typeAcquisition; + private directoriesWatchedForWildcards; + readonly canonicalConfigFilePath: NormalizedPath; + /** Ref count to the project when opened from external project */ + private externalProjectRefCount; + private projectErrors; + private projectReferences; + protected isInitialLoadPending: () => boolean; + /** + * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph + * @returns: true if set of files in the project stays the same and false - otherwise. + */ + updateGraph(): boolean; + getConfigFilePath(): NormalizedPath; + getProjectReferences(): ReadonlyArray<ProjectReference> | undefined; + updateReferences(refs: ReadonlyArray<ProjectReference> | undefined): void; + /** + * Get the errors that dont have any file name associated + */ + getGlobalProjectErrors(): ReadonlyArray<Diagnostic>; + /** + * Get all the project errors + */ + getAllProjectErrors(): ReadonlyArray<Diagnostic>; + setProjectErrors(projectErrors: Diagnostic[]): void; + setTypeAcquisition(newTypeAcquisition: TypeAcquisition): void; + getTypeAcquisition(): TypeAcquisition; + close(): void; + getEffectiveTypeRoots(): string[]; + } + /** + * Project whose configuration is handled externally, such as in a '.csproj'. + * These are created only if a host explicitly calls `openExternalProject`. + */ + class ExternalProject extends Project { + externalProjectName: string; + compileOnSaveEnabled: boolean; + excludedFiles: ReadonlyArray<NormalizedPath>; + private typeAcquisition; + updateGraph(): boolean; + getExcludedFiles(): ReadonlyArray<NormalizedPath>; + getTypeAcquisition(): TypeAcquisition; + setTypeAcquisition(newTypeAcquisition: TypeAcquisition): void; + } +} +declare namespace ts.server { + const maxProgramSizeForNonTsFiles: number; + const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground"; + const ProjectLoadingStartEvent = "projectLoadingStart"; + const ProjectLoadingFinishEvent = "projectLoadingFinish"; + const SurveyReady = "surveyReady"; + const LargeFileReferencedEvent = "largeFileReferenced"; + const ConfigFileDiagEvent = "configFileDiag"; + const ProjectLanguageServiceStateEvent = "projectLanguageServiceState"; + const ProjectInfoTelemetryEvent = "projectInfo"; + const OpenFileInfoTelemetryEvent = "openFileInfo"; + interface ProjectsUpdatedInBackgroundEvent { + eventName: typeof ProjectsUpdatedInBackgroundEvent; + data: { + openFiles: string[]; + }; + } + interface ProjectLoadingStartEvent { + eventName: typeof ProjectLoadingStartEvent; + data: { + project: Project; + reason: string; + }; + } + interface ProjectLoadingFinishEvent { + eventName: typeof ProjectLoadingFinishEvent; + data: { + project: Project; + }; + } + interface SurveyReady { + eventName: typeof SurveyReady; + data: { + surveyId: string; + }; + } + interface LargeFileReferencedEvent { + eventName: typeof LargeFileReferencedEvent; + data: { + file: string; + fileSize: number; + maxFileSize: number; + }; + } + interface ConfigFileDiagEvent { + eventName: typeof ConfigFileDiagEvent; + data: { + triggerFile: string; + configFileName: string; + diagnostics: ReadonlyArray<Diagnostic>; + }; + } + interface ProjectLanguageServiceStateEvent { + eventName: typeof ProjectLanguageServiceStateEvent; + data: { + project: Project; + languageServiceEnabled: boolean; + }; + } + /** This will be converted to the payload of a protocol.TelemetryEvent in session.defaultEventHandler. */ + interface ProjectInfoTelemetryEvent { + readonly eventName: typeof ProjectInfoTelemetryEvent; + readonly data: ProjectInfoTelemetryEventData; + } + interface ProjectInfoTelemetryEventData { + /** Cryptographically secure hash of project file location. */ + readonly projectId: string; + /** Count of file extensions seen in the project. */ + readonly fileStats: FileStats; + /** + * Any compiler options that might contain paths will be taken out. + * Enum compiler options will be converted to strings. + */ + readonly compilerOptions: CompilerOptions; + readonly extends: boolean | undefined; + readonly files: boolean | undefined; + readonly include: boolean | undefined; + readonly exclude: boolean | undefined; + readonly compileOnSave: boolean; + readonly typeAcquisition: ProjectInfoTypeAcquisitionData; + readonly configFileName: "tsconfig.json" | "jsconfig.json" | "other"; + readonly projectType: "external" | "configured"; + readonly languageServiceEnabled: boolean; + /** TypeScript version used by the server. */ + readonly version: string; + } + /** + * Info that we may send about a file that was just opened. + * Info about a file will only be sent once per session, even if the file changes in ways that might affect the info. + * Currently this is only sent for '.js' files. + */ + interface OpenFileInfoTelemetryEvent { + readonly eventName: typeof OpenFileInfoTelemetryEvent; + readonly data: OpenFileInfoTelemetryEventData; + } + interface OpenFileInfoTelemetryEventData { + readonly info: OpenFileInfo; + } + interface ProjectInfoTypeAcquisitionData { + readonly enable: boolean | undefined; + readonly include: boolean; + readonly exclude: boolean; + } + interface FileStats { + readonly js: number; + readonly jsSize?: number; + readonly jsx: number; + readonly jsxSize?: number; + readonly ts: number; + readonly tsSize?: number; + readonly tsx: number; + readonly tsxSize?: number; + readonly dts: number; + readonly dtsSize?: number; + readonly deferred: number; + readonly deferredSize?: number; + } + interface OpenFileInfo { + readonly checkJs: boolean; + } + type ProjectServiceEvent = LargeFileReferencedEvent | SurveyReady | ProjectsUpdatedInBackgroundEvent | ProjectLoadingStartEvent | ProjectLoadingFinishEvent | ConfigFileDiagEvent | ProjectLanguageServiceStateEvent | ProjectInfoTelemetryEvent | OpenFileInfoTelemetryEvent; + type ProjectServiceEventHandler = (event: ProjectServiceEvent) => void; + interface SafeList { + [name: string]: { + match: RegExp; + exclude?: (string | number)[][]; + types?: string[]; + }; + } + interface TypesMapFile { + typesMap: SafeList; + simpleMap: { + [libName: string]: string; + }; + } + function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings; + function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin; + function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind; + function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind.Unknown | ScriptKind.JS | ScriptKind.JSX | ScriptKind.TS | ScriptKind.TSX; + interface HostConfiguration { + formatCodeOptions: FormatCodeSettings; + preferences: protocol.UserPreferences; + hostInfo: string; + extraFileExtensions?: FileExtensionInfo[]; + } + interface OpenConfiguredProjectResult { + configFileName?: NormalizedPath; + configFileErrors?: ReadonlyArray<Diagnostic>; + } + interface ProjectServiceOptions { + host: ServerHost; + logger: Logger; + cancellationToken: HostCancellationToken; + useSingleInferredProject: boolean; + useInferredProjectPerProjectRoot: boolean; + typingsInstaller: ITypingsInstaller; + eventHandler?: ProjectServiceEventHandler; + suppressDiagnosticEvents?: boolean; + throttleWaitMilliseconds?: number; + globalPlugins?: ReadonlyArray<string>; + pluginProbeLocations?: ReadonlyArray<string>; + allowLocalPluginLoads?: boolean; + typesMapLocation?: string; + syntaxOnly?: boolean; + } + class ProjectService { + /** + * Container of all known scripts + */ + private readonly filenameToScriptInfo; + private readonly scriptInfoInNodeModulesWatchers; + /** + * Contains all the deleted script info's version information so that + * it does not reset when creating script info again + * (and could have potentially collided with version where contents mismatch) + */ + private readonly filenameToScriptInfoVersion; + private readonly allJsFilesForOpenFileTelemetry; + /** + * maps external project file name to list of config files that were the part of this project + */ + private readonly externalProjectToConfiguredProjectMap; + /** + * external projects (configuration and list of root files is not controlled by tsserver) + */ + readonly externalProjects: ExternalProject[]; + /** + * projects built from openFileRoots + */ + readonly inferredProjects: InferredProject[]; + /** + * projects specified by a tsconfig.json file + */ + readonly configuredProjects: Map<ConfiguredProject>; + /** + * Open files: with value being project root path, and key being Path of the file that is open + */ + readonly openFiles: Map<NormalizedPath | undefined>; + /** + * Map of open files that are opened without complete path but have projectRoot as current directory + */ + private readonly openFilesWithNonRootedDiskPath; + private compilerOptionsForInferredProjects; + private compilerOptionsForInferredProjectsPerProjectRoot; + /** + * Project size for configured or external projects + */ + private readonly projectToSizeMap; + /** + * This is a map of config file paths existance that doesnt need query to disk + * - The entry can be present because there is inferred project that needs to watch addition of config file to directory + * In this case the exists could be true/false based on config file is present or not + * - Or it is present if we have configured project open with config file at that location + * In this case the exists property is always true + */ + private readonly configFileExistenceInfoCache; + private readonly throttledOperations; + private readonly hostConfiguration; + private safelist; + private readonly legacySafelist; + private pendingProjectUpdates; + readonly currentDirectory: NormalizedPath; + readonly toCanonicalFileName: (f: string) => string; + readonly host: ServerHost; + readonly logger: Logger; + readonly cancellationToken: HostCancellationToken; + readonly useSingleInferredProject: boolean; + readonly useInferredProjectPerProjectRoot: boolean; + readonly typingsInstaller: ITypingsInstaller; + private readonly globalCacheLocationDirectoryPath; + readonly throttleWaitMilliseconds?: number; + private readonly eventHandler?; + private readonly suppressDiagnosticEvents?; + readonly globalPlugins: ReadonlyArray<string>; + readonly pluginProbeLocations: ReadonlyArray<string>; + readonly allowLocalPluginLoads: boolean; + private currentPluginConfigOverrides; + readonly typesMapLocation: string | undefined; + readonly syntaxOnly?: boolean; + /** Tracks projects that we have already sent telemetry for. */ + private readonly seenProjects; + /** Tracks projects that we have already sent survey events for. */ + private readonly seenSurveyProjects; + constructor(opts: ProjectServiceOptions); + toPath(fileName: string): Path; + private loadTypesMap; + updateTypingsForProject(response: SetTypings | InvalidateCachedTypings | PackageInstalledResponse): void; + private delayEnsureProjectForOpenFiles; + private delayUpdateProjectGraph; + private delayUpdateProjectGraphs; + setCompilerOptionsForInferredProjects(projectCompilerOptions: protocol.ExternalProjectCompilerOptions, projectRootPath?: string): void; + findProject(projectName: string): Project | undefined; + getDefaultProjectForFile(fileName: NormalizedPath, ensureProject: boolean): Project | undefined; + private doEnsureDefaultProjectForFile; + getScriptInfoEnsuringProjectsUptoDate(uncheckedFileName: string): ScriptInfo | undefined; + /** + * Ensures the project structures are upto date + * This means, + * - we go through all the projects and update them if they are dirty + * - if updates reflect some change in structure or there was pending request to ensure projects for open files + * ensure that each open script info has project + */ + private ensureProjectStructuresUptoDate; + getFormatCodeOptions(file: NormalizedPath): FormatCodeSettings; + getPreferences(file: NormalizedPath): protocol.UserPreferences; + getHostFormatCodeOptions(): FormatCodeSettings; + getHostPreferences(): protocol.UserPreferences; + private onSourceFileChanged; + private handleDeletedFile; + private onConfigChangedForConfiguredProject; + /** + * This is the callback function for the config file add/remove/change at any location + * that matters to open script info but doesnt have configured project open + * for the config file + */ + private onConfigFileChangeForOpenScriptInfo; + private removeProject; + /** + * Remove this file from the set of open, non-configured files. + * @param info The file that has been closed or newly configured + */ + private closeOpenFile; + private deleteScriptInfo; + private configFileExists; + private setConfigFileExistenceByNewConfiguredProject; + /** + * Returns true if the configFileExistenceInfo is needed/impacted by open files that are root of inferred project + */ + private configFileExistenceImpactsRootOfInferredProject; + private setConfigFileExistenceInfoByClosedConfiguredProject; + private logConfigFileWatchUpdate; + /** + * Create the watcher for the configFileExistenceInfo + */ + private createConfigFileWatcherOfConfigFileExistence; + /** + * Close the config file watcher in the cached ConfigFileExistenceInfo + * if there arent any open files that are root of inferred project + */ + private closeConfigFileWatcherOfConfigFileExistenceInfo; + /** + * This is called on file close, so that we stop watching the config file for this script info + */ + private stopWatchingConfigFilesForClosedScriptInfo; + /** + * This function tries to search for a tsconfig.json for the given file. + * This is different from the method the compiler uses because + * the compiler can assume it will always start searching in the + * current directory (the directory in which tsc was invoked). + * The server must start searching from the directory containing + * the newly opened file. + */ + private forEachConfigFileLocation; + /** + * This function tries to search for a tsconfig.json for the given file. + * This is different from the method the compiler uses because + * the compiler can assume it will always start searching in the + * current directory (the directory in which tsc was invoked). + * The server must start searching from the directory containing + * the newly opened file. + * If script info is passed in, it is asserted to be open script info + * otherwise just file name + */ + private getConfigFileNameForFile; + private printProjects; + private findConfiguredProjectByProjectName; + private getConfiguredProjectByCanonicalConfigFilePath; + private findExternalProjectByProjectName; + /** Get a filename if the language service exceeds the maximum allowed program size; otherwise returns undefined. */ + private getFilenameForExceededTotalSizeLimitForNonTsFiles; + private createExternalProject; + private addFilesToNonInferredProject; + private createConfiguredProject; + private updateNonInferredProjectFiles; + private updateRootAndOptionsOfNonInferredProject; + private sendConfigFileDiagEvent; + private getOrCreateInferredProjectForProjectRootPathIfEnabled; + private getOrCreateSingleInferredProjectIfEnabled; + private getOrCreateSingleInferredWithoutProjectRoot; + private createInferredProject; + getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined; + private watchClosedScriptInfo; + private watchClosedScriptInfoInNodeModules; + private getModifiedTime; + private refreshScriptInfo; + private refreshScriptInfosInDirectory; + private stopWatchingScriptInfo; + private getOrCreateScriptInfoNotOpenedByClientForNormalizedPath; + private getOrCreateScriptInfoOpenedByClientForNormalizedPath; + getOrCreateScriptInfoForNormalizedPath(fileName: NormalizedPath, openedByClient: boolean, fileContent?: string, scriptKind?: ScriptKind, hasMixedContent?: boolean, hostToQueryFileExistsOn?: { + fileExists(path: string): boolean; + }): ScriptInfo | undefined; + private getOrCreateScriptInfoWorker; + /** + * This gets the script info for the normalized path. If the path is not rooted disk path then the open script info with project root context is preferred + */ + getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined; + getScriptInfoForPath(fileName: Path): ScriptInfo | undefined; + setHostConfiguration(args: protocol.ConfigureRequestArguments): void; + closeLog(): void; + /** + * This function rebuilds the project for every file opened by the client + * This does not reload contents of open files from disk. But we could do that if needed + */ + reloadProjects(): void; + private delayReloadConfiguredProjectForFiles; + /** + * This function goes through all the openFiles and tries to file the config file for them. + * If the config file is found and it refers to existing project, it reloads it either immediately + * or schedules it for reload depending on delayReload option + * If the there is no existing project it just opens the configured project for the config file + * reloadForInfo provides a way to filter out files to reload configured project for + */ + private reloadConfiguredProjectForFiles; + /** + * Remove the root of inferred project if script info is part of another project + */ + private removeRootOfInferredProjectIfNowPartOfOtherProject; + /** + * This function is to update the project structure for every inferred project. + * It is called on the premise that all the configured projects are + * up to date. + * This will go through open files and assign them to inferred project if open file is not part of any other project + * After that all the inferred project graphs are updated + */ + private ensureProjectForOpenFiles; + /** + * Open file whose contents is managed by the client + * @param filename is absolute pathname + * @param fileContent is a known version of the file content that is more up to date than the one on disk + */ + openClientFile(fileName: string, fileContent?: string, scriptKind?: ScriptKind, projectRootPath?: string): OpenConfiguredProjectResult; + private findExternalProjectContainingOpenScriptInfo; + openClientFileWithNormalizedPath(fileName: NormalizedPath, fileContent?: string, scriptKind?: ScriptKind, hasMixedContent?: boolean, projectRootPath?: NormalizedPath): OpenConfiguredProjectResult; + private removeOrphanConfiguredProjects; + private telemetryOnOpenFile; + /** + * Close file whose contents is managed by the client + * @param filename is absolute pathname + */ + closeClientFile(uncheckedFileName: string): void; + private collectChanges; + private closeConfiguredProjectReferencedFromExternalProject; + closeExternalProject(uncheckedFileName: string): void; + openExternalProjects(projects: protocol.ExternalProject[]): void; + /** Makes a filename safe to insert in a RegExp */ + private static readonly filenameEscapeRegexp; + private static escapeFilenameForRegex; + resetSafeList(): void; + applySafeList(proj: protocol.ExternalProject): NormalizedPath[]; + openExternalProject(proj: protocol.ExternalProject): void; + hasDeferredExtension(): boolean; + configurePlugin(args: protocol.ConfigurePluginRequestArguments): void; + } +} +declare namespace ts.server { + interface ServerCancellationToken extends HostCancellationToken { + setRequest(requestId: number): void; + resetRequest(requestId: number): void; + } + const nullCancellationToken: ServerCancellationToken; + interface PendingErrorCheck { + fileName: NormalizedPath; + project: Project; + } + type CommandNames = protocol.CommandTypes; + const CommandNames: any; + function formatMessage<T extends protocol.Message>(msg: T, logger: Logger, byteLength: (s: string, encoding: string) => number, newLine: string): string; + type Event = <T extends object>(body: T, eventName: string) => void; + interface EventSender { + event: Event; + } + interface SessionOptions { + host: ServerHost; + cancellationToken: ServerCancellationToken; + useSingleInferredProject: boolean; + useInferredProjectPerProjectRoot: boolean; + typingsInstaller: ITypingsInstaller; + byteLength: (buf: string, encoding?: string) => number; + hrtime: (start?: number[]) => number[]; + logger: Logger; + /** + * If falsy, all events are suppressed. + */ + canUseEvents: boolean; + eventHandler?: ProjectServiceEventHandler; + /** Has no effect if eventHandler is also specified. */ + suppressDiagnosticEvents?: boolean; + syntaxOnly?: boolean; + throttleWaitMilliseconds?: number; + noGetErrOnBackgroundUpdate?: boolean; + globalPlugins?: ReadonlyArray<string>; + pluginProbeLocations?: ReadonlyArray<string>; + allowLocalPluginLoads?: boolean; + typesMapLocation?: string; + } + class Session implements EventSender { + private readonly gcTimer; + protected projectService: ProjectService; + private changeSeq; + private currentRequestId; + private errorCheck; + protected host: ServerHost; + private readonly cancellationToken; + protected readonly typingsInstaller: ITypingsInstaller; + protected byteLength: (buf: string, encoding?: string) => number; + private hrtime; + protected logger: Logger; + protected canUseEvents: boolean; + private suppressDiagnosticEvents?; + private eventHandler; + private readonly noGetErrOnBackgroundUpdate?; + constructor(opts: SessionOptions); + private sendRequestCompletedEvent; + private defaultEventHandler; + private projectsUpdatedInBackgroundEvent; + logError(err: Error, cmd: string): void; + private logErrorWorker; + send(msg: protocol.Message): void; + event<T extends object>(body: T, eventName: string): void; + /** @deprecated */ + output(info: any, cmdName: string, reqSeq?: number, errorMsg?: string): void; + private doOutput; + private semanticCheck; + private syntacticCheck; + private suggestionCheck; + private sendDiagnosticsEvent; + /** It is the caller's responsibility to verify that `!this.suppressDiagnosticEvents`. */ + private updateErrorCheck; + private cleanProjects; + private cleanup; + private getEncodedSemanticClassifications; + private getProject; + private getConfigFileAndProject; + private getConfigFileDiagnostics; + private convertToDiagnosticsWithLinePositionFromDiagnosticFile; + private getCompilerOptionsDiagnostics; + private convertToDiagnosticsWithLinePosition; + private getDiagnosticsWorker; + private getDefinition; + private mapDefinitionInfoLocations; + private getDefinitionAndBoundSpan; + private getEmitOutput; + private mapDefinitionInfo; + private static mapToOriginalLocation; + private toFileSpan; + private getTypeDefinition; + private mapImplementationLocations; + private getImplementation; + private getOccurrences; + private getSyntacticDiagnosticsSync; + private getSemanticDiagnosticsSync; + private getSuggestionDiagnosticsSync; + private getJsxClosingTag; + private getDocumentHighlights; + private setCompilerOptionsForInferredProjects; + private getProjectInfo; + private getProjectInfoWorker; + private getRenameInfo; + private getProjects; + private getDefaultProject; + private getRenameLocations; + private mapRenameInfo; + private toSpanGroups; + private getReferences; + /** + * @param fileName is the name of the file to be opened + * @param fileContent is a version of the file content that is known to be more up to date than the one on disk + */ + private openClientFile; + private getPosition; + private getPositionInFile; + private getFileAndProject; + private getFileAndLanguageServiceForSyntacticOperation; + private getFileAndProjectWorker; + private getOutliningSpans; + private getTodoComments; + private getDocCommentTemplate; + private getSpanOfEnclosingComment; + private getIndentation; + private getBreakpointStatement; + private getNameOrDottedNameSpan; + private isValidBraceCompletion; + private getQuickInfoWorker; + private getFormattingEditsForRange; + private getFormattingEditsForRangeFull; + private getFormattingEditsForDocumentFull; + private getFormattingEditsAfterKeystrokeFull; + private getFormattingEditsAfterKeystroke; + private getCompletions; + private getCompletionEntryDetails; + private getCompileOnSaveAffectedFileList; + private emitFile; + private getSignatureHelpItems; + private createCheckList; + private getDiagnostics; + private change; + private reload; + private saveToTmp; + private closeClientFile; + private mapLocationNavigationBarItems; + private getNavigationBarItems; + private toLocationNavigationTree; + private toLocationTextSpan; + private getNavigationTree; + private getNavigateToItems; + private getFullNavigateToItems; + private getSupportedCodeFixes; + private isLocation; + private extractPositionOrRange; + private getApplicableRefactors; + private getEditsForRefactor; + private organizeImports; + private getEditsForFileRename; + private getCodeFixes; + private getCombinedCodeFix; + private applyCodeActionCommand; + private getStartAndEndPosition; + private mapCodeAction; + private mapCodeFixAction; + private mapTextChangesToCodeEdits; + private mapTextChangeToCodeEdit; + private convertTextChangeToCodeEdit; + private getBraceMatching; + private getDiagnosticsForProject; + private configurePlugin; + getCanonicalFileName(fileName: string): string; + exit(): void; + private notRequired; + private requiredResponse; + private handlers; + addProtocolHandler(command: string, handler: (request: protocol.Request) => HandlerResponse): void; + private setCurrentRequest; + private resetCurrentRequest; + executeWithRequestId<T>(requestId: number, f: () => T): T; + executeCommand(request: protocol.Request): HandlerResponse; + onMessage(message: string): void; + private getFormatOptions; + private getPreferences; + private getHostFormatOptions; + private getHostPreferences; + } + interface HandlerResponse { + response?: {}; + responseRequired?: boolean; + } +} + +export = ts; +export as namespace ts;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescript.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescript.d.ts new file mode 100644 index 0000000..cfaad2a --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescript.d.ts @@ -0,0 +1,5567 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +declare namespace ts { + const versionMajorMinor = "3.2"; + /** The version of the TypeScript compiler release */ + const version: string; +} +declare namespace ts { + /** + * Type of objects whose values are all of the same type. + * The `in` and `for-in` operators can *not* be safely used, + * since `Object.prototype` may be modified by outside code. + */ + interface MapLike<T> { + [index: string]: T; + } + interface SortedReadonlyArray<T> extends ReadonlyArray<T> { + " __sortedArrayBrand": any; + } + interface SortedArray<T> extends Array<T> { + " __sortedArrayBrand": any; + } + /** ES6 Map interface, only read methods included. */ + interface ReadonlyMap<T> { + get(key: string): T | undefined; + has(key: string): boolean; + forEach(action: (value: T, key: string) => void): void; + readonly size: number; + keys(): Iterator<string>; + values(): Iterator<T>; + entries(): Iterator<[string, T]>; + } + /** ES6 Map interface. */ + interface Map<T> extends ReadonlyMap<T> { + set(key: string, value: T): this; + delete(key: string): boolean; + clear(): void; + } + /** ES6 Iterator type. */ + interface Iterator<T> { + next(): { + value: T; + done: false; + } | { + value: never; + done: true; + }; + } + /** Array that is only intended to be pushed to, never read. */ + interface Push<T> { + push(...values: T[]): void; + } +} +declare namespace ts { + type Path = string & { + __pathBrand: any; + }; + interface TextRange { + pos: number; + end: number; + } + type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind; + type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; + type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; + enum SyntaxKind { + Unknown = 0, + EndOfFileToken = 1, + SingleLineCommentTrivia = 2, + MultiLineCommentTrivia = 3, + NewLineTrivia = 4, + WhitespaceTrivia = 5, + ShebangTrivia = 6, + ConflictMarkerTrivia = 7, + NumericLiteral = 8, + BigIntLiteral = 9, + StringLiteral = 10, + JsxText = 11, + JsxTextAllWhiteSpaces = 12, + RegularExpressionLiteral = 13, + NoSubstitutionTemplateLiteral = 14, + TemplateHead = 15, + TemplateMiddle = 16, + TemplateTail = 17, + OpenBraceToken = 18, + CloseBraceToken = 19, + OpenParenToken = 20, + CloseParenToken = 21, + OpenBracketToken = 22, + CloseBracketToken = 23, + DotToken = 24, + DotDotDotToken = 25, + SemicolonToken = 26, + CommaToken = 27, + LessThanToken = 28, + LessThanSlashToken = 29, + GreaterThanToken = 30, + LessThanEqualsToken = 31, + GreaterThanEqualsToken = 32, + EqualsEqualsToken = 33, + ExclamationEqualsToken = 34, + EqualsEqualsEqualsToken = 35, + ExclamationEqualsEqualsToken = 36, + EqualsGreaterThanToken = 37, + PlusToken = 38, + MinusToken = 39, + AsteriskToken = 40, + AsteriskAsteriskToken = 41, + SlashToken = 42, + PercentToken = 43, + PlusPlusToken = 44, + MinusMinusToken = 45, + LessThanLessThanToken = 46, + GreaterThanGreaterThanToken = 47, + GreaterThanGreaterThanGreaterThanToken = 48, + AmpersandToken = 49, + BarToken = 50, + CaretToken = 51, + ExclamationToken = 52, + TildeToken = 53, + AmpersandAmpersandToken = 54, + BarBarToken = 55, + QuestionToken = 56, + ColonToken = 57, + AtToken = 58, + EqualsToken = 59, + PlusEqualsToken = 60, + MinusEqualsToken = 61, + AsteriskEqualsToken = 62, + AsteriskAsteriskEqualsToken = 63, + SlashEqualsToken = 64, + PercentEqualsToken = 65, + LessThanLessThanEqualsToken = 66, + GreaterThanGreaterThanEqualsToken = 67, + GreaterThanGreaterThanGreaterThanEqualsToken = 68, + AmpersandEqualsToken = 69, + BarEqualsToken = 70, + CaretEqualsToken = 71, + Identifier = 72, + BreakKeyword = 73, + CaseKeyword = 74, + CatchKeyword = 75, + ClassKeyword = 76, + ConstKeyword = 77, + ContinueKeyword = 78, + DebuggerKeyword = 79, + DefaultKeyword = 80, + DeleteKeyword = 81, + DoKeyword = 82, + ElseKeyword = 83, + EnumKeyword = 84, + ExportKeyword = 85, + ExtendsKeyword = 86, + FalseKeyword = 87, + FinallyKeyword = 88, + ForKeyword = 89, + FunctionKeyword = 90, + IfKeyword = 91, + ImportKeyword = 92, + InKeyword = 93, + InstanceOfKeyword = 94, + NewKeyword = 95, + NullKeyword = 96, + ReturnKeyword = 97, + SuperKeyword = 98, + SwitchKeyword = 99, + ThisKeyword = 100, + ThrowKeyword = 101, + TrueKeyword = 102, + TryKeyword = 103, + TypeOfKeyword = 104, + VarKeyword = 105, + VoidKeyword = 106, + WhileKeyword = 107, + WithKeyword = 108, + ImplementsKeyword = 109, + InterfaceKeyword = 110, + LetKeyword = 111, + PackageKeyword = 112, + PrivateKeyword = 113, + ProtectedKeyword = 114, + PublicKeyword = 115, + StaticKeyword = 116, + YieldKeyword = 117, + AbstractKeyword = 118, + AsKeyword = 119, + AnyKeyword = 120, + AsyncKeyword = 121, + AwaitKeyword = 122, + BooleanKeyword = 123, + ConstructorKeyword = 124, + DeclareKeyword = 125, + GetKeyword = 126, + InferKeyword = 127, + IsKeyword = 128, + KeyOfKeyword = 129, + ModuleKeyword = 130, + NamespaceKeyword = 131, + NeverKeyword = 132, + ReadonlyKeyword = 133, + RequireKeyword = 134, + NumberKeyword = 135, + ObjectKeyword = 136, + SetKeyword = 137, + StringKeyword = 138, + SymbolKeyword = 139, + TypeKeyword = 140, + UndefinedKeyword = 141, + UniqueKeyword = 142, + UnknownKeyword = 143, + FromKeyword = 144, + GlobalKeyword = 145, + BigIntKeyword = 146, + OfKeyword = 147, + QualifiedName = 148, + ComputedPropertyName = 149, + TypeParameter = 150, + Parameter = 151, + Decorator = 152, + PropertySignature = 153, + PropertyDeclaration = 154, + MethodSignature = 155, + MethodDeclaration = 156, + Constructor = 157, + GetAccessor = 158, + SetAccessor = 159, + CallSignature = 160, + ConstructSignature = 161, + IndexSignature = 162, + TypePredicate = 163, + TypeReference = 164, + FunctionType = 165, + ConstructorType = 166, + TypeQuery = 167, + TypeLiteral = 168, + ArrayType = 169, + TupleType = 170, + OptionalType = 171, + RestType = 172, + UnionType = 173, + IntersectionType = 174, + ConditionalType = 175, + InferType = 176, + ParenthesizedType = 177, + ThisType = 178, + TypeOperator = 179, + IndexedAccessType = 180, + MappedType = 181, + LiteralType = 182, + ImportType = 183, + ObjectBindingPattern = 184, + ArrayBindingPattern = 185, + BindingElement = 186, + ArrayLiteralExpression = 187, + ObjectLiteralExpression = 188, + PropertyAccessExpression = 189, + ElementAccessExpression = 190, + CallExpression = 191, + NewExpression = 192, + TaggedTemplateExpression = 193, + TypeAssertionExpression = 194, + ParenthesizedExpression = 195, + FunctionExpression = 196, + ArrowFunction = 197, + DeleteExpression = 198, + TypeOfExpression = 199, + VoidExpression = 200, + AwaitExpression = 201, + PrefixUnaryExpression = 202, + PostfixUnaryExpression = 203, + BinaryExpression = 204, + ConditionalExpression = 205, + TemplateExpression = 206, + YieldExpression = 207, + SpreadElement = 208, + ClassExpression = 209, + OmittedExpression = 210, + ExpressionWithTypeArguments = 211, + AsExpression = 212, + NonNullExpression = 213, + MetaProperty = 214, + SyntheticExpression = 215, + TemplateSpan = 216, + SemicolonClassElement = 217, + Block = 218, + VariableStatement = 219, + EmptyStatement = 220, + ExpressionStatement = 221, + IfStatement = 222, + DoStatement = 223, + WhileStatement = 224, + ForStatement = 225, + ForInStatement = 226, + ForOfStatement = 227, + ContinueStatement = 228, + BreakStatement = 229, + ReturnStatement = 230, + WithStatement = 231, + SwitchStatement = 232, + LabeledStatement = 233, + ThrowStatement = 234, + TryStatement = 235, + DebuggerStatement = 236, + VariableDeclaration = 237, + VariableDeclarationList = 238, + FunctionDeclaration = 239, + ClassDeclaration = 240, + InterfaceDeclaration = 241, + TypeAliasDeclaration = 242, + EnumDeclaration = 243, + ModuleDeclaration = 244, + ModuleBlock = 245, + CaseBlock = 246, + NamespaceExportDeclaration = 247, + ImportEqualsDeclaration = 248, + ImportDeclaration = 249, + ImportClause = 250, + NamespaceImport = 251, + NamedImports = 252, + ImportSpecifier = 253, + ExportAssignment = 254, + ExportDeclaration = 255, + NamedExports = 256, + ExportSpecifier = 257, + MissingDeclaration = 258, + ExternalModuleReference = 259, + JsxElement = 260, + JsxSelfClosingElement = 261, + JsxOpeningElement = 262, + JsxClosingElement = 263, + JsxFragment = 264, + JsxOpeningFragment = 265, + JsxClosingFragment = 266, + JsxAttribute = 267, + JsxAttributes = 268, + JsxSpreadAttribute = 269, + JsxExpression = 270, + CaseClause = 271, + DefaultClause = 272, + HeritageClause = 273, + CatchClause = 274, + PropertyAssignment = 275, + ShorthandPropertyAssignment = 276, + SpreadAssignment = 277, + EnumMember = 278, + SourceFile = 279, + Bundle = 280, + UnparsedSource = 281, + InputFiles = 282, + JSDocTypeExpression = 283, + JSDocAllType = 284, + JSDocUnknownType = 285, + JSDocNullableType = 286, + JSDocNonNullableType = 287, + JSDocOptionalType = 288, + JSDocFunctionType = 289, + JSDocVariadicType = 290, + JSDocComment = 291, + JSDocTypeLiteral = 292, + JSDocSignature = 293, + JSDocTag = 294, + JSDocAugmentsTag = 295, + JSDocClassTag = 296, + JSDocCallbackTag = 297, + JSDocEnumTag = 298, + JSDocParameterTag = 299, + JSDocReturnTag = 300, + JSDocThisTag = 301, + JSDocTypeTag = 302, + JSDocTemplateTag = 303, + JSDocTypedefTag = 304, + JSDocPropertyTag = 305, + SyntaxList = 306, + NotEmittedStatement = 307, + PartiallyEmittedExpression = 308, + CommaListExpression = 309, + MergeDeclarationMarker = 310, + EndOfDeclarationMarker = 311, + Count = 312, + FirstAssignment = 59, + LastAssignment = 71, + FirstCompoundAssignment = 60, + LastCompoundAssignment = 71, + FirstReservedWord = 73, + LastReservedWord = 108, + FirstKeyword = 73, + LastKeyword = 147, + FirstFutureReservedWord = 109, + LastFutureReservedWord = 117, + FirstTypeNode = 163, + LastTypeNode = 183, + FirstPunctuation = 18, + LastPunctuation = 71, + FirstToken = 0, + LastToken = 147, + FirstTriviaToken = 2, + LastTriviaToken = 7, + FirstLiteralToken = 8, + LastLiteralToken = 14, + FirstTemplateToken = 14, + LastTemplateToken = 17, + FirstBinaryOperator = 28, + LastBinaryOperator = 71, + FirstNode = 148, + FirstJSDocNode = 283, + LastJSDocNode = 305, + FirstJSDocTagNode = 294, + LastJSDocTagNode = 305 + } + enum NodeFlags { + None = 0, + Let = 1, + Const = 2, + NestedNamespace = 4, + Synthesized = 8, + Namespace = 16, + ExportContext = 32, + ContainsThis = 64, + HasImplicitReturn = 128, + HasExplicitReturn = 256, + GlobalAugmentation = 512, + HasAsyncFunctions = 1024, + DisallowInContext = 2048, + YieldContext = 4096, + DecoratorContext = 8192, + AwaitContext = 16384, + ThisNodeHasError = 32768, + JavaScriptFile = 65536, + ThisNodeOrAnySubNodesHasError = 131072, + HasAggregatedChildData = 262144, + JSDoc = 2097152, + JsonFile = 16777216, + BlockScoped = 3, + ReachabilityCheckFlags = 384, + ReachabilityAndEmitFlags = 1408, + ContextFlags = 12679168, + TypeExcludesFlags = 20480 + } + enum ModifierFlags { + None = 0, + Export = 1, + Ambient = 2, + Public = 4, + Private = 8, + Protected = 16, + Static = 32, + Readonly = 64, + Abstract = 128, + Async = 256, + Default = 512, + Const = 2048, + HasComputedFlags = 536870912, + AccessibilityModifier = 28, + ParameterPropertyModifier = 92, + NonPublicAccessibilityModifier = 24, + TypeScriptModifier = 2270, + ExportDefault = 513, + All = 3071 + } + enum JsxFlags { + None = 0, + /** An element from a named property of the JSX.IntrinsicElements interface */ + IntrinsicNamedElement = 1, + /** An element inferred from the string index signature of the JSX.IntrinsicElements interface */ + IntrinsicIndexedElement = 2, + IntrinsicElement = 3 + } + interface Node extends TextRange { + kind: SyntaxKind; + flags: NodeFlags; + decorators?: NodeArray<Decorator>; + modifiers?: ModifiersArray; + parent: Node; + } + interface JSDocContainer { + } + type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | EndOfFileToken; + type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType; + type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute; + type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertySignature | PropertyDeclaration | PropertyAssignment | EnumMember; + interface NodeArray<T extends Node> extends ReadonlyArray<T>, TextRange { + hasTrailingComma?: boolean; + } + interface Token<TKind extends SyntaxKind> extends Node { + kind: TKind; + } + type DotDotDotToken = Token<SyntaxKind.DotDotDotToken>; + type QuestionToken = Token<SyntaxKind.QuestionToken>; + type ExclamationToken = Token<SyntaxKind.ExclamationToken>; + type ColonToken = Token<SyntaxKind.ColonToken>; + type EqualsToken = Token<SyntaxKind.EqualsToken>; + type AsteriskToken = Token<SyntaxKind.AsteriskToken>; + type EqualsGreaterThanToken = Token<SyntaxKind.EqualsGreaterThanToken>; + type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; + type ReadonlyToken = Token<SyntaxKind.ReadonlyKeyword>; + type AwaitKeywordToken = Token<SyntaxKind.AwaitKeyword>; + type PlusToken = Token<SyntaxKind.PlusToken>; + type MinusToken = Token<SyntaxKind.MinusToken>; + type Modifier = Token<SyntaxKind.AbstractKeyword> | Token<SyntaxKind.AsyncKeyword> | Token<SyntaxKind.ConstKeyword> | Token<SyntaxKind.DeclareKeyword> | Token<SyntaxKind.DefaultKeyword> | Token<SyntaxKind.ExportKeyword> | Token<SyntaxKind.PublicKeyword> | Token<SyntaxKind.PrivateKeyword> | Token<SyntaxKind.ProtectedKeyword> | Token<SyntaxKind.ReadonlyKeyword> | Token<SyntaxKind.StaticKeyword>; + type ModifiersArray = NodeArray<Modifier>; + interface Identifier extends PrimaryExpression, Declaration { + kind: SyntaxKind.Identifier; + /** + * Prefer to use `id.unescapedText`. (Note: This is available only in services, not internally to the TypeScript compiler.) + * Text of identifier, but if the identifier begins with two underscores, this will begin with three. + */ + escapedText: __String; + originalKeywordKind?: SyntaxKind; + isInJSDocNamespace?: boolean; + } + interface TransientIdentifier extends Identifier { + resolvedSymbol: Symbol; + } + interface QualifiedName extends Node { + kind: SyntaxKind.QualifiedName; + left: EntityName; + right: Identifier; + } + type EntityName = Identifier | QualifiedName; + type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName; + type DeclarationName = Identifier | StringLiteralLike | NumericLiteral | ComputedPropertyName | BindingPattern; + interface Declaration extends Node { + _declarationBrand: any; + } + interface NamedDeclaration extends Declaration { + name?: DeclarationName; + } + interface DeclarationStatement extends NamedDeclaration, Statement { + name?: Identifier | StringLiteral | NumericLiteral; + } + interface ComputedPropertyName extends Node { + parent: Declaration; + kind: SyntaxKind.ComputedPropertyName; + expression: Expression; + } + interface Decorator extends Node { + kind: SyntaxKind.Decorator; + parent: NamedDeclaration; + expression: LeftHandSideExpression; + } + interface TypeParameterDeclaration extends NamedDeclaration { + kind: SyntaxKind.TypeParameter; + parent: DeclarationWithTypeParameterChildren | InferTypeNode; + name: Identifier; + /** Note: Consider calling `getEffectiveConstraintOfTypeParameter` */ + constraint?: TypeNode; + default?: TypeNode; + expression?: Expression; + } + interface SignatureDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SignatureDeclaration["kind"]; + name?: PropertyName; + typeParameters?: NodeArray<TypeParameterDeclaration>; + parameters: NodeArray<ParameterDeclaration>; + type?: TypeNode; + } + type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction; + interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.CallSignature; + } + interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.ConstructSignature; + } + type BindingName = Identifier | BindingPattern; + interface VariableDeclaration extends NamedDeclaration { + kind: SyntaxKind.VariableDeclaration; + parent: VariableDeclarationList | CatchClause; + name: BindingName; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface VariableDeclarationList extends Node { + kind: SyntaxKind.VariableDeclarationList; + parent: VariableStatement | ForStatement | ForOfStatement | ForInStatement; + declarations: NodeArray<VariableDeclaration>; + } + interface ParameterDeclaration extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.Parameter; + parent: SignatureDeclaration; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface BindingElement extends NamedDeclaration { + kind: SyntaxKind.BindingElement; + parent: BindingPattern; + propertyName?: PropertyName; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + initializer?: Expression; + } + interface PropertySignature extends TypeElement, JSDocContainer { + kind: SyntaxKind.PropertySignature; + name: PropertyName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface PropertyDeclaration extends ClassElement, JSDocContainer { + kind: SyntaxKind.PropertyDeclaration; + parent: ClassLikeDeclaration; + name: PropertyName; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface ObjectLiteralElement extends NamedDeclaration { + _objectLiteralBrandBrand: any; + name?: PropertyName; + } + /** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */ + type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | MethodDeclaration | AccessorDeclaration; + interface PropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.PropertyAssignment; + name: PropertyName; + questionToken?: QuestionToken; + initializer: Expression; + } + interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.ShorthandPropertyAssignment; + name: Identifier; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + equalsToken?: Token<SyntaxKind.EqualsToken>; + objectAssignmentInitializer?: Expression; + } + interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.SpreadAssignment; + expression: Expression; + } + type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag; + interface PropertyLikeDeclaration extends NamedDeclaration { + name: PropertyName; + } + interface ObjectBindingPattern extends Node { + kind: SyntaxKind.ObjectBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<BindingElement>; + } + interface ArrayBindingPattern extends Node { + kind: SyntaxKind.ArrayBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<ArrayBindingElement>; + } + type BindingPattern = ObjectBindingPattern | ArrayBindingPattern; + type ArrayBindingElement = BindingElement | OmittedExpression; + /** + * Several node kinds share function-like features such as a signature, + * a name, and a body. These nodes should extend FunctionLikeDeclarationBase. + * Examples: + * - FunctionDeclaration + * - MethodDeclaration + * - AccessorDeclaration + */ + interface FunctionLikeDeclarationBase extends SignatureDeclarationBase { + _functionLikeDeclarationBrand: any; + asteriskToken?: AsteriskToken; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + body?: Block | Expression; + } + type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction; + /** @deprecated Use SignatureDeclaration */ + type FunctionLike = SignatureDeclaration; + interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.FunctionDeclaration; + name?: Identifier; + body?: FunctionBody; + } + interface MethodSignature extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.MethodSignature; + parent: ObjectTypeDeclaration; + name: PropertyName; + } + interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.MethodDeclaration; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer { + kind: SyntaxKind.Constructor; + parent: ClassLikeDeclaration; + body?: FunctionBody; + } + /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */ + interface SemicolonClassElement extends ClassElement { + kind: SyntaxKind.SemicolonClassElement; + parent: ClassLikeDeclaration; + } + interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.GetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.SetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration; + interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement { + kind: SyntaxKind.IndexSignature; + parent: ObjectTypeDeclaration; + } + interface TypeNode extends Node { + _typeNodeBrand: any; + } + interface KeywordTypeNode extends TypeNode { + kind: SyntaxKind.AnyKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.NumberKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.VoidKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.NullKeyword | SyntaxKind.NeverKeyword; + } + interface ImportTypeNode extends NodeWithTypeArguments { + kind: SyntaxKind.ImportType; + isTypeOf?: boolean; + argument: TypeNode; + qualifier?: EntityName; + } + interface ThisTypeNode extends TypeNode { + kind: SyntaxKind.ThisType; + } + type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode; + interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase { + kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType; + type: TypeNode; + } + interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.FunctionType; + } + interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.ConstructorType; + } + interface NodeWithTypeArguments extends TypeNode { + typeArguments?: NodeArray<TypeNode>; + } + type TypeReferenceType = TypeReferenceNode | ExpressionWithTypeArguments; + interface TypeReferenceNode extends NodeWithTypeArguments { + kind: SyntaxKind.TypeReference; + typeName: EntityName; + } + interface TypePredicateNode extends TypeNode { + kind: SyntaxKind.TypePredicate; + parent: SignatureDeclaration | JSDocTypeExpression; + parameterName: Identifier | ThisTypeNode; + type: TypeNode; + } + interface TypeQueryNode extends TypeNode { + kind: SyntaxKind.TypeQuery; + exprName: EntityName; + } + interface TypeLiteralNode extends TypeNode, Declaration { + kind: SyntaxKind.TypeLiteral; + members: NodeArray<TypeElement>; + } + interface ArrayTypeNode extends TypeNode { + kind: SyntaxKind.ArrayType; + elementType: TypeNode; + } + interface TupleTypeNode extends TypeNode { + kind: SyntaxKind.TupleType; + elementTypes: NodeArray<TypeNode>; + } + interface OptionalTypeNode extends TypeNode { + kind: SyntaxKind.OptionalType; + type: TypeNode; + } + interface RestTypeNode extends TypeNode { + kind: SyntaxKind.RestType; + type: TypeNode; + } + type UnionOrIntersectionTypeNode = UnionTypeNode | IntersectionTypeNode; + interface UnionTypeNode extends TypeNode { + kind: SyntaxKind.UnionType; + types: NodeArray<TypeNode>; + } + interface IntersectionTypeNode extends TypeNode { + kind: SyntaxKind.IntersectionType; + types: NodeArray<TypeNode>; + } + interface ConditionalTypeNode extends TypeNode { + kind: SyntaxKind.ConditionalType; + checkType: TypeNode; + extendsType: TypeNode; + trueType: TypeNode; + falseType: TypeNode; + } + interface InferTypeNode extends TypeNode { + kind: SyntaxKind.InferType; + typeParameter: TypeParameterDeclaration; + } + interface ParenthesizedTypeNode extends TypeNode { + kind: SyntaxKind.ParenthesizedType; + type: TypeNode; + } + interface TypeOperatorNode extends TypeNode { + kind: SyntaxKind.TypeOperator; + operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword; + type: TypeNode; + } + interface IndexedAccessTypeNode extends TypeNode { + kind: SyntaxKind.IndexedAccessType; + objectType: TypeNode; + indexType: TypeNode; + } + interface MappedTypeNode extends TypeNode, Declaration { + kind: SyntaxKind.MappedType; + readonlyToken?: ReadonlyToken | PlusToken | MinusToken; + typeParameter: TypeParameterDeclaration; + questionToken?: QuestionToken | PlusToken | MinusToken; + type?: TypeNode; + } + interface LiteralTypeNode extends TypeNode { + kind: SyntaxKind.LiteralType; + literal: BooleanLiteral | LiteralExpression | PrefixUnaryExpression; + } + interface StringLiteral extends LiteralExpression { + kind: SyntaxKind.StringLiteral; + } + type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral; + interface Expression extends Node { + _expressionBrand: any; + } + interface OmittedExpression extends Expression { + kind: SyntaxKind.OmittedExpression; + } + interface PartiallyEmittedExpression extends LeftHandSideExpression { + kind: SyntaxKind.PartiallyEmittedExpression; + expression: Expression; + } + interface UnaryExpression extends Expression { + _unaryExpressionBrand: any; + } + /** Deprecated, please use UpdateExpression */ + type IncrementExpression = UpdateExpression; + interface UpdateExpression extends UnaryExpression { + _updateExpressionBrand: any; + } + type PrefixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.TildeToken | SyntaxKind.ExclamationToken; + interface PrefixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: PrefixUnaryOperator; + operand: UnaryExpression; + } + type PostfixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken; + interface PostfixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PostfixUnaryExpression; + operand: LeftHandSideExpression; + operator: PostfixUnaryOperator; + } + interface LeftHandSideExpression extends UpdateExpression { + _leftHandSideExpressionBrand: any; + } + interface MemberExpression extends LeftHandSideExpression { + _memberExpressionBrand: any; + } + interface PrimaryExpression extends MemberExpression { + _primaryExpressionBrand: any; + } + interface NullLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.NullKeyword; + } + interface BooleanLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.TrueKeyword | SyntaxKind.FalseKeyword; + } + interface ThisExpression extends PrimaryExpression, KeywordTypeNode { + kind: SyntaxKind.ThisKeyword; + } + interface SuperExpression extends PrimaryExpression { + kind: SyntaxKind.SuperKeyword; + } + interface ImportExpression extends PrimaryExpression { + kind: SyntaxKind.ImportKeyword; + } + interface DeleteExpression extends UnaryExpression { + kind: SyntaxKind.DeleteExpression; + expression: UnaryExpression; + } + interface TypeOfExpression extends UnaryExpression { + kind: SyntaxKind.TypeOfExpression; + expression: UnaryExpression; + } + interface VoidExpression extends UnaryExpression { + kind: SyntaxKind.VoidExpression; + expression: UnaryExpression; + } + interface AwaitExpression extends UnaryExpression { + kind: SyntaxKind.AwaitExpression; + expression: UnaryExpression; + } + interface YieldExpression extends Expression { + kind: SyntaxKind.YieldExpression; + asteriskToken?: AsteriskToken; + expression?: Expression; + } + interface SyntheticExpression extends Expression { + kind: SyntaxKind.SyntheticExpression; + isSpread: boolean; + type: Type; + } + type ExponentiationOperator = SyntaxKind.AsteriskAsteriskToken; + type MultiplicativeOperator = SyntaxKind.AsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken; + type MultiplicativeOperatorOrHigher = ExponentiationOperator | MultiplicativeOperator; + type AdditiveOperator = SyntaxKind.PlusToken | SyntaxKind.MinusToken; + type AdditiveOperatorOrHigher = MultiplicativeOperatorOrHigher | AdditiveOperator; + type ShiftOperator = SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken; + type ShiftOperatorOrHigher = AdditiveOperatorOrHigher | ShiftOperator; + type RelationalOperator = SyntaxKind.LessThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.InstanceOfKeyword | SyntaxKind.InKeyword; + type RelationalOperatorOrHigher = ShiftOperatorOrHigher | RelationalOperator; + type EqualityOperator = SyntaxKind.EqualsEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.ExclamationEqualsToken; + type EqualityOperatorOrHigher = RelationalOperatorOrHigher | EqualityOperator; + type BitwiseOperator = SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken; + type BitwiseOperatorOrHigher = EqualityOperatorOrHigher | BitwiseOperator; + type LogicalOperator = SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken; + type LogicalOperatorOrHigher = BitwiseOperatorOrHigher | LogicalOperator; + type CompoundAssignmentOperator = SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken; + type AssignmentOperator = SyntaxKind.EqualsToken | CompoundAssignmentOperator; + type AssignmentOperatorOrHigher = LogicalOperatorOrHigher | AssignmentOperator; + type BinaryOperator = AssignmentOperatorOrHigher | SyntaxKind.CommaToken; + type BinaryOperatorToken = Token<BinaryOperator>; + interface BinaryExpression extends Expression, Declaration { + kind: SyntaxKind.BinaryExpression; + left: Expression; + operatorToken: BinaryOperatorToken; + right: Expression; + } + type AssignmentOperatorToken = Token<AssignmentOperator>; + interface AssignmentExpression<TOperator extends AssignmentOperatorToken> extends BinaryExpression { + left: LeftHandSideExpression; + operatorToken: TOperator; + } + interface ObjectDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ObjectLiteralExpression; + } + interface ArrayDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ArrayLiteralExpression; + } + type DestructuringAssignment = ObjectDestructuringAssignment | ArrayDestructuringAssignment; + type BindingOrAssignmentElement = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | OmittedExpression | SpreadElement | ArrayLiteralExpression | ObjectLiteralExpression | AssignmentExpression<EqualsToken> | Identifier | PropertyAccessExpression | ElementAccessExpression; + type BindingOrAssignmentElementRestIndicator = DotDotDotToken | SpreadElement | SpreadAssignment; + type BindingOrAssignmentElementTarget = BindingOrAssignmentPattern | Identifier | PropertyAccessExpression | ElementAccessExpression | OmittedExpression; + type ObjectBindingOrAssignmentPattern = ObjectBindingPattern | ObjectLiteralExpression; + type ArrayBindingOrAssignmentPattern = ArrayBindingPattern | ArrayLiteralExpression; + type AssignmentPattern = ObjectLiteralExpression | ArrayLiteralExpression; + type BindingOrAssignmentPattern = ObjectBindingOrAssignmentPattern | ArrayBindingOrAssignmentPattern; + interface ConditionalExpression extends Expression { + kind: SyntaxKind.ConditionalExpression; + condition: Expression; + questionToken: QuestionToken; + whenTrue: Expression; + colonToken: ColonToken; + whenFalse: Expression; + } + type FunctionBody = Block; + type ConciseBody = FunctionBody | Expression; + interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.FunctionExpression; + name?: Identifier; + body: FunctionBody; + } + interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.ArrowFunction; + equalsGreaterThanToken: EqualsGreaterThanToken; + body: ConciseBody; + name: never; + } + interface LiteralLikeNode extends Node { + text: string; + isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; + } + interface LiteralExpression extends LiteralLikeNode, PrimaryExpression { + _literalExpressionBrand: any; + } + interface RegularExpressionLiteral extends LiteralExpression { + kind: SyntaxKind.RegularExpressionLiteral; + } + interface NoSubstitutionTemplateLiteral extends LiteralExpression { + kind: SyntaxKind.NoSubstitutionTemplateLiteral; + } + interface NumericLiteral extends LiteralExpression { + kind: SyntaxKind.NumericLiteral; + } + interface BigIntLiteral extends LiteralExpression { + kind: SyntaxKind.BigIntLiteral; + } + interface TemplateHead extends LiteralLikeNode { + kind: SyntaxKind.TemplateHead; + parent: TemplateExpression; + } + interface TemplateMiddle extends LiteralLikeNode { + kind: SyntaxKind.TemplateMiddle; + parent: TemplateSpan; + } + interface TemplateTail extends LiteralLikeNode { + kind: SyntaxKind.TemplateTail; + parent: TemplateSpan; + } + type TemplateLiteral = TemplateExpression | NoSubstitutionTemplateLiteral; + interface TemplateExpression extends PrimaryExpression { + kind: SyntaxKind.TemplateExpression; + head: TemplateHead; + templateSpans: NodeArray<TemplateSpan>; + } + interface TemplateSpan extends Node { + kind: SyntaxKind.TemplateSpan; + parent: TemplateExpression; + expression: Expression; + literal: TemplateMiddle | TemplateTail; + } + interface ParenthesizedExpression extends PrimaryExpression, JSDocContainer { + kind: SyntaxKind.ParenthesizedExpression; + expression: Expression; + } + interface ArrayLiteralExpression extends PrimaryExpression { + kind: SyntaxKind.ArrayLiteralExpression; + elements: NodeArray<Expression>; + } + interface SpreadElement extends Expression { + kind: SyntaxKind.SpreadElement; + parent: ArrayLiteralExpression | CallExpression | NewExpression; + expression: Expression; + } + /** + * This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to + * ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be + * JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type + * ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.) + */ + interface ObjectLiteralExpressionBase<T extends ObjectLiteralElement> extends PrimaryExpression, Declaration { + properties: NodeArray<T>; + } + interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike> { + kind: SyntaxKind.ObjectLiteralExpression; + } + type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression; + type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression; + interface PropertyAccessExpression extends MemberExpression, NamedDeclaration { + kind: SyntaxKind.PropertyAccessExpression; + expression: LeftHandSideExpression; + name: Identifier; + } + interface SuperPropertyAccessExpression extends PropertyAccessExpression { + expression: SuperExpression; + } + /** Brand for a PropertyAccessExpression which, like a QualifiedName, consists of a sequence of identifiers separated by dots. */ + interface PropertyAccessEntityNameExpression extends PropertyAccessExpression { + _propertyAccessExpressionLikeQualifiedNameBrand?: any; + expression: EntityNameExpression; + } + interface ElementAccessExpression extends MemberExpression { + kind: SyntaxKind.ElementAccessExpression; + expression: LeftHandSideExpression; + argumentExpression: Expression; + } + interface SuperElementAccessExpression extends ElementAccessExpression { + expression: SuperExpression; + } + type SuperProperty = SuperPropertyAccessExpression | SuperElementAccessExpression; + interface CallExpression extends LeftHandSideExpression, Declaration { + kind: SyntaxKind.CallExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments: NodeArray<Expression>; + } + interface SuperCall extends CallExpression { + expression: SuperExpression; + } + interface ImportCall extends CallExpression { + expression: ImportExpression; + } + interface ExpressionWithTypeArguments extends NodeWithTypeArguments { + kind: SyntaxKind.ExpressionWithTypeArguments; + parent: HeritageClause | JSDocAugmentsTag; + expression: LeftHandSideExpression; + } + interface NewExpression extends PrimaryExpression, Declaration { + kind: SyntaxKind.NewExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments?: NodeArray<Expression>; + } + interface TaggedTemplateExpression extends MemberExpression { + kind: SyntaxKind.TaggedTemplateExpression; + tag: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + template: TemplateLiteral; + } + type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxOpeningLikeElement; + interface AsExpression extends Expression { + kind: SyntaxKind.AsExpression; + expression: Expression; + type: TypeNode; + } + interface TypeAssertion extends UnaryExpression { + kind: SyntaxKind.TypeAssertionExpression; + type: TypeNode; + expression: UnaryExpression; + } + type AssertionExpression = TypeAssertion | AsExpression; + interface NonNullExpression extends LeftHandSideExpression { + kind: SyntaxKind.NonNullExpression; + expression: Expression; + } + interface MetaProperty extends PrimaryExpression { + kind: SyntaxKind.MetaProperty; + keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword; + name: Identifier; + } + interface JsxElement extends PrimaryExpression { + kind: SyntaxKind.JsxElement; + openingElement: JsxOpeningElement; + children: NodeArray<JsxChild>; + closingElement: JsxClosingElement; + } + type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement; + type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute; + type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess; + interface JsxTagNamePropertyAccess extends PropertyAccessExpression { + expression: JsxTagNameExpression; + } + interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> { + parent: JsxOpeningLikeElement; + } + interface JsxOpeningElement extends Expression { + kind: SyntaxKind.JsxOpeningElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxSelfClosingElement extends PrimaryExpression { + kind: SyntaxKind.JsxSelfClosingElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxFragment extends PrimaryExpression { + kind: SyntaxKind.JsxFragment; + openingFragment: JsxOpeningFragment; + children: NodeArray<JsxChild>; + closingFragment: JsxClosingFragment; + } + interface JsxOpeningFragment extends Expression { + kind: SyntaxKind.JsxOpeningFragment; + parent: JsxFragment; + } + interface JsxClosingFragment extends Expression { + kind: SyntaxKind.JsxClosingFragment; + parent: JsxFragment; + } + interface JsxAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxAttribute; + parent: JsxAttributes; + name: Identifier; + initializer?: StringLiteral | JsxExpression; + } + interface JsxSpreadAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxSpreadAttribute; + parent: JsxAttributes; + expression: Expression; + } + interface JsxClosingElement extends Node { + kind: SyntaxKind.JsxClosingElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + } + interface JsxExpression extends Expression { + kind: SyntaxKind.JsxExpression; + parent: JsxElement | JsxAttributeLike; + dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>; + expression?: Expression; + } + interface JsxText extends Node { + kind: SyntaxKind.JsxText; + containsOnlyWhiteSpaces: boolean; + parent: JsxElement; + } + type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment; + interface Statement extends Node { + _statementBrand: any; + } + interface NotEmittedStatement extends Statement { + kind: SyntaxKind.NotEmittedStatement; + } + /** + * A list of comma-separated expressions. This node is only created by transformations. + */ + interface CommaListExpression extends Expression { + kind: SyntaxKind.CommaListExpression; + elements: NodeArray<Expression>; + } + interface EmptyStatement extends Statement { + kind: SyntaxKind.EmptyStatement; + } + interface DebuggerStatement extends Statement { + kind: SyntaxKind.DebuggerStatement; + } + interface MissingDeclaration extends DeclarationStatement { + kind: SyntaxKind.MissingDeclaration; + name?: Identifier; + } + type BlockLike = SourceFile | Block | ModuleBlock | CaseOrDefaultClause; + interface Block extends Statement { + kind: SyntaxKind.Block; + statements: NodeArray<Statement>; + } + interface VariableStatement extends Statement, JSDocContainer { + kind: SyntaxKind.VariableStatement; + declarationList: VariableDeclarationList; + } + interface ExpressionStatement extends Statement, JSDocContainer { + kind: SyntaxKind.ExpressionStatement; + expression: Expression; + } + interface IfStatement extends Statement { + kind: SyntaxKind.IfStatement; + expression: Expression; + thenStatement: Statement; + elseStatement?: Statement; + } + interface IterationStatement extends Statement { + statement: Statement; + } + interface DoStatement extends IterationStatement { + kind: SyntaxKind.DoStatement; + expression: Expression; + } + interface WhileStatement extends IterationStatement { + kind: SyntaxKind.WhileStatement; + expression: Expression; + } + type ForInitializer = VariableDeclarationList | Expression; + interface ForStatement extends IterationStatement { + kind: SyntaxKind.ForStatement; + initializer?: ForInitializer; + condition?: Expression; + incrementor?: Expression; + } + type ForInOrOfStatement = ForInStatement | ForOfStatement; + interface ForInStatement extends IterationStatement { + kind: SyntaxKind.ForInStatement; + initializer: ForInitializer; + expression: Expression; + } + interface ForOfStatement extends IterationStatement { + kind: SyntaxKind.ForOfStatement; + awaitModifier?: AwaitKeywordToken; + initializer: ForInitializer; + expression: Expression; + } + interface BreakStatement extends Statement { + kind: SyntaxKind.BreakStatement; + label?: Identifier; + } + interface ContinueStatement extends Statement { + kind: SyntaxKind.ContinueStatement; + label?: Identifier; + } + type BreakOrContinueStatement = BreakStatement | ContinueStatement; + interface ReturnStatement extends Statement { + kind: SyntaxKind.ReturnStatement; + expression?: Expression; + } + interface WithStatement extends Statement { + kind: SyntaxKind.WithStatement; + expression: Expression; + statement: Statement; + } + interface SwitchStatement extends Statement { + kind: SyntaxKind.SwitchStatement; + expression: Expression; + caseBlock: CaseBlock; + possiblyExhaustive?: boolean; + } + interface CaseBlock extends Node { + kind: SyntaxKind.CaseBlock; + parent: SwitchStatement; + clauses: NodeArray<CaseOrDefaultClause>; + } + interface CaseClause extends Node { + kind: SyntaxKind.CaseClause; + parent: CaseBlock; + expression: Expression; + statements: NodeArray<Statement>; + } + interface DefaultClause extends Node { + kind: SyntaxKind.DefaultClause; + parent: CaseBlock; + statements: NodeArray<Statement>; + } + type CaseOrDefaultClause = CaseClause | DefaultClause; + interface LabeledStatement extends Statement, JSDocContainer { + kind: SyntaxKind.LabeledStatement; + label: Identifier; + statement: Statement; + } + interface ThrowStatement extends Statement { + kind: SyntaxKind.ThrowStatement; + expression?: Expression; + } + interface TryStatement extends Statement { + kind: SyntaxKind.TryStatement; + tryBlock: Block; + catchClause?: CatchClause; + finallyBlock?: Block; + } + interface CatchClause extends Node { + kind: SyntaxKind.CatchClause; + parent: TryStatement; + variableDeclaration?: VariableDeclaration; + block: Block; + } + type ObjectTypeDeclaration = ClassLikeDeclaration | InterfaceDeclaration | TypeLiteralNode; + type DeclarationWithTypeParameters = DeclarationWithTypeParameterChildren | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature; + type DeclarationWithTypeParameterChildren = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag; + interface ClassLikeDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.ClassDeclaration | SyntaxKind.ClassExpression; + name?: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<ClassElement>; + } + interface ClassDeclaration extends ClassLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.ClassDeclaration; + /** May be undefined in `export default class { ... }`. */ + name?: Identifier; + } + interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression { + kind: SyntaxKind.ClassExpression; + } + type ClassLikeDeclaration = ClassDeclaration | ClassExpression; + interface ClassElement extends NamedDeclaration { + _classElementBrand: any; + name?: PropertyName; + } + interface TypeElement extends NamedDeclaration { + _typeElementBrand: any; + name?: PropertyName; + questionToken?: QuestionToken; + } + interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.InterfaceDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<TypeElement>; + } + interface HeritageClause extends Node { + kind: SyntaxKind.HeritageClause; + parent: InterfaceDeclaration | ClassLikeDeclaration; + token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword; + types: NodeArray<ExpressionWithTypeArguments>; + } + interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.TypeAliasDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + type: TypeNode; + } + interface EnumMember extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.EnumMember; + parent: EnumDeclaration; + name: PropertyName; + initializer?: Expression; + } + interface EnumDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.EnumDeclaration; + name: Identifier; + members: NodeArray<EnumMember>; + } + type ModuleName = Identifier | StringLiteral; + type ModuleBody = NamespaceBody | JSDocNamespaceBody; + interface ModuleDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ModuleDeclaration; + parent: ModuleBody | SourceFile; + name: ModuleName; + body?: ModuleBody | JSDocNamespaceDeclaration; + } + type NamespaceBody = ModuleBlock | NamespaceDeclaration; + interface NamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body: NamespaceBody; + } + type JSDocNamespaceBody = Identifier | JSDocNamespaceDeclaration; + interface JSDocNamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body?: JSDocNamespaceBody; + } + interface ModuleBlock extends Node, Statement { + kind: SyntaxKind.ModuleBlock; + parent: ModuleDeclaration; + statements: NodeArray<Statement>; + } + type ModuleReference = EntityName | ExternalModuleReference; + /** + * One of: + * - import x = require("mod"); + * - import x = M.x; + */ + interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ImportEqualsDeclaration; + parent: SourceFile | ModuleBlock; + name: Identifier; + moduleReference: ModuleReference; + } + interface ExternalModuleReference extends Node { + kind: SyntaxKind.ExternalModuleReference; + parent: ImportEqualsDeclaration; + expression: Expression; + } + interface ImportDeclaration extends Statement { + kind: SyntaxKind.ImportDeclaration; + parent: SourceFile | ModuleBlock; + importClause?: ImportClause; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier: Expression; + } + type NamedImportBindings = NamespaceImport | NamedImports; + interface ImportClause extends NamedDeclaration { + kind: SyntaxKind.ImportClause; + parent: ImportDeclaration; + name?: Identifier; + namedBindings?: NamedImportBindings; + } + interface NamespaceImport extends NamedDeclaration { + kind: SyntaxKind.NamespaceImport; + parent: ImportClause; + name: Identifier; + } + interface NamespaceExportDeclaration extends DeclarationStatement { + kind: SyntaxKind.NamespaceExportDeclaration; + name: Identifier; + } + interface ExportDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ExportDeclaration; + parent: SourceFile | ModuleBlock; + /** Will not be assigned in the case of `export * from "foo";` */ + exportClause?: NamedExports; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier?: Expression; + } + interface NamedImports extends Node { + kind: SyntaxKind.NamedImports; + parent: ImportClause; + elements: NodeArray<ImportSpecifier>; + } + interface NamedExports extends Node { + kind: SyntaxKind.NamedExports; + parent: ExportDeclaration; + elements: NodeArray<ExportSpecifier>; + } + type NamedImportsOrExports = NamedImports | NamedExports; + interface ImportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ImportSpecifier; + parent: NamedImports; + propertyName?: Identifier; + name: Identifier; + } + interface ExportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ExportSpecifier; + parent: NamedExports; + propertyName?: Identifier; + name: Identifier; + } + type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier; + /** + * This is either an `export =` or an `export default` declaration. + * Unless `isExportEquals` is set, this node was parsed as an `export default`. + */ + interface ExportAssignment extends DeclarationStatement { + kind: SyntaxKind.ExportAssignment; + parent: SourceFile; + isExportEquals?: boolean; + expression: Expression; + } + interface FileReference extends TextRange { + fileName: string; + } + interface CheckJsDirective extends TextRange { + enabled: boolean; + } + type CommentKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia; + interface CommentRange extends TextRange { + hasTrailingNewLine?: boolean; + kind: CommentKind; + } + interface SynthesizedComment extends CommentRange { + text: string; + pos: -1; + end: -1; + } + interface JSDocTypeExpression extends TypeNode { + kind: SyntaxKind.JSDocTypeExpression; + type: TypeNode; + } + interface JSDocType extends TypeNode { + _jsDocTypeBrand: any; + } + interface JSDocAllType extends JSDocType { + kind: SyntaxKind.JSDocAllType; + } + interface JSDocUnknownType extends JSDocType { + kind: SyntaxKind.JSDocUnknownType; + } + interface JSDocNonNullableType extends JSDocType { + kind: SyntaxKind.JSDocNonNullableType; + type: TypeNode; + } + interface JSDocNullableType extends JSDocType { + kind: SyntaxKind.JSDocNullableType; + type: TypeNode; + } + interface JSDocOptionalType extends JSDocType { + kind: SyntaxKind.JSDocOptionalType; + type: TypeNode; + } + interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase { + kind: SyntaxKind.JSDocFunctionType; + } + interface JSDocVariadicType extends JSDocType { + kind: SyntaxKind.JSDocVariadicType; + type: TypeNode; + } + type JSDocTypeReferencingNode = JSDocVariadicType | JSDocOptionalType | JSDocNullableType | JSDocNonNullableType; + interface JSDoc extends Node { + kind: SyntaxKind.JSDocComment; + parent: HasJSDoc; + tags?: NodeArray<JSDocTag>; + comment?: string; + } + interface JSDocTag extends Node { + parent: JSDoc | JSDocTypeLiteral; + tagName: Identifier; + comment?: string; + } + interface JSDocUnknownTag extends JSDocTag { + kind: SyntaxKind.JSDocTag; + } + /** + * Note that `@extends` is a synonym of `@augments`. + * Both tags are represented by this interface. + */ + interface JSDocAugmentsTag extends JSDocTag { + kind: SyntaxKind.JSDocAugmentsTag; + class: ExpressionWithTypeArguments & { + expression: Identifier | PropertyAccessEntityNameExpression; + }; + } + interface JSDocClassTag extends JSDocTag { + kind: SyntaxKind.JSDocClassTag; + } + interface JSDocEnumTag extends JSDocTag { + kind: SyntaxKind.JSDocEnumTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTemplateTag extends JSDocTag { + kind: SyntaxKind.JSDocTemplateTag; + constraint: JSDocTypeExpression | undefined; + typeParameters: NodeArray<TypeParameterDeclaration>; + } + interface JSDocReturnTag extends JSDocTag { + kind: SyntaxKind.JSDocReturnTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypeTag extends JSDocTag { + kind: SyntaxKind.JSDocTypeTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypedefTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocTypedefTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression?: JSDocTypeExpression | JSDocTypeLiteral; + } + interface JSDocCallbackTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocCallbackTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression: JSDocSignature; + } + interface JSDocSignature extends JSDocType, Declaration { + kind: SyntaxKind.JSDocSignature; + typeParameters?: ReadonlyArray<JSDocTemplateTag>; + parameters: ReadonlyArray<JSDocParameterTag>; + type: JSDocReturnTag | undefined; + } + interface JSDocPropertyLikeTag extends JSDocTag, Declaration { + parent: JSDoc; + name: EntityName; + typeExpression?: JSDocTypeExpression; + /** Whether the property name came before the type -- non-standard for JSDoc, but Typescript-like */ + isNameFirst: boolean; + isBracketed: boolean; + } + interface JSDocPropertyTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocPropertyTag; + } + interface JSDocParameterTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocParameterTag; + } + interface JSDocTypeLiteral extends JSDocType { + kind: SyntaxKind.JSDocTypeLiteral; + jsDocPropertyTags?: ReadonlyArray<JSDocPropertyLikeTag>; + /** If true, then this type literal represents an *array* of its type. */ + isArrayType?: boolean; + } + enum FlowFlags { + Unreachable = 1, + Start = 2, + BranchLabel = 4, + LoopLabel = 8, + Assignment = 16, + TrueCondition = 32, + FalseCondition = 64, + SwitchClause = 128, + ArrayMutation = 256, + Referenced = 512, + Shared = 1024, + PreFinally = 2048, + AfterFinally = 4096, + Label = 12, + Condition = 96 + } + interface FlowLock { + locked?: boolean; + } + interface AfterFinallyFlow extends FlowNodeBase, FlowLock { + antecedent: FlowNode; + } + interface PreFinallyFlow extends FlowNodeBase { + antecedent: FlowNode; + lock: FlowLock; + } + type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + interface FlowNodeBase { + flags: FlowFlags; + id?: number; + } + interface FlowStart extends FlowNodeBase { + container?: FunctionExpression | ArrowFunction | MethodDeclaration; + } + interface FlowLabel extends FlowNodeBase { + antecedents: FlowNode[] | undefined; + } + interface FlowAssignment extends FlowNodeBase { + node: Expression | VariableDeclaration | BindingElement; + antecedent: FlowNode; + } + interface FlowCondition extends FlowNodeBase { + expression: Expression; + antecedent: FlowNode; + } + interface FlowSwitchClause extends FlowNodeBase { + switchStatement: SwitchStatement; + clauseStart: number; + clauseEnd: number; + antecedent: FlowNode; + } + interface FlowArrayMutation extends FlowNodeBase { + node: CallExpression | BinaryExpression; + antecedent: FlowNode; + } + type FlowType = Type | IncompleteType; + interface IncompleteType { + flags: TypeFlags; + type: Type; + } + interface AmdDependency { + path: string; + name?: string; + } + interface SourceFile extends Declaration { + kind: SyntaxKind.SourceFile; + statements: NodeArray<Statement>; + endOfFileToken: Token<SyntaxKind.EndOfFileToken>; + fileName: string; + text: string; + amdDependencies: ReadonlyArray<AmdDependency>; + moduleName?: string; + referencedFiles: ReadonlyArray<FileReference>; + typeReferenceDirectives: ReadonlyArray<FileReference>; + libReferenceDirectives: ReadonlyArray<FileReference>; + languageVariant: LanguageVariant; + isDeclarationFile: boolean; + /** + * lib.d.ts should have a reference comment like + * + * /// <reference no-default-lib="true"/> + * + * If any other file has this comment, it signals not to include lib.d.ts + * because this containing file is intended to act as a default library. + */ + hasNoDefaultLib: boolean; + languageVersion: ScriptTarget; + } + interface Bundle extends Node { + kind: SyntaxKind.Bundle; + prepends: ReadonlyArray<InputFiles | UnparsedSource>; + sourceFiles: ReadonlyArray<SourceFile>; + } + interface InputFiles extends Node { + kind: SyntaxKind.InputFiles; + javascriptText: string; + javascriptMapPath?: string; + javascriptMapText?: string; + declarationText: string; + declarationMapPath?: string; + declarationMapText?: string; + } + interface UnparsedSource extends Node { + kind: SyntaxKind.UnparsedSource; + text: string; + sourceMapPath?: string; + sourceMapText?: string; + } + interface JsonSourceFile extends SourceFile { + statements: NodeArray<JsonObjectExpressionStatement>; + } + interface TsConfigSourceFile extends JsonSourceFile { + extendedSourceFiles?: string[]; + } + interface JsonMinusNumericLiteral extends PrefixUnaryExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: SyntaxKind.MinusToken; + operand: NumericLiteral; + } + interface JsonObjectExpressionStatement extends ExpressionStatement { + expression: ObjectLiteralExpression | ArrayLiteralExpression | JsonMinusNumericLiteral | NumericLiteral | StringLiteral | BooleanLiteral | NullLiteral; + } + interface ScriptReferenceHost { + getCompilerOptions(): CompilerOptions; + getSourceFile(fileName: string): SourceFile | undefined; + getSourceFileByPath(path: Path): SourceFile | undefined; + getCurrentDirectory(): string; + } + interface ParseConfigHost { + useCaseSensitiveFileNames: boolean; + readDirectory(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): ReadonlyArray<string>; + /** + * Gets a value indicating whether the specified path exists and is a file. + * @param path The path to test. + */ + fileExists(path: string): boolean; + readFile(path: string): string | undefined; + trace?(s: string): void; + } + /** + * Branded string for keeping track of when we've turned an ambiguous path + * specified like "./blah" to an absolute path to an actual + * tsconfig file, e.g. "/root/blah/tsconfig.json" + */ + type ResolvedConfigFileName = string & { + _isResolvedConfigFileName: never; + }; + type WriteFileCallback = (fileName: string, data: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles?: ReadonlyArray<SourceFile>) => void; + class OperationCanceledException { + } + interface CancellationToken { + isCancellationRequested(): boolean; + /** @throws OperationCanceledException if isCancellationRequested is true */ + throwIfCancellationRequested(): void; + } + interface Program extends ScriptReferenceHost { + /** + * Get a list of root file names that were passed to a 'createProgram' + */ + getRootFileNames(): ReadonlyArray<string>; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then + * the JavaScript and declaration files will be produced for all the files in this program. + * If targetSourceFile is specified, then only the JavaScript and declaration for that + * specific file will be generated. + * + * If writeFile is not specified then the writeFile callback from the compiler host will be + * used for writing the JavaScript and declaration files. Otherwise, the writeFile parameter + * will be invoked when writing the JavaScript and declaration files. + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getDeclarationDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Gets a type checker that can be used to semantically analyze source files in the program. + */ + getTypeChecker(): TypeChecker; + isSourceFileFromExternalLibrary(file: SourceFile): boolean; + isSourceFileDefaultLibrary(file: SourceFile): boolean; + getProjectReferences(): ReadonlyArray<ProjectReference> | undefined; + getResolvedProjectReferences(): ReadonlyArray<ResolvedProjectReference | undefined> | undefined; + } + interface ResolvedProjectReference { + commandLine: ParsedCommandLine; + sourceFile: SourceFile; + references?: ReadonlyArray<ResolvedProjectReference | undefined>; + } + interface CustomTransformers { + /** Custom transformers to evaluate before built-in .js transformations. */ + before?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .js transformations. */ + after?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .d.ts transformations. */ + afterDeclarations?: TransformerFactory<Bundle | SourceFile>[]; + } + interface SourceMapSpan { + /** Line number in the .js file. */ + emittedLine: number; + /** Column number in the .js file. */ + emittedColumn: number; + /** Line number in the .ts file. */ + sourceLine: number; + /** Column number in the .ts file. */ + sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ + nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ + sourceIndex: number; + } + /** Return code used by getEmitOutput function to indicate status of the function */ + enum ExitStatus { + Success = 0, + DiagnosticsPresent_OutputsSkipped = 1, + DiagnosticsPresent_OutputsGenerated = 2 + } + interface EmitResult { + emitSkipped: boolean; + /** Contains declaration emit diagnostics */ + diagnostics: ReadonlyArray<Diagnostic>; + emittedFiles?: string[]; + } + interface TypeChecker { + getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; + getDeclaredTypeOfSymbol(symbol: Symbol): Type; + getPropertiesOfType(type: Type): Symbol[]; + getPropertyOfType(type: Type, propertyName: string): Symbol | undefined; + getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined; + getSignaturesOfType(type: Type, kind: SignatureKind): ReadonlyArray<Signature>; + getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined; + getBaseTypes(type: InterfaceType): BaseType[]; + getBaseTypeOfLiteralType(type: Type): Type; + getWidenedType(type: Type): Type; + getReturnTypeOfSignature(signature: Signature): Type; + getNullableType(type: Type, flags: TypeFlags): Type; + getNonNullableType(type: Type): Type; + /** Note that the resulting nodes cannot be checked. */ + typeToTypeNode(type: Type, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeNode | undefined; + /** Note that the resulting nodes cannot be checked. */ + signatureToSignatureDeclaration(signature: Signature, kind: SyntaxKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): (SignatureDeclaration & { + typeArguments?: NodeArray<TypeNode>; + }) | undefined; + /** Note that the resulting nodes cannot be checked. */ + indexInfoToIndexSignatureDeclaration(indexInfo: IndexInfo, kind: IndexKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): IndexSignatureDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToEntityName(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): EntityName | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToExpression(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): Expression | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToTypeParameterDeclarations(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): NodeArray<TypeParameterDeclaration> | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToParameterDeclaration(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): ParameterDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + typeParameterToDeclaration(parameter: TypeParameter, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeParameterDeclaration | undefined; + getSymbolsInScope(location: Node, meaning: SymbolFlags): Symbol[]; + getSymbolAtLocation(node: Node): Symbol | undefined; + getSymbolsOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): Symbol[]; + /** + * The function returns the value (local variable) symbol of an identifier in the short-hand property assignment. + * This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value. + */ + getShorthandAssignmentValueSymbol(location: Node): Symbol | undefined; + getExportSpecifierLocalTargetSymbol(location: ExportSpecifier): Symbol | undefined; + /** + * If a symbol is a local symbol with an associated exported symbol, returns the exported symbol. + * Otherwise returns its input. + * For example, at `export type T = number;`: + * - `getSymbolAtLocation` at the location `T` will return the exported symbol for `T`. + * - But the result of `getSymbolsInScope` will contain the *local* symbol for `T`, not the exported symbol. + * - Calling `getExportSymbolOfSymbol` on that local symbol will return the exported symbol. + */ + getExportSymbolOfSymbol(symbol: Symbol): Symbol; + getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined; + getTypeAtLocation(node: Node): Type; + getTypeFromTypeNode(node: TypeNode): Type; + signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string; + typeToString(type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + symbolToString(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): string; + typePredicateToString(predicate: TypePredicate, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + getFullyQualifiedName(symbol: Symbol): string; + getAugmentedPropertiesOfType(type: Type): Symbol[]; + getRootSymbols(symbol: Symbol): ReadonlyArray<Symbol>; + getContextualType(node: Expression): Type | undefined; + /** + * returns unknownSignature in the case of an error. + * returns undefined if the node is not valid. + * @param argumentCount Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See `signatureHelp.ts`. + */ + getResolvedSignature(node: CallLikeExpression, candidatesOutArray?: Signature[], argumentCount?: number): Signature | undefined; + getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature | undefined; + isImplementationOfOverload(node: SignatureDeclaration): boolean | undefined; + isUndefinedSymbol(symbol: Symbol): boolean; + isArgumentsSymbol(symbol: Symbol): boolean; + isUnknownSymbol(symbol: Symbol): boolean; + getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean; + /** Follow all aliases to get the original symbol. */ + getAliasedSymbol(symbol: Symbol): Symbol; + getExportsOfModule(moduleSymbol: Symbol): Symbol[]; + getJsxIntrinsicTagNamesAt(location: Node): Symbol[]; + isOptionalParameter(node: ParameterDeclaration): boolean; + getAmbientModules(): Symbol[]; + tryGetMemberInModuleExports(memberName: string, moduleSymbol: Symbol): Symbol | undefined; + getApparentType(type: Type): Type; + getBaseConstraintOfType(type: Type): Type | undefined; + getDefaultFromTypeParameter(type: Type): Type | undefined; + /** + * Depending on the operation performed, it may be appropriate to throw away the checker + * if the cancellation token is triggered. Typically, if it is used for error checking + * and the operation is cancelled, then it should be discarded, otherwise it is safe to keep. + */ + runWithCancellationToken<T>(token: CancellationToken, cb: (checker: TypeChecker) => T): T; + } + enum NodeBuilderFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + GenerateNamesForShadowedTypeParams = 4, + UseStructuralFallback = 8, + ForbidIndexedAccessSymbolReferences = 16, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + UseOnlyExternalAliasing = 128, + SuppressAnyReturnType = 256, + WriteTypeParametersInQualifiedName = 512, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowThisInObjectLiteral = 32768, + AllowQualifedNameInPlaceOfIdentifier = 65536, + AllowAnonymousIdentifier = 131072, + AllowEmptyUnionOrIntersection = 262144, + AllowEmptyTuple = 524288, + AllowUniqueESSymbolType = 1048576, + AllowEmptyIndexInfoType = 2097152, + AllowNodeModulesRelativePaths = 67108864, + IgnoreErrors = 70221824, + InObjectTypeLiteral = 4194304, + InTypeAlias = 8388608, + InInitialEntityName = 16777216, + InReverseMappedType = 33554432 + } + enum TypeFormatFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + UseStructuralFallback = 8, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + SuppressAnyReturnType = 256, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowUniqueESSymbolType = 1048576, + AddUndefined = 131072, + WriteArrowStyleSignature = 262144, + InArrayType = 524288, + InElementType = 2097152, + InFirstTypeArgument = 4194304, + InTypeAlias = 8388608, + /** @deprecated */ WriteOwnNameForAnyLike = 0, + NodeBuilderFlagsMask = 9469291 + } + enum SymbolFormatFlags { + None = 0, + WriteTypeParametersOrArguments = 1, + UseOnlyExternalAliasing = 2, + AllowAnyNodeKind = 4, + UseAliasDefinedOutsideCurrentScope = 8 + } + enum TypePredicateKind { + This = 0, + Identifier = 1 + } + interface TypePredicateBase { + kind: TypePredicateKind; + type: Type; + } + interface ThisTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.This; + } + interface IdentifierTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.Identifier; + parameterName: string; + parameterIndex: number; + } + type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + enum SymbolFlags { + None = 0, + FunctionScopedVariable = 1, + BlockScopedVariable = 2, + Property = 4, + EnumMember = 8, + Function = 16, + Class = 32, + Interface = 64, + ConstEnum = 128, + RegularEnum = 256, + ValueModule = 512, + NamespaceModule = 1024, + TypeLiteral = 2048, + ObjectLiteral = 4096, + Method = 8192, + Constructor = 16384, + GetAccessor = 32768, + SetAccessor = 65536, + Signature = 131072, + TypeParameter = 262144, + TypeAlias = 524288, + ExportValue = 1048576, + Alias = 2097152, + Prototype = 4194304, + ExportStar = 8388608, + Optional = 16777216, + Transient = 33554432, + Assignment = 67108864, + ModuleExports = 134217728, + Enum = 384, + Variable = 3, + Value = 67220415, + Type = 67897832, + Namespace = 1920, + Module = 1536, + Accessor = 98304, + FunctionScopedVariableExcludes = 67220414, + BlockScopedVariableExcludes = 67220415, + ParameterExcludes = 67220415, + PropertyExcludes = 0, + EnumMemberExcludes = 68008959, + FunctionExcludes = 67219887, + ClassExcludes = 68008383, + InterfaceExcludes = 67897736, + RegularEnumExcludes = 68008191, + ConstEnumExcludes = 68008831, + ValueModuleExcludes = 110735, + NamespaceModuleExcludes = 0, + MethodExcludes = 67212223, + GetAccessorExcludes = 67154879, + SetAccessorExcludes = 67187647, + TypeParameterExcludes = 67635688, + TypeAliasExcludes = 67897832, + AliasExcludes = 2097152, + ModuleMember = 2623475, + ExportHasLocal = 944, + BlockScoped = 418, + PropertyOrAccessor = 98308, + ClassMember = 106500 + } + interface Symbol { + flags: SymbolFlags; + escapedName: __String; + declarations: Declaration[]; + valueDeclaration: Declaration; + members?: SymbolTable; + exports?: SymbolTable; + globalExports?: SymbolTable; + } + enum InternalSymbolName { + Call = "__call", + Constructor = "__constructor", + New = "__new", + Index = "__index", + ExportStar = "__export", + Global = "__global", + Missing = "__missing", + Type = "__type", + Object = "__object", + JSXAttributes = "__jsxAttributes", + Class = "__class", + Function = "__function", + Computed = "__computed", + Resolving = "__resolving__", + ExportEquals = "export=", + Default = "default", + This = "this" + } + /** + * This represents a string whose leading underscore have been escaped by adding extra leading underscores. + * The shape of this brand is rather unique compared to others we've used. + * Instead of just an intersection of a string and an object, it is that union-ed + * with an intersection of void and an object. This makes it wholly incompatible + * with a normal string (which is good, it cannot be misused on assignment or on usage), + * while still being comparable with a normal string via === (also good) and castable from a string. + */ + type __String = (string & { + __escapedIdentifier: void; + }) | (void & { + __escapedIdentifier: void; + }) | InternalSymbolName; + /** ReadonlyMap where keys are `__String`s. */ + interface ReadonlyUnderscoreEscapedMap<T> { + get(key: __String): T | undefined; + has(key: __String): boolean; + forEach(action: (value: T, key: __String) => void): void; + readonly size: number; + keys(): Iterator<__String>; + values(): Iterator<T>; + entries(): Iterator<[__String, T]>; + } + /** Map where keys are `__String`s. */ + interface UnderscoreEscapedMap<T> extends ReadonlyUnderscoreEscapedMap<T> { + set(key: __String, value: T): this; + delete(key: __String): boolean; + clear(): void; + } + /** SymbolTable based on ES6 Map interface. */ + type SymbolTable = UnderscoreEscapedMap<Symbol>; + enum TypeFlags { + Any = 1, + Unknown = 2, + String = 4, + Number = 8, + Boolean = 16, + Enum = 32, + BigInt = 64, + StringLiteral = 128, + NumberLiteral = 256, + BooleanLiteral = 512, + EnumLiteral = 1024, + BigIntLiteral = 2048, + ESSymbol = 4096, + UniqueESSymbol = 8192, + Void = 16384, + Undefined = 32768, + Null = 65536, + Never = 131072, + TypeParameter = 262144, + Object = 524288, + Union = 1048576, + Intersection = 2097152, + Index = 4194304, + IndexedAccess = 8388608, + Conditional = 16777216, + Substitution = 33554432, + NonPrimitive = 67108864, + Literal = 2944, + Unit = 109440, + StringOrNumberLiteral = 384, + PossiblyFalsy = 117724, + StringLike = 132, + NumberLike = 296, + BigIntLike = 2112, + BooleanLike = 528, + EnumLike = 1056, + ESSymbolLike = 12288, + VoidLike = 49152, + UnionOrIntersection = 3145728, + StructuredType = 3670016, + TypeVariable = 8650752, + InstantiableNonPrimitive = 58982400, + InstantiablePrimitive = 4194304, + Instantiable = 63176704, + StructuredOrInstantiable = 66846720, + Narrowable = 133970943, + NotUnionOrUnit = 67637251 + } + type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression; + interface Type { + flags: TypeFlags; + symbol: Symbol; + pattern?: DestructuringPattern; + aliasSymbol?: Symbol; + aliasTypeArguments?: ReadonlyArray<Type>; + } + interface LiteralType extends Type { + value: string | number | PseudoBigInt; + freshType: LiteralType; + regularType: LiteralType; + } + interface UniqueESSymbolType extends Type { + symbol: Symbol; + } + interface StringLiteralType extends LiteralType { + value: string; + } + interface NumberLiteralType extends LiteralType { + value: number; + } + interface BigIntLiteralType extends LiteralType { + value: PseudoBigInt; + } + interface EnumType extends Type { + } + enum ObjectFlags { + Class = 1, + Interface = 2, + Reference = 4, + Tuple = 8, + Anonymous = 16, + Mapped = 32, + Instantiated = 64, + ObjectLiteral = 128, + EvolvingArray = 256, + ObjectLiteralPatternWithComputedProperties = 512, + ContainsSpread = 1024, + ReverseMapped = 2048, + JsxAttributes = 4096, + MarkerType = 8192, + JSLiteral = 16384, + FreshLiteral = 32768, + ClassOrInterface = 3 + } + interface ObjectType extends Type { + objectFlags: ObjectFlags; + } + /** Class and interface types (ObjectFlags.Class and ObjectFlags.Interface). */ + interface InterfaceType extends ObjectType { + typeParameters: TypeParameter[] | undefined; + outerTypeParameters: TypeParameter[] | undefined; + localTypeParameters: TypeParameter[] | undefined; + thisType: TypeParameter | undefined; + } + type BaseType = ObjectType | IntersectionType; + interface InterfaceTypeWithDeclaredMembers extends InterfaceType { + declaredProperties: Symbol[]; + declaredCallSignatures: Signature[]; + declaredConstructSignatures: Signature[]; + declaredStringIndexInfo?: IndexInfo; + declaredNumberIndexInfo?: IndexInfo; + } + /** + * Type references (ObjectFlags.Reference). When a class or interface has type parameters or + * a "this" type, references to the class or interface are made using type references. The + * typeArguments property specifies the types to substitute for the type parameters of the + * class or interface and optionally includes an extra element that specifies the type to + * substitute for "this" in the resulting instantiation. When no extra argument is present, + * the type reference itself is substituted for "this". The typeArguments property is undefined + * if the class or interface has no type parameters and the reference isn't specifying an + * explicit "this" argument. + */ + interface TypeReference extends ObjectType { + target: GenericType; + typeArguments?: ReadonlyArray<Type>; + } + interface GenericType extends InterfaceType, TypeReference { + } + interface TupleType extends GenericType { + minLength: number; + hasRestElement: boolean; + associatedNames?: __String[]; + } + interface TupleTypeReference extends TypeReference { + target: TupleType; + } + interface UnionOrIntersectionType extends Type { + types: Type[]; + } + interface UnionType extends UnionOrIntersectionType { + } + interface IntersectionType extends UnionOrIntersectionType { + } + type StructuredType = ObjectType | UnionType | IntersectionType; + interface EvolvingArrayType extends ObjectType { + elementType: Type; + finalArrayType?: Type; + } + interface InstantiableType extends Type { + } + interface TypeParameter extends InstantiableType { + } + interface IndexedAccessType extends InstantiableType { + objectType: Type; + indexType: Type; + constraint?: Type; + simplified?: Type; + } + type TypeVariable = TypeParameter | IndexedAccessType; + interface IndexType extends InstantiableType { + type: InstantiableType | UnionOrIntersectionType; + } + interface ConditionalRoot { + node: ConditionalTypeNode; + checkType: Type; + extendsType: Type; + trueType: Type; + falseType: Type; + isDistributive: boolean; + inferTypeParameters?: TypeParameter[]; + outerTypeParameters?: TypeParameter[]; + instantiations?: Map<Type>; + aliasSymbol?: Symbol; + aliasTypeArguments?: Type[]; + } + interface ConditionalType extends InstantiableType { + root: ConditionalRoot; + checkType: Type; + extendsType: Type; + resolvedTrueType?: Type; + resolvedFalseType?: Type; + } + interface SubstitutionType extends InstantiableType { + typeVariable: TypeVariable; + substitute: Type; + } + enum SignatureKind { + Call = 0, + Construct = 1 + } + interface Signature { + declaration?: SignatureDeclaration | JSDocSignature; + typeParameters?: ReadonlyArray<TypeParameter>; + parameters: ReadonlyArray<Symbol>; + } + enum IndexKind { + String = 0, + Number = 1 + } + interface IndexInfo { + type: Type; + isReadonly: boolean; + declaration?: IndexSignatureDeclaration; + } + enum InferencePriority { + NakedTypeVariable = 1, + HomomorphicMappedType = 2, + MappedTypeConstraint = 4, + ReturnType = 8, + LiteralKeyof = 16, + NoConstraints = 32, + AlwaysStrict = 64, + PriorityImpliesCombination = 28 + } + /** @deprecated Use FileExtensionInfo instead. */ + type JsFileExtensionInfo = FileExtensionInfo; + interface FileExtensionInfo { + extension: string; + isMixedContent: boolean; + scriptKind?: ScriptKind; + } + interface DiagnosticMessage { + key: string; + category: DiagnosticCategory; + code: number; + message: string; + reportsUnnecessary?: {}; + } + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ + interface DiagnosticMessageChain { + messageText: string; + category: DiagnosticCategory; + code: number; + next?: DiagnosticMessageChain; + } + interface Diagnostic extends DiagnosticRelatedInformation { + /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */ + reportsUnnecessary?: {}; + source?: string; + relatedInformation?: DiagnosticRelatedInformation[]; + } + interface DiagnosticRelatedInformation { + category: DiagnosticCategory; + code: number; + file: SourceFile | undefined; + start: number | undefined; + length: number | undefined; + messageText: string | DiagnosticMessageChain; + } + interface DiagnosticWithLocation extends Diagnostic { + file: SourceFile; + start: number; + length: number; + } + enum DiagnosticCategory { + Warning = 0, + Error = 1, + Suggestion = 2, + Message = 3 + } + enum ModuleResolutionKind { + Classic = 1, + NodeJs = 2 + } + interface PluginImport { + name: string; + } + interface ProjectReference { + /** A normalized path on disk */ + path: string; + /** The path as the user originally wrote it */ + originalPath?: string; + /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ + prepend?: boolean; + /** True if it is intended that this reference form a circularity */ + circular?: boolean; + } + type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined; + interface CompilerOptions { + allowJs?: boolean; + allowSyntheticDefaultImports?: boolean; + allowUnreachableCode?: boolean; + allowUnusedLabels?: boolean; + alwaysStrict?: boolean; + baseUrl?: string; + charset?: string; + checkJs?: boolean; + declaration?: boolean; + declarationMap?: boolean; + emitDeclarationOnly?: boolean; + declarationDir?: string; + disableSizeLimit?: boolean; + downlevelIteration?: boolean; + emitBOM?: boolean; + emitDecoratorMetadata?: boolean; + experimentalDecorators?: boolean; + forceConsistentCasingInFileNames?: boolean; + importHelpers?: boolean; + inlineSourceMap?: boolean; + inlineSources?: boolean; + isolatedModules?: boolean; + jsx?: JsxEmit; + keyofStringsOnly?: boolean; + lib?: string[]; + locale?: string; + mapRoot?: string; + maxNodeModuleJsDepth?: number; + module?: ModuleKind; + moduleResolution?: ModuleResolutionKind; + newLine?: NewLineKind; + noEmit?: boolean; + noEmitHelpers?: boolean; + noEmitOnError?: boolean; + noErrorTruncation?: boolean; + noFallthroughCasesInSwitch?: boolean; + noImplicitAny?: boolean; + noImplicitReturns?: boolean; + noImplicitThis?: boolean; + noStrictGenericChecks?: boolean; + noUnusedLocals?: boolean; + noUnusedParameters?: boolean; + noImplicitUseStrict?: boolean; + noLib?: boolean; + noResolve?: boolean; + out?: string; + outDir?: string; + outFile?: string; + paths?: MapLike<string[]>; + preserveConstEnums?: boolean; + preserveSymlinks?: boolean; + project?: string; + reactNamespace?: string; + jsxFactory?: string; + composite?: boolean; + removeComments?: boolean; + rootDir?: string; + rootDirs?: string[]; + skipLibCheck?: boolean; + skipDefaultLibCheck?: boolean; + sourceMap?: boolean; + sourceRoot?: string; + strict?: boolean; + strictFunctionTypes?: boolean; + strictBindCallApply?: boolean; + strictNullChecks?: boolean; + strictPropertyInitialization?: boolean; + stripInternal?: boolean; + suppressExcessPropertyErrors?: boolean; + suppressImplicitAnyIndexErrors?: boolean; + target?: ScriptTarget; + traceResolution?: boolean; + resolveJsonModule?: boolean; + types?: string[]; + /** Paths used to compute primary types search locations */ + typeRoots?: string[]; + esModuleInterop?: boolean; + [option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined; + } + interface TypeAcquisition { + enableAutoDiscovery?: boolean; + enable?: boolean; + include?: string[]; + exclude?: string[]; + [option: string]: string[] | boolean | undefined; + } + enum ModuleKind { + None = 0, + CommonJS = 1, + AMD = 2, + UMD = 3, + System = 4, + ES2015 = 5, + ESNext = 6 + } + enum JsxEmit { + None = 0, + Preserve = 1, + React = 2, + ReactNative = 3 + } + enum NewLineKind { + CarriageReturnLineFeed = 0, + LineFeed = 1 + } + interface LineAndCharacter { + /** 0-based. */ + line: number; + character: number; + } + enum ScriptKind { + Unknown = 0, + JS = 1, + JSX = 2, + TS = 3, + TSX = 4, + External = 5, + JSON = 6, + /** + * Used on extensions that doesn't define the ScriptKind but the content defines it. + * Deferred extensions are going to be included in all project contexts. + */ + Deferred = 7 + } + enum ScriptTarget { + ES3 = 0, + ES5 = 1, + ES2015 = 2, + ES2016 = 3, + ES2017 = 4, + ES2018 = 5, + ESNext = 6, + JSON = 100, + Latest = 6 + } + enum LanguageVariant { + Standard = 0, + JSX = 1 + } + /** Either a parsed command line or a parsed tsconfig.json */ + interface ParsedCommandLine { + options: CompilerOptions; + typeAcquisition?: TypeAcquisition; + fileNames: string[]; + projectReferences?: ReadonlyArray<ProjectReference>; + raw?: any; + errors: Diagnostic[]; + wildcardDirectories?: MapLike<WatchDirectoryFlags>; + compileOnSave?: boolean; + } + enum WatchDirectoryFlags { + None = 0, + Recursive = 1 + } + interface ExpandResult { + fileNames: string[]; + wildcardDirectories: MapLike<WatchDirectoryFlags>; + } + interface CreateProgramOptions { + rootNames: ReadonlyArray<string>; + options: CompilerOptions; + projectReferences?: ReadonlyArray<ProjectReference>; + host?: CompilerHost; + oldProgram?: Program; + configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>; + } + interface ModuleResolutionHost { + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + trace?(s: string): void; + directoryExists?(directoryName: string): boolean; + /** + * Resolve a symbolic link. + * @see https://nodejs.org/api/fs.html#fs_fs_realpathsync_path_options + */ + realpath?(path: string): string; + getCurrentDirectory?(): string; + getDirectories?(path: string): string[]; + } + /** + * Represents the result of module resolution. + * Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. + * The Program will then filter results based on these flags. + * + * Prefer to return a `ResolvedModuleFull` so that the file type does not have to be inferred. + */ + interface ResolvedModule { + /** Path of the file the module was resolved to. */ + resolvedFileName: string; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + /** + * ResolvedModule with an explicitly provided `extension` property. + * Prefer this over `ResolvedModule`. + * If changing this, remember to change `moduleResolutionIsEqualTo`. + */ + interface ResolvedModuleFull extends ResolvedModule { + /** + * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. + * This is optional for backwards-compatibility, but will be added if not provided. + */ + extension: Extension; + packageId?: PackageId; + } + /** + * Unique identifier with a package name and version. + * If changing this, remember to change `packageIdIsEqual`. + */ + interface PackageId { + /** + * Name of the package. + * Should not include `@types`. + * If accessing a non-index file, this should include its name e.g. "foo/bar". + */ + name: string; + /** + * Name of a submodule within this package. + * May be "". + */ + subModuleName: string; + /** Version of the package, e.g. "1.2.3" */ + version: string; + } + enum Extension { + Ts = ".ts", + Tsx = ".tsx", + Dts = ".d.ts", + Js = ".js", + Jsx = ".jsx", + Json = ".json" + } + interface ResolvedModuleWithFailedLookupLocations { + readonly resolvedModule: ResolvedModuleFull | undefined; + } + interface ResolvedTypeReferenceDirective { + primary: boolean; + resolvedFileName: string | undefined; + packageId?: PackageId; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations { + readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined; + readonly failedLookupLocations: ReadonlyArray<string>; + } + interface CompilerHost extends ModuleResolutionHost { + getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getSourceFileByPath?(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getCancellationToken?(): CancellationToken; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + writeFile: WriteFileCallback; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + getCanonicalFileName(fileName: string): string; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + readDirectory?(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): string[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** + * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files + */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getEnvironmentVariable?(name: string): string | undefined; + createHash?(data: string): string; + } + interface SourceMapRange extends TextRange { + source?: SourceMapSource; + } + interface SourceMapSource { + fileName: string; + text: string; + skipTrivia?: (pos: number) => number; + } + enum EmitFlags { + None = 0, + SingleLine = 1, + AdviseOnEmitNode = 2, + NoSubstitution = 4, + CapturesThis = 8, + NoLeadingSourceMap = 16, + NoTrailingSourceMap = 32, + NoSourceMap = 48, + NoNestedSourceMaps = 64, + NoTokenLeadingSourceMaps = 128, + NoTokenTrailingSourceMaps = 256, + NoTokenSourceMaps = 384, + NoLeadingComments = 512, + NoTrailingComments = 1024, + NoComments = 1536, + NoNestedComments = 2048, + HelperName = 4096, + ExportName = 8192, + LocalName = 16384, + InternalName = 32768, + Indented = 65536, + NoIndentation = 131072, + AsyncFunctionBody = 262144, + ReuseTempVariableScope = 524288, + CustomPrologue = 1048576, + NoHoisting = 2097152, + HasEndOfDeclarationMarker = 4194304, + Iterator = 8388608, + NoAsciiEscaping = 16777216 + } + interface EmitHelper { + readonly name: string; + readonly scoped: boolean; + readonly text: string | ((node: EmitHelperUniqueNameCallback) => string); + readonly priority?: number; + } + type EmitHelperUniqueNameCallback = (name: string) => string; + enum EmitHint { + SourceFile = 0, + Expression = 1, + IdentifierName = 2, + MappedTypeParameter = 3, + Unspecified = 4, + EmbeddedStatement = 5 + } + interface TransformationContext { + /** Gets the compiler options supplied to the transformer. */ + getCompilerOptions(): CompilerOptions; + /** Starts a new lexical environment. */ + startLexicalEnvironment(): void; + /** Suspends the current lexical environment, usually after visiting a parameter list. */ + suspendLexicalEnvironment(): void; + /** Resumes a suspended lexical environment, usually before visiting a function body. */ + resumeLexicalEnvironment(): void; + /** Ends a lexical environment, returning any declarations. */ + endLexicalEnvironment(): Statement[] | undefined; + /** Hoists a function declaration to the containing scope. */ + hoistFunctionDeclaration(node: FunctionDeclaration): void; + /** Hoists a variable declaration to the containing scope. */ + hoistVariableDeclaration(node: Identifier): void; + /** Records a request for a non-scoped emit helper in the current context. */ + requestEmitHelper(helper: EmitHelper): void; + /** Gets and resets the requested non-scoped emit helpers. */ + readEmitHelpers(): EmitHelper[] | undefined; + /** Enables expression substitutions in the pretty printer for the provided SyntaxKind. */ + enableSubstitution(kind: SyntaxKind): void; + /** Determines whether expression substitutions are enabled for the provided node. */ + isSubstitutionEnabled(node: Node): boolean; + /** + * Hook used by transformers to substitute expressions just before they + * are emitted by the pretty printer. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onSubstituteNode: (hint: EmitHint, node: Node) => Node; + /** + * Enables before/after emit notifications in the pretty printer for the provided + * SyntaxKind. + */ + enableEmitNotification(kind: SyntaxKind): void; + /** + * Determines whether before/after emit notifications should be raised in the pretty + * printer when it emits a node. + */ + isEmitNotificationEnabled(node: Node): boolean; + /** + * Hook used to allow transformers to capture state before or after + * the printer emits a node. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void; + } + interface TransformationResult<T extends Node> { + /** Gets the transformed source files. */ + transformed: T[]; + /** Gets diagnostics for the transformation. */ + diagnostics?: DiagnosticWithLocation[]; + /** + * Gets a substitute for a node, if one is available; otherwise, returns the original node. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to substitute. + */ + substituteNode(hint: EmitHint, node: Node): Node; + /** + * Emits a node with possible notification. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to emit. + * @param emitCallback A callback used to emit the node. + */ + emitNodeWithNotification(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void): void; + /** + * Clean up EmitNode entries on any parse-tree nodes. + */ + dispose(): void; + } + /** + * A function that is used to initialize and return a `Transformer` callback, which in turn + * will be used to transform one or more nodes. + */ + type TransformerFactory<T extends Node> = (context: TransformationContext) => Transformer<T>; + /** + * A function that transforms a node. + */ + type Transformer<T extends Node> = (node: T) => T; + /** + * A function that accepts and possibly transforms a node. + */ + type Visitor = (node: Node) => VisitResult<Node>; + type VisitResult<T extends Node> = T | T[] | undefined; + interface Printer { + /** + * Print a node and its subtree as-is, without any emit transformations. + * @param hint A value indicating the purpose of a node. This is primarily used to + * distinguish between an `Identifier` used in an expression position, versus an + * `Identifier` used as an `IdentifierName` as part of a declaration. For most nodes you + * should just pass `Unspecified`. + * @param node The node to print. The node and its subtree are printed as-is, without any + * emit transformations. + * @param sourceFile A source file that provides context for the node. The source text of + * the file is used to emit the original source content for literals and identifiers, while + * the identifiers of the source file are used when generating unique names to avoid + * collisions. + */ + printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string; + /** + * Prints a list of nodes using the given format flags + */ + printList<T extends Node>(format: ListFormat, list: NodeArray<T>, sourceFile: SourceFile): string; + /** + * Prints a source file as-is, without any emit transformations. + */ + printFile(sourceFile: SourceFile): string; + /** + * Prints a bundle of source files as-is, without any emit transformations. + */ + printBundle(bundle: Bundle): string; + } + interface PrintHandlers { + /** + * A hook used by the Printer when generating unique names to avoid collisions with + * globally defined names that exist outside of the current source file. + */ + hasGlobalName?(name: string): boolean; + /** + * A hook used by the Printer to provide notifications prior to emitting a node. A + * compatible implementation **must** invoke `emitCallback` with the provided `hint` and + * `node` values. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @param emitCallback A callback that, when invoked, will emit the node. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * onEmitNode(hint, node, emitCallback) { + * // set up or track state prior to emitting the node... + * emitCallback(hint, node); + * // restore state after emitting the node... + * } + * }); + * ``` + */ + onEmitNode?(hint: EmitHint, node: Node | undefined, emitCallback: (hint: EmitHint, node: Node | undefined) => void): void; + /** + * A hook used by the Printer to perform just-in-time substitution of a node. This is + * primarily used by node transformations that need to substitute one node for another, + * such as replacing `myExportedVar` with `exports.myExportedVar`. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * substituteNode(hint, node) { + * // perform substitution if necessary... + * return node; + * } + * }); + * ``` + */ + substituteNode?(hint: EmitHint, node: Node): Node; + } + interface PrinterOptions { + removeComments?: boolean; + newLine?: NewLineKind; + omitTrailingSemicolon?: boolean; + noEmitHelpers?: boolean; + } + interface GetEffectiveTypeRootsHost { + directoryExists?(directoryName: string): boolean; + getCurrentDirectory?(): string; + } + interface TextSpan { + start: number; + length: number; + } + interface TextChangeRange { + span: TextSpan; + newLength: number; + } + interface SyntaxList extends Node { + _children: Node[]; + } + enum ListFormat { + None = 0, + SingleLine = 0, + MultiLine = 1, + PreserveLines = 2, + LinesMask = 3, + NotDelimited = 0, + BarDelimited = 4, + AmpersandDelimited = 8, + CommaDelimited = 16, + AsteriskDelimited = 32, + DelimitersMask = 60, + AllowTrailingComma = 64, + Indented = 128, + SpaceBetweenBraces = 256, + SpaceBetweenSiblings = 512, + Braces = 1024, + Parenthesis = 2048, + AngleBrackets = 4096, + SquareBrackets = 8192, + BracketsMask = 15360, + OptionalIfUndefined = 16384, + OptionalIfEmpty = 32768, + Optional = 49152, + PreferNewLine = 65536, + NoTrailingNewLine = 131072, + NoInterveningComments = 262144, + NoSpaceIfEmpty = 524288, + SingleElement = 1048576, + Modifiers = 262656, + HeritageClauses = 512, + SingleLineTypeLiteralMembers = 768, + MultiLineTypeLiteralMembers = 32897, + TupleTypeElements = 528, + UnionTypeConstituents = 516, + IntersectionTypeConstituents = 520, + ObjectBindingPatternElements = 525136, + ArrayBindingPatternElements = 524880, + ObjectLiteralExpressionProperties = 526226, + ArrayLiteralExpressionElements = 8914, + CommaListElements = 528, + CallExpressionArguments = 2576, + NewExpressionArguments = 18960, + TemplateExpressionSpans = 262144, + SingleLineBlockStatements = 768, + MultiLineBlockStatements = 129, + VariableDeclarationList = 528, + SingleLineFunctionBodyStatements = 768, + MultiLineFunctionBodyStatements = 1, + ClassHeritageClauses = 0, + ClassMembers = 129, + InterfaceMembers = 129, + EnumMembers = 145, + CaseBlockClauses = 129, + NamedImportsOrExportsElements = 525136, + JsxElementOrFragmentChildren = 262144, + JsxElementAttributes = 262656, + CaseOrDefaultClauseStatements = 163969, + HeritageClauseTypes = 528, + SourceFileStatements = 131073, + Decorators = 49153, + TypeArguments = 53776, + TypeParameters = 53776, + Parameters = 2576, + IndexSignatureParameters = 8848, + JSDocComment = 33 + } + interface UserPreferences { + readonly disableSuggestions?: boolean; + readonly quotePreference?: "double" | "single"; + readonly includeCompletionsForModuleExports?: boolean; + readonly includeCompletionsWithInsertText?: boolean; + readonly importModuleSpecifierPreference?: "relative" | "non-relative"; + /** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */ + readonly importModuleSpecifierEnding?: "minimal" | "index" | "js"; + readonly allowTextChangesInNewFiles?: boolean; + } + /** Represents a bigint literal value without requiring bigint support */ + interface PseudoBigInt { + negative: boolean; + base10Value: string; + } +} +declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; +declare function clearTimeout(handle: any): void; +declare namespace ts { + enum FileWatcherEventKind { + Created = 0, + Changed = 1, + Deleted = 2 + } + type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void; + type DirectoryWatcherCallback = (fileName: string) => void; + interface System { + args: string[]; + newLine: string; + useCaseSensitiveFileNames: boolean; + write(s: string): void; + writeOutputIsTTY?(): boolean; + readFile(path: string, encoding?: string): string | undefined; + getFileSize?(path: string): number; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + /** + * @pollingInterval - this parameter is used in polling-based watchers and ignored in watchers that + * use native OS file watching + */ + watchFile?(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + resolvePath(path: string): string; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + getExecutingFilePath(): string; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + getModifiedTime?(path: string): Date | undefined; + setModifiedTime?(path: string, time: Date): void; + deleteFile?(path: string): void; + /** + * A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) + */ + createHash?(data: string): string; + /** This must be cryptographically secure. Only implement this method using `crypto.createHash("sha256")`. */ + createSHA256Hash?(data: string): string; + getMemoryUsage?(): number; + exit(exitCode?: number): void; + realpath?(path: string): string; + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + clearTimeout?(timeoutId: any): void; + clearScreen?(): void; + base64decode?(input: string): string; + base64encode?(input: string): string; + } + interface FileWatcher { + close(): void; + } + function getNodeMajorVersion(): number | undefined; + let sys: System; +} +declare namespace ts { + type ErrorCallback = (message: DiagnosticMessage, length: number) => void; + interface Scanner { + getStartPos(): number; + getToken(): SyntaxKind; + getTextPos(): number; + getTokenPos(): number; + getTokenText(): string; + getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; + hasPrecedingLineBreak(): boolean; + isIdentifier(): boolean; + isReservedWord(): boolean; + isUnterminated(): boolean; + reScanGreaterToken(): SyntaxKind; + reScanSlashToken(): SyntaxKind; + reScanTemplateToken(): SyntaxKind; + scanJsxIdentifier(): SyntaxKind; + scanJsxAttributeValue(): SyntaxKind; + reScanJsxToken(): JsxTokenSyntaxKind; + scanJsxToken(): JsxTokenSyntaxKind; + scanJSDocToken(): JsDocSyntaxKind; + scan(): SyntaxKind; + getText(): string; + setText(text: string | undefined, start?: number, length?: number): void; + setOnError(onError: ErrorCallback | undefined): void; + setScriptTarget(scriptTarget: ScriptTarget): void; + setLanguageVariant(variant: LanguageVariant): void; + setTextPos(textPos: number): void; + lookAhead<T>(callback: () => T): T; + scanRange<T>(start: number, length: number, callback: () => T): T; + tryScan<T>(callback: () => T): T; + } + function tokenToString(t: SyntaxKind): string | undefined; + function getPositionOfLineAndCharacter(sourceFile: SourceFileLike, line: number, character: number): number; + function getLineAndCharacterOfPosition(sourceFile: SourceFileLike, position: number): LineAndCharacter; + function isWhiteSpaceLike(ch: number): boolean; + /** Does not include line breaks. For that, see isWhiteSpaceLike. */ + function isWhiteSpaceSingleLine(ch: number): boolean; + function isLineBreak(ch: number): boolean; + function couldStartTrivia(text: string, pos: number): boolean; + function forEachLeadingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function forEachTrailingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function reduceEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function reduceEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function getLeadingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + function getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + /** Optionally, get the shebang */ + function getShebang(text: string): string | undefined; + function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner; +} +declare namespace ts { + function isExternalModuleNameRelative(moduleName: string): boolean; + function sortAndDeduplicateDiagnostics<T extends Diagnostic>(diagnostics: ReadonlyArray<T>): SortedReadonlyArray<T>; +} +declare namespace ts { + function getDefaultLibFileName(options: CompilerOptions): string; + function textSpanEnd(span: TextSpan): number; + function textSpanIsEmpty(span: TextSpan): boolean; + function textSpanContainsPosition(span: TextSpan, position: number): boolean; + function textSpanContainsTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlapsWith(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function textSpanIntersectsWithTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean; + function decodedTextSpanIntersectsWith(start1: number, length1: number, start2: number, length2: number): boolean; + function textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean; + function textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function createTextSpan(start: number, length: number): TextSpan; + function createTextSpanFromBounds(start: number, end: number): TextSpan; + function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; + function textChangeRangeIsUnchanged(range: TextChangeRange): boolean; + function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; + let unchangedTextChangeRange: TextChangeRange; + /** + * Called to merge all the changes that occurred across several versions of a script snapshot + * into a single change. i.e. if a user keeps making successive edits to a script we will + * have a text change from V1 to V2, V2 to V3, ..., Vn. + * + * This function will then merge those changes into a single change range valid between V1 and + * Vn. + */ + function collapseTextChangeRangesAcrossMultipleVersions(changes: ReadonlyArray<TextChangeRange>): TextChangeRange; + function getTypeParameterOwner(d: Declaration): Declaration | undefined; + type ParameterPropertyDeclaration = ParameterDeclaration & { + parent: ConstructorDeclaration; + name: Identifier; + }; + function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration; + function isEmptyBindingPattern(node: BindingName): node is BindingPattern; + function isEmptyBindingElement(node: BindingElement): boolean; + function walkUpBindingElementsAndPatterns(binding: BindingElement): VariableDeclaration | ParameterDeclaration; + function getCombinedModifierFlags(node: Declaration): ModifierFlags; + function getCombinedNodeFlags(node: Node): NodeFlags; + /** + * Checks to see if the locale is in the appropriate format, + * and if it is, attempts to set the appropriate language. + */ + function validateLocaleAndSetLanguage(locale: string, sys: { + getExecutingFilePath(): string; + resolvePath(path: string): string; + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + }, errors?: Push<Diagnostic>): void; + function getOriginalNode(node: Node): Node; + function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T; + function getOriginalNode(node: Node | undefined): Node | undefined; + function getOriginalNode<T extends Node>(node: Node | undefined, nodeTest: (node: Node | undefined) => node is T): T | undefined; + /** + * Gets a value indicating whether a node originated in the parse tree. + * + * @param node The node to test. + */ + function isParseTreeNode(node: Node): boolean; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode(node: Node): Node; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @param nodeTest A callback used to ensure the correct type of parse tree node is returned. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode<T extends Node>(node: Node | undefined, nodeTest?: (node: Node) => node is T): T | undefined; + /** Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' */ + function escapeLeadingUnderscores(identifier: string): __String; + /** + * Remove extra underscore from escaped identifier text content. + * + * @param identifier The escaped identifier text. + * @returns The unescaped identifier text. + */ + function unescapeLeadingUnderscores(identifier: __String): string; + function idText(identifier: Identifier): string; + function symbolName(symbol: Symbol): string; + function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | undefined; + function getNameOfDeclaration(declaration: Declaration | Expression): DeclarationName | undefined; + /** + * Gets the JSDoc parameter tags for the node if present. + * + * @remarks Returns any JSDoc param tag whose name matches the provided + * parameter, whether a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the param + * tag on the containing function expression would be first. + * + * For binding patterns, parameter tags are matched by position. + */ + function getJSDocParameterTags(param: ParameterDeclaration): ReadonlyArray<JSDocParameterTag>; + /** + * Gets the JSDoc type parameter tags for the node if present. + * + * @remarks Returns any JSDoc template tag whose names match the provided + * parameter, whether a template tag on a containing function + * expression, or a template tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the template + * tag on the containing function expression would be first. + */ + function getJSDocTypeParameterTags(param: TypeParameterDeclaration): ReadonlyArray<JSDocTemplateTag>; + /** + * Return true if the node has JSDoc parameter tags. + * + * @remarks Includes parameter tags that are not directly on the node, + * for example on a variable declaration whose initializer is a function expression. + */ + function hasJSDocParameterTags(node: FunctionLikeDeclaration | SignatureDeclaration): boolean; + /** Gets the JSDoc augments tag for the node if present */ + function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined; + /** Gets the JSDoc class tag for the node if present */ + function getJSDocClassTag(node: Node): JSDocClassTag | undefined; + /** Gets the JSDoc enum tag for the node if present */ + function getJSDocEnumTag(node: Node): JSDocEnumTag | undefined; + /** Gets the JSDoc this tag for the node if present */ + function getJSDocThisTag(node: Node): JSDocThisTag | undefined; + /** Gets the JSDoc return tag for the node if present */ + function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined; + /** Gets the JSDoc template tag for the node if present */ + function getJSDocTemplateTag(node: Node): JSDocTemplateTag | undefined; + /** Gets the JSDoc type tag for the node if present and valid */ + function getJSDocTypeTag(node: Node): JSDocTypeTag | undefined; + /** + * Gets the type node for the node if provided via JSDoc. + * + * @remarks The search includes any JSDoc param tag that relates + * to the provided parameter, for example a type tag on the + * parameter itself, or a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are examined first, so in the previous example, the type + * tag directly on the node would be returned. + */ + function getJSDocType(node: Node): TypeNode | undefined; + /** + * Gets the return type node for the node if provided via JSDoc return tag or type tag. + * + * @remarks `getJSDocReturnTag` just gets the whole JSDoc tag. This function + * gets the type from inside the braces, after the fat arrow, etc. + */ + function getJSDocReturnType(node: Node): TypeNode | undefined; + /** Get all JSDoc tags related to a node, including those on parent nodes. */ + function getJSDocTags(node: Node): ReadonlyArray<JSDocTag>; + /** Gets all JSDoc tags of a specified kind, or undefined if not present. */ + function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): ReadonlyArray<JSDocTag>; + /** + * Gets the effective type parameters. If the node was parsed in a + * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + */ + function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): ReadonlyArray<TypeParameterDeclaration>; + function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined; +} +declare namespace ts { + function isNumericLiteral(node: Node): node is NumericLiteral; + function isBigIntLiteral(node: Node): node is BigIntLiteral; + function isStringLiteral(node: Node): node is StringLiteral; + function isJsxText(node: Node): node is JsxText; + function isRegularExpressionLiteral(node: Node): node is RegularExpressionLiteral; + function isNoSubstitutionTemplateLiteral(node: Node): node is NoSubstitutionTemplateLiteral; + function isTemplateHead(node: Node): node is TemplateHead; + function isTemplateMiddle(node: Node): node is TemplateMiddle; + function isTemplateTail(node: Node): node is TemplateTail; + function isIdentifier(node: Node): node is Identifier; + function isQualifiedName(node: Node): node is QualifiedName; + function isComputedPropertyName(node: Node): node is ComputedPropertyName; + function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration; + function isParameter(node: Node): node is ParameterDeclaration; + function isDecorator(node: Node): node is Decorator; + function isPropertySignature(node: Node): node is PropertySignature; + function isPropertyDeclaration(node: Node): node is PropertyDeclaration; + function isMethodSignature(node: Node): node is MethodSignature; + function isMethodDeclaration(node: Node): node is MethodDeclaration; + function isConstructorDeclaration(node: Node): node is ConstructorDeclaration; + function isGetAccessorDeclaration(node: Node): node is GetAccessorDeclaration; + function isSetAccessorDeclaration(node: Node): node is SetAccessorDeclaration; + function isCallSignatureDeclaration(node: Node): node is CallSignatureDeclaration; + function isConstructSignatureDeclaration(node: Node): node is ConstructSignatureDeclaration; + function isIndexSignatureDeclaration(node: Node): node is IndexSignatureDeclaration; + function isTypePredicateNode(node: Node): node is TypePredicateNode; + function isTypeReferenceNode(node: Node): node is TypeReferenceNode; + function isFunctionTypeNode(node: Node): node is FunctionTypeNode; + function isConstructorTypeNode(node: Node): node is ConstructorTypeNode; + function isTypeQueryNode(node: Node): node is TypeQueryNode; + function isTypeLiteralNode(node: Node): node is TypeLiteralNode; + function isArrayTypeNode(node: Node): node is ArrayTypeNode; + function isTupleTypeNode(node: Node): node is TupleTypeNode; + function isUnionTypeNode(node: Node): node is UnionTypeNode; + function isIntersectionTypeNode(node: Node): node is IntersectionTypeNode; + function isConditionalTypeNode(node: Node): node is ConditionalTypeNode; + function isInferTypeNode(node: Node): node is InferTypeNode; + function isParenthesizedTypeNode(node: Node): node is ParenthesizedTypeNode; + function isThisTypeNode(node: Node): node is ThisTypeNode; + function isTypeOperatorNode(node: Node): node is TypeOperatorNode; + function isIndexedAccessTypeNode(node: Node): node is IndexedAccessTypeNode; + function isMappedTypeNode(node: Node): node is MappedTypeNode; + function isLiteralTypeNode(node: Node): node is LiteralTypeNode; + function isImportTypeNode(node: Node): node is ImportTypeNode; + function isObjectBindingPattern(node: Node): node is ObjectBindingPattern; + function isArrayBindingPattern(node: Node): node is ArrayBindingPattern; + function isBindingElement(node: Node): node is BindingElement; + function isArrayLiteralExpression(node: Node): node is ArrayLiteralExpression; + function isObjectLiteralExpression(node: Node): node is ObjectLiteralExpression; + function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression; + function isElementAccessExpression(node: Node): node is ElementAccessExpression; + function isCallExpression(node: Node): node is CallExpression; + function isNewExpression(node: Node): node is NewExpression; + function isTaggedTemplateExpression(node: Node): node is TaggedTemplateExpression; + function isTypeAssertion(node: Node): node is TypeAssertion; + function isParenthesizedExpression(node: Node): node is ParenthesizedExpression; + function skipPartiallyEmittedExpressions(node: Expression): Expression; + function skipPartiallyEmittedExpressions(node: Node): Node; + function isFunctionExpression(node: Node): node is FunctionExpression; + function isArrowFunction(node: Node): node is ArrowFunction; + function isDeleteExpression(node: Node): node is DeleteExpression; + function isTypeOfExpression(node: Node): node is TypeOfExpression; + function isVoidExpression(node: Node): node is VoidExpression; + function isAwaitExpression(node: Node): node is AwaitExpression; + function isPrefixUnaryExpression(node: Node): node is PrefixUnaryExpression; + function isPostfixUnaryExpression(node: Node): node is PostfixUnaryExpression; + function isBinaryExpression(node: Node): node is BinaryExpression; + function isConditionalExpression(node: Node): node is ConditionalExpression; + function isTemplateExpression(node: Node): node is TemplateExpression; + function isYieldExpression(node: Node): node is YieldExpression; + function isSpreadElement(node: Node): node is SpreadElement; + function isClassExpression(node: Node): node is ClassExpression; + function isOmittedExpression(node: Node): node is OmittedExpression; + function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments; + function isAsExpression(node: Node): node is AsExpression; + function isNonNullExpression(node: Node): node is NonNullExpression; + function isMetaProperty(node: Node): node is MetaProperty; + function isTemplateSpan(node: Node): node is TemplateSpan; + function isSemicolonClassElement(node: Node): node is SemicolonClassElement; + function isBlock(node: Node): node is Block; + function isVariableStatement(node: Node): node is VariableStatement; + function isEmptyStatement(node: Node): node is EmptyStatement; + function isExpressionStatement(node: Node): node is ExpressionStatement; + function isIfStatement(node: Node): node is IfStatement; + function isDoStatement(node: Node): node is DoStatement; + function isWhileStatement(node: Node): node is WhileStatement; + function isForStatement(node: Node): node is ForStatement; + function isForInStatement(node: Node): node is ForInStatement; + function isForOfStatement(node: Node): node is ForOfStatement; + function isContinueStatement(node: Node): node is ContinueStatement; + function isBreakStatement(node: Node): node is BreakStatement; + function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement; + function isReturnStatement(node: Node): node is ReturnStatement; + function isWithStatement(node: Node): node is WithStatement; + function isSwitchStatement(node: Node): node is SwitchStatement; + function isLabeledStatement(node: Node): node is LabeledStatement; + function isThrowStatement(node: Node): node is ThrowStatement; + function isTryStatement(node: Node): node is TryStatement; + function isDebuggerStatement(node: Node): node is DebuggerStatement; + function isVariableDeclaration(node: Node): node is VariableDeclaration; + function isVariableDeclarationList(node: Node): node is VariableDeclarationList; + function isFunctionDeclaration(node: Node): node is FunctionDeclaration; + function isClassDeclaration(node: Node): node is ClassDeclaration; + function isInterfaceDeclaration(node: Node): node is InterfaceDeclaration; + function isTypeAliasDeclaration(node: Node): node is TypeAliasDeclaration; + function isEnumDeclaration(node: Node): node is EnumDeclaration; + function isModuleDeclaration(node: Node): node is ModuleDeclaration; + function isModuleBlock(node: Node): node is ModuleBlock; + function isCaseBlock(node: Node): node is CaseBlock; + function isNamespaceExportDeclaration(node: Node): node is NamespaceExportDeclaration; + function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration; + function isImportDeclaration(node: Node): node is ImportDeclaration; + function isImportClause(node: Node): node is ImportClause; + function isNamespaceImport(node: Node): node is NamespaceImport; + function isNamedImports(node: Node): node is NamedImports; + function isImportSpecifier(node: Node): node is ImportSpecifier; + function isExportAssignment(node: Node): node is ExportAssignment; + function isExportDeclaration(node: Node): node is ExportDeclaration; + function isNamedExports(node: Node): node is NamedExports; + function isExportSpecifier(node: Node): node is ExportSpecifier; + function isMissingDeclaration(node: Node): node is MissingDeclaration; + function isExternalModuleReference(node: Node): node is ExternalModuleReference; + function isJsxElement(node: Node): node is JsxElement; + function isJsxSelfClosingElement(node: Node): node is JsxSelfClosingElement; + function isJsxOpeningElement(node: Node): node is JsxOpeningElement; + function isJsxClosingElement(node: Node): node is JsxClosingElement; + function isJsxFragment(node: Node): node is JsxFragment; + function isJsxOpeningFragment(node: Node): node is JsxOpeningFragment; + function isJsxClosingFragment(node: Node): node is JsxClosingFragment; + function isJsxAttribute(node: Node): node is JsxAttribute; + function isJsxAttributes(node: Node): node is JsxAttributes; + function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute; + function isJsxExpression(node: Node): node is JsxExpression; + function isCaseClause(node: Node): node is CaseClause; + function isDefaultClause(node: Node): node is DefaultClause; + function isHeritageClause(node: Node): node is HeritageClause; + function isCatchClause(node: Node): node is CatchClause; + function isPropertyAssignment(node: Node): node is PropertyAssignment; + function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment; + function isSpreadAssignment(node: Node): node is SpreadAssignment; + function isEnumMember(node: Node): node is EnumMember; + function isSourceFile(node: Node): node is SourceFile; + function isBundle(node: Node): node is Bundle; + function isUnparsedSource(node: Node): node is UnparsedSource; + function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; + function isJSDocAllType(node: JSDocAllType): node is JSDocAllType; + function isJSDocUnknownType(node: Node): node is JSDocUnknownType; + function isJSDocNullableType(node: Node): node is JSDocNullableType; + function isJSDocNonNullableType(node: Node): node is JSDocNonNullableType; + function isJSDocOptionalType(node: Node): node is JSDocOptionalType; + function isJSDocFunctionType(node: Node): node is JSDocFunctionType; + function isJSDocVariadicType(node: Node): node is JSDocVariadicType; + function isJSDoc(node: Node): node is JSDoc; + function isJSDocAugmentsTag(node: Node): node is JSDocAugmentsTag; + function isJSDocClassTag(node: Node): node is JSDocClassTag; + function isJSDocEnumTag(node: Node): node is JSDocEnumTag; + function isJSDocThisTag(node: Node): node is JSDocThisTag; + function isJSDocParameterTag(node: Node): node is JSDocParameterTag; + function isJSDocReturnTag(node: Node): node is JSDocReturnTag; + function isJSDocTypeTag(node: Node): node is JSDocTypeTag; + function isJSDocTemplateTag(node: Node): node is JSDocTemplateTag; + function isJSDocTypedefTag(node: Node): node is JSDocTypedefTag; + function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag; + function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag; + function isJSDocTypeLiteral(node: Node): node is JSDocTypeLiteral; + function isJSDocCallbackTag(node: Node): node is JSDocCallbackTag; + function isJSDocSignature(node: Node): node is JSDocSignature; +} +declare namespace ts { + /** + * True if node is of some token syntax kind. + * For example, this is true for an IfKeyword but not for an IfStatement. + * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail. + */ + function isToken(n: Node): boolean; + function isLiteralExpression(node: Node): node is LiteralExpression; + type TemplateLiteralToken = NoSubstitutionTemplateLiteral | TemplateHead | TemplateMiddle | TemplateTail; + function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken; + function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail; + function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier; + function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken; + function isModifier(node: Node): node is Modifier; + function isEntityName(node: Node): node is EntityName; + function isPropertyName(node: Node): node is PropertyName; + function isBindingName(node: Node): node is BindingName; + function isFunctionLike(node: Node): node is SignatureDeclaration; + function isClassElement(node: Node): node is ClassElement; + function isClassLike(node: Node): node is ClassLikeDeclaration; + function isAccessor(node: Node): node is AccessorDeclaration; + function isTypeElement(node: Node): node is TypeElement; + function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement; + function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike; + /** + * Node test that determines whether a node is a valid type node. + * This differs from the `isPartOfTypeNode` function which determines whether a node is *part* + * of a TypeNode. + */ + function isTypeNode(node: Node): node is TypeNode; + function isFunctionOrConstructorTypeNode(node: Node): node is FunctionTypeNode | ConstructorTypeNode; + function isPropertyAccessOrQualifiedName(node: Node): node is PropertyAccessExpression | QualifiedName; + function isCallLikeExpression(node: Node): node is CallLikeExpression; + function isCallOrNewExpression(node: Node): node is CallExpression | NewExpression; + function isTemplateLiteral(node: Node): node is TemplateLiteral; + function isAssertionExpression(node: Node): node is AssertionExpression; + function isIterationStatement(node: Node, lookInLabeledStatements: false): node is IterationStatement; + function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement | LabeledStatement; + function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement; + function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause; + /** True if node is of a kind that may contain comment text. */ + function isJSDocCommentContainingNode(node: Node): boolean; + function isSetAccessor(node: Node): node is SetAccessorDeclaration; + function isGetAccessor(node: Node): node is GetAccessorDeclaration; + function isObjectLiteralElement(node: Node): node is ObjectLiteralElement; + function isStringLiteralLike(node: Node): node is StringLiteralLike; +} +declare namespace ts { + function createNode(kind: SyntaxKind, pos?: number, end?: number): Node; + /** + * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes + * stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, + * embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns + * a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned. + * + * @param node a given node to visit its children + * @param cbNode a callback to be invoked for all child nodes + * @param cbNodes a callback to be invoked for embedded array + * + * @remarks `forEachChild` must visit the children of a node in the order + * that they appear in the source code. The language service depends on this property to locate nodes by position. + */ + function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + function createSourceFile(fileName: string, sourceText: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind): SourceFile; + function parseIsolatedEntityName(text: string, languageVersion: ScriptTarget): EntityName | undefined; + /** + * Parse json text into SyntaxTree and return node and parse errors if any + * @param fileName + * @param sourceText + */ + function parseJsonText(fileName: string, sourceText: string): JsonSourceFile; + function isExternalModule(file: SourceFile): boolean; + function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile; +} +declare namespace ts { + function parseCommandLine(commandLine: ReadonlyArray<string>, readFile?: (path: string) => string | undefined): ParsedCommandLine; + type DiagnosticReporter = (diagnostic: Diagnostic) => void; + /** + * Reports config file diagnostics + */ + interface ConfigFileDiagnosticsReporter { + /** + * Reports unrecoverable error when parsing config file + */ + onUnRecoverableConfigFileDiagnostic: DiagnosticReporter; + } + /** + * Interface extending ParseConfigHost to support ParseConfigFile that reads config file and reports errors + */ + interface ParseConfigFileHost extends ParseConfigHost, ConfigFileDiagnosticsReporter { + getCurrentDirectory(): string; + } + /** + * Reads the config file, reports errors if any and exits if the config file cannot be found + */ + function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readConfigFile(fileName: string, readFile: (path: string) => string | undefined): { + config?: any; + error?: Diagnostic; + }; + /** + * Parse the text of the tsconfig.json file + * @param fileName The path to the config file + * @param jsonText The text of the config file + */ + function parseConfigFileTextToJson(fileName: string, jsonText: string): { + config?: any; + error?: Diagnostic; + }; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readJsonConfigFile(fileName: string, readFile: (path: string) => string | undefined): TsConfigSourceFile; + /** + * Convert the json syntax tree into the json value + */ + function convertToObject(sourceFile: JsonSourceFile, errors: Push<Diagnostic>): any; + /** + * Parse the contents of a config file (tsconfig.json). + * @param json The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + /** + * Parse the contents of a config file (tsconfig.json). + * @param jsonNode The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: CompilerOptions; + errors: Diagnostic[]; + }; + function convertTypeAcquisitionFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: TypeAcquisition; + errors: Diagnostic[]; + }; +} +declare namespace ts { + function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined; + /** + * @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown. + * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups + * is assumed to be the same as root directory of the project. + */ + function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations; + /** + * Given a set of options, returns the set of type directive names + * that should be included for this program automatically. + * This list could either come from the config file, + * or from enumerating the types root + initial secondary types lookup location. + * More type directives might appear in the program later as a result of loading actual source files; + * this list is only the set of defaults that are implicitly included. + */ + function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; + /** + * Cached module resolutions per containing directory. + * This assumes that any module id will have the same resolution for sibling files located in the same folder. + */ + interface ModuleResolutionCache extends NonRelativeModuleNameResolutionCache { + getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<ResolvedModuleWithFailedLookupLocations>; + } + /** + * Stored map from non-relative module name to a table: directory -> result of module lookup in this directory + * We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive. + */ + interface NonRelativeModuleNameResolutionCache { + getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache; + } + interface PerModuleNameCache { + get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined; + set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void; + } + function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): ModuleResolutionCache; + function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined; + function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; +} +declare namespace ts { + function createNodeArray<T extends Node>(elements?: ReadonlyArray<T>, hasTrailingComma?: boolean): NodeArray<T>; + /** If a node is passed, creates a string literal whose source text is read from a source node during emit. */ + function createLiteral(value: string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier): StringLiteral; + function createLiteral(value: number | PseudoBigInt): NumericLiteral; + function createLiteral(value: boolean): BooleanLiteral; + function createLiteral(value: string | number | PseudoBigInt | boolean): PrimaryExpression; + function createNumericLiteral(value: string): NumericLiteral; + function createBigIntLiteral(value: string): BigIntLiteral; + function createStringLiteral(text: string): StringLiteral; + function createRegularExpressionLiteral(text: string): RegularExpressionLiteral; + function createIdentifier(text: string): Identifier; + function updateIdentifier(node: Identifier): Identifier; + /** Create a unique temporary variable. */ + function createTempVariable(recordTempVariable: ((node: Identifier) => void) | undefined): Identifier; + /** Create a unique temporary variable for use in a loop. */ + function createLoopVariable(): Identifier; + /** Create a unique name based on the supplied text. */ + function createUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. */ + function createOptimisticUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. This does not consider names injected by the transformer. */ + function createFileLevelUniqueName(text: string): Identifier; + /** Create a unique name generated for a node. */ + function getGeneratedNameForNode(node: Node | undefined): Identifier; + function createToken<TKind extends SyntaxKind>(token: TKind): Token<TKind>; + function createSuper(): SuperExpression; + function createThis(): ThisExpression & Token<SyntaxKind.ThisKeyword>; + function createNull(): NullLiteral & Token<SyntaxKind.NullKeyword>; + function createTrue(): BooleanLiteral & Token<SyntaxKind.TrueKeyword>; + function createFalse(): BooleanLiteral & Token<SyntaxKind.FalseKeyword>; + function createModifier<T extends Modifier["kind"]>(kind: T): Token<T>; + function createModifiersFromModifierFlags(flags: ModifierFlags): Modifier[]; + function createQualifiedName(left: EntityName, right: string | Identifier): QualifiedName; + function updateQualifiedName(node: QualifiedName, left: EntityName, right: Identifier): QualifiedName; + function createComputedPropertyName(expression: Expression): ComputedPropertyName; + function updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName; + function createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration; + function updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration; + function createParameter(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration; + function updateParameter(node: ParameterDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration; + function createDecorator(expression: Expression): Decorator; + function updateDecorator(node: Decorator, expression: Expression): Decorator; + function createPropertySignature(modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function updatePropertySignature(node: PropertySignature, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function createProperty(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function updateProperty(node: PropertyDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function createMethodSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function updateMethodSignature(node: MethodSignature, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined, name: PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function createMethod(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function updateMethod(node: MethodDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function createConstructor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function updateConstructor(node: ConstructorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function createGetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function updateGetAccessor(node: GetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function createSetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function updateSetAccessor(node: SetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function createCallSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function createConstructSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function createIndexSignature(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; + function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode): TypePredicateNode; + function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray<TypeNode> | undefined): TypeReferenceNode; + function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray<TypeNode> | undefined): TypeReferenceNode; + function createFunctionTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function updateFunctionTypeNode(node: FunctionTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function createConstructorTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function createTypeQueryNode(exprName: EntityName): TypeQueryNode; + function updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName): TypeQueryNode; + function createTypeLiteralNode(members: ReadonlyArray<TypeElement> | undefined): TypeLiteralNode; + function updateTypeLiteralNode(node: TypeLiteralNode, members: NodeArray<TypeElement>): TypeLiteralNode; + function createArrayTypeNode(elementType: TypeNode): ArrayTypeNode; + function updateArrayTypeNode(node: ArrayTypeNode, elementType: TypeNode): ArrayTypeNode; + function createTupleTypeNode(elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function updateTupleTypeNode(node: TupleTypeNode, elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function createOptionalTypeNode(type: TypeNode): OptionalTypeNode; + function updateOptionalTypeNode(node: OptionalTypeNode, type: TypeNode): OptionalTypeNode; + function createRestTypeNode(type: TypeNode): RestTypeNode; + function updateRestTypeNode(node: RestTypeNode, type: TypeNode): RestTypeNode; + function createUnionTypeNode(types: ReadonlyArray<TypeNode>): UnionTypeNode; + function updateUnionTypeNode(node: UnionTypeNode, types: NodeArray<TypeNode>): UnionTypeNode; + function createIntersectionTypeNode(types: ReadonlyArray<TypeNode>): IntersectionTypeNode; + function updateIntersectionTypeNode(node: IntersectionTypeNode, types: NodeArray<TypeNode>): IntersectionTypeNode; + function createUnionOrIntersectionTypeNode(kind: SyntaxKind.UnionType | SyntaxKind.IntersectionType, types: ReadonlyArray<TypeNode>): UnionOrIntersectionTypeNode; + function createConditionalTypeNode(checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode; + function updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode; + function createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function createParenthesizedType(type: TypeNode): ParenthesizedTypeNode; + function updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode; + function createThisTypeNode(): ThisTypeNode; + function createTypeOperatorNode(type: TypeNode): TypeOperatorNode; + function createTypeOperatorNode(operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword, type: TypeNode): TypeOperatorNode; + function updateTypeOperatorNode(node: TypeOperatorNode, type: TypeNode): TypeOperatorNode; + function createIndexedAccessTypeNode(objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function updateIndexedAccessTypeNode(node: IndexedAccessTypeNode, objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function createMappedTypeNode(readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function updateMappedTypeNode(node: MappedTypeNode, readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function createLiteralTypeNode(literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function updateLiteralTypeNode(node: LiteralTypeNode, literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function createObjectBindingPattern(elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function updateObjectBindingPattern(node: ObjectBindingPattern, elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function createArrayBindingPattern(elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function updateArrayBindingPattern(node: ArrayBindingPattern, elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function createBindingElement(dotDotDotToken: DotDotDotToken | undefined, propertyName: string | PropertyName | undefined, name: string | BindingName, initializer?: Expression): BindingElement; + function updateBindingElement(node: BindingElement, dotDotDotToken: DotDotDotToken | undefined, propertyName: PropertyName | undefined, name: BindingName, initializer: Expression | undefined): BindingElement; + function createArrayLiteral(elements?: ReadonlyArray<Expression>, multiLine?: boolean): ArrayLiteralExpression; + function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression; + function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression; + function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression; + function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression; + function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression; + function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression; + function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression; + function createCall(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): CallExpression; + function updateCall(node: CallExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression>): CallExpression; + function createNew(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + function updateNew(node: NewExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + /** @deprecated */ function createTaggedTemplate(tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function createTaggedTemplate(tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + /** @deprecated */ function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + function createTypeAssertion(type: TypeNode, expression: Expression): TypeAssertion; + function updateTypeAssertion(node: TypeAssertion, type: TypeNode, expression: Expression): TypeAssertion; + function createParen(expression: Expression): ParenthesizedExpression; + function updateParen(node: ParenthesizedExpression, expression: Expression): ParenthesizedExpression; + function createFunctionExpression(modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration> | undefined, type: TypeNode | undefined, body: Block): FunctionExpression; + function updateFunctionExpression(node: FunctionExpression, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block): FunctionExpression; + function createArrowFunction(modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: EqualsGreaterThanToken | undefined, body: ConciseBody): ArrowFunction; + function updateArrowFunction(node: ArrowFunction, modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: Token<SyntaxKind.EqualsGreaterThanToken>, body: ConciseBody): ArrowFunction; + function createDelete(expression: Expression): DeleteExpression; + function updateDelete(node: DeleteExpression, expression: Expression): DeleteExpression; + function createTypeOf(expression: Expression): TypeOfExpression; + function updateTypeOf(node: TypeOfExpression, expression: Expression): TypeOfExpression; + function createVoid(expression: Expression): VoidExpression; + function updateVoid(node: VoidExpression, expression: Expression): VoidExpression; + function createAwait(expression: Expression): AwaitExpression; + function updateAwait(node: AwaitExpression, expression: Expression): AwaitExpression; + function createPrefix(operator: PrefixUnaryOperator, operand: Expression): PrefixUnaryExpression; + function updatePrefix(node: PrefixUnaryExpression, operand: Expression): PrefixUnaryExpression; + function createPostfix(operand: Expression, operator: PostfixUnaryOperator): PostfixUnaryExpression; + function updatePostfix(node: PostfixUnaryExpression, operand: Expression): PostfixUnaryExpression; + function createBinary(left: Expression, operator: BinaryOperator | BinaryOperatorToken, right: Expression): BinaryExpression; + function updateBinary(node: BinaryExpression, left: Expression, right: Expression, operator?: BinaryOperator | BinaryOperatorToken): BinaryExpression; + /** @deprecated */ function createConditional(condition: Expression, whenTrue: Expression, whenFalse: Expression): ConditionalExpression; + function createConditional(condition: Expression, questionToken: QuestionToken, whenTrue: Expression, colonToken: ColonToken, whenFalse: Expression): ConditionalExpression; + function updateConditional(node: ConditionalExpression, condition: Expression, questionToken: Token<SyntaxKind.QuestionToken>, whenTrue: Expression, colonToken: Token<SyntaxKind.ColonToken>, whenFalse: Expression): ConditionalExpression; + function createTemplateExpression(head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function createTemplateHead(text: string): TemplateHead; + function createTemplateMiddle(text: string): TemplateMiddle; + function createTemplateTail(text: string): TemplateTail; + function createNoSubstitutionTemplateLiteral(text: string): NoSubstitutionTemplateLiteral; + function createYield(expression?: Expression): YieldExpression; + function createYield(asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function updateYield(node: YieldExpression, asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function createSpread(expression: Expression): SpreadElement; + function updateSpread(node: SpreadElement, expression: Expression): SpreadElement; + function createClassExpression(modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function updateClassExpression(node: ClassExpression, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function createOmittedExpression(): OmittedExpression; + function createExpressionWithTypeArguments(typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function updateExpressionWithTypeArguments(node: ExpressionWithTypeArguments, typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function createAsExpression(expression: Expression, type: TypeNode): AsExpression; + function updateAsExpression(node: AsExpression, expression: Expression, type: TypeNode): AsExpression; + function createNonNullExpression(expression: Expression): NonNullExpression; + function updateNonNullExpression(node: NonNullExpression, expression: Expression): NonNullExpression; + function createMetaProperty(keywordToken: MetaProperty["keywordToken"], name: Identifier): MetaProperty; + function updateMetaProperty(node: MetaProperty, name: Identifier): MetaProperty; + function createTemplateSpan(expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function updateTemplateSpan(node: TemplateSpan, expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function createSemicolonClassElement(): SemicolonClassElement; + function createBlock(statements: ReadonlyArray<Statement>, multiLine?: boolean): Block; + function updateBlock(node: Block, statements: ReadonlyArray<Statement>): Block; + function createVariableStatement(modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList | ReadonlyArray<VariableDeclaration>): VariableStatement; + function updateVariableStatement(node: VariableStatement, modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList): VariableStatement; + function createEmptyStatement(): EmptyStatement; + function createExpressionStatement(expression: Expression): ExpressionStatement; + function updateExpressionStatement(node: ExpressionStatement, expression: Expression): ExpressionStatement; + /** @deprecated Use `createExpressionStatement` instead. */ + const createStatement: typeof createExpressionStatement; + /** @deprecated Use `updateExpressionStatement` instead. */ + const updateStatement: typeof updateExpressionStatement; + function createIf(expression: Expression, thenStatement: Statement, elseStatement?: Statement): IfStatement; + function updateIf(node: IfStatement, expression: Expression, thenStatement: Statement, elseStatement: Statement | undefined): IfStatement; + function createDo(statement: Statement, expression: Expression): DoStatement; + function updateDo(node: DoStatement, statement: Statement, expression: Expression): DoStatement; + function createWhile(expression: Expression, statement: Statement): WhileStatement; + function updateWhile(node: WhileStatement, expression: Expression, statement: Statement): WhileStatement; + function createFor(initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function updateFor(node: ForStatement, initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function createForIn(initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function updateForIn(node: ForInStatement, initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function createForOf(awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function updateForOf(node: ForOfStatement, awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function createContinue(label?: string | Identifier): ContinueStatement; + function updateContinue(node: ContinueStatement, label: Identifier | undefined): ContinueStatement; + function createBreak(label?: string | Identifier): BreakStatement; + function updateBreak(node: BreakStatement, label: Identifier | undefined): BreakStatement; + function createReturn(expression?: Expression): ReturnStatement; + function updateReturn(node: ReturnStatement, expression: Expression | undefined): ReturnStatement; + function createWith(expression: Expression, statement: Statement): WithStatement; + function updateWith(node: WithStatement, expression: Expression, statement: Statement): WithStatement; + function createSwitch(expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function updateSwitch(node: SwitchStatement, expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function createLabel(label: string | Identifier, statement: Statement): LabeledStatement; + function updateLabel(node: LabeledStatement, label: Identifier, statement: Statement): LabeledStatement; + function createThrow(expression: Expression): ThrowStatement; + function updateThrow(node: ThrowStatement, expression: Expression): ThrowStatement; + function createTry(tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function updateTry(node: TryStatement, tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function createDebuggerStatement(): DebuggerStatement; + function createVariableDeclaration(name: string | BindingName, type?: TypeNode, initializer?: Expression): VariableDeclaration; + function updateVariableDeclaration(node: VariableDeclaration, name: BindingName, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration; + function createVariableDeclarationList(declarations: ReadonlyArray<VariableDeclaration>, flags?: NodeFlags): VariableDeclarationList; + function updateVariableDeclarationList(node: VariableDeclarationList, declarations: ReadonlyArray<VariableDeclaration>): VariableDeclarationList; + function createFunctionDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function updateFunctionDeclaration(node: FunctionDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function createClassDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function updateClassDeclaration(node: ClassDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function createInterfaceDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function updateInterfaceDeclaration(node: InterfaceDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function createTypeAliasDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function createEnumDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function updateEnumDeclaration(node: EnumDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function createModuleDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration; + function updateModuleDeclaration(node: ModuleDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration; + function createModuleBlock(statements: ReadonlyArray<Statement>): ModuleBlock; + function updateModuleBlock(node: ModuleBlock, statements: ReadonlyArray<Statement>): ModuleBlock; + function createCaseBlock(clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function updateCaseBlock(node: CaseBlock, clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration; + function updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration; + function createImportEqualsDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function createImportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function updateImportDeclaration(node: ImportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function createImportClause(name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function updateImportClause(node: ImportClause, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function createNamespaceImport(name: Identifier): NamespaceImport; + function updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport; + function createNamedImports(elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function updateNamedImports(node: NamedImports, elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function createImportSpecifier(propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function createExportAssignment(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment; + function updateExportAssignment(node: ExportAssignment, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, expression: Expression): ExportAssignment; + function createExportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier?: Expression): ExportDeclaration; + function updateExportDeclaration(node: ExportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration; + function createNamedExports(elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function updateNamedExports(node: NamedExports, elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier; + function updateExportSpecifier(node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier; + function createExternalModuleReference(expression: Expression): ExternalModuleReference; + function updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference; + function createJsxElement(openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function updateJsxSelfClosingElement(node: JsxSelfClosingElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function createJsxOpeningElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function updateJsxOpeningElement(node: JsxOpeningElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function createJsxClosingElement(tagName: JsxTagNameExpression): JsxClosingElement; + function updateJsxClosingElement(node: JsxClosingElement, tagName: JsxTagNameExpression): JsxClosingElement; + function createJsxFragment(openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function createJsxAttributes(properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function updateJsxAttributes(node: JsxAttributes, properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute; + function updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute; + function createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression; + function updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression; + function createCaseClause(expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function updateCaseClause(node: CaseClause, expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function createDefaultClause(statements: ReadonlyArray<Statement>): DefaultClause; + function updateDefaultClause(node: DefaultClause, statements: ReadonlyArray<Statement>): DefaultClause; + function createHeritageClause(token: HeritageClause["token"], types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function updateHeritageClause(node: HeritageClause, types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function createCatchClause(variableDeclaration: string | VariableDeclaration | undefined, block: Block): CatchClause; + function updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block): CatchClause; + function createPropertyAssignment(name: string | PropertyName, initializer: Expression): PropertyAssignment; + function updatePropertyAssignment(node: PropertyAssignment, name: PropertyName, initializer: Expression): PropertyAssignment; + function createShorthandPropertyAssignment(name: string | Identifier, objectAssignmentInitializer?: Expression): ShorthandPropertyAssignment; + function updateShorthandPropertyAssignment(node: ShorthandPropertyAssignment, name: Identifier, objectAssignmentInitializer: Expression | undefined): ShorthandPropertyAssignment; + function createSpreadAssignment(expression: Expression): SpreadAssignment; + function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment; + function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember; + function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember; + function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile; + /** + * Creates a shallow, memberwise clone of a node for mutation. + */ + function getMutableClone<T extends Node>(node: T): T; + /** + * Creates a synthetic statement to act as a placeholder for a not-emitted statement in + * order to preserve comments. + * + * @param original The original statement. + */ + function createNotEmittedStatement(original: Node): NotEmittedStatement; + /** + * Creates a synthetic expression to act as a placeholder for a not-emitted expression in + * order to preserve comments or sourcemap positions. + * + * @param expression The inner expression to emit. + * @param original The original outer expression. + * @param location The location for the expression. Defaults to the positions from "original" if provided. + */ + function createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression; + function updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression; + function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression; + function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression; + function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle; + function createUnparsedSourceFile(text: string): UnparsedSource; + function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource; + function createInputFiles(javascript: string, declaration: string): InputFiles; + function createInputFiles(javascript: string, declaration: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles; + function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createComma(left: Expression, right: Expression): Expression; + function createLessThan(left: Expression, right: Expression): Expression; + function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment; + function createAssignment(left: Expression, right: Expression): BinaryExpression; + function createStrictEquality(left: Expression, right: Expression): BinaryExpression; + function createStrictInequality(left: Expression, right: Expression): BinaryExpression; + function createAdd(left: Expression, right: Expression): BinaryExpression; + function createSubtract(left: Expression, right: Expression): BinaryExpression; + function createPostfixIncrement(operand: Expression): PostfixUnaryExpression; + function createLogicalAnd(left: Expression, right: Expression): BinaryExpression; + function createLogicalOr(left: Expression, right: Expression): BinaryExpression; + function createLogicalNot(operand: Expression): PrefixUnaryExpression; + function createVoidZero(): VoidExpression; + function createExportDefault(expression: Expression): ExportAssignment; + function createExternalModuleExport(exportName: Identifier): ExportDeclaration; + /** + * Clears any EmitNode entries from parse-tree nodes. + * @param sourceFile A source file. + */ + function disposeEmitNodes(sourceFile: SourceFile): void; + function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; + /** + * Sets flags that control emit behavior of a node. + */ + function setEmitFlags<T extends Node>(node: T, emitFlags: EmitFlags): T; + /** + * Gets a custom text range to use when emitting source maps. + */ + function getSourceMapRange(node: Node): SourceMapRange; + /** + * Sets a custom text range to use when emitting source maps. + */ + function setSourceMapRange<T extends Node>(node: T, range: SourceMapRange | undefined): T; + /** + * Create an external source map source file reference + */ + function createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): SourceMapSource; + /** + * Gets the TextRange to use for source maps for a token of a node. + */ + function getTokenSourceMapRange(node: Node, token: SyntaxKind): SourceMapRange | undefined; + /** + * Sets the TextRange to use for source maps for a token of a node. + */ + function setTokenSourceMapRange<T extends Node>(node: T, token: SyntaxKind, range: SourceMapRange | undefined): T; + /** + * Gets a custom text range to use when emitting comments. + */ + function getCommentRange(node: Node): TextRange; + /** + * Sets a custom text range to use when emitting comments. + */ + function setCommentRange<T extends Node>(node: T, range: TextRange): T; + function getSyntheticLeadingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticLeadingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticLeadingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function getSyntheticTrailingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticTrailingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticTrailingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function moveSyntheticComments<T extends Node>(node: T, original: Node): T; + /** + * Gets the constant value to emit for an expression. + */ + function getConstantValue(node: PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + /** + * Sets the constant value to emit for an expression. + */ + function setConstantValue(node: PropertyAccessExpression | ElementAccessExpression, value: string | number): PropertyAccessExpression | ElementAccessExpression; + /** + * Adds an EmitHelper to a node. + */ + function addEmitHelper<T extends Node>(node: T, helper: EmitHelper): T; + /** + * Add EmitHelpers to a node. + */ + function addEmitHelpers<T extends Node>(node: T, helpers: EmitHelper[] | undefined): T; + /** + * Removes an EmitHelper from a node. + */ + function removeEmitHelper(node: Node, helper: EmitHelper): boolean; + /** + * Gets the EmitHelpers of a node. + */ + function getEmitHelpers(node: Node): EmitHelper[] | undefined; + /** + * Moves matching emit helpers from a source node to a target node. + */ + function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void; + function setOriginalNode<T extends Node>(node: T, original: Node | undefined): T; +} +declare namespace ts { + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T; + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T | undefined; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined; + /** + * Starts a new lexical environment and visits a statement list, ending the lexical environment + * and merging hoisted declarations upon completion. + */ + function visitLexicalEnvironment(statements: NodeArray<Statement>, visitor: Visitor, context: TransformationContext, start?: number, ensureUseStrict?: boolean): NodeArray<Statement>; + /** + * Starts a new lexical environment and visits a parameter list, suspending the lexical + * environment upon completion. + */ + function visitParameterList(nodes: NodeArray<ParameterDeclaration> | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes): NodeArray<ParameterDeclaration>; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody, visitor: Visitor, context: TransformationContext): FunctionBody; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody | undefined, visitor: Visitor, context: TransformationContext): FunctionBody | undefined; + /** + * Resumes a suspended lexical environment and visits a concise body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: ConciseBody, visitor: Visitor, context: TransformationContext): ConciseBody; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T, visitor: Visitor, context: TransformationContext): T; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; +} +declare namespace ts { + function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; +} +declare namespace ts { + function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined; + function resolveTripleslashReference(moduleName: string, containingFile: string): string; + function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; + function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + interface FormatDiagnosticsHost { + getCurrentDirectory(): string; + getCanonicalFileName(fileName: string): string; + getNewLine(): string; + } + function formatDiagnostics(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string; + function formatDiagnosticsWithColorAndContext(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain | undefined, newLine: string): string; + function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): ReadonlyArray<Diagnostic>; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param createProgramOptions - The options for creating a program. + * @returns A 'Program' object. + */ + function createProgram(createProgramOptions: CreateProgramOptions): Program; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param rootNames - A set of root files. + * @param options - The compiler options which should be used. + * @param host - The host interacts with the underlying file system. + * @param oldProgram - Reuses an old program structure. + * @param configFileParsingDiagnostics - error during config file parsing + * @returns A 'Program' object. + */ + function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program; + /** @deprecated */ interface ResolveProjectReferencePathHost { + fileExists(fileName: string): boolean; + } + /** + * Returns the target config filename of a project reference. + * Note: The file might not exist. + */ + function resolveProjectReferencePath(ref: ProjectReference): ResolvedConfigFileName; + /** @deprecated */ function resolveProjectReferencePath(host: ResolveProjectReferencePathHost, ref: ProjectReference): ResolvedConfigFileName; +} +declare namespace ts { + interface EmitOutput { + outputFiles: OutputFile[]; + emitSkipped: boolean; + } + interface OutputFile { + name: string; + writeByteOrderMark: boolean; + text: string; + } +} +declare namespace ts { + type AffectedFileResult<T> = { + result: T; + affected: SourceFile | Program; + } | undefined; + interface BuilderProgramHost { + /** + * return true if file names are treated with case sensitivity + */ + useCaseSensitiveFileNames(): boolean; + /** + * If provided this would be used this hash instead of actual file shape text for detecting changes + */ + createHash?: (data: string) => string; + /** + * When emit or emitNextAffectedFile are called without writeFile, + * this callback if present would be used to write files + */ + writeFile?: WriteFileCallback; + } + /** + * Builder to manage the program state changes + */ + interface BuilderProgram { + /** + * Returns current program + */ + getProgram(): Program; + /** + * Get compiler options of the program + */ + getCompilerOptions(): CompilerOptions; + /** + * Get the source file in the program with file name + */ + getSourceFile(fileName: string): SourceFile | undefined; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Get the diagnostics for compiler options + */ + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics that dont belong to any file + */ + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics from config file parsing + */ + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Get the syntax diagnostics, for all source files if source file is not supplied + */ + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get all the dependencies of the file + */ + getAllDependencies(sourceFile: SourceFile): ReadonlyArray<string>; + /** + * Gets the semantic diagnostics from the program corresponding to this state of file (if provided) or whole program + * The semantic diagnostics are cached and managed here + * Note that it is assumed that when asked about semantic diagnostics through this API, + * the file has been taken out of affected files so it is safe to use cache or get from program and cache the diagnostics + * In case of SemanticDiagnosticsBuilderProgram if the source file is not provided, + * it will iterate through all the affected files, to ensure that cache stays valid and yet provide a way to get all semantic diagnostics + */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Emits the JavaScript and declaration files. + * When targetSource file is specified, emits the files corresponding to that source file, + * otherwise for the whole program. + * In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified, + * it is assumed that that file is handled from affected file list. If targetSourceFile is not specified, + * it will only emit all the affected files instead of whole program + * + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + /** + * Get the current directory of the program + */ + getCurrentDirectory(): string; + } + /** + * The builder that caches the semantic diagnostics for the program and handles the changed files and affected files + */ + interface SemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Gets the semantic diagnostics from the program for the next affected file and caches it + * Returns undefined if the iteration is complete + */ + getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult<ReadonlyArray<Diagnostic>>; + } + /** + * The builder that can handle the changes in program and iterate through changed file to emit the files + * The semantic diagnostics are cached per file and managed by clearing for the changed/affected files + */ + interface EmitAndSemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Emits the next affected file's emit result (EmitResult and sourceFiles emitted) or returns undefined if iteration is complete + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>; + } + /** + * Create the builder to manage semantic diagnostics and cache them + */ + function createSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): SemanticDiagnosticsBuilderProgram; + function createSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): SemanticDiagnosticsBuilderProgram; + /** + * Create the builder that can handle the changes in program and iterate through changed files + * to emit the those files and manage semantic diagnostics cache as well + */ + function createEmitAndSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): EmitAndSemanticDiagnosticsBuilderProgram; + function createEmitAndSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): EmitAndSemanticDiagnosticsBuilderProgram; + /** + * Creates a builder thats just abstraction over program and can be used with watch + */ + function createAbstractBuilder(newProgram: Program, host: BuilderProgramHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): BuilderProgram; + function createAbstractBuilder(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): BuilderProgram; +} +declare namespace ts { + type WatchStatusReporter = (diagnostic: Diagnostic, newLine: string, options: CompilerOptions) => void; + /** Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program */ + type CreateProgram<T extends BuilderProgram> = (rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: T, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference> | undefined) => T; + /** Host that has watch functionality used in --watch mode */ + interface WatchHost { + /** If provided, called with Diagnostic message that informs about change in watch status */ + onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions): void; + /** Used to watch changes in source files, missing files needed to update the program or config file */ + watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ + watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + /** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */ + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + /** If provided, will be used to reset existing delayed compilation */ + clearTimeout?(timeoutId: any): void; + } + interface WatchCompilerHost<T extends BuilderProgram> extends WatchHost { + /** + * Used to create the program when need for program creation or recreation detected + */ + createProgram: CreateProgram<T>; + /** If provided, callback to invoke after every new program creation */ + afterProgramCreate?(program: T): void; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + createHash?(data: string): string; + /** + * Use to check file presence for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + fileExists(path: string): boolean; + /** + * Use to read file text for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + readFile(path: string, encoding?: string): string | undefined; + /** If provided, used for module resolution as well as to handle directory structure */ + directoryExists?(path: string): boolean; + /** If provided, used in resolutions as well as handling directory structure */ + getDirectories?(path: string): string[]; + /** If provided, used to cache and handle directory structure modifications */ + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + /** Symbol links resolution */ + realpath?(path: string): string; + /** If provided would be used to write log about compilation */ + trace?(s: string): void; + /** If provided is used to get the environment variable */ + getEnvironmentVariable?(name: string): string | undefined; + /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + } + /** + * Host to create watch with root files and options + */ + interface WatchCompilerHostOfFilesAndCompilerOptions<T extends BuilderProgram> extends WatchCompilerHost<T> { + /** root files to use to generate program */ + rootFiles: string[]; + /** Compiler options */ + options: CompilerOptions; + /** Project References */ + projectReferences?: ReadonlyArray<ProjectReference>; + } + /** + * Host to create watch with config file + */ + interface WatchCompilerHostOfConfigFile<T extends BuilderProgram> extends WatchCompilerHost<T>, ConfigFileDiagnosticsReporter { + /** Name of the config file to compile */ + configFileName: string; + /** Options to extend */ + optionsToExtend?: CompilerOptions; + /** + * Used to generate source file names from the config file and its include, exclude, files rules + * and also to cache the directory stucture + */ + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + } + interface Watch<T> { + /** Synchronize with host and get updated program */ + getProgram(): T; + } + /** + * Creates the watch what generates program using the config file + */ + interface WatchOfConfigFile<T> extends Watch<T> { + } + /** + * Creates the watch that generates program using the root files and compiler options + */ + interface WatchOfFilesAndCompilerOptions<T> extends Watch<T> { + /** Updates the root files in the program, only if this is not config file compilation */ + updateRootFileNames(fileNames: string[]): void; + } + /** + * Create the watch compiler host for either configFile or fileNames and its options + */ + function createWatchCompilerHost<T extends BuilderProgram>(configFileName: string, optionsToExtend: CompilerOptions | undefined, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): WatchCompilerHostOfConfigFile<T>; + function createWatchCompilerHost<T extends BuilderProgram>(rootFiles: string[], options: CompilerOptions, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter, projectReferences?: ReadonlyArray<ProjectReference>): WatchCompilerHostOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for root files and compiler options + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfFilesAndCompilerOptions<T>): WatchOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for config file + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfConfigFile<T>): WatchOfConfigFile<T>; +} +declare namespace ts.server { + type ActionSet = "action::set"; + type ActionInvalidate = "action::invalidate"; + type ActionPackageInstalled = "action::packageInstalled"; + type ActionValueInspected = "action::valueInspected"; + type EventTypesRegistry = "event::typesRegistry"; + type EventBeginInstallTypes = "event::beginInstallTypes"; + type EventEndInstallTypes = "event::endInstallTypes"; + type EventInitializationFailed = "event::initializationFailed"; + interface TypingInstallerResponse { + readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | ActionValueInspected | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed; + } + interface TypingInstallerRequestWithProjectName { + readonly projectName: string; + } + interface DiscoverTypings extends TypingInstallerRequestWithProjectName { + readonly fileNames: string[]; + readonly projectRootPath: Path; + readonly compilerOptions: CompilerOptions; + readonly typeAcquisition: TypeAcquisition; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly cachePath?: string; + readonly kind: "discover"; + } + interface CloseProject extends TypingInstallerRequestWithProjectName { + readonly kind: "closeProject"; + } + interface TypesRegistryRequest { + readonly kind: "typesRegistry"; + } + interface InstallPackageRequest extends TypingInstallerRequestWithProjectName { + readonly kind: "installPackage"; + readonly fileName: Path; + readonly packageName: string; + readonly projectRootPath: Path; + } + interface PackageInstalledResponse extends ProjectResponse { + readonly kind: ActionPackageInstalled; + readonly success: boolean; + readonly message: string; + } + interface InitializationFailedResponse extends TypingInstallerResponse { + readonly kind: EventInitializationFailed; + readonly message: string; + } + interface ProjectResponse extends TypingInstallerResponse { + readonly projectName: string; + } + interface InvalidateCachedTypings extends ProjectResponse { + readonly kind: ActionInvalidate; + } + interface InstallTypes extends ProjectResponse { + readonly kind: EventBeginInstallTypes | EventEndInstallTypes; + readonly eventId: number; + readonly typingsInstallerVersion: string; + readonly packagesToInstall: ReadonlyArray<string>; + } + interface BeginInstallTypes extends InstallTypes { + readonly kind: EventBeginInstallTypes; + } + interface EndInstallTypes extends InstallTypes { + readonly kind: EventEndInstallTypes; + readonly installSuccess: boolean; + } + interface SetTypings extends ProjectResponse { + readonly typeAcquisition: TypeAcquisition; + readonly compilerOptions: CompilerOptions; + readonly typings: string[]; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly kind: ActionSet; + } +} +declare namespace ts { + interface Node { + getSourceFile(): SourceFile; + getChildCount(sourceFile?: SourceFile): number; + getChildAt(index: number, sourceFile?: SourceFile): Node; + getChildren(sourceFile?: SourceFile): Node[]; + getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number; + getFullStart(): number; + getEnd(): number; + getWidth(sourceFile?: SourceFileLike): number; + getFullWidth(): number; + getLeadingTriviaWidth(sourceFile?: SourceFile): number; + getFullText(sourceFile?: SourceFile): string; + getText(sourceFile?: SourceFile): string; + getFirstToken(sourceFile?: SourceFile): Node | undefined; + getLastToken(sourceFile?: SourceFile): Node | undefined; + forEachChild<T>(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + } + interface Identifier { + readonly text: string; + } + interface Symbol { + readonly name: string; + getFlags(): SymbolFlags; + getEscapedName(): __String; + getName(): string; + getDeclarations(): Declaration[] | undefined; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface Type { + getFlags(): TypeFlags; + getSymbol(): Symbol | undefined; + getProperties(): Symbol[]; + getProperty(propertyName: string): Symbol | undefined; + getApparentProperties(): Symbol[]; + getCallSignatures(): ReadonlyArray<Signature>; + getConstructSignatures(): ReadonlyArray<Signature>; + getStringIndexType(): Type | undefined; + getNumberIndexType(): Type | undefined; + getBaseTypes(): BaseType[] | undefined; + getNonNullableType(): Type; + getConstraint(): Type | undefined; + getDefault(): Type | undefined; + isUnion(): this is UnionType; + isIntersection(): this is IntersectionType; + isUnionOrIntersection(): this is UnionOrIntersectionType; + isLiteral(): this is LiteralType; + isStringLiteral(): this is StringLiteralType; + isNumberLiteral(): this is NumberLiteralType; + isTypeParameter(): this is TypeParameter; + isClassOrInterface(): this is InterfaceType; + isClass(): this is InterfaceType; + } + interface Signature { + getDeclaration(): SignatureDeclaration; + getTypeParameters(): TypeParameter[] | undefined; + getParameters(): Symbol[]; + getReturnType(): Type; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface SourceFile { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + getLineEndOfPosition(pos: number): number; + getLineStarts(): ReadonlyArray<number>; + getPositionOfLineAndCharacter(line: number, character: number): number; + update(newText: string, textChangeRange: TextChangeRange): SourceFile; + } + interface SourceFileLike { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + interface SourceMapSource { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + /** + * Represents an immutable snapshot of a script at a specified time.Once acquired, the + * snapshot is observably immutable. i.e. the same calls with the same parameters will return + * the same values. + */ + interface IScriptSnapshot { + /** Gets a portion of the script snapshot specified by [start, end). */ + getText(start: number, end: number): string; + /** Gets the length of this script snapshot. */ + getLength(): number; + /** + * Gets the TextChangeRange that describe how the text changed between this text and + * an older version. This information is used by the incremental parser to determine + * what sections of the script need to be re-parsed. 'undefined' can be returned if the + * change range cannot be determined. However, in that case, incremental parsing will + * not happen and the entire document will be re - parsed. + */ + getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange | undefined; + /** Releases all resources held by this script snapshot */ + dispose?(): void; + } + namespace ScriptSnapshot { + function fromString(text: string): IScriptSnapshot; + } + interface PreProcessedFileInfo { + referencedFiles: FileReference[]; + typeReferenceDirectives: FileReference[]; + libReferenceDirectives: FileReference[]; + importedFiles: FileReference[]; + ambientExternalModules?: string[]; + isLibFile: boolean; + } + interface HostCancellationToken { + isCancellationRequested(): boolean; + } + interface InstallPackageOptions { + fileName: Path; + packageName: string; + } + interface LanguageServiceHost extends GetEffectiveTypeRootsHost { + getCompilationSettings(): CompilerOptions; + getNewLine?(): string; + getProjectVersion?(): string; + getScriptFileNames(): string[]; + getScriptKind?(fileName: string): ScriptKind; + getScriptVersion(fileName: string): string; + getScriptSnapshot(fileName: string): IScriptSnapshot | undefined; + getProjectReferences?(): ReadonlyArray<ProjectReference> | undefined; + getLocalizedDiagnosticMessages?(): any; + getCancellationToken?(): HostCancellationToken; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + log?(s: string): void; + trace?(s: string): void; + error?(s: string): void; + useCaseSensitiveFileNames?(): boolean; + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + readFile?(path: string, encoding?: string): string | undefined; + realpath?(path: string): string; + fileExists?(path: string): boolean; + getTypeRootsVersion?(): number; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getDirectories?(directoryName: string): string[]; + /** + * Gets a set of custom transformers to use during emit. + */ + getCustomTransformers?(): CustomTransformers | undefined; + isKnownTypesPackageName?(name: string): boolean; + installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>; + writeFile?(fileName: string, content: string): void; + } + type WithMetadata<T> = T & { + metadata?: unknown; + }; + interface LanguageService { + cleanupSemanticCache(): void; + getSyntacticDiagnostics(fileName: string): DiagnosticWithLocation[]; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(fileName: string): Diagnostic[]; + getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[]; + getCompilerOptionsDiagnostics(): Diagnostic[]; + /** + * @deprecated Use getEncodedSyntacticClassifications instead. + */ + getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + /** + * @deprecated Use getEncodedSemanticClassifications instead. + */ + getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications; + getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications; + getCompletionsAtPosition(fileName: string, position: number, options: GetCompletionsAtPositionOptions | undefined): WithMetadata<CompletionInfo> | undefined; + getCompletionEntryDetails(fileName: string, position: number, name: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined): CompletionEntryDetails | undefined; + getCompletionEntrySymbol(fileName: string, position: number, name: string, source: string | undefined): Symbol | undefined; + getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined; + getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined; + getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined; + getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined; + getRenameInfo(fileName: string, position: number): RenameInfo; + findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): ReadonlyArray<RenameLocation> | undefined; + getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined; + getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getImplementationAtPosition(fileName: string, position: number): ReadonlyArray<ImplementationLocation> | undefined; + getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[] | undefined; + findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined; + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReadonlyArray<ReferenceEntry> | undefined; + getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[]; + getNavigationBarItems(fileName: string): NavigationBarItem[]; + getNavigationTree(fileName: string): NavigationTree; + getOutliningSpans(fileName: string): OutliningSpan[]; + getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[]; + getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[]; + getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number; + getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined; + isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean; + /** + * This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag. + * Editors should call this after `>` is typed. + */ + getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined; + getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined; + toLineColumnOffset?(fileName: string, position: number): LineAndCharacter; + getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: ReadonlyArray<number>, formatOptions: FormatCodeSettings, preferences: UserPreferences): ReadonlyArray<CodeFixAction>; + getCombinedCodeFix(scope: CombinedCodeFixScope, fixId: {}, formatOptions: FormatCodeSettings, preferences: UserPreferences): CombinedCodeActions; + applyCodeActionCommand(action: CodeActionCommand, formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult>; + applyCodeActionCommand(action: CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult[]>; + applyCodeActionCommand(action: CodeActionCommand | CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand): Promise<ApplyCodeActionCommandResult>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined): ApplicableRefactorInfo[]; + getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined; + organizeImports(scope: OrganizeImportsScope, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean): EmitOutput; + getProgram(): Program | undefined; + dispose(): void; + } + interface JsxClosingTagInfo { + readonly newText: string; + } + interface CombinedCodeFixScope { + type: "file"; + fileName: string; + } + type OrganizeImportsScope = CombinedCodeFixScope; + type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<"; + interface GetCompletionsAtPositionOptions extends UserPreferences { + /** + * If the editor is asking for completions because a certain character was typed + * (as opposed to when the user explicitly requested them) this should be set. + */ + triggerCharacter?: CompletionsTriggerCharacter; + /** @deprecated Use includeCompletionsForModuleExports */ + includeExternalModuleExports?: boolean; + /** @deprecated Use includeCompletionsWithInsertText */ + includeInsertTextCompletions?: boolean; + } + type SignatureHelpTriggerCharacter = "," | "(" | "<"; + type SignatureHelpRetriggerCharacter = SignatureHelpTriggerCharacter | ")"; + interface SignatureHelpItemsOptions { + triggerReason?: SignatureHelpTriggerReason; + } + type SignatureHelpTriggerReason = SignatureHelpInvokedReason | SignatureHelpCharacterTypedReason | SignatureHelpRetriggeredReason; + /** + * Signals that the user manually requested signature help. + * The language service will unconditionally attempt to provide a result. + */ + interface SignatureHelpInvokedReason { + kind: "invoked"; + triggerCharacter?: undefined; + } + /** + * Signals that the signature help request came from a user typing a character. + * Depending on the character and the syntactic context, the request may or may not be served a result. + */ + interface SignatureHelpCharacterTypedReason { + kind: "characterTyped"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter: SignatureHelpTriggerCharacter; + } + /** + * Signals that this signature help request came from typing a character or moving the cursor. + * This should only occur if a signature help session was already active and the editor needs to see if it should adjust. + * The language service will unconditionally attempt to provide a result. + * `triggerCharacter` can be `undefined` for a retrigger caused by a cursor move. + */ + interface SignatureHelpRetriggeredReason { + kind: "retrigger"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter?: SignatureHelpRetriggerCharacter; + } + interface ApplyCodeActionCommandResult { + successMessage: string; + } + interface Classifications { + spans: number[]; + endOfLineState: EndOfLineState; + } + interface ClassifiedSpan { + textSpan: TextSpan; + classificationType: ClassificationTypeNames; + } + /** + * Navigation bar interface designed for visual studio's dual-column layout. + * This does not form a proper tree. + * The navbar is returned as a list of top-level items, each of which has a list of child items. + * Child items always have an empty array for their `childItems`. + */ + interface NavigationBarItem { + text: string; + kind: ScriptElementKind; + kindModifiers: string; + spans: TextSpan[]; + childItems: NavigationBarItem[]; + indent: number; + bolded: boolean; + grayed: boolean; + } + /** + * Node in a tree of nested declarations in a file. + * The top node is always a script or module node. + */ + interface NavigationTree { + /** Name of the declaration, or a short description, e.g. "<class>". */ + text: string; + kind: ScriptElementKind; + /** ScriptElementKindModifier separated by commas, e.g. "public,abstract" */ + kindModifiers: string; + /** + * Spans of the nodes that generated this declaration. + * There will be more than one if this is the result of merging. + */ + spans: TextSpan[]; + nameSpan: TextSpan | undefined; + /** Present if non-empty */ + childItems?: NavigationTree[]; + } + interface TodoCommentDescriptor { + text: string; + priority: number; + } + interface TodoComment { + descriptor: TodoCommentDescriptor; + message: string; + position: number; + } + interface TextChange { + span: TextSpan; + newText: string; + } + interface FileTextChanges { + fileName: string; + textChanges: TextChange[]; + isNewFile?: boolean; + } + interface CodeAction { + /** Description of the code action to display in the UI of the editor */ + description: string; + /** Text changes to apply to each file as part of the code action */ + changes: FileTextChanges[]; + /** + * If the user accepts the code fix, the editor should send the action back in a `applyAction` request. + * This allows the language service to have side effects (e.g. installing dependencies) upon a code fix. + */ + commands?: CodeActionCommand[]; + } + interface CodeFixAction extends CodeAction { + /** Short name to identify the fix, for use by telemetry. */ + fixName: string; + /** + * If present, one may call 'getCombinedCodeFix' with this fixId. + * This may be omitted to indicate that the code fix can't be applied in a group. + */ + fixId?: {}; + fixAllDescription?: string; + } + interface CombinedCodeActions { + changes: ReadonlyArray<FileTextChanges>; + commands?: ReadonlyArray<CodeActionCommand>; + } + type CodeActionCommand = InstallPackageAction | GenerateTypesAction; + interface InstallPackageAction { + } + interface GenerateTypesAction extends GenerateTypesOptions { + } + interface GenerateTypesOptions { + readonly file: string; + readonly fileToGenerateTypesFor: string; + readonly outputFileName: string; + } + /** + * A set of one or more available refactoring actions, grouped under a parent refactoring. + */ + interface ApplicableRefactorInfo { + /** + * The programmatic name of the refactoring + */ + name: string; + /** + * A description of this refactoring category to show to the user. + * If the refactoring gets inlined (see below), this text will not be visible. + */ + description: string; + /** + * Inlineable refactorings can have their actions hoisted out to the top level + * of a context menu. Non-inlineanable refactorings should always be shown inside + * their parent grouping. + * + * If not specified, this value is assumed to be 'true' + */ + inlineable?: boolean; + actions: RefactorActionInfo[]; + } + /** + * Represents a single refactoring action - for example, the "Extract Method..." refactor might + * offer several actions, each corresponding to a surround class or closure to extract into. + */ + interface RefactorActionInfo { + /** + * The programmatic name of the refactoring action + */ + name: string; + /** + * A description of this refactoring action to show to the user. + * If the parent refactoring is inlined away, this will be the only text shown, + * so this description should make sense by itself if the parent is inlineable=true + */ + description: string; + } + /** + * A set of edits to make in response to a refactor action, plus an optional + * location where renaming should be invoked from + */ + interface RefactorEditInfo { + edits: FileTextChanges[]; + renameFilename?: string; + renameLocation?: number; + commands?: CodeActionCommand[]; + } + interface TextInsertion { + newText: string; + /** The position in newText the caret should point to after the insertion. */ + caretOffset: number; + } + interface DocumentSpan { + textSpan: TextSpan; + fileName: string; + /** + * If the span represents a location that was remapped (e.g. via a .d.ts.map file), + * then the original filename and span will be specified here + */ + originalTextSpan?: TextSpan; + originalFileName?: string; + } + interface RenameLocation extends DocumentSpan { + readonly prefixText?: string; + readonly suffixText?: string; + } + interface ReferenceEntry extends DocumentSpan { + isWriteAccess: boolean; + isDefinition: boolean; + isInString?: true; + } + interface ImplementationLocation extends DocumentSpan { + kind: ScriptElementKind; + displayParts: SymbolDisplayPart[]; + } + interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + enum HighlightSpanKind { + none = "none", + definition = "definition", + reference = "reference", + writtenReference = "writtenReference" + } + interface HighlightSpan { + fileName?: string; + isInString?: true; + textSpan: TextSpan; + kind: HighlightSpanKind; + } + interface NavigateToItem { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + matchKind: "exact" | "prefix" | "substring" | "camelCase"; + isCaseSensitive: boolean; + fileName: string; + textSpan: TextSpan; + containerName: string; + containerKind: ScriptElementKind; + } + enum IndentStyle { + None = 0, + Block = 1, + Smart = 2 + } + interface EditorOptions { + BaseIndentSize?: number; + IndentSize: number; + TabSize: number; + NewLineCharacter: string; + ConvertTabsToSpaces: boolean; + IndentStyle: IndentStyle; + } + interface EditorSettings { + baseIndentSize?: number; + indentSize?: number; + tabSize?: number; + newLineCharacter?: string; + convertTabsToSpaces?: boolean; + indentStyle?: IndentStyle; + } + interface FormatCodeOptions extends EditorOptions { + InsertSpaceAfterCommaDelimiter: boolean; + InsertSpaceAfterSemicolonInForStatements: boolean; + InsertSpaceBeforeAndAfterBinaryOperators: boolean; + InsertSpaceAfterConstructor?: boolean; + InsertSpaceAfterKeywordsInControlFlowStatements: boolean; + InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean; + InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + InsertSpaceAfterTypeAssertion?: boolean; + InsertSpaceBeforeFunctionParenthesis?: boolean; + PlaceOpenBraceOnNewLineForFunctions: boolean; + PlaceOpenBraceOnNewLineForControlBlocks: boolean; + insertSpaceBeforeTypeAnnotation?: boolean; + } + interface FormatCodeSettings extends EditorSettings { + readonly insertSpaceAfterCommaDelimiter?: boolean; + readonly insertSpaceAfterSemicolonInForStatements?: boolean; + readonly insertSpaceBeforeAndAfterBinaryOperators?: boolean; + readonly insertSpaceAfterConstructor?: boolean; + readonly insertSpaceAfterKeywordsInControlFlowStatements?: boolean; + readonly insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + readonly insertSpaceAfterTypeAssertion?: boolean; + readonly insertSpaceBeforeFunctionParenthesis?: boolean; + readonly placeOpenBraceOnNewLineForFunctions?: boolean; + readonly placeOpenBraceOnNewLineForControlBlocks?: boolean; + readonly insertSpaceBeforeTypeAnnotation?: boolean; + readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean; + } + function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings; + interface DefinitionInfo extends DocumentSpan { + kind: ScriptElementKind; + name: string; + containerKind: ScriptElementKind; + containerName: string; + } + interface DefinitionInfoAndBoundSpan { + definitions?: ReadonlyArray<DefinitionInfo>; + textSpan: TextSpan; + } + interface ReferencedSymbolDefinitionInfo extends DefinitionInfo { + displayParts: SymbolDisplayPart[]; + } + interface ReferencedSymbol { + definition: ReferencedSymbolDefinitionInfo; + references: ReferenceEntry[]; + } + enum SymbolDisplayPartKind { + aliasName = 0, + className = 1, + enumName = 2, + fieldName = 3, + interfaceName = 4, + keyword = 5, + lineBreak = 6, + numericLiteral = 7, + stringLiteral = 8, + localName = 9, + methodName = 10, + moduleName = 11, + operator = 12, + parameterName = 13, + propertyName = 14, + punctuation = 15, + space = 16, + text = 17, + typeParameterName = 18, + enumMemberName = 19, + functionName = 20, + regularExpressionLiteral = 21 + } + interface SymbolDisplayPart { + text: string; + kind: string; + } + interface JSDocTagInfo { + name: string; + text?: string; + } + interface QuickInfo { + kind: ScriptElementKind; + kindModifiers: string; + textSpan: TextSpan; + displayParts?: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + } + type RenameInfo = RenameInfoSuccess | RenameInfoFailure; + interface RenameInfoSuccess { + canRename: true; + /** + * File or directory to rename. + * If set, `getEditsForFileRename` should be called instead of `findRenameLocations`. + */ + fileToRename?: string; + displayName: string; + fullDisplayName: string; + kind: ScriptElementKind; + kindModifiers: string; + triggerSpan: TextSpan; + } + interface RenameInfoFailure { + canRename: false; + localizedErrorMessage: string; + } + interface SignatureHelpParameter { + name: string; + documentation: SymbolDisplayPart[]; + displayParts: SymbolDisplayPart[]; + isOptional: boolean; + } + /** + * Represents a single signature to show in signature help. + * The id is used for subsequent calls into the language service to ask questions about the + * signature help item in the context of any documents that have been updated. i.e. after + * an edit has happened, while signature help is still active, the host can ask important + * questions like 'what parameter is the user currently contained within?'. + */ + interface SignatureHelpItem { + isVariadic: boolean; + prefixDisplayParts: SymbolDisplayPart[]; + suffixDisplayParts: SymbolDisplayPart[]; + separatorDisplayParts: SymbolDisplayPart[]; + parameters: SignatureHelpParameter[]; + documentation: SymbolDisplayPart[]; + tags: JSDocTagInfo[]; + } + /** + * Represents a set of signature help items, and the preferred item that should be selected. + */ + interface SignatureHelpItems { + items: SignatureHelpItem[]; + applicableSpan: TextSpan; + selectedItemIndex: number; + argumentIndex: number; + argumentCount: number; + } + interface CompletionInfo { + /** Not true for all glboal completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */ + isGlobalCompletion: boolean; + isMemberCompletion: boolean; + /** + * true when the current location also allows for a new identifier + */ + isNewIdentifierLocation: boolean; + entries: CompletionEntry[]; + } + interface CompletionEntry { + name: string; + kind: ScriptElementKind; + kindModifiers?: string; + sortText: string; + insertText?: string; + /** + * An optional span that indicates the text to be replaced by this completion item. + * If present, this span should be used instead of the default one. + * It will be set if the required span differs from the one generated by the default replacement behavior. + */ + replacementSpan?: TextSpan; + hasAction?: true; + source?: string; + isRecommended?: true; + } + interface CompletionEntryDetails { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + displayParts: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + codeActions?: CodeAction[]; + source?: SymbolDisplayPart[]; + } + interface OutliningSpan { + /** The span of the document to actually collapse. */ + textSpan: TextSpan; + /** The span of the document to display when the user hovers over the collapsed span. */ + hintSpan: TextSpan; + /** The text to display in the editor for the collapsed region. */ + bannerText: string; + /** + * Whether or not this region should be automatically collapsed when + * the 'Collapse to Definitions' command is invoked. + */ + autoCollapse: boolean; + /** + * Classification of the contents of the span + */ + kind: OutliningSpanKind; + } + enum OutliningSpanKind { + /** Single or multi-line comments */ + Comment = "comment", + /** Sections marked by '// #region' and '// #endregion' comments */ + Region = "region", + /** Declarations and expressions */ + Code = "code", + /** Contiguous blocks of import declarations */ + Imports = "imports" + } + enum OutputFileType { + JavaScript = 0, + SourceMap = 1, + Declaration = 2 + } + enum EndOfLineState { + None = 0, + InMultiLineCommentTrivia = 1, + InSingleQuoteStringLiteral = 2, + InDoubleQuoteStringLiteral = 3, + InTemplateHeadOrNoSubstitutionTemplate = 4, + InTemplateMiddleOrTail = 5, + InTemplateSubstitutionPosition = 6 + } + enum TokenClass { + Punctuation = 0, + Keyword = 1, + Operator = 2, + Comment = 3, + Whitespace = 4, + Identifier = 5, + NumberLiteral = 6, + BigIntLiteral = 7, + StringLiteral = 8, + RegExpLiteral = 9 + } + interface ClassificationResult { + finalLexState: EndOfLineState; + entries: ClassificationInfo[]; + } + interface ClassificationInfo { + length: number; + classification: TokenClass; + } + interface Classifier { + /** + * Gives lexical classifications of tokens on a line without any syntactic context. + * For instance, a token consisting of the text 'string' can be either an identifier + * named 'string' or the keyword 'string', however, because this classifier is not aware, + * it relies on certain heuristics to give acceptable results. For classifications where + * speed trumps accuracy, this function is preferable; however, for true accuracy, the + * syntactic classifier is ideal. In fact, in certain editing scenarios, combining the + * lexical, syntactic, and semantic classifiers may issue the best user experience. + * + * @param text The text of a line to classify. + * @param lexState The state of the lexical classifier at the end of the previous line. + * @param syntacticClassifierAbsent Whether the client is *not* using a syntactic classifier. + * If there is no syntactic classifier (syntacticClassifierAbsent=true), + * certain heuristics may be used in its place; however, if there is a + * syntactic classifier (syntacticClassifierAbsent=false), certain + * classifications which may be incorrectly categorized will be given + * back as Identifiers in order to allow the syntactic classifier to + * subsume the classification. + * @deprecated Use getLexicalClassifications instead. + */ + getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent: boolean): ClassificationResult; + getEncodedLexicalClassifications(text: string, endOfLineState: EndOfLineState, syntacticClassifierAbsent: boolean): Classifications; + } + enum ScriptElementKind { + unknown = "", + warning = "warning", + /** predefined type (void) or keyword (class) */ + keyword = "keyword", + /** top level script node */ + scriptElement = "script", + /** module foo {} */ + moduleElement = "module", + /** class X {} */ + classElement = "class", + /** var x = class X {} */ + localClassElement = "local class", + /** interface Y {} */ + interfaceElement = "interface", + /** type T = ... */ + typeElement = "type", + /** enum E */ + enumElement = "enum", + enumMemberElement = "enum member", + /** + * Inside module and script only + * const v = .. + */ + variableElement = "var", + /** Inside function */ + localVariableElement = "local var", + /** + * Inside module and script only + * function f() { } + */ + functionElement = "function", + /** Inside function */ + localFunctionElement = "local function", + /** class X { [public|private]* foo() {} } */ + memberFunctionElement = "method", + /** class X { [public|private]* [get|set] foo:number; } */ + memberGetAccessorElement = "getter", + memberSetAccessorElement = "setter", + /** + * class X { [public|private]* foo:number; } + * interface Y { foo:number; } + */ + memberVariableElement = "property", + /** class X { constructor() { } } */ + constructorImplementationElement = "constructor", + /** interface Y { ():number; } */ + callSignatureElement = "call", + /** interface Y { []:number; } */ + indexSignatureElement = "index", + /** interface Y { new():Y; } */ + constructSignatureElement = "construct", + /** function foo(*Y*: string) */ + parameterElement = "parameter", + typeParameterElement = "type parameter", + primitiveType = "primitive type", + label = "label", + alias = "alias", + constElement = "const", + letElement = "let", + directory = "directory", + externalModuleName = "external module name", + /** + * <JsxTagName attribute1 attribute2={0} /> + */ + jsxAttribute = "JSX attribute", + /** String literal */ + string = "string" + } + enum ScriptElementKindModifier { + none = "", + publicMemberModifier = "public", + privateMemberModifier = "private", + protectedMemberModifier = "protected", + exportedModifier = "export", + ambientModifier = "declare", + staticModifier = "static", + abstractModifier = "abstract", + optionalModifier = "optional", + dtsModifier = ".d.ts", + tsModifier = ".ts", + tsxModifier = ".tsx", + jsModifier = ".js", + jsxModifier = ".jsx", + jsonModifier = ".json" + } + enum ClassificationTypeNames { + comment = "comment", + identifier = "identifier", + keyword = "keyword", + numericLiteral = "number", + bigintLiteral = "bigint", + operator = "operator", + stringLiteral = "string", + whiteSpace = "whitespace", + text = "text", + punctuation = "punctuation", + className = "class name", + enumName = "enum name", + interfaceName = "interface name", + moduleName = "module name", + typeParameterName = "type parameter name", + typeAliasName = "type alias name", + parameterName = "parameter name", + docCommentTagName = "doc comment tag name", + jsxOpenTagName = "jsx open tag name", + jsxCloseTagName = "jsx close tag name", + jsxSelfClosingTagName = "jsx self closing tag name", + jsxAttribute = "jsx attribute", + jsxText = "jsx text", + jsxAttributeStringLiteralValue = "jsx attribute string literal value" + } + enum ClassificationType { + comment = 1, + identifier = 2, + keyword = 3, + numericLiteral = 4, + operator = 5, + stringLiteral = 6, + regularExpressionLiteral = 7, + whiteSpace = 8, + text = 9, + punctuation = 10, + className = 11, + enumName = 12, + interfaceName = 13, + moduleName = 14, + typeParameterName = 15, + typeAliasName = 16, + parameterName = 17, + docCommentTagName = 18, + jsxOpenTagName = 19, + jsxCloseTagName = 20, + jsxSelfClosingTagName = 21, + jsxAttribute = 22, + jsxText = 23, + jsxAttributeStringLiteralValue = 24, + bigintLiteral = 25 + } +} +declare namespace ts { + function createClassifier(): Classifier; +} +declare namespace ts { + /** + * The document registry represents a store of SourceFile objects that can be shared between + * multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) + * of files in the context. + * SourceFile objects account for most of the memory usage by the language service. Sharing + * the same DocumentRegistry instance between different instances of LanguageService allow + * for more efficient memory utilization since all projects will share at least the library + * file (lib.d.ts). + * + * A more advanced use of the document registry is to serialize sourceFile objects to disk + * and re-hydrate them when needed. + * + * To create a default DocumentRegistry, use createDocumentRegistry to create one, and pass it + * to all subsequent createLanguageService calls. + */ + interface DocumentRegistry { + /** + * Request a stored SourceFile with a given fileName and compilationSettings. + * The first call to acquire will call createLanguageServiceSourceFile to generate + * the SourceFile if was not found in the registry. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. Only used if the file was not found + * in the registry and a new one was created. + * @param version Current version of the file. Only used if the file was not found + * in the registry and a new one was created. + */ + acquireDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + acquireDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + /** + * Request an updated version of an already existing SourceFile with a given fileName + * and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile + * to get an updated SourceFile. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. + * @param version Current version of the file. + */ + updateDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + updateDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; + /** + * Informs the DocumentRegistry that a file is not needed any longer. + * + * Note: It is not allowed to call release on a SourceFile that was not acquired from + * this registry originally. + * + * @param fileName The name of the file to be released + * @param compilationSettings The compilation settings used to acquire the file + */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; + reportStats(): string; + } + type DocumentRegistryBucketKey = string & { + __bucketKey: any; + }; + function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry; +} +declare namespace ts { + function preProcessFile(sourceText: string, readImportFiles?: boolean, detectJavaScriptImports?: boolean): PreProcessedFileInfo; +} +declare namespace ts { + interface TranspileOptions { + compilerOptions?: CompilerOptions; + fileName?: string; + reportDiagnostics?: boolean; + moduleName?: string; + renamedDependencies?: MapLike<string>; + transformers?: CustomTransformers; + } + interface TranspileOutput { + outputText: string; + diagnostics?: Diagnostic[]; + sourceMapText?: string; + } + function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput; + function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string; +} +declare namespace ts { + function generateTypesForModule(name: string, moduleValue: unknown, formatSettings: FormatCodeSettings): string; + function generateTypesForGlobal(name: string, globalValue: unknown, formatSettings: FormatCodeSettings): string; +} +declare namespace ts { + /** The version of the language service API */ + const servicesVersion = "0.8"; + function toEditorSettings(options: EditorOptions | EditorSettings): EditorSettings; + function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string; + function getDefaultCompilerOptions(): CompilerOptions; + function getSupportedCodeFixes(): string[]; + function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile; + let disableIncrementalParsing: boolean; + function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile; + function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnly?: boolean): LanguageService; + /** + * Get the path of the default library files (lib.d.ts) as distributed with the typescript + * node package. + * The functionality is not supported if the ts module is consumed outside of a node module. + */ + function getDefaultLibFilePath(options: CompilerOptions): string; +} +declare namespace ts { + /** + * Transform one or more nodes using the supplied transformers. + * @param source A single `Node` or an array of `Node` objects. + * @param transformers An array of `TransformerFactory` callbacks used to process the transformation. + * @param compilerOptions Optional compiler options. + */ + function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>; +} +
+export = ts;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescriptServices.d.ts b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescriptServices.d.ts new file mode 100644 index 0000000..4c854ca --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/typescript/lib/typescriptServices.d.ts @@ -0,0 +1,5565 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +declare namespace ts { + const versionMajorMinor = "3.2"; + /** The version of the TypeScript compiler release */ + const version: string; +} +declare namespace ts { + /** + * Type of objects whose values are all of the same type. + * The `in` and `for-in` operators can *not* be safely used, + * since `Object.prototype` may be modified by outside code. + */ + interface MapLike<T> { + [index: string]: T; + } + interface SortedReadonlyArray<T> extends ReadonlyArray<T> { + " __sortedArrayBrand": any; + } + interface SortedArray<T> extends Array<T> { + " __sortedArrayBrand": any; + } + /** ES6 Map interface, only read methods included. */ + interface ReadonlyMap<T> { + get(key: string): T | undefined; + has(key: string): boolean; + forEach(action: (value: T, key: string) => void): void; + readonly size: number; + keys(): Iterator<string>; + values(): Iterator<T>; + entries(): Iterator<[string, T]>; + } + /** ES6 Map interface. */ + interface Map<T> extends ReadonlyMap<T> { + set(key: string, value: T): this; + delete(key: string): boolean; + clear(): void; + } + /** ES6 Iterator type. */ + interface Iterator<T> { + next(): { + value: T; + done: false; + } | { + value: never; + done: true; + }; + } + /** Array that is only intended to be pushed to, never read. */ + interface Push<T> { + push(...values: T[]): void; + } +} +declare namespace ts { + type Path = string & { + __pathBrand: any; + }; + interface TextRange { + pos: number; + end: number; + } + type JsDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.NoSubstitutionTemplateLiteral | SyntaxKind.Unknown | KeywordSyntaxKind; + type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; + type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; + enum SyntaxKind { + Unknown = 0, + EndOfFileToken = 1, + SingleLineCommentTrivia = 2, + MultiLineCommentTrivia = 3, + NewLineTrivia = 4, + WhitespaceTrivia = 5, + ShebangTrivia = 6, + ConflictMarkerTrivia = 7, + NumericLiteral = 8, + BigIntLiteral = 9, + StringLiteral = 10, + JsxText = 11, + JsxTextAllWhiteSpaces = 12, + RegularExpressionLiteral = 13, + NoSubstitutionTemplateLiteral = 14, + TemplateHead = 15, + TemplateMiddle = 16, + TemplateTail = 17, + OpenBraceToken = 18, + CloseBraceToken = 19, + OpenParenToken = 20, + CloseParenToken = 21, + OpenBracketToken = 22, + CloseBracketToken = 23, + DotToken = 24, + DotDotDotToken = 25, + SemicolonToken = 26, + CommaToken = 27, + LessThanToken = 28, + LessThanSlashToken = 29, + GreaterThanToken = 30, + LessThanEqualsToken = 31, + GreaterThanEqualsToken = 32, + EqualsEqualsToken = 33, + ExclamationEqualsToken = 34, + EqualsEqualsEqualsToken = 35, + ExclamationEqualsEqualsToken = 36, + EqualsGreaterThanToken = 37, + PlusToken = 38, + MinusToken = 39, + AsteriskToken = 40, + AsteriskAsteriskToken = 41, + SlashToken = 42, + PercentToken = 43, + PlusPlusToken = 44, + MinusMinusToken = 45, + LessThanLessThanToken = 46, + GreaterThanGreaterThanToken = 47, + GreaterThanGreaterThanGreaterThanToken = 48, + AmpersandToken = 49, + BarToken = 50, + CaretToken = 51, + ExclamationToken = 52, + TildeToken = 53, + AmpersandAmpersandToken = 54, + BarBarToken = 55, + QuestionToken = 56, + ColonToken = 57, + AtToken = 58, + EqualsToken = 59, + PlusEqualsToken = 60, + MinusEqualsToken = 61, + AsteriskEqualsToken = 62, + AsteriskAsteriskEqualsToken = 63, + SlashEqualsToken = 64, + PercentEqualsToken = 65, + LessThanLessThanEqualsToken = 66, + GreaterThanGreaterThanEqualsToken = 67, + GreaterThanGreaterThanGreaterThanEqualsToken = 68, + AmpersandEqualsToken = 69, + BarEqualsToken = 70, + CaretEqualsToken = 71, + Identifier = 72, + BreakKeyword = 73, + CaseKeyword = 74, + CatchKeyword = 75, + ClassKeyword = 76, + ConstKeyword = 77, + ContinueKeyword = 78, + DebuggerKeyword = 79, + DefaultKeyword = 80, + DeleteKeyword = 81, + DoKeyword = 82, + ElseKeyword = 83, + EnumKeyword = 84, + ExportKeyword = 85, + ExtendsKeyword = 86, + FalseKeyword = 87, + FinallyKeyword = 88, + ForKeyword = 89, + FunctionKeyword = 90, + IfKeyword = 91, + ImportKeyword = 92, + InKeyword = 93, + InstanceOfKeyword = 94, + NewKeyword = 95, + NullKeyword = 96, + ReturnKeyword = 97, + SuperKeyword = 98, + SwitchKeyword = 99, + ThisKeyword = 100, + ThrowKeyword = 101, + TrueKeyword = 102, + TryKeyword = 103, + TypeOfKeyword = 104, + VarKeyword = 105, + VoidKeyword = 106, + WhileKeyword = 107, + WithKeyword = 108, + ImplementsKeyword = 109, + InterfaceKeyword = 110, + LetKeyword = 111, + PackageKeyword = 112, + PrivateKeyword = 113, + ProtectedKeyword = 114, + PublicKeyword = 115, + StaticKeyword = 116, + YieldKeyword = 117, + AbstractKeyword = 118, + AsKeyword = 119, + AnyKeyword = 120, + AsyncKeyword = 121, + AwaitKeyword = 122, + BooleanKeyword = 123, + ConstructorKeyword = 124, + DeclareKeyword = 125, + GetKeyword = 126, + InferKeyword = 127, + IsKeyword = 128, + KeyOfKeyword = 129, + ModuleKeyword = 130, + NamespaceKeyword = 131, + NeverKeyword = 132, + ReadonlyKeyword = 133, + RequireKeyword = 134, + NumberKeyword = 135, + ObjectKeyword = 136, + SetKeyword = 137, + StringKeyword = 138, + SymbolKeyword = 139, + TypeKeyword = 140, + UndefinedKeyword = 141, + UniqueKeyword = 142, + UnknownKeyword = 143, + FromKeyword = 144, + GlobalKeyword = 145, + BigIntKeyword = 146, + OfKeyword = 147, + QualifiedName = 148, + ComputedPropertyName = 149, + TypeParameter = 150, + Parameter = 151, + Decorator = 152, + PropertySignature = 153, + PropertyDeclaration = 154, + MethodSignature = 155, + MethodDeclaration = 156, + Constructor = 157, + GetAccessor = 158, + SetAccessor = 159, + CallSignature = 160, + ConstructSignature = 161, + IndexSignature = 162, + TypePredicate = 163, + TypeReference = 164, + FunctionType = 165, + ConstructorType = 166, + TypeQuery = 167, + TypeLiteral = 168, + ArrayType = 169, + TupleType = 170, + OptionalType = 171, + RestType = 172, + UnionType = 173, + IntersectionType = 174, + ConditionalType = 175, + InferType = 176, + ParenthesizedType = 177, + ThisType = 178, + TypeOperator = 179, + IndexedAccessType = 180, + MappedType = 181, + LiteralType = 182, + ImportType = 183, + ObjectBindingPattern = 184, + ArrayBindingPattern = 185, + BindingElement = 186, + ArrayLiteralExpression = 187, + ObjectLiteralExpression = 188, + PropertyAccessExpression = 189, + ElementAccessExpression = 190, + CallExpression = 191, + NewExpression = 192, + TaggedTemplateExpression = 193, + TypeAssertionExpression = 194, + ParenthesizedExpression = 195, + FunctionExpression = 196, + ArrowFunction = 197, + DeleteExpression = 198, + TypeOfExpression = 199, + VoidExpression = 200, + AwaitExpression = 201, + PrefixUnaryExpression = 202, + PostfixUnaryExpression = 203, + BinaryExpression = 204, + ConditionalExpression = 205, + TemplateExpression = 206, + YieldExpression = 207, + SpreadElement = 208, + ClassExpression = 209, + OmittedExpression = 210, + ExpressionWithTypeArguments = 211, + AsExpression = 212, + NonNullExpression = 213, + MetaProperty = 214, + SyntheticExpression = 215, + TemplateSpan = 216, + SemicolonClassElement = 217, + Block = 218, + VariableStatement = 219, + EmptyStatement = 220, + ExpressionStatement = 221, + IfStatement = 222, + DoStatement = 223, + WhileStatement = 224, + ForStatement = 225, + ForInStatement = 226, + ForOfStatement = 227, + ContinueStatement = 228, + BreakStatement = 229, + ReturnStatement = 230, + WithStatement = 231, + SwitchStatement = 232, + LabeledStatement = 233, + ThrowStatement = 234, + TryStatement = 235, + DebuggerStatement = 236, + VariableDeclaration = 237, + VariableDeclarationList = 238, + FunctionDeclaration = 239, + ClassDeclaration = 240, + InterfaceDeclaration = 241, + TypeAliasDeclaration = 242, + EnumDeclaration = 243, + ModuleDeclaration = 244, + ModuleBlock = 245, + CaseBlock = 246, + NamespaceExportDeclaration = 247, + ImportEqualsDeclaration = 248, + ImportDeclaration = 249, + ImportClause = 250, + NamespaceImport = 251, + NamedImports = 252, + ImportSpecifier = 253, + ExportAssignment = 254, + ExportDeclaration = 255, + NamedExports = 256, + ExportSpecifier = 257, + MissingDeclaration = 258, + ExternalModuleReference = 259, + JsxElement = 260, + JsxSelfClosingElement = 261, + JsxOpeningElement = 262, + JsxClosingElement = 263, + JsxFragment = 264, + JsxOpeningFragment = 265, + JsxClosingFragment = 266, + JsxAttribute = 267, + JsxAttributes = 268, + JsxSpreadAttribute = 269, + JsxExpression = 270, + CaseClause = 271, + DefaultClause = 272, + HeritageClause = 273, + CatchClause = 274, + PropertyAssignment = 275, + ShorthandPropertyAssignment = 276, + SpreadAssignment = 277, + EnumMember = 278, + SourceFile = 279, + Bundle = 280, + UnparsedSource = 281, + InputFiles = 282, + JSDocTypeExpression = 283, + JSDocAllType = 284, + JSDocUnknownType = 285, + JSDocNullableType = 286, + JSDocNonNullableType = 287, + JSDocOptionalType = 288, + JSDocFunctionType = 289, + JSDocVariadicType = 290, + JSDocComment = 291, + JSDocTypeLiteral = 292, + JSDocSignature = 293, + JSDocTag = 294, + JSDocAugmentsTag = 295, + JSDocClassTag = 296, + JSDocCallbackTag = 297, + JSDocEnumTag = 298, + JSDocParameterTag = 299, + JSDocReturnTag = 300, + JSDocThisTag = 301, + JSDocTypeTag = 302, + JSDocTemplateTag = 303, + JSDocTypedefTag = 304, + JSDocPropertyTag = 305, + SyntaxList = 306, + NotEmittedStatement = 307, + PartiallyEmittedExpression = 308, + CommaListExpression = 309, + MergeDeclarationMarker = 310, + EndOfDeclarationMarker = 311, + Count = 312, + FirstAssignment = 59, + LastAssignment = 71, + FirstCompoundAssignment = 60, + LastCompoundAssignment = 71, + FirstReservedWord = 73, + LastReservedWord = 108, + FirstKeyword = 73, + LastKeyword = 147, + FirstFutureReservedWord = 109, + LastFutureReservedWord = 117, + FirstTypeNode = 163, + LastTypeNode = 183, + FirstPunctuation = 18, + LastPunctuation = 71, + FirstToken = 0, + LastToken = 147, + FirstTriviaToken = 2, + LastTriviaToken = 7, + FirstLiteralToken = 8, + LastLiteralToken = 14, + FirstTemplateToken = 14, + LastTemplateToken = 17, + FirstBinaryOperator = 28, + LastBinaryOperator = 71, + FirstNode = 148, + FirstJSDocNode = 283, + LastJSDocNode = 305, + FirstJSDocTagNode = 294, + LastJSDocTagNode = 305 + } + enum NodeFlags { + None = 0, + Let = 1, + Const = 2, + NestedNamespace = 4, + Synthesized = 8, + Namespace = 16, + ExportContext = 32, + ContainsThis = 64, + HasImplicitReturn = 128, + HasExplicitReturn = 256, + GlobalAugmentation = 512, + HasAsyncFunctions = 1024, + DisallowInContext = 2048, + YieldContext = 4096, + DecoratorContext = 8192, + AwaitContext = 16384, + ThisNodeHasError = 32768, + JavaScriptFile = 65536, + ThisNodeOrAnySubNodesHasError = 131072, + HasAggregatedChildData = 262144, + JSDoc = 2097152, + JsonFile = 16777216, + BlockScoped = 3, + ReachabilityCheckFlags = 384, + ReachabilityAndEmitFlags = 1408, + ContextFlags = 12679168, + TypeExcludesFlags = 20480 + } + enum ModifierFlags { + None = 0, + Export = 1, + Ambient = 2, + Public = 4, + Private = 8, + Protected = 16, + Static = 32, + Readonly = 64, + Abstract = 128, + Async = 256, + Default = 512, + Const = 2048, + HasComputedFlags = 536870912, + AccessibilityModifier = 28, + ParameterPropertyModifier = 92, + NonPublicAccessibilityModifier = 24, + TypeScriptModifier = 2270, + ExportDefault = 513, + All = 3071 + } + enum JsxFlags { + None = 0, + /** An element from a named property of the JSX.IntrinsicElements interface */ + IntrinsicNamedElement = 1, + /** An element inferred from the string index signature of the JSX.IntrinsicElements interface */ + IntrinsicIndexedElement = 2, + IntrinsicElement = 3 + } + interface Node extends TextRange { + kind: SyntaxKind; + flags: NodeFlags; + decorators?: NodeArray<Decorator>; + modifiers?: ModifiersArray; + parent: Node; + } + interface JSDocContainer { + } + type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | EndOfFileToken; + type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType; + type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute; + type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertySignature | PropertyDeclaration | PropertyAssignment | EnumMember; + interface NodeArray<T extends Node> extends ReadonlyArray<T>, TextRange { + hasTrailingComma?: boolean; + } + interface Token<TKind extends SyntaxKind> extends Node { + kind: TKind; + } + type DotDotDotToken = Token<SyntaxKind.DotDotDotToken>; + type QuestionToken = Token<SyntaxKind.QuestionToken>; + type ExclamationToken = Token<SyntaxKind.ExclamationToken>; + type ColonToken = Token<SyntaxKind.ColonToken>; + type EqualsToken = Token<SyntaxKind.EqualsToken>; + type AsteriskToken = Token<SyntaxKind.AsteriskToken>; + type EqualsGreaterThanToken = Token<SyntaxKind.EqualsGreaterThanToken>; + type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; + type ReadonlyToken = Token<SyntaxKind.ReadonlyKeyword>; + type AwaitKeywordToken = Token<SyntaxKind.AwaitKeyword>; + type PlusToken = Token<SyntaxKind.PlusToken>; + type MinusToken = Token<SyntaxKind.MinusToken>; + type Modifier = Token<SyntaxKind.AbstractKeyword> | Token<SyntaxKind.AsyncKeyword> | Token<SyntaxKind.ConstKeyword> | Token<SyntaxKind.DeclareKeyword> | Token<SyntaxKind.DefaultKeyword> | Token<SyntaxKind.ExportKeyword> | Token<SyntaxKind.PublicKeyword> | Token<SyntaxKind.PrivateKeyword> | Token<SyntaxKind.ProtectedKeyword> | Token<SyntaxKind.ReadonlyKeyword> | Token<SyntaxKind.StaticKeyword>; + type ModifiersArray = NodeArray<Modifier>; + interface Identifier extends PrimaryExpression, Declaration { + kind: SyntaxKind.Identifier; + /** + * Prefer to use `id.unescapedText`. (Note: This is available only in services, not internally to the TypeScript compiler.) + * Text of identifier, but if the identifier begins with two underscores, this will begin with three. + */ + escapedText: __String; + originalKeywordKind?: SyntaxKind; + isInJSDocNamespace?: boolean; + } + interface TransientIdentifier extends Identifier { + resolvedSymbol: Symbol; + } + interface QualifiedName extends Node { + kind: SyntaxKind.QualifiedName; + left: EntityName; + right: Identifier; + } + type EntityName = Identifier | QualifiedName; + type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName; + type DeclarationName = Identifier | StringLiteralLike | NumericLiteral | ComputedPropertyName | BindingPattern; + interface Declaration extends Node { + _declarationBrand: any; + } + interface NamedDeclaration extends Declaration { + name?: DeclarationName; + } + interface DeclarationStatement extends NamedDeclaration, Statement { + name?: Identifier | StringLiteral | NumericLiteral; + } + interface ComputedPropertyName extends Node { + parent: Declaration; + kind: SyntaxKind.ComputedPropertyName; + expression: Expression; + } + interface Decorator extends Node { + kind: SyntaxKind.Decorator; + parent: NamedDeclaration; + expression: LeftHandSideExpression; + } + interface TypeParameterDeclaration extends NamedDeclaration { + kind: SyntaxKind.TypeParameter; + parent: DeclarationWithTypeParameterChildren | InferTypeNode; + name: Identifier; + /** Note: Consider calling `getEffectiveConstraintOfTypeParameter` */ + constraint?: TypeNode; + default?: TypeNode; + expression?: Expression; + } + interface SignatureDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SignatureDeclaration["kind"]; + name?: PropertyName; + typeParameters?: NodeArray<TypeParameterDeclaration>; + parameters: NodeArray<ParameterDeclaration>; + type?: TypeNode; + } + type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction; + interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.CallSignature; + } + interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.ConstructSignature; + } + type BindingName = Identifier | BindingPattern; + interface VariableDeclaration extends NamedDeclaration { + kind: SyntaxKind.VariableDeclaration; + parent: VariableDeclarationList | CatchClause; + name: BindingName; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface VariableDeclarationList extends Node { + kind: SyntaxKind.VariableDeclarationList; + parent: VariableStatement | ForStatement | ForOfStatement | ForInStatement; + declarations: NodeArray<VariableDeclaration>; + } + interface ParameterDeclaration extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.Parameter; + parent: SignatureDeclaration; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface BindingElement extends NamedDeclaration { + kind: SyntaxKind.BindingElement; + parent: BindingPattern; + propertyName?: PropertyName; + dotDotDotToken?: DotDotDotToken; + name: BindingName; + initializer?: Expression; + } + interface PropertySignature extends TypeElement, JSDocContainer { + kind: SyntaxKind.PropertySignature; + name: PropertyName; + questionToken?: QuestionToken; + type?: TypeNode; + initializer?: Expression; + } + interface PropertyDeclaration extends ClassElement, JSDocContainer { + kind: SyntaxKind.PropertyDeclaration; + parent: ClassLikeDeclaration; + name: PropertyName; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + type?: TypeNode; + initializer?: Expression; + } + interface ObjectLiteralElement extends NamedDeclaration { + _objectLiteralBrandBrand: any; + name?: PropertyName; + } + /** Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute. */ + type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | MethodDeclaration | AccessorDeclaration; + interface PropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.PropertyAssignment; + name: PropertyName; + questionToken?: QuestionToken; + initializer: Expression; + } + interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.ShorthandPropertyAssignment; + name: Identifier; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + equalsToken?: Token<SyntaxKind.EqualsToken>; + objectAssignmentInitializer?: Expression; + } + interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { + parent: ObjectLiteralExpression; + kind: SyntaxKind.SpreadAssignment; + expression: Expression; + } + type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag; + interface PropertyLikeDeclaration extends NamedDeclaration { + name: PropertyName; + } + interface ObjectBindingPattern extends Node { + kind: SyntaxKind.ObjectBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<BindingElement>; + } + interface ArrayBindingPattern extends Node { + kind: SyntaxKind.ArrayBindingPattern; + parent: VariableDeclaration | ParameterDeclaration | BindingElement; + elements: NodeArray<ArrayBindingElement>; + } + type BindingPattern = ObjectBindingPattern | ArrayBindingPattern; + type ArrayBindingElement = BindingElement | OmittedExpression; + /** + * Several node kinds share function-like features such as a signature, + * a name, and a body. These nodes should extend FunctionLikeDeclarationBase. + * Examples: + * - FunctionDeclaration + * - MethodDeclaration + * - AccessorDeclaration + */ + interface FunctionLikeDeclarationBase extends SignatureDeclarationBase { + _functionLikeDeclarationBrand: any; + asteriskToken?: AsteriskToken; + questionToken?: QuestionToken; + exclamationToken?: ExclamationToken; + body?: Block | Expression; + } + type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction; + /** @deprecated Use SignatureDeclaration */ + type FunctionLike = SignatureDeclaration; + interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.FunctionDeclaration; + name?: Identifier; + body?: FunctionBody; + } + interface MethodSignature extends SignatureDeclarationBase, TypeElement { + kind: SyntaxKind.MethodSignature; + parent: ObjectTypeDeclaration; + name: PropertyName; + } + interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.MethodDeclaration; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer { + kind: SyntaxKind.Constructor; + parent: ClassLikeDeclaration; + body?: FunctionBody; + } + /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */ + interface SemicolonClassElement extends ClassElement { + kind: SyntaxKind.SemicolonClassElement; + parent: ClassLikeDeclaration; + } + interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.GetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer { + kind: SyntaxKind.SetAccessor; + parent: ClassLikeDeclaration | ObjectLiteralExpression; + name: PropertyName; + body?: FunctionBody; + } + type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration; + interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement { + kind: SyntaxKind.IndexSignature; + parent: ObjectTypeDeclaration; + } + interface TypeNode extends Node { + _typeNodeBrand: any; + } + interface KeywordTypeNode extends TypeNode { + kind: SyntaxKind.AnyKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.NumberKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.VoidKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.NullKeyword | SyntaxKind.NeverKeyword; + } + interface ImportTypeNode extends NodeWithTypeArguments { + kind: SyntaxKind.ImportType; + isTypeOf?: boolean; + argument: TypeNode; + qualifier?: EntityName; + } + interface ThisTypeNode extends TypeNode { + kind: SyntaxKind.ThisType; + } + type FunctionOrConstructorTypeNode = FunctionTypeNode | ConstructorTypeNode; + interface FunctionOrConstructorTypeNodeBase extends TypeNode, SignatureDeclarationBase { + kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType; + type: TypeNode; + } + interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.FunctionType; + } + interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase { + kind: SyntaxKind.ConstructorType; + } + interface NodeWithTypeArguments extends TypeNode { + typeArguments?: NodeArray<TypeNode>; + } + type TypeReferenceType = TypeReferenceNode | ExpressionWithTypeArguments; + interface TypeReferenceNode extends NodeWithTypeArguments { + kind: SyntaxKind.TypeReference; + typeName: EntityName; + } + interface TypePredicateNode extends TypeNode { + kind: SyntaxKind.TypePredicate; + parent: SignatureDeclaration | JSDocTypeExpression; + parameterName: Identifier | ThisTypeNode; + type: TypeNode; + } + interface TypeQueryNode extends TypeNode { + kind: SyntaxKind.TypeQuery; + exprName: EntityName; + } + interface TypeLiteralNode extends TypeNode, Declaration { + kind: SyntaxKind.TypeLiteral; + members: NodeArray<TypeElement>; + } + interface ArrayTypeNode extends TypeNode { + kind: SyntaxKind.ArrayType; + elementType: TypeNode; + } + interface TupleTypeNode extends TypeNode { + kind: SyntaxKind.TupleType; + elementTypes: NodeArray<TypeNode>; + } + interface OptionalTypeNode extends TypeNode { + kind: SyntaxKind.OptionalType; + type: TypeNode; + } + interface RestTypeNode extends TypeNode { + kind: SyntaxKind.RestType; + type: TypeNode; + } + type UnionOrIntersectionTypeNode = UnionTypeNode | IntersectionTypeNode; + interface UnionTypeNode extends TypeNode { + kind: SyntaxKind.UnionType; + types: NodeArray<TypeNode>; + } + interface IntersectionTypeNode extends TypeNode { + kind: SyntaxKind.IntersectionType; + types: NodeArray<TypeNode>; + } + interface ConditionalTypeNode extends TypeNode { + kind: SyntaxKind.ConditionalType; + checkType: TypeNode; + extendsType: TypeNode; + trueType: TypeNode; + falseType: TypeNode; + } + interface InferTypeNode extends TypeNode { + kind: SyntaxKind.InferType; + typeParameter: TypeParameterDeclaration; + } + interface ParenthesizedTypeNode extends TypeNode { + kind: SyntaxKind.ParenthesizedType; + type: TypeNode; + } + interface TypeOperatorNode extends TypeNode { + kind: SyntaxKind.TypeOperator; + operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword; + type: TypeNode; + } + interface IndexedAccessTypeNode extends TypeNode { + kind: SyntaxKind.IndexedAccessType; + objectType: TypeNode; + indexType: TypeNode; + } + interface MappedTypeNode extends TypeNode, Declaration { + kind: SyntaxKind.MappedType; + readonlyToken?: ReadonlyToken | PlusToken | MinusToken; + typeParameter: TypeParameterDeclaration; + questionToken?: QuestionToken | PlusToken | MinusToken; + type?: TypeNode; + } + interface LiteralTypeNode extends TypeNode { + kind: SyntaxKind.LiteralType; + literal: BooleanLiteral | LiteralExpression | PrefixUnaryExpression; + } + interface StringLiteral extends LiteralExpression { + kind: SyntaxKind.StringLiteral; + } + type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral; + interface Expression extends Node { + _expressionBrand: any; + } + interface OmittedExpression extends Expression { + kind: SyntaxKind.OmittedExpression; + } + interface PartiallyEmittedExpression extends LeftHandSideExpression { + kind: SyntaxKind.PartiallyEmittedExpression; + expression: Expression; + } + interface UnaryExpression extends Expression { + _unaryExpressionBrand: any; + } + /** Deprecated, please use UpdateExpression */ + type IncrementExpression = UpdateExpression; + interface UpdateExpression extends UnaryExpression { + _updateExpressionBrand: any; + } + type PrefixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.TildeToken | SyntaxKind.ExclamationToken; + interface PrefixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: PrefixUnaryOperator; + operand: UnaryExpression; + } + type PostfixUnaryOperator = SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken; + interface PostfixUnaryExpression extends UpdateExpression { + kind: SyntaxKind.PostfixUnaryExpression; + operand: LeftHandSideExpression; + operator: PostfixUnaryOperator; + } + interface LeftHandSideExpression extends UpdateExpression { + _leftHandSideExpressionBrand: any; + } + interface MemberExpression extends LeftHandSideExpression { + _memberExpressionBrand: any; + } + interface PrimaryExpression extends MemberExpression { + _primaryExpressionBrand: any; + } + interface NullLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.NullKeyword; + } + interface BooleanLiteral extends PrimaryExpression, TypeNode { + kind: SyntaxKind.TrueKeyword | SyntaxKind.FalseKeyword; + } + interface ThisExpression extends PrimaryExpression, KeywordTypeNode { + kind: SyntaxKind.ThisKeyword; + } + interface SuperExpression extends PrimaryExpression { + kind: SyntaxKind.SuperKeyword; + } + interface ImportExpression extends PrimaryExpression { + kind: SyntaxKind.ImportKeyword; + } + interface DeleteExpression extends UnaryExpression { + kind: SyntaxKind.DeleteExpression; + expression: UnaryExpression; + } + interface TypeOfExpression extends UnaryExpression { + kind: SyntaxKind.TypeOfExpression; + expression: UnaryExpression; + } + interface VoidExpression extends UnaryExpression { + kind: SyntaxKind.VoidExpression; + expression: UnaryExpression; + } + interface AwaitExpression extends UnaryExpression { + kind: SyntaxKind.AwaitExpression; + expression: UnaryExpression; + } + interface YieldExpression extends Expression { + kind: SyntaxKind.YieldExpression; + asteriskToken?: AsteriskToken; + expression?: Expression; + } + interface SyntheticExpression extends Expression { + kind: SyntaxKind.SyntheticExpression; + isSpread: boolean; + type: Type; + } + type ExponentiationOperator = SyntaxKind.AsteriskAsteriskToken; + type MultiplicativeOperator = SyntaxKind.AsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken; + type MultiplicativeOperatorOrHigher = ExponentiationOperator | MultiplicativeOperator; + type AdditiveOperator = SyntaxKind.PlusToken | SyntaxKind.MinusToken; + type AdditiveOperatorOrHigher = MultiplicativeOperatorOrHigher | AdditiveOperator; + type ShiftOperator = SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken; + type ShiftOperatorOrHigher = AdditiveOperatorOrHigher | ShiftOperator; + type RelationalOperator = SyntaxKind.LessThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.InstanceOfKeyword | SyntaxKind.InKeyword; + type RelationalOperatorOrHigher = ShiftOperatorOrHigher | RelationalOperator; + type EqualityOperator = SyntaxKind.EqualsEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.ExclamationEqualsToken; + type EqualityOperatorOrHigher = RelationalOperatorOrHigher | EqualityOperator; + type BitwiseOperator = SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken; + type BitwiseOperatorOrHigher = EqualityOperatorOrHigher | BitwiseOperator; + type LogicalOperator = SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken; + type LogicalOperatorOrHigher = BitwiseOperatorOrHigher | LogicalOperator; + type CompoundAssignmentOperator = SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken; + type AssignmentOperator = SyntaxKind.EqualsToken | CompoundAssignmentOperator; + type AssignmentOperatorOrHigher = LogicalOperatorOrHigher | AssignmentOperator; + type BinaryOperator = AssignmentOperatorOrHigher | SyntaxKind.CommaToken; + type BinaryOperatorToken = Token<BinaryOperator>; + interface BinaryExpression extends Expression, Declaration { + kind: SyntaxKind.BinaryExpression; + left: Expression; + operatorToken: BinaryOperatorToken; + right: Expression; + } + type AssignmentOperatorToken = Token<AssignmentOperator>; + interface AssignmentExpression<TOperator extends AssignmentOperatorToken> extends BinaryExpression { + left: LeftHandSideExpression; + operatorToken: TOperator; + } + interface ObjectDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ObjectLiteralExpression; + } + interface ArrayDestructuringAssignment extends AssignmentExpression<EqualsToken> { + left: ArrayLiteralExpression; + } + type DestructuringAssignment = ObjectDestructuringAssignment | ArrayDestructuringAssignment; + type BindingOrAssignmentElement = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | OmittedExpression | SpreadElement | ArrayLiteralExpression | ObjectLiteralExpression | AssignmentExpression<EqualsToken> | Identifier | PropertyAccessExpression | ElementAccessExpression; + type BindingOrAssignmentElementRestIndicator = DotDotDotToken | SpreadElement | SpreadAssignment; + type BindingOrAssignmentElementTarget = BindingOrAssignmentPattern | Identifier | PropertyAccessExpression | ElementAccessExpression | OmittedExpression; + type ObjectBindingOrAssignmentPattern = ObjectBindingPattern | ObjectLiteralExpression; + type ArrayBindingOrAssignmentPattern = ArrayBindingPattern | ArrayLiteralExpression; + type AssignmentPattern = ObjectLiteralExpression | ArrayLiteralExpression; + type BindingOrAssignmentPattern = ObjectBindingOrAssignmentPattern | ArrayBindingOrAssignmentPattern; + interface ConditionalExpression extends Expression { + kind: SyntaxKind.ConditionalExpression; + condition: Expression; + questionToken: QuestionToken; + whenTrue: Expression; + colonToken: ColonToken; + whenFalse: Expression; + } + type FunctionBody = Block; + type ConciseBody = FunctionBody | Expression; + interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.FunctionExpression; + name?: Identifier; + body: FunctionBody; + } + interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer { + kind: SyntaxKind.ArrowFunction; + equalsGreaterThanToken: EqualsGreaterThanToken; + body: ConciseBody; + name: never; + } + interface LiteralLikeNode extends Node { + text: string; + isUnterminated?: boolean; + hasExtendedUnicodeEscape?: boolean; + } + interface LiteralExpression extends LiteralLikeNode, PrimaryExpression { + _literalExpressionBrand: any; + } + interface RegularExpressionLiteral extends LiteralExpression { + kind: SyntaxKind.RegularExpressionLiteral; + } + interface NoSubstitutionTemplateLiteral extends LiteralExpression { + kind: SyntaxKind.NoSubstitutionTemplateLiteral; + } + interface NumericLiteral extends LiteralExpression { + kind: SyntaxKind.NumericLiteral; + } + interface BigIntLiteral extends LiteralExpression { + kind: SyntaxKind.BigIntLiteral; + } + interface TemplateHead extends LiteralLikeNode { + kind: SyntaxKind.TemplateHead; + parent: TemplateExpression; + } + interface TemplateMiddle extends LiteralLikeNode { + kind: SyntaxKind.TemplateMiddle; + parent: TemplateSpan; + } + interface TemplateTail extends LiteralLikeNode { + kind: SyntaxKind.TemplateTail; + parent: TemplateSpan; + } + type TemplateLiteral = TemplateExpression | NoSubstitutionTemplateLiteral; + interface TemplateExpression extends PrimaryExpression { + kind: SyntaxKind.TemplateExpression; + head: TemplateHead; + templateSpans: NodeArray<TemplateSpan>; + } + interface TemplateSpan extends Node { + kind: SyntaxKind.TemplateSpan; + parent: TemplateExpression; + expression: Expression; + literal: TemplateMiddle | TemplateTail; + } + interface ParenthesizedExpression extends PrimaryExpression, JSDocContainer { + kind: SyntaxKind.ParenthesizedExpression; + expression: Expression; + } + interface ArrayLiteralExpression extends PrimaryExpression { + kind: SyntaxKind.ArrayLiteralExpression; + elements: NodeArray<Expression>; + } + interface SpreadElement extends Expression { + kind: SyntaxKind.SpreadElement; + parent: ArrayLiteralExpression | CallExpression | NewExpression; + expression: Expression; + } + /** + * This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to + * ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be + * JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type + * ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.) + */ + interface ObjectLiteralExpressionBase<T extends ObjectLiteralElement> extends PrimaryExpression, Declaration { + properties: NodeArray<T>; + } + interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike> { + kind: SyntaxKind.ObjectLiteralExpression; + } + type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression; + type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression; + interface PropertyAccessExpression extends MemberExpression, NamedDeclaration { + kind: SyntaxKind.PropertyAccessExpression; + expression: LeftHandSideExpression; + name: Identifier; + } + interface SuperPropertyAccessExpression extends PropertyAccessExpression { + expression: SuperExpression; + } + /** Brand for a PropertyAccessExpression which, like a QualifiedName, consists of a sequence of identifiers separated by dots. */ + interface PropertyAccessEntityNameExpression extends PropertyAccessExpression { + _propertyAccessExpressionLikeQualifiedNameBrand?: any; + expression: EntityNameExpression; + } + interface ElementAccessExpression extends MemberExpression { + kind: SyntaxKind.ElementAccessExpression; + expression: LeftHandSideExpression; + argumentExpression: Expression; + } + interface SuperElementAccessExpression extends ElementAccessExpression { + expression: SuperExpression; + } + type SuperProperty = SuperPropertyAccessExpression | SuperElementAccessExpression; + interface CallExpression extends LeftHandSideExpression, Declaration { + kind: SyntaxKind.CallExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments: NodeArray<Expression>; + } + interface SuperCall extends CallExpression { + expression: SuperExpression; + } + interface ImportCall extends CallExpression { + expression: ImportExpression; + } + interface ExpressionWithTypeArguments extends NodeWithTypeArguments { + kind: SyntaxKind.ExpressionWithTypeArguments; + parent: HeritageClause | JSDocAugmentsTag; + expression: LeftHandSideExpression; + } + interface NewExpression extends PrimaryExpression, Declaration { + kind: SyntaxKind.NewExpression; + expression: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + arguments?: NodeArray<Expression>; + } + interface TaggedTemplateExpression extends MemberExpression { + kind: SyntaxKind.TaggedTemplateExpression; + tag: LeftHandSideExpression; + typeArguments?: NodeArray<TypeNode>; + template: TemplateLiteral; + } + type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxOpeningLikeElement; + interface AsExpression extends Expression { + kind: SyntaxKind.AsExpression; + expression: Expression; + type: TypeNode; + } + interface TypeAssertion extends UnaryExpression { + kind: SyntaxKind.TypeAssertionExpression; + type: TypeNode; + expression: UnaryExpression; + } + type AssertionExpression = TypeAssertion | AsExpression; + interface NonNullExpression extends LeftHandSideExpression { + kind: SyntaxKind.NonNullExpression; + expression: Expression; + } + interface MetaProperty extends PrimaryExpression { + kind: SyntaxKind.MetaProperty; + keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword; + name: Identifier; + } + interface JsxElement extends PrimaryExpression { + kind: SyntaxKind.JsxElement; + openingElement: JsxOpeningElement; + children: NodeArray<JsxChild>; + closingElement: JsxClosingElement; + } + type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement; + type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute; + type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess; + interface JsxTagNamePropertyAccess extends PropertyAccessExpression { + expression: JsxTagNameExpression; + } + interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> { + parent: JsxOpeningLikeElement; + } + interface JsxOpeningElement extends Expression { + kind: SyntaxKind.JsxOpeningElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxSelfClosingElement extends PrimaryExpression { + kind: SyntaxKind.JsxSelfClosingElement; + tagName: JsxTagNameExpression; + typeArguments?: NodeArray<TypeNode>; + attributes: JsxAttributes; + } + interface JsxFragment extends PrimaryExpression { + kind: SyntaxKind.JsxFragment; + openingFragment: JsxOpeningFragment; + children: NodeArray<JsxChild>; + closingFragment: JsxClosingFragment; + } + interface JsxOpeningFragment extends Expression { + kind: SyntaxKind.JsxOpeningFragment; + parent: JsxFragment; + } + interface JsxClosingFragment extends Expression { + kind: SyntaxKind.JsxClosingFragment; + parent: JsxFragment; + } + interface JsxAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxAttribute; + parent: JsxAttributes; + name: Identifier; + initializer?: StringLiteral | JsxExpression; + } + interface JsxSpreadAttribute extends ObjectLiteralElement { + kind: SyntaxKind.JsxSpreadAttribute; + parent: JsxAttributes; + expression: Expression; + } + interface JsxClosingElement extends Node { + kind: SyntaxKind.JsxClosingElement; + parent: JsxElement; + tagName: JsxTagNameExpression; + } + interface JsxExpression extends Expression { + kind: SyntaxKind.JsxExpression; + parent: JsxElement | JsxAttributeLike; + dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>; + expression?: Expression; + } + interface JsxText extends Node { + kind: SyntaxKind.JsxText; + containsOnlyWhiteSpaces: boolean; + parent: JsxElement; + } + type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment; + interface Statement extends Node { + _statementBrand: any; + } + interface NotEmittedStatement extends Statement { + kind: SyntaxKind.NotEmittedStatement; + } + /** + * A list of comma-separated expressions. This node is only created by transformations. + */ + interface CommaListExpression extends Expression { + kind: SyntaxKind.CommaListExpression; + elements: NodeArray<Expression>; + } + interface EmptyStatement extends Statement { + kind: SyntaxKind.EmptyStatement; + } + interface DebuggerStatement extends Statement { + kind: SyntaxKind.DebuggerStatement; + } + interface MissingDeclaration extends DeclarationStatement { + kind: SyntaxKind.MissingDeclaration; + name?: Identifier; + } + type BlockLike = SourceFile | Block | ModuleBlock | CaseOrDefaultClause; + interface Block extends Statement { + kind: SyntaxKind.Block; + statements: NodeArray<Statement>; + } + interface VariableStatement extends Statement, JSDocContainer { + kind: SyntaxKind.VariableStatement; + declarationList: VariableDeclarationList; + } + interface ExpressionStatement extends Statement, JSDocContainer { + kind: SyntaxKind.ExpressionStatement; + expression: Expression; + } + interface IfStatement extends Statement { + kind: SyntaxKind.IfStatement; + expression: Expression; + thenStatement: Statement; + elseStatement?: Statement; + } + interface IterationStatement extends Statement { + statement: Statement; + } + interface DoStatement extends IterationStatement { + kind: SyntaxKind.DoStatement; + expression: Expression; + } + interface WhileStatement extends IterationStatement { + kind: SyntaxKind.WhileStatement; + expression: Expression; + } + type ForInitializer = VariableDeclarationList | Expression; + interface ForStatement extends IterationStatement { + kind: SyntaxKind.ForStatement; + initializer?: ForInitializer; + condition?: Expression; + incrementor?: Expression; + } + type ForInOrOfStatement = ForInStatement | ForOfStatement; + interface ForInStatement extends IterationStatement { + kind: SyntaxKind.ForInStatement; + initializer: ForInitializer; + expression: Expression; + } + interface ForOfStatement extends IterationStatement { + kind: SyntaxKind.ForOfStatement; + awaitModifier?: AwaitKeywordToken; + initializer: ForInitializer; + expression: Expression; + } + interface BreakStatement extends Statement { + kind: SyntaxKind.BreakStatement; + label?: Identifier; + } + interface ContinueStatement extends Statement { + kind: SyntaxKind.ContinueStatement; + label?: Identifier; + } + type BreakOrContinueStatement = BreakStatement | ContinueStatement; + interface ReturnStatement extends Statement { + kind: SyntaxKind.ReturnStatement; + expression?: Expression; + } + interface WithStatement extends Statement { + kind: SyntaxKind.WithStatement; + expression: Expression; + statement: Statement; + } + interface SwitchStatement extends Statement { + kind: SyntaxKind.SwitchStatement; + expression: Expression; + caseBlock: CaseBlock; + possiblyExhaustive?: boolean; + } + interface CaseBlock extends Node { + kind: SyntaxKind.CaseBlock; + parent: SwitchStatement; + clauses: NodeArray<CaseOrDefaultClause>; + } + interface CaseClause extends Node { + kind: SyntaxKind.CaseClause; + parent: CaseBlock; + expression: Expression; + statements: NodeArray<Statement>; + } + interface DefaultClause extends Node { + kind: SyntaxKind.DefaultClause; + parent: CaseBlock; + statements: NodeArray<Statement>; + } + type CaseOrDefaultClause = CaseClause | DefaultClause; + interface LabeledStatement extends Statement, JSDocContainer { + kind: SyntaxKind.LabeledStatement; + label: Identifier; + statement: Statement; + } + interface ThrowStatement extends Statement { + kind: SyntaxKind.ThrowStatement; + expression?: Expression; + } + interface TryStatement extends Statement { + kind: SyntaxKind.TryStatement; + tryBlock: Block; + catchClause?: CatchClause; + finallyBlock?: Block; + } + interface CatchClause extends Node { + kind: SyntaxKind.CatchClause; + parent: TryStatement; + variableDeclaration?: VariableDeclaration; + block: Block; + } + type ObjectTypeDeclaration = ClassLikeDeclaration | InterfaceDeclaration | TypeLiteralNode; + type DeclarationWithTypeParameters = DeclarationWithTypeParameterChildren | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature; + type DeclarationWithTypeParameterChildren = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag; + interface ClassLikeDeclarationBase extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.ClassDeclaration | SyntaxKind.ClassExpression; + name?: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<ClassElement>; + } + interface ClassDeclaration extends ClassLikeDeclarationBase, DeclarationStatement { + kind: SyntaxKind.ClassDeclaration; + /** May be undefined in `export default class { ... }`. */ + name?: Identifier; + } + interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression { + kind: SyntaxKind.ClassExpression; + } + type ClassLikeDeclaration = ClassDeclaration | ClassExpression; + interface ClassElement extends NamedDeclaration { + _classElementBrand: any; + name?: PropertyName; + } + interface TypeElement extends NamedDeclaration { + _typeElementBrand: any; + name?: PropertyName; + questionToken?: QuestionToken; + } + interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.InterfaceDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + heritageClauses?: NodeArray<HeritageClause>; + members: NodeArray<TypeElement>; + } + interface HeritageClause extends Node { + kind: SyntaxKind.HeritageClause; + parent: InterfaceDeclaration | ClassLikeDeclaration; + token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword; + types: NodeArray<ExpressionWithTypeArguments>; + } + interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.TypeAliasDeclaration; + name: Identifier; + typeParameters?: NodeArray<TypeParameterDeclaration>; + type: TypeNode; + } + interface EnumMember extends NamedDeclaration, JSDocContainer { + kind: SyntaxKind.EnumMember; + parent: EnumDeclaration; + name: PropertyName; + initializer?: Expression; + } + interface EnumDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.EnumDeclaration; + name: Identifier; + members: NodeArray<EnumMember>; + } + type ModuleName = Identifier | StringLiteral; + type ModuleBody = NamespaceBody | JSDocNamespaceBody; + interface ModuleDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ModuleDeclaration; + parent: ModuleBody | SourceFile; + name: ModuleName; + body?: ModuleBody | JSDocNamespaceDeclaration; + } + type NamespaceBody = ModuleBlock | NamespaceDeclaration; + interface NamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body: NamespaceBody; + } + type JSDocNamespaceBody = Identifier | JSDocNamespaceDeclaration; + interface JSDocNamespaceDeclaration extends ModuleDeclaration { + name: Identifier; + body?: JSDocNamespaceBody; + } + interface ModuleBlock extends Node, Statement { + kind: SyntaxKind.ModuleBlock; + parent: ModuleDeclaration; + statements: NodeArray<Statement>; + } + type ModuleReference = EntityName | ExternalModuleReference; + /** + * One of: + * - import x = require("mod"); + * - import x = M.x; + */ + interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ImportEqualsDeclaration; + parent: SourceFile | ModuleBlock; + name: Identifier; + moduleReference: ModuleReference; + } + interface ExternalModuleReference extends Node { + kind: SyntaxKind.ExternalModuleReference; + parent: ImportEqualsDeclaration; + expression: Expression; + } + interface ImportDeclaration extends Statement { + kind: SyntaxKind.ImportDeclaration; + parent: SourceFile | ModuleBlock; + importClause?: ImportClause; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier: Expression; + } + type NamedImportBindings = NamespaceImport | NamedImports; + interface ImportClause extends NamedDeclaration { + kind: SyntaxKind.ImportClause; + parent: ImportDeclaration; + name?: Identifier; + namedBindings?: NamedImportBindings; + } + interface NamespaceImport extends NamedDeclaration { + kind: SyntaxKind.NamespaceImport; + parent: ImportClause; + name: Identifier; + } + interface NamespaceExportDeclaration extends DeclarationStatement { + kind: SyntaxKind.NamespaceExportDeclaration; + name: Identifier; + } + interface ExportDeclaration extends DeclarationStatement, JSDocContainer { + kind: SyntaxKind.ExportDeclaration; + parent: SourceFile | ModuleBlock; + /** Will not be assigned in the case of `export * from "foo";` */ + exportClause?: NamedExports; + /** If this is not a StringLiteral it will be a grammar error. */ + moduleSpecifier?: Expression; + } + interface NamedImports extends Node { + kind: SyntaxKind.NamedImports; + parent: ImportClause; + elements: NodeArray<ImportSpecifier>; + } + interface NamedExports extends Node { + kind: SyntaxKind.NamedExports; + parent: ExportDeclaration; + elements: NodeArray<ExportSpecifier>; + } + type NamedImportsOrExports = NamedImports | NamedExports; + interface ImportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ImportSpecifier; + parent: NamedImports; + propertyName?: Identifier; + name: Identifier; + } + interface ExportSpecifier extends NamedDeclaration { + kind: SyntaxKind.ExportSpecifier; + parent: NamedExports; + propertyName?: Identifier; + name: Identifier; + } + type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier; + /** + * This is either an `export =` or an `export default` declaration. + * Unless `isExportEquals` is set, this node was parsed as an `export default`. + */ + interface ExportAssignment extends DeclarationStatement { + kind: SyntaxKind.ExportAssignment; + parent: SourceFile; + isExportEquals?: boolean; + expression: Expression; + } + interface FileReference extends TextRange { + fileName: string; + } + interface CheckJsDirective extends TextRange { + enabled: boolean; + } + type CommentKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia; + interface CommentRange extends TextRange { + hasTrailingNewLine?: boolean; + kind: CommentKind; + } + interface SynthesizedComment extends CommentRange { + text: string; + pos: -1; + end: -1; + } + interface JSDocTypeExpression extends TypeNode { + kind: SyntaxKind.JSDocTypeExpression; + type: TypeNode; + } + interface JSDocType extends TypeNode { + _jsDocTypeBrand: any; + } + interface JSDocAllType extends JSDocType { + kind: SyntaxKind.JSDocAllType; + } + interface JSDocUnknownType extends JSDocType { + kind: SyntaxKind.JSDocUnknownType; + } + interface JSDocNonNullableType extends JSDocType { + kind: SyntaxKind.JSDocNonNullableType; + type: TypeNode; + } + interface JSDocNullableType extends JSDocType { + kind: SyntaxKind.JSDocNullableType; + type: TypeNode; + } + interface JSDocOptionalType extends JSDocType { + kind: SyntaxKind.JSDocOptionalType; + type: TypeNode; + } + interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase { + kind: SyntaxKind.JSDocFunctionType; + } + interface JSDocVariadicType extends JSDocType { + kind: SyntaxKind.JSDocVariadicType; + type: TypeNode; + } + type JSDocTypeReferencingNode = JSDocVariadicType | JSDocOptionalType | JSDocNullableType | JSDocNonNullableType; + interface JSDoc extends Node { + kind: SyntaxKind.JSDocComment; + parent: HasJSDoc; + tags?: NodeArray<JSDocTag>; + comment?: string; + } + interface JSDocTag extends Node { + parent: JSDoc | JSDocTypeLiteral; + tagName: Identifier; + comment?: string; + } + interface JSDocUnknownTag extends JSDocTag { + kind: SyntaxKind.JSDocTag; + } + /** + * Note that `@extends` is a synonym of `@augments`. + * Both tags are represented by this interface. + */ + interface JSDocAugmentsTag extends JSDocTag { + kind: SyntaxKind.JSDocAugmentsTag; + class: ExpressionWithTypeArguments & { + expression: Identifier | PropertyAccessEntityNameExpression; + }; + } + interface JSDocClassTag extends JSDocTag { + kind: SyntaxKind.JSDocClassTag; + } + interface JSDocEnumTag extends JSDocTag { + kind: SyntaxKind.JSDocEnumTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocThisTag extends JSDocTag { + kind: SyntaxKind.JSDocThisTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTemplateTag extends JSDocTag { + kind: SyntaxKind.JSDocTemplateTag; + constraint: JSDocTypeExpression | undefined; + typeParameters: NodeArray<TypeParameterDeclaration>; + } + interface JSDocReturnTag extends JSDocTag { + kind: SyntaxKind.JSDocReturnTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypeTag extends JSDocTag { + kind: SyntaxKind.JSDocTypeTag; + typeExpression?: JSDocTypeExpression; + } + interface JSDocTypedefTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocTypedefTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression?: JSDocTypeExpression | JSDocTypeLiteral; + } + interface JSDocCallbackTag extends JSDocTag, NamedDeclaration { + parent: JSDoc; + kind: SyntaxKind.JSDocCallbackTag; + fullName?: JSDocNamespaceDeclaration | Identifier; + name?: Identifier; + typeExpression: JSDocSignature; + } + interface JSDocSignature extends JSDocType, Declaration { + kind: SyntaxKind.JSDocSignature; + typeParameters?: ReadonlyArray<JSDocTemplateTag>; + parameters: ReadonlyArray<JSDocParameterTag>; + type: JSDocReturnTag | undefined; + } + interface JSDocPropertyLikeTag extends JSDocTag, Declaration { + parent: JSDoc; + name: EntityName; + typeExpression?: JSDocTypeExpression; + /** Whether the property name came before the type -- non-standard for JSDoc, but Typescript-like */ + isNameFirst: boolean; + isBracketed: boolean; + } + interface JSDocPropertyTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocPropertyTag; + } + interface JSDocParameterTag extends JSDocPropertyLikeTag { + kind: SyntaxKind.JSDocParameterTag; + } + interface JSDocTypeLiteral extends JSDocType { + kind: SyntaxKind.JSDocTypeLiteral; + jsDocPropertyTags?: ReadonlyArray<JSDocPropertyLikeTag>; + /** If true, then this type literal represents an *array* of its type. */ + isArrayType?: boolean; + } + enum FlowFlags { + Unreachable = 1, + Start = 2, + BranchLabel = 4, + LoopLabel = 8, + Assignment = 16, + TrueCondition = 32, + FalseCondition = 64, + SwitchClause = 128, + ArrayMutation = 256, + Referenced = 512, + Shared = 1024, + PreFinally = 2048, + AfterFinally = 4096, + Label = 12, + Condition = 96 + } + interface FlowLock { + locked?: boolean; + } + interface AfterFinallyFlow extends FlowNodeBase, FlowLock { + antecedent: FlowNode; + } + interface PreFinallyFlow extends FlowNodeBase { + antecedent: FlowNode; + lock: FlowLock; + } + type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + interface FlowNodeBase { + flags: FlowFlags; + id?: number; + } + interface FlowStart extends FlowNodeBase { + container?: FunctionExpression | ArrowFunction | MethodDeclaration; + } + interface FlowLabel extends FlowNodeBase { + antecedents: FlowNode[] | undefined; + } + interface FlowAssignment extends FlowNodeBase { + node: Expression | VariableDeclaration | BindingElement; + antecedent: FlowNode; + } + interface FlowCondition extends FlowNodeBase { + expression: Expression; + antecedent: FlowNode; + } + interface FlowSwitchClause extends FlowNodeBase { + switchStatement: SwitchStatement; + clauseStart: number; + clauseEnd: number; + antecedent: FlowNode; + } + interface FlowArrayMutation extends FlowNodeBase { + node: CallExpression | BinaryExpression; + antecedent: FlowNode; + } + type FlowType = Type | IncompleteType; + interface IncompleteType { + flags: TypeFlags; + type: Type; + } + interface AmdDependency { + path: string; + name?: string; + } + interface SourceFile extends Declaration { + kind: SyntaxKind.SourceFile; + statements: NodeArray<Statement>; + endOfFileToken: Token<SyntaxKind.EndOfFileToken>; + fileName: string; + text: string; + amdDependencies: ReadonlyArray<AmdDependency>; + moduleName?: string; + referencedFiles: ReadonlyArray<FileReference>; + typeReferenceDirectives: ReadonlyArray<FileReference>; + libReferenceDirectives: ReadonlyArray<FileReference>; + languageVariant: LanguageVariant; + isDeclarationFile: boolean; + /** + * lib.d.ts should have a reference comment like + * + * /// <reference no-default-lib="true"/> + * + * If any other file has this comment, it signals not to include lib.d.ts + * because this containing file is intended to act as a default library. + */ + hasNoDefaultLib: boolean; + languageVersion: ScriptTarget; + } + interface Bundle extends Node { + kind: SyntaxKind.Bundle; + prepends: ReadonlyArray<InputFiles | UnparsedSource>; + sourceFiles: ReadonlyArray<SourceFile>; + } + interface InputFiles extends Node { + kind: SyntaxKind.InputFiles; + javascriptText: string; + javascriptMapPath?: string; + javascriptMapText?: string; + declarationText: string; + declarationMapPath?: string; + declarationMapText?: string; + } + interface UnparsedSource extends Node { + kind: SyntaxKind.UnparsedSource; + text: string; + sourceMapPath?: string; + sourceMapText?: string; + } + interface JsonSourceFile extends SourceFile { + statements: NodeArray<JsonObjectExpressionStatement>; + } + interface TsConfigSourceFile extends JsonSourceFile { + extendedSourceFiles?: string[]; + } + interface JsonMinusNumericLiteral extends PrefixUnaryExpression { + kind: SyntaxKind.PrefixUnaryExpression; + operator: SyntaxKind.MinusToken; + operand: NumericLiteral; + } + interface JsonObjectExpressionStatement extends ExpressionStatement { + expression: ObjectLiteralExpression | ArrayLiteralExpression | JsonMinusNumericLiteral | NumericLiteral | StringLiteral | BooleanLiteral | NullLiteral; + } + interface ScriptReferenceHost { + getCompilerOptions(): CompilerOptions; + getSourceFile(fileName: string): SourceFile | undefined; + getSourceFileByPath(path: Path): SourceFile | undefined; + getCurrentDirectory(): string; + } + interface ParseConfigHost { + useCaseSensitiveFileNames: boolean; + readDirectory(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): ReadonlyArray<string>; + /** + * Gets a value indicating whether the specified path exists and is a file. + * @param path The path to test. + */ + fileExists(path: string): boolean; + readFile(path: string): string | undefined; + trace?(s: string): void; + } + /** + * Branded string for keeping track of when we've turned an ambiguous path + * specified like "./blah" to an absolute path to an actual + * tsconfig file, e.g. "/root/blah/tsconfig.json" + */ + type ResolvedConfigFileName = string & { + _isResolvedConfigFileName: never; + }; + type WriteFileCallback = (fileName: string, data: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles?: ReadonlyArray<SourceFile>) => void; + class OperationCanceledException { + } + interface CancellationToken { + isCancellationRequested(): boolean; + /** @throws OperationCanceledException if isCancellationRequested is true */ + throwIfCancellationRequested(): void; + } + interface Program extends ScriptReferenceHost { + /** + * Get a list of root file names that were passed to a 'createProgram' + */ + getRootFileNames(): ReadonlyArray<string>; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then + * the JavaScript and declaration files will be produced for all the files in this program. + * If targetSourceFile is specified, then only the JavaScript and declaration for that + * specific file will be generated. + * + * If writeFile is not specified then the writeFile callback from the compiler host will be + * used for writing the JavaScript and declaration files. Otherwise, the writeFile parameter + * will be invoked when writing the JavaScript and declaration files. + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + getDeclarationDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<DiagnosticWithLocation>; + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Gets a type checker that can be used to semantically analyze source files in the program. + */ + getTypeChecker(): TypeChecker; + isSourceFileFromExternalLibrary(file: SourceFile): boolean; + isSourceFileDefaultLibrary(file: SourceFile): boolean; + getProjectReferences(): ReadonlyArray<ProjectReference> | undefined; + getResolvedProjectReferences(): ReadonlyArray<ResolvedProjectReference | undefined> | undefined; + } + interface ResolvedProjectReference { + commandLine: ParsedCommandLine; + sourceFile: SourceFile; + references?: ReadonlyArray<ResolvedProjectReference | undefined>; + } + interface CustomTransformers { + /** Custom transformers to evaluate before built-in .js transformations. */ + before?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .js transformations. */ + after?: TransformerFactory<SourceFile>[]; + /** Custom transformers to evaluate after built-in .d.ts transformations. */ + afterDeclarations?: TransformerFactory<Bundle | SourceFile>[]; + } + interface SourceMapSpan { + /** Line number in the .js file. */ + emittedLine: number; + /** Column number in the .js file. */ + emittedColumn: number; + /** Line number in the .ts file. */ + sourceLine: number; + /** Column number in the .ts file. */ + sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ + nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ + sourceIndex: number; + } + /** Return code used by getEmitOutput function to indicate status of the function */ + enum ExitStatus { + Success = 0, + DiagnosticsPresent_OutputsSkipped = 1, + DiagnosticsPresent_OutputsGenerated = 2 + } + interface EmitResult { + emitSkipped: boolean; + /** Contains declaration emit diagnostics */ + diagnostics: ReadonlyArray<Diagnostic>; + emittedFiles?: string[]; + } + interface TypeChecker { + getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; + getDeclaredTypeOfSymbol(symbol: Symbol): Type; + getPropertiesOfType(type: Type): Symbol[]; + getPropertyOfType(type: Type, propertyName: string): Symbol | undefined; + getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined; + getSignaturesOfType(type: Type, kind: SignatureKind): ReadonlyArray<Signature>; + getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined; + getBaseTypes(type: InterfaceType): BaseType[]; + getBaseTypeOfLiteralType(type: Type): Type; + getWidenedType(type: Type): Type; + getReturnTypeOfSignature(signature: Signature): Type; + getNullableType(type: Type, flags: TypeFlags): Type; + getNonNullableType(type: Type): Type; + /** Note that the resulting nodes cannot be checked. */ + typeToTypeNode(type: Type, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeNode | undefined; + /** Note that the resulting nodes cannot be checked. */ + signatureToSignatureDeclaration(signature: Signature, kind: SyntaxKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): (SignatureDeclaration & { + typeArguments?: NodeArray<TypeNode>; + }) | undefined; + /** Note that the resulting nodes cannot be checked. */ + indexInfoToIndexSignatureDeclaration(indexInfo: IndexInfo, kind: IndexKind, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): IndexSignatureDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToEntityName(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): EntityName | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToExpression(symbol: Symbol, meaning: SymbolFlags, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): Expression | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToTypeParameterDeclarations(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): NodeArray<TypeParameterDeclaration> | undefined; + /** Note that the resulting nodes cannot be checked. */ + symbolToParameterDeclaration(symbol: Symbol, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): ParameterDeclaration | undefined; + /** Note that the resulting nodes cannot be checked. */ + typeParameterToDeclaration(parameter: TypeParameter, enclosingDeclaration?: Node, flags?: NodeBuilderFlags): TypeParameterDeclaration | undefined; + getSymbolsInScope(location: Node, meaning: SymbolFlags): Symbol[]; + getSymbolAtLocation(node: Node): Symbol | undefined; + getSymbolsOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): Symbol[]; + /** + * The function returns the value (local variable) symbol of an identifier in the short-hand property assignment. + * This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value. + */ + getShorthandAssignmentValueSymbol(location: Node): Symbol | undefined; + getExportSpecifierLocalTargetSymbol(location: ExportSpecifier): Symbol | undefined; + /** + * If a symbol is a local symbol with an associated exported symbol, returns the exported symbol. + * Otherwise returns its input. + * For example, at `export type T = number;`: + * - `getSymbolAtLocation` at the location `T` will return the exported symbol for `T`. + * - But the result of `getSymbolsInScope` will contain the *local* symbol for `T`, not the exported symbol. + * - Calling `getExportSymbolOfSymbol` on that local symbol will return the exported symbol. + */ + getExportSymbolOfSymbol(symbol: Symbol): Symbol; + getPropertySymbolOfDestructuringAssignment(location: Identifier): Symbol | undefined; + getTypeAtLocation(node: Node): Type; + getTypeFromTypeNode(node: TypeNode): Type; + signatureToString(signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags, kind?: SignatureKind): string; + typeToString(type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + symbolToString(symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): string; + typePredicateToString(predicate: TypePredicate, enclosingDeclaration?: Node, flags?: TypeFormatFlags): string; + getFullyQualifiedName(symbol: Symbol): string; + getAugmentedPropertiesOfType(type: Type): Symbol[]; + getRootSymbols(symbol: Symbol): ReadonlyArray<Symbol>; + getContextualType(node: Expression): Type | undefined; + /** + * returns unknownSignature in the case of an error. + * returns undefined if the node is not valid. + * @param argumentCount Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See `signatureHelp.ts`. + */ + getResolvedSignature(node: CallLikeExpression, candidatesOutArray?: Signature[], argumentCount?: number): Signature | undefined; + getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature | undefined; + isImplementationOfOverload(node: SignatureDeclaration): boolean | undefined; + isUndefinedSymbol(symbol: Symbol): boolean; + isArgumentsSymbol(symbol: Symbol): boolean; + isUnknownSymbol(symbol: Symbol): boolean; + getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName | ImportTypeNode, propertyName: string): boolean; + /** Follow all aliases to get the original symbol. */ + getAliasedSymbol(symbol: Symbol): Symbol; + getExportsOfModule(moduleSymbol: Symbol): Symbol[]; + getJsxIntrinsicTagNamesAt(location: Node): Symbol[]; + isOptionalParameter(node: ParameterDeclaration): boolean; + getAmbientModules(): Symbol[]; + tryGetMemberInModuleExports(memberName: string, moduleSymbol: Symbol): Symbol | undefined; + getApparentType(type: Type): Type; + getBaseConstraintOfType(type: Type): Type | undefined; + getDefaultFromTypeParameter(type: Type): Type | undefined; + /** + * Depending on the operation performed, it may be appropriate to throw away the checker + * if the cancellation token is triggered. Typically, if it is used for error checking + * and the operation is cancelled, then it should be discarded, otherwise it is safe to keep. + */ + runWithCancellationToken<T>(token: CancellationToken, cb: (checker: TypeChecker) => T): T; + } + enum NodeBuilderFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + GenerateNamesForShadowedTypeParams = 4, + UseStructuralFallback = 8, + ForbidIndexedAccessSymbolReferences = 16, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + UseOnlyExternalAliasing = 128, + SuppressAnyReturnType = 256, + WriteTypeParametersInQualifiedName = 512, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowThisInObjectLiteral = 32768, + AllowQualifedNameInPlaceOfIdentifier = 65536, + AllowAnonymousIdentifier = 131072, + AllowEmptyUnionOrIntersection = 262144, + AllowEmptyTuple = 524288, + AllowUniqueESSymbolType = 1048576, + AllowEmptyIndexInfoType = 2097152, + AllowNodeModulesRelativePaths = 67108864, + IgnoreErrors = 70221824, + InObjectTypeLiteral = 4194304, + InTypeAlias = 8388608, + InInitialEntityName = 16777216, + InReverseMappedType = 33554432 + } + enum TypeFormatFlags { + None = 0, + NoTruncation = 1, + WriteArrayAsGenericType = 2, + UseStructuralFallback = 8, + WriteTypeArgumentsOfSignature = 32, + UseFullyQualifiedType = 64, + SuppressAnyReturnType = 256, + MultilineObjectLiterals = 1024, + WriteClassExpressionAsTypeLiteral = 2048, + UseTypeOfFunction = 4096, + OmitParameterModifiers = 8192, + UseAliasDefinedOutsideCurrentScope = 16384, + AllowUniqueESSymbolType = 1048576, + AddUndefined = 131072, + WriteArrowStyleSignature = 262144, + InArrayType = 524288, + InElementType = 2097152, + InFirstTypeArgument = 4194304, + InTypeAlias = 8388608, + /** @deprecated */ WriteOwnNameForAnyLike = 0, + NodeBuilderFlagsMask = 9469291 + } + enum SymbolFormatFlags { + None = 0, + WriteTypeParametersOrArguments = 1, + UseOnlyExternalAliasing = 2, + AllowAnyNodeKind = 4, + UseAliasDefinedOutsideCurrentScope = 8 + } + enum TypePredicateKind { + This = 0, + Identifier = 1 + } + interface TypePredicateBase { + kind: TypePredicateKind; + type: Type; + } + interface ThisTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.This; + } + interface IdentifierTypePredicate extends TypePredicateBase { + kind: TypePredicateKind.Identifier; + parameterName: string; + parameterIndex: number; + } + type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + enum SymbolFlags { + None = 0, + FunctionScopedVariable = 1, + BlockScopedVariable = 2, + Property = 4, + EnumMember = 8, + Function = 16, + Class = 32, + Interface = 64, + ConstEnum = 128, + RegularEnum = 256, + ValueModule = 512, + NamespaceModule = 1024, + TypeLiteral = 2048, + ObjectLiteral = 4096, + Method = 8192, + Constructor = 16384, + GetAccessor = 32768, + SetAccessor = 65536, + Signature = 131072, + TypeParameter = 262144, + TypeAlias = 524288, + ExportValue = 1048576, + Alias = 2097152, + Prototype = 4194304, + ExportStar = 8388608, + Optional = 16777216, + Transient = 33554432, + Assignment = 67108864, + ModuleExports = 134217728, + Enum = 384, + Variable = 3, + Value = 67220415, + Type = 67897832, + Namespace = 1920, + Module = 1536, + Accessor = 98304, + FunctionScopedVariableExcludes = 67220414, + BlockScopedVariableExcludes = 67220415, + ParameterExcludes = 67220415, + PropertyExcludes = 0, + EnumMemberExcludes = 68008959, + FunctionExcludes = 67219887, + ClassExcludes = 68008383, + InterfaceExcludes = 67897736, + RegularEnumExcludes = 68008191, + ConstEnumExcludes = 68008831, + ValueModuleExcludes = 110735, + NamespaceModuleExcludes = 0, + MethodExcludes = 67212223, + GetAccessorExcludes = 67154879, + SetAccessorExcludes = 67187647, + TypeParameterExcludes = 67635688, + TypeAliasExcludes = 67897832, + AliasExcludes = 2097152, + ModuleMember = 2623475, + ExportHasLocal = 944, + BlockScoped = 418, + PropertyOrAccessor = 98308, + ClassMember = 106500 + } + interface Symbol { + flags: SymbolFlags; + escapedName: __String; + declarations: Declaration[]; + valueDeclaration: Declaration; + members?: SymbolTable; + exports?: SymbolTable; + globalExports?: SymbolTable; + } + enum InternalSymbolName { + Call = "__call", + Constructor = "__constructor", + New = "__new", + Index = "__index", + ExportStar = "__export", + Global = "__global", + Missing = "__missing", + Type = "__type", + Object = "__object", + JSXAttributes = "__jsxAttributes", + Class = "__class", + Function = "__function", + Computed = "__computed", + Resolving = "__resolving__", + ExportEquals = "export=", + Default = "default", + This = "this" + } + /** + * This represents a string whose leading underscore have been escaped by adding extra leading underscores. + * The shape of this brand is rather unique compared to others we've used. + * Instead of just an intersection of a string and an object, it is that union-ed + * with an intersection of void and an object. This makes it wholly incompatible + * with a normal string (which is good, it cannot be misused on assignment or on usage), + * while still being comparable with a normal string via === (also good) and castable from a string. + */ + type __String = (string & { + __escapedIdentifier: void; + }) | (void & { + __escapedIdentifier: void; + }) | InternalSymbolName; + /** ReadonlyMap where keys are `__String`s. */ + interface ReadonlyUnderscoreEscapedMap<T> { + get(key: __String): T | undefined; + has(key: __String): boolean; + forEach(action: (value: T, key: __String) => void): void; + readonly size: number; + keys(): Iterator<__String>; + values(): Iterator<T>; + entries(): Iterator<[__String, T]>; + } + /** Map where keys are `__String`s. */ + interface UnderscoreEscapedMap<T> extends ReadonlyUnderscoreEscapedMap<T> { + set(key: __String, value: T): this; + delete(key: __String): boolean; + clear(): void; + } + /** SymbolTable based on ES6 Map interface. */ + type SymbolTable = UnderscoreEscapedMap<Symbol>; + enum TypeFlags { + Any = 1, + Unknown = 2, + String = 4, + Number = 8, + Boolean = 16, + Enum = 32, + BigInt = 64, + StringLiteral = 128, + NumberLiteral = 256, + BooleanLiteral = 512, + EnumLiteral = 1024, + BigIntLiteral = 2048, + ESSymbol = 4096, + UniqueESSymbol = 8192, + Void = 16384, + Undefined = 32768, + Null = 65536, + Never = 131072, + TypeParameter = 262144, + Object = 524288, + Union = 1048576, + Intersection = 2097152, + Index = 4194304, + IndexedAccess = 8388608, + Conditional = 16777216, + Substitution = 33554432, + NonPrimitive = 67108864, + Literal = 2944, + Unit = 109440, + StringOrNumberLiteral = 384, + PossiblyFalsy = 117724, + StringLike = 132, + NumberLike = 296, + BigIntLike = 2112, + BooleanLike = 528, + EnumLike = 1056, + ESSymbolLike = 12288, + VoidLike = 49152, + UnionOrIntersection = 3145728, + StructuredType = 3670016, + TypeVariable = 8650752, + InstantiableNonPrimitive = 58982400, + InstantiablePrimitive = 4194304, + Instantiable = 63176704, + StructuredOrInstantiable = 66846720, + Narrowable = 133970943, + NotUnionOrUnit = 67637251 + } + type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression; + interface Type { + flags: TypeFlags; + symbol: Symbol; + pattern?: DestructuringPattern; + aliasSymbol?: Symbol; + aliasTypeArguments?: ReadonlyArray<Type>; + } + interface LiteralType extends Type { + value: string | number | PseudoBigInt; + freshType: LiteralType; + regularType: LiteralType; + } + interface UniqueESSymbolType extends Type { + symbol: Symbol; + } + interface StringLiteralType extends LiteralType { + value: string; + } + interface NumberLiteralType extends LiteralType { + value: number; + } + interface BigIntLiteralType extends LiteralType { + value: PseudoBigInt; + } + interface EnumType extends Type { + } + enum ObjectFlags { + Class = 1, + Interface = 2, + Reference = 4, + Tuple = 8, + Anonymous = 16, + Mapped = 32, + Instantiated = 64, + ObjectLiteral = 128, + EvolvingArray = 256, + ObjectLiteralPatternWithComputedProperties = 512, + ContainsSpread = 1024, + ReverseMapped = 2048, + JsxAttributes = 4096, + MarkerType = 8192, + JSLiteral = 16384, + FreshLiteral = 32768, + ClassOrInterface = 3 + } + interface ObjectType extends Type { + objectFlags: ObjectFlags; + } + /** Class and interface types (ObjectFlags.Class and ObjectFlags.Interface). */ + interface InterfaceType extends ObjectType { + typeParameters: TypeParameter[] | undefined; + outerTypeParameters: TypeParameter[] | undefined; + localTypeParameters: TypeParameter[] | undefined; + thisType: TypeParameter | undefined; + } + type BaseType = ObjectType | IntersectionType; + interface InterfaceTypeWithDeclaredMembers extends InterfaceType { + declaredProperties: Symbol[]; + declaredCallSignatures: Signature[]; + declaredConstructSignatures: Signature[]; + declaredStringIndexInfo?: IndexInfo; + declaredNumberIndexInfo?: IndexInfo; + } + /** + * Type references (ObjectFlags.Reference). When a class or interface has type parameters or + * a "this" type, references to the class or interface are made using type references. The + * typeArguments property specifies the types to substitute for the type parameters of the + * class or interface and optionally includes an extra element that specifies the type to + * substitute for "this" in the resulting instantiation. When no extra argument is present, + * the type reference itself is substituted for "this". The typeArguments property is undefined + * if the class or interface has no type parameters and the reference isn't specifying an + * explicit "this" argument. + */ + interface TypeReference extends ObjectType { + target: GenericType; + typeArguments?: ReadonlyArray<Type>; + } + interface GenericType extends InterfaceType, TypeReference { + } + interface TupleType extends GenericType { + minLength: number; + hasRestElement: boolean; + associatedNames?: __String[]; + } + interface TupleTypeReference extends TypeReference { + target: TupleType; + } + interface UnionOrIntersectionType extends Type { + types: Type[]; + } + interface UnionType extends UnionOrIntersectionType { + } + interface IntersectionType extends UnionOrIntersectionType { + } + type StructuredType = ObjectType | UnionType | IntersectionType; + interface EvolvingArrayType extends ObjectType { + elementType: Type; + finalArrayType?: Type; + } + interface InstantiableType extends Type { + } + interface TypeParameter extends InstantiableType { + } + interface IndexedAccessType extends InstantiableType { + objectType: Type; + indexType: Type; + constraint?: Type; + simplified?: Type; + } + type TypeVariable = TypeParameter | IndexedAccessType; + interface IndexType extends InstantiableType { + type: InstantiableType | UnionOrIntersectionType; + } + interface ConditionalRoot { + node: ConditionalTypeNode; + checkType: Type; + extendsType: Type; + trueType: Type; + falseType: Type; + isDistributive: boolean; + inferTypeParameters?: TypeParameter[]; + outerTypeParameters?: TypeParameter[]; + instantiations?: Map<Type>; + aliasSymbol?: Symbol; + aliasTypeArguments?: Type[]; + } + interface ConditionalType extends InstantiableType { + root: ConditionalRoot; + checkType: Type; + extendsType: Type; + resolvedTrueType?: Type; + resolvedFalseType?: Type; + } + interface SubstitutionType extends InstantiableType { + typeVariable: TypeVariable; + substitute: Type; + } + enum SignatureKind { + Call = 0, + Construct = 1 + } + interface Signature { + declaration?: SignatureDeclaration | JSDocSignature; + typeParameters?: ReadonlyArray<TypeParameter>; + parameters: ReadonlyArray<Symbol>; + } + enum IndexKind { + String = 0, + Number = 1 + } + interface IndexInfo { + type: Type; + isReadonly: boolean; + declaration?: IndexSignatureDeclaration; + } + enum InferencePriority { + NakedTypeVariable = 1, + HomomorphicMappedType = 2, + MappedTypeConstraint = 4, + ReturnType = 8, + LiteralKeyof = 16, + NoConstraints = 32, + AlwaysStrict = 64, + PriorityImpliesCombination = 28 + } + /** @deprecated Use FileExtensionInfo instead. */ + type JsFileExtensionInfo = FileExtensionInfo; + interface FileExtensionInfo { + extension: string; + isMixedContent: boolean; + scriptKind?: ScriptKind; + } + interface DiagnosticMessage { + key: string; + category: DiagnosticCategory; + code: number; + message: string; + reportsUnnecessary?: {}; + } + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ + interface DiagnosticMessageChain { + messageText: string; + category: DiagnosticCategory; + code: number; + next?: DiagnosticMessageChain; + } + interface Diagnostic extends DiagnosticRelatedInformation { + /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */ + reportsUnnecessary?: {}; + source?: string; + relatedInformation?: DiagnosticRelatedInformation[]; + } + interface DiagnosticRelatedInformation { + category: DiagnosticCategory; + code: number; + file: SourceFile | undefined; + start: number | undefined; + length: number | undefined; + messageText: string | DiagnosticMessageChain; + } + interface DiagnosticWithLocation extends Diagnostic { + file: SourceFile; + start: number; + length: number; + } + enum DiagnosticCategory { + Warning = 0, + Error = 1, + Suggestion = 2, + Message = 3 + } + enum ModuleResolutionKind { + Classic = 1, + NodeJs = 2 + } + interface PluginImport { + name: string; + } + interface ProjectReference { + /** A normalized path on disk */ + path: string; + /** The path as the user originally wrote it */ + originalPath?: string; + /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ + prepend?: boolean; + /** True if it is intended that this reference form a circularity */ + circular?: boolean; + } + type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined; + interface CompilerOptions { + allowJs?: boolean; + allowSyntheticDefaultImports?: boolean; + allowUnreachableCode?: boolean; + allowUnusedLabels?: boolean; + alwaysStrict?: boolean; + baseUrl?: string; + charset?: string; + checkJs?: boolean; + declaration?: boolean; + declarationMap?: boolean; + emitDeclarationOnly?: boolean; + declarationDir?: string; + disableSizeLimit?: boolean; + downlevelIteration?: boolean; + emitBOM?: boolean; + emitDecoratorMetadata?: boolean; + experimentalDecorators?: boolean; + forceConsistentCasingInFileNames?: boolean; + importHelpers?: boolean; + inlineSourceMap?: boolean; + inlineSources?: boolean; + isolatedModules?: boolean; + jsx?: JsxEmit; + keyofStringsOnly?: boolean; + lib?: string[]; + locale?: string; + mapRoot?: string; + maxNodeModuleJsDepth?: number; + module?: ModuleKind; + moduleResolution?: ModuleResolutionKind; + newLine?: NewLineKind; + noEmit?: boolean; + noEmitHelpers?: boolean; + noEmitOnError?: boolean; + noErrorTruncation?: boolean; + noFallthroughCasesInSwitch?: boolean; + noImplicitAny?: boolean; + noImplicitReturns?: boolean; + noImplicitThis?: boolean; + noStrictGenericChecks?: boolean; + noUnusedLocals?: boolean; + noUnusedParameters?: boolean; + noImplicitUseStrict?: boolean; + noLib?: boolean; + noResolve?: boolean; + out?: string; + outDir?: string; + outFile?: string; + paths?: MapLike<string[]>; + preserveConstEnums?: boolean; + preserveSymlinks?: boolean; + project?: string; + reactNamespace?: string; + jsxFactory?: string; + composite?: boolean; + removeComments?: boolean; + rootDir?: string; + rootDirs?: string[]; + skipLibCheck?: boolean; + skipDefaultLibCheck?: boolean; + sourceMap?: boolean; + sourceRoot?: string; + strict?: boolean; + strictFunctionTypes?: boolean; + strictBindCallApply?: boolean; + strictNullChecks?: boolean; + strictPropertyInitialization?: boolean; + stripInternal?: boolean; + suppressExcessPropertyErrors?: boolean; + suppressImplicitAnyIndexErrors?: boolean; + target?: ScriptTarget; + traceResolution?: boolean; + resolveJsonModule?: boolean; + types?: string[]; + /** Paths used to compute primary types search locations */ + typeRoots?: string[]; + esModuleInterop?: boolean; + [option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined; + } + interface TypeAcquisition { + enableAutoDiscovery?: boolean; + enable?: boolean; + include?: string[]; + exclude?: string[]; + [option: string]: string[] | boolean | undefined; + } + enum ModuleKind { + None = 0, + CommonJS = 1, + AMD = 2, + UMD = 3, + System = 4, + ES2015 = 5, + ESNext = 6 + } + enum JsxEmit { + None = 0, + Preserve = 1, + React = 2, + ReactNative = 3 + } + enum NewLineKind { + CarriageReturnLineFeed = 0, + LineFeed = 1 + } + interface LineAndCharacter { + /** 0-based. */ + line: number; + character: number; + } + enum ScriptKind { + Unknown = 0, + JS = 1, + JSX = 2, + TS = 3, + TSX = 4, + External = 5, + JSON = 6, + /** + * Used on extensions that doesn't define the ScriptKind but the content defines it. + * Deferred extensions are going to be included in all project contexts. + */ + Deferred = 7 + } + enum ScriptTarget { + ES3 = 0, + ES5 = 1, + ES2015 = 2, + ES2016 = 3, + ES2017 = 4, + ES2018 = 5, + ESNext = 6, + JSON = 100, + Latest = 6 + } + enum LanguageVariant { + Standard = 0, + JSX = 1 + } + /** Either a parsed command line or a parsed tsconfig.json */ + interface ParsedCommandLine { + options: CompilerOptions; + typeAcquisition?: TypeAcquisition; + fileNames: string[]; + projectReferences?: ReadonlyArray<ProjectReference>; + raw?: any; + errors: Diagnostic[]; + wildcardDirectories?: MapLike<WatchDirectoryFlags>; + compileOnSave?: boolean; + } + enum WatchDirectoryFlags { + None = 0, + Recursive = 1 + } + interface ExpandResult { + fileNames: string[]; + wildcardDirectories: MapLike<WatchDirectoryFlags>; + } + interface CreateProgramOptions { + rootNames: ReadonlyArray<string>; + options: CompilerOptions; + projectReferences?: ReadonlyArray<ProjectReference>; + host?: CompilerHost; + oldProgram?: Program; + configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>; + } + interface ModuleResolutionHost { + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + trace?(s: string): void; + directoryExists?(directoryName: string): boolean; + /** + * Resolve a symbolic link. + * @see https://nodejs.org/api/fs.html#fs_fs_realpathsync_path_options + */ + realpath?(path: string): string; + getCurrentDirectory?(): string; + getDirectories?(path: string): string[]; + } + /** + * Represents the result of module resolution. + * Module resolution will pick up tsx/jsx/js files even if '--jsx' and '--allowJs' are turned off. + * The Program will then filter results based on these flags. + * + * Prefer to return a `ResolvedModuleFull` so that the file type does not have to be inferred. + */ + interface ResolvedModule { + /** Path of the file the module was resolved to. */ + resolvedFileName: string; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + /** + * ResolvedModule with an explicitly provided `extension` property. + * Prefer this over `ResolvedModule`. + * If changing this, remember to change `moduleResolutionIsEqualTo`. + */ + interface ResolvedModuleFull extends ResolvedModule { + /** + * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. + * This is optional for backwards-compatibility, but will be added if not provided. + */ + extension: Extension; + packageId?: PackageId; + } + /** + * Unique identifier with a package name and version. + * If changing this, remember to change `packageIdIsEqual`. + */ + interface PackageId { + /** + * Name of the package. + * Should not include `@types`. + * If accessing a non-index file, this should include its name e.g. "foo/bar". + */ + name: string; + /** + * Name of a submodule within this package. + * May be "". + */ + subModuleName: string; + /** Version of the package, e.g. "1.2.3" */ + version: string; + } + enum Extension { + Ts = ".ts", + Tsx = ".tsx", + Dts = ".d.ts", + Js = ".js", + Jsx = ".jsx", + Json = ".json" + } + interface ResolvedModuleWithFailedLookupLocations { + readonly resolvedModule: ResolvedModuleFull | undefined; + } + interface ResolvedTypeReferenceDirective { + primary: boolean; + resolvedFileName: string | undefined; + packageId?: PackageId; + /** True if `resolvedFileName` comes from `node_modules`. */ + isExternalLibraryImport?: boolean; + } + interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations { + readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined; + readonly failedLookupLocations: ReadonlyArray<string>; + } + interface CompilerHost extends ModuleResolutionHost { + getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getSourceFileByPath?(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined; + getCancellationToken?(): CancellationToken; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + writeFile: WriteFileCallback; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + getCanonicalFileName(fileName: string): string; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + readDirectory?(rootDir: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string> | undefined, includes: ReadonlyArray<string>, depth?: number): string[]; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** + * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files + */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getEnvironmentVariable?(name: string): string | undefined; + createHash?(data: string): string; + } + interface SourceMapRange extends TextRange { + source?: SourceMapSource; + } + interface SourceMapSource { + fileName: string; + text: string; + skipTrivia?: (pos: number) => number; + } + enum EmitFlags { + None = 0, + SingleLine = 1, + AdviseOnEmitNode = 2, + NoSubstitution = 4, + CapturesThis = 8, + NoLeadingSourceMap = 16, + NoTrailingSourceMap = 32, + NoSourceMap = 48, + NoNestedSourceMaps = 64, + NoTokenLeadingSourceMaps = 128, + NoTokenTrailingSourceMaps = 256, + NoTokenSourceMaps = 384, + NoLeadingComments = 512, + NoTrailingComments = 1024, + NoComments = 1536, + NoNestedComments = 2048, + HelperName = 4096, + ExportName = 8192, + LocalName = 16384, + InternalName = 32768, + Indented = 65536, + NoIndentation = 131072, + AsyncFunctionBody = 262144, + ReuseTempVariableScope = 524288, + CustomPrologue = 1048576, + NoHoisting = 2097152, + HasEndOfDeclarationMarker = 4194304, + Iterator = 8388608, + NoAsciiEscaping = 16777216 + } + interface EmitHelper { + readonly name: string; + readonly scoped: boolean; + readonly text: string | ((node: EmitHelperUniqueNameCallback) => string); + readonly priority?: number; + } + type EmitHelperUniqueNameCallback = (name: string) => string; + enum EmitHint { + SourceFile = 0, + Expression = 1, + IdentifierName = 2, + MappedTypeParameter = 3, + Unspecified = 4, + EmbeddedStatement = 5 + } + interface TransformationContext { + /** Gets the compiler options supplied to the transformer. */ + getCompilerOptions(): CompilerOptions; + /** Starts a new lexical environment. */ + startLexicalEnvironment(): void; + /** Suspends the current lexical environment, usually after visiting a parameter list. */ + suspendLexicalEnvironment(): void; + /** Resumes a suspended lexical environment, usually before visiting a function body. */ + resumeLexicalEnvironment(): void; + /** Ends a lexical environment, returning any declarations. */ + endLexicalEnvironment(): Statement[] | undefined; + /** Hoists a function declaration to the containing scope. */ + hoistFunctionDeclaration(node: FunctionDeclaration): void; + /** Hoists a variable declaration to the containing scope. */ + hoistVariableDeclaration(node: Identifier): void; + /** Records a request for a non-scoped emit helper in the current context. */ + requestEmitHelper(helper: EmitHelper): void; + /** Gets and resets the requested non-scoped emit helpers. */ + readEmitHelpers(): EmitHelper[] | undefined; + /** Enables expression substitutions in the pretty printer for the provided SyntaxKind. */ + enableSubstitution(kind: SyntaxKind): void; + /** Determines whether expression substitutions are enabled for the provided node. */ + isSubstitutionEnabled(node: Node): boolean; + /** + * Hook used by transformers to substitute expressions just before they + * are emitted by the pretty printer. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onSubstituteNode: (hint: EmitHint, node: Node) => Node; + /** + * Enables before/after emit notifications in the pretty printer for the provided + * SyntaxKind. + */ + enableEmitNotification(kind: SyntaxKind): void; + /** + * Determines whether before/after emit notifications should be raised in the pretty + * printer when it emits a node. + */ + isEmitNotificationEnabled(node: Node): boolean; + /** + * Hook used to allow transformers to capture state before or after + * the printer emits a node. + * + * NOTE: Transformation hooks should only be modified during `Transformer` initialization, + * before returning the `NodeTransformer` callback. + */ + onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void; + } + interface TransformationResult<T extends Node> { + /** Gets the transformed source files. */ + transformed: T[]; + /** Gets diagnostics for the transformation. */ + diagnostics?: DiagnosticWithLocation[]; + /** + * Gets a substitute for a node, if one is available; otherwise, returns the original node. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to substitute. + */ + substituteNode(hint: EmitHint, node: Node): Node; + /** + * Emits a node with possible notification. + * + * @param hint A hint as to the intended usage of the node. + * @param node The node to emit. + * @param emitCallback A callback used to emit the node. + */ + emitNodeWithNotification(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void): void; + /** + * Clean up EmitNode entries on any parse-tree nodes. + */ + dispose(): void; + } + /** + * A function that is used to initialize and return a `Transformer` callback, which in turn + * will be used to transform one or more nodes. + */ + type TransformerFactory<T extends Node> = (context: TransformationContext) => Transformer<T>; + /** + * A function that transforms a node. + */ + type Transformer<T extends Node> = (node: T) => T; + /** + * A function that accepts and possibly transforms a node. + */ + type Visitor = (node: Node) => VisitResult<Node>; + type VisitResult<T extends Node> = T | T[] | undefined; + interface Printer { + /** + * Print a node and its subtree as-is, without any emit transformations. + * @param hint A value indicating the purpose of a node. This is primarily used to + * distinguish between an `Identifier` used in an expression position, versus an + * `Identifier` used as an `IdentifierName` as part of a declaration. For most nodes you + * should just pass `Unspecified`. + * @param node The node to print. The node and its subtree are printed as-is, without any + * emit transformations. + * @param sourceFile A source file that provides context for the node. The source text of + * the file is used to emit the original source content for literals and identifiers, while + * the identifiers of the source file are used when generating unique names to avoid + * collisions. + */ + printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string; + /** + * Prints a list of nodes using the given format flags + */ + printList<T extends Node>(format: ListFormat, list: NodeArray<T>, sourceFile: SourceFile): string; + /** + * Prints a source file as-is, without any emit transformations. + */ + printFile(sourceFile: SourceFile): string; + /** + * Prints a bundle of source files as-is, without any emit transformations. + */ + printBundle(bundle: Bundle): string; + } + interface PrintHandlers { + /** + * A hook used by the Printer when generating unique names to avoid collisions with + * globally defined names that exist outside of the current source file. + */ + hasGlobalName?(name: string): boolean; + /** + * A hook used by the Printer to provide notifications prior to emitting a node. A + * compatible implementation **must** invoke `emitCallback` with the provided `hint` and + * `node` values. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @param emitCallback A callback that, when invoked, will emit the node. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * onEmitNode(hint, node, emitCallback) { + * // set up or track state prior to emitting the node... + * emitCallback(hint, node); + * // restore state after emitting the node... + * } + * }); + * ``` + */ + onEmitNode?(hint: EmitHint, node: Node | undefined, emitCallback: (hint: EmitHint, node: Node | undefined) => void): void; + /** + * A hook used by the Printer to perform just-in-time substitution of a node. This is + * primarily used by node transformations that need to substitute one node for another, + * such as replacing `myExportedVar` with `exports.myExportedVar`. + * @param hint A hint indicating the intended purpose of the node. + * @param node The node to emit. + * @example + * ```ts + * var printer = createPrinter(printerOptions, { + * substituteNode(hint, node) { + * // perform substitution if necessary... + * return node; + * } + * }); + * ``` + */ + substituteNode?(hint: EmitHint, node: Node): Node; + } + interface PrinterOptions { + removeComments?: boolean; + newLine?: NewLineKind; + omitTrailingSemicolon?: boolean; + noEmitHelpers?: boolean; + } + interface GetEffectiveTypeRootsHost { + directoryExists?(directoryName: string): boolean; + getCurrentDirectory?(): string; + } + interface TextSpan { + start: number; + length: number; + } + interface TextChangeRange { + span: TextSpan; + newLength: number; + } + interface SyntaxList extends Node { + _children: Node[]; + } + enum ListFormat { + None = 0, + SingleLine = 0, + MultiLine = 1, + PreserveLines = 2, + LinesMask = 3, + NotDelimited = 0, + BarDelimited = 4, + AmpersandDelimited = 8, + CommaDelimited = 16, + AsteriskDelimited = 32, + DelimitersMask = 60, + AllowTrailingComma = 64, + Indented = 128, + SpaceBetweenBraces = 256, + SpaceBetweenSiblings = 512, + Braces = 1024, + Parenthesis = 2048, + AngleBrackets = 4096, + SquareBrackets = 8192, + BracketsMask = 15360, + OptionalIfUndefined = 16384, + OptionalIfEmpty = 32768, + Optional = 49152, + PreferNewLine = 65536, + NoTrailingNewLine = 131072, + NoInterveningComments = 262144, + NoSpaceIfEmpty = 524288, + SingleElement = 1048576, + Modifiers = 262656, + HeritageClauses = 512, + SingleLineTypeLiteralMembers = 768, + MultiLineTypeLiteralMembers = 32897, + TupleTypeElements = 528, + UnionTypeConstituents = 516, + IntersectionTypeConstituents = 520, + ObjectBindingPatternElements = 525136, + ArrayBindingPatternElements = 524880, + ObjectLiteralExpressionProperties = 526226, + ArrayLiteralExpressionElements = 8914, + CommaListElements = 528, + CallExpressionArguments = 2576, + NewExpressionArguments = 18960, + TemplateExpressionSpans = 262144, + SingleLineBlockStatements = 768, + MultiLineBlockStatements = 129, + VariableDeclarationList = 528, + SingleLineFunctionBodyStatements = 768, + MultiLineFunctionBodyStatements = 1, + ClassHeritageClauses = 0, + ClassMembers = 129, + InterfaceMembers = 129, + EnumMembers = 145, + CaseBlockClauses = 129, + NamedImportsOrExportsElements = 525136, + JsxElementOrFragmentChildren = 262144, + JsxElementAttributes = 262656, + CaseOrDefaultClauseStatements = 163969, + HeritageClauseTypes = 528, + SourceFileStatements = 131073, + Decorators = 49153, + TypeArguments = 53776, + TypeParameters = 53776, + Parameters = 2576, + IndexSignatureParameters = 8848, + JSDocComment = 33 + } + interface UserPreferences { + readonly disableSuggestions?: boolean; + readonly quotePreference?: "double" | "single"; + readonly includeCompletionsForModuleExports?: boolean; + readonly includeCompletionsWithInsertText?: boolean; + readonly importModuleSpecifierPreference?: "relative" | "non-relative"; + /** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */ + readonly importModuleSpecifierEnding?: "minimal" | "index" | "js"; + readonly allowTextChangesInNewFiles?: boolean; + } + /** Represents a bigint literal value without requiring bigint support */ + interface PseudoBigInt { + negative: boolean; + base10Value: string; + } +} +declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; +declare function clearTimeout(handle: any): void; +declare namespace ts { + enum FileWatcherEventKind { + Created = 0, + Changed = 1, + Deleted = 2 + } + type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void; + type DirectoryWatcherCallback = (fileName: string) => void; + interface System { + args: string[]; + newLine: string; + useCaseSensitiveFileNames: boolean; + write(s: string): void; + writeOutputIsTTY?(): boolean; + readFile(path: string, encoding?: string): string | undefined; + getFileSize?(path: string): number; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + /** + * @pollingInterval - this parameter is used in polling-based watchers and ignored in watchers that + * use native OS file watching + */ + watchFile?(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + resolvePath(path: string): string; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + getExecutingFilePath(): string; + getCurrentDirectory(): string; + getDirectories(path: string): string[]; + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + getModifiedTime?(path: string): Date | undefined; + setModifiedTime?(path: string, time: Date): void; + deleteFile?(path: string): void; + /** + * A good implementation is node.js' `crypto.createHash`. (https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) + */ + createHash?(data: string): string; + /** This must be cryptographically secure. Only implement this method using `crypto.createHash("sha256")`. */ + createSHA256Hash?(data: string): string; + getMemoryUsage?(): number; + exit(exitCode?: number): void; + realpath?(path: string): string; + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + clearTimeout?(timeoutId: any): void; + clearScreen?(): void; + base64decode?(input: string): string; + base64encode?(input: string): string; + } + interface FileWatcher { + close(): void; + } + function getNodeMajorVersion(): number | undefined; + let sys: System; +} +declare namespace ts { + type ErrorCallback = (message: DiagnosticMessage, length: number) => void; + interface Scanner { + getStartPos(): number; + getToken(): SyntaxKind; + getTextPos(): number; + getTokenPos(): number; + getTokenText(): string; + getTokenValue(): string; + hasExtendedUnicodeEscape(): boolean; + hasPrecedingLineBreak(): boolean; + isIdentifier(): boolean; + isReservedWord(): boolean; + isUnterminated(): boolean; + reScanGreaterToken(): SyntaxKind; + reScanSlashToken(): SyntaxKind; + reScanTemplateToken(): SyntaxKind; + scanJsxIdentifier(): SyntaxKind; + scanJsxAttributeValue(): SyntaxKind; + reScanJsxToken(): JsxTokenSyntaxKind; + scanJsxToken(): JsxTokenSyntaxKind; + scanJSDocToken(): JsDocSyntaxKind; + scan(): SyntaxKind; + getText(): string; + setText(text: string | undefined, start?: number, length?: number): void; + setOnError(onError: ErrorCallback | undefined): void; + setScriptTarget(scriptTarget: ScriptTarget): void; + setLanguageVariant(variant: LanguageVariant): void; + setTextPos(textPos: number): void; + lookAhead<T>(callback: () => T): T; + scanRange<T>(start: number, length: number, callback: () => T): T; + tryScan<T>(callback: () => T): T; + } + function tokenToString(t: SyntaxKind): string | undefined; + function getPositionOfLineAndCharacter(sourceFile: SourceFileLike, line: number, character: number): number; + function getLineAndCharacterOfPosition(sourceFile: SourceFileLike, position: number): LineAndCharacter; + function isWhiteSpaceLike(ch: number): boolean; + /** Does not include line breaks. For that, see isWhiteSpaceLike. */ + function isWhiteSpaceSingleLine(ch: number): boolean; + function isLineBreak(ch: number): boolean; + function couldStartTrivia(text: string, pos: number): boolean; + function forEachLeadingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function forEachTrailingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined; + function forEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined; + function reduceEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function reduceEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined; + function getLeadingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + function getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined; + /** Optionally, get the shebang */ + function getShebang(text: string): string | undefined; + function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined): boolean; + function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner; +} +declare namespace ts { + function isExternalModuleNameRelative(moduleName: string): boolean; + function sortAndDeduplicateDiagnostics<T extends Diagnostic>(diagnostics: ReadonlyArray<T>): SortedReadonlyArray<T>; +} +declare namespace ts { + function getDefaultLibFileName(options: CompilerOptions): string; + function textSpanEnd(span: TextSpan): number; + function textSpanIsEmpty(span: TextSpan): boolean; + function textSpanContainsPosition(span: TextSpan, position: number): boolean; + function textSpanContainsTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlapsWith(span: TextSpan, other: TextSpan): boolean; + function textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function textSpanIntersectsWithTextSpan(span: TextSpan, other: TextSpan): boolean; + function textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean; + function decodedTextSpanIntersectsWith(start1: number, length1: number, start2: number, length2: number): boolean; + function textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean; + function textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan | undefined; + function createTextSpan(start: number, length: number): TextSpan; + function createTextSpanFromBounds(start: number, end: number): TextSpan; + function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; + function textChangeRangeIsUnchanged(range: TextChangeRange): boolean; + function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; + let unchangedTextChangeRange: TextChangeRange; + /** + * Called to merge all the changes that occurred across several versions of a script snapshot + * into a single change. i.e. if a user keeps making successive edits to a script we will + * have a text change from V1 to V2, V2 to V3, ..., Vn. + * + * This function will then merge those changes into a single change range valid between V1 and + * Vn. + */ + function collapseTextChangeRangesAcrossMultipleVersions(changes: ReadonlyArray<TextChangeRange>): TextChangeRange; + function getTypeParameterOwner(d: Declaration): Declaration | undefined; + type ParameterPropertyDeclaration = ParameterDeclaration & { + parent: ConstructorDeclaration; + name: Identifier; + }; + function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration; + function isEmptyBindingPattern(node: BindingName): node is BindingPattern; + function isEmptyBindingElement(node: BindingElement): boolean; + function walkUpBindingElementsAndPatterns(binding: BindingElement): VariableDeclaration | ParameterDeclaration; + function getCombinedModifierFlags(node: Declaration): ModifierFlags; + function getCombinedNodeFlags(node: Node): NodeFlags; + /** + * Checks to see if the locale is in the appropriate format, + * and if it is, attempts to set the appropriate language. + */ + function validateLocaleAndSetLanguage(locale: string, sys: { + getExecutingFilePath(): string; + resolvePath(path: string): string; + fileExists(fileName: string): boolean; + readFile(fileName: string): string | undefined; + }, errors?: Push<Diagnostic>): void; + function getOriginalNode(node: Node): Node; + function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T; + function getOriginalNode(node: Node | undefined): Node | undefined; + function getOriginalNode<T extends Node>(node: Node | undefined, nodeTest: (node: Node | undefined) => node is T): T | undefined; + /** + * Gets a value indicating whether a node originated in the parse tree. + * + * @param node The node to test. + */ + function isParseTreeNode(node: Node): boolean; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode(node: Node): Node; + /** + * Gets the original parse tree node for a node. + * + * @param node The original node. + * @param nodeTest A callback used to ensure the correct type of parse tree node is returned. + * @returns The original parse tree node if found; otherwise, undefined. + */ + function getParseTreeNode<T extends Node>(node: Node | undefined, nodeTest?: (node: Node) => node is T): T | undefined; + /** Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' */ + function escapeLeadingUnderscores(identifier: string): __String; + /** + * Remove extra underscore from escaped identifier text content. + * + * @param identifier The escaped identifier text. + * @returns The unescaped identifier text. + */ + function unescapeLeadingUnderscores(identifier: __String): string; + function idText(identifier: Identifier): string; + function symbolName(symbol: Symbol): string; + function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | undefined; + function getNameOfDeclaration(declaration: Declaration | Expression): DeclarationName | undefined; + /** + * Gets the JSDoc parameter tags for the node if present. + * + * @remarks Returns any JSDoc param tag whose name matches the provided + * parameter, whether a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the param + * tag on the containing function expression would be first. + * + * For binding patterns, parameter tags are matched by position. + */ + function getJSDocParameterTags(param: ParameterDeclaration): ReadonlyArray<JSDocParameterTag>; + /** + * Gets the JSDoc type parameter tags for the node if present. + * + * @remarks Returns any JSDoc template tag whose names match the provided + * parameter, whether a template tag on a containing function + * expression, or a template tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are returned first, so in the previous example, the template + * tag on the containing function expression would be first. + */ + function getJSDocTypeParameterTags(param: TypeParameterDeclaration): ReadonlyArray<JSDocTemplateTag>; + /** + * Return true if the node has JSDoc parameter tags. + * + * @remarks Includes parameter tags that are not directly on the node, + * for example on a variable declaration whose initializer is a function expression. + */ + function hasJSDocParameterTags(node: FunctionLikeDeclaration | SignatureDeclaration): boolean; + /** Gets the JSDoc augments tag for the node if present */ + function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined; + /** Gets the JSDoc class tag for the node if present */ + function getJSDocClassTag(node: Node): JSDocClassTag | undefined; + /** Gets the JSDoc enum tag for the node if present */ + function getJSDocEnumTag(node: Node): JSDocEnumTag | undefined; + /** Gets the JSDoc this tag for the node if present */ + function getJSDocThisTag(node: Node): JSDocThisTag | undefined; + /** Gets the JSDoc return tag for the node if present */ + function getJSDocReturnTag(node: Node): JSDocReturnTag | undefined; + /** Gets the JSDoc template tag for the node if present */ + function getJSDocTemplateTag(node: Node): JSDocTemplateTag | undefined; + /** Gets the JSDoc type tag for the node if present and valid */ + function getJSDocTypeTag(node: Node): JSDocTypeTag | undefined; + /** + * Gets the type node for the node if provided via JSDoc. + * + * @remarks The search includes any JSDoc param tag that relates + * to the provided parameter, for example a type tag on the + * parameter itself, or a param tag on a containing function + * expression, or a param tag on a variable declaration whose + * initializer is the containing function. The tags closest to the + * node are examined first, so in the previous example, the type + * tag directly on the node would be returned. + */ + function getJSDocType(node: Node): TypeNode | undefined; + /** + * Gets the return type node for the node if provided via JSDoc return tag or type tag. + * + * @remarks `getJSDocReturnTag` just gets the whole JSDoc tag. This function + * gets the type from inside the braces, after the fat arrow, etc. + */ + function getJSDocReturnType(node: Node): TypeNode | undefined; + /** Get all JSDoc tags related to a node, including those on parent nodes. */ + function getJSDocTags(node: Node): ReadonlyArray<JSDocTag>; + /** Gets all JSDoc tags of a specified kind, or undefined if not present. */ + function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): ReadonlyArray<JSDocTag>; + /** + * Gets the effective type parameters. If the node was parsed in a + * JavaScript file, gets the type parameters from the `@template` tag from JSDoc. + */ + function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): ReadonlyArray<TypeParameterDeclaration>; + function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined; +} +declare namespace ts { + function isNumericLiteral(node: Node): node is NumericLiteral; + function isBigIntLiteral(node: Node): node is BigIntLiteral; + function isStringLiteral(node: Node): node is StringLiteral; + function isJsxText(node: Node): node is JsxText; + function isRegularExpressionLiteral(node: Node): node is RegularExpressionLiteral; + function isNoSubstitutionTemplateLiteral(node: Node): node is NoSubstitutionTemplateLiteral; + function isTemplateHead(node: Node): node is TemplateHead; + function isTemplateMiddle(node: Node): node is TemplateMiddle; + function isTemplateTail(node: Node): node is TemplateTail; + function isIdentifier(node: Node): node is Identifier; + function isQualifiedName(node: Node): node is QualifiedName; + function isComputedPropertyName(node: Node): node is ComputedPropertyName; + function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration; + function isParameter(node: Node): node is ParameterDeclaration; + function isDecorator(node: Node): node is Decorator; + function isPropertySignature(node: Node): node is PropertySignature; + function isPropertyDeclaration(node: Node): node is PropertyDeclaration; + function isMethodSignature(node: Node): node is MethodSignature; + function isMethodDeclaration(node: Node): node is MethodDeclaration; + function isConstructorDeclaration(node: Node): node is ConstructorDeclaration; + function isGetAccessorDeclaration(node: Node): node is GetAccessorDeclaration; + function isSetAccessorDeclaration(node: Node): node is SetAccessorDeclaration; + function isCallSignatureDeclaration(node: Node): node is CallSignatureDeclaration; + function isConstructSignatureDeclaration(node: Node): node is ConstructSignatureDeclaration; + function isIndexSignatureDeclaration(node: Node): node is IndexSignatureDeclaration; + function isTypePredicateNode(node: Node): node is TypePredicateNode; + function isTypeReferenceNode(node: Node): node is TypeReferenceNode; + function isFunctionTypeNode(node: Node): node is FunctionTypeNode; + function isConstructorTypeNode(node: Node): node is ConstructorTypeNode; + function isTypeQueryNode(node: Node): node is TypeQueryNode; + function isTypeLiteralNode(node: Node): node is TypeLiteralNode; + function isArrayTypeNode(node: Node): node is ArrayTypeNode; + function isTupleTypeNode(node: Node): node is TupleTypeNode; + function isUnionTypeNode(node: Node): node is UnionTypeNode; + function isIntersectionTypeNode(node: Node): node is IntersectionTypeNode; + function isConditionalTypeNode(node: Node): node is ConditionalTypeNode; + function isInferTypeNode(node: Node): node is InferTypeNode; + function isParenthesizedTypeNode(node: Node): node is ParenthesizedTypeNode; + function isThisTypeNode(node: Node): node is ThisTypeNode; + function isTypeOperatorNode(node: Node): node is TypeOperatorNode; + function isIndexedAccessTypeNode(node: Node): node is IndexedAccessTypeNode; + function isMappedTypeNode(node: Node): node is MappedTypeNode; + function isLiteralTypeNode(node: Node): node is LiteralTypeNode; + function isImportTypeNode(node: Node): node is ImportTypeNode; + function isObjectBindingPattern(node: Node): node is ObjectBindingPattern; + function isArrayBindingPattern(node: Node): node is ArrayBindingPattern; + function isBindingElement(node: Node): node is BindingElement; + function isArrayLiteralExpression(node: Node): node is ArrayLiteralExpression; + function isObjectLiteralExpression(node: Node): node is ObjectLiteralExpression; + function isPropertyAccessExpression(node: Node): node is PropertyAccessExpression; + function isElementAccessExpression(node: Node): node is ElementAccessExpression; + function isCallExpression(node: Node): node is CallExpression; + function isNewExpression(node: Node): node is NewExpression; + function isTaggedTemplateExpression(node: Node): node is TaggedTemplateExpression; + function isTypeAssertion(node: Node): node is TypeAssertion; + function isParenthesizedExpression(node: Node): node is ParenthesizedExpression; + function skipPartiallyEmittedExpressions(node: Expression): Expression; + function skipPartiallyEmittedExpressions(node: Node): Node; + function isFunctionExpression(node: Node): node is FunctionExpression; + function isArrowFunction(node: Node): node is ArrowFunction; + function isDeleteExpression(node: Node): node is DeleteExpression; + function isTypeOfExpression(node: Node): node is TypeOfExpression; + function isVoidExpression(node: Node): node is VoidExpression; + function isAwaitExpression(node: Node): node is AwaitExpression; + function isPrefixUnaryExpression(node: Node): node is PrefixUnaryExpression; + function isPostfixUnaryExpression(node: Node): node is PostfixUnaryExpression; + function isBinaryExpression(node: Node): node is BinaryExpression; + function isConditionalExpression(node: Node): node is ConditionalExpression; + function isTemplateExpression(node: Node): node is TemplateExpression; + function isYieldExpression(node: Node): node is YieldExpression; + function isSpreadElement(node: Node): node is SpreadElement; + function isClassExpression(node: Node): node is ClassExpression; + function isOmittedExpression(node: Node): node is OmittedExpression; + function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments; + function isAsExpression(node: Node): node is AsExpression; + function isNonNullExpression(node: Node): node is NonNullExpression; + function isMetaProperty(node: Node): node is MetaProperty; + function isTemplateSpan(node: Node): node is TemplateSpan; + function isSemicolonClassElement(node: Node): node is SemicolonClassElement; + function isBlock(node: Node): node is Block; + function isVariableStatement(node: Node): node is VariableStatement; + function isEmptyStatement(node: Node): node is EmptyStatement; + function isExpressionStatement(node: Node): node is ExpressionStatement; + function isIfStatement(node: Node): node is IfStatement; + function isDoStatement(node: Node): node is DoStatement; + function isWhileStatement(node: Node): node is WhileStatement; + function isForStatement(node: Node): node is ForStatement; + function isForInStatement(node: Node): node is ForInStatement; + function isForOfStatement(node: Node): node is ForOfStatement; + function isContinueStatement(node: Node): node is ContinueStatement; + function isBreakStatement(node: Node): node is BreakStatement; + function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement; + function isReturnStatement(node: Node): node is ReturnStatement; + function isWithStatement(node: Node): node is WithStatement; + function isSwitchStatement(node: Node): node is SwitchStatement; + function isLabeledStatement(node: Node): node is LabeledStatement; + function isThrowStatement(node: Node): node is ThrowStatement; + function isTryStatement(node: Node): node is TryStatement; + function isDebuggerStatement(node: Node): node is DebuggerStatement; + function isVariableDeclaration(node: Node): node is VariableDeclaration; + function isVariableDeclarationList(node: Node): node is VariableDeclarationList; + function isFunctionDeclaration(node: Node): node is FunctionDeclaration; + function isClassDeclaration(node: Node): node is ClassDeclaration; + function isInterfaceDeclaration(node: Node): node is InterfaceDeclaration; + function isTypeAliasDeclaration(node: Node): node is TypeAliasDeclaration; + function isEnumDeclaration(node: Node): node is EnumDeclaration; + function isModuleDeclaration(node: Node): node is ModuleDeclaration; + function isModuleBlock(node: Node): node is ModuleBlock; + function isCaseBlock(node: Node): node is CaseBlock; + function isNamespaceExportDeclaration(node: Node): node is NamespaceExportDeclaration; + function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration; + function isImportDeclaration(node: Node): node is ImportDeclaration; + function isImportClause(node: Node): node is ImportClause; + function isNamespaceImport(node: Node): node is NamespaceImport; + function isNamedImports(node: Node): node is NamedImports; + function isImportSpecifier(node: Node): node is ImportSpecifier; + function isExportAssignment(node: Node): node is ExportAssignment; + function isExportDeclaration(node: Node): node is ExportDeclaration; + function isNamedExports(node: Node): node is NamedExports; + function isExportSpecifier(node: Node): node is ExportSpecifier; + function isMissingDeclaration(node: Node): node is MissingDeclaration; + function isExternalModuleReference(node: Node): node is ExternalModuleReference; + function isJsxElement(node: Node): node is JsxElement; + function isJsxSelfClosingElement(node: Node): node is JsxSelfClosingElement; + function isJsxOpeningElement(node: Node): node is JsxOpeningElement; + function isJsxClosingElement(node: Node): node is JsxClosingElement; + function isJsxFragment(node: Node): node is JsxFragment; + function isJsxOpeningFragment(node: Node): node is JsxOpeningFragment; + function isJsxClosingFragment(node: Node): node is JsxClosingFragment; + function isJsxAttribute(node: Node): node is JsxAttribute; + function isJsxAttributes(node: Node): node is JsxAttributes; + function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute; + function isJsxExpression(node: Node): node is JsxExpression; + function isCaseClause(node: Node): node is CaseClause; + function isDefaultClause(node: Node): node is DefaultClause; + function isHeritageClause(node: Node): node is HeritageClause; + function isCatchClause(node: Node): node is CatchClause; + function isPropertyAssignment(node: Node): node is PropertyAssignment; + function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment; + function isSpreadAssignment(node: Node): node is SpreadAssignment; + function isEnumMember(node: Node): node is EnumMember; + function isSourceFile(node: Node): node is SourceFile; + function isBundle(node: Node): node is Bundle; + function isUnparsedSource(node: Node): node is UnparsedSource; + function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; + function isJSDocAllType(node: JSDocAllType): node is JSDocAllType; + function isJSDocUnknownType(node: Node): node is JSDocUnknownType; + function isJSDocNullableType(node: Node): node is JSDocNullableType; + function isJSDocNonNullableType(node: Node): node is JSDocNonNullableType; + function isJSDocOptionalType(node: Node): node is JSDocOptionalType; + function isJSDocFunctionType(node: Node): node is JSDocFunctionType; + function isJSDocVariadicType(node: Node): node is JSDocVariadicType; + function isJSDoc(node: Node): node is JSDoc; + function isJSDocAugmentsTag(node: Node): node is JSDocAugmentsTag; + function isJSDocClassTag(node: Node): node is JSDocClassTag; + function isJSDocEnumTag(node: Node): node is JSDocEnumTag; + function isJSDocThisTag(node: Node): node is JSDocThisTag; + function isJSDocParameterTag(node: Node): node is JSDocParameterTag; + function isJSDocReturnTag(node: Node): node is JSDocReturnTag; + function isJSDocTypeTag(node: Node): node is JSDocTypeTag; + function isJSDocTemplateTag(node: Node): node is JSDocTemplateTag; + function isJSDocTypedefTag(node: Node): node is JSDocTypedefTag; + function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag; + function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag; + function isJSDocTypeLiteral(node: Node): node is JSDocTypeLiteral; + function isJSDocCallbackTag(node: Node): node is JSDocCallbackTag; + function isJSDocSignature(node: Node): node is JSDocSignature; +} +declare namespace ts { + /** + * True if node is of some token syntax kind. + * For example, this is true for an IfKeyword but not for an IfStatement. + * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail. + */ + function isToken(n: Node): boolean; + function isLiteralExpression(node: Node): node is LiteralExpression; + type TemplateLiteralToken = NoSubstitutionTemplateLiteral | TemplateHead | TemplateMiddle | TemplateTail; + function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken; + function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail; + function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier; + function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken; + function isModifier(node: Node): node is Modifier; + function isEntityName(node: Node): node is EntityName; + function isPropertyName(node: Node): node is PropertyName; + function isBindingName(node: Node): node is BindingName; + function isFunctionLike(node: Node): node is SignatureDeclaration; + function isClassElement(node: Node): node is ClassElement; + function isClassLike(node: Node): node is ClassLikeDeclaration; + function isAccessor(node: Node): node is AccessorDeclaration; + function isTypeElement(node: Node): node is TypeElement; + function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement; + function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike; + /** + * Node test that determines whether a node is a valid type node. + * This differs from the `isPartOfTypeNode` function which determines whether a node is *part* + * of a TypeNode. + */ + function isTypeNode(node: Node): node is TypeNode; + function isFunctionOrConstructorTypeNode(node: Node): node is FunctionTypeNode | ConstructorTypeNode; + function isPropertyAccessOrQualifiedName(node: Node): node is PropertyAccessExpression | QualifiedName; + function isCallLikeExpression(node: Node): node is CallLikeExpression; + function isCallOrNewExpression(node: Node): node is CallExpression | NewExpression; + function isTemplateLiteral(node: Node): node is TemplateLiteral; + function isAssertionExpression(node: Node): node is AssertionExpression; + function isIterationStatement(node: Node, lookInLabeledStatements: false): node is IterationStatement; + function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement | LabeledStatement; + function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement; + function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause; + /** True if node is of a kind that may contain comment text. */ + function isJSDocCommentContainingNode(node: Node): boolean; + function isSetAccessor(node: Node): node is SetAccessorDeclaration; + function isGetAccessor(node: Node): node is GetAccessorDeclaration; + function isObjectLiteralElement(node: Node): node is ObjectLiteralElement; + function isStringLiteralLike(node: Node): node is StringLiteralLike; +} +declare namespace ts { + function createNode(kind: SyntaxKind, pos?: number, end?: number): Node; + /** + * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes + * stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, + * embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns + * a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned. + * + * @param node a given node to visit its children + * @param cbNode a callback to be invoked for all child nodes + * @param cbNodes a callback to be invoked for embedded array + * + * @remarks `forEachChild` must visit the children of a node in the order + * that they appear in the source code. The language service depends on this property to locate nodes by position. + */ + function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + function createSourceFile(fileName: string, sourceText: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind): SourceFile; + function parseIsolatedEntityName(text: string, languageVersion: ScriptTarget): EntityName | undefined; + /** + * Parse json text into SyntaxTree and return node and parse errors if any + * @param fileName + * @param sourceText + */ + function parseJsonText(fileName: string, sourceText: string): JsonSourceFile; + function isExternalModule(file: SourceFile): boolean; + function updateSourceFile(sourceFile: SourceFile, newText: string, textChangeRange: TextChangeRange, aggressiveChecks?: boolean): SourceFile; +} +declare namespace ts { + function parseCommandLine(commandLine: ReadonlyArray<string>, readFile?: (path: string) => string | undefined): ParsedCommandLine; + type DiagnosticReporter = (diagnostic: Diagnostic) => void; + /** + * Reports config file diagnostics + */ + interface ConfigFileDiagnosticsReporter { + /** + * Reports unrecoverable error when parsing config file + */ + onUnRecoverableConfigFileDiagnostic: DiagnosticReporter; + } + /** + * Interface extending ParseConfigHost to support ParseConfigFile that reads config file and reports errors + */ + interface ParseConfigFileHost extends ParseConfigHost, ConfigFileDiagnosticsReporter { + getCurrentDirectory(): string; + } + /** + * Reads the config file, reports errors if any and exits if the config file cannot be found + */ + function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost): ParsedCommandLine | undefined; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readConfigFile(fileName: string, readFile: (path: string) => string | undefined): { + config?: any; + error?: Diagnostic; + }; + /** + * Parse the text of the tsconfig.json file + * @param fileName The path to the config file + * @param jsonText The text of the config file + */ + function parseConfigFileTextToJson(fileName: string, jsonText: string): { + config?: any; + error?: Diagnostic; + }; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ + function readJsonConfigFile(fileName: string, readFile: (path: string) => string | undefined): TsConfigSourceFile; + /** + * Convert the json syntax tree into the json value + */ + function convertToObject(sourceFile: JsonSourceFile, errors: Push<Diagnostic>): any; + /** + * Parse the contents of a config file (tsconfig.json). + * @param json The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + /** + * Parse the contents of a config file (tsconfig.json). + * @param jsonNode The contents of the config file to parse + * @param host Instance of ParseConfigHost used to enumerate files in folder. + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ + function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine; + function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: CompilerOptions; + errors: Diagnostic[]; + }; + function convertTypeAcquisitionFromJson(jsonOptions: any, basePath: string, configFileName?: string): { + options: TypeAcquisition; + errors: Diagnostic[]; + }; +} +declare namespace ts { + function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined; + /** + * @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown. + * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups + * is assumed to be the same as root directory of the project. + */ + function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations; + /** + * Given a set of options, returns the set of type directive names + * that should be included for this program automatically. + * This list could either come from the config file, + * or from enumerating the types root + initial secondary types lookup location. + * More type directives might appear in the program later as a result of loading actual source files; + * this list is only the set of defaults that are implicitly included. + */ + function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; + /** + * Cached module resolutions per containing directory. + * This assumes that any module id will have the same resolution for sibling files located in the same folder. + */ + interface ModuleResolutionCache extends NonRelativeModuleNameResolutionCache { + getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<ResolvedModuleWithFailedLookupLocations>; + } + /** + * Stored map from non-relative module name to a table: directory -> result of module lookup in this directory + * We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive. + */ + interface NonRelativeModuleNameResolutionCache { + getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache; + } + interface PerModuleNameCache { + get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined; + set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void; + } + function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): ModuleResolutionCache; + function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined; + function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; + function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; +} +declare namespace ts { + function createNodeArray<T extends Node>(elements?: ReadonlyArray<T>, hasTrailingComma?: boolean): NodeArray<T>; + /** If a node is passed, creates a string literal whose source text is read from a source node during emit. */ + function createLiteral(value: string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier): StringLiteral; + function createLiteral(value: number | PseudoBigInt): NumericLiteral; + function createLiteral(value: boolean): BooleanLiteral; + function createLiteral(value: string | number | PseudoBigInt | boolean): PrimaryExpression; + function createNumericLiteral(value: string): NumericLiteral; + function createBigIntLiteral(value: string): BigIntLiteral; + function createStringLiteral(text: string): StringLiteral; + function createRegularExpressionLiteral(text: string): RegularExpressionLiteral; + function createIdentifier(text: string): Identifier; + function updateIdentifier(node: Identifier): Identifier; + /** Create a unique temporary variable. */ + function createTempVariable(recordTempVariable: ((node: Identifier) => void) | undefined): Identifier; + /** Create a unique temporary variable for use in a loop. */ + function createLoopVariable(): Identifier; + /** Create a unique name based on the supplied text. */ + function createUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. */ + function createOptimisticUniqueName(text: string): Identifier; + /** Create a unique name based on the supplied text. This does not consider names injected by the transformer. */ + function createFileLevelUniqueName(text: string): Identifier; + /** Create a unique name generated for a node. */ + function getGeneratedNameForNode(node: Node | undefined): Identifier; + function createToken<TKind extends SyntaxKind>(token: TKind): Token<TKind>; + function createSuper(): SuperExpression; + function createThis(): ThisExpression & Token<SyntaxKind.ThisKeyword>; + function createNull(): NullLiteral & Token<SyntaxKind.NullKeyword>; + function createTrue(): BooleanLiteral & Token<SyntaxKind.TrueKeyword>; + function createFalse(): BooleanLiteral & Token<SyntaxKind.FalseKeyword>; + function createModifier<T extends Modifier["kind"]>(kind: T): Token<T>; + function createModifiersFromModifierFlags(flags: ModifierFlags): Modifier[]; + function createQualifiedName(left: EntityName, right: string | Identifier): QualifiedName; + function updateQualifiedName(node: QualifiedName, left: EntityName, right: Identifier): QualifiedName; + function createComputedPropertyName(expression: Expression): ComputedPropertyName; + function updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName; + function createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration; + function updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration; + function createParameter(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration; + function updateParameter(node: ParameterDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration; + function createDecorator(expression: Expression): Decorator; + function updateDecorator(node: Decorator, expression: Expression): Decorator; + function createPropertySignature(modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function updatePropertySignature(node: PropertySignature, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertySignature; + function createProperty(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function updateProperty(node: PropertyDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration; + function createMethodSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function updateMethodSignature(node: MethodSignature, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined, name: PropertyName, questionToken: QuestionToken | undefined): MethodSignature; + function createMethod(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function updateMethod(node: MethodDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): MethodDeclaration; + function createConstructor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function updateConstructor(node: ConstructorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): ConstructorDeclaration; + function createGetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function updateGetAccessor(node: GetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration; + function createSetAccessor(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function updateSetAccessor(node: SetAccessorDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: PropertyName, parameters: ReadonlyArray<ParameterDeclaration>, body: Block | undefined): SetAccessorDeclaration; + function createCallSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration; + function createConstructSignature(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration; + function createIndexSignature(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode): IndexSignatureDeclaration; + function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; + function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode): TypePredicateNode; + function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray<TypeNode> | undefined): TypeReferenceNode; + function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray<TypeNode> | undefined): TypeReferenceNode; + function createFunctionTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function updateFunctionTypeNode(node: FunctionTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): FunctionTypeNode; + function createConstructorTypeNode(typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructorTypeNode; + function createTypeQueryNode(exprName: EntityName): TypeQueryNode; + function updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName): TypeQueryNode; + function createTypeLiteralNode(members: ReadonlyArray<TypeElement> | undefined): TypeLiteralNode; + function updateTypeLiteralNode(node: TypeLiteralNode, members: NodeArray<TypeElement>): TypeLiteralNode; + function createArrayTypeNode(elementType: TypeNode): ArrayTypeNode; + function updateArrayTypeNode(node: ArrayTypeNode, elementType: TypeNode): ArrayTypeNode; + function createTupleTypeNode(elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function updateTupleTypeNode(node: TupleTypeNode, elementTypes: ReadonlyArray<TypeNode>): TupleTypeNode; + function createOptionalTypeNode(type: TypeNode): OptionalTypeNode; + function updateOptionalTypeNode(node: OptionalTypeNode, type: TypeNode): OptionalTypeNode; + function createRestTypeNode(type: TypeNode): RestTypeNode; + function updateRestTypeNode(node: RestTypeNode, type: TypeNode): RestTypeNode; + function createUnionTypeNode(types: ReadonlyArray<TypeNode>): UnionTypeNode; + function updateUnionTypeNode(node: UnionTypeNode, types: NodeArray<TypeNode>): UnionTypeNode; + function createIntersectionTypeNode(types: ReadonlyArray<TypeNode>): IntersectionTypeNode; + function updateIntersectionTypeNode(node: IntersectionTypeNode, types: NodeArray<TypeNode>): IntersectionTypeNode; + function createUnionOrIntersectionTypeNode(kind: SyntaxKind.UnionType | SyntaxKind.IntersectionType, types: ReadonlyArray<TypeNode>): UnionOrIntersectionTypeNode; + function createConditionalTypeNode(checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode; + function createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode; + function updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode; + function createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier?: EntityName, typeArguments?: ReadonlyArray<TypeNode>, isTypeOf?: boolean): ImportTypeNode; + function createParenthesizedType(type: TypeNode): ParenthesizedTypeNode; + function updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode; + function createThisTypeNode(): ThisTypeNode; + function createTypeOperatorNode(type: TypeNode): TypeOperatorNode; + function createTypeOperatorNode(operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword, type: TypeNode): TypeOperatorNode; + function updateTypeOperatorNode(node: TypeOperatorNode, type: TypeNode): TypeOperatorNode; + function createIndexedAccessTypeNode(objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function updateIndexedAccessTypeNode(node: IndexedAccessTypeNode, objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode; + function createMappedTypeNode(readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function updateMappedTypeNode(node: MappedTypeNode, readonlyToken: ReadonlyToken | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode; + function createLiteralTypeNode(literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function updateLiteralTypeNode(node: LiteralTypeNode, literal: LiteralTypeNode["literal"]): LiteralTypeNode; + function createObjectBindingPattern(elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function updateObjectBindingPattern(node: ObjectBindingPattern, elements: ReadonlyArray<BindingElement>): ObjectBindingPattern; + function createArrayBindingPattern(elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function updateArrayBindingPattern(node: ArrayBindingPattern, elements: ReadonlyArray<ArrayBindingElement>): ArrayBindingPattern; + function createBindingElement(dotDotDotToken: DotDotDotToken | undefined, propertyName: string | PropertyName | undefined, name: string | BindingName, initializer?: Expression): BindingElement; + function updateBindingElement(node: BindingElement, dotDotDotToken: DotDotDotToken | undefined, propertyName: PropertyName | undefined, name: BindingName, initializer: Expression | undefined): BindingElement; + function createArrayLiteral(elements?: ReadonlyArray<Expression>, multiLine?: boolean): ArrayLiteralExpression; + function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression; + function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression; + function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression; + function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression; + function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression; + function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression; + function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression; + function createCall(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): CallExpression; + function updateCall(node: CallExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression>): CallExpression; + function createNew(expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + function updateNew(node: NewExpression, expression: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, argumentsArray: ReadonlyArray<Expression> | undefined): NewExpression; + /** @deprecated */ function createTaggedTemplate(tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function createTaggedTemplate(tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + /** @deprecated */ function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, template: TemplateLiteral): TaggedTemplateExpression; + function updateTaggedTemplate(node: TaggedTemplateExpression, tag: Expression, typeArguments: ReadonlyArray<TypeNode> | undefined, template: TemplateLiteral): TaggedTemplateExpression; + function createTypeAssertion(type: TypeNode, expression: Expression): TypeAssertion; + function updateTypeAssertion(node: TypeAssertion, type: TypeNode, expression: Expression): TypeAssertion; + function createParen(expression: Expression): ParenthesizedExpression; + function updateParen(node: ParenthesizedExpression, expression: Expression): ParenthesizedExpression; + function createFunctionExpression(modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration> | undefined, type: TypeNode | undefined, body: Block): FunctionExpression; + function updateFunctionExpression(node: FunctionExpression, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block): FunctionExpression; + function createArrowFunction(modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: EqualsGreaterThanToken | undefined, body: ConciseBody): ArrowFunction; + function updateArrowFunction(node: ArrowFunction, modifiers: ReadonlyArray<Modifier> | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, equalsGreaterThanToken: Token<SyntaxKind.EqualsGreaterThanToken>, body: ConciseBody): ArrowFunction; + function createDelete(expression: Expression): DeleteExpression; + function updateDelete(node: DeleteExpression, expression: Expression): DeleteExpression; + function createTypeOf(expression: Expression): TypeOfExpression; + function updateTypeOf(node: TypeOfExpression, expression: Expression): TypeOfExpression; + function createVoid(expression: Expression): VoidExpression; + function updateVoid(node: VoidExpression, expression: Expression): VoidExpression; + function createAwait(expression: Expression): AwaitExpression; + function updateAwait(node: AwaitExpression, expression: Expression): AwaitExpression; + function createPrefix(operator: PrefixUnaryOperator, operand: Expression): PrefixUnaryExpression; + function updatePrefix(node: PrefixUnaryExpression, operand: Expression): PrefixUnaryExpression; + function createPostfix(operand: Expression, operator: PostfixUnaryOperator): PostfixUnaryExpression; + function updatePostfix(node: PostfixUnaryExpression, operand: Expression): PostfixUnaryExpression; + function createBinary(left: Expression, operator: BinaryOperator | BinaryOperatorToken, right: Expression): BinaryExpression; + function updateBinary(node: BinaryExpression, left: Expression, right: Expression, operator?: BinaryOperator | BinaryOperatorToken): BinaryExpression; + /** @deprecated */ function createConditional(condition: Expression, whenTrue: Expression, whenFalse: Expression): ConditionalExpression; + function createConditional(condition: Expression, questionToken: QuestionToken, whenTrue: Expression, colonToken: ColonToken, whenFalse: Expression): ConditionalExpression; + function updateConditional(node: ConditionalExpression, condition: Expression, questionToken: Token<SyntaxKind.QuestionToken>, whenTrue: Expression, colonToken: Token<SyntaxKind.ColonToken>, whenFalse: Expression): ConditionalExpression; + function createTemplateExpression(head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function updateTemplateExpression(node: TemplateExpression, head: TemplateHead, templateSpans: ReadonlyArray<TemplateSpan>): TemplateExpression; + function createTemplateHead(text: string): TemplateHead; + function createTemplateMiddle(text: string): TemplateMiddle; + function createTemplateTail(text: string): TemplateTail; + function createNoSubstitutionTemplateLiteral(text: string): NoSubstitutionTemplateLiteral; + function createYield(expression?: Expression): YieldExpression; + function createYield(asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function updateYield(node: YieldExpression, asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression; + function createSpread(expression: Expression): SpreadElement; + function updateSpread(node: SpreadElement, expression: Expression): SpreadElement; + function createClassExpression(modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function updateClassExpression(node: ClassExpression, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassExpression; + function createOmittedExpression(): OmittedExpression; + function createExpressionWithTypeArguments(typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function updateExpressionWithTypeArguments(node: ExpressionWithTypeArguments, typeArguments: ReadonlyArray<TypeNode> | undefined, expression: Expression): ExpressionWithTypeArguments; + function createAsExpression(expression: Expression, type: TypeNode): AsExpression; + function updateAsExpression(node: AsExpression, expression: Expression, type: TypeNode): AsExpression; + function createNonNullExpression(expression: Expression): NonNullExpression; + function updateNonNullExpression(node: NonNullExpression, expression: Expression): NonNullExpression; + function createMetaProperty(keywordToken: MetaProperty["keywordToken"], name: Identifier): MetaProperty; + function updateMetaProperty(node: MetaProperty, name: Identifier): MetaProperty; + function createTemplateSpan(expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function updateTemplateSpan(node: TemplateSpan, expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan; + function createSemicolonClassElement(): SemicolonClassElement; + function createBlock(statements: ReadonlyArray<Statement>, multiLine?: boolean): Block; + function updateBlock(node: Block, statements: ReadonlyArray<Statement>): Block; + function createVariableStatement(modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList | ReadonlyArray<VariableDeclaration>): VariableStatement; + function updateVariableStatement(node: VariableStatement, modifiers: ReadonlyArray<Modifier> | undefined, declarationList: VariableDeclarationList): VariableStatement; + function createEmptyStatement(): EmptyStatement; + function createExpressionStatement(expression: Expression): ExpressionStatement; + function updateExpressionStatement(node: ExpressionStatement, expression: Expression): ExpressionStatement; + /** @deprecated Use `createExpressionStatement` instead. */ + const createStatement: typeof createExpressionStatement; + /** @deprecated Use `updateExpressionStatement` instead. */ + const updateStatement: typeof updateExpressionStatement; + function createIf(expression: Expression, thenStatement: Statement, elseStatement?: Statement): IfStatement; + function updateIf(node: IfStatement, expression: Expression, thenStatement: Statement, elseStatement: Statement | undefined): IfStatement; + function createDo(statement: Statement, expression: Expression): DoStatement; + function updateDo(node: DoStatement, statement: Statement, expression: Expression): DoStatement; + function createWhile(expression: Expression, statement: Statement): WhileStatement; + function updateWhile(node: WhileStatement, expression: Expression, statement: Statement): WhileStatement; + function createFor(initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function updateFor(node: ForStatement, initializer: ForInitializer | undefined, condition: Expression | undefined, incrementor: Expression | undefined, statement: Statement): ForStatement; + function createForIn(initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function updateForIn(node: ForInStatement, initializer: ForInitializer, expression: Expression, statement: Statement): ForInStatement; + function createForOf(awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function updateForOf(node: ForOfStatement, awaitModifier: AwaitKeywordToken | undefined, initializer: ForInitializer, expression: Expression, statement: Statement): ForOfStatement; + function createContinue(label?: string | Identifier): ContinueStatement; + function updateContinue(node: ContinueStatement, label: Identifier | undefined): ContinueStatement; + function createBreak(label?: string | Identifier): BreakStatement; + function updateBreak(node: BreakStatement, label: Identifier | undefined): BreakStatement; + function createReturn(expression?: Expression): ReturnStatement; + function updateReturn(node: ReturnStatement, expression: Expression | undefined): ReturnStatement; + function createWith(expression: Expression, statement: Statement): WithStatement; + function updateWith(node: WithStatement, expression: Expression, statement: Statement): WithStatement; + function createSwitch(expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function updateSwitch(node: SwitchStatement, expression: Expression, caseBlock: CaseBlock): SwitchStatement; + function createLabel(label: string | Identifier, statement: Statement): LabeledStatement; + function updateLabel(node: LabeledStatement, label: Identifier, statement: Statement): LabeledStatement; + function createThrow(expression: Expression): ThrowStatement; + function updateThrow(node: ThrowStatement, expression: Expression): ThrowStatement; + function createTry(tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function updateTry(node: TryStatement, tryBlock: Block, catchClause: CatchClause | undefined, finallyBlock: Block | undefined): TryStatement; + function createDebuggerStatement(): DebuggerStatement; + function createVariableDeclaration(name: string | BindingName, type?: TypeNode, initializer?: Expression): VariableDeclaration; + function updateVariableDeclaration(node: VariableDeclaration, name: BindingName, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration; + function createVariableDeclarationList(declarations: ReadonlyArray<VariableDeclaration>, flags?: NodeFlags): VariableDeclarationList; + function updateVariableDeclarationList(node: VariableDeclarationList, declarations: ReadonlyArray<VariableDeclaration>): VariableDeclarationList; + function createFunctionDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function updateFunctionDeclaration(node: FunctionDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, parameters: ReadonlyArray<ParameterDeclaration>, type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration; + function createClassDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function updateClassDeclaration(node: ClassDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier | undefined, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<ClassElement>): ClassDeclaration; + function createInterfaceDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function updateInterfaceDeclaration(node: InterfaceDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, heritageClauses: ReadonlyArray<HeritageClause> | undefined, members: ReadonlyArray<TypeElement>): InterfaceDeclaration; + function createTypeAliasDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, typeParameters: ReadonlyArray<TypeParameterDeclaration> | undefined, type: TypeNode): TypeAliasDeclaration; + function createEnumDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function updateEnumDeclaration(node: EnumDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, members: ReadonlyArray<EnumMember>): EnumDeclaration; + function createModuleDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration; + function updateModuleDeclaration(node: ModuleDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration; + function createModuleBlock(statements: ReadonlyArray<Statement>): ModuleBlock; + function updateModuleBlock(node: ModuleBlock, statements: ReadonlyArray<Statement>): ModuleBlock; + function createCaseBlock(clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function updateCaseBlock(node: CaseBlock, clauses: ReadonlyArray<CaseOrDefaultClause>): CaseBlock; + function createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration; + function updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration; + function createImportEqualsDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration; + function createImportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function updateImportDeclaration(node: ImportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration; + function createImportClause(name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function updateImportClause(node: ImportClause, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause; + function createNamespaceImport(name: Identifier): NamespaceImport; + function updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport; + function createNamedImports(elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function updateNamedImports(node: NamedImports, elements: ReadonlyArray<ImportSpecifier>): NamedImports; + function createImportSpecifier(propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + function createExportAssignment(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment; + function updateExportAssignment(node: ExportAssignment, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, expression: Expression): ExportAssignment; + function createExportDeclaration(decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier?: Expression): ExportDeclaration; + function updateExportDeclaration(node: ExportDeclaration, decorators: ReadonlyArray<Decorator> | undefined, modifiers: ReadonlyArray<Modifier> | undefined, exportClause: NamedExports | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration; + function createNamedExports(elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function updateNamedExports(node: NamedExports, elements: ReadonlyArray<ExportSpecifier>): NamedExports; + function createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier; + function updateExportSpecifier(node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier; + function createExternalModuleReference(expression: Expression): ExternalModuleReference; + function updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference; + function createJsxElement(openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: ReadonlyArray<JsxChild>, closingElement: JsxClosingElement): JsxElement; + function createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function updateJsxSelfClosingElement(node: JsxSelfClosingElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxSelfClosingElement; + function createJsxOpeningElement(tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function updateJsxOpeningElement(node: JsxOpeningElement, tagName: JsxTagNameExpression, typeArguments: ReadonlyArray<TypeNode> | undefined, attributes: JsxAttributes): JsxOpeningElement; + function createJsxClosingElement(tagName: JsxTagNameExpression): JsxClosingElement; + function updateJsxClosingElement(node: JsxClosingElement, tagName: JsxTagNameExpression): JsxClosingElement; + function createJsxFragment(openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment; + function createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute; + function createJsxAttributes(properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function updateJsxAttributes(node: JsxAttributes, properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes; + function createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute; + function updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute; + function createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression; + function updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression; + function createCaseClause(expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function updateCaseClause(node: CaseClause, expression: Expression, statements: ReadonlyArray<Statement>): CaseClause; + function createDefaultClause(statements: ReadonlyArray<Statement>): DefaultClause; + function updateDefaultClause(node: DefaultClause, statements: ReadonlyArray<Statement>): DefaultClause; + function createHeritageClause(token: HeritageClause["token"], types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function updateHeritageClause(node: HeritageClause, types: ReadonlyArray<ExpressionWithTypeArguments>): HeritageClause; + function createCatchClause(variableDeclaration: string | VariableDeclaration | undefined, block: Block): CatchClause; + function updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block): CatchClause; + function createPropertyAssignment(name: string | PropertyName, initializer: Expression): PropertyAssignment; + function updatePropertyAssignment(node: PropertyAssignment, name: PropertyName, initializer: Expression): PropertyAssignment; + function createShorthandPropertyAssignment(name: string | Identifier, objectAssignmentInitializer?: Expression): ShorthandPropertyAssignment; + function updateShorthandPropertyAssignment(node: ShorthandPropertyAssignment, name: Identifier, objectAssignmentInitializer: Expression | undefined): ShorthandPropertyAssignment; + function createSpreadAssignment(expression: Expression): SpreadAssignment; + function updateSpreadAssignment(node: SpreadAssignment, expression: Expression): SpreadAssignment; + function createEnumMember(name: string | PropertyName, initializer?: Expression): EnumMember; + function updateEnumMember(node: EnumMember, name: PropertyName, initializer: Expression | undefined): EnumMember; + function updateSourceFileNode(node: SourceFile, statements: ReadonlyArray<Statement>, isDeclarationFile?: boolean, referencedFiles?: SourceFile["referencedFiles"], typeReferences?: SourceFile["typeReferenceDirectives"], hasNoDefaultLib?: boolean, libReferences?: SourceFile["libReferenceDirectives"]): SourceFile; + /** + * Creates a shallow, memberwise clone of a node for mutation. + */ + function getMutableClone<T extends Node>(node: T): T; + /** + * Creates a synthetic statement to act as a placeholder for a not-emitted statement in + * order to preserve comments. + * + * @param original The original statement. + */ + function createNotEmittedStatement(original: Node): NotEmittedStatement; + /** + * Creates a synthetic expression to act as a placeholder for a not-emitted expression in + * order to preserve comments or sourcemap positions. + * + * @param expression The inner expression to emit. + * @param original The original outer expression. + * @param location The location for the expression. Defaults to the positions from "original" if provided. + */ + function createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression; + function updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression; + function createCommaList(elements: ReadonlyArray<Expression>): CommaListExpression; + function updateCommaList(node: CommaListExpression, elements: ReadonlyArray<Expression>): CommaListExpression; + function createBundle(sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle; + function createUnparsedSourceFile(text: string): UnparsedSource; + function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource; + function createInputFiles(javascript: string, declaration: string): InputFiles; + function createInputFiles(javascript: string, declaration: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles; + function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression; + function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression; + function createComma(left: Expression, right: Expression): Expression; + function createLessThan(left: Expression, right: Expression): Expression; + function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment; + function createAssignment(left: Expression, right: Expression): BinaryExpression; + function createStrictEquality(left: Expression, right: Expression): BinaryExpression; + function createStrictInequality(left: Expression, right: Expression): BinaryExpression; + function createAdd(left: Expression, right: Expression): BinaryExpression; + function createSubtract(left: Expression, right: Expression): BinaryExpression; + function createPostfixIncrement(operand: Expression): PostfixUnaryExpression; + function createLogicalAnd(left: Expression, right: Expression): BinaryExpression; + function createLogicalOr(left: Expression, right: Expression): BinaryExpression; + function createLogicalNot(operand: Expression): PrefixUnaryExpression; + function createVoidZero(): VoidExpression; + function createExportDefault(expression: Expression): ExportAssignment; + function createExternalModuleExport(exportName: Identifier): ExportDeclaration; + /** + * Clears any EmitNode entries from parse-tree nodes. + * @param sourceFile A source file. + */ + function disposeEmitNodes(sourceFile: SourceFile): void; + function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; + /** + * Sets flags that control emit behavior of a node. + */ + function setEmitFlags<T extends Node>(node: T, emitFlags: EmitFlags): T; + /** + * Gets a custom text range to use when emitting source maps. + */ + function getSourceMapRange(node: Node): SourceMapRange; + /** + * Sets a custom text range to use when emitting source maps. + */ + function setSourceMapRange<T extends Node>(node: T, range: SourceMapRange | undefined): T; + /** + * Create an external source map source file reference + */ + function createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): SourceMapSource; + /** + * Gets the TextRange to use for source maps for a token of a node. + */ + function getTokenSourceMapRange(node: Node, token: SyntaxKind): SourceMapRange | undefined; + /** + * Sets the TextRange to use for source maps for a token of a node. + */ + function setTokenSourceMapRange<T extends Node>(node: T, token: SyntaxKind, range: SourceMapRange | undefined): T; + /** + * Gets a custom text range to use when emitting comments. + */ + function getCommentRange(node: Node): TextRange; + /** + * Sets a custom text range to use when emitting comments. + */ + function setCommentRange<T extends Node>(node: T, range: TextRange): T; + function getSyntheticLeadingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticLeadingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticLeadingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function getSyntheticTrailingComments(node: Node): SynthesizedComment[] | undefined; + function setSyntheticTrailingComments<T extends Node>(node: T, comments: SynthesizedComment[] | undefined): T; + function addSyntheticTrailingComment<T extends Node>(node: T, kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia, text: string, hasTrailingNewLine?: boolean): T; + function moveSyntheticComments<T extends Node>(node: T, original: Node): T; + /** + * Gets the constant value to emit for an expression. + */ + function getConstantValue(node: PropertyAccessExpression | ElementAccessExpression): string | number | undefined; + /** + * Sets the constant value to emit for an expression. + */ + function setConstantValue(node: PropertyAccessExpression | ElementAccessExpression, value: string | number): PropertyAccessExpression | ElementAccessExpression; + /** + * Adds an EmitHelper to a node. + */ + function addEmitHelper<T extends Node>(node: T, helper: EmitHelper): T; + /** + * Add EmitHelpers to a node. + */ + function addEmitHelpers<T extends Node>(node: T, helpers: EmitHelper[] | undefined): T; + /** + * Removes an EmitHelper from a node. + */ + function removeEmitHelper(node: Node, helper: EmitHelper): boolean; + /** + * Gets the EmitHelpers of a node. + */ + function getEmitHelpers(node: Node): EmitHelper[] | undefined; + /** + * Moves matching emit helpers from a source node to a target node. + */ + function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void; + function setOriginalNode<T extends Node>(node: T, original: Node | undefined): T; +} +declare namespace ts { + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T; + /** + * Visits a Node using the supplied visitor, possibly returning a new Node in its place. + * + * @param node The Node to visit. + * @param visitor The callback used to visit the Node. + * @param test A callback to execute to verify the Node is valid. + * @param lift An optional callback to execute to lift a NodeArray into a valid Node. + */ + function visitNode<T extends Node>(node: T | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, lift?: (node: NodeArray<Node>) => T): T | undefined; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>; + /** + * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place. + * + * @param nodes The NodeArray to visit. + * @param visitor The callback used to visit a Node. + * @param test A node test to execute for each node. + * @param start An optional value indicating the starting offset at which to start visiting. + * @param count An optional value indicating the maximum number of nodes to visit. + */ + function visitNodes<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined; + /** + * Starts a new lexical environment and visits a statement list, ending the lexical environment + * and merging hoisted declarations upon completion. + */ + function visitLexicalEnvironment(statements: NodeArray<Statement>, visitor: Visitor, context: TransformationContext, start?: number, ensureUseStrict?: boolean): NodeArray<Statement>; + /** + * Starts a new lexical environment and visits a parameter list, suspending the lexical + * environment upon completion. + */ + function visitParameterList(nodes: NodeArray<ParameterDeclaration> | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes): NodeArray<ParameterDeclaration>; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody, visitor: Visitor, context: TransformationContext): FunctionBody; + /** + * Resumes a suspended lexical environment and visits a function body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: FunctionBody | undefined, visitor: Visitor, context: TransformationContext): FunctionBody | undefined; + /** + * Resumes a suspended lexical environment and visits a concise body, ending the lexical + * environment and merging hoisted declarations upon completion. + */ + function visitFunctionBody(node: ConciseBody, visitor: Visitor, context: TransformationContext): ConciseBody; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T, visitor: Visitor, context: TransformationContext): T; + /** + * Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place. + * + * @param node The Node whose children will be visited. + * @param visitor The callback used to visit each child. + * @param context A lexical environment context for the visitor. + */ + function visitEachChild<T extends Node>(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; +} +declare namespace ts { + function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; +} +declare namespace ts { + function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined; + function resolveTripleslashReference(moduleName: string, containingFile: string): string; + function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; + function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + interface FormatDiagnosticsHost { + getCurrentDirectory(): string; + getCanonicalFileName(fileName: string): string; + getNewLine(): string; + } + function formatDiagnostics(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string; + function formatDiagnosticsWithColorAndContext(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string; + function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain | undefined, newLine: string): string; + function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): ReadonlyArray<Diagnostic>; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param createProgramOptions - The options for creating a program. + * @returns A 'Program' object. + */ + function createProgram(createProgramOptions: CreateProgramOptions): Program; + /** + * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' + * that represent a compilation unit. + * + * Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and + * triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in. + * + * @param rootNames - A set of root files. + * @param options - The compiler options which should be used. + * @param host - The host interacts with the underlying file system. + * @param oldProgram - Reuses an old program structure. + * @param configFileParsingDiagnostics - error during config file parsing + * @returns A 'Program' object. + */ + function createProgram(rootNames: ReadonlyArray<string>, options: CompilerOptions, host?: CompilerHost, oldProgram?: Program, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): Program; + /** @deprecated */ interface ResolveProjectReferencePathHost { + fileExists(fileName: string): boolean; + } + /** + * Returns the target config filename of a project reference. + * Note: The file might not exist. + */ + function resolveProjectReferencePath(ref: ProjectReference): ResolvedConfigFileName; + /** @deprecated */ function resolveProjectReferencePath(host: ResolveProjectReferencePathHost, ref: ProjectReference): ResolvedConfigFileName; +} +declare namespace ts { + interface EmitOutput { + outputFiles: OutputFile[]; + emitSkipped: boolean; + } + interface OutputFile { + name: string; + writeByteOrderMark: boolean; + text: string; + } +} +declare namespace ts { + type AffectedFileResult<T> = { + result: T; + affected: SourceFile | Program; + } | undefined; + interface BuilderProgramHost { + /** + * return true if file names are treated with case sensitivity + */ + useCaseSensitiveFileNames(): boolean; + /** + * If provided this would be used this hash instead of actual file shape text for detecting changes + */ + createHash?: (data: string) => string; + /** + * When emit or emitNextAffectedFile are called without writeFile, + * this callback if present would be used to write files + */ + writeFile?: WriteFileCallback; + } + /** + * Builder to manage the program state changes + */ + interface BuilderProgram { + /** + * Returns current program + */ + getProgram(): Program; + /** + * Get compiler options of the program + */ + getCompilerOptions(): CompilerOptions; + /** + * Get the source file in the program with file name + */ + getSourceFile(fileName: string): SourceFile | undefined; + /** + * Get a list of files in the program + */ + getSourceFiles(): ReadonlyArray<SourceFile>; + /** + * Get the diagnostics for compiler options + */ + getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics that dont belong to any file + */ + getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get the diagnostics from config file parsing + */ + getConfigFileParsingDiagnostics(): ReadonlyArray<Diagnostic>; + /** + * Get the syntax diagnostics, for all source files if source file is not supplied + */ + getSyntacticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Get all the dependencies of the file + */ + getAllDependencies(sourceFile: SourceFile): ReadonlyArray<string>; + /** + * Gets the semantic diagnostics from the program corresponding to this state of file (if provided) or whole program + * The semantic diagnostics are cached and managed here + * Note that it is assumed that when asked about semantic diagnostics through this API, + * the file has been taken out of affected files so it is safe to use cache or get from program and cache the diagnostics + * In case of SemanticDiagnosticsBuilderProgram if the source file is not provided, + * it will iterate through all the affected files, to ensure that cache stays valid and yet provide a way to get all semantic diagnostics + */ + getSemanticDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): ReadonlyArray<Diagnostic>; + /** + * Emits the JavaScript and declaration files. + * When targetSource file is specified, emits the files corresponding to that source file, + * otherwise for the whole program. + * In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified, + * it is assumed that that file is handled from affected file list. If targetSourceFile is not specified, + * it will only emit all the affected files instead of whole program + * + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + /** + * Get the current directory of the program + */ + getCurrentDirectory(): string; + } + /** + * The builder that caches the semantic diagnostics for the program and handles the changed files and affected files + */ + interface SemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Gets the semantic diagnostics from the program for the next affected file and caches it + * Returns undefined if the iteration is complete + */ + getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult<ReadonlyArray<Diagnostic>>; + } + /** + * The builder that can handle the changes in program and iterate through changed file to emit the files + * The semantic diagnostics are cached per file and managed by clearing for the changed/affected files + */ + interface EmitAndSemanticDiagnosticsBuilderProgram extends BuilderProgram { + /** + * Emits the next affected file's emit result (EmitResult and sourceFiles emitted) or returns undefined if iteration is complete + * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host + * in that order would be used to write the files + */ + emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>; + } + /** + * Create the builder to manage semantic diagnostics and cache them + */ + function createSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): SemanticDiagnosticsBuilderProgram; + function createSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: SemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): SemanticDiagnosticsBuilderProgram; + /** + * Create the builder that can handle the changes in program and iterate through changed files + * to emit the those files and manage semantic diagnostics cache as well + */ + function createEmitAndSemanticDiagnosticsBuilderProgram(newProgram: Program, host: BuilderProgramHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): EmitAndSemanticDiagnosticsBuilderProgram; + function createEmitAndSemanticDiagnosticsBuilderProgram(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: EmitAndSemanticDiagnosticsBuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): EmitAndSemanticDiagnosticsBuilderProgram; + /** + * Creates a builder thats just abstraction over program and can be used with watch + */ + function createAbstractBuilder(newProgram: Program, host: BuilderProgramHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>): BuilderProgram; + function createAbstractBuilder(rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: BuilderProgram, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference>): BuilderProgram; +} +declare namespace ts { + type WatchStatusReporter = (diagnostic: Diagnostic, newLine: string, options: CompilerOptions) => void; + /** Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program */ + type CreateProgram<T extends BuilderProgram> = (rootNames: ReadonlyArray<string> | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: T, configFileParsingDiagnostics?: ReadonlyArray<Diagnostic>, projectReferences?: ReadonlyArray<ProjectReference> | undefined) => T; + /** Host that has watch functionality used in --watch mode */ + interface WatchHost { + /** If provided, called with Diagnostic message that informs about change in watch status */ + onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions): void; + /** Used to watch changes in source files, missing files needed to update the program or config file */ + watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number): FileWatcher; + /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ + watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher; + /** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */ + setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; + /** If provided, will be used to reset existing delayed compilation */ + clearTimeout?(timeoutId: any): void; + } + interface WatchCompilerHost<T extends BuilderProgram> extends WatchHost { + /** + * Used to create the program when need for program creation or recreation detected + */ + createProgram: CreateProgram<T>; + /** If provided, callback to invoke after every new program creation */ + afterProgramCreate?(program: T): void; + useCaseSensitiveFileNames(): boolean; + getNewLine(): string; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + getDefaultLibLocation?(): string; + createHash?(data: string): string; + /** + * Use to check file presence for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + fileExists(path: string): boolean; + /** + * Use to read file text for source files and + * if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well + */ + readFile(path: string, encoding?: string): string | undefined; + /** If provided, used for module resolution as well as to handle directory structure */ + directoryExists?(path: string): boolean; + /** If provided, used in resolutions as well as handling directory structure */ + getDirectories?(path: string): string[]; + /** If provided, used to cache and handle directory structure modifications */ + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + /** Symbol links resolution */ + realpath?(path: string): string; + /** If provided would be used to write log about compilation */ + trace?(s: string): void; + /** If provided is used to get the environment variable */ + getEnvironmentVariable?(name: string): string | undefined; + /** If provided, used to resolve the module names, otherwise typescript's default module resolution */ + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */ + resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + } + /** + * Host to create watch with root files and options + */ + interface WatchCompilerHostOfFilesAndCompilerOptions<T extends BuilderProgram> extends WatchCompilerHost<T> { + /** root files to use to generate program */ + rootFiles: string[]; + /** Compiler options */ + options: CompilerOptions; + /** Project References */ + projectReferences?: ReadonlyArray<ProjectReference>; + } + /** + * Host to create watch with config file + */ + interface WatchCompilerHostOfConfigFile<T extends BuilderProgram> extends WatchCompilerHost<T>, ConfigFileDiagnosticsReporter { + /** Name of the config file to compile */ + configFileName: string; + /** Options to extend */ + optionsToExtend?: CompilerOptions; + /** + * Used to generate source file names from the config file and its include, exclude, files rules + * and also to cache the directory stucture + */ + readDirectory(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + } + interface Watch<T> { + /** Synchronize with host and get updated program */ + getProgram(): T; + } + /** + * Creates the watch what generates program using the config file + */ + interface WatchOfConfigFile<T> extends Watch<T> { + } + /** + * Creates the watch that generates program using the root files and compiler options + */ + interface WatchOfFilesAndCompilerOptions<T> extends Watch<T> { + /** Updates the root files in the program, only if this is not config file compilation */ + updateRootFileNames(fileNames: string[]): void; + } + /** + * Create the watch compiler host for either configFile or fileNames and its options + */ + function createWatchCompilerHost<T extends BuilderProgram>(configFileName: string, optionsToExtend: CompilerOptions | undefined, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): WatchCompilerHostOfConfigFile<T>; + function createWatchCompilerHost<T extends BuilderProgram>(rootFiles: string[], options: CompilerOptions, system: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter, projectReferences?: ReadonlyArray<ProjectReference>): WatchCompilerHostOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for root files and compiler options + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfFilesAndCompilerOptions<T>): WatchOfFilesAndCompilerOptions<T>; + /** + * Creates the watch from the host for config file + */ + function createWatchProgram<T extends BuilderProgram>(host: WatchCompilerHostOfConfigFile<T>): WatchOfConfigFile<T>; +} +declare namespace ts.server { + type ActionSet = "action::set"; + type ActionInvalidate = "action::invalidate"; + type ActionPackageInstalled = "action::packageInstalled"; + type ActionValueInspected = "action::valueInspected"; + type EventTypesRegistry = "event::typesRegistry"; + type EventBeginInstallTypes = "event::beginInstallTypes"; + type EventEndInstallTypes = "event::endInstallTypes"; + type EventInitializationFailed = "event::initializationFailed"; + interface TypingInstallerResponse { + readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | ActionValueInspected | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed; + } + interface TypingInstallerRequestWithProjectName { + readonly projectName: string; + } + interface DiscoverTypings extends TypingInstallerRequestWithProjectName { + readonly fileNames: string[]; + readonly projectRootPath: Path; + readonly compilerOptions: CompilerOptions; + readonly typeAcquisition: TypeAcquisition; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly cachePath?: string; + readonly kind: "discover"; + } + interface CloseProject extends TypingInstallerRequestWithProjectName { + readonly kind: "closeProject"; + } + interface TypesRegistryRequest { + readonly kind: "typesRegistry"; + } + interface InstallPackageRequest extends TypingInstallerRequestWithProjectName { + readonly kind: "installPackage"; + readonly fileName: Path; + readonly packageName: string; + readonly projectRootPath: Path; + } + interface PackageInstalledResponse extends ProjectResponse { + readonly kind: ActionPackageInstalled; + readonly success: boolean; + readonly message: string; + } + interface InitializationFailedResponse extends TypingInstallerResponse { + readonly kind: EventInitializationFailed; + readonly message: string; + } + interface ProjectResponse extends TypingInstallerResponse { + readonly projectName: string; + } + interface InvalidateCachedTypings extends ProjectResponse { + readonly kind: ActionInvalidate; + } + interface InstallTypes extends ProjectResponse { + readonly kind: EventBeginInstallTypes | EventEndInstallTypes; + readonly eventId: number; + readonly typingsInstallerVersion: string; + readonly packagesToInstall: ReadonlyArray<string>; + } + interface BeginInstallTypes extends InstallTypes { + readonly kind: EventBeginInstallTypes; + } + interface EndInstallTypes extends InstallTypes { + readonly kind: EventEndInstallTypes; + readonly installSuccess: boolean; + } + interface SetTypings extends ProjectResponse { + readonly typeAcquisition: TypeAcquisition; + readonly compilerOptions: CompilerOptions; + readonly typings: string[]; + readonly unresolvedImports: SortedReadonlyArray<string>; + readonly kind: ActionSet; + } +} +declare namespace ts { + interface Node { + getSourceFile(): SourceFile; + getChildCount(sourceFile?: SourceFile): number; + getChildAt(index: number, sourceFile?: SourceFile): Node; + getChildren(sourceFile?: SourceFile): Node[]; + getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number; + getFullStart(): number; + getEnd(): number; + getWidth(sourceFile?: SourceFileLike): number; + getFullWidth(): number; + getLeadingTriviaWidth(sourceFile?: SourceFile): number; + getFullText(sourceFile?: SourceFile): string; + getText(sourceFile?: SourceFile): string; + getFirstToken(sourceFile?: SourceFile): Node | undefined; + getLastToken(sourceFile?: SourceFile): Node | undefined; + forEachChild<T>(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray<Node>) => T | undefined): T | undefined; + } + interface Identifier { + readonly text: string; + } + interface Symbol { + readonly name: string; + getFlags(): SymbolFlags; + getEscapedName(): __String; + getName(): string; + getDeclarations(): Declaration[] | undefined; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface Type { + getFlags(): TypeFlags; + getSymbol(): Symbol | undefined; + getProperties(): Symbol[]; + getProperty(propertyName: string): Symbol | undefined; + getApparentProperties(): Symbol[]; + getCallSignatures(): ReadonlyArray<Signature>; + getConstructSignatures(): ReadonlyArray<Signature>; + getStringIndexType(): Type | undefined; + getNumberIndexType(): Type | undefined; + getBaseTypes(): BaseType[] | undefined; + getNonNullableType(): Type; + getConstraint(): Type | undefined; + getDefault(): Type | undefined; + isUnion(): this is UnionType; + isIntersection(): this is IntersectionType; + isUnionOrIntersection(): this is UnionOrIntersectionType; + isLiteral(): this is LiteralType; + isStringLiteral(): this is StringLiteralType; + isNumberLiteral(): this is NumberLiteralType; + isTypeParameter(): this is TypeParameter; + isClassOrInterface(): this is InterfaceType; + isClass(): this is InterfaceType; + } + interface Signature { + getDeclaration(): SignatureDeclaration; + getTypeParameters(): TypeParameter[] | undefined; + getParameters(): Symbol[]; + getReturnType(): Type; + getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[]; + getJsDocTags(): JSDocTagInfo[]; + } + interface SourceFile { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + getLineEndOfPosition(pos: number): number; + getLineStarts(): ReadonlyArray<number>; + getPositionOfLineAndCharacter(line: number, character: number): number; + update(newText: string, textChangeRange: TextChangeRange): SourceFile; + } + interface SourceFileLike { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + interface SourceMapSource { + getLineAndCharacterOfPosition(pos: number): LineAndCharacter; + } + /** + * Represents an immutable snapshot of a script at a specified time.Once acquired, the + * snapshot is observably immutable. i.e. the same calls with the same parameters will return + * the same values. + */ + interface IScriptSnapshot { + /** Gets a portion of the script snapshot specified by [start, end). */ + getText(start: number, end: number): string; + /** Gets the length of this script snapshot. */ + getLength(): number; + /** + * Gets the TextChangeRange that describe how the text changed between this text and + * an older version. This information is used by the incremental parser to determine + * what sections of the script need to be re-parsed. 'undefined' can be returned if the + * change range cannot be determined. However, in that case, incremental parsing will + * not happen and the entire document will be re - parsed. + */ + getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange | undefined; + /** Releases all resources held by this script snapshot */ + dispose?(): void; + } + namespace ScriptSnapshot { + function fromString(text: string): IScriptSnapshot; + } + interface PreProcessedFileInfo { + referencedFiles: FileReference[]; + typeReferenceDirectives: FileReference[]; + libReferenceDirectives: FileReference[]; + importedFiles: FileReference[]; + ambientExternalModules?: string[]; + isLibFile: boolean; + } + interface HostCancellationToken { + isCancellationRequested(): boolean; + } + interface InstallPackageOptions { + fileName: Path; + packageName: string; + } + interface LanguageServiceHost extends GetEffectiveTypeRootsHost { + getCompilationSettings(): CompilerOptions; + getNewLine?(): string; + getProjectVersion?(): string; + getScriptFileNames(): string[]; + getScriptKind?(fileName: string): ScriptKind; + getScriptVersion(fileName: string): string; + getScriptSnapshot(fileName: string): IScriptSnapshot | undefined; + getProjectReferences?(): ReadonlyArray<ProjectReference> | undefined; + getLocalizedDiagnosticMessages?(): any; + getCancellationToken?(): HostCancellationToken; + getCurrentDirectory(): string; + getDefaultLibFileName(options: CompilerOptions): string; + log?(s: string): void; + trace?(s: string): void; + error?(s: string): void; + useCaseSensitiveFileNames?(): boolean; + readDirectory?(path: string, extensions?: ReadonlyArray<string>, exclude?: ReadonlyArray<string>, include?: ReadonlyArray<string>, depth?: number): string[]; + readFile?(path: string, encoding?: string): string | undefined; + realpath?(path: string): string; + fileExists?(path: string): boolean; + getTypeRootsVersion?(): number; + resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModule | undefined)[]; + getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined; + resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[]; + getDirectories?(directoryName: string): string[]; + /** + * Gets a set of custom transformers to use during emit. + */ + getCustomTransformers?(): CustomTransformers | undefined; + isKnownTypesPackageName?(name: string): boolean; + installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>; + writeFile?(fileName: string, content: string): void; + } + type WithMetadata<T> = T & { + metadata?: unknown; + }; + interface LanguageService { + cleanupSemanticCache(): void; + getSyntacticDiagnostics(fileName: string): DiagnosticWithLocation[]; + /** The first time this is called, it will return global diagnostics (no location). */ + getSemanticDiagnostics(fileName: string): Diagnostic[]; + getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[]; + getCompilerOptionsDiagnostics(): Diagnostic[]; + /** + * @deprecated Use getEncodedSyntacticClassifications instead. + */ + getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + /** + * @deprecated Use getEncodedSemanticClassifications instead. + */ + getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[]; + getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications; + getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications; + getCompletionsAtPosition(fileName: string, position: number, options: GetCompletionsAtPositionOptions | undefined): WithMetadata<CompletionInfo> | undefined; + getCompletionEntryDetails(fileName: string, position: number, name: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined): CompletionEntryDetails | undefined; + getCompletionEntrySymbol(fileName: string, position: number, name: string, source: string | undefined): Symbol | undefined; + getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined; + getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined; + getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined; + getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined; + getRenameInfo(fileName: string, position: number): RenameInfo; + findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): ReadonlyArray<RenameLocation> | undefined; + getDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined; + getTypeDefinitionAtPosition(fileName: string, position: number): ReadonlyArray<DefinitionInfo> | undefined; + getImplementationAtPosition(fileName: string, position: number): ReadonlyArray<ImplementationLocation> | undefined; + getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[] | undefined; + findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined; + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReadonlyArray<ReferenceEntry> | undefined; + getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[]; + getNavigationBarItems(fileName: string): NavigationBarItem[]; + getNavigationTree(fileName: string): NavigationTree; + getOutliningSpans(fileName: string): OutliningSpan[]; + getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[]; + getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[]; + getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number; + getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[]; + getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined; + isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean; + /** + * This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag. + * Editors should call this after `>` is typed. + */ + getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined; + getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined; + toLineColumnOffset?(fileName: string, position: number): LineAndCharacter; + getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: ReadonlyArray<number>, formatOptions: FormatCodeSettings, preferences: UserPreferences): ReadonlyArray<CodeFixAction>; + getCombinedCodeFix(scope: CombinedCodeFixScope, fixId: {}, formatOptions: FormatCodeSettings, preferences: UserPreferences): CombinedCodeActions; + applyCodeActionCommand(action: CodeActionCommand, formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult>; + applyCodeActionCommand(action: CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult[]>; + applyCodeActionCommand(action: CodeActionCommand | CodeActionCommand[], formatSettings?: FormatCodeSettings): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand): Promise<ApplyCodeActionCommandResult>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>; + /** @deprecated `fileName` will be ignored */ + applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>; + getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined): ApplicableRefactorInfo[]; + getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined; + organizeImports(scope: OrganizeImportsScope, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): ReadonlyArray<FileTextChanges>; + getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean): EmitOutput; + getProgram(): Program | undefined; + dispose(): void; + } + interface JsxClosingTagInfo { + readonly newText: string; + } + interface CombinedCodeFixScope { + type: "file"; + fileName: string; + } + type OrganizeImportsScope = CombinedCodeFixScope; + type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<"; + interface GetCompletionsAtPositionOptions extends UserPreferences { + /** + * If the editor is asking for completions because a certain character was typed + * (as opposed to when the user explicitly requested them) this should be set. + */ + triggerCharacter?: CompletionsTriggerCharacter; + /** @deprecated Use includeCompletionsForModuleExports */ + includeExternalModuleExports?: boolean; + /** @deprecated Use includeCompletionsWithInsertText */ + includeInsertTextCompletions?: boolean; + } + type SignatureHelpTriggerCharacter = "," | "(" | "<"; + type SignatureHelpRetriggerCharacter = SignatureHelpTriggerCharacter | ")"; + interface SignatureHelpItemsOptions { + triggerReason?: SignatureHelpTriggerReason; + } + type SignatureHelpTriggerReason = SignatureHelpInvokedReason | SignatureHelpCharacterTypedReason | SignatureHelpRetriggeredReason; + /** + * Signals that the user manually requested signature help. + * The language service will unconditionally attempt to provide a result. + */ + interface SignatureHelpInvokedReason { + kind: "invoked"; + triggerCharacter?: undefined; + } + /** + * Signals that the signature help request came from a user typing a character. + * Depending on the character and the syntactic context, the request may or may not be served a result. + */ + interface SignatureHelpCharacterTypedReason { + kind: "characterTyped"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter: SignatureHelpTriggerCharacter; + } + /** + * Signals that this signature help request came from typing a character or moving the cursor. + * This should only occur if a signature help session was already active and the editor needs to see if it should adjust. + * The language service will unconditionally attempt to provide a result. + * `triggerCharacter` can be `undefined` for a retrigger caused by a cursor move. + */ + interface SignatureHelpRetriggeredReason { + kind: "retrigger"; + /** + * Character that was responsible for triggering signature help. + */ + triggerCharacter?: SignatureHelpRetriggerCharacter; + } + interface ApplyCodeActionCommandResult { + successMessage: string; + } + interface Classifications { + spans: number[]; + endOfLineState: EndOfLineState; + } + interface ClassifiedSpan { + textSpan: TextSpan; + classificationType: ClassificationTypeNames; + } + /** + * Navigation bar interface designed for visual studio's dual-column layout. + * This does not form a proper tree. + * The navbar is returned as a list of top-level items, each of which has a list of child items. + * Child items always have an empty array for their `childItems`. + */ + interface NavigationBarItem { + text: string; + kind: ScriptElementKind; + kindModifiers: string; + spans: TextSpan[]; + childItems: NavigationBarItem[]; + indent: number; + bolded: boolean; + grayed: boolean; + } + /** + * Node in a tree of nested declarations in a file. + * The top node is always a script or module node. + */ + interface NavigationTree { + /** Name of the declaration, or a short description, e.g. "<class>". */ + text: string; + kind: ScriptElementKind; + /** ScriptElementKindModifier separated by commas, e.g. "public,abstract" */ + kindModifiers: string; + /** + * Spans of the nodes that generated this declaration. + * There will be more than one if this is the result of merging. + */ + spans: TextSpan[]; + nameSpan: TextSpan | undefined; + /** Present if non-empty */ + childItems?: NavigationTree[]; + } + interface TodoCommentDescriptor { + text: string; + priority: number; + } + interface TodoComment { + descriptor: TodoCommentDescriptor; + message: string; + position: number; + } + interface TextChange { + span: TextSpan; + newText: string; + } + interface FileTextChanges { + fileName: string; + textChanges: TextChange[]; + isNewFile?: boolean; + } + interface CodeAction { + /** Description of the code action to display in the UI of the editor */ + description: string; + /** Text changes to apply to each file as part of the code action */ + changes: FileTextChanges[]; + /** + * If the user accepts the code fix, the editor should send the action back in a `applyAction` request. + * This allows the language service to have side effects (e.g. installing dependencies) upon a code fix. + */ + commands?: CodeActionCommand[]; + } + interface CodeFixAction extends CodeAction { + /** Short name to identify the fix, for use by telemetry. */ + fixName: string; + /** + * If present, one may call 'getCombinedCodeFix' with this fixId. + * This may be omitted to indicate that the code fix can't be applied in a group. + */ + fixId?: {}; + fixAllDescription?: string; + } + interface CombinedCodeActions { + changes: ReadonlyArray<FileTextChanges>; + commands?: ReadonlyArray<CodeActionCommand>; + } + type CodeActionCommand = InstallPackageAction | GenerateTypesAction; + interface InstallPackageAction { + } + interface GenerateTypesAction extends GenerateTypesOptions { + } + interface GenerateTypesOptions { + readonly file: string; + readonly fileToGenerateTypesFor: string; + readonly outputFileName: string; + } + /** + * A set of one or more available refactoring actions, grouped under a parent refactoring. + */ + interface ApplicableRefactorInfo { + /** + * The programmatic name of the refactoring + */ + name: string; + /** + * A description of this refactoring category to show to the user. + * If the refactoring gets inlined (see below), this text will not be visible. + */ + description: string; + /** + * Inlineable refactorings can have their actions hoisted out to the top level + * of a context menu. Non-inlineanable refactorings should always be shown inside + * their parent grouping. + * + * If not specified, this value is assumed to be 'true' + */ + inlineable?: boolean; + actions: RefactorActionInfo[]; + } + /** + * Represents a single refactoring action - for example, the "Extract Method..." refactor might + * offer several actions, each corresponding to a surround class or closure to extract into. + */ + interface RefactorActionInfo { + /** + * The programmatic name of the refactoring action + */ + name: string; + /** + * A description of this refactoring action to show to the user. + * If the parent refactoring is inlined away, this will be the only text shown, + * so this description should make sense by itself if the parent is inlineable=true + */ + description: string; + } + /** + * A set of edits to make in response to a refactor action, plus an optional + * location where renaming should be invoked from + */ + interface RefactorEditInfo { + edits: FileTextChanges[]; + renameFilename?: string; + renameLocation?: number; + commands?: CodeActionCommand[]; + } + interface TextInsertion { + newText: string; + /** The position in newText the caret should point to after the insertion. */ + caretOffset: number; + } + interface DocumentSpan { + textSpan: TextSpan; + fileName: string; + /** + * If the span represents a location that was remapped (e.g. via a .d.ts.map file), + * then the original filename and span will be specified here + */ + originalTextSpan?: TextSpan; + originalFileName?: string; + } + interface RenameLocation extends DocumentSpan { + readonly prefixText?: string; + readonly suffixText?: string; + } + interface ReferenceEntry extends DocumentSpan { + isWriteAccess: boolean; + isDefinition: boolean; + isInString?: true; + } + interface ImplementationLocation extends DocumentSpan { + kind: ScriptElementKind; + displayParts: SymbolDisplayPart[]; + } + interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + enum HighlightSpanKind { + none = "none", + definition = "definition", + reference = "reference", + writtenReference = "writtenReference" + } + interface HighlightSpan { + fileName?: string; + isInString?: true; + textSpan: TextSpan; + kind: HighlightSpanKind; + } + interface NavigateToItem { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + matchKind: "exact" | "prefix" | "substring" | "camelCase"; + isCaseSensitive: boolean; + fileName: string; + textSpan: TextSpan; + containerName: string; + containerKind: ScriptElementKind; + } + enum IndentStyle { + None = 0, + Block = 1, + Smart = 2 + } + interface EditorOptions { + BaseIndentSize?: number; + IndentSize: number; + TabSize: number; + NewLineCharacter: string; + ConvertTabsToSpaces: boolean; + IndentStyle: IndentStyle; + } + interface EditorSettings { + baseIndentSize?: number; + indentSize?: number; + tabSize?: number; + newLineCharacter?: string; + convertTabsToSpaces?: boolean; + indentStyle?: IndentStyle; + } + interface FormatCodeOptions extends EditorOptions { + InsertSpaceAfterCommaDelimiter: boolean; + InsertSpaceAfterSemicolonInForStatements: boolean; + InsertSpaceBeforeAndAfterBinaryOperators: boolean; + InsertSpaceAfterConstructor?: boolean; + InsertSpaceAfterKeywordsInControlFlowStatements: boolean; + InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: boolean; + InsertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean; + InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + InsertSpaceAfterTypeAssertion?: boolean; + InsertSpaceBeforeFunctionParenthesis?: boolean; + PlaceOpenBraceOnNewLineForFunctions: boolean; + PlaceOpenBraceOnNewLineForControlBlocks: boolean; + insertSpaceBeforeTypeAnnotation?: boolean; + } + interface FormatCodeSettings extends EditorSettings { + readonly insertSpaceAfterCommaDelimiter?: boolean; + readonly insertSpaceAfterSemicolonInForStatements?: boolean; + readonly insertSpaceBeforeAndAfterBinaryOperators?: boolean; + readonly insertSpaceAfterConstructor?: boolean; + readonly insertSpaceAfterKeywordsInControlFlowStatements?: boolean; + readonly insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean; + readonly insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean; + readonly insertSpaceAfterTypeAssertion?: boolean; + readonly insertSpaceBeforeFunctionParenthesis?: boolean; + readonly placeOpenBraceOnNewLineForFunctions?: boolean; + readonly placeOpenBraceOnNewLineForControlBlocks?: boolean; + readonly insertSpaceBeforeTypeAnnotation?: boolean; + readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean; + } + function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings; + interface DefinitionInfo extends DocumentSpan { + kind: ScriptElementKind; + name: string; + containerKind: ScriptElementKind; + containerName: string; + } + interface DefinitionInfoAndBoundSpan { + definitions?: ReadonlyArray<DefinitionInfo>; + textSpan: TextSpan; + } + interface ReferencedSymbolDefinitionInfo extends DefinitionInfo { + displayParts: SymbolDisplayPart[]; + } + interface ReferencedSymbol { + definition: ReferencedSymbolDefinitionInfo; + references: ReferenceEntry[]; + } + enum SymbolDisplayPartKind { + aliasName = 0, + className = 1, + enumName = 2, + fieldName = 3, + interfaceName = 4, + keyword = 5, + lineBreak = 6, + numericLiteral = 7, + stringLiteral = 8, + localName = 9, + methodName = 10, + moduleName = 11, + operator = 12, + parameterName = 13, + propertyName = 14, + punctuation = 15, + space = 16, + text = 17, + typeParameterName = 18, + enumMemberName = 19, + functionName = 20, + regularExpressionLiteral = 21 + } + interface SymbolDisplayPart { + text: string; + kind: string; + } + interface JSDocTagInfo { + name: string; + text?: string; + } + interface QuickInfo { + kind: ScriptElementKind; + kindModifiers: string; + textSpan: TextSpan; + displayParts?: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + } + type RenameInfo = RenameInfoSuccess | RenameInfoFailure; + interface RenameInfoSuccess { + canRename: true; + /** + * File or directory to rename. + * If set, `getEditsForFileRename` should be called instead of `findRenameLocations`. + */ + fileToRename?: string; + displayName: string; + fullDisplayName: string; + kind: ScriptElementKind; + kindModifiers: string; + triggerSpan: TextSpan; + } + interface RenameInfoFailure { + canRename: false; + localizedErrorMessage: string; + } + interface SignatureHelpParameter { + name: string; + documentation: SymbolDisplayPart[]; + displayParts: SymbolDisplayPart[]; + isOptional: boolean; + } + /** + * Represents a single signature to show in signature help. + * The id is used for subsequent calls into the language service to ask questions about the + * signature help item in the context of any documents that have been updated. i.e. after + * an edit has happened, while signature help is still active, the host can ask important + * questions like 'what parameter is the user currently contained within?'. + */ + interface SignatureHelpItem { + isVariadic: boolean; + prefixDisplayParts: SymbolDisplayPart[]; + suffixDisplayParts: SymbolDisplayPart[]; + separatorDisplayParts: SymbolDisplayPart[]; + parameters: SignatureHelpParameter[]; + documentation: SymbolDisplayPart[]; + tags: JSDocTagInfo[]; + } + /** + * Represents a set of signature help items, and the preferred item that should be selected. + */ + interface SignatureHelpItems { + items: SignatureHelpItem[]; + applicableSpan: TextSpan; + selectedItemIndex: number; + argumentIndex: number; + argumentCount: number; + } + interface CompletionInfo { + /** Not true for all glboal completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */ + isGlobalCompletion: boolean; + isMemberCompletion: boolean; + /** + * true when the current location also allows for a new identifier + */ + isNewIdentifierLocation: boolean; + entries: CompletionEntry[]; + } + interface CompletionEntry { + name: string; + kind: ScriptElementKind; + kindModifiers?: string; + sortText: string; + insertText?: string; + /** + * An optional span that indicates the text to be replaced by this completion item. + * If present, this span should be used instead of the default one. + * It will be set if the required span differs from the one generated by the default replacement behavior. + */ + replacementSpan?: TextSpan; + hasAction?: true; + source?: string; + isRecommended?: true; + } + interface CompletionEntryDetails { + name: string; + kind: ScriptElementKind; + kindModifiers: string; + displayParts: SymbolDisplayPart[]; + documentation?: SymbolDisplayPart[]; + tags?: JSDocTagInfo[]; + codeActions?: CodeAction[]; + source?: SymbolDisplayPart[]; + } + interface OutliningSpan { + /** The span of the document to actually collapse. */ + textSpan: TextSpan; + /** The span of the document to display when the user hovers over the collapsed span. */ + hintSpan: TextSpan; + /** The text to display in the editor for the collapsed region. */ + bannerText: string; + /** + * Whether or not this region should be automatically collapsed when + * the 'Collapse to Definitions' command is invoked. + */ + autoCollapse: boolean; + /** + * Classification of the contents of the span + */ + kind: OutliningSpanKind; + } + enum OutliningSpanKind { + /** Single or multi-line comments */ + Comment = "comment", + /** Sections marked by '// #region' and '// #endregion' comments */ + Region = "region", + /** Declarations and expressions */ + Code = "code", + /** Contiguous blocks of import declarations */ + Imports = "imports" + } + enum OutputFileType { + JavaScript = 0, + SourceMap = 1, + Declaration = 2 + } + enum EndOfLineState { + None = 0, + InMultiLineCommentTrivia = 1, + InSingleQuoteStringLiteral = 2, + InDoubleQuoteStringLiteral = 3, + InTemplateHeadOrNoSubstitutionTemplate = 4, + InTemplateMiddleOrTail = 5, + InTemplateSubstitutionPosition = 6 + } + enum TokenClass { + Punctuation = 0, + Keyword = 1, + Operator = 2, + Comment = 3, + Whitespace = 4, + Identifier = 5, + NumberLiteral = 6, + BigIntLiteral = 7, + StringLiteral = 8, + RegExpLiteral = 9 + } + interface ClassificationResult { + finalLexState: EndOfLineState; + entries: ClassificationInfo[]; + } + interface ClassificationInfo { + length: number; + classification: TokenClass; + } + interface Classifier { + /** + * Gives lexical classifications of tokens on a line without any syntactic context. + * For instance, a token consisting of the text 'string' can be either an identifier + * named 'string' or the keyword 'string', however, because this classifier is not aware, + * it relies on certain heuristics to give acceptable results. For classifications where + * speed trumps accuracy, this function is preferable; however, for true accuracy, the + * syntactic classifier is ideal. In fact, in certain editing scenarios, combining the + * lexical, syntactic, and semantic classifiers may issue the best user experience. + * + * @param text The text of a line to classify. + * @param lexState The state of the lexical classifier at the end of the previous line. + * @param syntacticClassifierAbsent Whether the client is *not* using a syntactic classifier. + * If there is no syntactic classifier (syntacticClassifierAbsent=true), + * certain heuristics may be used in its place; however, if there is a + * syntactic classifier (syntacticClassifierAbsent=false), certain + * classifications which may be incorrectly categorized will be given + * back as Identifiers in order to allow the syntactic classifier to + * subsume the classification. + * @deprecated Use getLexicalClassifications instead. + */ + getClassificationsForLine(text: string, lexState: EndOfLineState, syntacticClassifierAbsent: boolean): ClassificationResult; + getEncodedLexicalClassifications(text: string, endOfLineState: EndOfLineState, syntacticClassifierAbsent: boolean): Classifications; + } + enum ScriptElementKind { + unknown = "", + warning = "warning", + /** predefined type (void) or keyword (class) */ + keyword = "keyword", + /** top level script node */ + scriptElement = "script", + /** module foo {} */ + moduleElement = "module", + /** class X {} */ + classElement = "class", + /** var x = class X {} */ + localClassElement = "local class", + /** interface Y {} */ + interfaceElement = "interface", + /** type T = ... */ + typeElement = "type", + /** enum E */ + enumElement = "enum", + enumMemberElement = "enum member", + /** + * Inside module and script only + * const v = .. + */ + variableElement = "var", + /** Inside function */ + localVariableElement = "local var", + /** + * Inside module and script only + * function f() { } + */ + functionElement = "function", + /** Inside function */ + localFunctionElement = "local function", + /** class X { [public|private]* foo() {} } */ + memberFunctionElement = "method", + /** class X { [public|private]* [get|set] foo:number; } */ + memberGetAccessorElement = "getter", + memberSetAccessorElement = "setter", + /** + * class X { [public|private]* foo:number; } + * interface Y { foo:number; } + */ + memberVariableElement = "property", + /** class X { constructor() { } } */ + constructorImplementationElement = "constructor", + /** interface Y { ():number; } */ + callSignatureElement = "call", + /** interface Y { []:number; } */ + indexSignatureElement = "index", + /** interface Y { new():Y; } */ + constructSignatureElement = "construct", + /** function foo(*Y*: string) */ + parameterElement = "parameter", + typeParameterElement = "type parameter", + primitiveType = "primitive type", + label = "label", + alias = "alias", + constElement = "const", + letElement = "let", + directory = "directory", + externalModuleName = "external module name", + /** + * <JsxTagName attribute1 attribute2={0} /> + */ + jsxAttribute = "JSX attribute", + /** String literal */ + string = "string" + } + enum ScriptElementKindModifier { + none = "", + publicMemberModifier = "public", + privateMemberModifier = "private", + protectedMemberModifier = "protected", + exportedModifier = "export", + ambientModifier = "declare", + staticModifier = "static", + abstractModifier = "abstract", + optionalModifier = "optional", + dtsModifier = ".d.ts", + tsModifier = ".ts", + tsxModifier = ".tsx", + jsModifier = ".js", + jsxModifier = ".jsx", + jsonModifier = ".json" + } + enum ClassificationTypeNames { + comment = "comment", + identifier = "identifier", + keyword = "keyword", + numericLiteral = "number", + bigintLiteral = "bigint", + operator = "operator", + stringLiteral = "string", + whiteSpace = "whitespace", + text = "text", + punctuation = "punctuation", + className = "class name", + enumName = "enum name", + interfaceName = "interface name", + moduleName = "module name", + typeParameterName = "type parameter name", + typeAliasName = "type alias name", + parameterName = "parameter name", + docCommentTagName = "doc comment tag name", + jsxOpenTagName = "jsx open tag name", + jsxCloseTagName = "jsx close tag name", + jsxSelfClosingTagName = "jsx self closing tag name", + jsxAttribute = "jsx attribute", + jsxText = "jsx text", + jsxAttributeStringLiteralValue = "jsx attribute string literal value" + } + enum ClassificationType { + comment = 1, + identifier = 2, + keyword = 3, + numericLiteral = 4, + operator = 5, + stringLiteral = 6, + regularExpressionLiteral = 7, + whiteSpace = 8, + text = 9, + punctuation = 10, + className = 11, + enumName = 12, + interfaceName = 13, + moduleName = 14, + typeParameterName = 15, + typeAliasName = 16, + parameterName = 17, + docCommentTagName = 18, + jsxOpenTagName = 19, + jsxCloseTagName = 20, + jsxSelfClosingTagName = 21, + jsxAttribute = 22, + jsxText = 23, + jsxAttributeStringLiteralValue = 24, + bigintLiteral = 25 + } +} +declare namespace ts { + function createClassifier(): Classifier; +} +declare namespace ts { + /** + * The document registry represents a store of SourceFile objects that can be shared between + * multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) + * of files in the context. + * SourceFile objects account for most of the memory usage by the language service. Sharing + * the same DocumentRegistry instance between different instances of LanguageService allow + * for more efficient memory utilization since all projects will share at least the library + * file (lib.d.ts). + * + * A more advanced use of the document registry is to serialize sourceFile objects to disk + * and re-hydrate them when needed. + * + * To create a default DocumentRegistry, use createDocumentRegistry to create one, and pass it + * to all subsequent createLanguageService calls. + */ + interface DocumentRegistry { + /** + * Request a stored SourceFile with a given fileName and compilationSettings. + * The first call to acquire will call createLanguageServiceSourceFile to generate + * the SourceFile if was not found in the registry. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. Only used if the file was not found + * in the registry and a new one was created. + * @param version Current version of the file. Only used if the file was not found + * in the registry and a new one was created. + */ + acquireDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + acquireDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + /** + * Request an updated version of an already existing SourceFile with a given fileName + * and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile + * to get an updated SourceFile. + * + * @param fileName The name of the file requested + * @param compilationSettings Some compilation settings like target affects the + * shape of a the resulting SourceFile. This allows the DocumentRegistry to store + * multiple copies of the same file for different compilation settings. + * @param scriptSnapshot Text of the file. + * @param version Current version of the file. + */ + updateDocument(fileName: string, compilationSettings: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + updateDocumentWithKey(fileName: string, path: Path, compilationSettings: CompilerOptions, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile; + getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey; + /** + * Informs the DocumentRegistry that a file is not needed any longer. + * + * Note: It is not allowed to call release on a SourceFile that was not acquired from + * this registry originally. + * + * @param fileName The name of the file to be released + * @param compilationSettings The compilation settings used to acquire the file + */ + releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; + releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void; + reportStats(): string; + } + type DocumentRegistryBucketKey = string & { + __bucketKey: any; + }; + function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry; +} +declare namespace ts { + function preProcessFile(sourceText: string, readImportFiles?: boolean, detectJavaScriptImports?: boolean): PreProcessedFileInfo; +} +declare namespace ts { + interface TranspileOptions { + compilerOptions?: CompilerOptions; + fileName?: string; + reportDiagnostics?: boolean; + moduleName?: string; + renamedDependencies?: MapLike<string>; + transformers?: CustomTransformers; + } + interface TranspileOutput { + outputText: string; + diagnostics?: Diagnostic[]; + sourceMapText?: string; + } + function transpileModule(input: string, transpileOptions: TranspileOptions): TranspileOutput; + function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string; +} +declare namespace ts { + function generateTypesForModule(name: string, moduleValue: unknown, formatSettings: FormatCodeSettings): string; + function generateTypesForGlobal(name: string, globalValue: unknown, formatSettings: FormatCodeSettings): string; +} +declare namespace ts { + /** The version of the language service API */ + const servicesVersion = "0.8"; + function toEditorSettings(options: EditorOptions | EditorSettings): EditorSettings; + function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string; + function getDefaultCompilerOptions(): CompilerOptions; + function getSupportedCodeFixes(): string[]; + function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile; + let disableIncrementalParsing: boolean; + function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile; + function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnly?: boolean): LanguageService; + /** + * Get the path of the default library files (lib.d.ts) as distributed with the typescript + * node package. + * The functionality is not supported if the ts module is consumed outside of a node module. + */ + function getDefaultLibFilePath(options: CompilerOptions): string; +} +declare namespace ts { + /** + * Transform one or more nodes using the supplied transformers. + * @param source A single `Node` or an array of `Node` objects. + * @param transformers An array of `TransformerFactory` callbacks used to process the transformation. + * @param compilerOptions Optional compiler options. + */ + function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>; +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/uncacheable.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/uncacheable.js new file mode 100644 index 0000000..28e5af3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/uncacheable.js @@ -0,0 +1,4 @@ +module.exports = function (input, map) { + this.cacheable(false); + return this.callback(null, input, map); +};
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/readme.md b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/readme.md new file mode 100644 index 0000000..36574a3 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/readme.md @@ -0,0 +1,11 @@ +# About this directory + +This directory will contain: + +- `index.js` the main ncc bundle +- `cli.js` the CLI bundle, excluding the main ncc bundle +- `typescript.js` the TypeScript detection file + +These are generated by the `build` step defined in `../../package.json`. + +These files are published to npm. diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js new file mode 100644 index 0000000..990eb8d --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js @@ -0,0 +1,8 @@ +const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module'); +const basename = __dirname + '/sourcemap-register.js'; +const source = readFileSync(basename + '.cache.js', 'utf-8'); +const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(basename + '.cache'); +const scriptOpts = { filename: basename + '.cache.js', columnOffset: -62 } +const script = new Script(wrap(source), cachedData ? Object.assign({ cachedData }, scriptOpts) : scriptOpts); +(script.runInThisContext())(exports, require, module, __filename, __dirname); +if (cachedData) process.on('exit', () => { try { writeFileSync(basename + '.cache', script.createCachedData()); } catch(e) {} }); diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache Binary files differnew file mode 100644 index 0000000..0ef64eb --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache.js new file mode 100644 index 0000000..e822564 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/sourcemap-register.js.cache.js @@ -0,0 +1,3910 @@ +module.exports = +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 650: +/***/ ((module) => { + +var toString = Object.prototype.toString + +var isModern = ( + typeof Buffer.alloc === 'function' && + typeof Buffer.allocUnsafe === 'function' && + typeof Buffer.from === 'function' +) + +function isArrayBuffer (input) { + return toString.call(input).slice(8, -1) === 'ArrayBuffer' +} + +function fromArrayBuffer (obj, byteOffset, length) { + byteOffset >>>= 0 + + var maxLength = obj.byteLength - byteOffset + + if (maxLength < 0) { + throw new RangeError("'offset' is out of bounds") + } + + if (length === undefined) { + length = maxLength + } else { + length >>>= 0 + + if (length > maxLength) { + throw new RangeError("'length' is out of bounds") + } + } + + return isModern + ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) + : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length))) +} + +function fromString (string, encoding) { + if (typeof encoding !== 'string' || encoding === '') { + encoding = 'utf8' + } + + if (!Buffer.isEncoding(encoding)) { + throw new TypeError('"encoding" must be a valid string encoding') + } + + return isModern + ? Buffer.from(string, encoding) + : new Buffer(string, encoding) +} + +function bufferFrom (value, encodingOrOffset, length) { + if (typeof value === 'number') { + throw new TypeError('"value" argument must not be a number') + } + + if (isArrayBuffer(value)) { + return fromArrayBuffer(value, encodingOrOffset, length) + } + + if (typeof value === 'string') { + return fromString(value, encodingOrOffset) + } + + return isModern + ? Buffer.from(value) + : new Buffer(value) +} + +module.exports = bufferFrom + + +/***/ }), + +/***/ 645: +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + +__webpack_require__(284).install(); + + +/***/ }), + +/***/ 284: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +var SourceMapConsumer = __webpack_require__(596).SourceMapConsumer; +var path = __webpack_require__(622); + +var fs; +try { + fs = __webpack_require__(747); + if (!fs.existsSync || !fs.readFileSync) { + // fs doesn't have all methods we need + fs = null; + } +} catch (err) { + /* nop */ +} + +var bufferFrom = __webpack_require__(650); + +// Only install once if called multiple times +var errorFormatterInstalled = false; +var uncaughtShimInstalled = false; + +// If true, the caches are reset before a stack trace formatting operation +var emptyCacheBetweenOperations = false; + +// Supports {browser, node, auto} +var environment = "auto"; + +// Maps a file path to a string containing the file contents +var fileContentsCache = {}; + +// Maps a file path to a source map for that file +var sourceMapCache = {}; + +// Regex for detecting source maps +var reSourceMap = /^data:application\/json[^,]+base64,/; + +// Priority list of retrieve handlers +var retrieveFileHandlers = []; +var retrieveMapHandlers = []; + +function isInBrowser() { + if (environment === "browser") + return true; + if (environment === "node") + return false; + return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); +} + +function hasGlobalProcessEventEmitter() { + return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); +} + +function handlerExec(list) { + return function(arg) { + for (var i = 0; i < list.length; i++) { + var ret = list[i](arg); + if (ret) { + return ret; + } + } + return null; + }; +} + +var retrieveFile = handlerExec(retrieveFileHandlers); + +retrieveFileHandlers.push(function(path) { + // Trim the path to make sure there is no extra whitespace. + path = path.trim(); + if (/^file:/.test(path)) { + // existsSync/readFileSync can't handle file protocol, but once stripped, it works + path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) { + return drive ? + '' : // file:///C:/dir/file -> C:/dir/file + '/'; // file:///root-dir/file -> /root-dir/file + }); + } + if (path in fileContentsCache) { + return fileContentsCache[path]; + } + + var contents = ''; + try { + if (!fs) { + // Use SJAX if we are in the browser + var xhr = new XMLHttpRequest(); + xhr.open('GET', path, /** async */ false); + xhr.send(null); + if (xhr.readyState === 4 && xhr.status === 200) { + contents = xhr.responseText; + } + } else if (fs.existsSync(path)) { + // Otherwise, use the filesystem + contents = fs.readFileSync(path, 'utf8'); + } + } catch (er) { + /* ignore any errors */ + } + + return fileContentsCache[path] = contents; +}); + +// Support URLs relative to a directory, but be careful about a protocol prefix +// in case we are in the browser (i.e. directories may start with "http://" or "file:///") +function supportRelativeURL(file, url) { + if (!file) return url; + var dir = path.dirname(file); + var match = /^\w+:\/\/[^\/]*/.exec(dir); + var protocol = match ? match[0] : ''; + var startPath = dir.slice(protocol.length); + if (protocol && /^\/\w\:/.test(startPath)) { + // handle file:///C:/ paths + protocol += '/'; + return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); + } + return protocol + path.resolve(dir.slice(protocol.length), url); +} + +function retrieveSourceMapURL(source) { + var fileData; + + if (isInBrowser()) { + try { + var xhr = new XMLHttpRequest(); + xhr.open('GET', source, false); + xhr.send(null); + fileData = xhr.readyState === 4 ? xhr.responseText : null; + + // Support providing a sourceMappingURL via the SourceMap header + var sourceMapHeader = xhr.getResponseHeader("SourceMap") || + xhr.getResponseHeader("X-SourceMap"); + if (sourceMapHeader) { + return sourceMapHeader; + } + } catch (e) { + } + } + + // Get the URL of the source map + fileData = retrieveFile(source); + var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg; + // Keep executing the search to find the *last* sourceMappingURL to avoid + // picking up sourceMappingURLs from comments, strings, etc. + var lastMatch, match; + while (match = re.exec(fileData)) lastMatch = match; + if (!lastMatch) return null; + return lastMatch[1]; +}; + +// Can be overridden by the retrieveSourceMap option to install. Takes a +// generated source filename; returns a {map, optional url} object, or null if +// there is no source map. The map field may be either a string or the parsed +// JSON object (ie, it must be a valid argument to the SourceMapConsumer +// constructor). +var retrieveSourceMap = handlerExec(retrieveMapHandlers); +retrieveMapHandlers.push(function(source) { + var sourceMappingURL = retrieveSourceMapURL(source); + if (!sourceMappingURL) return null; + + // Read the contents of the source map + var sourceMapData; + if (reSourceMap.test(sourceMappingURL)) { + // Support source map URL as a data url + var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); + sourceMapData = bufferFrom(rawData, "base64").toString(); + sourceMappingURL = source; + } else { + // Support source map URLs relative to the source URL + sourceMappingURL = supportRelativeURL(source, sourceMappingURL); + sourceMapData = retrieveFile(sourceMappingURL); + } + + if (!sourceMapData) { + return null; + } + + return { + url: sourceMappingURL, + map: sourceMapData + }; +}); + +function mapSourcePosition(position) { + var sourceMap = sourceMapCache[position.source]; + if (!sourceMap) { + // Call the (overrideable) retrieveSourceMap function to get the source map. + var urlAndMap = retrieveSourceMap(position.source); + if (urlAndMap) { + sourceMap = sourceMapCache[position.source] = { + url: urlAndMap.url, + map: new SourceMapConsumer(urlAndMap.map) + }; + + // Load all sources stored inline with the source map into the file cache + // to pretend like they are already loaded. They may not exist on disk. + if (sourceMap.map.sourcesContent) { + sourceMap.map.sources.forEach(function(source, i) { + var contents = sourceMap.map.sourcesContent[i]; + if (contents) { + var url = supportRelativeURL(sourceMap.url, source); + fileContentsCache[url] = contents; + } + }); + } + } else { + sourceMap = sourceMapCache[position.source] = { + url: null, + map: null + }; + } + } + + // Resolve the source URL relative to the URL of the source map + if (sourceMap && sourceMap.map) { + var originalPosition = sourceMap.map.originalPositionFor(position); + + // Only return the original position if a matching line was found. If no + // matching line is found then we return position instead, which will cause + // the stack trace to print the path and line for the compiled file. It is + // better to give a precise location in the compiled file than a vague + // location in the original file. + if (originalPosition.source !== null) { + originalPosition.source = supportRelativeURL( + sourceMap.url, originalPosition.source); + return originalPosition; + } + } + + return position; +} + +// Parses code generated by FormatEvalOrigin(), a function inside V8: +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js +function mapEvalOrigin(origin) { + // Most eval() calls are in this format + var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); + if (match) { + var position = mapSourcePosition({ + source: match[2], + line: +match[3], + column: match[4] - 1 + }); + return 'eval at ' + match[1] + ' (' + position.source + ':' + + position.line + ':' + (position.column + 1) + ')'; + } + + // Parse nested eval() calls using recursion + match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); + if (match) { + return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; + } + + // Make sure we still return useful information if we didn't find anything + return origin; +} + +// This is copied almost verbatim from the V8 source code at +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The +// implementation of wrapCallSite() used to just forward to the actual source +// code of CallSite.prototype.toString but unfortunately a new release of V8 +// did something to the prototype chain and broke the shim. The only fix I +// could find was copy/paste. +function CallSiteToString() { + var fileName; + var fileLocation = ""; + if (this.isNative()) { + fileLocation = "native"; + } else { + fileName = this.getScriptNameOrSourceURL(); + if (!fileName && this.isEval()) { + fileLocation = this.getEvalOrigin(); + fileLocation += ", "; // Expecting source position to follow. + } + + if (fileName) { + fileLocation += fileName; + } else { + // Source code does not originate from a file and is not native, but we + // can still get the source position inside the source string, e.g. in + // an eval string. + fileLocation += "<anonymous>"; + } + var lineNumber = this.getLineNumber(); + if (lineNumber != null) { + fileLocation += ":" + lineNumber; + var columnNumber = this.getColumnNumber(); + if (columnNumber) { + fileLocation += ":" + columnNumber; + } + } + } + + var line = ""; + var functionName = this.getFunctionName(); + var addSuffix = true; + var isConstructor = this.isConstructor(); + var isMethodCall = !(this.isToplevel() || isConstructor); + if (isMethodCall) { + var typeName = this.getTypeName(); + // Fixes shim to be backward compatable with Node v0 to v4 + if (typeName === "[object Object]") { + typeName = "null"; + } + var methodName = this.getMethodName(); + if (functionName) { + if (typeName && functionName.indexOf(typeName) != 0) { + line += typeName + "."; + } + line += functionName; + if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { + line += " [as " + methodName + "]"; + } + } else { + line += typeName + "." + (methodName || "<anonymous>"); + } + } else if (isConstructor) { + line += "new " + (functionName || "<anonymous>"); + } else if (functionName) { + line += functionName; + } else { + line += fileLocation; + addSuffix = false; + } + if (addSuffix) { + line += " (" + fileLocation + ")"; + } + return line; +} + +function cloneCallSite(frame) { + var object = {}; + Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { + object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; + }); + object.toString = CallSiteToString; + return object; +} + +function wrapCallSite(frame) { + if(frame.isNative()) { + return frame; + } + + // Most call sites will return the source file from getFileName(), but code + // passed to eval() ending in "//# sourceURL=..." will return the source file + // from getScriptNameOrSourceURL() instead + var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); + if (source) { + var line = frame.getLineNumber(); + var column = frame.getColumnNumber() - 1; + + // Fix position in Node where some (internal) code is prepended. + // See https://github.com/evanw/node-source-map-support/issues/36 + var headerLength = 62; + if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { + column -= headerLength; + } + + var position = mapSourcePosition({ + source: source, + line: line, + column: column + }); + frame = cloneCallSite(frame); + var originalFunctionName = frame.getFunctionName; + frame.getFunctionName = function() { return position.name || originalFunctionName(); }; + frame.getFileName = function() { return position.source; }; + frame.getLineNumber = function() { return position.line; }; + frame.getColumnNumber = function() { return position.column + 1; }; + frame.getScriptNameOrSourceURL = function() { return position.source; }; + return frame; + } + + // Code called using eval() needs special handling + var origin = frame.isEval() && frame.getEvalOrigin(); + if (origin) { + origin = mapEvalOrigin(origin); + frame = cloneCallSite(frame); + frame.getEvalOrigin = function() { return origin; }; + return frame; + } + + // If we get here then we were unable to change the source position + return frame; +} + +// This function is part of the V8 stack trace API, for more info see: +// http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi +function prepareStackTrace(error, stack) { + if (emptyCacheBetweenOperations) { + fileContentsCache = {}; + sourceMapCache = {}; + } + + return error + stack.map(function(frame) { + return '\n at ' + wrapCallSite(frame); + }).join(''); +} + +// Generate position and snippet of original source with pointer +function getErrorSource(error) { + var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); + if (match) { + var source = match[1]; + var line = +match[2]; + var column = +match[3]; + + // Support the inline sourceContents inside the source map + var contents = fileContentsCache[source]; + + // Support files on disk + if (!contents && fs && fs.existsSync(source)) { + try { + contents = fs.readFileSync(source, 'utf8'); + } catch (er) { + contents = ''; + } + } + + // Format the line from the original source code like node does + if (contents) { + var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; + if (code) { + return source + ':' + line + '\n' + code + '\n' + + new Array(column).join(' ') + '^'; + } + } + } + return null; +} + +function printErrorAndExit (error) { + var source = getErrorSource(error); + + // Ensure error is printed synchronously and not truncated + if (process.stderr._handle && process.stderr._handle.setBlocking) { + process.stderr._handle.setBlocking(true); + } + + if (source) { + console.error(); + console.error(source); + } + + console.error(error.stack); + process.exit(1); +} + +function shimEmitUncaughtException () { + var origEmit = process.emit; + + process.emit = function (type) { + if (type === 'uncaughtException') { + var hasStack = (arguments[1] && arguments[1].stack); + var hasListeners = (this.listeners(type).length > 0); + + if (hasStack && !hasListeners) { + return printErrorAndExit(arguments[1]); + } + } + + return origEmit.apply(this, arguments); + }; +} + +var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); +var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); + +exports.wrapCallSite = wrapCallSite; +exports.getErrorSource = getErrorSource; +exports.mapSourcePosition = mapSourcePosition; +exports.retrieveSourceMap = retrieveSourceMap; + +exports.install = function(options) { + options = options || {}; + + if (options.environment) { + environment = options.environment; + if (["node", "browser", "auto"].indexOf(environment) === -1) { + throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") + } + } + + // Allow sources to be found by methods other than reading the files + // directly from disk. + if (options.retrieveFile) { + if (options.overrideRetrieveFile) { + retrieveFileHandlers.length = 0; + } + + retrieveFileHandlers.unshift(options.retrieveFile); + } + + // Allow source maps to be found by methods other than reading the files + // directly from disk. + if (options.retrieveSourceMap) { + if (options.overrideRetrieveSourceMap) { + retrieveMapHandlers.length = 0; + } + + retrieveMapHandlers.unshift(options.retrieveSourceMap); + } + + // Support runtime transpilers that include inline source maps + if (options.hookRequire && !isInBrowser()) { + var Module; + try { + Module = __webpack_require__(282); + } catch (err) { + // NOP: Loading in catch block to convert webpack error to warning. + } + var $compile = Module.prototype._compile; + + if (!$compile.__sourceMapSupport) { + Module.prototype._compile = function(content, filename) { + fileContentsCache[filename] = content; + sourceMapCache[filename] = undefined; + return $compile.call(this, content, filename); + }; + + Module.prototype._compile.__sourceMapSupport = true; + } + } + + // Configure options + if (!emptyCacheBetweenOperations) { + emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? + options.emptyCacheBetweenOperations : false; + } + + // Install the error reformatter + if (!errorFormatterInstalled) { + errorFormatterInstalled = true; + Error.prepareStackTrace = prepareStackTrace; + } + + if (!uncaughtShimInstalled) { + var installHandler = 'handleUncaughtExceptions' in options ? + options.handleUncaughtExceptions : true; + + // Provide the option to not install the uncaught exception handler. This is + // to support other uncaught exception handlers (in test frameworks, for + // example). If this handler is not installed and there are no other uncaught + // exception handlers, uncaught exceptions will be caught by node's built-in + // exception handler and the process will still be terminated. However, the + // generated JavaScript code will be shown above the stack trace instead of + // the original source code. + if (installHandler && hasGlobalProcessEventEmitter()) { + uncaughtShimInstalled = true; + shimEmitUncaughtException(); + } + } +}; + +exports.resetRetrieveHandlers = function() { + retrieveFileHandlers.length = 0; + retrieveMapHandlers.length = 0; + + retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); + retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); +} + + +/***/ }), + +/***/ 837: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var util = __webpack_require__(983); +var has = Object.prototype.hasOwnProperty; +var hasNativeMap = typeof Map !== "undefined"; + +/** + * A data structure which is a combination of an array and a set. Adding a new + * member is O(1), testing for membership is O(1), and finding the index of an + * element is O(1). Removing elements from the set is not supported. Only + * strings are supported for membership. + */ +function ArraySet() { + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); +} + +/** + * Static method for creating ArraySet instances from an existing array. + */ +ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { + var set = new ArraySet(); + for (var i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); + } + return set; +}; + +/** + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number + */ +ArraySet.prototype.size = function ArraySet_size() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; +}; + +/** + * Add the given string to this set. + * + * @param String aStr + */ +ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); + var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); + var idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { + if (hasNativeMap) { + this._set.set(aStr, idx); + } else { + this._set[sStr] = idx; + } + } +}; + +/** + * Is the given string a member of this set? + * + * @param String aStr + */ +ArraySet.prototype.has = function ArraySet_has(aStr) { + if (hasNativeMap) { + return this._set.has(aStr); + } else { + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); + } +}; + +/** + * What is the index of the given string in the array? + * + * @param String aStr + */ +ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) { + return idx; + } + } else { + var sStr = util.toSetString(aStr); + if (has.call(this._set, sStr)) { + return this._set[sStr]; + } + } + + throw new Error('"' + aStr + '" is not in the set.'); +}; + +/** + * What is the element at the given index? + * + * @param Number aIdx + */ +ArraySet.prototype.at = function ArraySet_at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; + } + throw new Error('No element indexed by ' + aIdx); +}; + +/** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ +ArraySet.prototype.toArray = function ArraySet_toArray() { + return this._array.slice(); +}; + +exports.I = ArraySet; + + +/***/ }), + +/***/ 215: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + * + * Based on the Base 64 VLQ implementation in Closure Compiler: + * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java + * + * Copyright 2011 The Closure Compiler Authors. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +var base64 = __webpack_require__(537); + +// A single base 64 digit can contain 6 bits of data. For the base 64 variable +// length quantities we use in the source map spec, the first bit is the sign, +// the next four bits are the actual value, and the 6th bit is the +// continuation bit. The continuation bit tells us whether there are more +// digits in this value following this digit. +// +// Continuation +// | Sign +// | | +// V V +// 101011 + +var VLQ_BASE_SHIFT = 5; + +// binary: 100000 +var VLQ_BASE = 1 << VLQ_BASE_SHIFT; + +// binary: 011111 +var VLQ_BASE_MASK = VLQ_BASE - 1; + +// binary: 100000 +var VLQ_CONTINUATION_BIT = VLQ_BASE; + +/** + * Converts from a two-complement value to a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) + * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) + */ +function toVLQSigned(aValue) { + return aValue < 0 + ? ((-aValue) << 1) + 1 + : (aValue << 1) + 0; +} + +/** + * Converts to a two-complement value from a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 + * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 + */ +function fromVLQSigned(aValue) { + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative + ? -shifted + : shifted; +} + +/** + * Returns the base 64 VLQ encoded value. + */ +exports.encode = function base64VLQ_encode(aValue) { + var encoded = ""; + var digit; + + var vlq = toVLQSigned(aValue); + + do { + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; + if (vlq > 0) { + // There are still more digits in this value, so we must make sure the + // continuation bit is marked. + digit |= VLQ_CONTINUATION_BIT; + } + encoded += base64.encode(digit); + } while (vlq > 0); + + return encoded; +}; + +/** + * Decodes the next base 64 VLQ value from the given string and returns the + * value and the rest of the string via the out parameter. + */ +exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; + + do { + if (aIndex >= strLen) { + throw new Error("Expected more digits in base 64 VLQ value."); + } + + digit = base64.decode(aStr.charCodeAt(aIndex++)); + if (digit === -1) { + throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); + } + + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); + + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; +}; + + +/***/ }), + +/***/ 537: +/***/ ((__unused_webpack_module, exports) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); + +/** + * Encode an integer in the range of 0 to 63 to a single base 64 digit. + */ +exports.encode = function (number) { + if (0 <= number && number < intToCharMap.length) { + return intToCharMap[number]; + } + throw new TypeError("Must be between 0 and 63: " + number); +}; + +/** + * Decode a single base 64 character code digit to an integer. Returns -1 on + * failure. + */ +exports.decode = function (charCode) { + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' + + var littleA = 97; // 'a' + var littleZ = 122; // 'z' + + var zero = 48; // '0' + var nine = 57; // '9' + + var plus = 43; // '+' + var slash = 47; // '/' + + var littleOffset = 26; + var numberOffset = 52; + + // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ + if (bigA <= charCode && charCode <= bigZ) { + return (charCode - bigA); + } + + // 26 - 51: abcdefghijklmnopqrstuvwxyz + if (littleA <= charCode && charCode <= littleZ) { + return (charCode - littleA + littleOffset); + } + + // 52 - 61: 0123456789 + if (zero <= charCode && charCode <= nine) { + return (charCode - zero + numberOffset); + } + + // 62: + + if (charCode == plus) { + return 62; + } + + // 63: / + if (charCode == slash) { + return 63; + } + + // Invalid base64 digit. + return -1; +}; + + +/***/ }), + +/***/ 164: +/***/ ((__unused_webpack_module, exports) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +exports.GREATEST_LOWER_BOUND = 1; +exports.LEAST_UPPER_BOUND = 2; + +/** + * Recursive implementation of binary search. + * + * @param aLow Indices here and lower do not contain the needle. + * @param aHigh Indices here and higher do not contain the needle. + * @param aNeedle The element being searched for. + * @param aHaystack The non-empty array being searched. + * @param aCompare Function which takes two elements and returns -1, 0, or 1. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + */ +function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { + // This function terminates when one of the following is true: + // + // 1. We find the exact element we are looking for. + // + // 2. We did not find the exact element, but we can return the index of + // the next-closest element. + // + // 3. We did not find the exact element, and there is no next-closest + // element than the one we are searching for, so we return -1. + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); + if (cmp === 0) { + // Found the element we are looking for. + return mid; + } + else if (cmp > 0) { + // Our needle is greater than aHaystack[mid]. + if (aHigh - mid > 1) { + // The element is in the upper half. + return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); + } + + // The exact needle element was not found in this haystack. Determine if + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return aHigh < aHaystack.length ? aHigh : -1; + } else { + return mid; + } + } + else { + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + } + + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return mid; + } else { + return aLow < 0 ? -1 : aLow; + } + } +} + +/** + * This is an implementation of binary search which will always try and return + * the index of the closest element if there is no exact hit. This is because + * mappings between original and generated line/col pairs are single points, + * and there is an implicit region between each of them, so a miss just means + * that you aren't on the very start of a region. + * + * @param aNeedle The element you are looking for. + * @param aHaystack The array that is being searched. + * @param aCompare A function which takes the needle and an element in the + * array and returns -1, 0, or 1 depending on whether the needle is less + * than, equal to, or greater than the element, respectively. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. + */ +exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { + if (aHaystack.length === 0) { + return -1; + } + + var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + aCompare, aBias || exports.GREATEST_LOWER_BOUND); + if (index < 0) { + return -1; + } + + // We have found either the exact element, or the next-closest element than + // the one we are searching for. However, there may be more than one such + // element. Make sure we always return the smallest of these. + while (index - 1 >= 0) { + if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { + break; + } + --index; + } + + return index; +}; + + +/***/ }), + +/***/ 740: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2014 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var util = __webpack_require__(983); + +/** + * Determine whether mappingB is after mappingA with respect to generated + * position. + */ +function generatedPositionAfter(mappingA, mappingB) { + // Optimized for most common case + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; + return lineB > lineA || lineB == lineA && columnB >= columnA || + util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; +} + +/** + * A data structure to provide a sorted view of accumulated mappings in a + * performance conscious manner. It trades a neglibable overhead in general + * case for a large speedup in case of mappings being added in order. + */ +function MappingList() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; +} + +/** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ +MappingList.prototype.unsortedForEach = + function MappingList_forEach(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); + }; + +/** + * Add the given source mapping. + * + * @param Object aMapping + */ +MappingList.prototype.add = function MappingList_add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); + } else { + this._sorted = false; + this._array.push(aMapping); + } +}; + +/** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ +MappingList.prototype.toArray = function MappingList_toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; + } + return this._array; +}; + +exports.H = MappingList; + + +/***/ }), + +/***/ 226: +/***/ ((__unused_webpack_module, exports) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +// It turns out that some (most?) JavaScript engines don't self-host +// `Array.prototype.sort`. This makes sense because C++ will likely remain +// faster than JS when doing raw CPU-intensive sorting. However, when using a +// custom comparator function, calling back and forth between the VM's C++ and +// JIT'd JS is rather slow *and* loses JIT type information, resulting in +// worse generated code for the comparator function than would be optimal. In +// fact, when sorting with a comparator, these costs outweigh the benefits of +// sorting in C++. By using our own JS-implemented Quick Sort (below), we get +// a ~3500ms mean speed-up in `bench/bench.html`. + +/** + * Swap the elements indexed by `x` and `y` in the array `ary`. + * + * @param {Array} ary + * The array. + * @param {Number} x + * The index of the first item. + * @param {Number} y + * The index of the second item. + */ +function swap(ary, x, y) { + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; +} + +/** + * Returns a random integer within the range `low .. high` inclusive. + * + * @param {Number} low + * The lower bound on the range. + * @param {Number} high + * The upper bound on the range. + */ +function randomIntInRange(low, high) { + return Math.round(low + (Math.random() * (high - low))); +} + +/** + * The Quick Sort algorithm. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + * @param {Number} p + * Start index of the array + * @param {Number} r + * End index of the array + */ +function doQuickSort(ary, comparator, p, r) { + // If our lower bound is less than our upper bound, we (1) partition the + // array into two pieces and (2) recurse on each half. If it is not, this is + // the empty array and our base case. + + if (p < r) { + // (1) Partitioning. + // + // The partitioning chooses a pivot between `p` and `r` and moves all + // elements that are less than or equal to the pivot to the before it, and + // all the elements that are greater than it after it. The effect is that + // once partition is done, the pivot is in the exact place it will be when + // the array is put in sorted order, and it will not need to be moved + // again. This runs in O(n) time. + + // Always choose a random pivot so that an input array which is reverse + // sorted does not cause O(n^2) running time. + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; + + swap(ary, pivotIndex, r); + var pivot = ary[r]; + + // Immediately after `j` is incremented in this loop, the following hold + // true: + // + // * Every element in `ary[p .. i]` is less than or equal to the pivot. + // + // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. + for (var j = p; j < r; j++) { + if (comparator(ary[j], pivot) <= 0) { + i += 1; + swap(ary, i, j); + } + } + + swap(ary, i + 1, j); + var q = i + 1; + + // (2) Recurse on each half. + + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); + } +} + +/** + * Sort the given array in-place with the given comparator function. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + */ +exports.U = function (ary, comparator) { + doQuickSort(ary, comparator, 0, ary.length - 1); +}; + + +/***/ }), + +/***/ 327: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +var __webpack_unused_export__; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var util = __webpack_require__(983); +var binarySearch = __webpack_require__(164); +var ArraySet = __webpack_require__(837)/* .ArraySet */ .I; +var base64VLQ = __webpack_require__(215); +var quickSort = __webpack_require__(226)/* .quickSort */ .U; + +function SourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + return sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); +} + +SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); +} + +/** + * The version of the source mapping spec that we are consuming. + */ +SourceMapConsumer.prototype._version = 3; + +// `__generatedMappings` and `__originalMappings` are arrays that hold the +// parsed mapping coordinates from the source map's "mappings" attribute. They +// are lazily instantiated, accessed via the `_generatedMappings` and +// `_originalMappings` getters respectively, and we only parse the mappings +// and create these arrays once queried for a source location. We jump through +// these hoops because there can be many thousands of mappings, and parsing +// them is expensive, so we only want to do it if we must. +// +// Each object in the arrays is of the form: +// +// { +// generatedLine: The line number in the generated code, +// generatedColumn: The column number in the generated code, +// source: The path to the original source file that generated this +// chunk of code, +// originalLine: The line number in the original source that +// corresponds to this chunk of generated code, +// originalColumn: The column number in the original source that +// corresponds to this chunk of generated code, +// name: The name of the original symbol which generated this chunk of +// code. +// } +// +// All properties except for `generatedLine` and `generatedColumn` can be +// `null`. +// +// `_generatedMappings` is ordered by the generated positions. +// +// `_originalMappings` is ordered by the original positions. + +SourceMapConsumer.prototype.__generatedMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__generatedMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__generatedMappings; + } +}); + +SourceMapConsumer.prototype.__originalMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__originalMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__originalMappings; + } +}); + +SourceMapConsumer.prototype._charIsMappingSeparator = + function SourceMapConsumer_charIsMappingSeparator(aStr, index) { + var c = aStr.charAt(index); + return c === ";" || c === ","; + }; + +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +SourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); + }; + +SourceMapConsumer.GENERATED_ORDER = 1; +SourceMapConsumer.ORIGINAL_ORDER = 2; + +SourceMapConsumer.GREATEST_LOWER_BOUND = 1; +SourceMapConsumer.LEAST_UPPER_BOUND = 2; + +/** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ +SourceMapConsumer.prototype.eachMapping = + function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + + var mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); + } + + var sourceRoot = this.sourceRoot; + mappings.map(function (mapping) { + var source = mapping.source === null ? null : this._sources.at(mapping.source); + source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); + return { + source: source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : this._names.at(mapping.name) + }; + }, this).forEach(aCallback, context); + }; + +/** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +SourceMapConsumer.prototype.allGeneratedPositionsFor = + function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { + var line = util.getArg(aArgs, 'line'); + + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + var needle = { + source: util.getArg(aArgs, 'source'), + originalLine: line, + originalColumn: util.getArg(aArgs, 'column', 0) + }; + + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; + } + + var mappings = []; + + var index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (aArgs.column === undefined) { + var originalLine = mapping.originalLine; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } else { + var originalColumn = mapping.originalColumn; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } + } + + return mappings; + }; + +exports.SourceMapConsumer = SourceMapConsumer; + +/** + * A BasicSourceMapConsumer instance represents a parsed source map which we can + * query for information about the original file positions by giving it a file + * position in the generated source. + * + * The first parameter is the raw source map (either as a JSON string, or + * already parsed to an object). According to the spec, source maps have the + * following attributes: + * + * - version: Which version of the source map spec this map is following. + * - sources: An array of URLs to the original source files. + * - names: An array of identifiers which can be referrenced by individual mappings. + * - sourceRoot: Optional. The URL root from which all sources are relative. + * - sourcesContent: Optional. An array of contents of the original source files. + * - mappings: A string of base64 VLQs which contain the actual mappings. + * - file: Optional. The generated file this source map is associated with. + * + * Here is an example source map, taken from the source map spec[0]: + * + * { + * version : 3, + * file: "out.js", + * sourceRoot : "", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AA,AB;;ABCDE;" + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# + */ +function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); + + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } + + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function (source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); + + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); + + this._absoluteSources = this._sources.toArray().map(function (s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); + + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; +} + +BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + +/** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ +BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); + } + + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + var i; + for (i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; + } + } + + return -1; +}; + +/** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer + */ +BasicSourceMapConsumer.fromSourceMap = + function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { + var smc = Object.create(BasicSourceMapConsumer.prototype); + + var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); + var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); + smc.sourceRoot = aSourceMap._sourceRoot; + smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), + smc.sourceRoot); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; + smc._absoluteSources = smc._sources.toArray().map(function (s) { + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); + }); + + // Because we are modifying the entries (by converting string sources and + // names to indices into the sources and names ArraySets), we have to make + // a copy of the entry or else bad things happen. Shared mutable state + // strikes again! See github issue #191. + + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = smc.__generatedMappings = []; + var destOriginalMappings = smc.__originalMappings = []; + + for (var i = 0, length = generatedMappings.length; i < length; i++) { + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping; + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; + + if (srcMapping.source) { + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; + + if (srcMapping.name) { + destMapping.name = names.indexOf(srcMapping.name); + } + + destOriginalMappings.push(destMapping); + } + + destGeneratedMappings.push(destMapping); + } + + quickSort(smc.__originalMappings, util.compareByOriginalPositions); + + return smc; + }; + +/** + * The version of the source mapping spec that we are consuming. + */ +BasicSourceMapConsumer.prototype._version = 3; + +/** + * The list of original sources. + */ +Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { + get: function () { + return this._absoluteSources.slice(); + } +}); + +/** + * Provide the JIT with a nice shape / hidden class. + */ +function Mapping() { + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; +} + +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +BasicSourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var cachedSegments = {}; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, str, segment, end, value; + + while (index < length) { + if (aStr.charAt(index) === ';') { + generatedLine++; + index++; + previousGeneratedColumn = 0; + } + else if (aStr.charAt(index) === ',') { + index++; + } + else { + mapping = new Mapping(); + mapping.generatedLine = generatedLine; + + // Because each offset is encoded relative to the previous one, + // many segments often have the same encoding. We can exploit this + // fact by caching the parsed variable length fields of each segment, + // allowing us to avoid a second parse if we encounter the same + // segment again. + for (end = index; end < length; end++) { + if (this._charIsMappingSeparator(aStr, end)) { + break; + } + } + str = aStr.slice(index, end); + + segment = cachedSegments[str]; + if (segment) { + index += str.length; + } else { + segment = []; + while (index < end) { + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); + } + + if (segment.length === 2) { + throw new Error('Found a source, but no line and column'); + } + + if (segment.length === 3) { + throw new Error('Found a source and line, but no column'); + } + + cachedSegments[str] = segment; + } + + // Generated column. + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; + + if (segment.length > 1) { + // Original source. + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; + + // Original line. + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; + // Lines are stored 0-based + mapping.originalLine += 1; + + // Original column. + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; + + if (segment.length > 4) { + // Original name. + mapping.name = previousName + segment[4]; + previousName += segment[4]; + } + } + + generatedMappings.push(mapping); + if (typeof mapping.originalLine === 'number') { + originalMappings.push(mapping); + } + } + } + + quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = generatedMappings; + + quickSort(originalMappings, util.compareByOriginalPositions); + this.__originalMappings = originalMappings; + }; + +/** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ +BasicSourceMapConsumer.prototype._findMapping = + function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. + + if (aNeedle[aLineName] <= 0) { + throw new TypeError('Line must be greater than or equal to 1, got ' + + aNeedle[aLineName]); + } + if (aNeedle[aColumnName] < 0) { + throw new TypeError('Column must be greater than or equal to 0, got ' + + aNeedle[aColumnName]); + } + + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; + +/** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ +BasicSourceMapConsumer.prototype.computeColumnSpans = + function SourceMapConsumer_computeColumnSpans() { + for (var index = 0; index < this._generatedMappings.length; ++index) { + var mapping = this._generatedMappings[index]; + + // Mappings do not contain a field for the last generated columnt. We + // can come up with an optimistic estimate, however, by assuming that + // mappings are contiguous (i.e. given two consecutive mappings, the + // first mapping ends where the second one starts). + if (index + 1 < this._generatedMappings.length) { + var nextMapping = this._generatedMappings[index + 1]; + + if (mapping.generatedLine === nextMapping.generatedLine) { + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; + } + } + + // The last mapping for each line spans the entire line. + mapping.lastGeneratedColumn = Infinity; + } + }; + +/** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ +BasicSourceMapConsumer.prototype.originalPositionFor = + function SourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._generatedMappings, + "generatedLine", + "generatedColumn", + util.compareByGeneratedPositionsDeflated, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._generatedMappings[index]; + + if (mapping.generatedLine === needle.generatedLine) { + var source = util.getArg(mapping, 'source', null); + if (source !== null) { + source = this._sources.at(source); + source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); + } + var name = util.getArg(mapping, 'name', null); + if (name !== null) { + name = this._names.at(name); + } + return { + source: source, + line: util.getArg(mapping, 'originalLine', null), + column: util.getArg(mapping, 'originalColumn', null), + name: name + }; + } + } + + return { + source: null, + line: null, + column: null, + name: null + }; + }; + +/** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ +BasicSourceMapConsumer.prototype.hasContentsOfAllSources = + function BasicSourceMapConsumer_hasContentsOfAllSources() { + if (!this.sourcesContent) { + return false; + } + return this.sourcesContent.length >= this._sources.size() && + !this.sourcesContent.some(function (sc) { return sc == null; }); + }; + +/** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ +BasicSourceMapConsumer.prototype.sourceContentFor = + function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + if (!this.sourcesContent) { + return null; + } + + var index = this._findSourceIndex(aSource); + if (index >= 0) { + return this.sourcesContent[index]; + } + + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + var url; + if (this.sourceRoot != null + && (url = util.urlParse(this.sourceRoot))) { + // XXX: file:// URIs and absolute paths lead to unexpected behavior for + // many users. We can help them out when they expect file:// URIs to + // behave like it would if they were running a local HTTP server. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + if (url.scheme == "file" + && this._sources.has(fileUriAbsPath)) { + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + } + + if ((!url.path || url.path == "/") + && this._sources.has("/" + relativeSource)) { + return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; + } + } + + // This function is used recursively from + // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we + // don't want to throw if we can't find the source - we just want to + // return null, so we provide a flag to exit gracefully. + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + } + }; + +/** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +BasicSourceMapConsumer.prototype.generatedPositionFor = + function SourceMapConsumer_generatedPositionFor(aArgs) { + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); + if (source < 0) { + return { + line: null, + column: null, + lastColumn: null + }; + } + + var needle = { + source: source, + originalLine: util.getArg(aArgs, 'line'), + originalColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (mapping.source === needle.source) { + return { + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }; + } + } + + return { + line: null, + column: null, + lastColumn: null + }; + }; + +__webpack_unused_export__ = BasicSourceMapConsumer; + +/** + * An IndexedSourceMapConsumer instance represents a parsed source map which + * we can query for information. It differs from BasicSourceMapConsumer in + * that it takes "indexed" source maps (i.e. ones with a "sections" field) as + * input. + * + * The first parameter is a raw source map (either as a JSON string, or already + * parsed to an object). According to the spec for indexed source maps, they + * have the following attributes: + * + * - version: Which version of the source map spec this map is following. + * - file: Optional. The generated file this source map is associated with. + * - sections: A list of section definitions. + * + * Each value under the "sections" field has two fields: + * - offset: The offset into the original specified at which this section + * begins to apply, defined as an object with a "line" and "column" + * field. + * - map: A source map definition. This source map could also be indexed, + * but doesn't have to be. + * + * Instead of the "map" field, it's also possible to have a "url" field + * specifying a URL to retrieve a source map from, but that's currently + * unsupported. + * + * Here's an example source map, taken from the source map spec[0], but + * modified to omit a section which uses the "url" field. + * + * { + * version : 3, + * file: "app.js", + * sections: [{ + * offset: {line:100, column:10}, + * map: { + * version : 3, + * file: "section.js", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AAAA,E;;ABCDE;" + * } + * }], + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt + */ +function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); + + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + this._sources = new ArraySet(); + this._names = new ArraySet(); + + var lastOffset = { + line: -1, + column: 0 + }; + this._sections = sections.map(function (s) { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error('Support for url field in sections not implemented.'); + } + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); + + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error('Section offsets must be ordered and non-overlapping.'); + } + lastOffset = offset; + + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + } + }); +} + +IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + +/** + * The version of the source mapping spec that we are consuming. + */ +IndexedSourceMapConsumer.prototype._version = 3; + +/** + * The list of original sources. + */ +Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { + get: function () { + var sources = []; + for (var i = 0; i < this._sections.length; i++) { + for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + sources.push(this._sections[i].consumer.sources[j]); + } + } + return sources; + } +}); + +/** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ +IndexedSourceMapConsumer.prototype.originalPositionFor = + function IndexedSourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + // Find the section containing the generated position we're trying to map + // to an original position. + var sectionIndex = binarySearch.search(needle, this._sections, + function(needle, section) { + var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + if (cmp) { + return cmp; + } + + return (needle.generatedColumn - + section.generatedOffset.generatedColumn); + }); + var section = this._sections[sectionIndex]; + + if (!section) { + return { + source: null, + line: null, + column: null, + name: null + }; + } + + return section.consumer.originalPositionFor({ + line: needle.generatedLine - + (section.generatedOffset.generatedLine - 1), + column: needle.generatedColumn - + (section.generatedOffset.generatedLine === needle.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + bias: aArgs.bias + }); + }; + +/** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ +IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = + function IndexedSourceMapConsumer_hasContentsOfAllSources() { + return this._sections.every(function (s) { + return s.consumer.hasContentsOfAllSources(); + }); + }; + +/** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ +IndexedSourceMapConsumer.prototype.sourceContentFor = + function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + var content = section.consumer.sourceContentFor(aSource, true); + if (content) { + return content; + } + } + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } + }; + +/** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +IndexedSourceMapConsumer.prototype.generatedPositionFor = + function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + // Only consider this section if the requested source is in the list of + // sources of the consumer. + if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + continue; + } + var generatedPosition = section.consumer.generatedPositionFor(aArgs); + if (generatedPosition) { + var ret = { + line: generatedPosition.line + + (section.generatedOffset.generatedLine - 1), + column: generatedPosition.column + + (section.generatedOffset.generatedLine === generatedPosition.line + ? section.generatedOffset.generatedColumn - 1 + : 0) + }; + return ret; + } + } + + return { + line: null, + column: null + }; + }; + +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +IndexedSourceMapConsumer.prototype._parseMappings = + function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { + this.__generatedMappings = []; + this.__originalMappings = []; + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; + for (var j = 0; j < sectionMappings.length; j++) { + var mapping = sectionMappings[j]; + + var source = section.consumer._sources.at(mapping.source); + source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + this._sources.add(source); + source = this._sources.indexOf(source); + + var name = null; + if (mapping.name) { + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); + } + + // The mappings coming from the consumer for the section have + // generated positions relative to the start of the section, so we + // need to offset them to be relative to the start of the concatenated + // generated file. + var adjustedMapping = { + source: source, + generatedLine: mapping.generatedLine + + (section.generatedOffset.generatedLine - 1), + generatedColumn: mapping.generatedColumn + + (section.generatedOffset.generatedLine === mapping.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: name + }; + + this.__generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === 'number') { + this.__originalMappings.push(adjustedMapping); + } + } + } + + quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; + +__webpack_unused_export__ = IndexedSourceMapConsumer; + + +/***/ }), + +/***/ 341: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var base64VLQ = __webpack_require__(215); +var util = __webpack_require__(983); +var ArraySet = __webpack_require__(837)/* .ArraySet */ .I; +var MappingList = __webpack_require__(740)/* .MappingList */ .H; + +/** + * An instance of the SourceMapGenerator represents a source map which is + * being built incrementally. You may pass an object with the following + * properties: + * + * - file: The filename of the generated source. + * - sourceRoot: A root for all relative URLs in this source map. + */ +function SourceMapGenerator(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; +} + +SourceMapGenerator.prototype._version = 3; + +/** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. + */ +SourceMapGenerator.fromSourceMap = + function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { + var sourceRoot = aSourceMapConsumer.sourceRoot; + var generator = new SourceMapGenerator({ + file: aSourceMapConsumer.file, + sourceRoot: sourceRoot + }); + aSourceMapConsumer.eachMapping(function (mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; + + if (mapping.source != null) { + newMapping.source = mapping.source; + if (sourceRoot != null) { + newMapping.source = util.relative(sourceRoot, newMapping.source); + } + + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }; + + if (mapping.name != null) { + newMapping.name = mapping.name; + } + } + + generator.addMapping(newMapping); + }); + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var sourceRelative = sourceFile; + if (sourceRoot !== null) { + sourceRelative = util.relative(sourceRoot, sourceFile); + } + + if (!generator._sources.has(sourceRelative)) { + generator._sources.add(sourceRelative); + } + + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + generator.setSourceContent(sourceFile, content); + } + }); + return generator; + }; + +/** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ +SourceMapGenerator.prototype.addMapping = + function SourceMapGenerator_addMapping(aArgs) { + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); + + if (!this._skipValidation) { + this._validateMapping(generated, original, source, name); + } + + if (source != null) { + source = String(source); + if (!this._sources.has(source)) { + this._sources.add(source); + } + } + + if (name != null) { + name = String(name); + if (!this._names.has(name)) { + this._names.add(name); + } + } + + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: original != null && original.line, + originalColumn: original != null && original.column, + source: source, + name: name + }); + }; + +/** + * Set the source content for a source file. + */ +SourceMapGenerator.prototype.setSourceContent = + function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { + var source = aSourceFile; + if (this._sourceRoot != null) { + source = util.relative(this._sourceRoot, source); + } + + if (aSourceContent != null) { + // Add the source content to the _sourcesContents map. + // Create a new _sourcesContents map if the property is null. + if (!this._sourcesContents) { + this._sourcesContents = Object.create(null); + } + this._sourcesContents[util.toSetString(source)] = aSourceContent; + } else if (this._sourcesContents) { + // Remove the source file from the _sourcesContents map. + // If the _sourcesContents map is empty, set the property to null. + delete this._sourcesContents[util.toSetString(source)]; + if (Object.keys(this._sourcesContents).length === 0) { + this._sourcesContents = null; + } + } + }; + +/** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ +SourceMapGenerator.prototype.applySourceMap = + function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + // If aSourceFile is omitted, we will use the file property of the SourceMap + if (aSourceFile == null) { + if (aSourceMapConsumer.file == null) { + throw new Error( + 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + 'or the source map\'s "file" property. Both were omitted.' + ); + } + sourceFile = aSourceMapConsumer.file; + } + var sourceRoot = this._sourceRoot; + // Make "sourceFile" relative if an absolute Url is passed. + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + // Applying the SourceMap can add and remove items from the sources and + // the names array. + var newSources = new ArraySet(); + var newNames = new ArraySet(); + + // Find mappings for the "sourceFile" + this._mappings.unsortedForEach(function (mapping) { + if (mapping.source === sourceFile && mapping.originalLine != null) { + // Check if it can be mapped by the source map, then update the mapping. + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + if (original.source != null) { + // Copy mapping + mapping.source = original.source; + if (aSourceMapPath != null) { + mapping.source = util.join(aSourceMapPath, mapping.source) + } + if (sourceRoot != null) { + mapping.source = util.relative(sourceRoot, mapping.source); + } + mapping.originalLine = original.line; + mapping.originalColumn = original.column; + if (original.name != null) { + mapping.name = original.name; + } + } + } + + var source = mapping.source; + if (source != null && !newSources.has(source)) { + newSources.add(source); + } + + var name = mapping.name; + if (name != null && !newNames.has(name)) { + newNames.add(name); + } + + }, this); + this._sources = newSources; + this._names = newNames; + + // Copy sourcesContents of applied map. + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aSourceMapPath != null) { + sourceFile = util.join(aSourceMapPath, sourceFile); + } + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + this.setSourceContent(sourceFile, content); + } + }, this); + }; + +/** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ +SourceMapGenerator.prototype._validateMapping = + function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, + aName) { + // When aOriginal is truthy but has empty values for .line and .column, + // it is most likely a programmer error. In this case we throw a very + // specific error message to try to guide them the right way. + // For example: https://github.com/Polymer/polymer-bundler/pull/519 + if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + 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 (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aGenerated.line > 0 && aGenerated.column >= 0 + && !aOriginal && !aSource && !aName) { + // Case 1. + return; + } + else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aOriginal && 'line' in aOriginal && 'column' in aOriginal + && aGenerated.line > 0 && aGenerated.column >= 0 + && aOriginal.line > 0 && aOriginal.column >= 0 + && aSource) { + // Cases 2 and 3. + return; + } + else { + throw new Error('Invalid mapping: ' + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + })); + } + }; + +/** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ +SourceMapGenerator.prototype._serializeMappings = + function SourceMapGenerator_serializeMappings() { + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; + + var mappings = this._mappings.toArray(); + for (var i = 0, len = mappings.length; i < len; i++) { + mapping = mappings[i]; + next = '' + + if (mapping.generatedLine !== previousGeneratedLine) { + previousGeneratedColumn = 0; + while (mapping.generatedLine !== previousGeneratedLine) { + next += ';'; + previousGeneratedLine++; + } + } + else { + if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; + } + next += ','; + } + } + + next += base64VLQ.encode(mapping.generatedColumn + - previousGeneratedColumn); + previousGeneratedColumn = mapping.generatedColumn; + + if (mapping.source != null) { + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; + + // lines are stored 0-based in SourceMap spec version 3 + next += base64VLQ.encode(mapping.originalLine - 1 + - previousOriginalLine); + previousOriginalLine = mapping.originalLine - 1; + + next += base64VLQ.encode(mapping.originalColumn + - previousOriginalColumn); + previousOriginalColumn = mapping.originalColumn; + + if (mapping.name != null) { + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; + } + } + + result += next; + } + + return result; + }; + +SourceMapGenerator.prototype._generateSourcesContent = + function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function (source) { + if (!this._sourcesContents) { + return null; + } + if (aSourceRoot != null) { + source = util.relative(aSourceRoot, source); + } + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) + ? this._sourcesContents[key] + : null; + }, this); + }; + +/** + * Externalize the source map. + */ +SourceMapGenerator.prototype.toJSON = + function SourceMapGenerator_toJSON() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + if (this._file != null) { + map.file = this._file; + } + if (this._sourceRoot != null) { + map.sourceRoot = this._sourceRoot; + } + if (this._sourcesContents) { + map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); + } + + return map; + }; + +/** + * Render the source map being generated to a string. + */ +SourceMapGenerator.prototype.toString = + function SourceMapGenerator_toString() { + return JSON.stringify(this.toJSON()); + }; + +exports.h = SourceMapGenerator; + + +/***/ }), + +/***/ 990: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +var __webpack_unused_export__; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var SourceMapGenerator = __webpack_require__(341)/* .SourceMapGenerator */ .h; +var util = __webpack_require__(983); + +// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other +// operating systems these days (capturing the result). +var REGEX_NEWLINE = /(\r?\n)/; + +// Newline character code for charCodeAt() comparisons +var NEWLINE_CODE = 10; + +// Private symbol for identifying `SourceNode`s when multiple versions of +// the source-map library are loaded. This MUST NOT CHANGE across +// versions! +var isSourceNode = "$$$isSourceNode$$$"; + +/** + * SourceNodes provide a way to abstract over interpolating/concatenating + * snippets of generated JavaScript source code while maintaining the line and + * column information associated with the original source code. + * + * @param aLine The original line number. + * @param aColumn The original column number. + * @param aSource The original source's filename. + * @param aChunks Optional. An array of strings which are snippets of + * generated JS, or other SourceNodes. + * @param aName The original identifier. + */ +function SourceNode(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); +} + +/** + * Creates a SourceNode from generated code and a SourceMapConsumer. + * + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. + */ +SourceNode.fromStringWithSourceMap = + function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + // The SourceNode we want to fill with the generated code + // and the SourceMap + var node = new SourceNode(); + + // All even indices of this array are one line of the generated code, + // while all odd indices are the newlines between two adjacent lines + // (since `REGEX_NEWLINE` captures its match). + // Processed fragments are accessed by calling `shiftNextLine`. + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; + var shiftNextLine = function() { + var lineContents = getNextLine(); + // The last line of a file might not have a newline. + var newLine = getNextLine() || ""; + return lineContents + newLine; + + function getNextLine() { + return remainingLinesIndex < remainingLines.length ? + remainingLines[remainingLinesIndex++] : undefined; + } + }; + + // We need to remember the position of "remainingLines" + var lastGeneratedLine = 1, lastGeneratedColumn = 0; + + // The generate SourceNodes we need a code range. + // To extract it current and last mapping is used. + // Here we store the last mapping. + var lastMapping = null; + + aSourceMapConsumer.eachMapping(function (mapping) { + if (lastMapping !== null) { + // We add the code from "lastMapping" to "mapping": + // First check if there is a new line in between. + if (lastGeneratedLine < mapping.generatedLine) { + // Associate first line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; + // The remaining code is added without mapping + } else { + // There is no new line in between. + // Associate the code between "lastGeneratedColumn" and + // "mapping.generatedColumn" with "lastMapping" + var nextLine = remainingLines[remainingLinesIndex] || ''; + var code = nextLine.substr(0, mapping.generatedColumn - + lastGeneratedColumn); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - + lastGeneratedColumn); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); + // No more remaining code, continue + lastMapping = mapping; + return; + } + } + // We add the generated code until the first mapping + // to the SourceNode without any mapping. + // Each line is added as separate string. + while (lastGeneratedLine < mapping.generatedLine) { + node.add(shiftNextLine()); + lastGeneratedLine++; + } + if (lastGeneratedColumn < mapping.generatedColumn) { + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); + lastGeneratedColumn = mapping.generatedColumn; + } + lastMapping = mapping; + }, this); + // We have processed all mappings. + if (remainingLinesIndex < remainingLines.length) { + if (lastMapping) { + // Associate the remaining code in the current line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + } + // and add the remaining lines without any mapping + node.add(remainingLines.splice(remainingLinesIndex).join("")); + } + + // Copy sourcesContent into SourceNode + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aRelativePath != null) { + sourceFile = util.join(aRelativePath, sourceFile); + } + node.setSourceContent(sourceFile, content); + } + }); + + return node; + + function addMappingWithCode(mapping, code) { + if (mapping === null || mapping.source === undefined) { + node.add(code); + } else { + var source = aRelativePath + ? util.join(aRelativePath, mapping.source) + : mapping.source; + node.add(new SourceNode(mapping.originalLine, + mapping.originalColumn, + source, + code, + mapping.name)); + } + } + }; + +/** + * Add a chunk of generated JS to this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ +SourceNode.prototype.add = function SourceNode_add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function (chunk) { + this.add(chunk); + }, this); + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); + } + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; + +/** + * Add a chunk of generated JS to the beginning of this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ +SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (var i = aChunk.length-1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; + +/** + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. + * + * @param aFn The traversal function. + */ +SourceNode.prototype.walk = function SourceNode_walk(aFn) { + var chunk; + for (var i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); + } + else { + if (chunk !== '') { + aFn(chunk, { source: this.source, + line: this.line, + column: this.column, + name: this.name }); + } + } + } +}; + +/** + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. + */ +SourceNode.prototype.join = function SourceNode_join(aSep) { + var newChildren; + var i; + var len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len-1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } + newChildren.push(this.children[i]); + this.children = newChildren; + } + return this; +}; + +/** + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. + */ +SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { + var lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } + else if (typeof lastChild === 'string') { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } + else { + this.children.push(''.replace(aPattern, aReplacement)); + } + return this; +}; + +/** + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file + */ +SourceNode.prototype.setSourceContent = + function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; + +/** + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. + */ +SourceNode.prototype.walkSourceContents = + function SourceNode_walkSourceContents(aFn) { + for (var i = 0, len = this.children.length; i < len; i++) { + if (this.children[i][isSourceNode]) { + this.children[i].walkSourceContents(aFn); + } + } + + var sources = Object.keys(this.sourceContents); + for (var i = 0, len = sources.length; i < len; i++) { + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); + } + }; + +/** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ +SourceNode.prototype.toString = function SourceNode_toString() { + var str = ""; + this.walk(function (chunk) { + str += chunk; + }); + return str; +}; + +/** + * Returns the string representation of this source node along with a source + * map. + */ +SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { + var generated = { + code: "", + line: 1, + column: 0 + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; + this.walk(function (chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if(lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column + } + }); + lastOriginalSource = null; + sourceMappingActive = false; + } + for (var idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function (sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); + + return { code: generated.code, map: map }; +}; + +__webpack_unused_export__ = SourceNode; + + +/***/ }), + +/***/ 983: +/***/ ((__unused_webpack_module, exports) => { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +/** + * This is a helper function for getting values from parameter/options + * objects. + * + * @param args The object we are extracting values from + * @param name The name of the property we are getting. + * @param defaultValue An optional value to return if the property is missing + * from the object. If this is not specified and the property is missing, an + * error will be thrown. + */ +function getArg(aArgs, aName, aDefaultValue) { + if (aName in aArgs) { + return aArgs[aName]; + } else if (arguments.length === 3) { + return aDefaultValue; + } else { + throw new Error('"' + aName + '" is a required argument.'); + } +} +exports.getArg = getArg; + +var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; +var dataUrlRegexp = /^data:.+\,.+$/; + +function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + if (!match) { + return null; + } + return { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + }; +} +exports.urlParse = urlParse; + +function urlGenerate(aParsedUrl) { + var url = ''; + if (aParsedUrl.scheme) { + url += aParsedUrl.scheme + ':'; + } + url += '//'; + if (aParsedUrl.auth) { + url += aParsedUrl.auth + '@'; + } + if (aParsedUrl.host) { + url += aParsedUrl.host; + } + if (aParsedUrl.port) { + url += ":" + aParsedUrl.port + } + if (aParsedUrl.path) { + url += aParsedUrl.path; + } + return url; +} +exports.urlGenerate = urlGenerate; + +/** + * Normalizes a path, or the path portion of a URL: + * + * - Replaces consecutive slashes with one slash. + * - Removes unnecessary '.' parts. + * - Removes unnecessary '<dir>/..' parts. + * + * Based on code in the Node.js 'path' core module. + * + * @param aPath The path or url to normalize. + */ +function normalize(aPath) { + var path = aPath; + var url = urlParse(aPath); + if (url) { + if (!url.path) { + return aPath; + } + path = url.path; + } + var isAbsolute = exports.isAbsolute(path); + + var parts = path.split(/\/+/); + for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { + part = parts[i]; + if (part === '.') { + parts.splice(i, 1); + } else if (part === '..') { + up++; + } else if (up > 0) { + if (part === '') { + // The first part is blank if the path is absolute. Trying to go + // above the root is a no-op. Therefore we can remove all '..' parts + // directly after the root. + parts.splice(i + 1, up); + up = 0; + } else { + parts.splice(i, 2); + up--; + } + } + } + path = parts.join('/'); + + if (path === '') { + path = isAbsolute ? '/' : '.'; + } + + if (url) { + url.path = path; + return urlGenerate(url); + } + return path; +} +exports.normalize = normalize; + +/** + * Joins two paths/URLs. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be joined with the root. + * + * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a + * scheme-relative URL: Then the scheme of aRoot, if any, is prepended + * first. + * - Otherwise aPath is a path. If aRoot is a URL, then its path portion + * is updated with the result and aRoot is returned. Otherwise the result + * is returned. + * - If aPath is absolute, the result is aPath. + * - Otherwise the two paths are joined with a slash. + * - Joining for example 'http://' and 'www.example.com' is also supported. + */ +function join(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + if (aPath === "") { + aPath = "."; + } + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); + if (aRootUrl) { + aRoot = aRootUrl.path || '/'; + } + + // `join(foo, '//www.example.org')` + if (aPathUrl && !aPathUrl.scheme) { + if (aRootUrl) { + aPathUrl.scheme = aRootUrl.scheme; + } + return urlGenerate(aPathUrl); + } + + if (aPathUrl || aPath.match(dataUrlRegexp)) { + return aPath; + } + + // `join('http://', 'www.example.com')` + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); + } + + var joined = aPath.charAt(0) === '/' + ? aPath + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); + + if (aRootUrl) { + aRootUrl.path = joined; + return urlGenerate(aRootUrl); + } + return joined; +} +exports.join = join; + +exports.isAbsolute = function (aPath) { + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); +}; + +/** + * Make a path relative to a URL or another path. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be made relative to aRoot. + */ +function relative(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + + aRoot = aRoot.replace(/\/$/, ''); + + // It is possible for the path to be above the root. In this case, simply + // checking whether the root is a prefix of the path won't work. Instead, we + // need to remove components from the root one by one, until either we find + // a prefix that fits, or we run out of components to remove. + var level = 0; + while (aPath.indexOf(aRoot + '/') !== 0) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) { + return aPath; + } + + // If the only part of the root that is left is the scheme (i.e. http://, + // file:///, etc.), one or more slashes (/), or simply nothing at all, we + // have exhausted all components, so the path is not relative to the root. + aRoot = aRoot.slice(0, index); + if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { + return aPath; + } + + ++level; + } + + // Make sure we add a "../" for each component we removed from the root. + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); +} +exports.relative = relative; + +var supportsNullProto = (function () { + var obj = Object.create(null); + return !('__proto__' in obj); +}()); + +function identity (s) { + return s; +} + +/** + * Because behavior goes wacky when you set `__proto__` on objects, we + * have to prefix all the strings in our set with an arbitrary character. + * + * See https://github.com/mozilla/source-map/pull/31 and + * https://github.com/mozilla/source-map/issues/30 + * + * @param String aStr + */ +function toSetString(aStr) { + if (isProtoString(aStr)) { + return '$' + aStr; + } + + return aStr; +} +exports.toSetString = supportsNullProto ? identity : toSetString; + +function fromSetString(aStr) { + if (isProtoString(aStr)) { + return aStr.slice(1); + } + + return aStr; +} +exports.fromSetString = supportsNullProto ? identity : fromSetString; + +function isProtoString(s) { + if (!s) { + return false; + } + + var length = s.length; + + if (length < 9 /* "__proto__".length */) { + return false; + } + + if (s.charCodeAt(length - 1) !== 95 /* '_' */ || + s.charCodeAt(length - 2) !== 95 /* '_' */ || + s.charCodeAt(length - 3) !== 111 /* 'o' */ || + s.charCodeAt(length - 4) !== 116 /* 't' */ || + s.charCodeAt(length - 5) !== 111 /* 'o' */ || + s.charCodeAt(length - 6) !== 114 /* 'r' */ || + s.charCodeAt(length - 7) !== 112 /* 'p' */ || + s.charCodeAt(length - 8) !== 95 /* '_' */ || + s.charCodeAt(length - 9) !== 95 /* '_' */) { + return false; + } + + for (var i = length - 10; i >= 0; i--) { + if (s.charCodeAt(i) !== 36 /* '$' */) { + return false; + } + } + + return true; +} + +/** + * Comparator between two mappings where the original positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same original source/line/column, but different generated + * line and column the same. Useful when searching for a mapping with a + * stubbed out mapping. + */ +function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByOriginalPositions = compareByOriginalPositions; + +/** + * Comparator between two mappings with deflated source and name indices where + * the generated positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same generated line and column, but different + * source/name/original line and column the same. Useful when searching for a + * mapping with a stubbed out mapping. + */ +function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; + +function strcmp(aStr1, aStr2) { + if (aStr1 === aStr2) { + return 0; + } + + if (aStr1 === null) { + return 1; // aStr2 !== null + } + + if (aStr2 === null) { + return -1; // aStr1 !== null + } + + if (aStr1 > aStr2) { + return 1; + } + + return -1; +} + +/** + * Comparator between two mappings with inflated source and name strings where + * the generated positions are compared. + */ +function compareByGeneratedPositionsInflated(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; + +/** + * Strip any JSON XSSI avoidance prefix from the string (as documented + * in the source maps specification), and then parse the string as + * JSON. + */ +function parseSourceMapInput(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); +} +exports.parseSourceMapInput = parseSourceMapInput; + +/** + * Compute the URL of a source given the the source root, the source's + * URL, and the source map's URL. + */ +function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { + sourceURL = sourceURL || ''; + + if (sourceRoot) { + // This follows what Chrome does. + if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { + sourceRoot += '/'; + } + // The spec says: + // Line 4: An optional source root, useful for relocating source + // files on a server or removing repeated values in the + // “sources” entry. This value is prepended to the individual + // entries in the “source” field. + sourceURL = sourceRoot + sourceURL; + } + + // Historically, SourceMapConsumer did not take the sourceMapURL as + // a parameter. This mode is still somewhat supported, which is why + // this code block is conditional. However, it's preferable to pass + // the source map URL to SourceMapConsumer, so that this function + // can implement the source URL resolution algorithm as outlined in + // the spec. This block is basically the equivalent of: + // new URL(sourceURL, sourceMapURL).toString() + // ... except it avoids using URL, which wasn't available in the + // older releases of node still supported by this library. + // + // The spec says: + // If the sources are not absolute URLs after prepending of the + // “sourceRoot”, the sources are resolved relative to the + // SourceMap (like resolving script src in a html document). + if (sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) { + throw new Error("sourceMapURL could not be parsed"); + } + if (parsed.path) { + // Strip the last path component, but keep the "/". + var index = parsed.path.lastIndexOf('/'); + if (index >= 0) { + parsed.path = parsed.path.substring(0, index + 1); + } + } + sourceURL = join(urlGenerate(parsed), sourceURL); + } + + return normalize(sourceURL); +} +exports.computeSourceURL = computeSourceURL; + + +/***/ }), + +/***/ 596: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +/* + * Copyright 2009-2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE.txt or: + * http://opensource.org/licenses/BSD-3-Clause + */ +/* unused reexport */ __webpack_require__(341)/* .SourceMapGenerator */ .h; +exports.SourceMapConsumer = __webpack_require__(327).SourceMapConsumer; +/* unused reexport */ __webpack_require__(990); + + +/***/ }), + +/***/ 747: +/***/ ((module) => { + +"use strict"; +module.exports = require("fs"); + +/***/ }), + +/***/ 282: +/***/ ((module) => { + +"use strict"; +module.exports = require("module"); + +/***/ }), + +/***/ 622: +/***/ ((module) => { + +"use strict"; +module.exports = require("path"); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ if(__webpack_module_cache__[moduleId]) { +/******/ return __webpack_module_cache__[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ __webpack_require__.ab = __dirname + "/";/************************************************************************/ +/******/ // module exports must be returned from runtime so entry inlining is disabled +/******/ // startup +/******/ // Load entry module and return exports +/******/ return __webpack_require__(645); +/******/ })() +;
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/typescript.js b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/typescript.js new file mode 100644 index 0000000..f43082b --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/typescript.js @@ -0,0 +1,14 @@ + +const { Module } = require('module'); +const m = new Module('', null); +m.paths = Module._nodeModulePaths(process.env.TYPESCRIPT_LOOKUP_PATH || (process.cwd() + '/')); +let typescript; +try { + typescript = m.require('typescript'); + console.log("ncc: Using typescript@" + typescript.version + " (local user-provided)"); +} +catch (e) { + typescript = require('./loaders/ts-loader.js').typescript; + console.log("ncc: Using typescript@" + typescript.version + " (ncc built-in)"); +} +module.exports = typescript; diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/readme.md b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/readme.md new file mode 100644 index 0000000..0c4f698 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/readme.md @@ -0,0 +1,9 @@ +# About this directory + +This directory will contain: +- `buildin`: the webpack `buildin/` folder, required at runtime +- `ncc`: the output from the ncc build + +They are generated by the `build` script defined in `../package.json`. + +This directory is the only one published to npm. diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/package.json b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/package.json new file mode 100644 index 0000000..ab0b66d --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/package.json @@ -0,0 +1,112 @@ +{ + "name": "@vercel/ncc", + "description": "Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.", + "version": "0.24.1", + "repository": "vercel/ncc", + "license": "MIT", + "main": "./dist/ncc/index.js", + "bin": { + "ncc": "./dist/ncc/cli.js" + }, + "scripts": { + "build": "node scripts/build", + "build-test-binary": "cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node", + "codecov": "codecov", + "test": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest", + "test-coverage": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals \"{\\\"coverage\\\":true}\" && codecov", + "prepublish": "yarn build" + }, + "devDependencies": { + "@azure/cosmos": "^2.0.5", + "@bugsnag/js": "^5.0.1", + "@ffmpeg-installer/ffmpeg": "^1.0.17", + "@google-cloud/bigquery": "^2.0.1", + "@google-cloud/firestore": "^2.2.0", + "@sentry/node": "^4.3.0", + "@tensorflow/tfjs-node": "^0.3.0", + "@zeit/webpack-asset-relocator-loader": "0.8.0", + "analytics-node": "^3.3.0", + "apollo-server-express": "^2.2.2", + "arg": "^4.1.0", + "auth0": "^2.14.0", + "aws-sdk": "^2.356.0", + "axios": "^0.18.1", + "azure-storage": "^2.10.2", + "browserify-middleware": "^8.1.1", + "bytes": "^3.0.0", + "canvas": "^2.2.0", + "chromeless": "^1.5.2", + "codecov": "^3.6.5", + "consolidate": "^0.15.1", + "copy": "^0.3.2", + "core-js": "^2.5.7", + "cowsay": "^1.3.1", + "esm": "^3.2.22", + "express": "^4.16.4", + "fetch-h2": "^1.0.2", + "firebase": "^6.1.1", + "firebase-admin": "^6.3.0", + "fluent-ffmpeg": "^2.1.2", + "fontkit": "^1.7.7", + "get-folder-size": "^2.0.0", + "glob": "^7.1.3", + "got": "^9.3.2", + "graceful-fs": "^4.1.15", + "graphql": "^14.0.2", + "highlights": "^3.1.1", + "hot-shots": "^5.9.2", + "in-publish": "^2.0.0", + "ioredis": "^4.2.0", + "isomorphic-unfetch": "^3.0.0", + "jest": "^26.3.0", + "jimp": "^0.5.6", + "jugglingdb": "2.0.1", + "koa": "^2.6.2", + "leveldown": "^5.6.0", + "license-webpack-plugin": "^2.3.0", + "lighthouse": "^5.0.0", + "loopback": "^3.24.0", + "mailgun": "^0.5.0", + "mariadb": "^2.0.1-beta", + "memcached": "^2.2.2", + "mkdirp": "^0.5.1", + "mongoose": "^5.3.12", + "mysql": "^2.16.0", + "node-gyp": "^3.8.0", + "npm": "^6.13.4", + "oracledb": "^4.2.0", + "passport": "^0.4.0", + "passport-google-oauth": "^1.0.0", + "path-platform": "^0.11.15", + "pdf2json": "^1.1.8", + "pdfkit": "^0.8.3", + "pg": "^7.6.1", + "pug": "^2.0.3", + "react": "^16.6.3", + "react-dom": "^16.6.3", + "redis": "^2.8.0", + "request": "^2.88.0", + "rxjs": "^6.3.3", + "saslprep": "^1.0.2", + "sequelize": "^5.8.6", + "sharp": "^0.25.2", + "shebang-loader": "^0.0.1", + "socket.io": "^2.2.0", + "source-map-support": "^0.5.9", + "stripe": "^6.15.0", + "swig": "^1.4.2", + "terser": "^3.11.0", + "the-answer": "^1.0.0", + "tiny-json-http": "^7.0.2", + "ts-loader": "^5.3.1", + "tsconfig-paths": "^3.7.0", + "tsconfig-paths-webpack-plugin": "^3.2.0", + "twilio": "^3.23.2", + "typescript": "^3.2.2", + "vm2": "^3.6.6", + "vue": "^2.5.17", + "vue-server-renderer": "^2.5.17", + "webpack": "5.0.0-beta.28", + "when": "^3.7.8" + } +} diff --git a/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/readme.md b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/readme.md new file mode 100644 index 0000000..ed74695 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/readme.md @@ -0,0 +1,143 @@ +# ncc + +[![CI Status](https://github.com/vercel/ncc/workflows/CI/badge.svg)](https://github.com/vercel/ncc/actions?workflow=CI) +[![codecov](https://codecov.io/gh/vercel/ncc/branch/master/graph/badge.svg)](https://codecov.io/gh/vercel/ncc) + +Simple CLI for compiling a Node.js module into a single file, +together with all its dependencies, gcc-style. + +## Motivation + +- Publish minimal packages to npm +- Only ship relevant app code to serverless environments +- Don't waste time configuring bundlers +- Generally faster bootup time and less I/O overhead +- Compiled language-like experience (e.g.: `go`) + +## Design goals + +- Zero configuration +- TypeScript built-in +- Only supports Node.js programs as input / output +- Support all Node.js patterns and npm modules + +## Usage + +### Installation +```bash +npm i -g @vercel/ncc +``` + +### Usage + +```bash +$ ncc <cmd> <opts> +``` +Eg: +```bash +$ ncc build input.js -o dist +``` + +Outputs the Node.js compact build of `input.js` into `dist/index.js`. + +> Note: If the input file is using a `.cjs` extension, then so will the corresponding output file. +> This is useful for packages that want to use `.js` files as modules in native Node.js using +> a `"type": "module"` in the package.json file. + +#### Commands: +``` + build <input-file> [opts] + run <input-file> [opts] + cache clean|dir|size + help + version +``` + +#### Options: +``` + -o, --out [file] Output directory for build (defaults to dist) + -m, --minify Minify output + -C, --no-cache Skip build cache population + -s, --source-map Generate source map + --no-source-map-register Skip source-map-register source map support + -e, --external [mod] Skip bundling 'mod'. Can be used many times + -q, --quiet Disable build summaries / non-error outputs + -w, --watch Start a watched build + --v8-cache Emit a build using the v8 compile cache + --license [file] Adds a file containing licensing information to the output + --stats-out [file] Emit webpack stats as json to the specified output file +``` + +### Execution Testing + +For testing and debugging, a file can be built into a temporary directory and executed with full source maps support with the command: + +```bash +$ ncc run input.js +``` + +### With TypeScript + +The only requirement is to point `ncc` to `.ts` or `.tsx` files. A `tsconfig.json` +file is necessary. Most likely you want to indicate `es2015` support: + +```json +{ + "compilerOptions": { + "target": "es2015", + "moduleResolution": "node" + } +} +``` + +### Package Support + +Some packages may need some extra options for ncc support in order to better work with the static analysis. + +See [package-support.md](package-support.md) for some common packages and their usage with ncc. + +### Programmatically From Node.js + +```js +require('@vercel/ncc')('/path/to/input', { + // provide a custom cache path or disable caching + cache: "./custom/cache/path" | false, + // externals to leave as requires of the build + externals: ["externalpackage"], + // directory outside of which never to emit assets + filterAssetBase: process.cwd(), // default + minify: false, // default + sourceMap: false, // default + sourceMapBasePrefix: '../', // default treats sources as output-relative + // when outputting a sourcemap, automatically include + // source-map-support in the output file (increases output by 32kB). + sourceMapRegister: true, // default + watch: false, // default + license: '', // default does not generate a license file + v8cache: false, // default + quiet: false, // default + debugLog: false // default +}).then(({ code, map, assets }) => { + console.log(code); + // Assets is an object of asset file names to { source, permissions, symlinks } + // expected relative to the output code (if any) +}) +``` + +When `watch: true` is set, the build object is not a promise, but has the following signature: + +```js +{ + // handler re-run on each build completion + // watch errors are reported on "err" + handler (({ err, code, map, assets }) => { ... }) + // handler re-run on each rebuild start + rebuild (() => {}) + // close the watcher + void close (); +} +``` + +## Caveats + +- Files / assets are relocated based on a [static evaluator](https://github.com/zeit/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly |